@opencrvs/toolkit 2.1.0-rc.d24aa5e → 2.1.0-rc.d2ebb60
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 +2 -1
- package/dist/commons/api/router.d.ts +3270 -3306
- 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 +507 -507
- package/dist/commons/events/AuditLog.d.ts +43 -43
- 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 +336 -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/locations.d.ts +4 -4
- package/dist/commons/events/mocks.test.utils.d.ts +2 -2
- 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 +35 -38
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- 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 +3 -7
- package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
- package/dist/notification/index.js +3 -6
- package/dist/scopes/index.d.ts +146 -146
- package/opencrvs-toolkit-2.1.0-rc.d2ebb60.tgz +0 -0
- package/package.json +3 -4
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.d24aa5e.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,20 @@ 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
|
-
"profile.electronic-signature": "profile.electronic-signature";
|
|
404
|
-
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
399
|
+
"integration.create": "integration.create";
|
|
405
400
|
"performance.read": "performance.read";
|
|
406
401
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
407
402
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
403
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
408
404
|
"record.confirm-registration": "record.confirm-registration";
|
|
405
|
+
"record.import": "record.import";
|
|
406
|
+
"record.reindex": "record.reindex";
|
|
409
407
|
"record.reject-registration": "record.reject-registration";
|
|
408
|
+
"user.data-seeding": "user.data-seeding";
|
|
409
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
410
410
|
}>;
|
|
411
411
|
}, z.core.$strip>, z.ZodObject<{
|
|
412
412
|
type: z.ZodEnum<{
|
|
@@ -418,38 +418,38 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
418
418
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
419
419
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
420
420
|
administrativeArea: "administrativeArea";
|
|
421
|
-
location: "location";
|
|
422
421
|
all: "all";
|
|
422
|
+
location: "location";
|
|
423
423
|
}>>;
|
|
424
424
|
}, z.core.$strip>>;
|
|
425
425
|
}, z.core.$strip>, z.ZodObject<{
|
|
426
426
|
type: z.ZodEnum<{
|
|
427
|
+
"record.archive": "record.archive";
|
|
427
428
|
"record.edit": "record.edit";
|
|
429
|
+
"record.register": "record.register";
|
|
428
430
|
"record.reject": "record.reject";
|
|
429
|
-
"record.archive": "record.archive";
|
|
430
|
-
"record.unarchive": "record.unarchive";
|
|
431
431
|
"record.review-duplicates": "record.review-duplicates";
|
|
432
|
-
"record.
|
|
432
|
+
"record.unarchive": "record.unarchive";
|
|
433
433
|
}>;
|
|
434
434
|
options: z.ZodOptional<z.ZodObject<{
|
|
435
435
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
436
436
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
437
437
|
administrativeArea: "administrativeArea";
|
|
438
|
-
location: "location";
|
|
439
438
|
all: "all";
|
|
439
|
+
location: "location";
|
|
440
440
|
}>>;
|
|
441
441
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
442
442
|
administrativeArea: "administrativeArea";
|
|
443
|
-
location: "location";
|
|
444
443
|
all: "all";
|
|
444
|
+
location: "location";
|
|
445
445
|
}>>;
|
|
446
446
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
447
447
|
user: "user";
|
|
448
448
|
}>>;
|
|
449
449
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
450
450
|
administrativeArea: "administrativeArea";
|
|
451
|
-
location: "location";
|
|
452
451
|
all: "all";
|
|
452
|
+
location: "location";
|
|
453
453
|
}>>;
|
|
454
454
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
455
455
|
user: "user";
|
|
@@ -457,39 +457,39 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
457
457
|
}, z.core.$strip>>;
|
|
458
458
|
}, z.core.$strip>, z.ZodObject<{
|
|
459
459
|
type: z.ZodEnum<{
|
|
460
|
-
"record.
|
|
460
|
+
"record.correct": "record.correct";
|
|
461
461
|
"record.read": "record.read";
|
|
462
462
|
"record.request-correction": "record.request-correction";
|
|
463
|
-
"record.
|
|
463
|
+
"record.search": "record.search";
|
|
464
464
|
"record.unassign-others": "record.unassign-others";
|
|
465
465
|
}>;
|
|
466
466
|
options: z.ZodOptional<z.ZodObject<{
|
|
467
467
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
468
468
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
469
469
|
administrativeArea: "administrativeArea";
|
|
470
|
-
location: "location";
|
|
471
470
|
all: "all";
|
|
471
|
+
location: "location";
|
|
472
472
|
}>>;
|
|
473
473
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
474
474
|
administrativeArea: "administrativeArea";
|
|
475
|
-
location: "location";
|
|
476
475
|
all: "all";
|
|
476
|
+
location: "location";
|
|
477
477
|
}>>;
|
|
478
478
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
479
479
|
user: "user";
|
|
480
480
|
}>>;
|
|
481
481
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
482
482
|
administrativeArea: "administrativeArea";
|
|
483
|
-
location: "location";
|
|
484
483
|
all: "all";
|
|
484
|
+
location: "location";
|
|
485
485
|
}>>;
|
|
486
486
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
487
487
|
user: "user";
|
|
488
488
|
}>>;
|
|
489
489
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
490
490
|
administrativeArea: "administrativeArea";
|
|
491
|
-
location: "location";
|
|
492
491
|
all: "all";
|
|
492
|
+
location: "location";
|
|
493
493
|
}>>;
|
|
494
494
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
495
495
|
user: "user";
|
|
@@ -501,29 +501,29 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
501
501
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
502
502
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
503
503
|
administrativeArea: "administrativeArea";
|
|
504
|
-
location: "location";
|
|
505
504
|
all: "all";
|
|
505
|
+
location: "location";
|
|
506
506
|
}>>;
|
|
507
507
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
508
508
|
administrativeArea: "administrativeArea";
|
|
509
|
-
location: "location";
|
|
510
509
|
all: "all";
|
|
510
|
+
location: "location";
|
|
511
511
|
}>>;
|
|
512
512
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
513
513
|
user: "user";
|
|
514
514
|
}>>;
|
|
515
515
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
516
516
|
administrativeArea: "administrativeArea";
|
|
517
|
-
location: "location";
|
|
518
517
|
all: "all";
|
|
518
|
+
location: "location";
|
|
519
519
|
}>>;
|
|
520
520
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
521
521
|
user: "user";
|
|
522
522
|
}>>;
|
|
523
523
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
524
524
|
administrativeArea: "administrativeArea";
|
|
525
|
-
location: "location";
|
|
526
525
|
all: "all";
|
|
526
|
+
location: "location";
|
|
527
527
|
}>>;
|
|
528
528
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
529
529
|
user: "user";
|
|
@@ -536,29 +536,29 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
536
536
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
537
537
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
538
538
|
administrativeArea: "administrativeArea";
|
|
539
|
-
location: "location";
|
|
540
539
|
all: "all";
|
|
540
|
+
location: "location";
|
|
541
541
|
}>>;
|
|
542
542
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
543
543
|
administrativeArea: "administrativeArea";
|
|
544
|
-
location: "location";
|
|
545
544
|
all: "all";
|
|
545
|
+
location: "location";
|
|
546
546
|
}>>;
|
|
547
547
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
548
548
|
user: "user";
|
|
549
549
|
}>>;
|
|
550
550
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
551
551
|
administrativeArea: "administrativeArea";
|
|
552
|
-
location: "location";
|
|
553
552
|
all: "all";
|
|
553
|
+
location: "location";
|
|
554
554
|
}>>;
|
|
555
555
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
556
556
|
user: "user";
|
|
557
557
|
}>>;
|
|
558
558
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
559
559
|
administrativeArea: "administrativeArea";
|
|
560
|
-
location: "location";
|
|
561
560
|
all: "all";
|
|
561
|
+
location: "location";
|
|
562
562
|
}>>;
|
|
563
563
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
564
564
|
user: "user";
|
|
@@ -573,8 +573,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
573
573
|
options: z.ZodOptional<z.ZodObject<{
|
|
574
574
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
575
575
|
administrativeArea: "administrativeArea";
|
|
576
|
-
location: "location";
|
|
577
576
|
all: "all";
|
|
577
|
+
location: "location";
|
|
578
578
|
}>>;
|
|
579
579
|
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
580
580
|
}, z.core.$strip>>;
|
|
@@ -586,8 +586,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
586
586
|
options: z.ZodOptional<z.ZodObject<{
|
|
587
587
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
588
588
|
administrativeArea: "administrativeArea";
|
|
589
|
-
location: "location";
|
|
590
589
|
all: "all";
|
|
590
|
+
location: "location";
|
|
591
591
|
}>>;
|
|
592
592
|
}, z.core.$strip>>;
|
|
593
593
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -595,8 +595,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
595
595
|
options: z.ZodOptional<z.ZodObject<{
|
|
596
596
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
597
597
|
administrativeArea: "administrativeArea";
|
|
598
|
-
location: "location";
|
|
599
598
|
all: "all";
|
|
599
|
+
location: "location";
|
|
600
600
|
}>>;
|
|
601
601
|
}, z.core.$strip>>;
|
|
602
602
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -612,43 +612,43 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
612
612
|
}, z.core.$strip>], "type">;
|
|
613
613
|
export type Scope = z.infer<typeof Scope>;
|
|
614
614
|
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";
|
|
615
|
+
"attachment.upload": "attachment.upload";
|
|
631
616
|
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
617
|
"config.update-all": "config.update-all";
|
|
637
|
-
"
|
|
638
|
-
"
|
|
639
|
-
"
|
|
618
|
+
"dashboard.view": "dashboard.view";
|
|
619
|
+
"integration.create": "integration.create";
|
|
620
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
640
621
|
"performance.read": "performance.read";
|
|
641
622
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
642
623
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
624
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
625
|
+
"record.archive": "record.archive";
|
|
643
626
|
"record.confirm-registration": "record.confirm-registration";
|
|
627
|
+
"record.correct": "record.correct";
|
|
628
|
+
"record.create": "record.create";
|
|
629
|
+
"record.custom-action": "record.custom-action";
|
|
630
|
+
"record.declare": "record.declare";
|
|
631
|
+
"record.edit": "record.edit";
|
|
632
|
+
"record.import": "record.import";
|
|
633
|
+
"record.notify": "record.notify";
|
|
634
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
635
|
+
"record.read": "record.read";
|
|
636
|
+
"record.register": "record.register";
|
|
637
|
+
"record.reindex": "record.reindex";
|
|
638
|
+
"record.reject": "record.reject";
|
|
644
639
|
"record.reject-registration": "record.reject-registration";
|
|
645
|
-
"
|
|
646
|
-
"
|
|
640
|
+
"record.request-correction": "record.request-correction";
|
|
641
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
642
|
+
"record.search": "record.search";
|
|
643
|
+
"record.unarchive": "record.unarchive";
|
|
644
|
+
"record.unassign-others": "record.unassign-others";
|
|
647
645
|
"user.create": "user.create";
|
|
646
|
+
"user.data-seeding": "user.data-seeding";
|
|
648
647
|
"user.edit": "user.edit";
|
|
648
|
+
"user.read": "user.read";
|
|
649
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
649
650
|
"user.search": "user.search";
|
|
650
651
|
workqueue: "workqueue";
|
|
651
|
-
"dashboard.view": "dashboard.view";
|
|
652
652
|
}>;
|
|
653
653
|
export type ScopeType = z.infer<typeof ScopeType>;
|
|
654
654
|
/**
|
|
@@ -675,40 +675,40 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
675
675
|
type: "record.create" | "record.declare" | "record.notify";
|
|
676
676
|
options?: {
|
|
677
677
|
event?: string[] | undefined;
|
|
678
|
-
placeOfEvent?: "administrativeArea" | "
|
|
678
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
679
679
|
} | undefined;
|
|
680
680
|
} | {
|
|
681
|
-
type: "record.
|
|
681
|
+
type: "record.archive" | "record.edit" | "record.register" | "record.reject" | "record.review-duplicates" | "record.unarchive";
|
|
682
682
|
options?: {
|
|
683
683
|
event?: string[] | undefined;
|
|
684
|
-
placeOfEvent?: "administrativeArea" | "
|
|
685
|
-
notifiedIn?: "administrativeArea" | "
|
|
684
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
685
|
+
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
686
686
|
notifiedBy?: "user" | undefined;
|
|
687
|
-
declaredIn?: "administrativeArea" | "
|
|
687
|
+
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
688
688
|
declaredBy?: "user" | undefined;
|
|
689
689
|
} | undefined;
|
|
690
690
|
} | {
|
|
691
|
-
type: "record.
|
|
691
|
+
type: "record.correct" | "record.read" | "record.request-correction" | "record.search" | "record.unassign-others";
|
|
692
692
|
options?: {
|
|
693
693
|
event?: string[] | undefined;
|
|
694
|
-
placeOfEvent?: "administrativeArea" | "
|
|
695
|
-
notifiedIn?: "administrativeArea" | "
|
|
694
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
695
|
+
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
696
696
|
notifiedBy?: "user" | undefined;
|
|
697
|
-
declaredIn?: "administrativeArea" | "
|
|
697
|
+
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
698
698
|
declaredBy?: "user" | undefined;
|
|
699
|
-
registeredIn?: "administrativeArea" | "
|
|
699
|
+
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
700
700
|
registeredBy?: "user" | undefined;
|
|
701
701
|
} | undefined;
|
|
702
702
|
} | {
|
|
703
703
|
type: "record.custom-action";
|
|
704
704
|
options?: {
|
|
705
705
|
event?: string[] | undefined;
|
|
706
|
-
placeOfEvent?: "administrativeArea" | "
|
|
707
|
-
notifiedIn?: "administrativeArea" | "
|
|
706
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
707
|
+
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
708
708
|
notifiedBy?: "user" | undefined;
|
|
709
|
-
declaredIn?: "administrativeArea" | "
|
|
709
|
+
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
710
710
|
declaredBy?: "user" | undefined;
|
|
711
|
-
registeredIn?: "administrativeArea" | "
|
|
711
|
+
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
712
712
|
registeredBy?: "user" | undefined;
|
|
713
713
|
customActionTypes?: string[] | undefined;
|
|
714
714
|
} | undefined;
|
|
@@ -716,32 +716,32 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
716
716
|
type: "record.print-certified-copies";
|
|
717
717
|
options?: {
|
|
718
718
|
event?: string[] | undefined;
|
|
719
|
-
placeOfEvent?: "administrativeArea" | "
|
|
720
|
-
notifiedIn?: "administrativeArea" | "
|
|
719
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
720
|
+
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
721
721
|
notifiedBy?: "user" | undefined;
|
|
722
|
-
declaredIn?: "administrativeArea" | "
|
|
722
|
+
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
723
723
|
declaredBy?: "user" | undefined;
|
|
724
|
-
registeredIn?: "administrativeArea" | "
|
|
724
|
+
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
725
725
|
registeredBy?: "user" | undefined;
|
|
726
726
|
templates?: string[] | undefined;
|
|
727
727
|
} | undefined;
|
|
728
728
|
} | {
|
|
729
729
|
type: "user.create" | "user.edit";
|
|
730
730
|
options?: {
|
|
731
|
-
accessLevel?: "administrativeArea" | "
|
|
731
|
+
accessLevel?: "administrativeArea" | "all" | "location" | undefined;
|
|
732
732
|
role?: string[] | undefined;
|
|
733
733
|
} | undefined;
|
|
734
734
|
} | {
|
|
735
735
|
type: "user.read" | "user.search";
|
|
736
736
|
options?: {
|
|
737
|
-
accessLevel?: "administrativeArea" | "
|
|
737
|
+
accessLevel?: "administrativeArea" | "all" | "location" | undefined;
|
|
738
738
|
} | undefined;
|
|
739
739
|
} | {
|
|
740
|
-
type: "
|
|
740
|
+
type: "attachment.upload" | "bypassratelimit" | "config.update-all" | "integration.create" | "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
741
|
} | {
|
|
742
742
|
type: "organisation.read-locations";
|
|
743
743
|
options?: {
|
|
744
|
-
accessLevel?: "administrativeArea" | "
|
|
744
|
+
accessLevel?: "administrativeArea" | "all" | "location" | undefined;
|
|
745
745
|
} | undefined;
|
|
746
746
|
} | {
|
|
747
747
|
type: "workqueue";
|
|
@@ -827,7 +827,7 @@ export declare function canUserCreateEvent(userScopes: EncodedScope[], eventType
|
|
|
827
827
|
* @param scopes Array of scopes in object format.
|
|
828
828
|
* @returns Array of scopes in string format, encoded for use in JWT tokens.
|
|
829
829
|
*/
|
|
830
|
-
export declare function defineScopes(scopes: Scope[]): (string & z
|
|
830
|
+
export declare function defineScopes(scopes: Scope[]): (string & z.$brand<"EncodedScope">)[];
|
|
831
831
|
/**
|
|
832
832
|
* Helper for defining user roles. Should be used in country config.
|
|
833
833
|
*
|
|
@@ -835,7 +835,7 @@ export declare function defineScopes(scopes: Scope[]): (string & z.core.$brand<"
|
|
|
835
835
|
*/
|
|
836
836
|
export declare function defineRoles(roles: Role[]): {
|
|
837
837
|
id: string;
|
|
838
|
-
scopes: (string & z
|
|
838
|
+
scopes: (string & z.$brand<"EncodedScope">)[];
|
|
839
839
|
}[];
|
|
840
840
|
export {};
|
|
841
841
|
//# sourceMappingURL=scopes.d.ts.map
|