@opencrvs/toolkit 1.8.0-rc.fc4c805 → 1.8.0-rc.fcd89ec
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 +2961 -195
- package/dist/commons/events/ActionConfig.d.ts +8022 -1007
- package/dist/commons/events/ActionDocument.d.ts +105 -105
- package/dist/commons/events/ActionInput.d.ts +3 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +603 -12
- package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
- package/dist/commons/events/Draft.d.ts +5 -5
- package/dist/commons/events/EventConfig.d.ts +3622 -113
- package/dist/commons/events/EventDocument.d.ts +80 -80
- package/dist/commons/events/EventIndex.d.ts +202 -312
- package/dist/commons/events/EventMetadata.d.ts +34 -33
- 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/WorkqueueConfig.d.ts +169 -559
- package/dist/commons/events/defineConfig.d.ts +253 -1
- package/dist/commons/events/event.d.ts +35 -8
- package/dist/commons/events/field.d.ts +21 -7
- package/dist/commons/events/scopes.d.ts +20 -1
- package/dist/commons/events/test.utils.d.ts +3 -3
- package/dist/commons/events/utils.d.ts +116 -1
- package/dist/events/index.js +813 -341
- package/dist/scopes/index.d.ts +158 -1
- package/dist/scopes/index.js +152 -1
- package/package.json +1 -1
@@ -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,55 @@ 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>>;
|
256
257
|
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
257
258
|
updatedAt: z.ZodString;
|
258
259
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -267,7 +268,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
267
268
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
268
269
|
createdAt: string;
|
269
270
|
createdBy: string;
|
270
|
-
createdAtLocation: string;
|
271
271
|
updatedAt: string;
|
272
272
|
trackingId: string;
|
273
273
|
legalStatuses: {
|
@@ -275,20 +275,21 @@ export declare const EventMetadata: z.ZodObject<{
|
|
275
275
|
createdAt: string;
|
276
276
|
createdBy: string;
|
277
277
|
createdByRole: string;
|
278
|
-
createdAtLocation: string;
|
279
278
|
acceptedAt: string;
|
279
|
+
createdAtLocation?: string | null | undefined;
|
280
280
|
} | null | undefined;
|
281
281
|
REGISTERED?: {
|
282
282
|
createdAt: string;
|
283
283
|
createdBy: string;
|
284
284
|
createdByRole: string;
|
285
|
-
createdAtLocation: string;
|
286
285
|
registrationNumber: string;
|
287
286
|
acceptedAt: string;
|
287
|
+
createdAtLocation?: string | null | undefined;
|
288
288
|
} | null | undefined;
|
289
289
|
};
|
290
290
|
updatedByUserRole: string;
|
291
291
|
flags: string[];
|
292
|
+
createdAtLocation?: string | null | undefined;
|
292
293
|
assignedTo?: string | null | undefined;
|
293
294
|
dateOfEvent?: string | null | undefined;
|
294
295
|
updatedAtLocation?: string | null | undefined;
|
@@ -299,7 +300,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
299
300
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
300
301
|
createdAt: string;
|
301
302
|
createdBy: string;
|
302
|
-
createdAtLocation: string;
|
303
303
|
updatedAt: string;
|
304
304
|
trackingId: string;
|
305
305
|
legalStatuses: {
|
@@ -307,20 +307,21 @@ export declare const EventMetadata: z.ZodObject<{
|
|
307
307
|
createdAt: string;
|
308
308
|
createdBy: string;
|
309
309
|
createdByRole: string;
|
310
|
-
createdAtLocation: string;
|
311
310
|
acceptedAt: string;
|
311
|
+
createdAtLocation?: string | null | undefined;
|
312
312
|
} | null | undefined;
|
313
313
|
REGISTERED?: {
|
314
314
|
createdAt: string;
|
315
315
|
createdBy: string;
|
316
316
|
createdByRole: string;
|
317
|
-
createdAtLocation: string;
|
318
317
|
registrationNumber: string;
|
319
318
|
acceptedAt: string;
|
319
|
+
createdAtLocation?: string | null | undefined;
|
320
320
|
} | null | undefined;
|
321
321
|
};
|
322
322
|
updatedByUserRole: string;
|
323
323
|
flags: string[];
|
324
|
+
createdAtLocation?: string | null | undefined;
|
324
325
|
assignedTo?: string | null | undefined;
|
325
326
|
dateOfEvent?: string | null | undefined;
|
326
327
|
updatedAtLocation?: string | null | undefined;
|