File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,28 @@ export interface HandleEvents {
30
30
export interface MakeServicePluginOptions {
31
31
Model : any
32
32
service : any
33
- addOnUpsert ?: boolean
34
- enableEvents ?: boolean
33
+
35
34
idField ?: string
36
35
tempIdField ?: string
37
- nameStyle ?: string
38
- namespace ?: string
39
- preferUpdate ?: boolean
36
+
37
+ addOnUpsert ?: boolean
40
38
autoRemove ?: boolean
39
+ debug ?: boolean
40
+ enableEvents ?: boolean
41
+ preferUpdate ?: boolean
42
+ replaceItems ?: boolean
43
+ skipRequestIfExists ?: boolean
44
+ nameStyle ?: string
45
+
41
46
servicePath ?: string
47
+ namespace ?: string
48
+
49
+ whitelist ?: string [ ]
50
+ paramsForServer ?: string [ ]
51
+
42
52
instanceDefaults ?: ( ) => { }
43
53
setupInstance ?: ( data , { models, store } ) => { }
54
+ handleEvents ?: HandleEvents
44
55
state ?: { }
45
56
getters ?: { }
46
57
mutations ?: { }
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ export interface ServiceState {
23
23
idField : string
24
24
keyedById : { }
25
25
tempsById : { }
26
+ whitelist : string [ ]
27
+ paramsForServer : string [ ]
26
28
namespace : string
27
29
nameStyle : string // Should be enum of 'short' or 'path'
28
30
pagination ?: {
@@ -35,7 +37,7 @@ export interface PaginationState {
35
37
limit : number
36
38
skip : number
37
39
ip : number
38
- total : number ,
40
+ total : number
39
41
mostRecent : any
40
42
}
41
43
You can’t perform that action at this time.
0 commit comments