@opencrvs/toolkit 1.8.0-rc.fec1d5d → 1.8.0-rc.fef0fdd
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.
- package/dist/commons/api/router.d.ts +851 -10142
- package/dist/commons/events/ActionDocument.d.ts +486 -387
- package/dist/commons/events/ActionInput.d.ts +126 -126
- package/dist/commons/events/ActionType.d.ts +2 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +204 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +254 -168
- package/dist/commons/events/CreatedAtLocation.d.ts +1 -2
- package/dist/commons/events/Draft.d.ts +28 -23
- package/dist/commons/events/EventConfig.d.ts +132 -0
- package/dist/commons/events/EventDocument.d.ts +350 -275
- package/dist/commons/events/EventIndex.d.ts +572 -146
- package/dist/commons/events/EventMetadata.d.ts +59 -26
- package/dist/commons/events/FieldConfig.d.ts +19 -0
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
- package/dist/commons/events/WorkqueueConfig.d.ts +1937 -459
- package/dist/commons/events/defineConfig.d.ts +8 -0
- package/dist/commons/events/field.d.ts +5 -0
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/scopes.d.ts +1 -2
- package/dist/commons/events/test.utils.d.ts +28 -5
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +16 -6
- package/dist/events/index.js +880 -567
- package/dist/scopes/index.d.ts +4 -1
- package/dist/scopes/index.js +67 -17
- package/package.json +3 -3
@@ -17,7 +17,8 @@ export declare const ZodDate: z.ZodString;
|
|
17
17
|
export declare const ActionCreationMetadata: z.ZodObject<{
|
18
18
|
createdAt: z.ZodString;
|
19
19
|
createdBy: z.ZodString;
|
20
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString
|
20
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
21
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
21
22
|
acceptedAt: z.ZodString;
|
22
23
|
createdByRole: z.ZodString;
|
23
24
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -26,13 +27,15 @@ export declare const ActionCreationMetadata: z.ZodObject<{
|
|
26
27
|
createdBy: string;
|
27
28
|
createdByRole: string;
|
28
29
|
acceptedAt: string;
|
30
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
29
31
|
createdBySignature?: string | null | undefined;
|
30
|
-
createdAtLocation?: string | null | undefined;
|
32
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
31
33
|
}, {
|
32
34
|
createdAt: string;
|
33
35
|
createdBy: string;
|
34
36
|
createdByRole: string;
|
35
37
|
acceptedAt: string;
|
38
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
36
39
|
createdBySignature?: string | null | undefined;
|
37
40
|
createdAtLocation?: string | null | undefined;
|
38
41
|
}>;
|
@@ -40,7 +43,8 @@ export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
|
|
40
43
|
export declare const RegistrationCreationMetadata: z.ZodObject<z.objectUtil.extendShape<{
|
41
44
|
createdAt: z.ZodString;
|
42
45
|
createdBy: z.ZodString;
|
43
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString
|
46
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
47
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
44
48
|
acceptedAt: z.ZodString;
|
45
49
|
createdByRole: z.ZodString;
|
46
50
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -52,14 +56,16 @@ export declare const RegistrationCreationMetadata: z.ZodObject<z.objectUtil.exte
|
|
52
56
|
createdByRole: string;
|
53
57
|
registrationNumber: string;
|
54
58
|
acceptedAt: string;
|
59
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
55
60
|
createdBySignature?: string | null | undefined;
|
56
|
-
createdAtLocation?: string | null | undefined;
|
61
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
57
62
|
}, {
|
58
63
|
createdAt: string;
|
59
64
|
createdBy: string;
|
60
65
|
createdByRole: string;
|
61
66
|
registrationNumber: string;
|
62
67
|
acceptedAt: string;
|
68
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
63
69
|
createdBySignature?: string | null | undefined;
|
64
70
|
createdAtLocation?: string | null | undefined;
|
65
71
|
}>;
|
@@ -68,7 +74,8 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
68
74
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
69
75
|
createdAt: z.ZodString;
|
70
76
|
createdBy: z.ZodString;
|
71
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString
|
77
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
78
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
72
79
|
acceptedAt: z.ZodString;
|
73
80
|
createdByRole: z.ZodString;
|
74
81
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -77,20 +84,23 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
77
84
|
createdBy: string;
|
78
85
|
createdByRole: string;
|
79
86
|
acceptedAt: string;
|
87
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
80
88
|
createdBySignature?: string | null | undefined;
|
81
|
-
createdAtLocation?: string | null | undefined;
|
89
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
82
90
|
}, {
|
83
91
|
createdAt: string;
|
84
92
|
createdBy: string;
|
85
93
|
createdByRole: string;
|
86
94
|
acceptedAt: string;
|
95
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
87
96
|
createdBySignature?: string | null | undefined;
|
88
97
|
createdAtLocation?: string | null | undefined;
|
89
98
|
}>>>;
|
90
99
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
91
100
|
createdAt: z.ZodString;
|
92
101
|
createdBy: z.ZodString;
|
93
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString
|
102
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
103
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
94
104
|
acceptedAt: z.ZodString;
|
95
105
|
createdByRole: z.ZodString;
|
96
106
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -102,14 +112,16 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
102
112
|
createdByRole: string;
|
103
113
|
registrationNumber: string;
|
104
114
|
acceptedAt: string;
|
115
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
105
116
|
createdBySignature?: string | null | undefined;
|
106
|
-
createdAtLocation?: string | null | undefined;
|
117
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
107
118
|
}, {
|
108
119
|
createdAt: string;
|
109
120
|
createdBy: string;
|
110
121
|
createdByRole: string;
|
111
122
|
registrationNumber: string;
|
112
123
|
acceptedAt: string;
|
124
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
113
125
|
createdBySignature?: string | null | undefined;
|
114
126
|
createdAtLocation?: string | null | undefined;
|
115
127
|
}>>>;
|
@@ -119,8 +131,9 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
119
131
|
createdBy: string;
|
120
132
|
createdByRole: string;
|
121
133
|
acceptedAt: string;
|
134
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
122
135
|
createdBySignature?: string | null | undefined;
|
123
|
-
createdAtLocation?: string | null | undefined;
|
136
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
124
137
|
} | null | undefined;
|
125
138
|
REGISTERED?: {
|
126
139
|
createdAt: string;
|
@@ -128,8 +141,9 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
128
141
|
createdByRole: string;
|
129
142
|
registrationNumber: string;
|
130
143
|
acceptedAt: string;
|
144
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
131
145
|
createdBySignature?: string | null | undefined;
|
132
|
-
createdAtLocation?: string | null | undefined;
|
146
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
133
147
|
} | null | undefined;
|
134
148
|
}, {
|
135
149
|
DECLARED?: {
|
@@ -137,6 +151,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
137
151
|
createdBy: string;
|
138
152
|
createdByRole: string;
|
139
153
|
acceptedAt: string;
|
154
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
140
155
|
createdBySignature?: string | null | undefined;
|
141
156
|
createdAtLocation?: string | null | undefined;
|
142
157
|
} | null | undefined;
|
@@ -146,6 +161,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
146
161
|
createdByRole: string;
|
147
162
|
registrationNumber: string;
|
148
163
|
acceptedAt: string;
|
164
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
149
165
|
createdBySignature?: string | null | undefined;
|
150
166
|
createdAtLocation?: string | null | undefined;
|
151
167
|
} | null | undefined;
|
@@ -156,14 +172,15 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
156
172
|
* Accessed through `event.` in configuration.
|
157
173
|
*/
|
158
174
|
export declare const EventMetadata: z.ZodObject<{
|
159
|
-
id: z.ZodString
|
175
|
+
id: z.ZodBranded<z.ZodString, "UUID">;
|
160
176
|
type: z.ZodString;
|
161
177
|
status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
|
162
178
|
legalStatuses: z.ZodObject<{
|
163
179
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
164
180
|
createdAt: z.ZodString;
|
165
181
|
createdBy: z.ZodString;
|
166
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString
|
182
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
183
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
167
184
|
acceptedAt: z.ZodString;
|
168
185
|
createdByRole: z.ZodString;
|
169
186
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -172,20 +189,23 @@ export declare const EventMetadata: z.ZodObject<{
|
|
172
189
|
createdBy: string;
|
173
190
|
createdByRole: string;
|
174
191
|
acceptedAt: string;
|
192
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
175
193
|
createdBySignature?: string | null | undefined;
|
176
|
-
createdAtLocation?: string | null | undefined;
|
194
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
177
195
|
}, {
|
178
196
|
createdAt: string;
|
179
197
|
createdBy: string;
|
180
198
|
createdByRole: string;
|
181
199
|
acceptedAt: string;
|
200
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
182
201
|
createdBySignature?: string | null | undefined;
|
183
202
|
createdAtLocation?: string | null | undefined;
|
184
203
|
}>>>;
|
185
204
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
186
205
|
createdAt: z.ZodString;
|
187
206
|
createdBy: z.ZodString;
|
188
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString
|
207
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
208
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
189
209
|
acceptedAt: z.ZodString;
|
190
210
|
createdByRole: z.ZodString;
|
191
211
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -197,14 +217,16 @@ export declare const EventMetadata: z.ZodObject<{
|
|
197
217
|
createdByRole: string;
|
198
218
|
registrationNumber: string;
|
199
219
|
acceptedAt: string;
|
220
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
200
221
|
createdBySignature?: string | null | undefined;
|
201
|
-
createdAtLocation?: string | null | undefined;
|
222
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
202
223
|
}, {
|
203
224
|
createdAt: string;
|
204
225
|
createdBy: string;
|
205
226
|
createdByRole: string;
|
206
227
|
registrationNumber: string;
|
207
228
|
acceptedAt: string;
|
229
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
208
230
|
createdBySignature?: string | null | undefined;
|
209
231
|
createdAtLocation?: string | null | undefined;
|
210
232
|
}>>>;
|
@@ -214,8 +236,9 @@ export declare const EventMetadata: z.ZodObject<{
|
|
214
236
|
createdBy: string;
|
215
237
|
createdByRole: string;
|
216
238
|
acceptedAt: string;
|
239
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
217
240
|
createdBySignature?: string | null | undefined;
|
218
|
-
createdAtLocation?: string | null | undefined;
|
241
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
219
242
|
} | null | undefined;
|
220
243
|
REGISTERED?: {
|
221
244
|
createdAt: string;
|
@@ -223,8 +246,9 @@ export declare const EventMetadata: z.ZodObject<{
|
|
223
246
|
createdByRole: string;
|
224
247
|
registrationNumber: string;
|
225
248
|
acceptedAt: string;
|
249
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
226
250
|
createdBySignature?: string | null | undefined;
|
227
|
-
createdAtLocation?: string | null | undefined;
|
251
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
228
252
|
} | null | undefined;
|
229
253
|
}, {
|
230
254
|
DECLARED?: {
|
@@ -232,6 +256,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
232
256
|
createdBy: string;
|
233
257
|
createdByRole: string;
|
234
258
|
acceptedAt: string;
|
259
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
235
260
|
createdBySignature?: string | null | undefined;
|
236
261
|
createdAtLocation?: string | null | undefined;
|
237
262
|
} | null | undefined;
|
@@ -241,6 +266,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
241
266
|
createdByRole: string;
|
242
267
|
registrationNumber: string;
|
243
268
|
acceptedAt: string;
|
269
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
244
270
|
createdBySignature?: string | null | undefined;
|
245
271
|
createdAtLocation?: string | null | undefined;
|
246
272
|
} | null | undefined;
|
@@ -248,10 +274,11 @@ export declare const EventMetadata: z.ZodObject<{
|
|
248
274
|
createdAt: z.ZodString;
|
249
275
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
250
276
|
createdBy: z.ZodString;
|
277
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
251
278
|
updatedByUserRole: z.ZodString;
|
252
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString
|
279
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
253
280
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
254
|
-
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString
|
281
|
+
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
255
282
|
updatedAt: z.ZodString;
|
256
283
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
257
284
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -261,7 +288,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
261
288
|
}>]>, "many">;
|
262
289
|
}, "strip", z.ZodTypeAny, {
|
263
290
|
type: string;
|
264
|
-
id: string
|
291
|
+
id: string & z.BRAND<"UUID">;
|
265
292
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
266
293
|
createdAt: string;
|
267
294
|
createdBy: string;
|
@@ -273,8 +300,9 @@ export declare const EventMetadata: z.ZodObject<{
|
|
273
300
|
createdBy: string;
|
274
301
|
createdByRole: string;
|
275
302
|
acceptedAt: string;
|
303
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
276
304
|
createdBySignature?: string | null | undefined;
|
277
|
-
createdAtLocation?: string | null | undefined;
|
305
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
278
306
|
} | null | undefined;
|
279
307
|
REGISTERED?: {
|
280
308
|
createdAt: string;
|
@@ -282,17 +310,19 @@ export declare const EventMetadata: z.ZodObject<{
|
|
282
310
|
createdByRole: string;
|
283
311
|
registrationNumber: string;
|
284
312
|
acceptedAt: string;
|
313
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
285
314
|
createdBySignature?: string | null | undefined;
|
286
|
-
createdAtLocation?: string | null | undefined;
|
315
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
287
316
|
} | null | undefined;
|
288
317
|
};
|
289
318
|
updatedByUserRole: string;
|
290
319
|
flags: string[];
|
320
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
291
321
|
createdBySignature?: string | null | undefined;
|
292
|
-
createdAtLocation?: string | null | undefined;
|
322
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
293
323
|
assignedTo?: string | null | undefined;
|
294
324
|
dateOfEvent?: string | null | undefined;
|
295
|
-
updatedAtLocation?: string | null | undefined;
|
325
|
+
updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
296
326
|
updatedBy?: string | null | undefined;
|
297
327
|
}, {
|
298
328
|
type: string;
|
@@ -308,6 +338,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
308
338
|
createdBy: string;
|
309
339
|
createdByRole: string;
|
310
340
|
acceptedAt: string;
|
341
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
311
342
|
createdBySignature?: string | null | undefined;
|
312
343
|
createdAtLocation?: string | null | undefined;
|
313
344
|
} | null | undefined;
|
@@ -317,12 +348,14 @@ export declare const EventMetadata: z.ZodObject<{
|
|
317
348
|
createdByRole: string;
|
318
349
|
registrationNumber: string;
|
319
350
|
acceptedAt: string;
|
351
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
320
352
|
createdBySignature?: string | null | undefined;
|
321
353
|
createdAtLocation?: string | null | undefined;
|
322
354
|
} | null | undefined;
|
323
355
|
};
|
324
356
|
updatedByUserRole: string;
|
325
357
|
flags: string[];
|
358
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
326
359
|
createdBySignature?: string | null | undefined;
|
327
360
|
createdAtLocation?: string | null | undefined;
|
328
361
|
assignedTo?: string | null | undefined;
|
@@ -331,8 +364,8 @@ export declare const EventMetadata: z.ZodObject<{
|
|
331
364
|
updatedBy?: string | null | undefined;
|
332
365
|
}>;
|
333
366
|
export type EventMetadata = z.infer<typeof EventMetadata>;
|
334
|
-
export declare const EventMetadataKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"];
|
335
|
-
export declare const EventMetadataKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
|
367
|
+
export declare const EventMetadataKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"];
|
368
|
+
export declare const EventMetadataKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
|
336
369
|
export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
|
337
370
|
/**
|
338
371
|
* Mapping of event metadata keys to translation configuration.
|
@@ -8,6 +8,25 @@ export declare const FieldReference: z.ZodObject<{
|
|
8
8
|
}, {
|
9
9
|
$$field: string;
|
10
10
|
}>;
|
11
|
+
export declare const ValidationConfig: z.ZodObject<{
|
12
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
13
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
14
|
+
id: string;
|
15
|
+
description: string;
|
16
|
+
defaultMessage: string;
|
17
|
+
}>;
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
19
|
+
message: TranslationConfig;
|
20
|
+
validator: import(".").JSONSchema;
|
21
|
+
}, {
|
22
|
+
message: {
|
23
|
+
id: string;
|
24
|
+
description: string;
|
25
|
+
defaultMessage: string;
|
26
|
+
};
|
27
|
+
validator: import(".").JSONSchema;
|
28
|
+
}>;
|
29
|
+
export type ValidationConfig = z.infer<typeof ValidationConfig>;
|
11
30
|
declare const BaseField: z.ZodObject<{
|
12
31
|
id: z.ZodString;
|
13
32
|
parent: z.ZodOptional<z.ZodObject<{
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
3
|
-
export declare const WorkqueueColumnKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"];
|
4
|
-
export declare const WorkqueueColumnKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
|
3
|
+
export declare const WorkqueueColumnKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"];
|
4
|
+
export declare const WorkqueueColumnKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
|
5
5
|
export type WorkqueueColumnKeys = z.infer<typeof WorkqueueColumnKeys>;
|
6
6
|
export declare const WorkqueueColumnValue: z.ZodObject<{
|
7
|
-
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
|
7
|
+
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
9
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
9
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
10
10
|
}, {
|
11
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
11
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
12
12
|
}>;
|
13
13
|
export type WorkqueueColumnValue = z.infer<typeof WorkqueueColumnValue>;
|
14
14
|
/**
|
@@ -21,20 +21,20 @@ export declare const WorkqueueColumn: z.ZodObject<{
|
|
21
21
|
defaultMessage: string;
|
22
22
|
}>;
|
23
23
|
value: z.ZodObject<{
|
24
|
-
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
|
24
|
+
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
26
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
26
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
27
27
|
}, {
|
28
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
28
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
29
29
|
}>;
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
31
31
|
value: {
|
32
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
32
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
33
33
|
};
|
34
34
|
label: TranslationConfig;
|
35
35
|
}, {
|
36
36
|
value: {
|
37
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
37
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
38
38
|
};
|
39
39
|
label: {
|
40
40
|
id: string;
|
@@ -46,7 +46,7 @@ export type WorkqueueColumn = z.infer<typeof WorkqueueColumn>;
|
|
46
46
|
export type WorkqueueColumnInput = z.infer<typeof WorkqueueColumn>;
|
47
47
|
export declare function defineWorkqueuesColumns(workqueueColumns: WorkqueueColumnInput[]): {
|
48
48
|
value: {
|
49
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
49
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
50
50
|
};
|
51
51
|
label: TranslationConfig;
|
52
52
|
}[];
|