@opencrvs/toolkit 1.8.0-rc.ffe24c3 → 1.8.1-rc.008155b
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 +1791 -14926
- package/dist/commons/conditionals/conditionals.d.ts +0 -12
- package/dist/commons/conditionals/validate.d.ts +5 -0
- package/dist/commons/events/ActionConfig.d.ts +37041 -35133
- package/dist/commons/events/ActionDocument.d.ts +3742 -1637
- package/dist/commons/events/ActionInput.d.ts +2342 -1380
- package/dist/commons/events/ActionType.d.ts +7 -4
- package/dist/commons/events/AdvancedSearchConfig.d.ts +153 -86
- package/dist/commons/events/CompositeFieldValue.d.ts +15 -15
- package/dist/commons/events/CountryConfigQueryInput.d.ts +1174 -772
- package/dist/commons/events/Draft.d.ts +190 -118
- package/dist/commons/events/EventConfig.d.ts +20268 -22409
- package/dist/commons/events/EventDocument.d.ts +1714 -1021
- package/dist/commons/events/EventIndex.d.ts +523 -182
- package/dist/commons/events/EventMetadata.d.ts +9 -7
- package/dist/commons/events/FieldConfig.d.ts +1527 -455
- package/dist/commons/events/FieldType.d.ts +3 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +80 -41
- package/dist/commons/events/FieldValue.d.ts +58 -28
- package/dist/commons/events/FormConfig.d.ts +9263 -2657
- package/dist/commons/events/PageConfig.d.ts +3642 -2028
- package/dist/commons/events/SummaryConfig.d.ts +10 -10
- package/dist/commons/events/User.d.ts +6 -3
- package/dist/commons/events/WorkqueueConfig.d.ts +2290 -1350
- package/dist/commons/events/defineConfig.d.ts +2761 -3252
- package/dist/commons/events/event.d.ts +19 -19
- package/dist/commons/events/field.d.ts +27 -1
- package/dist/commons/events/scopes.d.ts +2 -1
- package/dist/commons/events/test.utils.d.ts +62 -34
- package/dist/commons/events/utils.d.ts +8851 -6797
- package/dist/conditionals/index.js +25 -55
- package/dist/events/index.js +1657 -1377
- package/dist/scopes/index.d.ts +92 -6
- package/dist/scopes/index.js +38 -9
- package/package.json +3 -3
@@ -3,21 +3,23 @@ import { TranslationConfig } from './TranslationConfig';
|
|
3
3
|
/**
|
4
4
|
* Event statuses recognized by the system
|
5
5
|
*/
|
6
|
-
export declare const EventStatus: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "
|
6
|
+
export declare const EventStatus: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
7
7
|
export type EventStatus = z.infer<typeof EventStatus>;
|
8
8
|
export declare const InherentFlags: {
|
9
|
-
readonly
|
9
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
10
10
|
readonly INCOMPLETE: "incomplete";
|
11
11
|
readonly REJECTED: "rejected";
|
12
12
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
13
13
|
};
|
14
14
|
export type InherentFlags = (typeof InherentFlags)[keyof typeof InherentFlags];
|
15
|
+
export declare const ActionFlag: z.ZodString;
|
15
16
|
export declare const Flag: z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
16
|
-
readonly
|
17
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
17
18
|
readonly INCOMPLETE: "incomplete";
|
18
19
|
readonly REJECTED: "rejected";
|
19
20
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
20
21
|
}>]>;
|
22
|
+
export type ActionFlag = z.infer<typeof ActionFlag>;
|
21
23
|
export type Flag = z.infer<typeof Flag>;
|
22
24
|
export declare const ZodDate: z.ZodString;
|
23
25
|
export declare const ActionCreationMetadata: z.ZodObject<{
|
@@ -180,7 +182,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
180
182
|
export declare const EventMetadata: z.ZodObject<{
|
181
183
|
id: z.ZodBranded<z.ZodString, "UUID">;
|
182
184
|
type: z.ZodString;
|
183
|
-
status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "
|
185
|
+
status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
|
184
186
|
legalStatuses: z.ZodObject<{
|
185
187
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
186
188
|
createdAt: z.ZodString;
|
@@ -290,7 +292,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
290
292
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
291
293
|
trackingId: z.ZodString;
|
292
294
|
flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
293
|
-
readonly
|
295
|
+
readonly PENDING_CERTIFICATION: "pending-certification";
|
294
296
|
readonly INCOMPLETE: "incomplete";
|
295
297
|
readonly REJECTED: "rejected";
|
296
298
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
@@ -298,7 +300,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
298
300
|
}, "strip", z.ZodTypeAny, {
|
299
301
|
type: string;
|
300
302
|
id: string & z.BRAND<"UUID">;
|
301
|
-
status: "ARCHIVED" | "
|
303
|
+
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
302
304
|
createdAt: string;
|
303
305
|
createdBy: string;
|
304
306
|
updatedAt: string;
|
@@ -336,7 +338,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
336
338
|
}, {
|
337
339
|
type: string;
|
338
340
|
id: string;
|
339
|
-
status: "ARCHIVED" | "
|
341
|
+
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
340
342
|
createdAt: string;
|
341
343
|
createdBy: string;
|
342
344
|
updatedAt: string;
|