@opencrvs/toolkit 2.0.0-rc.157566a → 2.0.0-rc.1584152
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 +15 -0
- package/build.sh +5 -4
- package/dist/application-config/index.js +29 -6
- package/dist/cli.js +3186 -4921
- package/dist/commons/api/router.d.ts +623 -20
- package/dist/commons/conditionals/conditionals.d.ts +6 -6
- package/dist/commons/events/ActionConfig.d.ts +202 -0
- package/dist/commons/events/ActionDocument.d.ts +44 -0
- package/dist/commons/events/ActionInput.d.ts +26 -0
- package/dist/commons/events/ActionType.d.ts +6 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +18 -0
- package/dist/commons/events/AuditLog.d.ts +2 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +42 -0
- package/dist/commons/events/Draft.d.ts +2 -0
- package/dist/commons/events/EventConfig.d.ts +2 -0
- package/dist/commons/events/EventDocument.d.ts +22 -0
- package/dist/commons/events/EventIndex.d.ts +25 -0
- package/dist/commons/events/EventMetadata.d.ts +26 -0
- package/dist/commons/events/FieldConfig.d.ts +15 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +44 -2
- package/dist/commons/events/locations.d.ts +1 -0
- package/dist/commons/events/scopes.d.ts +1 -0
- package/dist/commons/events/state/index.d.ts +8 -0
- package/dist/commons/events/state/utils.d.ts +9 -0
- package/dist/commons/events/test.utils.d.ts +9 -1
- package/dist/commons/events/utils.d.ts +15 -1
- package/dist/conditionals/index.js +12 -5
- package/dist/environment/custom-types.d.ts +33 -0
- package/dist/environment/custom-types.d.ts.map +1 -0
- package/dist/environment/custom-types.js +12 -0
- package/dist/environment/derived-variables.d.ts +134 -0
- package/dist/environment/derived-variables.d.ts.map +1 -0
- package/dist/environment/derived-variables.js +169 -0
- package/dist/environment/editor-questions.d.ts +4 -0
- package/dist/environment/editor-questions.d.ts.map +1 -0
- package/dist/environment/editor-questions.js +67 -0
- package/dist/environment/git.d.ts +5 -0
- package/dist/environment/git.d.ts.map +1 -0
- package/dist/environment/git.js +38 -0
- package/dist/environment/github.d.ts +26 -0
- package/dist/environment/github.d.ts.map +1 -0
- package/dist/environment/github.js +247 -0
- package/dist/environment/index.d.ts +5 -0
- package/dist/environment/index.d.ts.map +1 -0
- package/dist/environment/index.js +71 -0
- package/dist/environment/logger.d.ts +15 -0
- package/dist/environment/logger.d.ts.map +1 -0
- package/dist/environment/logger.js +25 -0
- package/dist/environment/manage-users.d.ts +11 -0
- package/dist/environment/manage-users.d.ts.map +1 -0
- package/dist/environment/manage-users.js +497 -0
- package/dist/environment/questions-helper.d.ts +15 -0
- package/dist/environment/questions-helper.d.ts.map +1 -0
- package/dist/environment/questions-helper.js +70 -0
- package/dist/environment/questions.d.ts +199 -0
- package/dist/environment/questions.d.ts.map +1 -0
- package/dist/environment/questions.js +412 -0
- package/dist/environment/setup-environment.d.ts +2 -0
- package/dist/environment/setup-environment.d.ts.map +1 -0
- package/dist/environment/setup-environment.js +794 -0
- package/dist/environment/ssh-keygen.d.ts +5 -0
- package/dist/environment/ssh-keygen.d.ts.map +1 -0
- package/dist/environment/ssh-keygen.js +21 -0
- package/dist/environment/swarm-to-k8s.d.ts +2 -0
- package/dist/environment/swarm-to-k8s.d.ts.map +1 -0
- package/dist/environment/swarm-to-k8s.js +173 -0
- package/dist/environment/templates.d.ts +27 -0
- package/dist/environment/templates.d.ts.map +1 -0
- package/dist/environment/templates.js +163 -0
- package/dist/environment/update-workflows.d.ts +2 -0
- package/dist/environment/update-workflows.d.ts.map +1 -0
- package/dist/environment/update-workflows.js +169 -0
- package/dist/environment/users.d.ts +2 -0
- package/dist/environment/users.d.ts.map +1 -0
- package/dist/environment/users.js +112 -0
- package/dist/environment/utils.d.ts +18 -0
- package/dist/environment/utils.d.ts.map +1 -0
- package/dist/environment/utils.js +100 -0
- package/dist/events/index.js +206 -24
- package/dist/migrations/v2.0/index.js +88 -5139
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +3 -0
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-explicit-correction-flags.js +234 -0
- package/dist/migrations/v2.1/index.d.ts +6 -0
- package/dist/migrations/v2.1/index.d.ts.map +1 -0
- package/dist/migrations/v2.1/index.js +218 -0
- package/dist/notification/index.js +148 -17
- package/dist/scopes/index.d.ts +96 -2
- package/dist/scopes/index.js +12 -5
- package/dist/templates/charts-values/dependencies/values.override.yaml +4 -0
- package/dist/templates/charts-values/dependencies/values.yaml +83 -0
- package/dist/templates/charts-values/opencrvs-services/values.override.yaml +4 -0
- package/dist/templates/charts-values/opencrvs-services/values.yaml +81 -0
- package/dist/templates/charts-values/traefik/values.override.yaml +4 -0
- package/dist/templates/charts-values/traefik/values.yaml +115 -0
- package/dist/templates/inventory/inventory.template.yml +100 -0
- package/dist/templates/inventory/production.example.yml +77 -0
- package/dist/templates/inventory/qa.example.yml +48 -0
- package/opencrvs-toolkit-2.0.0-rc.1584152.tgz +0 -0
- package/package.json +15 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.0.0-rc.157566a.tgz +0 -0
|
@@ -79,6 +79,7 @@ var RecordScopeTypeV2 = z2.enum([
|
|
|
79
79
|
"record.edit",
|
|
80
80
|
"record.reject",
|
|
81
81
|
"record.archive",
|
|
82
|
+
"record.unarchive",
|
|
82
83
|
"record.review-duplicates",
|
|
83
84
|
"record.register",
|
|
84
85
|
"record.print-certified-copies",
|
|
@@ -118,11 +119,13 @@ var scopeOptionsPlaceEvent = z2.object({
|
|
|
118
119
|
event: scopeByEvent,
|
|
119
120
|
placeOfEvent: JurisdictionFilter.optional()
|
|
120
121
|
}).describe("Options applicable to all record scopes.");
|
|
121
|
-
var
|
|
122
|
+
var scopeOptionsDeclaredOrNotified = scopeOptionsPlaceEvent.extend({
|
|
123
|
+
notifiedIn: JurisdictionFilter.optional(),
|
|
124
|
+
notifiedBy: UserFilter.optional(),
|
|
122
125
|
declaredIn: JurisdictionFilter.optional(),
|
|
123
126
|
declaredBy: UserFilter.optional()
|
|
124
127
|
}).describe("Options applicable to actions that may take place after DECLARE");
|
|
125
|
-
var AllRecordScopeOptions =
|
|
128
|
+
var AllRecordScopeOptions = scopeOptionsDeclaredOrNotified.extend({
|
|
126
129
|
registeredIn: JurisdictionFilter.optional(),
|
|
127
130
|
registeredBy: UserFilter.optional()
|
|
128
131
|
}).describe(
|
|
@@ -160,6 +163,8 @@ var ResolvedScopeOptionsPlaceEvent = z2.object({
|
|
|
160
163
|
"Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
|
|
161
164
|
);
|
|
162
165
|
var ResolvedScopeOptionsDeclared = ResolvedScopeOptionsPlaceEvent.extend({
|
|
166
|
+
notifiedIn: UUID.nullish(),
|
|
167
|
+
notifiedBy: z2.string().optional(),
|
|
163
168
|
declaredIn: UUID.nullish(),
|
|
164
169
|
declaredBy: z2.string().optional()
|
|
165
170
|
}).describe(
|
|
@@ -180,6 +185,7 @@ var ScopesWithDeclaredOptions = RecordScopeTypeV2.extract([
|
|
|
180
185
|
"record.edit",
|
|
181
186
|
"record.reject",
|
|
182
187
|
"record.archive",
|
|
188
|
+
"record.unarchive",
|
|
183
189
|
"record.review-duplicates",
|
|
184
190
|
"record.register"
|
|
185
191
|
]);
|
|
@@ -205,7 +211,7 @@ var RecordScopeV2 = z2.discriminatedUnion("type", [
|
|
|
205
211
|
}),
|
|
206
212
|
z2.object({
|
|
207
213
|
type: ScopesWithDeclaredOptions,
|
|
208
|
-
options:
|
|
214
|
+
options: scopeOptionsDeclaredOrNotified.optional()
|
|
209
215
|
}),
|
|
210
216
|
z2.object({
|
|
211
217
|
type: ScopesWithFullOptions,
|
|
@@ -294,8 +300,9 @@ var EncodedScope = z2.string().brand("EncodedScope");
|
|
|
294
300
|
var DEFAULT_SCOPE_OPTIONS = {
|
|
295
301
|
placeOfEvent: JurisdictionFilter.enum.all,
|
|
296
302
|
accessLevel: JurisdictionFilter.enum.all,
|
|
297
|
-
|
|
298
|
-
declaredIn: JurisdictionFilter.enum.all
|
|
303
|
+
notifiedIn: JurisdictionFilter.enum.all,
|
|
304
|
+
declaredIn: JurisdictionFilter.enum.all,
|
|
305
|
+
registeredIn: JurisdictionFilter.enum.all
|
|
299
306
|
};
|
|
300
307
|
|
|
301
308
|
// ../commons/src/authentication.ts
|
|
@@ -320,6 +327,7 @@ var ActionType = {
|
|
|
320
327
|
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE",
|
|
321
328
|
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE",
|
|
322
329
|
ARCHIVE: "ARCHIVE",
|
|
330
|
+
UNARCHIVE: "UNARCHIVE",
|
|
323
331
|
// Record actions
|
|
324
332
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE",
|
|
325
333
|
REQUEST_CORRECTION: "REQUEST_CORRECTION",
|
|
@@ -339,6 +347,7 @@ var ConfirmableActions = [
|
|
|
339
347
|
ActionType.REGISTER,
|
|
340
348
|
ActionType.REJECT,
|
|
341
349
|
ActionType.ARCHIVE,
|
|
350
|
+
ActionType.UNARCHIVE,
|
|
342
351
|
ActionType.PRINT_CERTIFICATE,
|
|
343
352
|
ActionType.REQUEST_CORRECTION,
|
|
344
353
|
ActionType.APPROVE_CORRECTION,
|
|
@@ -357,6 +366,7 @@ var ActionTypes = z4.enum([
|
|
|
357
366
|
"MARK_AS_DUPLICATE",
|
|
358
367
|
"MARK_AS_NOT_DUPLICATE",
|
|
359
368
|
"ARCHIVE",
|
|
369
|
+
"UNARCHIVE",
|
|
360
370
|
"PRINT_CERTIFICATE",
|
|
361
371
|
"REQUEST_CORRECTION",
|
|
362
372
|
"REJECT_CORRECTION",
|
|
@@ -400,6 +410,7 @@ var WorkqueueActionType = ActionTypes.extract([
|
|
|
400
410
|
ActionType.REJECT,
|
|
401
411
|
ActionType.MARK_AS_DUPLICATE,
|
|
402
412
|
ActionType.ARCHIVE,
|
|
413
|
+
ActionType.UNARCHIVE,
|
|
403
414
|
ActionType.PRINT_CERTIFICATE,
|
|
404
415
|
ActionType.REQUEST_CORRECTION
|
|
405
416
|
]);
|
|
@@ -461,6 +472,7 @@ var EventActionEntrySchema = AuditLogEntryBase.extend({
|
|
|
461
472
|
"event.actions.unassign.request",
|
|
462
473
|
"event.actions.read.request",
|
|
463
474
|
"event.actions.archive.request",
|
|
475
|
+
"event.actions.unarchive.request",
|
|
464
476
|
"event.actions.reinstate.request",
|
|
465
477
|
"event.actions.print_certificate.request",
|
|
466
478
|
"event.actions.correction.request.request",
|
|
@@ -1186,6 +1198,11 @@ var ArchiveAction = ActionBase.extend(
|
|
|
1186
1198
|
content: ReasonContent
|
|
1187
1199
|
}).shape
|
|
1188
1200
|
);
|
|
1201
|
+
var UnarchiveAction = ActionBase.extend(
|
|
1202
|
+
z14.object({
|
|
1203
|
+
type: z14.literal(ActionType.UNARCHIVE)
|
|
1204
|
+
}).shape
|
|
1205
|
+
);
|
|
1189
1206
|
var CreatedAction = ActionBase.extend(
|
|
1190
1207
|
z14.object({
|
|
1191
1208
|
type: z14.literal(ActionType.CREATE)
|
|
@@ -1252,6 +1269,7 @@ var ActionDocument = z14.discriminatedUnion("type", [
|
|
|
1252
1269
|
MarkNotDuplicateAction.meta({ id: "MarkNotDuplicateAction" }),
|
|
1253
1270
|
MarkAsDuplicateAction.meta({ id: "MarkAsDuplicateAction" }),
|
|
1254
1271
|
ArchiveAction.meta({ id: "ArchiveAction" }),
|
|
1272
|
+
UnarchiveAction.meta({ id: "UnarchiveAction" }),
|
|
1255
1273
|
NotifiedAction.meta({ id: "NotifiedAction" }),
|
|
1256
1274
|
RegisterAction.meta({ id: "RegisterAction" }),
|
|
1257
1275
|
DeclareAction.meta({ id: "DeclareAction" }),
|
|
@@ -1357,6 +1375,7 @@ var RegistrationCreationMetadata = ActionCreationMetadata.extend({
|
|
|
1357
1375
|
)
|
|
1358
1376
|
});
|
|
1359
1377
|
var LegalStatuses = z16.object({
|
|
1378
|
+
[EventStatus.enum.NOTIFIED]: ActionCreationMetadata.nullish(),
|
|
1360
1379
|
[EventStatus.enum.DECLARED]: ActionCreationMetadata.nullish(),
|
|
1361
1380
|
[EventStatus.enum.REGISTERED]: RegistrationCreationMetadata.nullish()
|
|
1362
1381
|
});
|
|
@@ -1416,6 +1435,8 @@ var EventMetadataKeys = z16.enum(EventMetadataKeysArray);
|
|
|
1416
1435
|
var EventMetadataDateFieldIdInput = z16.enum([
|
|
1417
1436
|
"createdAt",
|
|
1418
1437
|
"updatedAt",
|
|
1438
|
+
"legalStatuses.NOTIFIED.createdAt",
|
|
1439
|
+
"legalStatuses.NOTIFIED.acceptedAt",
|
|
1419
1440
|
"legalStatuses.DECLARED.createdAt",
|
|
1420
1441
|
"legalStatuses.DECLARED.acceptedAt",
|
|
1421
1442
|
"legalStatuses.REGISTERED.createdAt",
|
|
@@ -1424,6 +1445,8 @@ var EventMetadataDateFieldIdInput = z16.enum([
|
|
|
1424
1445
|
var EventMetadataDateFieldId = z16.enum([
|
|
1425
1446
|
"event.createdAt",
|
|
1426
1447
|
"event.updatedAt",
|
|
1448
|
+
"event.legalStatuses.NOTIFIED.createdAt",
|
|
1449
|
+
"event.legalStatuses.NOTIFIED.acceptedAt",
|
|
1427
1450
|
"event.legalStatuses.DECLARED.createdAt",
|
|
1428
1451
|
"event.legalStatuses.DECLARED.acceptedAt",
|
|
1429
1452
|
"event.legalStatuses.REGISTERED.createdAt",
|
|
@@ -1483,7 +1506,8 @@ var Range = import_v4.z.object({
|
|
|
1483
1506
|
});
|
|
1484
1507
|
var ContainsFlags = import_v4.z.object({
|
|
1485
1508
|
anyOf: import_v4.z.array(Flag).optional(),
|
|
1486
|
-
noneOf: import_v4.z.array(Flag).optional()
|
|
1509
|
+
noneOf: import_v4.z.array(Flag).optional(),
|
|
1510
|
+
allOf: import_v4.z.array(Flag).optional()
|
|
1487
1511
|
}).meta({
|
|
1488
1512
|
id: "ContainsFlags"
|
|
1489
1513
|
});
|
|
@@ -2684,6 +2708,52 @@ var NotifyConfig = ActionConfigBase.extend(
|
|
|
2684
2708
|
type: z24.literal(ActionType.NOTIFY)
|
|
2685
2709
|
}).shape
|
|
2686
2710
|
);
|
|
2711
|
+
var DuplicateDetectedConfig = ActionConfigBase.extend(
|
|
2712
|
+
z24.object({
|
|
2713
|
+
type: z24.literal(ActionType.DUPLICATE_DETECTED),
|
|
2714
|
+
label: z24.never().optional().describe(
|
|
2715
|
+
"DUPLICATE_DETECTED is system-generated and never shown as a button, so it has no label."
|
|
2716
|
+
),
|
|
2717
|
+
supportingCopy: z24.never().optional(),
|
|
2718
|
+
icon: z24.never().optional().describe(
|
|
2719
|
+
"DUPLICATE_DETECTED is system-generated and never shown as a button, so it has no icon."
|
|
2720
|
+
),
|
|
2721
|
+
conditionals: z24.never().optional().describe(
|
|
2722
|
+
"DUPLICATE_DETECTED is system-generated and never shown as a button, so it cannot be disabled or hidden with conditionals."
|
|
2723
|
+
)
|
|
2724
|
+
}).shape
|
|
2725
|
+
);
|
|
2726
|
+
var MarkAsDuplicateConfig = ActionConfigBase.extend(
|
|
2727
|
+
z24.object({
|
|
2728
|
+
type: z24.literal(ActionType.MARK_AS_DUPLICATE)
|
|
2729
|
+
}).shape
|
|
2730
|
+
);
|
|
2731
|
+
var MarkAsNotDuplicateConfig = ActionConfigBase.extend(
|
|
2732
|
+
z24.object({
|
|
2733
|
+
type: z24.literal(ActionType.MARK_AS_NOT_DUPLICATE)
|
|
2734
|
+
}).shape
|
|
2735
|
+
);
|
|
2736
|
+
var AssignConfig = ActionConfigBase.extend(
|
|
2737
|
+
z24.object({
|
|
2738
|
+
type: z24.literal(ActionType.ASSIGN),
|
|
2739
|
+
flags: z24.never().optional().describe(
|
|
2740
|
+
"ASSIGN is a meta action excluded from flag resolution, so flags configured here would never apply."
|
|
2741
|
+
)
|
|
2742
|
+
}).shape
|
|
2743
|
+
);
|
|
2744
|
+
var UnassignConfig = ActionConfigBase.extend(
|
|
2745
|
+
z24.object({
|
|
2746
|
+
type: z24.literal(ActionType.UNASSIGN),
|
|
2747
|
+
flags: z24.never().optional().describe(
|
|
2748
|
+
"UNASSIGN is a meta action excluded from flag resolution, so flags configured here would never apply."
|
|
2749
|
+
)
|
|
2750
|
+
}).shape
|
|
2751
|
+
);
|
|
2752
|
+
var DeleteConfig = ActionConfigBase.extend(
|
|
2753
|
+
z24.object({
|
|
2754
|
+
type: z24.literal(ActionType.DELETE)
|
|
2755
|
+
}).shape
|
|
2756
|
+
);
|
|
2687
2757
|
var DeclareConfig = DeclarationActionBase.extend(
|
|
2688
2758
|
z24.object({
|
|
2689
2759
|
type: z24.literal(ActionType.DECLARE),
|
|
@@ -2708,6 +2778,11 @@ var ArchiveConfig = ActionConfigBase.extend(
|
|
|
2708
2778
|
type: z24.literal(ActionType.ARCHIVE)
|
|
2709
2779
|
}).shape
|
|
2710
2780
|
);
|
|
2781
|
+
var UnarchiveConfig = ActionConfigBase.extend(
|
|
2782
|
+
z24.object({
|
|
2783
|
+
type: z24.literal(ActionType.UNARCHIVE)
|
|
2784
|
+
}).shape
|
|
2785
|
+
);
|
|
2711
2786
|
var EditActionConfig = ActionConfigBase.extend(
|
|
2712
2787
|
z24.object({
|
|
2713
2788
|
type: z24.literal(ActionType.EDIT),
|
|
@@ -2746,7 +2821,17 @@ var RequestCorrectionConfig = ActionConfigBase.extend(
|
|
|
2746
2821
|
correctionForm: ActionFormConfig
|
|
2747
2822
|
}).shape
|
|
2748
2823
|
);
|
|
2749
|
-
var
|
|
2824
|
+
var ApproveCorrectionConfig = ActionConfigBase.extend(
|
|
2825
|
+
z24.object({
|
|
2826
|
+
type: z24.literal(ActionType.APPROVE_CORRECTION)
|
|
2827
|
+
}).shape
|
|
2828
|
+
);
|
|
2829
|
+
var RejectCorrectionConfig = ActionConfigBase.extend(
|
|
2830
|
+
z24.object({
|
|
2831
|
+
type: z24.literal(ActionType.REJECT_CORRECTION)
|
|
2832
|
+
}).shape
|
|
2833
|
+
);
|
|
2834
|
+
var CustomActionConfig = ActionConfigBase.extend(
|
|
2750
2835
|
z24.object({
|
|
2751
2836
|
type: z24.literal(ActionType.CUSTOM),
|
|
2752
2837
|
customActionType: z24.string().describe("Type identifier of the custom action."),
|
|
@@ -2757,7 +2842,7 @@ var CustomActionConfig = ActionConfigBase.merge(
|
|
|
2757
2842
|
auditHistoryLabel: TranslationConfig.describe(
|
|
2758
2843
|
'The label to show in audit history for this action. For example "Approved".'
|
|
2759
2844
|
)
|
|
2760
|
-
})
|
|
2845
|
+
}).shape
|
|
2761
2846
|
);
|
|
2762
2847
|
var ActionConfig = z24.discriminatedUnion("type", [
|
|
2763
2848
|
/*
|
|
@@ -2768,6 +2853,18 @@ var ActionConfig = z24.discriminatedUnion("type", [
|
|
|
2768
2853
|
id: "ReadActionConfig",
|
|
2769
2854
|
description: "Configuration for the read action \u2014 defines the record-tab content displayed on the event overview page."
|
|
2770
2855
|
}),
|
|
2856
|
+
AssignConfig.meta({
|
|
2857
|
+
id: "AssignActionConfig",
|
|
2858
|
+
description: "Configuration for assigning a record to the current user."
|
|
2859
|
+
}),
|
|
2860
|
+
UnassignConfig.meta({
|
|
2861
|
+
id: "UnassignActionConfig",
|
|
2862
|
+
description: "Configuration for unassigning a record from its current assignee."
|
|
2863
|
+
}),
|
|
2864
|
+
DeleteConfig.meta({
|
|
2865
|
+
id: "DeleteActionConfig",
|
|
2866
|
+
description: "Configuration for deleting a draft record."
|
|
2867
|
+
}),
|
|
2771
2868
|
NotifyConfig.meta({
|
|
2772
2869
|
id: "NotifyActionConfig",
|
|
2773
2870
|
description: "Configuration for the notify action. When present, NOTIFY uses this config independently from DECLARE. When absent, NOTIFY falls back to the DeclareActionConfig."
|
|
@@ -2776,6 +2873,18 @@ var ActionConfig = z24.discriminatedUnion("type", [
|
|
|
2776
2873
|
id: "DeclareActionConfig",
|
|
2777
2874
|
description: "Configuration for the declare action. Includes review-page fields. NOTIFY falls back to this config when no dedicated NotifyActionConfig is provided."
|
|
2778
2875
|
}),
|
|
2876
|
+
DuplicateDetectedConfig.meta({
|
|
2877
|
+
id: "DuplicateDetectedActionConfig",
|
|
2878
|
+
description: "Configuration for the system-generated duplicate-detection action. Never shown as a button, so it only supports flags \u2014 not label, icon, or conditionals."
|
|
2879
|
+
}),
|
|
2880
|
+
MarkAsDuplicateConfig.meta({
|
|
2881
|
+
id: "MarkAsDuplicateActionConfig",
|
|
2882
|
+
description: "Configuration for marking a record as a duplicate."
|
|
2883
|
+
}),
|
|
2884
|
+
MarkAsNotDuplicateConfig.meta({
|
|
2885
|
+
id: "MarkAsNotDuplicateActionConfig",
|
|
2886
|
+
description: "Configuration for marking a record as not a duplicate, after it was previously flagged as one."
|
|
2887
|
+
}),
|
|
2779
2888
|
RejectConfig.meta({
|
|
2780
2889
|
id: "RejectActionConfig",
|
|
2781
2890
|
description: "Configuration for rejecting a record before registration."
|
|
@@ -2792,6 +2901,14 @@ var ActionConfig = z24.discriminatedUnion("type", [
|
|
|
2792
2901
|
id: "RequestCorrectionActionConfig",
|
|
2793
2902
|
description: "Configuration for requesting a correction on a registered record."
|
|
2794
2903
|
}),
|
|
2904
|
+
ApproveCorrectionConfig.meta({
|
|
2905
|
+
id: "ApproveCorrectionActionConfig",
|
|
2906
|
+
description: "Configuration for approving a requested correction."
|
|
2907
|
+
}),
|
|
2908
|
+
RejectCorrectionConfig.meta({
|
|
2909
|
+
id: "RejectCorrectionActionConfig",
|
|
2910
|
+
description: "Configuration for rejecting a requested correction."
|
|
2911
|
+
}),
|
|
2795
2912
|
EditActionConfig.meta({
|
|
2796
2913
|
id: "EditActionConfig",
|
|
2797
2914
|
description: "Configuration for editing a record before registration."
|
|
@@ -2800,6 +2917,10 @@ var ActionConfig = z24.discriminatedUnion("type", [
|
|
|
2800
2917
|
id: "ArchiveActionConfig",
|
|
2801
2918
|
description: "Configuration for archiving a record."
|
|
2802
2919
|
}),
|
|
2920
|
+
UnarchiveConfig.meta({
|
|
2921
|
+
id: "UnarchiveActionConfig",
|
|
2922
|
+
description: "Configuration for unarchiving a record."
|
|
2923
|
+
}),
|
|
2803
2924
|
CustomActionConfig.meta({
|
|
2804
2925
|
id: "CustomActionConfig",
|
|
2805
2926
|
description: "Configuration for a country-defined custom action. An event may include any number of these."
|
|
@@ -3919,7 +4040,7 @@ function validateActionFlags(event2, ctx) {
|
|
|
3919
4040
|
const isInherentFlag = (value) => Object.values(InherentFlags).includes(value);
|
|
3920
4041
|
const configuredFlagIds = event2.flags.map((flag) => flag.id);
|
|
3921
4042
|
const actionFlagIds = event2.actions.flatMap(
|
|
3922
|
-
(action) => action.flags.map((flag) => flag.id)
|
|
4043
|
+
(action) => (action.flags ?? []).map((flag) => flag.id)
|
|
3923
4044
|
);
|
|
3924
4045
|
for (const actionFlagId of actionFlagIds) {
|
|
3925
4046
|
const isConfigured = configuredFlagIds.includes(actionFlagId);
|
|
@@ -4572,6 +4693,11 @@ var ArchiveActionInput = BaseActionInput.extend(
|
|
|
4572
4693
|
content: ReasonContent
|
|
4573
4694
|
}).shape
|
|
4574
4695
|
);
|
|
4696
|
+
var UnarchiveActionInput = BaseActionInput.extend(
|
|
4697
|
+
z38.object({
|
|
4698
|
+
type: z38.literal(ActionType.UNARCHIVE).default(ActionType.UNARCHIVE)
|
|
4699
|
+
}).shape
|
|
4700
|
+
);
|
|
4575
4701
|
var AssignActionInput = BaseActionInput.extend(
|
|
4576
4702
|
z38.object({
|
|
4577
4703
|
type: z38.literal(ActionType.ASSIGN),
|
|
@@ -4633,6 +4759,7 @@ var ActionInput = z38.discriminatedUnion("type", [
|
|
|
4633
4759
|
id: "MarkNotDuplicateActionInput"
|
|
4634
4760
|
}),
|
|
4635
4761
|
ArchiveActionInput.meta({ id: "ArchiveActionInput" }),
|
|
4762
|
+
UnarchiveActionInput.meta({ id: "UnarchiveActionInput" }),
|
|
4636
4763
|
AssignActionInput.meta({ id: "AssignActionInput" }),
|
|
4637
4764
|
UnassignActionInput.meta({ id: "UnassignActionInput" }),
|
|
4638
4765
|
PrintCertificateActionInput.meta({ id: "PrintCertificateActionInput" }),
|
|
@@ -4710,6 +4837,7 @@ var updateActions = ActionTypes.extract([
|
|
|
4710
4837
|
ActionType.REGISTER,
|
|
4711
4838
|
ActionType.REJECT,
|
|
4712
4839
|
ActionType.ARCHIVE,
|
|
4840
|
+
ActionType.UNARCHIVE,
|
|
4713
4841
|
ActionType.PRINT_CERTIFICATE,
|
|
4714
4842
|
ActionType.REQUEST_CORRECTION,
|
|
4715
4843
|
ActionType.APPROVE_CORRECTION,
|
|
@@ -4728,15 +4856,12 @@ var INHERENT_FLAG_RULES = [
|
|
|
4728
4856
|
},
|
|
4729
4857
|
{
|
|
4730
4858
|
// INCOMPLETE mirrors the NOTIFIED status: set by NOTIFY, cleared by any
|
|
4731
|
-
// other status-changing action (see getStatusFromActions).
|
|
4859
|
+
// other status-changing action (see getStatusFromActions). ARCHIVE/UNARCHIVE
|
|
4860
|
+
// are deliberately excluded so the flag freezes across an archive/unarchive
|
|
4861
|
+
// round trip and comes back exactly as it was.
|
|
4732
4862
|
flag: InherentFlags.INCOMPLETE,
|
|
4733
4863
|
setOn: [ActionType.NOTIFY],
|
|
4734
|
-
resetOn: [
|
|
4735
|
-
ActionType.CREATE,
|
|
4736
|
-
ActionType.DECLARE,
|
|
4737
|
-
ActionType.REGISTER,
|
|
4738
|
-
ActionType.ARCHIVE
|
|
4739
|
-
]
|
|
4864
|
+
resetOn: [ActionType.CREATE, ActionType.DECLARE, ActionType.REGISTER]
|
|
4740
4865
|
},
|
|
4741
4866
|
{
|
|
4742
4867
|
flag: InherentFlags.REJECTED,
|
|
@@ -7268,6 +7393,7 @@ var ACTION_SCOPE_MAP = {
|
|
|
7268
7393
|
[ActionType.MARK_AS_DUPLICATE]: ["record.review-duplicates"],
|
|
7269
7394
|
[ActionType.MARK_AS_NOT_DUPLICATE]: ["record.review-duplicates"],
|
|
7270
7395
|
[ActionType.ARCHIVE]: ["record.archive"],
|
|
7396
|
+
[ActionType.UNARCHIVE]: ["record.unarchive"],
|
|
7271
7397
|
[ActionType.REJECT]: ["record.reject"],
|
|
7272
7398
|
[ActionType.ASSIGN]: null,
|
|
7273
7399
|
[ActionType.UNASSIGN]: null,
|
|
@@ -7310,7 +7436,11 @@ var AVAILABLE_ACTIONS_BY_EVENT_STATUS = {
|
|
|
7310
7436
|
ActionType.CUSTOM,
|
|
7311
7437
|
ClientSpecificAction.REVIEW_CORRECTION_REQUEST
|
|
7312
7438
|
],
|
|
7313
|
-
[EventStatus.enum.ARCHIVED]: [
|
|
7439
|
+
[EventStatus.enum.ARCHIVED]: [
|
|
7440
|
+
ActionType.READ,
|
|
7441
|
+
ActionType.CUSTOM,
|
|
7442
|
+
ActionType.UNARCHIVE
|
|
7443
|
+
]
|
|
7314
7444
|
};
|
|
7315
7445
|
var ACTION_FILTERS = {
|
|
7316
7446
|
[ActionType.PRINT_CERTIFICATE]: (flags) => !flags.includes(InherentFlags.CORRECTION_REQUESTED) && !flags.some((flag) => flag.endsWith(":requested")),
|
|
@@ -7323,6 +7453,7 @@ var ACTION_FILTERS = {
|
|
|
7323
7453
|
[ActionType.REGISTER]: (flags) => !flags.includes(InherentFlags.POTENTIAL_DUPLICATE) && !flags.some((flag) => flag.endsWith(":requested")),
|
|
7324
7454
|
[ActionType.REJECT]: (flags) => !flags.includes(InherentFlags.REJECTED) && !flags.some((flag) => flag.endsWith(":requested")),
|
|
7325
7455
|
[ActionType.ARCHIVE]: (flags) => !flags.some((flag) => flag.endsWith(":requested")),
|
|
7456
|
+
[ActionType.UNARCHIVE]: (flags) => !flags.some((flag) => flag.endsWith(":requested")),
|
|
7326
7457
|
[ActionType.ASSIGN]: (flags) => !flags.some((flag) => flag.endsWith(":requested")),
|
|
7327
7458
|
[ActionType.UNASSIGN]: (flags) => !flags.some((flag) => flag.endsWith(":requested")),
|
|
7328
7459
|
[ActionType.CUSTOM]: (flags) => !flags.some((flag) => flag.endsWith(":requested"))
|
package/dist/scopes/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export type UserFilter = z.infer<typeof UserFilter>;
|
|
|
14
14
|
* The different types of scopes that can be used to control access to records. Each type has different options that can be used to further filter the records that the scope applies to.
|
|
15
15
|
* When adding new scope types, they should be added to the appropriate section based on the options they require.
|
|
16
16
|
*
|
|
17
|
-
* @see scopeOptionsPlaceEvent @see
|
|
17
|
+
* @see scopeOptionsPlaceEvent @see scopeOptionsDeclaredOrNotified @see scopeOptionsFull
|
|
18
18
|
*/
|
|
19
19
|
export declare const RecordScopeTypeV2: z.ZodEnum<{
|
|
20
20
|
"record.search": "record.search";
|
|
@@ -25,6 +25,7 @@ export declare const RecordScopeTypeV2: z.ZodEnum<{
|
|
|
25
25
|
"record.edit": "record.edit";
|
|
26
26
|
"record.reject": "record.reject";
|
|
27
27
|
"record.archive": "record.archive";
|
|
28
|
+
"record.unarchive": "record.unarchive";
|
|
28
29
|
"record.review-duplicates": "record.review-duplicates";
|
|
29
30
|
"record.register": "record.register";
|
|
30
31
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -48,6 +49,14 @@ declare const AllScopeOptions: z.ZodObject<{
|
|
|
48
49
|
location: "location";
|
|
49
50
|
all: "all";
|
|
50
51
|
}>>;
|
|
52
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
53
|
+
administrativeArea: "administrativeArea";
|
|
54
|
+
location: "location";
|
|
55
|
+
all: "all";
|
|
56
|
+
}>>;
|
|
57
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
user: "user";
|
|
59
|
+
}>>;
|
|
51
60
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
52
61
|
administrativeArea: "administrativeArea";
|
|
53
62
|
location: "location";
|
|
@@ -70,6 +79,8 @@ export declare const ScopeOptionKey: z.ZodEnum<{
|
|
|
70
79
|
role: "role";
|
|
71
80
|
event: "event";
|
|
72
81
|
placeOfEvent: "placeOfEvent";
|
|
82
|
+
notifiedIn: "notifiedIn";
|
|
83
|
+
notifiedBy: "notifiedBy";
|
|
73
84
|
declaredIn: "declaredIn";
|
|
74
85
|
declaredBy: "declaredBy";
|
|
75
86
|
registeredIn: "registeredIn";
|
|
@@ -87,6 +98,7 @@ export declare const ScopesWithDeclaredOptions: z.ZodEnum<{
|
|
|
87
98
|
"record.edit": "record.edit";
|
|
88
99
|
"record.reject": "record.reject";
|
|
89
100
|
"record.archive": "record.archive";
|
|
101
|
+
"record.unarchive": "record.unarchive";
|
|
90
102
|
"record.review-duplicates": "record.review-duplicates";
|
|
91
103
|
"record.register": "record.register";
|
|
92
104
|
}>;
|
|
@@ -116,6 +128,7 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
116
128
|
"record.edit": "record.edit";
|
|
117
129
|
"record.reject": "record.reject";
|
|
118
130
|
"record.archive": "record.archive";
|
|
131
|
+
"record.unarchive": "record.unarchive";
|
|
119
132
|
"record.review-duplicates": "record.review-duplicates";
|
|
120
133
|
"record.register": "record.register";
|
|
121
134
|
}>;
|
|
@@ -126,6 +139,14 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
126
139
|
location: "location";
|
|
127
140
|
all: "all";
|
|
128
141
|
}>>;
|
|
142
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
administrativeArea: "administrativeArea";
|
|
144
|
+
location: "location";
|
|
145
|
+
all: "all";
|
|
146
|
+
}>>;
|
|
147
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
148
|
+
user: "user";
|
|
149
|
+
}>>;
|
|
129
150
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
130
151
|
administrativeArea: "administrativeArea";
|
|
131
152
|
location: "location";
|
|
@@ -150,6 +171,14 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
150
171
|
location: "location";
|
|
151
172
|
all: "all";
|
|
152
173
|
}>>;
|
|
174
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
175
|
+
administrativeArea: "administrativeArea";
|
|
176
|
+
location: "location";
|
|
177
|
+
all: "all";
|
|
178
|
+
}>>;
|
|
179
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
user: "user";
|
|
181
|
+
}>>;
|
|
153
182
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
154
183
|
administrativeArea: "administrativeArea";
|
|
155
184
|
location: "location";
|
|
@@ -176,6 +205,14 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
176
205
|
location: "location";
|
|
177
206
|
all: "all";
|
|
178
207
|
}>>;
|
|
208
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
209
|
+
administrativeArea: "administrativeArea";
|
|
210
|
+
location: "location";
|
|
211
|
+
all: "all";
|
|
212
|
+
}>>;
|
|
213
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
214
|
+
user: "user";
|
|
215
|
+
}>>;
|
|
179
216
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
180
217
|
administrativeArea: "administrativeArea";
|
|
181
218
|
location: "location";
|
|
@@ -203,6 +240,14 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
203
240
|
location: "location";
|
|
204
241
|
all: "all";
|
|
205
242
|
}>>;
|
|
243
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
244
|
+
administrativeArea: "administrativeArea";
|
|
245
|
+
location: "location";
|
|
246
|
+
all: "all";
|
|
247
|
+
}>>;
|
|
248
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
249
|
+
user: "user";
|
|
250
|
+
}>>;
|
|
206
251
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
207
252
|
administrativeArea: "administrativeArea";
|
|
208
253
|
location: "location";
|
|
@@ -299,12 +344,15 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
299
344
|
"record.edit": "record.edit";
|
|
300
345
|
"record.reject": "record.reject";
|
|
301
346
|
"record.archive": "record.archive";
|
|
347
|
+
"record.unarchive": "record.unarchive";
|
|
302
348
|
"record.review-duplicates": "record.review-duplicates";
|
|
303
349
|
"record.register": "record.register";
|
|
304
350
|
}>;
|
|
305
351
|
options: z.ZodOptional<z.ZodObject<{
|
|
306
352
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
307
353
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
354
|
+
notifiedIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
355
|
+
notifiedBy: z.ZodOptional<z.ZodString>;
|
|
308
356
|
declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
309
357
|
declaredBy: z.ZodOptional<z.ZodString>;
|
|
310
358
|
}, z.core.$strip>>;
|
|
@@ -319,6 +367,8 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
319
367
|
options: z.ZodOptional<z.ZodObject<{
|
|
320
368
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
321
369
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
370
|
+
notifiedIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
371
|
+
notifiedBy: z.ZodOptional<z.ZodString>;
|
|
322
372
|
declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
323
373
|
declaredBy: z.ZodOptional<z.ZodString>;
|
|
324
374
|
registeredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -329,6 +379,8 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
329
379
|
options: z.ZodOptional<z.ZodObject<{
|
|
330
380
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
331
381
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
382
|
+
notifiedIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
383
|
+
notifiedBy: z.ZodOptional<z.ZodString>;
|
|
332
384
|
declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
333
385
|
declaredBy: z.ZodOptional<z.ZodString>;
|
|
334
386
|
registeredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -375,6 +427,7 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
375
427
|
"record.edit": "record.edit";
|
|
376
428
|
"record.reject": "record.reject";
|
|
377
429
|
"record.archive": "record.archive";
|
|
430
|
+
"record.unarchive": "record.unarchive";
|
|
378
431
|
"record.review-duplicates": "record.review-duplicates";
|
|
379
432
|
"record.register": "record.register";
|
|
380
433
|
}>;
|
|
@@ -385,6 +438,14 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
385
438
|
location: "location";
|
|
386
439
|
all: "all";
|
|
387
440
|
}>>;
|
|
441
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
442
|
+
administrativeArea: "administrativeArea";
|
|
443
|
+
location: "location";
|
|
444
|
+
all: "all";
|
|
445
|
+
}>>;
|
|
446
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
447
|
+
user: "user";
|
|
448
|
+
}>>;
|
|
388
449
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
389
450
|
administrativeArea: "administrativeArea";
|
|
390
451
|
location: "location";
|
|
@@ -409,6 +470,14 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
409
470
|
location: "location";
|
|
410
471
|
all: "all";
|
|
411
472
|
}>>;
|
|
473
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
474
|
+
administrativeArea: "administrativeArea";
|
|
475
|
+
location: "location";
|
|
476
|
+
all: "all";
|
|
477
|
+
}>>;
|
|
478
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
479
|
+
user: "user";
|
|
480
|
+
}>>;
|
|
412
481
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
413
482
|
administrativeArea: "administrativeArea";
|
|
414
483
|
location: "location";
|
|
@@ -435,6 +504,14 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
435
504
|
location: "location";
|
|
436
505
|
all: "all";
|
|
437
506
|
}>>;
|
|
507
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
508
|
+
administrativeArea: "administrativeArea";
|
|
509
|
+
location: "location";
|
|
510
|
+
all: "all";
|
|
511
|
+
}>>;
|
|
512
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
513
|
+
user: "user";
|
|
514
|
+
}>>;
|
|
438
515
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
439
516
|
administrativeArea: "administrativeArea";
|
|
440
517
|
location: "location";
|
|
@@ -462,6 +539,14 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
462
539
|
location: "location";
|
|
463
540
|
all: "all";
|
|
464
541
|
}>>;
|
|
542
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
543
|
+
administrativeArea: "administrativeArea";
|
|
544
|
+
location: "location";
|
|
545
|
+
all: "all";
|
|
546
|
+
}>>;
|
|
547
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
548
|
+
user: "user";
|
|
549
|
+
}>>;
|
|
465
550
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
466
551
|
administrativeArea: "administrativeArea";
|
|
467
552
|
location: "location";
|
|
@@ -535,6 +620,7 @@ export declare const ScopeType: z.ZodEnum<{
|
|
|
535
620
|
"record.edit": "record.edit";
|
|
536
621
|
"record.reject": "record.reject";
|
|
537
622
|
"record.archive": "record.archive";
|
|
623
|
+
"record.unarchive": "record.unarchive";
|
|
538
624
|
"record.review-duplicates": "record.review-duplicates";
|
|
539
625
|
"record.register": "record.register";
|
|
540
626
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -592,10 +678,12 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
592
678
|
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
593
679
|
} | undefined;
|
|
594
680
|
} | {
|
|
595
|
-
type: "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register";
|
|
681
|
+
type: "record.edit" | "record.reject" | "record.archive" | "record.unarchive" | "record.review-duplicates" | "record.register";
|
|
596
682
|
options?: {
|
|
597
683
|
event?: string[] | undefined;
|
|
598
684
|
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
685
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
686
|
+
notifiedBy?: "user" | undefined;
|
|
599
687
|
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
600
688
|
declaredBy?: "user" | undefined;
|
|
601
689
|
} | undefined;
|
|
@@ -604,6 +692,8 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
604
692
|
options?: {
|
|
605
693
|
event?: string[] | undefined;
|
|
606
694
|
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
695
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
696
|
+
notifiedBy?: "user" | undefined;
|
|
607
697
|
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
608
698
|
declaredBy?: "user" | undefined;
|
|
609
699
|
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
@@ -614,6 +704,8 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
614
704
|
options?: {
|
|
615
705
|
event?: string[] | undefined;
|
|
616
706
|
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
707
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
708
|
+
notifiedBy?: "user" | undefined;
|
|
617
709
|
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
618
710
|
declaredBy?: "user" | undefined;
|
|
619
711
|
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
@@ -625,6 +717,8 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
625
717
|
options?: {
|
|
626
718
|
event?: string[] | undefined;
|
|
627
719
|
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
720
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
721
|
+
notifiedBy?: "user" | undefined;
|
|
628
722
|
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
629
723
|
declaredBy?: "user" | undefined;
|
|
630
724
|
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|