@opencrvs/toolkit 2.1.0-rc.d078d1a → 2.1.0-rc.d1b9774
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/README.md +1 -0
- package/build.sh +9 -1
- package/create-countryconfig/index.js +284 -62
- package/create-countryconfig/node_modules/.bin/degit +21 -0
- package/create-countryconfig/package.json +4 -1
- package/dist/application-config/index.js +265 -209
- package/dist/authentication/index.d.ts +67 -0
- package/dist/authentication/index.d.ts.map +1 -0
- package/dist/authentication/index.js +750 -0
- package/dist/cli.js +1744 -104
- package/dist/commons/api/router.d.ts +599 -69
- package/dist/commons/conditionals/conditionals.d.ts +6 -6
- package/dist/commons/conditionals/validate.d.ts +13 -11
- package/dist/commons/events/ActionDocument.d.ts +4 -4
- package/dist/commons/events/ActionInput.d.ts +4 -4
- package/dist/commons/events/AdvancedSearchConfig.d.ts +12 -0
- package/dist/commons/events/AuditLog.d.ts +110 -0
- package/dist/commons/events/EventDocument.d.ts +470 -2
- package/dist/commons/events/EventIndex.d.ts +2 -2
- package/dist/commons/events/EventMetadata.d.ts +1 -11
- package/dist/commons/events/EventStatus.d.ts +19 -0
- package/dist/commons/events/FieldConfig.d.ts +78 -53
- package/dist/commons/events/FieldTypeMapping.d.ts +12 -12
- package/dist/commons/events/FieldValue.d.ts +2 -2
- package/dist/commons/events/PlainDate.d.ts +8 -0
- package/dist/commons/events/SummaryConfig.d.ts +249 -0
- package/dist/commons/events/locations.d.ts +158 -26
- package/dist/commons/events/mocks.test.utils.d.ts +30 -0
- package/dist/commons/events/test.utils.d.ts +8 -4
- package/dist/commons/events/utils.d.ts +2 -2
- package/dist/commons/notification/UserNotifications.d.ts +28 -13
- package/dist/commons/notification/dispatch.d.ts +10 -0
- package/dist/commons/notification/index.d.ts +1 -0
- package/dist/conditionals/index.js +79 -57
- package/dist/csv.d.ts +25 -0
- package/dist/csv.d.ts.map +1 -0
- package/dist/csv.js +120 -0
- package/dist/environment/index.d.ts +1 -0
- package/dist/environment/index.d.ts.map +1 -1
- package/dist/environment/index.js +10 -0
- package/dist/environment/logger.d.ts +15 -3
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/paths.d.ts +7 -0
- package/dist/environment/paths.d.ts.map +1 -0
- package/dist/environment/paths.js +72 -0
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/questions.js +20 -14
- package/dist/environment/setup-environment.js +3 -2
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/environment/templates.js +2 -1
- package/dist/environment/update-workflows.d.ts.map +1 -1
- package/dist/environment/update-workflows.js +17 -5
- package/dist/environment/upgrade.d.ts +2 -0
- package/dist/environment/upgrade.d.ts.map +1 -0
- package/dist/environment/upgrade.js +82 -0
- package/dist/environment/users.js +11 -13
- package/dist/events/index.js +1079 -843
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +2 -2
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +2 -2
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +3 -0
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-recovery-link-notifications.js +511 -0
- package/dist/migrations/v2.1/add-translations.d.ts +9 -0
- package/dist/migrations/v2.1/add-translations.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-translations.js +213 -0
- package/dist/migrations/v2.1/enable-telemetry.d.ts +3 -0
- package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
- package/dist/migrations/v2.1/enable-telemetry.js +438 -0
- package/dist/migrations/v2.1/index.d.ts.map +1 -1
- package/dist/migrations/v2.1/index.js +1058 -0
- package/dist/notification/index.js +1149 -1419
- package/dist/scopes/index.d.ts +102 -32
- package/dist/scopes/index.js +79 -57
- package/dist/telemetry/index.d.ts +45 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +39 -0
- package/dist/templates/charts-values/opencrvs-services/values.yaml +4 -3
- package/dist/templates/charts-values/opentelemetry/values.yaml +95 -0
- package/dist/templates/charts-values/traefik/values.yaml +23 -9
- package/dist/templates/inventory/inventory.template.yml +1 -3
- package/dist/translations/check.d.ts +19 -0
- package/dist/translations/check.d.ts.map +1 -0
- package/dist/translations/check.js +127 -0
- package/dist/verify/endpoints.d.ts +2 -0
- package/dist/verify/endpoints.d.ts.map +1 -0
- package/dist/verify/endpoints.js +345 -0
- package/opencrvs-toolkit-2.1.0-rc.d1b9774.tgz +0 -0
- package/package.json +12 -7
- package/tsconfig.build.json +11 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +3 -0
- package/dist/templates/inventory/production.example.yml +0 -77
- package/dist/templates/inventory/qa.example.yml +0 -48
- package/opencrvs-toolkit-2.1.0-rc.d078d1a.tgz +0 -0
- package/tsconfig.tsbuildinfo +0 -1
package/dist/scopes/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare const RecordScopeTypeV2: z.ZodEnum<{
|
|
|
36
36
|
}>;
|
|
37
37
|
export type RecordScopeTypeV2 = z.infer<typeof RecordScopeTypeV2>;
|
|
38
38
|
declare const AllScopeOptions: z.ZodObject<{
|
|
39
|
-
event: z.
|
|
39
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
40
40
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
41
41
|
administrativeArea: "administrativeArea";
|
|
42
42
|
all: "all";
|
|
@@ -58,6 +58,13 @@ declare const AllScopeOptions: z.ZodObject<{
|
|
|
58
58
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
59
59
|
user: "user";
|
|
60
60
|
}>>;
|
|
61
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
62
|
+
ARCHIVED: "ARCHIVED";
|
|
63
|
+
CREATED: "CREATED";
|
|
64
|
+
DECLARED: "DECLARED";
|
|
65
|
+
NOTIFIED: "NOTIFIED";
|
|
66
|
+
REGISTERED: "REGISTERED";
|
|
67
|
+
}>>>>;
|
|
61
68
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
62
69
|
administrativeArea: "administrativeArea";
|
|
63
70
|
all: "all";
|
|
@@ -94,8 +101,8 @@ declare const AllScopeOptions: z.ZodObject<{
|
|
|
94
101
|
all: "all";
|
|
95
102
|
location: "location";
|
|
96
103
|
}>>;
|
|
97
|
-
role: z.ZodOptional<z.
|
|
98
|
-
ids: z.
|
|
104
|
+
role: z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
105
|
+
ids: z.ZodPreprocess<z.ZodArray<z.ZodString>>;
|
|
99
106
|
}, z.core.$strip>;
|
|
100
107
|
type AllScopeOptions = z.infer<typeof AllScopeOptions>;
|
|
101
108
|
export declare const ScopeOptionKey: z.ZodEnum<{
|
|
@@ -111,6 +118,7 @@ export declare const ScopeOptionKey: z.ZodEnum<{
|
|
|
111
118
|
registeredBy: "registeredBy";
|
|
112
119
|
registeredIn: "registeredIn";
|
|
113
120
|
role: "role";
|
|
121
|
+
status: "status";
|
|
114
122
|
}>;
|
|
115
123
|
export type ScopeOptionKey = z.infer<typeof ScopeOptionKey>;
|
|
116
124
|
export declare const ScopesWithPlaceEventOptions: z.ZodEnum<{
|
|
@@ -123,13 +131,13 @@ export declare const ScopesWithDeclaredOptions: z.ZodEnum<{
|
|
|
123
131
|
"record.edit": "record.edit";
|
|
124
132
|
"record.register": "record.register";
|
|
125
133
|
"record.reject": "record.reject";
|
|
126
|
-
"record.review-duplicates": "record.review-duplicates";
|
|
127
134
|
"record.unarchive": "record.unarchive";
|
|
128
135
|
}>;
|
|
129
136
|
export declare const ScopesWithFullOptions: z.ZodEnum<{
|
|
130
137
|
"record.correct": "record.correct";
|
|
131
138
|
"record.read": "record.read";
|
|
132
139
|
"record.request-correction": "record.request-correction";
|
|
140
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
133
141
|
"record.search": "record.search";
|
|
134
142
|
"record.unassign-others": "record.unassign-others";
|
|
135
143
|
}>;
|
|
@@ -140,7 +148,7 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
140
148
|
"record.notify": "record.notify";
|
|
141
149
|
}>;
|
|
142
150
|
options: z.ZodOptional<z.ZodObject<{
|
|
143
|
-
event: z.
|
|
151
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
144
152
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
145
153
|
administrativeArea: "administrativeArea";
|
|
146
154
|
all: "all";
|
|
@@ -153,11 +161,10 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
153
161
|
"record.edit": "record.edit";
|
|
154
162
|
"record.register": "record.register";
|
|
155
163
|
"record.reject": "record.reject";
|
|
156
|
-
"record.review-duplicates": "record.review-duplicates";
|
|
157
164
|
"record.unarchive": "record.unarchive";
|
|
158
165
|
}>;
|
|
159
166
|
options: z.ZodOptional<z.ZodObject<{
|
|
160
|
-
event: z.
|
|
167
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
161
168
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
162
169
|
administrativeArea: "administrativeArea";
|
|
163
170
|
all: "all";
|
|
@@ -179,17 +186,25 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
179
186
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
180
187
|
user: "user";
|
|
181
188
|
}>>;
|
|
189
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
190
|
+
ARCHIVED: "ARCHIVED";
|
|
191
|
+
CREATED: "CREATED";
|
|
192
|
+
DECLARED: "DECLARED";
|
|
193
|
+
NOTIFIED: "NOTIFIED";
|
|
194
|
+
REGISTERED: "REGISTERED";
|
|
195
|
+
}>>>>;
|
|
182
196
|
}, z.core.$strip>>;
|
|
183
197
|
}, z.core.$strip>, z.ZodObject<{
|
|
184
198
|
type: z.ZodEnum<{
|
|
185
199
|
"record.correct": "record.correct";
|
|
186
200
|
"record.read": "record.read";
|
|
187
201
|
"record.request-correction": "record.request-correction";
|
|
202
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
188
203
|
"record.search": "record.search";
|
|
189
204
|
"record.unassign-others": "record.unassign-others";
|
|
190
205
|
}>;
|
|
191
206
|
options: z.ZodOptional<z.ZodObject<{
|
|
192
|
-
event: z.
|
|
207
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
193
208
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
194
209
|
administrativeArea: "administrativeArea";
|
|
195
210
|
all: "all";
|
|
@@ -211,6 +226,13 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
211
226
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
212
227
|
user: "user";
|
|
213
228
|
}>>;
|
|
229
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
230
|
+
ARCHIVED: "ARCHIVED";
|
|
231
|
+
CREATED: "CREATED";
|
|
232
|
+
DECLARED: "DECLARED";
|
|
233
|
+
NOTIFIED: "NOTIFIED";
|
|
234
|
+
REGISTERED: "REGISTERED";
|
|
235
|
+
}>>>>;
|
|
214
236
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
215
237
|
administrativeArea: "administrativeArea";
|
|
216
238
|
all: "all";
|
|
@@ -246,7 +268,7 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
246
268
|
}, z.core.$strip>, z.ZodObject<{
|
|
247
269
|
type: z.ZodLiteral<"record.custom-action">;
|
|
248
270
|
options: z.ZodOptional<z.ZodObject<{
|
|
249
|
-
event: z.
|
|
271
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
250
272
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
251
273
|
administrativeArea: "administrativeArea";
|
|
252
274
|
all: "all";
|
|
@@ -268,6 +290,13 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
268
290
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
269
291
|
user: "user";
|
|
270
292
|
}>>;
|
|
293
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
294
|
+
ARCHIVED: "ARCHIVED";
|
|
295
|
+
CREATED: "CREATED";
|
|
296
|
+
DECLARED: "DECLARED";
|
|
297
|
+
NOTIFIED: "NOTIFIED";
|
|
298
|
+
REGISTERED: "REGISTERED";
|
|
299
|
+
}>>>>;
|
|
271
300
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
272
301
|
administrativeArea: "administrativeArea";
|
|
273
302
|
all: "all";
|
|
@@ -299,12 +328,12 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
299
328
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
300
329
|
}>]>, z.ZodString]>>>;
|
|
301
330
|
}, z.core.$strip>>;
|
|
302
|
-
customActionTypes: z.
|
|
331
|
+
customActionTypes: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
303
332
|
}, z.core.$strip>>;
|
|
304
333
|
}, z.core.$strip>, z.ZodObject<{
|
|
305
334
|
type: z.ZodLiteral<"record.print-certified-copies">;
|
|
306
335
|
options: z.ZodOptional<z.ZodObject<{
|
|
307
|
-
event: z.
|
|
336
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
308
337
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
309
338
|
administrativeArea: "administrativeArea";
|
|
310
339
|
all: "all";
|
|
@@ -326,6 +355,13 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
326
355
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
327
356
|
user: "user";
|
|
328
357
|
}>>;
|
|
358
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
359
|
+
ARCHIVED: "ARCHIVED";
|
|
360
|
+
CREATED: "CREATED";
|
|
361
|
+
DECLARED: "DECLARED";
|
|
362
|
+
NOTIFIED: "NOTIFIED";
|
|
363
|
+
REGISTERED: "REGISTERED";
|
|
364
|
+
}>>>>;
|
|
329
365
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
330
366
|
administrativeArea: "administrativeArea";
|
|
331
367
|
all: "all";
|
|
@@ -357,7 +393,7 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
357
393
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
358
394
|
}>]>, z.ZodString]>>>;
|
|
359
395
|
}, z.core.$strip>>;
|
|
360
|
-
templates: z.
|
|
396
|
+
templates: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
361
397
|
}, z.core.$strip>>;
|
|
362
398
|
}, z.core.$strip>], "type">;
|
|
363
399
|
declare const SystemScopeType: z.ZodEnum<{
|
|
@@ -391,7 +427,7 @@ export declare const UserScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
391
427
|
all: "all";
|
|
392
428
|
location: "location";
|
|
393
429
|
}>>;
|
|
394
|
-
role: z.ZodOptional<z.
|
|
430
|
+
role: z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
395
431
|
}, z.core.$strip>>;
|
|
396
432
|
}, z.core.$strip>, z.ZodObject<{
|
|
397
433
|
type: z.ZodEnum<{
|
|
@@ -429,7 +465,7 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
429
465
|
"record.notify": "record.notify";
|
|
430
466
|
}>;
|
|
431
467
|
options: z.ZodOptional<z.ZodObject<{
|
|
432
|
-
event: z.
|
|
468
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
433
469
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
434
470
|
}, z.core.$strip>>;
|
|
435
471
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -438,11 +474,10 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
438
474
|
"record.edit": "record.edit";
|
|
439
475
|
"record.register": "record.register";
|
|
440
476
|
"record.reject": "record.reject";
|
|
441
|
-
"record.review-duplicates": "record.review-duplicates";
|
|
442
477
|
"record.unarchive": "record.unarchive";
|
|
443
478
|
}>;
|
|
444
479
|
options: z.ZodOptional<z.ZodObject<{
|
|
445
|
-
event: z.
|
|
480
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
446
481
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
447
482
|
notifiedIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
448
483
|
notifiedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -454,11 +489,12 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
454
489
|
"record.correct": "record.correct";
|
|
455
490
|
"record.read": "record.read";
|
|
456
491
|
"record.request-correction": "record.request-correction";
|
|
492
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
457
493
|
"record.search": "record.search";
|
|
458
494
|
"record.unassign-others": "record.unassign-others";
|
|
459
495
|
}>;
|
|
460
496
|
options: z.ZodOptional<z.ZodObject<{
|
|
461
|
-
event: z.
|
|
497
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
462
498
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
463
499
|
notifiedIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
464
500
|
notifiedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -493,7 +529,7 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
493
529
|
}, z.core.$strip>, z.ZodObject<{
|
|
494
530
|
type: z.ZodLiteral<"record.print-certified-copies">;
|
|
495
531
|
options: z.ZodOptional<z.ZodObject<{
|
|
496
|
-
event: z.
|
|
532
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
497
533
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
498
534
|
notifiedIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
499
535
|
notifiedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -535,6 +571,7 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
535
571
|
"attachment.upload": "attachment.upload";
|
|
536
572
|
bypassratelimit: "bypassratelimit";
|
|
537
573
|
"config.update-all": "config.update-all";
|
|
574
|
+
"integration.audit.read": "integration.audit.read";
|
|
538
575
|
"integration.create": "integration.create";
|
|
539
576
|
"location.edit": "location.edit";
|
|
540
577
|
"performance.read": "performance.read";
|
|
@@ -555,7 +592,7 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
555
592
|
"record.notify": "record.notify";
|
|
556
593
|
}>;
|
|
557
594
|
options: z.ZodOptional<z.ZodObject<{
|
|
558
|
-
event: z.
|
|
595
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
559
596
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
560
597
|
administrativeArea: "administrativeArea";
|
|
561
598
|
all: "all";
|
|
@@ -568,11 +605,10 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
568
605
|
"record.edit": "record.edit";
|
|
569
606
|
"record.register": "record.register";
|
|
570
607
|
"record.reject": "record.reject";
|
|
571
|
-
"record.review-duplicates": "record.review-duplicates";
|
|
572
608
|
"record.unarchive": "record.unarchive";
|
|
573
609
|
}>;
|
|
574
610
|
options: z.ZodOptional<z.ZodObject<{
|
|
575
|
-
event: z.
|
|
611
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
576
612
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
577
613
|
administrativeArea: "administrativeArea";
|
|
578
614
|
all: "all";
|
|
@@ -594,17 +630,25 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
594
630
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
595
631
|
user: "user";
|
|
596
632
|
}>>;
|
|
633
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
634
|
+
ARCHIVED: "ARCHIVED";
|
|
635
|
+
CREATED: "CREATED";
|
|
636
|
+
DECLARED: "DECLARED";
|
|
637
|
+
NOTIFIED: "NOTIFIED";
|
|
638
|
+
REGISTERED: "REGISTERED";
|
|
639
|
+
}>>>>;
|
|
597
640
|
}, z.core.$strip>>;
|
|
598
641
|
}, z.core.$strip>, z.ZodObject<{
|
|
599
642
|
type: z.ZodEnum<{
|
|
600
643
|
"record.correct": "record.correct";
|
|
601
644
|
"record.read": "record.read";
|
|
602
645
|
"record.request-correction": "record.request-correction";
|
|
646
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
603
647
|
"record.search": "record.search";
|
|
604
648
|
"record.unassign-others": "record.unassign-others";
|
|
605
649
|
}>;
|
|
606
650
|
options: z.ZodOptional<z.ZodObject<{
|
|
607
|
-
event: z.
|
|
651
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
608
652
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
609
653
|
administrativeArea: "administrativeArea";
|
|
610
654
|
all: "all";
|
|
@@ -626,6 +670,13 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
626
670
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
627
671
|
user: "user";
|
|
628
672
|
}>>;
|
|
673
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
674
|
+
ARCHIVED: "ARCHIVED";
|
|
675
|
+
CREATED: "CREATED";
|
|
676
|
+
DECLARED: "DECLARED";
|
|
677
|
+
NOTIFIED: "NOTIFIED";
|
|
678
|
+
REGISTERED: "REGISTERED";
|
|
679
|
+
}>>>>;
|
|
629
680
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
630
681
|
administrativeArea: "administrativeArea";
|
|
631
682
|
all: "all";
|
|
@@ -661,7 +712,7 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
661
712
|
}, z.core.$strip>, z.ZodObject<{
|
|
662
713
|
type: z.ZodLiteral<"record.custom-action">;
|
|
663
714
|
options: z.ZodOptional<z.ZodObject<{
|
|
664
|
-
event: z.
|
|
715
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
665
716
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
666
717
|
administrativeArea: "administrativeArea";
|
|
667
718
|
all: "all";
|
|
@@ -683,6 +734,13 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
683
734
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
684
735
|
user: "user";
|
|
685
736
|
}>>;
|
|
737
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
738
|
+
ARCHIVED: "ARCHIVED";
|
|
739
|
+
CREATED: "CREATED";
|
|
740
|
+
DECLARED: "DECLARED";
|
|
741
|
+
NOTIFIED: "NOTIFIED";
|
|
742
|
+
REGISTERED: "REGISTERED";
|
|
743
|
+
}>>>>;
|
|
686
744
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
687
745
|
administrativeArea: "administrativeArea";
|
|
688
746
|
all: "all";
|
|
@@ -714,12 +772,12 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
714
772
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
715
773
|
}>]>, z.ZodString]>>>;
|
|
716
774
|
}, z.core.$strip>>;
|
|
717
|
-
customActionTypes: z.
|
|
775
|
+
customActionTypes: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
718
776
|
}, z.core.$strip>>;
|
|
719
777
|
}, z.core.$strip>, z.ZodObject<{
|
|
720
778
|
type: z.ZodLiteral<"record.print-certified-copies">;
|
|
721
779
|
options: z.ZodOptional<z.ZodObject<{
|
|
722
|
-
event: z.
|
|
780
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
723
781
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
724
782
|
administrativeArea: "administrativeArea";
|
|
725
783
|
all: "all";
|
|
@@ -741,6 +799,13 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
741
799
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
742
800
|
user: "user";
|
|
743
801
|
}>>;
|
|
802
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
803
|
+
ARCHIVED: "ARCHIVED";
|
|
804
|
+
CREATED: "CREATED";
|
|
805
|
+
DECLARED: "DECLARED";
|
|
806
|
+
NOTIFIED: "NOTIFIED";
|
|
807
|
+
REGISTERED: "REGISTERED";
|
|
808
|
+
}>>>>;
|
|
744
809
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
745
810
|
administrativeArea: "administrativeArea";
|
|
746
811
|
all: "all";
|
|
@@ -772,7 +837,7 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
772
837
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
773
838
|
}>]>, z.ZodString]>>>;
|
|
774
839
|
}, z.core.$strip>>;
|
|
775
|
-
templates: z.
|
|
840
|
+
templates: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
776
841
|
}, z.core.$strip>>;
|
|
777
842
|
}, z.core.$strip>, z.ZodObject<{
|
|
778
843
|
type: z.ZodEnum<{
|
|
@@ -785,7 +850,7 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
785
850
|
all: "all";
|
|
786
851
|
location: "location";
|
|
787
852
|
}>>;
|
|
788
|
-
role: z.ZodOptional<z.
|
|
853
|
+
role: z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
789
854
|
}, z.core.$strip>>;
|
|
790
855
|
}, z.core.$strip>, z.ZodObject<{
|
|
791
856
|
type: z.ZodEnum<{
|
|
@@ -811,12 +876,12 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
811
876
|
}, z.core.$strip>, z.ZodObject<{
|
|
812
877
|
type: z.ZodLiteral<"workqueue">;
|
|
813
878
|
options: z.ZodObject<{
|
|
814
|
-
ids: z.
|
|
879
|
+
ids: z.ZodPreprocess<z.ZodArray<z.ZodString>>;
|
|
815
880
|
}, z.core.$strip>;
|
|
816
881
|
}, z.core.$strip>, z.ZodObject<{
|
|
817
882
|
type: z.ZodLiteral<"dashboard.view">;
|
|
818
883
|
options: z.ZodObject<{
|
|
819
|
-
ids: z.
|
|
884
|
+
ids: z.ZodPreprocess<z.ZodArray<z.ZodString>>;
|
|
820
885
|
}, z.core.$strip>;
|
|
821
886
|
}, z.core.$strip>], "type">;
|
|
822
887
|
export type Scope = z.infer<typeof Scope>;
|
|
@@ -825,6 +890,7 @@ export declare const ScopeType: z.ZodEnum<{
|
|
|
825
890
|
bypassratelimit: "bypassratelimit";
|
|
826
891
|
"config.update-all": "config.update-all";
|
|
827
892
|
"dashboard.view": "dashboard.view";
|
|
893
|
+
"integration.audit.read": "integration.audit.read";
|
|
828
894
|
"integration.create": "integration.create";
|
|
829
895
|
"location.edit": "location.edit";
|
|
830
896
|
"organisation.read-locations": "organisation.read-locations";
|
|
@@ -888,7 +954,7 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
888
954
|
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
889
955
|
} | undefined;
|
|
890
956
|
} | {
|
|
891
|
-
type: "record.archive" | "record.edit" | "record.register" | "record.reject" | "record.
|
|
957
|
+
type: "record.archive" | "record.edit" | "record.register" | "record.reject" | "record.unarchive";
|
|
892
958
|
options?: {
|
|
893
959
|
event?: string[] | undefined;
|
|
894
960
|
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
@@ -896,9 +962,10 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
896
962
|
notifiedBy?: "user" | undefined;
|
|
897
963
|
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
898
964
|
declaredBy?: "user" | undefined;
|
|
965
|
+
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[] | undefined;
|
|
899
966
|
} | undefined;
|
|
900
967
|
} | {
|
|
901
|
-
type: "record.correct" | "record.read" | "record.request-correction" | "record.search" | "record.unassign-others";
|
|
968
|
+
type: "record.correct" | "record.read" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unassign-others";
|
|
902
969
|
options?: {
|
|
903
970
|
event?: string[] | undefined;
|
|
904
971
|
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
@@ -906,6 +973,7 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
906
973
|
notifiedBy?: "user" | undefined;
|
|
907
974
|
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
908
975
|
declaredBy?: "user" | undefined;
|
|
976
|
+
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[] | undefined;
|
|
909
977
|
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
910
978
|
registeredBy?: "user" | undefined;
|
|
911
979
|
flags?: {
|
|
@@ -923,6 +991,7 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
923
991
|
notifiedBy?: "user" | undefined;
|
|
924
992
|
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
925
993
|
declaredBy?: "user" | undefined;
|
|
994
|
+
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[] | undefined;
|
|
926
995
|
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
927
996
|
registeredBy?: "user" | undefined;
|
|
928
997
|
flags?: {
|
|
@@ -941,6 +1010,7 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
941
1010
|
notifiedBy?: "user" | undefined;
|
|
942
1011
|
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
943
1012
|
declaredBy?: "user" | undefined;
|
|
1013
|
+
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[] | undefined;
|
|
944
1014
|
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
945
1015
|
registeredBy?: "user" | undefined;
|
|
946
1016
|
flags?: {
|
|
@@ -962,7 +1032,7 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
962
1032
|
accessLevel?: "administrativeArea" | "all" | "location" | undefined;
|
|
963
1033
|
} | undefined;
|
|
964
1034
|
} | {
|
|
965
|
-
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";
|
|
1035
|
+
type: "attachment.upload" | "bypassratelimit" | "config.update-all" | "integration.audit.read" | "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";
|
|
966
1036
|
} | {
|
|
967
1037
|
type: "organisation.read-locations";
|
|
968
1038
|
options?: {
|