@opencrvs/toolkit 2.1.0-rc.462d2a9 → 2.1.0-rc.468b2be
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 +190 -200
- package/dist/commons/api/router.d.ts +111 -7
- package/dist/commons/conditionals/conditionals.d.ts +6 -6
- package/dist/commons/conditionals/validate.d.ts +4 -5
- package/dist/commons/events/ActionConfig.d.ts +0 -21
- package/dist/commons/events/ActionDocument.d.ts +7 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -6
- package/dist/commons/events/AuditLog.d.ts +37 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +0 -18
- package/dist/commons/events/EventIndex.d.ts +24 -5
- package/dist/commons/events/EventMetadata.d.ts +0 -1
- package/dist/commons/events/FieldConfig.d.ts +5 -5
- package/dist/commons/events/FieldTypeMapping.d.ts +19 -19
- package/dist/commons/events/FieldValue.d.ts +2 -2
- package/dist/commons/events/Flag.d.ts +0 -48
- package/dist/commons/events/PlainDate.d.ts +8 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +12 -27
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/locationPayloads.d.ts +95 -0
- package/dist/commons/events/locations.d.ts +191 -11
- package/dist/commons/events/mocks.test.utils.d.ts +46 -2
- package/dist/commons/events/test.utils.d.ts +5 -5
- package/dist/conditionals/index.js +56 -303
- package/dist/events/index.js +3617 -3507
- package/dist/notification/index.js +1067 -1529
- package/dist/scopes/index.d.ts +3 -251
- package/dist/scopes/index.js +56 -304
- package/opencrvs-toolkit-2.1.0-rc.468b2be.tgz +0 -0
- package/package.json +3 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/commons/events/ActionStatus.d.ts +0 -14
- package/opencrvs-toolkit-2.1.0-rc.462d2a9.tgz +0 -0
|
@@ -338,7 +338,6 @@ 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';
|
|
342
341
|
}>]>, z.ZodString]>>>;
|
|
343
342
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
344
343
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -346,7 +345,6 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
346
345
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
347
346
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
348
347
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
349
|
-
readonly SEALED: 'sealed';
|
|
350
348
|
}>]>, z.ZodString]>>>;
|
|
351
349
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
352
350
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -354,7 +352,6 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
354
352
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
355
353
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
356
354
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
357
|
-
readonly SEALED: 'sealed';
|
|
358
355
|
}>]>, z.ZodString]>>>;
|
|
359
356
|
}, z.core.$strip>>>;
|
|
360
357
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -659,7 +656,6 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
659
656
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
660
657
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
661
658
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
662
|
-
readonly SEALED: 'sealed';
|
|
663
659
|
}>]>, z.ZodString]>>>;
|
|
664
660
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
665
661
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -667,7 +663,6 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
667
663
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
668
664
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
669
665
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
670
|
-
readonly SEALED: 'sealed';
|
|
671
666
|
}>]>, z.ZodString]>>>;
|
|
672
667
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
673
668
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -675,7 +670,6 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
675
670
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
676
671
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
677
672
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
678
|
-
readonly SEALED: 'sealed';
|
|
679
673
|
}>]>, z.ZodString]>>>;
|
|
680
674
|
}, z.core.$strip>>>;
|
|
681
675
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -979,7 +973,6 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
979
973
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
980
974
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
981
975
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
982
|
-
readonly SEALED: 'sealed';
|
|
983
976
|
}>]>, z.ZodString]>>>;
|
|
984
977
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
985
978
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -987,7 +980,6 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
987
980
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
988
981
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
989
982
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
990
|
-
readonly SEALED: 'sealed';
|
|
991
983
|
}>]>, z.ZodString]>>>;
|
|
992
984
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
993
985
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -995,7 +987,6 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
995
987
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
996
988
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
997
989
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
998
|
-
readonly SEALED: 'sealed';
|
|
999
990
|
}>]>, z.ZodString]>>>;
|
|
1000
991
|
}, z.core.$strip>>>;
|
|
1001
992
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -1299,7 +1290,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1299
1290
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1300
1291
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1301
1292
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1302
|
-
readonly SEALED: 'sealed';
|
|
1303
1293
|
}>]>, z.ZodString]>>>;
|
|
1304
1294
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1305
1295
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1307,7 +1297,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1307
1297
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1308
1298
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1309
1299
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1310
|
-
readonly SEALED: 'sealed';
|
|
1311
1300
|
}>]>, z.ZodString]>>>;
|
|
1312
1301
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1313
1302
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1315,7 +1304,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1315
1304
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1316
1305
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1317
1306
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1318
|
-
readonly SEALED: 'sealed';
|
|
1319
1307
|
}>]>, z.ZodString]>>>;
|
|
1320
1308
|
}, z.core.$strip>>>;
|
|
1321
1309
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -1618,7 +1606,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1618
1606
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1619
1607
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1620
1608
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1621
|
-
readonly SEALED: 'sealed';
|
|
1622
1609
|
}>]>, z.ZodString]>>>;
|
|
1623
1610
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1624
1611
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1626,7 +1613,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1626
1613
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1627
1614
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1628
1615
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1629
|
-
readonly SEALED: 'sealed';
|
|
1630
1616
|
}>]>, z.ZodString]>>>;
|
|
1631
1617
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1632
1618
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1634,7 +1620,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1634
1620
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1635
1621
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1636
1622
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1637
|
-
readonly SEALED: 'sealed';
|
|
1638
1623
|
}>]>, z.ZodString]>>>;
|
|
1639
1624
|
}, z.core.$strip>>>;
|
|
1640
1625
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -1938,7 +1923,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1938
1923
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1939
1924
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1940
1925
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1941
|
-
readonly SEALED: 'sealed';
|
|
1942
1926
|
}>]>, z.ZodString]>>>;
|
|
1943
1927
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1944
1928
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1946,7 +1930,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1946
1930
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1947
1931
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1948
1932
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1949
|
-
readonly SEALED: 'sealed';
|
|
1950
1933
|
}>]>, z.ZodString]>>>;
|
|
1951
1934
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1952
1935
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -1954,7 +1937,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1954
1937
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1955
1938
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1956
1939
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1957
|
-
readonly SEALED: 'sealed';
|
|
1958
1940
|
}>]>, z.ZodString]>>>;
|
|
1959
1941
|
}, z.core.$strip>>>;
|
|
1960
1942
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z, ZodType } from 'zod/v4';
|
|
2
|
-
export { ContainsFlags } from './Flag';
|
|
3
2
|
export declare const EventIndex: z.ZodObject<{
|
|
4
3
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
5
4
|
type: z.ZodString;
|
|
@@ -71,7 +70,6 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
71
70
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
72
71
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
73
72
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
74
|
-
readonly SEALED: 'sealed';
|
|
75
73
|
}>]>, z.ZodString]>>;
|
|
76
74
|
declaration: z.ZodRecord<z.ZodString, ZodType<import("./FieldValue").FieldValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldValue, unknown>>>;
|
|
77
75
|
}, z.core.$strip>;
|
|
@@ -125,6 +123,29 @@ export declare const Range: z.ZodObject<{
|
|
|
125
123
|
gte: z.ZodString;
|
|
126
124
|
lte: z.ZodString;
|
|
127
125
|
}, 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>;
|
|
128
149
|
export declare const Within: z.ZodObject<{
|
|
129
150
|
type: z.ZodLiteral<"within">;
|
|
130
151
|
location: z.ZodString;
|
|
@@ -295,7 +316,6 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
295
316
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
296
317
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
297
318
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
298
|
-
readonly SEALED: 'sealed';
|
|
299
319
|
}>]>, z.ZodString]>>>;
|
|
300
320
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
301
321
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -303,7 +323,6 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
303
323
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
304
324
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
305
325
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
306
|
-
readonly SEALED: 'sealed';
|
|
307
326
|
}>]>, z.ZodString]>>>;
|
|
308
327
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
309
328
|
readonly INCOMPLETE: 'incomplete';
|
|
@@ -311,7 +330,6 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
311
330
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
312
331
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
313
332
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
314
|
-
readonly SEALED: 'sealed';
|
|
315
333
|
}>]>, z.ZodString]>>>;
|
|
316
334
|
}, z.core.$strip>>>;
|
|
317
335
|
data: z.ZodOptional<ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
@@ -336,4 +354,5 @@ export declare const SearchQuery: z.ZodObject<{
|
|
|
336
354
|
export type SearchQuery = z.infer<typeof SearchQuery>;
|
|
337
355
|
export type QueryType = z.infer<typeof QueryType>;
|
|
338
356
|
export type QueryExpression = z.infer<typeof QueryExpression>;
|
|
357
|
+
export {};
|
|
339
358
|
//# sourceMappingURL=EventIndex.d.ts.map
|
|
@@ -150,7 +150,6 @@ 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';
|
|
154
153
|
}>]>, z.ZodString]>>;
|
|
155
154
|
}, z.core.$strip>;
|
|
156
155
|
export type EventMetadata = z.infer<typeof EventMetadata>;
|
|
@@ -1883,6 +1883,7 @@ 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";
|
|
1886
1887
|
"organisation.read-locations": "organisation.read-locations";
|
|
1887
1888
|
"performance.read": "performance.read";
|
|
1888
1889
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -1921,7 +1922,6 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1921
1922
|
declaredBy: "declaredBy";
|
|
1922
1923
|
declaredIn: "declaredIn";
|
|
1923
1924
|
event: "event";
|
|
1924
|
-
flags: "flags";
|
|
1925
1925
|
ids: "ids";
|
|
1926
1926
|
notifiedBy: "notifiedBy";
|
|
1927
1927
|
notifiedIn: "notifiedIn";
|
|
@@ -2013,6 +2013,7 @@ 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";
|
|
2016
2017
|
"organisation.read-locations": "organisation.read-locations";
|
|
2017
2018
|
"performance.read": "performance.read";
|
|
2018
2019
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2051,7 +2052,6 @@ declare const LocationInput: z.ZodObject<{
|
|
|
2051
2052
|
declaredBy: "declaredBy";
|
|
2052
2053
|
declaredIn: "declaredIn";
|
|
2053
2054
|
event: "event";
|
|
2054
|
-
flags: "flags";
|
|
2055
2055
|
ids: "ids";
|
|
2056
2056
|
notifiedBy: "notifiedBy";
|
|
2057
2057
|
notifiedIn: "notifiedIn";
|
|
@@ -2214,6 +2214,7 @@ 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";
|
|
2217
2218
|
"organisation.read-locations": "organisation.read-locations";
|
|
2218
2219
|
"performance.read": "performance.read";
|
|
2219
2220
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2252,7 +2253,6 @@ declare const Facility: z.ZodObject<{
|
|
|
2252
2253
|
declaredBy: "declaredBy";
|
|
2253
2254
|
declaredIn: "declaredIn";
|
|
2254
2255
|
event: "event";
|
|
2255
|
-
flags: "flags";
|
|
2256
2256
|
ids: "ids";
|
|
2257
2257
|
notifiedBy: "notifiedBy";
|
|
2258
2258
|
notifiedIn: "notifiedIn";
|
|
@@ -2330,6 +2330,7 @@ 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";
|
|
2333
2334
|
"organisation.read-locations": "organisation.read-locations";
|
|
2334
2335
|
"performance.read": "performance.read";
|
|
2335
2336
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2368,7 +2369,6 @@ declare const Office: z.ZodObject<{
|
|
|
2368
2369
|
declaredBy: "declaredBy";
|
|
2369
2370
|
declaredIn: "declaredIn";
|
|
2370
2371
|
event: "event";
|
|
2371
|
-
flags: "flags";
|
|
2372
2372
|
ids: "ids";
|
|
2373
2373
|
notifiedBy: "notifiedBy";
|
|
2374
2374
|
notifiedIn: "notifiedIn";
|
|
@@ -2532,6 +2532,7 @@ 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";
|
|
2535
2536
|
"organisation.read-locations": "organisation.read-locations";
|
|
2536
2537
|
"performance.read": "performance.read";
|
|
2537
2538
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2570,7 +2571,6 @@ declare const Address: z.ZodObject<{
|
|
|
2570
2571
|
declaredBy: "declaredBy";
|
|
2571
2572
|
declaredIn: "declaredIn";
|
|
2572
2573
|
event: "event";
|
|
2573
|
-
flags: "flags";
|
|
2574
2574
|
ids: "ids";
|
|
2575
2575
|
notifiedBy: "notifiedBy";
|
|
2576
2576
|
notifiedIn: "notifiedIn";
|
|
@@ -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
|
+
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
unit: z.ZodOptional<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
|
+
label: z.ZodString;
|
|
48
|
+
value: 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
|
+
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
unit: z.ZodOptional<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
|
+
label: z.ZodString;
|
|
84
|
+
value: 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;
|
|
247
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
248
|
-
addressType: "DOMESTIC";
|
|
249
|
-
administrativeArea: string;
|
|
250
|
-
} | {
|
|
251
|
-
country: string;
|
|
252
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
253
|
-
addressType: "INTERNATIONAL";
|
|
254
|
-
} | {
|
|
255
246
|
country?: string | null | undefined;
|
|
256
247
|
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
257
248
|
addressType: "DOMESTIC";
|
|
@@ -260,7 +251,7 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
260
251
|
country?: string | null | undefined;
|
|
261
252
|
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
262
253
|
addressType: "INTERNATIONAL";
|
|
263
|
-
} |
|
|
254
|
+
} | {
|
|
264
255
|
country: string;
|
|
265
256
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
266
257
|
addressType: "DOMESTIC";
|
|
@@ -269,7 +260,7 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
269
260
|
country: string;
|
|
270
261
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
271
262
|
addressType: "INTERNATIONAL";
|
|
272
|
-
} | {
|
|
263
|
+
} | null | undefined, unknown, z.core.$ZodTypeInternals<{
|
|
273
264
|
country?: string | null | undefined;
|
|
274
265
|
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
275
266
|
addressType: "DOMESTIC";
|
|
@@ -278,6 +269,15 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
278
269
|
country?: string | null | undefined;
|
|
279
270
|
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
280
271
|
addressType: "INTERNATIONAL";
|
|
272
|
+
} | {
|
|
273
|
+
country: string;
|
|
274
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
275
|
+
addressType: "DOMESTIC";
|
|
276
|
+
administrativeArea: string;
|
|
277
|
+
} | {
|
|
278
|
+
country: string;
|
|
279
|
+
streetLevelDetails?: Record<string, string> | 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">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import { AddressFieldUpdateValue, AddressFieldValue, CustomFieldValue, FileFieldValue, FileFieldWithOptionValue, HttpFieldUpdateValue, IdReaderFieldValue, NameFieldUpdateValue, NameFieldValue, NumberWithUnitFieldUpdateValue, NumberWithUnitFieldValue, QrReaderFieldValue, QueryParamReaderFieldUpdateValue } from './CompositeFieldValue';
|
|
3
|
-
import { PlainDate, plainDateToLocalDate } from './PlainDate';
|
|
4
|
-
export { PlainDate, plainDateToLocalDate };
|
|
3
|
+
import { PlainDate, plainDateToLocalDate, toPlainDate } from './PlainDate';
|
|
4
|
+
export { PlainDate, plainDateToLocalDate, toPlainDate };
|
|
5
5
|
/**
|
|
6
6
|
* FieldValues defined in this file are primitive field values.
|
|
7
7
|
* FieldValues defined in CompositeFieldValue.ts are composed of multiple primitive field values (Address, File etc).
|
|
@@ -11,7 +11,6 @@ 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';
|
|
15
14
|
};
|
|
16
15
|
export type InherentFlags = (typeof InherentFlags)[keyof typeof InherentFlags];
|
|
17
16
|
export declare const ActionFlag: z.ZodString;
|
|
@@ -31,54 +30,8 @@ export declare const Flag: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
|
31
30
|
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
32
31
|
*/
|
|
33
32
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
34
|
-
readonly SEALED: 'sealed';
|
|
35
33
|
}>]>, z.ZodString]>;
|
|
36
34
|
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>;
|
|
82
35
|
/**
|
|
83
36
|
* Configuration of a custom flag that can be associated with a certain event type.
|
|
84
37
|
*/
|
|
@@ -104,7 +57,6 @@ export declare const ActionFlagConfig: z.ZodObject<{
|
|
|
104
57
|
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
105
58
|
*/
|
|
106
59
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
107
|
-
readonly SEALED: 'sealed';
|
|
108
60
|
}>]>, z.ZodString]>;
|
|
109
61
|
operation: z.ZodEnum<{
|
|
110
62
|
add: "add";
|
|
@@ -9,6 +9,14 @@ import { z } from 'zod';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const PlainDate: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
11
11
|
export type PlainDate = z.infer<typeof PlainDate>;
|
|
12
|
+
/**
|
|
13
|
+
* Extracts the plain calendar date from an ISO 8601 datetime (or passes an
|
|
14
|
+
* already-plain YYYY-MM-DD through) as a {@link PlainDate}. This is the single
|
|
15
|
+
* conversion from a timestamp to a location-resolution anchor — comparing
|
|
16
|
+
* plain dates as strings, with no timezone conversion. Assumes a valid ISO /
|
|
17
|
+
* YYYY-MM-DD input, as produced by the event metadata and date fields.
|
|
18
|
+
*/
|
|
19
|
+
export declare function toPlainDate(dateTime: string): PlainDate;
|
|
12
20
|
/**
|
|
13
21
|
* Converts a {@link PlainDate} (YYYY-MM-DD) to a local `Date` at midnight.
|
|
14
22
|
*
|