@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
@@ -1395,10 +1395,10 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
1395
1395
|
type: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN", "DEFAULT"]>;
|
1396
1396
|
conditionals: z.ZodOptional<z.ZodArray<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>, "many">>;
|
1397
1397
|
}, "strip", z.ZodTypeAny, {
|
1398
|
-
type: "
|
1398
|
+
type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
|
1399
1399
|
conditionals?: import(".").JSONSchema[] | undefined;
|
1400
1400
|
}, {
|
1401
|
-
type: "
|
1401
|
+
type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
|
1402
1402
|
conditionals?: import(".").JSONSchema[] | undefined;
|
1403
1403
|
}>, "many">;
|
1404
1404
|
columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
@@ -1433,7 +1433,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
1433
1433
|
}, "strip", z.ZodTypeAny, {
|
1434
1434
|
name: TranslationConfig;
|
1435
1435
|
actions: {
|
1436
|
-
type: "
|
1436
|
+
type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
|
1437
1437
|
conditionals?: import(".").JSONSchema[] | undefined;
|
1438
1438
|
}[];
|
1439
1439
|
query: {
|
@@ -1646,7 +1646,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
1646
1646
|
defaultMessage: string;
|
1647
1647
|
};
|
1648
1648
|
actions: {
|
1649
|
-
type: "
|
1649
|
+
type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
|
1650
1650
|
conditionals?: import(".").JSONSchema[] | undefined;
|
1651
1651
|
}[];
|
1652
1652
|
query: {
|
@@ -3241,10 +3241,10 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<Omit<{
|
|
3241
3241
|
type: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN", "DEFAULT"]>;
|
3242
3242
|
conditionals: z.ZodOptional<z.ZodArray<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>, "many">>;
|
3243
3243
|
}, "strip", z.ZodTypeAny, {
|
3244
|
-
type: "
|
3244
|
+
type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
|
3245
3245
|
conditionals?: import(".").JSONSchema[] | undefined;
|
3246
3246
|
}, {
|
3247
|
-
type: "
|
3247
|
+
type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
|
3248
3248
|
conditionals?: import(".").JSONSchema[] | undefined;
|
3249
3249
|
}>, "many">;
|
3250
3250
|
columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
@@ -3279,7 +3279,7 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<Omit<{
|
|
3279
3279
|
}, "query" | "columns">, "strip", z.ZodTypeAny, {
|
3280
3280
|
name: TranslationConfig;
|
3281
3281
|
actions: {
|
3282
|
-
type: "
|
3282
|
+
type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
|
3283
3283
|
conditionals?: import(".").JSONSchema[] | undefined;
|
3284
3284
|
}[];
|
3285
3285
|
slug: string;
|
@@ -3291,7 +3291,7 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<Omit<{
|
|
3291
3291
|
defaultMessage: string;
|
3292
3292
|
};
|
3293
3293
|
actions: {
|
3294
|
-
type: "
|
3294
|
+
type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
|
3295
3295
|
conditionals?: import(".").JSONSchema[] | undefined;
|
3296
3296
|
}[];
|
3297
3297
|
slug: string;
|
@@ -5170,10 +5170,10 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
5170
5170
|
type: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN", "DEFAULT"]>;
|
5171
5171
|
conditionals: z.ZodOptional<z.ZodArray<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>, "many">>;
|
5172
5172
|
}, "strip", z.ZodTypeAny, {
|
5173
|
-
type: "
|
5173
|
+
type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
|
5174
5174
|
conditionals?: import(".").JSONSchema[] | undefined;
|
5175
5175
|
}, {
|
5176
|
-
type: "
|
5176
|
+
type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
|
5177
5177
|
conditionals?: import(".").JSONSchema[] | undefined;
|
5178
5178
|
}>, "many">;
|
5179
5179
|
columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
@@ -5208,7 +5208,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
5208
5208
|
}, "strip", z.ZodTypeAny, {
|
5209
5209
|
name: TranslationConfig;
|
5210
5210
|
actions: {
|
5211
|
-
type: "
|
5211
|
+
type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
|
5212
5212
|
conditionals?: import(".").JSONSchema[] | undefined;
|
5213
5213
|
}[];
|
5214
5214
|
query: {
|
@@ -5515,7 +5515,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
5515
5515
|
defaultMessage: string;
|
5516
5516
|
};
|
5517
5517
|
actions: {
|
5518
|
-
type: "
|
5518
|
+
type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
|
5519
5519
|
conditionals?: import(".").JSONSchema[] | undefined;
|
5520
5520
|
}[];
|
5521
5521
|
query: {
|
@@ -5826,7 +5826,7 @@ export type WorkqueueConfigInput = z.input<typeof WorkqueueConfigInput>;
|
|
5826
5826
|
export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
5827
5827
|
name: TranslationConfig;
|
5828
5828
|
actions: {
|
5829
|
-
type: "
|
5829
|
+
type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
|
5830
5830
|
conditionals?: import(".").JSONSchema[] | undefined;
|
5831
5831
|
}[];
|
5832
5832
|
query: {
|
@@ -6036,7 +6036,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
6036
6036
|
export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
|
6037
6037
|
name: TranslationConfig;
|
6038
6038
|
actions: {
|
6039
|
-
type: "
|
6039
|
+
type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
|
6040
6040
|
conditionals?: import(".").JSONSchema[] | undefined;
|
6041
6041
|
}[];
|
6042
6042
|
query: {
|
@@ -492,6 +492,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
492
492
|
maxLength?: number | undefined;
|
493
493
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
494
494
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
495
|
+
includeMiddlename?: boolean | undefined;
|
496
|
+
searchMode?: boolean | undefined;
|
495
497
|
} | undefined;
|
496
498
|
} | {
|
497
499
|
type: "PHONE";
|
@@ -1341,6 +1343,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
1341
1343
|
maxLength?: number | undefined;
|
1342
1344
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
1343
1345
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
1346
|
+
includeMiddlename?: boolean | undefined;
|
1347
|
+
searchMode?: boolean | undefined;
|
1344
1348
|
} | undefined;
|
1345
1349
|
} | {
|
1346
1350
|
type: "PHONE";
|
@@ -2189,6 +2193,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
2189
2193
|
maxLength?: number | undefined;
|
2190
2194
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
2191
2195
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
2196
|
+
includeMiddlename?: boolean | undefined;
|
2197
|
+
searchMode?: boolean | undefined;
|
2192
2198
|
} | undefined;
|
2193
2199
|
} | {
|
2194
2200
|
type: "PHONE";
|
@@ -3037,6 +3043,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
3037
3043
|
maxLength?: number | undefined;
|
3038
3044
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
3039
3045
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
3046
|
+
includeMiddlename?: boolean | undefined;
|
3047
|
+
searchMode?: boolean | undefined;
|
3040
3048
|
} | undefined;
|
3041
3049
|
} | {
|
3042
3050
|
type: "PHONE";
|
@@ -3885,6 +3893,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
3885
3893
|
maxLength?: number | undefined;
|
3886
3894
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
3887
3895
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
3896
|
+
includeMiddlename?: boolean | undefined;
|
3897
|
+
searchMode?: boolean | undefined;
|
3888
3898
|
} | undefined;
|
3889
3899
|
} | {
|
3890
3900
|
type: "PHONE";
|
@@ -4781,6 +4791,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
4781
4791
|
maxLength?: number | undefined;
|
4782
4792
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
4783
4793
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
4794
|
+
includeMiddlename?: boolean | undefined;
|
4795
|
+
searchMode?: boolean | undefined;
|
4784
4796
|
} | undefined;
|
4785
4797
|
} | {
|
4786
4798
|
type: "PHONE";
|
@@ -5632,6 +5644,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
5632
5644
|
maxLength?: number | undefined;
|
5633
5645
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
5634
5646
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
5647
|
+
includeMiddlename?: boolean | undefined;
|
5648
|
+
searchMode?: boolean | undefined;
|
5635
5649
|
} | undefined;
|
5636
5650
|
} | {
|
5637
5651
|
type: "PHONE";
|
@@ -6484,6 +6498,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
6484
6498
|
maxLength?: number | undefined;
|
6485
6499
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
6486
6500
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
6501
|
+
includeMiddlename?: boolean | undefined;
|
6502
|
+
searchMode?: boolean | undefined;
|
6487
6503
|
} | undefined;
|
6488
6504
|
} | {
|
6489
6505
|
type: "PHONE";
|
@@ -7335,6 +7351,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
7335
7351
|
maxLength?: number | undefined;
|
7336
7352
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
7337
7353
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
7354
|
+
includeMiddlename?: boolean | undefined;
|
7355
|
+
searchMode?: boolean | undefined;
|
7338
7356
|
} | undefined;
|
7339
7357
|
} | {
|
7340
7358
|
type: "PHONE";
|
@@ -8175,6 +8193,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
8175
8193
|
maxLength?: number | undefined;
|
8176
8194
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
8177
8195
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
8196
|
+
includeMiddlename?: boolean | undefined;
|
8197
|
+
searchMode?: boolean | undefined;
|
8178
8198
|
} | undefined;
|
8179
8199
|
} | {
|
8180
8200
|
type: "PHONE";
|
@@ -9026,6 +9046,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
9026
9046
|
maxLength?: number | undefined;
|
9027
9047
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
9028
9048
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
9049
|
+
includeMiddlename?: boolean | undefined;
|
9050
|
+
searchMode?: boolean | undefined;
|
9029
9051
|
} | undefined;
|
9030
9052
|
} | {
|
9031
9053
|
type: "PHONE";
|
@@ -9459,8 +9481,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
9459
9481
|
message: import("./TranslationConfig").TranslationConfig;
|
9460
9482
|
validator: import(".").JSONSchema;
|
9461
9483
|
}[] | undefined;
|
9462
|
-
alternateFieldIds?: string[] | undefined;
|
9463
|
-
excludeInSearchQuery?: boolean | undefined;
|
9464
9484
|
} | {
|
9465
9485
|
config: {
|
9466
9486
|
type: "exact" | "fuzzy" | "range";
|
@@ -1,23 +1,17 @@
|
|
1
1
|
import { FieldConditional } from './Conditional';
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
3
|
-
import {
|
3
|
+
import { ValidationConfig } from './FieldConfig';
|
4
4
|
/**
|
5
5
|
* Entry point for defining conditional logic or configuration for a form field.
|
6
6
|
* @param fieldId - The ID of the field to define rules or config for.
|
7
7
|
* @returns An object combining conditional methods and configuration builders.
|
8
8
|
*/
|
9
9
|
export declare function field(fieldId: string, options?: {
|
10
|
-
options?: SelectOption[];
|
11
|
-
excludeInSearchQuery?: boolean;
|
12
|
-
alternateFieldIds?: string[];
|
13
10
|
conditionals?: FieldConditional[];
|
14
11
|
validations?: ValidationConfig[];
|
15
12
|
searchCriteriaLabelPrefix?: TranslationConfig;
|
16
13
|
}): {
|
17
14
|
range: () => {
|
18
|
-
options?: SelectOption[];
|
19
|
-
excludeInSearchQuery?: boolean;
|
20
|
-
alternateFieldIds?: string[];
|
21
15
|
conditionals?: FieldConditional[];
|
22
16
|
validations?: ValidationConfig[];
|
23
17
|
searchCriteriaLabelPrefix?: TranslationConfig;
|
@@ -29,9 +23,6 @@ export declare function field(fieldId: string, options?: {
|
|
29
23
|
};
|
30
24
|
};
|
31
25
|
exact: () => {
|
32
|
-
options?: SelectOption[];
|
33
|
-
excludeInSearchQuery?: boolean;
|
34
|
-
alternateFieldIds?: string[];
|
35
26
|
conditionals?: FieldConditional[];
|
36
27
|
validations?: ValidationConfig[];
|
37
28
|
searchCriteriaLabelPrefix?: TranslationConfig;
|
@@ -43,9 +34,6 @@ export declare function field(fieldId: string, options?: {
|
|
43
34
|
};
|
44
35
|
};
|
45
36
|
fuzzy: () => {
|
46
|
-
options?: SelectOption[];
|
47
|
-
excludeInSearchQuery?: boolean;
|
48
|
-
alternateFieldIds?: string[];
|
49
37
|
conditionals?: FieldConditional[];
|
50
38
|
validations?: ValidationConfig[];
|
51
39
|
searchCriteriaLabelPrefix?: TranslationConfig;
|
@@ -61,8 +61,8 @@ export declare function eventPayloadGenerator(rng: () => number): {
|
|
61
61
|
street?: string | null | undefined;
|
62
62
|
zipCode?: string | null | undefined;
|
63
63
|
} | {
|
64
|
-
firstname
|
65
|
-
surname
|
64
|
+
firstname?: string | null | undefined;
|
65
|
+
surname?: string | null | undefined;
|
66
66
|
middlename?: string | null | undefined;
|
67
67
|
} | {
|
68
68
|
country: string;
|
@@ -114,8 +114,8 @@ export declare function eventPayloadGenerator(rng: () => number): {
|
|
114
114
|
street?: string | null | undefined;
|
115
115
|
zipCode?: string | null | undefined;
|
116
116
|
} | {
|
117
|
-
firstname
|
118
|
-
surname
|
117
|
+
firstname?: string | null | undefined;
|
118
|
+
surname?: string | null | undefined;
|
119
119
|
middlename?: string | null | undefined;
|
120
120
|
} | {
|
121
121
|
country: string;
|
@@ -161,8 +161,8 @@ export declare function eventPayloadGenerator(rng: () => number): {
|
|
161
161
|
street?: string | null | undefined;
|
162
162
|
zipCode?: 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
|
} | {
|
168
168
|
country: string;
|
@@ -225,8 +225,8 @@ export declare function eventPayloadGenerator(rng: () => number): {
|
|
225
225
|
street?: string | null | undefined;
|
226
226
|
zipCode?: string | null | undefined;
|
227
227
|
} | {
|
228
|
-
firstname
|
229
|
-
surname
|
228
|
+
firstname?: string | null | undefined;
|
229
|
+
surname?: string | null | undefined;
|
230
230
|
middlename?: string | null | undefined;
|
231
231
|
} | {
|
232
232
|
country: string;
|
@@ -291,8 +291,8 @@ export declare function eventPayloadGenerator(rng: () => number): {
|
|
291
291
|
street?: string | null | undefined;
|
292
292
|
zipCode?: string | null | undefined;
|
293
293
|
} | {
|
294
|
-
firstname
|
295
|
-
surname
|
294
|
+
firstname?: string | null | undefined;
|
295
|
+
surname?: string | null | undefined;
|
296
296
|
middlename?: string | null | undefined;
|
297
297
|
} | {
|
298
298
|
country: string;
|
@@ -351,8 +351,8 @@ export declare function eventPayloadGenerator(rng: () => number): {
|
|
351
351
|
street?: string | null | undefined;
|
352
352
|
zipCode?: string | null | undefined;
|
353
353
|
} | {
|
354
|
-
firstname
|
355
|
-
surname
|
354
|
+
firstname?: string | null | undefined;
|
355
|
+
surname?: string | null | undefined;
|
356
356
|
middlename?: string | null | undefined;
|
357
357
|
} | {
|
358
358
|
country: string;
|
@@ -493,6 +493,8 @@ export declare function getDeclarationPages(configuration: EventConfig): {
|
|
493
493
|
maxLength?: number | undefined;
|
494
494
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
495
495
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
496
|
+
includeMiddlename?: boolean | undefined;
|
497
|
+
searchMode?: boolean | undefined;
|
496
498
|
} | undefined;
|
497
499
|
} | {
|
498
500
|
type: "PHONE";
|
@@ -1335,6 +1337,8 @@ export declare function getDeclaration(configuration: EventConfig): {
|
|
1335
1337
|
maxLength?: number | undefined;
|
1336
1338
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
1337
1339
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
1340
|
+
includeMiddlename?: boolean | undefined;
|
1341
|
+
searchMode?: boolean | undefined;
|
1338
1342
|
} | undefined;
|
1339
1343
|
} | {
|
1340
1344
|
type: "PHONE";
|
@@ -2172,6 +2176,8 @@ export declare const getActionAnnotationFields: (actionConfig: ActionConfig) =>
|
|
2172
2176
|
maxLength?: number | undefined;
|
2173
2177
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
2174
2178
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
2179
|
+
includeMiddlename?: boolean | undefined;
|
2180
|
+
searchMode?: boolean | undefined;
|
2175
2181
|
} | undefined;
|
2176
2182
|
} | {
|
2177
2183
|
type: "PHONE";
|
@@ -3014,6 +3020,8 @@ export declare function getActionReview(configuration: EventConfig, actionType:
|
|
3014
3020
|
maxLength?: number | undefined;
|
3015
3021
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
3016
3022
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
3023
|
+
includeMiddlename?: boolean | undefined;
|
3024
|
+
searchMode?: boolean | undefined;
|
3017
3025
|
} | undefined;
|
3018
3026
|
} | {
|
3019
3027
|
type: "PHONE";
|
@@ -3849,6 +3857,8 @@ export declare function getActionReviewFields(configuration: EventConfig, action
|
|
3849
3857
|
maxLength?: number | undefined;
|
3850
3858
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
3851
3859
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
3860
|
+
includeMiddlename?: boolean | undefined;
|
3861
|
+
searchMode?: boolean | undefined;
|
3852
3862
|
} | undefined;
|
3853
3863
|
} | {
|
3854
3864
|
type: "PHONE";
|
@@ -4232,8 +4242,8 @@ export declare function omitHiddenPaginatedFields(formConfig: FormConfig, declar
|
|
4232
4242
|
surname: string;
|
4233
4243
|
middlename?: string | undefined;
|
4234
4244
|
} | {
|
4235
|
-
firstname
|
4236
|
-
surname
|
4245
|
+
firstname?: string | null | undefined;
|
4246
|
+
surname?: string | null | undefined;
|
4237
4247
|
middlename?: string | null | undefined;
|
4238
4248
|
} | {
|
4239
4249
|
country: string;
|
@@ -4257,7 +4267,7 @@ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]):
|
|
4257
4267
|
createdAt: string;
|
4258
4268
|
eventId: string & import("zod").BRAND<"UUID">;
|
4259
4269
|
action: {
|
4260
|
-
type: "
|
4270
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
4261
4271
|
status: "Rejected" | "Requested" | "Accepted";
|
4262
4272
|
transactionId: string;
|
4263
4273
|
createdByUserType: "system" | "user";
|
@@ -4280,8 +4290,8 @@ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]):
|
|
4280
4290
|
street?: string | null | undefined;
|
4281
4291
|
zipCode?: string | null | undefined;
|
4282
4292
|
} | {
|
4283
|
-
firstname
|
4284
|
-
surname
|
4293
|
+
firstname?: string | null | undefined;
|
4294
|
+
surname?: string | null | undefined;
|
4285
4295
|
middlename?: string | null | undefined;
|
4286
4296
|
} | {
|
4287
4297
|
country: string;
|
@@ -4324,8 +4334,8 @@ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]):
|
|
4324
4334
|
street?: string | null | undefined;
|
4325
4335
|
zipCode?: string | null | undefined;
|
4326
4336
|
} | {
|
4327
|
-
firstname
|
4328
|
-
surname
|
4337
|
+
firstname?: string | null | undefined;
|
4338
|
+
surname?: string | null | undefined;
|
4329
4339
|
middlename?: string | null | undefined;
|
4330
4340
|
} | {
|
4331
4341
|
country: string;
|
@@ -4396,8 +4406,8 @@ export declare function omitHiddenAnnotationFields(actionConfig: ActionConfig, d
|
|
4396
4406
|
surname: string;
|
4397
4407
|
middlename?: string | undefined;
|
4398
4408
|
} | {
|
4399
|
-
firstname
|
4400
|
-
surname
|
4409
|
+
firstname?: string | null | undefined;
|
4410
|
+
surname?: string | null | undefined;
|
4401
4411
|
middlename?: string | null | undefined;
|
4402
4412
|
} | {
|
4403
4413
|
country: string;
|
@@ -4944,6 +4954,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
4944
4954
|
maxLength?: number | undefined;
|
4945
4955
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
4946
4956
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
4957
|
+
includeMiddlename?: boolean | undefined;
|
4958
|
+
searchMode?: boolean | undefined;
|
4947
4959
|
} | undefined;
|
4948
4960
|
} | {
|
4949
4961
|
type: "PHONE";
|
@@ -5793,6 +5805,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
5793
5805
|
maxLength?: number | undefined;
|
5794
5806
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
5795
5807
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
5808
|
+
includeMiddlename?: boolean | undefined;
|
5809
|
+
searchMode?: boolean | undefined;
|
5796
5810
|
} | undefined;
|
5797
5811
|
} | {
|
5798
5812
|
type: "PHONE";
|
@@ -6641,6 +6655,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
6641
6655
|
maxLength?: number | undefined;
|
6642
6656
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
6643
6657
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
6658
|
+
includeMiddlename?: boolean | undefined;
|
6659
|
+
searchMode?: boolean | undefined;
|
6644
6660
|
} | undefined;
|
6645
6661
|
} | {
|
6646
6662
|
type: "PHONE";
|
@@ -7489,6 +7505,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
7489
7505
|
maxLength?: number | undefined;
|
7490
7506
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
7491
7507
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
7508
|
+
includeMiddlename?: boolean | undefined;
|
7509
|
+
searchMode?: boolean | undefined;
|
7492
7510
|
} | undefined;
|
7493
7511
|
} | {
|
7494
7512
|
type: "PHONE";
|
@@ -8337,6 +8355,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
8337
8355
|
maxLength?: number | undefined;
|
8338
8356
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
8339
8357
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
8358
|
+
includeMiddlename?: boolean | undefined;
|
8359
|
+
searchMode?: boolean | undefined;
|
8340
8360
|
} | undefined;
|
8341
8361
|
} | {
|
8342
8362
|
type: "PHONE";
|
@@ -9233,6 +9253,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
9233
9253
|
maxLength?: number | undefined;
|
9234
9254
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
9235
9255
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
9256
|
+
includeMiddlename?: boolean | undefined;
|
9257
|
+
searchMode?: boolean | undefined;
|
9236
9258
|
} | undefined;
|
9237
9259
|
} | {
|
9238
9260
|
type: "PHONE";
|
@@ -10084,6 +10106,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
10084
10106
|
maxLength?: number | undefined;
|
10085
10107
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
10086
10108
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
10109
|
+
includeMiddlename?: boolean | undefined;
|
10110
|
+
searchMode?: boolean | undefined;
|
10087
10111
|
} | undefined;
|
10088
10112
|
} | {
|
10089
10113
|
type: "PHONE";
|
@@ -10936,6 +10960,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
10936
10960
|
maxLength?: number | undefined;
|
10937
10961
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
10938
10962
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
10963
|
+
includeMiddlename?: boolean | undefined;
|
10964
|
+
searchMode?: boolean | undefined;
|
10939
10965
|
} | undefined;
|
10940
10966
|
} | {
|
10941
10967
|
type: "PHONE";
|
@@ -11787,6 +11813,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
11787
11813
|
maxLength?: number | undefined;
|
11788
11814
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
11789
11815
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
11816
|
+
includeMiddlename?: boolean | undefined;
|
11817
|
+
searchMode?: boolean | undefined;
|
11790
11818
|
} | undefined;
|
11791
11819
|
} | {
|
11792
11820
|
type: "PHONE";
|
@@ -12627,6 +12655,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
12627
12655
|
maxLength?: number | undefined;
|
12628
12656
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
12629
12657
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
12658
|
+
includeMiddlename?: boolean | undefined;
|
12659
|
+
searchMode?: boolean | undefined;
|
12630
12660
|
} | undefined;
|
12631
12661
|
} | {
|
12632
12662
|
type: "PHONE";
|
@@ -13478,6 +13508,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
13478
13508
|
maxLength?: number | undefined;
|
13479
13509
|
prefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
13480
13510
|
postfix?: import("./TranslationConfig").TranslationConfig | undefined;
|
13511
|
+
includeMiddlename?: boolean | undefined;
|
13512
|
+
searchMode?: boolean | undefined;
|
13481
13513
|
} | undefined;
|
13482
13514
|
} | {
|
13483
13515
|
type: "PHONE";
|
@@ -13911,8 +13943,6 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
13911
13943
|
message: import("./TranslationConfig").TranslationConfig;
|
13912
13944
|
validator: import(".").JSONSchema;
|
13913
13945
|
}[] | undefined;
|
13914
|
-
alternateFieldIds?: string[] | undefined;
|
13915
|
-
excludeInSearchQuery?: boolean | undefined;
|
13916
13946
|
} | {
|
13917
13947
|
config: {
|
13918
13948
|
type: "exact" | "fuzzy" | "range";
|