@opencrvs/toolkit 2.1.0-rc.b2f00ee → 2.1.0-rc.b47b1b3

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 (57) hide show
  1. package/dist/application-config/index.js +0 -1
  2. package/dist/commons/api/router.d.ts +1518 -1741
  3. package/dist/commons/application-config/index.d.ts +6 -6
  4. package/dist/commons/conditionals/conditionals.d.ts +2102 -259
  5. package/dist/commons/events/ActionConfig.d.ts +105 -105
  6. package/dist/commons/events/ActionDocument.d.ts +113 -113
  7. package/dist/commons/events/ActionType.d.ts +62 -62
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -513
  9. package/dist/commons/events/AuditLog.d.ts +42 -151
  10. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  11. package/dist/commons/events/Conditional.d.ts +3 -3
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
  13. package/dist/commons/events/Draft.d.ts +37 -37
  14. package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
  15. package/dist/commons/events/EventConfig.d.ts +5 -5
  16. package/dist/commons/events/EventDocument.d.ts +46 -46
  17. package/dist/commons/events/EventIndex.d.ts +62 -62
  18. package/dist/commons/events/EventMetadata.d.ts +40 -40
  19. package/dist/commons/events/FieldConfig.d.ts +337 -342
  20. package/dist/commons/events/FieldType.d.ts +51 -51
  21. package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
  22. package/dist/commons/events/FieldValue.d.ts +12 -12
  23. package/dist/commons/events/Flag.d.ts +15 -15
  24. package/dist/commons/events/TemplateConfig.d.ts +1 -1
  25. package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
  26. package/dist/commons/events/WorkqueueConfig.d.ts +820 -820
  27. package/dist/commons/events/deduplication.d.ts +1 -1
  28. package/dist/commons/events/event.d.ts +2 -2
  29. package/dist/commons/events/field.d.ts +895 -78
  30. package/dist/commons/events/index.d.ts +0 -1
  31. package/dist/commons/events/locations.d.ts +6 -103
  32. package/dist/commons/events/mocks.test.utils.d.ts +4 -18
  33. package/dist/commons/events/scopes.d.ts +4 -4
  34. package/dist/commons/events/state/index.d.ts +17 -17
  35. package/dist/commons/events/state/utils.d.ts +7 -7
  36. package/dist/commons/events/test.utils.d.ts +40 -40
  37. package/dist/commons/events/utils.d.ts +114 -114
  38. package/dist/commons/notification/UserNotifications.d.ts +10 -10
  39. package/dist/conditionals/index.js +0 -1
  40. package/dist/environment/derived-variables.d.ts +119 -119
  41. package/dist/environment/derived-variables.d.ts.map +1 -1
  42. package/dist/environment/logger.d.ts.map +1 -1
  43. package/dist/environment/questions.d.ts +74 -75
  44. package/dist/environment/questions.d.ts.map +1 -1
  45. package/dist/environment/setup-environment.js +14 -8
  46. package/dist/environment/utils.d.ts +1 -1
  47. package/dist/events/deduplication.d.ts +1 -1
  48. package/dist/events/index.js +52 -182
  49. package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
  50. package/dist/notification/index.js +77 -179
  51. package/dist/scopes/index.d.ts +146 -148
  52. package/dist/scopes/index.js +0 -1
  53. package/opencrvs-toolkit-2.1.0-rc.b47b1b3.tgz +0 -0
  54. package/package.json +5 -5
  55. package/tsconfig.tsbuildinfo +1 -1
  56. package/dist/commons/events/locationPayloads.d.ts +0 -95
  57. package/opencrvs-toolkit-2.1.0-rc.b2f00ee.tgz +0 -0
@@ -5,10 +5,31 @@ export declare const Draft: z.ZodObject<{
5
5
  transactionId: z.ZodString;
6
6
  createdAt: z.ZodString;
7
7
  action: z.ZodObject<{
8
+ type: z.ZodEnum<{
9
+ CUSTOM: "CUSTOM";
10
+ CREATE: "CREATE";
11
+ NOTIFY: "NOTIFY";
12
+ DECLARE: "DECLARE";
13
+ REGISTER: "REGISTER";
14
+ EDIT: "EDIT";
15
+ DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
16
+ REJECT: "REJECT";
17
+ MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
18
+ MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
19
+ ARCHIVE: "ARCHIVE";
20
+ UNARCHIVE: "UNARCHIVE";
21
+ PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
22
+ REQUEST_CORRECTION: "REQUEST_CORRECTION";
23
+ REJECT_CORRECTION: "REJECT_CORRECTION";
24
+ APPROVE_CORRECTION: "APPROVE_CORRECTION";
25
+ READ: "READ";
26
+ ASSIGN: "ASSIGN";
27
+ UNASSIGN: "UNASSIGN";
28
+ }>;
8
29
  transactionId: z.ZodString;
9
30
  createdByUserType: z.ZodEnum<{
10
- system: "system";
11
31
  user: "user";
32
+ system: "system";
12
33
  }>;
13
34
  createdAt: z.ZodString;
14
35
  createdBy: z.ZodString;
@@ -17,69 +38,48 @@ export declare const Draft: z.ZodObject<{
17
38
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
18
39
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
19
40
  status: z.ZodEnum<{
41
+ Requested: "Requested";
20
42
  Accepted: "Accepted";
21
43
  Rejected: "Rejected";
22
- Requested: "Requested";
23
44
  }>;
24
45
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
25
- type: z.ZodEnum<{
26
- APPROVE_CORRECTION: "APPROVE_CORRECTION";
27
- ARCHIVE: "ARCHIVE";
28
- ASSIGN: "ASSIGN";
29
- CREATE: "CREATE";
30
- CUSTOM: "CUSTOM";
31
- DECLARE: "DECLARE";
32
- DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
33
- EDIT: "EDIT";
34
- MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
35
- MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
36
- NOTIFY: "NOTIFY";
37
- PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
38
- READ: "READ";
39
- REGISTER: "REGISTER";
40
- REJECT: "REJECT";
41
- REJECT_CORRECTION: "REJECT_CORRECTION";
42
- REQUEST_CORRECTION: "REQUEST_CORRECTION";
43
- UNARCHIVE: "UNARCHIVE";
44
- UNASSIGN: "UNASSIGN";
45
- }>;
46
46
  }, z.core.$strip>;
47
47
  }, z.core.$strip>;
48
48
  export declare const DraftInput: z.ZodObject<{
49
- eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
50
49
  transactionId: z.ZodString;
50
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
51
51
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
52
52
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
53
53
  originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
54
+ eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
54
55
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
55
56
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
56
57
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
57
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
58
58
  type: z.ZodEnum<{
59
- APPROVE_CORRECTION: "APPROVE_CORRECTION";
60
- ARCHIVE: "ARCHIVE";
61
- ASSIGN: "ASSIGN";
62
- CREATE: "CREATE";
63
59
  CUSTOM: "CUSTOM";
60
+ CREATE: "CREATE";
61
+ NOTIFY: "NOTIFY";
64
62
  DECLARE: "DECLARE";
65
- DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
63
+ REGISTER: "REGISTER";
66
64
  EDIT: "EDIT";
65
+ DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
66
+ REJECT: "REJECT";
67
67
  MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
68
68
  MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
69
- NOTIFY: "NOTIFY";
69
+ ARCHIVE: "ARCHIVE";
70
+ UNARCHIVE: "UNARCHIVE";
70
71
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
71
- READ: "READ";
72
- REGISTER: "REGISTER";
73
- REJECT: "REJECT";
74
- REJECT_CORRECTION: "REJECT_CORRECTION";
75
72
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
76
- UNARCHIVE: "UNARCHIVE";
73
+ REJECT_CORRECTION: "REJECT_CORRECTION";
74
+ APPROVE_CORRECTION: "APPROVE_CORRECTION";
75
+ READ: "READ";
76
+ ASSIGN: "ASSIGN";
77
77
  UNASSIGN: "UNASSIGN";
78
78
  }>;
79
79
  status: z.ZodEnum<{
80
+ Requested: "Requested";
80
81
  Accepted: "Accepted";
81
82
  Rejected: "Rejected";
82
- Requested: "Requested";
83
83
  }>;
84
84
  }, z.core.$strip>;
85
85
  export type Draft = z.infer<typeof Draft>;
@@ -14,7 +14,7 @@ import { AddressField, NameField } from './FieldConfig';
14
14
  export declare function getDynamicNameValue(field: NameField): z.ZodObject<{
15
15
  firstname: z.ZodString;
16
16
  surname: z.ZodString;
17
- middlename: z.ZodOptional<z.ZodString> | z.ZodString;
17
+ middlename: z.ZodString | z.ZodOptional<z.ZodString>;
18
18
  }, z.core.$strip>;
19
19
  export type DynamicNameValue = ReturnType<typeof getDynamicNameValue>;
20
20
  /**
@@ -34,40 +34,40 @@ export type DynamicNameValue = ReturnType<typeof getDynamicNameValue>;
34
34
  */
35
35
  export declare function getDynamicAddressFieldValue(field: AddressField): z.ZodType<{
36
36
  country: string;
37
- streetLevelDetails?: Record<string, string> | undefined;
38
37
  addressType: "DOMESTIC";
39
38
  administrativeArea: string;
39
+ streetLevelDetails?: Record<string, string> | undefined;
40
40
  } | {
41
41
  country: string;
42
- streetLevelDetails?: Record<string, string> | undefined;
43
42
  addressType: "INTERNATIONAL";
43
+ streetLevelDetails?: Record<string, string> | undefined;
44
44
  } | {
45
+ addressType: "DOMESTIC";
45
46
  country?: string | null | undefined;
46
47
  streetLevelDetails?: Record<string, string | null> | null | undefined;
47
- addressType: "DOMESTIC";
48
48
  administrativeArea?: string | null | undefined;
49
49
  } | {
50
+ addressType: "INTERNATIONAL";
50
51
  country?: string | null | undefined;
51
52
  streetLevelDetails?: Record<string, string | null> | null | undefined;
52
- addressType: "INTERNATIONAL";
53
53
  } | null | undefined, unknown, z.core.$ZodTypeInternals<{
54
54
  country: string;
55
- streetLevelDetails?: Record<string, string> | undefined;
56
55
  addressType: "DOMESTIC";
57
56
  administrativeArea: string;
57
+ streetLevelDetails?: Record<string, string> | undefined;
58
58
  } | {
59
59
  country: string;
60
- streetLevelDetails?: Record<string, string> | undefined;
61
60
  addressType: "INTERNATIONAL";
61
+ streetLevelDetails?: Record<string, string> | undefined;
62
62
  } | {
63
+ addressType: "DOMESTIC";
63
64
  country?: string | null | undefined;
64
65
  streetLevelDetails?: Record<string, string | null> | null | undefined;
65
- addressType: "DOMESTIC";
66
66
  administrativeArea?: string | null | undefined;
67
67
  } | {
68
+ addressType: "INTERNATIONAL";
68
69
  country?: string | null | undefined;
69
70
  streetLevelDetails?: Record<string, string | null> | null | undefined;
70
- addressType: "INTERNATIONAL";
71
71
  } | null | undefined, unknown>>;
72
72
  export type DynamicAddressFieldValue = ReturnType<typeof getDynamicAddressFieldValue>;
73
73
  //# sourceMappingURL=DynamicFieldValue.d.ts.map
@@ -8,14 +8,14 @@ import { FieldReference } from './FieldConfig';
8
8
  import { FlagConfig } from './Flag';
9
9
  export declare const EventFieldReference: z.ZodObject<{
10
10
  $$event: z.ZodEnum<{
11
+ updatedAt: "updatedAt";
11
12
  createdAt: "createdAt";
12
- "legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
13
- "legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
14
- "legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
15
13
  "legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
16
- "legalStatuses.REGISTERED.acceptedAt": "legalStatuses.REGISTERED.acceptedAt";
14
+ "legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
15
+ "legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
16
+ "legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
17
17
  "legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
18
- updatedAt: "updatedAt";
18
+ "legalStatuses.REGISTERED.acceptedAt": "legalStatuses.REGISTERED.acceptedAt";
19
19
  }>;
20
20
  }, z.core.$strip>;
21
21
  export type EventConfig = {
@@ -8,8 +8,8 @@ export declare const EventDocument: z.ZodObject<{
8
8
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
9
9
  transactionId: z.ZodString;
10
10
  createdByUserType: z.ZodEnum<{
11
- system: "system";
12
11
  user: "user";
12
+ system: "system";
13
13
  }>;
14
14
  createdAt: z.ZodString;
15
15
  createdBy: z.ZodString;
@@ -19,9 +19,9 @@ export declare const EventDocument: z.ZodObject<{
19
19
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
20
20
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
21
21
  status: z.ZodEnum<{
22
+ Requested: "Requested";
22
23
  Accepted: "Accepted";
23
24
  Rejected: "Rejected";
24
- Requested: "Requested";
25
25
  }>;
26
26
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
27
27
  type: z.ZodLiteral<"CREATE">;
@@ -29,8 +29,8 @@ export declare const EventDocument: z.ZodObject<{
29
29
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
30
30
  transactionId: z.ZodString;
31
31
  createdByUserType: z.ZodEnum<{
32
- system: "system";
33
32
  user: "user";
33
+ system: "system";
34
34
  }>;
35
35
  createdAt: z.ZodString;
36
36
  createdBy: z.ZodString;
@@ -40,9 +40,9 @@ export declare const EventDocument: z.ZodObject<{
40
40
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
41
41
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
42
42
  status: z.ZodEnum<{
43
+ Requested: "Requested";
43
44
  Accepted: "Accepted";
44
45
  Rejected: "Rejected";
45
- Requested: "Requested";
46
46
  }>;
47
47
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
48
48
  type: z.ZodLiteral<"REJECT">;
@@ -53,8 +53,8 @@ export declare const EventDocument: z.ZodObject<{
53
53
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
54
54
  transactionId: z.ZodString;
55
55
  createdByUserType: z.ZodEnum<{
56
- system: "system";
57
56
  user: "user";
57
+ system: "system";
58
58
  }>;
59
59
  createdAt: z.ZodString;
60
60
  createdBy: z.ZodString;
@@ -64,9 +64,9 @@ export declare const EventDocument: z.ZodObject<{
64
64
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
65
65
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
66
66
  status: z.ZodEnum<{
67
+ Requested: "Requested";
67
68
  Accepted: "Accepted";
68
69
  Rejected: "Rejected";
69
- Requested: "Requested";
70
70
  }>;
71
71
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
72
72
  type: z.ZodLiteral<"DUPLICATE_DETECTED">;
@@ -80,8 +80,8 @@ export declare const EventDocument: z.ZodObject<{
80
80
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
81
81
  transactionId: z.ZodString;
82
82
  createdByUserType: z.ZodEnum<{
83
- system: "system";
84
83
  user: "user";
84
+ system: "system";
85
85
  }>;
86
86
  createdAt: z.ZodString;
87
87
  createdBy: z.ZodString;
@@ -91,9 +91,9 @@ export declare const EventDocument: z.ZodObject<{
91
91
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
92
92
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
93
93
  status: z.ZodEnum<{
94
+ Requested: "Requested";
94
95
  Accepted: "Accepted";
95
96
  Rejected: "Rejected";
96
- Requested: "Requested";
97
97
  }>;
98
98
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
99
99
  type: z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">;
@@ -101,8 +101,8 @@ export declare const EventDocument: z.ZodObject<{
101
101
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
102
102
  transactionId: z.ZodString;
103
103
  createdByUserType: z.ZodEnum<{
104
- system: "system";
105
104
  user: "user";
105
+ system: "system";
106
106
  }>;
107
107
  createdAt: z.ZodString;
108
108
  createdBy: z.ZodString;
@@ -112,9 +112,9 @@ export declare const EventDocument: z.ZodObject<{
112
112
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
113
113
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
114
114
  status: z.ZodEnum<{
115
+ Requested: "Requested";
115
116
  Accepted: "Accepted";
116
117
  Rejected: "Rejected";
117
- Requested: "Requested";
118
118
  }>;
119
119
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
120
120
  type: z.ZodLiteral<"MARK_AS_DUPLICATE">;
@@ -125,8 +125,8 @@ export declare const EventDocument: z.ZodObject<{
125
125
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
126
126
  transactionId: z.ZodString;
127
127
  createdByUserType: z.ZodEnum<{
128
- system: "system";
129
128
  user: "user";
129
+ system: "system";
130
130
  }>;
131
131
  createdAt: z.ZodString;
132
132
  createdBy: z.ZodString;
@@ -136,9 +136,9 @@ export declare const EventDocument: z.ZodObject<{
136
136
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
137
137
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
138
138
  status: z.ZodEnum<{
139
+ Requested: "Requested";
139
140
  Accepted: "Accepted";
140
141
  Rejected: "Rejected";
141
- Requested: "Requested";
142
142
  }>;
143
143
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
144
144
  type: z.ZodLiteral<"ARCHIVE">;
@@ -149,8 +149,8 @@ export declare const EventDocument: z.ZodObject<{
149
149
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
150
150
  transactionId: z.ZodString;
151
151
  createdByUserType: z.ZodEnum<{
152
- system: "system";
153
152
  user: "user";
153
+ system: "system";
154
154
  }>;
155
155
  createdAt: z.ZodString;
156
156
  createdBy: z.ZodString;
@@ -160,9 +160,9 @@ export declare const EventDocument: z.ZodObject<{
160
160
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
161
161
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
162
162
  status: z.ZodEnum<{
163
+ Requested: "Requested";
163
164
  Accepted: "Accepted";
164
165
  Rejected: "Rejected";
165
- Requested: "Requested";
166
166
  }>;
167
167
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
168
168
  type: z.ZodLiteral<"UNARCHIVE">;
@@ -170,8 +170,8 @@ export declare const EventDocument: z.ZodObject<{
170
170
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
171
171
  transactionId: z.ZodString;
172
172
  createdByUserType: z.ZodEnum<{
173
- system: "system";
174
173
  user: "user";
174
+ system: "system";
175
175
  }>;
176
176
  createdAt: z.ZodString;
177
177
  createdBy: z.ZodString;
@@ -181,9 +181,9 @@ export declare const EventDocument: z.ZodObject<{
181
181
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
182
182
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
183
183
  status: z.ZodEnum<{
184
+ Requested: "Requested";
184
185
  Accepted: "Accepted";
185
186
  Rejected: "Rejected";
186
- Requested: "Requested";
187
187
  }>;
188
188
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
189
189
  type: z.ZodLiteral<"NOTIFY">;
@@ -191,8 +191,8 @@ export declare const EventDocument: z.ZodObject<{
191
191
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
192
192
  transactionId: z.ZodString;
193
193
  createdByUserType: z.ZodEnum<{
194
- system: "system";
195
194
  user: "user";
195
+ system: "system";
196
196
  }>;
197
197
  createdAt: z.ZodString;
198
198
  createdBy: z.ZodString;
@@ -202,9 +202,9 @@ export declare const EventDocument: z.ZodObject<{
202
202
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
203
203
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
204
204
  status: z.ZodEnum<{
205
+ Requested: "Requested";
205
206
  Accepted: "Accepted";
206
207
  Rejected: "Rejected";
207
- Requested: "Requested";
208
208
  }>;
209
209
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
210
210
  type: z.ZodLiteral<"REGISTER">;
@@ -213,8 +213,8 @@ export declare const EventDocument: z.ZodObject<{
213
213
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
214
214
  transactionId: z.ZodString;
215
215
  createdByUserType: z.ZodEnum<{
216
- system: "system";
217
216
  user: "user";
217
+ system: "system";
218
218
  }>;
219
219
  createdAt: z.ZodString;
220
220
  createdBy: z.ZodString;
@@ -224,9 +224,9 @@ export declare const EventDocument: z.ZodObject<{
224
224
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
225
225
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
226
226
  status: z.ZodEnum<{
227
+ Requested: "Requested";
227
228
  Accepted: "Accepted";
228
229
  Rejected: "Rejected";
229
- Requested: "Requested";
230
230
  }>;
231
231
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
232
232
  type: z.ZodLiteral<"DECLARE">;
@@ -234,8 +234,8 @@ export declare const EventDocument: z.ZodObject<{
234
234
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
235
235
  transactionId: z.ZodString;
236
236
  createdByUserType: z.ZodEnum<{
237
- system: "system";
238
237
  user: "user";
238
+ system: "system";
239
239
  }>;
240
240
  createdAt: z.ZodString;
241
241
  createdBy: z.ZodString;
@@ -245,9 +245,9 @@ export declare const EventDocument: z.ZodObject<{
245
245
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
246
246
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
247
247
  status: z.ZodEnum<{
248
+ Requested: "Requested";
248
249
  Accepted: "Accepted";
249
250
  Rejected: "Rejected";
250
- Requested: "Requested";
251
251
  }>;
252
252
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
253
253
  type: z.ZodLiteral<"ASSIGN">;
@@ -256,8 +256,8 @@ export declare const EventDocument: z.ZodObject<{
256
256
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
257
257
  transactionId: z.ZodString;
258
258
  createdByUserType: z.ZodEnum<{
259
- system: "system";
260
259
  user: "user";
260
+ system: "system";
261
261
  }>;
262
262
  createdAt: z.ZodString;
263
263
  createdBy: z.ZodString;
@@ -267,9 +267,9 @@ export declare const EventDocument: z.ZodObject<{
267
267
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
268
268
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
269
269
  status: z.ZodEnum<{
270
+ Requested: "Requested";
270
271
  Accepted: "Accepted";
271
272
  Rejected: "Rejected";
272
- Requested: "Requested";
273
273
  }>;
274
274
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
275
275
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
@@ -277,8 +277,8 @@ export declare const EventDocument: z.ZodObject<{
277
277
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
278
278
  transactionId: z.ZodString;
279
279
  createdByUserType: z.ZodEnum<{
280
- system: "system";
281
280
  user: "user";
281
+ system: "system";
282
282
  }>;
283
283
  createdAt: z.ZodString;
284
284
  createdBy: z.ZodString;
@@ -288,9 +288,9 @@ export declare const EventDocument: z.ZodObject<{
288
288
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
289
289
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
290
290
  status: z.ZodEnum<{
291
+ Requested: "Requested";
291
292
  Accepted: "Accepted";
292
293
  Rejected: "Rejected";
293
- Requested: "Requested";
294
294
  }>;
295
295
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
296
296
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
@@ -302,8 +302,8 @@ export declare const EventDocument: z.ZodObject<{
302
302
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
303
303
  transactionId: z.ZodString;
304
304
  createdByUserType: z.ZodEnum<{
305
- system: "system";
306
305
  user: "user";
306
+ system: "system";
307
307
  }>;
308
308
  createdAt: z.ZodString;
309
309
  createdBy: z.ZodString;
@@ -313,9 +313,9 @@ export declare const EventDocument: z.ZodObject<{
313
313
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
314
314
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
315
315
  status: z.ZodEnum<{
316
+ Requested: "Requested";
316
317
  Accepted: "Accepted";
317
318
  Rejected: "Rejected";
318
- Requested: "Requested";
319
319
  }>;
320
320
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
321
321
  type: z.ZodLiteral<"REJECT_CORRECTION">;
@@ -327,8 +327,8 @@ export declare const EventDocument: z.ZodObject<{
327
327
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
328
328
  transactionId: z.ZodString;
329
329
  createdByUserType: z.ZodEnum<{
330
- system: "system";
331
330
  user: "user";
331
+ system: "system";
332
332
  }>;
333
333
  createdAt: z.ZodString;
334
334
  createdBy: z.ZodString;
@@ -338,9 +338,9 @@ export declare const EventDocument: z.ZodObject<{
338
338
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
339
339
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
340
340
  status: z.ZodEnum<{
341
+ Requested: "Requested";
341
342
  Accepted: "Accepted";
342
343
  Rejected: "Rejected";
343
- Requested: "Requested";
344
344
  }>;
345
345
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
346
346
  type: z.ZodLiteral<"UNASSIGN">;
@@ -348,8 +348,8 @@ export declare const EventDocument: z.ZodObject<{
348
348
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
349
349
  transactionId: z.ZodString;
350
350
  createdByUserType: z.ZodEnum<{
351
- system: "system";
352
351
  user: "user";
352
+ system: "system";
353
353
  }>;
354
354
  createdAt: z.ZodString;
355
355
  createdBy: z.ZodString;
@@ -359,9 +359,9 @@ export declare const EventDocument: z.ZodObject<{
359
359
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
360
360
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
361
361
  status: z.ZodEnum<{
362
+ Requested: "Requested";
362
363
  Accepted: "Accepted";
363
364
  Rejected: "Rejected";
364
- Requested: "Requested";
365
365
  }>;
366
366
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
367
367
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
@@ -372,8 +372,8 @@ export declare const EventDocument: z.ZodObject<{
372
372
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
373
373
  transactionId: z.ZodString;
374
374
  createdByUserType: z.ZodEnum<{
375
- system: "system";
376
375
  user: "user";
376
+ system: "system";
377
377
  }>;
378
378
  createdAt: z.ZodString;
379
379
  createdBy: z.ZodString;
@@ -383,9 +383,9 @@ export declare const EventDocument: z.ZodObject<{
383
383
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
384
384
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
385
385
  status: z.ZodEnum<{
386
+ Requested: "Requested";
386
387
  Accepted: "Accepted";
387
388
  Rejected: "Rejected";
388
- Requested: "Requested";
389
389
  }>;
390
390
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
391
391
  type: z.ZodLiteral<"READ">;
@@ -393,8 +393,8 @@ export declare const EventDocument: z.ZodObject<{
393
393
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
394
394
  transactionId: z.ZodString;
395
395
  createdByUserType: z.ZodEnum<{
396
- system: "system";
397
396
  user: "user";
397
+ system: "system";
398
398
  }>;
399
399
  createdAt: z.ZodString;
400
400
  createdBy: z.ZodString;
@@ -404,9 +404,9 @@ export declare const EventDocument: z.ZodObject<{
404
404
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
405
405
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
406
406
  status: z.ZodEnum<{
407
+ Requested: "Requested";
407
408
  Accepted: "Accepted";
408
409
  Rejected: "Rejected";
409
- Requested: "Requested";
410
410
  }>;
411
411
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
412
412
  type: z.ZodLiteral<"EDIT">;
@@ -417,8 +417,8 @@ export declare const EventDocument: z.ZodObject<{
417
417
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
418
418
  transactionId: z.ZodString;
419
419
  createdByUserType: z.ZodEnum<{
420
- system: "system";
421
420
  user: "user";
421
+ system: "system";
422
422
  }>;
423
423
  createdAt: z.ZodString;
424
424
  createdBy: z.ZodString;
@@ -428,9 +428,9 @@ export declare const EventDocument: z.ZodObject<{
428
428
  declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
429
429
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
430
430
  status: z.ZodEnum<{
431
+ Requested: "Requested";
431
432
  Accepted: "Accepted";
432
433
  Rejected: "Rejected";
433
- Requested: "Requested";
434
434
  }>;
435
435
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
436
436
  type: z.ZodLiteral<"CUSTOM">;
@@ -439,8 +439,8 @@ export declare const EventDocument: z.ZodObject<{
439
439
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
440
440
  transactionId: z.ZodString;
441
441
  createdByUserType: z.ZodEnum<{
442
- system: "system";
443
442
  user: "user";
443
+ system: "system";
444
444
  }>;
445
445
  createdAt: z.ZodString;
446
446
  createdBy: z.ZodString;
@@ -449,18 +449,18 @@ export declare const EventDocument: z.ZodObject<{
449
449
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
450
450
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
451
451
  type: z.ZodEnum<{
452
- APPROVE_CORRECTION: "APPROVE_CORRECTION";
453
- ARCHIVE: "ARCHIVE";
454
452
  CUSTOM: "CUSTOM";
455
- DECLARE: "DECLARE";
456
- EDIT: "EDIT";
457
453
  NOTIFY: "NOTIFY";
458
- PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
454
+ DECLARE: "DECLARE";
459
455
  REGISTER: "REGISTER";
456
+ EDIT: "EDIT";
460
457
  REJECT: "REJECT";
461
- REJECT_CORRECTION: "REJECT_CORRECTION";
462
- REQUEST_CORRECTION: "REQUEST_CORRECTION";
458
+ ARCHIVE: "ARCHIVE";
463
459
  UNARCHIVE: "UNARCHIVE";
460
+ PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
461
+ REQUEST_CORRECTION: "REQUEST_CORRECTION";
462
+ REJECT_CORRECTION: "REJECT_CORRECTION";
463
+ APPROVE_CORRECTION: "APPROVE_CORRECTION";
464
464
  }>;
465
465
  status: z.ZodLiteral<"Rejected">;
466
466
  }, z.core.$strip>]>>;