@opencrvs/toolkit 1.9.2-rc.c76ff3e → 1.9.2-rc.f6dcfa6

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 (56) hide show
  1. package/dist/commons/api/router.d.ts +1620 -26666
  2. package/dist/commons/conditionals/conditionals.d.ts +1 -10
  3. package/dist/commons/conditionals/validate.d.ts +4 -11
  4. package/dist/commons/events/ActionConfig.d.ts +1525 -21293
  5. package/dist/commons/events/ActionDocument.d.ts +1849 -764
  6. package/dist/commons/events/ActionInput.d.ts +1066 -264
  7. package/dist/commons/events/ActionType.d.ts +8 -85
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1238 -211
  9. package/dist/commons/events/CompositeFieldValue.d.ts +176 -25
  10. package/dist/commons/events/Conditional.d.ts +38 -26
  11. package/dist/commons/events/Constants.d.ts +1 -1
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +4169 -919
  13. package/dist/commons/events/CreatedAtLocation.d.ts +1 -1
  14. package/dist/commons/events/DeduplicationConfig.d.ts +150 -15
  15. package/dist/commons/events/Draft.d.ts +105 -70
  16. package/dist/commons/events/DynamicFieldValue.d.ts +91 -7
  17. package/dist/commons/events/EventConfig.d.ts +2096 -17110
  18. package/dist/commons/events/EventConfigInput.d.ts +1 -1
  19. package/dist/commons/events/EventDocument.d.ts +1326 -311
  20. package/dist/commons/events/EventIndex.d.ts +967 -191
  21. package/dist/commons/events/EventInput.d.ts +8 -2
  22. package/dist/commons/events/EventMetadata.d.ts +345 -102
  23. package/dist/commons/events/FieldConfig.d.ts +11775 -4088
  24. package/dist/commons/events/FieldType.d.ts +2 -6
  25. package/dist/commons/events/FieldTypeMapping.d.ts +810 -164
  26. package/dist/commons/events/FieldValue.d.ts +354 -80
  27. package/dist/commons/events/FormConfig.d.ts +697 -12636
  28. package/dist/commons/events/PageConfig.d.ts +314 -8441
  29. package/dist/commons/events/SummaryConfig.d.ts +161 -14
  30. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  31. package/dist/commons/events/WorkqueueColumnConfig.d.ts +36 -70
  32. package/dist/commons/events/WorkqueueConfig.d.ts +7080 -1597
  33. package/dist/commons/events/deduplication.d.ts +3 -3
  34. package/dist/commons/events/defineConfig.d.ts +155 -24703
  35. package/dist/commons/events/index.d.ts +0 -1
  36. package/dist/commons/events/locations.d.ts +19 -15
  37. package/dist/commons/events/scopes.d.ts +0 -1
  38. package/dist/commons/events/state/availableActions.d.ts +1 -2
  39. package/dist/commons/events/state/flags.d.ts +3 -21
  40. package/dist/commons/events/state/index.d.ts +19 -17
  41. package/dist/commons/events/state/utils.d.ts +112 -127
  42. package/dist/commons/events/test.utils.d.ts +5 -11
  43. package/dist/commons/events/transactions.d.ts +1 -1
  44. package/dist/commons/events/utils.d.ts +359 -49444
  45. package/dist/commons/notification/UserNotifications.d.ts +636 -55
  46. package/dist/conditionals/index.d.ts.map +1 -1
  47. package/dist/conditionals/index.js +5 -38
  48. package/dist/events/deduplication.d.ts +3 -3
  49. package/dist/events/index.js +1360 -1502
  50. package/dist/notification/index.d.ts.map +1 -1
  51. package/dist/notification/index.js +1279 -1276
  52. package/dist/scopes/index.d.ts +136 -106
  53. package/dist/scopes/index.d.ts.map +1 -1
  54. package/dist/scopes/index.js +93 -116
  55. package/package.json +5 -5
  56. package/dist/commons/events/Flag.d.ts +0 -43
@@ -1,14 +1,14 @@
1
- import * as z from 'zod/v4';
1
+ import { z } from 'zod';
2
2
  import { FieldValue, FieldUpdateValue } from './FieldValue';
3
3
  /**
4
4
  * ActionUpdate is a record of a specific action that updated data fields.
5
5
  */
6
- export declare const ActionUpdate: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
6
+ export declare const ActionUpdate: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
7
7
  export type ActionUpdate = z.infer<typeof ActionUpdate>;
8
8
  /**
9
9
  * EventState is an aggregate of all the actions that have been applied to event data.
10
10
  */
11
- export declare const EventState: z.ZodRecord<z.ZodString, z.ZodType<FieldValue, unknown, z.core.$ZodTypeInternals<FieldValue, unknown>>>;
11
+ export declare const EventState: z.ZodRecord<z.ZodString, z.ZodType<FieldValue, z.ZodTypeDef, FieldValue>>;
12
12
  export type EventState = z.infer<typeof EventState>;
13
13
  export declare const ActionStatus: {
14
14
  readonly Requested: "Requested";
@@ -17,1078 +17,2163 @@ export declare const ActionStatus: {
17
17
  };
18
18
  export type ActionStatus = keyof typeof ActionStatus;
19
19
  export declare const ActionBase: z.ZodObject<{
20
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
20
+ id: z.ZodBranded<z.ZodString, "UUID">;
21
21
  transactionId: z.ZodString;
22
- createdByUserType: z.ZodEnum<{
23
- system: "system";
24
- user: "user";
25
- }>;
22
+ createdByUserType: z.ZodEnum<["user", "system"]>;
26
23
  createdAt: z.ZodString;
27
24
  createdBy: z.ZodString;
28
25
  createdByRole: z.ZodString;
29
26
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
31
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
32
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
33
- status: z.ZodEnum<{
34
- Rejected: "Rejected";
35
- Requested: "Requested";
36
- Accepted: "Accepted";
37
- }>;
38
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
39
- }, z.core.$strip>;
27
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
28
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
29
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
30
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
31
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ id: string & z.BRAND<"UUID">;
34
+ status: "Rejected" | "Requested" | "Accepted";
35
+ transactionId: string;
36
+ createdByUserType: "system" | "user";
37
+ createdAt: string;
38
+ createdBy: string;
39
+ createdByRole: string;
40
+ declaration: Record<string, FieldUpdateValue>;
41
+ createdBySignature?: string | null | undefined;
42
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
43
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
44
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
45
+ }, {
46
+ id: string;
47
+ status: "Rejected" | "Requested" | "Accepted";
48
+ transactionId: string;
49
+ createdByUserType: "system" | "user";
50
+ createdAt: string;
51
+ createdBy: string;
52
+ createdByRole: string;
53
+ declaration: Record<string, FieldUpdateValue>;
54
+ createdBySignature?: string | null | undefined;
55
+ createdAtLocation?: string | null | undefined;
56
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
57
+ originalActionId?: string | null | undefined;
58
+ }>;
40
59
  export type ActionBase = z.infer<typeof ActionBase>;
41
- declare const AssignedAction: z.ZodObject<{
42
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
60
+ declare const AssignedAction: z.ZodObject<z.objectUtil.extendShape<{
61
+ id: z.ZodBranded<z.ZodString, "UUID">;
43
62
  transactionId: z.ZodString;
44
- createdByUserType: z.ZodEnum<{
45
- system: "system";
46
- user: "user";
47
- }>;
63
+ createdByUserType: z.ZodEnum<["user", "system"]>;
48
64
  createdAt: z.ZodString;
49
65
  createdBy: z.ZodString;
50
66
  createdByRole: z.ZodString;
51
67
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
53
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
54
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
55
- status: z.ZodEnum<{
56
- Rejected: "Rejected";
57
- Requested: "Requested";
58
- Accepted: "Accepted";
59
- }>;
60
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
68
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
69
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
70
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
71
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
72
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
73
+ }, {
61
74
  type: z.ZodLiteral<"ASSIGN">;
62
75
  assignedTo: z.ZodString;
63
- }, z.core.$strip>;
64
- export declare const RegisterAction: z.ZodObject<{
65
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
76
+ }>, "strip", z.ZodTypeAny, {
77
+ type: "ASSIGN";
78
+ id: string & z.BRAND<"UUID">;
79
+ status: "Rejected" | "Requested" | "Accepted";
80
+ transactionId: string;
81
+ createdByUserType: "system" | "user";
82
+ createdAt: string;
83
+ createdBy: string;
84
+ createdByRole: string;
85
+ declaration: Record<string, FieldUpdateValue>;
86
+ assignedTo: string;
87
+ createdBySignature?: string | null | undefined;
88
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
89
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
90
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
91
+ }, {
92
+ type: "ASSIGN";
93
+ id: string;
94
+ status: "Rejected" | "Requested" | "Accepted";
95
+ transactionId: string;
96
+ createdByUserType: "system" | "user";
97
+ createdAt: string;
98
+ createdBy: string;
99
+ createdByRole: string;
100
+ declaration: Record<string, FieldUpdateValue>;
101
+ assignedTo: string;
102
+ createdBySignature?: string | null | undefined;
103
+ createdAtLocation?: string | null | undefined;
104
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
105
+ originalActionId?: string | null | undefined;
106
+ }>;
107
+ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
108
+ id: z.ZodBranded<z.ZodString, "UUID">;
66
109
  transactionId: z.ZodString;
67
- createdByUserType: z.ZodEnum<{
68
- system: "system";
69
- user: "user";
70
- }>;
110
+ createdByUserType: z.ZodEnum<["user", "system"]>;
71
111
  createdAt: z.ZodString;
72
112
  createdBy: z.ZodString;
73
113
  createdByRole: z.ZodString;
74
114
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
76
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
77
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
78
- status: z.ZodEnum<{
79
- Rejected: "Rejected";
80
- Requested: "Requested";
81
- Accepted: "Accepted";
82
- }>;
83
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
115
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
116
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
117
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
118
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
119
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
120
+ }, {
84
121
  type: z.ZodLiteral<"REGISTER">;
85
122
  registrationNumber: z.ZodOptional<z.ZodString>;
86
- }, z.core.$strip>;
123
+ }>, "strip", z.ZodTypeAny, {
124
+ type: "REGISTER";
125
+ id: string & z.BRAND<"UUID">;
126
+ status: "Rejected" | "Requested" | "Accepted";
127
+ transactionId: string;
128
+ createdByUserType: "system" | "user";
129
+ createdAt: string;
130
+ createdBy: string;
131
+ createdByRole: string;
132
+ declaration: Record<string, FieldUpdateValue>;
133
+ createdBySignature?: string | null | undefined;
134
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
135
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
136
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
137
+ registrationNumber?: string | undefined;
138
+ }, {
139
+ type: "REGISTER";
140
+ id: string;
141
+ status: "Rejected" | "Requested" | "Accepted";
142
+ transactionId: string;
143
+ createdByUserType: "system" | "user";
144
+ createdAt: string;
145
+ createdBy: string;
146
+ createdByRole: string;
147
+ declaration: Record<string, FieldUpdateValue>;
148
+ createdBySignature?: string | null | undefined;
149
+ createdAtLocation?: string | null | undefined;
150
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
151
+ originalActionId?: string | null | undefined;
152
+ registrationNumber?: string | undefined;
153
+ }>;
87
154
  export type RegisterAction = z.infer<typeof RegisterAction>;
88
155
  export declare const ReasonContent: z.ZodObject<{
89
156
  reason: z.ZodString;
90
- }, z.core.$strip>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ reason: string;
159
+ }, {
160
+ reason: string;
161
+ }>;
91
162
  export declare const PotentialDuplicate: z.ZodObject<{
92
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
163
+ id: z.ZodBranded<z.ZodString, "UUID">;
93
164
  trackingId: z.ZodString;
94
- }, z.core.$strip>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ id: string & z.BRAND<"UUID">;
167
+ trackingId: string;
168
+ }, {
169
+ id: string;
170
+ trackingId: string;
171
+ }>;
95
172
  export type PotentialDuplicate = z.infer<typeof PotentialDuplicate>;
96
- export declare const DuplicateDetectedAction: z.ZodObject<{
97
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
173
+ export declare const DuplicateDetectedAction: z.ZodObject<z.objectUtil.extendShape<{
174
+ id: z.ZodBranded<z.ZodString, "UUID">;
98
175
  transactionId: z.ZodString;
99
- createdByUserType: z.ZodEnum<{
100
- system: "system";
101
- user: "user";
102
- }>;
176
+ createdByUserType: z.ZodEnum<["user", "system"]>;
103
177
  createdAt: z.ZodString;
104
178
  createdBy: z.ZodString;
105
179
  createdByRole: z.ZodString;
106
180
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
108
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
109
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
110
- status: z.ZodEnum<{
111
- Rejected: "Rejected";
112
- Requested: "Requested";
113
- Accepted: "Accepted";
114
- }>;
115
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
181
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
182
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
183
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
184
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
185
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
186
+ }, {
116
187
  type: z.ZodLiteral<"DUPLICATE_DETECTED">;
117
188
  content: z.ZodObject<{
118
189
  duplicates: z.ZodArray<z.ZodObject<{
119
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
190
+ id: z.ZodBranded<z.ZodString, "UUID">;
120
191
  trackingId: z.ZodString;
121
- }, z.core.$strip>>;
122
- }, z.core.$strip>;
123
- }, z.core.$strip>;
192
+ }, "strip", z.ZodTypeAny, {
193
+ id: string & z.BRAND<"UUID">;
194
+ trackingId: string;
195
+ }, {
196
+ id: string;
197
+ trackingId: string;
198
+ }>, "many">;
199
+ }, "strip", z.ZodTypeAny, {
200
+ duplicates: {
201
+ id: string & z.BRAND<"UUID">;
202
+ trackingId: string;
203
+ }[];
204
+ }, {
205
+ duplicates: {
206
+ id: string;
207
+ trackingId: string;
208
+ }[];
209
+ }>;
210
+ }>, "strip", z.ZodTypeAny, {
211
+ type: "DUPLICATE_DETECTED";
212
+ id: string & z.BRAND<"UUID">;
213
+ status: "Rejected" | "Requested" | "Accepted";
214
+ content: {
215
+ duplicates: {
216
+ id: string & z.BRAND<"UUID">;
217
+ trackingId: string;
218
+ }[];
219
+ };
220
+ transactionId: string;
221
+ createdByUserType: "system" | "user";
222
+ createdAt: string;
223
+ createdBy: string;
224
+ createdByRole: string;
225
+ declaration: Record<string, FieldUpdateValue>;
226
+ createdBySignature?: string | null | undefined;
227
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
228
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
229
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
230
+ }, {
231
+ type: "DUPLICATE_DETECTED";
232
+ id: string;
233
+ status: "Rejected" | "Requested" | "Accepted";
234
+ content: {
235
+ duplicates: {
236
+ id: string;
237
+ trackingId: string;
238
+ }[];
239
+ };
240
+ transactionId: string;
241
+ createdByUserType: "system" | "user";
242
+ createdAt: string;
243
+ createdBy: string;
244
+ createdByRole: string;
245
+ declaration: Record<string, FieldUpdateValue>;
246
+ createdBySignature?: string | null | undefined;
247
+ createdAtLocation?: string | null | undefined;
248
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
249
+ originalActionId?: string | null | undefined;
250
+ }>;
124
251
  export type DuplicateDetectedAction = z.infer<typeof DuplicateDetectedAction>;
125
- declare const CreatedAction: z.ZodObject<{
126
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
252
+ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
253
+ id: z.ZodBranded<z.ZodString, "UUID">;
127
254
  transactionId: z.ZodString;
128
- createdByUserType: z.ZodEnum<{
129
- system: "system";
130
- user: "user";
131
- }>;
255
+ createdByUserType: z.ZodEnum<["user", "system"]>;
132
256
  createdAt: z.ZodString;
133
257
  createdBy: z.ZodString;
134
258
  createdByRole: z.ZodString;
135
259
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
137
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
138
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
139
- status: z.ZodEnum<{
140
- Rejected: "Rejected";
141
- Requested: "Requested";
142
- Accepted: "Accepted";
143
- }>;
144
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
260
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
261
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
262
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
263
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
264
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
265
+ }, {
145
266
  type: z.ZodLiteral<"CREATE">;
146
- }, z.core.$strip>;
267
+ }>, "strip", z.ZodTypeAny, {
268
+ type: "CREATE";
269
+ id: string & z.BRAND<"UUID">;
270
+ status: "Rejected" | "Requested" | "Accepted";
271
+ transactionId: string;
272
+ createdByUserType: "system" | "user";
273
+ createdAt: string;
274
+ createdBy: string;
275
+ createdByRole: string;
276
+ declaration: Record<string, FieldUpdateValue>;
277
+ createdBySignature?: string | null | undefined;
278
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
279
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
280
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
281
+ }, {
282
+ type: "CREATE";
283
+ id: string;
284
+ status: "Rejected" | "Requested" | "Accepted";
285
+ transactionId: string;
286
+ createdByUserType: "system" | "user";
287
+ createdAt: string;
288
+ createdBy: string;
289
+ createdByRole: string;
290
+ declaration: Record<string, FieldUpdateValue>;
291
+ createdBySignature?: string | null | undefined;
292
+ createdAtLocation?: string | null | undefined;
293
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
294
+ originalActionId?: string | null | undefined;
295
+ }>;
147
296
  export declare const PrintContent: z.ZodObject<{
148
297
  templateId: z.ZodOptional<z.ZodString>;
149
- }, z.core.$strip>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ templateId?: string | undefined;
300
+ }, {
301
+ templateId?: string | undefined;
302
+ }>;
150
303
  export type PrintContent = z.infer<typeof PrintContent>;
151
- declare const PrintCertificateAction: z.ZodObject<{
152
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
304
+ declare const PrintCertificateAction: z.ZodObject<z.objectUtil.extendShape<{
305
+ id: z.ZodBranded<z.ZodString, "UUID">;
153
306
  transactionId: z.ZodString;
154
- createdByUserType: z.ZodEnum<{
155
- system: "system";
156
- user: "user";
157
- }>;
307
+ createdByUserType: z.ZodEnum<["user", "system"]>;
158
308
  createdAt: z.ZodString;
159
309
  createdBy: z.ZodString;
160
310
  createdByRole: z.ZodString;
161
311
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
163
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
164
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
165
- status: z.ZodEnum<{
166
- Rejected: "Rejected";
167
- Requested: "Requested";
168
- Accepted: "Accepted";
169
- }>;
170
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
312
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
313
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
314
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
315
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
316
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
317
+ }, {
171
318
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
172
319
  content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
173
320
  templateId: z.ZodOptional<z.ZodString>;
174
- }, z.core.$strip>>>;
175
- }, z.core.$strip>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ templateId?: string | undefined;
323
+ }, {
324
+ templateId?: string | undefined;
325
+ }>>>;
326
+ }>, "strip", z.ZodTypeAny, {
327
+ type: "PRINT_CERTIFICATE";
328
+ id: string & z.BRAND<"UUID">;
329
+ status: "Rejected" | "Requested" | "Accepted";
330
+ transactionId: string;
331
+ createdByUserType: "system" | "user";
332
+ createdAt: string;
333
+ createdBy: string;
334
+ createdByRole: string;
335
+ declaration: Record<string, FieldUpdateValue>;
336
+ content?: {
337
+ templateId?: string | undefined;
338
+ } | null | undefined;
339
+ createdBySignature?: string | null | undefined;
340
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
341
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
342
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
343
+ }, {
344
+ type: "PRINT_CERTIFICATE";
345
+ id: string;
346
+ status: "Rejected" | "Requested" | "Accepted";
347
+ transactionId: string;
348
+ createdByUserType: "system" | "user";
349
+ createdAt: string;
350
+ createdBy: string;
351
+ createdByRole: string;
352
+ declaration: Record<string, FieldUpdateValue>;
353
+ content?: {
354
+ templateId?: string | undefined;
355
+ } | null | undefined;
356
+ createdBySignature?: string | null | undefined;
357
+ createdAtLocation?: string | null | undefined;
358
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
359
+ originalActionId?: string | null | undefined;
360
+ }>;
176
361
  export type PrintCertificateAction = z.infer<typeof PrintCertificateAction>;
177
- declare const RequestedCorrectionAction: z.ZodObject<{
178
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
362
+ declare const RequestedCorrectionAction: z.ZodObject<z.objectUtil.extendShape<{
363
+ id: z.ZodBranded<z.ZodString, "UUID">;
179
364
  transactionId: z.ZodString;
180
- createdByUserType: z.ZodEnum<{
181
- system: "system";
182
- user: "user";
183
- }>;
365
+ createdByUserType: z.ZodEnum<["user", "system"]>;
184
366
  createdAt: z.ZodString;
185
367
  createdBy: z.ZodString;
186
368
  createdByRole: z.ZodString;
187
369
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
188
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
189
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
190
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
191
- status: z.ZodEnum<{
192
- Rejected: "Rejected";
193
- Requested: "Requested";
194
- Accepted: "Accepted";
195
- }>;
196
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
370
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
371
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
372
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
373
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
374
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
375
+ }, {
197
376
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
198
- }, z.core.$strip>;
377
+ }>, "strip", z.ZodTypeAny, {
378
+ type: "REQUEST_CORRECTION";
379
+ id: string & z.BRAND<"UUID">;
380
+ status: "Rejected" | "Requested" | "Accepted";
381
+ transactionId: string;
382
+ createdByUserType: "system" | "user";
383
+ createdAt: string;
384
+ createdBy: string;
385
+ createdByRole: string;
386
+ declaration: Record<string, FieldUpdateValue>;
387
+ createdBySignature?: string | null | undefined;
388
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
389
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
390
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
391
+ }, {
392
+ type: "REQUEST_CORRECTION";
393
+ id: string;
394
+ status: "Rejected" | "Requested" | "Accepted";
395
+ transactionId: string;
396
+ createdByUserType: "system" | "user";
397
+ createdAt: string;
398
+ createdBy: string;
399
+ createdByRole: string;
400
+ declaration: Record<string, FieldUpdateValue>;
401
+ createdBySignature?: string | null | undefined;
402
+ createdAtLocation?: string | null | undefined;
403
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
404
+ originalActionId?: string | null | undefined;
405
+ }>;
199
406
  export type RequestedCorrectionAction = z.infer<typeof RequestedCorrectionAction>;
200
- declare const CustomAction: z.ZodObject<{
201
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
407
+ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
408
+ id: z.ZodBranded<z.ZodString, "UUID">;
202
409
  transactionId: z.ZodString;
203
- createdByUserType: z.ZodEnum<{
204
- system: "system";
205
- user: "user";
206
- }>;
410
+ createdByUserType: z.ZodEnum<["user", "system"]>;
207
411
  createdAt: z.ZodString;
208
412
  createdBy: z.ZodString;
209
413
  createdByRole: z.ZodString;
210
414
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
212
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
213
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
214
- status: z.ZodEnum<{
215
- Rejected: "Rejected";
216
- Requested: "Requested";
217
- Accepted: "Accepted";
218
- }>;
219
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
220
- type: z.ZodLiteral<"CUSTOM">;
221
- customActionType: z.ZodString;
222
- }, z.core.$strip>;
223
- export type CustomAction = z.infer<typeof CustomAction>;
224
- export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
225
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
226
- transactionId: z.ZodString;
227
- createdByUserType: z.ZodEnum<{
228
- system: "system";
229
- user: "user";
230
- }>;
231
- createdAt: z.ZodString;
232
- createdBy: z.ZodString;
233
- createdByRole: z.ZodString;
234
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
235
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
236
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
237
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
238
- status: z.ZodEnum<{
239
- Rejected: "Rejected";
240
- Requested: "Requested";
241
- Accepted: "Accepted";
242
- }>;
243
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
415
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
416
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
417
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
418
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
419
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
420
+ }, {
244
421
  type: z.ZodLiteral<"CREATE">;
245
- }, z.core.$strip>, z.ZodObject<{
246
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
422
+ }>, "strip", z.ZodTypeAny, {
423
+ type: "CREATE";
424
+ id: string & z.BRAND<"UUID">;
425
+ status: "Rejected" | "Requested" | "Accepted";
426
+ transactionId: string;
427
+ createdByUserType: "system" | "user";
428
+ createdAt: string;
429
+ createdBy: string;
430
+ createdByRole: string;
431
+ declaration: Record<string, FieldUpdateValue>;
432
+ createdBySignature?: string | null | undefined;
433
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
434
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
435
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
436
+ }, {
437
+ type: "CREATE";
438
+ id: string;
439
+ status: "Rejected" | "Requested" | "Accepted";
440
+ transactionId: string;
441
+ createdByUserType: "system" | "user";
442
+ createdAt: string;
443
+ createdBy: string;
444
+ createdByRole: string;
445
+ declaration: Record<string, FieldUpdateValue>;
446
+ createdBySignature?: string | null | undefined;
447
+ createdAtLocation?: string | null | undefined;
448
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
449
+ originalActionId?: string | null | undefined;
450
+ }>, z.ZodObject<z.objectUtil.extendShape<{
451
+ id: z.ZodBranded<z.ZodString, "UUID">;
247
452
  transactionId: z.ZodString;
248
- createdByUserType: z.ZodEnum<{
249
- system: "system";
250
- user: "user";
251
- }>;
453
+ createdByUserType: z.ZodEnum<["user", "system"]>;
252
454
  createdAt: z.ZodString;
253
455
  createdBy: z.ZodString;
254
456
  createdByRole: z.ZodString;
255
457
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
256
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
257
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
258
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
259
- status: z.ZodEnum<{
260
- Rejected: "Rejected";
261
- Requested: "Requested";
262
- Accepted: "Accepted";
263
- }>;
264
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
458
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
459
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
460
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
461
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
462
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
463
+ }, {
265
464
  type: z.ZodLiteral<"VALIDATE">;
266
- }, z.core.$strip>, z.ZodObject<{
267
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
465
+ }>, "strip", z.ZodTypeAny, {
466
+ type: "VALIDATE";
467
+ id: string & z.BRAND<"UUID">;
468
+ status: "Rejected" | "Requested" | "Accepted";
469
+ transactionId: string;
470
+ createdByUserType: "system" | "user";
471
+ createdAt: string;
472
+ createdBy: string;
473
+ createdByRole: string;
474
+ declaration: Record<string, FieldUpdateValue>;
475
+ createdBySignature?: string | null | undefined;
476
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
477
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
478
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
479
+ }, {
480
+ type: "VALIDATE";
481
+ id: string;
482
+ status: "Rejected" | "Requested" | "Accepted";
483
+ transactionId: string;
484
+ createdByUserType: "system" | "user";
485
+ createdAt: string;
486
+ createdBy: string;
487
+ createdByRole: string;
488
+ declaration: Record<string, FieldUpdateValue>;
489
+ createdBySignature?: string | null | undefined;
490
+ createdAtLocation?: string | null | undefined;
491
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
492
+ originalActionId?: string | null | undefined;
493
+ }>, z.ZodObject<z.objectUtil.extendShape<{
494
+ id: z.ZodBranded<z.ZodString, "UUID">;
268
495
  transactionId: z.ZodString;
269
- createdByUserType: z.ZodEnum<{
270
- system: "system";
271
- user: "user";
272
- }>;
496
+ createdByUserType: z.ZodEnum<["user", "system"]>;
273
497
  createdAt: z.ZodString;
274
498
  createdBy: z.ZodString;
275
499
  createdByRole: z.ZodString;
276
500
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
278
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
279
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
280
- status: z.ZodEnum<{
281
- Rejected: "Rejected";
282
- Requested: "Requested";
283
- Accepted: "Accepted";
284
- }>;
285
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
501
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
502
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
503
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
504
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
505
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
506
+ }, {
286
507
  type: z.ZodLiteral<"REJECT">;
287
508
  content: z.ZodObject<{
288
509
  reason: z.ZodString;
289
- }, z.core.$strip>;
290
- }, z.core.$strip>, z.ZodObject<{
291
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
510
+ }, "strip", z.ZodTypeAny, {
511
+ reason: string;
512
+ }, {
513
+ reason: string;
514
+ }>;
515
+ }>, "strip", z.ZodTypeAny, {
516
+ type: "REJECT";
517
+ id: string & z.BRAND<"UUID">;
518
+ status: "Rejected" | "Requested" | "Accepted";
519
+ content: {
520
+ reason: string;
521
+ };
522
+ transactionId: string;
523
+ createdByUserType: "system" | "user";
524
+ createdAt: string;
525
+ createdBy: string;
526
+ createdByRole: string;
527
+ declaration: Record<string, FieldUpdateValue>;
528
+ createdBySignature?: string | null | undefined;
529
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
530
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
531
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
532
+ }, {
533
+ type: "REJECT";
534
+ id: string;
535
+ status: "Rejected" | "Requested" | "Accepted";
536
+ content: {
537
+ reason: string;
538
+ };
539
+ transactionId: string;
540
+ createdByUserType: "system" | "user";
541
+ createdAt: string;
542
+ createdBy: string;
543
+ createdByRole: string;
544
+ declaration: Record<string, FieldUpdateValue>;
545
+ createdBySignature?: string | null | undefined;
546
+ createdAtLocation?: string | null | undefined;
547
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
548
+ originalActionId?: string | null | undefined;
549
+ }>, z.ZodObject<z.objectUtil.extendShape<{
550
+ id: z.ZodBranded<z.ZodString, "UUID">;
292
551
  transactionId: z.ZodString;
293
- createdByUserType: z.ZodEnum<{
294
- system: "system";
295
- user: "user";
296
- }>;
552
+ createdByUserType: z.ZodEnum<["user", "system"]>;
297
553
  createdAt: z.ZodString;
298
554
  createdBy: z.ZodString;
299
555
  createdByRole: z.ZodString;
300
556
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
302
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
303
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
304
- status: z.ZodEnum<{
305
- Rejected: "Rejected";
306
- Requested: "Requested";
307
- Accepted: "Accepted";
308
- }>;
309
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
557
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
558
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
559
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
560
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
561
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
562
+ }, {
310
563
  type: z.ZodLiteral<"DUPLICATE_DETECTED">;
311
564
  content: z.ZodObject<{
312
565
  duplicates: z.ZodArray<z.ZodObject<{
313
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
566
+ id: z.ZodBranded<z.ZodString, "UUID">;
314
567
  trackingId: z.ZodString;
315
- }, z.core.$strip>>;
316
- }, z.core.$strip>;
317
- }, z.core.$strip>, z.ZodObject<{
318
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
568
+ }, "strip", z.ZodTypeAny, {
569
+ id: string & z.BRAND<"UUID">;
570
+ trackingId: string;
571
+ }, {
572
+ id: string;
573
+ trackingId: string;
574
+ }>, "many">;
575
+ }, "strip", z.ZodTypeAny, {
576
+ duplicates: {
577
+ id: string & z.BRAND<"UUID">;
578
+ trackingId: string;
579
+ }[];
580
+ }, {
581
+ duplicates: {
582
+ id: string;
583
+ trackingId: string;
584
+ }[];
585
+ }>;
586
+ }>, "strip", z.ZodTypeAny, {
587
+ type: "DUPLICATE_DETECTED";
588
+ id: string & z.BRAND<"UUID">;
589
+ status: "Rejected" | "Requested" | "Accepted";
590
+ content: {
591
+ duplicates: {
592
+ id: string & z.BRAND<"UUID">;
593
+ trackingId: string;
594
+ }[];
595
+ };
596
+ transactionId: string;
597
+ createdByUserType: "system" | "user";
598
+ createdAt: string;
599
+ createdBy: string;
600
+ createdByRole: string;
601
+ declaration: Record<string, FieldUpdateValue>;
602
+ createdBySignature?: string | null | undefined;
603
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
604
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
605
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
606
+ }, {
607
+ type: "DUPLICATE_DETECTED";
608
+ id: string;
609
+ status: "Rejected" | "Requested" | "Accepted";
610
+ content: {
611
+ duplicates: {
612
+ id: string;
613
+ trackingId: string;
614
+ }[];
615
+ };
616
+ transactionId: string;
617
+ createdByUserType: "system" | "user";
618
+ createdAt: string;
619
+ createdBy: string;
620
+ createdByRole: string;
621
+ declaration: Record<string, FieldUpdateValue>;
622
+ createdBySignature?: string | null | undefined;
623
+ createdAtLocation?: string | null | undefined;
624
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
625
+ originalActionId?: string | null | undefined;
626
+ }>, z.ZodObject<z.objectUtil.extendShape<{
627
+ id: z.ZodBranded<z.ZodString, "UUID">;
319
628
  transactionId: z.ZodString;
320
- createdByUserType: z.ZodEnum<{
321
- system: "system";
322
- user: "user";
323
- }>;
629
+ createdByUserType: z.ZodEnum<["user", "system"]>;
324
630
  createdAt: z.ZodString;
325
631
  createdBy: z.ZodString;
326
632
  createdByRole: z.ZodString;
327
633
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
328
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
329
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
330
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
331
- status: z.ZodEnum<{
332
- Rejected: "Rejected";
333
- Requested: "Requested";
334
- Accepted: "Accepted";
335
- }>;
336
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
634
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
635
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
636
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
637
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
638
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
639
+ }, {
337
640
  type: z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">;
338
- }, z.core.$strip>, z.ZodObject<{
339
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
641
+ }>, "strip", z.ZodTypeAny, {
642
+ type: "MARK_AS_NOT_DUPLICATE";
643
+ id: string & z.BRAND<"UUID">;
644
+ status: "Rejected" | "Requested" | "Accepted";
645
+ transactionId: string;
646
+ createdByUserType: "system" | "user";
647
+ createdAt: string;
648
+ createdBy: string;
649
+ createdByRole: string;
650
+ declaration: Record<string, FieldUpdateValue>;
651
+ createdBySignature?: string | null | undefined;
652
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
653
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
654
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
655
+ }, {
656
+ type: "MARK_AS_NOT_DUPLICATE";
657
+ id: string;
658
+ status: "Rejected" | "Requested" | "Accepted";
659
+ transactionId: string;
660
+ createdByUserType: "system" | "user";
661
+ createdAt: string;
662
+ createdBy: string;
663
+ createdByRole: string;
664
+ declaration: Record<string, FieldUpdateValue>;
665
+ createdBySignature?: string | null | undefined;
666
+ createdAtLocation?: string | null | undefined;
667
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
668
+ originalActionId?: string | null | undefined;
669
+ }>, z.ZodObject<z.objectUtil.extendShape<{
670
+ id: z.ZodBranded<z.ZodString, "UUID">;
340
671
  transactionId: z.ZodString;
341
- createdByUserType: z.ZodEnum<{
342
- system: "system";
343
- user: "user";
344
- }>;
672
+ createdByUserType: z.ZodEnum<["user", "system"]>;
345
673
  createdAt: z.ZodString;
346
674
  createdBy: z.ZodString;
347
675
  createdByRole: z.ZodString;
348
676
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
350
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
351
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
352
- status: z.ZodEnum<{
353
- Rejected: "Rejected";
354
- Requested: "Requested";
355
- Accepted: "Accepted";
356
- }>;
357
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
677
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
678
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
679
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
680
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
681
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
682
+ }, {
358
683
  type: z.ZodLiteral<"MARK_AS_DUPLICATE">;
359
684
  content: z.ZodOptional<z.ZodObject<{
360
- duplicateOf: z.core.$ZodBranded<z.ZodUUID, "UUID">;
361
- }, z.core.$strip>>;
362
- }, z.core.$strip>, z.ZodObject<{
363
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
685
+ duplicateOf: z.ZodBranded<z.ZodString, "UUID">;
686
+ }, "strip", z.ZodTypeAny, {
687
+ duplicateOf: string & z.BRAND<"UUID">;
688
+ }, {
689
+ duplicateOf: string;
690
+ }>>;
691
+ }>, "strip", z.ZodTypeAny, {
692
+ type: "MARK_AS_DUPLICATE";
693
+ id: string & z.BRAND<"UUID">;
694
+ status: "Rejected" | "Requested" | "Accepted";
695
+ transactionId: string;
696
+ createdByUserType: "system" | "user";
697
+ createdAt: string;
698
+ createdBy: string;
699
+ createdByRole: string;
700
+ declaration: Record<string, FieldUpdateValue>;
701
+ content?: {
702
+ duplicateOf: string & z.BRAND<"UUID">;
703
+ } | undefined;
704
+ createdBySignature?: string | null | undefined;
705
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
706
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
707
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
708
+ }, {
709
+ type: "MARK_AS_DUPLICATE";
710
+ id: string;
711
+ status: "Rejected" | "Requested" | "Accepted";
712
+ transactionId: string;
713
+ createdByUserType: "system" | "user";
714
+ createdAt: string;
715
+ createdBy: string;
716
+ createdByRole: string;
717
+ declaration: Record<string, FieldUpdateValue>;
718
+ content?: {
719
+ duplicateOf: string;
720
+ } | undefined;
721
+ createdBySignature?: string | null | undefined;
722
+ createdAtLocation?: string | null | undefined;
723
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
724
+ originalActionId?: string | null | undefined;
725
+ }>, z.ZodObject<z.objectUtil.extendShape<{
726
+ id: z.ZodBranded<z.ZodString, "UUID">;
364
727
  transactionId: z.ZodString;
365
- createdByUserType: z.ZodEnum<{
366
- system: "system";
367
- user: "user";
368
- }>;
728
+ createdByUserType: z.ZodEnum<["user", "system"]>;
369
729
  createdAt: z.ZodString;
370
730
  createdBy: z.ZodString;
371
731
  createdByRole: z.ZodString;
372
732
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
373
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
374
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
375
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
376
- status: z.ZodEnum<{
377
- Rejected: "Rejected";
378
- Requested: "Requested";
379
- Accepted: "Accepted";
380
- }>;
381
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
733
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
734
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
735
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
736
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
737
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
738
+ }, {
382
739
  type: z.ZodLiteral<"ARCHIVE">;
383
740
  content: z.ZodObject<{
384
741
  reason: z.ZodString;
385
- }, z.core.$strip>;
386
- }, z.core.$strip>, z.ZodObject<{
387
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
742
+ }, "strip", z.ZodTypeAny, {
743
+ reason: string;
744
+ }, {
745
+ reason: string;
746
+ }>;
747
+ }>, "strip", z.ZodTypeAny, {
748
+ type: "ARCHIVE";
749
+ id: string & z.BRAND<"UUID">;
750
+ status: "Rejected" | "Requested" | "Accepted";
751
+ content: {
752
+ reason: string;
753
+ };
754
+ transactionId: string;
755
+ createdByUserType: "system" | "user";
756
+ createdAt: string;
757
+ createdBy: string;
758
+ createdByRole: string;
759
+ declaration: Record<string, FieldUpdateValue>;
760
+ createdBySignature?: string | null | undefined;
761
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
762
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
763
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
764
+ }, {
765
+ type: "ARCHIVE";
766
+ id: string;
767
+ status: "Rejected" | "Requested" | "Accepted";
768
+ content: {
769
+ reason: string;
770
+ };
771
+ transactionId: string;
772
+ createdByUserType: "system" | "user";
773
+ createdAt: string;
774
+ createdBy: string;
775
+ createdByRole: string;
776
+ declaration: Record<string, FieldUpdateValue>;
777
+ createdBySignature?: string | null | undefined;
778
+ createdAtLocation?: string | null | undefined;
779
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
780
+ originalActionId?: string | null | undefined;
781
+ }>, z.ZodObject<z.objectUtil.extendShape<{
782
+ id: z.ZodBranded<z.ZodString, "UUID">;
388
783
  transactionId: z.ZodString;
389
- createdByUserType: z.ZodEnum<{
390
- system: "system";
391
- user: "user";
392
- }>;
784
+ createdByUserType: z.ZodEnum<["user", "system"]>;
393
785
  createdAt: z.ZodString;
394
786
  createdBy: z.ZodString;
395
787
  createdByRole: z.ZodString;
396
788
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
397
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
398
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
399
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
400
- status: z.ZodEnum<{
401
- Rejected: "Rejected";
402
- Requested: "Requested";
403
- Accepted: "Accepted";
404
- }>;
405
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
789
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
790
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
791
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
792
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
793
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
794
+ }, {
406
795
  type: z.ZodLiteral<"NOTIFY">;
407
- }, z.core.$strip>, z.ZodObject<{
408
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
796
+ }>, "strip", z.ZodTypeAny, {
797
+ type: "NOTIFY";
798
+ id: string & z.BRAND<"UUID">;
799
+ status: "Rejected" | "Requested" | "Accepted";
800
+ transactionId: string;
801
+ createdByUserType: "system" | "user";
802
+ createdAt: string;
803
+ createdBy: string;
804
+ createdByRole: string;
805
+ declaration: Record<string, FieldUpdateValue>;
806
+ createdBySignature?: string | null | undefined;
807
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
808
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
809
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
810
+ }, {
811
+ type: "NOTIFY";
812
+ id: string;
813
+ status: "Rejected" | "Requested" | "Accepted";
814
+ transactionId: string;
815
+ createdByUserType: "system" | "user";
816
+ createdAt: string;
817
+ createdBy: string;
818
+ createdByRole: string;
819
+ declaration: Record<string, FieldUpdateValue>;
820
+ createdBySignature?: string | null | undefined;
821
+ createdAtLocation?: string | null | undefined;
822
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
823
+ originalActionId?: string | null | undefined;
824
+ }>, z.ZodObject<z.objectUtil.extendShape<{
825
+ id: z.ZodBranded<z.ZodString, "UUID">;
409
826
  transactionId: z.ZodString;
410
- createdByUserType: z.ZodEnum<{
411
- system: "system";
412
- user: "user";
413
- }>;
827
+ createdByUserType: z.ZodEnum<["user", "system"]>;
414
828
  createdAt: z.ZodString;
415
829
  createdBy: z.ZodString;
416
830
  createdByRole: z.ZodString;
417
831
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
418
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
419
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
420
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
421
- status: z.ZodEnum<{
422
- Rejected: "Rejected";
423
- Requested: "Requested";
424
- Accepted: "Accepted";
425
- }>;
426
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
832
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
833
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
834
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
835
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
836
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
837
+ }, {
427
838
  type: z.ZodLiteral<"REGISTER">;
428
839
  registrationNumber: z.ZodOptional<z.ZodString>;
429
- }, z.core.$strip>, z.ZodObject<{
430
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
840
+ }>, "strip", z.ZodTypeAny, {
841
+ type: "REGISTER";
842
+ id: string & z.BRAND<"UUID">;
843
+ status: "Rejected" | "Requested" | "Accepted";
844
+ transactionId: string;
845
+ createdByUserType: "system" | "user";
846
+ createdAt: string;
847
+ createdBy: string;
848
+ createdByRole: string;
849
+ declaration: Record<string, FieldUpdateValue>;
850
+ createdBySignature?: string | null | undefined;
851
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
852
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
853
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
854
+ registrationNumber?: string | undefined;
855
+ }, {
856
+ type: "REGISTER";
857
+ id: string;
858
+ status: "Rejected" | "Requested" | "Accepted";
859
+ transactionId: string;
860
+ createdByUserType: "system" | "user";
861
+ createdAt: string;
862
+ createdBy: string;
863
+ createdByRole: string;
864
+ declaration: Record<string, FieldUpdateValue>;
865
+ createdBySignature?: string | null | undefined;
866
+ createdAtLocation?: string | null | undefined;
867
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
868
+ originalActionId?: string | null | undefined;
869
+ registrationNumber?: string | undefined;
870
+ }>, z.ZodObject<z.objectUtil.extendShape<{
871
+ id: z.ZodBranded<z.ZodString, "UUID">;
431
872
  transactionId: z.ZodString;
432
- createdByUserType: z.ZodEnum<{
433
- system: "system";
434
- user: "user";
435
- }>;
873
+ createdByUserType: z.ZodEnum<["user", "system"]>;
436
874
  createdAt: z.ZodString;
437
875
  createdBy: z.ZodString;
438
876
  createdByRole: z.ZodString;
439
877
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
440
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
441
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
442
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
443
- status: z.ZodEnum<{
444
- Rejected: "Rejected";
445
- Requested: "Requested";
446
- Accepted: "Accepted";
447
- }>;
448
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
878
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
879
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
880
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
881
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
882
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
883
+ }, {
449
884
  type: z.ZodLiteral<"DECLARE">;
450
- }, z.core.$strip>, z.ZodObject<{
451
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
885
+ }>, "strip", z.ZodTypeAny, {
886
+ type: "DECLARE";
887
+ id: string & z.BRAND<"UUID">;
888
+ status: "Rejected" | "Requested" | "Accepted";
889
+ transactionId: string;
890
+ createdByUserType: "system" | "user";
891
+ createdAt: string;
892
+ createdBy: string;
893
+ createdByRole: string;
894
+ declaration: Record<string, FieldUpdateValue>;
895
+ createdBySignature?: string | null | undefined;
896
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
897
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
898
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
899
+ }, {
900
+ type: "DECLARE";
901
+ id: string;
902
+ status: "Rejected" | "Requested" | "Accepted";
903
+ transactionId: string;
904
+ createdByUserType: "system" | "user";
905
+ createdAt: string;
906
+ createdBy: string;
907
+ createdByRole: string;
908
+ declaration: Record<string, FieldUpdateValue>;
909
+ createdBySignature?: string | null | undefined;
910
+ createdAtLocation?: string | null | undefined;
911
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
912
+ originalActionId?: string | null | undefined;
913
+ }>, z.ZodObject<z.objectUtil.extendShape<{
914
+ id: z.ZodBranded<z.ZodString, "UUID">;
452
915
  transactionId: z.ZodString;
453
- createdByUserType: z.ZodEnum<{
454
- system: "system";
455
- user: "user";
456
- }>;
916
+ createdByUserType: z.ZodEnum<["user", "system"]>;
457
917
  createdAt: z.ZodString;
458
918
  createdBy: z.ZodString;
459
919
  createdByRole: z.ZodString;
460
920
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
461
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
462
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
463
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
464
- status: z.ZodEnum<{
465
- Rejected: "Rejected";
466
- Requested: "Requested";
467
- Accepted: "Accepted";
468
- }>;
469
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
921
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
922
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
923
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
924
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
925
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
926
+ }, {
470
927
  type: z.ZodLiteral<"ASSIGN">;
471
928
  assignedTo: z.ZodString;
472
- }, z.core.$strip>, z.ZodObject<{
473
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
929
+ }>, "strip", z.ZodTypeAny, {
930
+ type: "ASSIGN";
931
+ id: string & z.BRAND<"UUID">;
932
+ status: "Rejected" | "Requested" | "Accepted";
933
+ transactionId: string;
934
+ createdByUserType: "system" | "user";
935
+ createdAt: string;
936
+ createdBy: string;
937
+ createdByRole: string;
938
+ declaration: Record<string, FieldUpdateValue>;
939
+ assignedTo: string;
940
+ createdBySignature?: string | null | undefined;
941
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
942
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
943
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
944
+ }, {
945
+ type: "ASSIGN";
946
+ id: string;
947
+ status: "Rejected" | "Requested" | "Accepted";
948
+ transactionId: string;
949
+ createdByUserType: "system" | "user";
950
+ createdAt: string;
951
+ createdBy: string;
952
+ createdByRole: string;
953
+ declaration: Record<string, FieldUpdateValue>;
954
+ assignedTo: string;
955
+ createdBySignature?: string | null | undefined;
956
+ createdAtLocation?: string | null | undefined;
957
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
958
+ originalActionId?: string | null | undefined;
959
+ }>, z.ZodObject<z.objectUtil.extendShape<{
960
+ id: z.ZodBranded<z.ZodString, "UUID">;
474
961
  transactionId: z.ZodString;
475
- createdByUserType: z.ZodEnum<{
476
- system: "system";
477
- user: "user";
478
- }>;
962
+ createdByUserType: z.ZodEnum<["user", "system"]>;
479
963
  createdAt: z.ZodString;
480
964
  createdBy: z.ZodString;
481
965
  createdByRole: z.ZodString;
482
966
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
484
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
485
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
486
- status: z.ZodEnum<{
487
- Rejected: "Rejected";
488
- Requested: "Requested";
489
- Accepted: "Accepted";
490
- }>;
491
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
967
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
968
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
969
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
970
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
971
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
972
+ }, {
492
973
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
493
- }, z.core.$strip>, z.ZodObject<{
494
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
974
+ }>, "strip", z.ZodTypeAny, {
975
+ type: "REQUEST_CORRECTION";
976
+ id: string & z.BRAND<"UUID">;
977
+ status: "Rejected" | "Requested" | "Accepted";
978
+ transactionId: string;
979
+ createdByUserType: "system" | "user";
980
+ createdAt: string;
981
+ createdBy: string;
982
+ createdByRole: string;
983
+ declaration: Record<string, FieldUpdateValue>;
984
+ createdBySignature?: string | null | undefined;
985
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
986
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
987
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
988
+ }, {
989
+ type: "REQUEST_CORRECTION";
990
+ id: string;
991
+ status: "Rejected" | "Requested" | "Accepted";
992
+ transactionId: string;
993
+ createdByUserType: "system" | "user";
994
+ createdAt: string;
995
+ createdBy: string;
996
+ createdByRole: string;
997
+ declaration: Record<string, FieldUpdateValue>;
998
+ createdBySignature?: string | null | undefined;
999
+ createdAtLocation?: string | null | undefined;
1000
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1001
+ originalActionId?: string | null | undefined;
1002
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1003
+ id: z.ZodBranded<z.ZodString, "UUID">;
495
1004
  transactionId: z.ZodString;
496
- createdByUserType: z.ZodEnum<{
497
- system: "system";
498
- user: "user";
499
- }>;
1005
+ createdByUserType: z.ZodEnum<["user", "system"]>;
500
1006
  createdAt: z.ZodString;
501
1007
  createdBy: z.ZodString;
502
1008
  createdByRole: z.ZodString;
503
1009
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
504
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
505
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
506
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
507
- status: z.ZodEnum<{
508
- Rejected: "Rejected";
509
- Requested: "Requested";
510
- Accepted: "Accepted";
511
- }>;
512
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1010
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1011
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1012
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1013
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1014
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1015
+ }, {
513
1016
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
514
1017
  requestId: z.ZodString;
515
- }, z.core.$strip>, z.ZodObject<{
516
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1018
+ }>, "strip", z.ZodTypeAny, {
1019
+ type: "APPROVE_CORRECTION";
1020
+ id: string & z.BRAND<"UUID">;
1021
+ status: "Rejected" | "Requested" | "Accepted";
1022
+ transactionId: string;
1023
+ createdByUserType: "system" | "user";
1024
+ createdAt: string;
1025
+ createdBy: string;
1026
+ createdByRole: string;
1027
+ declaration: Record<string, FieldUpdateValue>;
1028
+ requestId: string;
1029
+ createdBySignature?: string | null | undefined;
1030
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1031
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1032
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1033
+ }, {
1034
+ type: "APPROVE_CORRECTION";
1035
+ id: string;
1036
+ status: "Rejected" | "Requested" | "Accepted";
1037
+ transactionId: string;
1038
+ createdByUserType: "system" | "user";
1039
+ createdAt: string;
1040
+ createdBy: string;
1041
+ createdByRole: string;
1042
+ declaration: Record<string, FieldUpdateValue>;
1043
+ requestId: string;
1044
+ createdBySignature?: string | null | undefined;
1045
+ createdAtLocation?: string | null | undefined;
1046
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1047
+ originalActionId?: string | null | undefined;
1048
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1049
+ id: z.ZodBranded<z.ZodString, "UUID">;
517
1050
  transactionId: z.ZodString;
518
- createdByUserType: z.ZodEnum<{
519
- system: "system";
520
- user: "user";
521
- }>;
1051
+ createdByUserType: z.ZodEnum<["user", "system"]>;
522
1052
  createdAt: z.ZodString;
523
1053
  createdBy: z.ZodString;
524
1054
  createdByRole: z.ZodString;
525
1055
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
526
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
527
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
528
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
529
- status: z.ZodEnum<{
530
- Rejected: "Rejected";
531
- Requested: "Requested";
532
- Accepted: "Accepted";
533
- }>;
534
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1056
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1057
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1058
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1059
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1060
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1061
+ }, {
535
1062
  type: z.ZodLiteral<"REJECT_CORRECTION">;
536
1063
  requestId: z.ZodString;
537
1064
  content: z.ZodObject<{
538
1065
  reason: z.ZodString;
539
- }, z.core.$strip>;
540
- }, z.core.$strip>, z.ZodObject<{
541
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1066
+ }, "strip", z.ZodTypeAny, {
1067
+ reason: string;
1068
+ }, {
1069
+ reason: string;
1070
+ }>;
1071
+ }>, "strip", z.ZodTypeAny, {
1072
+ type: "REJECT_CORRECTION";
1073
+ id: string & z.BRAND<"UUID">;
1074
+ status: "Rejected" | "Requested" | "Accepted";
1075
+ content: {
1076
+ reason: string;
1077
+ };
1078
+ transactionId: string;
1079
+ createdByUserType: "system" | "user";
1080
+ createdAt: string;
1081
+ createdBy: string;
1082
+ createdByRole: string;
1083
+ declaration: Record<string, FieldUpdateValue>;
1084
+ requestId: string;
1085
+ createdBySignature?: string | null | undefined;
1086
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1087
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1088
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1089
+ }, {
1090
+ type: "REJECT_CORRECTION";
1091
+ id: string;
1092
+ status: "Rejected" | "Requested" | "Accepted";
1093
+ content: {
1094
+ reason: string;
1095
+ };
1096
+ transactionId: string;
1097
+ createdByUserType: "system" | "user";
1098
+ createdAt: string;
1099
+ createdBy: string;
1100
+ createdByRole: string;
1101
+ declaration: Record<string, FieldUpdateValue>;
1102
+ requestId: string;
1103
+ createdBySignature?: string | null | undefined;
1104
+ createdAtLocation?: string | null | undefined;
1105
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1106
+ originalActionId?: string | null | undefined;
1107
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1108
+ id: z.ZodBranded<z.ZodString, "UUID">;
542
1109
  transactionId: z.ZodString;
543
- createdByUserType: z.ZodEnum<{
544
- system: "system";
545
- user: "user";
546
- }>;
1110
+ createdByUserType: z.ZodEnum<["user", "system"]>;
547
1111
  createdAt: z.ZodString;
548
1112
  createdBy: z.ZodString;
549
1113
  createdByRole: z.ZodString;
550
1114
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
551
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
552
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
553
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
554
- status: z.ZodEnum<{
555
- Rejected: "Rejected";
556
- Requested: "Requested";
557
- Accepted: "Accepted";
558
- }>;
559
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1115
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1116
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1117
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1118
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1119
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1120
+ }, {
560
1121
  type: z.ZodLiteral<"UNASSIGN">;
561
- }, z.core.$strip>, z.ZodObject<{
562
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1122
+ }>, "strip", z.ZodTypeAny, {
1123
+ type: "UNASSIGN";
1124
+ id: string & z.BRAND<"UUID">;
1125
+ status: "Rejected" | "Requested" | "Accepted";
1126
+ transactionId: string;
1127
+ createdByUserType: "system" | "user";
1128
+ createdAt: string;
1129
+ createdBy: string;
1130
+ createdByRole: string;
1131
+ declaration: Record<string, FieldUpdateValue>;
1132
+ createdBySignature?: string | null | undefined;
1133
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1134
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1135
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1136
+ }, {
1137
+ type: "UNASSIGN";
1138
+ id: string;
1139
+ status: "Rejected" | "Requested" | "Accepted";
1140
+ transactionId: string;
1141
+ createdByUserType: "system" | "user";
1142
+ createdAt: string;
1143
+ createdBy: string;
1144
+ createdByRole: string;
1145
+ declaration: Record<string, FieldUpdateValue>;
1146
+ createdBySignature?: string | null | undefined;
1147
+ createdAtLocation?: string | null | undefined;
1148
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1149
+ originalActionId?: string | null | undefined;
1150
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1151
+ id: z.ZodBranded<z.ZodString, "UUID">;
563
1152
  transactionId: z.ZodString;
564
- createdByUserType: z.ZodEnum<{
565
- system: "system";
566
- user: "user";
567
- }>;
1153
+ createdByUserType: z.ZodEnum<["user", "system"]>;
568
1154
  createdAt: z.ZodString;
569
1155
  createdBy: z.ZodString;
570
1156
  createdByRole: z.ZodString;
571
1157
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
572
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
573
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
574
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
575
- status: z.ZodEnum<{
576
- Rejected: "Rejected";
577
- Requested: "Requested";
578
- Accepted: "Accepted";
579
- }>;
580
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1158
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1159
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1160
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1161
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1162
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1163
+ }, {
581
1164
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
582
1165
  content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
583
1166
  templateId: z.ZodOptional<z.ZodString>;
584
- }, z.core.$strip>>>;
585
- }, z.core.$strip>, z.ZodObject<{
586
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1167
+ }, "strip", z.ZodTypeAny, {
1168
+ templateId?: string | undefined;
1169
+ }, {
1170
+ templateId?: string | undefined;
1171
+ }>>>;
1172
+ }>, "strip", z.ZodTypeAny, {
1173
+ type: "PRINT_CERTIFICATE";
1174
+ id: string & z.BRAND<"UUID">;
1175
+ status: "Rejected" | "Requested" | "Accepted";
1176
+ transactionId: string;
1177
+ createdByUserType: "system" | "user";
1178
+ createdAt: string;
1179
+ createdBy: string;
1180
+ createdByRole: string;
1181
+ declaration: Record<string, FieldUpdateValue>;
1182
+ content?: {
1183
+ templateId?: string | undefined;
1184
+ } | null | undefined;
1185
+ createdBySignature?: string | null | undefined;
1186
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1187
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1188
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1189
+ }, {
1190
+ type: "PRINT_CERTIFICATE";
1191
+ id: string;
1192
+ status: "Rejected" | "Requested" | "Accepted";
1193
+ transactionId: string;
1194
+ createdByUserType: "system" | "user";
1195
+ createdAt: string;
1196
+ createdBy: string;
1197
+ createdByRole: string;
1198
+ declaration: Record<string, FieldUpdateValue>;
1199
+ content?: {
1200
+ templateId?: string | undefined;
1201
+ } | null | undefined;
1202
+ createdBySignature?: string | null | undefined;
1203
+ createdAtLocation?: string | null | undefined;
1204
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1205
+ originalActionId?: string | null | undefined;
1206
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1207
+ id: z.ZodBranded<z.ZodString, "UUID">;
587
1208
  transactionId: z.ZodString;
588
- createdByUserType: z.ZodEnum<{
589
- system: "system";
590
- user: "user";
591
- }>;
1209
+ createdByUserType: z.ZodEnum<["user", "system"]>;
592
1210
  createdAt: z.ZodString;
593
1211
  createdBy: z.ZodString;
594
1212
  createdByRole: z.ZodString;
595
1213
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
596
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
597
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
598
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
599
- status: z.ZodEnum<{
600
- Rejected: "Rejected";
601
- Requested: "Requested";
602
- Accepted: "Accepted";
603
- }>;
604
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1214
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1215
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1216
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1217
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1218
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1219
+ }, {
605
1220
  type: z.ZodLiteral<"READ">;
606
- }, z.core.$strip>, z.ZodObject<{
607
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
608
- transactionId: z.ZodString;
609
- createdByUserType: z.ZodEnum<{
610
- system: "system";
611
- user: "user";
612
- }>;
613
- createdAt: z.ZodString;
614
- createdBy: z.ZodString;
615
- createdByRole: z.ZodString;
616
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
617
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
618
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
619
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
620
- status: z.ZodEnum<{
621
- Rejected: "Rejected";
622
- Requested: "Requested";
623
- Accepted: "Accepted";
624
- }>;
625
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
626
- type: z.ZodLiteral<"CUSTOM">;
627
- customActionType: z.ZodString;
628
- }, z.core.$strip>], "type">;
1221
+ }>, "strip", z.ZodTypeAny, {
1222
+ type: "READ";
1223
+ id: string & z.BRAND<"UUID">;
1224
+ status: "Rejected" | "Requested" | "Accepted";
1225
+ transactionId: string;
1226
+ createdByUserType: "system" | "user";
1227
+ createdAt: string;
1228
+ createdBy: string;
1229
+ createdByRole: string;
1230
+ declaration: Record<string, FieldUpdateValue>;
1231
+ createdBySignature?: string | null | undefined;
1232
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1233
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1234
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1235
+ }, {
1236
+ type: "READ";
1237
+ id: string;
1238
+ status: "Rejected" | "Requested" | "Accepted";
1239
+ transactionId: string;
1240
+ createdByUserType: "system" | "user";
1241
+ createdAt: string;
1242
+ createdBy: string;
1243
+ createdByRole: string;
1244
+ declaration: Record<string, FieldUpdateValue>;
1245
+ createdBySignature?: string | null | undefined;
1246
+ createdAtLocation?: string | null | undefined;
1247
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1248
+ originalActionId?: string | null | undefined;
1249
+ }>]>;
629
1250
  export type ActionDocument = z.infer<typeof ActionDocument>;
630
- export declare const AsyncRejectActionDocument: z.ZodObject<{
631
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1251
+ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendShape<Omit<{
1252
+ id: z.ZodBranded<z.ZodString, "UUID">;
632
1253
  transactionId: z.ZodString;
633
- createdByUserType: z.ZodEnum<{
634
- system: "system";
635
- user: "user";
636
- }>;
1254
+ createdByUserType: z.ZodEnum<["user", "system"]>;
637
1255
  createdAt: z.ZodString;
638
1256
  createdBy: z.ZodString;
639
1257
  createdByRole: z.ZodString;
640
1258
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
641
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
642
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
643
- type: z.ZodEnum<{
644
- NOTIFY: "NOTIFY";
645
- DECLARE: "DECLARE";
646
- VALIDATE: "VALIDATE";
647
- REGISTER: "REGISTER";
648
- REJECT: "REJECT";
649
- ARCHIVE: "ARCHIVE";
650
- PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
651
- REQUEST_CORRECTION: "REQUEST_CORRECTION";
652
- REJECT_CORRECTION: "REJECT_CORRECTION";
653
- APPROVE_CORRECTION: "APPROVE_CORRECTION";
654
- CUSTOM: "CUSTOM";
655
- }>;
1259
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1260
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1261
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1262
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1263
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1264
+ }, "declaration" | "annotation">, {
1265
+ type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "APPROVE_CORRECTION", "REJECT_CORRECTION"]>;
656
1266
  status: z.ZodLiteral<"Rejected">;
657
- }, z.core.$strip>;
1267
+ }>, "strip", z.ZodTypeAny, {
1268
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
1269
+ id: string & z.BRAND<"UUID">;
1270
+ status: "Rejected";
1271
+ transactionId: string;
1272
+ createdByUserType: "system" | "user";
1273
+ createdAt: string;
1274
+ createdBy: string;
1275
+ createdByRole: string;
1276
+ createdBySignature?: string | null | undefined;
1277
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1278
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1279
+ }, {
1280
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
1281
+ id: string;
1282
+ status: "Rejected";
1283
+ transactionId: string;
1284
+ createdByUserType: "system" | "user";
1285
+ createdAt: string;
1286
+ createdBy: string;
1287
+ createdByRole: string;
1288
+ createdBySignature?: string | null | undefined;
1289
+ createdAtLocation?: string | null | undefined;
1290
+ originalActionId?: string | null | undefined;
1291
+ }>;
658
1292
  export type AsyncRejectActionDocument = z.infer<typeof AsyncRejectActionDocument>;
659
- export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
660
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1293
+ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
1294
+ id: z.ZodBranded<z.ZodString, "UUID">;
661
1295
  transactionId: z.ZodString;
662
- createdByUserType: z.ZodEnum<{
663
- system: "system";
664
- user: "user";
665
- }>;
1296
+ createdByUserType: z.ZodEnum<["user", "system"]>;
666
1297
  createdAt: z.ZodString;
667
1298
  createdBy: z.ZodString;
668
1299
  createdByRole: z.ZodString;
669
1300
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
670
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
671
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
672
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
673
- status: z.ZodEnum<{
674
- Rejected: "Rejected";
675
- Requested: "Requested";
676
- Accepted: "Accepted";
677
- }>;
678
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1301
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1302
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1303
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1304
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1305
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1306
+ }, {
679
1307
  type: z.ZodLiteral<"CREATE">;
680
- }, z.core.$strip>, z.ZodObject<{
681
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1308
+ }>, "strip", z.ZodTypeAny, {
1309
+ type: "CREATE";
1310
+ id: string & z.BRAND<"UUID">;
1311
+ status: "Rejected" | "Requested" | "Accepted";
1312
+ transactionId: string;
1313
+ createdByUserType: "system" | "user";
1314
+ createdAt: string;
1315
+ createdBy: string;
1316
+ createdByRole: string;
1317
+ declaration: Record<string, FieldUpdateValue>;
1318
+ createdBySignature?: string | null | undefined;
1319
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1320
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1321
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1322
+ }, {
1323
+ type: "CREATE";
1324
+ id: string;
1325
+ status: "Rejected" | "Requested" | "Accepted";
1326
+ transactionId: string;
1327
+ createdByUserType: "system" | "user";
1328
+ createdAt: string;
1329
+ createdBy: string;
1330
+ createdByRole: string;
1331
+ declaration: Record<string, FieldUpdateValue>;
1332
+ createdBySignature?: string | null | undefined;
1333
+ createdAtLocation?: string | null | undefined;
1334
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1335
+ originalActionId?: string | null | undefined;
1336
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1337
+ id: z.ZodBranded<z.ZodString, "UUID">;
682
1338
  transactionId: z.ZodString;
683
- createdByUserType: z.ZodEnum<{
684
- system: "system";
685
- user: "user";
686
- }>;
1339
+ createdByUserType: z.ZodEnum<["user", "system"]>;
687
1340
  createdAt: z.ZodString;
688
1341
  createdBy: z.ZodString;
689
1342
  createdByRole: z.ZodString;
690
1343
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
691
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
692
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
693
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
694
- status: z.ZodEnum<{
695
- Rejected: "Rejected";
696
- Requested: "Requested";
697
- Accepted: "Accepted";
698
- }>;
699
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1344
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1345
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1346
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1347
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1348
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1349
+ }, {
700
1350
  type: z.ZodLiteral<"VALIDATE">;
701
- }, z.core.$strip>, z.ZodObject<{
702
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1351
+ }>, "strip", z.ZodTypeAny, {
1352
+ type: "VALIDATE";
1353
+ id: string & z.BRAND<"UUID">;
1354
+ status: "Rejected" | "Requested" | "Accepted";
1355
+ transactionId: string;
1356
+ createdByUserType: "system" | "user";
1357
+ createdAt: string;
1358
+ createdBy: string;
1359
+ createdByRole: string;
1360
+ declaration: Record<string, FieldUpdateValue>;
1361
+ createdBySignature?: string | null | undefined;
1362
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1363
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1364
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1365
+ }, {
1366
+ type: "VALIDATE";
1367
+ id: string;
1368
+ status: "Rejected" | "Requested" | "Accepted";
1369
+ transactionId: string;
1370
+ createdByUserType: "system" | "user";
1371
+ createdAt: string;
1372
+ createdBy: string;
1373
+ createdByRole: string;
1374
+ declaration: Record<string, FieldUpdateValue>;
1375
+ createdBySignature?: string | null | undefined;
1376
+ createdAtLocation?: string | null | undefined;
1377
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1378
+ originalActionId?: string | null | undefined;
1379
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1380
+ id: z.ZodBranded<z.ZodString, "UUID">;
703
1381
  transactionId: z.ZodString;
704
- createdByUserType: z.ZodEnum<{
705
- system: "system";
706
- user: "user";
707
- }>;
1382
+ createdByUserType: z.ZodEnum<["user", "system"]>;
708
1383
  createdAt: z.ZodString;
709
1384
  createdBy: z.ZodString;
710
1385
  createdByRole: z.ZodString;
711
1386
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
712
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
713
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
714
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
715
- status: z.ZodEnum<{
716
- Rejected: "Rejected";
717
- Requested: "Requested";
718
- Accepted: "Accepted";
719
- }>;
720
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1387
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1388
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1389
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1390
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1391
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1392
+ }, {
721
1393
  type: z.ZodLiteral<"REJECT">;
722
1394
  content: z.ZodObject<{
723
1395
  reason: z.ZodString;
724
- }, z.core.$strip>;
725
- }, z.core.$strip>, z.ZodObject<{
726
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1396
+ }, "strip", z.ZodTypeAny, {
1397
+ reason: string;
1398
+ }, {
1399
+ reason: string;
1400
+ }>;
1401
+ }>, "strip", z.ZodTypeAny, {
1402
+ type: "REJECT";
1403
+ id: string & z.BRAND<"UUID">;
1404
+ status: "Rejected" | "Requested" | "Accepted";
1405
+ content: {
1406
+ reason: string;
1407
+ };
1408
+ transactionId: string;
1409
+ createdByUserType: "system" | "user";
1410
+ createdAt: string;
1411
+ createdBy: string;
1412
+ createdByRole: string;
1413
+ declaration: Record<string, FieldUpdateValue>;
1414
+ createdBySignature?: string | null | undefined;
1415
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1416
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1417
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1418
+ }, {
1419
+ type: "REJECT";
1420
+ id: string;
1421
+ status: "Rejected" | "Requested" | "Accepted";
1422
+ content: {
1423
+ reason: string;
1424
+ };
1425
+ transactionId: string;
1426
+ createdByUserType: "system" | "user";
1427
+ createdAt: string;
1428
+ createdBy: string;
1429
+ createdByRole: string;
1430
+ declaration: Record<string, FieldUpdateValue>;
1431
+ createdBySignature?: string | null | undefined;
1432
+ createdAtLocation?: string | null | undefined;
1433
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1434
+ originalActionId?: string | null | undefined;
1435
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1436
+ id: z.ZodBranded<z.ZodString, "UUID">;
727
1437
  transactionId: z.ZodString;
728
- createdByUserType: z.ZodEnum<{
729
- system: "system";
730
- user: "user";
731
- }>;
1438
+ createdByUserType: z.ZodEnum<["user", "system"]>;
732
1439
  createdAt: z.ZodString;
733
1440
  createdBy: z.ZodString;
734
1441
  createdByRole: z.ZodString;
735
1442
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
736
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
737
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
738
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
739
- status: z.ZodEnum<{
740
- Rejected: "Rejected";
741
- Requested: "Requested";
742
- Accepted: "Accepted";
743
- }>;
744
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1443
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1444
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1445
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1446
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1447
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1448
+ }, {
745
1449
  type: z.ZodLiteral<"DUPLICATE_DETECTED">;
746
1450
  content: z.ZodObject<{
747
1451
  duplicates: z.ZodArray<z.ZodObject<{
748
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1452
+ id: z.ZodBranded<z.ZodString, "UUID">;
749
1453
  trackingId: z.ZodString;
750
- }, z.core.$strip>>;
751
- }, z.core.$strip>;
752
- }, z.core.$strip>, z.ZodObject<{
753
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1454
+ }, "strip", z.ZodTypeAny, {
1455
+ id: string & z.BRAND<"UUID">;
1456
+ trackingId: string;
1457
+ }, {
1458
+ id: string;
1459
+ trackingId: string;
1460
+ }>, "many">;
1461
+ }, "strip", z.ZodTypeAny, {
1462
+ duplicates: {
1463
+ id: string & z.BRAND<"UUID">;
1464
+ trackingId: string;
1465
+ }[];
1466
+ }, {
1467
+ duplicates: {
1468
+ id: string;
1469
+ trackingId: string;
1470
+ }[];
1471
+ }>;
1472
+ }>, "strip", z.ZodTypeAny, {
1473
+ type: "DUPLICATE_DETECTED";
1474
+ id: string & z.BRAND<"UUID">;
1475
+ status: "Rejected" | "Requested" | "Accepted";
1476
+ content: {
1477
+ duplicates: {
1478
+ id: string & z.BRAND<"UUID">;
1479
+ trackingId: string;
1480
+ }[];
1481
+ };
1482
+ transactionId: string;
1483
+ createdByUserType: "system" | "user";
1484
+ createdAt: string;
1485
+ createdBy: string;
1486
+ createdByRole: string;
1487
+ declaration: Record<string, FieldUpdateValue>;
1488
+ createdBySignature?: string | null | undefined;
1489
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1490
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1491
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1492
+ }, {
1493
+ type: "DUPLICATE_DETECTED";
1494
+ id: string;
1495
+ status: "Rejected" | "Requested" | "Accepted";
1496
+ content: {
1497
+ duplicates: {
1498
+ id: string;
1499
+ trackingId: string;
1500
+ }[];
1501
+ };
1502
+ transactionId: string;
1503
+ createdByUserType: "system" | "user";
1504
+ createdAt: string;
1505
+ createdBy: string;
1506
+ createdByRole: string;
1507
+ declaration: Record<string, FieldUpdateValue>;
1508
+ createdBySignature?: string | null | undefined;
1509
+ createdAtLocation?: string | null | undefined;
1510
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1511
+ originalActionId?: string | null | undefined;
1512
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1513
+ id: z.ZodBranded<z.ZodString, "UUID">;
754
1514
  transactionId: z.ZodString;
755
- createdByUserType: z.ZodEnum<{
756
- system: "system";
757
- user: "user";
758
- }>;
1515
+ createdByUserType: z.ZodEnum<["user", "system"]>;
759
1516
  createdAt: z.ZodString;
760
1517
  createdBy: z.ZodString;
761
1518
  createdByRole: z.ZodString;
762
1519
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
763
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
764
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
765
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
766
- status: z.ZodEnum<{
767
- Rejected: "Rejected";
768
- Requested: "Requested";
769
- Accepted: "Accepted";
770
- }>;
771
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1520
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1521
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1522
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1523
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1524
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1525
+ }, {
772
1526
  type: z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">;
773
- }, z.core.$strip>, z.ZodObject<{
774
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1527
+ }>, "strip", z.ZodTypeAny, {
1528
+ type: "MARK_AS_NOT_DUPLICATE";
1529
+ id: string & z.BRAND<"UUID">;
1530
+ status: "Rejected" | "Requested" | "Accepted";
1531
+ transactionId: string;
1532
+ createdByUserType: "system" | "user";
1533
+ createdAt: string;
1534
+ createdBy: string;
1535
+ createdByRole: string;
1536
+ declaration: Record<string, FieldUpdateValue>;
1537
+ createdBySignature?: string | null | undefined;
1538
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1539
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1540
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1541
+ }, {
1542
+ type: "MARK_AS_NOT_DUPLICATE";
1543
+ id: string;
1544
+ status: "Rejected" | "Requested" | "Accepted";
1545
+ transactionId: string;
1546
+ createdByUserType: "system" | "user";
1547
+ createdAt: string;
1548
+ createdBy: string;
1549
+ createdByRole: string;
1550
+ declaration: Record<string, FieldUpdateValue>;
1551
+ createdBySignature?: string | null | undefined;
1552
+ createdAtLocation?: string | null | undefined;
1553
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1554
+ originalActionId?: string | null | undefined;
1555
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1556
+ id: z.ZodBranded<z.ZodString, "UUID">;
775
1557
  transactionId: z.ZodString;
776
- createdByUserType: z.ZodEnum<{
777
- system: "system";
778
- user: "user";
779
- }>;
1558
+ createdByUserType: z.ZodEnum<["user", "system"]>;
780
1559
  createdAt: z.ZodString;
781
1560
  createdBy: z.ZodString;
782
1561
  createdByRole: z.ZodString;
783
1562
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
784
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
785
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
786
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
787
- status: z.ZodEnum<{
788
- Rejected: "Rejected";
789
- Requested: "Requested";
790
- Accepted: "Accepted";
791
- }>;
792
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1563
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1564
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1565
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1566
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1567
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1568
+ }, {
793
1569
  type: z.ZodLiteral<"MARK_AS_DUPLICATE">;
794
1570
  content: z.ZodOptional<z.ZodObject<{
795
- duplicateOf: z.core.$ZodBranded<z.ZodUUID, "UUID">;
796
- }, z.core.$strip>>;
797
- }, z.core.$strip>, z.ZodObject<{
798
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1571
+ duplicateOf: z.ZodBranded<z.ZodString, "UUID">;
1572
+ }, "strip", z.ZodTypeAny, {
1573
+ duplicateOf: string & z.BRAND<"UUID">;
1574
+ }, {
1575
+ duplicateOf: string;
1576
+ }>>;
1577
+ }>, "strip", z.ZodTypeAny, {
1578
+ type: "MARK_AS_DUPLICATE";
1579
+ id: string & z.BRAND<"UUID">;
1580
+ status: "Rejected" | "Requested" | "Accepted";
1581
+ transactionId: string;
1582
+ createdByUserType: "system" | "user";
1583
+ createdAt: string;
1584
+ createdBy: string;
1585
+ createdByRole: string;
1586
+ declaration: Record<string, FieldUpdateValue>;
1587
+ content?: {
1588
+ duplicateOf: string & z.BRAND<"UUID">;
1589
+ } | undefined;
1590
+ createdBySignature?: string | null | undefined;
1591
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1592
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1593
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1594
+ }, {
1595
+ type: "MARK_AS_DUPLICATE";
1596
+ id: string;
1597
+ status: "Rejected" | "Requested" | "Accepted";
1598
+ transactionId: string;
1599
+ createdByUserType: "system" | "user";
1600
+ createdAt: string;
1601
+ createdBy: string;
1602
+ createdByRole: string;
1603
+ declaration: Record<string, FieldUpdateValue>;
1604
+ content?: {
1605
+ duplicateOf: string;
1606
+ } | undefined;
1607
+ createdBySignature?: string | null | undefined;
1608
+ createdAtLocation?: string | null | undefined;
1609
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1610
+ originalActionId?: string | null | undefined;
1611
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1612
+ id: z.ZodBranded<z.ZodString, "UUID">;
799
1613
  transactionId: z.ZodString;
800
- createdByUserType: z.ZodEnum<{
801
- system: "system";
802
- user: "user";
803
- }>;
1614
+ createdByUserType: z.ZodEnum<["user", "system"]>;
804
1615
  createdAt: z.ZodString;
805
1616
  createdBy: z.ZodString;
806
1617
  createdByRole: z.ZodString;
807
1618
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
808
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
809
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
810
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
811
- status: z.ZodEnum<{
812
- Rejected: "Rejected";
813
- Requested: "Requested";
814
- Accepted: "Accepted";
815
- }>;
816
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1619
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1620
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1621
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1622
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1623
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1624
+ }, {
817
1625
  type: z.ZodLiteral<"ARCHIVE">;
818
1626
  content: z.ZodObject<{
819
1627
  reason: z.ZodString;
820
- }, z.core.$strip>;
821
- }, z.core.$strip>, z.ZodObject<{
822
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1628
+ }, "strip", z.ZodTypeAny, {
1629
+ reason: string;
1630
+ }, {
1631
+ reason: string;
1632
+ }>;
1633
+ }>, "strip", z.ZodTypeAny, {
1634
+ type: "ARCHIVE";
1635
+ id: string & z.BRAND<"UUID">;
1636
+ status: "Rejected" | "Requested" | "Accepted";
1637
+ content: {
1638
+ reason: string;
1639
+ };
1640
+ transactionId: string;
1641
+ createdByUserType: "system" | "user";
1642
+ createdAt: string;
1643
+ createdBy: string;
1644
+ createdByRole: string;
1645
+ declaration: Record<string, FieldUpdateValue>;
1646
+ createdBySignature?: string | null | undefined;
1647
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1648
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1649
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1650
+ }, {
1651
+ type: "ARCHIVE";
1652
+ id: string;
1653
+ status: "Rejected" | "Requested" | "Accepted";
1654
+ content: {
1655
+ reason: string;
1656
+ };
1657
+ transactionId: string;
1658
+ createdByUserType: "system" | "user";
1659
+ createdAt: string;
1660
+ createdBy: string;
1661
+ createdByRole: string;
1662
+ declaration: Record<string, FieldUpdateValue>;
1663
+ createdBySignature?: string | null | undefined;
1664
+ createdAtLocation?: string | null | undefined;
1665
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1666
+ originalActionId?: string | null | undefined;
1667
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1668
+ id: z.ZodBranded<z.ZodString, "UUID">;
823
1669
  transactionId: z.ZodString;
824
- createdByUserType: z.ZodEnum<{
825
- system: "system";
826
- user: "user";
827
- }>;
1670
+ createdByUserType: z.ZodEnum<["user", "system"]>;
828
1671
  createdAt: z.ZodString;
829
1672
  createdBy: z.ZodString;
830
1673
  createdByRole: z.ZodString;
831
1674
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
832
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
833
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
834
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
835
- status: z.ZodEnum<{
836
- Rejected: "Rejected";
837
- Requested: "Requested";
838
- Accepted: "Accepted";
839
- }>;
840
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1675
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1676
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1677
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1678
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1679
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1680
+ }, {
841
1681
  type: z.ZodLiteral<"NOTIFY">;
842
- }, z.core.$strip>, z.ZodObject<{
843
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1682
+ }>, "strip", z.ZodTypeAny, {
1683
+ type: "NOTIFY";
1684
+ id: string & z.BRAND<"UUID">;
1685
+ status: "Rejected" | "Requested" | "Accepted";
1686
+ transactionId: string;
1687
+ createdByUserType: "system" | "user";
1688
+ createdAt: string;
1689
+ createdBy: string;
1690
+ createdByRole: string;
1691
+ declaration: Record<string, FieldUpdateValue>;
1692
+ createdBySignature?: string | null | undefined;
1693
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1694
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1695
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1696
+ }, {
1697
+ type: "NOTIFY";
1698
+ id: string;
1699
+ status: "Rejected" | "Requested" | "Accepted";
1700
+ transactionId: string;
1701
+ createdByUserType: "system" | "user";
1702
+ createdAt: string;
1703
+ createdBy: string;
1704
+ createdByRole: string;
1705
+ declaration: Record<string, FieldUpdateValue>;
1706
+ createdBySignature?: string | null | undefined;
1707
+ createdAtLocation?: string | null | undefined;
1708
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1709
+ originalActionId?: string | null | undefined;
1710
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1711
+ id: z.ZodBranded<z.ZodString, "UUID">;
844
1712
  transactionId: z.ZodString;
845
- createdByUserType: z.ZodEnum<{
846
- system: "system";
847
- user: "user";
848
- }>;
1713
+ createdByUserType: z.ZodEnum<["user", "system"]>;
849
1714
  createdAt: z.ZodString;
850
1715
  createdBy: z.ZodString;
851
1716
  createdByRole: z.ZodString;
852
1717
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
853
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
854
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
855
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
856
- status: z.ZodEnum<{
857
- Rejected: "Rejected";
858
- Requested: "Requested";
859
- Accepted: "Accepted";
860
- }>;
861
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1718
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1719
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1720
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1721
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1722
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1723
+ }, {
862
1724
  type: z.ZodLiteral<"REGISTER">;
863
1725
  registrationNumber: z.ZodOptional<z.ZodString>;
864
- }, z.core.$strip>, z.ZodObject<{
865
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1726
+ }>, "strip", z.ZodTypeAny, {
1727
+ type: "REGISTER";
1728
+ id: string & z.BRAND<"UUID">;
1729
+ status: "Rejected" | "Requested" | "Accepted";
1730
+ transactionId: string;
1731
+ createdByUserType: "system" | "user";
1732
+ createdAt: string;
1733
+ createdBy: string;
1734
+ createdByRole: string;
1735
+ declaration: Record<string, FieldUpdateValue>;
1736
+ createdBySignature?: string | null | undefined;
1737
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1738
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1739
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1740
+ registrationNumber?: string | undefined;
1741
+ }, {
1742
+ type: "REGISTER";
1743
+ id: string;
1744
+ status: "Rejected" | "Requested" | "Accepted";
1745
+ transactionId: string;
1746
+ createdByUserType: "system" | "user";
1747
+ createdAt: string;
1748
+ createdBy: string;
1749
+ createdByRole: string;
1750
+ declaration: Record<string, FieldUpdateValue>;
1751
+ createdBySignature?: string | null | undefined;
1752
+ createdAtLocation?: string | null | undefined;
1753
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1754
+ originalActionId?: string | null | undefined;
1755
+ registrationNumber?: string | undefined;
1756
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1757
+ id: z.ZodBranded<z.ZodString, "UUID">;
866
1758
  transactionId: z.ZodString;
867
- createdByUserType: z.ZodEnum<{
868
- system: "system";
869
- user: "user";
870
- }>;
1759
+ createdByUserType: z.ZodEnum<["user", "system"]>;
871
1760
  createdAt: z.ZodString;
872
1761
  createdBy: z.ZodString;
873
1762
  createdByRole: z.ZodString;
874
1763
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
875
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
876
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
877
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
878
- status: z.ZodEnum<{
879
- Rejected: "Rejected";
880
- Requested: "Requested";
881
- Accepted: "Accepted";
882
- }>;
883
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1764
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1765
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1766
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1767
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1768
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1769
+ }, {
884
1770
  type: z.ZodLiteral<"DECLARE">;
885
- }, z.core.$strip>, z.ZodObject<{
886
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1771
+ }>, "strip", z.ZodTypeAny, {
1772
+ type: "DECLARE";
1773
+ id: string & z.BRAND<"UUID">;
1774
+ status: "Rejected" | "Requested" | "Accepted";
1775
+ transactionId: string;
1776
+ createdByUserType: "system" | "user";
1777
+ createdAt: string;
1778
+ createdBy: string;
1779
+ createdByRole: string;
1780
+ declaration: Record<string, FieldUpdateValue>;
1781
+ createdBySignature?: string | null | undefined;
1782
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1783
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1784
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1785
+ }, {
1786
+ type: "DECLARE";
1787
+ id: string;
1788
+ status: "Rejected" | "Requested" | "Accepted";
1789
+ transactionId: string;
1790
+ createdByUserType: "system" | "user";
1791
+ createdAt: string;
1792
+ createdBy: string;
1793
+ createdByRole: string;
1794
+ declaration: Record<string, FieldUpdateValue>;
1795
+ createdBySignature?: string | null | undefined;
1796
+ createdAtLocation?: string | null | undefined;
1797
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1798
+ originalActionId?: string | null | undefined;
1799
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1800
+ id: z.ZodBranded<z.ZodString, "UUID">;
887
1801
  transactionId: z.ZodString;
888
- createdByUserType: z.ZodEnum<{
889
- system: "system";
890
- user: "user";
891
- }>;
1802
+ createdByUserType: z.ZodEnum<["user", "system"]>;
892
1803
  createdAt: z.ZodString;
893
1804
  createdBy: z.ZodString;
894
1805
  createdByRole: z.ZodString;
895
1806
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
896
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
897
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
898
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
899
- status: z.ZodEnum<{
900
- Rejected: "Rejected";
901
- Requested: "Requested";
902
- Accepted: "Accepted";
903
- }>;
904
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1807
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1808
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1809
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1810
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1811
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1812
+ }, {
905
1813
  type: z.ZodLiteral<"ASSIGN">;
906
1814
  assignedTo: z.ZodString;
907
- }, z.core.$strip>, z.ZodObject<{
908
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1815
+ }>, "strip", z.ZodTypeAny, {
1816
+ type: "ASSIGN";
1817
+ id: string & z.BRAND<"UUID">;
1818
+ status: "Rejected" | "Requested" | "Accepted";
1819
+ transactionId: string;
1820
+ createdByUserType: "system" | "user";
1821
+ createdAt: string;
1822
+ createdBy: string;
1823
+ createdByRole: string;
1824
+ declaration: Record<string, FieldUpdateValue>;
1825
+ assignedTo: string;
1826
+ createdBySignature?: string | null | undefined;
1827
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1828
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1829
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1830
+ }, {
1831
+ type: "ASSIGN";
1832
+ id: string;
1833
+ status: "Rejected" | "Requested" | "Accepted";
1834
+ transactionId: string;
1835
+ createdByUserType: "system" | "user";
1836
+ createdAt: string;
1837
+ createdBy: string;
1838
+ createdByRole: string;
1839
+ declaration: Record<string, FieldUpdateValue>;
1840
+ assignedTo: string;
1841
+ createdBySignature?: string | null | undefined;
1842
+ createdAtLocation?: string | null | undefined;
1843
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1844
+ originalActionId?: string | null | undefined;
1845
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1846
+ id: z.ZodBranded<z.ZodString, "UUID">;
909
1847
  transactionId: z.ZodString;
910
- createdByUserType: z.ZodEnum<{
911
- system: "system";
912
- user: "user";
913
- }>;
1848
+ createdByUserType: z.ZodEnum<["user", "system"]>;
914
1849
  createdAt: z.ZodString;
915
1850
  createdBy: z.ZodString;
916
1851
  createdByRole: z.ZodString;
917
1852
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
918
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
919
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
920
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
921
- status: z.ZodEnum<{
922
- Rejected: "Rejected";
923
- Requested: "Requested";
924
- Accepted: "Accepted";
925
- }>;
926
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1853
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1854
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1855
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1856
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1857
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1858
+ }, {
927
1859
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
928
- }, z.core.$strip>, z.ZodObject<{
929
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1860
+ }>, "strip", z.ZodTypeAny, {
1861
+ type: "REQUEST_CORRECTION";
1862
+ id: string & z.BRAND<"UUID">;
1863
+ status: "Rejected" | "Requested" | "Accepted";
1864
+ transactionId: string;
1865
+ createdByUserType: "system" | "user";
1866
+ createdAt: string;
1867
+ createdBy: string;
1868
+ createdByRole: string;
1869
+ declaration: Record<string, FieldUpdateValue>;
1870
+ createdBySignature?: string | null | undefined;
1871
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1872
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1873
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1874
+ }, {
1875
+ type: "REQUEST_CORRECTION";
1876
+ id: string;
1877
+ status: "Rejected" | "Requested" | "Accepted";
1878
+ transactionId: string;
1879
+ createdByUserType: "system" | "user";
1880
+ createdAt: string;
1881
+ createdBy: string;
1882
+ createdByRole: string;
1883
+ declaration: Record<string, FieldUpdateValue>;
1884
+ createdBySignature?: string | null | undefined;
1885
+ createdAtLocation?: string | null | undefined;
1886
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1887
+ originalActionId?: string | null | undefined;
1888
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1889
+ id: z.ZodBranded<z.ZodString, "UUID">;
930
1890
  transactionId: z.ZodString;
931
- createdByUserType: z.ZodEnum<{
932
- system: "system";
933
- user: "user";
934
- }>;
1891
+ createdByUserType: z.ZodEnum<["user", "system"]>;
935
1892
  createdAt: z.ZodString;
936
1893
  createdBy: z.ZodString;
937
1894
  createdByRole: z.ZodString;
938
1895
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
939
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
940
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
941
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
942
- status: z.ZodEnum<{
943
- Rejected: "Rejected";
944
- Requested: "Requested";
945
- Accepted: "Accepted";
946
- }>;
947
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1896
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1897
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1898
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1899
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1900
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1901
+ }, {
948
1902
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
949
1903
  requestId: z.ZodString;
950
- }, z.core.$strip>, z.ZodObject<{
951
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1904
+ }>, "strip", z.ZodTypeAny, {
1905
+ type: "APPROVE_CORRECTION";
1906
+ id: string & z.BRAND<"UUID">;
1907
+ status: "Rejected" | "Requested" | "Accepted";
1908
+ transactionId: string;
1909
+ createdByUserType: "system" | "user";
1910
+ createdAt: string;
1911
+ createdBy: string;
1912
+ createdByRole: string;
1913
+ declaration: Record<string, FieldUpdateValue>;
1914
+ requestId: string;
1915
+ createdBySignature?: string | null | undefined;
1916
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1917
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1918
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1919
+ }, {
1920
+ type: "APPROVE_CORRECTION";
1921
+ id: string;
1922
+ status: "Rejected" | "Requested" | "Accepted";
1923
+ transactionId: string;
1924
+ createdByUserType: "system" | "user";
1925
+ createdAt: string;
1926
+ createdBy: string;
1927
+ createdByRole: string;
1928
+ declaration: Record<string, FieldUpdateValue>;
1929
+ requestId: string;
1930
+ createdBySignature?: string | null | undefined;
1931
+ createdAtLocation?: string | null | undefined;
1932
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1933
+ originalActionId?: string | null | undefined;
1934
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1935
+ id: z.ZodBranded<z.ZodString, "UUID">;
952
1936
  transactionId: z.ZodString;
953
- createdByUserType: z.ZodEnum<{
954
- system: "system";
955
- user: "user";
956
- }>;
1937
+ createdByUserType: z.ZodEnum<["user", "system"]>;
957
1938
  createdAt: z.ZodString;
958
1939
  createdBy: z.ZodString;
959
1940
  createdByRole: z.ZodString;
960
1941
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
961
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
962
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
963
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
964
- status: z.ZodEnum<{
965
- Rejected: "Rejected";
966
- Requested: "Requested";
967
- Accepted: "Accepted";
968
- }>;
969
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1942
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1943
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
1944
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
1945
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1946
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1947
+ }, {
970
1948
  type: z.ZodLiteral<"REJECT_CORRECTION">;
971
1949
  requestId: z.ZodString;
972
1950
  content: z.ZodObject<{
973
1951
  reason: z.ZodString;
974
- }, z.core.$strip>;
975
- }, z.core.$strip>, z.ZodObject<{
976
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1952
+ }, "strip", z.ZodTypeAny, {
1953
+ reason: string;
1954
+ }, {
1955
+ reason: string;
1956
+ }>;
1957
+ }>, "strip", z.ZodTypeAny, {
1958
+ type: "REJECT_CORRECTION";
1959
+ id: string & z.BRAND<"UUID">;
1960
+ status: "Rejected" | "Requested" | "Accepted";
1961
+ content: {
1962
+ reason: string;
1963
+ };
1964
+ transactionId: string;
1965
+ createdByUserType: "system" | "user";
1966
+ createdAt: string;
1967
+ createdBy: string;
1968
+ createdByRole: string;
1969
+ declaration: Record<string, FieldUpdateValue>;
1970
+ requestId: string;
1971
+ createdBySignature?: string | null | undefined;
1972
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1973
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1974
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1975
+ }, {
1976
+ type: "REJECT_CORRECTION";
1977
+ id: string;
1978
+ status: "Rejected" | "Requested" | "Accepted";
1979
+ content: {
1980
+ reason: string;
1981
+ };
1982
+ transactionId: string;
1983
+ createdByUserType: "system" | "user";
1984
+ createdAt: string;
1985
+ createdBy: string;
1986
+ createdByRole: string;
1987
+ declaration: Record<string, FieldUpdateValue>;
1988
+ requestId: string;
1989
+ createdBySignature?: string | null | undefined;
1990
+ createdAtLocation?: string | null | undefined;
1991
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
1992
+ originalActionId?: string | null | undefined;
1993
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1994
+ id: z.ZodBranded<z.ZodString, "UUID">;
977
1995
  transactionId: z.ZodString;
978
- createdByUserType: z.ZodEnum<{
979
- system: "system";
980
- user: "user";
981
- }>;
1996
+ createdByUserType: z.ZodEnum<["user", "system"]>;
982
1997
  createdAt: z.ZodString;
983
1998
  createdBy: z.ZodString;
984
1999
  createdByRole: z.ZodString;
985
2000
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
986
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
987
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
988
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
989
- status: z.ZodEnum<{
990
- Rejected: "Rejected";
991
- Requested: "Requested";
992
- Accepted: "Accepted";
993
- }>;
994
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
2001
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2002
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
2003
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
2004
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2005
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2006
+ }, {
995
2007
  type: z.ZodLiteral<"UNASSIGN">;
996
- }, z.core.$strip>, z.ZodObject<{
997
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
2008
+ }>, "strip", z.ZodTypeAny, {
2009
+ type: "UNASSIGN";
2010
+ id: string & z.BRAND<"UUID">;
2011
+ status: "Rejected" | "Requested" | "Accepted";
2012
+ transactionId: string;
2013
+ createdByUserType: "system" | "user";
2014
+ createdAt: string;
2015
+ createdBy: string;
2016
+ createdByRole: string;
2017
+ declaration: Record<string, FieldUpdateValue>;
2018
+ createdBySignature?: string | null | undefined;
2019
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2020
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
2021
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2022
+ }, {
2023
+ type: "UNASSIGN";
2024
+ id: string;
2025
+ status: "Rejected" | "Requested" | "Accepted";
2026
+ transactionId: string;
2027
+ createdByUserType: "system" | "user";
2028
+ createdAt: string;
2029
+ createdBy: string;
2030
+ createdByRole: string;
2031
+ declaration: Record<string, FieldUpdateValue>;
2032
+ createdBySignature?: string | null | undefined;
2033
+ createdAtLocation?: string | null | undefined;
2034
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
2035
+ originalActionId?: string | null | undefined;
2036
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2037
+ id: z.ZodBranded<z.ZodString, "UUID">;
998
2038
  transactionId: z.ZodString;
999
- createdByUserType: z.ZodEnum<{
1000
- system: "system";
1001
- user: "user";
1002
- }>;
2039
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1003
2040
  createdAt: z.ZodString;
1004
2041
  createdBy: z.ZodString;
1005
2042
  createdByRole: z.ZodString;
1006
2043
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1007
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1008
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
1009
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
1010
- status: z.ZodEnum<{
1011
- Rejected: "Rejected";
1012
- Requested: "Requested";
1013
- Accepted: "Accepted";
1014
- }>;
1015
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
2044
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2045
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
2046
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
2047
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2048
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2049
+ }, {
1016
2050
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
1017
2051
  content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1018
2052
  templateId: z.ZodOptional<z.ZodString>;
1019
- }, z.core.$strip>>>;
1020
- }, z.core.$strip>, z.ZodObject<{
1021
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
2053
+ }, "strip", z.ZodTypeAny, {
2054
+ templateId?: string | undefined;
2055
+ }, {
2056
+ templateId?: string | undefined;
2057
+ }>>>;
2058
+ }>, "strip", z.ZodTypeAny, {
2059
+ type: "PRINT_CERTIFICATE";
2060
+ id: string & z.BRAND<"UUID">;
2061
+ status: "Rejected" | "Requested" | "Accepted";
2062
+ transactionId: string;
2063
+ createdByUserType: "system" | "user";
2064
+ createdAt: string;
2065
+ createdBy: string;
2066
+ createdByRole: string;
2067
+ declaration: Record<string, FieldUpdateValue>;
2068
+ content?: {
2069
+ templateId?: string | undefined;
2070
+ } | null | undefined;
2071
+ createdBySignature?: string | null | undefined;
2072
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2073
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
2074
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2075
+ }, {
2076
+ type: "PRINT_CERTIFICATE";
2077
+ id: string;
2078
+ status: "Rejected" | "Requested" | "Accepted";
2079
+ transactionId: string;
2080
+ createdByUserType: "system" | "user";
2081
+ createdAt: string;
2082
+ createdBy: string;
2083
+ createdByRole: string;
2084
+ declaration: Record<string, FieldUpdateValue>;
2085
+ content?: {
2086
+ templateId?: string | undefined;
2087
+ } | null | undefined;
2088
+ createdBySignature?: string | null | undefined;
2089
+ createdAtLocation?: string | null | undefined;
2090
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
2091
+ originalActionId?: string | null | undefined;
2092
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2093
+ id: z.ZodBranded<z.ZodString, "UUID">;
1022
2094
  transactionId: z.ZodString;
1023
- createdByUserType: z.ZodEnum<{
1024
- system: "system";
1025
- user: "user";
1026
- }>;
2095
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1027
2096
  createdAt: z.ZodString;
1028
2097
  createdBy: z.ZodString;
1029
2098
  createdByRole: z.ZodString;
1030
2099
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1031
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1032
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
1033
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
1034
- status: z.ZodEnum<{
1035
- Rejected: "Rejected";
1036
- Requested: "Requested";
1037
- Accepted: "Accepted";
1038
- }>;
1039
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
2100
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2101
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
2102
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
2103
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2104
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2105
+ }, {
1040
2106
  type: z.ZodLiteral<"READ">;
1041
- }, z.core.$strip>, z.ZodObject<{
1042
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
2107
+ }>, "strip", z.ZodTypeAny, {
2108
+ type: "READ";
2109
+ id: string & z.BRAND<"UUID">;
2110
+ status: "Rejected" | "Requested" | "Accepted";
2111
+ transactionId: string;
2112
+ createdByUserType: "system" | "user";
2113
+ createdAt: string;
2114
+ createdBy: string;
2115
+ createdByRole: string;
2116
+ declaration: Record<string, FieldUpdateValue>;
2117
+ createdBySignature?: string | null | undefined;
2118
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2119
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
2120
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2121
+ }, {
2122
+ type: "READ";
2123
+ id: string;
2124
+ status: "Rejected" | "Requested" | "Accepted";
2125
+ transactionId: string;
2126
+ createdByUserType: "system" | "user";
2127
+ createdAt: string;
2128
+ createdBy: string;
2129
+ createdByRole: string;
2130
+ declaration: Record<string, FieldUpdateValue>;
2131
+ createdBySignature?: string | null | undefined;
2132
+ createdAtLocation?: string | null | undefined;
2133
+ annotation?: Record<string, FieldUpdateValue> | null | undefined;
2134
+ originalActionId?: string | null | undefined;
2135
+ }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
2136
+ id: z.ZodBranded<z.ZodString, "UUID">;
1043
2137
  transactionId: z.ZodString;
1044
- createdByUserType: z.ZodEnum<{
1045
- system: "system";
1046
- user: "user";
1047
- }>;
2138
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1048
2139
  createdAt: z.ZodString;
1049
2140
  createdBy: z.ZodString;
1050
2141
  createdByRole: z.ZodString;
1051
2142
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1052
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1053
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
1054
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
1055
- status: z.ZodEnum<{
1056
- Rejected: "Rejected";
1057
- Requested: "Requested";
1058
- Accepted: "Accepted";
1059
- }>;
1060
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1061
- type: z.ZodLiteral<"CUSTOM">;
1062
- customActionType: z.ZodString;
1063
- }, z.core.$strip>], "type">, z.ZodObject<{
1064
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1065
- transactionId: z.ZodString;
1066
- createdByUserType: z.ZodEnum<{
1067
- system: "system";
1068
- user: "user";
1069
- }>;
1070
- createdAt: z.ZodString;
1071
- createdBy: z.ZodString;
1072
- createdByRole: z.ZodString;
1073
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1074
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1075
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1076
- type: z.ZodEnum<{
1077
- NOTIFY: "NOTIFY";
1078
- DECLARE: "DECLARE";
1079
- VALIDATE: "VALIDATE";
1080
- REGISTER: "REGISTER";
1081
- REJECT: "REJECT";
1082
- ARCHIVE: "ARCHIVE";
1083
- PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
1084
- REQUEST_CORRECTION: "REQUEST_CORRECTION";
1085
- REJECT_CORRECTION: "REJECT_CORRECTION";
1086
- APPROVE_CORRECTION: "APPROVE_CORRECTION";
1087
- CUSTOM: "CUSTOM";
1088
- }>;
2143
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2144
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>;
2145
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, z.ZodTypeDef, FieldUpdateValue>>>>;
2146
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2147
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2148
+ }, "declaration" | "annotation">, {
2149
+ type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "APPROVE_CORRECTION", "REJECT_CORRECTION"]>;
1089
2150
  status: z.ZodLiteral<"Rejected">;
1090
- }, z.core.$strip>]>;
1091
- export type Action = z.infer<typeof Action>;
2151
+ }>, "strip", z.ZodTypeAny, {
2152
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
2153
+ id: string & z.BRAND<"UUID">;
2154
+ status: "Rejected";
2155
+ transactionId: string;
2156
+ createdByUserType: "system" | "user";
2157
+ createdAt: string;
2158
+ createdBy: string;
2159
+ createdByRole: string;
2160
+ createdBySignature?: string | null | undefined;
2161
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2162
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2163
+ }, {
2164
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
2165
+ id: string;
2166
+ status: "Rejected";
2167
+ transactionId: string;
2168
+ createdByUserType: "system" | "user";
2169
+ createdAt: string;
2170
+ createdBy: string;
2171
+ createdByRole: string;
2172
+ createdBySignature?: string | null | undefined;
2173
+ createdAtLocation?: string | null | undefined;
2174
+ originalActionId?: string | null | undefined;
2175
+ }>]>;
2176
+ export type Action = ActionDocument | AsyncRejectActionDocument;
1092
2177
  export type CreatedAction = z.infer<typeof CreatedAction>;
1093
2178
  export type AssignedAction = z.infer<typeof AssignedAction>;
1094
2179
  export {};