@opencrvs/toolkit 2.1.0-rc.da0d91e → 2.1.0-rc.e072b83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/application-config/index.js +3 -1
- package/dist/commons/api/router.d.ts +3382 -3314
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +259 -2102
- package/dist/commons/events/ActionConfig.d.ts +105 -105
- package/dist/commons/events/ActionDocument.d.ts +119 -119
- package/dist/commons/events/ActionInput.d.ts +0 -6
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +513 -507
- package/dist/commons/events/AuditLog.d.ts +79 -42
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/Conditional.d.ts +3 -3
- package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
- package/dist/commons/events/Draft.d.ts +37 -37
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +5 -5
- package/dist/commons/events/EventDocument.d.ts +48 -48
- package/dist/commons/events/EventIndex.d.ts +62 -62
- package/dist/commons/events/EventMetadata.d.ts +40 -40
- package/dist/commons/events/FieldConfig.d.ts +341 -336
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/Flag.d.ts +15 -15
- package/dist/commons/events/TemplateConfig.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
- package/dist/commons/events/WorkqueueConfig.d.ts +826 -826
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +2 -2
- package/dist/commons/events/field.d.ts +78 -895
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/locationPayloads.d.ts +95 -0
- package/dist/commons/events/locations.d.ts +103 -6
- package/dist/commons/events/mocks.test.utils.d.ts +18 -4
- package/dist/commons/events/scopes.d.ts +4 -4
- package/dist/commons/events/state/index.d.ts +17 -17
- package/dist/commons/events/state/utils.d.ts +7 -7
- package/dist/commons/events/test.utils.d.ts +40 -43
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/conditionals/index.js +1 -0
- package/dist/environment/derived-variables.d.ts +119 -119
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/questions.d.ts +75 -74
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +8 -14
- package/dist/environment/utils.d.ts +1 -1
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +150 -58
- package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
- package/dist/notification/index.js +147 -82
- package/dist/scopes/index.d.ts +148 -146
- package/dist/scopes/index.js +1 -0
- package/opencrvs-toolkit-2.1.0-rc.e072b83.tgz +0 -0
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.da0d91e.tgz +0 -0
package/dist/scopes/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as z from 'zod/v4';
|
|
|
2
2
|
import { Role } from './roles';
|
|
3
3
|
export declare const JurisdictionFilter: z.ZodEnum<{
|
|
4
4
|
administrativeArea: "administrativeArea";
|
|
5
|
-
location: "location";
|
|
6
5
|
all: "all";
|
|
6
|
+
location: "location";
|
|
7
7
|
}>;
|
|
8
8
|
export type JurisdictionFilter = z.infer<typeof JurisdictionFilter>;
|
|
9
9
|
export declare const UserFilter: z.ZodEnum<{
|
|
@@ -17,76 +17,76 @@ export type UserFilter = z.infer<typeof UserFilter>;
|
|
|
17
17
|
* @see scopeOptionsPlaceEvent @see scopeOptionsDeclaredOrNotified @see scopeOptionsFull
|
|
18
18
|
*/
|
|
19
19
|
export declare const RecordScopeTypeV2: z.ZodEnum<{
|
|
20
|
-
"record.
|
|
20
|
+
"record.archive": "record.archive";
|
|
21
|
+
"record.correct": "record.correct";
|
|
21
22
|
"record.create": "record.create";
|
|
22
|
-
"record.
|
|
23
|
+
"record.custom-action": "record.custom-action";
|
|
23
24
|
"record.declare": "record.declare";
|
|
24
|
-
"record.notify": "record.notify";
|
|
25
25
|
"record.edit": "record.edit";
|
|
26
|
-
"record.
|
|
27
|
-
"record.archive": "record.archive";
|
|
28
|
-
"record.unarchive": "record.unarchive";
|
|
29
|
-
"record.review-duplicates": "record.review-duplicates";
|
|
30
|
-
"record.register": "record.register";
|
|
26
|
+
"record.notify": "record.notify";
|
|
31
27
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
28
|
+
"record.read": "record.read";
|
|
29
|
+
"record.register": "record.register";
|
|
30
|
+
"record.reject": "record.reject";
|
|
32
31
|
"record.request-correction": "record.request-correction";
|
|
33
|
-
"record.
|
|
32
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
33
|
+
"record.search": "record.search";
|
|
34
|
+
"record.unarchive": "record.unarchive";
|
|
34
35
|
"record.unassign-others": "record.unassign-others";
|
|
35
|
-
"record.custom-action": "record.custom-action";
|
|
36
36
|
}>;
|
|
37
37
|
export type RecordScopeTypeV2 = z.infer<typeof RecordScopeTypeV2>;
|
|
38
38
|
declare const AllScopeOptions: z.ZodObject<{
|
|
39
|
-
ids: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodArray<z.ZodString>>;
|
|
40
|
-
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
41
|
-
administrativeArea: "administrativeArea";
|
|
42
|
-
location: "location";
|
|
43
|
-
all: "all";
|
|
44
|
-
}>>;
|
|
45
|
-
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
46
39
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
47
40
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
48
41
|
administrativeArea: "administrativeArea";
|
|
49
|
-
location: "location";
|
|
50
42
|
all: "all";
|
|
43
|
+
location: "location";
|
|
51
44
|
}>>;
|
|
52
45
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
53
46
|
administrativeArea: "administrativeArea";
|
|
54
|
-
location: "location";
|
|
55
47
|
all: "all";
|
|
48
|
+
location: "location";
|
|
56
49
|
}>>;
|
|
57
50
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
58
51
|
user: "user";
|
|
59
52
|
}>>;
|
|
60
53
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
61
54
|
administrativeArea: "administrativeArea";
|
|
62
|
-
location: "location";
|
|
63
55
|
all: "all";
|
|
56
|
+
location: "location";
|
|
64
57
|
}>>;
|
|
65
58
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
66
59
|
user: "user";
|
|
67
60
|
}>>;
|
|
68
61
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
69
62
|
administrativeArea: "administrativeArea";
|
|
70
|
-
location: "location";
|
|
71
63
|
all: "all";
|
|
64
|
+
location: "location";
|
|
72
65
|
}>>;
|
|
73
66
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
74
67
|
user: "user";
|
|
75
68
|
}>>;
|
|
69
|
+
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
70
|
+
administrativeArea: "administrativeArea";
|
|
71
|
+
all: "all";
|
|
72
|
+
location: "location";
|
|
73
|
+
}>>;
|
|
74
|
+
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
75
|
+
ids: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodArray<z.ZodString>>;
|
|
76
76
|
}, z.core.$strip>;
|
|
77
77
|
type AllScopeOptions = z.infer<typeof AllScopeOptions>;
|
|
78
78
|
export declare const ScopeOptionKey: z.ZodEnum<{
|
|
79
|
-
|
|
79
|
+
accessLevel: "accessLevel";
|
|
80
|
+
declaredBy: "declaredBy";
|
|
81
|
+
declaredIn: "declaredIn";
|
|
80
82
|
event: "event";
|
|
81
|
-
|
|
82
|
-
notifiedIn: "notifiedIn";
|
|
83
|
+
ids: "ids";
|
|
83
84
|
notifiedBy: "notifiedBy";
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
registeredIn: "registeredIn";
|
|
85
|
+
notifiedIn: "notifiedIn";
|
|
86
|
+
placeOfEvent: "placeOfEvent";
|
|
87
87
|
registeredBy: "registeredBy";
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
registeredIn: "registeredIn";
|
|
89
|
+
role: "role";
|
|
90
90
|
}>;
|
|
91
91
|
export type ScopeOptionKey = z.infer<typeof ScopeOptionKey>;
|
|
92
92
|
export declare const ScopesWithPlaceEventOptions: z.ZodEnum<{
|
|
@@ -95,18 +95,18 @@ export declare const ScopesWithPlaceEventOptions: z.ZodEnum<{
|
|
|
95
95
|
"record.notify": "record.notify";
|
|
96
96
|
}>;
|
|
97
97
|
export declare const ScopesWithDeclaredOptions: z.ZodEnum<{
|
|
98
|
+
"record.archive": "record.archive";
|
|
98
99
|
"record.edit": "record.edit";
|
|
100
|
+
"record.register": "record.register";
|
|
99
101
|
"record.reject": "record.reject";
|
|
100
|
-
"record.archive": "record.archive";
|
|
101
|
-
"record.unarchive": "record.unarchive";
|
|
102
102
|
"record.review-duplicates": "record.review-duplicates";
|
|
103
|
-
"record.
|
|
103
|
+
"record.unarchive": "record.unarchive";
|
|
104
104
|
}>;
|
|
105
105
|
export declare const ScopesWithFullOptions: z.ZodEnum<{
|
|
106
|
-
"record.
|
|
106
|
+
"record.correct": "record.correct";
|
|
107
107
|
"record.read": "record.read";
|
|
108
108
|
"record.request-correction": "record.request-correction";
|
|
109
|
-
"record.
|
|
109
|
+
"record.search": "record.search";
|
|
110
110
|
"record.unassign-others": "record.unassign-others";
|
|
111
111
|
}>;
|
|
112
112
|
export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -119,38 +119,38 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
119
119
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
120
120
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
121
121
|
administrativeArea: "administrativeArea";
|
|
122
|
-
location: "location";
|
|
123
122
|
all: "all";
|
|
123
|
+
location: "location";
|
|
124
124
|
}>>;
|
|
125
125
|
}, z.core.$strip>>;
|
|
126
126
|
}, z.core.$strip>, z.ZodObject<{
|
|
127
127
|
type: z.ZodEnum<{
|
|
128
|
+
"record.archive": "record.archive";
|
|
128
129
|
"record.edit": "record.edit";
|
|
130
|
+
"record.register": "record.register";
|
|
129
131
|
"record.reject": "record.reject";
|
|
130
|
-
"record.archive": "record.archive";
|
|
131
|
-
"record.unarchive": "record.unarchive";
|
|
132
132
|
"record.review-duplicates": "record.review-duplicates";
|
|
133
|
-
"record.
|
|
133
|
+
"record.unarchive": "record.unarchive";
|
|
134
134
|
}>;
|
|
135
135
|
options: z.ZodOptional<z.ZodObject<{
|
|
136
136
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
137
137
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
138
138
|
administrativeArea: "administrativeArea";
|
|
139
|
-
location: "location";
|
|
140
139
|
all: "all";
|
|
140
|
+
location: "location";
|
|
141
141
|
}>>;
|
|
142
142
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
143
143
|
administrativeArea: "administrativeArea";
|
|
144
|
-
location: "location";
|
|
145
144
|
all: "all";
|
|
145
|
+
location: "location";
|
|
146
146
|
}>>;
|
|
147
147
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
148
148
|
user: "user";
|
|
149
149
|
}>>;
|
|
150
150
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
151
151
|
administrativeArea: "administrativeArea";
|
|
152
|
-
location: "location";
|
|
153
152
|
all: "all";
|
|
153
|
+
location: "location";
|
|
154
154
|
}>>;
|
|
155
155
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
156
156
|
user: "user";
|
|
@@ -158,39 +158,39 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
158
158
|
}, z.core.$strip>>;
|
|
159
159
|
}, z.core.$strip>, z.ZodObject<{
|
|
160
160
|
type: z.ZodEnum<{
|
|
161
|
-
"record.
|
|
161
|
+
"record.correct": "record.correct";
|
|
162
162
|
"record.read": "record.read";
|
|
163
163
|
"record.request-correction": "record.request-correction";
|
|
164
|
-
"record.
|
|
164
|
+
"record.search": "record.search";
|
|
165
165
|
"record.unassign-others": "record.unassign-others";
|
|
166
166
|
}>;
|
|
167
167
|
options: z.ZodOptional<z.ZodObject<{
|
|
168
168
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
169
169
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
170
170
|
administrativeArea: "administrativeArea";
|
|
171
|
-
location: "location";
|
|
172
171
|
all: "all";
|
|
172
|
+
location: "location";
|
|
173
173
|
}>>;
|
|
174
174
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
175
175
|
administrativeArea: "administrativeArea";
|
|
176
|
-
location: "location";
|
|
177
176
|
all: "all";
|
|
177
|
+
location: "location";
|
|
178
178
|
}>>;
|
|
179
179
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
180
180
|
user: "user";
|
|
181
181
|
}>>;
|
|
182
182
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
183
183
|
administrativeArea: "administrativeArea";
|
|
184
|
-
location: "location";
|
|
185
184
|
all: "all";
|
|
185
|
+
location: "location";
|
|
186
186
|
}>>;
|
|
187
187
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
188
188
|
user: "user";
|
|
189
189
|
}>>;
|
|
190
190
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
191
191
|
administrativeArea: "administrativeArea";
|
|
192
|
-
location: "location";
|
|
193
192
|
all: "all";
|
|
193
|
+
location: "location";
|
|
194
194
|
}>>;
|
|
195
195
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
196
196
|
user: "user";
|
|
@@ -202,29 +202,29 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
202
202
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
203
203
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
204
204
|
administrativeArea: "administrativeArea";
|
|
205
|
-
location: "location";
|
|
206
205
|
all: "all";
|
|
206
|
+
location: "location";
|
|
207
207
|
}>>;
|
|
208
208
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
209
209
|
administrativeArea: "administrativeArea";
|
|
210
|
-
location: "location";
|
|
211
210
|
all: "all";
|
|
211
|
+
location: "location";
|
|
212
212
|
}>>;
|
|
213
213
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
214
214
|
user: "user";
|
|
215
215
|
}>>;
|
|
216
216
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
217
217
|
administrativeArea: "administrativeArea";
|
|
218
|
-
location: "location";
|
|
219
218
|
all: "all";
|
|
219
|
+
location: "location";
|
|
220
220
|
}>>;
|
|
221
221
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
222
222
|
user: "user";
|
|
223
223
|
}>>;
|
|
224
224
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
225
225
|
administrativeArea: "administrativeArea";
|
|
226
|
-
location: "location";
|
|
227
226
|
all: "all";
|
|
227
|
+
location: "location";
|
|
228
228
|
}>>;
|
|
229
229
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
230
230
|
user: "user";
|
|
@@ -237,29 +237,29 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
237
237
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
238
238
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
239
239
|
administrativeArea: "administrativeArea";
|
|
240
|
-
location: "location";
|
|
241
240
|
all: "all";
|
|
241
|
+
location: "location";
|
|
242
242
|
}>>;
|
|
243
243
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
244
244
|
administrativeArea: "administrativeArea";
|
|
245
|
-
location: "location";
|
|
246
245
|
all: "all";
|
|
246
|
+
location: "location";
|
|
247
247
|
}>>;
|
|
248
248
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
249
249
|
user: "user";
|
|
250
250
|
}>>;
|
|
251
251
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
252
252
|
administrativeArea: "administrativeArea";
|
|
253
|
-
location: "location";
|
|
254
253
|
all: "all";
|
|
254
|
+
location: "location";
|
|
255
255
|
}>>;
|
|
256
256
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
257
257
|
user: "user";
|
|
258
258
|
}>>;
|
|
259
259
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
260
260
|
administrativeArea: "administrativeArea";
|
|
261
|
-
location: "location";
|
|
262
261
|
all: "all";
|
|
262
|
+
location: "location";
|
|
263
263
|
}>>;
|
|
264
264
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
265
265
|
user: "user";
|
|
@@ -269,16 +269,16 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
269
269
|
}, z.core.$strip>], "type">;
|
|
270
270
|
declare const SystemScopeType: z.ZodEnum<{
|
|
271
271
|
"organisation.read-locations": "organisation.read-locations";
|
|
272
|
-
"user.read": "user.read";
|
|
273
272
|
"user.create": "user.create";
|
|
274
273
|
"user.edit": "user.edit";
|
|
274
|
+
"user.read": "user.read";
|
|
275
275
|
"user.search": "user.search";
|
|
276
276
|
}>;
|
|
277
277
|
export type SystemScopeType = z.infer<typeof SystemScopeType>;
|
|
278
278
|
declare const UserScopeType: z.ZodEnum<{
|
|
279
|
-
"user.read": "user.read";
|
|
280
279
|
"user.create": "user.create";
|
|
281
280
|
"user.edit": "user.edit";
|
|
281
|
+
"user.read": "user.read";
|
|
282
282
|
"user.search": "user.search";
|
|
283
283
|
}>;
|
|
284
284
|
export type UserScopeType = z.infer<typeof UserScopeType>;
|
|
@@ -295,8 +295,8 @@ export declare const UserScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
295
295
|
options: z.ZodOptional<z.ZodObject<{
|
|
296
296
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
297
297
|
administrativeArea: "administrativeArea";
|
|
298
|
-
location: "location";
|
|
299
298
|
all: "all";
|
|
299
|
+
location: "location";
|
|
300
300
|
}>>;
|
|
301
301
|
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
302
302
|
}, z.core.$strip>>;
|
|
@@ -308,8 +308,8 @@ export declare const UserScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
308
308
|
options: z.ZodOptional<z.ZodObject<{
|
|
309
309
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
310
310
|
administrativeArea: "administrativeArea";
|
|
311
|
-
location: "location";
|
|
312
311
|
all: "all";
|
|
312
|
+
location: "location";
|
|
313
313
|
}>>;
|
|
314
314
|
}, z.core.$strip>>;
|
|
315
315
|
}, z.core.$strip>], "type">;
|
|
@@ -341,12 +341,12 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
341
341
|
}, z.core.$strip>>;
|
|
342
342
|
}, z.core.$strip>, z.ZodObject<{
|
|
343
343
|
type: z.ZodEnum<{
|
|
344
|
+
"record.archive": "record.archive";
|
|
344
345
|
"record.edit": "record.edit";
|
|
346
|
+
"record.register": "record.register";
|
|
345
347
|
"record.reject": "record.reject";
|
|
346
|
-
"record.archive": "record.archive";
|
|
347
|
-
"record.unarchive": "record.unarchive";
|
|
348
348
|
"record.review-duplicates": "record.review-duplicates";
|
|
349
|
-
"record.
|
|
349
|
+
"record.unarchive": "record.unarchive";
|
|
350
350
|
}>;
|
|
351
351
|
options: z.ZodOptional<z.ZodObject<{
|
|
352
352
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
@@ -358,10 +358,10 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
358
358
|
}, z.core.$strip>>;
|
|
359
359
|
}, z.core.$strip>, z.ZodObject<{
|
|
360
360
|
type: z.ZodEnum<{
|
|
361
|
-
"record.
|
|
361
|
+
"record.correct": "record.correct";
|
|
362
362
|
"record.read": "record.read";
|
|
363
363
|
"record.request-correction": "record.request-correction";
|
|
364
|
-
"record.
|
|
364
|
+
"record.search": "record.search";
|
|
365
365
|
"record.unassign-others": "record.unassign-others";
|
|
366
366
|
}>;
|
|
367
367
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -393,20 +393,21 @@ export type ResolvedRecordScopeV2 = z.infer<typeof ResolvedRecordScopeV2>;
|
|
|
393
393
|
/** The primary scope schema which gathers all scope types together. All scopes are discriminated by type and options are determined according to the type. */
|
|
394
394
|
export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
395
395
|
type: z.ZodEnum<{
|
|
396
|
+
"attachment.upload": "attachment.upload";
|
|
396
397
|
bypassratelimit: "bypassratelimit";
|
|
397
|
-
"record.reindex": "record.reindex";
|
|
398
|
-
"user.data-seeding": "user.data-seeding";
|
|
399
|
-
"integration.create": "integration.create";
|
|
400
|
-
"record.import": "record.import";
|
|
401
398
|
"config.update-all": "config.update-all";
|
|
402
|
-
"
|
|
403
|
-
"
|
|
404
|
-
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
399
|
+
"integration.create": "integration.create";
|
|
400
|
+
"location.edit": "location.edit";
|
|
405
401
|
"performance.read": "performance.read";
|
|
406
402
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
407
403
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
404
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
408
405
|
"record.confirm-registration": "record.confirm-registration";
|
|
406
|
+
"record.import": "record.import";
|
|
407
|
+
"record.reindex": "record.reindex";
|
|
409
408
|
"record.reject-registration": "record.reject-registration";
|
|
409
|
+
"user.data-seeding": "user.data-seeding";
|
|
410
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
410
411
|
}>;
|
|
411
412
|
}, z.core.$strip>, z.ZodObject<{
|
|
412
413
|
type: z.ZodEnum<{
|
|
@@ -418,38 +419,38 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
418
419
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
419
420
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
420
421
|
administrativeArea: "administrativeArea";
|
|
421
|
-
location: "location";
|
|
422
422
|
all: "all";
|
|
423
|
+
location: "location";
|
|
423
424
|
}>>;
|
|
424
425
|
}, z.core.$strip>>;
|
|
425
426
|
}, z.core.$strip>, z.ZodObject<{
|
|
426
427
|
type: z.ZodEnum<{
|
|
428
|
+
"record.archive": "record.archive";
|
|
427
429
|
"record.edit": "record.edit";
|
|
430
|
+
"record.register": "record.register";
|
|
428
431
|
"record.reject": "record.reject";
|
|
429
|
-
"record.archive": "record.archive";
|
|
430
|
-
"record.unarchive": "record.unarchive";
|
|
431
432
|
"record.review-duplicates": "record.review-duplicates";
|
|
432
|
-
"record.
|
|
433
|
+
"record.unarchive": "record.unarchive";
|
|
433
434
|
}>;
|
|
434
435
|
options: z.ZodOptional<z.ZodObject<{
|
|
435
436
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
436
437
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
437
438
|
administrativeArea: "administrativeArea";
|
|
438
|
-
location: "location";
|
|
439
439
|
all: "all";
|
|
440
|
+
location: "location";
|
|
440
441
|
}>>;
|
|
441
442
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
442
443
|
administrativeArea: "administrativeArea";
|
|
443
|
-
location: "location";
|
|
444
444
|
all: "all";
|
|
445
|
+
location: "location";
|
|
445
446
|
}>>;
|
|
446
447
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
447
448
|
user: "user";
|
|
448
449
|
}>>;
|
|
449
450
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
450
451
|
administrativeArea: "administrativeArea";
|
|
451
|
-
location: "location";
|
|
452
452
|
all: "all";
|
|
453
|
+
location: "location";
|
|
453
454
|
}>>;
|
|
454
455
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
455
456
|
user: "user";
|
|
@@ -457,39 +458,39 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
457
458
|
}, z.core.$strip>>;
|
|
458
459
|
}, z.core.$strip>, z.ZodObject<{
|
|
459
460
|
type: z.ZodEnum<{
|
|
460
|
-
"record.
|
|
461
|
+
"record.correct": "record.correct";
|
|
461
462
|
"record.read": "record.read";
|
|
462
463
|
"record.request-correction": "record.request-correction";
|
|
463
|
-
"record.
|
|
464
|
+
"record.search": "record.search";
|
|
464
465
|
"record.unassign-others": "record.unassign-others";
|
|
465
466
|
}>;
|
|
466
467
|
options: z.ZodOptional<z.ZodObject<{
|
|
467
468
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
468
469
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
469
470
|
administrativeArea: "administrativeArea";
|
|
470
|
-
location: "location";
|
|
471
471
|
all: "all";
|
|
472
|
+
location: "location";
|
|
472
473
|
}>>;
|
|
473
474
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
474
475
|
administrativeArea: "administrativeArea";
|
|
475
|
-
location: "location";
|
|
476
476
|
all: "all";
|
|
477
|
+
location: "location";
|
|
477
478
|
}>>;
|
|
478
479
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
479
480
|
user: "user";
|
|
480
481
|
}>>;
|
|
481
482
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
482
483
|
administrativeArea: "administrativeArea";
|
|
483
|
-
location: "location";
|
|
484
484
|
all: "all";
|
|
485
|
+
location: "location";
|
|
485
486
|
}>>;
|
|
486
487
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
487
488
|
user: "user";
|
|
488
489
|
}>>;
|
|
489
490
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
490
491
|
administrativeArea: "administrativeArea";
|
|
491
|
-
location: "location";
|
|
492
492
|
all: "all";
|
|
493
|
+
location: "location";
|
|
493
494
|
}>>;
|
|
494
495
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
495
496
|
user: "user";
|
|
@@ -501,29 +502,29 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
501
502
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
502
503
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
503
504
|
administrativeArea: "administrativeArea";
|
|
504
|
-
location: "location";
|
|
505
505
|
all: "all";
|
|
506
|
+
location: "location";
|
|
506
507
|
}>>;
|
|
507
508
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
508
509
|
administrativeArea: "administrativeArea";
|
|
509
|
-
location: "location";
|
|
510
510
|
all: "all";
|
|
511
|
+
location: "location";
|
|
511
512
|
}>>;
|
|
512
513
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
513
514
|
user: "user";
|
|
514
515
|
}>>;
|
|
515
516
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
516
517
|
administrativeArea: "administrativeArea";
|
|
517
|
-
location: "location";
|
|
518
518
|
all: "all";
|
|
519
|
+
location: "location";
|
|
519
520
|
}>>;
|
|
520
521
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
521
522
|
user: "user";
|
|
522
523
|
}>>;
|
|
523
524
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
524
525
|
administrativeArea: "administrativeArea";
|
|
525
|
-
location: "location";
|
|
526
526
|
all: "all";
|
|
527
|
+
location: "location";
|
|
527
528
|
}>>;
|
|
528
529
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
529
530
|
user: "user";
|
|
@@ -536,29 +537,29 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
536
537
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
537
538
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
538
539
|
administrativeArea: "administrativeArea";
|
|
539
|
-
location: "location";
|
|
540
540
|
all: "all";
|
|
541
|
+
location: "location";
|
|
541
542
|
}>>;
|
|
542
543
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
543
544
|
administrativeArea: "administrativeArea";
|
|
544
|
-
location: "location";
|
|
545
545
|
all: "all";
|
|
546
|
+
location: "location";
|
|
546
547
|
}>>;
|
|
547
548
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
548
549
|
user: "user";
|
|
549
550
|
}>>;
|
|
550
551
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
551
552
|
administrativeArea: "administrativeArea";
|
|
552
|
-
location: "location";
|
|
553
553
|
all: "all";
|
|
554
|
+
location: "location";
|
|
554
555
|
}>>;
|
|
555
556
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
556
557
|
user: "user";
|
|
557
558
|
}>>;
|
|
558
559
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
559
560
|
administrativeArea: "administrativeArea";
|
|
560
|
-
location: "location";
|
|
561
561
|
all: "all";
|
|
562
|
+
location: "location";
|
|
562
563
|
}>>;
|
|
563
564
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
564
565
|
user: "user";
|
|
@@ -573,8 +574,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
573
574
|
options: z.ZodOptional<z.ZodObject<{
|
|
574
575
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
575
576
|
administrativeArea: "administrativeArea";
|
|
576
|
-
location: "location";
|
|
577
577
|
all: "all";
|
|
578
|
+
location: "location";
|
|
578
579
|
}>>;
|
|
579
580
|
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
580
581
|
}, z.core.$strip>>;
|
|
@@ -586,8 +587,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
586
587
|
options: z.ZodOptional<z.ZodObject<{
|
|
587
588
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
588
589
|
administrativeArea: "administrativeArea";
|
|
589
|
-
location: "location";
|
|
590
590
|
all: "all";
|
|
591
|
+
location: "location";
|
|
591
592
|
}>>;
|
|
592
593
|
}, z.core.$strip>>;
|
|
593
594
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -595,8 +596,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
595
596
|
options: z.ZodOptional<z.ZodObject<{
|
|
596
597
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
597
598
|
administrativeArea: "administrativeArea";
|
|
598
|
-
location: "location";
|
|
599
599
|
all: "all";
|
|
600
|
+
location: "location";
|
|
600
601
|
}>>;
|
|
601
602
|
}, z.core.$strip>>;
|
|
602
603
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -612,43 +613,44 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
612
613
|
}, z.core.$strip>], "type">;
|
|
613
614
|
export type Scope = z.infer<typeof Scope>;
|
|
614
615
|
export declare const ScopeType: z.ZodEnum<{
|
|
615
|
-
"
|
|
616
|
-
"record.create": "record.create";
|
|
617
|
-
"record.read": "record.read";
|
|
618
|
-
"record.declare": "record.declare";
|
|
619
|
-
"record.notify": "record.notify";
|
|
620
|
-
"record.edit": "record.edit";
|
|
621
|
-
"record.reject": "record.reject";
|
|
622
|
-
"record.archive": "record.archive";
|
|
623
|
-
"record.unarchive": "record.unarchive";
|
|
624
|
-
"record.review-duplicates": "record.review-duplicates";
|
|
625
|
-
"record.register": "record.register";
|
|
626
|
-
"record.print-certified-copies": "record.print-certified-copies";
|
|
627
|
-
"record.request-correction": "record.request-correction";
|
|
628
|
-
"record.correct": "record.correct";
|
|
629
|
-
"record.unassign-others": "record.unassign-others";
|
|
630
|
-
"record.custom-action": "record.custom-action";
|
|
616
|
+
"attachment.upload": "attachment.upload";
|
|
631
617
|
bypassratelimit: "bypassratelimit";
|
|
632
|
-
"record.reindex": "record.reindex";
|
|
633
|
-
"user.data-seeding": "user.data-seeding";
|
|
634
|
-
"integration.create": "integration.create";
|
|
635
|
-
"record.import": "record.import";
|
|
636
618
|
"config.update-all": "config.update-all";
|
|
637
|
-
"
|
|
638
|
-
"
|
|
639
|
-
"
|
|
619
|
+
"dashboard.view": "dashboard.view";
|
|
620
|
+
"integration.create": "integration.create";
|
|
621
|
+
"location.edit": "location.edit";
|
|
622
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
640
623
|
"performance.read": "performance.read";
|
|
641
624
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
642
625
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
626
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
627
|
+
"record.archive": "record.archive";
|
|
643
628
|
"record.confirm-registration": "record.confirm-registration";
|
|
629
|
+
"record.correct": "record.correct";
|
|
630
|
+
"record.create": "record.create";
|
|
631
|
+
"record.custom-action": "record.custom-action";
|
|
632
|
+
"record.declare": "record.declare";
|
|
633
|
+
"record.edit": "record.edit";
|
|
634
|
+
"record.import": "record.import";
|
|
635
|
+
"record.notify": "record.notify";
|
|
636
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
637
|
+
"record.read": "record.read";
|
|
638
|
+
"record.register": "record.register";
|
|
639
|
+
"record.reindex": "record.reindex";
|
|
640
|
+
"record.reject": "record.reject";
|
|
644
641
|
"record.reject-registration": "record.reject-registration";
|
|
645
|
-
"
|
|
646
|
-
"
|
|
642
|
+
"record.request-correction": "record.request-correction";
|
|
643
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
644
|
+
"record.search": "record.search";
|
|
645
|
+
"record.unarchive": "record.unarchive";
|
|
646
|
+
"record.unassign-others": "record.unassign-others";
|
|
647
647
|
"user.create": "user.create";
|
|
648
|
+
"user.data-seeding": "user.data-seeding";
|
|
648
649
|
"user.edit": "user.edit";
|
|
650
|
+
"user.read": "user.read";
|
|
651
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
649
652
|
"user.search": "user.search";
|
|
650
653
|
workqueue: "workqueue";
|
|
651
|
-
"dashboard.view": "dashboard.view";
|
|
652
654
|
}>;
|
|
653
655
|
export type ScopeType = z.infer<typeof ScopeType>;
|
|
654
656
|
/**
|
|
@@ -675,40 +677,40 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
675
677
|
type: "record.create" | "record.declare" | "record.notify";
|
|
676
678
|
options?: {
|
|
677
679
|
event?: string[] | undefined;
|
|
678
|
-
placeOfEvent?: "administrativeArea" | "
|
|
680
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
679
681
|
} | undefined;
|
|
680
682
|
} | {
|
|
681
|
-
type: "record.
|
|
683
|
+
type: "record.archive" | "record.edit" | "record.register" | "record.reject" | "record.review-duplicates" | "record.unarchive";
|
|
682
684
|
options?: {
|
|
683
685
|
event?: string[] | undefined;
|
|
684
|
-
placeOfEvent?: "administrativeArea" | "
|
|
685
|
-
notifiedIn?: "administrativeArea" | "
|
|
686
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
687
|
+
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
686
688
|
notifiedBy?: "user" | undefined;
|
|
687
|
-
declaredIn?: "administrativeArea" | "
|
|
689
|
+
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
688
690
|
declaredBy?: "user" | undefined;
|
|
689
691
|
} | undefined;
|
|
690
692
|
} | {
|
|
691
|
-
type: "record.
|
|
693
|
+
type: "record.correct" | "record.read" | "record.request-correction" | "record.search" | "record.unassign-others";
|
|
692
694
|
options?: {
|
|
693
695
|
event?: string[] | undefined;
|
|
694
|
-
placeOfEvent?: "administrativeArea" | "
|
|
695
|
-
notifiedIn?: "administrativeArea" | "
|
|
696
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
697
|
+
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
696
698
|
notifiedBy?: "user" | undefined;
|
|
697
|
-
declaredIn?: "administrativeArea" | "
|
|
699
|
+
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
698
700
|
declaredBy?: "user" | undefined;
|
|
699
|
-
registeredIn?: "administrativeArea" | "
|
|
701
|
+
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
700
702
|
registeredBy?: "user" | undefined;
|
|
701
703
|
} | undefined;
|
|
702
704
|
} | {
|
|
703
705
|
type: "record.custom-action";
|
|
704
706
|
options?: {
|
|
705
707
|
event?: string[] | undefined;
|
|
706
|
-
placeOfEvent?: "administrativeArea" | "
|
|
707
|
-
notifiedIn?: "administrativeArea" | "
|
|
708
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
709
|
+
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
708
710
|
notifiedBy?: "user" | undefined;
|
|
709
|
-
declaredIn?: "administrativeArea" | "
|
|
711
|
+
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
710
712
|
declaredBy?: "user" | undefined;
|
|
711
|
-
registeredIn?: "administrativeArea" | "
|
|
713
|
+
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
712
714
|
registeredBy?: "user" | undefined;
|
|
713
715
|
customActionTypes?: string[] | undefined;
|
|
714
716
|
} | undefined;
|
|
@@ -716,32 +718,32 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
716
718
|
type: "record.print-certified-copies";
|
|
717
719
|
options?: {
|
|
718
720
|
event?: string[] | undefined;
|
|
719
|
-
placeOfEvent?: "administrativeArea" | "
|
|
720
|
-
notifiedIn?: "administrativeArea" | "
|
|
721
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
722
|
+
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
721
723
|
notifiedBy?: "user" | undefined;
|
|
722
|
-
declaredIn?: "administrativeArea" | "
|
|
724
|
+
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
723
725
|
declaredBy?: "user" | undefined;
|
|
724
|
-
registeredIn?: "administrativeArea" | "
|
|
726
|
+
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
725
727
|
registeredBy?: "user" | undefined;
|
|
726
728
|
templates?: string[] | undefined;
|
|
727
729
|
} | undefined;
|
|
728
730
|
} | {
|
|
729
731
|
type: "user.create" | "user.edit";
|
|
730
732
|
options?: {
|
|
731
|
-
accessLevel?: "administrativeArea" | "
|
|
733
|
+
accessLevel?: "administrativeArea" | "all" | "location" | undefined;
|
|
732
734
|
role?: string[] | undefined;
|
|
733
735
|
} | undefined;
|
|
734
736
|
} | {
|
|
735
737
|
type: "user.read" | "user.search";
|
|
736
738
|
options?: {
|
|
737
|
-
accessLevel?: "administrativeArea" | "
|
|
739
|
+
accessLevel?: "administrativeArea" | "all" | "location" | undefined;
|
|
738
740
|
} | undefined;
|
|
739
741
|
} | {
|
|
740
|
-
type: "
|
|
742
|
+
type: "attachment.upload" | "bypassratelimit" | "config.update-all" | "integration.create" | "location.edit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.confirm-registration" | "record.import" | "record.reindex" | "record.reject-registration" | "user.data-seeding" | "user.read-only-my-audit";
|
|
741
743
|
} | {
|
|
742
744
|
type: "organisation.read-locations";
|
|
743
745
|
options?: {
|
|
744
|
-
accessLevel?: "administrativeArea" | "
|
|
746
|
+
accessLevel?: "administrativeArea" | "all" | "location" | undefined;
|
|
745
747
|
} | undefined;
|
|
746
748
|
} | {
|
|
747
749
|
type: "workqueue";
|
|
@@ -827,7 +829,7 @@ export declare function canUserCreateEvent(userScopes: EncodedScope[], eventType
|
|
|
827
829
|
* @param scopes Array of scopes in object format.
|
|
828
830
|
* @returns Array of scopes in string format, encoded for use in JWT tokens.
|
|
829
831
|
*/
|
|
830
|
-
export declare function defineScopes(scopes: Scope[]): (string & z
|
|
832
|
+
export declare function defineScopes(scopes: Scope[]): (string & z.$brand<"EncodedScope">)[];
|
|
831
833
|
/**
|
|
832
834
|
* Helper for defining user roles. Should be used in country config.
|
|
833
835
|
*
|
|
@@ -835,7 +837,7 @@ export declare function defineScopes(scopes: Scope[]): (string & z.core.$brand<"
|
|
|
835
837
|
*/
|
|
836
838
|
export declare function defineRoles(roles: Role[]): {
|
|
837
839
|
id: string;
|
|
838
|
-
scopes: (string & z
|
|
840
|
+
scopes: (string & z.$brand<"EncodedScope">)[];
|
|
839
841
|
}[];
|
|
840
842
|
export {};
|
|
841
843
|
//# sourceMappingURL=scopes.d.ts.map
|