@opencrvs/toolkit 1.8.0-rc.fb4793a → 1.8.0-rc.fbb40d1
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 +1292 -484
- package/dist/commons/conditionals/conditionals.d.ts +2 -1
- package/dist/commons/events/ActionConfig.d.ts +7279 -2
- package/dist/commons/events/ActionDocument.d.ts +428 -346
- package/dist/commons/events/ActionInput.d.ts +197 -125
- package/dist/commons/events/Constants.d.ts +2 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
- package/dist/commons/events/Draft.d.ts +24 -24
- package/dist/commons/events/EventConfig.d.ts +10354 -6550
- package/dist/commons/events/EventDocument.d.ts +306 -267
- package/dist/commons/events/EventIndex.d.ts +192 -605
- package/dist/commons/events/EventInput.d.ts +0 -13
- package/dist/commons/events/EventMetadata.d.ts +38 -48
- package/dist/commons/events/User.d.ts +31 -7
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +3460 -485
- package/dist/commons/events/defineConfig.d.ts +729 -0
- package/dist/commons/events/event.d.ts +2 -2
- package/dist/commons/events/index.d.ts +4 -0
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +15 -6
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +7 -6
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +19 -2
- package/dist/events/index.js +1590 -603
- package/package.json +1 -1
@@ -2,25 +2,12 @@ import { z } from 'zod';
|
|
2
2
|
export declare const EventInput: z.ZodObject<{
|
3
3
|
transactionId: z.ZodString;
|
4
4
|
type: z.ZodString;
|
5
|
-
dateOfEvent: z.ZodOptional<z.ZodObject<{
|
6
|
-
fieldId: z.ZodString;
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
8
|
-
fieldId: string;
|
9
|
-
}, {
|
10
|
-
fieldId: string;
|
11
|
-
}>>;
|
12
5
|
}, "strip", z.ZodTypeAny, {
|
13
6
|
type: string;
|
14
7
|
transactionId: string;
|
15
|
-
dateOfEvent?: {
|
16
|
-
fieldId: string;
|
17
|
-
} | undefined;
|
18
8
|
}, {
|
19
9
|
type: string;
|
20
10
|
transactionId: string;
|
21
|
-
dateOfEvent?: {
|
22
|
-
fieldId: string;
|
23
|
-
} | undefined;
|
24
11
|
}>;
|
25
12
|
export type EventInput = z.infer<typeof EventInput>;
|
26
13
|
//# sourceMappingURL=EventInput.d.ts.map
|
@@ -38,27 +38,27 @@ export declare const ZodDate: z.ZodString;
|
|
38
38
|
export declare const ActionCreationMetadata: z.ZodObject<{
|
39
39
|
createdAt: z.ZodString;
|
40
40
|
createdBy: z.ZodString;
|
41
|
-
createdAtLocation: z.ZodString
|
41
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
42
42
|
acceptedAt: z.ZodString;
|
43
43
|
createdByRole: z.ZodString;
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
45
45
|
createdAt: string;
|
46
46
|
createdBy: string;
|
47
47
|
createdByRole: string;
|
48
|
-
createdAtLocation: string;
|
49
48
|
acceptedAt: string;
|
49
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
50
50
|
}, {
|
51
51
|
createdAt: string;
|
52
52
|
createdBy: string;
|
53
53
|
createdByRole: string;
|
54
|
-
createdAtLocation: string;
|
55
54
|
acceptedAt: string;
|
55
|
+
createdAtLocation?: string | null | undefined;
|
56
56
|
}>;
|
57
57
|
export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
|
58
58
|
export declare const RegistrationCreationMetadata: z.ZodObject<z.objectUtil.extendShape<{
|
59
59
|
createdAt: z.ZodString;
|
60
60
|
createdBy: z.ZodString;
|
61
|
-
createdAtLocation: z.ZodString
|
61
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
62
62
|
acceptedAt: z.ZodString;
|
63
63
|
createdByRole: z.ZodString;
|
64
64
|
}, {
|
@@ -67,42 +67,42 @@ export declare const RegistrationCreationMetadata: z.ZodObject<z.objectUtil.exte
|
|
67
67
|
createdAt: string;
|
68
68
|
createdBy: string;
|
69
69
|
createdByRole: string;
|
70
|
-
createdAtLocation: string;
|
71
70
|
registrationNumber: string;
|
72
71
|
acceptedAt: string;
|
72
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
73
73
|
}, {
|
74
74
|
createdAt: string;
|
75
75
|
createdBy: string;
|
76
76
|
createdByRole: string;
|
77
|
-
createdAtLocation: string;
|
78
77
|
registrationNumber: string;
|
79
78
|
acceptedAt: string;
|
79
|
+
createdAtLocation?: string | null | undefined;
|
80
80
|
}>;
|
81
81
|
export type RegistrationCreationMetadata = z.infer<typeof RegistrationCreationMetadata>;
|
82
82
|
export declare const LegalStatuses: z.ZodObject<{
|
83
83
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
84
84
|
createdAt: z.ZodString;
|
85
85
|
createdBy: z.ZodString;
|
86
|
-
createdAtLocation: z.ZodString
|
86
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
87
87
|
acceptedAt: z.ZodString;
|
88
88
|
createdByRole: z.ZodString;
|
89
89
|
}, "strip", z.ZodTypeAny, {
|
90
90
|
createdAt: string;
|
91
91
|
createdBy: string;
|
92
92
|
createdByRole: string;
|
93
|
-
createdAtLocation: string;
|
94
93
|
acceptedAt: string;
|
94
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
95
95
|
}, {
|
96
96
|
createdAt: string;
|
97
97
|
createdBy: string;
|
98
98
|
createdByRole: string;
|
99
|
-
createdAtLocation: string;
|
100
99
|
acceptedAt: string;
|
100
|
+
createdAtLocation?: string | null | undefined;
|
101
101
|
}>>>;
|
102
102
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
103
103
|
createdAt: z.ZodString;
|
104
104
|
createdBy: z.ZodString;
|
105
|
-
createdAtLocation: z.ZodString
|
105
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
106
106
|
acceptedAt: z.ZodString;
|
107
107
|
createdByRole: z.ZodString;
|
108
108
|
}, {
|
@@ -111,48 +111,48 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
111
111
|
createdAt: string;
|
112
112
|
createdBy: string;
|
113
113
|
createdByRole: string;
|
114
|
-
createdAtLocation: string;
|
115
114
|
registrationNumber: string;
|
116
115
|
acceptedAt: string;
|
116
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
117
117
|
}, {
|
118
118
|
createdAt: string;
|
119
119
|
createdBy: string;
|
120
120
|
createdByRole: string;
|
121
|
-
createdAtLocation: string;
|
122
121
|
registrationNumber: string;
|
123
122
|
acceptedAt: string;
|
123
|
+
createdAtLocation?: string | null | undefined;
|
124
124
|
}>>>;
|
125
125
|
}, "strip", z.ZodTypeAny, {
|
126
126
|
DECLARED?: {
|
127
127
|
createdAt: string;
|
128
128
|
createdBy: string;
|
129
129
|
createdByRole: string;
|
130
|
-
createdAtLocation: string;
|
131
130
|
acceptedAt: string;
|
131
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
132
132
|
} | null | undefined;
|
133
133
|
REGISTERED?: {
|
134
134
|
createdAt: string;
|
135
135
|
createdBy: string;
|
136
136
|
createdByRole: string;
|
137
|
-
createdAtLocation: string;
|
138
137
|
registrationNumber: string;
|
139
138
|
acceptedAt: string;
|
139
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
140
140
|
} | null | undefined;
|
141
141
|
}, {
|
142
142
|
DECLARED?: {
|
143
143
|
createdAt: string;
|
144
144
|
createdBy: string;
|
145
145
|
createdByRole: string;
|
146
|
-
createdAtLocation: string;
|
147
146
|
acceptedAt: string;
|
147
|
+
createdAtLocation?: string | null | undefined;
|
148
148
|
} | null | undefined;
|
149
149
|
REGISTERED?: {
|
150
150
|
createdAt: string;
|
151
151
|
createdBy: string;
|
152
152
|
createdByRole: string;
|
153
|
-
createdAtLocation: string;
|
154
153
|
registrationNumber: string;
|
155
154
|
acceptedAt: string;
|
155
|
+
createdAtLocation?: string | null | undefined;
|
156
156
|
} | null | undefined;
|
157
157
|
}>;
|
158
158
|
/**
|
@@ -161,7 +161,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
161
161
|
* Accessed through `event.` in configuration.
|
162
162
|
*/
|
163
163
|
export declare const EventMetadata: z.ZodObject<{
|
164
|
-
id: z.ZodString
|
164
|
+
id: z.ZodBranded<z.ZodString, "UUID">;
|
165
165
|
type: z.ZodString;
|
166
166
|
status: z.ZodNativeEnum<{
|
167
167
|
readonly CREATED: "CREATED";
|
@@ -177,26 +177,26 @@ export declare const EventMetadata: z.ZodObject<{
|
|
177
177
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
178
178
|
createdAt: z.ZodString;
|
179
179
|
createdBy: z.ZodString;
|
180
|
-
createdAtLocation: z.ZodString
|
180
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
181
181
|
acceptedAt: z.ZodString;
|
182
182
|
createdByRole: z.ZodString;
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
184
184
|
createdAt: string;
|
185
185
|
createdBy: string;
|
186
186
|
createdByRole: string;
|
187
|
-
createdAtLocation: string;
|
188
187
|
acceptedAt: string;
|
188
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
189
189
|
}, {
|
190
190
|
createdAt: string;
|
191
191
|
createdBy: string;
|
192
192
|
createdByRole: string;
|
193
|
-
createdAtLocation: string;
|
194
193
|
acceptedAt: string;
|
194
|
+
createdAtLocation?: string | null | undefined;
|
195
195
|
}>>>;
|
196
196
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
197
197
|
createdAt: z.ZodString;
|
198
198
|
createdBy: z.ZodString;
|
199
|
-
createdAtLocation: z.ZodString
|
199
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
200
200
|
acceptedAt: z.ZodString;
|
201
201
|
createdByRole: z.ZodString;
|
202
202
|
}, {
|
@@ -205,56 +205,56 @@ export declare const EventMetadata: z.ZodObject<{
|
|
205
205
|
createdAt: string;
|
206
206
|
createdBy: string;
|
207
207
|
createdByRole: string;
|
208
|
-
createdAtLocation: string;
|
209
208
|
registrationNumber: string;
|
210
209
|
acceptedAt: string;
|
210
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
211
211
|
}, {
|
212
212
|
createdAt: string;
|
213
213
|
createdBy: string;
|
214
214
|
createdByRole: string;
|
215
|
-
createdAtLocation: string;
|
216
215
|
registrationNumber: string;
|
217
216
|
acceptedAt: string;
|
217
|
+
createdAtLocation?: string | null | undefined;
|
218
218
|
}>>>;
|
219
219
|
}, "strip", z.ZodTypeAny, {
|
220
220
|
DECLARED?: {
|
221
221
|
createdAt: string;
|
222
222
|
createdBy: string;
|
223
223
|
createdByRole: string;
|
224
|
-
createdAtLocation: string;
|
225
224
|
acceptedAt: string;
|
225
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
226
226
|
} | null | undefined;
|
227
227
|
REGISTERED?: {
|
228
228
|
createdAt: string;
|
229
229
|
createdBy: string;
|
230
230
|
createdByRole: string;
|
231
|
-
createdAtLocation: string;
|
232
231
|
registrationNumber: string;
|
233
232
|
acceptedAt: string;
|
233
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
234
234
|
} | null | undefined;
|
235
235
|
}, {
|
236
236
|
DECLARED?: {
|
237
237
|
createdAt: string;
|
238
238
|
createdBy: string;
|
239
239
|
createdByRole: string;
|
240
|
-
createdAtLocation: string;
|
241
240
|
acceptedAt: string;
|
241
|
+
createdAtLocation?: string | null | undefined;
|
242
242
|
} | null | undefined;
|
243
243
|
REGISTERED?: {
|
244
244
|
createdAt: string;
|
245
245
|
createdBy: string;
|
246
246
|
createdByRole: string;
|
247
|
-
createdAtLocation: string;
|
248
247
|
registrationNumber: string;
|
249
248
|
acceptedAt: string;
|
249
|
+
createdAtLocation?: string | null | undefined;
|
250
250
|
} | null | undefined;
|
251
251
|
}>;
|
252
252
|
createdAt: z.ZodString;
|
253
253
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
254
254
|
createdBy: z.ZodString;
|
255
255
|
updatedByUserRole: z.ZodString;
|
256
|
-
createdAtLocation: z.ZodString
|
257
|
-
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString
|
256
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
257
|
+
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
258
258
|
updatedAt: z.ZodString;
|
259
259
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
260
260
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -264,11 +264,10 @@ export declare const EventMetadata: z.ZodObject<{
|
|
264
264
|
}>]>, "many">;
|
265
265
|
}, "strip", z.ZodTypeAny, {
|
266
266
|
type: string;
|
267
|
-
id: string
|
267
|
+
id: string & z.BRAND<"UUID">;
|
268
268
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
269
269
|
createdAt: string;
|
270
270
|
createdBy: string;
|
271
|
-
createdAtLocation: string;
|
272
271
|
updatedAt: string;
|
273
272
|
trackingId: string;
|
274
273
|
legalStatuses: {
|
@@ -276,23 +275,24 @@ export declare const EventMetadata: z.ZodObject<{
|
|
276
275
|
createdAt: string;
|
277
276
|
createdBy: string;
|
278
277
|
createdByRole: string;
|
279
|
-
createdAtLocation: string;
|
280
278
|
acceptedAt: string;
|
279
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
281
280
|
} | null | undefined;
|
282
281
|
REGISTERED?: {
|
283
282
|
createdAt: string;
|
284
283
|
createdBy: string;
|
285
284
|
createdByRole: string;
|
286
|
-
createdAtLocation: string;
|
287
285
|
registrationNumber: string;
|
288
286
|
acceptedAt: string;
|
287
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
289
288
|
} | null | undefined;
|
290
289
|
};
|
291
290
|
updatedByUserRole: string;
|
292
291
|
flags: string[];
|
292
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
293
293
|
assignedTo?: string | null | undefined;
|
294
294
|
dateOfEvent?: string | null | undefined;
|
295
|
-
updatedAtLocation?: string | null | undefined;
|
295
|
+
updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
296
296
|
updatedBy?: string | null | undefined;
|
297
297
|
}, {
|
298
298
|
type: string;
|
@@ -300,7 +300,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
300
300
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
301
301
|
createdAt: string;
|
302
302
|
createdBy: string;
|
303
|
-
createdAtLocation: string;
|
304
303
|
updatedAt: string;
|
305
304
|
trackingId: string;
|
306
305
|
legalStatuses: {
|
@@ -308,39 +307,30 @@ export declare const EventMetadata: z.ZodObject<{
|
|
308
307
|
createdAt: string;
|
309
308
|
createdBy: string;
|
310
309
|
createdByRole: string;
|
311
|
-
createdAtLocation: string;
|
312
310
|
acceptedAt: string;
|
311
|
+
createdAtLocation?: string | null | undefined;
|
313
312
|
} | null | undefined;
|
314
313
|
REGISTERED?: {
|
315
314
|
createdAt: string;
|
316
315
|
createdBy: string;
|
317
316
|
createdByRole: string;
|
318
|
-
createdAtLocation: string;
|
319
317
|
registrationNumber: string;
|
320
318
|
acceptedAt: string;
|
319
|
+
createdAtLocation?: string | null | undefined;
|
321
320
|
} | null | undefined;
|
322
321
|
};
|
323
322
|
updatedByUserRole: string;
|
324
323
|
flags: string[];
|
324
|
+
createdAtLocation?: string | null | undefined;
|
325
325
|
assignedTo?: string | null | undefined;
|
326
326
|
dateOfEvent?: string | null | undefined;
|
327
327
|
updatedAtLocation?: string | null | undefined;
|
328
328
|
updatedBy?: string | null | undefined;
|
329
329
|
}>;
|
330
330
|
export type EventMetadata = z.infer<typeof EventMetadata>;
|
331
|
+
export declare const EventMetadataKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"];
|
331
332
|
export declare const EventMetadataKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
|
332
333
|
export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
|
333
|
-
/**
|
334
|
-
* This ensures `event.field()` takes a key from `EventMetadata`
|
335
|
-
*/
|
336
|
-
export declare const EventMetadataParameter: z.ZodObject<{
|
337
|
-
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
|
338
|
-
}, "strip", z.ZodTypeAny, {
|
339
|
-
$event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
340
|
-
}, {
|
341
|
-
$event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
342
|
-
}>;
|
343
|
-
export type EventMetadataParameter = z.infer<typeof EventMetadataParameter>;
|
344
334
|
/**
|
345
335
|
* Mapping of event metadata keys to translation configuration.
|
346
336
|
* Consider introducing type in same manner as we have in FieldConfig.
|
@@ -1,4 +1,31 @@
|
|
1
|
-
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const User: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
name: z.ZodArray<z.ZodObject<{
|
5
|
+
use: z.ZodString;
|
6
|
+
given: z.ZodArray<z.ZodString, "many">;
|
7
|
+
family: z.ZodString;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
use: string;
|
10
|
+
given: string[];
|
11
|
+
family: string;
|
12
|
+
}, {
|
13
|
+
use: string;
|
14
|
+
given: string[];
|
15
|
+
family: string;
|
16
|
+
}>, "many">;
|
17
|
+
role: z.ZodString;
|
18
|
+
signatureFilename: z.ZodOptional<z.ZodString>;
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
20
|
+
id: string;
|
21
|
+
name: {
|
22
|
+
use: string;
|
23
|
+
given: string[];
|
24
|
+
family: string;
|
25
|
+
}[];
|
26
|
+
role: string;
|
27
|
+
signatureFilename?: string | undefined;
|
28
|
+
}, {
|
2
29
|
id: string;
|
3
30
|
name: {
|
4
31
|
use: string;
|
@@ -6,10 +33,7 @@ export type User = {
|
|
6
33
|
family: string;
|
7
34
|
}[];
|
8
35
|
role: string;
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
*/
|
13
|
-
signatureFilename?: string;
|
14
|
-
};
|
36
|
+
signatureFilename?: string | undefined;
|
37
|
+
}>;
|
38
|
+
export type User = z.infer<typeof User>;
|
15
39
|
//# sourceMappingURL=User.d.ts.map
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { z } from 'zod';
|
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"]>;
|
5
|
+
export type WorkqueueColumnKeys = z.infer<typeof WorkqueueColumnKeys>;
|
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"]>;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
10
|
+
}, {
|
11
|
+
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
12
|
+
}>;
|
13
|
+
export type WorkqueueColumnValue = z.infer<typeof WorkqueueColumnValue>;
|
14
|
+
/**
|
15
|
+
* Configuration for column header and value of cell of workqueue.
|
16
|
+
*/
|
17
|
+
export declare const WorkqueueColumn: z.ZodObject<{
|
18
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
19
|
+
id: string;
|
20
|
+
description: string;
|
21
|
+
defaultMessage: string;
|
22
|
+
}>;
|
23
|
+
value: z.ZodObject<{
|
24
|
+
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
26
|
+
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
27
|
+
}, {
|
28
|
+
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
29
|
+
}>;
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
31
|
+
value: {
|
32
|
+
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
33
|
+
};
|
34
|
+
label: TranslationConfig;
|
35
|
+
}, {
|
36
|
+
value: {
|
37
|
+
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
38
|
+
};
|
39
|
+
label: {
|
40
|
+
id: string;
|
41
|
+
description: string;
|
42
|
+
defaultMessage: string;
|
43
|
+
};
|
44
|
+
}>;
|
45
|
+
export type WorkqueueColumn = z.infer<typeof WorkqueueColumn>;
|
46
|
+
export type WorkqueueColumnInput = z.infer<typeof WorkqueueColumn>;
|
47
|
+
export declare function defineWorkqueuesColumns(workqueueColumns: WorkqueueColumnInput[]): {
|
48
|
+
value: {
|
49
|
+
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
50
|
+
};
|
51
|
+
label: TranslationConfig;
|
52
|
+
}[];
|
53
|
+
//# sourceMappingURL=WorkqueueColumnConfig.d.ts.map
|