@opencrvs/toolkit 1.9.4-rc.0e695b2 → 1.9.4-rc.469f912

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 (58) hide show
  1. package/dist/commons/api/router.d.ts +2440 -28495
  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 +1552 -23416
  5. package/dist/commons/events/ActionDocument.d.ts +1856 -803
  6. package/dist/commons/events/ActionInput.d.ts +1073 -277
  7. package/dist/commons/events/ActionType.d.ts +9 -86
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1238 -228
  9. package/dist/commons/events/CompositeFieldValue.d.ts +176 -27
  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 -931
  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 +2120 -18663
  18. package/dist/commons/events/EventConfigInput.d.ts +1 -1
  19. package/dist/commons/events/EventDocument.d.ts +1332 -320
  20. package/dist/commons/events/EventIndex.d.ts +967 -197
  21. package/dist/commons/events/EventInput.d.ts +8 -2
  22. package/dist/commons/events/EventMetadata.d.ts +346 -106
  23. package/dist/commons/events/FieldConfig.d.ts +11774 -4259
  24. package/dist/commons/events/FieldType.d.ts +4 -20
  25. package/dist/commons/events/FieldTypeMapping.d.ts +813 -181
  26. package/dist/commons/events/FieldValue.d.ts +356 -83
  27. package/dist/commons/events/FormConfig.d.ts +721 -13140
  28. package/dist/commons/events/PageConfig.d.ts +319 -8780
  29. package/dist/commons/events/SummaryConfig.d.ts +161 -14
  30. package/dist/commons/events/TemplateConfig.d.ts +3 -3
  31. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  32. package/dist/commons/events/WorkqueueColumnConfig.d.ts +37 -74
  33. package/dist/commons/events/WorkqueueConfig.d.ts +7080 -1615
  34. package/dist/commons/events/deduplication.d.ts +3 -3
  35. package/dist/commons/events/defineConfig.d.ts +163 -25639
  36. package/dist/commons/events/event.d.ts +4 -4
  37. package/dist/commons/events/index.d.ts +0 -1
  38. package/dist/commons/events/locations.d.ts +19 -15
  39. package/dist/commons/events/scopes.d.ts +4 -5
  40. package/dist/commons/events/state/availableActions.d.ts +1 -2
  41. package/dist/commons/events/state/flags.d.ts +3 -21
  42. package/dist/commons/events/state/index.d.ts +19 -23
  43. package/dist/commons/events/state/utils.d.ts +112 -130
  44. package/dist/commons/events/test.utils.d.ts +8 -17
  45. package/dist/commons/events/transactions.d.ts +1 -1
  46. package/dist/commons/events/utils.d.ts +373 -51350
  47. package/dist/commons/notification/UserNotifications.d.ts +636 -55
  48. package/dist/conditionals/index.d.ts.map +1 -1
  49. package/dist/conditionals/index.js +5 -38
  50. package/dist/events/deduplication.d.ts +3 -3
  51. package/dist/events/index.js +1545 -1805
  52. package/dist/notification/index.d.ts.map +1 -1
  53. package/dist/notification/index.js +1412 -1430
  54. package/dist/scopes/index.d.ts +132 -167
  55. package/dist/scopes/index.d.ts.map +1 -1
  56. package/dist/scopes/index.js +94 -133
  57. package/package.json +5 -5
  58. package/dist/commons/events/Flag.d.ts +0 -70
@@ -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,1110 +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>;
147
- declare const EditAction: z.ZodObject<{
148
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
149
- transactionId: z.ZodString;
150
- createdByUserType: z.ZodEnum<{
151
- system: "system";
152
- user: "user";
153
- }>;
154
- createdAt: z.ZodString;
155
- createdBy: z.ZodString;
156
- createdByRole: z.ZodString;
157
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
158
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
159
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
160
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
161
- status: z.ZodEnum<{
162
- Rejected: "Rejected";
163
- Requested: "Requested";
164
- Accepted: "Accepted";
165
- }>;
166
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
167
- type: z.ZodLiteral<"EDIT">;
168
- content: z.ZodObject<{
169
- comment: z.ZodOptional<z.ZodString>;
170
- }, z.core.$strip>;
171
- }, z.core.$strip>;
172
- export type EditAction = z.infer<typeof EditAction>;
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
+ }>;
173
296
  export declare const PrintContent: z.ZodObject<{
174
297
  templateId: z.ZodOptional<z.ZodString>;
175
- }, z.core.$strip>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ templateId?: string | undefined;
300
+ }, {
301
+ templateId?: string | undefined;
302
+ }>;
176
303
  export type PrintContent = z.infer<typeof PrintContent>;
177
- declare const PrintCertificateAction: z.ZodObject<{
178
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
304
+ declare const PrintCertificateAction: z.ZodObject<z.objectUtil.extendShape<{
305
+ id: z.ZodBranded<z.ZodString, "UUID">;
179
306
  transactionId: z.ZodString;
180
- createdByUserType: z.ZodEnum<{
181
- system: "system";
182
- user: "user";
183
- }>;
307
+ createdByUserType: z.ZodEnum<["user", "system"]>;
184
308
  createdAt: z.ZodString;
185
309
  createdBy: z.ZodString;
186
310
  createdByRole: z.ZodString;
187
311
  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">>>;
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
+ }, {
197
318
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
198
319
  content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
199
320
  templateId: z.ZodOptional<z.ZodString>;
200
- }, z.core.$strip>>>;
201
- }, 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
+ }>;
202
361
  export type PrintCertificateAction = z.infer<typeof PrintCertificateAction>;
203
- declare const RequestedCorrectionAction: z.ZodObject<{
204
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
362
+ declare const RequestedCorrectionAction: z.ZodObject<z.objectUtil.extendShape<{
363
+ id: z.ZodBranded<z.ZodString, "UUID">;
205
364
  transactionId: z.ZodString;
206
- createdByUserType: z.ZodEnum<{
207
- system: "system";
208
- user: "user";
209
- }>;
365
+ createdByUserType: z.ZodEnum<["user", "system"]>;
210
366
  createdAt: z.ZodString;
211
367
  createdBy: z.ZodString;
212
368
  createdByRole: z.ZodString;
213
369
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
214
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
215
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
216
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
217
- status: z.ZodEnum<{
218
- Rejected: "Rejected";
219
- Requested: "Requested";
220
- Accepted: "Accepted";
221
- }>;
222
- 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
+ }, {
223
376
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
224
- }, 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
+ }>;
225
406
  export type RequestedCorrectionAction = z.infer<typeof RequestedCorrectionAction>;
226
- declare const CustomAction: z.ZodObject<{
227
- 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">;
228
409
  transactionId: z.ZodString;
229
- createdByUserType: z.ZodEnum<{
230
- system: "system";
231
- user: "user";
232
- }>;
410
+ createdByUserType: z.ZodEnum<["user", "system"]>;
233
411
  createdAt: z.ZodString;
234
412
  createdBy: z.ZodString;
235
413
  createdByRole: z.ZodString;
236
414
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
237
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
238
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
239
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
240
- status: z.ZodEnum<{
241
- Rejected: "Rejected";
242
- Requested: "Requested";
243
- Accepted: "Accepted";
244
- }>;
245
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
246
- type: z.ZodLiteral<"CUSTOM">;
247
- customActionType: z.ZodString;
248
- }, z.core.$strip>;
249
- export type CustomAction = z.infer<typeof CustomAction>;
250
- export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
251
- id: 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
+ }, {
421
+ type: z.ZodLiteral<"CREATE">;
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">;
252
452
  transactionId: z.ZodString;
253
- createdByUserType: z.ZodEnum<{
254
- system: "system";
255
- user: "user";
256
- }>;
453
+ createdByUserType: z.ZodEnum<["user", "system"]>;
257
454
  createdAt: z.ZodString;
258
455
  createdBy: z.ZodString;
259
456
  createdByRole: z.ZodString;
260
457
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
262
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
263
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
264
- status: z.ZodEnum<{
265
- Rejected: "Rejected";
266
- Requested: "Requested";
267
- Accepted: "Accepted";
268
- }>;
269
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
270
- type: z.ZodLiteral<"CREATE">;
271
- }, z.core.$strip>, z.ZodObject<{
272
- id: 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
+ }, {
464
+ type: z.ZodLiteral<"VALIDATE">;
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">;
273
495
  transactionId: z.ZodString;
274
- createdByUserType: z.ZodEnum<{
275
- system: "system";
276
- user: "user";
277
- }>;
496
+ createdByUserType: z.ZodEnum<["user", "system"]>;
278
497
  createdAt: z.ZodString;
279
498
  createdBy: z.ZodString;
280
499
  createdByRole: z.ZodString;
281
500
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
282
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
283
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
284
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
285
- status: z.ZodEnum<{
286
- Rejected: "Rejected";
287
- Requested: "Requested";
288
- Accepted: "Accepted";
289
- }>;
290
- 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
+ }, {
291
507
  type: z.ZodLiteral<"REJECT">;
292
508
  content: z.ZodObject<{
293
509
  reason: z.ZodString;
294
- }, z.core.$strip>;
295
- }, z.core.$strip>, z.ZodObject<{
296
- 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">;
297
551
  transactionId: z.ZodString;
298
- createdByUserType: z.ZodEnum<{
299
- system: "system";
300
- user: "user";
301
- }>;
552
+ createdByUserType: z.ZodEnum<["user", "system"]>;
302
553
  createdAt: z.ZodString;
303
554
  createdBy: z.ZodString;
304
555
  createdByRole: z.ZodString;
305
556
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
307
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
308
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
309
- status: z.ZodEnum<{
310
- Rejected: "Rejected";
311
- Requested: "Requested";
312
- Accepted: "Accepted";
313
- }>;
314
- 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
+ }, {
315
563
  type: z.ZodLiteral<"DUPLICATE_DETECTED">;
316
564
  content: z.ZodObject<{
317
565
  duplicates: z.ZodArray<z.ZodObject<{
318
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
566
+ id: z.ZodBranded<z.ZodString, "UUID">;
319
567
  trackingId: z.ZodString;
320
- }, z.core.$strip>>;
321
- }, z.core.$strip>;
322
- }, z.core.$strip>, z.ZodObject<{
323
- 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">;
324
628
  transactionId: z.ZodString;
325
- createdByUserType: z.ZodEnum<{
326
- system: "system";
327
- user: "user";
328
- }>;
629
+ createdByUserType: z.ZodEnum<["user", "system"]>;
329
630
  createdAt: z.ZodString;
330
631
  createdBy: z.ZodString;
331
632
  createdByRole: z.ZodString;
332
633
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
334
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
335
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
336
- status: z.ZodEnum<{
337
- Rejected: "Rejected";
338
- Requested: "Requested";
339
- Accepted: "Accepted";
340
- }>;
341
- 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
+ }, {
342
640
  type: z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">;
343
- }, z.core.$strip>, z.ZodObject<{
344
- 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">;
345
671
  transactionId: z.ZodString;
346
- createdByUserType: z.ZodEnum<{
347
- system: "system";
348
- user: "user";
349
- }>;
672
+ createdByUserType: z.ZodEnum<["user", "system"]>;
350
673
  createdAt: z.ZodString;
351
674
  createdBy: z.ZodString;
352
675
  createdByRole: z.ZodString;
353
676
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
354
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
355
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
356
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
357
- status: z.ZodEnum<{
358
- Rejected: "Rejected";
359
- Requested: "Requested";
360
- Accepted: "Accepted";
361
- }>;
362
- 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
+ }, {
363
683
  type: z.ZodLiteral<"MARK_AS_DUPLICATE">;
364
684
  content: z.ZodOptional<z.ZodObject<{
365
- duplicateOf: z.core.$ZodBranded<z.ZodUUID, "UUID">;
366
- }, z.core.$strip>>;
367
- }, z.core.$strip>, z.ZodObject<{
368
- 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">;
369
727
  transactionId: z.ZodString;
370
- createdByUserType: z.ZodEnum<{
371
- system: "system";
372
- user: "user";
373
- }>;
728
+ createdByUserType: z.ZodEnum<["user", "system"]>;
374
729
  createdAt: z.ZodString;
375
730
  createdBy: z.ZodString;
376
731
  createdByRole: z.ZodString;
377
732
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
378
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
379
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
380
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
381
- status: z.ZodEnum<{
382
- Rejected: "Rejected";
383
- Requested: "Requested";
384
- Accepted: "Accepted";
385
- }>;
386
- 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
+ }, {
387
739
  type: z.ZodLiteral<"ARCHIVE">;
388
740
  content: z.ZodObject<{
389
741
  reason: z.ZodString;
390
- }, z.core.$strip>;
391
- }, z.core.$strip>, z.ZodObject<{
392
- 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">;
393
783
  transactionId: z.ZodString;
394
- createdByUserType: z.ZodEnum<{
395
- system: "system";
396
- user: "user";
397
- }>;
784
+ createdByUserType: z.ZodEnum<["user", "system"]>;
398
785
  createdAt: z.ZodString;
399
786
  createdBy: z.ZodString;
400
787
  createdByRole: z.ZodString;
401
788
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
402
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
403
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
404
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
405
- status: z.ZodEnum<{
406
- Rejected: "Rejected";
407
- Requested: "Requested";
408
- Accepted: "Accepted";
409
- }>;
410
- 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
+ }, {
411
795
  type: z.ZodLiteral<"NOTIFY">;
412
- }, z.core.$strip>, z.ZodObject<{
413
- 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">;
414
826
  transactionId: z.ZodString;
415
- createdByUserType: z.ZodEnum<{
416
- system: "system";
417
- user: "user";
418
- }>;
827
+ createdByUserType: z.ZodEnum<["user", "system"]>;
419
828
  createdAt: z.ZodString;
420
829
  createdBy: z.ZodString;
421
830
  createdByRole: z.ZodString;
422
831
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
424
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
425
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
426
- status: z.ZodEnum<{
427
- Rejected: "Rejected";
428
- Requested: "Requested";
429
- Accepted: "Accepted";
430
- }>;
431
- 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
+ }, {
432
838
  type: z.ZodLiteral<"REGISTER">;
433
839
  registrationNumber: z.ZodOptional<z.ZodString>;
434
- }, z.core.$strip>, z.ZodObject<{
435
- 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">;
436
872
  transactionId: z.ZodString;
437
- createdByUserType: z.ZodEnum<{
438
- system: "system";
439
- user: "user";
440
- }>;
873
+ createdByUserType: z.ZodEnum<["user", "system"]>;
441
874
  createdAt: z.ZodString;
442
875
  createdBy: z.ZodString;
443
876
  createdByRole: z.ZodString;
444
877
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
446
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
447
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
448
- status: z.ZodEnum<{
449
- Rejected: "Rejected";
450
- Requested: "Requested";
451
- Accepted: "Accepted";
452
- }>;
453
- 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
+ }, {
454
884
  type: z.ZodLiteral<"DECLARE">;
455
- }, z.core.$strip>, z.ZodObject<{
456
- 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">;
457
915
  transactionId: z.ZodString;
458
- createdByUserType: z.ZodEnum<{
459
- system: "system";
460
- user: "user";
461
- }>;
916
+ createdByUserType: z.ZodEnum<["user", "system"]>;
462
917
  createdAt: z.ZodString;
463
918
  createdBy: z.ZodString;
464
919
  createdByRole: z.ZodString;
465
920
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
466
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
467
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
468
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
469
- status: z.ZodEnum<{
470
- Rejected: "Rejected";
471
- Requested: "Requested";
472
- Accepted: "Accepted";
473
- }>;
474
- 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
+ }, {
475
927
  type: z.ZodLiteral<"ASSIGN">;
476
928
  assignedTo: z.ZodString;
477
- }, z.core.$strip>, z.ZodObject<{
478
- 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">;
479
961
  transactionId: z.ZodString;
480
- createdByUserType: z.ZodEnum<{
481
- system: "system";
482
- user: "user";
483
- }>;
962
+ createdByUserType: z.ZodEnum<["user", "system"]>;
484
963
  createdAt: z.ZodString;
485
964
  createdBy: z.ZodString;
486
965
  createdByRole: z.ZodString;
487
966
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
488
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
489
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
490
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
491
- status: z.ZodEnum<{
492
- Rejected: "Rejected";
493
- Requested: "Requested";
494
- Accepted: "Accepted";
495
- }>;
496
- 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
+ }, {
497
973
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
498
- }, z.core.$strip>, z.ZodObject<{
499
- 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">;
500
1004
  transactionId: z.ZodString;
501
- createdByUserType: z.ZodEnum<{
502
- system: "system";
503
- user: "user";
504
- }>;
1005
+ createdByUserType: z.ZodEnum<["user", "system"]>;
505
1006
  createdAt: z.ZodString;
506
1007
  createdBy: z.ZodString;
507
1008
  createdByRole: z.ZodString;
508
1009
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
509
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
510
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
511
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
512
- status: z.ZodEnum<{
513
- Rejected: "Rejected";
514
- Requested: "Requested";
515
- Accepted: "Accepted";
516
- }>;
517
- 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
+ }, {
518
1016
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
519
1017
  requestId: z.ZodString;
520
- }, z.core.$strip>, z.ZodObject<{
521
- 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">;
522
1050
  transactionId: z.ZodString;
523
- createdByUserType: z.ZodEnum<{
524
- system: "system";
525
- user: "user";
526
- }>;
1051
+ createdByUserType: z.ZodEnum<["user", "system"]>;
527
1052
  createdAt: z.ZodString;
528
1053
  createdBy: z.ZodString;
529
1054
  createdByRole: z.ZodString;
530
1055
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
531
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
532
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
533
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
534
- status: z.ZodEnum<{
535
- Rejected: "Rejected";
536
- Requested: "Requested";
537
- Accepted: "Accepted";
538
- }>;
539
- 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
+ }, {
540
1062
  type: z.ZodLiteral<"REJECT_CORRECTION">;
541
1063
  requestId: z.ZodString;
542
1064
  content: z.ZodObject<{
543
1065
  reason: z.ZodString;
544
- }, z.core.$strip>;
545
- }, z.core.$strip>, z.ZodObject<{
546
- 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">;
547
1109
  transactionId: z.ZodString;
548
- createdByUserType: z.ZodEnum<{
549
- system: "system";
550
- user: "user";
551
- }>;
1110
+ createdByUserType: z.ZodEnum<["user", "system"]>;
552
1111
  createdAt: z.ZodString;
553
1112
  createdBy: z.ZodString;
554
1113
  createdByRole: z.ZodString;
555
1114
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
556
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
557
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
558
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
559
- status: z.ZodEnum<{
560
- Rejected: "Rejected";
561
- Requested: "Requested";
562
- Accepted: "Accepted";
563
- }>;
564
- 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
+ }, {
565
1121
  type: z.ZodLiteral<"UNASSIGN">;
566
- }, z.core.$strip>, z.ZodObject<{
567
- 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">;
568
1152
  transactionId: z.ZodString;
569
- createdByUserType: z.ZodEnum<{
570
- system: "system";
571
- user: "user";
572
- }>;
1153
+ createdByUserType: z.ZodEnum<["user", "system"]>;
573
1154
  createdAt: z.ZodString;
574
1155
  createdBy: z.ZodString;
575
1156
  createdByRole: z.ZodString;
576
1157
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
577
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
578
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
579
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
580
- status: z.ZodEnum<{
581
- Rejected: "Rejected";
582
- Requested: "Requested";
583
- Accepted: "Accepted";
584
- }>;
585
- 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
+ }, {
586
1164
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
587
1165
  content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
588
1166
  templateId: z.ZodOptional<z.ZodString>;
589
- }, z.core.$strip>>>;
590
- }, z.core.$strip>, z.ZodObject<{
591
- 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">;
592
1208
  transactionId: z.ZodString;
593
- createdByUserType: z.ZodEnum<{
594
- system: "system";
595
- user: "user";
596
- }>;
1209
+ createdByUserType: z.ZodEnum<["user", "system"]>;
597
1210
  createdAt: z.ZodString;
598
1211
  createdBy: z.ZodString;
599
1212
  createdByRole: z.ZodString;
600
1213
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
601
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
602
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
603
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
604
- status: z.ZodEnum<{
605
- Rejected: "Rejected";
606
- Requested: "Requested";
607
- Accepted: "Accepted";
608
- }>;
609
- 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
+ }, {
610
1220
  type: z.ZodLiteral<"READ">;
611
- }, z.core.$strip>, z.ZodObject<{
612
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
613
- transactionId: z.ZodString;
614
- createdByUserType: z.ZodEnum<{
615
- system: "system";
616
- user: "user";
617
- }>;
618
- createdAt: z.ZodString;
619
- createdBy: z.ZodString;
620
- createdByRole: z.ZodString;
621
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
622
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
623
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
624
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
625
- status: z.ZodEnum<{
626
- Rejected: "Rejected";
627
- Requested: "Requested";
628
- Accepted: "Accepted";
629
- }>;
630
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
631
- type: z.ZodLiteral<"EDIT">;
632
- content: z.ZodObject<{
633
- comment: z.ZodOptional<z.ZodString>;
634
- }, z.core.$strip>;
635
- }, z.core.$strip>, z.ZodObject<{
636
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
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
+ }>]>;
1250
+ export type ActionDocument = z.infer<typeof ActionDocument>;
1251
+ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendShape<Omit<{
1252
+ id: z.ZodBranded<z.ZodString, "UUID">;
637
1253
  transactionId: z.ZodString;
638
- createdByUserType: z.ZodEnum<{
639
- system: "system";
640
- user: "user";
641
- }>;
1254
+ createdByUserType: z.ZodEnum<["user", "system"]>;
642
1255
  createdAt: z.ZodString;
643
1256
  createdBy: z.ZodString;
644
1257
  createdByRole: z.ZodString;
645
1258
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
646
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
647
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
648
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
649
- status: z.ZodEnum<{
650
- Rejected: "Rejected";
651
- Requested: "Requested";
652
- Accepted: "Accepted";
653
- }>;
654
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
655
- type: z.ZodLiteral<"CUSTOM">;
656
- customActionType: z.ZodString;
657
- }, z.core.$strip>], "type">;
658
- export type ActionDocument = z.infer<typeof ActionDocument>;
659
- export declare const AsyncRejectActionDocument: z.ZodObject<{
660
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
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"]>;
1266
+ status: z.ZodLiteral<"Rejected">;
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
+ }>;
1292
+ export type AsyncRejectActionDocument = z.infer<typeof AsyncRejectActionDocument>;
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
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
672
- type: z.ZodEnum<{
673
- NOTIFY: "NOTIFY";
674
- DECLARE: "DECLARE";
675
- REGISTER: "REGISTER";
676
- EDIT: "EDIT";
677
- REJECT: "REJECT";
678
- ARCHIVE: "ARCHIVE";
679
- PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
680
- REQUEST_CORRECTION: "REQUEST_CORRECTION";
681
- REJECT_CORRECTION: "REJECT_CORRECTION";
682
- APPROVE_CORRECTION: "APPROVE_CORRECTION";
683
- CUSTOM: "CUSTOM";
684
- }>;
685
- status: z.ZodLiteral<"Rejected">;
686
- }, z.core.$strip>;
687
- export type AsyncRejectActionDocument = z.infer<typeof AsyncRejectActionDocument>;
688
- export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
689
- id: 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
+ }, {
1307
+ type: z.ZodLiteral<"CREATE">;
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">;
690
1338
  transactionId: z.ZodString;
691
- createdByUserType: z.ZodEnum<{
692
- system: "system";
693
- user: "user";
694
- }>;
1339
+ createdByUserType: z.ZodEnum<["user", "system"]>;
695
1340
  createdAt: z.ZodString;
696
1341
  createdBy: z.ZodString;
697
1342
  createdByRole: z.ZodString;
698
1343
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
699
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
700
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
701
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
702
- status: z.ZodEnum<{
703
- Rejected: "Rejected";
704
- Requested: "Requested";
705
- Accepted: "Accepted";
706
- }>;
707
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
708
- type: z.ZodLiteral<"CREATE">;
709
- }, z.core.$strip>, z.ZodObject<{
710
- id: 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
+ }, {
1350
+ type: z.ZodLiteral<"VALIDATE">;
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">;
711
1381
  transactionId: z.ZodString;
712
- createdByUserType: z.ZodEnum<{
713
- system: "system";
714
- user: "user";
715
- }>;
1382
+ createdByUserType: z.ZodEnum<["user", "system"]>;
716
1383
  createdAt: z.ZodString;
717
1384
  createdBy: z.ZodString;
718
1385
  createdByRole: z.ZodString;
719
1386
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
720
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
721
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
722
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
723
- status: z.ZodEnum<{
724
- Rejected: "Rejected";
725
- Requested: "Requested";
726
- Accepted: "Accepted";
727
- }>;
728
- 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
+ }, {
729
1393
  type: z.ZodLiteral<"REJECT">;
730
1394
  content: z.ZodObject<{
731
1395
  reason: z.ZodString;
732
- }, z.core.$strip>;
733
- }, z.core.$strip>, z.ZodObject<{
734
- 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">;
735
1437
  transactionId: z.ZodString;
736
- createdByUserType: z.ZodEnum<{
737
- system: "system";
738
- user: "user";
739
- }>;
1438
+ createdByUserType: z.ZodEnum<["user", "system"]>;
740
1439
  createdAt: z.ZodString;
741
1440
  createdBy: z.ZodString;
742
1441
  createdByRole: z.ZodString;
743
1442
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
744
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
745
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
746
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
747
- status: z.ZodEnum<{
748
- Rejected: "Rejected";
749
- Requested: "Requested";
750
- Accepted: "Accepted";
751
- }>;
752
- 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
+ }, {
753
1449
  type: z.ZodLiteral<"DUPLICATE_DETECTED">;
754
1450
  content: z.ZodObject<{
755
1451
  duplicates: z.ZodArray<z.ZodObject<{
756
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1452
+ id: z.ZodBranded<z.ZodString, "UUID">;
757
1453
  trackingId: z.ZodString;
758
- }, z.core.$strip>>;
759
- }, z.core.$strip>;
760
- }, z.core.$strip>, z.ZodObject<{
761
- 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">;
762
1514
  transactionId: z.ZodString;
763
- createdByUserType: z.ZodEnum<{
764
- system: "system";
765
- user: "user";
766
- }>;
1515
+ createdByUserType: z.ZodEnum<["user", "system"]>;
767
1516
  createdAt: z.ZodString;
768
1517
  createdBy: z.ZodString;
769
1518
  createdByRole: z.ZodString;
770
1519
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
771
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
772
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
773
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
774
- status: z.ZodEnum<{
775
- Rejected: "Rejected";
776
- Requested: "Requested";
777
- Accepted: "Accepted";
778
- }>;
779
- 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
+ }, {
780
1526
  type: z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">;
781
- }, z.core.$strip>, z.ZodObject<{
782
- 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">;
783
1557
  transactionId: z.ZodString;
784
- createdByUserType: z.ZodEnum<{
785
- system: "system";
786
- user: "user";
787
- }>;
1558
+ createdByUserType: z.ZodEnum<["user", "system"]>;
788
1559
  createdAt: z.ZodString;
789
1560
  createdBy: z.ZodString;
790
1561
  createdByRole: z.ZodString;
791
1562
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
792
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
793
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
794
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
795
- status: z.ZodEnum<{
796
- Rejected: "Rejected";
797
- Requested: "Requested";
798
- Accepted: "Accepted";
799
- }>;
800
- 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
+ }, {
801
1569
  type: z.ZodLiteral<"MARK_AS_DUPLICATE">;
802
1570
  content: z.ZodOptional<z.ZodObject<{
803
- duplicateOf: z.core.$ZodBranded<z.ZodUUID, "UUID">;
804
- }, z.core.$strip>>;
805
- }, z.core.$strip>, z.ZodObject<{
806
- 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">;
807
1613
  transactionId: z.ZodString;
808
- createdByUserType: z.ZodEnum<{
809
- system: "system";
810
- user: "user";
811
- }>;
1614
+ createdByUserType: z.ZodEnum<["user", "system"]>;
812
1615
  createdAt: z.ZodString;
813
1616
  createdBy: z.ZodString;
814
1617
  createdByRole: z.ZodString;
815
1618
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
816
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
817
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
818
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
819
- status: z.ZodEnum<{
820
- Rejected: "Rejected";
821
- Requested: "Requested";
822
- Accepted: "Accepted";
823
- }>;
824
- 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
+ }, {
825
1625
  type: z.ZodLiteral<"ARCHIVE">;
826
1626
  content: z.ZodObject<{
827
1627
  reason: z.ZodString;
828
- }, z.core.$strip>;
829
- }, z.core.$strip>, z.ZodObject<{
830
- 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">;
831
1669
  transactionId: z.ZodString;
832
- createdByUserType: z.ZodEnum<{
833
- system: "system";
834
- user: "user";
835
- }>;
1670
+ createdByUserType: z.ZodEnum<["user", "system"]>;
836
1671
  createdAt: z.ZodString;
837
1672
  createdBy: z.ZodString;
838
1673
  createdByRole: z.ZodString;
839
1674
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
840
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
841
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
842
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
843
- status: z.ZodEnum<{
844
- Rejected: "Rejected";
845
- Requested: "Requested";
846
- Accepted: "Accepted";
847
- }>;
848
- 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
+ }, {
849
1681
  type: z.ZodLiteral<"NOTIFY">;
850
- }, z.core.$strip>, z.ZodObject<{
851
- 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">;
852
1712
  transactionId: z.ZodString;
853
- createdByUserType: z.ZodEnum<{
854
- system: "system";
855
- user: "user";
856
- }>;
1713
+ createdByUserType: z.ZodEnum<["user", "system"]>;
857
1714
  createdAt: z.ZodString;
858
1715
  createdBy: z.ZodString;
859
1716
  createdByRole: z.ZodString;
860
1717
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
861
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
862
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
863
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
864
- status: z.ZodEnum<{
865
- Rejected: "Rejected";
866
- Requested: "Requested";
867
- Accepted: "Accepted";
868
- }>;
869
- 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
+ }, {
870
1724
  type: z.ZodLiteral<"REGISTER">;
871
1725
  registrationNumber: z.ZodOptional<z.ZodString>;
872
- }, z.core.$strip>, z.ZodObject<{
873
- 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">;
874
1758
  transactionId: z.ZodString;
875
- createdByUserType: z.ZodEnum<{
876
- system: "system";
877
- user: "user";
878
- }>;
1759
+ createdByUserType: z.ZodEnum<["user", "system"]>;
879
1760
  createdAt: z.ZodString;
880
1761
  createdBy: z.ZodString;
881
1762
  createdByRole: z.ZodString;
882
1763
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
883
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
884
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
885
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
886
- status: z.ZodEnum<{
887
- Rejected: "Rejected";
888
- Requested: "Requested";
889
- Accepted: "Accepted";
890
- }>;
891
- 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
+ }, {
892
1770
  type: z.ZodLiteral<"DECLARE">;
893
- }, z.core.$strip>, z.ZodObject<{
894
- 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">;
895
1801
  transactionId: z.ZodString;
896
- createdByUserType: z.ZodEnum<{
897
- system: "system";
898
- user: "user";
899
- }>;
1802
+ createdByUserType: z.ZodEnum<["user", "system"]>;
900
1803
  createdAt: z.ZodString;
901
1804
  createdBy: z.ZodString;
902
1805
  createdByRole: z.ZodString;
903
1806
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
904
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
905
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
906
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
907
- status: z.ZodEnum<{
908
- Rejected: "Rejected";
909
- Requested: "Requested";
910
- Accepted: "Accepted";
911
- }>;
912
- 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
+ }, {
913
1813
  type: z.ZodLiteral<"ASSIGN">;
914
1814
  assignedTo: z.ZodString;
915
- }, z.core.$strip>, z.ZodObject<{
916
- 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">;
917
1847
  transactionId: z.ZodString;
918
- createdByUserType: z.ZodEnum<{
919
- system: "system";
920
- user: "user";
921
- }>;
1848
+ createdByUserType: z.ZodEnum<["user", "system"]>;
922
1849
  createdAt: z.ZodString;
923
1850
  createdBy: z.ZodString;
924
1851
  createdByRole: z.ZodString;
925
1852
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
926
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
927
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
928
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
929
- status: z.ZodEnum<{
930
- Rejected: "Rejected";
931
- Requested: "Requested";
932
- Accepted: "Accepted";
933
- }>;
934
- 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
+ }, {
935
1859
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
936
- }, z.core.$strip>, z.ZodObject<{
937
- 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">;
938
1890
  transactionId: z.ZodString;
939
- createdByUserType: z.ZodEnum<{
940
- system: "system";
941
- user: "user";
942
- }>;
1891
+ createdByUserType: z.ZodEnum<["user", "system"]>;
943
1892
  createdAt: z.ZodString;
944
1893
  createdBy: z.ZodString;
945
1894
  createdByRole: z.ZodString;
946
1895
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
947
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
948
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
949
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
950
- status: z.ZodEnum<{
951
- Rejected: "Rejected";
952
- Requested: "Requested";
953
- Accepted: "Accepted";
954
- }>;
955
- 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
+ }, {
956
1902
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
957
1903
  requestId: z.ZodString;
958
- }, z.core.$strip>, z.ZodObject<{
959
- 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">;
960
1936
  transactionId: z.ZodString;
961
- createdByUserType: z.ZodEnum<{
962
- system: "system";
963
- user: "user";
964
- }>;
1937
+ createdByUserType: z.ZodEnum<["user", "system"]>;
965
1938
  createdAt: z.ZodString;
966
1939
  createdBy: z.ZodString;
967
1940
  createdByRole: z.ZodString;
968
1941
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
969
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
970
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
971
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
972
- status: z.ZodEnum<{
973
- Rejected: "Rejected";
974
- Requested: "Requested";
975
- Accepted: "Accepted";
976
- }>;
977
- 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
+ }, {
978
1948
  type: z.ZodLiteral<"REJECT_CORRECTION">;
979
1949
  requestId: z.ZodString;
980
1950
  content: z.ZodObject<{
981
1951
  reason: z.ZodString;
982
- }, z.core.$strip>;
983
- }, z.core.$strip>, z.ZodObject<{
984
- 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">;
985
1995
  transactionId: z.ZodString;
986
- createdByUserType: z.ZodEnum<{
987
- system: "system";
988
- user: "user";
989
- }>;
1996
+ createdByUserType: z.ZodEnum<["user", "system"]>;
990
1997
  createdAt: z.ZodString;
991
1998
  createdBy: z.ZodString;
992
1999
  createdByRole: z.ZodString;
993
2000
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
994
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
995
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
996
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
997
- status: z.ZodEnum<{
998
- Rejected: "Rejected";
999
- Requested: "Requested";
1000
- Accepted: "Accepted";
1001
- }>;
1002
- 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
+ }, {
1003
2007
  type: z.ZodLiteral<"UNASSIGN">;
1004
- }, z.core.$strip>, z.ZodObject<{
1005
- 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">;
1006
2038
  transactionId: z.ZodString;
1007
- createdByUserType: z.ZodEnum<{
1008
- system: "system";
1009
- user: "user";
1010
- }>;
2039
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1011
2040
  createdAt: z.ZodString;
1012
2041
  createdBy: z.ZodString;
1013
2042
  createdByRole: z.ZodString;
1014
2043
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1015
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1016
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
1017
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
1018
- status: z.ZodEnum<{
1019
- Rejected: "Rejected";
1020
- Requested: "Requested";
1021
- Accepted: "Accepted";
1022
- }>;
1023
- 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
+ }, {
1024
2050
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
1025
2051
  content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1026
2052
  templateId: z.ZodOptional<z.ZodString>;
1027
- }, z.core.$strip>>>;
1028
- }, z.core.$strip>, z.ZodObject<{
1029
- 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">;
1030
2094
  transactionId: z.ZodString;
1031
- createdByUserType: z.ZodEnum<{
1032
- system: "system";
1033
- user: "user";
1034
- }>;
2095
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1035
2096
  createdAt: z.ZodString;
1036
2097
  createdBy: z.ZodString;
1037
2098
  createdByRole: z.ZodString;
1038
2099
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1039
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1040
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
1041
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
1042
- status: z.ZodEnum<{
1043
- Rejected: "Rejected";
1044
- Requested: "Requested";
1045
- Accepted: "Accepted";
1046
- }>;
1047
- 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
+ }, {
1048
2106
  type: z.ZodLiteral<"READ">;
1049
- }, z.core.$strip>, z.ZodObject<{
1050
- 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">;
1051
2137
  transactionId: z.ZodString;
1052
- createdByUserType: z.ZodEnum<{
1053
- system: "system";
1054
- user: "user";
1055
- }>;
2138
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1056
2139
  createdAt: z.ZodString;
1057
2140
  createdBy: z.ZodString;
1058
2141
  createdByRole: z.ZodString;
1059
2142
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1060
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1061
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
1062
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
1063
- status: z.ZodEnum<{
1064
- Rejected: "Rejected";
1065
- Requested: "Requested";
1066
- Accepted: "Accepted";
1067
- }>;
1068
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1069
- type: z.ZodLiteral<"EDIT">;
1070
- content: z.ZodObject<{
1071
- comment: z.ZodOptional<z.ZodString>;
1072
- }, z.core.$strip>;
1073
- }, z.core.$strip>, z.ZodObject<{
1074
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1075
- transactionId: z.ZodString;
1076
- createdByUserType: z.ZodEnum<{
1077
- system: "system";
1078
- user: "user";
1079
- }>;
1080
- createdAt: z.ZodString;
1081
- createdBy: z.ZodString;
1082
- createdByRole: z.ZodString;
1083
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1084
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1085
- declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
1086
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
1087
- status: z.ZodEnum<{
1088
- Rejected: "Rejected";
1089
- Requested: "Requested";
1090
- Accepted: "Accepted";
1091
- }>;
1092
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1093
- type: z.ZodLiteral<"CUSTOM">;
1094
- customActionType: z.ZodString;
1095
- }, z.core.$strip>], "type">, z.ZodObject<{
1096
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1097
- transactionId: z.ZodString;
1098
- createdByUserType: z.ZodEnum<{
1099
- system: "system";
1100
- user: "user";
1101
- }>;
1102
- createdAt: z.ZodString;
1103
- createdBy: z.ZodString;
1104
- createdByRole: z.ZodString;
1105
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1106
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1107
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
1108
- type: z.ZodEnum<{
1109
- NOTIFY: "NOTIFY";
1110
- DECLARE: "DECLARE";
1111
- REGISTER: "REGISTER";
1112
- EDIT: "EDIT";
1113
- REJECT: "REJECT";
1114
- ARCHIVE: "ARCHIVE";
1115
- PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
1116
- REQUEST_CORRECTION: "REQUEST_CORRECTION";
1117
- REJECT_CORRECTION: "REJECT_CORRECTION";
1118
- APPROVE_CORRECTION: "APPROVE_CORRECTION";
1119
- CUSTOM: "CUSTOM";
1120
- }>;
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"]>;
1121
2150
  status: z.ZodLiteral<"Rejected">;
1122
- }, z.core.$strip>]>;
1123
- 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;
1124
2177
  export type CreatedAction = z.infer<typeof CreatedAction>;
1125
2178
  export type AssignedAction = z.infer<typeof AssignedAction>;
1126
2179
  export {};