@opencrvs/toolkit 2.1.0-rc.e773220 → 2.1.0-rc.eb366a1
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 +210 -187
- package/dist/commons/api/router.d.ts +613 -20
- package/dist/commons/conditionals/conditionals.d.ts +6 -6
- package/dist/commons/conditionals/validate.d.ts +2 -1
- package/dist/commons/events/ActionConfig.d.ts +54 -0
- package/dist/commons/events/ActionDocument.d.ts +45 -7
- package/dist/commons/events/ActionInput.d.ts +26 -0
- package/dist/commons/events/ActionStatus.d.ts +14 -0
- package/dist/commons/events/ActionType.d.ts +6 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +12 -0
- package/dist/commons/events/AuditLog.d.ts +2 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +18 -0
- package/dist/commons/events/Draft.d.ts +2 -0
- package/dist/commons/events/EventDocument.d.ts +22 -0
- package/dist/commons/events/EventIndex.d.ts +5 -24
- package/dist/commons/events/EventMetadata.d.ts +2 -1
- package/dist/commons/events/FieldConfig.d.ts +10 -0
- package/dist/commons/events/Flag.d.ts +48 -0
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +4 -4
- package/dist/commons/events/WorkqueueConfig.d.ts +25 -7
- package/dist/commons/events/scopes.d.ts +1 -0
- package/dist/commons/events/test.utils.d.ts +9 -1
- package/dist/commons/events/utils.d.ts +23 -1
- package/dist/conditionals/index.js +305 -55
- package/dist/events/index.js +3261 -3141
- package/dist/notification/index.js +1481 -882
- package/dist/scopes/index.d.ts +257 -1
- package/dist/scopes/index.js +306 -55
- package/opencrvs-toolkit-2.1.0-rc.eb366a1.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.1.0-rc.e773220.tgz +0 -0
|
@@ -93,17 +93,17 @@ export declare const user: typeof userSerializer & {
|
|
|
93
93
|
};
|
|
94
94
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
95
95
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
96
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
97
|
-
$option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
96
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.unarchive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
97
|
+
$option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "flags" | "accessLevel" | "ids";
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
101
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
102
|
-
$option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
101
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.unarchive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
102
|
+
$option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "flags" | "accessLevel" | "ids";
|
|
103
103
|
}) => {
|
|
104
104
|
$jurisdiction: "administrativeArea" | "location" | "all" | {
|
|
105
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
106
|
-
$option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
105
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.unarchive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
106
|
+
$option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "flags" | "accessLevel" | "ids";
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
};
|
|
@@ -69,13 +69,14 @@ export declare function validate(schema: JSONSchema, data: ConditionalParameters
|
|
|
69
69
|
export declare function validateValue(schema: JSONSchema, data: unknown): boolean;
|
|
70
70
|
export declare function isOnline(): boolean;
|
|
71
71
|
export declare function isConditionMet(conditional: JSONSchema, values: EventState | ActionUpdate, context: ValidatorContext): boolean;
|
|
72
|
-
export declare function areConditionsMet(conditions: FieldConditional[], values: Record<string, FieldValue>, context: ValidatorContext,
|
|
72
|
+
export declare function areConditionsMet(conditions: FieldConditional[], values: Record<string, FieldValue>, context: ValidatorContext, event: EventIndex): boolean;
|
|
73
73
|
export type ValidatorContext = {
|
|
74
74
|
user?: ITokenPayload;
|
|
75
75
|
leafAdminStructureLocationIds?: Array<{
|
|
76
76
|
id: UUID;
|
|
77
77
|
}>;
|
|
78
78
|
event?: EventDocument;
|
|
79
|
+
eventConfig?: EventConfig;
|
|
79
80
|
baseFormState?: EventState;
|
|
80
81
|
};
|
|
81
82
|
export declare function isFieldVisible(field: FieldConfig, form: Partial<ActionUpdate | EventState>, context: ValidatorContext): boolean;
|
|
@@ -13,6 +13,7 @@ export declare const ActionConfigBase: z.ZodObject<{
|
|
|
13
13
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
14
14
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
15
15
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
16
|
+
readonly SEALED: "sealed";
|
|
16
17
|
}>]>, z.ZodString]>;
|
|
17
18
|
operation: z.ZodEnum<{
|
|
18
19
|
add: "add";
|
|
@@ -39,6 +40,7 @@ declare const CustomActionConfig: z.ZodObject<{
|
|
|
39
40
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
40
41
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
41
42
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
43
|
+
readonly SEALED: "sealed";
|
|
42
44
|
}>]>, z.ZodString]>;
|
|
43
45
|
operation: z.ZodEnum<{
|
|
44
46
|
add: "add";
|
|
@@ -70,6 +72,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
70
72
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
71
73
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
72
74
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
75
|
+
readonly SEALED: "sealed";
|
|
73
76
|
}>]>, z.ZodString]>;
|
|
74
77
|
operation: z.ZodEnum<{
|
|
75
78
|
add: "add";
|
|
@@ -120,6 +123,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
120
123
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
121
124
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
122
125
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
126
|
+
readonly SEALED: "sealed";
|
|
123
127
|
}>]>, z.ZodString]>;
|
|
124
128
|
operation: z.ZodEnum<{
|
|
125
129
|
add: "add";
|
|
@@ -146,6 +150,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
146
150
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
147
151
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
148
152
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
153
|
+
readonly SEALED: "sealed";
|
|
149
154
|
}>]>, z.ZodString]>;
|
|
150
155
|
operation: z.ZodEnum<{
|
|
151
156
|
add: "add";
|
|
@@ -163,6 +168,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
163
168
|
conditional: z.ZodAny;
|
|
164
169
|
}, z.core.$strip>], "type">>>;
|
|
165
170
|
type: z.ZodLiteral<"NOTIFY">;
|
|
171
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
166
172
|
}, z.core.$strip>, z.ZodObject<{
|
|
167
173
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
168
174
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -172,6 +178,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
172
178
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
173
179
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
174
180
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
181
|
+
readonly SEALED: "sealed";
|
|
175
182
|
}>]>, z.ZodString]>;
|
|
176
183
|
operation: z.ZodEnum<{
|
|
177
184
|
add: "add";
|
|
@@ -198,6 +205,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
198
205
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
199
206
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
200
207
|
}, z.core.$strip>;
|
|
208
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
201
209
|
dialogCopy: z.ZodOptional<z.ZodObject<{
|
|
202
210
|
notify: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
203
211
|
declare: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
@@ -211,6 +219,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
211
219
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
212
220
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
213
221
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
222
|
+
readonly SEALED: "sealed";
|
|
214
223
|
}>]>, z.ZodString]>;
|
|
215
224
|
operation: z.ZodEnum<{
|
|
216
225
|
add: "add";
|
|
@@ -232,6 +241,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
232
241
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
233
242
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
234
243
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
244
|
+
readonly SEALED: "sealed";
|
|
235
245
|
}>]>, z.ZodString]>;
|
|
236
246
|
operation: z.ZodEnum<{
|
|
237
247
|
add: "add";
|
|
@@ -258,6 +268,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
258
268
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
259
269
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
260
270
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
271
|
+
readonly SEALED: "sealed";
|
|
261
272
|
}>]>, z.ZodString]>;
|
|
262
273
|
operation: z.ZodEnum<{
|
|
263
274
|
add: "add";
|
|
@@ -284,6 +295,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
284
295
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
285
296
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
286
297
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
298
|
+
readonly SEALED: "sealed";
|
|
287
299
|
}>]>, z.ZodString]>;
|
|
288
300
|
operation: z.ZodEnum<{
|
|
289
301
|
add: "add";
|
|
@@ -301,6 +313,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
301
313
|
conditional: z.ZodAny;
|
|
302
314
|
}, z.core.$strip>], "type">>>;
|
|
303
315
|
type: z.ZodLiteral<"REJECT">;
|
|
316
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
304
317
|
}, z.core.$strip>, z.ZodObject<{
|
|
305
318
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
306
319
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -310,6 +323,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
310
323
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
311
324
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
312
325
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
326
|
+
readonly SEALED: "sealed";
|
|
313
327
|
}>]>, z.ZodString]>;
|
|
314
328
|
operation: z.ZodEnum<{
|
|
315
329
|
add: "add";
|
|
@@ -332,6 +346,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
332
346
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput, z.core.$ZodTypeInternals<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput>>;
|
|
333
347
|
}, z.core.$strip>>;
|
|
334
348
|
type: z.ZodLiteral<"REGISTER">;
|
|
349
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
335
350
|
}, z.core.$strip>, z.ZodObject<{
|
|
336
351
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
337
352
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -341,6 +356,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
341
356
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
342
357
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
343
358
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
359
|
+
readonly SEALED: "sealed";
|
|
344
360
|
}>]>, z.ZodString]>;
|
|
345
361
|
operation: z.ZodEnum<{
|
|
346
362
|
add: "add";
|
|
@@ -397,6 +413,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
397
413
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
398
414
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
399
415
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
416
|
+
readonly SEALED: "sealed";
|
|
400
417
|
}>]>, z.ZodString]>;
|
|
401
418
|
operation: z.ZodEnum<{
|
|
402
419
|
add: "add";
|
|
@@ -453,6 +470,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
453
470
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
454
471
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
455
472
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
473
|
+
readonly SEALED: "sealed";
|
|
456
474
|
}>]>, z.ZodString]>;
|
|
457
475
|
operation: z.ZodEnum<{
|
|
458
476
|
add: "add";
|
|
@@ -479,6 +497,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
479
497
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
480
498
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
481
499
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
500
|
+
readonly SEALED: "sealed";
|
|
482
501
|
}>]>, z.ZodString]>;
|
|
483
502
|
operation: z.ZodEnum<{
|
|
484
503
|
add: "add";
|
|
@@ -505,6 +524,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
505
524
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
506
525
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
507
526
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
527
|
+
readonly SEALED: "sealed";
|
|
508
528
|
}>]>, z.ZodString]>;
|
|
509
529
|
operation: z.ZodEnum<{
|
|
510
530
|
add: "add";
|
|
@@ -536,6 +556,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
536
556
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
537
557
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
538
558
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
559
|
+
readonly SEALED: "sealed";
|
|
539
560
|
}>]>, z.ZodString]>;
|
|
540
561
|
operation: z.ZodEnum<{
|
|
541
562
|
add: "add";
|
|
@@ -553,6 +574,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
553
574
|
conditional: z.ZodAny;
|
|
554
575
|
}, z.core.$strip>], "type">>>;
|
|
555
576
|
type: z.ZodLiteral<"ARCHIVE">;
|
|
577
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
556
578
|
}, z.core.$strip>, z.ZodObject<{
|
|
557
579
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
558
580
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -562,6 +584,34 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
562
584
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
563
585
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
564
586
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
587
|
+
readonly SEALED: "sealed";
|
|
588
|
+
}>]>, z.ZodString]>;
|
|
589
|
+
operation: z.ZodEnum<{
|
|
590
|
+
add: "add";
|
|
591
|
+
remove: "remove";
|
|
592
|
+
}>;
|
|
593
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
594
|
+
}, z.core.$strip>>>>;
|
|
595
|
+
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
596
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
597
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
598
|
+
type: z.ZodLiteral<"SHOW">;
|
|
599
|
+
conditional: z.ZodAny;
|
|
600
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
601
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
602
|
+
conditional: z.ZodAny;
|
|
603
|
+
}, z.core.$strip>], "type">>>;
|
|
604
|
+
type: z.ZodLiteral<"UNARCHIVE">;
|
|
605
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
606
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
607
|
+
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
608
|
+
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
609
|
+
readonly INCOMPLETE: "incomplete";
|
|
610
|
+
readonly REJECTED: "rejected";
|
|
611
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
612
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
613
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
614
|
+
readonly SEALED: "sealed";
|
|
565
615
|
}>]>, z.ZodString]>;
|
|
566
616
|
operation: z.ZodEnum<{
|
|
567
617
|
add: "add";
|
|
@@ -603,6 +653,7 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
603
653
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
604
654
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
605
655
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
656
|
+
readonly SEALED: "sealed";
|
|
606
657
|
}>]>, z.ZodString]>;
|
|
607
658
|
operation: z.ZodEnum<{
|
|
608
659
|
add: "add";
|
|
@@ -629,6 +680,7 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
629
680
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
630
681
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
631
682
|
}, z.core.$strip>;
|
|
683
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
632
684
|
dialogCopy: z.ZodOptional<z.ZodObject<{
|
|
633
685
|
notify: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
634
686
|
declare: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
@@ -643,6 +695,7 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
643
695
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
644
696
|
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
645
697
|
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
698
|
+
readonly SEALED: "sealed";
|
|
646
699
|
}>]>, z.ZodString]>;
|
|
647
700
|
operation: z.ZodEnum<{
|
|
648
701
|
add: "add";
|
|
@@ -665,6 +718,7 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
665
718
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput, z.core.$ZodTypeInternals<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput>>;
|
|
666
719
|
}, z.core.$strip>>;
|
|
667
720
|
type: z.ZodLiteral<"REGISTER">;
|
|
721
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
668
722
|
}, z.core.$strip>], "type">;
|
|
669
723
|
export type DeclarationActionConfig = z.infer<typeof DeclarationActionConfig>;
|
|
670
724
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import { FieldValue, FieldUpdateValue } from './FieldValue';
|
|
3
|
+
export { ActionStatus } from './ActionStatus';
|
|
3
4
|
/**
|
|
4
5
|
* ActionUpdate is a record of a specific action that updated data fields.
|
|
5
6
|
*/
|
|
@@ -10,12 +11,6 @@ export type ActionUpdate = z.infer<typeof ActionUpdate>;
|
|
|
10
11
|
*/
|
|
11
12
|
export declare const EventState: z.ZodRecord<z.ZodString, z.ZodType<FieldValue, unknown, z.core.$ZodTypeInternals<FieldValue, unknown>>>;
|
|
12
13
|
export type EventState = z.infer<typeof EventState>;
|
|
13
|
-
export declare const ActionStatus: {
|
|
14
|
-
readonly Requested: "Requested";
|
|
15
|
-
readonly Accepted: "Accepted";
|
|
16
|
-
readonly Rejected: "Rejected";
|
|
17
|
-
};
|
|
18
|
-
export type ActionStatus = keyof typeof ActionStatus;
|
|
19
14
|
export declare const ActionBase: z.ZodObject<{
|
|
20
15
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
21
16
|
transactionId: z.ZodString;
|
|
@@ -388,6 +383,27 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
388
383
|
content: z.ZodObject<{
|
|
389
384
|
reason: z.ZodString;
|
|
390
385
|
}, z.core.$strip>;
|
|
386
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
387
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
388
|
+
transactionId: z.ZodString;
|
|
389
|
+
createdByUserType: z.ZodEnum<{
|
|
390
|
+
user: "user";
|
|
391
|
+
system: "system";
|
|
392
|
+
}>;
|
|
393
|
+
createdAt: z.ZodString;
|
|
394
|
+
createdBy: z.ZodString;
|
|
395
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
396
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
397
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
398
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
|
|
399
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
|
|
400
|
+
status: z.ZodEnum<{
|
|
401
|
+
Requested: "Requested";
|
|
402
|
+
Accepted: "Accepted";
|
|
403
|
+
Rejected: "Rejected";
|
|
404
|
+
}>;
|
|
405
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
406
|
+
type: z.ZodLiteral<"UNARCHIVE">;
|
|
391
407
|
}, z.core.$strip>, z.ZodObject<{
|
|
392
408
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
393
409
|
transactionId: z.ZodString;
|
|
@@ -680,6 +696,7 @@ export declare const AsyncRejectActionDocument: z.ZodObject<{
|
|
|
680
696
|
EDIT: "EDIT";
|
|
681
697
|
REJECT: "REJECT";
|
|
682
698
|
ARCHIVE: "ARCHIVE";
|
|
699
|
+
UNARCHIVE: "UNARCHIVE";
|
|
683
700
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
684
701
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
685
702
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
@@ -829,6 +846,27 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
829
846
|
content: z.ZodObject<{
|
|
830
847
|
reason: z.ZodString;
|
|
831
848
|
}, z.core.$strip>;
|
|
849
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
850
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
851
|
+
transactionId: z.ZodString;
|
|
852
|
+
createdByUserType: z.ZodEnum<{
|
|
853
|
+
user: "user";
|
|
854
|
+
system: "system";
|
|
855
|
+
}>;
|
|
856
|
+
createdAt: z.ZodString;
|
|
857
|
+
createdBy: z.ZodString;
|
|
858
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
859
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
860
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
861
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
|
|
862
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
|
|
863
|
+
status: z.ZodEnum<{
|
|
864
|
+
Requested: "Requested";
|
|
865
|
+
Accepted: "Accepted";
|
|
866
|
+
Rejected: "Rejected";
|
|
867
|
+
}>;
|
|
868
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
869
|
+
type: z.ZodLiteral<"UNARCHIVE">;
|
|
832
870
|
}, z.core.$strip>, z.ZodObject<{
|
|
833
871
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
834
872
|
transactionId: z.ZodString;
|
|
@@ -1119,6 +1157,7 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1119
1157
|
EDIT: "EDIT";
|
|
1120
1158
|
REJECT: "REJECT";
|
|
1121
1159
|
ARCHIVE: "ARCHIVE";
|
|
1160
|
+
UNARCHIVE: "UNARCHIVE";
|
|
1122
1161
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
1123
1162
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
1124
1163
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
@@ -1129,5 +1168,4 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1129
1168
|
export type Action = z.infer<typeof Action>;
|
|
1130
1169
|
export type CreatedAction = z.infer<typeof CreatedAction>;
|
|
1131
1170
|
export type AssignedAction = z.infer<typeof AssignedAction>;
|
|
1132
|
-
export {};
|
|
1133
1171
|
//# sourceMappingURL=ActionDocument.d.ts.map
|
|
@@ -171,6 +171,20 @@ export declare const ArchiveActionInput: z.ZodObject<{
|
|
|
171
171
|
}, z.core.$strip>;
|
|
172
172
|
}, z.core.$strip>;
|
|
173
173
|
export type ArchiveActionInput = z.infer<typeof ArchiveActionInput>;
|
|
174
|
+
export declare const UnarchiveActionInput: z.ZodObject<{
|
|
175
|
+
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
176
|
+
transactionId: z.ZodString;
|
|
177
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
178
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
179
|
+
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
180
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
182
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
183
|
+
waitFor: z.ZodDefault<z.ZodBoolean>;
|
|
184
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
185
|
+
type: z.ZodDefault<z.ZodLiteral<"UNARCHIVE">>;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
export type UnarchiveActionInput = z.infer<typeof UnarchiveActionInput>;
|
|
174
188
|
export declare const AssignActionInput: z.ZodObject<{
|
|
175
189
|
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
176
190
|
transactionId: z.ZodString;
|
|
@@ -416,6 +430,18 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
416
430
|
content: z.ZodObject<{
|
|
417
431
|
reason: z.ZodString;
|
|
418
432
|
}, z.core.$strip>;
|
|
433
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
434
|
+
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
435
|
+
transactionId: z.ZodString;
|
|
436
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
437
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
438
|
+
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
439
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
440
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
441
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
442
|
+
waitFor: z.ZodDefault<z.ZodBoolean>;
|
|
443
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
444
|
+
type: z.ZodDefault<z.ZodLiteral<"UNARCHIVE">>;
|
|
419
445
|
}, z.core.$strip>, z.ZodObject<{
|
|
420
446
|
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
421
447
|
transactionId: z.ZodString;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deliberately dependency-free (aside from language builtins) so that files
|
|
3
|
+
* like Flag.ts can depend on ActionStatus without being pulled into the
|
|
4
|
+
* commons/scopes.ts <-> commons/authentication.ts import cycle that
|
|
5
|
+
* ActionDocument.ts participates in (it imports TokenUserType from
|
|
6
|
+
* '../authentication').
|
|
7
|
+
*/
|
|
8
|
+
export declare const ActionStatus: {
|
|
9
|
+
readonly Requested: "Requested";
|
|
10
|
+
readonly Accepted: "Accepted";
|
|
11
|
+
readonly Rejected: "Rejected";
|
|
12
|
+
};
|
|
13
|
+
export type ActionStatus = keyof typeof ActionStatus;
|
|
14
|
+
//# sourceMappingURL=ActionStatus.d.ts.map
|
|
@@ -14,6 +14,7 @@ export declare const ActionType: {
|
|
|
14
14
|
readonly MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
15
15
|
readonly MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
16
16
|
readonly ARCHIVE: "ARCHIVE";
|
|
17
|
+
readonly UNARCHIVE: "UNARCHIVE";
|
|
17
18
|
readonly PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
18
19
|
readonly REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
19
20
|
readonly REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
@@ -24,7 +25,7 @@ export declare const ActionType: {
|
|
|
24
25
|
readonly CUSTOM: "CUSTOM";
|
|
25
26
|
};
|
|
26
27
|
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
|
27
|
-
export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "EDIT", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "APPROVE_CORRECTION", "REJECT_CORRECTION", "CUSTOM"];
|
|
28
|
+
export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "EDIT", "REGISTER", "REJECT", "ARCHIVE", "UNARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "APPROVE_CORRECTION", "REJECT_CORRECTION", "CUSTOM"];
|
|
28
29
|
/** Testing building types from enums as an alternative */
|
|
29
30
|
export declare const ActionTypes: z.ZodEnum<{
|
|
30
31
|
CUSTOM: "CUSTOM";
|
|
@@ -39,6 +40,7 @@ export declare const ActionTypes: z.ZodEnum<{
|
|
|
39
40
|
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
40
41
|
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
41
42
|
ARCHIVE: "ARCHIVE";
|
|
43
|
+
UNARCHIVE: "UNARCHIVE";
|
|
42
44
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
43
45
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
44
46
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
@@ -83,6 +85,7 @@ export declare const annotationActions: z.ZodEnum<{
|
|
|
83
85
|
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
84
86
|
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
85
87
|
ARCHIVE: "ARCHIVE";
|
|
88
|
+
UNARCHIVE: "UNARCHIVE";
|
|
86
89
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
87
90
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
88
91
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
@@ -105,6 +108,7 @@ export declare const writeActions: z.ZodEnum<{
|
|
|
105
108
|
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
106
109
|
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
107
110
|
ARCHIVE: "ARCHIVE";
|
|
111
|
+
UNARCHIVE: "UNARCHIVE";
|
|
108
112
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
109
113
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
110
114
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
@@ -119,6 +123,7 @@ export declare const WorkqueueActionType: z.ZodEnum<{
|
|
|
119
123
|
REJECT: "REJECT";
|
|
120
124
|
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
121
125
|
ARCHIVE: "ARCHIVE";
|
|
126
|
+
UNARCHIVE: "UNARCHIVE";
|
|
122
127
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
123
128
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
124
129
|
READ: "READ";
|
|
@@ -106,6 +106,7 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
106
106
|
"record.edit": "record.edit";
|
|
107
107
|
"record.reject": "record.reject";
|
|
108
108
|
"record.archive": "record.archive";
|
|
109
|
+
"record.unarchive": "record.unarchive";
|
|
109
110
|
"record.review-duplicates": "record.review-duplicates";
|
|
110
111
|
"record.register": "record.register";
|
|
111
112
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -145,6 +146,7 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
145
146
|
declaredBy: "declaredBy";
|
|
146
147
|
registeredIn: "registeredIn";
|
|
147
148
|
registeredBy: "registeredBy";
|
|
149
|
+
flags: "flags";
|
|
148
150
|
accessLevel: "accessLevel";
|
|
149
151
|
ids: "ids";
|
|
150
152
|
}>;
|
|
@@ -285,6 +287,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
285
287
|
"record.edit": "record.edit";
|
|
286
288
|
"record.reject": "record.reject";
|
|
287
289
|
"record.archive": "record.archive";
|
|
290
|
+
"record.unarchive": "record.unarchive";
|
|
288
291
|
"record.review-duplicates": "record.review-duplicates";
|
|
289
292
|
"record.register": "record.register";
|
|
290
293
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -324,6 +327,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
324
327
|
declaredBy: "declaredBy";
|
|
325
328
|
registeredIn: "registeredIn";
|
|
326
329
|
registeredBy: "registeredBy";
|
|
330
|
+
flags: "flags";
|
|
327
331
|
accessLevel: "accessLevel";
|
|
328
332
|
ids: "ids";
|
|
329
333
|
}>;
|
|
@@ -440,6 +444,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
440
444
|
"record.edit": "record.edit";
|
|
441
445
|
"record.reject": "record.reject";
|
|
442
446
|
"record.archive": "record.archive";
|
|
447
|
+
"record.unarchive": "record.unarchive";
|
|
443
448
|
"record.review-duplicates": "record.review-duplicates";
|
|
444
449
|
"record.register": "record.register";
|
|
445
450
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -479,6 +484,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
479
484
|
declaredBy: "declaredBy";
|
|
480
485
|
registeredIn: "registeredIn";
|
|
481
486
|
registeredBy: "registeredBy";
|
|
487
|
+
flags: "flags";
|
|
482
488
|
accessLevel: "accessLevel";
|
|
483
489
|
ids: "ids";
|
|
484
490
|
}>;
|
|
@@ -587,6 +593,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
587
593
|
"record.edit": "record.edit";
|
|
588
594
|
"record.reject": "record.reject";
|
|
589
595
|
"record.archive": "record.archive";
|
|
596
|
+
"record.unarchive": "record.unarchive";
|
|
590
597
|
"record.review-duplicates": "record.review-duplicates";
|
|
591
598
|
"record.register": "record.register";
|
|
592
599
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -626,6 +633,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
626
633
|
declaredBy: "declaredBy";
|
|
627
634
|
registeredIn: "registeredIn";
|
|
628
635
|
registeredBy: "registeredBy";
|
|
636
|
+
flags: "flags";
|
|
629
637
|
accessLevel: "accessLevel";
|
|
630
638
|
ids: "ids";
|
|
631
639
|
}>;
|
|
@@ -745,6 +753,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
745
753
|
"record.edit": "record.edit";
|
|
746
754
|
"record.reject": "record.reject";
|
|
747
755
|
"record.archive": "record.archive";
|
|
756
|
+
"record.unarchive": "record.unarchive";
|
|
748
757
|
"record.review-duplicates": "record.review-duplicates";
|
|
749
758
|
"record.register": "record.register";
|
|
750
759
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -784,6 +793,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
784
793
|
declaredBy: "declaredBy";
|
|
785
794
|
registeredIn: "registeredIn";
|
|
786
795
|
registeredBy: "registeredBy";
|
|
796
|
+
flags: "flags";
|
|
787
797
|
accessLevel: "accessLevel";
|
|
788
798
|
ids: "ids";
|
|
789
799
|
}>;
|
|
@@ -892,6 +902,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
892
902
|
"record.edit": "record.edit";
|
|
893
903
|
"record.reject": "record.reject";
|
|
894
904
|
"record.archive": "record.archive";
|
|
905
|
+
"record.unarchive": "record.unarchive";
|
|
895
906
|
"record.review-duplicates": "record.review-duplicates";
|
|
896
907
|
"record.register": "record.register";
|
|
897
908
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -931,6 +942,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
931
942
|
declaredBy: "declaredBy";
|
|
932
943
|
registeredIn: "registeredIn";
|
|
933
944
|
registeredBy: "registeredBy";
|
|
945
|
+
flags: "flags";
|
|
934
946
|
accessLevel: "accessLevel";
|
|
935
947
|
ids: "ids";
|
|
936
948
|
}>;
|
|
@@ -18,6 +18,7 @@ declare const EventActionEntrySchema: z.ZodObject<{
|
|
|
18
18
|
"event.actions.unassign.request": "event.actions.unassign.request";
|
|
19
19
|
"event.actions.read.request": "event.actions.read.request";
|
|
20
20
|
"event.actions.archive.request": "event.actions.archive.request";
|
|
21
|
+
"event.actions.unarchive.request": "event.actions.unarchive.request";
|
|
21
22
|
"event.actions.reinstate.request": "event.actions.reinstate.request";
|
|
22
23
|
"event.actions.print_certificate.request": "event.actions.print_certificate.request";
|
|
23
24
|
"event.actions.correction.request.request": "event.actions.correction.request.request";
|
|
@@ -153,6 +154,7 @@ export declare const AuditLogEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
153
154
|
"event.actions.unassign.request": "event.actions.unassign.request";
|
|
154
155
|
"event.actions.read.request": "event.actions.read.request";
|
|
155
156
|
"event.actions.archive.request": "event.actions.archive.request";
|
|
157
|
+
"event.actions.unarchive.request": "event.actions.unarchive.request";
|
|
156
158
|
"event.actions.reinstate.request": "event.actions.reinstate.request";
|
|
157
159
|
"event.actions.print_certificate.request": "event.actions.print_certificate.request";
|
|
158
160
|
"event.actions.correction.request.request": "event.actions.correction.request.request";
|