@opencrvs/toolkit 1.8.0-rc.f466807 → 1.8.0-rc.f7e8fb5
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 +445 -697
- package/dist/commons/conditionals/validate.d.ts +0 -27
- package/dist/commons/events/ActionConfig.d.ts +142 -4410
- package/dist/commons/events/ActionDocument.d.ts +103 -103
- package/dist/commons/events/ActionInput.d.ts +156 -156
- package/dist/commons/events/Draft.d.ts +16 -16
- package/dist/commons/events/EventConfig.d.ts +112 -1680
- package/dist/commons/events/EventConfigInput.d.ts +2 -2
- package/dist/commons/events/EventDocument.d.ts +150 -150
- package/dist/commons/events/FieldConfig.d.ts +2 -158
- package/dist/commons/events/FieldType.d.ts +1 -2
- package/dist/commons/events/FieldTypeMapping.d.ts +2 -52
- package/dist/commons/events/FieldValue.d.ts +4 -6
- package/dist/commons/events/FormConfig.d.ts +23 -361
- package/dist/commons/events/defineConfig.d.ts +28 -280
- package/dist/commons/events/test.utils.d.ts +13 -15
- package/dist/commons/events/utils.d.ts +11 -84
- package/dist/events/index.js +57 -466
- package/package.json +1 -1
- package/dist/commons/conditionals/validate.test.d.ts +0 -2
@@ -86,7 +86,7 @@ export declare const Draft: z.ZodObject<{
|
|
86
86
|
province: string;
|
87
87
|
urbanOrRural: "RURAL";
|
88
88
|
village?: string | null | undefined;
|
89
|
-
}
|
89
|
+
}>]>>;
|
90
90
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
91
91
|
filename: z.ZodString;
|
92
92
|
originalFilename: z.ZodString;
|
@@ -164,7 +164,7 @@ export declare const Draft: z.ZodObject<{
|
|
164
164
|
province: string;
|
165
165
|
urbanOrRural: "RURAL";
|
166
166
|
village?: string | null | undefined;
|
167
|
-
}
|
167
|
+
}>]>>>;
|
168
168
|
createdAtLocation: z.ZodString;
|
169
169
|
}, {
|
170
170
|
type: z.ZodEnum<[ActionType, ...ActionType[]]>;
|
@@ -195,7 +195,7 @@ export declare const Draft: z.ZodObject<{
|
|
195
195
|
option: string;
|
196
196
|
filename: string;
|
197
197
|
originalFilename: string;
|
198
|
-
}[]
|
198
|
+
}[]>;
|
199
199
|
createdAt: string;
|
200
200
|
createdBy: string;
|
201
201
|
createdAtLocation: string;
|
@@ -224,7 +224,7 @@ export declare const Draft: z.ZodObject<{
|
|
224
224
|
option: string;
|
225
225
|
filename: string;
|
226
226
|
originalFilename: string;
|
227
|
-
}[]
|
227
|
+
}[]> | undefined;
|
228
228
|
}, {
|
229
229
|
type: ActionType;
|
230
230
|
data: Record<string, string | number | boolean | {
|
@@ -252,7 +252,7 @@ export declare const Draft: z.ZodObject<{
|
|
252
252
|
option: string;
|
253
253
|
filename: string;
|
254
254
|
originalFilename: string;
|
255
|
-
}[]
|
255
|
+
}[]>;
|
256
256
|
createdAt: string;
|
257
257
|
createdBy: string;
|
258
258
|
createdAtLocation: string;
|
@@ -281,7 +281,7 @@ export declare const Draft: z.ZodObject<{
|
|
281
281
|
option: string;
|
282
282
|
filename: string;
|
283
283
|
originalFilename: string;
|
284
|
-
}[]
|
284
|
+
}[]> | undefined;
|
285
285
|
}>;
|
286
286
|
}, "strip", z.ZodTypeAny, {
|
287
287
|
id: string;
|
@@ -315,7 +315,7 @@ export declare const Draft: z.ZodObject<{
|
|
315
315
|
option: string;
|
316
316
|
filename: string;
|
317
317
|
originalFilename: string;
|
318
|
-
}[]
|
318
|
+
}[]>;
|
319
319
|
createdAt: string;
|
320
320
|
createdBy: string;
|
321
321
|
createdAtLocation: string;
|
@@ -344,7 +344,7 @@ export declare const Draft: z.ZodObject<{
|
|
344
344
|
option: string;
|
345
345
|
filename: string;
|
346
346
|
originalFilename: string;
|
347
|
-
}[]
|
347
|
+
}[]> | undefined;
|
348
348
|
};
|
349
349
|
}, {
|
350
350
|
id: string;
|
@@ -378,7 +378,7 @@ export declare const Draft: z.ZodObject<{
|
|
378
378
|
option: string;
|
379
379
|
filename: string;
|
380
380
|
originalFilename: string;
|
381
|
-
}[]
|
381
|
+
}[]>;
|
382
382
|
createdAt: string;
|
383
383
|
createdBy: string;
|
384
384
|
createdAtLocation: string;
|
@@ -407,7 +407,7 @@ export declare const Draft: z.ZodObject<{
|
|
407
407
|
option: string;
|
408
408
|
filename: string;
|
409
409
|
originalFilename: string;
|
410
|
-
}[]
|
410
|
+
}[]> | undefined;
|
411
411
|
};
|
412
412
|
}>;
|
413
413
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
@@ -490,7 +490,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
490
490
|
province: string;
|
491
491
|
urbanOrRural: "RURAL";
|
492
492
|
village?: string | null | undefined;
|
493
|
-
}
|
493
|
+
}>]>>;
|
494
494
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
495
495
|
filename: z.ZodString;
|
496
496
|
originalFilename: z.ZodString;
|
@@ -568,7 +568,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
568
568
|
province: string;
|
569
569
|
urbanOrRural: "RURAL";
|
570
570
|
village?: string | null | undefined;
|
571
|
-
}
|
571
|
+
}>]>>>;
|
572
572
|
}, {
|
573
573
|
type: z.ZodEnum<[ActionType, ...ActionType[]]>;
|
574
574
|
}>, "strip", z.ZodTypeAny, {
|
@@ -598,7 +598,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
598
598
|
option: string;
|
599
599
|
filename: string;
|
600
600
|
originalFilename: string;
|
601
|
-
}[]
|
601
|
+
}[]>;
|
602
602
|
eventId: string;
|
603
603
|
transactionId: string;
|
604
604
|
metadata?: Record<string, string | number | boolean | {
|
@@ -626,7 +626,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
626
626
|
option: string;
|
627
627
|
filename: string;
|
628
628
|
originalFilename: string;
|
629
|
-
}[]
|
629
|
+
}[]> | undefined;
|
630
630
|
}, {
|
631
631
|
type: ActionType;
|
632
632
|
data: Record<string, string | number | boolean | {
|
@@ -654,7 +654,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
654
654
|
option: string;
|
655
655
|
filename: string;
|
656
656
|
originalFilename: string;
|
657
|
-
}[]
|
657
|
+
}[]>;
|
658
658
|
eventId: string;
|
659
659
|
transactionId: string;
|
660
660
|
metadata?: Record<string, string | number | boolean | {
|
@@ -682,7 +682,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
682
682
|
option: string;
|
683
683
|
filename: string;
|
684
684
|
originalFilename: string;
|
685
|
-
}[]
|
685
|
+
}[]> | undefined;
|
686
686
|
}>;
|
687
687
|
export type Draft = z.infer<typeof Draft>;
|
688
688
|
export type DraftInput = z.infer<typeof DraftInput>;
|