@opencrvs/toolkit 1.9.4-rc.793f834 → 1.9.4-rc.f09603b

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 +28204 -2149
  2. package/dist/commons/conditionals/conditionals.d.ts +10 -1
  3. package/dist/commons/conditionals/validate.d.ts +11 -4
  4. package/dist/commons/events/ActionConfig.d.ts +23416 -1552
  5. package/dist/commons/events/ActionDocument.d.ts +803 -1856
  6. package/dist/commons/events/ActionInput.d.ts +277 -1073
  7. package/dist/commons/events/ActionType.d.ts +86 -9
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +228 -1238
  9. package/dist/commons/events/CompositeFieldValue.d.ts +27 -176
  10. package/dist/commons/events/Conditional.d.ts +26 -38
  11. package/dist/commons/events/Constants.d.ts +1 -1
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +931 -4169
  13. package/dist/commons/events/CreatedAtLocation.d.ts +1 -1
  14. package/dist/commons/events/DeduplicationConfig.d.ts +15 -150
  15. package/dist/commons/events/Draft.d.ts +70 -105
  16. package/dist/commons/events/DynamicFieldValue.d.ts +7 -91
  17. package/dist/commons/events/EventConfig.d.ts +18663 -2120
  18. package/dist/commons/events/EventConfigInput.d.ts +1 -1
  19. package/dist/commons/events/EventDocument.d.ts +320 -1332
  20. package/dist/commons/events/EventIndex.d.ts +197 -967
  21. package/dist/commons/events/EventInput.d.ts +2 -8
  22. package/dist/commons/events/EventMetadata.d.ts +106 -346
  23. package/dist/commons/events/FieldConfig.d.ts +4267 -11782
  24. package/dist/commons/events/FieldType.d.ts +20 -4
  25. package/dist/commons/events/FieldTypeMapping.d.ts +181 -813
  26. package/dist/commons/events/FieldValue.d.ts +83 -356
  27. package/dist/commons/events/Flag.d.ts +70 -0
  28. package/dist/commons/events/FormConfig.d.ts +13140 -721
  29. package/dist/commons/events/PageConfig.d.ts +8780 -319
  30. package/dist/commons/events/SummaryConfig.d.ts +14 -161
  31. package/dist/commons/events/TemplateConfig.d.ts +3 -3
  32. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  33. package/dist/commons/events/WorkqueueColumnConfig.d.ts +74 -37
  34. package/dist/commons/events/WorkqueueConfig.d.ts +1691 -7156
  35. package/dist/commons/events/deduplication.d.ts +3 -3
  36. package/dist/commons/events/defineConfig.d.ts +25626 -150
  37. package/dist/commons/events/event.d.ts +4 -4
  38. package/dist/commons/events/index.d.ts +1 -0
  39. package/dist/commons/events/locations.d.ts +15 -19
  40. package/dist/commons/events/scopes.d.ts +5 -4
  41. package/dist/commons/events/state/availableActions.d.ts +2 -1
  42. package/dist/commons/events/state/flags.d.ts +21 -3
  43. package/dist/commons/events/state/index.d.ts +23 -19
  44. package/dist/commons/events/state/utils.d.ts +130 -112
  45. package/dist/commons/events/test.utils.d.ts +17 -8
  46. package/dist/commons/events/transactions.d.ts +1 -1
  47. package/dist/commons/events/utils.d.ts +51339 -362
  48. package/dist/commons/notification/UserNotifications.d.ts +55 -636
  49. package/dist/conditionals/index.d.ts.map +1 -1
  50. package/dist/conditionals/index.js +38 -5
  51. package/dist/events/deduplication.d.ts +3 -3
  52. package/dist/events/index.js +1810 -1550
  53. package/dist/notification/index.d.ts.map +1 -1
  54. package/dist/notification/index.js +1430 -1412
  55. package/dist/scopes/index.d.ts +167 -132
  56. package/dist/scopes/index.d.ts.map +1 -1
  57. package/dist/scopes/index.js +133 -94
  58. package/package.json +5 -5
@@ -1,14 +1,14 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod/v4';
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, z.ZodTypeDef, FieldUpdateValue>>;
6
+ export declare const ActionUpdate: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
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, z.ZodTypeDef, FieldValue>>;
11
+ export declare const EventState: z.ZodRecord<z.ZodString, z.ZodType<FieldValue, unknown, z.core.$ZodTypeInternals<FieldValue, unknown>>>;
12
12
  export type EventState = z.infer<typeof EventState>;
13
13
  export declare const ActionStatus: {
14
14
  readonly Requested: "Requested";
@@ -17,2163 +17,1110 @@ 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.ZodBranded<z.ZodString, "UUID">;
20
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
21
21
  transactionId: z.ZodString;
22
- createdByUserType: z.ZodEnum<["user", "system"]>;
22
+ createdByUserType: z.ZodEnum<{
23
+ system: "system";
24
+ user: "user";
25
+ }>;
23
26
  createdAt: z.ZodString;
24
27
  createdBy: z.ZodString;
25
28
  createdByRole: z.ZodString;
26
29
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }>;
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>;
59
40
  export type ActionBase = z.infer<typeof ActionBase>;
60
- declare const AssignedAction: z.ZodObject<z.objectUtil.extendShape<{
61
- id: z.ZodBranded<z.ZodString, "UUID">;
41
+ declare const AssignedAction: z.ZodObject<{
42
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
62
43
  transactionId: z.ZodString;
63
- createdByUserType: z.ZodEnum<["user", "system"]>;
44
+ createdByUserType: z.ZodEnum<{
45
+ system: "system";
46
+ user: "user";
47
+ }>;
64
48
  createdAt: z.ZodString;
65
49
  createdBy: z.ZodString;
66
50
  createdByRole: z.ZodString;
67
51
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
74
61
  type: z.ZodLiteral<"ASSIGN">;
75
62
  assignedTo: z.ZodString;
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">;
63
+ }, z.core.$strip>;
64
+ export declare const RegisterAction: z.ZodObject<{
65
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
109
66
  transactionId: z.ZodString;
110
- createdByUserType: z.ZodEnum<["user", "system"]>;
67
+ createdByUserType: z.ZodEnum<{
68
+ system: "system";
69
+ user: "user";
70
+ }>;
111
71
  createdAt: z.ZodString;
112
72
  createdBy: z.ZodString;
113
73
  createdByRole: z.ZodString;
114
74
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
121
84
  type: z.ZodLiteral<"REGISTER">;
122
85
  registrationNumber: z.ZodOptional<z.ZodString>;
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
- }>;
86
+ }, z.core.$strip>;
154
87
  export type RegisterAction = z.infer<typeof RegisterAction>;
155
88
  export declare const ReasonContent: z.ZodObject<{
156
89
  reason: z.ZodString;
157
- }, "strip", z.ZodTypeAny, {
158
- reason: string;
159
- }, {
160
- reason: string;
161
- }>;
90
+ }, z.core.$strip>;
162
91
  export declare const PotentialDuplicate: z.ZodObject<{
163
- id: z.ZodBranded<z.ZodString, "UUID">;
92
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
164
93
  trackingId: z.ZodString;
165
- }, "strip", z.ZodTypeAny, {
166
- id: string & z.BRAND<"UUID">;
167
- trackingId: string;
168
- }, {
169
- id: string;
170
- trackingId: string;
171
- }>;
94
+ }, z.core.$strip>;
172
95
  export type PotentialDuplicate = z.infer<typeof PotentialDuplicate>;
173
- export declare const DuplicateDetectedAction: z.ZodObject<z.objectUtil.extendShape<{
174
- id: z.ZodBranded<z.ZodString, "UUID">;
96
+ export declare const DuplicateDetectedAction: z.ZodObject<{
97
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
175
98
  transactionId: z.ZodString;
176
- createdByUserType: z.ZodEnum<["user", "system"]>;
99
+ createdByUserType: z.ZodEnum<{
100
+ system: "system";
101
+ user: "user";
102
+ }>;
177
103
  createdAt: z.ZodString;
178
104
  createdBy: z.ZodString;
179
105
  createdByRole: z.ZodString;
180
106
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
187
116
  type: z.ZodLiteral<"DUPLICATE_DETECTED">;
188
117
  content: z.ZodObject<{
189
118
  duplicates: z.ZodArray<z.ZodObject<{
190
- id: z.ZodBranded<z.ZodString, "UUID">;
119
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
191
120
  trackingId: z.ZodString;
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
- }>;
121
+ }, z.core.$strip>>;
122
+ }, z.core.$strip>;
123
+ }, z.core.$strip>;
251
124
  export type DuplicateDetectedAction = z.infer<typeof DuplicateDetectedAction>;
252
- declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
253
- id: z.ZodBranded<z.ZodString, "UUID">;
125
+ declare const CreatedAction: z.ZodObject<{
126
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
254
127
  transactionId: z.ZodString;
255
- createdByUserType: z.ZodEnum<["user", "system"]>;
128
+ createdByUserType: z.ZodEnum<{
129
+ system: "system";
130
+ user: "user";
131
+ }>;
256
132
  createdAt: z.ZodString;
257
133
  createdBy: z.ZodString;
258
134
  createdByRole: z.ZodString;
259
135
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
266
145
  type: z.ZodLiteral<"CREATE">;
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
- }>;
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>;
296
173
  export declare const PrintContent: z.ZodObject<{
297
174
  templateId: z.ZodOptional<z.ZodString>;
298
- }, "strip", z.ZodTypeAny, {
299
- templateId?: string | undefined;
300
- }, {
301
- templateId?: string | undefined;
302
- }>;
175
+ }, z.core.$strip>;
303
176
  export type PrintContent = z.infer<typeof PrintContent>;
304
- declare const PrintCertificateAction: z.ZodObject<z.objectUtil.extendShape<{
305
- id: z.ZodBranded<z.ZodString, "UUID">;
177
+ declare const PrintCertificateAction: z.ZodObject<{
178
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
306
179
  transactionId: z.ZodString;
307
- createdByUserType: z.ZodEnum<["user", "system"]>;
180
+ createdByUserType: z.ZodEnum<{
181
+ system: "system";
182
+ user: "user";
183
+ }>;
308
184
  createdAt: z.ZodString;
309
185
  createdBy: z.ZodString;
310
186
  createdByRole: z.ZodString;
311
187
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
318
197
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
319
198
  content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
320
199
  templateId: z.ZodOptional<z.ZodString>;
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
- }>;
200
+ }, z.core.$strip>>>;
201
+ }, z.core.$strip>;
361
202
  export type PrintCertificateAction = z.infer<typeof PrintCertificateAction>;
362
- declare const RequestedCorrectionAction: z.ZodObject<z.objectUtil.extendShape<{
363
- id: z.ZodBranded<z.ZodString, "UUID">;
203
+ declare const RequestedCorrectionAction: z.ZodObject<{
204
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
364
205
  transactionId: z.ZodString;
365
- createdByUserType: z.ZodEnum<["user", "system"]>;
206
+ createdByUserType: z.ZodEnum<{
207
+ system: "system";
208
+ user: "user";
209
+ }>;
366
210
  createdAt: z.ZodString;
367
211
  createdBy: z.ZodString;
368
212
  createdByRole: z.ZodString;
369
213
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
376
223
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
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
- }>;
224
+ }, z.core.$strip>;
406
225
  export type RequestedCorrectionAction = z.infer<typeof RequestedCorrectionAction>;
407
- export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
408
- id: z.ZodBranded<z.ZodString, "UUID">;
226
+ declare const CustomAction: z.ZodObject<{
227
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
409
228
  transactionId: z.ZodString;
410
- createdByUserType: z.ZodEnum<["user", "system"]>;
229
+ createdByUserType: z.ZodEnum<{
230
+ system: "system";
231
+ user: "user";
232
+ }>;
411
233
  createdAt: z.ZodString;
412
234
  createdBy: z.ZodString;
413
235
  createdByRole: z.ZodString;
414
236
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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">;
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">;
452
252
  transactionId: z.ZodString;
453
- createdByUserType: z.ZodEnum<["user", "system"]>;
253
+ createdByUserType: z.ZodEnum<{
254
+ system: "system";
255
+ user: "user";
256
+ }>;
454
257
  createdAt: z.ZodString;
455
258
  createdBy: z.ZodString;
456
259
  createdByRole: z.ZodString;
457
260
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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">;
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">;
495
273
  transactionId: z.ZodString;
496
- createdByUserType: z.ZodEnum<["user", "system"]>;
274
+ createdByUserType: z.ZodEnum<{
275
+ system: "system";
276
+ user: "user";
277
+ }>;
497
278
  createdAt: z.ZodString;
498
279
  createdBy: z.ZodString;
499
280
  createdByRole: z.ZodString;
500
281
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
507
291
  type: z.ZodLiteral<"REJECT">;
508
292
  content: z.ZodObject<{
509
293
  reason: z.ZodString;
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">;
294
+ }, z.core.$strip>;
295
+ }, z.core.$strip>, z.ZodObject<{
296
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
551
297
  transactionId: z.ZodString;
552
- createdByUserType: z.ZodEnum<["user", "system"]>;
298
+ createdByUserType: z.ZodEnum<{
299
+ system: "system";
300
+ user: "user";
301
+ }>;
553
302
  createdAt: z.ZodString;
554
303
  createdBy: z.ZodString;
555
304
  createdByRole: z.ZodString;
556
305
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
563
315
  type: z.ZodLiteral<"DUPLICATE_DETECTED">;
564
316
  content: z.ZodObject<{
565
317
  duplicates: z.ZodArray<z.ZodObject<{
566
- id: z.ZodBranded<z.ZodString, "UUID">;
318
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
567
319
  trackingId: z.ZodString;
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">;
320
+ }, z.core.$strip>>;
321
+ }, z.core.$strip>;
322
+ }, z.core.$strip>, z.ZodObject<{
323
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
628
324
  transactionId: z.ZodString;
629
- createdByUserType: z.ZodEnum<["user", "system"]>;
325
+ createdByUserType: z.ZodEnum<{
326
+ system: "system";
327
+ user: "user";
328
+ }>;
630
329
  createdAt: z.ZodString;
631
330
  createdBy: z.ZodString;
632
331
  createdByRole: z.ZodString;
633
332
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
640
342
  type: z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">;
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">;
343
+ }, z.core.$strip>, z.ZodObject<{
344
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
671
345
  transactionId: z.ZodString;
672
- createdByUserType: z.ZodEnum<["user", "system"]>;
346
+ createdByUserType: z.ZodEnum<{
347
+ system: "system";
348
+ user: "user";
349
+ }>;
673
350
  createdAt: z.ZodString;
674
351
  createdBy: z.ZodString;
675
352
  createdByRole: z.ZodString;
676
353
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
683
363
  type: z.ZodLiteral<"MARK_AS_DUPLICATE">;
684
364
  content: z.ZodOptional<z.ZodObject<{
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">;
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">;
727
369
  transactionId: z.ZodString;
728
- createdByUserType: z.ZodEnum<["user", "system"]>;
370
+ createdByUserType: z.ZodEnum<{
371
+ system: "system";
372
+ user: "user";
373
+ }>;
729
374
  createdAt: z.ZodString;
730
375
  createdBy: z.ZodString;
731
376
  createdByRole: z.ZodString;
732
377
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
739
387
  type: z.ZodLiteral<"ARCHIVE">;
740
388
  content: z.ZodObject<{
741
389
  reason: z.ZodString;
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">;
390
+ }, z.core.$strip>;
391
+ }, z.core.$strip>, z.ZodObject<{
392
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
783
393
  transactionId: z.ZodString;
784
- createdByUserType: z.ZodEnum<["user", "system"]>;
394
+ createdByUserType: z.ZodEnum<{
395
+ system: "system";
396
+ user: "user";
397
+ }>;
785
398
  createdAt: z.ZodString;
786
399
  createdBy: z.ZodString;
787
400
  createdByRole: z.ZodString;
788
401
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
795
411
  type: z.ZodLiteral<"NOTIFY">;
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">;
412
+ }, z.core.$strip>, z.ZodObject<{
413
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
826
414
  transactionId: z.ZodString;
827
- createdByUserType: z.ZodEnum<["user", "system"]>;
415
+ createdByUserType: z.ZodEnum<{
416
+ system: "system";
417
+ user: "user";
418
+ }>;
828
419
  createdAt: z.ZodString;
829
420
  createdBy: z.ZodString;
830
421
  createdByRole: z.ZodString;
831
422
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
838
432
  type: z.ZodLiteral<"REGISTER">;
839
433
  registrationNumber: z.ZodOptional<z.ZodString>;
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">;
434
+ }, z.core.$strip>, z.ZodObject<{
435
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
872
436
  transactionId: z.ZodString;
873
- createdByUserType: z.ZodEnum<["user", "system"]>;
437
+ createdByUserType: z.ZodEnum<{
438
+ system: "system";
439
+ user: "user";
440
+ }>;
874
441
  createdAt: z.ZodString;
875
442
  createdBy: z.ZodString;
876
443
  createdByRole: z.ZodString;
877
444
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
884
454
  type: z.ZodLiteral<"DECLARE">;
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">;
455
+ }, z.core.$strip>, z.ZodObject<{
456
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
915
457
  transactionId: z.ZodString;
916
- createdByUserType: z.ZodEnum<["user", "system"]>;
458
+ createdByUserType: z.ZodEnum<{
459
+ system: "system";
460
+ user: "user";
461
+ }>;
917
462
  createdAt: z.ZodString;
918
463
  createdBy: z.ZodString;
919
464
  createdByRole: z.ZodString;
920
465
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
927
475
  type: z.ZodLiteral<"ASSIGN">;
928
476
  assignedTo: z.ZodString;
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">;
477
+ }, z.core.$strip>, z.ZodObject<{
478
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
961
479
  transactionId: z.ZodString;
962
- createdByUserType: z.ZodEnum<["user", "system"]>;
480
+ createdByUserType: z.ZodEnum<{
481
+ system: "system";
482
+ user: "user";
483
+ }>;
963
484
  createdAt: z.ZodString;
964
485
  createdBy: z.ZodString;
965
486
  createdByRole: z.ZodString;
966
487
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
973
497
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
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">;
498
+ }, z.core.$strip>, z.ZodObject<{
499
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1004
500
  transactionId: z.ZodString;
1005
- createdByUserType: z.ZodEnum<["user", "system"]>;
501
+ createdByUserType: z.ZodEnum<{
502
+ system: "system";
503
+ user: "user";
504
+ }>;
1006
505
  createdAt: z.ZodString;
1007
506
  createdBy: z.ZodString;
1008
507
  createdByRole: z.ZodString;
1009
508
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1016
518
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
1017
519
  requestId: z.ZodString;
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">;
520
+ }, z.core.$strip>, z.ZodObject<{
521
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1050
522
  transactionId: z.ZodString;
1051
- createdByUserType: z.ZodEnum<["user", "system"]>;
523
+ createdByUserType: z.ZodEnum<{
524
+ system: "system";
525
+ user: "user";
526
+ }>;
1052
527
  createdAt: z.ZodString;
1053
528
  createdBy: z.ZodString;
1054
529
  createdByRole: z.ZodString;
1055
530
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1062
540
  type: z.ZodLiteral<"REJECT_CORRECTION">;
1063
541
  requestId: z.ZodString;
1064
542
  content: z.ZodObject<{
1065
543
  reason: z.ZodString;
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">;
544
+ }, z.core.$strip>;
545
+ }, z.core.$strip>, z.ZodObject<{
546
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1109
547
  transactionId: z.ZodString;
1110
- createdByUserType: z.ZodEnum<["user", "system"]>;
548
+ createdByUserType: z.ZodEnum<{
549
+ system: "system";
550
+ user: "user";
551
+ }>;
1111
552
  createdAt: z.ZodString;
1112
553
  createdBy: z.ZodString;
1113
554
  createdByRole: z.ZodString;
1114
555
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1121
565
  type: z.ZodLiteral<"UNASSIGN">;
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">;
566
+ }, z.core.$strip>, z.ZodObject<{
567
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1152
568
  transactionId: z.ZodString;
1153
- createdByUserType: z.ZodEnum<["user", "system"]>;
569
+ createdByUserType: z.ZodEnum<{
570
+ system: "system";
571
+ user: "user";
572
+ }>;
1154
573
  createdAt: z.ZodString;
1155
574
  createdBy: z.ZodString;
1156
575
  createdByRole: z.ZodString;
1157
576
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1164
586
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
1165
587
  content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1166
588
  templateId: z.ZodOptional<z.ZodString>;
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">;
589
+ }, z.core.$strip>>>;
590
+ }, z.core.$strip>, z.ZodObject<{
591
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1208
592
  transactionId: z.ZodString;
1209
- createdByUserType: z.ZodEnum<["user", "system"]>;
593
+ createdByUserType: z.ZodEnum<{
594
+ system: "system";
595
+ user: "user";
596
+ }>;
1210
597
  createdAt: z.ZodString;
1211
598
  createdBy: z.ZodString;
1212
599
  createdByRole: z.ZodString;
1213
600
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1220
610
  type: z.ZodLiteral<"READ">;
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">;
611
+ }, z.core.$strip>, z.ZodObject<{
612
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1253
613
  transactionId: z.ZodString;
1254
- createdByUserType: z.ZodEnum<["user", "system"]>;
614
+ createdByUserType: z.ZodEnum<{
615
+ system: "system";
616
+ user: "user";
617
+ }>;
1255
618
  createdAt: z.ZodString;
1256
619
  createdBy: z.ZodString;
1257
620
  createdByRole: z.ZodString;
1258
621
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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">;
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">;
1295
637
  transactionId: z.ZodString;
1296
- createdByUserType: z.ZodEnum<["user", "system"]>;
638
+ createdByUserType: z.ZodEnum<{
639
+ system: "system";
640
+ user: "user";
641
+ }>;
1297
642
  createdAt: z.ZodString;
1298
643
  createdBy: z.ZodString;
1299
644
  createdByRole: z.ZodString;
1300
645
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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">;
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">;
661
+ transactionId: z.ZodString;
662
+ createdByUserType: z.ZodEnum<{
663
+ system: "system";
664
+ user: "user";
665
+ }>;
666
+ createdAt: z.ZodString;
667
+ createdBy: z.ZodString;
668
+ createdByRole: z.ZodString;
669
+ 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">;
1338
690
  transactionId: z.ZodString;
1339
- createdByUserType: z.ZodEnum<["user", "system"]>;
691
+ createdByUserType: z.ZodEnum<{
692
+ system: "system";
693
+ user: "user";
694
+ }>;
1340
695
  createdAt: z.ZodString;
1341
696
  createdBy: z.ZodString;
1342
697
  createdByRole: z.ZodString;
1343
698
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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">;
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">;
1381
711
  transactionId: z.ZodString;
1382
- createdByUserType: z.ZodEnum<["user", "system"]>;
712
+ createdByUserType: z.ZodEnum<{
713
+ system: "system";
714
+ user: "user";
715
+ }>;
1383
716
  createdAt: z.ZodString;
1384
717
  createdBy: z.ZodString;
1385
718
  createdByRole: z.ZodString;
1386
719
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1393
729
  type: z.ZodLiteral<"REJECT">;
1394
730
  content: z.ZodObject<{
1395
731
  reason: z.ZodString;
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">;
732
+ }, z.core.$strip>;
733
+ }, z.core.$strip>, z.ZodObject<{
734
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1437
735
  transactionId: z.ZodString;
1438
- createdByUserType: z.ZodEnum<["user", "system"]>;
736
+ createdByUserType: z.ZodEnum<{
737
+ system: "system";
738
+ user: "user";
739
+ }>;
1439
740
  createdAt: z.ZodString;
1440
741
  createdBy: z.ZodString;
1441
742
  createdByRole: z.ZodString;
1442
743
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1449
753
  type: z.ZodLiteral<"DUPLICATE_DETECTED">;
1450
754
  content: z.ZodObject<{
1451
755
  duplicates: z.ZodArray<z.ZodObject<{
1452
- id: z.ZodBranded<z.ZodString, "UUID">;
756
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1453
757
  trackingId: z.ZodString;
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">;
758
+ }, z.core.$strip>>;
759
+ }, z.core.$strip>;
760
+ }, z.core.$strip>, z.ZodObject<{
761
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1514
762
  transactionId: z.ZodString;
1515
- createdByUserType: z.ZodEnum<["user", "system"]>;
763
+ createdByUserType: z.ZodEnum<{
764
+ system: "system";
765
+ user: "user";
766
+ }>;
1516
767
  createdAt: z.ZodString;
1517
768
  createdBy: z.ZodString;
1518
769
  createdByRole: z.ZodString;
1519
770
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1526
780
  type: z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">;
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">;
781
+ }, z.core.$strip>, z.ZodObject<{
782
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1557
783
  transactionId: z.ZodString;
1558
- createdByUserType: z.ZodEnum<["user", "system"]>;
784
+ createdByUserType: z.ZodEnum<{
785
+ system: "system";
786
+ user: "user";
787
+ }>;
1559
788
  createdAt: z.ZodString;
1560
789
  createdBy: z.ZodString;
1561
790
  createdByRole: z.ZodString;
1562
791
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1569
801
  type: z.ZodLiteral<"MARK_AS_DUPLICATE">;
1570
802
  content: z.ZodOptional<z.ZodObject<{
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">;
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">;
1613
807
  transactionId: z.ZodString;
1614
- createdByUserType: z.ZodEnum<["user", "system"]>;
808
+ createdByUserType: z.ZodEnum<{
809
+ system: "system";
810
+ user: "user";
811
+ }>;
1615
812
  createdAt: z.ZodString;
1616
813
  createdBy: z.ZodString;
1617
814
  createdByRole: z.ZodString;
1618
815
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1625
825
  type: z.ZodLiteral<"ARCHIVE">;
1626
826
  content: z.ZodObject<{
1627
827
  reason: z.ZodString;
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">;
828
+ }, z.core.$strip>;
829
+ }, z.core.$strip>, z.ZodObject<{
830
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1669
831
  transactionId: z.ZodString;
1670
- createdByUserType: z.ZodEnum<["user", "system"]>;
832
+ createdByUserType: z.ZodEnum<{
833
+ system: "system";
834
+ user: "user";
835
+ }>;
1671
836
  createdAt: z.ZodString;
1672
837
  createdBy: z.ZodString;
1673
838
  createdByRole: z.ZodString;
1674
839
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1681
849
  type: z.ZodLiteral<"NOTIFY">;
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">;
850
+ }, z.core.$strip>, z.ZodObject<{
851
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1712
852
  transactionId: z.ZodString;
1713
- createdByUserType: z.ZodEnum<["user", "system"]>;
853
+ createdByUserType: z.ZodEnum<{
854
+ system: "system";
855
+ user: "user";
856
+ }>;
1714
857
  createdAt: z.ZodString;
1715
858
  createdBy: z.ZodString;
1716
859
  createdByRole: z.ZodString;
1717
860
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1724
870
  type: z.ZodLiteral<"REGISTER">;
1725
871
  registrationNumber: z.ZodOptional<z.ZodString>;
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">;
872
+ }, z.core.$strip>, z.ZodObject<{
873
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1758
874
  transactionId: z.ZodString;
1759
- createdByUserType: z.ZodEnum<["user", "system"]>;
875
+ createdByUserType: z.ZodEnum<{
876
+ system: "system";
877
+ user: "user";
878
+ }>;
1760
879
  createdAt: z.ZodString;
1761
880
  createdBy: z.ZodString;
1762
881
  createdByRole: z.ZodString;
1763
882
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1770
892
  type: z.ZodLiteral<"DECLARE">;
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">;
893
+ }, z.core.$strip>, z.ZodObject<{
894
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1801
895
  transactionId: z.ZodString;
1802
- createdByUserType: z.ZodEnum<["user", "system"]>;
896
+ createdByUserType: z.ZodEnum<{
897
+ system: "system";
898
+ user: "user";
899
+ }>;
1803
900
  createdAt: z.ZodString;
1804
901
  createdBy: z.ZodString;
1805
902
  createdByRole: z.ZodString;
1806
903
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1813
913
  type: z.ZodLiteral<"ASSIGN">;
1814
914
  assignedTo: z.ZodString;
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">;
915
+ }, z.core.$strip>, z.ZodObject<{
916
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1847
917
  transactionId: z.ZodString;
1848
- createdByUserType: z.ZodEnum<["user", "system"]>;
918
+ createdByUserType: z.ZodEnum<{
919
+ system: "system";
920
+ user: "user";
921
+ }>;
1849
922
  createdAt: z.ZodString;
1850
923
  createdBy: z.ZodString;
1851
924
  createdByRole: z.ZodString;
1852
925
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1859
935
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
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">;
936
+ }, z.core.$strip>, z.ZodObject<{
937
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1890
938
  transactionId: z.ZodString;
1891
- createdByUserType: z.ZodEnum<["user", "system"]>;
939
+ createdByUserType: z.ZodEnum<{
940
+ system: "system";
941
+ user: "user";
942
+ }>;
1892
943
  createdAt: z.ZodString;
1893
944
  createdBy: z.ZodString;
1894
945
  createdByRole: z.ZodString;
1895
946
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1902
956
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
1903
957
  requestId: z.ZodString;
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">;
958
+ }, z.core.$strip>, z.ZodObject<{
959
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1936
960
  transactionId: z.ZodString;
1937
- createdByUserType: z.ZodEnum<["user", "system"]>;
961
+ createdByUserType: z.ZodEnum<{
962
+ system: "system";
963
+ user: "user";
964
+ }>;
1938
965
  createdAt: z.ZodString;
1939
966
  createdBy: z.ZodString;
1940
967
  createdByRole: z.ZodString;
1941
968
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
1948
978
  type: z.ZodLiteral<"REJECT_CORRECTION">;
1949
979
  requestId: z.ZodString;
1950
980
  content: z.ZodObject<{
1951
981
  reason: z.ZodString;
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">;
982
+ }, z.core.$strip>;
983
+ }, z.core.$strip>, z.ZodObject<{
984
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1995
985
  transactionId: z.ZodString;
1996
- createdByUserType: z.ZodEnum<["user", "system"]>;
986
+ createdByUserType: z.ZodEnum<{
987
+ system: "system";
988
+ user: "user";
989
+ }>;
1997
990
  createdAt: z.ZodString;
1998
991
  createdBy: z.ZodString;
1999
992
  createdByRole: z.ZodString;
2000
993
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
2007
1003
  type: z.ZodLiteral<"UNASSIGN">;
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">;
1004
+ }, z.core.$strip>, z.ZodObject<{
1005
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
2038
1006
  transactionId: z.ZodString;
2039
- createdByUserType: z.ZodEnum<["user", "system"]>;
1007
+ createdByUserType: z.ZodEnum<{
1008
+ system: "system";
1009
+ user: "user";
1010
+ }>;
2040
1011
  createdAt: z.ZodString;
2041
1012
  createdBy: z.ZodString;
2042
1013
  createdByRole: z.ZodString;
2043
1014
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
2050
1024
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
2051
1025
  content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2052
1026
  templateId: z.ZodOptional<z.ZodString>;
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">;
1027
+ }, z.core.$strip>>>;
1028
+ }, z.core.$strip>, z.ZodObject<{
1029
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
2094
1030
  transactionId: z.ZodString;
2095
- createdByUserType: z.ZodEnum<["user", "system"]>;
1031
+ createdByUserType: z.ZodEnum<{
1032
+ system: "system";
1033
+ user: "user";
1034
+ }>;
2096
1035
  createdAt: z.ZodString;
2097
1036
  createdBy: z.ZodString;
2098
1037
  createdByRole: z.ZodString;
2099
1038
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- }, {
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">>>;
2106
1048
  type: z.ZodLiteral<"READ">;
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">;
1049
+ }, z.core.$strip>, z.ZodObject<{
1050
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
2137
1051
  transactionId: z.ZodString;
2138
- createdByUserType: z.ZodEnum<["user", "system"]>;
1052
+ createdByUserType: z.ZodEnum<{
1053
+ system: "system";
1054
+ user: "user";
1055
+ }>;
2139
1056
  createdAt: z.ZodString;
2140
1057
  createdBy: z.ZodString;
2141
1058
  createdByRole: z.ZodString;
2142
1059
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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"]>;
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
+ }>;
2150
1121
  status: z.ZodLiteral<"Rejected">;
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;
1122
+ }, z.core.$strip>]>;
1123
+ export type Action = z.infer<typeof Action>;
2177
1124
  export type CreatedAction = z.infer<typeof CreatedAction>;
2178
1125
  export type AssignedAction = z.infer<typeof AssignedAction>;
2179
1126
  export {};