@opencrvs/toolkit 2.1.0-rc.fc36d66 → 2.1.0-rc.fc582d7
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 +200 -189
- package/dist/commons/api/router.d.ts +1 -1
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/conditionals/validate.d.ts +10 -1
- package/dist/commons/events/ActionConfig.d.ts +21 -0
- package/dist/commons/events/ActionDocument.d.ts +1 -7
- package/dist/commons/events/ActionStatus.d.ts +14 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +18 -0
- package/dist/commons/events/EventConfig.d.ts +3 -0
- package/dist/commons/events/EventIndex.d.ts +5 -24
- package/dist/commons/events/EventMetadata.d.ts +1 -0
- package/dist/commons/events/FieldConfig.d.ts +5 -0
- package/dist/commons/events/FieldTypeMapping.d.ts +27 -27
- package/dist/commons/events/Flag.d.ts +48 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +32 -14
- package/dist/commons/events/event.d.ts +12 -0
- package/dist/conditionals/index.js +303 -55
- package/dist/events/index.js +3293 -3221
- package/dist/notification/index.js +1582 -978
- package/dist/scopes/index.d.ts +250 -0
- package/dist/scopes/index.js +304 -55
- package/opencrvs-toolkit-2.1.0-rc.fc582d7.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.1.0-rc.fc36d66.tgz +0 -0
|
@@ -29,20 +29,20 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
29
29
|
}> | z.ZodNumber | z.ZodObject<Readonly<{
|
|
30
30
|
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
31
31
|
}>, z.core.$strip> | z.ZodObject<{
|
|
32
|
-
age: z.ZodNumber;
|
|
33
|
-
asOfDateRef: z.ZodString;
|
|
34
|
-
}, z.core.$strip> | z.ZodObject<{
|
|
35
|
-
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
36
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
37
|
-
}, z.core.$strip> | z.ZodObject<{
|
|
38
32
|
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
39
33
|
originalFilename: z.ZodString;
|
|
40
34
|
type: z.ZodString;
|
|
41
|
-
}, z.core.$strip> | z.ZodObject<{
|
|
42
|
-
data: z.ZodAny;
|
|
43
35
|
}, z.core.$strip> | z.ZodObject<{
|
|
44
36
|
numericValue: z.ZodNumber;
|
|
45
37
|
unit: z.ZodString;
|
|
38
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
39
|
+
data: z.ZodAny;
|
|
40
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
41
|
+
age: z.ZodNumber;
|
|
42
|
+
asOfDateRef: z.ZodString;
|
|
43
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
44
|
+
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
46
46
|
}, z.core.$strip> | z.ZodObject<{
|
|
47
47
|
label: z.ZodString;
|
|
48
48
|
value: z.ZodString;
|
|
@@ -65,20 +65,20 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
65
65
|
}>>> | z.ZodOptional<z.ZodNullable<z.ZodNumber>> | z.ZodOptional<z.ZodNullable<z.ZodObject<Readonly<{
|
|
66
66
|
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
67
67
|
}>, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
68
|
-
age: z.ZodNumber;
|
|
69
|
-
asOfDateRef: z.ZodString;
|
|
70
|
-
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
71
|
-
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
72
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
73
|
-
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
74
68
|
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
75
69
|
originalFilename: z.ZodString;
|
|
76
70
|
type: z.ZodString;
|
|
77
|
-
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
78
|
-
data: z.ZodAny;
|
|
79
71
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
80
72
|
numericValue: z.ZodNumber;
|
|
81
73
|
unit: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
75
|
+
data: z.ZodAny;
|
|
76
|
+
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
77
|
+
age: z.ZodNumber;
|
|
78
|
+
asOfDateRef: z.ZodString;
|
|
79
|
+
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
80
|
+
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
82
82
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
83
83
|
label: z.ZodString;
|
|
84
84
|
value: z.ZodString;
|
|
@@ -243,15 +243,6 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
243
243
|
}, z.core.$strip>>>;
|
|
244
244
|
data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
245
245
|
}, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>>> | z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue", "out">>> | z.ZodString | z.ZodType<{
|
|
246
|
-
country?: string | null | undefined;
|
|
247
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
248
|
-
addressType: "DOMESTIC";
|
|
249
|
-
administrativeArea?: string | null | undefined;
|
|
250
|
-
} | {
|
|
251
|
-
country?: string | null | undefined;
|
|
252
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
253
|
-
addressType: "INTERNATIONAL";
|
|
254
|
-
} | {
|
|
255
246
|
country: string;
|
|
256
247
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
257
248
|
addressType: "DOMESTIC";
|
|
@@ -260,7 +251,7 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
260
251
|
country: string;
|
|
261
252
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
262
253
|
addressType: "INTERNATIONAL";
|
|
263
|
-
} |
|
|
254
|
+
} | {
|
|
264
255
|
country?: string | null | undefined;
|
|
265
256
|
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
266
257
|
addressType: "DOMESTIC";
|
|
@@ -269,7 +260,7 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
269
260
|
country?: string | null | undefined;
|
|
270
261
|
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
271
262
|
addressType: "INTERNATIONAL";
|
|
272
|
-
} | {
|
|
263
|
+
} | null | undefined, unknown, z.core.$ZodTypeInternals<{
|
|
273
264
|
country: string;
|
|
274
265
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
275
266
|
addressType: "DOMESTIC";
|
|
@@ -278,6 +269,15 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
278
269
|
country: string;
|
|
279
270
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
280
271
|
addressType: "INTERNATIONAL";
|
|
272
|
+
} | {
|
|
273
|
+
country?: string | null | undefined;
|
|
274
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
275
|
+
addressType: "DOMESTIC";
|
|
276
|
+
administrativeArea?: string | null | undefined;
|
|
277
|
+
} | {
|
|
278
|
+
country?: string | null | undefined;
|
|
279
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
280
|
+
addressType: "INTERNATIONAL";
|
|
281
281
|
} | null | undefined, unknown>> | z.ZodUnion<[z.ZodObject<{
|
|
282
282
|
start: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
283
283
|
end: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
@@ -11,6 +11,7 @@ export declare const InherentFlags: {
|
|
|
11
11
|
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
12
12
|
*/
|
|
13
13
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
14
|
+
readonly SEALED: 'sealed';
|
|
14
15
|
};
|
|
15
16
|
export type InherentFlags = (typeof InherentFlags)[keyof typeof InherentFlags];
|
|
16
17
|
export declare const ActionFlag: z.ZodString;
|
|
@@ -30,8 +31,54 @@ export declare const Flag: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
|
30
31
|
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
31
32
|
*/
|
|
32
33
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
34
|
+
readonly SEALED: 'sealed';
|
|
33
35
|
}>]>, z.ZodString]>;
|
|
34
36
|
export type Flag = z.infer<typeof Flag>;
|
|
37
|
+
export declare const ContainsFlags: z.ZodObject<{
|
|
38
|
+
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
39
|
+
readonly INCOMPLETE: 'incomplete';
|
|
40
|
+
readonly REJECTED: 'rejected';
|
|
41
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
42
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
43
|
+
/**
|
|
44
|
+
* This flag is set by the Edit-action and removed after the declaration or registration.
|
|
45
|
+
* A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
|
|
46
|
+
*
|
|
47
|
+
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
48
|
+
*/
|
|
49
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
50
|
+
readonly SEALED: 'sealed';
|
|
51
|
+
}>]>, z.ZodString]>>>;
|
|
52
|
+
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
53
|
+
readonly INCOMPLETE: 'incomplete';
|
|
54
|
+
readonly REJECTED: 'rejected';
|
|
55
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
56
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
57
|
+
/**
|
|
58
|
+
* This flag is set by the Edit-action and removed after the declaration or registration.
|
|
59
|
+
* A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
|
|
60
|
+
*
|
|
61
|
+
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
62
|
+
*/
|
|
63
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
64
|
+
readonly SEALED: 'sealed';
|
|
65
|
+
}>]>, z.ZodString]>>>;
|
|
66
|
+
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
67
|
+
readonly INCOMPLETE: 'incomplete';
|
|
68
|
+
readonly REJECTED: 'rejected';
|
|
69
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
70
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
71
|
+
/**
|
|
72
|
+
* This flag is set by the Edit-action and removed after the declaration or registration.
|
|
73
|
+
* A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
|
|
74
|
+
*
|
|
75
|
+
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
76
|
+
*/
|
|
77
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
78
|
+
readonly SEALED: 'sealed';
|
|
79
|
+
}>]>, z.ZodString]>>>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type ContainsFlags = z.infer<typeof ContainsFlags>;
|
|
35
82
|
/**
|
|
36
83
|
* Configuration of a custom flag that can be associated with a certain event type.
|
|
37
84
|
*/
|
|
@@ -57,6 +104,7 @@ export declare const ActionFlagConfig: z.ZodObject<{
|
|
|
57
104
|
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
58
105
|
*/
|
|
59
106
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
107
|
+
readonly SEALED: 'sealed';
|
|
60
108
|
}>]>, z.ZodString]>;
|
|
61
109
|
operation: z.ZodEnum<{
|
|
62
110
|
add: "add";
|
|
@@ -314,6 +314,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
314
314
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
315
315
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
316
316
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
317
|
+
readonly SEALED: 'sealed';
|
|
317
318
|
}>]>, z.ZodString]>>>;
|
|
318
319
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
319
320
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -321,6 +322,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
321
322
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
322
323
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
323
324
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
325
|
+
readonly SEALED: 'sealed';
|
|
324
326
|
}>]>, z.ZodString]>>>;
|
|
325
327
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
326
328
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -328,6 +330,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
328
330
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
329
331
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
330
332
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
333
|
+
readonly SEALED: 'sealed';
|
|
331
334
|
}>]>, z.ZodString]>>>;
|
|
332
335
|
}, z.core.$strip>>>;
|
|
333
336
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -631,6 +634,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
631
634
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
632
635
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
633
636
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
637
|
+
readonly SEALED: 'sealed';
|
|
634
638
|
}>]>, z.ZodString]>>>;
|
|
635
639
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
636
640
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -638,6 +642,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
638
642
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
639
643
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
640
644
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
645
|
+
readonly SEALED: 'sealed';
|
|
641
646
|
}>]>, z.ZodString]>>>;
|
|
642
647
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
643
648
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -645,6 +650,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
645
650
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
646
651
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
647
652
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
653
|
+
readonly SEALED: 'sealed';
|
|
648
654
|
}>]>, z.ZodString]>>>;
|
|
649
655
|
}, z.core.$strip>>>;
|
|
650
656
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -737,6 +743,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
737
743
|
File: "File";
|
|
738
744
|
FileArrowUp: "FileArrowUp";
|
|
739
745
|
FileDotted: "FileDotted";
|
|
746
|
+
FileLock: "FileLock";
|
|
740
747
|
FileMinus: "FileMinus";
|
|
741
748
|
FilePlus: "FilePlus";
|
|
742
749
|
FileSearch: "FileSearch";
|
|
@@ -862,6 +869,7 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<{
|
|
|
862
869
|
File: "File";
|
|
863
870
|
FileArrowUp: "FileArrowUp";
|
|
864
871
|
FileDotted: "FileDotted";
|
|
872
|
+
FileLock: "FileLock";
|
|
865
873
|
FileMinus: "FileMinus";
|
|
866
874
|
FilePlus: "FilePlus";
|
|
867
875
|
FileSearch: "FileSearch";
|
|
@@ -1013,6 +1021,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1013
1021
|
File: "File";
|
|
1014
1022
|
FileArrowUp: "FileArrowUp";
|
|
1015
1023
|
FileDotted: "FileDotted";
|
|
1024
|
+
FileLock: "FileLock";
|
|
1016
1025
|
FileMinus: "FileMinus";
|
|
1017
1026
|
FilePlus: "FilePlus";
|
|
1018
1027
|
FileSearch: "FileSearch";
|
|
@@ -1370,6 +1379,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1370
1379
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1371
1380
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1372
1381
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1382
|
+
readonly SEALED: 'sealed';
|
|
1373
1383
|
}>]>, z.ZodString]>>>;
|
|
1374
1384
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1375
1385
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1377,6 +1387,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1377
1387
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1378
1388
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1379
1389
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1390
|
+
readonly SEALED: 'sealed';
|
|
1380
1391
|
}>]>, z.ZodString]>>>;
|
|
1381
1392
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1382
1393
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1384,6 +1395,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1384
1395
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1385
1396
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1386
1397
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1398
|
+
readonly SEALED: 'sealed';
|
|
1387
1399
|
}>]>, z.ZodString]>>>;
|
|
1388
1400
|
}, z.core.$strip>>>;
|
|
1389
1401
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -1686,6 +1698,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1686
1698
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1687
1699
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1688
1700
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1701
|
+
readonly SEALED: 'sealed';
|
|
1689
1702
|
}>]>, z.ZodString]>>>;
|
|
1690
1703
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1691
1704
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1693,6 +1706,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1693
1706
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1694
1707
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1695
1708
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1709
|
+
readonly SEALED: 'sealed';
|
|
1696
1710
|
}>]>, z.ZodString]>>>;
|
|
1697
1711
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1698
1712
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1700,6 +1714,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1700
1714
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1701
1715
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1702
1716
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1717
|
+
readonly SEALED: 'sealed';
|
|
1703
1718
|
}>]>, z.ZodString]>>>;
|
|
1704
1719
|
}, z.core.$strip>>>;
|
|
1705
1720
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -2003,6 +2018,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
2003
2018
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
2004
2019
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
2005
2020
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
2021
|
+
readonly SEALED: 'sealed';
|
|
2006
2022
|
}>]>, z.ZodString]>>>;
|
|
2007
2023
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
2008
2024
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -2010,6 +2026,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
2010
2026
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
2011
2027
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
2012
2028
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
2029
|
+
readonly SEALED: 'sealed';
|
|
2013
2030
|
}>]>, z.ZodString]>>>;
|
|
2014
2031
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
2015
2032
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -2017,6 +2034,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
2017
2034
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
2018
2035
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
2019
2036
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
2037
|
+
readonly SEALED: 'sealed';
|
|
2020
2038
|
}>]>, z.ZodString]>>>;
|
|
2021
2039
|
}, z.core.$strip>>>;
|
|
2022
2040
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -2038,11 +2056,11 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
|
2038
2056
|
clauses: {
|
|
2039
2057
|
eventType?: string | undefined;
|
|
2040
2058
|
status?: {
|
|
2041
|
-
type: "anyOf";
|
|
2042
|
-
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
|
|
2043
|
-
} | {
|
|
2044
2059
|
type: "exact";
|
|
2045
2060
|
term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
|
|
2061
|
+
} | {
|
|
2062
|
+
type: "anyOf";
|
|
2063
|
+
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
|
|
2046
2064
|
} | undefined;
|
|
2047
2065
|
createdAt?: {
|
|
2048
2066
|
type: "range";
|
|
@@ -2177,11 +2195,11 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
|
2177
2195
|
clauses: {
|
|
2178
2196
|
eventType?: string | undefined;
|
|
2179
2197
|
status?: {
|
|
2180
|
-
type: "anyOf";
|
|
2181
|
-
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
|
|
2182
|
-
} | {
|
|
2183
2198
|
type: "exact";
|
|
2184
2199
|
term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
|
|
2200
|
+
} | {
|
|
2201
|
+
type: "anyOf";
|
|
2202
|
+
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
|
|
2185
2203
|
} | undefined;
|
|
2186
2204
|
createdAt?: {
|
|
2187
2205
|
type: "range";
|
|
@@ -2325,7 +2343,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
|
2325
2343
|
$event: "assignedTo" | "createdAt" | "createdAtLocation" | "createdBy" | "createdByUserType" | "dateOfEvent" | "flags" | "id" | "legalStatuses" | "outbox" | "placeOfEvent" | "status" | "title" | "trackingId" | "type" | "updatedAt" | "updatedAtLocation" | "updatedBy" | "updatedByUserRole";
|
|
2326
2344
|
};
|
|
2327
2345
|
}[];
|
|
2328
|
-
icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
|
|
2346
|
+
icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileLock" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
|
|
2329
2347
|
emptyMessage?: {
|
|
2330
2348
|
id: string;
|
|
2331
2349
|
defaultMessage: string;
|
|
@@ -2349,11 +2367,11 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
|
|
|
2349
2367
|
clauses: {
|
|
2350
2368
|
eventType?: string | undefined;
|
|
2351
2369
|
status?: {
|
|
2352
|
-
type: "anyOf";
|
|
2353
|
-
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
|
|
2354
|
-
} | {
|
|
2355
2370
|
type: "exact";
|
|
2356
2371
|
term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
|
|
2372
|
+
} | {
|
|
2373
|
+
type: "anyOf";
|
|
2374
|
+
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
|
|
2357
2375
|
} | undefined;
|
|
2358
2376
|
createdAt?: {
|
|
2359
2377
|
type: "range";
|
|
@@ -2488,11 +2506,11 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
|
|
|
2488
2506
|
clauses: {
|
|
2489
2507
|
eventType?: string | undefined;
|
|
2490
2508
|
status?: {
|
|
2491
|
-
type: "anyOf";
|
|
2492
|
-
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
|
|
2493
|
-
} | {
|
|
2494
2509
|
type: "exact";
|
|
2495
2510
|
term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
|
|
2511
|
+
} | {
|
|
2512
|
+
type: "anyOf";
|
|
2513
|
+
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
|
|
2496
2514
|
} | undefined;
|
|
2497
2515
|
createdAt?: {
|
|
2498
2516
|
type: "range";
|
|
@@ -2636,7 +2654,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
|
|
|
2636
2654
|
$event: "assignedTo" | "createdAt" | "createdAtLocation" | "createdBy" | "createdByUserType" | "dateOfEvent" | "flags" | "id" | "legalStatuses" | "outbox" | "placeOfEvent" | "status" | "title" | "trackingId" | "type" | "updatedAt" | "updatedAtLocation" | "updatedBy" | "updatedByUserRole";
|
|
2637
2655
|
};
|
|
2638
2656
|
}[];
|
|
2639
|
-
icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
|
|
2657
|
+
icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileLock" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
|
|
2640
2658
|
emptyMessage?: {
|
|
2641
2659
|
id: string;
|
|
2642
2660
|
defaultMessage: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { NonSearchableEventMetadataTimeFieldIdInput, AdvancedSearchConfig } from '../event-config/event-configuration';
|
|
2
2
|
import { ActionType } from './ActionType';
|
|
3
3
|
import { EventFieldIdInput } from './AdvancedSearchConfig';
|
|
4
|
+
import { EventStatus } from './EventMetadata';
|
|
5
|
+
import { Flag } from './Flag';
|
|
4
6
|
import { WorkqueueColumnKeys, WorkqueueColumnValue } from './WorkqueueColumnConfig';
|
|
5
7
|
/**
|
|
6
8
|
* Creates a function that acts like a callable + static method container.
|
|
@@ -75,6 +77,16 @@ declare const event: typeof eventFn & {
|
|
|
75
77
|
};
|
|
76
78
|
};
|
|
77
79
|
field(field: WorkqueueColumnKeys): WorkqueueColumnValue;
|
|
80
|
+
/**
|
|
81
|
+
* Checks if the event currently has the given status.
|
|
82
|
+
* @param eventStatus - The status to check for.
|
|
83
|
+
*/
|
|
84
|
+
hasStatus: (eventStatus: EventStatus) => import("../conditionals/conditionals").JSONSchema;
|
|
85
|
+
/**
|
|
86
|
+
* Checks if the event currently carries the given flag.
|
|
87
|
+
* @param flagValue - The flag to check for.
|
|
88
|
+
*/
|
|
89
|
+
hasFlag: (flagValue: Flag) => import("../conditionals/conditionals").JSONSchema;
|
|
78
90
|
};
|
|
79
91
|
export { event };
|
|
80
92
|
//# sourceMappingURL=event.d.ts.map
|