@opencrvs/toolkit 1.9.13-rc.f1fdcea → 1.9.13-rc.f6200fe
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 +2508 -185
- package/dist/commons/conditionals/conditionals.d.ts +348 -4
- package/dist/commons/conditionals/validate.d.ts +42 -0
- package/dist/commons/events/ActionConfig.d.ts +28 -28
- package/dist/commons/events/ActionInput.d.ts +204 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +48 -48
- package/dist/commons/events/CountryConfigQueryInput.d.ts +240 -240
- package/dist/commons/events/DeduplicationConfig.d.ts +2 -2
- package/dist/commons/events/Draft.d.ts +6 -0
- package/dist/commons/events/EventConfig.d.ts +61 -54
- package/dist/commons/events/EventIndex.d.ts +88 -88
- package/dist/commons/events/FieldConfig.d.ts +1619 -227
- package/dist/commons/events/WorkqueueConfig.d.ts +488 -488
- package/dist/commons/events/defineConfig.d.ts +8 -7
- package/dist/commons/events/field.d.ts +47 -1
- package/dist/commons/events/utils.d.ts +10 -178
- package/dist/conditionals/index.js +48 -1
- package/dist/events/index.js +189 -85
- package/dist/notification/index.js +150 -39
- package/package.json +11 -7
|
@@ -70,16 +70,16 @@ export declare const DeclarationActionBase: z.ZodObject<z.objectUtil.extendShape
|
|
|
70
70
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
|
|
71
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
72
|
id: string;
|
|
73
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
74
73
|
label: TranslationConfig;
|
|
74
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
|
75
75
|
}, {
|
|
76
76
|
id: string;
|
|
77
|
-
query: import("./DeduplicationConfig").ClauseInput;
|
|
78
77
|
label: {
|
|
79
78
|
id: string;
|
|
80
79
|
description: string;
|
|
81
80
|
defaultMessage: string;
|
|
82
81
|
};
|
|
82
|
+
query: import("./DeduplicationConfig").ClauseInput;
|
|
83
83
|
}>>;
|
|
84
84
|
}>, "strip", z.ZodTypeAny, {
|
|
85
85
|
label: TranslationConfig;
|
|
@@ -89,8 +89,8 @@ export declare const DeclarationActionBase: z.ZodObject<z.objectUtil.extendShape
|
|
|
89
89
|
};
|
|
90
90
|
deduplication?: {
|
|
91
91
|
id: string;
|
|
92
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
93
92
|
label: TranslationConfig;
|
|
93
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
|
94
94
|
} | undefined;
|
|
95
95
|
}, {
|
|
96
96
|
label: {
|
|
@@ -108,12 +108,12 @@ export declare const DeclarationActionBase: z.ZodObject<z.objectUtil.extendShape
|
|
|
108
108
|
};
|
|
109
109
|
deduplication?: {
|
|
110
110
|
id: string;
|
|
111
|
-
query: import("./DeduplicationConfig").ClauseInput;
|
|
112
111
|
label: {
|
|
113
112
|
id: string;
|
|
114
113
|
description: string;
|
|
115
114
|
defaultMessage: string;
|
|
116
115
|
};
|
|
116
|
+
query: import("./DeduplicationConfig").ClauseInput;
|
|
117
117
|
} | undefined;
|
|
118
118
|
}>;
|
|
119
119
|
declare const ReadActionConfig: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -200,16 +200,16 @@ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
|
|
|
200
200
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
|
|
201
201
|
}, "strip", z.ZodTypeAny, {
|
|
202
202
|
id: string;
|
|
203
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
204
203
|
label: TranslationConfig;
|
|
204
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
|
205
205
|
}, {
|
|
206
206
|
id: string;
|
|
207
|
-
query: import("./DeduplicationConfig").ClauseInput;
|
|
208
207
|
label: {
|
|
209
208
|
id: string;
|
|
210
209
|
description: string;
|
|
211
210
|
defaultMessage: string;
|
|
212
211
|
};
|
|
212
|
+
query: import("./DeduplicationConfig").ClauseInput;
|
|
213
213
|
}>>;
|
|
214
214
|
}>, {
|
|
215
215
|
type: z.ZodLiteral<"DECLARE">;
|
|
@@ -222,8 +222,8 @@ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
|
|
|
222
222
|
};
|
|
223
223
|
deduplication?: {
|
|
224
224
|
id: string;
|
|
225
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
226
225
|
label: TranslationConfig;
|
|
226
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
|
227
227
|
} | undefined;
|
|
228
228
|
}, {
|
|
229
229
|
type: "DECLARE";
|
|
@@ -242,12 +242,12 @@ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
|
|
|
242
242
|
};
|
|
243
243
|
deduplication?: {
|
|
244
244
|
id: string;
|
|
245
|
-
query: import("./DeduplicationConfig").ClauseInput;
|
|
246
245
|
label: {
|
|
247
246
|
id: string;
|
|
248
247
|
description: string;
|
|
249
248
|
defaultMessage: string;
|
|
250
249
|
};
|
|
250
|
+
query: import("./DeduplicationConfig").ClauseInput;
|
|
251
251
|
} | undefined;
|
|
252
252
|
}>;
|
|
253
253
|
declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -285,16 +285,16 @@ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
|
|
|
285
285
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
|
|
286
286
|
}, "strip", z.ZodTypeAny, {
|
|
287
287
|
id: string;
|
|
288
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
289
288
|
label: TranslationConfig;
|
|
289
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
|
290
290
|
}, {
|
|
291
291
|
id: string;
|
|
292
|
-
query: import("./DeduplicationConfig").ClauseInput;
|
|
293
292
|
label: {
|
|
294
293
|
id: string;
|
|
295
294
|
description: string;
|
|
296
295
|
defaultMessage: string;
|
|
297
296
|
};
|
|
297
|
+
query: import("./DeduplicationConfig").ClauseInput;
|
|
298
298
|
}>>;
|
|
299
299
|
}>, {
|
|
300
300
|
type: z.ZodLiteral<"VALIDATE">;
|
|
@@ -307,8 +307,8 @@ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
|
|
|
307
307
|
};
|
|
308
308
|
deduplication?: {
|
|
309
309
|
id: string;
|
|
310
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
311
310
|
label: TranslationConfig;
|
|
311
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
|
312
312
|
} | undefined;
|
|
313
313
|
}, {
|
|
314
314
|
type: "VALIDATE";
|
|
@@ -327,12 +327,12 @@ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
|
|
|
327
327
|
};
|
|
328
328
|
deduplication?: {
|
|
329
329
|
id: string;
|
|
330
|
-
query: import("./DeduplicationConfig").ClauseInput;
|
|
331
330
|
label: {
|
|
332
331
|
id: string;
|
|
333
332
|
description: string;
|
|
334
333
|
defaultMessage: string;
|
|
335
334
|
};
|
|
335
|
+
query: import("./DeduplicationConfig").ClauseInput;
|
|
336
336
|
} | undefined;
|
|
337
337
|
}>;
|
|
338
338
|
declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -370,16 +370,16 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
|
|
|
370
370
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
|
|
371
371
|
}, "strip", z.ZodTypeAny, {
|
|
372
372
|
id: string;
|
|
373
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
374
373
|
label: TranslationConfig;
|
|
374
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
|
375
375
|
}, {
|
|
376
376
|
id: string;
|
|
377
|
-
query: import("./DeduplicationConfig").ClauseInput;
|
|
378
377
|
label: {
|
|
379
378
|
id: string;
|
|
380
379
|
description: string;
|
|
381
380
|
defaultMessage: string;
|
|
382
381
|
};
|
|
382
|
+
query: import("./DeduplicationConfig").ClauseInput;
|
|
383
383
|
}>>;
|
|
384
384
|
}>, {
|
|
385
385
|
type: z.ZodLiteral<"REGISTER">;
|
|
@@ -392,8 +392,8 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
|
|
|
392
392
|
};
|
|
393
393
|
deduplication?: {
|
|
394
394
|
id: string;
|
|
395
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
396
395
|
label: TranslationConfig;
|
|
396
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
|
397
397
|
} | undefined;
|
|
398
398
|
}, {
|
|
399
399
|
type: "REGISTER";
|
|
@@ -412,12 +412,12 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
|
|
|
412
412
|
};
|
|
413
413
|
deduplication?: {
|
|
414
414
|
id: string;
|
|
415
|
-
query: import("./DeduplicationConfig").ClauseInput;
|
|
416
415
|
label: {
|
|
417
416
|
id: string;
|
|
418
417
|
description: string;
|
|
419
418
|
defaultMessage: string;
|
|
420
419
|
};
|
|
420
|
+
query: import("./DeduplicationConfig").ClauseInput;
|
|
421
421
|
} | undefined;
|
|
422
422
|
}>;
|
|
423
423
|
declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -1386,16 +1386,16 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1386
1386
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
|
|
1387
1387
|
}, "strip", z.ZodTypeAny, {
|
|
1388
1388
|
id: string;
|
|
1389
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
1390
1389
|
label: TranslationConfig;
|
|
1390
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
|
1391
1391
|
}, {
|
|
1392
1392
|
id: string;
|
|
1393
|
-
query: import("./DeduplicationConfig").ClauseInput;
|
|
1394
1393
|
label: {
|
|
1395
1394
|
id: string;
|
|
1396
1395
|
description: string;
|
|
1397
1396
|
defaultMessage: string;
|
|
1398
1397
|
};
|
|
1398
|
+
query: import("./DeduplicationConfig").ClauseInput;
|
|
1399
1399
|
}>>;
|
|
1400
1400
|
}>, {
|
|
1401
1401
|
type: z.ZodLiteral<"DECLARE">;
|
|
@@ -1408,8 +1408,8 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1408
1408
|
};
|
|
1409
1409
|
deduplication?: {
|
|
1410
1410
|
id: string;
|
|
1411
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
1412
1411
|
label: TranslationConfig;
|
|
1412
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
|
1413
1413
|
} | undefined;
|
|
1414
1414
|
}, {
|
|
1415
1415
|
type: "DECLARE";
|
|
@@ -1428,12 +1428,12 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1428
1428
|
};
|
|
1429
1429
|
deduplication?: {
|
|
1430
1430
|
id: string;
|
|
1431
|
-
query: import("./DeduplicationConfig").ClauseInput;
|
|
1432
1431
|
label: {
|
|
1433
1432
|
id: string;
|
|
1434
1433
|
description: string;
|
|
1435
1434
|
defaultMessage: string;
|
|
1436
1435
|
};
|
|
1436
|
+
query: import("./DeduplicationConfig").ClauseInput;
|
|
1437
1437
|
} | undefined;
|
|
1438
1438
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1439
1439
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
@@ -1470,16 +1470,16 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1470
1470
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
|
|
1471
1471
|
}, "strip", z.ZodTypeAny, {
|
|
1472
1472
|
id: string;
|
|
1473
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
1474
1473
|
label: TranslationConfig;
|
|
1474
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
|
1475
1475
|
}, {
|
|
1476
1476
|
id: string;
|
|
1477
|
-
query: import("./DeduplicationConfig").ClauseInput;
|
|
1478
1477
|
label: {
|
|
1479
1478
|
id: string;
|
|
1480
1479
|
description: string;
|
|
1481
1480
|
defaultMessage: string;
|
|
1482
1481
|
};
|
|
1482
|
+
query: import("./DeduplicationConfig").ClauseInput;
|
|
1483
1483
|
}>>;
|
|
1484
1484
|
}>, {
|
|
1485
1485
|
type: z.ZodLiteral<"VALIDATE">;
|
|
@@ -1492,8 +1492,8 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1492
1492
|
};
|
|
1493
1493
|
deduplication?: {
|
|
1494
1494
|
id: string;
|
|
1495
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
1496
1495
|
label: TranslationConfig;
|
|
1496
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
|
1497
1497
|
} | undefined;
|
|
1498
1498
|
}, {
|
|
1499
1499
|
type: "VALIDATE";
|
|
@@ -1512,12 +1512,12 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1512
1512
|
};
|
|
1513
1513
|
deduplication?: {
|
|
1514
1514
|
id: string;
|
|
1515
|
-
query: import("./DeduplicationConfig").ClauseInput;
|
|
1516
1515
|
label: {
|
|
1517
1516
|
id: string;
|
|
1518
1517
|
description: string;
|
|
1519
1518
|
defaultMessage: string;
|
|
1520
1519
|
};
|
|
1520
|
+
query: import("./DeduplicationConfig").ClauseInput;
|
|
1521
1521
|
} | undefined;
|
|
1522
1522
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1523
1523
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
@@ -1554,16 +1554,16 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1554
1554
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
|
|
1555
1555
|
}, "strip", z.ZodTypeAny, {
|
|
1556
1556
|
id: string;
|
|
1557
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
1558
1557
|
label: TranslationConfig;
|
|
1558
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
|
1559
1559
|
}, {
|
|
1560
1560
|
id: string;
|
|
1561
|
-
query: import("./DeduplicationConfig").ClauseInput;
|
|
1562
1561
|
label: {
|
|
1563
1562
|
id: string;
|
|
1564
1563
|
description: string;
|
|
1565
1564
|
defaultMessage: string;
|
|
1566
1565
|
};
|
|
1566
|
+
query: import("./DeduplicationConfig").ClauseInput;
|
|
1567
1567
|
}>>;
|
|
1568
1568
|
}>, {
|
|
1569
1569
|
type: z.ZodLiteral<"REGISTER">;
|
|
@@ -1576,8 +1576,8 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1576
1576
|
};
|
|
1577
1577
|
deduplication?: {
|
|
1578
1578
|
id: string;
|
|
1579
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
1580
1579
|
label: TranslationConfig;
|
|
1580
|
+
query: import("./DeduplicationConfig").ClauseOutput;
|
|
1581
1581
|
} | undefined;
|
|
1582
1582
|
}, {
|
|
1583
1583
|
type: "REGISTER";
|
|
@@ -1596,12 +1596,12 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1596
1596
|
};
|
|
1597
1597
|
deduplication?: {
|
|
1598
1598
|
id: string;
|
|
1599
|
-
query: import("./DeduplicationConfig").ClauseInput;
|
|
1600
1599
|
label: {
|
|
1601
1600
|
id: string;
|
|
1602
1601
|
description: string;
|
|
1603
1602
|
defaultMessage: string;
|
|
1604
1603
|
};
|
|
1604
|
+
query: import("./DeduplicationConfig").ClauseInput;
|
|
1605
1605
|
} | undefined;
|
|
1606
1606
|
}>]>;
|
|
1607
1607
|
export type DeclarationActionConfig = z.infer<typeof DeclarationActionConfig>;
|