@opencrvs/toolkit 1.8.0-rc.fe7c504 → 1.8.0-rc.fe8c092
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 +10468 -1335
- package/dist/commons/events/ActionConfig.d.ts +0 -2600
- package/dist/commons/events/ActionDocument.d.ts +1087 -1081
- package/dist/commons/events/ActionInput.d.ts +726 -726
- package/dist/commons/events/ActionType.d.ts +2 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +18 -222
- package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
- package/dist/commons/events/CountryConfigQueryInput.d.ts +572 -1234
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
- package/dist/commons/events/Draft.d.ts +77 -77
- package/dist/commons/events/EventConfig.d.ts +0 -1458
- package/dist/commons/events/EventDocument.d.ts +711 -706
- package/dist/commons/events/EventIndex.d.ts +151 -135
- package/dist/commons/events/EventMetadata.d.ts +29 -38
- package/dist/commons/events/FieldConfig.d.ts +0 -178
- package/dist/commons/events/FieldTypeMapping.d.ts +16 -16
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/FormConfig.d.ts +0 -1092
- package/dist/commons/events/PageConfig.d.ts +0 -260
- package/dist/commons/events/User.d.ts +3 -6
- package/dist/commons/events/WorkqueueConfig.d.ts +1028 -2038
- package/dist/commons/events/defineConfig.d.ts +0 -294
- package/dist/commons/events/field.d.ts +0 -5
- package/dist/commons/events/test.utils.d.ts +19 -30
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +15 -440
- package/dist/conditionals/index.js +18 -22
- package/dist/events/index.js +185 -303
- package/dist/scopes/index.d.ts +6 -92
- package/dist/scopes/index.js +9 -38
- package/package.json +3 -3
@@ -5,25 +5,19 @@ import { TranslationConfig } from './TranslationConfig';
|
|
5
5
|
*/
|
6
6
|
export declare const EventStatus: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
|
7
7
|
export type EventStatus = z.infer<typeof EventStatus>;
|
8
|
-
export declare const
|
9
|
-
readonly
|
10
|
-
readonly INCOMPLETE: "incomplete";
|
11
|
-
readonly REJECTED: "rejected";
|
12
|
-
readonly CORRECTION_REQUESTED: "correction-requested";
|
8
|
+
export declare const CustomFlags: {
|
9
|
+
readonly CERTIFICATE_PRINTED: "certificate-printed";
|
13
10
|
};
|
14
|
-
export type
|
11
|
+
export type CustomFlags = (typeof CustomFlags)[keyof typeof CustomFlags];
|
15
12
|
export declare const Flag: z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
16
|
-
readonly
|
17
|
-
readonly INCOMPLETE: "incomplete";
|
18
|
-
readonly REJECTED: "rejected";
|
19
|
-
readonly CORRECTION_REQUESTED: "correction-requested";
|
13
|
+
readonly CERTIFICATE_PRINTED: "certificate-printed";
|
20
14
|
}>]>;
|
21
15
|
export type Flag = z.infer<typeof Flag>;
|
22
16
|
export declare const ZodDate: z.ZodString;
|
23
17
|
export declare const ActionCreationMetadata: z.ZodObject<{
|
24
18
|
createdAt: z.ZodString;
|
25
19
|
createdBy: z.ZodString;
|
26
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.
|
20
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
27
21
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
28
22
|
acceptedAt: z.ZodString;
|
29
23
|
createdByRole: z.ZodString;
|
@@ -35,7 +29,7 @@ export declare const ActionCreationMetadata: z.ZodObject<{
|
|
35
29
|
acceptedAt: string;
|
36
30
|
createdByUserType?: "system" | "user" | null | undefined;
|
37
31
|
createdBySignature?: string | null | undefined;
|
38
|
-
createdAtLocation?:
|
32
|
+
createdAtLocation?: string | null | undefined;
|
39
33
|
}, {
|
40
34
|
createdAt: string;
|
41
35
|
createdBy: string;
|
@@ -49,7 +43,7 @@ export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
|
|
49
43
|
export declare const RegistrationCreationMetadata: z.ZodObject<z.objectUtil.extendShape<{
|
50
44
|
createdAt: z.ZodString;
|
51
45
|
createdBy: z.ZodString;
|
52
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.
|
46
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
53
47
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
54
48
|
acceptedAt: z.ZodString;
|
55
49
|
createdByRole: z.ZodString;
|
@@ -64,7 +58,7 @@ export declare const RegistrationCreationMetadata: z.ZodObject<z.objectUtil.exte
|
|
64
58
|
acceptedAt: string;
|
65
59
|
createdByUserType?: "system" | "user" | null | undefined;
|
66
60
|
createdBySignature?: string | null | undefined;
|
67
|
-
createdAtLocation?:
|
61
|
+
createdAtLocation?: string | null | undefined;
|
68
62
|
}, {
|
69
63
|
createdAt: string;
|
70
64
|
createdBy: string;
|
@@ -80,7 +74,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
80
74
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
81
75
|
createdAt: z.ZodString;
|
82
76
|
createdBy: z.ZodString;
|
83
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.
|
77
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
84
78
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
85
79
|
acceptedAt: z.ZodString;
|
86
80
|
createdByRole: z.ZodString;
|
@@ -92,7 +86,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
92
86
|
acceptedAt: string;
|
93
87
|
createdByUserType?: "system" | "user" | null | undefined;
|
94
88
|
createdBySignature?: string | null | undefined;
|
95
|
-
createdAtLocation?:
|
89
|
+
createdAtLocation?: string | null | undefined;
|
96
90
|
}, {
|
97
91
|
createdAt: string;
|
98
92
|
createdBy: string;
|
@@ -105,7 +99,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
105
99
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
106
100
|
createdAt: z.ZodString;
|
107
101
|
createdBy: z.ZodString;
|
108
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.
|
102
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
109
103
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
110
104
|
acceptedAt: z.ZodString;
|
111
105
|
createdByRole: z.ZodString;
|
@@ -120,7 +114,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
120
114
|
acceptedAt: string;
|
121
115
|
createdByUserType?: "system" | "user" | null | undefined;
|
122
116
|
createdBySignature?: string | null | undefined;
|
123
|
-
createdAtLocation?:
|
117
|
+
createdAtLocation?: string | null | undefined;
|
124
118
|
}, {
|
125
119
|
createdAt: string;
|
126
120
|
createdBy: string;
|
@@ -139,7 +133,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
139
133
|
acceptedAt: string;
|
140
134
|
createdByUserType?: "system" | "user" | null | undefined;
|
141
135
|
createdBySignature?: string | null | undefined;
|
142
|
-
createdAtLocation?:
|
136
|
+
createdAtLocation?: string | null | undefined;
|
143
137
|
} | null | undefined;
|
144
138
|
REGISTERED?: {
|
145
139
|
createdAt: string;
|
@@ -149,7 +143,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
149
143
|
acceptedAt: string;
|
150
144
|
createdByUserType?: "system" | "user" | null | undefined;
|
151
145
|
createdBySignature?: string | null | undefined;
|
152
|
-
createdAtLocation?:
|
146
|
+
createdAtLocation?: string | null | undefined;
|
153
147
|
} | null | undefined;
|
154
148
|
}, {
|
155
149
|
DECLARED?: {
|
@@ -178,14 +172,14 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
178
172
|
* Accessed through `event.` in configuration.
|
179
173
|
*/
|
180
174
|
export declare const EventMetadata: z.ZodObject<{
|
181
|
-
id: z.
|
175
|
+
id: z.ZodString;
|
182
176
|
type: z.ZodString;
|
183
177
|
status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
|
184
178
|
legalStatuses: z.ZodObject<{
|
185
179
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
186
180
|
createdAt: z.ZodString;
|
187
181
|
createdBy: z.ZodString;
|
188
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.
|
182
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
189
183
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
190
184
|
acceptedAt: z.ZodString;
|
191
185
|
createdByRole: z.ZodString;
|
@@ -197,7 +191,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
197
191
|
acceptedAt: string;
|
198
192
|
createdByUserType?: "system" | "user" | null | undefined;
|
199
193
|
createdBySignature?: string | null | undefined;
|
200
|
-
createdAtLocation?:
|
194
|
+
createdAtLocation?: string | null | undefined;
|
201
195
|
}, {
|
202
196
|
createdAt: string;
|
203
197
|
createdBy: string;
|
@@ -210,7 +204,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
210
204
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
211
205
|
createdAt: z.ZodString;
|
212
206
|
createdBy: z.ZodString;
|
213
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.
|
207
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
214
208
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
215
209
|
acceptedAt: z.ZodString;
|
216
210
|
createdByRole: z.ZodString;
|
@@ -225,7 +219,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
225
219
|
acceptedAt: string;
|
226
220
|
createdByUserType?: "system" | "user" | null | undefined;
|
227
221
|
createdBySignature?: string | null | undefined;
|
228
|
-
createdAtLocation?:
|
222
|
+
createdAtLocation?: string | null | undefined;
|
229
223
|
}, {
|
230
224
|
createdAt: string;
|
231
225
|
createdBy: string;
|
@@ -244,7 +238,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
244
238
|
acceptedAt: string;
|
245
239
|
createdByUserType?: "system" | "user" | null | undefined;
|
246
240
|
createdBySignature?: string | null | undefined;
|
247
|
-
createdAtLocation?:
|
241
|
+
createdAtLocation?: string | null | undefined;
|
248
242
|
} | null | undefined;
|
249
243
|
REGISTERED?: {
|
250
244
|
createdAt: string;
|
@@ -254,7 +248,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
254
248
|
acceptedAt: string;
|
255
249
|
createdByUserType?: "system" | "user" | null | undefined;
|
256
250
|
createdBySignature?: string | null | undefined;
|
257
|
-
createdAtLocation?:
|
251
|
+
createdAtLocation?: string | null | undefined;
|
258
252
|
} | null | undefined;
|
259
253
|
}, {
|
260
254
|
DECLARED?: {
|
@@ -282,22 +276,19 @@ export declare const EventMetadata: z.ZodObject<{
|
|
282
276
|
createdBy: z.ZodString;
|
283
277
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
284
278
|
updatedByUserRole: z.ZodString;
|
285
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.
|
279
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
286
280
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
287
|
-
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.
|
281
|
+
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
288
282
|
updatedAt: z.ZodString;
|
289
283
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
290
284
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
291
285
|
trackingId: z.ZodString;
|
292
286
|
flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
293
|
-
readonly
|
294
|
-
readonly INCOMPLETE: "incomplete";
|
295
|
-
readonly REJECTED: "rejected";
|
296
|
-
readonly CORRECTION_REQUESTED: "correction-requested";
|
287
|
+
readonly CERTIFICATE_PRINTED: "certificate-printed";
|
297
288
|
}>]>, "many">;
|
298
289
|
}, "strip", z.ZodTypeAny, {
|
299
290
|
type: string;
|
300
|
-
id: string
|
291
|
+
id: string;
|
301
292
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
302
293
|
createdAt: string;
|
303
294
|
createdBy: string;
|
@@ -311,7 +302,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
311
302
|
acceptedAt: string;
|
312
303
|
createdByUserType?: "system" | "user" | null | undefined;
|
313
304
|
createdBySignature?: string | null | undefined;
|
314
|
-
createdAtLocation?:
|
305
|
+
createdAtLocation?: string | null | undefined;
|
315
306
|
} | null | undefined;
|
316
307
|
REGISTERED?: {
|
317
308
|
createdAt: string;
|
@@ -321,17 +312,17 @@ export declare const EventMetadata: z.ZodObject<{
|
|
321
312
|
acceptedAt: string;
|
322
313
|
createdByUserType?: "system" | "user" | null | undefined;
|
323
314
|
createdBySignature?: string | null | undefined;
|
324
|
-
createdAtLocation?:
|
315
|
+
createdAtLocation?: string | null | undefined;
|
325
316
|
} | null | undefined;
|
326
317
|
};
|
327
318
|
updatedByUserRole: string;
|
328
319
|
flags: string[];
|
329
320
|
createdByUserType?: "system" | "user" | null | undefined;
|
330
321
|
createdBySignature?: string | null | undefined;
|
331
|
-
createdAtLocation?:
|
322
|
+
createdAtLocation?: string | null | undefined;
|
332
323
|
assignedTo?: string | null | undefined;
|
333
324
|
dateOfEvent?: string | null | undefined;
|
334
|
-
updatedAtLocation?:
|
325
|
+
updatedAtLocation?: string | null | undefined;
|
335
326
|
updatedBy?: string | null | undefined;
|
336
327
|
}, {
|
337
328
|
type: string;
|