@opencrvs/toolkit 2.1.0 → 2.2.0-rc.90ed9cd
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/build.sh +2 -2
- package/create-countryconfig/package.json +1 -1
- package/dist/application-config/index.js +36 -3
- package/dist/authentication/index.js +14 -1
- package/dist/cli.js +294 -1967
- package/dist/commons/api/router.d.ts +1374 -71
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/ActionConfig.d.ts +133 -0
- package/dist/commons/events/ActionDocument.d.ts +88 -0
- package/dist/commons/events/ActionInput.d.ts +52 -0
- package/dist/commons/events/ActionType.d.ts +11 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +12 -0
- package/dist/commons/events/AuditLog.d.ts +4 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +192 -0
- package/dist/commons/events/Draft.d.ts +2 -0
- package/dist/commons/events/EventConfig.d.ts +26 -6
- package/dist/commons/events/EventDocument.d.ts +88 -0
- package/dist/commons/events/EventIndex.d.ts +41 -0
- package/dist/commons/events/EventMetadata.d.ts +23 -0
- package/dist/commons/events/EventStatus.d.ts +1 -0
- package/dist/commons/events/FieldConfig.d.ts +10 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +216 -10
- package/dist/commons/events/eventConfigValidation.d.ts +17 -1
- package/dist/commons/events/scopes.d.ts +2 -0
- package/dist/commons/events/state/index.d.ts +10 -2
- package/dist/commons/events/state/utils.d.ts +11 -1
- package/dist/commons/events/test.utils.d.ts +28 -1
- package/dist/commons/events/utils.d.ts +43 -15
- package/dist/conditionals/index.js +14 -1
- package/dist/environment/derived-variables.d.ts +18 -0
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/derived-variables.js +22 -1
- package/dist/environment/setup-environment.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +29 -10
- package/dist/events/index.js +302 -68
- package/dist/migrations/add-translations.d.ts +15 -0
- package/dist/migrations/add-translations.d.ts.map +1 -0
- package/dist/migrations/{v2.1/add-translations.js → add-translations.js} +16 -14
- package/dist/migrations/v2.1/index.js +35 -2155
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +3 -0
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +1 -1
- package/dist/migrations/v2.1/upgrade-tilt.d.ts +3 -0
- package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +1 -1
- package/dist/migrations/v2.2/index.d.ts +6 -0
- package/dist/migrations/v2.2/index.d.ts.map +1 -0
- package/dist/migrations/v2.2/index.js +456 -0
- package/dist/migrations/v2.2/read-declaration-through-helper.d.ts +39 -0
- package/dist/migrations/v2.2/read-declaration-through-helper.d.ts.map +1 -0
- package/dist/migrations/v2.2/read-declaration-through-helper.js +257 -0
- package/dist/notification/index.js +279 -88
- package/dist/scopes/index.d.ts +29 -6
- package/dist/scopes/index.js +14 -1
- package/dist/templates/charts-values/traefik/values.yaml +2 -3
- package/opencrvs-toolkit-2.2.0-rc.90ed9cd.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/migrations/v2.1/add-translations.d.ts +0 -9
- package/dist/migrations/v2.1/add-translations.d.ts.map +0 -1
- package/opencrvs-toolkit-2.1.0.tgz +0 -0
|
@@ -51,6 +51,17 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
51
51
|
DECLARED: "DECLARED";
|
|
52
52
|
NOTIFIED: "NOTIFIED";
|
|
53
53
|
REGISTERED: "REGISTERED";
|
|
54
|
+
REVOKED: "REVOKED";
|
|
55
|
+
}>>;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
type: z.ZodLiteral<"noneOf">;
|
|
58
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
59
|
+
ARCHIVED: "ARCHIVED";
|
|
60
|
+
CREATED: "CREATED";
|
|
61
|
+
DECLARED: "DECLARED";
|
|
62
|
+
NOTIFIED: "NOTIFIED";
|
|
63
|
+
REGISTERED: "REGISTERED";
|
|
64
|
+
REVOKED: "REVOKED";
|
|
54
65
|
}>>;
|
|
55
66
|
}, z.core.$strip>, z.ZodObject<{
|
|
56
67
|
type: z.ZodLiteral<"exact">;
|
|
@@ -60,6 +71,7 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
60
71
|
DECLARED: "DECLARED";
|
|
61
72
|
NOTIFIED: "NOTIFIED";
|
|
62
73
|
REGISTERED: "REGISTERED";
|
|
74
|
+
REVOKED: "REVOKED";
|
|
63
75
|
}>;
|
|
64
76
|
}, z.core.$strip>]>>>;
|
|
65
77
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -162,6 +174,26 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
162
174
|
type: z.ZodLiteral<"exact">;
|
|
163
175
|
term: z.ZodString;
|
|
164
176
|
}, z.core.$strip>>>;
|
|
177
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
178
|
+
type: z.ZodLiteral<"within">;
|
|
179
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
180
|
+
$userField: z.ZodEnum<{
|
|
181
|
+
administrativeAreaId: "administrativeAreaId";
|
|
182
|
+
avatar: "avatar";
|
|
183
|
+
device: "device";
|
|
184
|
+
firstname: "firstname";
|
|
185
|
+
fullHonorificName: "fullHonorificName";
|
|
186
|
+
id: "id";
|
|
187
|
+
middlename: "middlename";
|
|
188
|
+
name: "name";
|
|
189
|
+
primaryOfficeId: "primaryOfficeId";
|
|
190
|
+
role: "role";
|
|
191
|
+
signature: "signature";
|
|
192
|
+
surname: "surname";
|
|
193
|
+
}>;
|
|
194
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
195
|
+
}, z.core.$strip>]>;
|
|
196
|
+
}, z.core.$strip>>>;
|
|
165
197
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
166
198
|
type: z.ZodLiteral<"within">;
|
|
167
199
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -369,6 +401,17 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
369
401
|
DECLARED: "DECLARED";
|
|
370
402
|
NOTIFIED: "NOTIFIED";
|
|
371
403
|
REGISTERED: "REGISTERED";
|
|
404
|
+
REVOKED: "REVOKED";
|
|
405
|
+
}>>;
|
|
406
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
407
|
+
type: z.ZodLiteral<"noneOf">;
|
|
408
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
409
|
+
ARCHIVED: "ARCHIVED";
|
|
410
|
+
CREATED: "CREATED";
|
|
411
|
+
DECLARED: "DECLARED";
|
|
412
|
+
NOTIFIED: "NOTIFIED";
|
|
413
|
+
REGISTERED: "REGISTERED";
|
|
414
|
+
REVOKED: "REVOKED";
|
|
372
415
|
}>>;
|
|
373
416
|
}, z.core.$strip>, z.ZodObject<{
|
|
374
417
|
type: z.ZodLiteral<"exact">;
|
|
@@ -378,6 +421,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
378
421
|
DECLARED: "DECLARED";
|
|
379
422
|
NOTIFIED: "NOTIFIED";
|
|
380
423
|
REGISTERED: "REGISTERED";
|
|
424
|
+
REVOKED: "REVOKED";
|
|
381
425
|
}>;
|
|
382
426
|
}, z.core.$strip>]>>>;
|
|
383
427
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -480,6 +524,26 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
480
524
|
type: z.ZodLiteral<"exact">;
|
|
481
525
|
term: z.ZodString;
|
|
482
526
|
}, z.core.$strip>>>;
|
|
527
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
528
|
+
type: z.ZodLiteral<"within">;
|
|
529
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
530
|
+
$userField: z.ZodEnum<{
|
|
531
|
+
administrativeAreaId: "administrativeAreaId";
|
|
532
|
+
avatar: "avatar";
|
|
533
|
+
device: "device";
|
|
534
|
+
firstname: "firstname";
|
|
535
|
+
fullHonorificName: "fullHonorificName";
|
|
536
|
+
id: "id";
|
|
537
|
+
middlename: "middlename";
|
|
538
|
+
name: "name";
|
|
539
|
+
primaryOfficeId: "primaryOfficeId";
|
|
540
|
+
role: "role";
|
|
541
|
+
signature: "signature";
|
|
542
|
+
surname: "surname";
|
|
543
|
+
}>;
|
|
544
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
545
|
+
}, z.core.$strip>]>;
|
|
546
|
+
}, z.core.$strip>>>;
|
|
483
547
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
484
548
|
type: z.ZodLiteral<"within">;
|
|
485
549
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -686,6 +750,17 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
686
750
|
DECLARED: "DECLARED";
|
|
687
751
|
NOTIFIED: "NOTIFIED";
|
|
688
752
|
REGISTERED: "REGISTERED";
|
|
753
|
+
REVOKED: "REVOKED";
|
|
754
|
+
}>>;
|
|
755
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
756
|
+
type: z.ZodLiteral<"noneOf">;
|
|
757
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
758
|
+
ARCHIVED: "ARCHIVED";
|
|
759
|
+
CREATED: "CREATED";
|
|
760
|
+
DECLARED: "DECLARED";
|
|
761
|
+
NOTIFIED: "NOTIFIED";
|
|
762
|
+
REGISTERED: "REGISTERED";
|
|
763
|
+
REVOKED: "REVOKED";
|
|
689
764
|
}>>;
|
|
690
765
|
}, z.core.$strip>, z.ZodObject<{
|
|
691
766
|
type: z.ZodLiteral<"exact">;
|
|
@@ -695,6 +770,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
695
770
|
DECLARED: "DECLARED";
|
|
696
771
|
NOTIFIED: "NOTIFIED";
|
|
697
772
|
REGISTERED: "REGISTERED";
|
|
773
|
+
REVOKED: "REVOKED";
|
|
698
774
|
}>;
|
|
699
775
|
}, z.core.$strip>]>>>;
|
|
700
776
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -797,6 +873,26 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
797
873
|
type: z.ZodLiteral<"exact">;
|
|
798
874
|
term: z.ZodString;
|
|
799
875
|
}, z.core.$strip>>>;
|
|
876
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
877
|
+
type: z.ZodLiteral<"within">;
|
|
878
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
879
|
+
$userField: z.ZodEnum<{
|
|
880
|
+
administrativeAreaId: "administrativeAreaId";
|
|
881
|
+
avatar: "avatar";
|
|
882
|
+
device: "device";
|
|
883
|
+
firstname: "firstname";
|
|
884
|
+
fullHonorificName: "fullHonorificName";
|
|
885
|
+
id: "id";
|
|
886
|
+
middlename: "middlename";
|
|
887
|
+
name: "name";
|
|
888
|
+
primaryOfficeId: "primaryOfficeId";
|
|
889
|
+
role: "role";
|
|
890
|
+
signature: "signature";
|
|
891
|
+
surname: "surname";
|
|
892
|
+
}>;
|
|
893
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
894
|
+
}, z.core.$strip>]>;
|
|
895
|
+
}, z.core.$strip>>>;
|
|
800
896
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
801
897
|
type: z.ZodLiteral<"within">;
|
|
802
898
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1003,6 +1099,17 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1003
1099
|
DECLARED: "DECLARED";
|
|
1004
1100
|
NOTIFIED: "NOTIFIED";
|
|
1005
1101
|
REGISTERED: "REGISTERED";
|
|
1102
|
+
REVOKED: "REVOKED";
|
|
1103
|
+
}>>;
|
|
1104
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1105
|
+
type: z.ZodLiteral<"noneOf">;
|
|
1106
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
1107
|
+
ARCHIVED: "ARCHIVED";
|
|
1108
|
+
CREATED: "CREATED";
|
|
1109
|
+
DECLARED: "DECLARED";
|
|
1110
|
+
NOTIFIED: "NOTIFIED";
|
|
1111
|
+
REGISTERED: "REGISTERED";
|
|
1112
|
+
REVOKED: "REVOKED";
|
|
1006
1113
|
}>>;
|
|
1007
1114
|
}, z.core.$strip>, z.ZodObject<{
|
|
1008
1115
|
type: z.ZodLiteral<"exact">;
|
|
@@ -1012,6 +1119,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1012
1119
|
DECLARED: "DECLARED";
|
|
1013
1120
|
NOTIFIED: "NOTIFIED";
|
|
1014
1121
|
REGISTERED: "REGISTERED";
|
|
1122
|
+
REVOKED: "REVOKED";
|
|
1015
1123
|
}>;
|
|
1016
1124
|
}, z.core.$strip>]>>>;
|
|
1017
1125
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1114,6 +1222,26 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1114
1222
|
type: z.ZodLiteral<"exact">;
|
|
1115
1223
|
term: z.ZodString;
|
|
1116
1224
|
}, z.core.$strip>>>;
|
|
1225
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1226
|
+
type: z.ZodLiteral<"within">;
|
|
1227
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1228
|
+
$userField: z.ZodEnum<{
|
|
1229
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1230
|
+
avatar: "avatar";
|
|
1231
|
+
device: "device";
|
|
1232
|
+
firstname: "firstname";
|
|
1233
|
+
fullHonorificName: "fullHonorificName";
|
|
1234
|
+
id: "id";
|
|
1235
|
+
middlename: "middlename";
|
|
1236
|
+
name: "name";
|
|
1237
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1238
|
+
role: "role";
|
|
1239
|
+
signature: "signature";
|
|
1240
|
+
surname: "surname";
|
|
1241
|
+
}>;
|
|
1242
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1243
|
+
}, z.core.$strip>]>;
|
|
1244
|
+
}, z.core.$strip>>>;
|
|
1117
1245
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1118
1246
|
type: z.ZodLiteral<"within">;
|
|
1119
1247
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1319,6 +1447,17 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1319
1447
|
DECLARED: "DECLARED";
|
|
1320
1448
|
NOTIFIED: "NOTIFIED";
|
|
1321
1449
|
REGISTERED: "REGISTERED";
|
|
1450
|
+
REVOKED: "REVOKED";
|
|
1451
|
+
}>>;
|
|
1452
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1453
|
+
type: z.ZodLiteral<"noneOf">;
|
|
1454
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
1455
|
+
ARCHIVED: "ARCHIVED";
|
|
1456
|
+
CREATED: "CREATED";
|
|
1457
|
+
DECLARED: "DECLARED";
|
|
1458
|
+
NOTIFIED: "NOTIFIED";
|
|
1459
|
+
REGISTERED: "REGISTERED";
|
|
1460
|
+
REVOKED: "REVOKED";
|
|
1322
1461
|
}>>;
|
|
1323
1462
|
}, z.core.$strip>, z.ZodObject<{
|
|
1324
1463
|
type: z.ZodLiteral<"exact">;
|
|
@@ -1328,6 +1467,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1328
1467
|
DECLARED: "DECLARED";
|
|
1329
1468
|
NOTIFIED: "NOTIFIED";
|
|
1330
1469
|
REGISTERED: "REGISTERED";
|
|
1470
|
+
REVOKED: "REVOKED";
|
|
1331
1471
|
}>;
|
|
1332
1472
|
}, z.core.$strip>]>>>;
|
|
1333
1473
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1430,6 +1570,26 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1430
1570
|
type: z.ZodLiteral<"exact">;
|
|
1431
1571
|
term: z.ZodString;
|
|
1432
1572
|
}, z.core.$strip>>>;
|
|
1573
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1574
|
+
type: z.ZodLiteral<"within">;
|
|
1575
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1576
|
+
$userField: z.ZodEnum<{
|
|
1577
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1578
|
+
avatar: "avatar";
|
|
1579
|
+
device: "device";
|
|
1580
|
+
firstname: "firstname";
|
|
1581
|
+
fullHonorificName: "fullHonorificName";
|
|
1582
|
+
id: "id";
|
|
1583
|
+
middlename: "middlename";
|
|
1584
|
+
name: "name";
|
|
1585
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1586
|
+
role: "role";
|
|
1587
|
+
signature: "signature";
|
|
1588
|
+
surname: "surname";
|
|
1589
|
+
}>;
|
|
1590
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1591
|
+
}, z.core.$strip>]>;
|
|
1592
|
+
}, z.core.$strip>>>;
|
|
1433
1593
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1434
1594
|
type: z.ZodLiteral<"within">;
|
|
1435
1595
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1636,6 +1796,17 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1636
1796
|
DECLARED: "DECLARED";
|
|
1637
1797
|
NOTIFIED: "NOTIFIED";
|
|
1638
1798
|
REGISTERED: "REGISTERED";
|
|
1799
|
+
REVOKED: "REVOKED";
|
|
1800
|
+
}>>;
|
|
1801
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1802
|
+
type: z.ZodLiteral<"noneOf">;
|
|
1803
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
1804
|
+
ARCHIVED: "ARCHIVED";
|
|
1805
|
+
CREATED: "CREATED";
|
|
1806
|
+
DECLARED: "DECLARED";
|
|
1807
|
+
NOTIFIED: "NOTIFIED";
|
|
1808
|
+
REGISTERED: "REGISTERED";
|
|
1809
|
+
REVOKED: "REVOKED";
|
|
1639
1810
|
}>>;
|
|
1640
1811
|
}, z.core.$strip>, z.ZodObject<{
|
|
1641
1812
|
type: z.ZodLiteral<"exact">;
|
|
@@ -1645,6 +1816,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1645
1816
|
DECLARED: "DECLARED";
|
|
1646
1817
|
NOTIFIED: "NOTIFIED";
|
|
1647
1818
|
REGISTERED: "REGISTERED";
|
|
1819
|
+
REVOKED: "REVOKED";
|
|
1648
1820
|
}>;
|
|
1649
1821
|
}, z.core.$strip>]>>>;
|
|
1650
1822
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1747,6 +1919,26 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1747
1919
|
type: z.ZodLiteral<"exact">;
|
|
1748
1920
|
term: z.ZodString;
|
|
1749
1921
|
}, z.core.$strip>>>;
|
|
1922
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1923
|
+
type: z.ZodLiteral<"within">;
|
|
1924
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1925
|
+
$userField: z.ZodEnum<{
|
|
1926
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1927
|
+
avatar: "avatar";
|
|
1928
|
+
device: "device";
|
|
1929
|
+
firstname: "firstname";
|
|
1930
|
+
fullHonorificName: "fullHonorificName";
|
|
1931
|
+
id: "id";
|
|
1932
|
+
middlename: "middlename";
|
|
1933
|
+
name: "name";
|
|
1934
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1935
|
+
role: "role";
|
|
1936
|
+
signature: "signature";
|
|
1937
|
+
surname: "surname";
|
|
1938
|
+
}>;
|
|
1939
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1940
|
+
}, z.core.$strip>]>;
|
|
1941
|
+
}, z.core.$strip>>>;
|
|
1750
1942
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1751
1943
|
type: z.ZodLiteral<"within">;
|
|
1752
1944
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -37,9 +37,11 @@ export declare const Draft: z.ZodObject<{
|
|
|
37
37
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
38
38
|
READ: "READ";
|
|
39
39
|
REGISTER: "REGISTER";
|
|
40
|
+
REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
|
|
40
41
|
REJECT: "REJECT";
|
|
41
42
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
42
43
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
44
|
+
REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
|
|
43
45
|
UNARCHIVE: "UNARCHIVE";
|
|
44
46
|
UNASSIGN: "UNASSIGN";
|
|
45
47
|
}>;
|
|
@@ -3,11 +3,12 @@ import { ActionConfig } from './ActionConfig';
|
|
|
3
3
|
import { SummaryConfig } from './SummaryConfig';
|
|
4
4
|
import { TranslationConfig } from './TranslationConfig';
|
|
5
5
|
import { AdvancedSearchConfig } from './AdvancedSearchConfig';
|
|
6
|
-
import {
|
|
6
|
+
import { DeclarationFormConfigInput } from './FormConfig';
|
|
7
7
|
import { FieldReference } from './FieldConfig';
|
|
8
8
|
import { FlagConfig } from './Flag';
|
|
9
9
|
import type { JSONSchema } from '../conditionals/conditionals';
|
|
10
10
|
import { AvailableIcons } from '../icons';
|
|
11
|
+
import { ActionType } from './ActionType';
|
|
11
12
|
export declare const EventFieldReference: z.ZodObject<{
|
|
12
13
|
$$event: z.ZodEnum<{
|
|
13
14
|
createdAt: "createdAt";
|
|
@@ -30,20 +31,39 @@ export type EventConfig = {
|
|
|
30
31
|
label: TranslationConfig;
|
|
31
32
|
actions: ActionConfig[];
|
|
32
33
|
actionOrder?: string[];
|
|
33
|
-
declaration: DeclarationFormConfig;
|
|
34
34
|
advancedSearch: AdvancedSearchConfig[];
|
|
35
35
|
flags: FlagConfig[];
|
|
36
36
|
analytics: boolean;
|
|
37
37
|
icon?: Partial<Record<AvailableIcons, JSONSchema>>;
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
type ActionConfigInput = z.input<typeof ActionConfig>;
|
|
40
|
+
type DeclareActionConfigInput = Extract<ActionConfigInput, {
|
|
41
|
+
type: typeof ActionType.DECLARE;
|
|
42
|
+
}>;
|
|
43
|
+
/**
|
|
44
|
+
* Input accepted by `EventConfig.parse`. `declaration` lives only on the DECLARE action.
|
|
45
|
+
*/
|
|
46
|
+
type EventConfigSchemaInput = Omit<EventConfig, 'advancedSearch' | 'flags' | 'actions' | 'dateOfEvent' | 'placeOfEvent' | 'analytics'> & {
|
|
40
47
|
dateOfEvent?: z.input<typeof FieldReference> | z.infer<typeof EventFieldReference>;
|
|
41
48
|
placeOfEvent?: z.input<typeof FieldReference>;
|
|
42
49
|
advancedSearch?: AdvancedSearchConfig[];
|
|
43
50
|
flags?: FlagConfig[];
|
|
44
|
-
|
|
45
|
-
actions: z.input<typeof ActionConfig>[];
|
|
51
|
+
actions: ActionConfigInput[];
|
|
46
52
|
analytics?: boolean;
|
|
47
53
|
};
|
|
48
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Input accepted by `defineConfig`.
|
|
56
|
+
* `declaration` may be given at the top level (kept for backwards compatibility)
|
|
57
|
+
* or on the DECLARE action.
|
|
58
|
+
* `defineConfig` checks at runtime that it is given in exactly one of these places.
|
|
59
|
+
*/
|
|
60
|
+
export type EventConfigInput = Omit<EventConfigSchemaInput, 'actions'> & {
|
|
61
|
+
/** @deprecated Define `declaration` on the DECLARE action instead. */
|
|
62
|
+
declaration?: DeclarationFormConfigInput;
|
|
63
|
+
actions: Array<Exclude<ActionConfigInput, DeclareActionConfigInput> | (Omit<DeclareActionConfigInput, 'declaration'> & {
|
|
64
|
+
declaration?: DeclarationFormConfigInput;
|
|
65
|
+
})>;
|
|
66
|
+
};
|
|
67
|
+
export declare const EventConfig: z.ZodType<EventConfig, EventConfigSchemaInput>;
|
|
68
|
+
export {};
|
|
49
69
|
//# sourceMappingURL=EventConfig.d.ts.map
|
|
@@ -166,6 +166,48 @@ export declare const EventDocument: z.ZodObject<{
|
|
|
166
166
|
}>;
|
|
167
167
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
168
168
|
type: z.ZodLiteral<"UNARCHIVE">;
|
|
169
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
170
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
171
|
+
transactionId: z.ZodString;
|
|
172
|
+
createdByUserType: z.ZodEnum<{
|
|
173
|
+
system: "system";
|
|
174
|
+
user: "user";
|
|
175
|
+
}>;
|
|
176
|
+
createdAt: z.ZodString;
|
|
177
|
+
createdBy: z.ZodString;
|
|
178
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
179
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
180
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
181
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
|
|
182
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
|
|
183
|
+
status: z.ZodEnum<{
|
|
184
|
+
Accepted: "Accepted";
|
|
185
|
+
Rejected: "Rejected";
|
|
186
|
+
Requested: "Requested";
|
|
187
|
+
}>;
|
|
188
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
189
|
+
type: z.ZodLiteral<"REVOKE_REGISTRATION">;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
192
|
+
transactionId: z.ZodString;
|
|
193
|
+
createdByUserType: z.ZodEnum<{
|
|
194
|
+
system: "system";
|
|
195
|
+
user: "user";
|
|
196
|
+
}>;
|
|
197
|
+
createdAt: z.ZodString;
|
|
198
|
+
createdBy: z.ZodString;
|
|
199
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
200
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
201
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
202
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
|
|
203
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
|
|
204
|
+
status: z.ZodEnum<{
|
|
205
|
+
Accepted: "Accepted";
|
|
206
|
+
Rejected: "Rejected";
|
|
207
|
+
Requested: "Requested";
|
|
208
|
+
}>;
|
|
209
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
210
|
+
type: z.ZodLiteral<"REINSTATE_REGISTRATION">;
|
|
169
211
|
}, z.core.$strip>, z.ZodObject<{
|
|
170
212
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
171
213
|
transactionId: z.ZodString;
|
|
@@ -457,9 +499,11 @@ export declare const EventDocument: z.ZodObject<{
|
|
|
457
499
|
NOTIFY: "NOTIFY";
|
|
458
500
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
459
501
|
REGISTER: "REGISTER";
|
|
502
|
+
REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
|
|
460
503
|
REJECT: "REJECT";
|
|
461
504
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
462
505
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
506
|
+
REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
|
|
463
507
|
UNARCHIVE: "UNARCHIVE";
|
|
464
508
|
}>;
|
|
465
509
|
status: z.ZodLiteral<"Rejected">;
|
|
@@ -635,6 +679,48 @@ export declare const EventDocumentOnlyLastAction: z.core.$ZodBranded<z.ZodObject
|
|
|
635
679
|
}>;
|
|
636
680
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
637
681
|
type: z.ZodLiteral<"UNARCHIVE">;
|
|
682
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
683
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
684
|
+
transactionId: z.ZodString;
|
|
685
|
+
createdByUserType: z.ZodEnum<{
|
|
686
|
+
system: "system";
|
|
687
|
+
user: "user";
|
|
688
|
+
}>;
|
|
689
|
+
createdAt: z.ZodString;
|
|
690
|
+
createdBy: z.ZodString;
|
|
691
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
692
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
693
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
694
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
|
|
695
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
|
|
696
|
+
status: z.ZodEnum<{
|
|
697
|
+
Accepted: "Accepted";
|
|
698
|
+
Rejected: "Rejected";
|
|
699
|
+
Requested: "Requested";
|
|
700
|
+
}>;
|
|
701
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
702
|
+
type: z.ZodLiteral<"REVOKE_REGISTRATION">;
|
|
703
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
704
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
705
|
+
transactionId: z.ZodString;
|
|
706
|
+
createdByUserType: z.ZodEnum<{
|
|
707
|
+
system: "system";
|
|
708
|
+
user: "user";
|
|
709
|
+
}>;
|
|
710
|
+
createdAt: z.ZodString;
|
|
711
|
+
createdBy: z.ZodString;
|
|
712
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
713
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
714
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
715
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
|
|
716
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
|
|
717
|
+
status: z.ZodEnum<{
|
|
718
|
+
Accepted: "Accepted";
|
|
719
|
+
Rejected: "Rejected";
|
|
720
|
+
Requested: "Requested";
|
|
721
|
+
}>;
|
|
722
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
723
|
+
type: z.ZodLiteral<"REINSTATE_REGISTRATION">;
|
|
638
724
|
}, z.core.$strip>, z.ZodObject<{
|
|
639
725
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
640
726
|
transactionId: z.ZodString;
|
|
@@ -926,9 +1012,11 @@ export declare const EventDocumentOnlyLastAction: z.core.$ZodBranded<z.ZodObject
|
|
|
926
1012
|
NOTIFY: "NOTIFY";
|
|
927
1013
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
928
1014
|
REGISTER: "REGISTER";
|
|
1015
|
+
REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
|
|
929
1016
|
REJECT: "REJECT";
|
|
930
1017
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
931
1018
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
1019
|
+
REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
|
|
932
1020
|
UNARCHIVE: "UNARCHIVE";
|
|
933
1021
|
}>;
|
|
934
1022
|
status: z.ZodLiteral<"Rejected">;
|
|
@@ -9,6 +9,7 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
9
9
|
DECLARED: "DECLARED";
|
|
10
10
|
NOTIFIED: "NOTIFIED";
|
|
11
11
|
REGISTERED: "REGISTERED";
|
|
12
|
+
REVOKED: "REVOKED";
|
|
12
13
|
}>;
|
|
13
14
|
legalStatuses: z.ZodObject<{
|
|
14
15
|
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -45,6 +46,17 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
45
46
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
46
47
|
registrationNumber: z.ZodString;
|
|
47
48
|
}, z.core.$strip>>>;
|
|
49
|
+
REVOKED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
50
|
+
createdAt: z.ZodISODateTime;
|
|
51
|
+
createdBy: z.ZodString;
|
|
52
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
53
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
54
|
+
system: "system";
|
|
55
|
+
user: "user";
|
|
56
|
+
}>>>;
|
|
57
|
+
acceptedAt: z.ZodISODateTime;
|
|
58
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, z.core.$strip>>>;
|
|
48
60
|
}, z.core.$strip>;
|
|
49
61
|
createdAt: z.ZodISODateTime;
|
|
50
62
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
@@ -96,6 +108,7 @@ export declare const ExactStatus: z.ZodObject<{
|
|
|
96
108
|
DECLARED: "DECLARED";
|
|
97
109
|
NOTIFIED: "NOTIFIED";
|
|
98
110
|
REGISTERED: "REGISTERED";
|
|
111
|
+
REVOKED: "REVOKED";
|
|
99
112
|
}>;
|
|
100
113
|
}, z.core.$strip>;
|
|
101
114
|
export declare const ExactUserType: z.ZodObject<{
|
|
@@ -117,6 +130,18 @@ export declare const AnyOfStatus: z.ZodObject<{
|
|
|
117
130
|
DECLARED: "DECLARED";
|
|
118
131
|
NOTIFIED: "NOTIFIED";
|
|
119
132
|
REGISTERED: "REGISTERED";
|
|
133
|
+
REVOKED: "REVOKED";
|
|
134
|
+
}>>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export declare const NoneOfStatus: z.ZodObject<{
|
|
137
|
+
type: z.ZodLiteral<"noneOf">;
|
|
138
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
139
|
+
ARCHIVED: "ARCHIVED";
|
|
140
|
+
CREATED: "CREATED";
|
|
141
|
+
DECLARED: "DECLARED";
|
|
142
|
+
NOTIFIED: "NOTIFIED";
|
|
143
|
+
REGISTERED: "REGISTERED";
|
|
144
|
+
REVOKED: "REVOKED";
|
|
120
145
|
}>>;
|
|
121
146
|
}, z.core.$strip>;
|
|
122
147
|
export declare const Range: z.ZodObject<{
|
|
@@ -167,6 +192,17 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
167
192
|
DECLARED: "DECLARED";
|
|
168
193
|
NOTIFIED: "NOTIFIED";
|
|
169
194
|
REGISTERED: "REGISTERED";
|
|
195
|
+
REVOKED: "REVOKED";
|
|
196
|
+
}>>;
|
|
197
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
198
|
+
type: z.ZodLiteral<"noneOf">;
|
|
199
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
200
|
+
ARCHIVED: "ARCHIVED";
|
|
201
|
+
CREATED: "CREATED";
|
|
202
|
+
DECLARED: "DECLARED";
|
|
203
|
+
NOTIFIED: "NOTIFIED";
|
|
204
|
+
REGISTERED: "REGISTERED";
|
|
205
|
+
REVOKED: "REVOKED";
|
|
170
206
|
}>>;
|
|
171
207
|
}, z.core.$strip>, z.ZodObject<{
|
|
172
208
|
type: z.ZodLiteral<"exact">;
|
|
@@ -176,6 +212,7 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
176
212
|
DECLARED: "DECLARED";
|
|
177
213
|
NOTIFIED: "NOTIFIED";
|
|
178
214
|
REGISTERED: "REGISTERED";
|
|
215
|
+
REVOKED: "REVOKED";
|
|
179
216
|
}>;
|
|
180
217
|
}, z.core.$strip>]>>>;
|
|
181
218
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -246,6 +283,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
246
283
|
type: z.ZodLiteral<"exact">;
|
|
247
284
|
term: z.ZodString;
|
|
248
285
|
}, z.core.$strip>>>;
|
|
286
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
287
|
+
type: z.ZodLiteral<"within">;
|
|
288
|
+
location: z.ZodString;
|
|
289
|
+
}, z.core.$strip>>>>;
|
|
249
290
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
250
291
|
type: z.ZodLiteral<"within">;
|
|
251
292
|
location: z.ZodString;
|
|
@@ -63,6 +63,17 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
63
63
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
64
64
|
registrationNumber: z.ZodString;
|
|
65
65
|
}, z.core.$strip>>>;
|
|
66
|
+
REVOKED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
67
|
+
createdAt: z.ZodISODateTime;
|
|
68
|
+
createdBy: z.ZodString;
|
|
69
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
70
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
71
|
+
system: "system";
|
|
72
|
+
user: "user";
|
|
73
|
+
}>>>;
|
|
74
|
+
acceptedAt: z.ZodISODateTime;
|
|
75
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>>>;
|
|
66
77
|
}, z.core.$strip>;
|
|
67
78
|
/**
|
|
68
79
|
* Event metadata exposed to client.
|
|
@@ -78,6 +89,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
78
89
|
DECLARED: "DECLARED";
|
|
79
90
|
NOTIFIED: "NOTIFIED";
|
|
80
91
|
REGISTERED: "REGISTERED";
|
|
92
|
+
REVOKED: "REVOKED";
|
|
81
93
|
}>;
|
|
82
94
|
legalStatuses: z.ZodObject<{
|
|
83
95
|
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -114,6 +126,17 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
114
126
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
115
127
|
registrationNumber: z.ZodString;
|
|
116
128
|
}, z.core.$strip>>>;
|
|
129
|
+
REVOKED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
130
|
+
createdAt: z.ZodISODateTime;
|
|
131
|
+
createdBy: z.ZodString;
|
|
132
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
133
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
134
|
+
system: "system";
|
|
135
|
+
user: "user";
|
|
136
|
+
}>>>;
|
|
137
|
+
acceptedAt: z.ZodISODateTime;
|
|
138
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>>>;
|
|
117
140
|
}, z.core.$strip>;
|
|
118
141
|
createdAt: z.ZodISODateTime;
|
|
119
142
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|