@opencrvs/toolkit 1.9.16-rc.7425da8 → 1.9.16-rc.82b1628
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 +198 -193
- package/dist/commons/events/ActionConfig.d.ts +28 -0
- package/dist/commons/events/ActionDocument.d.ts +129 -129
- package/dist/commons/events/Draft.d.ts +5 -5
- package/dist/commons/events/EventConfig.d.ts +25 -0
- package/dist/commons/events/EventDocument.d.ts +90 -90
- package/dist/commons/events/EventIndex.d.ts +17 -17
- package/dist/commons/events/EventMetadata.d.ts +33 -33
- package/dist/commons/events/FormConfig.d.ts +30 -0
- package/dist/commons/events/PageConfig.d.ts +6 -0
- package/dist/commons/events/defineConfig.d.ts +5 -0
- package/dist/commons/events/state/index.d.ts +3 -3
- package/dist/commons/events/state/utils.d.ts +20 -20
- package/dist/commons/events/utils.d.ts +9 -0
- package/dist/events/index.js +13 -5
- package/dist/notification/index.js +13 -5
- package/dist/scopes/index.d.ts +3 -2
- package/dist/scopes/index.js +6 -2
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ export declare const Draft: z.ZodObject<{
|
|
|
10
10
|
createdByUserType: z.ZodEnum<["user", "system"]>;
|
|
11
11
|
createdAt: z.ZodString;
|
|
12
12
|
createdBy: z.ZodString;
|
|
13
|
-
createdByRole: z.ZodString
|
|
13
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
14
14
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
|
16
16
|
declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
|
|
@@ -26,8 +26,8 @@ export declare const Draft: z.ZodObject<{
|
|
|
26
26
|
createdByUserType: "system" | "user";
|
|
27
27
|
createdAt: string;
|
|
28
28
|
createdBy: string;
|
|
29
|
-
createdByRole: string;
|
|
30
29
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
30
|
+
createdByRole?: string | undefined;
|
|
31
31
|
createdBySignature?: string | null | undefined;
|
|
32
32
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
33
33
|
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
|
@@ -38,8 +38,8 @@ export declare const Draft: z.ZodObject<{
|
|
|
38
38
|
createdByUserType: "system" | "user";
|
|
39
39
|
createdAt: string;
|
|
40
40
|
createdBy: string;
|
|
41
|
-
createdByRole: string;
|
|
42
41
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
42
|
+
createdByRole?: string | undefined;
|
|
43
43
|
createdBySignature?: string | null | undefined;
|
|
44
44
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
45
45
|
originalActionId?: string | null | undefined;
|
|
@@ -56,8 +56,8 @@ export declare const Draft: z.ZodObject<{
|
|
|
56
56
|
createdByUserType: "system" | "user";
|
|
57
57
|
createdAt: string;
|
|
58
58
|
createdBy: string;
|
|
59
|
-
createdByRole: string;
|
|
60
59
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
60
|
+
createdByRole?: string | undefined;
|
|
61
61
|
createdBySignature?: string | null | undefined;
|
|
62
62
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
63
63
|
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
|
@@ -74,8 +74,8 @@ export declare const Draft: z.ZodObject<{
|
|
|
74
74
|
createdByUserType: "system" | "user";
|
|
75
75
|
createdAt: string;
|
|
76
76
|
createdBy: string;
|
|
77
|
-
createdByRole: string;
|
|
78
77
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
78
|
+
createdByRole?: string | undefined;
|
|
79
79
|
createdBySignature?: string | null | undefined;
|
|
80
80
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
81
81
|
originalActionId?: string | null | undefined;
|
|
@@ -229,6 +229,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
229
229
|
defaultMessage: string;
|
|
230
230
|
}>;
|
|
231
231
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
232
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
232
233
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
|
|
233
234
|
conditional: z.ZodOptional<z.ZodType<import("../conditionals/conditionals").JSONSchema, z.ZodTypeDef, import("../conditionals/conditionals").JSONSchema>>;
|
|
234
235
|
}, {
|
|
@@ -240,6 +241,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
240
241
|
fields: import("./FieldConfig").FieldConfig[];
|
|
241
242
|
requireCompletionToContinue: boolean;
|
|
242
243
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
244
|
+
showClearButton?: boolean | undefined;
|
|
243
245
|
}, {
|
|
244
246
|
id: string;
|
|
245
247
|
title: {
|
|
@@ -251,6 +253,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
251
253
|
type?: "FORM" | undefined;
|
|
252
254
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
253
255
|
requireCompletionToContinue?: boolean | undefined;
|
|
256
|
+
showClearButton?: boolean | undefined;
|
|
254
257
|
}>, "many">;
|
|
255
258
|
}, "strip", z.ZodTypeAny, {
|
|
256
259
|
label: TranslationConfig;
|
|
@@ -261,6 +264,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
261
264
|
fields: import("./FieldConfig").FieldConfig[];
|
|
262
265
|
requireCompletionToContinue: boolean;
|
|
263
266
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
267
|
+
showClearButton?: boolean | undefined;
|
|
264
268
|
}[];
|
|
265
269
|
}, {
|
|
266
270
|
label: {
|
|
@@ -279,6 +283,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
279
283
|
type?: "FORM" | undefined;
|
|
280
284
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
281
285
|
requireCompletionToContinue?: boolean | undefined;
|
|
286
|
+
showClearButton?: boolean | undefined;
|
|
282
287
|
}[];
|
|
283
288
|
}>;
|
|
284
289
|
advancedSearch: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1065,6 +1070,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1065
1070
|
fields: import("./FieldConfig").FieldConfig[];
|
|
1066
1071
|
requireCompletionToContinue: boolean;
|
|
1067
1072
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1073
|
+
showClearButton?: boolean | undefined;
|
|
1068
1074
|
}[];
|
|
1069
1075
|
};
|
|
1070
1076
|
actions: ({
|
|
@@ -1131,6 +1137,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1131
1137
|
fields: import("./FieldConfig").FieldConfig[];
|
|
1132
1138
|
requireCompletionToContinue: boolean;
|
|
1133
1139
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1140
|
+
showClearButton?: boolean | undefined;
|
|
1134
1141
|
} | {
|
|
1135
1142
|
type: "VERIFICATION";
|
|
1136
1143
|
id: string;
|
|
@@ -1150,6 +1157,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1150
1157
|
fields: import("./FieldConfig").FieldConfig[];
|
|
1151
1158
|
requireCompletionToContinue: boolean;
|
|
1152
1159
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1160
|
+
showClearButton?: boolean | undefined;
|
|
1153
1161
|
})[];
|
|
1154
1162
|
};
|
|
1155
1163
|
} | {
|
|
@@ -1164,6 +1172,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1164
1172
|
fields: import("./FieldConfig").FieldConfig[];
|
|
1165
1173
|
requireCompletionToContinue: boolean;
|
|
1166
1174
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1175
|
+
showClearButton?: boolean | undefined;
|
|
1167
1176
|
} | {
|
|
1168
1177
|
type: "VERIFICATION";
|
|
1169
1178
|
id: string;
|
|
@@ -1183,6 +1192,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1183
1192
|
fields: import("./FieldConfig").FieldConfig[];
|
|
1184
1193
|
requireCompletionToContinue: boolean;
|
|
1185
1194
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1195
|
+
showClearButton?: boolean | undefined;
|
|
1186
1196
|
})[];
|
|
1187
1197
|
};
|
|
1188
1198
|
} | {
|
|
@@ -1319,6 +1329,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1319
1329
|
type?: "FORM" | undefined;
|
|
1320
1330
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1321
1331
|
requireCompletionToContinue?: boolean | undefined;
|
|
1332
|
+
showClearButton?: boolean | undefined;
|
|
1322
1333
|
}[];
|
|
1323
1334
|
};
|
|
1324
1335
|
actions: ({
|
|
@@ -1453,6 +1464,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1453
1464
|
type?: "FORM" | undefined;
|
|
1454
1465
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1455
1466
|
requireCompletionToContinue?: boolean | undefined;
|
|
1467
|
+
showClearButton?: boolean | undefined;
|
|
1456
1468
|
} | {
|
|
1457
1469
|
type: "VERIFICATION";
|
|
1458
1470
|
id: string;
|
|
@@ -1492,6 +1504,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1492
1504
|
fields: import("./FieldConfig").FieldConfigInput[];
|
|
1493
1505
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1494
1506
|
requireCompletionToContinue?: boolean | undefined;
|
|
1507
|
+
showClearButton?: boolean | undefined;
|
|
1495
1508
|
})[];
|
|
1496
1509
|
};
|
|
1497
1510
|
} | {
|
|
@@ -1518,6 +1531,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1518
1531
|
type?: "FORM" | undefined;
|
|
1519
1532
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1520
1533
|
requireCompletionToContinue?: boolean | undefined;
|
|
1534
|
+
showClearButton?: boolean | undefined;
|
|
1521
1535
|
} | {
|
|
1522
1536
|
type: "VERIFICATION";
|
|
1523
1537
|
id: string;
|
|
@@ -1557,6 +1571,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1557
1571
|
fields: import("./FieldConfig").FieldConfigInput[];
|
|
1558
1572
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1559
1573
|
requireCompletionToContinue?: boolean | undefined;
|
|
1574
|
+
showClearButton?: boolean | undefined;
|
|
1560
1575
|
})[];
|
|
1561
1576
|
};
|
|
1562
1577
|
} | {
|
|
@@ -1753,6 +1768,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1753
1768
|
fields: import("./FieldConfig").FieldConfig[];
|
|
1754
1769
|
requireCompletionToContinue: boolean;
|
|
1755
1770
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1771
|
+
showClearButton?: boolean | undefined;
|
|
1756
1772
|
}[];
|
|
1757
1773
|
};
|
|
1758
1774
|
actions: ({
|
|
@@ -1819,6 +1835,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1819
1835
|
fields: import("./FieldConfig").FieldConfig[];
|
|
1820
1836
|
requireCompletionToContinue: boolean;
|
|
1821
1837
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1838
|
+
showClearButton?: boolean | undefined;
|
|
1822
1839
|
} | {
|
|
1823
1840
|
type: "VERIFICATION";
|
|
1824
1841
|
id: string;
|
|
@@ -1838,6 +1855,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1838
1855
|
fields: import("./FieldConfig").FieldConfig[];
|
|
1839
1856
|
requireCompletionToContinue: boolean;
|
|
1840
1857
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1858
|
+
showClearButton?: boolean | undefined;
|
|
1841
1859
|
})[];
|
|
1842
1860
|
};
|
|
1843
1861
|
} | {
|
|
@@ -1852,6 +1870,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1852
1870
|
fields: import("./FieldConfig").FieldConfig[];
|
|
1853
1871
|
requireCompletionToContinue: boolean;
|
|
1854
1872
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1873
|
+
showClearButton?: boolean | undefined;
|
|
1855
1874
|
} | {
|
|
1856
1875
|
type: "VERIFICATION";
|
|
1857
1876
|
id: string;
|
|
@@ -1871,6 +1890,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1871
1890
|
fields: import("./FieldConfig").FieldConfig[];
|
|
1872
1891
|
requireCompletionToContinue: boolean;
|
|
1873
1892
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
1893
|
+
showClearButton?: boolean | undefined;
|
|
1874
1894
|
})[];
|
|
1875
1895
|
};
|
|
1876
1896
|
} | {
|
|
@@ -2007,6 +2027,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2007
2027
|
type?: "FORM" | undefined;
|
|
2008
2028
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
2009
2029
|
requireCompletionToContinue?: boolean | undefined;
|
|
2030
|
+
showClearButton?: boolean | undefined;
|
|
2010
2031
|
}[];
|
|
2011
2032
|
};
|
|
2012
2033
|
actions: ({
|
|
@@ -2141,6 +2162,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2141
2162
|
type?: "FORM" | undefined;
|
|
2142
2163
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
2143
2164
|
requireCompletionToContinue?: boolean | undefined;
|
|
2165
|
+
showClearButton?: boolean | undefined;
|
|
2144
2166
|
} | {
|
|
2145
2167
|
type: "VERIFICATION";
|
|
2146
2168
|
id: string;
|
|
@@ -2180,6 +2202,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2180
2202
|
fields: import("./FieldConfig").FieldConfigInput[];
|
|
2181
2203
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
2182
2204
|
requireCompletionToContinue?: boolean | undefined;
|
|
2205
|
+
showClearButton?: boolean | undefined;
|
|
2183
2206
|
})[];
|
|
2184
2207
|
};
|
|
2185
2208
|
} | {
|
|
@@ -2206,6 +2229,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2206
2229
|
type?: "FORM" | undefined;
|
|
2207
2230
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
2208
2231
|
requireCompletionToContinue?: boolean | undefined;
|
|
2232
|
+
showClearButton?: boolean | undefined;
|
|
2209
2233
|
} | {
|
|
2210
2234
|
type: "VERIFICATION";
|
|
2211
2235
|
id: string;
|
|
@@ -2245,6 +2269,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
|
2245
2269
|
fields: import("./FieldConfig").FieldConfigInput[];
|
|
2246
2270
|
conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
|
|
2247
2271
|
requireCompletionToContinue?: boolean | undefined;
|
|
2272
|
+
showClearButton?: boolean | undefined;
|
|
2248
2273
|
})[];
|
|
2249
2274
|
};
|
|
2250
2275
|
} | {
|