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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/commons/api/router.d.ts +2440 -28495
  2. package/dist/commons/conditionals/conditionals.d.ts +1 -10
  3. package/dist/commons/conditionals/validate.d.ts +4 -11
  4. package/dist/commons/events/ActionConfig.d.ts +1552 -23416
  5. package/dist/commons/events/ActionDocument.d.ts +1856 -803
  6. package/dist/commons/events/ActionInput.d.ts +1073 -277
  7. package/dist/commons/events/ActionType.d.ts +9 -86
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1238 -228
  9. package/dist/commons/events/CompositeFieldValue.d.ts +176 -27
  10. package/dist/commons/events/Conditional.d.ts +38 -26
  11. package/dist/commons/events/Constants.d.ts +1 -1
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +4169 -931
  13. package/dist/commons/events/CreatedAtLocation.d.ts +1 -1
  14. package/dist/commons/events/DeduplicationConfig.d.ts +150 -15
  15. package/dist/commons/events/Draft.d.ts +105 -70
  16. package/dist/commons/events/DynamicFieldValue.d.ts +91 -7
  17. package/dist/commons/events/EventConfig.d.ts +2120 -18663
  18. package/dist/commons/events/EventConfigInput.d.ts +1 -1
  19. package/dist/commons/events/EventDocument.d.ts +1332 -320
  20. package/dist/commons/events/EventIndex.d.ts +967 -197
  21. package/dist/commons/events/EventInput.d.ts +8 -2
  22. package/dist/commons/events/EventMetadata.d.ts +346 -106
  23. package/dist/commons/events/FieldConfig.d.ts +11774 -4259
  24. package/dist/commons/events/FieldType.d.ts +4 -20
  25. package/dist/commons/events/FieldTypeMapping.d.ts +813 -181
  26. package/dist/commons/events/FieldValue.d.ts +356 -83
  27. package/dist/commons/events/FormConfig.d.ts +721 -13140
  28. package/dist/commons/events/PageConfig.d.ts +319 -8780
  29. package/dist/commons/events/SummaryConfig.d.ts +161 -14
  30. package/dist/commons/events/TemplateConfig.d.ts +3 -3
  31. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  32. package/dist/commons/events/WorkqueueColumnConfig.d.ts +37 -74
  33. package/dist/commons/events/WorkqueueConfig.d.ts +7080 -1615
  34. package/dist/commons/events/deduplication.d.ts +3 -3
  35. package/dist/commons/events/defineConfig.d.ts +163 -25639
  36. package/dist/commons/events/event.d.ts +4 -4
  37. package/dist/commons/events/index.d.ts +0 -1
  38. package/dist/commons/events/locations.d.ts +19 -15
  39. package/dist/commons/events/scopes.d.ts +4 -5
  40. package/dist/commons/events/state/availableActions.d.ts +1 -2
  41. package/dist/commons/events/state/flags.d.ts +3 -21
  42. package/dist/commons/events/state/index.d.ts +19 -23
  43. package/dist/commons/events/state/utils.d.ts +112 -130
  44. package/dist/commons/events/test.utils.d.ts +8 -17
  45. package/dist/commons/events/transactions.d.ts +1 -1
  46. package/dist/commons/events/utils.d.ts +373 -51350
  47. package/dist/commons/notification/UserNotifications.d.ts +636 -55
  48. package/dist/conditionals/index.d.ts.map +1 -1
  49. package/dist/conditionals/index.js +5 -38
  50. package/dist/events/deduplication.d.ts +3 -3
  51. package/dist/events/index.js +1545 -1805
  52. package/dist/notification/index.d.ts.map +1 -1
  53. package/dist/notification/index.js +1412 -1430
  54. package/dist/scopes/index.d.ts +132 -167
  55. package/dist/scopes/index.d.ts.map +1 -1
  56. package/dist/scopes/index.js +94 -133
  57. package/package.json +5 -5
  58. package/dist/commons/events/Flag.d.ts +0 -70
@@ -1,445 +1,1457 @@
1
- import * as z from 'zod/v4';
1
+ import { z } from 'zod';
2
2
  export declare const EventDocument: z.ZodObject<{
3
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
4
  type: z.ZodString;
5
5
  createdAt: z.ZodString;
6
6
  updatedAt: z.ZodString;
7
- actions: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
8
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
7
+ actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8
+ id: z.ZodBranded<z.ZodString, "UUID">;
9
9
  transactionId: z.ZodString;
10
- createdByUserType: z.ZodEnum<{
11
- system: "system";
12
- user: "user";
13
- }>;
10
+ createdByUserType: z.ZodEnum<["user", "system"]>;
14
11
  createdAt: z.ZodString;
15
12
  createdBy: z.ZodString;
16
13
  createdByRole: z.ZodString;
17
14
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
19
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
20
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
21
- status: z.ZodEnum<{
22
- Rejected: "Rejected";
23
- Requested: "Requested";
24
- Accepted: "Accepted";
25
- }>;
26
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
15
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
16
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
17
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
18
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
19
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
20
+ }, {
27
21
  type: z.ZodLiteral<"CREATE">;
28
- }, z.core.$strip>, z.ZodObject<{
29
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
22
+ }>, "strip", z.ZodTypeAny, {
23
+ type: "CREATE";
24
+ id: string & z.BRAND<"UUID">;
25
+ status: "Rejected" | "Requested" | "Accepted";
26
+ transactionId: string;
27
+ createdByUserType: "system" | "user";
28
+ createdAt: string;
29
+ createdBy: string;
30
+ createdByRole: string;
31
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
32
+ createdBySignature?: string | null | undefined;
33
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
34
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
35
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
36
+ }, {
37
+ type: "CREATE";
38
+ id: string;
39
+ status: "Rejected" | "Requested" | "Accepted";
40
+ transactionId: string;
41
+ createdByUserType: "system" | "user";
42
+ createdAt: string;
43
+ createdBy: string;
44
+ createdByRole: string;
45
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
46
+ createdBySignature?: string | null | undefined;
47
+ createdAtLocation?: string | null | undefined;
48
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
49
+ originalActionId?: string | null | undefined;
50
+ }>, z.ZodObject<z.objectUtil.extendShape<{
51
+ id: z.ZodBranded<z.ZodString, "UUID">;
30
52
  transactionId: z.ZodString;
31
- createdByUserType: z.ZodEnum<{
32
- system: "system";
33
- user: "user";
34
- }>;
53
+ createdByUserType: z.ZodEnum<["user", "system"]>;
35
54
  createdAt: z.ZodString;
36
55
  createdBy: z.ZodString;
37
56
  createdByRole: z.ZodString;
38
57
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
40
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
41
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
42
- status: z.ZodEnum<{
43
- Rejected: "Rejected";
44
- Requested: "Requested";
45
- Accepted: "Accepted";
46
- }>;
47
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
58
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
59
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
60
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
61
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
62
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
63
+ }, {
64
+ type: z.ZodLiteral<"VALIDATE">;
65
+ }>, "strip", z.ZodTypeAny, {
66
+ type: "VALIDATE";
67
+ id: string & z.BRAND<"UUID">;
68
+ status: "Rejected" | "Requested" | "Accepted";
69
+ transactionId: string;
70
+ createdByUserType: "system" | "user";
71
+ createdAt: string;
72
+ createdBy: string;
73
+ createdByRole: string;
74
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
75
+ createdBySignature?: string | null | undefined;
76
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
77
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
78
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
79
+ }, {
80
+ type: "VALIDATE";
81
+ id: string;
82
+ status: "Rejected" | "Requested" | "Accepted";
83
+ transactionId: string;
84
+ createdByUserType: "system" | "user";
85
+ createdAt: string;
86
+ createdBy: string;
87
+ createdByRole: string;
88
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
89
+ createdBySignature?: string | null | undefined;
90
+ createdAtLocation?: string | null | undefined;
91
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
92
+ originalActionId?: string | null | undefined;
93
+ }>, z.ZodObject<z.objectUtil.extendShape<{
94
+ id: z.ZodBranded<z.ZodString, "UUID">;
95
+ transactionId: z.ZodString;
96
+ createdByUserType: z.ZodEnum<["user", "system"]>;
97
+ createdAt: z.ZodString;
98
+ createdBy: z.ZodString;
99
+ createdByRole: z.ZodString;
100
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
102
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
103
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
104
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
105
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
106
+ }, {
48
107
  type: z.ZodLiteral<"REJECT">;
49
108
  content: z.ZodObject<{
50
109
  reason: z.ZodString;
51
- }, z.core.$strip>;
52
- }, z.core.$strip>, z.ZodObject<{
53
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
54
- transactionId: z.ZodString;
55
- createdByUserType: z.ZodEnum<{
56
- system: "system";
57
- user: "user";
110
+ }, "strip", z.ZodTypeAny, {
111
+ reason: string;
112
+ }, {
113
+ reason: string;
58
114
  }>;
115
+ }>, "strip", z.ZodTypeAny, {
116
+ type: "REJECT";
117
+ id: string & z.BRAND<"UUID">;
118
+ status: "Rejected" | "Requested" | "Accepted";
119
+ content: {
120
+ reason: string;
121
+ };
122
+ transactionId: string;
123
+ createdByUserType: "system" | "user";
124
+ createdAt: string;
125
+ createdBy: string;
126
+ createdByRole: string;
127
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
128
+ createdBySignature?: string | null | undefined;
129
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
130
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
131
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
132
+ }, {
133
+ type: "REJECT";
134
+ id: string;
135
+ status: "Rejected" | "Requested" | "Accepted";
136
+ content: {
137
+ reason: string;
138
+ };
139
+ transactionId: string;
140
+ createdByUserType: "system" | "user";
141
+ createdAt: string;
142
+ createdBy: string;
143
+ createdByRole: string;
144
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
145
+ createdBySignature?: string | null | undefined;
146
+ createdAtLocation?: string | null | undefined;
147
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
148
+ originalActionId?: string | null | undefined;
149
+ }>, z.ZodObject<z.objectUtil.extendShape<{
150
+ id: z.ZodBranded<z.ZodString, "UUID">;
151
+ transactionId: z.ZodString;
152
+ createdByUserType: z.ZodEnum<["user", "system"]>;
59
153
  createdAt: z.ZodString;
60
154
  createdBy: z.ZodString;
61
155
  createdByRole: z.ZodString;
62
156
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
64
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
65
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
66
- status: z.ZodEnum<{
67
- Rejected: "Rejected";
68
- Requested: "Requested";
69
- Accepted: "Accepted";
70
- }>;
71
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
157
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
158
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
159
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
160
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
161
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
162
+ }, {
72
163
  type: z.ZodLiteral<"DUPLICATE_DETECTED">;
73
164
  content: z.ZodObject<{
74
165
  duplicates: z.ZodArray<z.ZodObject<{
75
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
166
+ id: z.ZodBranded<z.ZodString, "UUID">;
76
167
  trackingId: z.ZodString;
77
- }, z.core.$strip>>;
78
- }, z.core.$strip>;
79
- }, z.core.$strip>, z.ZodObject<{
80
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
81
- transactionId: z.ZodString;
82
- createdByUserType: z.ZodEnum<{
83
- system: "system";
84
- user: "user";
168
+ }, "strip", z.ZodTypeAny, {
169
+ id: string & z.BRAND<"UUID">;
170
+ trackingId: string;
171
+ }, {
172
+ id: string;
173
+ trackingId: string;
174
+ }>, "many">;
175
+ }, "strip", z.ZodTypeAny, {
176
+ duplicates: {
177
+ id: string & z.BRAND<"UUID">;
178
+ trackingId: string;
179
+ }[];
180
+ }, {
181
+ duplicates: {
182
+ id: string;
183
+ trackingId: string;
184
+ }[];
85
185
  }>;
186
+ }>, "strip", z.ZodTypeAny, {
187
+ type: "DUPLICATE_DETECTED";
188
+ id: string & z.BRAND<"UUID">;
189
+ status: "Rejected" | "Requested" | "Accepted";
190
+ content: {
191
+ duplicates: {
192
+ id: string & z.BRAND<"UUID">;
193
+ trackingId: string;
194
+ }[];
195
+ };
196
+ transactionId: string;
197
+ createdByUserType: "system" | "user";
198
+ createdAt: string;
199
+ createdBy: string;
200
+ createdByRole: string;
201
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
202
+ createdBySignature?: string | null | undefined;
203
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
204
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
205
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
206
+ }, {
207
+ type: "DUPLICATE_DETECTED";
208
+ id: string;
209
+ status: "Rejected" | "Requested" | "Accepted";
210
+ content: {
211
+ duplicates: {
212
+ id: string;
213
+ trackingId: string;
214
+ }[];
215
+ };
216
+ transactionId: string;
217
+ createdByUserType: "system" | "user";
218
+ createdAt: string;
219
+ createdBy: string;
220
+ createdByRole: string;
221
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
222
+ createdBySignature?: string | null | undefined;
223
+ createdAtLocation?: string | null | undefined;
224
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
225
+ originalActionId?: string | null | undefined;
226
+ }>, z.ZodObject<z.objectUtil.extendShape<{
227
+ id: z.ZodBranded<z.ZodString, "UUID">;
228
+ transactionId: z.ZodString;
229
+ createdByUserType: z.ZodEnum<["user", "system"]>;
86
230
  createdAt: z.ZodString;
87
231
  createdBy: z.ZodString;
88
232
  createdByRole: z.ZodString;
89
233
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
91
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
92
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
93
- status: z.ZodEnum<{
94
- Rejected: "Rejected";
95
- Requested: "Requested";
96
- Accepted: "Accepted";
97
- }>;
98
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
234
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
235
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
236
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
237
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
238
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
239
+ }, {
99
240
  type: z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">;
100
- }, z.core.$strip>, z.ZodObject<{
101
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
241
+ }>, "strip", z.ZodTypeAny, {
242
+ type: "MARK_AS_NOT_DUPLICATE";
243
+ id: string & z.BRAND<"UUID">;
244
+ status: "Rejected" | "Requested" | "Accepted";
245
+ transactionId: string;
246
+ createdByUserType: "system" | "user";
247
+ createdAt: string;
248
+ createdBy: string;
249
+ createdByRole: string;
250
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
251
+ createdBySignature?: string | null | undefined;
252
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
253
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
254
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
255
+ }, {
256
+ type: "MARK_AS_NOT_DUPLICATE";
257
+ id: string;
258
+ status: "Rejected" | "Requested" | "Accepted";
259
+ transactionId: string;
260
+ createdByUserType: "system" | "user";
261
+ createdAt: string;
262
+ createdBy: string;
263
+ createdByRole: string;
264
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
265
+ createdBySignature?: string | null | undefined;
266
+ createdAtLocation?: string | null | undefined;
267
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
268
+ originalActionId?: string | null | undefined;
269
+ }>, z.ZodObject<z.objectUtil.extendShape<{
270
+ id: z.ZodBranded<z.ZodString, "UUID">;
102
271
  transactionId: z.ZodString;
103
- createdByUserType: z.ZodEnum<{
104
- system: "system";
105
- user: "user";
106
- }>;
272
+ createdByUserType: z.ZodEnum<["user", "system"]>;
107
273
  createdAt: z.ZodString;
108
274
  createdBy: z.ZodString;
109
275
  createdByRole: z.ZodString;
110
276
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
112
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
113
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
114
- status: z.ZodEnum<{
115
- Rejected: "Rejected";
116
- Requested: "Requested";
117
- Accepted: "Accepted";
118
- }>;
119
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
277
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
278
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
279
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
280
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
281
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
282
+ }, {
120
283
  type: z.ZodLiteral<"MARK_AS_DUPLICATE">;
121
284
  content: z.ZodOptional<z.ZodObject<{
122
- duplicateOf: z.core.$ZodBranded<z.ZodUUID, "UUID">;
123
- }, z.core.$strip>>;
124
- }, z.core.$strip>, z.ZodObject<{
125
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
285
+ duplicateOf: z.ZodBranded<z.ZodString, "UUID">;
286
+ }, "strip", z.ZodTypeAny, {
287
+ duplicateOf: string & z.BRAND<"UUID">;
288
+ }, {
289
+ duplicateOf: string;
290
+ }>>;
291
+ }>, "strip", z.ZodTypeAny, {
292
+ type: "MARK_AS_DUPLICATE";
293
+ id: string & z.BRAND<"UUID">;
294
+ status: "Rejected" | "Requested" | "Accepted";
295
+ transactionId: string;
296
+ createdByUserType: "system" | "user";
297
+ createdAt: string;
298
+ createdBy: string;
299
+ createdByRole: string;
300
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
301
+ content?: {
302
+ duplicateOf: string & z.BRAND<"UUID">;
303
+ } | undefined;
304
+ createdBySignature?: string | null | undefined;
305
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
306
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
307
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
308
+ }, {
309
+ type: "MARK_AS_DUPLICATE";
310
+ id: string;
311
+ status: "Rejected" | "Requested" | "Accepted";
312
+ transactionId: string;
313
+ createdByUserType: "system" | "user";
314
+ createdAt: string;
315
+ createdBy: string;
316
+ createdByRole: string;
317
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
318
+ content?: {
319
+ duplicateOf: string;
320
+ } | undefined;
321
+ createdBySignature?: string | null | undefined;
322
+ createdAtLocation?: string | null | undefined;
323
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
324
+ originalActionId?: string | null | undefined;
325
+ }>, z.ZodObject<z.objectUtil.extendShape<{
326
+ id: z.ZodBranded<z.ZodString, "UUID">;
126
327
  transactionId: z.ZodString;
127
- createdByUserType: z.ZodEnum<{
128
- system: "system";
129
- user: "user";
130
- }>;
328
+ createdByUserType: z.ZodEnum<["user", "system"]>;
131
329
  createdAt: z.ZodString;
132
330
  createdBy: z.ZodString;
133
331
  createdByRole: z.ZodString;
134
332
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
136
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
137
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
138
- status: z.ZodEnum<{
139
- Rejected: "Rejected";
140
- Requested: "Requested";
141
- Accepted: "Accepted";
142
- }>;
143
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
333
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
334
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
335
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
336
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
337
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
338
+ }, {
144
339
  type: z.ZodLiteral<"ARCHIVE">;
145
340
  content: z.ZodObject<{
146
341
  reason: z.ZodString;
147
- }, z.core.$strip>;
148
- }, z.core.$strip>, z.ZodObject<{
149
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
150
- transactionId: z.ZodString;
151
- createdByUserType: z.ZodEnum<{
152
- system: "system";
153
- user: "user";
342
+ }, "strip", z.ZodTypeAny, {
343
+ reason: string;
344
+ }, {
345
+ reason: string;
154
346
  }>;
347
+ }>, "strip", z.ZodTypeAny, {
348
+ type: "ARCHIVE";
349
+ id: string & z.BRAND<"UUID">;
350
+ status: "Rejected" | "Requested" | "Accepted";
351
+ content: {
352
+ reason: string;
353
+ };
354
+ transactionId: string;
355
+ createdByUserType: "system" | "user";
356
+ createdAt: string;
357
+ createdBy: string;
358
+ createdByRole: string;
359
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
360
+ createdBySignature?: string | null | undefined;
361
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
362
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
363
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
364
+ }, {
365
+ type: "ARCHIVE";
366
+ id: string;
367
+ status: "Rejected" | "Requested" | "Accepted";
368
+ content: {
369
+ reason: string;
370
+ };
371
+ transactionId: string;
372
+ createdByUserType: "system" | "user";
373
+ createdAt: string;
374
+ createdBy: string;
375
+ createdByRole: string;
376
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
377
+ createdBySignature?: string | null | undefined;
378
+ createdAtLocation?: string | null | undefined;
379
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
380
+ originalActionId?: string | null | undefined;
381
+ }>, z.ZodObject<z.objectUtil.extendShape<{
382
+ id: z.ZodBranded<z.ZodString, "UUID">;
383
+ transactionId: z.ZodString;
384
+ createdByUserType: z.ZodEnum<["user", "system"]>;
155
385
  createdAt: z.ZodString;
156
386
  createdBy: z.ZodString;
157
387
  createdByRole: z.ZodString;
158
388
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
160
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
161
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
162
- status: z.ZodEnum<{
163
- Rejected: "Rejected";
164
- Requested: "Requested";
165
- Accepted: "Accepted";
166
- }>;
167
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
389
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
390
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
391
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
392
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
393
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
394
+ }, {
168
395
  type: z.ZodLiteral<"NOTIFY">;
169
- }, z.core.$strip>, z.ZodObject<{
170
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
396
+ }>, "strip", z.ZodTypeAny, {
397
+ type: "NOTIFY";
398
+ id: string & z.BRAND<"UUID">;
399
+ status: "Rejected" | "Requested" | "Accepted";
400
+ transactionId: string;
401
+ createdByUserType: "system" | "user";
402
+ createdAt: string;
403
+ createdBy: string;
404
+ createdByRole: string;
405
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
406
+ createdBySignature?: string | null | undefined;
407
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
408
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
409
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
410
+ }, {
411
+ type: "NOTIFY";
412
+ id: string;
413
+ status: "Rejected" | "Requested" | "Accepted";
414
+ transactionId: string;
415
+ createdByUserType: "system" | "user";
416
+ createdAt: string;
417
+ createdBy: string;
418
+ createdByRole: string;
419
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
420
+ createdBySignature?: string | null | undefined;
421
+ createdAtLocation?: string | null | undefined;
422
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
423
+ originalActionId?: string | null | undefined;
424
+ }>, z.ZodObject<z.objectUtil.extendShape<{
425
+ id: z.ZodBranded<z.ZodString, "UUID">;
171
426
  transactionId: z.ZodString;
172
- createdByUserType: z.ZodEnum<{
173
- system: "system";
174
- user: "user";
175
- }>;
427
+ createdByUserType: z.ZodEnum<["user", "system"]>;
176
428
  createdAt: z.ZodString;
177
429
  createdBy: z.ZodString;
178
430
  createdByRole: z.ZodString;
179
431
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
181
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
182
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
183
- status: z.ZodEnum<{
184
- Rejected: "Rejected";
185
- Requested: "Requested";
186
- Accepted: "Accepted";
187
- }>;
188
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
432
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
433
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
434
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
435
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
436
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
437
+ }, {
189
438
  type: z.ZodLiteral<"REGISTER">;
190
439
  registrationNumber: z.ZodOptional<z.ZodString>;
191
- }, z.core.$strip>, z.ZodObject<{
192
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
440
+ }>, "strip", z.ZodTypeAny, {
441
+ type: "REGISTER";
442
+ id: string & z.BRAND<"UUID">;
443
+ status: "Rejected" | "Requested" | "Accepted";
444
+ transactionId: string;
445
+ createdByUserType: "system" | "user";
446
+ createdAt: string;
447
+ createdBy: string;
448
+ createdByRole: string;
449
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
450
+ createdBySignature?: string | null | undefined;
451
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
452
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
453
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
454
+ registrationNumber?: string | undefined;
455
+ }, {
456
+ type: "REGISTER";
457
+ id: string;
458
+ status: "Rejected" | "Requested" | "Accepted";
459
+ transactionId: string;
460
+ createdByUserType: "system" | "user";
461
+ createdAt: string;
462
+ createdBy: string;
463
+ createdByRole: string;
464
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
465
+ createdBySignature?: string | null | undefined;
466
+ createdAtLocation?: string | null | undefined;
467
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
468
+ originalActionId?: string | null | undefined;
469
+ registrationNumber?: string | undefined;
470
+ }>, z.ZodObject<z.objectUtil.extendShape<{
471
+ id: z.ZodBranded<z.ZodString, "UUID">;
193
472
  transactionId: z.ZodString;
194
- createdByUserType: z.ZodEnum<{
195
- system: "system";
196
- user: "user";
197
- }>;
473
+ createdByUserType: z.ZodEnum<["user", "system"]>;
198
474
  createdAt: z.ZodString;
199
475
  createdBy: z.ZodString;
200
476
  createdByRole: z.ZodString;
201
477
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
202
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
203
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
204
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
205
- status: z.ZodEnum<{
206
- Rejected: "Rejected";
207
- Requested: "Requested";
208
- Accepted: "Accepted";
209
- }>;
210
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
478
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
479
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
480
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
481
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
482
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
483
+ }, {
211
484
  type: z.ZodLiteral<"DECLARE">;
212
- }, z.core.$strip>, z.ZodObject<{
213
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
485
+ }>, "strip", z.ZodTypeAny, {
486
+ type: "DECLARE";
487
+ id: string & z.BRAND<"UUID">;
488
+ status: "Rejected" | "Requested" | "Accepted";
489
+ transactionId: string;
490
+ createdByUserType: "system" | "user";
491
+ createdAt: string;
492
+ createdBy: string;
493
+ createdByRole: string;
494
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
495
+ createdBySignature?: string | null | undefined;
496
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
497
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
498
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
499
+ }, {
500
+ type: "DECLARE";
501
+ id: string;
502
+ status: "Rejected" | "Requested" | "Accepted";
503
+ transactionId: string;
504
+ createdByUserType: "system" | "user";
505
+ createdAt: string;
506
+ createdBy: string;
507
+ createdByRole: string;
508
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
509
+ createdBySignature?: string | null | undefined;
510
+ createdAtLocation?: string | null | undefined;
511
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
512
+ originalActionId?: string | null | undefined;
513
+ }>, z.ZodObject<z.objectUtil.extendShape<{
514
+ id: z.ZodBranded<z.ZodString, "UUID">;
214
515
  transactionId: z.ZodString;
215
- createdByUserType: z.ZodEnum<{
216
- system: "system";
217
- user: "user";
218
- }>;
516
+ createdByUserType: z.ZodEnum<["user", "system"]>;
219
517
  createdAt: z.ZodString;
220
518
  createdBy: z.ZodString;
221
519
  createdByRole: z.ZodString;
222
520
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
224
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
225
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
226
- status: z.ZodEnum<{
227
- Rejected: "Rejected";
228
- Requested: "Requested";
229
- Accepted: "Accepted";
230
- }>;
231
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
521
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
522
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
523
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
524
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
525
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
526
+ }, {
232
527
  type: z.ZodLiteral<"ASSIGN">;
233
528
  assignedTo: z.ZodString;
234
- }, z.core.$strip>, z.ZodObject<{
235
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
529
+ }>, "strip", z.ZodTypeAny, {
530
+ type: "ASSIGN";
531
+ id: string & z.BRAND<"UUID">;
532
+ status: "Rejected" | "Requested" | "Accepted";
533
+ transactionId: string;
534
+ createdByUserType: "system" | "user";
535
+ createdAt: string;
536
+ createdBy: string;
537
+ createdByRole: string;
538
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
539
+ assignedTo: string;
540
+ createdBySignature?: string | null | undefined;
541
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
542
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
543
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
544
+ }, {
545
+ type: "ASSIGN";
546
+ id: string;
547
+ status: "Rejected" | "Requested" | "Accepted";
548
+ transactionId: string;
549
+ createdByUserType: "system" | "user";
550
+ createdAt: string;
551
+ createdBy: string;
552
+ createdByRole: string;
553
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
554
+ assignedTo: string;
555
+ createdBySignature?: string | null | undefined;
556
+ createdAtLocation?: string | null | undefined;
557
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
558
+ originalActionId?: string | null | undefined;
559
+ }>, z.ZodObject<z.objectUtil.extendShape<{
560
+ id: z.ZodBranded<z.ZodString, "UUID">;
236
561
  transactionId: z.ZodString;
237
- createdByUserType: z.ZodEnum<{
238
- system: "system";
239
- user: "user";
240
- }>;
562
+ createdByUserType: z.ZodEnum<["user", "system"]>;
241
563
  createdAt: z.ZodString;
242
564
  createdBy: z.ZodString;
243
565
  createdByRole: z.ZodString;
244
566
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
246
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
247
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
248
- status: z.ZodEnum<{
249
- Rejected: "Rejected";
250
- Requested: "Requested";
251
- Accepted: "Accepted";
252
- }>;
253
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
567
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
568
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
569
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
570
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
571
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
572
+ }, {
254
573
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
255
- }, z.core.$strip>, z.ZodObject<{
256
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
574
+ }>, "strip", z.ZodTypeAny, {
575
+ type: "REQUEST_CORRECTION";
576
+ id: string & z.BRAND<"UUID">;
577
+ status: "Rejected" | "Requested" | "Accepted";
578
+ transactionId: string;
579
+ createdByUserType: "system" | "user";
580
+ createdAt: string;
581
+ createdBy: string;
582
+ createdByRole: string;
583
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
584
+ createdBySignature?: string | null | undefined;
585
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
586
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
587
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
588
+ }, {
589
+ type: "REQUEST_CORRECTION";
590
+ id: string;
591
+ status: "Rejected" | "Requested" | "Accepted";
592
+ transactionId: string;
593
+ createdByUserType: "system" | "user";
594
+ createdAt: string;
595
+ createdBy: string;
596
+ createdByRole: string;
597
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
598
+ createdBySignature?: string | null | undefined;
599
+ createdAtLocation?: string | null | undefined;
600
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
601
+ originalActionId?: string | null | undefined;
602
+ }>, z.ZodObject<z.objectUtil.extendShape<{
603
+ id: z.ZodBranded<z.ZodString, "UUID">;
257
604
  transactionId: z.ZodString;
258
- createdByUserType: z.ZodEnum<{
259
- system: "system";
260
- user: "user";
261
- }>;
605
+ createdByUserType: z.ZodEnum<["user", "system"]>;
262
606
  createdAt: z.ZodString;
263
607
  createdBy: z.ZodString;
264
608
  createdByRole: z.ZodString;
265
609
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
267
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
268
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
269
- status: z.ZodEnum<{
270
- Rejected: "Rejected";
271
- Requested: "Requested";
272
- Accepted: "Accepted";
273
- }>;
274
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
610
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
611
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
612
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
613
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
614
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
615
+ }, {
275
616
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
276
617
  requestId: z.ZodString;
277
- }, z.core.$strip>, z.ZodObject<{
278
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
618
+ }>, "strip", z.ZodTypeAny, {
619
+ type: "APPROVE_CORRECTION";
620
+ id: string & z.BRAND<"UUID">;
621
+ status: "Rejected" | "Requested" | "Accepted";
622
+ transactionId: string;
623
+ createdByUserType: "system" | "user";
624
+ createdAt: string;
625
+ createdBy: string;
626
+ createdByRole: string;
627
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
628
+ requestId: string;
629
+ createdBySignature?: string | null | undefined;
630
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
631
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
632
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
633
+ }, {
634
+ type: "APPROVE_CORRECTION";
635
+ id: string;
636
+ status: "Rejected" | "Requested" | "Accepted";
637
+ transactionId: string;
638
+ createdByUserType: "system" | "user";
639
+ createdAt: string;
640
+ createdBy: string;
641
+ createdByRole: string;
642
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
643
+ requestId: string;
644
+ createdBySignature?: string | null | undefined;
645
+ createdAtLocation?: string | null | undefined;
646
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
647
+ originalActionId?: string | null | undefined;
648
+ }>, z.ZodObject<z.objectUtil.extendShape<{
649
+ id: z.ZodBranded<z.ZodString, "UUID">;
279
650
  transactionId: z.ZodString;
280
- createdByUserType: z.ZodEnum<{
281
- system: "system";
282
- user: "user";
283
- }>;
651
+ createdByUserType: z.ZodEnum<["user", "system"]>;
284
652
  createdAt: z.ZodString;
285
653
  createdBy: z.ZodString;
286
654
  createdByRole: z.ZodString;
287
655
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
289
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
290
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
291
- status: z.ZodEnum<{
292
- Rejected: "Rejected";
293
- Requested: "Requested";
294
- Accepted: "Accepted";
295
- }>;
296
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
656
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
657
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
658
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
659
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
660
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
661
+ }, {
297
662
  type: z.ZodLiteral<"REJECT_CORRECTION">;
298
663
  requestId: z.ZodString;
299
664
  content: z.ZodObject<{
300
665
  reason: z.ZodString;
301
- }, z.core.$strip>;
302
- }, z.core.$strip>, z.ZodObject<{
303
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
304
- transactionId: z.ZodString;
305
- createdByUserType: z.ZodEnum<{
306
- system: "system";
307
- user: "user";
666
+ }, "strip", z.ZodTypeAny, {
667
+ reason: string;
668
+ }, {
669
+ reason: string;
308
670
  }>;
671
+ }>, "strip", z.ZodTypeAny, {
672
+ type: "REJECT_CORRECTION";
673
+ id: string & z.BRAND<"UUID">;
674
+ status: "Rejected" | "Requested" | "Accepted";
675
+ content: {
676
+ reason: string;
677
+ };
678
+ transactionId: string;
679
+ createdByUserType: "system" | "user";
680
+ createdAt: string;
681
+ createdBy: string;
682
+ createdByRole: string;
683
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
684
+ requestId: string;
685
+ createdBySignature?: string | null | undefined;
686
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
687
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
688
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
689
+ }, {
690
+ type: "REJECT_CORRECTION";
691
+ id: string;
692
+ status: "Rejected" | "Requested" | "Accepted";
693
+ content: {
694
+ reason: string;
695
+ };
696
+ transactionId: string;
697
+ createdByUserType: "system" | "user";
698
+ createdAt: string;
699
+ createdBy: string;
700
+ createdByRole: string;
701
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
702
+ requestId: string;
703
+ createdBySignature?: string | null | undefined;
704
+ createdAtLocation?: string | null | undefined;
705
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
706
+ originalActionId?: string | null | undefined;
707
+ }>, z.ZodObject<z.objectUtil.extendShape<{
708
+ id: z.ZodBranded<z.ZodString, "UUID">;
709
+ transactionId: z.ZodString;
710
+ createdByUserType: z.ZodEnum<["user", "system"]>;
309
711
  createdAt: z.ZodString;
310
712
  createdBy: z.ZodString;
311
713
  createdByRole: z.ZodString;
312
714
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
314
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
315
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
316
- status: z.ZodEnum<{
317
- Rejected: "Rejected";
318
- Requested: "Requested";
319
- Accepted: "Accepted";
320
- }>;
321
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
715
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
716
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
717
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
718
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
719
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
720
+ }, {
322
721
  type: z.ZodLiteral<"UNASSIGN">;
323
- }, z.core.$strip>, z.ZodObject<{
324
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
722
+ }>, "strip", z.ZodTypeAny, {
723
+ type: "UNASSIGN";
724
+ id: string & z.BRAND<"UUID">;
725
+ status: "Rejected" | "Requested" | "Accepted";
726
+ transactionId: string;
727
+ createdByUserType: "system" | "user";
728
+ createdAt: string;
729
+ createdBy: string;
730
+ createdByRole: string;
731
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
732
+ createdBySignature?: string | null | undefined;
733
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
734
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
735
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
736
+ }, {
737
+ type: "UNASSIGN";
738
+ id: string;
739
+ status: "Rejected" | "Requested" | "Accepted";
740
+ transactionId: string;
741
+ createdByUserType: "system" | "user";
742
+ createdAt: string;
743
+ createdBy: string;
744
+ createdByRole: string;
745
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
746
+ createdBySignature?: string | null | undefined;
747
+ createdAtLocation?: string | null | undefined;
748
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
749
+ originalActionId?: string | null | undefined;
750
+ }>, z.ZodObject<z.objectUtil.extendShape<{
751
+ id: z.ZodBranded<z.ZodString, "UUID">;
325
752
  transactionId: z.ZodString;
326
- createdByUserType: z.ZodEnum<{
327
- system: "system";
328
- user: "user";
329
- }>;
753
+ createdByUserType: z.ZodEnum<["user", "system"]>;
330
754
  createdAt: z.ZodString;
331
755
  createdBy: z.ZodString;
332
756
  createdByRole: z.ZodString;
333
757
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
334
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
335
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
336
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
337
- status: z.ZodEnum<{
338
- Rejected: "Rejected";
339
- Requested: "Requested";
340
- Accepted: "Accepted";
341
- }>;
342
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
758
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
759
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
760
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
761
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
762
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
763
+ }, {
343
764
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
344
765
  content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
345
766
  templateId: z.ZodOptional<z.ZodString>;
346
- }, z.core.$strip>>>;
347
- }, z.core.$strip>, z.ZodObject<{
348
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
767
+ }, "strip", z.ZodTypeAny, {
768
+ templateId?: string | undefined;
769
+ }, {
770
+ templateId?: string | undefined;
771
+ }>>>;
772
+ }>, "strip", z.ZodTypeAny, {
773
+ type: "PRINT_CERTIFICATE";
774
+ id: string & z.BRAND<"UUID">;
775
+ status: "Rejected" | "Requested" | "Accepted";
776
+ transactionId: string;
777
+ createdByUserType: "system" | "user";
778
+ createdAt: string;
779
+ createdBy: string;
780
+ createdByRole: string;
781
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
782
+ content?: {
783
+ templateId?: string | undefined;
784
+ } | null | undefined;
785
+ createdBySignature?: string | null | undefined;
786
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
787
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
788
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
789
+ }, {
790
+ type: "PRINT_CERTIFICATE";
791
+ id: string;
792
+ status: "Rejected" | "Requested" | "Accepted";
793
+ transactionId: string;
794
+ createdByUserType: "system" | "user";
795
+ createdAt: string;
796
+ createdBy: string;
797
+ createdByRole: string;
798
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
799
+ content?: {
800
+ templateId?: string | undefined;
801
+ } | null | undefined;
802
+ createdBySignature?: string | null | undefined;
803
+ createdAtLocation?: string | null | undefined;
804
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
805
+ originalActionId?: string | null | undefined;
806
+ }>, z.ZodObject<z.objectUtil.extendShape<{
807
+ id: z.ZodBranded<z.ZodString, "UUID">;
349
808
  transactionId: z.ZodString;
350
- createdByUserType: z.ZodEnum<{
351
- system: "system";
352
- user: "user";
353
- }>;
809
+ createdByUserType: z.ZodEnum<["user", "system"]>;
354
810
  createdAt: z.ZodString;
355
811
  createdBy: z.ZodString;
356
812
  createdByRole: z.ZodString;
357
813
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
358
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
359
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
360
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
361
- status: z.ZodEnum<{
362
- Rejected: "Rejected";
363
- Requested: "Requested";
364
- Accepted: "Accepted";
365
- }>;
366
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
814
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
815
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
816
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
817
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
818
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
819
+ }, {
367
820
  type: z.ZodLiteral<"READ">;
368
- }, z.core.$strip>, z.ZodObject<{
369
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
821
+ }>, "strip", z.ZodTypeAny, {
822
+ type: "READ";
823
+ id: string & z.BRAND<"UUID">;
824
+ status: "Rejected" | "Requested" | "Accepted";
825
+ transactionId: string;
826
+ createdByUserType: "system" | "user";
827
+ createdAt: string;
828
+ createdBy: string;
829
+ createdByRole: string;
830
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
831
+ createdBySignature?: string | null | undefined;
832
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
833
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
834
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
835
+ }, {
836
+ type: "READ";
837
+ id: string;
838
+ status: "Rejected" | "Requested" | "Accepted";
839
+ transactionId: string;
840
+ createdByUserType: "system" | "user";
841
+ createdAt: string;
842
+ createdBy: string;
843
+ createdByRole: string;
844
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
845
+ createdBySignature?: string | null | undefined;
846
+ createdAtLocation?: string | null | undefined;
847
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
848
+ originalActionId?: string | null | undefined;
849
+ }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
850
+ id: z.ZodBranded<z.ZodString, "UUID">;
370
851
  transactionId: z.ZodString;
371
- createdByUserType: z.ZodEnum<{
372
- system: "system";
373
- user: "user";
374
- }>;
852
+ createdByUserType: z.ZodEnum<["user", "system"]>;
375
853
  createdAt: z.ZodString;
376
854
  createdBy: z.ZodString;
377
855
  createdByRole: z.ZodString;
378
856
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
379
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
380
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
381
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
382
- status: z.ZodEnum<{
383
- Rejected: "Rejected";
384
- Requested: "Requested";
385
- Accepted: "Accepted";
386
- }>;
387
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
388
- type: z.ZodLiteral<"EDIT">;
389
- content: z.ZodObject<{
390
- comment: z.ZodOptional<z.ZodString>;
391
- }, z.core.$strip>;
392
- }, z.core.$strip>, z.ZodObject<{
393
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
394
- transactionId: z.ZodString;
395
- createdByUserType: z.ZodEnum<{
396
- system: "system";
397
- user: "user";
398
- }>;
399
- createdAt: z.ZodString;
400
- createdBy: z.ZodString;
401
- createdByRole: z.ZodString;
402
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
403
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
404
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
405
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
406
- status: z.ZodEnum<{
407
- Rejected: "Rejected";
408
- Requested: "Requested";
409
- Accepted: "Accepted";
410
- }>;
411
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
412
- type: z.ZodLiteral<"CUSTOM">;
413
- customActionType: z.ZodString;
414
- }, z.core.$strip>], "type">, z.ZodObject<{
415
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
416
- transactionId: z.ZodString;
417
- createdByUserType: z.ZodEnum<{
418
- system: "system";
419
- user: "user";
420
- }>;
421
- createdAt: z.ZodString;
422
- createdBy: z.ZodString;
423
- createdByRole: z.ZodString;
424
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
425
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
426
- originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
427
- type: z.ZodEnum<{
428
- NOTIFY: "NOTIFY";
429
- DECLARE: "DECLARE";
430
- REGISTER: "REGISTER";
431
- EDIT: "EDIT";
432
- REJECT: "REJECT";
433
- ARCHIVE: "ARCHIVE";
434
- PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
435
- REQUEST_CORRECTION: "REQUEST_CORRECTION";
436
- REJECT_CORRECTION: "REJECT_CORRECTION";
437
- APPROVE_CORRECTION: "APPROVE_CORRECTION";
438
- CUSTOM: "CUSTOM";
439
- }>;
857
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
858
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
859
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
860
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
861
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
862
+ }, "declaration" | "annotation">, {
863
+ type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "APPROVE_CORRECTION", "REJECT_CORRECTION"]>;
440
864
  status: z.ZodLiteral<"Rejected">;
441
- }, z.core.$strip>]>>;
865
+ }>, "strip", z.ZodTypeAny, {
866
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
867
+ id: string & z.BRAND<"UUID">;
868
+ status: "Rejected";
869
+ transactionId: string;
870
+ createdByUserType: "system" | "user";
871
+ createdAt: string;
872
+ createdBy: string;
873
+ createdByRole: string;
874
+ createdBySignature?: string | null | undefined;
875
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
876
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
877
+ }, {
878
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
879
+ id: string;
880
+ status: "Rejected";
881
+ transactionId: string;
882
+ createdByUserType: "system" | "user";
883
+ createdAt: string;
884
+ createdBy: string;
885
+ createdByRole: string;
886
+ createdBySignature?: string | null | undefined;
887
+ createdAtLocation?: string | null | undefined;
888
+ originalActionId?: string | null | undefined;
889
+ }>]>, "many">;
442
890
  trackingId: z.ZodString;
443
- }, z.core.$strip>;
891
+ }, "strip", z.ZodTypeAny, {
892
+ type: string;
893
+ id: string & z.BRAND<"UUID">;
894
+ createdAt: string;
895
+ trackingId: string;
896
+ updatedAt: string;
897
+ actions: ({
898
+ type: "ASSIGN";
899
+ id: string & z.BRAND<"UUID">;
900
+ status: "Rejected" | "Requested" | "Accepted";
901
+ transactionId: string;
902
+ createdByUserType: "system" | "user";
903
+ createdAt: string;
904
+ createdBy: string;
905
+ createdByRole: string;
906
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
907
+ assignedTo: string;
908
+ createdBySignature?: string | null | undefined;
909
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
910
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
911
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
912
+ } | {
913
+ type: "UNASSIGN";
914
+ id: string & z.BRAND<"UUID">;
915
+ status: "Rejected" | "Requested" | "Accepted";
916
+ transactionId: string;
917
+ createdByUserType: "system" | "user";
918
+ createdAt: string;
919
+ createdBy: string;
920
+ createdByRole: string;
921
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
922
+ createdBySignature?: string | null | undefined;
923
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
924
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
925
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
926
+ } | {
927
+ type: "REGISTER";
928
+ id: string & z.BRAND<"UUID">;
929
+ status: "Rejected" | "Requested" | "Accepted";
930
+ transactionId: string;
931
+ createdByUserType: "system" | "user";
932
+ createdAt: string;
933
+ createdBy: string;
934
+ createdByRole: string;
935
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
936
+ createdBySignature?: string | null | undefined;
937
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
938
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
939
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
940
+ registrationNumber?: string | undefined;
941
+ } | {
942
+ type: "DECLARE";
943
+ id: string & z.BRAND<"UUID">;
944
+ status: "Rejected" | "Requested" | "Accepted";
945
+ transactionId: string;
946
+ createdByUserType: "system" | "user";
947
+ createdAt: string;
948
+ createdBy: string;
949
+ createdByRole: string;
950
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
951
+ createdBySignature?: string | null | undefined;
952
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
953
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
954
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
955
+ } | {
956
+ type: "VALIDATE";
957
+ id: string & z.BRAND<"UUID">;
958
+ status: "Rejected" | "Requested" | "Accepted";
959
+ transactionId: string;
960
+ createdByUserType: "system" | "user";
961
+ createdAt: string;
962
+ createdBy: string;
963
+ createdByRole: string;
964
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
965
+ createdBySignature?: string | null | undefined;
966
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
967
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
968
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
969
+ } | {
970
+ type: "REJECT";
971
+ id: string & z.BRAND<"UUID">;
972
+ status: "Rejected" | "Requested" | "Accepted";
973
+ content: {
974
+ reason: string;
975
+ };
976
+ transactionId: string;
977
+ createdByUserType: "system" | "user";
978
+ createdAt: string;
979
+ createdBy: string;
980
+ createdByRole: string;
981
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
982
+ createdBySignature?: string | null | undefined;
983
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
984
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
985
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
986
+ } | {
987
+ type: "DUPLICATE_DETECTED";
988
+ id: string & z.BRAND<"UUID">;
989
+ status: "Rejected" | "Requested" | "Accepted";
990
+ content: {
991
+ duplicates: {
992
+ id: string & z.BRAND<"UUID">;
993
+ trackingId: string;
994
+ }[];
995
+ };
996
+ transactionId: string;
997
+ createdByUserType: "system" | "user";
998
+ createdAt: string;
999
+ createdBy: string;
1000
+ createdByRole: string;
1001
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1002
+ createdBySignature?: string | null | undefined;
1003
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1004
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1005
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1006
+ } | {
1007
+ type: "MARK_AS_NOT_DUPLICATE";
1008
+ id: string & z.BRAND<"UUID">;
1009
+ status: "Rejected" | "Requested" | "Accepted";
1010
+ transactionId: string;
1011
+ createdByUserType: "system" | "user";
1012
+ createdAt: string;
1013
+ createdBy: string;
1014
+ createdByRole: string;
1015
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1016
+ createdBySignature?: string | null | undefined;
1017
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1018
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1019
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1020
+ } | {
1021
+ type: "MARK_AS_DUPLICATE";
1022
+ id: string & z.BRAND<"UUID">;
1023
+ status: "Rejected" | "Requested" | "Accepted";
1024
+ transactionId: string;
1025
+ createdByUserType: "system" | "user";
1026
+ createdAt: string;
1027
+ createdBy: string;
1028
+ createdByRole: string;
1029
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1030
+ content?: {
1031
+ duplicateOf: string & z.BRAND<"UUID">;
1032
+ } | undefined;
1033
+ createdBySignature?: string | null | undefined;
1034
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1035
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1036
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1037
+ } | {
1038
+ type: "ARCHIVE";
1039
+ id: string & z.BRAND<"UUID">;
1040
+ status: "Rejected" | "Requested" | "Accepted";
1041
+ content: {
1042
+ reason: string;
1043
+ };
1044
+ transactionId: string;
1045
+ createdByUserType: "system" | "user";
1046
+ createdAt: string;
1047
+ createdBy: string;
1048
+ createdByRole: string;
1049
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1050
+ createdBySignature?: string | null | undefined;
1051
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1052
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1053
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1054
+ } | {
1055
+ type: "CREATE";
1056
+ id: string & z.BRAND<"UUID">;
1057
+ status: "Rejected" | "Requested" | "Accepted";
1058
+ transactionId: string;
1059
+ createdByUserType: "system" | "user";
1060
+ createdAt: string;
1061
+ createdBy: string;
1062
+ createdByRole: string;
1063
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1064
+ createdBySignature?: string | null | undefined;
1065
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1066
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1067
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1068
+ } | {
1069
+ type: "NOTIFY";
1070
+ id: string & z.BRAND<"UUID">;
1071
+ status: "Rejected" | "Requested" | "Accepted";
1072
+ transactionId: string;
1073
+ createdByUserType: "system" | "user";
1074
+ createdAt: string;
1075
+ createdBy: string;
1076
+ createdByRole: string;
1077
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1078
+ createdBySignature?: string | null | undefined;
1079
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1080
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1081
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1082
+ } | {
1083
+ type: "PRINT_CERTIFICATE";
1084
+ id: string & z.BRAND<"UUID">;
1085
+ status: "Rejected" | "Requested" | "Accepted";
1086
+ transactionId: string;
1087
+ createdByUserType: "system" | "user";
1088
+ createdAt: string;
1089
+ createdBy: string;
1090
+ createdByRole: string;
1091
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1092
+ content?: {
1093
+ templateId?: string | undefined;
1094
+ } | null | undefined;
1095
+ createdBySignature?: string | null | undefined;
1096
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1097
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1098
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1099
+ } | {
1100
+ type: "REQUEST_CORRECTION";
1101
+ id: string & z.BRAND<"UUID">;
1102
+ status: "Rejected" | "Requested" | "Accepted";
1103
+ transactionId: string;
1104
+ createdByUserType: "system" | "user";
1105
+ createdAt: string;
1106
+ createdBy: string;
1107
+ createdByRole: string;
1108
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1109
+ createdBySignature?: string | null | undefined;
1110
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1111
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1112
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1113
+ } | {
1114
+ type: "APPROVE_CORRECTION";
1115
+ id: string & z.BRAND<"UUID">;
1116
+ status: "Rejected" | "Requested" | "Accepted";
1117
+ transactionId: string;
1118
+ createdByUserType: "system" | "user";
1119
+ createdAt: string;
1120
+ createdBy: string;
1121
+ createdByRole: string;
1122
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1123
+ requestId: string;
1124
+ createdBySignature?: string | null | undefined;
1125
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1126
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1127
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1128
+ } | {
1129
+ type: "REJECT_CORRECTION";
1130
+ id: string & z.BRAND<"UUID">;
1131
+ status: "Rejected" | "Requested" | "Accepted";
1132
+ content: {
1133
+ reason: string;
1134
+ };
1135
+ transactionId: string;
1136
+ createdByUserType: "system" | "user";
1137
+ createdAt: string;
1138
+ createdBy: string;
1139
+ createdByRole: string;
1140
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1141
+ requestId: string;
1142
+ createdBySignature?: string | null | undefined;
1143
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1144
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1145
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1146
+ } | {
1147
+ type: "READ";
1148
+ id: string & z.BRAND<"UUID">;
1149
+ status: "Rejected" | "Requested" | "Accepted";
1150
+ transactionId: string;
1151
+ createdByUserType: "system" | "user";
1152
+ createdAt: string;
1153
+ createdBy: string;
1154
+ createdByRole: string;
1155
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1156
+ createdBySignature?: string | null | undefined;
1157
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1158
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1159
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1160
+ } | {
1161
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
1162
+ id: string & z.BRAND<"UUID">;
1163
+ status: "Rejected";
1164
+ transactionId: string;
1165
+ createdByUserType: "system" | "user";
1166
+ createdAt: string;
1167
+ createdBy: string;
1168
+ createdByRole: string;
1169
+ createdBySignature?: string | null | undefined;
1170
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1171
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1172
+ })[];
1173
+ }, {
1174
+ type: string;
1175
+ id: string;
1176
+ createdAt: string;
1177
+ trackingId: string;
1178
+ updatedAt: string;
1179
+ actions: ({
1180
+ type: "ASSIGN";
1181
+ id: string;
1182
+ status: "Rejected" | "Requested" | "Accepted";
1183
+ transactionId: string;
1184
+ createdByUserType: "system" | "user";
1185
+ createdAt: string;
1186
+ createdBy: string;
1187
+ createdByRole: string;
1188
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1189
+ assignedTo: string;
1190
+ createdBySignature?: string | null | undefined;
1191
+ createdAtLocation?: string | null | undefined;
1192
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1193
+ originalActionId?: string | null | undefined;
1194
+ } | {
1195
+ type: "UNASSIGN";
1196
+ id: string;
1197
+ status: "Rejected" | "Requested" | "Accepted";
1198
+ transactionId: string;
1199
+ createdByUserType: "system" | "user";
1200
+ createdAt: string;
1201
+ createdBy: string;
1202
+ createdByRole: string;
1203
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1204
+ createdBySignature?: string | null | undefined;
1205
+ createdAtLocation?: string | null | undefined;
1206
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1207
+ originalActionId?: string | null | undefined;
1208
+ } | {
1209
+ type: "REGISTER";
1210
+ id: string;
1211
+ status: "Rejected" | "Requested" | "Accepted";
1212
+ transactionId: string;
1213
+ createdByUserType: "system" | "user";
1214
+ createdAt: string;
1215
+ createdBy: string;
1216
+ createdByRole: string;
1217
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1218
+ createdBySignature?: string | null | undefined;
1219
+ createdAtLocation?: string | null | undefined;
1220
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1221
+ originalActionId?: string | null | undefined;
1222
+ registrationNumber?: string | undefined;
1223
+ } | {
1224
+ type: "DECLARE";
1225
+ id: string;
1226
+ status: "Rejected" | "Requested" | "Accepted";
1227
+ transactionId: string;
1228
+ createdByUserType: "system" | "user";
1229
+ createdAt: string;
1230
+ createdBy: string;
1231
+ createdByRole: string;
1232
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1233
+ createdBySignature?: string | null | undefined;
1234
+ createdAtLocation?: string | null | undefined;
1235
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1236
+ originalActionId?: string | null | undefined;
1237
+ } | {
1238
+ type: "VALIDATE";
1239
+ id: string;
1240
+ status: "Rejected" | "Requested" | "Accepted";
1241
+ transactionId: string;
1242
+ createdByUserType: "system" | "user";
1243
+ createdAt: string;
1244
+ createdBy: string;
1245
+ createdByRole: string;
1246
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1247
+ createdBySignature?: string | null | undefined;
1248
+ createdAtLocation?: string | null | undefined;
1249
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1250
+ originalActionId?: string | null | undefined;
1251
+ } | {
1252
+ type: "REJECT";
1253
+ id: string;
1254
+ status: "Rejected" | "Requested" | "Accepted";
1255
+ content: {
1256
+ reason: string;
1257
+ };
1258
+ transactionId: string;
1259
+ createdByUserType: "system" | "user";
1260
+ createdAt: string;
1261
+ createdBy: string;
1262
+ createdByRole: string;
1263
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1264
+ createdBySignature?: string | null | undefined;
1265
+ createdAtLocation?: string | null | undefined;
1266
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1267
+ originalActionId?: string | null | undefined;
1268
+ } | {
1269
+ type: "DUPLICATE_DETECTED";
1270
+ id: string;
1271
+ status: "Rejected" | "Requested" | "Accepted";
1272
+ content: {
1273
+ duplicates: {
1274
+ id: string;
1275
+ trackingId: string;
1276
+ }[];
1277
+ };
1278
+ transactionId: string;
1279
+ createdByUserType: "system" | "user";
1280
+ createdAt: string;
1281
+ createdBy: string;
1282
+ createdByRole: string;
1283
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1284
+ createdBySignature?: string | null | undefined;
1285
+ createdAtLocation?: string | null | undefined;
1286
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1287
+ originalActionId?: string | null | undefined;
1288
+ } | {
1289
+ type: "MARK_AS_NOT_DUPLICATE";
1290
+ id: string;
1291
+ status: "Rejected" | "Requested" | "Accepted";
1292
+ transactionId: string;
1293
+ createdByUserType: "system" | "user";
1294
+ createdAt: string;
1295
+ createdBy: string;
1296
+ createdByRole: string;
1297
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1298
+ createdBySignature?: string | null | undefined;
1299
+ createdAtLocation?: string | null | undefined;
1300
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1301
+ originalActionId?: string | null | undefined;
1302
+ } | {
1303
+ type: "MARK_AS_DUPLICATE";
1304
+ id: string;
1305
+ status: "Rejected" | "Requested" | "Accepted";
1306
+ transactionId: string;
1307
+ createdByUserType: "system" | "user";
1308
+ createdAt: string;
1309
+ createdBy: string;
1310
+ createdByRole: string;
1311
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1312
+ content?: {
1313
+ duplicateOf: string;
1314
+ } | undefined;
1315
+ createdBySignature?: string | null | undefined;
1316
+ createdAtLocation?: string | null | undefined;
1317
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1318
+ originalActionId?: string | null | undefined;
1319
+ } | {
1320
+ type: "ARCHIVE";
1321
+ id: string;
1322
+ status: "Rejected" | "Requested" | "Accepted";
1323
+ content: {
1324
+ reason: string;
1325
+ };
1326
+ transactionId: string;
1327
+ createdByUserType: "system" | "user";
1328
+ createdAt: string;
1329
+ createdBy: string;
1330
+ createdByRole: string;
1331
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1332
+ createdBySignature?: string | null | undefined;
1333
+ createdAtLocation?: string | null | undefined;
1334
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1335
+ originalActionId?: string | null | undefined;
1336
+ } | {
1337
+ type: "CREATE";
1338
+ id: string;
1339
+ status: "Rejected" | "Requested" | "Accepted";
1340
+ transactionId: string;
1341
+ createdByUserType: "system" | "user";
1342
+ createdAt: string;
1343
+ createdBy: string;
1344
+ createdByRole: string;
1345
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1346
+ createdBySignature?: string | null | undefined;
1347
+ createdAtLocation?: string | null | undefined;
1348
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1349
+ originalActionId?: string | null | undefined;
1350
+ } | {
1351
+ type: "NOTIFY";
1352
+ id: string;
1353
+ status: "Rejected" | "Requested" | "Accepted";
1354
+ transactionId: string;
1355
+ createdByUserType: "system" | "user";
1356
+ createdAt: string;
1357
+ createdBy: string;
1358
+ createdByRole: string;
1359
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1360
+ createdBySignature?: string | null | undefined;
1361
+ createdAtLocation?: string | null | undefined;
1362
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1363
+ originalActionId?: string | null | undefined;
1364
+ } | {
1365
+ type: "PRINT_CERTIFICATE";
1366
+ id: string;
1367
+ status: "Rejected" | "Requested" | "Accepted";
1368
+ transactionId: string;
1369
+ createdByUserType: "system" | "user";
1370
+ createdAt: string;
1371
+ createdBy: string;
1372
+ createdByRole: string;
1373
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1374
+ content?: {
1375
+ templateId?: string | undefined;
1376
+ } | null | undefined;
1377
+ createdBySignature?: string | null | undefined;
1378
+ createdAtLocation?: string | null | undefined;
1379
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1380
+ originalActionId?: string | null | undefined;
1381
+ } | {
1382
+ type: "REQUEST_CORRECTION";
1383
+ id: string;
1384
+ status: "Rejected" | "Requested" | "Accepted";
1385
+ transactionId: string;
1386
+ createdByUserType: "system" | "user";
1387
+ createdAt: string;
1388
+ createdBy: string;
1389
+ createdByRole: string;
1390
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1391
+ createdBySignature?: string | null | undefined;
1392
+ createdAtLocation?: string | null | undefined;
1393
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1394
+ originalActionId?: string | null | undefined;
1395
+ } | {
1396
+ type: "APPROVE_CORRECTION";
1397
+ id: string;
1398
+ status: "Rejected" | "Requested" | "Accepted";
1399
+ transactionId: string;
1400
+ createdByUserType: "system" | "user";
1401
+ createdAt: string;
1402
+ createdBy: string;
1403
+ createdByRole: string;
1404
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1405
+ requestId: string;
1406
+ createdBySignature?: string | null | undefined;
1407
+ createdAtLocation?: string | null | undefined;
1408
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1409
+ originalActionId?: string | null | undefined;
1410
+ } | {
1411
+ type: "REJECT_CORRECTION";
1412
+ id: string;
1413
+ status: "Rejected" | "Requested" | "Accepted";
1414
+ content: {
1415
+ reason: string;
1416
+ };
1417
+ transactionId: string;
1418
+ createdByUserType: "system" | "user";
1419
+ createdAt: string;
1420
+ createdBy: string;
1421
+ createdByRole: string;
1422
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1423
+ requestId: string;
1424
+ createdBySignature?: string | null | undefined;
1425
+ createdAtLocation?: string | null | undefined;
1426
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1427
+ originalActionId?: string | null | undefined;
1428
+ } | {
1429
+ type: "READ";
1430
+ id: string;
1431
+ status: "Rejected" | "Requested" | "Accepted";
1432
+ transactionId: string;
1433
+ createdByUserType: "system" | "user";
1434
+ createdAt: string;
1435
+ createdBy: string;
1436
+ createdByRole: string;
1437
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1438
+ createdBySignature?: string | null | undefined;
1439
+ createdAtLocation?: string | null | undefined;
1440
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1441
+ originalActionId?: string | null | undefined;
1442
+ } | {
1443
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
1444
+ id: string;
1445
+ status: "Rejected";
1446
+ transactionId: string;
1447
+ createdByUserType: "system" | "user";
1448
+ createdAt: string;
1449
+ createdBy: string;
1450
+ createdByRole: string;
1451
+ createdBySignature?: string | null | undefined;
1452
+ createdAtLocation?: string | null | undefined;
1453
+ originalActionId?: string | null | undefined;
1454
+ })[];
1455
+ }>;
444
1456
  export type EventDocument = z.infer<typeof EventDocument>;
445
1457
  //# sourceMappingURL=EventDocument.d.ts.map