@opencrvs/toolkit 1.9.5-rc.4858075 → 1.9.5-rc.4d0fc4f
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 +29 -27
- package/dist/commons/events/AdvancedSearchConfig.d.ts +47 -41
- package/dist/commons/events/CompositeFieldValue.d.ts +22 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +350 -350
- package/dist/commons/events/EventConfig.d.ts +33 -31
- package/dist/commons/events/FieldConfig.d.ts +576 -32
- package/dist/commons/events/FieldType.d.ts +3 -2
- package/dist/commons/events/FieldTypeMapping.d.ts +88 -3
- package/dist/commons/events/FieldValue.d.ts +52 -4
- package/dist/commons/events/TemplateConfig.d.ts +15 -3
- package/dist/commons/events/WorkqueueConfig.d.ts +525 -525
- package/dist/commons/events/defineConfig.d.ts +3 -3
- package/dist/commons/events/event.d.ts +4 -4
- package/dist/commons/events/utils.d.ts +15 -3
- package/dist/conditionals/index.js +7 -2
- package/dist/events/index.js +63 -8
- package/dist/notification/index.js +47 -7
- package/package.json +1 -1
|
@@ -537,7 +537,16 @@ export declare const TextField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
537
537
|
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
538
538
|
}, {
|
|
539
539
|
type: z.ZodLiteral<"TEXT">;
|
|
540
|
-
defaultValue: z.ZodOptional<z.ZodString
|
|
540
|
+
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
541
|
+
$userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
|
|
542
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
543
|
+
}, "strip", z.ZodTypeAny, {
|
|
544
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
545
|
+
$location?: string | undefined;
|
|
546
|
+
}, {
|
|
547
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
548
|
+
$location?: string | undefined;
|
|
549
|
+
}>]>>;
|
|
541
550
|
configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
542
551
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
543
552
|
type: z.ZodOptional<z.ZodEnum<["text", "password"]>>;
|
|
@@ -611,7 +620,10 @@ export declare const TextField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
611
620
|
hideLabel?: boolean | undefined;
|
|
612
621
|
uncorrectable?: boolean | undefined;
|
|
613
622
|
analytics?: boolean | undefined;
|
|
614
|
-
defaultValue?: string |
|
|
623
|
+
defaultValue?: string | {
|
|
624
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
625
|
+
$location?: string | undefined;
|
|
626
|
+
} | undefined;
|
|
615
627
|
configuration?: {
|
|
616
628
|
type?: "text" | "password" | undefined;
|
|
617
629
|
maxLength?: number | undefined;
|
|
@@ -679,7 +691,10 @@ export declare const TextField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
679
691
|
hideLabel?: boolean | undefined;
|
|
680
692
|
uncorrectable?: boolean | undefined;
|
|
681
693
|
analytics?: boolean | undefined;
|
|
682
|
-
defaultValue?: string |
|
|
694
|
+
defaultValue?: string | {
|
|
695
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
696
|
+
$location?: string | undefined;
|
|
697
|
+
} | undefined;
|
|
683
698
|
configuration?: {
|
|
684
699
|
type?: "text" | "password" | undefined;
|
|
685
700
|
maxLength?: number | undefined;
|
|
@@ -3203,6 +3218,28 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3203
3218
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
3204
3219
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
3205
3220
|
acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml", "application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.oasis.opendocument.text"]>, "many">>;
|
|
3221
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
3222
|
+
targetSize: z.ZodObject<{
|
|
3223
|
+
width: z.ZodNumber;
|
|
3224
|
+
height: z.ZodNumber;
|
|
3225
|
+
}, "strip", z.ZodTypeAny, {
|
|
3226
|
+
width: number;
|
|
3227
|
+
height: number;
|
|
3228
|
+
}, {
|
|
3229
|
+
width: number;
|
|
3230
|
+
height: number;
|
|
3231
|
+
}>;
|
|
3232
|
+
}, "strip", z.ZodTypeAny, {
|
|
3233
|
+
targetSize: {
|
|
3234
|
+
width: number;
|
|
3235
|
+
height: number;
|
|
3236
|
+
};
|
|
3237
|
+
}, {
|
|
3238
|
+
targetSize: {
|
|
3239
|
+
width: number;
|
|
3240
|
+
height: number;
|
|
3241
|
+
};
|
|
3242
|
+
}>>;
|
|
3206
3243
|
style: z.ZodOptional<z.ZodObject<{
|
|
3207
3244
|
width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
|
|
3208
3245
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3218,6 +3255,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3218
3255
|
}, "strip", z.ZodTypeAny, {
|
|
3219
3256
|
maxFileSize: number;
|
|
3220
3257
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
3258
|
+
maxImageSize?: {
|
|
3259
|
+
targetSize: {
|
|
3260
|
+
width: number;
|
|
3261
|
+
height: number;
|
|
3262
|
+
};
|
|
3263
|
+
} | undefined;
|
|
3221
3264
|
style?: {
|
|
3222
3265
|
width?: "full" | "auto" | undefined;
|
|
3223
3266
|
} | undefined;
|
|
@@ -3225,6 +3268,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3225
3268
|
}, {
|
|
3226
3269
|
maxFileSize?: number | undefined;
|
|
3227
3270
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
3271
|
+
maxImageSize?: {
|
|
3272
|
+
targetSize: {
|
|
3273
|
+
width: number;
|
|
3274
|
+
height: number;
|
|
3275
|
+
};
|
|
3276
|
+
} | undefined;
|
|
3228
3277
|
style?: {
|
|
3229
3278
|
width?: "full" | "auto" | undefined;
|
|
3230
3279
|
} | undefined;
|
|
@@ -3241,6 +3290,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3241
3290
|
configuration: {
|
|
3242
3291
|
maxFileSize: number;
|
|
3243
3292
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
3293
|
+
maxImageSize?: {
|
|
3294
|
+
targetSize: {
|
|
3295
|
+
width: number;
|
|
3296
|
+
height: number;
|
|
3297
|
+
};
|
|
3298
|
+
} | undefined;
|
|
3244
3299
|
style?: {
|
|
3245
3300
|
width?: "full" | "auto" | undefined;
|
|
3246
3301
|
} | undefined;
|
|
@@ -3357,6 +3412,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3357
3412
|
configuration?: {
|
|
3358
3413
|
maxFileSize?: number | undefined;
|
|
3359
3414
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
3415
|
+
maxImageSize?: {
|
|
3416
|
+
targetSize: {
|
|
3417
|
+
width: number;
|
|
3418
|
+
height: number;
|
|
3419
|
+
};
|
|
3420
|
+
} | undefined;
|
|
3360
3421
|
style?: {
|
|
3361
3422
|
width?: "full" | "auto" | undefined;
|
|
3362
3423
|
} | undefined;
|
|
@@ -3386,6 +3447,287 @@ export declare const SelectOption: z.ZodObject<{
|
|
|
3386
3447
|
defaultMessage: string;
|
|
3387
3448
|
};
|
|
3388
3449
|
}>;
|
|
3450
|
+
declare const NumberWithUnitField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3451
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
3452
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
3453
|
+
id: string;
|
|
3454
|
+
description: string;
|
|
3455
|
+
defaultMessage: string;
|
|
3456
|
+
}>;
|
|
3457
|
+
parent: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
3458
|
+
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
3459
|
+
$$subfield: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3460
|
+
}, "strip", z.ZodTypeAny, {
|
|
3461
|
+
$$field: string;
|
|
3462
|
+
$$subfield?: string[] | undefined;
|
|
3463
|
+
}, {
|
|
3464
|
+
$$field: string;
|
|
3465
|
+
$$subfield?: string[] | undefined;
|
|
3466
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
3467
|
+
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
3468
|
+
$$subfield: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3469
|
+
}, "strip", z.ZodTypeAny, {
|
|
3470
|
+
$$field: string;
|
|
3471
|
+
$$subfield?: string[] | undefined;
|
|
3472
|
+
}, {
|
|
3473
|
+
$$field: string;
|
|
3474
|
+
$$subfield?: string[] | undefined;
|
|
3475
|
+
}>, "many">]>>;
|
|
3476
|
+
required: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
3477
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
3478
|
+
id: string;
|
|
3479
|
+
description: string;
|
|
3480
|
+
defaultMessage: string;
|
|
3481
|
+
}>;
|
|
3482
|
+
}, "strip", z.ZodTypeAny, {
|
|
3483
|
+
message: TranslationConfig;
|
|
3484
|
+
}, {
|
|
3485
|
+
message: {
|
|
3486
|
+
id: string;
|
|
3487
|
+
description: string;
|
|
3488
|
+
defaultMessage: string;
|
|
3489
|
+
};
|
|
3490
|
+
}>]>>>;
|
|
3491
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
|
3492
|
+
secured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3493
|
+
placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
3494
|
+
id: string;
|
|
3495
|
+
description: string;
|
|
3496
|
+
defaultMessage: string;
|
|
3497
|
+
}>>;
|
|
3498
|
+
validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3499
|
+
validator: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
|
3500
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
3501
|
+
id: string;
|
|
3502
|
+
description: string;
|
|
3503
|
+
defaultMessage: string;
|
|
3504
|
+
}>;
|
|
3505
|
+
}, "strip", z.ZodTypeAny, {
|
|
3506
|
+
message: TranslationConfig;
|
|
3507
|
+
validator: JSONSchema;
|
|
3508
|
+
}, {
|
|
3509
|
+
message: {
|
|
3510
|
+
id: string;
|
|
3511
|
+
description: string;
|
|
3512
|
+
defaultMessage: string;
|
|
3513
|
+
};
|
|
3514
|
+
validator: JSONSchema;
|
|
3515
|
+
}>, "many">>>;
|
|
3516
|
+
helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
3517
|
+
id: string;
|
|
3518
|
+
description: string;
|
|
3519
|
+
defaultMessage: string;
|
|
3520
|
+
}>>;
|
|
3521
|
+
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3522
|
+
uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3523
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
3524
|
+
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
3525
|
+
$$subfield: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3526
|
+
}, "strip", z.ZodTypeAny, {
|
|
3527
|
+
$$field: string;
|
|
3528
|
+
$$subfield?: string[] | undefined;
|
|
3529
|
+
}, {
|
|
3530
|
+
$$field: string;
|
|
3531
|
+
$$subfield?: string[] | undefined;
|
|
3532
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
3533
|
+
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
3534
|
+
$$subfield: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3535
|
+
}, "strip", z.ZodTypeAny, {
|
|
3536
|
+
$$field: string;
|
|
3537
|
+
$$subfield?: string[] | undefined;
|
|
3538
|
+
}, {
|
|
3539
|
+
$$field: string;
|
|
3540
|
+
$$subfield?: string[] | undefined;
|
|
3541
|
+
}>, "many">]>>;
|
|
3542
|
+
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3543
|
+
}, {
|
|
3544
|
+
type: z.ZodLiteral<"NUMBER_WITH_UNIT">;
|
|
3545
|
+
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
3546
|
+
numericValue: z.ZodNumber;
|
|
3547
|
+
unit: z.ZodString;
|
|
3548
|
+
}, "strip", z.ZodTypeAny, {
|
|
3549
|
+
numericValue: number;
|
|
3550
|
+
unit: string;
|
|
3551
|
+
}, {
|
|
3552
|
+
numericValue: number;
|
|
3553
|
+
unit: string;
|
|
3554
|
+
}>>;
|
|
3555
|
+
options: z.ZodArray<z.ZodObject<{
|
|
3556
|
+
value: z.ZodString;
|
|
3557
|
+
label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
3558
|
+
id: string;
|
|
3559
|
+
description: string;
|
|
3560
|
+
defaultMessage: string;
|
|
3561
|
+
}>]>;
|
|
3562
|
+
}, "strip", z.ZodTypeAny, {
|
|
3563
|
+
value: string;
|
|
3564
|
+
label: string | TranslationConfig;
|
|
3565
|
+
}, {
|
|
3566
|
+
value: string;
|
|
3567
|
+
label: string | {
|
|
3568
|
+
id: string;
|
|
3569
|
+
description: string;
|
|
3570
|
+
defaultMessage: string;
|
|
3571
|
+
};
|
|
3572
|
+
}>, "many">;
|
|
3573
|
+
configuration: z.ZodOptional<z.ZodObject<{
|
|
3574
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
3575
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
3576
|
+
numberFieldPlaceholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
3577
|
+
id: string;
|
|
3578
|
+
description: string;
|
|
3579
|
+
defaultMessage: string;
|
|
3580
|
+
}>>;
|
|
3581
|
+
}, "strip", z.ZodTypeAny, {
|
|
3582
|
+
min?: number | undefined;
|
|
3583
|
+
max?: number | undefined;
|
|
3584
|
+
numberFieldPlaceholder?: TranslationConfig | undefined;
|
|
3585
|
+
}, {
|
|
3586
|
+
min?: number | undefined;
|
|
3587
|
+
max?: number | undefined;
|
|
3588
|
+
numberFieldPlaceholder?: {
|
|
3589
|
+
id: string;
|
|
3590
|
+
description: string;
|
|
3591
|
+
defaultMessage: string;
|
|
3592
|
+
} | undefined;
|
|
3593
|
+
}>>;
|
|
3594
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3595
|
+
type: "NUMBER_WITH_UNIT";
|
|
3596
|
+
id: string;
|
|
3597
|
+
options: {
|
|
3598
|
+
value: string;
|
|
3599
|
+
label: string | TranslationConfig;
|
|
3600
|
+
}[];
|
|
3601
|
+
label: TranslationConfig;
|
|
3602
|
+
parent?: {
|
|
3603
|
+
$$field: string;
|
|
3604
|
+
$$subfield?: string[] | undefined;
|
|
3605
|
+
} | {
|
|
3606
|
+
$$field: string;
|
|
3607
|
+
$$subfield?: string[] | undefined;
|
|
3608
|
+
}[] | undefined;
|
|
3609
|
+
value?: {
|
|
3610
|
+
$$field: string;
|
|
3611
|
+
$$subfield?: string[] | undefined;
|
|
3612
|
+
} | {
|
|
3613
|
+
$$field: string;
|
|
3614
|
+
$$subfield?: string[] | undefined;
|
|
3615
|
+
}[] | undefined;
|
|
3616
|
+
validation?: {
|
|
3617
|
+
message: TranslationConfig;
|
|
3618
|
+
validator: JSONSchema;
|
|
3619
|
+
}[] | undefined;
|
|
3620
|
+
required?: boolean | {
|
|
3621
|
+
message: TranslationConfig;
|
|
3622
|
+
} | undefined;
|
|
3623
|
+
conditionals?: ({
|
|
3624
|
+
type: "SHOW";
|
|
3625
|
+
conditional: JSONSchema;
|
|
3626
|
+
} | {
|
|
3627
|
+
type: "ENABLE";
|
|
3628
|
+
conditional: JSONSchema;
|
|
3629
|
+
} | {
|
|
3630
|
+
type: "DISPLAY_ON_REVIEW";
|
|
3631
|
+
conditional: JSONSchema;
|
|
3632
|
+
})[] | undefined;
|
|
3633
|
+
secured?: boolean | undefined;
|
|
3634
|
+
placeholder?: TranslationConfig | undefined;
|
|
3635
|
+
helperText?: TranslationConfig | undefined;
|
|
3636
|
+
hideLabel?: boolean | undefined;
|
|
3637
|
+
uncorrectable?: boolean | undefined;
|
|
3638
|
+
analytics?: boolean | undefined;
|
|
3639
|
+
defaultValue?: {
|
|
3640
|
+
numericValue: number;
|
|
3641
|
+
unit: string;
|
|
3642
|
+
} | undefined;
|
|
3643
|
+
configuration?: {
|
|
3644
|
+
min?: number | undefined;
|
|
3645
|
+
max?: number | undefined;
|
|
3646
|
+
numberFieldPlaceholder?: TranslationConfig | undefined;
|
|
3647
|
+
} | undefined;
|
|
3648
|
+
}, {
|
|
3649
|
+
type: "NUMBER_WITH_UNIT";
|
|
3650
|
+
id: string;
|
|
3651
|
+
options: {
|
|
3652
|
+
value: string;
|
|
3653
|
+
label: string | {
|
|
3654
|
+
id: string;
|
|
3655
|
+
description: string;
|
|
3656
|
+
defaultMessage: string;
|
|
3657
|
+
};
|
|
3658
|
+
}[];
|
|
3659
|
+
label: {
|
|
3660
|
+
id: string;
|
|
3661
|
+
description: string;
|
|
3662
|
+
defaultMessage: string;
|
|
3663
|
+
};
|
|
3664
|
+
parent?: {
|
|
3665
|
+
$$field: string;
|
|
3666
|
+
$$subfield?: string[] | undefined;
|
|
3667
|
+
} | {
|
|
3668
|
+
$$field: string;
|
|
3669
|
+
$$subfield?: string[] | undefined;
|
|
3670
|
+
}[] | undefined;
|
|
3671
|
+
value?: {
|
|
3672
|
+
$$field: string;
|
|
3673
|
+
$$subfield?: string[] | undefined;
|
|
3674
|
+
} | {
|
|
3675
|
+
$$field: string;
|
|
3676
|
+
$$subfield?: string[] | undefined;
|
|
3677
|
+
}[] | undefined;
|
|
3678
|
+
validation?: {
|
|
3679
|
+
message: {
|
|
3680
|
+
id: string;
|
|
3681
|
+
description: string;
|
|
3682
|
+
defaultMessage: string;
|
|
3683
|
+
};
|
|
3684
|
+
validator: JSONSchema;
|
|
3685
|
+
}[] | undefined;
|
|
3686
|
+
required?: boolean | {
|
|
3687
|
+
message: {
|
|
3688
|
+
id: string;
|
|
3689
|
+
description: string;
|
|
3690
|
+
defaultMessage: string;
|
|
3691
|
+
};
|
|
3692
|
+
} | undefined;
|
|
3693
|
+
conditionals?: ({
|
|
3694
|
+
type: "SHOW";
|
|
3695
|
+
conditional: JSONSchema;
|
|
3696
|
+
} | {
|
|
3697
|
+
type: "ENABLE";
|
|
3698
|
+
conditional: JSONSchema;
|
|
3699
|
+
} | {
|
|
3700
|
+
type: "DISPLAY_ON_REVIEW";
|
|
3701
|
+
conditional: JSONSchema;
|
|
3702
|
+
})[] | undefined;
|
|
3703
|
+
secured?: boolean | undefined;
|
|
3704
|
+
placeholder?: {
|
|
3705
|
+
id: string;
|
|
3706
|
+
description: string;
|
|
3707
|
+
defaultMessage: string;
|
|
3708
|
+
} | undefined;
|
|
3709
|
+
helperText?: {
|
|
3710
|
+
id: string;
|
|
3711
|
+
description: string;
|
|
3712
|
+
defaultMessage: string;
|
|
3713
|
+
} | undefined;
|
|
3714
|
+
hideLabel?: boolean | undefined;
|
|
3715
|
+
uncorrectable?: boolean | undefined;
|
|
3716
|
+
analytics?: boolean | undefined;
|
|
3717
|
+
defaultValue?: {
|
|
3718
|
+
numericValue: number;
|
|
3719
|
+
unit: string;
|
|
3720
|
+
} | undefined;
|
|
3721
|
+
configuration?: {
|
|
3722
|
+
min?: number | undefined;
|
|
3723
|
+
max?: number | undefined;
|
|
3724
|
+
numberFieldPlaceholder?: {
|
|
3725
|
+
id: string;
|
|
3726
|
+
description: string;
|
|
3727
|
+
defaultMessage: string;
|
|
3728
|
+
} | undefined;
|
|
3729
|
+
} | undefined;
|
|
3730
|
+
}>;
|
|
3389
3731
|
declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
3390
3732
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
3391
3733
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
@@ -4662,17 +5004,62 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4662
5004
|
}, {
|
|
4663
5005
|
type: z.ZodLiteral<"NAME">;
|
|
4664
5006
|
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
4665
|
-
firstname: z.ZodOptional<z.
|
|
4666
|
-
|
|
4667
|
-
|
|
5007
|
+
firstname: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
5008
|
+
$userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
|
|
5009
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
5010
|
+
}, "strip", z.ZodTypeAny, {
|
|
5011
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5012
|
+
$location?: string | undefined;
|
|
5013
|
+
}, {
|
|
5014
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5015
|
+
$location?: string | undefined;
|
|
5016
|
+
}>, z.ZodString]>>;
|
|
5017
|
+
middlename: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
5018
|
+
$userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
|
|
5019
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
5020
|
+
}, "strip", z.ZodTypeAny, {
|
|
5021
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5022
|
+
$location?: string | undefined;
|
|
5023
|
+
}, {
|
|
5024
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5025
|
+
$location?: string | undefined;
|
|
5026
|
+
}>, z.ZodString]>>;
|
|
5027
|
+
surname: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
5028
|
+
$userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
|
|
5029
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
5030
|
+
}, "strip", z.ZodTypeAny, {
|
|
5031
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5032
|
+
$location?: string | undefined;
|
|
5033
|
+
}, {
|
|
5034
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5035
|
+
$location?: string | undefined;
|
|
5036
|
+
}>, z.ZodString]>>;
|
|
4668
5037
|
}, "strip", z.ZodTypeAny, {
|
|
4669
|
-
firstname?: string |
|
|
4670
|
-
|
|
4671
|
-
|
|
5038
|
+
firstname?: string | {
|
|
5039
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5040
|
+
$location?: string | undefined;
|
|
5041
|
+
} | undefined;
|
|
5042
|
+
surname?: string | {
|
|
5043
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5044
|
+
$location?: string | undefined;
|
|
5045
|
+
} | undefined;
|
|
5046
|
+
middlename?: string | {
|
|
5047
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5048
|
+
$location?: string | undefined;
|
|
5049
|
+
} | undefined;
|
|
4672
5050
|
}, {
|
|
4673
|
-
firstname?: string |
|
|
4674
|
-
|
|
4675
|
-
|
|
5051
|
+
firstname?: string | {
|
|
5052
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5053
|
+
$location?: string | undefined;
|
|
5054
|
+
} | undefined;
|
|
5055
|
+
surname?: string | {
|
|
5056
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5057
|
+
$location?: string | undefined;
|
|
5058
|
+
} | undefined;
|
|
5059
|
+
middlename?: string | {
|
|
5060
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5061
|
+
$location?: string | undefined;
|
|
5062
|
+
} | undefined;
|
|
4676
5063
|
}>>;
|
|
4677
5064
|
configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
4678
5065
|
name: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
@@ -4996,9 +5383,18 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4996
5383
|
uncorrectable?: boolean | undefined;
|
|
4997
5384
|
analytics?: boolean | undefined;
|
|
4998
5385
|
defaultValue?: {
|
|
4999
|
-
firstname?: string |
|
|
5000
|
-
|
|
5001
|
-
|
|
5386
|
+
firstname?: string | {
|
|
5387
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5388
|
+
$location?: string | undefined;
|
|
5389
|
+
} | undefined;
|
|
5390
|
+
surname?: string | {
|
|
5391
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5392
|
+
$location?: string | undefined;
|
|
5393
|
+
} | undefined;
|
|
5394
|
+
middlename?: string | {
|
|
5395
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5396
|
+
$location?: string | undefined;
|
|
5397
|
+
} | undefined;
|
|
5002
5398
|
} | undefined;
|
|
5003
5399
|
configuration?: {
|
|
5004
5400
|
name?: {
|
|
@@ -5088,9 +5484,18 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5088
5484
|
uncorrectable?: boolean | undefined;
|
|
5089
5485
|
analytics?: boolean | undefined;
|
|
5090
5486
|
defaultValue?: {
|
|
5091
|
-
firstname?: string |
|
|
5092
|
-
|
|
5093
|
-
|
|
5487
|
+
firstname?: string | {
|
|
5488
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5489
|
+
$location?: string | undefined;
|
|
5490
|
+
} | undefined;
|
|
5491
|
+
surname?: string | {
|
|
5492
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5493
|
+
$location?: string | undefined;
|
|
5494
|
+
} | undefined;
|
|
5495
|
+
middlename?: string | {
|
|
5496
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5497
|
+
$location?: string | undefined;
|
|
5498
|
+
} | undefined;
|
|
5094
5499
|
} | undefined;
|
|
5095
5500
|
configuration?: {
|
|
5096
5501
|
name?: {
|
|
@@ -6558,13 +6963,47 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6558
6963
|
}>, "many">>;
|
|
6559
6964
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
6560
6965
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
6966
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
6967
|
+
targetSize: z.ZodObject<{
|
|
6968
|
+
width: z.ZodNumber;
|
|
6969
|
+
height: z.ZodNumber;
|
|
6970
|
+
}, "strip", z.ZodTypeAny, {
|
|
6971
|
+
width: number;
|
|
6972
|
+
height: number;
|
|
6973
|
+
}, {
|
|
6974
|
+
width: number;
|
|
6975
|
+
height: number;
|
|
6976
|
+
}>;
|
|
6977
|
+
}, "strip", z.ZodTypeAny, {
|
|
6978
|
+
targetSize: {
|
|
6979
|
+
width: number;
|
|
6980
|
+
height: number;
|
|
6981
|
+
};
|
|
6982
|
+
}, {
|
|
6983
|
+
targetSize: {
|
|
6984
|
+
width: number;
|
|
6985
|
+
height: number;
|
|
6986
|
+
};
|
|
6987
|
+
}>>;
|
|
6561
6988
|
acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml", "application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.oasis.opendocument.text"]>, "many">>;
|
|
6562
6989
|
}, "strip", z.ZodTypeAny, {
|
|
6563
6990
|
maxFileSize: number;
|
|
6564
6991
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
6992
|
+
maxImageSize?: {
|
|
6993
|
+
targetSize: {
|
|
6994
|
+
width: number;
|
|
6995
|
+
height: number;
|
|
6996
|
+
};
|
|
6997
|
+
} | undefined;
|
|
6565
6998
|
}, {
|
|
6566
6999
|
maxFileSize?: number | undefined;
|
|
6567
7000
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
7001
|
+
maxImageSize?: {
|
|
7002
|
+
targetSize: {
|
|
7003
|
+
width: number;
|
|
7004
|
+
height: number;
|
|
7005
|
+
};
|
|
7006
|
+
} | undefined;
|
|
6568
7007
|
}>>;
|
|
6569
7008
|
}>, "strip", z.ZodTypeAny, {
|
|
6570
7009
|
type: "FILE_WITH_OPTIONS";
|
|
@@ -6577,6 +7016,12 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6577
7016
|
configuration: {
|
|
6578
7017
|
maxFileSize: number;
|
|
6579
7018
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
7019
|
+
maxImageSize?: {
|
|
7020
|
+
targetSize: {
|
|
7021
|
+
width: number;
|
|
7022
|
+
height: number;
|
|
7023
|
+
};
|
|
7024
|
+
} | undefined;
|
|
6580
7025
|
};
|
|
6581
7026
|
parent?: {
|
|
6582
7027
|
$$field: string;
|
|
@@ -6699,6 +7144,12 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6699
7144
|
configuration?: {
|
|
6700
7145
|
maxFileSize?: number | undefined;
|
|
6701
7146
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
7147
|
+
maxImageSize?: {
|
|
7148
|
+
targetSize: {
|
|
7149
|
+
width: number;
|
|
7150
|
+
height: number;
|
|
7151
|
+
};
|
|
7152
|
+
} | undefined;
|
|
6702
7153
|
} | undefined;
|
|
6703
7154
|
}>;
|
|
6704
7155
|
export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
|
|
@@ -7114,13 +7565,13 @@ export declare const DefaultAddressFieldValue: z.ZodObject<z.objectUtil.extendSh
|
|
|
7114
7565
|
administrativeArea: z.ZodString;
|
|
7115
7566
|
}>, {
|
|
7116
7567
|
administrativeArea: z.ZodOptional<z.ZodUnion<[z.ZodBranded<z.ZodString, "UUID">, z.ZodObject<{
|
|
7117
|
-
$userField: z.ZodEnum<["id", "name", "role", "
|
|
7568
|
+
$userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
|
|
7118
7569
|
$location: z.ZodOptional<z.ZodString>;
|
|
7119
7570
|
}, "strip", z.ZodTypeAny, {
|
|
7120
|
-
$userField: "
|
|
7571
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7121
7572
|
$location?: string | undefined;
|
|
7122
7573
|
}, {
|
|
7123
|
-
$userField: "
|
|
7574
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7124
7575
|
$location?: string | undefined;
|
|
7125
7576
|
}>]>>;
|
|
7126
7577
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -7128,7 +7579,7 @@ export declare const DefaultAddressFieldValue: z.ZodObject<z.objectUtil.extendSh
|
|
|
7128
7579
|
addressType: "DOMESTIC";
|
|
7129
7580
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7130
7581
|
administrativeArea?: (string & z.BRAND<"UUID">) | {
|
|
7131
|
-
$userField: "
|
|
7582
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7132
7583
|
$location?: string | undefined;
|
|
7133
7584
|
} | undefined;
|
|
7134
7585
|
}, {
|
|
@@ -7136,7 +7587,7 @@ export declare const DefaultAddressFieldValue: z.ZodObject<z.objectUtil.extendSh
|
|
|
7136
7587
|
addressType: "DOMESTIC";
|
|
7137
7588
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7138
7589
|
administrativeArea?: string | {
|
|
7139
|
-
$userField: "
|
|
7590
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7140
7591
|
$location?: string | undefined;
|
|
7141
7592
|
} | undefined;
|
|
7142
7593
|
}>;
|
|
@@ -7394,13 +7845,13 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7394
7845
|
administrativeArea: z.ZodString;
|
|
7395
7846
|
}>, {
|
|
7396
7847
|
administrativeArea: z.ZodOptional<z.ZodUnion<[z.ZodBranded<z.ZodString, "UUID">, z.ZodObject<{
|
|
7397
|
-
$userField: z.ZodEnum<["id", "name", "role", "
|
|
7848
|
+
$userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
|
|
7398
7849
|
$location: z.ZodOptional<z.ZodString>;
|
|
7399
7850
|
}, "strip", z.ZodTypeAny, {
|
|
7400
|
-
$userField: "
|
|
7851
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7401
7852
|
$location?: string | undefined;
|
|
7402
7853
|
}, {
|
|
7403
|
-
$userField: "
|
|
7854
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7404
7855
|
$location?: string | undefined;
|
|
7405
7856
|
}>]>>;
|
|
7406
7857
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -7408,7 +7859,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7408
7859
|
addressType: "DOMESTIC";
|
|
7409
7860
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7410
7861
|
administrativeArea?: (string & z.BRAND<"UUID">) | {
|
|
7411
|
-
$userField: "
|
|
7862
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7412
7863
|
$location?: string | undefined;
|
|
7413
7864
|
} | undefined;
|
|
7414
7865
|
}, {
|
|
@@ -7416,7 +7867,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7416
7867
|
addressType: "DOMESTIC";
|
|
7417
7868
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7418
7869
|
administrativeArea?: string | {
|
|
7419
|
-
$userField: "
|
|
7870
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7420
7871
|
$location?: string | undefined;
|
|
7421
7872
|
} | undefined;
|
|
7422
7873
|
}>>;
|
|
@@ -7466,7 +7917,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7466
7917
|
addressType: "DOMESTIC";
|
|
7467
7918
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7468
7919
|
administrativeArea?: (string & z.BRAND<"UUID">) | {
|
|
7469
|
-
$userField: "
|
|
7920
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7470
7921
|
$location?: string | undefined;
|
|
7471
7922
|
} | undefined;
|
|
7472
7923
|
} | undefined;
|
|
@@ -7563,7 +8014,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7563
8014
|
addressType: "DOMESTIC";
|
|
7564
8015
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7565
8016
|
administrativeArea?: string | {
|
|
7566
|
-
$userField: "
|
|
8017
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7567
8018
|
$location?: string | undefined;
|
|
7568
8019
|
} | undefined;
|
|
7569
8020
|
} | undefined;
|
|
@@ -11555,12 +12006,12 @@ declare const LoaderField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
11555
12006
|
}>;
|
|
11556
12007
|
export type LoaderField = z.infer<typeof LoaderField>;
|
|
11557
12008
|
/** @knipignore */
|
|
11558
|
-
export type FieldConfig = z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof AgeField> | z.infer<typeof TimeField> | z.infer<typeof DateRangeField> | z.infer<typeof SelectDateRangeField> | z.infer<typeof Paragraph> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof NameField> | z.infer<typeof PhoneField> | z.infer<typeof IdField> | 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 LocationInput> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField> | z.infer<typeof DataField> | z.infer<typeof ButtonField> | z.infer<typeof AlphaPrintButton> | z.infer<typeof HttpField> | z.infer<typeof SearchField> | z.infer<typeof LinkButtonField> | z.infer<typeof VerificationStatus> | z.infer<typeof QueryParamReaderField> | z.infer<typeof QrReaderField> | z.infer<typeof IdReaderField> | z.infer<typeof LoaderField>;
|
|
12009
|
+
export type FieldConfig = z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof NumberWithUnitField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof AgeField> | z.infer<typeof TimeField> | z.infer<typeof DateRangeField> | z.infer<typeof SelectDateRangeField> | z.infer<typeof Paragraph> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof NameField> | z.infer<typeof PhoneField> | z.infer<typeof IdField> | 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 LocationInput> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField> | z.infer<typeof DataField> | z.infer<typeof ButtonField> | z.infer<typeof AlphaPrintButton> | z.infer<typeof HttpField> | z.infer<typeof SearchField> | z.infer<typeof LinkButtonField> | z.infer<typeof VerificationStatus> | z.infer<typeof QueryParamReaderField> | z.infer<typeof QrReaderField> | z.infer<typeof IdReaderField> | z.infer<typeof LoaderField>;
|
|
11559
12010
|
/** @knipignore */
|
|
11560
12011
|
/**
|
|
11561
12012
|
* This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
|
|
11562
12013
|
*/
|
|
11563
|
-
export type FieldConfigInput = z.input<typeof Address> | z.input<typeof TextField> | z.input<typeof TimeField> | z.input<typeof SelectDateRangeField> | z.input<typeof ButtonField> | z.input<typeof AlphaPrintButton> | z.input<typeof NumberField> | z.input<typeof TextAreaField> | z.input<typeof DateField> | z.input<typeof AgeField> | z.input<typeof DateRangeField> | z.input<typeof Paragraph> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof NameField> | z.input<typeof PhoneField> | z.input<typeof IdField> | 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 LocationInput> | z.input<typeof Facility> | z.input<typeof Office> | z.input<typeof SignatureField> | z.input<typeof EmailField> | z.input<typeof DataField> | z.input<typeof HttpField> | z.input<typeof SearchField> | z.input<typeof LinkButtonField> | z.input<typeof VerificationStatus> | z.input<typeof QueryParamReaderField> | z.input<typeof QrReaderField> | z.input<typeof IdReaderField> | z.input<typeof LoaderField>;
|
|
12014
|
+
export type FieldConfigInput = z.input<typeof Address> | z.input<typeof TextField> | z.input<typeof TimeField> | z.input<typeof SelectDateRangeField> | z.input<typeof ButtonField> | z.input<typeof AlphaPrintButton> | z.input<typeof NumberField> | z.input<typeof NumberWithUnitField> | z.input<typeof TextAreaField> | z.input<typeof DateField> | z.input<typeof AgeField> | z.input<typeof DateRangeField> | z.input<typeof Paragraph> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof NameField> | z.input<typeof PhoneField> | z.input<typeof IdField> | 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 LocationInput> | z.input<typeof Facility> | z.input<typeof Office> | z.input<typeof SignatureField> | z.input<typeof EmailField> | z.input<typeof DataField> | z.input<typeof HttpField> | z.input<typeof SearchField> | z.input<typeof LinkButtonField> | z.input<typeof VerificationStatus> | z.input<typeof QueryParamReaderField> | z.input<typeof QrReaderField> | z.input<typeof IdReaderField> | z.input<typeof LoaderField>;
|
|
11564
12015
|
export declare const FieldConfig: z.ZodType<FieldConfig, z.ZodTypeDef, FieldConfigInput>;
|
|
11565
12016
|
export type SelectField = z.infer<typeof Select>;
|
|
11566
12017
|
export type NameField = z.infer<typeof NameField>;
|
|
@@ -11570,6 +12021,7 @@ export type LocationField = z.infer<typeof LocationInput>;
|
|
|
11570
12021
|
export type RadioField = z.infer<typeof RadioGroup>;
|
|
11571
12022
|
export type AddressField = z.infer<typeof Address>;
|
|
11572
12023
|
export type NumberField = z.infer<typeof NumberField>;
|
|
12024
|
+
export type NumberWithUnitField = z.infer<typeof NumberWithUnitField>;
|
|
11573
12025
|
export type FieldProps<T extends FieldType> = Extract<FieldConfig, {
|
|
11574
12026
|
type: T;
|
|
11575
12027
|
}>;
|
|
@@ -11921,6 +12373,28 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
11921
12373
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
11922
12374
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
11923
12375
|
acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml", "application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.oasis.opendocument.text"]>, "many">>;
|
|
12376
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
12377
|
+
targetSize: z.ZodObject<{
|
|
12378
|
+
width: z.ZodNumber;
|
|
12379
|
+
height: z.ZodNumber;
|
|
12380
|
+
}, "strip", z.ZodTypeAny, {
|
|
12381
|
+
width: number;
|
|
12382
|
+
height: number;
|
|
12383
|
+
}, {
|
|
12384
|
+
width: number;
|
|
12385
|
+
height: number;
|
|
12386
|
+
}>;
|
|
12387
|
+
}, "strip", z.ZodTypeAny, {
|
|
12388
|
+
targetSize: {
|
|
12389
|
+
width: number;
|
|
12390
|
+
height: number;
|
|
12391
|
+
};
|
|
12392
|
+
}, {
|
|
12393
|
+
targetSize: {
|
|
12394
|
+
width: number;
|
|
12395
|
+
height: number;
|
|
12396
|
+
};
|
|
12397
|
+
}>>;
|
|
11924
12398
|
style: z.ZodOptional<z.ZodObject<{
|
|
11925
12399
|
width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
|
|
11926
12400
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11936,6 +12410,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
11936
12410
|
}, "strip", z.ZodTypeAny, {
|
|
11937
12411
|
maxFileSize: number;
|
|
11938
12412
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12413
|
+
maxImageSize?: {
|
|
12414
|
+
targetSize: {
|
|
12415
|
+
width: number;
|
|
12416
|
+
height: number;
|
|
12417
|
+
};
|
|
12418
|
+
} | undefined;
|
|
11939
12419
|
style?: {
|
|
11940
12420
|
width?: "full" | "auto" | undefined;
|
|
11941
12421
|
} | undefined;
|
|
@@ -11943,6 +12423,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
11943
12423
|
}, {
|
|
11944
12424
|
maxFileSize?: number | undefined;
|
|
11945
12425
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12426
|
+
maxImageSize?: {
|
|
12427
|
+
targetSize: {
|
|
12428
|
+
width: number;
|
|
12429
|
+
height: number;
|
|
12430
|
+
};
|
|
12431
|
+
} | undefined;
|
|
11946
12432
|
style?: {
|
|
11947
12433
|
width?: "full" | "auto" | undefined;
|
|
11948
12434
|
} | undefined;
|
|
@@ -11959,6 +12445,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
11959
12445
|
configuration: {
|
|
11960
12446
|
maxFileSize: number;
|
|
11961
12447
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12448
|
+
maxImageSize?: {
|
|
12449
|
+
targetSize: {
|
|
12450
|
+
width: number;
|
|
12451
|
+
height: number;
|
|
12452
|
+
};
|
|
12453
|
+
} | undefined;
|
|
11962
12454
|
style?: {
|
|
11963
12455
|
width?: "full" | "auto" | undefined;
|
|
11964
12456
|
} | undefined;
|
|
@@ -12075,6 +12567,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12075
12567
|
configuration?: {
|
|
12076
12568
|
maxFileSize?: number | undefined;
|
|
12077
12569
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12570
|
+
maxImageSize?: {
|
|
12571
|
+
targetSize: {
|
|
12572
|
+
width: number;
|
|
12573
|
+
height: number;
|
|
12574
|
+
};
|
|
12575
|
+
} | undefined;
|
|
12078
12576
|
style?: {
|
|
12079
12577
|
width?: "full" | "auto" | undefined;
|
|
12080
12578
|
} | undefined;
|
|
@@ -12215,13 +12713,47 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12215
12713
|
}>, "many">>;
|
|
12216
12714
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
12217
12715
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
12716
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
12717
|
+
targetSize: z.ZodObject<{
|
|
12718
|
+
width: z.ZodNumber;
|
|
12719
|
+
height: z.ZodNumber;
|
|
12720
|
+
}, "strip", z.ZodTypeAny, {
|
|
12721
|
+
width: number;
|
|
12722
|
+
height: number;
|
|
12723
|
+
}, {
|
|
12724
|
+
width: number;
|
|
12725
|
+
height: number;
|
|
12726
|
+
}>;
|
|
12727
|
+
}, "strip", z.ZodTypeAny, {
|
|
12728
|
+
targetSize: {
|
|
12729
|
+
width: number;
|
|
12730
|
+
height: number;
|
|
12731
|
+
};
|
|
12732
|
+
}, {
|
|
12733
|
+
targetSize: {
|
|
12734
|
+
width: number;
|
|
12735
|
+
height: number;
|
|
12736
|
+
};
|
|
12737
|
+
}>>;
|
|
12218
12738
|
acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml", "application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.oasis.opendocument.text"]>, "many">>;
|
|
12219
12739
|
}, "strip", z.ZodTypeAny, {
|
|
12220
12740
|
maxFileSize: number;
|
|
12221
12741
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12742
|
+
maxImageSize?: {
|
|
12743
|
+
targetSize: {
|
|
12744
|
+
width: number;
|
|
12745
|
+
height: number;
|
|
12746
|
+
};
|
|
12747
|
+
} | undefined;
|
|
12222
12748
|
}, {
|
|
12223
12749
|
maxFileSize?: number | undefined;
|
|
12224
12750
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12751
|
+
maxImageSize?: {
|
|
12752
|
+
targetSize: {
|
|
12753
|
+
width: number;
|
|
12754
|
+
height: number;
|
|
12755
|
+
};
|
|
12756
|
+
} | undefined;
|
|
12225
12757
|
}>>;
|
|
12226
12758
|
}>, "strip", z.ZodTypeAny, {
|
|
12227
12759
|
type: "FILE_WITH_OPTIONS";
|
|
@@ -12234,6 +12766,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12234
12766
|
configuration: {
|
|
12235
12767
|
maxFileSize: number;
|
|
12236
12768
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12769
|
+
maxImageSize?: {
|
|
12770
|
+
targetSize: {
|
|
12771
|
+
width: number;
|
|
12772
|
+
height: number;
|
|
12773
|
+
};
|
|
12774
|
+
} | undefined;
|
|
12237
12775
|
};
|
|
12238
12776
|
parent?: {
|
|
12239
12777
|
$$field: string;
|
|
@@ -12356,6 +12894,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12356
12894
|
configuration?: {
|
|
12357
12895
|
maxFileSize?: number | undefined;
|
|
12358
12896
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text")[] | undefined;
|
|
12897
|
+
maxImageSize?: {
|
|
12898
|
+
targetSize: {
|
|
12899
|
+
width: number;
|
|
12900
|
+
height: number;
|
|
12901
|
+
};
|
|
12902
|
+
} | undefined;
|
|
12359
12903
|
} | undefined;
|
|
12360
12904
|
}>]>;
|
|
12361
12905
|
export type AnyFileField = z.infer<typeof AnyFileField>;
|