@opencrvs/toolkit 1.9.5-rc.5b99334 → 1.9.5-rc.5ccf91d
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 +26 -24
- package/dist/commons/events/CountryConfigQueryInput.d.ts +350 -350
- package/dist/commons/events/FieldConfig.d.ts +108 -214
- package/dist/commons/events/FieldType.d.ts +1 -1
- package/dist/commons/events/TemplateConfig.d.ts +15 -3
- package/dist/commons/events/WorkqueueConfig.d.ts +525 -525
- package/dist/conditionals/index.js +7 -2
- package/dist/events/index.js +13 -13
- package/dist/notification/index.js +12 -12
- 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,28 +3218,6 @@ 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">>;
|
|
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
|
-
}>>;
|
|
3228
3221
|
style: z.ZodOptional<z.ZodObject<{
|
|
3229
3222
|
width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
|
|
3230
3223
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3240,12 +3233,6 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3240
3233
|
}, "strip", z.ZodTypeAny, {
|
|
3241
3234
|
maxFileSize: number;
|
|
3242
3235
|
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;
|
|
3249
3236
|
style?: {
|
|
3250
3237
|
width?: "full" | "auto" | undefined;
|
|
3251
3238
|
} | undefined;
|
|
@@ -3253,12 +3240,6 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3253
3240
|
}, {
|
|
3254
3241
|
maxFileSize?: number | undefined;
|
|
3255
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;
|
|
3256
|
-
maxImageSize?: {
|
|
3257
|
-
targetSize: {
|
|
3258
|
-
width: number;
|
|
3259
|
-
height: number;
|
|
3260
|
-
};
|
|
3261
|
-
} | undefined;
|
|
3262
3243
|
style?: {
|
|
3263
3244
|
width?: "full" | "auto" | undefined;
|
|
3264
3245
|
} | undefined;
|
|
@@ -3275,12 +3256,6 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3275
3256
|
configuration: {
|
|
3276
3257
|
maxFileSize: number;
|
|
3277
3258
|
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;
|
|
3284
3259
|
style?: {
|
|
3285
3260
|
width?: "full" | "auto" | undefined;
|
|
3286
3261
|
} | undefined;
|
|
@@ -3397,12 +3372,6 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3397
3372
|
configuration?: {
|
|
3398
3373
|
maxFileSize?: number | undefined;
|
|
3399
3374
|
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;
|
|
3406
3375
|
style?: {
|
|
3407
3376
|
width?: "full" | "auto" | undefined;
|
|
3408
3377
|
} | undefined;
|
|
@@ -4708,17 +4677,62 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4708
4677
|
}, {
|
|
4709
4678
|
type: z.ZodLiteral<"NAME">;
|
|
4710
4679
|
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
4711
|
-
firstname: z.ZodOptional<z.
|
|
4712
|
-
|
|
4713
|
-
|
|
4680
|
+
firstname: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
4681
|
+
$userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
|
|
4682
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
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]>>;
|
|
4714
4710
|
}, "strip", z.ZodTypeAny, {
|
|
4715
|
-
firstname?: string |
|
|
4716
|
-
|
|
4717
|
-
|
|
4711
|
+
firstname?: string | {
|
|
4712
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
4713
|
+
$location?: string | undefined;
|
|
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;
|
|
4718
4723
|
}, {
|
|
4719
|
-
firstname?: string |
|
|
4720
|
-
|
|
4721
|
-
|
|
4724
|
+
firstname?: string | {
|
|
4725
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
4726
|
+
$location?: string | undefined;
|
|
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;
|
|
4722
4736
|
}>>;
|
|
4723
4737
|
configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
4724
4738
|
name: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
@@ -5042,9 +5056,18 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5042
5056
|
uncorrectable?: boolean | undefined;
|
|
5043
5057
|
analytics?: boolean | undefined;
|
|
5044
5058
|
defaultValue?: {
|
|
5045
|
-
firstname?: string |
|
|
5046
|
-
|
|
5047
|
-
|
|
5059
|
+
firstname?: string | {
|
|
5060
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5061
|
+
$location?: string | undefined;
|
|
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;
|
|
5048
5071
|
} | undefined;
|
|
5049
5072
|
configuration?: {
|
|
5050
5073
|
name?: {
|
|
@@ -5134,9 +5157,18 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5134
5157
|
uncorrectable?: boolean | undefined;
|
|
5135
5158
|
analytics?: boolean | undefined;
|
|
5136
5159
|
defaultValue?: {
|
|
5137
|
-
firstname?: string |
|
|
5138
|
-
|
|
5139
|
-
|
|
5160
|
+
firstname?: string | {
|
|
5161
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
5162
|
+
$location?: string | undefined;
|
|
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;
|
|
5140
5172
|
} | undefined;
|
|
5141
5173
|
configuration?: {
|
|
5142
5174
|
name?: {
|
|
@@ -6604,47 +6636,13 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6604
6636
|
}>, "many">>;
|
|
6605
6637
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
6606
6638
|
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
|
-
}>>;
|
|
6629
6639
|
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">>;
|
|
6630
6640
|
}, "strip", z.ZodTypeAny, {
|
|
6631
6641
|
maxFileSize: number;
|
|
6632
6642
|
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;
|
|
6639
6643
|
}, {
|
|
6640
6644
|
maxFileSize?: number | undefined;
|
|
6641
6645
|
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;
|
|
6648
6646
|
}>>;
|
|
6649
6647
|
}>, "strip", z.ZodTypeAny, {
|
|
6650
6648
|
type: "FILE_WITH_OPTIONS";
|
|
@@ -6657,12 +6655,6 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6657
6655
|
configuration: {
|
|
6658
6656
|
maxFileSize: number;
|
|
6659
6657
|
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;
|
|
6666
6658
|
};
|
|
6667
6659
|
parent?: {
|
|
6668
6660
|
$$field: string;
|
|
@@ -6785,12 +6777,6 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6785
6777
|
configuration?: {
|
|
6786
6778
|
maxFileSize?: number | undefined;
|
|
6787
6779
|
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;
|
|
6794
6780
|
} | undefined;
|
|
6795
6781
|
}>;
|
|
6796
6782
|
export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
|
|
@@ -7206,13 +7192,13 @@ export declare const DefaultAddressFieldValue: z.ZodObject<z.objectUtil.extendSh
|
|
|
7206
7192
|
administrativeArea: z.ZodString;
|
|
7207
7193
|
}>, {
|
|
7208
7194
|
administrativeArea: z.ZodOptional<z.ZodUnion<[z.ZodBranded<z.ZodString, "UUID">, z.ZodObject<{
|
|
7209
|
-
$userField: z.ZodEnum<["id", "name", "role", "
|
|
7195
|
+
$userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
|
|
7210
7196
|
$location: z.ZodOptional<z.ZodString>;
|
|
7211
7197
|
}, "strip", z.ZodTypeAny, {
|
|
7212
|
-
$userField: "
|
|
7198
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7213
7199
|
$location?: string | undefined;
|
|
7214
7200
|
}, {
|
|
7215
|
-
$userField: "
|
|
7201
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7216
7202
|
$location?: string | undefined;
|
|
7217
7203
|
}>]>>;
|
|
7218
7204
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -7220,7 +7206,7 @@ export declare const DefaultAddressFieldValue: z.ZodObject<z.objectUtil.extendSh
|
|
|
7220
7206
|
addressType: "DOMESTIC";
|
|
7221
7207
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7222
7208
|
administrativeArea?: (string & z.BRAND<"UUID">) | {
|
|
7223
|
-
$userField: "
|
|
7209
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7224
7210
|
$location?: string | undefined;
|
|
7225
7211
|
} | undefined;
|
|
7226
7212
|
}, {
|
|
@@ -7228,7 +7214,7 @@ export declare const DefaultAddressFieldValue: z.ZodObject<z.objectUtil.extendSh
|
|
|
7228
7214
|
addressType: "DOMESTIC";
|
|
7229
7215
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7230
7216
|
administrativeArea?: string | {
|
|
7231
|
-
$userField: "
|
|
7217
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7232
7218
|
$location?: string | undefined;
|
|
7233
7219
|
} | undefined;
|
|
7234
7220
|
}>;
|
|
@@ -7486,13 +7472,13 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7486
7472
|
administrativeArea: z.ZodString;
|
|
7487
7473
|
}>, {
|
|
7488
7474
|
administrativeArea: z.ZodOptional<z.ZodUnion<[z.ZodBranded<z.ZodString, "UUID">, z.ZodObject<{
|
|
7489
|
-
$userField: z.ZodEnum<["id", "name", "role", "
|
|
7475
|
+
$userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
|
|
7490
7476
|
$location: z.ZodOptional<z.ZodString>;
|
|
7491
7477
|
}, "strip", z.ZodTypeAny, {
|
|
7492
|
-
$userField: "
|
|
7478
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7493
7479
|
$location?: string | undefined;
|
|
7494
7480
|
}, {
|
|
7495
|
-
$userField: "
|
|
7481
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7496
7482
|
$location?: string | undefined;
|
|
7497
7483
|
}>]>>;
|
|
7498
7484
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -7500,7 +7486,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7500
7486
|
addressType: "DOMESTIC";
|
|
7501
7487
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7502
7488
|
administrativeArea?: (string & z.BRAND<"UUID">) | {
|
|
7503
|
-
$userField: "
|
|
7489
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7504
7490
|
$location?: string | undefined;
|
|
7505
7491
|
} | undefined;
|
|
7506
7492
|
}, {
|
|
@@ -7508,7 +7494,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7508
7494
|
addressType: "DOMESTIC";
|
|
7509
7495
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7510
7496
|
administrativeArea?: string | {
|
|
7511
|
-
$userField: "
|
|
7497
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7512
7498
|
$location?: string | undefined;
|
|
7513
7499
|
} | undefined;
|
|
7514
7500
|
}>>;
|
|
@@ -7558,7 +7544,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7558
7544
|
addressType: "DOMESTIC";
|
|
7559
7545
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7560
7546
|
administrativeArea?: (string & z.BRAND<"UUID">) | {
|
|
7561
|
-
$userField: "
|
|
7547
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7562
7548
|
$location?: string | undefined;
|
|
7563
7549
|
} | undefined;
|
|
7564
7550
|
} | undefined;
|
|
@@ -7655,7 +7641,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7655
7641
|
addressType: "DOMESTIC";
|
|
7656
7642
|
streetLevelDetails?: Record<string, string> | undefined;
|
|
7657
7643
|
administrativeArea?: string | {
|
|
7658
|
-
$userField: "
|
|
7644
|
+
$userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
|
|
7659
7645
|
$location?: string | undefined;
|
|
7660
7646
|
} | undefined;
|
|
7661
7647
|
} | undefined;
|
|
@@ -12013,28 +11999,6 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12013
11999
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
12014
12000
|
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
12015
12001
|
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
|
-
}>>;
|
|
12038
12002
|
style: z.ZodOptional<z.ZodObject<{
|
|
12039
12003
|
width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
|
|
12040
12004
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -12050,12 +12014,6 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12050
12014
|
}, "strip", z.ZodTypeAny, {
|
|
12051
12015
|
maxFileSize: number;
|
|
12052
12016
|
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;
|
|
12059
12017
|
style?: {
|
|
12060
12018
|
width?: "full" | "auto" | undefined;
|
|
12061
12019
|
} | undefined;
|
|
@@ -12063,12 +12021,6 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12063
12021
|
}, {
|
|
12064
12022
|
maxFileSize?: number | undefined;
|
|
12065
12023
|
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;
|
|
12072
12024
|
style?: {
|
|
12073
12025
|
width?: "full" | "auto" | undefined;
|
|
12074
12026
|
} | undefined;
|
|
@@ -12085,12 +12037,6 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12085
12037
|
configuration: {
|
|
12086
12038
|
maxFileSize: number;
|
|
12087
12039
|
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;
|
|
12094
12040
|
style?: {
|
|
12095
12041
|
width?: "full" | "auto" | undefined;
|
|
12096
12042
|
} | undefined;
|
|
@@ -12207,12 +12153,6 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12207
12153
|
configuration?: {
|
|
12208
12154
|
maxFileSize?: number | undefined;
|
|
12209
12155
|
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;
|
|
12216
12156
|
style?: {
|
|
12217
12157
|
width?: "full" | "auto" | undefined;
|
|
12218
12158
|
} | undefined;
|
|
@@ -12353,47 +12293,13 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12353
12293
|
}>, "many">>;
|
|
12354
12294
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
12355
12295
|
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
|
-
}>>;
|
|
12378
12296
|
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">>;
|
|
12379
12297
|
}, "strip", z.ZodTypeAny, {
|
|
12380
12298
|
maxFileSize: number;
|
|
12381
12299
|
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;
|
|
12388
12300
|
}, {
|
|
12389
12301
|
maxFileSize?: number | undefined;
|
|
12390
12302
|
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;
|
|
12397
12303
|
}>>;
|
|
12398
12304
|
}>, "strip", z.ZodTypeAny, {
|
|
12399
12305
|
type: "FILE_WITH_OPTIONS";
|
|
@@ -12406,12 +12312,6 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12406
12312
|
configuration: {
|
|
12407
12313
|
maxFileSize: number;
|
|
12408
12314
|
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;
|
|
12415
12315
|
};
|
|
12416
12316
|
parent?: {
|
|
12417
12317
|
$$field: string;
|
|
@@ -12534,12 +12434,6 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12534
12434
|
configuration?: {
|
|
12535
12435
|
maxFileSize?: number | undefined;
|
|
12536
12436
|
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;
|
|
12543
12437
|
} | undefined;
|
|
12544
12438
|
}>]>;
|
|
12545
12439
|
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: ("ADDRESS" | "DATE_RANGE" | "FILE" | "FILE_WITH_OPTIONS" | "DATA" | "ID_READER")[];
|
|
52
|
+
export declare const compositeFieldTypes: ("NAME" | "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,14 +2,26 @@
|
|
|
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';
|
|
5
6
|
import { FieldValue } from './FieldValue';
|
|
6
7
|
/**
|
|
7
8
|
* Available system variables for configuration.
|
|
8
9
|
*/
|
|
9
10
|
export type SystemVariables = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
user: {
|
|
12
|
+
id: string;
|
|
13
|
+
province?: string;
|
|
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;
|
|
13
25
|
};
|
|
14
26
|
$window: {
|
|
15
27
|
location: {
|