@opencrvs/toolkit 1.8.0-rc.fc4c805 → 1.8.0-rc.fcb9386
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 +6983 -4338
- package/dist/commons/conditionals/conditionals.d.ts +2 -1
- package/dist/commons/events/ActionConfig.d.ts +40400 -36948
- package/dist/commons/events/ActionDocument.d.ts +292 -105
- package/dist/commons/events/ActionInput.d.ts +75 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +603 -12
- 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 +3 -0
- package/dist/commons/events/Draft.d.ts +10 -5
- package/dist/commons/events/EventConfig.d.ts +14558 -14829
- package/dist/commons/events/EventDocument.d.ts +212 -93
- package/dist/commons/events/EventIndex.d.ts +298 -319
- package/dist/commons/events/EventInput.d.ts +0 -13
- package/dist/commons/events/EventMetadata.d.ts +38 -44
- package/dist/commons/events/FieldConfig.d.ts +517 -0
- package/dist/commons/events/FormConfig.d.ts +3641 -467
- package/dist/commons/events/PageConfig.d.ts +782 -0
- 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 +4033 -644
- package/dist/commons/events/defineConfig.d.ts +3050 -3519
- package/dist/commons/events/event.d.ts +37 -10
- package/dist/commons/events/field.d.ts +21 -7
- package/dist/commons/events/index.d.ts +4 -0
- package/dist/commons/events/scopes.d.ts +21 -2
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +26 -6
- package/dist/commons/events/utils.d.ts +117 -1
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +19 -2
- package/dist/events/index.js +2382 -988
- package/dist/scopes/index.d.ts +158 -1
- package/dist/scopes/index.js +152 -1
- 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
|
@@ -14,6 +14,7 @@ export declare const EventStatus: {
|
|
14
14
|
readonly ARCHIVED: "ARCHIVED";
|
15
15
|
};
|
16
16
|
export type EventStatus = (typeof EventStatus)[keyof typeof EventStatus];
|
17
|
+
export declare const EventStatusEnum: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
|
17
18
|
export declare const CustomFlags: {
|
18
19
|
readonly CERTIFICATE_PRINTED: "certificate-printed";
|
19
20
|
};
|
@@ -37,27 +38,27 @@ export declare const ZodDate: z.ZodString;
|
|
37
38
|
export declare const ActionCreationMetadata: z.ZodObject<{
|
38
39
|
createdAt: z.ZodString;
|
39
40
|
createdBy: z.ZodString;
|
40
|
-
createdAtLocation: z.ZodString
|
41
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
41
42
|
acceptedAt: z.ZodString;
|
42
43
|
createdByRole: z.ZodString;
|
43
44
|
}, "strip", z.ZodTypeAny, {
|
44
45
|
createdAt: string;
|
45
46
|
createdBy: string;
|
46
47
|
createdByRole: string;
|
47
|
-
createdAtLocation: string;
|
48
48
|
acceptedAt: string;
|
49
|
+
createdAtLocation?: string | null | undefined;
|
49
50
|
}, {
|
50
51
|
createdAt: string;
|
51
52
|
createdBy: string;
|
52
53
|
createdByRole: string;
|
53
|
-
createdAtLocation: string;
|
54
54
|
acceptedAt: string;
|
55
|
+
createdAtLocation?: string | null | undefined;
|
55
56
|
}>;
|
56
57
|
export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
|
57
58
|
export declare const RegistrationCreationMetadata: z.ZodObject<z.objectUtil.extendShape<{
|
58
59
|
createdAt: z.ZodString;
|
59
60
|
createdBy: z.ZodString;
|
60
|
-
createdAtLocation: z.ZodString
|
61
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
61
62
|
acceptedAt: z.ZodString;
|
62
63
|
createdByRole: z.ZodString;
|
63
64
|
}, {
|
@@ -66,42 +67,42 @@ export declare const RegistrationCreationMetadata: z.ZodObject<z.objectUtil.exte
|
|
66
67
|
createdAt: string;
|
67
68
|
createdBy: string;
|
68
69
|
createdByRole: string;
|
69
|
-
createdAtLocation: string;
|
70
70
|
registrationNumber: string;
|
71
71
|
acceptedAt: string;
|
72
|
+
createdAtLocation?: string | null | undefined;
|
72
73
|
}, {
|
73
74
|
createdAt: string;
|
74
75
|
createdBy: string;
|
75
76
|
createdByRole: string;
|
76
|
-
createdAtLocation: string;
|
77
77
|
registrationNumber: string;
|
78
78
|
acceptedAt: string;
|
79
|
+
createdAtLocation?: string | null | undefined;
|
79
80
|
}>;
|
80
81
|
export type RegistrationCreationMetadata = z.infer<typeof RegistrationCreationMetadata>;
|
81
82
|
export declare const LegalStatuses: z.ZodObject<{
|
82
83
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
83
84
|
createdAt: z.ZodString;
|
84
85
|
createdBy: z.ZodString;
|
85
|
-
createdAtLocation: z.ZodString
|
86
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
86
87
|
acceptedAt: z.ZodString;
|
87
88
|
createdByRole: z.ZodString;
|
88
89
|
}, "strip", z.ZodTypeAny, {
|
89
90
|
createdAt: string;
|
90
91
|
createdBy: string;
|
91
92
|
createdByRole: string;
|
92
|
-
createdAtLocation: string;
|
93
93
|
acceptedAt: string;
|
94
|
+
createdAtLocation?: string | null | undefined;
|
94
95
|
}, {
|
95
96
|
createdAt: string;
|
96
97
|
createdBy: string;
|
97
98
|
createdByRole: string;
|
98
|
-
createdAtLocation: string;
|
99
99
|
acceptedAt: string;
|
100
|
+
createdAtLocation?: string | null | undefined;
|
100
101
|
}>>>;
|
101
102
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
102
103
|
createdAt: z.ZodString;
|
103
104
|
createdBy: z.ZodString;
|
104
|
-
createdAtLocation: z.ZodString
|
105
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
105
106
|
acceptedAt: z.ZodString;
|
106
107
|
createdByRole: z.ZodString;
|
107
108
|
}, {
|
@@ -110,48 +111,48 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
110
111
|
createdAt: string;
|
111
112
|
createdBy: string;
|
112
113
|
createdByRole: string;
|
113
|
-
createdAtLocation: string;
|
114
114
|
registrationNumber: string;
|
115
115
|
acceptedAt: string;
|
116
|
+
createdAtLocation?: string | null | undefined;
|
116
117
|
}, {
|
117
118
|
createdAt: string;
|
118
119
|
createdBy: string;
|
119
120
|
createdByRole: string;
|
120
|
-
createdAtLocation: string;
|
121
121
|
registrationNumber: string;
|
122
122
|
acceptedAt: string;
|
123
|
+
createdAtLocation?: string | null | undefined;
|
123
124
|
}>>>;
|
124
125
|
}, "strip", z.ZodTypeAny, {
|
125
126
|
DECLARED?: {
|
126
127
|
createdAt: string;
|
127
128
|
createdBy: string;
|
128
129
|
createdByRole: string;
|
129
|
-
createdAtLocation: string;
|
130
130
|
acceptedAt: string;
|
131
|
+
createdAtLocation?: string | null | undefined;
|
131
132
|
} | null | undefined;
|
132
133
|
REGISTERED?: {
|
133
134
|
createdAt: string;
|
134
135
|
createdBy: string;
|
135
136
|
createdByRole: string;
|
136
|
-
createdAtLocation: string;
|
137
137
|
registrationNumber: string;
|
138
138
|
acceptedAt: string;
|
139
|
+
createdAtLocation?: string | null | undefined;
|
139
140
|
} | null | undefined;
|
140
141
|
}, {
|
141
142
|
DECLARED?: {
|
142
143
|
createdAt: string;
|
143
144
|
createdBy: string;
|
144
145
|
createdByRole: string;
|
145
|
-
createdAtLocation: string;
|
146
146
|
acceptedAt: string;
|
147
|
+
createdAtLocation?: string | null | undefined;
|
147
148
|
} | null | undefined;
|
148
149
|
REGISTERED?: {
|
149
150
|
createdAt: string;
|
150
151
|
createdBy: string;
|
151
152
|
createdByRole: string;
|
152
|
-
createdAtLocation: string;
|
153
153
|
registrationNumber: string;
|
154
154
|
acceptedAt: string;
|
155
|
+
createdAtLocation?: string | null | undefined;
|
155
156
|
} | null | undefined;
|
156
157
|
}>;
|
157
158
|
/**
|
@@ -176,26 +177,26 @@ export declare const EventMetadata: z.ZodObject<{
|
|
176
177
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
177
178
|
createdAt: z.ZodString;
|
178
179
|
createdBy: z.ZodString;
|
179
|
-
createdAtLocation: z.ZodString
|
180
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
180
181
|
acceptedAt: z.ZodString;
|
181
182
|
createdByRole: z.ZodString;
|
182
183
|
}, "strip", z.ZodTypeAny, {
|
183
184
|
createdAt: string;
|
184
185
|
createdBy: string;
|
185
186
|
createdByRole: string;
|
186
|
-
createdAtLocation: string;
|
187
187
|
acceptedAt: string;
|
188
|
+
createdAtLocation?: string | null | undefined;
|
188
189
|
}, {
|
189
190
|
createdAt: string;
|
190
191
|
createdBy: string;
|
191
192
|
createdByRole: string;
|
192
|
-
createdAtLocation: string;
|
193
193
|
acceptedAt: string;
|
194
|
+
createdAtLocation?: string | null | undefined;
|
194
195
|
}>>>;
|
195
196
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
196
197
|
createdAt: z.ZodString;
|
197
198
|
createdBy: z.ZodString;
|
198
|
-
createdAtLocation: z.ZodString
|
199
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
199
200
|
acceptedAt: z.ZodString;
|
200
201
|
createdByRole: z.ZodString;
|
201
202
|
}, {
|
@@ -204,55 +205,56 @@ export declare const EventMetadata: z.ZodObject<{
|
|
204
205
|
createdAt: string;
|
205
206
|
createdBy: string;
|
206
207
|
createdByRole: string;
|
207
|
-
createdAtLocation: string;
|
208
208
|
registrationNumber: string;
|
209
209
|
acceptedAt: string;
|
210
|
+
createdAtLocation?: string | null | undefined;
|
210
211
|
}, {
|
211
212
|
createdAt: string;
|
212
213
|
createdBy: string;
|
213
214
|
createdByRole: string;
|
214
|
-
createdAtLocation: string;
|
215
215
|
registrationNumber: string;
|
216
216
|
acceptedAt: string;
|
217
|
+
createdAtLocation?: string | null | undefined;
|
217
218
|
}>>>;
|
218
219
|
}, "strip", z.ZodTypeAny, {
|
219
220
|
DECLARED?: {
|
220
221
|
createdAt: string;
|
221
222
|
createdBy: string;
|
222
223
|
createdByRole: string;
|
223
|
-
createdAtLocation: string;
|
224
224
|
acceptedAt: string;
|
225
|
+
createdAtLocation?: string | null | undefined;
|
225
226
|
} | null | undefined;
|
226
227
|
REGISTERED?: {
|
227
228
|
createdAt: string;
|
228
229
|
createdBy: string;
|
229
230
|
createdByRole: string;
|
230
|
-
createdAtLocation: string;
|
231
231
|
registrationNumber: string;
|
232
232
|
acceptedAt: string;
|
233
|
+
createdAtLocation?: string | null | undefined;
|
233
234
|
} | null | undefined;
|
234
235
|
}, {
|
235
236
|
DECLARED?: {
|
236
237
|
createdAt: string;
|
237
238
|
createdBy: string;
|
238
239
|
createdByRole: string;
|
239
|
-
createdAtLocation: string;
|
240
240
|
acceptedAt: string;
|
241
|
+
createdAtLocation?: string | null | undefined;
|
241
242
|
} | null | undefined;
|
242
243
|
REGISTERED?: {
|
243
244
|
createdAt: string;
|
244
245
|
createdBy: string;
|
245
246
|
createdByRole: string;
|
246
|
-
createdAtLocation: string;
|
247
247
|
registrationNumber: string;
|
248
248
|
acceptedAt: string;
|
249
|
+
createdAtLocation?: string | null | undefined;
|
249
250
|
} | null | undefined;
|
250
251
|
}>;
|
251
252
|
createdAt: z.ZodString;
|
252
253
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
253
254
|
createdBy: z.ZodString;
|
254
255
|
updatedByUserRole: z.ZodString;
|
255
|
-
createdAtLocation: z.ZodString
|
256
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
257
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
256
258
|
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
257
259
|
updatedAt: z.ZodString;
|
258
260
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -267,7 +269,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
267
269
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
268
270
|
createdAt: string;
|
269
271
|
createdBy: string;
|
270
|
-
createdAtLocation: string;
|
271
272
|
updatedAt: string;
|
272
273
|
trackingId: string;
|
273
274
|
legalStatuses: {
|
@@ -275,20 +276,22 @@ export declare const EventMetadata: z.ZodObject<{
|
|
275
276
|
createdAt: string;
|
276
277
|
createdBy: string;
|
277
278
|
createdByRole: string;
|
278
|
-
createdAtLocation: string;
|
279
279
|
acceptedAt: string;
|
280
|
+
createdAtLocation?: string | null | undefined;
|
280
281
|
} | null | undefined;
|
281
282
|
REGISTERED?: {
|
282
283
|
createdAt: string;
|
283
284
|
createdBy: string;
|
284
285
|
createdByRole: string;
|
285
|
-
createdAtLocation: string;
|
286
286
|
registrationNumber: string;
|
287
287
|
acceptedAt: string;
|
288
|
+
createdAtLocation?: string | null | undefined;
|
288
289
|
} | null | undefined;
|
289
290
|
};
|
290
291
|
updatedByUserRole: string;
|
291
292
|
flags: string[];
|
293
|
+
createdBySignature?: string | null | undefined;
|
294
|
+
createdAtLocation?: string | null | undefined;
|
292
295
|
assignedTo?: string | null | undefined;
|
293
296
|
dateOfEvent?: string | null | undefined;
|
294
297
|
updatedAtLocation?: string | null | undefined;
|
@@ -299,7 +302,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
299
302
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
300
303
|
createdAt: string;
|
301
304
|
createdBy: string;
|
302
|
-
createdAtLocation: string;
|
303
305
|
updatedAt: string;
|
304
306
|
trackingId: string;
|
305
307
|
legalStatuses: {
|
@@ -307,39 +309,31 @@ export declare const EventMetadata: z.ZodObject<{
|
|
307
309
|
createdAt: string;
|
308
310
|
createdBy: string;
|
309
311
|
createdByRole: string;
|
310
|
-
createdAtLocation: string;
|
311
312
|
acceptedAt: string;
|
313
|
+
createdAtLocation?: string | null | undefined;
|
312
314
|
} | null | undefined;
|
313
315
|
REGISTERED?: {
|
314
316
|
createdAt: string;
|
315
317
|
createdBy: string;
|
316
318
|
createdByRole: string;
|
317
|
-
createdAtLocation: string;
|
318
319
|
registrationNumber: string;
|
319
320
|
acceptedAt: string;
|
321
|
+
createdAtLocation?: string | null | undefined;
|
320
322
|
} | null | undefined;
|
321
323
|
};
|
322
324
|
updatedByUserRole: string;
|
323
325
|
flags: string[];
|
326
|
+
createdBySignature?: string | null | undefined;
|
327
|
+
createdAtLocation?: string | null | undefined;
|
324
328
|
assignedTo?: string | null | undefined;
|
325
329
|
dateOfEvent?: string | null | undefined;
|
326
330
|
updatedAtLocation?: string | null | undefined;
|
327
331
|
updatedBy?: string | null | undefined;
|
328
332
|
}>;
|
329
333
|
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"];
|
330
335
|
export declare const EventMetadataKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
|
331
336
|
export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
|
332
|
-
/**
|
333
|
-
* This ensures `event.field()` takes a key from `EventMetadata`
|
334
|
-
*/
|
335
|
-
export declare const EventMetadataParameter: z.ZodObject<{
|
336
|
-
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
|
337
|
-
}, "strip", z.ZodTypeAny, {
|
338
|
-
$event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
339
|
-
}, {
|
340
|
-
$event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
341
|
-
}>;
|
342
|
-
export type EventMetadataParameter = z.infer<typeof EventMetadataParameter>;
|
343
337
|
/**
|
344
338
|
* Mapping of event metadata keys to translation configuration.
|
345
339
|
* Consider introducing type in same manner as we have in FieldConfig.
|