@opencrvs/toolkit 2.1.0-rc.fc582d7 → 2.1.0-rc.fd36a56

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.
@@ -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<{
32
38
  path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
33
39
  originalFilename: z.ZodString;
34
40
  type: z.ZodString;
35
- }, z.core.$strip> | z.ZodObject<{
36
- numericValue: z.ZodNumber;
37
- unit: z.ZodString;
38
41
  }, z.core.$strip> | z.ZodObject<{
39
42
  data: z.ZodAny;
40
43
  }, 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>;
44
+ numericValue: z.ZodNumber;
45
+ unit: 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<{
68
74
  path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
69
75
  originalFilename: z.ZodString;
70
76
  type: z.ZodString;
71
- }, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
72
- numericValue: z.ZodNumber;
73
- unit: z.ZodString;
74
77
  }, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
75
78
  data: z.ZodAny;
76
79
  }, 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>;
80
+ numericValue: z.ZodNumber;
81
+ unit: 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;
247
- streetLevelDetails?: Record<string, string> | undefined;
248
- addressType: "DOMESTIC";
249
- administrativeArea: string;
250
- } | {
251
- country: string;
252
- streetLevelDetails?: Record<string, string> | undefined;
253
- addressType: "INTERNATIONAL";
254
- } | {
255
246
  country?: string | null | undefined;
256
247
  streetLevelDetails?: Record<string, string | null> | null | undefined;
257
248
  addressType: "DOMESTIC";
@@ -260,7 +251,7 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
260
251
  country?: string | null | undefined;
261
252
  streetLevelDetails?: Record<string, string | null> | null | undefined;
262
253
  addressType: "INTERNATIONAL";
263
- } | null | undefined, unknown, z.core.$ZodTypeInternals<{
254
+ } | {
264
255
  country: string;
265
256
  streetLevelDetails?: Record<string, string> | undefined;
266
257
  addressType: "DOMESTIC";
@@ -269,7 +260,7 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
269
260
  country: string;
270
261
  streetLevelDetails?: Record<string, string> | undefined;
271
262
  addressType: "INTERNATIONAL";
272
- } | {
263
+ } | null | undefined, unknown, z.core.$ZodTypeInternals<{
273
264
  country?: string | null | undefined;
274
265
  streetLevelDetails?: Record<string, string | null> | null | undefined;
275
266
  addressType: "DOMESTIC";
@@ -278,6 +269,15 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
278
269
  country?: string | null | undefined;
279
270
  streetLevelDetails?: Record<string, string | null> | null | undefined;
280
271
  addressType: "INTERNATIONAL";
272
+ } | {
273
+ country: string;
274
+ streetLevelDetails?: Record<string, string> | undefined;
275
+ addressType: "DOMESTIC";
276
+ administrativeArea: string;
277
+ } | {
278
+ country: string;
279
+ streetLevelDetails?: Record<string, string> | 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,7 +11,6 @@ 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';
15
14
  };
16
15
  export type InherentFlags = (typeof InherentFlags)[keyof typeof InherentFlags];
17
16
  export declare const ActionFlag: z.ZodString;
@@ -31,54 +30,8 @@ export declare const Flag: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
31
30
  * We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
32
31
  */
33
32
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
34
- readonly SEALED: 'sealed';
35
33
  }>]>, z.ZodString]>;
36
34
  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>;
82
35
  /**
83
36
  * Configuration of a custom flag that can be associated with a certain event type.
84
37
  */
@@ -104,7 +57,6 @@ export declare const ActionFlagConfig: z.ZodObject<{
104
57
  * We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
105
58
  */
106
59
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
107
- readonly SEALED: 'sealed';
108
60
  }>]>, z.ZodString]>;
109
61
  operation: z.ZodEnum<{
110
62
  add: "add";
@@ -314,7 +314,6 @@ 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';
318
317
  }>]>, z.ZodString]>>>;
319
318
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
320
319
  readonly INCOMPLETE: 'incomplete';
@@ -322,7 +321,6 @@ export declare const WorkqueueConfig: z.ZodObject<{
322
321
  readonly CORRECTION_REQUESTED: 'correction-requested';
323
322
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
324
323
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
325
- readonly SEALED: 'sealed';
326
324
  }>]>, z.ZodString]>>>;
327
325
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
328
326
  readonly INCOMPLETE: 'incomplete';
@@ -330,7 +328,6 @@ export declare const WorkqueueConfig: z.ZodObject<{
330
328
  readonly CORRECTION_REQUESTED: 'correction-requested';
331
329
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
332
330
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
333
- readonly SEALED: 'sealed';
334
331
  }>]>, z.ZodString]>>>;
335
332
  }, z.core.$strip>>>;
336
333
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -634,7 +631,6 @@ export declare const WorkqueueConfig: z.ZodObject<{
634
631
  readonly CORRECTION_REQUESTED: 'correction-requested';
635
632
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
636
633
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
637
- readonly SEALED: 'sealed';
638
634
  }>]>, z.ZodString]>>>;
639
635
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
640
636
  readonly INCOMPLETE: 'incomplete';
@@ -642,7 +638,6 @@ export declare const WorkqueueConfig: z.ZodObject<{
642
638
  readonly CORRECTION_REQUESTED: 'correction-requested';
643
639
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
644
640
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
645
- readonly SEALED: 'sealed';
646
641
  }>]>, z.ZodString]>>>;
647
642
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
648
643
  readonly INCOMPLETE: 'incomplete';
@@ -650,7 +645,6 @@ export declare const WorkqueueConfig: z.ZodObject<{
650
645
  readonly CORRECTION_REQUESTED: 'correction-requested';
651
646
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
652
647
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
653
- readonly SEALED: 'sealed';
654
648
  }>]>, z.ZodString]>>>;
655
649
  }, z.core.$strip>>>;
656
650
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -743,7 +737,6 @@ export declare const WorkqueueConfig: z.ZodObject<{
743
737
  File: "File";
744
738
  FileArrowUp: "FileArrowUp";
745
739
  FileDotted: "FileDotted";
746
- FileLock: "FileLock";
747
740
  FileMinus: "FileMinus";
748
741
  FilePlus: "FilePlus";
749
742
  FileSearch: "FileSearch";
@@ -869,7 +862,6 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<{
869
862
  File: "File";
870
863
  FileArrowUp: "FileArrowUp";
871
864
  FileDotted: "FileDotted";
872
- FileLock: "FileLock";
873
865
  FileMinus: "FileMinus";
874
866
  FilePlus: "FilePlus";
875
867
  FileSearch: "FileSearch";
@@ -1021,7 +1013,6 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1021
1013
  File: "File";
1022
1014
  FileArrowUp: "FileArrowUp";
1023
1015
  FileDotted: "FileDotted";
1024
- FileLock: "FileLock";
1025
1016
  FileMinus: "FileMinus";
1026
1017
  FilePlus: "FilePlus";
1027
1018
  FileSearch: "FileSearch";
@@ -1379,7 +1370,6 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1379
1370
  readonly CORRECTION_REQUESTED: 'correction-requested';
1380
1371
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
1381
1372
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
1382
- readonly SEALED: 'sealed';
1383
1373
  }>]>, z.ZodString]>>>;
1384
1374
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1385
1375
  readonly INCOMPLETE: 'incomplete';
@@ -1387,7 +1377,6 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1387
1377
  readonly CORRECTION_REQUESTED: 'correction-requested';
1388
1378
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
1389
1379
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
1390
- readonly SEALED: 'sealed';
1391
1380
  }>]>, z.ZodString]>>>;
1392
1381
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1393
1382
  readonly INCOMPLETE: 'incomplete';
@@ -1395,7 +1384,6 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1395
1384
  readonly CORRECTION_REQUESTED: 'correction-requested';
1396
1385
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
1397
1386
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
1398
- readonly SEALED: 'sealed';
1399
1387
  }>]>, z.ZodString]>>>;
1400
1388
  }, z.core.$strip>>>;
1401
1389
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -1698,7 +1686,6 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1698
1686
  readonly CORRECTION_REQUESTED: 'correction-requested';
1699
1687
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
1700
1688
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
1701
- readonly SEALED: 'sealed';
1702
1689
  }>]>, z.ZodString]>>>;
1703
1690
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1704
1691
  readonly INCOMPLETE: 'incomplete';
@@ -1706,7 +1693,6 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1706
1693
  readonly CORRECTION_REQUESTED: 'correction-requested';
1707
1694
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
1708
1695
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
1709
- readonly SEALED: 'sealed';
1710
1696
  }>]>, z.ZodString]>>>;
1711
1697
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1712
1698
  readonly INCOMPLETE: 'incomplete';
@@ -1714,7 +1700,6 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1714
1700
  readonly CORRECTION_REQUESTED: 'correction-requested';
1715
1701
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
1716
1702
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
1717
- readonly SEALED: 'sealed';
1718
1703
  }>]>, z.ZodString]>>>;
1719
1704
  }, z.core.$strip>>>;
1720
1705
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -2018,7 +2003,6 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2018
2003
  readonly CORRECTION_REQUESTED: 'correction-requested';
2019
2004
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
2020
2005
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
2021
- readonly SEALED: 'sealed';
2022
2006
  }>]>, z.ZodString]>>>;
2023
2007
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
2024
2008
  readonly INCOMPLETE: 'incomplete';
@@ -2026,7 +2010,6 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2026
2010
  readonly CORRECTION_REQUESTED: 'correction-requested';
2027
2011
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
2028
2012
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
2029
- readonly SEALED: 'sealed';
2030
2013
  }>]>, z.ZodString]>>>;
2031
2014
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
2032
2015
  readonly INCOMPLETE: 'incomplete';
@@ -2034,7 +2017,6 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2034
2017
  readonly CORRECTION_REQUESTED: 'correction-requested';
2035
2018
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
2036
2019
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
2037
- readonly SEALED: 'sealed';
2038
2020
  }>]>, z.ZodString]>>>;
2039
2021
  }, z.core.$strip>>>;
2040
2022
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -2056,11 +2038,11 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2056
2038
  clauses: {
2057
2039
  eventType?: string | undefined;
2058
2040
  status?: {
2059
- type: "exact";
2060
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2061
- } | {
2062
2041
  type: "anyOf";
2063
2042
  terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
2043
+ } | {
2044
+ type: "exact";
2045
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2064
2046
  } | undefined;
2065
2047
  createdAt?: {
2066
2048
  type: "range";
@@ -2195,11 +2177,11 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2195
2177
  clauses: {
2196
2178
  eventType?: string | undefined;
2197
2179
  status?: {
2198
- type: "exact";
2199
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2200
- } | {
2201
2180
  type: "anyOf";
2202
2181
  terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
2182
+ } | {
2183
+ type: "exact";
2184
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2203
2185
  } | undefined;
2204
2186
  createdAt?: {
2205
2187
  type: "range";
@@ -2343,7 +2325,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2343
2325
  $event: "assignedTo" | "createdAt" | "createdAtLocation" | "createdBy" | "createdByUserType" | "dateOfEvent" | "flags" | "id" | "legalStatuses" | "outbox" | "placeOfEvent" | "status" | "title" | "trackingId" | "type" | "updatedAt" | "updatedAtLocation" | "updatedBy" | "updatedByUserRole";
2344
2326
  };
2345
2327
  }[];
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";
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";
2347
2329
  emptyMessage?: {
2348
2330
  id: string;
2349
2331
  defaultMessage: string;
@@ -2367,11 +2349,11 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2367
2349
  clauses: {
2368
2350
  eventType?: string | undefined;
2369
2351
  status?: {
2370
- type: "exact";
2371
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2372
- } | {
2373
2352
  type: "anyOf";
2374
2353
  terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
2354
+ } | {
2355
+ type: "exact";
2356
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2375
2357
  } | undefined;
2376
2358
  createdAt?: {
2377
2359
  type: "range";
@@ -2506,11 +2488,11 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2506
2488
  clauses: {
2507
2489
  eventType?: string | undefined;
2508
2490
  status?: {
2509
- type: "exact";
2510
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2511
- } | {
2512
2491
  type: "anyOf";
2513
2492
  terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
2493
+ } | {
2494
+ type: "exact";
2495
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2514
2496
  } | undefined;
2515
2497
  createdAt?: {
2516
2498
  type: "range";
@@ -2654,7 +2636,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2654
2636
  $event: "assignedTo" | "createdAt" | "createdAtLocation" | "createdBy" | "createdByUserType" | "dateOfEvent" | "flags" | "id" | "legalStatuses" | "outbox" | "placeOfEvent" | "status" | "title" | "trackingId" | "type" | "updatedAt" | "updatedAtLocation" | "updatedBy" | "updatedByUserRole";
2655
2637
  };
2656
2638
  }[];
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";
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";
2658
2640
  emptyMessage?: {
2659
2641
  id: string;
2660
2642
  defaultMessage: string;
@@ -1,8 +1,6 @@
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';
6
4
  import { WorkqueueColumnKeys, WorkqueueColumnValue } from './WorkqueueColumnConfig';
7
5
  /**
8
6
  * Creates a function that acts like a callable + static method container.
@@ -77,16 +75,6 @@ declare const event: typeof eventFn & {
77
75
  };
78
76
  };
79
77
  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;
90
78
  };
91
79
  export { event };
92
80
  //# sourceMappingURL=event.d.ts.map