@opencrvs/toolkit 1.9.3-rc.da977ad → 1.9.3-rc.e47111c

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