@opencrvs/toolkit 1.9.10-rc.fec884e → 1.9.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commons/api/router.d.ts +2 -2
- package/dist/commons/conditionals/validate.d.ts +5 -8
- package/dist/commons/events/AdvancedSearchConfig.d.ts +24 -30
- package/dist/commons/events/EventConfig.d.ts +20 -22
- package/dist/commons/events/FieldConfig.d.ts +14 -34
- package/dist/commons/events/FieldType.d.ts +1 -2
- package/dist/commons/events/FieldTypeMapping.d.ts +25 -11
- package/dist/commons/events/defineConfig.d.ts +2 -2
- package/dist/commons/events/utils.d.ts +3 -10
- package/dist/events/index.js +156 -270
- package/dist/notification/index.js +170 -178
- package/package.json +1 -1
package/dist/events/index.js
CHANGED
|
@@ -226,7 +226,6 @@ __export(events_exports, {
|
|
|
226
226
|
applyDraftToEventIndex: () => applyDraftToEventIndex,
|
|
227
227
|
areCertificateConditionsMet: () => areCertificateConditionsMet,
|
|
228
228
|
areConditionsMet: () => areConditionsMet,
|
|
229
|
-
buildFormState: () => buildFormState,
|
|
230
229
|
canUserReadEvent: () => canUserReadEvent,
|
|
231
230
|
compositeFieldTypes: () => compositeFieldTypes,
|
|
232
231
|
configurableEventScopeAllowed: () => configurableEventScopeAllowed,
|
|
@@ -261,8 +260,6 @@ __export(events_exports, {
|
|
|
261
260
|
findAllFields: () => findAllFields,
|
|
262
261
|
findLastAssignmentAction: () => findLastAssignmentAction,
|
|
263
262
|
findRecordActionPages: () => findRecordActionPages,
|
|
264
|
-
flattenFieldReference: () => flattenFieldReference,
|
|
265
|
-
flattenFormState: () => flattenFormState,
|
|
266
263
|
generateActionDeclarationInput: () => generateActionDeclarationInput,
|
|
267
264
|
generateActionDocument: () => generateActionDocument,
|
|
268
265
|
generateActionDuplicateDeclarationInput: () => generateActionDuplicateDeclarationInput,
|
|
@@ -324,7 +321,6 @@ __export(events_exports, {
|
|
|
324
321
|
isFieldConfigDefaultValue: () => isFieldConfigDefaultValue,
|
|
325
322
|
isFieldDisplayedOnReview: () => isFieldDisplayedOnReview,
|
|
326
323
|
isFieldEnabled: () => isFieldEnabled,
|
|
327
|
-
isFieldGroupFieldType: () => isFieldGroupFieldType,
|
|
328
324
|
isFieldReference: () => isFieldReference,
|
|
329
325
|
isFieldValue: () => isFieldValue,
|
|
330
326
|
isFieldValueWithoutTemplates: () => isFieldValueWithoutTemplates,
|
|
@@ -367,7 +363,6 @@ __export(events_exports, {
|
|
|
367
363
|
mandatoryColumns: () => mandatoryColumns,
|
|
368
364
|
mapFieldTypeToEmptyValue: () => mapFieldTypeToEmptyValue,
|
|
369
365
|
mapFieldTypeToZod: () => mapFieldTypeToZod,
|
|
370
|
-
mapFormState: () => mapFormState,
|
|
371
366
|
mergeDrafts: () => mergeDrafts,
|
|
372
367
|
never: () => never,
|
|
373
368
|
not: () => not,
|
|
@@ -592,7 +587,6 @@ var FieldType = {
|
|
|
592
587
|
PARAGRAPH: "PARAGRAPH",
|
|
593
588
|
PAGE_HEADER: "PAGE_HEADER",
|
|
594
589
|
RADIO_GROUP: "RADIO_GROUP",
|
|
595
|
-
FIELD_GROUP: "FIELD_GROUP",
|
|
596
590
|
FILE: "FILE",
|
|
597
591
|
FILE_WITH_OPTIONS: "FILE_WITH_OPTIONS",
|
|
598
592
|
BULLET_LIST: "BULLET_LIST",
|
|
@@ -2279,7 +2273,9 @@ var AdministrativeAreas = import_zod16.z.enum([
|
|
|
2279
2273
|
"CRVS_OFFICE"
|
|
2280
2274
|
]);
|
|
2281
2275
|
var AdministrativeAreaConfiguration = import_zod16.z.object({
|
|
2282
|
-
partOf:
|
|
2276
|
+
partOf: import_zod16.z.object({
|
|
2277
|
+
$declaration: import_zod16.z.string()
|
|
2278
|
+
}).optional().describe("Parent location"),
|
|
2283
2279
|
type: AdministrativeAreas
|
|
2284
2280
|
}).describe("Administrative area options");
|
|
2285
2281
|
var AdministrativeArea = BaseField.extend({
|
|
@@ -2364,11 +2360,6 @@ var ButtonField = BaseField.extend({
|
|
|
2364
2360
|
text: TranslationConfig.describe("Text to display on the button")
|
|
2365
2361
|
})
|
|
2366
2362
|
}).describe("Generic button without any built-in functionality");
|
|
2367
|
-
var FieldGroup = BaseField.extend({
|
|
2368
|
-
type: import_zod16.z.literal(FieldType.FIELD_GROUP),
|
|
2369
|
-
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
2370
|
-
fields: import_zod16.z.lazy(() => import_zod16.z.array(FieldConfig))
|
|
2371
|
-
});
|
|
2372
2363
|
var AlphaPrintButton = BaseField.extend({
|
|
2373
2364
|
type: import_zod16.z.literal(FieldType.ALPHA_PRINT_BUTTON),
|
|
2374
2365
|
configuration: import_zod16.z.object({
|
|
@@ -2476,7 +2467,6 @@ var LoaderField = BaseField.extend({
|
|
|
2476
2467
|
"A non-interactive field that indicates an in progress operation in form"
|
|
2477
2468
|
);
|
|
2478
2469
|
var FieldConfig = import_zod16.z.discriminatedUnion("type", [
|
|
2479
|
-
FieldGroup,
|
|
2480
2470
|
Address,
|
|
2481
2471
|
TextField,
|
|
2482
2472
|
NumberField,
|
|
@@ -2824,7 +2814,7 @@ var LanguageConfig = import_zod22.z.object({
|
|
|
2824
2814
|
});
|
|
2825
2815
|
|
|
2826
2816
|
// ../commons/src/events/EventConfig.ts
|
|
2827
|
-
var
|
|
2817
|
+
var import_zod27 = require("zod");
|
|
2828
2818
|
|
|
2829
2819
|
// ../commons/src/events/SummaryConfig.ts
|
|
2830
2820
|
var import_zod23 = require("zod");
|
|
@@ -2981,11 +2971,8 @@ var import_lodash = require("lodash");
|
|
|
2981
2971
|
// ../commons/src/conditionals/validate.ts
|
|
2982
2972
|
var import__ = __toESM(require("ajv/dist/2019"));
|
|
2983
2973
|
var import_ajv_formats = __toESM(require("ajv-formats"));
|
|
2984
|
-
var import_zod27 = require("zod");
|
|
2985
|
-
var import_date_fns = require("date-fns");
|
|
2986
|
-
|
|
2987
|
-
// ../commons/src/events/FieldTypeMapping.ts
|
|
2988
2974
|
var import_zod26 = require("zod");
|
|
2975
|
+
var import_date_fns = require("date-fns");
|
|
2989
2976
|
|
|
2990
2977
|
// ../commons/src/events/DynamicFieldValue.ts
|
|
2991
2978
|
var import_zod25 = require("zod");
|
|
@@ -3018,15 +3005,6 @@ function getDynamicAddressFieldValue(field3) {
|
|
|
3018
3005
|
function mapFieldTypeToZod(field3, actionType) {
|
|
3019
3006
|
let schema;
|
|
3020
3007
|
switch (field3.type) {
|
|
3021
|
-
case FieldType.FIELD_GROUP:
|
|
3022
|
-
schema = import_zod26.z.object(
|
|
3023
|
-
field3.fields.reduce((acc, subfield) => {
|
|
3024
|
-
return {
|
|
3025
|
-
...acc,
|
|
3026
|
-
[subfield.id]: mapFieldTypeToZod(subfield)
|
|
3027
|
-
};
|
|
3028
|
-
}, {})
|
|
3029
|
-
);
|
|
3030
3008
|
case FieldType.DATE:
|
|
3031
3009
|
schema = DateValue;
|
|
3032
3010
|
break;
|
|
@@ -3114,15 +3092,6 @@ function mapFieldTypeToZod(field3, actionType) {
|
|
|
3114
3092
|
}
|
|
3115
3093
|
function mapFieldTypeToEmptyValue(field3) {
|
|
3116
3094
|
switch (field3.type) {
|
|
3117
|
-
case FieldType.FIELD_GROUP:
|
|
3118
|
-
const nestedEmpty = field3.fields.reduce(
|
|
3119
|
-
(acc, subfield) => ({
|
|
3120
|
-
...acc,
|
|
3121
|
-
[subfield.id]: mapFieldTypeToEmptyValue(subfield)
|
|
3122
|
-
}),
|
|
3123
|
-
{}
|
|
3124
|
-
);
|
|
3125
|
-
return nestedEmpty;
|
|
3126
3095
|
case FieldType.DIVIDER:
|
|
3127
3096
|
case FieldType.TEXT:
|
|
3128
3097
|
case FieldType.TEXTAREA:
|
|
@@ -3250,9 +3219,6 @@ var isCheckboxFieldType = (field3) => {
|
|
|
3250
3219
|
var isRadioGroupFieldType = (field3) => {
|
|
3251
3220
|
return field3.config.type === FieldType.RADIO_GROUP;
|
|
3252
3221
|
};
|
|
3253
|
-
var isFieldGroupFieldType = (field3) => {
|
|
3254
|
-
return field3.config.type === FieldType.FIELD_GROUP;
|
|
3255
|
-
};
|
|
3256
3222
|
var isLocationFieldType = (field3) => {
|
|
3257
3223
|
return field3.config.type === FieldType.LOCATION;
|
|
3258
3224
|
};
|
|
@@ -3312,9 +3278,9 @@ var ajv = new import__.default({
|
|
|
3312
3278
|
strict: false
|
|
3313
3279
|
// Allow minContains and other newer features
|
|
3314
3280
|
});
|
|
3315
|
-
var DataContext =
|
|
3316
|
-
rootData:
|
|
3317
|
-
$leafAdminStructureLocationIds:
|
|
3281
|
+
var DataContext = import_zod26.z.object({
|
|
3282
|
+
rootData: import_zod26.z.object({
|
|
3283
|
+
$leafAdminStructureLocationIds: import_zod26.z.array(import_zod26.z.object({ id: UUID }))
|
|
3318
3284
|
})
|
|
3319
3285
|
});
|
|
3320
3286
|
function resolveDataPath(rootData, dataPath, instancePath) {
|
|
@@ -3601,17 +3567,15 @@ function runStructuralValidations({
|
|
|
3601
3567
|
return fieldValidationResult;
|
|
3602
3568
|
}
|
|
3603
3569
|
function runFieldValidations({
|
|
3604
|
-
field:
|
|
3605
|
-
|
|
3606
|
-
value,
|
|
3570
|
+
field: field3,
|
|
3571
|
+
values,
|
|
3607
3572
|
context
|
|
3608
3573
|
}) {
|
|
3609
|
-
|
|
3610
|
-
if (!isFieldVisible(field3.config, form, context)) {
|
|
3574
|
+
if (!isFieldVisible(field3, values, context) || isFieldEmptyAndNotRequired(field3, values)) {
|
|
3611
3575
|
return [];
|
|
3612
3576
|
}
|
|
3613
3577
|
const conditionalParameters = {
|
|
3614
|
-
$form:
|
|
3578
|
+
$form: values,
|
|
3615
3579
|
$now: (0, import_date_fns.formatISO)(/* @__PURE__ */ new Date(), { representation: "date" }),
|
|
3616
3580
|
/**
|
|
3617
3581
|
* In real use cases, there can be hundreds of thousands of locations.
|
|
@@ -3624,33 +3588,12 @@ function runFieldValidations({
|
|
|
3624
3588
|
$online: isOnline(),
|
|
3625
3589
|
$user: context.user
|
|
3626
3590
|
};
|
|
3627
|
-
if (isFieldGroupFieldType(field3)) {
|
|
3628
|
-
const subfieldErrors = buildFormState(
|
|
3629
|
-
field3.config.fields,
|
|
3630
|
-
(subfield) => runFieldValidations({
|
|
3631
|
-
field: subfield,
|
|
3632
|
-
value: field3.value[subfield.id],
|
|
3633
|
-
form,
|
|
3634
|
-
context
|
|
3635
|
-
})
|
|
3636
|
-
);
|
|
3637
|
-
if (flattenFormState(subfieldErrors).length !== 0) {
|
|
3638
|
-
return subfieldErrors;
|
|
3639
|
-
}
|
|
3640
|
-
return runCustomFieldValidations({
|
|
3641
|
-
field: field3.config,
|
|
3642
|
-
conditionalParameters
|
|
3643
|
-
});
|
|
3644
|
-
}
|
|
3645
|
-
if (isFieldEmptyAndNotRequired(field3.config, form)) {
|
|
3646
|
-
return [];
|
|
3647
|
-
}
|
|
3648
3591
|
const fieldValidationResult = validateFieldInput({
|
|
3649
|
-
field: field3
|
|
3650
|
-
value
|
|
3592
|
+
field: field3,
|
|
3593
|
+
value: values[field3.id]
|
|
3651
3594
|
});
|
|
3652
3595
|
const customValidationResults = runCustomFieldValidations({
|
|
3653
|
-
field: field3
|
|
3596
|
+
field: field3,
|
|
3654
3597
|
conditionalParameters
|
|
3655
3598
|
});
|
|
3656
3599
|
return [...fieldValidationResult, ...customValidationResults];
|
|
@@ -3705,7 +3648,7 @@ function areCertificateConditionsMet(conditions, values) {
|
|
|
3705
3648
|
}
|
|
3706
3649
|
|
|
3707
3650
|
// ../commons/src/utils.ts
|
|
3708
|
-
var
|
|
3651
|
+
var z27 = __toESM(require("zod"));
|
|
3709
3652
|
var _ = __toESM(require("lodash"));
|
|
3710
3653
|
function getOrThrow(x, message) {
|
|
3711
3654
|
if (x === void 0 || x === null) {
|
|
@@ -3716,11 +3659,11 @@ function getOrThrow(x, message) {
|
|
|
3716
3659
|
function joinValues(values, separator = " ") {
|
|
3717
3660
|
return values.filter((value) => !!value).join(separator).trim();
|
|
3718
3661
|
}
|
|
3719
|
-
var FullNameV1 =
|
|
3720
|
-
|
|
3721
|
-
use:
|
|
3722
|
-
family:
|
|
3723
|
-
given:
|
|
3662
|
+
var FullNameV1 = z27.array(
|
|
3663
|
+
z27.object({
|
|
3664
|
+
use: z27.string(),
|
|
3665
|
+
family: z27.string(),
|
|
3666
|
+
given: z27.array(z27.string())
|
|
3724
3667
|
})
|
|
3725
3668
|
);
|
|
3726
3669
|
function omitKeyDeep(obj, keyToRemove) {
|
|
@@ -3909,50 +3852,6 @@ function findLastAssignmentAction(actions) {
|
|
|
3909
3852
|
({ type }) => type === ActionType.ASSIGN || type === ActionType.UNASSIGN
|
|
3910
3853
|
).reduce((latestAction, action) => !latestAction || action.createdAt > latestAction.createdAt ? action : latestAction, void 0);
|
|
3911
3854
|
}
|
|
3912
|
-
function buildFormState(fields, mapper) {
|
|
3913
|
-
return fields.reduce(
|
|
3914
|
-
(acc, field3) => {
|
|
3915
|
-
if (field3.type === FieldType.FIELD_GROUP) {
|
|
3916
|
-
acc[field3.id] = buildFormState(field3.fields, mapper);
|
|
3917
|
-
return acc;
|
|
3918
|
-
}
|
|
3919
|
-
const mappedValue = mapper(field3);
|
|
3920
|
-
if (mappedValue) {
|
|
3921
|
-
acc[field3.id] = mappedValue;
|
|
3922
|
-
}
|
|
3923
|
-
return acc;
|
|
3924
|
-
},
|
|
3925
|
-
{}
|
|
3926
|
-
);
|
|
3927
|
-
}
|
|
3928
|
-
function mapFormState(state, fn) {
|
|
3929
|
-
return Object.entries(state).reduce(
|
|
3930
|
-
(mappedState, [key, value]) => {
|
|
3931
|
-
if (!value) {
|
|
3932
|
-
return mappedState;
|
|
3933
|
-
}
|
|
3934
|
-
if (Array.isArray(value)) {
|
|
3935
|
-
mappedState[key] = fn(value);
|
|
3936
|
-
return mappedState;
|
|
3937
|
-
}
|
|
3938
|
-
mappedState[key] = mapFormState(value, fn);
|
|
3939
|
-
return mappedState;
|
|
3940
|
-
},
|
|
3941
|
-
{}
|
|
3942
|
-
);
|
|
3943
|
-
}
|
|
3944
|
-
function flattenFormState(state, path = []) {
|
|
3945
|
-
if (Array.isArray(state)) {
|
|
3946
|
-
if (state.length === 0) {
|
|
3947
|
-
return [];
|
|
3948
|
-
}
|
|
3949
|
-
return [[path, state]];
|
|
3950
|
-
}
|
|
3951
|
-
return Object.entries(state).filter((e) => e[1] !== void 0).flatMap((e) => flattenFormState(e[1], [...path, e[0]]));
|
|
3952
|
-
}
|
|
3953
|
-
function flattenFieldReference(ref) {
|
|
3954
|
-
return [ref.$$field, ...ref.$$subfield];
|
|
3955
|
-
}
|
|
3956
3855
|
function isWriteAction(actionType) {
|
|
3957
3856
|
return writeActions.safeParse(actionType).success;
|
|
3958
3857
|
}
|
|
@@ -4686,12 +4585,12 @@ function createFieldConditionals(fieldId) {
|
|
|
4686
4585
|
}
|
|
4687
4586
|
|
|
4688
4587
|
// ../commons/src/events/EventConfig.ts
|
|
4689
|
-
(0, import_zod_openapi10.extendZodWithOpenApi)(
|
|
4690
|
-
var EventFieldReference =
|
|
4588
|
+
(0, import_zod_openapi10.extendZodWithOpenApi)(import_zod27.z);
|
|
4589
|
+
var EventFieldReference = import_zod27.z.object({ $$event: EventMetadataDateFieldIdInput }).describe(
|
|
4691
4590
|
"Reference to a field defined in the event metadata, using the field id."
|
|
4692
4591
|
);
|
|
4693
|
-
var EventConfig =
|
|
4694
|
-
id:
|
|
4592
|
+
var EventConfig = import_zod27.z.object({
|
|
4593
|
+
id: import_zod27.z.string().describe(
|
|
4695
4594
|
'Machine-readable identifier of the event (e.g. "birth", "death").'
|
|
4696
4595
|
),
|
|
4697
4596
|
dateOfEvent: FieldReference.or(EventFieldReference).optional().describe(
|
|
@@ -4709,13 +4608,13 @@ var EventConfig = import_zod28.z.object({
|
|
|
4709
4608
|
label: TranslationConfig.describe(
|
|
4710
4609
|
"Human-readable label for the event type."
|
|
4711
4610
|
),
|
|
4712
|
-
actions:
|
|
4611
|
+
actions: import_zod27.z.array(ActionConfig).describe(
|
|
4713
4612
|
"Configuration of system-defined actions associated with the event."
|
|
4714
4613
|
),
|
|
4715
4614
|
declaration: DeclarationFormConfig.describe(
|
|
4716
4615
|
"Configuration of the form used to gather event data."
|
|
4717
4616
|
),
|
|
4718
|
-
advancedSearch:
|
|
4617
|
+
advancedSearch: import_zod27.z.array(AdvancedSearchConfig).optional().default([]).describe(
|
|
4719
4618
|
"Configuration of fields available in the advanced search feature."
|
|
4720
4619
|
)
|
|
4721
4620
|
}).superRefine((event2, ctx) => {
|
|
@@ -4780,7 +4679,7 @@ var definePage = (page) => PageConfig.parse(page);
|
|
|
4780
4679
|
var defineFormPage = (formPage) => FormPageConfig.parse(formPage);
|
|
4781
4680
|
|
|
4782
4681
|
// ../commons/src/events/WorkqueueConfig.ts
|
|
4783
|
-
var
|
|
4682
|
+
var import_zod31 = require("zod");
|
|
4784
4683
|
|
|
4785
4684
|
// ../commons/src/searchConfigs.ts
|
|
4786
4685
|
function createSearchConfig(baseField) {
|
|
@@ -4981,17 +4880,17 @@ var event = Object.assign(eventFn, {
|
|
|
4981
4880
|
});
|
|
4982
4881
|
|
|
4983
4882
|
// ../commons/src/events/WorkqueueColumnConfig.ts
|
|
4984
|
-
var
|
|
4883
|
+
var import_zod28 = require("zod");
|
|
4985
4884
|
var WorkqueueColumnKeysArray = [
|
|
4986
4885
|
...EventMetadataKeysArray,
|
|
4987
4886
|
"title",
|
|
4988
4887
|
"outbox"
|
|
4989
4888
|
];
|
|
4990
|
-
var WorkqueueColumnKeys =
|
|
4991
|
-
var WorkqueueColumnValue =
|
|
4889
|
+
var WorkqueueColumnKeys = import_zod28.z.enum(WorkqueueColumnKeysArray);
|
|
4890
|
+
var WorkqueueColumnValue = import_zod28.z.object({
|
|
4992
4891
|
$event: WorkqueueColumnKeys
|
|
4993
4892
|
});
|
|
4994
|
-
var WorkqueueColumn =
|
|
4893
|
+
var WorkqueueColumn = import_zod28.z.object({
|
|
4995
4894
|
label: TranslationConfig,
|
|
4996
4895
|
value: WorkqueueColumnValue
|
|
4997
4896
|
});
|
|
@@ -5002,57 +4901,57 @@ function defineWorkqueuesColumns(workqueueColumns) {
|
|
|
5002
4901
|
}
|
|
5003
4902
|
|
|
5004
4903
|
// ../commons/src/events/CountryConfigQueryInput.ts
|
|
5005
|
-
var
|
|
5006
|
-
var SerializableExact =
|
|
5007
|
-
type:
|
|
5008
|
-
term:
|
|
4904
|
+
var import_zod29 = require("zod");
|
|
4905
|
+
var SerializableExact = import_zod29.z.object({
|
|
4906
|
+
type: import_zod29.z.literal("exact"),
|
|
4907
|
+
term: import_zod29.z.union([import_zod29.z.string(), SerializedUserField])
|
|
5009
4908
|
});
|
|
5010
|
-
var SerializableWithin =
|
|
5011
|
-
type:
|
|
5012
|
-
location:
|
|
4909
|
+
var SerializableWithin = import_zod29.z.object({
|
|
4910
|
+
type: import_zod29.z.literal("within"),
|
|
4911
|
+
location: import_zod29.z.union([import_zod29.z.string(), SerializedUserField])
|
|
5013
4912
|
});
|
|
5014
|
-
var SerializedQueryExpression =
|
|
5015
|
-
eventType:
|
|
5016
|
-
status:
|
|
5017
|
-
createdAt:
|
|
5018
|
-
updatedAt:
|
|
5019
|
-
"legalStatuses.REGISTERED.createdAt":
|
|
5020
|
-
"legalStatuses.REGISTERED.createdAtLocation":
|
|
5021
|
-
|
|
4913
|
+
var SerializedQueryExpression = import_zod29.z.object({
|
|
4914
|
+
eventType: import_zod29.z.string(),
|
|
4915
|
+
status: import_zod29.z.optional(import_zod29.z.union([AnyOfStatus, ExactStatus])),
|
|
4916
|
+
createdAt: import_zod29.z.optional(DateCondition),
|
|
4917
|
+
updatedAt: import_zod29.z.optional(DateCondition),
|
|
4918
|
+
"legalStatuses.REGISTERED.createdAt": import_zod29.z.optional(DateCondition),
|
|
4919
|
+
"legalStatuses.REGISTERED.createdAtLocation": import_zod29.z.optional(
|
|
4920
|
+
import_zod29.z.union([Within, Exact])
|
|
5022
4921
|
),
|
|
5023
|
-
"legalStatuses.REGISTERED.registrationNumber":
|
|
5024
|
-
createdAtLocation:
|
|
5025
|
-
|
|
4922
|
+
"legalStatuses.REGISTERED.registrationNumber": import_zod29.z.optional(Exact),
|
|
4923
|
+
createdAtLocation: import_zod29.z.optional(
|
|
4924
|
+
import_zod29.z.union([SerializableWithin, SerializableExact])
|
|
5026
4925
|
),
|
|
5027
|
-
updatedAtLocation:
|
|
5028
|
-
|
|
4926
|
+
updatedAtLocation: import_zod29.z.optional(
|
|
4927
|
+
import_zod29.z.union([SerializableWithin, SerializableExact])
|
|
5029
4928
|
),
|
|
5030
|
-
assignedTo:
|
|
5031
|
-
createdBy:
|
|
4929
|
+
assignedTo: import_zod29.z.optional(SerializableExact),
|
|
4930
|
+
createdBy: import_zod29.z.optional(SerializableExact),
|
|
5032
4931
|
createdByUserType: ExactUserType,
|
|
5033
|
-
updatedBy:
|
|
5034
|
-
trackingId:
|
|
5035
|
-
flags:
|
|
4932
|
+
updatedBy: import_zod29.z.optional(SerializableExact),
|
|
4933
|
+
trackingId: import_zod29.z.optional(Exact),
|
|
4934
|
+
flags: import_zod29.z.optional(ContainsFlags),
|
|
5036
4935
|
data: QueryInput
|
|
5037
4936
|
}).partial();
|
|
5038
|
-
var Or2 =
|
|
5039
|
-
type:
|
|
5040
|
-
clauses:
|
|
4937
|
+
var Or2 = import_zod29.z.object({
|
|
4938
|
+
type: import_zod29.z.literal("or"),
|
|
4939
|
+
clauses: import_zod29.z.array(SerializedQueryExpression)
|
|
5041
4940
|
});
|
|
5042
|
-
var And2 =
|
|
5043
|
-
type:
|
|
5044
|
-
clauses:
|
|
4941
|
+
var And2 = import_zod29.z.object({
|
|
4942
|
+
type: import_zod29.z.literal("and"),
|
|
4943
|
+
clauses: import_zod29.z.array(SerializedQueryExpression)
|
|
5045
4944
|
});
|
|
5046
|
-
var CountryConfigQueryType =
|
|
5047
|
-
var CountryConfigQueryInputType =
|
|
4945
|
+
var CountryConfigQueryType = import_zod29.z.discriminatedUnion("type", [And2, Or2]);
|
|
4946
|
+
var CountryConfigQueryInputType = import_zod29.z.union([
|
|
5048
4947
|
SerializedQueryExpression,
|
|
5049
4948
|
And2,
|
|
5050
4949
|
Or2
|
|
5051
4950
|
]);
|
|
5052
4951
|
|
|
5053
4952
|
// ../commons/src/icons.ts
|
|
5054
|
-
var
|
|
5055
|
-
var AvailableIcons =
|
|
4953
|
+
var import_zod30 = require("zod");
|
|
4954
|
+
var AvailableIcons = import_zod30.z.enum([
|
|
5056
4955
|
"Archived",
|
|
5057
4956
|
"Assigned",
|
|
5058
4957
|
"Certified",
|
|
@@ -5173,23 +5072,23 @@ var mandatoryColumns = defineWorkqueuesColumns([
|
|
|
5173
5072
|
value: event.field("updatedAt")
|
|
5174
5073
|
}
|
|
5175
5074
|
]);
|
|
5176
|
-
var WorkqueueActionsWithDefault =
|
|
5075
|
+
var WorkqueueActionsWithDefault = import_zod31.z.enum([
|
|
5177
5076
|
...workqueueActions.options,
|
|
5178
5077
|
"DEFAULT"
|
|
5179
5078
|
]);
|
|
5180
|
-
var WorkqueueConfig =
|
|
5181
|
-
slug:
|
|
5079
|
+
var WorkqueueConfig = import_zod31.z.object({
|
|
5080
|
+
slug: import_zod31.z.string().describe("Determines the url of the workqueue."),
|
|
5182
5081
|
name: TranslationConfig.describe(
|
|
5183
5082
|
"Title of the workflow (both in navigation and on the page)"
|
|
5184
5083
|
),
|
|
5185
5084
|
query: CountryConfigQueryType,
|
|
5186
|
-
actions:
|
|
5187
|
-
|
|
5085
|
+
actions: import_zod31.z.array(
|
|
5086
|
+
import_zod31.z.object({
|
|
5188
5087
|
type: WorkqueueActionsWithDefault,
|
|
5189
|
-
conditionals:
|
|
5088
|
+
conditionals: import_zod31.z.array(Conditional).optional()
|
|
5190
5089
|
})
|
|
5191
5090
|
),
|
|
5192
|
-
columns:
|
|
5091
|
+
columns: import_zod31.z.array(WorkqueueColumn).default(mandatoryColumns),
|
|
5193
5092
|
icon: AvailableIcons,
|
|
5194
5093
|
emptyMessage: TranslationConfig.optional()
|
|
5195
5094
|
}).describe("Configuration for workqueue.");
|
|
@@ -5197,19 +5096,19 @@ var WorkqueueConfigWithoutQuery = WorkqueueConfig.omit({
|
|
|
5197
5096
|
query: true,
|
|
5198
5097
|
columns: true
|
|
5199
5098
|
});
|
|
5200
|
-
var WorkqueueConfigInput =
|
|
5201
|
-
slug:
|
|
5099
|
+
var WorkqueueConfigInput = import_zod31.z.object({
|
|
5100
|
+
slug: import_zod31.z.string().describe("Determines the url of the workqueue."),
|
|
5202
5101
|
name: TranslationConfig.describe(
|
|
5203
5102
|
"Title of the workflow (both in navigation and on the page)"
|
|
5204
5103
|
),
|
|
5205
5104
|
query: CountryConfigQueryInputType,
|
|
5206
|
-
actions:
|
|
5207
|
-
|
|
5105
|
+
actions: import_zod31.z.array(
|
|
5106
|
+
import_zod31.z.object({
|
|
5208
5107
|
type: WorkqueueActionsWithDefault,
|
|
5209
|
-
conditionals:
|
|
5108
|
+
conditionals: import_zod31.z.array(Conditional).optional()
|
|
5210
5109
|
})
|
|
5211
5110
|
),
|
|
5212
|
-
columns:
|
|
5111
|
+
columns: import_zod31.z.array(WorkqueueColumn).default(mandatoryColumns),
|
|
5213
5112
|
icon: AvailableIcons,
|
|
5214
5113
|
emptyMessage: TranslationConfig.optional()
|
|
5215
5114
|
});
|
|
@@ -5221,10 +5120,10 @@ function defineWorkqueue(workqueueInput) {
|
|
|
5221
5120
|
function defineWorkqueues(workqueues) {
|
|
5222
5121
|
return workqueues.map((workqueue) => defineWorkqueue(workqueue));
|
|
5223
5122
|
}
|
|
5224
|
-
var WorkqueueCountInput =
|
|
5225
|
-
|
|
5123
|
+
var WorkqueueCountInput = import_zod31.z.array(
|
|
5124
|
+
import_zod31.z.object({ slug: import_zod31.z.string(), query: QueryType })
|
|
5226
5125
|
);
|
|
5227
|
-
var WorkqueueCountOutput =
|
|
5126
|
+
var WorkqueueCountOutput = import_zod31.z.record(import_zod31.z.string(), import_zod31.z.number());
|
|
5228
5127
|
|
|
5229
5128
|
// ../commons/src/events/workqueueDefaultColumns.ts
|
|
5230
5129
|
var defaultWorkqueueColumns = [
|
|
@@ -5247,45 +5146,45 @@ var defaultWorkqueueColumns = [
|
|
|
5247
5146
|
];
|
|
5248
5147
|
|
|
5249
5148
|
// ../commons/src/events/Draft.ts
|
|
5250
|
-
var
|
|
5149
|
+
var import_zod33 = require("zod");
|
|
5251
5150
|
|
|
5252
5151
|
// ../commons/src/events/ActionInput.ts
|
|
5253
|
-
var
|
|
5152
|
+
var import_zod32 = require("zod");
|
|
5254
5153
|
var import_zod_openapi11 = require("zod-openapi");
|
|
5255
|
-
(0, import_zod_openapi11.extendZodWithOpenApi)(
|
|
5256
|
-
var BaseActionInput =
|
|
5154
|
+
(0, import_zod_openapi11.extendZodWithOpenApi)(import_zod32.z);
|
|
5155
|
+
var BaseActionInput = import_zod32.z.object({
|
|
5257
5156
|
eventId: UUID,
|
|
5258
|
-
transactionId:
|
|
5157
|
+
transactionId: import_zod32.z.string(),
|
|
5259
5158
|
declaration: ActionUpdate.default({}),
|
|
5260
5159
|
annotation: ActionUpdate.optional(),
|
|
5261
5160
|
originalActionId: UUID.optional(),
|
|
5262
5161
|
// should not be part of base action.
|
|
5263
|
-
keepAssignment:
|
|
5162
|
+
keepAssignment: import_zod32.z.boolean().optional(),
|
|
5264
5163
|
// For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
|
|
5265
5164
|
createdAtLocation: CreatedAtLocation.describe(
|
|
5266
5165
|
"A valid office location ID. This is required for system users performing actions. The provided location must be a leaf-location, i.e. it must not have any children locations."
|
|
5267
5166
|
)
|
|
5268
5167
|
});
|
|
5269
5168
|
var CreateActionInput = BaseActionInput.merge(
|
|
5270
|
-
|
|
5271
|
-
type:
|
|
5169
|
+
import_zod32.z.object({
|
|
5170
|
+
type: import_zod32.z.literal(ActionType.CREATE).default(ActionType.CREATE),
|
|
5272
5171
|
createdAtLocation: CreatedAtLocation
|
|
5273
5172
|
})
|
|
5274
5173
|
);
|
|
5275
5174
|
var RegisterActionInput = BaseActionInput.merge(
|
|
5276
|
-
|
|
5277
|
-
type:
|
|
5278
|
-
registrationNumber:
|
|
5175
|
+
import_zod32.z.object({
|
|
5176
|
+
type: import_zod32.z.literal(ActionType.REGISTER).default(ActionType.REGISTER),
|
|
5177
|
+
registrationNumber: import_zod32.z.string().optional()
|
|
5279
5178
|
})
|
|
5280
5179
|
).strict();
|
|
5281
5180
|
var ValidateActionInput = BaseActionInput.merge(
|
|
5282
|
-
|
|
5283
|
-
type:
|
|
5181
|
+
import_zod32.z.object({
|
|
5182
|
+
type: import_zod32.z.literal(ActionType.VALIDATE).default(ActionType.VALIDATE)
|
|
5284
5183
|
})
|
|
5285
5184
|
);
|
|
5286
5185
|
var NotifyActionInput = BaseActionInput.merge(
|
|
5287
|
-
|
|
5288
|
-
type:
|
|
5186
|
+
import_zod32.z.object({
|
|
5187
|
+
type: import_zod32.z.literal(ActionType.NOTIFY).default(ActionType.NOTIFY)
|
|
5289
5188
|
})
|
|
5290
5189
|
).openapi({
|
|
5291
5190
|
default: {
|
|
@@ -5297,86 +5196,86 @@ var NotifyActionInput = BaseActionInput.merge(
|
|
|
5297
5196
|
}
|
|
5298
5197
|
});
|
|
5299
5198
|
var DeclareActionInput = BaseActionInput.merge(
|
|
5300
|
-
|
|
5301
|
-
type:
|
|
5199
|
+
import_zod32.z.object({
|
|
5200
|
+
type: import_zod32.z.literal(ActionType.DECLARE).default(ActionType.DECLARE)
|
|
5302
5201
|
})
|
|
5303
5202
|
);
|
|
5304
5203
|
var PrintCertificateActionInput = BaseActionInput.merge(
|
|
5305
|
-
|
|
5306
|
-
type:
|
|
5204
|
+
import_zod32.z.object({
|
|
5205
|
+
type: import_zod32.z.literal(ActionType.PRINT_CERTIFICATE).default(ActionType.PRINT_CERTIFICATE),
|
|
5307
5206
|
content: PrintContent.optional()
|
|
5308
5207
|
})
|
|
5309
5208
|
);
|
|
5310
5209
|
var RejectDeclarationActionInput = BaseActionInput.merge(
|
|
5311
|
-
|
|
5312
|
-
type:
|
|
5210
|
+
import_zod32.z.object({
|
|
5211
|
+
type: import_zod32.z.literal(ActionType.REJECT).default(ActionType.REJECT),
|
|
5313
5212
|
content: ReasonContent
|
|
5314
5213
|
})
|
|
5315
5214
|
);
|
|
5316
5215
|
var DuplicateDetectedActionInput = BaseActionInput.merge(
|
|
5317
|
-
|
|
5318
|
-
type:
|
|
5319
|
-
content:
|
|
5320
|
-
duplicates:
|
|
5216
|
+
import_zod32.z.object({
|
|
5217
|
+
type: import_zod32.z.literal(ActionType.DUPLICATE_DETECTED).default(ActionType.DUPLICATE_DETECTED),
|
|
5218
|
+
content: import_zod32.z.object({
|
|
5219
|
+
duplicates: import_zod32.z.array(PotentialDuplicate)
|
|
5321
5220
|
})
|
|
5322
5221
|
})
|
|
5323
5222
|
);
|
|
5324
5223
|
var MarkAsDuplicateActionInput = BaseActionInput.merge(
|
|
5325
|
-
|
|
5326
|
-
type:
|
|
5327
|
-
content:
|
|
5224
|
+
import_zod32.z.object({
|
|
5225
|
+
type: import_zod32.z.literal(ActionType.MARK_AS_DUPLICATE).default(ActionType.MARK_AS_DUPLICATE),
|
|
5226
|
+
content: import_zod32.z.object({
|
|
5328
5227
|
duplicateOf: UUID
|
|
5329
5228
|
}).optional()
|
|
5330
5229
|
})
|
|
5331
5230
|
);
|
|
5332
5231
|
var MarkNotDuplicateActionInput = BaseActionInput.merge(
|
|
5333
|
-
|
|
5334
|
-
type:
|
|
5232
|
+
import_zod32.z.object({
|
|
5233
|
+
type: import_zod32.z.literal(ActionType.MARK_AS_NOT_DUPLICATE).default(ActionType.MARK_AS_NOT_DUPLICATE)
|
|
5335
5234
|
})
|
|
5336
5235
|
);
|
|
5337
5236
|
var ArchiveActionInput = BaseActionInput.merge(
|
|
5338
|
-
|
|
5339
|
-
type:
|
|
5237
|
+
import_zod32.z.object({
|
|
5238
|
+
type: import_zod32.z.literal(ActionType.ARCHIVE).default(ActionType.ARCHIVE),
|
|
5340
5239
|
content: ReasonContent
|
|
5341
5240
|
})
|
|
5342
5241
|
);
|
|
5343
5242
|
var AssignActionInput = BaseActionInput.merge(
|
|
5344
|
-
|
|
5345
|
-
type:
|
|
5346
|
-
assignedTo:
|
|
5243
|
+
import_zod32.z.object({
|
|
5244
|
+
type: import_zod32.z.literal(ActionType.ASSIGN),
|
|
5245
|
+
assignedTo: import_zod32.z.string()
|
|
5347
5246
|
})
|
|
5348
5247
|
);
|
|
5349
5248
|
var UnassignActionInput = BaseActionInput.merge(
|
|
5350
|
-
|
|
5351
|
-
type:
|
|
5352
|
-
assignedTo:
|
|
5249
|
+
import_zod32.z.object({
|
|
5250
|
+
type: import_zod32.z.literal(ActionType.UNASSIGN).default(ActionType.UNASSIGN),
|
|
5251
|
+
assignedTo: import_zod32.z.literal(null).default(null)
|
|
5353
5252
|
})
|
|
5354
5253
|
);
|
|
5355
5254
|
var RequestCorrectionActionInput = BaseActionInput.merge(
|
|
5356
|
-
|
|
5357
|
-
type:
|
|
5255
|
+
import_zod32.z.object({
|
|
5256
|
+
type: import_zod32.z.literal(ActionType.REQUEST_CORRECTION).default(ActionType.REQUEST_CORRECTION)
|
|
5358
5257
|
})
|
|
5359
5258
|
);
|
|
5360
5259
|
var RejectCorrectionActionInput = BaseActionInput.merge(
|
|
5361
|
-
|
|
5362
|
-
requestId:
|
|
5363
|
-
type:
|
|
5260
|
+
import_zod32.z.object({
|
|
5261
|
+
requestId: import_zod32.z.string(),
|
|
5262
|
+
type: import_zod32.z.literal(ActionType.REJECT_CORRECTION).default(ActionType.REJECT_CORRECTION),
|
|
5364
5263
|
content: ReasonContent
|
|
5365
5264
|
})
|
|
5366
5265
|
);
|
|
5367
5266
|
var ApproveCorrectionActionInput = BaseActionInput.merge(
|
|
5368
|
-
|
|
5369
|
-
requestId:
|
|
5370
|
-
type:
|
|
5267
|
+
import_zod32.z.object({
|
|
5268
|
+
requestId: import_zod32.z.string(),
|
|
5269
|
+
type: import_zod32.z.literal(ActionType.APPROVE_CORRECTION).default(ActionType.APPROVE_CORRECTION)
|
|
5371
5270
|
})
|
|
5372
5271
|
);
|
|
5373
5272
|
var ReadActionInput = BaseActionInput.merge(
|
|
5374
|
-
|
|
5375
|
-
type:
|
|
5273
|
+
import_zod32.z.object({
|
|
5274
|
+
type: import_zod32.z.literal(ActionType.READ).default(ActionType.READ)
|
|
5376
5275
|
})
|
|
5377
5276
|
);
|
|
5378
|
-
var DeleteActionInput =
|
|
5379
|
-
var ActionInput =
|
|
5277
|
+
var DeleteActionInput = import_zod32.z.object({ eventId: UUID });
|
|
5278
|
+
var ActionInput = import_zod32.z.discriminatedUnion("type", [
|
|
5380
5279
|
CreateActionInput.openapi({ ref: "CreateActionInput" }),
|
|
5381
5280
|
ValidateActionInput.openapi({ ref: "ValidateActionInput" }),
|
|
5382
5281
|
RegisterActionInput.openapi({ ref: "RegisterActionInput" }),
|
|
@@ -5411,11 +5310,11 @@ var ActionInput = import_zod33.z.discriminatedUnion("type", [
|
|
|
5411
5310
|
});
|
|
5412
5311
|
|
|
5413
5312
|
// ../commons/src/events/Draft.ts
|
|
5414
|
-
var Draft =
|
|
5313
|
+
var Draft = import_zod33.z.object({
|
|
5415
5314
|
id: UUID,
|
|
5416
5315
|
eventId: UUID,
|
|
5417
|
-
transactionId:
|
|
5418
|
-
createdAt:
|
|
5316
|
+
transactionId: import_zod33.z.string(),
|
|
5317
|
+
createdAt: import_zod33.z.string().datetime(),
|
|
5419
5318
|
action: ActionBase.extend({
|
|
5420
5319
|
type: ActionTypes.exclude([ActionTypes.Enum.DELETE])
|
|
5421
5320
|
}).omit({ id: true, createdAtLocation: true })
|
|
@@ -5424,7 +5323,7 @@ var Draft = import_zod34.z.object({
|
|
|
5424
5323
|
);
|
|
5425
5324
|
var DraftInput = BaseActionInput.extend({
|
|
5426
5325
|
type: ActionTypes.exclude([ActionTypes.Enum.DELETE]),
|
|
5427
|
-
status:
|
|
5326
|
+
status: import_zod33.z.enum([
|
|
5428
5327
|
ActionStatus.Requested,
|
|
5429
5328
|
ActionStatus.Accepted,
|
|
5430
5329
|
ActionStatus.Rejected
|
|
@@ -5432,26 +5331,26 @@ var DraftInput = BaseActionInput.extend({
|
|
|
5432
5331
|
});
|
|
5433
5332
|
|
|
5434
5333
|
// ../commons/src/events/EventInput.ts
|
|
5435
|
-
var
|
|
5334
|
+
var import_zod34 = require("zod");
|
|
5436
5335
|
var import_uuid10 = require("uuid");
|
|
5437
|
-
var EventInput =
|
|
5438
|
-
transactionId:
|
|
5439
|
-
type:
|
|
5336
|
+
var EventInput = import_zod34.z.object({
|
|
5337
|
+
transactionId: import_zod34.z.string(),
|
|
5338
|
+
type: import_zod34.z.string()
|
|
5440
5339
|
}).openapi({ default: { transactionId: (0, import_uuid10.v4)(), type: "birth" } });
|
|
5441
5340
|
|
|
5442
5341
|
// ../commons/src/events/EventDocument.ts
|
|
5443
|
-
var
|
|
5342
|
+
var import_zod35 = require("zod");
|
|
5444
5343
|
var import_zod_openapi12 = require("zod-openapi");
|
|
5445
|
-
(0, import_zod_openapi12.extendZodWithOpenApi)(
|
|
5446
|
-
var EventDocument =
|
|
5344
|
+
(0, import_zod_openapi12.extendZodWithOpenApi)(import_zod35.z);
|
|
5345
|
+
var EventDocument = import_zod35.z.object({
|
|
5447
5346
|
id: UUID.describe("Unique identifier of the event."),
|
|
5448
|
-
type:
|
|
5449
|
-
createdAt:
|
|
5450
|
-
updatedAt:
|
|
5347
|
+
type: import_zod35.z.string().describe("Type of the event (e.g. birth, death, marriage)."),
|
|
5348
|
+
createdAt: import_zod35.z.string().datetime().describe("Timestamp indicating when the event was created."),
|
|
5349
|
+
updatedAt: import_zod35.z.string().datetime().describe(
|
|
5451
5350
|
"Timestamp of the last update, excluding changes from actions."
|
|
5452
5351
|
),
|
|
5453
|
-
actions:
|
|
5454
|
-
trackingId:
|
|
5352
|
+
actions: import_zod35.z.array(Action).describe("Ordered list of actions associated with the event."),
|
|
5353
|
+
trackingId: import_zod35.z.string().describe(
|
|
5455
5354
|
"System-generated tracking identifier used to look up the event."
|
|
5456
5355
|
)
|
|
5457
5356
|
}).openapi({ ref: "EventDocument" });
|
|
@@ -8341,9 +8240,9 @@ var digitalIdentityEvent = defineConfig({
|
|
|
8341
8240
|
});
|
|
8342
8241
|
|
|
8343
8242
|
// ../commons/src/events/test.utils.ts
|
|
8344
|
-
var
|
|
8243
|
+
var import_zod36 = require("zod");
|
|
8345
8244
|
var TEST_SYSTEM_IANA_TIMEZONE = "Asia/Dhaka";
|
|
8346
|
-
var TestUserRole =
|
|
8245
|
+
var TestUserRole = import_zod36.z.enum([
|
|
8347
8246
|
"FIELD_AGENT",
|
|
8348
8247
|
"LOCAL_REGISTRAR",
|
|
8349
8248
|
"LOCAL_SYSTEM_ADMIN",
|
|
@@ -8413,19 +8312,6 @@ function generateRandomSignature(rng) {
|
|
|
8413
8312
|
}
|
|
8414
8313
|
function mapFieldTypeToMockValue(field3, i, rng) {
|
|
8415
8314
|
switch (field3.type) {
|
|
8416
|
-
case FieldType.FIELD_GROUP:
|
|
8417
|
-
const nestedValue = field3.fields.reduce(
|
|
8418
|
-
(acc, subfield, index) => ({
|
|
8419
|
-
...acc,
|
|
8420
|
-
[subfield.id]: mapFieldTypeToMockValue(
|
|
8421
|
-
subfield,
|
|
8422
|
-
i * 1e3 + index,
|
|
8423
|
-
rng
|
|
8424
|
-
)
|
|
8425
|
-
}),
|
|
8426
|
-
{}
|
|
8427
|
-
);
|
|
8428
|
-
return nestedValue;
|
|
8429
8315
|
case FieldType.DIVIDER:
|
|
8430
8316
|
case FieldType.TEXT:
|
|
8431
8317
|
case FieldType.TEXTAREA:
|
|
@@ -9401,16 +9287,16 @@ function getFilePathsFromEvent(event2) {
|
|
|
9401
9287
|
}
|
|
9402
9288
|
|
|
9403
9289
|
// ../commons/src/events/locations.ts
|
|
9404
|
-
var
|
|
9405
|
-
var LocationType =
|
|
9290
|
+
var import_zod37 = require("zod");
|
|
9291
|
+
var LocationType = import_zod37.z.enum([
|
|
9406
9292
|
"ADMIN_STRUCTURE",
|
|
9407
9293
|
"CRVS_OFFICE",
|
|
9408
9294
|
"HEALTH_FACILITY"
|
|
9409
9295
|
]);
|
|
9410
|
-
var Location =
|
|
9296
|
+
var Location = import_zod37.z.object({
|
|
9411
9297
|
id: UUID,
|
|
9412
|
-
name:
|
|
9298
|
+
name: import_zod37.z.string(),
|
|
9413
9299
|
parentId: UUID.nullable(),
|
|
9414
|
-
validUntil:
|
|
9300
|
+
validUntil: import_zod37.z.string().datetime().nullable(),
|
|
9415
9301
|
locationType: LocationType.nullable()
|
|
9416
9302
|
});
|