File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 7
7
import _omit from 'lodash/omit'
8
8
9
9
import { MakeServicePluginOptions , Model } from './types'
10
+ import { Id } from '@feathersjs/feathers'
10
11
11
12
export interface ServiceStateExclusiveDefaults {
12
13
ids : string [ ]
@@ -36,6 +37,11 @@ export interface ServiceStateExclusiveDefaults {
36
37
}
37
38
paramsForServer : string [ ]
38
39
modelName ?: string
40
+
41
+ isIdCreatePending : Id [ ]
42
+ isIdUpdatePending : Id [ ]
43
+ isIdPatchPending : Id [ ]
44
+ isIdRemovePending : Id [ ]
39
45
}
40
46
41
47
export interface ServiceState < M extends Model = Model > {
@@ -77,6 +83,10 @@ export interface ServiceState<M extends Model = Model> {
77
83
default ?: PaginationState
78
84
}
79
85
modelName ?: string
86
+ isIdCreatePending : Id [ ]
87
+ isIdUpdatePending : Id [ ]
88
+ isIdPatchPending : Id [ ]
89
+ isIdRemovePending : Id [ ]
80
90
}
81
91
82
92
export interface PaginationState {
@@ -124,7 +134,12 @@ export default function makeDefaultState(options: MakeServicePluginOptions) {
124
134
errorOnCreate : null ,
125
135
errorOnUpdate : null ,
126
136
errorOnPatch : null ,
127
- errorOnRemove : null
137
+ errorOnRemove : null ,
138
+
139
+ isIdCreatePending : [ ] ,
140
+ isIdUpdatePending : [ ] ,
141
+ isIdPatchPending : [ ] ,
142
+ isIdRemovePending : [ ] ,
128
143
}
129
144
130
145
if ( options . Model ) {
You can’t perform that action at this time.
0 commit comments