@opencrvs/toolkit 2.1.0-rc.eb366a1 → 2.1.0-rc.edf2492

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.
Files changed (41) hide show
  1. package/dist/application-config/index.js +189 -200
  2. package/dist/cli.js +0 -48
  3. package/dist/commons/api/router.d.ts +114 -114
  4. package/dist/commons/conditionals/conditionals.d.ts +1589 -37
  5. package/dist/commons/conditionals/validate.d.ts +1 -2
  6. package/dist/commons/events/ActionConfig.d.ts +0 -21
  7. package/dist/commons/events/ActionDocument.d.ts +7 -1
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +0 -6
  9. package/dist/commons/events/CountryConfigQueryInput.d.ts +0 -18
  10. package/dist/commons/events/EventIndex.d.ts +24 -5
  11. package/dist/commons/events/EventMetadata.d.ts +1 -2
  12. package/dist/commons/events/FieldConfig.d.ts +0 -5
  13. package/dist/commons/events/Flag.d.ts +0 -48
  14. package/dist/commons/events/WorkqueueColumnConfig.d.ts +4 -4
  15. package/dist/commons/events/WorkqueueConfig.d.ts +5 -20
  16. package/dist/commons/events/field.d.ts +722 -34
  17. package/dist/conditionals/index.js +55 -303
  18. package/dist/environment/derived-variables.d.ts +0 -12
  19. package/dist/environment/derived-variables.d.ts.map +1 -1
  20. package/dist/environment/derived-variables.js +0 -14
  21. package/dist/environment/logger.d.ts +3 -12
  22. package/dist/environment/logger.d.ts.map +1 -1
  23. package/dist/environment/manage-users.js +17 -7
  24. package/dist/environment/setup-environment.js +0 -14
  25. package/dist/environment/swarm-to-k8s.js +17 -7
  26. package/dist/environment/update-workflows.js +17 -7
  27. package/dist/environment/users.js +17 -7
  28. package/dist/environment/utils.js +17 -7
  29. package/dist/events/index.js +2691 -2731
  30. package/dist/migrations/v2.0/convert-config-files-to-ts.js +17 -7
  31. package/dist/migrations/v2.0/remove-hearth-migrations.js +17 -7
  32. package/dist/notification/index.js +963 -1526
  33. package/dist/scopes/index.d.ts +0 -250
  34. package/dist/scopes/index.js +55 -304
  35. package/dist/templates/charts-values/dependencies/values.yaml +0 -3
  36. package/dist/templates/charts-values/opencrvs-services/values.yaml +0 -4
  37. package/opencrvs-toolkit-2.1.0-rc.edf2492.tgz +0 -0
  38. package/package.json +2 -2
  39. package/tsconfig.tsbuildinfo +1 -1
  40. package/dist/commons/events/ActionStatus.d.ts +0 -14
  41. package/opencrvs-toolkit-2.1.0-rc.eb366a1.tgz +0 -0
@@ -69,14 +69,13 @@ 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, event: EventIndex): boolean;
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;
80
79
  baseFormState?: EventState;
81
80
  };
82
81
  export declare function isFieldVisible(field: FieldConfig, form: Partial<ActionUpdate | EventState>, context: ValidatorContext): boolean;
@@ -13,7 +13,6 @@ 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";
17
16
  }>]>, z.ZodString]>;
18
17
  operation: z.ZodEnum<{
19
18
  add: "add";
@@ -40,7 +39,6 @@ declare const CustomActionConfig: z.ZodObject<{
40
39
  readonly CORRECTION_REQUESTED: "correction-requested";
41
40
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
42
41
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
43
- readonly SEALED: "sealed";
44
42
  }>]>, z.ZodString]>;
45
43
  operation: z.ZodEnum<{
46
44
  add: "add";
@@ -72,7 +70,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
72
70
  readonly CORRECTION_REQUESTED: "correction-requested";
73
71
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
74
72
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
75
- readonly SEALED: "sealed";
76
73
  }>]>, z.ZodString]>;
77
74
  operation: z.ZodEnum<{
78
75
  add: "add";
@@ -123,7 +120,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
123
120
  readonly CORRECTION_REQUESTED: "correction-requested";
124
121
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
125
122
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
126
- readonly SEALED: "sealed";
127
123
  }>]>, z.ZodString]>;
128
124
  operation: z.ZodEnum<{
129
125
  add: "add";
@@ -150,7 +146,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
150
146
  readonly CORRECTION_REQUESTED: "correction-requested";
151
147
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
152
148
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
153
- readonly SEALED: "sealed";
154
149
  }>]>, z.ZodString]>;
155
150
  operation: z.ZodEnum<{
156
151
  add: "add";
@@ -178,7 +173,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
178
173
  readonly CORRECTION_REQUESTED: "correction-requested";
179
174
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
180
175
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
181
- readonly SEALED: "sealed";
182
176
  }>]>, z.ZodString]>;
183
177
  operation: z.ZodEnum<{
184
178
  add: "add";
@@ -219,7 +213,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
219
213
  readonly CORRECTION_REQUESTED: "correction-requested";
220
214
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
221
215
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
222
- readonly SEALED: "sealed";
223
216
  }>]>, z.ZodString]>;
224
217
  operation: z.ZodEnum<{
225
218
  add: "add";
@@ -241,7 +234,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
241
234
  readonly CORRECTION_REQUESTED: "correction-requested";
242
235
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
243
236
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
244
- readonly SEALED: "sealed";
245
237
  }>]>, z.ZodString]>;
246
238
  operation: z.ZodEnum<{
247
239
  add: "add";
@@ -268,7 +260,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
268
260
  readonly CORRECTION_REQUESTED: "correction-requested";
269
261
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
270
262
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
271
- readonly SEALED: "sealed";
272
263
  }>]>, z.ZodString]>;
273
264
  operation: z.ZodEnum<{
274
265
  add: "add";
@@ -295,7 +286,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
295
286
  readonly CORRECTION_REQUESTED: "correction-requested";
296
287
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
297
288
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
298
- readonly SEALED: "sealed";
299
289
  }>]>, z.ZodString]>;
300
290
  operation: z.ZodEnum<{
301
291
  add: "add";
@@ -323,7 +313,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
323
313
  readonly CORRECTION_REQUESTED: "correction-requested";
324
314
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
325
315
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
326
- readonly SEALED: "sealed";
327
316
  }>]>, z.ZodString]>;
328
317
  operation: z.ZodEnum<{
329
318
  add: "add";
@@ -356,7 +345,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
356
345
  readonly CORRECTION_REQUESTED: "correction-requested";
357
346
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
358
347
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
359
- readonly SEALED: "sealed";
360
348
  }>]>, z.ZodString]>;
361
349
  operation: z.ZodEnum<{
362
350
  add: "add";
@@ -413,7 +401,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
413
401
  readonly CORRECTION_REQUESTED: "correction-requested";
414
402
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
415
403
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
416
- readonly SEALED: "sealed";
417
404
  }>]>, z.ZodString]>;
418
405
  operation: z.ZodEnum<{
419
406
  add: "add";
@@ -470,7 +457,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
470
457
  readonly CORRECTION_REQUESTED: "correction-requested";
471
458
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
472
459
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
473
- readonly SEALED: "sealed";
474
460
  }>]>, z.ZodString]>;
475
461
  operation: z.ZodEnum<{
476
462
  add: "add";
@@ -497,7 +483,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
497
483
  readonly CORRECTION_REQUESTED: "correction-requested";
498
484
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
499
485
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
500
- readonly SEALED: "sealed";
501
486
  }>]>, z.ZodString]>;
502
487
  operation: z.ZodEnum<{
503
488
  add: "add";
@@ -524,7 +509,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
524
509
  readonly CORRECTION_REQUESTED: "correction-requested";
525
510
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
526
511
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
527
- readonly SEALED: "sealed";
528
512
  }>]>, z.ZodString]>;
529
513
  operation: z.ZodEnum<{
530
514
  add: "add";
@@ -556,7 +540,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
556
540
  readonly CORRECTION_REQUESTED: "correction-requested";
557
541
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
558
542
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
559
- readonly SEALED: "sealed";
560
543
  }>]>, z.ZodString]>;
561
544
  operation: z.ZodEnum<{
562
545
  add: "add";
@@ -584,7 +567,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
584
567
  readonly CORRECTION_REQUESTED: "correction-requested";
585
568
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
586
569
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
587
- readonly SEALED: "sealed";
588
570
  }>]>, z.ZodString]>;
589
571
  operation: z.ZodEnum<{
590
572
  add: "add";
@@ -611,7 +593,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
611
593
  readonly CORRECTION_REQUESTED: "correction-requested";
612
594
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
613
595
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
614
- readonly SEALED: "sealed";
615
596
  }>]>, z.ZodString]>;
616
597
  operation: z.ZodEnum<{
617
598
  add: "add";
@@ -653,7 +634,6 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
653
634
  readonly CORRECTION_REQUESTED: "correction-requested";
654
635
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
655
636
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
656
- readonly SEALED: "sealed";
657
637
  }>]>, z.ZodString]>;
658
638
  operation: z.ZodEnum<{
659
639
  add: "add";
@@ -695,7 +675,6 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
695
675
  readonly CORRECTION_REQUESTED: "correction-requested";
696
676
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
697
677
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
698
- readonly SEALED: "sealed";
699
678
  }>]>, z.ZodString]>;
700
679
  operation: z.ZodEnum<{
701
680
  add: "add";
@@ -1,6 +1,5 @@
1
1
  import * as z from 'zod/v4';
2
2
  import { FieldValue, FieldUpdateValue } from './FieldValue';
3
- export { ActionStatus } from './ActionStatus';
4
3
  /**
5
4
  * ActionUpdate is a record of a specific action that updated data fields.
6
5
  */
@@ -11,6 +10,12 @@ export type ActionUpdate = z.infer<typeof ActionUpdate>;
11
10
  */
12
11
  export declare const EventState: z.ZodRecord<z.ZodString, z.ZodType<FieldValue, unknown, z.core.$ZodTypeInternals<FieldValue, unknown>>>;
13
12
  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;
14
19
  export declare const ActionBase: z.ZodObject<{
15
20
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
16
21
  transactionId: z.ZodString;
@@ -1168,4 +1173,5 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
1168
1173
  export type Action = z.infer<typeof Action>;
1169
1174
  export type CreatedAction = z.infer<typeof CreatedAction>;
1170
1175
  export type AssignedAction = z.infer<typeof AssignedAction>;
1176
+ export {};
1171
1177
  //# sourceMappingURL=ActionDocument.d.ts.map
@@ -146,7 +146,6 @@ export declare const FieldConfigSchema: z.ZodObject<{
146
146
  declaredBy: "declaredBy";
147
147
  registeredIn: "registeredIn";
148
148
  registeredBy: "registeredBy";
149
- flags: "flags";
150
149
  accessLevel: "accessLevel";
151
150
  ids: "ids";
152
151
  }>;
@@ -327,7 +326,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
327
326
  declaredBy: "declaredBy";
328
327
  registeredIn: "registeredIn";
329
328
  registeredBy: "registeredBy";
330
- flags: "flags";
331
329
  accessLevel: "accessLevel";
332
330
  ids: "ids";
333
331
  }>;
@@ -484,7 +482,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
484
482
  declaredBy: "declaredBy";
485
483
  registeredIn: "registeredIn";
486
484
  registeredBy: "registeredBy";
487
- flags: "flags";
488
485
  accessLevel: "accessLevel";
489
486
  ids: "ids";
490
487
  }>;
@@ -633,7 +630,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
633
630
  declaredBy: "declaredBy";
634
631
  registeredIn: "registeredIn";
635
632
  registeredBy: "registeredBy";
636
- flags: "flags";
637
633
  accessLevel: "accessLevel";
638
634
  ids: "ids";
639
635
  }>;
@@ -793,7 +789,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
793
789
  declaredBy: "declaredBy";
794
790
  registeredIn: "registeredIn";
795
791
  registeredBy: "registeredBy";
796
- flags: "flags";
797
792
  accessLevel: "accessLevel";
798
793
  ids: "ids";
799
794
  }>;
@@ -942,7 +937,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
942
937
  declaredBy: "declaredBy";
943
938
  registeredIn: "registeredIn";
944
939
  registeredBy: "registeredBy";
945
- flags: "flags";
946
940
  accessLevel: "accessLevel";
947
941
  ids: "ids";
948
942
  }>;
@@ -338,7 +338,6 @@ export declare const SerializedQueryExpression: z.ZodObject<{
338
338
  readonly CORRECTION_REQUESTED: "correction-requested";
339
339
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
340
340
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
341
- readonly SEALED: "sealed";
342
341
  }>]>, z.ZodString]>>>;
343
342
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
344
343
  readonly INCOMPLETE: "incomplete";
@@ -346,7 +345,6 @@ export declare const SerializedQueryExpression: z.ZodObject<{
346
345
  readonly CORRECTION_REQUESTED: "correction-requested";
347
346
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
348
347
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
349
- readonly SEALED: "sealed";
350
348
  }>]>, z.ZodString]>>>;
351
349
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
352
350
  readonly INCOMPLETE: "incomplete";
@@ -354,7 +352,6 @@ export declare const SerializedQueryExpression: z.ZodObject<{
354
352
  readonly CORRECTION_REQUESTED: "correction-requested";
355
353
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
356
354
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
357
- readonly SEALED: "sealed";
358
355
  }>]>, z.ZodString]>>>;
359
356
  }, z.core.$strip>>>;
360
357
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -659,7 +656,6 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
659
656
  readonly CORRECTION_REQUESTED: "correction-requested";
660
657
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
661
658
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
662
- readonly SEALED: "sealed";
663
659
  }>]>, z.ZodString]>>>;
664
660
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
665
661
  readonly INCOMPLETE: "incomplete";
@@ -667,7 +663,6 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
667
663
  readonly CORRECTION_REQUESTED: "correction-requested";
668
664
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
669
665
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
670
- readonly SEALED: "sealed";
671
666
  }>]>, z.ZodString]>>>;
672
667
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
673
668
  readonly INCOMPLETE: "incomplete";
@@ -675,7 +670,6 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
675
670
  readonly CORRECTION_REQUESTED: "correction-requested";
676
671
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
677
672
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
678
- readonly SEALED: "sealed";
679
673
  }>]>, z.ZodString]>>>;
680
674
  }, z.core.$strip>>>;
681
675
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -979,7 +973,6 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
979
973
  readonly CORRECTION_REQUESTED: "correction-requested";
980
974
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
981
975
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
982
- readonly SEALED: "sealed";
983
976
  }>]>, z.ZodString]>>>;
984
977
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
985
978
  readonly INCOMPLETE: "incomplete";
@@ -987,7 +980,6 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
987
980
  readonly CORRECTION_REQUESTED: "correction-requested";
988
981
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
989
982
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
990
- readonly SEALED: "sealed";
991
983
  }>]>, z.ZodString]>>>;
992
984
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
993
985
  readonly INCOMPLETE: "incomplete";
@@ -995,7 +987,6 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
995
987
  readonly CORRECTION_REQUESTED: "correction-requested";
996
988
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
997
989
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
998
- readonly SEALED: "sealed";
999
990
  }>]>, z.ZodString]>>>;
1000
991
  }, z.core.$strip>>>;
1001
992
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -1299,7 +1290,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1299
1290
  readonly CORRECTION_REQUESTED: "correction-requested";
1300
1291
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1301
1292
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1302
- readonly SEALED: "sealed";
1303
1293
  }>]>, z.ZodString]>>>;
1304
1294
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1305
1295
  readonly INCOMPLETE: "incomplete";
@@ -1307,7 +1297,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1307
1297
  readonly CORRECTION_REQUESTED: "correction-requested";
1308
1298
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1309
1299
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1310
- readonly SEALED: "sealed";
1311
1300
  }>]>, z.ZodString]>>>;
1312
1301
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1313
1302
  readonly INCOMPLETE: "incomplete";
@@ -1315,7 +1304,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1315
1304
  readonly CORRECTION_REQUESTED: "correction-requested";
1316
1305
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1317
1306
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1318
- readonly SEALED: "sealed";
1319
1307
  }>]>, z.ZodString]>>>;
1320
1308
  }, z.core.$strip>>>;
1321
1309
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -1618,7 +1606,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1618
1606
  readonly CORRECTION_REQUESTED: "correction-requested";
1619
1607
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1620
1608
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1621
- readonly SEALED: "sealed";
1622
1609
  }>]>, z.ZodString]>>>;
1623
1610
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1624
1611
  readonly INCOMPLETE: "incomplete";
@@ -1626,7 +1613,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1626
1613
  readonly CORRECTION_REQUESTED: "correction-requested";
1627
1614
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1628
1615
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1629
- readonly SEALED: "sealed";
1630
1616
  }>]>, z.ZodString]>>>;
1631
1617
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1632
1618
  readonly INCOMPLETE: "incomplete";
@@ -1634,7 +1620,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1634
1620
  readonly CORRECTION_REQUESTED: "correction-requested";
1635
1621
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1636
1622
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1637
- readonly SEALED: "sealed";
1638
1623
  }>]>, z.ZodString]>>>;
1639
1624
  }, z.core.$strip>>>;
1640
1625
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -1938,7 +1923,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1938
1923
  readonly CORRECTION_REQUESTED: "correction-requested";
1939
1924
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1940
1925
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1941
- readonly SEALED: "sealed";
1942
1926
  }>]>, z.ZodString]>>>;
1943
1927
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1944
1928
  readonly INCOMPLETE: "incomplete";
@@ -1946,7 +1930,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1946
1930
  readonly CORRECTION_REQUESTED: "correction-requested";
1947
1931
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1948
1932
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1949
- readonly SEALED: "sealed";
1950
1933
  }>]>, z.ZodString]>>>;
1951
1934
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1952
1935
  readonly INCOMPLETE: "incomplete";
@@ -1954,7 +1937,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1954
1937
  readonly CORRECTION_REQUESTED: "correction-requested";
1955
1938
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1956
1939
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1957
- readonly SEALED: "sealed";
1958
1940
  }>]>, z.ZodString]>>>;
1959
1941
  }, z.core.$strip>>>;
1960
1942
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -1,5 +1,4 @@
1
1
  import { z, ZodType } from 'zod/v4';
2
- export { ContainsFlags } from './Flag';
3
2
  export declare const EventIndex: z.ZodObject<{
4
3
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
5
4
  type: z.ZodString;
@@ -71,7 +70,6 @@ export declare const EventIndex: z.ZodObject<{
71
70
  readonly CORRECTION_REQUESTED: "correction-requested";
72
71
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
73
72
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
74
- readonly SEALED: "sealed";
75
73
  }>]>, z.ZodString]>>;
76
74
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldValue, unknown>>>;
77
75
  }, z.core.$strip>;
@@ -125,6 +123,29 @@ export declare const Range: z.ZodObject<{
125
123
  gte: z.ZodString;
126
124
  lte: z.ZodString;
127
125
  }, z.core.$strip>;
126
+ export declare const ContainsFlags: z.ZodObject<{
127
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
128
+ readonly INCOMPLETE: "incomplete";
129
+ readonly REJECTED: "rejected";
130
+ readonly CORRECTION_REQUESTED: "correction-requested";
131
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
132
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
133
+ }>]>, z.ZodString]>>>;
134
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
135
+ readonly INCOMPLETE: "incomplete";
136
+ readonly REJECTED: "rejected";
137
+ readonly CORRECTION_REQUESTED: "correction-requested";
138
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
139
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
140
+ }>]>, z.ZodString]>>>;
141
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
142
+ readonly INCOMPLETE: "incomplete";
143
+ readonly REJECTED: "rejected";
144
+ readonly CORRECTION_REQUESTED: "correction-requested";
145
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
146
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
147
+ }>]>, z.ZodString]>>>;
148
+ }, z.core.$strip>;
128
149
  export declare const Within: z.ZodObject<{
129
150
  type: z.ZodLiteral<"within">;
130
151
  location: z.ZodString;
@@ -295,7 +316,6 @@ export declare const QueryExpression: z.ZodObject<{
295
316
  readonly CORRECTION_REQUESTED: "correction-requested";
296
317
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
297
318
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
298
- readonly SEALED: "sealed";
299
319
  }>]>, z.ZodString]>>>;
300
320
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
301
321
  readonly INCOMPLETE: "incomplete";
@@ -303,7 +323,6 @@ export declare const QueryExpression: z.ZodObject<{
303
323
  readonly CORRECTION_REQUESTED: "correction-requested";
304
324
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
305
325
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
306
- readonly SEALED: "sealed";
307
326
  }>]>, z.ZodString]>>>;
308
327
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
309
328
  readonly INCOMPLETE: "incomplete";
@@ -311,7 +330,6 @@ export declare const QueryExpression: z.ZodObject<{
311
330
  readonly CORRECTION_REQUESTED: "correction-requested";
312
331
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
313
332
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
314
- readonly SEALED: "sealed";
315
333
  }>]>, z.ZodString]>>>;
316
334
  }, z.core.$strip>>>;
317
335
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -336,4 +354,5 @@ export declare const SearchQuery: z.ZodObject<{
336
354
  export type SearchQuery = z.infer<typeof SearchQuery>;
337
355
  export type QueryType = z.infer<typeof QueryType>;
338
356
  export type QueryExpression = z.infer<typeof QueryExpression>;
357
+ export {};
339
358
  //# sourceMappingURL=EventIndex.d.ts.map
@@ -150,7 +150,6 @@ export declare const EventMetadata: z.ZodObject<{
150
150
  readonly CORRECTION_REQUESTED: "correction-requested";
151
151
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
152
152
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
153
- readonly SEALED: "sealed";
154
153
  }>]>, z.ZodString]>>;
155
154
  }, z.core.$strip>;
156
155
  export type EventMetadata = z.infer<typeof EventMetadata>;
@@ -160,7 +159,6 @@ export declare const EventMetadataKeys: z.ZodEnum<{
160
159
  type: "type";
161
160
  updatedAt: "updatedAt";
162
161
  placeOfEvent: "placeOfEvent";
163
- flags: "flags";
164
162
  createdByUserType: "createdByUserType";
165
163
  createdAt: "createdAt";
166
164
  createdBy: "createdBy";
@@ -173,6 +171,7 @@ export declare const EventMetadataKeys: z.ZodEnum<{
173
171
  updatedByUserRole: "updatedByUserRole";
174
172
  updatedAtLocation: "updatedAtLocation";
175
173
  updatedBy: "updatedBy";
174
+ flags: "flags";
176
175
  }>;
177
176
  export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
178
177
  /**
@@ -1926,7 +1926,6 @@ declare const AdministrativeAreaField: z.ZodObject<{
1926
1926
  declaredBy: "declaredBy";
1927
1927
  registeredIn: "registeredIn";
1928
1928
  registeredBy: "registeredBy";
1929
- flags: "flags";
1930
1929
  accessLevel: "accessLevel";
1931
1930
  ids: "ids";
1932
1931
  }>;
@@ -2056,7 +2055,6 @@ declare const LocationInput: z.ZodObject<{
2056
2055
  declaredBy: "declaredBy";
2057
2056
  registeredIn: "registeredIn";
2058
2057
  registeredBy: "registeredBy";
2059
- flags: "flags";
2060
2058
  accessLevel: "accessLevel";
2061
2059
  ids: "ids";
2062
2060
  }>;
@@ -2257,7 +2255,6 @@ declare const Facility: z.ZodObject<{
2257
2255
  declaredBy: "declaredBy";
2258
2256
  registeredIn: "registeredIn";
2259
2257
  registeredBy: "registeredBy";
2260
- flags: "flags";
2261
2258
  accessLevel: "accessLevel";
2262
2259
  ids: "ids";
2263
2260
  }>;
@@ -2373,7 +2370,6 @@ declare const Office: z.ZodObject<{
2373
2370
  declaredBy: "declaredBy";
2374
2371
  registeredIn: "registeredIn";
2375
2372
  registeredBy: "registeredBy";
2376
- flags: "flags";
2377
2373
  accessLevel: "accessLevel";
2378
2374
  ids: "ids";
2379
2375
  }>;
@@ -2575,7 +2571,6 @@ declare const Address: z.ZodObject<{
2575
2571
  declaredBy: "declaredBy";
2576
2572
  registeredIn: "registeredIn";
2577
2573
  registeredBy: "registeredBy";
2578
- flags: "flags";
2579
2574
  accessLevel: "accessLevel";
2580
2575
  ids: "ids";
2581
2576
  }>;
@@ -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";
@@ -6,7 +6,6 @@ export declare const WorkqueueColumnKeys: z.ZodEnum<{
6
6
  type: "type";
7
7
  updatedAt: "updatedAt";
8
8
  placeOfEvent: "placeOfEvent";
9
- flags: "flags";
10
9
  createdByUserType: "createdByUserType";
11
10
  createdAt: "createdAt";
12
11
  createdBy: "createdBy";
@@ -19,6 +18,7 @@ export declare const WorkqueueColumnKeys: z.ZodEnum<{
19
18
  updatedByUserRole: "updatedByUserRole";
20
19
  updatedAtLocation: "updatedAtLocation";
21
20
  updatedBy: "updatedBy";
21
+ flags: "flags";
22
22
  outbox: "outbox";
23
23
  }>;
24
24
  export type WorkqueueColumnKeys = z.infer<typeof WorkqueueColumnKeys>;
@@ -29,7 +29,6 @@ export declare const WorkqueueColumnValue: z.ZodObject<{
29
29
  type: "type";
30
30
  updatedAt: "updatedAt";
31
31
  placeOfEvent: "placeOfEvent";
32
- flags: "flags";
33
32
  createdByUserType: "createdByUserType";
34
33
  createdAt: "createdAt";
35
34
  createdBy: "createdBy";
@@ -42,6 +41,7 @@ export declare const WorkqueueColumnValue: z.ZodObject<{
42
41
  updatedByUserRole: "updatedByUserRole";
43
42
  updatedAtLocation: "updatedAtLocation";
44
43
  updatedBy: "updatedBy";
44
+ flags: "flags";
45
45
  outbox: "outbox";
46
46
  }>;
47
47
  }, z.core.$strip>;
@@ -58,7 +58,6 @@ export declare const WorkqueueColumn: z.ZodObject<{
58
58
  type: "type";
59
59
  updatedAt: "updatedAt";
60
60
  placeOfEvent: "placeOfEvent";
61
- flags: "flags";
62
61
  createdByUserType: "createdByUserType";
63
62
  createdAt: "createdAt";
64
63
  createdBy: "createdBy";
@@ -71,6 +70,7 @@ export declare const WorkqueueColumn: z.ZodObject<{
71
70
  updatedByUserRole: "updatedByUserRole";
72
71
  updatedAtLocation: "updatedAtLocation";
73
72
  updatedBy: "updatedBy";
73
+ flags: "flags";
74
74
  outbox: "outbox";
75
75
  }>;
76
76
  }, z.core.$strip>;
@@ -84,7 +84,7 @@ export declare function defineWorkqueuesColumns(workqueueColumns: WorkqueueColum
84
84
  description: string;
85
85
  };
86
86
  value: {
87
- $event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "flags" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
87
+ $event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
88
88
  };
89
89
  }[];
90
90
  //# sourceMappingURL=WorkqueueColumnConfig.d.ts.map