@opencrvs/toolkit 2.1.0-rc.f383722 → 2.1.0-rc.f85d99c
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/application-config/index.js +200 -190
- package/dist/commons/api/router.d.ts +7 -111
- package/dist/commons/conditionals/conditionals.d.ts +6 -6
- package/dist/commons/conditionals/validate.d.ts +2 -1
- package/dist/commons/events/ActionConfig.d.ts +21 -0
- package/dist/commons/events/ActionDocument.d.ts +1 -7
- package/dist/commons/events/ActionStatus.d.ts +14 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -6
- package/dist/commons/events/AuditLog.d.ts +0 -37
- package/dist/commons/events/CountryConfigQueryInput.d.ts +18 -0
- package/dist/commons/events/EventIndex.d.ts +7 -26
- package/dist/commons/events/EventMetadata.d.ts +1 -0
- package/dist/commons/events/FieldConfig.d.ts +6 -6
- package/dist/commons/events/FieldTypeMapping.d.ts +19 -19
- package/dist/commons/events/Flag.d.ts +48 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +27 -12
- package/dist/commons/events/index.d.ts +0 -1
- package/dist/commons/events/locations.d.ts +3 -100
- package/dist/commons/events/mocks.test.utils.d.ts +2 -16
- package/dist/commons/events/test.utils.d.ts +5 -5
- package/dist/conditionals/index.js +303 -56
- package/dist/environment/logger.d.ts +3 -12
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/events/index.js +3278 -3333
- package/dist/notification/index.js +1492 -996
- package/dist/scopes/index.d.ts +276 -28
- package/dist/scopes/index.js +304 -56
- package/opencrvs-toolkit-2.1.0-rc.f85d99c.tgz +0 -0
- package/package.json +3 -4
- package/tsconfig.tsbuildinfo +1 -1
- package/.nx/cache/file-map.json +0 -360
- package/.nx/cache/project-graph.json +0 -6
- package/dist/commons/events/locationPayloads.d.ts +0 -95
- package/opencrvs-toolkit-2.1.0-rc.f383722.tgz +0 -0
|
@@ -338,6 +338,7 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
338
338
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
339
339
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
340
340
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
341
|
+
readonly SEALED: 'sealed';
|
|
341
342
|
}>]>, z.ZodString]>>>;
|
|
342
343
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
343
344
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -345,6 +346,7 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
345
346
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
346
347
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
347
348
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
349
|
+
readonly SEALED: 'sealed';
|
|
348
350
|
}>]>, z.ZodString]>>>;
|
|
349
351
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
350
352
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -352,6 +354,7 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
352
354
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
353
355
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
354
356
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
357
|
+
readonly SEALED: 'sealed';
|
|
355
358
|
}>]>, z.ZodString]>>>;
|
|
356
359
|
}, z.core.$strip>>>;
|
|
357
360
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -656,6 +659,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
656
659
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
657
660
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
658
661
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
662
|
+
readonly SEALED: 'sealed';
|
|
659
663
|
}>]>, z.ZodString]>>>;
|
|
660
664
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
661
665
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -663,6 +667,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
663
667
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
664
668
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
665
669
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
670
|
+
readonly SEALED: 'sealed';
|
|
666
671
|
}>]>, z.ZodString]>>>;
|
|
667
672
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
668
673
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -670,6 +675,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
670
675
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
671
676
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
672
677
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
678
|
+
readonly SEALED: 'sealed';
|
|
673
679
|
}>]>, z.ZodString]>>>;
|
|
674
680
|
}, z.core.$strip>>>;
|
|
675
681
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -973,6 +979,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
973
979
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
974
980
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
975
981
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
982
|
+
readonly SEALED: 'sealed';
|
|
976
983
|
}>]>, z.ZodString]>>>;
|
|
977
984
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
978
985
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -980,6 +987,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
980
987
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
981
988
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
982
989
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
990
|
+
readonly SEALED: 'sealed';
|
|
983
991
|
}>]>, z.ZodString]>>>;
|
|
984
992
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
985
993
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -987,6 +995,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
987
995
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
988
996
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
989
997
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
998
|
+
readonly SEALED: 'sealed';
|
|
990
999
|
}>]>, z.ZodString]>>>;
|
|
991
1000
|
}, z.core.$strip>>>;
|
|
992
1001
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -1290,6 +1299,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1290
1299
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1291
1300
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1292
1301
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1302
|
+
readonly SEALED: 'sealed';
|
|
1293
1303
|
}>]>, z.ZodString]>>>;
|
|
1294
1304
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1295
1305
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1297,6 +1307,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1297
1307
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1298
1308
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1299
1309
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1310
|
+
readonly SEALED: 'sealed';
|
|
1300
1311
|
}>]>, z.ZodString]>>>;
|
|
1301
1312
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1302
1313
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1304,6 +1315,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1304
1315
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1305
1316
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1306
1317
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1318
|
+
readonly SEALED: 'sealed';
|
|
1307
1319
|
}>]>, z.ZodString]>>>;
|
|
1308
1320
|
}, z.core.$strip>>>;
|
|
1309
1321
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -1606,6 +1618,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1606
1618
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1607
1619
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1608
1620
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1621
|
+
readonly SEALED: 'sealed';
|
|
1609
1622
|
}>]>, z.ZodString]>>>;
|
|
1610
1623
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1611
1624
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1613,6 +1626,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1613
1626
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1614
1627
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1615
1628
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1629
|
+
readonly SEALED: 'sealed';
|
|
1616
1630
|
}>]>, z.ZodString]>>>;
|
|
1617
1631
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1618
1632
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1620,6 +1634,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1620
1634
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1621
1635
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1622
1636
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1637
|
+
readonly SEALED: 'sealed';
|
|
1623
1638
|
}>]>, z.ZodString]>>>;
|
|
1624
1639
|
}, z.core.$strip>>>;
|
|
1625
1640
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -1923,6 +1938,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1923
1938
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1924
1939
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1925
1940
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1941
|
+
readonly SEALED: 'sealed';
|
|
1926
1942
|
}>]>, z.ZodString]>>>;
|
|
1927
1943
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1928
1944
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1930,6 +1946,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1930
1946
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1931
1947
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1932
1948
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1949
|
+
readonly SEALED: 'sealed';
|
|
1933
1950
|
}>]>, z.ZodString]>>>;
|
|
1934
1951
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1935
1952
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1937,6 +1954,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1937
1954
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1938
1955
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1939
1956
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1957
|
+
readonly SEALED: 'sealed';
|
|
1940
1958
|
}>]>, z.ZodString]>>>;
|
|
1941
1959
|
}, z.core.$strip>>>;
|
|
1942
1960
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z, ZodType } from 'zod/v4';
|
|
2
|
+
export { ContainsFlags } from './Flag';
|
|
2
3
|
export declare const EventIndex: z.ZodObject<{
|
|
3
4
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
4
5
|
type: z.ZodString;
|
|
@@ -70,6 +71,7 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
70
71
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
71
72
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
72
73
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
74
|
+
readonly SEALED: 'sealed';
|
|
73
75
|
}>]>, z.ZodString]>>;
|
|
74
76
|
declaration: z.ZodRecord<z.ZodString, ZodType<import("./FieldValue").FieldValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldValue, unknown>>>;
|
|
75
77
|
}, z.core.$strip>;
|
|
@@ -123,29 +125,6 @@ export declare const Range: z.ZodObject<{
|
|
|
123
125
|
gte: z.ZodString;
|
|
124
126
|
lte: z.ZodString;
|
|
125
127
|
}, z.core.$strip>;
|
|
126
|
-
export declare const ContainsFlags: z.ZodObject<{
|
|
127
|
-
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
128
|
-
readonly INCOMPLETE: 'incomplete';
|
|
129
|
-
readonly REJECTED: 'rejected';
|
|
130
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
131
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
132
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
133
|
-
}>]>, z.ZodString]>>>;
|
|
134
|
-
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
135
|
-
readonly INCOMPLETE: 'incomplete';
|
|
136
|
-
readonly REJECTED: 'rejected';
|
|
137
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
138
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
139
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
140
|
-
}>]>, z.ZodString]>>>;
|
|
141
|
-
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
142
|
-
readonly INCOMPLETE: 'incomplete';
|
|
143
|
-
readonly REJECTED: 'rejected';
|
|
144
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
145
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
146
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
147
|
-
}>]>, z.ZodString]>>>;
|
|
148
|
-
}, z.core.$strip>;
|
|
149
128
|
export declare const Within: z.ZodObject<{
|
|
150
129
|
type: z.ZodLiteral<"within">;
|
|
151
130
|
location: z.ZodString;
|
|
@@ -316,6 +295,7 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
316
295
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
317
296
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
318
297
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
298
|
+
readonly SEALED: 'sealed';
|
|
319
299
|
}>]>, z.ZodString]>>>;
|
|
320
300
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
321
301
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -323,6 +303,7 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
323
303
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
324
304
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
325
305
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
306
|
+
readonly SEALED: 'sealed';
|
|
326
307
|
}>]>, z.ZodString]>>>;
|
|
327
308
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
328
309
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -330,6 +311,7 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
330
311
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
331
312
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
332
313
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
314
|
+
readonly SEALED: 'sealed';
|
|
333
315
|
}>]>, z.ZodString]>>>;
|
|
334
316
|
}, z.core.$strip>>>;
|
|
335
317
|
data: z.ZodOptional<ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -340,10 +322,10 @@ export type QueryTypeShape = {
|
|
|
340
322
|
};
|
|
341
323
|
export declare const QueryType: z.ZodType<QueryTypeShape>;
|
|
342
324
|
export declare const SearchQuery: z.ZodObject<{
|
|
343
|
-
query: z.
|
|
325
|
+
query: z.ZodPipe<z.ZodTransform<any, unknown>, ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
|
|
344
326
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
345
327
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
346
|
-
sort: z.ZodOptional<z.
|
|
328
|
+
sort: z.ZodOptional<z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodArray<z.ZodObject<{
|
|
347
329
|
field: z.ZodString;
|
|
348
330
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
349
331
|
asc: "asc";
|
|
@@ -354,5 +336,4 @@ export declare const SearchQuery: z.ZodObject<{
|
|
|
354
336
|
export type SearchQuery = z.infer<typeof SearchQuery>;
|
|
355
337
|
export type QueryType = z.infer<typeof QueryType>;
|
|
356
338
|
export type QueryExpression = z.infer<typeof QueryExpression>;
|
|
357
|
-
export {};
|
|
358
339
|
//# sourceMappingURL=EventIndex.d.ts.map
|
|
@@ -150,6 +150,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
150
150
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
151
151
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
152
152
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
153
|
+
readonly SEALED: 'sealed';
|
|
153
154
|
}>]>, z.ZodString]>>;
|
|
154
155
|
}, z.core.$strip>;
|
|
155
156
|
export type EventMetadata = z.infer<typeof EventMetadata>;
|
|
@@ -1883,7 +1883,6 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1883
1883
|
"config.update-all": "config.update-all";
|
|
1884
1884
|
"dashboard.view": "dashboard.view";
|
|
1885
1885
|
"integration.create": "integration.create";
|
|
1886
|
-
"location.edit": "location.edit";
|
|
1887
1886
|
"organisation.read-locations": "organisation.read-locations";
|
|
1888
1887
|
"performance.read": "performance.read";
|
|
1889
1888
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -1922,6 +1921,7 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1922
1921
|
declaredBy: "declaredBy";
|
|
1923
1922
|
declaredIn: "declaredIn";
|
|
1924
1923
|
event: "event";
|
|
1924
|
+
flags: "flags";
|
|
1925
1925
|
ids: "ids";
|
|
1926
1926
|
notifiedBy: "notifiedBy";
|
|
1927
1927
|
notifiedIn: "notifiedIn";
|
|
@@ -2013,7 +2013,6 @@ declare const LocationInput: z.ZodObject<{
|
|
|
2013
2013
|
"config.update-all": "config.update-all";
|
|
2014
2014
|
"dashboard.view": "dashboard.view";
|
|
2015
2015
|
"integration.create": "integration.create";
|
|
2016
|
-
"location.edit": "location.edit";
|
|
2017
2016
|
"organisation.read-locations": "organisation.read-locations";
|
|
2018
2017
|
"performance.read": "performance.read";
|
|
2019
2018
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2052,6 +2051,7 @@ declare const LocationInput: z.ZodObject<{
|
|
|
2052
2051
|
declaredBy: "declaredBy";
|
|
2053
2052
|
declaredIn: "declaredIn";
|
|
2054
2053
|
event: "event";
|
|
2054
|
+
flags: "flags";
|
|
2055
2055
|
ids: "ids";
|
|
2056
2056
|
notifiedBy: "notifiedBy";
|
|
2057
2057
|
notifiedIn: "notifiedIn";
|
|
@@ -2214,7 +2214,6 @@ declare const Facility: z.ZodObject<{
|
|
|
2214
2214
|
"config.update-all": "config.update-all";
|
|
2215
2215
|
"dashboard.view": "dashboard.view";
|
|
2216
2216
|
"integration.create": "integration.create";
|
|
2217
|
-
"location.edit": "location.edit";
|
|
2218
2217
|
"organisation.read-locations": "organisation.read-locations";
|
|
2219
2218
|
"performance.read": "performance.read";
|
|
2220
2219
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2253,6 +2252,7 @@ declare const Facility: z.ZodObject<{
|
|
|
2253
2252
|
declaredBy: "declaredBy";
|
|
2254
2253
|
declaredIn: "declaredIn";
|
|
2255
2254
|
event: "event";
|
|
2255
|
+
flags: "flags";
|
|
2256
2256
|
ids: "ids";
|
|
2257
2257
|
notifiedBy: "notifiedBy";
|
|
2258
2258
|
notifiedIn: "notifiedIn";
|
|
@@ -2330,7 +2330,6 @@ declare const Office: z.ZodObject<{
|
|
|
2330
2330
|
"config.update-all": "config.update-all";
|
|
2331
2331
|
"dashboard.view": "dashboard.view";
|
|
2332
2332
|
"integration.create": "integration.create";
|
|
2333
|
-
"location.edit": "location.edit";
|
|
2334
2333
|
"organisation.read-locations": "organisation.read-locations";
|
|
2335
2334
|
"performance.read": "performance.read";
|
|
2336
2335
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2369,6 +2368,7 @@ declare const Office: z.ZodObject<{
|
|
|
2369
2368
|
declaredBy: "declaredBy";
|
|
2370
2369
|
declaredIn: "declaredIn";
|
|
2371
2370
|
event: "event";
|
|
2371
|
+
flags: "flags";
|
|
2372
2372
|
ids: "ids";
|
|
2373
2373
|
notifiedBy: "notifiedBy";
|
|
2374
2374
|
notifiedIn: "notifiedIn";
|
|
@@ -2532,7 +2532,6 @@ declare const Address: z.ZodObject<{
|
|
|
2532
2532
|
"config.update-all": "config.update-all";
|
|
2533
2533
|
"dashboard.view": "dashboard.view";
|
|
2534
2534
|
"integration.create": "integration.create";
|
|
2535
|
-
"location.edit": "location.edit";
|
|
2536
2535
|
"organisation.read-locations": "organisation.read-locations";
|
|
2537
2536
|
"performance.read": "performance.read";
|
|
2538
2537
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2571,6 +2570,7 @@ declare const Address: z.ZodObject<{
|
|
|
2571
2570
|
declaredBy: "declaredBy";
|
|
2572
2571
|
declaredIn: "declaredIn";
|
|
2573
2572
|
event: "event";
|
|
2573
|
+
flags: "flags";
|
|
2574
2574
|
ids: "ids";
|
|
2575
2575
|
notifiedBy: "notifiedBy";
|
|
2576
2576
|
notifiedIn: "notifiedIn";
|
|
@@ -3050,7 +3050,7 @@ declare const SearchField: z.ZodObject<{
|
|
|
3050
3050
|
}, z.core.$strip>]>>;
|
|
3051
3051
|
type: z.ZodLiteral<"SEARCH">;
|
|
3052
3052
|
configuration: z.ZodObject<{
|
|
3053
|
-
query: z.
|
|
3053
|
+
query: z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodType<import("./EventIndex").QueryTypeShape, unknown, z.core.$ZodTypeInternals<import("./EventIndex").QueryTypeShape, unknown>>>;
|
|
3054
3054
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3055
3055
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3056
3056
|
validation: z.ZodObject<{
|
|
@@ -32,8 +32,8 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
32
32
|
age: z.ZodNumber;
|
|
33
33
|
asOfDateRef: z.ZodString;
|
|
34
34
|
}, z.core.$strip> | z.ZodObject<{
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
label: z.ZodString;
|
|
36
|
+
value: z.ZodString;
|
|
37
37
|
}, z.core.$strip> | z.ZodObject<{
|
|
38
38
|
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
39
39
|
originalFilename: z.ZodString;
|
|
@@ -44,8 +44,8 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
44
44
|
numericValue: z.ZodNumber;
|
|
45
45
|
unit: z.ZodString;
|
|
46
46
|
}, z.core.$strip> | z.ZodObject<{
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
49
49
|
}, z.core.$strip> | z.ZodObject<{
|
|
50
50
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
51
51
|
}, z.core.$strip> | z.ZodObject<{
|
|
@@ -68,8 +68,8 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
68
68
|
age: z.ZodNumber;
|
|
69
69
|
asOfDateRef: z.ZodString;
|
|
70
70
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
label: z.ZodString;
|
|
72
|
+
value: z.ZodString;
|
|
73
73
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
74
74
|
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
75
75
|
originalFilename: z.ZodString;
|
|
@@ -80,8 +80,8 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
80
80
|
numericValue: z.ZodNumber;
|
|
81
81
|
unit: z.ZodString;
|
|
82
82
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
85
85
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
86
86
|
data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
87
87
|
country: z.ZodString;
|
|
@@ -243,15 +243,6 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
243
243
|
}, z.core.$strip>>>;
|
|
244
244
|
data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
245
245
|
}, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>>> | z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue", "out">>> | z.ZodString | z.ZodType<{
|
|
246
|
-
country?: string | null | undefined;
|
|
247
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
248
|
-
addressType: "DOMESTIC";
|
|
249
|
-
administrativeArea?: string | null | undefined;
|
|
250
|
-
} | {
|
|
251
|
-
country?: string | null | undefined;
|
|
252
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
253
|
-
addressType: "INTERNATIONAL";
|
|
254
|
-
} | {
|
|
255
246
|
country: string;
|
|
256
247
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
257
248
|
addressType: "DOMESTIC";
|
|
@@ -260,7 +251,7 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
260
251
|
country: string;
|
|
261
252
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
262
253
|
addressType: "INTERNATIONAL";
|
|
263
|
-
} |
|
|
254
|
+
} | {
|
|
264
255
|
country?: string | null | undefined;
|
|
265
256
|
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
266
257
|
addressType: "DOMESTIC";
|
|
@@ -269,7 +260,7 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
269
260
|
country?: string | null | undefined;
|
|
270
261
|
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
271
262
|
addressType: "INTERNATIONAL";
|
|
272
|
-
} | {
|
|
263
|
+
} | null | undefined, unknown, z.core.$ZodTypeInternals<{
|
|
273
264
|
country: string;
|
|
274
265
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
275
266
|
addressType: "DOMESTIC";
|
|
@@ -278,6 +269,15 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
278
269
|
country: string;
|
|
279
270
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
280
271
|
addressType: "INTERNATIONAL";
|
|
272
|
+
} | {
|
|
273
|
+
country?: string | null | undefined;
|
|
274
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
275
|
+
addressType: "DOMESTIC";
|
|
276
|
+
administrativeArea?: string | null | undefined;
|
|
277
|
+
} | {
|
|
278
|
+
country?: string | null | undefined;
|
|
279
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
280
|
+
addressType: "INTERNATIONAL";
|
|
281
281
|
} | null | undefined, unknown>> | z.ZodUnion<[z.ZodObject<{
|
|
282
282
|
start: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
283
283
|
end: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
@@ -11,6 +11,7 @@ export declare const InherentFlags: {
|
|
|
11
11
|
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
12
12
|
*/
|
|
13
13
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
14
|
+
readonly SEALED: 'sealed';
|
|
14
15
|
};
|
|
15
16
|
export type InherentFlags = (typeof InherentFlags)[keyof typeof InherentFlags];
|
|
16
17
|
export declare const ActionFlag: z.ZodString;
|
|
@@ -30,8 +31,54 @@ export declare const Flag: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
|
30
31
|
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
31
32
|
*/
|
|
32
33
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
34
|
+
readonly SEALED: 'sealed';
|
|
33
35
|
}>]>, z.ZodString]>;
|
|
34
36
|
export type Flag = z.infer<typeof Flag>;
|
|
37
|
+
export declare const ContainsFlags: z.ZodObject<{
|
|
38
|
+
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
39
|
+
readonly INCOMPLETE: 'incomplete';
|
|
40
|
+
readonly REJECTED: 'rejected';
|
|
41
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
42
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
43
|
+
/**
|
|
44
|
+
* This flag is set by the Edit-action and removed after the declaration or registration.
|
|
45
|
+
* A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
|
|
46
|
+
*
|
|
47
|
+
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
48
|
+
*/
|
|
49
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
50
|
+
readonly SEALED: 'sealed';
|
|
51
|
+
}>]>, z.ZodString]>>>;
|
|
52
|
+
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
53
|
+
readonly INCOMPLETE: 'incomplete';
|
|
54
|
+
readonly REJECTED: 'rejected';
|
|
55
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
56
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
57
|
+
/**
|
|
58
|
+
* This flag is set by the Edit-action and removed after the declaration or registration.
|
|
59
|
+
* A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
|
|
60
|
+
*
|
|
61
|
+
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
62
|
+
*/
|
|
63
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
64
|
+
readonly SEALED: 'sealed';
|
|
65
|
+
}>]>, z.ZodString]>>>;
|
|
66
|
+
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
67
|
+
readonly INCOMPLETE: 'incomplete';
|
|
68
|
+
readonly REJECTED: 'rejected';
|
|
69
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
70
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
71
|
+
/**
|
|
72
|
+
* This flag is set by the Edit-action and removed after the declaration or registration.
|
|
73
|
+
* A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
|
|
74
|
+
*
|
|
75
|
+
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
76
|
+
*/
|
|
77
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
78
|
+
readonly SEALED: 'sealed';
|
|
79
|
+
}>]>, z.ZodString]>>>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type ContainsFlags = z.infer<typeof ContainsFlags>;
|
|
35
82
|
/**
|
|
36
83
|
* Configuration of a custom flag that can be associated with a certain event type.
|
|
37
84
|
*/
|
|
@@ -57,6 +104,7 @@ export declare const ActionFlagConfig: z.ZodObject<{
|
|
|
57
104
|
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
58
105
|
*/
|
|
59
106
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
107
|
+
readonly SEALED: 'sealed';
|
|
60
108
|
}>]>, z.ZodString]>;
|
|
61
109
|
operation: z.ZodEnum<{
|
|
62
110
|
add: "add";
|