@nira-opencrvs/toolkit 1.9.12-rc.60314e5 → 1.9.12-rc.87a8eb2

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.
@@ -4425,7 +4425,13 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
4425
4425
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4426
4426
  }, {
4427
4427
  type: z.ZodLiteral<"SELECT">;
4428
- defaultValue: z.ZodOptional<z.ZodString>;
4428
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
4429
+ $userDataField: z.ZodString;
4430
+ }, "strip", z.ZodTypeAny, {
4431
+ $userDataField: string;
4432
+ }, {
4433
+ $userDataField: string;
4434
+ }>]>>;
4429
4435
  options: z.ZodArray<z.ZodObject<{
4430
4436
  value: z.ZodString;
4431
4437
  label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
@@ -4516,7 +4522,9 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
4516
4522
  hideLabel?: boolean | undefined;
4517
4523
  uncorrectable?: boolean | undefined;
4518
4524
  analytics?: boolean | undefined;
4519
- defaultValue?: string | undefined;
4525
+ defaultValue?: string | {
4526
+ $userDataField: string;
4527
+ } | undefined;
4520
4528
  noOptionsMessage?: TranslationConfig | undefined;
4521
4529
  }, {
4522
4530
  type: "SELECT";
@@ -4594,7 +4602,9 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
4594
4602
  hideLabel?: boolean | undefined;
4595
4603
  uncorrectable?: boolean | undefined;
4596
4604
  analytics?: boolean | undefined;
4597
- defaultValue?: string | undefined;
4605
+ defaultValue?: string | {
4606
+ $userDataField: string;
4607
+ } | undefined;
4598
4608
  noOptionsMessage?: {
4599
4609
  id: string;
4600
4610
  description: string;
@@ -5988,7 +5998,13 @@ declare const IdField: z.ZodObject<z.objectUtil.extendShape<{
5988
5998
  }>, "many">]>>;
5989
5999
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5990
6000
  }, {
5991
- defaultValue: z.ZodOptional<z.ZodString>;
6001
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
6002
+ $userDataField: z.ZodString;
6003
+ }, "strip", z.ZodTypeAny, {
6004
+ $userDataField: string;
6005
+ }, {
6006
+ $userDataField: string;
6007
+ }>]>>;
5992
6008
  type: z.ZodLiteral<"ID">;
5993
6009
  }>, "strip", z.ZodTypeAny, {
5994
6010
  type: "ID";
@@ -6031,7 +6047,9 @@ declare const IdField: z.ZodObject<z.objectUtil.extendShape<{
6031
6047
  hideLabel?: boolean | undefined;
6032
6048
  uncorrectable?: boolean | undefined;
6033
6049
  analytics?: boolean | undefined;
6034
- defaultValue?: string | undefined;
6050
+ defaultValue?: string | {
6051
+ $userDataField: string;
6052
+ } | undefined;
6035
6053
  }, {
6036
6054
  type: "ID";
6037
6055
  id: string;
@@ -6093,7 +6111,9 @@ declare const IdField: z.ZodObject<z.objectUtil.extendShape<{
6093
6111
  hideLabel?: boolean | undefined;
6094
6112
  uncorrectable?: boolean | undefined;
6095
6113
  analytics?: boolean | undefined;
6096
- defaultValue?: string | undefined;
6114
+ defaultValue?: string | {
6115
+ $userDataField: string;
6116
+ } | undefined;
6097
6117
  }>;
6098
6118
  declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
6099
6119
  id: z.ZodEffects<z.ZodString, string, string>;
@@ -2230,7 +2230,7 @@ var BulletList = BaseField.extend({
2230
2230
  }).describe("A list of bullet points");
2231
2231
  var Select = BaseField.extend({
2232
2232
  type: import_zod17.z.literal(FieldType.SELECT),
2233
- defaultValue: TextValue.optional(),
2233
+ defaultValue: import_zod17.z.union([NonEmptyTextValue, SerializedUserDataField]).optional(),
2234
2234
  options: import_zod17.z.array(SelectOption).describe("A list of options"),
2235
2235
  noOptionsMessage: TranslationConfig.optional().describe(
2236
2236
  `
@@ -2288,7 +2288,7 @@ var PhoneField = BaseField.extend({
2288
2288
  type: import_zod17.z.literal(FieldType.PHONE)
2289
2289
  }).describe("Phone input field");
2290
2290
  var IdField = BaseField.extend({
2291
- defaultValue: NonEmptyTextValue.optional(),
2291
+ defaultValue: import_zod17.z.union([NonEmptyTextValue, SerializedUserDataField]).optional(),
2292
2292
  type: import_zod17.z.literal(FieldType.ID)
2293
2293
  }).describe("ID input field");
2294
2294
  var Checkbox = BaseField.extend({
@@ -1736,7 +1736,7 @@ var BulletList = BaseField.extend({
1736
1736
  }).describe("A list of bullet points");
1737
1737
  var Select = BaseField.extend({
1738
1738
  type: import_zod17.z.literal(FieldType.SELECT),
1739
- defaultValue: TextValue.optional(),
1739
+ defaultValue: import_zod17.z.union([NonEmptyTextValue, SerializedUserDataField]).optional(),
1740
1740
  options: import_zod17.z.array(SelectOption).describe("A list of options"),
1741
1741
  noOptionsMessage: TranslationConfig.optional().describe(
1742
1742
  `
@@ -1794,7 +1794,7 @@ var PhoneField = BaseField.extend({
1794
1794
  type: import_zod17.z.literal(FieldType.PHONE)
1795
1795
  }).describe("Phone input field");
1796
1796
  var IdField = BaseField.extend({
1797
- defaultValue: NonEmptyTextValue.optional(),
1797
+ defaultValue: import_zod17.z.union([NonEmptyTextValue, SerializedUserDataField]).optional(),
1798
1798
  type: import_zod17.z.literal(FieldType.ID)
1799
1799
  }).describe("ID input field");
1800
1800
  var Checkbox = BaseField.extend({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nira-opencrvs/toolkit",
3
- "version": "1.9.12-rc.60314e5",
3
+ "version": "1.9.12-rc.87a8eb2",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {