@opencrvs/toolkit 1.9.12-rc.7c8c97f → 1.9.12-rc.8353a87
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 +8 -0
- package/dist/application-config/index.js +47 -36
- package/dist/cli.d.ts +2 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +2422 -0
- package/dist/commons/api/router.d.ts +24 -0
- package/dist/commons/application-config/index.d.ts +7 -12
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/ActionDocument.d.ts +194 -194
- package/dist/commons/events/ActionInput.d.ts +113 -113
- package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -0
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/CountryConfigQueryInput.d.ts +295 -24
- package/dist/commons/events/Draft.d.ts +7 -7
- package/dist/commons/events/DynamicFieldValue.d.ts +37 -19
- package/dist/commons/events/EventDocument.d.ts +79 -79
- package/dist/commons/events/EventIndex.d.ts +20 -12
- package/dist/commons/events/EventInput.d.ts +1 -1
- package/dist/commons/events/EventMetadata.d.ts +12 -12
- package/dist/commons/events/FieldConfig.d.ts +129 -18
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +94 -68
- package/dist/commons/events/FieldValue.d.ts +54 -26
- package/dist/commons/events/PlainDate.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +4 -4
- package/dist/commons/events/WorkqueueConfig.d.ts +270 -26
- package/dist/commons/events/defineConfig.d.ts +0 -4
- package/dist/commons/events/locations.d.ts +4 -4
- package/dist/commons/events/utils.d.ts +2 -174
- package/dist/conditionals/index.js +13 -5
- package/dist/events/index.js +142 -33
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +3 -0
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +405 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +753 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.js +159 -0
- package/dist/migrations/v2.0/index.d.ts +7 -0
- package/dist/migrations/v2.0/index.d.ts.map +1 -0
- package/dist/migrations/v2.0/index.js +2361 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +344 -0
- package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-scopes.js +281 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +268 -0
- package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
- package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-delete-actions.js +157 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.js +97 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.js +110 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.js +164 -0
- package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
- package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
- package/dist/migrations/v2.0/rename-api-paths.js +188 -0
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
- package/dist/migrations/v2.0/rename-location-parent-id.js +181 -0
- package/dist/notification/index.js +73 -23
- package/dist/scopes/index.d.ts +31 -10
- package/dist/scopes/index.js +17 -5
- package/opencrvs-toolkit-1.9.12-rc.8353a87.tgz +0 -0
- package/package.json +11 -7
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-1.9.12-rc.7c8c97f.tgz +0 -0
|
@@ -6,7 +6,7 @@ export declare const mandatoryColumns: {
|
|
|
6
6
|
description: string;
|
|
7
7
|
};
|
|
8
8
|
value: {
|
|
9
|
-
$event: "id" | "
|
|
9
|
+
$event: "id" | "title" | "type" | "placeOfEvent" | "createdAt" | "createdAtLocation" | "trackingId" | "status" | "updatedAt" | "createdByUserType" | "createdBy" | "assignedTo" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
|
10
10
|
};
|
|
11
11
|
}[];
|
|
12
12
|
/**
|
|
@@ -138,7 +138,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
138
138
|
type: z.ZodLiteral<"exact">;
|
|
139
139
|
term: z.ZodString;
|
|
140
140
|
}, z.core.$strip>>>;
|
|
141
|
-
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
141
|
+
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
142
142
|
type: z.ZodLiteral<"within">;
|
|
143
143
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
144
144
|
$userField: z.ZodEnum<{
|
|
@@ -157,8 +157,27 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
157
157
|
}>;
|
|
158
158
|
$location: z.ZodOptional<z.ZodString>;
|
|
159
159
|
}, z.core.$strip>]>;
|
|
160
|
-
}, z.core.$strip
|
|
161
|
-
|
|
160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
161
|
+
type: z.ZodLiteral<"exact">;
|
|
162
|
+
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
163
|
+
$userField: z.ZodEnum<{
|
|
164
|
+
id: "id";
|
|
165
|
+
name: "name";
|
|
166
|
+
role: "role";
|
|
167
|
+
primaryOfficeId: "primaryOfficeId";
|
|
168
|
+
firstname: "firstname";
|
|
169
|
+
surname: "surname";
|
|
170
|
+
middlename: "middlename";
|
|
171
|
+
fullHonorificName: "fullHonorificName";
|
|
172
|
+
device: "device";
|
|
173
|
+
signature: "signature";
|
|
174
|
+
avatar: "avatar";
|
|
175
|
+
administrativeAreaId: "administrativeAreaId";
|
|
176
|
+
}>;
|
|
177
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
178
|
+
}, z.core.$strip>]>;
|
|
179
|
+
}, z.core.$strip>]>>>;
|
|
180
|
+
updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
162
181
|
type: z.ZodLiteral<"within">;
|
|
163
182
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
164
183
|
$userField: z.ZodEnum<{
|
|
@@ -177,7 +196,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
177
196
|
}>;
|
|
178
197
|
$location: z.ZodOptional<z.ZodString>;
|
|
179
198
|
}, z.core.$strip>]>;
|
|
180
|
-
}, z.core.$strip
|
|
199
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
200
|
+
type: z.ZodLiteral<"exact">;
|
|
201
|
+
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
202
|
+
$userField: z.ZodEnum<{
|
|
203
|
+
id: "id";
|
|
204
|
+
name: "name";
|
|
205
|
+
role: "role";
|
|
206
|
+
primaryOfficeId: "primaryOfficeId";
|
|
207
|
+
firstname: "firstname";
|
|
208
|
+
surname: "surname";
|
|
209
|
+
middlename: "middlename";
|
|
210
|
+
fullHonorificName: "fullHonorificName";
|
|
211
|
+
device: "device";
|
|
212
|
+
signature: "signature";
|
|
213
|
+
avatar: "avatar";
|
|
214
|
+
administrativeAreaId: "administrativeAreaId";
|
|
215
|
+
}>;
|
|
216
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
217
|
+
}, z.core.$strip>]>;
|
|
218
|
+
}, z.core.$strip>]>>>;
|
|
181
219
|
updatedByUserRole: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
182
220
|
type: z.ZodLiteral<"exact">;
|
|
183
221
|
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -410,7 +448,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
410
448
|
type: z.ZodLiteral<"exact">;
|
|
411
449
|
term: z.ZodString;
|
|
412
450
|
}, z.core.$strip>>>;
|
|
413
|
-
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
451
|
+
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
414
452
|
type: z.ZodLiteral<"within">;
|
|
415
453
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
416
454
|
$userField: z.ZodEnum<{
|
|
@@ -429,8 +467,27 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
429
467
|
}>;
|
|
430
468
|
$location: z.ZodOptional<z.ZodString>;
|
|
431
469
|
}, z.core.$strip>]>;
|
|
432
|
-
}, z.core.$strip
|
|
433
|
-
|
|
470
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
471
|
+
type: z.ZodLiteral<"exact">;
|
|
472
|
+
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
473
|
+
$userField: z.ZodEnum<{
|
|
474
|
+
id: "id";
|
|
475
|
+
name: "name";
|
|
476
|
+
role: "role";
|
|
477
|
+
primaryOfficeId: "primaryOfficeId";
|
|
478
|
+
firstname: "firstname";
|
|
479
|
+
surname: "surname";
|
|
480
|
+
middlename: "middlename";
|
|
481
|
+
fullHonorificName: "fullHonorificName";
|
|
482
|
+
device: "device";
|
|
483
|
+
signature: "signature";
|
|
484
|
+
avatar: "avatar";
|
|
485
|
+
administrativeAreaId: "administrativeAreaId";
|
|
486
|
+
}>;
|
|
487
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
488
|
+
}, z.core.$strip>]>;
|
|
489
|
+
}, z.core.$strip>]>>>;
|
|
490
|
+
updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
434
491
|
type: z.ZodLiteral<"within">;
|
|
435
492
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
436
493
|
$userField: z.ZodEnum<{
|
|
@@ -449,7 +506,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
449
506
|
}>;
|
|
450
507
|
$location: z.ZodOptional<z.ZodString>;
|
|
451
508
|
}, z.core.$strip>]>;
|
|
452
|
-
}, z.core.$strip
|
|
509
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
510
|
+
type: z.ZodLiteral<"exact">;
|
|
511
|
+
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
512
|
+
$userField: z.ZodEnum<{
|
|
513
|
+
id: "id";
|
|
514
|
+
name: "name";
|
|
515
|
+
role: "role";
|
|
516
|
+
primaryOfficeId: "primaryOfficeId";
|
|
517
|
+
firstname: "firstname";
|
|
518
|
+
surname: "surname";
|
|
519
|
+
middlename: "middlename";
|
|
520
|
+
fullHonorificName: "fullHonorificName";
|
|
521
|
+
device: "device";
|
|
522
|
+
signature: "signature";
|
|
523
|
+
avatar: "avatar";
|
|
524
|
+
administrativeAreaId: "administrativeAreaId";
|
|
525
|
+
}>;
|
|
526
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
527
|
+
}, z.core.$strip>]>;
|
|
528
|
+
}, z.core.$strip>]>>>;
|
|
453
529
|
updatedByUserRole: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
454
530
|
type: z.ZodLiteral<"exact">;
|
|
455
531
|
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -579,8 +655,8 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
579
655
|
value: z.ZodObject<{
|
|
580
656
|
$event: z.ZodEnum<{
|
|
581
657
|
id: "id";
|
|
582
|
-
type: "type";
|
|
583
658
|
title: "title";
|
|
659
|
+
type: "type";
|
|
584
660
|
placeOfEvent: "placeOfEvent";
|
|
585
661
|
createdAt: "createdAt";
|
|
586
662
|
createdAtLocation: "createdAtLocation";
|
|
@@ -955,7 +1031,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
955
1031
|
type: z.ZodLiteral<"exact">;
|
|
956
1032
|
term: z.ZodString;
|
|
957
1033
|
}, z.core.$strip>>>;
|
|
958
|
-
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1034
|
+
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
959
1035
|
type: z.ZodLiteral<"within">;
|
|
960
1036
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
961
1037
|
$userField: z.ZodEnum<{
|
|
@@ -974,8 +1050,27 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
974
1050
|
}>;
|
|
975
1051
|
$location: z.ZodOptional<z.ZodString>;
|
|
976
1052
|
}, z.core.$strip>]>;
|
|
977
|
-
}, z.core.$strip
|
|
978
|
-
|
|
1053
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1054
|
+
type: z.ZodLiteral<"exact">;
|
|
1055
|
+
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1056
|
+
$userField: z.ZodEnum<{
|
|
1057
|
+
id: "id";
|
|
1058
|
+
name: "name";
|
|
1059
|
+
role: "role";
|
|
1060
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1061
|
+
firstname: "firstname";
|
|
1062
|
+
surname: "surname";
|
|
1063
|
+
middlename: "middlename";
|
|
1064
|
+
fullHonorificName: "fullHonorificName";
|
|
1065
|
+
device: "device";
|
|
1066
|
+
signature: "signature";
|
|
1067
|
+
avatar: "avatar";
|
|
1068
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1069
|
+
}>;
|
|
1070
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1071
|
+
}, z.core.$strip>]>;
|
|
1072
|
+
}, z.core.$strip>]>>>;
|
|
1073
|
+
updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
979
1074
|
type: z.ZodLiteral<"within">;
|
|
980
1075
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
981
1076
|
$userField: z.ZodEnum<{
|
|
@@ -994,7 +1089,26 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
994
1089
|
}>;
|
|
995
1090
|
$location: z.ZodOptional<z.ZodString>;
|
|
996
1091
|
}, z.core.$strip>]>;
|
|
997
|
-
}, z.core.$strip
|
|
1092
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1093
|
+
type: z.ZodLiteral<"exact">;
|
|
1094
|
+
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1095
|
+
$userField: z.ZodEnum<{
|
|
1096
|
+
id: "id";
|
|
1097
|
+
name: "name";
|
|
1098
|
+
role: "role";
|
|
1099
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1100
|
+
firstname: "firstname";
|
|
1101
|
+
surname: "surname";
|
|
1102
|
+
middlename: "middlename";
|
|
1103
|
+
fullHonorificName: "fullHonorificName";
|
|
1104
|
+
device: "device";
|
|
1105
|
+
signature: "signature";
|
|
1106
|
+
avatar: "avatar";
|
|
1107
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1108
|
+
}>;
|
|
1109
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1110
|
+
}, z.core.$strip>]>;
|
|
1111
|
+
}, z.core.$strip>]>>>;
|
|
998
1112
|
updatedByUserRole: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
999
1113
|
type: z.ZodLiteral<"exact">;
|
|
1000
1114
|
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1226,7 +1340,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1226
1340
|
type: z.ZodLiteral<"exact">;
|
|
1227
1341
|
term: z.ZodString;
|
|
1228
1342
|
}, z.core.$strip>>>;
|
|
1229
|
-
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1343
|
+
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1230
1344
|
type: z.ZodLiteral<"within">;
|
|
1231
1345
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1232
1346
|
$userField: z.ZodEnum<{
|
|
@@ -1245,8 +1359,27 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1245
1359
|
}>;
|
|
1246
1360
|
$location: z.ZodOptional<z.ZodString>;
|
|
1247
1361
|
}, z.core.$strip>]>;
|
|
1248
|
-
}, z.core.$strip
|
|
1249
|
-
|
|
1362
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1363
|
+
type: z.ZodLiteral<"exact">;
|
|
1364
|
+
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1365
|
+
$userField: z.ZodEnum<{
|
|
1366
|
+
id: "id";
|
|
1367
|
+
name: "name";
|
|
1368
|
+
role: "role";
|
|
1369
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1370
|
+
firstname: "firstname";
|
|
1371
|
+
surname: "surname";
|
|
1372
|
+
middlename: "middlename";
|
|
1373
|
+
fullHonorificName: "fullHonorificName";
|
|
1374
|
+
device: "device";
|
|
1375
|
+
signature: "signature";
|
|
1376
|
+
avatar: "avatar";
|
|
1377
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1378
|
+
}>;
|
|
1379
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1380
|
+
}, z.core.$strip>]>;
|
|
1381
|
+
}, z.core.$strip>]>>>;
|
|
1382
|
+
updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1250
1383
|
type: z.ZodLiteral<"within">;
|
|
1251
1384
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1252
1385
|
$userField: z.ZodEnum<{
|
|
@@ -1265,7 +1398,26 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1265
1398
|
}>;
|
|
1266
1399
|
$location: z.ZodOptional<z.ZodString>;
|
|
1267
1400
|
}, z.core.$strip>]>;
|
|
1268
|
-
}, z.core.$strip
|
|
1401
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1402
|
+
type: z.ZodLiteral<"exact">;
|
|
1403
|
+
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1404
|
+
$userField: z.ZodEnum<{
|
|
1405
|
+
id: "id";
|
|
1406
|
+
name: "name";
|
|
1407
|
+
role: "role";
|
|
1408
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1409
|
+
firstname: "firstname";
|
|
1410
|
+
surname: "surname";
|
|
1411
|
+
middlename: "middlename";
|
|
1412
|
+
fullHonorificName: "fullHonorificName";
|
|
1413
|
+
device: "device";
|
|
1414
|
+
signature: "signature";
|
|
1415
|
+
avatar: "avatar";
|
|
1416
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1417
|
+
}>;
|
|
1418
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1419
|
+
}, z.core.$strip>]>;
|
|
1420
|
+
}, z.core.$strip>]>>>;
|
|
1269
1421
|
updatedByUserRole: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1270
1422
|
type: z.ZodLiteral<"exact">;
|
|
1271
1423
|
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1498,7 +1650,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1498
1650
|
type: z.ZodLiteral<"exact">;
|
|
1499
1651
|
term: z.ZodString;
|
|
1500
1652
|
}, z.core.$strip>>>;
|
|
1501
|
-
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1653
|
+
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1502
1654
|
type: z.ZodLiteral<"within">;
|
|
1503
1655
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1504
1656
|
$userField: z.ZodEnum<{
|
|
@@ -1517,8 +1669,27 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1517
1669
|
}>;
|
|
1518
1670
|
$location: z.ZodOptional<z.ZodString>;
|
|
1519
1671
|
}, z.core.$strip>]>;
|
|
1520
|
-
}, z.core.$strip
|
|
1521
|
-
|
|
1672
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1673
|
+
type: z.ZodLiteral<"exact">;
|
|
1674
|
+
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1675
|
+
$userField: z.ZodEnum<{
|
|
1676
|
+
id: "id";
|
|
1677
|
+
name: "name";
|
|
1678
|
+
role: "role";
|
|
1679
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1680
|
+
firstname: "firstname";
|
|
1681
|
+
surname: "surname";
|
|
1682
|
+
middlename: "middlename";
|
|
1683
|
+
fullHonorificName: "fullHonorificName";
|
|
1684
|
+
device: "device";
|
|
1685
|
+
signature: "signature";
|
|
1686
|
+
avatar: "avatar";
|
|
1687
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1688
|
+
}>;
|
|
1689
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1690
|
+
}, z.core.$strip>]>;
|
|
1691
|
+
}, z.core.$strip>]>>>;
|
|
1692
|
+
updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1522
1693
|
type: z.ZodLiteral<"within">;
|
|
1523
1694
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1524
1695
|
$userField: z.ZodEnum<{
|
|
@@ -1537,7 +1708,26 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1537
1708
|
}>;
|
|
1538
1709
|
$location: z.ZodOptional<z.ZodString>;
|
|
1539
1710
|
}, z.core.$strip>]>;
|
|
1540
|
-
}, z.core.$strip
|
|
1711
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1712
|
+
type: z.ZodLiteral<"exact">;
|
|
1713
|
+
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1714
|
+
$userField: z.ZodEnum<{
|
|
1715
|
+
id: "id";
|
|
1716
|
+
name: "name";
|
|
1717
|
+
role: "role";
|
|
1718
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1719
|
+
firstname: "firstname";
|
|
1720
|
+
surname: "surname";
|
|
1721
|
+
middlename: "middlename";
|
|
1722
|
+
fullHonorificName: "fullHonorificName";
|
|
1723
|
+
device: "device";
|
|
1724
|
+
signature: "signature";
|
|
1725
|
+
avatar: "avatar";
|
|
1726
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1727
|
+
}>;
|
|
1728
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1729
|
+
}, z.core.$strip>]>;
|
|
1730
|
+
}, z.core.$strip>]>>>;
|
|
1541
1731
|
updatedByUserRole: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1542
1732
|
type: z.ZodLiteral<"exact">;
|
|
1543
1733
|
term: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1667,8 +1857,8 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1667
1857
|
value: z.ZodObject<{
|
|
1668
1858
|
$event: z.ZodEnum<{
|
|
1669
1859
|
id: "id";
|
|
1670
|
-
type: "type";
|
|
1671
1860
|
title: "title";
|
|
1861
|
+
type: "type";
|
|
1672
1862
|
placeOfEvent: "placeOfEvent";
|
|
1673
1863
|
createdAt: "createdAt";
|
|
1674
1864
|
createdAtLocation: "createdAtLocation";
|
|
@@ -1876,6 +2066,12 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
|
1876
2066
|
term: string;
|
|
1877
2067
|
} | undefined;
|
|
1878
2068
|
createdAtLocation?: {
|
|
2069
|
+
type: "exact";
|
|
2070
|
+
term: string | {
|
|
2071
|
+
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
2072
|
+
$location?: string | undefined;
|
|
2073
|
+
};
|
|
2074
|
+
} | {
|
|
1879
2075
|
type: "within";
|
|
1880
2076
|
location: string | {
|
|
1881
2077
|
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
@@ -1883,6 +2079,12 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
|
1883
2079
|
};
|
|
1884
2080
|
} | undefined;
|
|
1885
2081
|
updatedAtLocation?: {
|
|
2082
|
+
type: "exact";
|
|
2083
|
+
term: string | {
|
|
2084
|
+
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
2085
|
+
$location?: string | undefined;
|
|
2086
|
+
};
|
|
2087
|
+
} | {
|
|
1886
2088
|
type: "within";
|
|
1887
2089
|
location: string | {
|
|
1888
2090
|
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
@@ -2002,6 +2204,12 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
|
2002
2204
|
term: string;
|
|
2003
2205
|
} | undefined;
|
|
2004
2206
|
createdAtLocation?: {
|
|
2207
|
+
type: "exact";
|
|
2208
|
+
term: string | {
|
|
2209
|
+
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
2210
|
+
$location?: string | undefined;
|
|
2211
|
+
};
|
|
2212
|
+
} | {
|
|
2005
2213
|
type: "within";
|
|
2006
2214
|
location: string | {
|
|
2007
2215
|
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
@@ -2009,6 +2217,12 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
|
2009
2217
|
};
|
|
2010
2218
|
} | undefined;
|
|
2011
2219
|
updatedAtLocation?: {
|
|
2220
|
+
type: "exact";
|
|
2221
|
+
term: string | {
|
|
2222
|
+
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
2223
|
+
$location?: string | undefined;
|
|
2224
|
+
};
|
|
2225
|
+
} | {
|
|
2012
2226
|
type: "within";
|
|
2013
2227
|
location: string | {
|
|
2014
2228
|
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
@@ -2065,7 +2279,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
|
2065
2279
|
description: string;
|
|
2066
2280
|
};
|
|
2067
2281
|
value: {
|
|
2068
|
-
$event: "id" | "
|
|
2282
|
+
$event: "id" | "title" | "type" | "placeOfEvent" | "createdAt" | "createdAtLocation" | "trackingId" | "status" | "updatedAt" | "createdByUserType" | "createdBy" | "assignedTo" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
|
2069
2283
|
};
|
|
2070
2284
|
}[];
|
|
2071
2285
|
icon: "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
|
|
@@ -2078,7 +2292,12 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
|
2078
2292
|
description: string;
|
|
2079
2293
|
} | undefined;
|
|
2080
2294
|
};
|
|
2081
|
-
|
|
2295
|
+
/** This is used for v1.9 to v2.0 migration to show specific migration errors. */
|
|
2296
|
+
type WorkqueueConfigInputWithV19Compat = WorkqueueConfigInput & {
|
|
2297
|
+
/** @deprecated use 'action' property instead */
|
|
2298
|
+
actions?: unknown;
|
|
2299
|
+
};
|
|
2300
|
+
export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19Compat[]): {
|
|
2082
2301
|
slug: string;
|
|
2083
2302
|
name: {
|
|
2084
2303
|
id: string;
|
|
@@ -2156,6 +2375,12 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
|
|
|
2156
2375
|
term: string;
|
|
2157
2376
|
} | undefined;
|
|
2158
2377
|
createdAtLocation?: {
|
|
2378
|
+
type: "exact";
|
|
2379
|
+
term: string | {
|
|
2380
|
+
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
2381
|
+
$location?: string | undefined;
|
|
2382
|
+
};
|
|
2383
|
+
} | {
|
|
2159
2384
|
type: "within";
|
|
2160
2385
|
location: string | {
|
|
2161
2386
|
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
@@ -2163,6 +2388,12 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
|
|
|
2163
2388
|
};
|
|
2164
2389
|
} | undefined;
|
|
2165
2390
|
updatedAtLocation?: {
|
|
2391
|
+
type: "exact";
|
|
2392
|
+
term: string | {
|
|
2393
|
+
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
2394
|
+
$location?: string | undefined;
|
|
2395
|
+
};
|
|
2396
|
+
} | {
|
|
2166
2397
|
type: "within";
|
|
2167
2398
|
location: string | {
|
|
2168
2399
|
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
@@ -2282,6 +2513,12 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
|
|
|
2282
2513
|
term: string;
|
|
2283
2514
|
} | undefined;
|
|
2284
2515
|
createdAtLocation?: {
|
|
2516
|
+
type: "exact";
|
|
2517
|
+
term: string | {
|
|
2518
|
+
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
2519
|
+
$location?: string | undefined;
|
|
2520
|
+
};
|
|
2521
|
+
} | {
|
|
2285
2522
|
type: "within";
|
|
2286
2523
|
location: string | {
|
|
2287
2524
|
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
@@ -2289,6 +2526,12 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
|
|
|
2289
2526
|
};
|
|
2290
2527
|
} | undefined;
|
|
2291
2528
|
updatedAtLocation?: {
|
|
2529
|
+
type: "exact";
|
|
2530
|
+
term: string | {
|
|
2531
|
+
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
2532
|
+
$location?: string | undefined;
|
|
2533
|
+
};
|
|
2534
|
+
} | {
|
|
2292
2535
|
type: "within";
|
|
2293
2536
|
location: string | {
|
|
2294
2537
|
$userField: "id" | "name" | "role" | "primaryOfficeId" | "firstname" | "surname" | "middlename" | "fullHonorificName" | "device" | "signature" | "avatar" | "administrativeAreaId";
|
|
@@ -2345,7 +2588,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
|
|
|
2345
2588
|
description: string;
|
|
2346
2589
|
};
|
|
2347
2590
|
value: {
|
|
2348
|
-
$event: "id" | "
|
|
2591
|
+
$event: "id" | "title" | "type" | "placeOfEvent" | "createdAt" | "createdAtLocation" | "trackingId" | "status" | "updatedAt" | "createdByUserType" | "createdBy" | "assignedTo" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
|
2349
2592
|
};
|
|
2350
2593
|
}[];
|
|
2351
2594
|
icon: "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
|
|
@@ -2365,4 +2608,5 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
|
2365
2608
|
export type WorkqueueCountInput = z.infer<typeof WorkqueueCountInput>;
|
|
2366
2609
|
export declare const WorkqueueCountOutput: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2367
2610
|
export type WorkqueueCountOutput = z.infer<typeof WorkqueueCountOutput>;
|
|
2611
|
+
export {};
|
|
2368
2612
|
//# sourceMappingURL=WorkqueueConfig.d.ts.map
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import { EventConfig, EventConfigInput } from './EventConfig';
|
|
2
|
-
/**
|
|
3
|
-
* Builds a validated configuration for an event
|
|
4
|
-
* @param config - Event specific configuration
|
|
5
|
-
*/
|
|
6
2
|
export declare const defineConfig: (config: EventConfigInput) => EventConfig;
|
|
7
3
|
//# sourceMappingURL=defineConfig.d.ts.map
|
|
@@ -11,18 +11,18 @@ export declare const LocationTypeV1: z.ZodEnum<{
|
|
|
11
11
|
}>;
|
|
12
12
|
export type LocationTypeV1 = z.infer<typeof LocationTypeV1>;
|
|
13
13
|
export declare const AdministrativeArea: z.ZodObject<{
|
|
14
|
-
id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
|
|
14
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
15
15
|
name: z.ZodString;
|
|
16
16
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
parentId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>;
|
|
17
|
+
parentId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
18
18
|
validUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
export type AdministrativeArea = z.infer<typeof AdministrativeArea>;
|
|
21
21
|
export declare const Location: z.ZodObject<{
|
|
22
|
-
id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
|
|
22
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
23
23
|
name: z.ZodString;
|
|
24
24
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
administrativeAreaId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>;
|
|
25
|
+
administrativeAreaId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
26
26
|
validUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
27
27
|
locationType: z.ZodNullable<z.ZodString>;
|
|
28
28
|
}, z.core.$strip>;
|