@opencrvs/toolkit 1.8.0-rc.f89fbcb → 1.8.0-rc.f8aa0c5
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 +589 -589
- package/dist/commons/events/ActionConfig.d.ts +256 -0
- package/dist/commons/events/ActionDocument.d.ts +700 -700
- package/dist/commons/events/ActionInput.d.ts +600 -600
- package/dist/commons/events/AdvancedSearchConfig.d.ts +18 -40
- package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
- package/dist/commons/events/Draft.d.ts +54 -54
- package/dist/commons/events/EventConfig.d.ts +106 -18
- package/dist/commons/events/EventDocument.d.ts +436 -436
- package/dist/commons/events/EventIndex.d.ts +15 -10
- package/dist/commons/events/FieldConfig.d.ts +20 -0
- 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 +108 -0
- package/dist/commons/events/PageConfig.d.ts +28 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +14 -14
- package/dist/commons/events/defineConfig.d.ts +22 -2
- package/dist/commons/events/field.d.ts +1 -13
- package/dist/commons/events/test.utils.d.ts +12 -12
- package/dist/commons/events/utils.d.ts +41 -11
- package/dist/events/index.js +48 -57
- package/dist/scopes/index.d.ts +92 -6
- package/dist/scopes/index.js +38 -9
- package/package.json +1 -1
@@ -244,16 +244,16 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
244
244
|
surname: string;
|
245
245
|
middlename?: string | undefined;
|
246
246
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
247
|
-
firstname: z.ZodString
|
248
|
-
surname: z.ZodString
|
247
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
248
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
249
249
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
250
250
|
}, "strip", z.ZodTypeAny, {
|
251
|
-
firstname
|
252
|
-
surname
|
251
|
+
firstname?: string | null | undefined;
|
252
|
+
surname?: string | null | undefined;
|
253
253
|
middlename?: string | null | undefined;
|
254
254
|
}, {
|
255
|
-
firstname
|
256
|
-
surname
|
255
|
+
firstname?: string | null | undefined;
|
256
|
+
surname?: string | null | undefined;
|
257
257
|
middlename?: string | null | undefined;
|
258
258
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>;
|
259
259
|
}>, "strip", z.ZodTypeAny, {
|
@@ -289,8 +289,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
289
289
|
surname: string;
|
290
290
|
middlename?: string | undefined;
|
291
291
|
} | {
|
292
|
-
firstname
|
293
|
-
surname
|
292
|
+
firstname?: string | null | undefined;
|
293
|
+
surname?: string | null | undefined;
|
294
294
|
middlename?: string | null | undefined;
|
295
295
|
} | {
|
296
296
|
country: string;
|
@@ -373,8 +373,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
373
373
|
surname: string;
|
374
374
|
middlename?: string | undefined;
|
375
375
|
} | {
|
376
|
-
firstname
|
377
|
-
surname
|
376
|
+
firstname?: string | null | undefined;
|
377
|
+
surname?: string | null | undefined;
|
378
378
|
middlename?: string | null | undefined;
|
379
379
|
} | {
|
380
380
|
country: string;
|
@@ -2037,5 +2037,10 @@ export declare const QueryType: z.ZodObject<{
|
|
2037
2037
|
}>;
|
2038
2038
|
export type QueryType = z.infer<typeof QueryType>;
|
2039
2039
|
export type QueryExpression = z.infer<typeof QueryExpression>;
|
2040
|
+
export declare const SearchScopeAccessLevels: {
|
2041
|
+
readonly MY_JURISDICTION: "my-jurisdiction";
|
2042
|
+
readonly ALL: "all";
|
2043
|
+
};
|
2044
|
+
export type SearchScopeAccessLevels = (typeof SearchScopeAccessLevels)[keyof typeof SearchScopeAccessLevels];
|
2040
2045
|
export {};
|
2041
2046
|
//# sourceMappingURL=EventIndex.d.ts.map
|
@@ -2402,10 +2402,14 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
2402
2402
|
description: string;
|
2403
2403
|
defaultMessage: string;
|
2404
2404
|
}>>;
|
2405
|
+
includeMiddlename: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2406
|
+
searchMode: z.ZodOptional<z.ZodBoolean>;
|
2405
2407
|
}, "strip", z.ZodTypeAny, {
|
2406
2408
|
maxLength?: number | undefined;
|
2407
2409
|
prefix?: TranslationConfig | undefined;
|
2408
2410
|
postfix?: TranslationConfig | undefined;
|
2411
|
+
includeMiddlename?: boolean | undefined;
|
2412
|
+
searchMode?: boolean | undefined;
|
2409
2413
|
}, {
|
2410
2414
|
maxLength?: number | undefined;
|
2411
2415
|
prefix?: {
|
@@ -2418,6 +2422,8 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
2418
2422
|
description: string;
|
2419
2423
|
defaultMessage: string;
|
2420
2424
|
} | undefined;
|
2425
|
+
includeMiddlename?: boolean | undefined;
|
2426
|
+
searchMode?: boolean | undefined;
|
2421
2427
|
}>>;
|
2422
2428
|
}>, "strip", z.ZodTypeAny, {
|
2423
2429
|
type: "NAME";
|
@@ -2453,6 +2459,8 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
2453
2459
|
maxLength?: number | undefined;
|
2454
2460
|
prefix?: TranslationConfig | undefined;
|
2455
2461
|
postfix?: TranslationConfig | undefined;
|
2462
|
+
includeMiddlename?: boolean | undefined;
|
2463
|
+
searchMode?: boolean | undefined;
|
2456
2464
|
} | undefined;
|
2457
2465
|
}, {
|
2458
2466
|
type: "NAME";
|
@@ -2512,6 +2520,8 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
2512
2520
|
description: string;
|
2513
2521
|
defaultMessage: string;
|
2514
2522
|
} | undefined;
|
2523
|
+
includeMiddlename?: boolean | undefined;
|
2524
|
+
searchMode?: boolean | undefined;
|
2515
2525
|
} | undefined;
|
2516
2526
|
}>;
|
2517
2527
|
declare const PhoneField: z.ZodObject<z.objectUtil.extendShape<{
|
@@ -6130,10 +6140,14 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
6130
6140
|
description: string;
|
6131
6141
|
defaultMessage: string;
|
6132
6142
|
}>>;
|
6143
|
+
includeMiddlename: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
6144
|
+
searchMode: z.ZodOptional<z.ZodBoolean>;
|
6133
6145
|
}, "strip", z.ZodTypeAny, {
|
6134
6146
|
maxLength?: number | undefined;
|
6135
6147
|
prefix?: TranslationConfig | undefined;
|
6136
6148
|
postfix?: TranslationConfig | undefined;
|
6149
|
+
includeMiddlename?: boolean | undefined;
|
6150
|
+
searchMode?: boolean | undefined;
|
6137
6151
|
}, {
|
6138
6152
|
maxLength?: number | undefined;
|
6139
6153
|
prefix?: {
|
@@ -6146,6 +6160,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
6146
6160
|
description: string;
|
6147
6161
|
defaultMessage: string;
|
6148
6162
|
} | undefined;
|
6163
|
+
includeMiddlename?: boolean | undefined;
|
6164
|
+
searchMode?: boolean | undefined;
|
6149
6165
|
}>>;
|
6150
6166
|
}>, "strip", z.ZodTypeAny, {
|
6151
6167
|
type: "NAME";
|
@@ -6181,6 +6197,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
6181
6197
|
maxLength?: number | undefined;
|
6182
6198
|
prefix?: TranslationConfig | undefined;
|
6183
6199
|
postfix?: TranslationConfig | undefined;
|
6200
|
+
includeMiddlename?: boolean | undefined;
|
6201
|
+
searchMode?: boolean | undefined;
|
6184
6202
|
} | undefined;
|
6185
6203
|
}, {
|
6186
6204
|
type: "NAME";
|
@@ -6240,6 +6258,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
6240
6258
|
description: string;
|
6241
6259
|
defaultMessage: string;
|
6242
6260
|
} | undefined;
|
6261
|
+
includeMiddlename?: boolean | undefined;
|
6262
|
+
searchMode?: boolean | undefined;
|
6243
6263
|
} | undefined;
|
6244
6264
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
6245
6265
|
id: z.ZodString;
|
@@ -55,16 +55,16 @@ export declare function mapFieldTypeToZod(type: FieldType, required?: boolean):
|
|
55
55
|
surname: string;
|
56
56
|
middlename?: string | undefined;
|
57
57
|
}> | z.ZodUndefined | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
58
|
-
firstname: z.ZodString
|
59
|
-
surname: z.ZodString
|
58
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
59
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
60
60
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
62
|
-
firstname
|
63
|
-
surname
|
62
|
+
firstname?: string | null | undefined;
|
63
|
+
surname?: string | null | undefined;
|
64
64
|
middlename?: string | null | undefined;
|
65
65
|
}, {
|
66
|
-
firstname
|
67
|
-
surname
|
66
|
+
firstname?: string | null | undefined;
|
67
|
+
surname?: string | null | undefined;
|
68
68
|
middlename?: string | null | undefined;
|
69
69
|
}>, z.ZodNull]>, z.ZodUndefined]> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
70
70
|
firstname: z.ZodString;
|
@@ -79,16 +79,16 @@ export declare function mapFieldTypeToZod(type: FieldType, required?: boolean):
|
|
79
79
|
surname: string;
|
80
80
|
middlename?: string | undefined;
|
81
81
|
}>>> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
82
|
-
firstname: z.ZodString
|
83
|
-
surname: z.ZodString
|
82
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
83
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
84
84
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
86
|
-
firstname
|
87
|
-
surname
|
86
|
+
firstname?: string | null | undefined;
|
87
|
+
surname?: string | null | undefined;
|
88
88
|
middlename?: string | null | undefined;
|
89
89
|
}, {
|
90
|
-
firstname
|
91
|
-
surname
|
90
|
+
firstname?: string | null | undefined;
|
91
|
+
surname?: string | null | undefined;
|
92
92
|
middlename?: string | null | undefined;
|
93
93
|
}>, z.ZodNull]>, z.ZodUndefined]>>> | z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
94
94
|
country: z.ZodString;
|
@@ -314,8 +314,8 @@ export declare function createValidationSchema(config: FieldConfig[]): z.ZodObje
|
|
314
314
|
surname: string;
|
315
315
|
middlename?: string | undefined;
|
316
316
|
} | {
|
317
|
-
firstname
|
318
|
-
surname
|
317
|
+
firstname?: string | null | undefined;
|
318
|
+
surname?: string | null | undefined;
|
319
319
|
middlename?: string | null | undefined;
|
320
320
|
} | {
|
321
321
|
country: string;
|
@@ -361,8 +361,8 @@ export declare function createValidationSchema(config: FieldConfig[]): z.ZodObje
|
|
361
361
|
surname: string;
|
362
362
|
middlename?: string | undefined;
|
363
363
|
} | {
|
364
|
-
firstname
|
365
|
-
surname
|
364
|
+
firstname?: string | null | undefined;
|
365
|
+
surname?: string | null | undefined;
|
366
366
|
middlename?: string | null | undefined;
|
367
367
|
} | {
|
368
368
|
country: string;
|
@@ -153,16 +153,16 @@ export declare const FieldValue: z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnio
|
|
153
153
|
surname: string;
|
154
154
|
middlename?: string | undefined;
|
155
155
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
156
|
-
firstname: z.ZodString
|
157
|
-
surname: z.ZodString
|
156
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
157
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
158
158
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
160
|
-
firstname
|
161
|
-
surname
|
160
|
+
firstname?: string | null | undefined;
|
161
|
+
surname?: string | null | undefined;
|
162
162
|
middlename?: string | null | undefined;
|
163
163
|
}, {
|
164
|
-
firstname
|
165
|
-
surname
|
164
|
+
firstname?: string | null | undefined;
|
165
|
+
surname?: string | null | undefined;
|
166
166
|
middlename?: string | null | undefined;
|
167
167
|
}>, z.ZodNull]>, z.ZodUndefined]>]>;
|
168
168
|
export type FieldValue = z.infer<typeof FieldValue>;
|
@@ -280,16 +280,16 @@ export declare const FieldUpdateValue: z.ZodUnion<[z.ZodString, z.ZodString, z.Z
|
|
280
280
|
addressLine3?: string | null | undefined;
|
281
281
|
postcodeOrZip?: string | null | undefined;
|
282
282
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
283
|
-
firstname: z.ZodString
|
284
|
-
surname: z.ZodString
|
283
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
284
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
285
285
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
286
286
|
}, "strip", z.ZodTypeAny, {
|
287
|
-
firstname
|
288
|
-
surname
|
287
|
+
firstname?: string | null | undefined;
|
288
|
+
surname?: string | null | undefined;
|
289
289
|
middlename?: string | null | undefined;
|
290
290
|
}, {
|
291
|
-
firstname
|
292
|
-
surname
|
291
|
+
firstname?: string | null | undefined;
|
292
|
+
surname?: string | null | undefined;
|
293
293
|
middlename?: string | null | undefined;
|
294
294
|
}>, z.ZodNull]>, z.ZodUndefined]>]>;
|
295
295
|
export type FieldUpdateValue = z.infer<typeof FieldUpdateValue>;
|