@nira-opencrvs/toolkit 1.9.11-rc.80fe86a → 1.9.11-rc.871aaf5
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.
|
@@ -7283,7 +7283,7 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7283
7283
|
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7284
7284
|
}, {
|
|
7285
7285
|
type: z.ZodLiteral<"FACILITY">;
|
|
7286
|
-
defaultValue: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
7286
|
+
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
7287
7287
|
$userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
|
|
7288
7288
|
$location: z.ZodOptional<z.ZodString>;
|
|
7289
7289
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7298,17 +7298,11 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7298
7298
|
$userDataField: string;
|
|
7299
7299
|
}, {
|
|
7300
7300
|
$userDataField: string;
|
|
7301
|
-
}>]
|
|
7301
|
+
}>]>>;
|
|
7302
7302
|
}>, "strip", z.ZodTypeAny, {
|
|
7303
7303
|
type: "FACILITY";
|
|
7304
7304
|
id: string;
|
|
7305
7305
|
label: TranslationConfig;
|
|
7306
|
-
defaultValue: string | {
|
|
7307
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7308
|
-
$location?: string | undefined;
|
|
7309
|
-
} | {
|
|
7310
|
-
$userDataField: string;
|
|
7311
|
-
};
|
|
7312
7306
|
parent?: {
|
|
7313
7307
|
$$field: string;
|
|
7314
7308
|
$$subfield: string[];
|
|
@@ -7346,6 +7340,12 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7346
7340
|
hideLabel?: boolean | undefined;
|
|
7347
7341
|
uncorrectable?: boolean | undefined;
|
|
7348
7342
|
analytics?: boolean | undefined;
|
|
7343
|
+
defaultValue?: string | {
|
|
7344
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7345
|
+
$location?: string | undefined;
|
|
7346
|
+
} | {
|
|
7347
|
+
$userDataField: string;
|
|
7348
|
+
} | undefined;
|
|
7349
7349
|
}, {
|
|
7350
7350
|
type: "FACILITY";
|
|
7351
7351
|
id: string;
|
|
@@ -7354,12 +7354,6 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7354
7354
|
description: string;
|
|
7355
7355
|
defaultMessage: string;
|
|
7356
7356
|
};
|
|
7357
|
-
defaultValue: string | {
|
|
7358
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7359
|
-
$location?: string | undefined;
|
|
7360
|
-
} | {
|
|
7361
|
-
$userDataField: string;
|
|
7362
|
-
};
|
|
7363
7357
|
parent?: {
|
|
7364
7358
|
$$field: string;
|
|
7365
7359
|
$$subfield?: string[] | undefined;
|
|
@@ -7413,6 +7407,12 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7413
7407
|
hideLabel?: boolean | undefined;
|
|
7414
7408
|
uncorrectable?: boolean | undefined;
|
|
7415
7409
|
analytics?: boolean | undefined;
|
|
7410
|
+
defaultValue?: string | {
|
|
7411
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7412
|
+
$location?: string | undefined;
|
|
7413
|
+
} | {
|
|
7414
|
+
$userDataField: string;
|
|
7415
|
+
} | undefined;
|
|
7416
7416
|
}>;
|
|
7417
7417
|
export type Facility = z.infer<typeof Facility>;
|
|
7418
7418
|
declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
package/dist/events/index.js
CHANGED
|
@@ -2325,11 +2325,7 @@ var FileUploadWithOptions = BaseField.extend({
|
|
|
2325
2325
|
});
|
|
2326
2326
|
var Facility = BaseField.extend({
|
|
2327
2327
|
type: import_zod17.z.literal(FieldType.FACILITY),
|
|
2328
|
-
defaultValue: import_zod17.z.union([
|
|
2329
|
-
NonEmptyTextValue,
|
|
2330
|
-
SerializedUserField,
|
|
2331
|
-
SerializedUserDataField
|
|
2332
|
-
])
|
|
2328
|
+
defaultValue: import_zod17.z.union([NonEmptyTextValue, SerializedUserField, SerializedUserDataField]).optional()
|
|
2333
2329
|
}).describe("Input field for a facility");
|
|
2334
2330
|
var Office = BaseField.extend({
|
|
2335
2331
|
type: import_zod17.z.literal(FieldType.OFFICE),
|
|
@@ -1837,11 +1837,7 @@ var FileUploadWithOptions = BaseField.extend({
|
|
|
1837
1837
|
});
|
|
1838
1838
|
var Facility = BaseField.extend({
|
|
1839
1839
|
type: import_zod17.z.literal(FieldType.FACILITY),
|
|
1840
|
-
defaultValue: import_zod17.z.union([
|
|
1841
|
-
NonEmptyTextValue,
|
|
1842
|
-
SerializedUserField,
|
|
1843
|
-
SerializedUserDataField
|
|
1844
|
-
])
|
|
1840
|
+
defaultValue: import_zod17.z.union([NonEmptyTextValue, SerializedUserField, SerializedUserDataField]).optional()
|
|
1845
1841
|
}).describe("Input field for a facility");
|
|
1846
1842
|
var Office = BaseField.extend({
|
|
1847
1843
|
type: import_zod17.z.literal(FieldType.OFFICE),
|