@opencrvs/toolkit 1.8.0-rc.feaeeb7 → 1.8.0-rc.ff62f9e

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.
@@ -747,6 +747,9 @@ declare const TextAreaField: z.ZodObject<z.objectUtil.extendShape<{
747
747
  } | undefined;
748
748
  }>;
749
749
  export type TextAreaField = z.infer<typeof TextAreaField>;
750
+ export declare const ImageMimeType: z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>;
751
+ export declare const MimeType: z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>;
752
+ export type MimeType = z.infer<typeof MimeType>;
750
753
  declare const SignatureField: z.ZodObject<z.objectUtil.extendShape<{
751
754
  id: z.ZodString;
752
755
  defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
@@ -800,20 +803,24 @@ declare const SignatureField: z.ZodObject<z.objectUtil.extendShape<{
800
803
  description: string;
801
804
  defaultMessage: string;
802
805
  }>;
803
- configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
804
- maxSizeMb: z.ZodOptional<z.ZodNumber>;
805
- allowedFileFormats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
806
+ configuration: z.ZodDefault<z.ZodObject<{
807
+ maxFileSize: z.ZodDefault<z.ZodNumber>;
808
+ acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>, "many">>;
806
809
  }, "strip", z.ZodTypeAny, {
807
- maxSizeMb?: number | undefined;
808
- allowedFileFormats?: string[] | undefined;
810
+ maxFileSize: number;
811
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
809
812
  }, {
810
- maxSizeMb?: number | undefined;
811
- allowedFileFormats?: string[] | undefined;
812
- }>>>;
813
+ maxFileSize?: number | undefined;
814
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
815
+ }>>;
813
816
  }>, "strip", z.ZodTypeAny, {
814
817
  type: "SIGNATURE";
815
818
  id: string;
816
819
  label: TranslationConfig;
820
+ configuration: {
821
+ maxFileSize: number;
822
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
823
+ };
817
824
  signaturePromptLabel: TranslationConfig;
818
825
  validation?: {
819
826
  message: TranslationConfig;
@@ -836,10 +843,6 @@ declare const SignatureField: z.ZodObject<z.objectUtil.extendShape<{
836
843
  hidden?: boolean | undefined;
837
844
  placeholder?: TranslationConfig | undefined;
838
845
  hideLabel?: boolean | undefined;
839
- configuration?: {
840
- maxSizeMb?: number | undefined;
841
- allowedFileFormats?: string[] | undefined;
842
- } | undefined;
843
846
  }, {
844
847
  type: "SIGNATURE";
845
848
  id: string;
@@ -883,8 +886,8 @@ declare const SignatureField: z.ZodObject<z.objectUtil.extendShape<{
883
886
  } | undefined;
884
887
  hideLabel?: boolean | undefined;
885
888
  configuration?: {
886
- maxSizeMb?: number | undefined;
887
- allowedFileFormats?: string[] | undefined;
889
+ maxFileSize?: number | undefined;
890
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
888
891
  } | undefined;
889
892
  }>;
890
893
  export type SignatureField = z.infer<typeof SignatureField>;
@@ -1491,32 +1494,40 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
1491
1494
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1492
1495
  }, {
1493
1496
  type: z.ZodLiteral<"FILE">;
1494
- options: z.ZodOptional<z.ZodObject<{
1495
- style: z.ZodObject<{
1496
- fullWidth: z.ZodBoolean;
1497
+ configuration: z.ZodDefault<z.ZodObject<{
1498
+ maxFileSize: z.ZodDefault<z.ZodNumber>;
1499
+ acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>, "many">>;
1500
+ style: z.ZodOptional<z.ZodObject<{
1501
+ width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
1497
1502
  }, "strip", z.ZodTypeAny, {
1498
- fullWidth: boolean;
1503
+ width?: "full" | "auto" | undefined;
1499
1504
  }, {
1500
- fullWidth: boolean;
1501
- }>;
1505
+ width?: "full" | "auto" | undefined;
1506
+ }>>;
1502
1507
  }, "strip", z.ZodTypeAny, {
1503
- style: {
1504
- fullWidth: boolean;
1505
- };
1508
+ maxFileSize: number;
1509
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
1510
+ style?: {
1511
+ width?: "full" | "auto" | undefined;
1512
+ } | undefined;
1506
1513
  }, {
1507
- style: {
1508
- fullWidth: boolean;
1509
- };
1514
+ maxFileSize?: number | undefined;
1515
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
1516
+ style?: {
1517
+ width?: "full" | "auto" | undefined;
1518
+ } | undefined;
1510
1519
  }>>;
1511
1520
  }>, "strip", z.ZodTypeAny, {
1512
1521
  type: "FILE";
1513
1522
  id: string;
1514
1523
  label: TranslationConfig;
1515
- options?: {
1516
- style: {
1517
- fullWidth: boolean;
1518
- };
1519
- } | undefined;
1524
+ configuration: {
1525
+ maxFileSize: number;
1526
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
1527
+ style?: {
1528
+ width?: "full" | "auto" | undefined;
1529
+ } | undefined;
1530
+ };
1520
1531
  validation?: {
1521
1532
  message: TranslationConfig;
1522
1533
  validator: import(".").JSONSchema;
@@ -1546,11 +1557,6 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
1546
1557
  description: string;
1547
1558
  defaultMessage: string;
1548
1559
  };
1549
- options?: {
1550
- style: {
1551
- fullWidth: boolean;
1552
- };
1553
- } | undefined;
1554
1560
  validation?: {
1555
1561
  message: {
1556
1562
  id: string;
@@ -1580,6 +1586,13 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
1580
1586
  defaultMessage: string;
1581
1587
  } | undefined;
1582
1588
  hideLabel?: boolean | undefined;
1589
+ configuration?: {
1590
+ maxFileSize?: number | undefined;
1591
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
1592
+ style?: {
1593
+ width?: "full" | "auto" | undefined;
1594
+ } | undefined;
1595
+ } | undefined;
1583
1596
  }>;
1584
1597
  export type File = z.infer<typeof File>;
1585
1598
  declare const SelectOption: z.ZodObject<{
@@ -2319,6 +2332,7 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
2319
2332
  hideLabel?: boolean | undefined;
2320
2333
  }>;
2321
2334
  export type Country = z.infer<typeof Country>;
2335
+ export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2322
2336
  declare const AdministrativeAreaConfiguration: z.ZodObject<{
2323
2337
  partOf: z.ZodOptional<z.ZodObject<{
2324
2338
  $data: z.ZodString;
@@ -2681,6 +2695,16 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
2681
2695
  defaultMessage: string;
2682
2696
  };
2683
2697
  }>, "many">;
2698
+ configuration: z.ZodDefault<z.ZodObject<{
2699
+ maxFileSize: z.ZodDefault<z.ZodNumber>;
2700
+ acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>, "many">>;
2701
+ }, "strip", z.ZodTypeAny, {
2702
+ maxFileSize: number;
2703
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
2704
+ }, {
2705
+ maxFileSize?: number | undefined;
2706
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
2707
+ }>>;
2684
2708
  }>, "strip", z.ZodTypeAny, {
2685
2709
  type: "FILE_WITH_OPTIONS";
2686
2710
  id: string;
@@ -2689,6 +2713,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
2689
2713
  label: TranslationConfig;
2690
2714
  }[];
2691
2715
  label: TranslationConfig;
2716
+ configuration: {
2717
+ maxFileSize: number;
2718
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
2719
+ };
2692
2720
  validation?: {
2693
2721
  message: TranslationConfig;
2694
2722
  validator: import(".").JSONSchema;
@@ -2755,6 +2783,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
2755
2783
  defaultMessage: string;
2756
2784
  } | undefined;
2757
2785
  hideLabel?: boolean | undefined;
2786
+ configuration?: {
2787
+ maxFileSize?: number | undefined;
2788
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
2789
+ } | undefined;
2758
2790
  }>;
2759
2791
  export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
2760
2792
  declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
@@ -3049,8 +3081,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3049
3081
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3050
3082
  }, {
3051
3083
  type: z.ZodLiteral<"ADDRESS">;
3052
- defaultValue: z.ZodOptional<z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
3084
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
3053
3085
  country: z.ZodString;
3086
+ addressType: z.ZodLiteral<"DOMESTIC">;
3054
3087
  province: z.ZodString;
3055
3088
  district: z.ZodString;
3056
3089
  }, {
@@ -3063,6 +3096,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3063
3096
  }>, "strip", z.ZodTypeAny, {
3064
3097
  country: string;
3065
3098
  district: string;
3099
+ addressType: "DOMESTIC";
3066
3100
  province: string;
3067
3101
  urbanOrRural: "URBAN";
3068
3102
  number?: string | undefined;
@@ -3073,6 +3107,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3073
3107
  }, {
3074
3108
  country: string;
3075
3109
  district: string;
3110
+ addressType: "DOMESTIC";
3076
3111
  province: string;
3077
3112
  urbanOrRural: "URBAN";
3078
3113
  number?: string | undefined;
@@ -3082,6 +3117,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3082
3117
  zipCode?: string | undefined;
3083
3118
  }>, z.ZodObject<z.objectUtil.extendShape<{
3084
3119
  country: z.ZodString;
3120
+ addressType: z.ZodLiteral<"DOMESTIC">;
3085
3121
  province: z.ZodString;
3086
3122
  district: z.ZodString;
3087
3123
  }, {
@@ -3090,15 +3126,47 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3090
3126
  }>, "strip", z.ZodTypeAny, {
3091
3127
  country: string;
3092
3128
  district: string;
3129
+ addressType: "DOMESTIC";
3093
3130
  province: string;
3094
3131
  urbanOrRural: "RURAL";
3095
3132
  village?: string | undefined;
3096
3133
  }, {
3097
3134
  country: string;
3098
3135
  district: string;
3136
+ addressType: "DOMESTIC";
3099
3137
  province: string;
3100
3138
  urbanOrRural: "RURAL";
3101
3139
  village?: string | undefined;
3140
+ }>]>, z.ZodObject<{
3141
+ country: z.ZodString;
3142
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
3143
+ state: z.ZodString;
3144
+ district2: z.ZodString;
3145
+ cityOrTown: z.ZodOptional<z.ZodString>;
3146
+ addressLine1: z.ZodOptional<z.ZodString>;
3147
+ addressLine2: z.ZodOptional<z.ZodString>;
3148
+ addressLine3: z.ZodOptional<z.ZodString>;
3149
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
3150
+ }, "strip", z.ZodTypeAny, {
3151
+ country: string;
3152
+ state: string;
3153
+ addressType: "INTERNATIONAL";
3154
+ district2: string;
3155
+ cityOrTown?: string | undefined;
3156
+ addressLine1?: string | undefined;
3157
+ addressLine2?: string | undefined;
3158
+ addressLine3?: string | undefined;
3159
+ postcodeOrZip?: string | undefined;
3160
+ }, {
3161
+ country: string;
3162
+ state: string;
3163
+ addressType: "INTERNATIONAL";
3164
+ district2: string;
3165
+ cityOrTown?: string | undefined;
3166
+ addressLine1?: string | undefined;
3167
+ addressLine2?: string | undefined;
3168
+ addressLine3?: string | undefined;
3169
+ postcodeOrZip?: string | undefined;
3102
3170
  }>]>>;
3103
3171
  }>, "strip", z.ZodTypeAny, {
3104
3172
  type: "ADDRESS";
@@ -3113,6 +3181,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3113
3181
  defaultValue?: {
3114
3182
  country: string;
3115
3183
  district: string;
3184
+ addressType: "DOMESTIC";
3116
3185
  province: string;
3117
3186
  urbanOrRural: "URBAN";
3118
3187
  number?: string | undefined;
@@ -3123,9 +3192,20 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3123
3192
  } | {
3124
3193
  country: string;
3125
3194
  district: string;
3195
+ addressType: "DOMESTIC";
3126
3196
  province: string;
3127
3197
  urbanOrRural: "RURAL";
3128
3198
  village?: string | undefined;
3199
+ } | {
3200
+ country: string;
3201
+ state: string;
3202
+ addressType: "INTERNATIONAL";
3203
+ district2: string;
3204
+ cityOrTown?: string | undefined;
3205
+ addressLine1?: string | undefined;
3206
+ addressLine2?: string | undefined;
3207
+ addressLine3?: string | undefined;
3208
+ postcodeOrZip?: string | undefined;
3129
3209
  } | undefined;
3130
3210
  conditionals?: ({
3131
3211
  type: "SHOW";
@@ -3159,6 +3239,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3159
3239
  defaultValue?: {
3160
3240
  country: string;
3161
3241
  district: string;
3242
+ addressType: "DOMESTIC";
3162
3243
  province: string;
3163
3244
  urbanOrRural: "URBAN";
3164
3245
  number?: string | undefined;
@@ -3169,9 +3250,175 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3169
3250
  } | {
3170
3251
  country: string;
3171
3252
  district: string;
3253
+ addressType: "DOMESTIC";
3172
3254
  province: string;
3173
3255
  urbanOrRural: "RURAL";
3174
3256
  village?: string | undefined;
3257
+ } | {
3258
+ country: string;
3259
+ state: string;
3260
+ addressType: "INTERNATIONAL";
3261
+ district2: string;
3262
+ cityOrTown?: string | undefined;
3263
+ addressLine1?: string | undefined;
3264
+ addressLine2?: string | undefined;
3265
+ addressLine3?: string | undefined;
3266
+ postcodeOrZip?: string | undefined;
3267
+ } | undefined;
3268
+ conditionals?: ({
3269
+ type: "SHOW";
3270
+ conditional: import(".").JSONSchema;
3271
+ } | {
3272
+ type: "ENABLE";
3273
+ conditional: import(".").JSONSchema;
3274
+ })[] | undefined;
3275
+ disabled?: boolean | undefined;
3276
+ hidden?: boolean | undefined;
3277
+ placeholder?: {
3278
+ id: string;
3279
+ description: string;
3280
+ defaultMessage: string;
3281
+ } | undefined;
3282
+ hideLabel?: boolean | undefined;
3283
+ }>;
3284
+ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3285
+ id: z.ZodString;
3286
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
3287
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3288
+ expression: z.ZodString;
3289
+ }, "strip", z.ZodTypeAny, {
3290
+ dependsOn: string[];
3291
+ expression: string;
3292
+ }, {
3293
+ expression: string;
3294
+ dependsOn?: string[] | undefined;
3295
+ }>]>>;
3296
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").AllActionConditionalFields[]>, "many">>>;
3297
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3298
+ disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3299
+ hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3300
+ placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3301
+ id: string;
3302
+ description: string;
3303
+ defaultMessage: string;
3304
+ }>>;
3305
+ validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
3306
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
3307
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3308
+ id: string;
3309
+ description: string;
3310
+ defaultMessage: string;
3311
+ }>;
3312
+ }, "strip", z.ZodTypeAny, {
3313
+ message: TranslationConfig;
3314
+ validator: import(".").JSONSchema;
3315
+ }, {
3316
+ message: {
3317
+ id: string;
3318
+ description: string;
3319
+ defaultMessage: string;
3320
+ };
3321
+ validator: import(".").JSONSchema;
3322
+ }>, "many">>>;
3323
+ dependsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
3324
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3325
+ id: string;
3326
+ description: string;
3327
+ defaultMessage: string;
3328
+ }>;
3329
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3330
+ }, {
3331
+ type: z.ZodLiteral<"DATA">;
3332
+ configuration: z.ZodObject<{
3333
+ subtitle: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3334
+ id: string;
3335
+ description: string;
3336
+ defaultMessage: string;
3337
+ }>>;
3338
+ data: z.ZodArray<z.ZodObject<{
3339
+ fieldId: z.ZodString;
3340
+ }, "strip", z.ZodTypeAny, {
3341
+ fieldId: string;
3342
+ }, {
3343
+ fieldId: string;
3344
+ }>, "many">;
3345
+ }, "strip", z.ZodTypeAny, {
3346
+ data: {
3347
+ fieldId: string;
3348
+ }[];
3349
+ subtitle?: TranslationConfig | undefined;
3350
+ }, {
3351
+ data: {
3352
+ fieldId: string;
3353
+ }[];
3354
+ subtitle?: {
3355
+ id: string;
3356
+ description: string;
3357
+ defaultMessage: string;
3358
+ } | undefined;
3359
+ }>;
3360
+ }>, "strip", z.ZodTypeAny, {
3361
+ type: "DATA";
3362
+ id: string;
3363
+ label: TranslationConfig;
3364
+ configuration: {
3365
+ data: {
3366
+ fieldId: string;
3367
+ }[];
3368
+ subtitle?: TranslationConfig | undefined;
3369
+ };
3370
+ validation?: {
3371
+ message: TranslationConfig;
3372
+ validator: import(".").JSONSchema;
3373
+ }[] | undefined;
3374
+ required?: boolean | undefined;
3375
+ dependsOn?: string[] | undefined;
3376
+ defaultValue?: string | number | boolean | {
3377
+ dependsOn: string[];
3378
+ expression: string;
3379
+ } | undefined;
3380
+ conditionals?: ({
3381
+ type: "SHOW";
3382
+ conditional: import(".").JSONSchema;
3383
+ } | {
3384
+ type: "ENABLE";
3385
+ conditional: import(".").JSONSchema;
3386
+ })[] | undefined;
3387
+ disabled?: boolean | undefined;
3388
+ hidden?: boolean | undefined;
3389
+ placeholder?: TranslationConfig | undefined;
3390
+ hideLabel?: boolean | undefined;
3391
+ }, {
3392
+ type: "DATA";
3393
+ id: string;
3394
+ label: {
3395
+ id: string;
3396
+ description: string;
3397
+ defaultMessage: string;
3398
+ };
3399
+ configuration: {
3400
+ data: {
3401
+ fieldId: string;
3402
+ }[];
3403
+ subtitle?: {
3404
+ id: string;
3405
+ description: string;
3406
+ defaultMessage: string;
3407
+ } | undefined;
3408
+ };
3409
+ validation?: {
3410
+ message: {
3411
+ id: string;
3412
+ description: string;
3413
+ defaultMessage: string;
3414
+ };
3415
+ validator: import(".").JSONSchema;
3416
+ }[] | undefined;
3417
+ required?: boolean | undefined;
3418
+ dependsOn?: string[] | undefined;
3419
+ defaultValue?: string | number | boolean | {
3420
+ expression: string;
3421
+ dependsOn?: string[] | undefined;
3175
3422
  } | undefined;
3176
3423
  conditionals?: ({
3177
3424
  type: "SHOW";
@@ -3189,11 +3436,17 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3189
3436
  } | undefined;
3190
3437
  hideLabel?: boolean | undefined;
3191
3438
  }>;
3439
+ export type DataField = z.infer<typeof DataField>;
3440
+ /** @knipignore */
3441
+ export type AllFields = typeof Address | typeof TextField | typeof NumberField | typeof TextAreaField | typeof DateField | typeof Paragraph | typeof RadioGroup | typeof BulletList | typeof PageHeader | typeof Select | typeof Checkbox | typeof File | typeof Country | typeof AdministrativeArea | typeof Divider | typeof Location | typeof Facility | typeof Office | typeof SignatureField | typeof EmailField | typeof FileUploadWithOptions | typeof DataField;
3192
3442
  /** @knipignore */
3193
- export type AllFields = typeof Address | typeof TextField | typeof NumberField | typeof TextAreaField | typeof DateField | typeof Paragraph | typeof RadioGroup | typeof BulletList | typeof PageHeader | typeof Select | typeof Checkbox | typeof File | typeof Country | typeof AdministrativeArea | typeof Divider | typeof Location | typeof Facility | typeof Office | typeof SignatureField | typeof EmailField | typeof FileUploadWithOptions;
3443
+ export type Inferred = z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof Paragraph> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof Checkbox> | z.infer<typeof File> | z.infer<typeof FileUploadWithOptions> | z.infer<typeof Country> | z.infer<typeof AdministrativeArea> | z.infer<typeof Divider> | z.infer<typeof Location> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField> | z.infer<typeof DataField>;
3194
3444
  /** @knipignore */
3195
- export type Inferred = z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof Paragraph> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof Checkbox> | z.infer<typeof File> | z.infer<typeof FileUploadWithOptions> | z.infer<typeof Country> | z.infer<typeof AdministrativeArea> | z.infer<typeof Divider> | z.infer<typeof Location> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField>;
3196
- export declare const FieldConfig: z.ZodType<Inferred, any, Inferred>;
3445
+ /**
3446
+ * This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
3447
+ */
3448
+ export type InferredInput = z.input<typeof Address> | z.input<typeof TextField> | z.input<typeof NumberField> | z.input<typeof TextAreaField> | z.input<typeof DateField> | z.input<typeof Paragraph> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof Checkbox> | z.input<typeof File> | z.input<typeof FileUploadWithOptions> | z.input<typeof Country> | z.input<typeof AdministrativeArea> | z.input<typeof Divider> | z.input<typeof Location> | z.input<typeof Facility> | z.input<typeof Office> | z.input<typeof SignatureField> | z.input<typeof EmailField> | z.input<typeof DataField>;
3449
+ export declare const FieldConfig: z.ZodType<Inferred, any, InferredInput>;
3197
3450
  export type SelectField = z.infer<typeof Select>;
3198
3451
  export type LocationField = z.infer<typeof Location>;
3199
3452
  export type RadioField = z.infer<typeof RadioGroup>;
@@ -21,7 +21,12 @@ export declare const FieldType: {
21
21
  readonly FACILITY: "FACILITY";
22
22
  readonly OFFICE: "OFFICE";
23
23
  readonly SIGNATURE: "SIGNATURE";
24
+ readonly DATA: "DATA";
24
25
  };
25
- export declare const fieldTypes: ("ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "HIDDEN" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE")[];
26
+ export declare const fieldTypes: ("ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "HIDDEN" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA")[];
26
27
  export type FieldType = (typeof fieldTypes)[number];
28
+ /**
29
+ * Composite field types are field types that consist of multiple field values.
30
+ */
31
+ export declare const compositeFieldTypes: ("ADDRESS" | "FILE" | "FILE_WITH_OPTIONS")[];
27
32
  //# sourceMappingURL=FieldType.d.ts.map