@opencrvs/toolkit 1.9.5-rc.4c04dcd → 1.9.5-rc.5b99334
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 +24 -26
- package/dist/commons/events/CountryConfigQueryInput.d.ts +350 -350
- package/dist/commons/events/FieldConfig.d.ts +214 -108
- package/dist/commons/events/FieldType.d.ts +1 -1
- package/dist/commons/events/TemplateConfig.d.ts +3 -15
- package/dist/commons/events/WorkqueueConfig.d.ts +525 -525
- package/dist/conditionals/index.js +2 -7
- package/dist/events/index.js +13 -13
- package/dist/notification/index.js +12 -12
- package/package.json +1 -1
|
@@ -537,16 +537,7 @@ 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.
|
|
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
|
-
}>]>>;
|
|
540
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
550
541
|
configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
551
542
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
552
543
|
type: z.ZodOptional<z.ZodEnum<["text", "password"]>>;
|
|
@@ -620,10 +611,7 @@ export declare const TextField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
620
611
|
hideLabel?: boolean | undefined;
|
|
621
612
|
uncorrectable?: boolean | undefined;
|
|
622
613
|
analytics?: boolean | undefined;
|
|
623
|
-
defaultValue?: string |
|
|
624
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
625
|
-
$location?: string | undefined;
|
|
626
|
-
} | undefined;
|
|
614
|
+
defaultValue?: string | undefined;
|
|
627
615
|
configuration?: {
|
|
628
616
|
type?: "text" | "password" | undefined;
|
|
629
617
|
maxLength?: number | undefined;
|
|
@@ -691,10 +679,7 @@ export declare const TextField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
691
679
|
hideLabel?: boolean | undefined;
|
|
692
680
|
uncorrectable?: boolean | undefined;
|
|
693
681
|
analytics?: boolean | undefined;
|
|
694
|
-
defaultValue?: string |
|
|
695
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
696
|
-
$location?: string | undefined;
|
|
697
|
-
} | undefined;
|
|
682
|
+
defaultValue?: string | undefined;
|
|
698
683
|
configuration?: {
|
|
699
684
|
type?: "text" | "password" | undefined;
|
|
700
685
|
maxLength?: number | undefined;
|
|
@@ -3218,6 +3203,28 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3218
3203
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
3219
3204
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
3220
3205
|
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">>;
|
|
3206
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
3207
|
+
targetSize: z.ZodObject<{
|
|
3208
|
+
width: z.ZodNumber;
|
|
3209
|
+
height: z.ZodNumber;
|
|
3210
|
+
}, "strip", z.ZodTypeAny, {
|
|
3211
|
+
width: number;
|
|
3212
|
+
height: number;
|
|
3213
|
+
}, {
|
|
3214
|
+
width: number;
|
|
3215
|
+
height: number;
|
|
3216
|
+
}>;
|
|
3217
|
+
}, "strip", z.ZodTypeAny, {
|
|
3218
|
+
targetSize: {
|
|
3219
|
+
width: number;
|
|
3220
|
+
height: number;
|
|
3221
|
+
};
|
|
3222
|
+
}, {
|
|
3223
|
+
targetSize: {
|
|
3224
|
+
width: number;
|
|
3225
|
+
height: number;
|
|
3226
|
+
};
|
|
3227
|
+
}>>;
|
|
3221
3228
|
style: z.ZodOptional<z.ZodObject<{
|
|
3222
3229
|
width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
|
|
3223
3230
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3233,6 +3240,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3233
3240
|
}, "strip", z.ZodTypeAny, {
|
|
3234
3241
|
maxFileSize: number;
|
|
3235
3242
|
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;
|
|
3243
|
+
maxImageSize?: {
|
|
3244
|
+
targetSize: {
|
|
3245
|
+
width: number;
|
|
3246
|
+
height: number;
|
|
3247
|
+
};
|
|
3248
|
+
} | undefined;
|
|
3236
3249
|
style?: {
|
|
3237
3250
|
width?: "full" | "auto" | undefined;
|
|
3238
3251
|
} | undefined;
|
|
@@ -3240,6 +3253,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3240
3253
|
}, {
|
|
3241
3254
|
maxFileSize?: number | undefined;
|
|
3242
3255
|
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;
|
|
3256
|
+
maxImageSize?: {
|
|
3257
|
+
targetSize: {
|
|
3258
|
+
width: number;
|
|
3259
|
+
height: number;
|
|
3260
|
+
};
|
|
3261
|
+
} | undefined;
|
|
3243
3262
|
style?: {
|
|
3244
3263
|
width?: "full" | "auto" | undefined;
|
|
3245
3264
|
} | undefined;
|
|
@@ -3256,6 +3275,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3256
3275
|
configuration: {
|
|
3257
3276
|
maxFileSize: number;
|
|
3258
3277
|
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;
|
|
3278
|
+
maxImageSize?: {
|
|
3279
|
+
targetSize: {
|
|
3280
|
+
width: number;
|
|
3281
|
+
height: number;
|
|
3282
|
+
};
|
|
3283
|
+
} | undefined;
|
|
3259
3284
|
style?: {
|
|
3260
3285
|
width?: "full" | "auto" | undefined;
|
|
3261
3286
|
} | undefined;
|
|
@@ -3372,6 +3397,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3372
3397
|
configuration?: {
|
|
3373
3398
|
maxFileSize?: number | undefined;
|
|
3374
3399
|
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;
|
|
3400
|
+
maxImageSize?: {
|
|
3401
|
+
targetSize: {
|
|
3402
|
+
width: number;
|
|
3403
|
+
height: number;
|
|
3404
|
+
};
|
|
3405
|
+
} | undefined;
|
|
3375
3406
|
style?: {
|
|
3376
3407
|
width?: "full" | "auto" | undefined;
|
|
3377
3408
|
} | undefined;
|
|
@@ -4677,62 +4708,17 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4677
4708
|
}, {
|
|
4678
4709
|
type: z.ZodLiteral<"NAME">;
|
|
4679
4710
|
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
4680
|
-
firstname: z.ZodOptional<z.
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
}, "strip", z.ZodTypeAny, {
|
|
4684
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
4685
|
-
$location?: string | undefined;
|
|
4686
|
-
}, {
|
|
4687
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
4688
|
-
$location?: string | undefined;
|
|
4689
|
-
}>, z.ZodString]>>;
|
|
4690
|
-
middlename: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
4691
|
-
$userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
|
|
4692
|
-
$location: z.ZodOptional<z.ZodString>;
|
|
4693
|
-
}, "strip", z.ZodTypeAny, {
|
|
4694
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
4695
|
-
$location?: string | undefined;
|
|
4696
|
-
}, {
|
|
4697
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
4698
|
-
$location?: string | undefined;
|
|
4699
|
-
}>, z.ZodString]>>;
|
|
4700
|
-
surname: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
4701
|
-
$userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
|
|
4702
|
-
$location: z.ZodOptional<z.ZodString>;
|
|
4703
|
-
}, "strip", z.ZodTypeAny, {
|
|
4704
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
4705
|
-
$location?: string | undefined;
|
|
4706
|
-
}, {
|
|
4707
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
4708
|
-
$location?: string | undefined;
|
|
4709
|
-
}>, z.ZodString]>>;
|
|
4711
|
+
firstname: z.ZodOptional<z.ZodString>;
|
|
4712
|
+
middlename: z.ZodOptional<z.ZodString>;
|
|
4713
|
+
surname: z.ZodOptional<z.ZodString>;
|
|
4710
4714
|
}, "strip", z.ZodTypeAny, {
|
|
4711
|
-
firstname?: string |
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
} | undefined;
|
|
4715
|
-
surname?: string | {
|
|
4716
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
4717
|
-
$location?: string | undefined;
|
|
4718
|
-
} | undefined;
|
|
4719
|
-
middlename?: string | {
|
|
4720
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
4721
|
-
$location?: string | undefined;
|
|
4722
|
-
} | undefined;
|
|
4715
|
+
firstname?: string | undefined;
|
|
4716
|
+
surname?: string | undefined;
|
|
4717
|
+
middlename?: string | undefined;
|
|
4723
4718
|
}, {
|
|
4724
|
-
firstname?: string |
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
} | undefined;
|
|
4728
|
-
surname?: string | {
|
|
4729
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
4730
|
-
$location?: string | undefined;
|
|
4731
|
-
} | undefined;
|
|
4732
|
-
middlename?: string | {
|
|
4733
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
4734
|
-
$location?: string | undefined;
|
|
4735
|
-
} | undefined;
|
|
4719
|
+
firstname?: string | undefined;
|
|
4720
|
+
surname?: string | undefined;
|
|
4721
|
+
middlename?: string | undefined;
|
|
4736
4722
|
}>>;
|
|
4737
4723
|
configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
4738
4724
|
name: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
@@ -5056,18 +5042,9 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5056
5042
|
uncorrectable?: boolean | undefined;
|
|
5057
5043
|
analytics?: boolean | undefined;
|
|
5058
5044
|
defaultValue?: {
|
|
5059
|
-
firstname?: string |
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
} | undefined;
|
|
5063
|
-
surname?: string | {
|
|
5064
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5065
|
-
$location?: string | undefined;
|
|
5066
|
-
} | undefined;
|
|
5067
|
-
middlename?: string | {
|
|
5068
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5069
|
-
$location?: string | undefined;
|
|
5070
|
-
} | undefined;
|
|
5045
|
+
firstname?: string | undefined;
|
|
5046
|
+
surname?: string | undefined;
|
|
5047
|
+
middlename?: string | undefined;
|
|
5071
5048
|
} | undefined;
|
|
5072
5049
|
configuration?: {
|
|
5073
5050
|
name?: {
|
|
@@ -5157,18 +5134,9 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5157
5134
|
uncorrectable?: boolean | undefined;
|
|
5158
5135
|
analytics?: boolean | undefined;
|
|
5159
5136
|
defaultValue?: {
|
|
5160
|
-
firstname?: string |
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
} | undefined;
|
|
5164
|
-
surname?: string | {
|
|
5165
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5166
|
-
$location?: string | undefined;
|
|
5167
|
-
} | undefined;
|
|
5168
|
-
middlename?: string | {
|
|
5169
|
-
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5170
|
-
$location?: string | undefined;
|
|
5171
|
-
} | undefined;
|
|
5137
|
+
firstname?: string | undefined;
|
|
5138
|
+
surname?: string | undefined;
|
|
5139
|
+
middlename?: string | undefined;
|
|
5172
5140
|
} | undefined;
|
|
5173
5141
|
configuration?: {
|
|
5174
5142
|
name?: {
|
|
@@ -6636,13 +6604,47 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6636
6604
|
}>, "many">>;
|
|
6637
6605
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
6638
6606
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
6607
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
6608
|
+
targetSize: z.ZodObject<{
|
|
6609
|
+
width: z.ZodNumber;
|
|
6610
|
+
height: z.ZodNumber;
|
|
6611
|
+
}, "strip", z.ZodTypeAny, {
|
|
6612
|
+
width: number;
|
|
6613
|
+
height: number;
|
|
6614
|
+
}, {
|
|
6615
|
+
width: number;
|
|
6616
|
+
height: number;
|
|
6617
|
+
}>;
|
|
6618
|
+
}, "strip", z.ZodTypeAny, {
|
|
6619
|
+
targetSize: {
|
|
6620
|
+
width: number;
|
|
6621
|
+
height: number;
|
|
6622
|
+
};
|
|
6623
|
+
}, {
|
|
6624
|
+
targetSize: {
|
|
6625
|
+
width: number;
|
|
6626
|
+
height: number;
|
|
6627
|
+
};
|
|
6628
|
+
}>>;
|
|
6639
6629
|
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">>;
|
|
6640
6630
|
}, "strip", z.ZodTypeAny, {
|
|
6641
6631
|
maxFileSize: number;
|
|
6642
6632
|
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;
|
|
6633
|
+
maxImageSize?: {
|
|
6634
|
+
targetSize: {
|
|
6635
|
+
width: number;
|
|
6636
|
+
height: number;
|
|
6637
|
+
};
|
|
6638
|
+
} | undefined;
|
|
6643
6639
|
}, {
|
|
6644
6640
|
maxFileSize?: number | undefined;
|
|
6645
6641
|
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;
|
|
6642
|
+
maxImageSize?: {
|
|
6643
|
+
targetSize: {
|
|
6644
|
+
width: number;
|
|
6645
|
+
height: number;
|
|
6646
|
+
};
|
|
6647
|
+
} | undefined;
|
|
6646
6648
|
}>>;
|
|
6647
6649
|
}>, "strip", z.ZodTypeAny, {
|
|
6648
6650
|
type: "FILE_WITH_OPTIONS";
|
|
@@ -6655,6 +6657,12 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6655
6657
|
configuration: {
|
|
6656
6658
|
maxFileSize: number;
|
|
6657
6659
|
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;
|
|
6660
|
+
maxImageSize?: {
|
|
6661
|
+
targetSize: {
|
|
6662
|
+
width: number;
|
|
6663
|
+
height: number;
|
|
6664
|
+
};
|
|
6665
|
+
} | undefined;
|
|
6658
6666
|
};
|
|
6659
6667
|
parent?: {
|
|
6660
6668
|
$$field: string;
|
|
@@ -6777,6 +6785,12 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6777
6785
|
configuration?: {
|
|
6778
6786
|
maxFileSize?: number | undefined;
|
|
6779
6787
|
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;
|
|
6788
|
+
maxImageSize?: {
|
|
6789
|
+
targetSize: {
|
|
6790
|
+
width: number;
|
|
6791
|
+
height: number;
|
|
6792
|
+
};
|
|
6793
|
+
} | undefined;
|
|
6780
6794
|
} | undefined;
|
|
6781
6795
|
}>;
|
|
6782
6796
|
export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
|
|
@@ -7192,13 +7206,13 @@ export declare const DefaultAddressFieldValue: z.ZodObject<z.objectUtil.extendSh
|
|
|
7192
7206
|
administrativeArea: z.ZodString;
|
|
7193
7207
|
}>, {
|
|
7194
7208
|
administrativeArea: z.ZodOptional<z.ZodUnion<[z.ZodBranded<z.ZodString, "UUID">, z.ZodObject<{
|
|
7195
|
-
$userField: z.ZodEnum<["id", "name", "role", "
|
|
7209
|
+
$userField: z.ZodEnum<["id", "name", "role", "signature", "avatar", "primaryOfficeId"]>;
|
|
7196
7210
|
$location: z.ZodOptional<z.ZodString>;
|
|
7197
7211
|
}, "strip", z.ZodTypeAny, {
|
|
7198
|
-
$userField: "
|
|
7212
|
+
$userField: "signature" | "id" | "name" | "role" | "avatar" | "primaryOfficeId";
|
|
7199
7213
|
$location?: string | undefined;
|
|
7200
7214
|
}, {
|
|
7201
|
-
$userField: "
|
|
7215
|
+
$userField: "signature" | "id" | "name" | "role" | "avatar" | "primaryOfficeId";
|
|
7202
7216
|
$location?: string | undefined;
|
|
7203
7217
|
}>]>>;
|
|
7204
7218
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -7206,7 +7220,7 @@ export declare const DefaultAddressFieldValue: z.ZodObject<z.objectUtil.extendSh
|
|
|
7206
7220
|
addressType: "DOMESTIC";
|
|
7207
7221
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7208
7222
|
administrativeArea?: (string & z.BRAND<"UUID">) | {
|
|
7209
|
-
$userField: "
|
|
7223
|
+
$userField: "signature" | "id" | "name" | "role" | "avatar" | "primaryOfficeId";
|
|
7210
7224
|
$location?: string | undefined;
|
|
7211
7225
|
} | undefined;
|
|
7212
7226
|
}, {
|
|
@@ -7214,7 +7228,7 @@ export declare const DefaultAddressFieldValue: z.ZodObject<z.objectUtil.extendSh
|
|
|
7214
7228
|
addressType: "DOMESTIC";
|
|
7215
7229
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7216
7230
|
administrativeArea?: string | {
|
|
7217
|
-
$userField: "
|
|
7231
|
+
$userField: "signature" | "id" | "name" | "role" | "avatar" | "primaryOfficeId";
|
|
7218
7232
|
$location?: string | undefined;
|
|
7219
7233
|
} | undefined;
|
|
7220
7234
|
}>;
|
|
@@ -7472,13 +7486,13 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7472
7486
|
administrativeArea: z.ZodString;
|
|
7473
7487
|
}>, {
|
|
7474
7488
|
administrativeArea: z.ZodOptional<z.ZodUnion<[z.ZodBranded<z.ZodString, "UUID">, z.ZodObject<{
|
|
7475
|
-
$userField: z.ZodEnum<["id", "name", "role", "
|
|
7489
|
+
$userField: z.ZodEnum<["id", "name", "role", "signature", "avatar", "primaryOfficeId"]>;
|
|
7476
7490
|
$location: z.ZodOptional<z.ZodString>;
|
|
7477
7491
|
}, "strip", z.ZodTypeAny, {
|
|
7478
|
-
$userField: "
|
|
7492
|
+
$userField: "signature" | "id" | "name" | "role" | "avatar" | "primaryOfficeId";
|
|
7479
7493
|
$location?: string | undefined;
|
|
7480
7494
|
}, {
|
|
7481
|
-
$userField: "
|
|
7495
|
+
$userField: "signature" | "id" | "name" | "role" | "avatar" | "primaryOfficeId";
|
|
7482
7496
|
$location?: string | undefined;
|
|
7483
7497
|
}>]>>;
|
|
7484
7498
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -7486,7 +7500,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7486
7500
|
addressType: "DOMESTIC";
|
|
7487
7501
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7488
7502
|
administrativeArea?: (string & z.BRAND<"UUID">) | {
|
|
7489
|
-
$userField: "
|
|
7503
|
+
$userField: "signature" | "id" | "name" | "role" | "avatar" | "primaryOfficeId";
|
|
7490
7504
|
$location?: string | undefined;
|
|
7491
7505
|
} | undefined;
|
|
7492
7506
|
}, {
|
|
@@ -7494,7 +7508,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7494
7508
|
addressType: "DOMESTIC";
|
|
7495
7509
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7496
7510
|
administrativeArea?: string | {
|
|
7497
|
-
$userField: "
|
|
7511
|
+
$userField: "signature" | "id" | "name" | "role" | "avatar" | "primaryOfficeId";
|
|
7498
7512
|
$location?: string | undefined;
|
|
7499
7513
|
} | undefined;
|
|
7500
7514
|
}>>;
|
|
@@ -7544,7 +7558,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7544
7558
|
addressType: "DOMESTIC";
|
|
7545
7559
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7546
7560
|
administrativeArea?: (string & z.BRAND<"UUID">) | {
|
|
7547
|
-
$userField: "
|
|
7561
|
+
$userField: "signature" | "id" | "name" | "role" | "avatar" | "primaryOfficeId";
|
|
7548
7562
|
$location?: string | undefined;
|
|
7549
7563
|
} | undefined;
|
|
7550
7564
|
} | undefined;
|
|
@@ -7641,7 +7655,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7641
7655
|
addressType: "DOMESTIC";
|
|
7642
7656
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7643
7657
|
administrativeArea?: string | {
|
|
7644
|
-
$userField: "
|
|
7658
|
+
$userField: "signature" | "id" | "name" | "role" | "avatar" | "primaryOfficeId";
|
|
7645
7659
|
$location?: string | undefined;
|
|
7646
7660
|
} | undefined;
|
|
7647
7661
|
} | undefined;
|
|
@@ -11999,6 +12013,28 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
11999
12013
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
12000
12014
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
12001
12015
|
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">>;
|
|
12016
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
12017
|
+
targetSize: z.ZodObject<{
|
|
12018
|
+
width: z.ZodNumber;
|
|
12019
|
+
height: z.ZodNumber;
|
|
12020
|
+
}, "strip", z.ZodTypeAny, {
|
|
12021
|
+
width: number;
|
|
12022
|
+
height: number;
|
|
12023
|
+
}, {
|
|
12024
|
+
width: number;
|
|
12025
|
+
height: number;
|
|
12026
|
+
}>;
|
|
12027
|
+
}, "strip", z.ZodTypeAny, {
|
|
12028
|
+
targetSize: {
|
|
12029
|
+
width: number;
|
|
12030
|
+
height: number;
|
|
12031
|
+
};
|
|
12032
|
+
}, {
|
|
12033
|
+
targetSize: {
|
|
12034
|
+
width: number;
|
|
12035
|
+
height: number;
|
|
12036
|
+
};
|
|
12037
|
+
}>>;
|
|
12002
12038
|
style: z.ZodOptional<z.ZodObject<{
|
|
12003
12039
|
width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
|
|
12004
12040
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -12014,6 +12050,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12014
12050
|
}, "strip", z.ZodTypeAny, {
|
|
12015
12051
|
maxFileSize: number;
|
|
12016
12052
|
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;
|
|
12053
|
+
maxImageSize?: {
|
|
12054
|
+
targetSize: {
|
|
12055
|
+
width: number;
|
|
12056
|
+
height: number;
|
|
12057
|
+
};
|
|
12058
|
+
} | undefined;
|
|
12017
12059
|
style?: {
|
|
12018
12060
|
width?: "full" | "auto" | undefined;
|
|
12019
12061
|
} | undefined;
|
|
@@ -12021,6 +12063,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12021
12063
|
}, {
|
|
12022
12064
|
maxFileSize?: number | undefined;
|
|
12023
12065
|
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;
|
|
12066
|
+
maxImageSize?: {
|
|
12067
|
+
targetSize: {
|
|
12068
|
+
width: number;
|
|
12069
|
+
height: number;
|
|
12070
|
+
};
|
|
12071
|
+
} | undefined;
|
|
12024
12072
|
style?: {
|
|
12025
12073
|
width?: "full" | "auto" | undefined;
|
|
12026
12074
|
} | undefined;
|
|
@@ -12037,6 +12085,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12037
12085
|
configuration: {
|
|
12038
12086
|
maxFileSize: number;
|
|
12039
12087
|
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;
|
|
12088
|
+
maxImageSize?: {
|
|
12089
|
+
targetSize: {
|
|
12090
|
+
width: number;
|
|
12091
|
+
height: number;
|
|
12092
|
+
};
|
|
12093
|
+
} | undefined;
|
|
12040
12094
|
style?: {
|
|
12041
12095
|
width?: "full" | "auto" | undefined;
|
|
12042
12096
|
} | undefined;
|
|
@@ -12153,6 +12207,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12153
12207
|
configuration?: {
|
|
12154
12208
|
maxFileSize?: number | undefined;
|
|
12155
12209
|
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;
|
|
12210
|
+
maxImageSize?: {
|
|
12211
|
+
targetSize: {
|
|
12212
|
+
width: number;
|
|
12213
|
+
height: number;
|
|
12214
|
+
};
|
|
12215
|
+
} | undefined;
|
|
12156
12216
|
style?: {
|
|
12157
12217
|
width?: "full" | "auto" | undefined;
|
|
12158
12218
|
} | undefined;
|
|
@@ -12293,13 +12353,47 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12293
12353
|
}>, "many">>;
|
|
12294
12354
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
12295
12355
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
12356
|
+
maxImageSize: z.ZodOptional<z.ZodObject<{
|
|
12357
|
+
targetSize: z.ZodObject<{
|
|
12358
|
+
width: z.ZodNumber;
|
|
12359
|
+
height: z.ZodNumber;
|
|
12360
|
+
}, "strip", z.ZodTypeAny, {
|
|
12361
|
+
width: number;
|
|
12362
|
+
height: number;
|
|
12363
|
+
}, {
|
|
12364
|
+
width: number;
|
|
12365
|
+
height: number;
|
|
12366
|
+
}>;
|
|
12367
|
+
}, "strip", z.ZodTypeAny, {
|
|
12368
|
+
targetSize: {
|
|
12369
|
+
width: number;
|
|
12370
|
+
height: number;
|
|
12371
|
+
};
|
|
12372
|
+
}, {
|
|
12373
|
+
targetSize: {
|
|
12374
|
+
width: number;
|
|
12375
|
+
height: number;
|
|
12376
|
+
};
|
|
12377
|
+
}>>;
|
|
12296
12378
|
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">>;
|
|
12297
12379
|
}, "strip", z.ZodTypeAny, {
|
|
12298
12380
|
maxFileSize: number;
|
|
12299
12381
|
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;
|
|
12382
|
+
maxImageSize?: {
|
|
12383
|
+
targetSize: {
|
|
12384
|
+
width: number;
|
|
12385
|
+
height: number;
|
|
12386
|
+
};
|
|
12387
|
+
} | undefined;
|
|
12300
12388
|
}, {
|
|
12301
12389
|
maxFileSize?: number | undefined;
|
|
12302
12390
|
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;
|
|
12391
|
+
maxImageSize?: {
|
|
12392
|
+
targetSize: {
|
|
12393
|
+
width: number;
|
|
12394
|
+
height: number;
|
|
12395
|
+
};
|
|
12396
|
+
} | undefined;
|
|
12303
12397
|
}>>;
|
|
12304
12398
|
}>, "strip", z.ZodTypeAny, {
|
|
12305
12399
|
type: "FILE_WITH_OPTIONS";
|
|
@@ -12312,6 +12406,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12312
12406
|
configuration: {
|
|
12313
12407
|
maxFileSize: number;
|
|
12314
12408
|
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;
|
|
12409
|
+
maxImageSize?: {
|
|
12410
|
+
targetSize: {
|
|
12411
|
+
width: number;
|
|
12412
|
+
height: number;
|
|
12413
|
+
};
|
|
12414
|
+
} | undefined;
|
|
12315
12415
|
};
|
|
12316
12416
|
parent?: {
|
|
12317
12417
|
$$field: string;
|
|
@@ -12434,6 +12534,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12434
12534
|
configuration?: {
|
|
12435
12535
|
maxFileSize?: number | undefined;
|
|
12436
12536
|
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;
|
|
12537
|
+
maxImageSize?: {
|
|
12538
|
+
targetSize: {
|
|
12539
|
+
width: number;
|
|
12540
|
+
height: number;
|
|
12541
|
+
};
|
|
12542
|
+
} | undefined;
|
|
12437
12543
|
} | undefined;
|
|
12438
12544
|
}>]>;
|
|
12439
12545
|
export type AnyFileField = z.infer<typeof AnyFileField>;
|
|
@@ -49,6 +49,6 @@ export type FieldType = (typeof fieldTypes)[number];
|
|
|
49
49
|
/**
|
|
50
50
|
* Composite field types are field types that consist of multiple field values.
|
|
51
51
|
*/
|
|
52
|
-
export declare const compositeFieldTypes: ("
|
|
52
|
+
export declare const compositeFieldTypes: ("ADDRESS" | "DATE_RANGE" | "FILE" | "FILE_WITH_OPTIONS" | "DATA" | "ID_READER")[];
|
|
53
53
|
export declare const FieldTypesToHideInReview: ("PARAGRAPH" | "PAGE_HEADER" | "BULLET_LIST" | "DIVIDER" | "DATA" | "HTTP" | "QUERY_PARAM_READER" | "ID_READER" | "LOADER")[];
|
|
54
54
|
//# sourceMappingURL=FieldType.d.ts.map
|
|
@@ -2,26 +2,14 @@
|
|
|
2
2
|
* TemplateConfig defines configuration rules for system-based variables (e.g. $user.province).
|
|
3
3
|
* They are currently used for providing default values in FieldConfig.
|
|
4
4
|
*/
|
|
5
|
-
import { UUID } from '../uuid';
|
|
6
5
|
import { FieldValue } from './FieldValue';
|
|
7
6
|
/**
|
|
8
7
|
* Available system variables for configuration.
|
|
9
8
|
*/
|
|
10
9
|
export type SystemVariables = {
|
|
11
|
-
user: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
district?: string;
|
|
15
|
-
name?: string;
|
|
16
|
-
role?: string;
|
|
17
|
-
firstname?: string;
|
|
18
|
-
middlename?: string;
|
|
19
|
-
surname?: string;
|
|
20
|
-
primaryOfficeId?: UUID;
|
|
21
|
-
fullHonorificName?: string;
|
|
22
|
-
device?: string;
|
|
23
|
-
avatar?: string;
|
|
24
|
-
signature?: string;
|
|
10
|
+
$user: {
|
|
11
|
+
province: string;
|
|
12
|
+
district: string;
|
|
25
13
|
};
|
|
26
14
|
$window: {
|
|
27
15
|
location: {
|