@opencrvs/toolkit 1.9.5-rc.cae76cc → 1.9.5-rc.dbaa155

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.
@@ -538,13 +538,13 @@ export declare const TextField: z.ZodObject<z.objectUtil.extendShape<{
538
538
  }, {
539
539
  type: z.ZodLiteral<"TEXT">;
540
540
  defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
541
- $userField: z.ZodEnum<["id", "name", "role", "signature", "avatar", "fullHonorificName", "device", "firstname", "middlename", "surname", "primaryOfficeId"]>;
541
+ $userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
542
542
  $location: z.ZodOptional<z.ZodString>;
543
543
  }, "strip", z.ZodTypeAny, {
544
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
544
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
545
545
  $location?: string | undefined;
546
546
  }, {
547
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
547
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
548
548
  $location?: string | undefined;
549
549
  }>]>>;
550
550
  configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
@@ -621,7 +621,7 @@ export declare const TextField: z.ZodObject<z.objectUtil.extendShape<{
621
621
  uncorrectable?: boolean | undefined;
622
622
  analytics?: boolean | undefined;
623
623
  defaultValue?: string | {
624
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
624
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
625
625
  $location?: string | undefined;
626
626
  } | undefined;
627
627
  configuration?: {
@@ -692,7 +692,7 @@ export declare const TextField: z.ZodObject<z.objectUtil.extendShape<{
692
692
  uncorrectable?: boolean | undefined;
693
693
  analytics?: boolean | undefined;
694
694
  defaultValue?: string | {
695
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
695
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
696
696
  $location?: string | undefined;
697
697
  } | undefined;
698
698
  configuration?: {
@@ -3218,6 +3218,28 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
3218
3218
  configuration: z.ZodDefault<z.ZodObject<{
3219
3219
  maxFileSize: z.ZodDefault<z.ZodNumber>;
3220
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
+ }>>;
3221
3243
  style: z.ZodOptional<z.ZodObject<{
3222
3244
  width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
3223
3245
  }, "strip", z.ZodTypeAny, {
@@ -3233,6 +3255,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
3233
3255
  }, "strip", z.ZodTypeAny, {
3234
3256
  maxFileSize: number;
3235
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;
3236
3264
  style?: {
3237
3265
  width?: "full" | "auto" | undefined;
3238
3266
  } | undefined;
@@ -3240,6 +3268,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
3240
3268
  }, {
3241
3269
  maxFileSize?: number | undefined;
3242
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;
3243
3277
  style?: {
3244
3278
  width?: "full" | "auto" | undefined;
3245
3279
  } | undefined;
@@ -3256,6 +3290,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
3256
3290
  configuration: {
3257
3291
  maxFileSize: number;
3258
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;
3259
3299
  style?: {
3260
3300
  width?: "full" | "auto" | undefined;
3261
3301
  } | undefined;
@@ -3372,6 +3412,12 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
3372
3412
  configuration?: {
3373
3413
  maxFileSize?: number | undefined;
3374
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;
3375
3421
  style?: {
3376
3422
  width?: "full" | "auto" | undefined;
3377
3423
  } | undefined;
@@ -4678,59 +4724,59 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
4678
4724
  type: z.ZodLiteral<"NAME">;
4679
4725
  defaultValue: z.ZodOptional<z.ZodObject<{
4680
4726
  firstname: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4681
- $userField: z.ZodEnum<["id", "name", "role", "signature", "avatar", "fullHonorificName", "device", "firstname", "middlename", "surname", "primaryOfficeId"]>;
4727
+ $userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
4682
4728
  $location: z.ZodOptional<z.ZodString>;
4683
4729
  }, "strip", z.ZodTypeAny, {
4684
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
4730
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
4685
4731
  $location?: string | undefined;
4686
4732
  }, {
4687
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
4733
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
4688
4734
  $location?: string | undefined;
4689
4735
  }>, z.ZodString]>>;
4690
4736
  middlename: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4691
- $userField: z.ZodEnum<["id", "name", "role", "signature", "avatar", "fullHonorificName", "device", "firstname", "middlename", "surname", "primaryOfficeId"]>;
4737
+ $userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
4692
4738
  $location: z.ZodOptional<z.ZodString>;
4693
4739
  }, "strip", z.ZodTypeAny, {
4694
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
4740
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
4695
4741
  $location?: string | undefined;
4696
4742
  }, {
4697
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
4743
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
4698
4744
  $location?: string | undefined;
4699
4745
  }>, z.ZodString]>>;
4700
4746
  surname: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4701
- $userField: z.ZodEnum<["id", "name", "role", "signature", "avatar", "fullHonorificName", "device", "firstname", "middlename", "surname", "primaryOfficeId"]>;
4747
+ $userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
4702
4748
  $location: z.ZodOptional<z.ZodString>;
4703
4749
  }, "strip", z.ZodTypeAny, {
4704
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
4750
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
4705
4751
  $location?: string | undefined;
4706
4752
  }, {
4707
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
4753
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
4708
4754
  $location?: string | undefined;
4709
4755
  }>, z.ZodString]>>;
4710
4756
  }, "strip", z.ZodTypeAny, {
4711
4757
  firstname?: string | {
4712
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
4758
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
4713
4759
  $location?: string | undefined;
4714
4760
  } | undefined;
4715
4761
  surname?: string | {
4716
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
4762
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
4717
4763
  $location?: string | undefined;
4718
4764
  } | undefined;
4719
4765
  middlename?: string | {
4720
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
4766
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
4721
4767
  $location?: string | undefined;
4722
4768
  } | undefined;
4723
4769
  }, {
4724
4770
  firstname?: string | {
4725
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
4771
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
4726
4772
  $location?: string | undefined;
4727
4773
  } | undefined;
4728
4774
  surname?: string | {
4729
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
4775
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
4730
4776
  $location?: string | undefined;
4731
4777
  } | undefined;
4732
4778
  middlename?: string | {
4733
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
4779
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
4734
4780
  $location?: string | undefined;
4735
4781
  } | undefined;
4736
4782
  }>>;
@@ -5057,15 +5103,15 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
5057
5103
  analytics?: boolean | undefined;
5058
5104
  defaultValue?: {
5059
5105
  firstname?: string | {
5060
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
5106
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
5061
5107
  $location?: string | undefined;
5062
5108
  } | undefined;
5063
5109
  surname?: string | {
5064
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
5110
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
5065
5111
  $location?: string | undefined;
5066
5112
  } | undefined;
5067
5113
  middlename?: string | {
5068
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
5114
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
5069
5115
  $location?: string | undefined;
5070
5116
  } | undefined;
5071
5117
  } | undefined;
@@ -5158,15 +5204,15 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
5158
5204
  analytics?: boolean | undefined;
5159
5205
  defaultValue?: {
5160
5206
  firstname?: string | {
5161
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
5207
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
5162
5208
  $location?: string | undefined;
5163
5209
  } | undefined;
5164
5210
  surname?: string | {
5165
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
5211
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
5166
5212
  $location?: string | undefined;
5167
5213
  } | undefined;
5168
5214
  middlename?: string | {
5169
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
5215
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
5170
5216
  $location?: string | undefined;
5171
5217
  } | undefined;
5172
5218
  } | undefined;
@@ -6636,13 +6682,47 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
6636
6682
  }>, "many">>;
6637
6683
  configuration: z.ZodDefault<z.ZodObject<{
6638
6684
  maxFileSize: z.ZodDefault<z.ZodNumber>;
6685
+ maxImageSize: z.ZodOptional<z.ZodObject<{
6686
+ targetSize: z.ZodObject<{
6687
+ width: z.ZodNumber;
6688
+ height: z.ZodNumber;
6689
+ }, "strip", z.ZodTypeAny, {
6690
+ width: number;
6691
+ height: number;
6692
+ }, {
6693
+ width: number;
6694
+ height: number;
6695
+ }>;
6696
+ }, "strip", z.ZodTypeAny, {
6697
+ targetSize: {
6698
+ width: number;
6699
+ height: number;
6700
+ };
6701
+ }, {
6702
+ targetSize: {
6703
+ width: number;
6704
+ height: number;
6705
+ };
6706
+ }>>;
6639
6707
  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
6708
  }, "strip", z.ZodTypeAny, {
6641
6709
  maxFileSize: number;
6642
6710
  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;
6711
+ maxImageSize?: {
6712
+ targetSize: {
6713
+ width: number;
6714
+ height: number;
6715
+ };
6716
+ } | undefined;
6643
6717
  }, {
6644
6718
  maxFileSize?: number | undefined;
6645
6719
  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;
6720
+ maxImageSize?: {
6721
+ targetSize: {
6722
+ width: number;
6723
+ height: number;
6724
+ };
6725
+ } | undefined;
6646
6726
  }>>;
6647
6727
  }>, "strip", z.ZodTypeAny, {
6648
6728
  type: "FILE_WITH_OPTIONS";
@@ -6655,6 +6735,12 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
6655
6735
  configuration: {
6656
6736
  maxFileSize: number;
6657
6737
  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;
6738
+ maxImageSize?: {
6739
+ targetSize: {
6740
+ width: number;
6741
+ height: number;
6742
+ };
6743
+ } | undefined;
6658
6744
  };
6659
6745
  parent?: {
6660
6746
  $$field: string;
@@ -6777,6 +6863,12 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
6777
6863
  configuration?: {
6778
6864
  maxFileSize?: number | undefined;
6779
6865
  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;
6866
+ maxImageSize?: {
6867
+ targetSize: {
6868
+ width: number;
6869
+ height: number;
6870
+ };
6871
+ } | undefined;
6780
6872
  } | undefined;
6781
6873
  }>;
6782
6874
  export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
@@ -7192,13 +7284,13 @@ export declare const DefaultAddressFieldValue: z.ZodObject<z.objectUtil.extendSh
7192
7284
  administrativeArea: z.ZodString;
7193
7285
  }>, {
7194
7286
  administrativeArea: z.ZodOptional<z.ZodUnion<[z.ZodBranded<z.ZodString, "UUID">, z.ZodObject<{
7195
- $userField: z.ZodEnum<["id", "name", "role", "signature", "avatar", "fullHonorificName", "device", "firstname", "middlename", "surname", "primaryOfficeId"]>;
7287
+ $userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
7196
7288
  $location: z.ZodOptional<z.ZodString>;
7197
7289
  }, "strip", z.ZodTypeAny, {
7198
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
7290
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
7199
7291
  $location?: string | undefined;
7200
7292
  }, {
7201
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
7293
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
7202
7294
  $location?: string | undefined;
7203
7295
  }>]>>;
7204
7296
  }>, "strip", z.ZodTypeAny, {
@@ -7206,7 +7298,7 @@ export declare const DefaultAddressFieldValue: z.ZodObject<z.objectUtil.extendSh
7206
7298
  addressType: "DOMESTIC";
7207
7299
  streetLevelDetails?: Record<string, string> | undefined;
7208
7300
  administrativeArea?: (string & z.BRAND<"UUID">) | {
7209
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
7301
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
7210
7302
  $location?: string | undefined;
7211
7303
  } | undefined;
7212
7304
  }, {
@@ -7214,7 +7306,7 @@ export declare const DefaultAddressFieldValue: z.ZodObject<z.objectUtil.extendSh
7214
7306
  addressType: "DOMESTIC";
7215
7307
  streetLevelDetails?: Record<string, string> | undefined;
7216
7308
  administrativeArea?: string | {
7217
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
7309
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
7218
7310
  $location?: string | undefined;
7219
7311
  } | undefined;
7220
7312
  }>;
@@ -7472,13 +7564,13 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7472
7564
  administrativeArea: z.ZodString;
7473
7565
  }>, {
7474
7566
  administrativeArea: z.ZodOptional<z.ZodUnion<[z.ZodBranded<z.ZodString, "UUID">, z.ZodObject<{
7475
- $userField: z.ZodEnum<["id", "name", "role", "signature", "avatar", "fullHonorificName", "device", "firstname", "middlename", "surname", "primaryOfficeId"]>;
7567
+ $userField: z.ZodEnum<["id", "name", "role", "fullHonorificName", "device", "firstname", "middlename", "surname", "district", "province", "primaryOfficeId"]>;
7476
7568
  $location: z.ZodOptional<z.ZodString>;
7477
7569
  }, "strip", z.ZodTypeAny, {
7478
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
7570
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
7479
7571
  $location?: string | undefined;
7480
7572
  }, {
7481
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
7573
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
7482
7574
  $location?: string | undefined;
7483
7575
  }>]>>;
7484
7576
  }>, "strip", z.ZodTypeAny, {
@@ -7486,7 +7578,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7486
7578
  addressType: "DOMESTIC";
7487
7579
  streetLevelDetails?: Record<string, string> | undefined;
7488
7580
  administrativeArea?: (string & z.BRAND<"UUID">) | {
7489
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
7581
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
7490
7582
  $location?: string | undefined;
7491
7583
  } | undefined;
7492
7584
  }, {
@@ -7494,7 +7586,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7494
7586
  addressType: "DOMESTIC";
7495
7587
  streetLevelDetails?: Record<string, string> | undefined;
7496
7588
  administrativeArea?: string | {
7497
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
7589
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
7498
7590
  $location?: string | undefined;
7499
7591
  } | undefined;
7500
7592
  }>>;
@@ -7544,7 +7636,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7544
7636
  addressType: "DOMESTIC";
7545
7637
  streetLevelDetails?: Record<string, string> | undefined;
7546
7638
  administrativeArea?: (string & z.BRAND<"UUID">) | {
7547
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
7639
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
7548
7640
  $location?: string | undefined;
7549
7641
  } | undefined;
7550
7642
  } | undefined;
@@ -7641,7 +7733,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7641
7733
  addressType: "DOMESTIC";
7642
7734
  streetLevelDetails?: Record<string, string> | undefined;
7643
7735
  administrativeArea?: string | {
7644
- $userField: "signature" | "id" | "name" | "device" | "firstname" | "surname" | "middlename" | "role" | "avatar" | "fullHonorificName" | "primaryOfficeId";
7736
+ $userField: "id" | "name" | "device" | "district" | "firstname" | "surname" | "middlename" | "role" | "fullHonorificName" | "province" | "primaryOfficeId";
7645
7737
  $location?: string | undefined;
7646
7738
  } | undefined;
7647
7739
  } | undefined;
@@ -11999,6 +12091,28 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
11999
12091
  configuration: z.ZodDefault<z.ZodObject<{
12000
12092
  maxFileSize: z.ZodDefault<z.ZodNumber>;
12001
12093
  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">>;
12094
+ maxImageSize: z.ZodOptional<z.ZodObject<{
12095
+ targetSize: z.ZodObject<{
12096
+ width: z.ZodNumber;
12097
+ height: z.ZodNumber;
12098
+ }, "strip", z.ZodTypeAny, {
12099
+ width: number;
12100
+ height: number;
12101
+ }, {
12102
+ width: number;
12103
+ height: number;
12104
+ }>;
12105
+ }, "strip", z.ZodTypeAny, {
12106
+ targetSize: {
12107
+ width: number;
12108
+ height: number;
12109
+ };
12110
+ }, {
12111
+ targetSize: {
12112
+ width: number;
12113
+ height: number;
12114
+ };
12115
+ }>>;
12002
12116
  style: z.ZodOptional<z.ZodObject<{
12003
12117
  width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
12004
12118
  }, "strip", z.ZodTypeAny, {
@@ -12014,6 +12128,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12014
12128
  }, "strip", z.ZodTypeAny, {
12015
12129
  maxFileSize: number;
12016
12130
  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;
12131
+ maxImageSize?: {
12132
+ targetSize: {
12133
+ width: number;
12134
+ height: number;
12135
+ };
12136
+ } | undefined;
12017
12137
  style?: {
12018
12138
  width?: "full" | "auto" | undefined;
12019
12139
  } | undefined;
@@ -12021,6 +12141,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12021
12141
  }, {
12022
12142
  maxFileSize?: number | undefined;
12023
12143
  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;
12144
+ maxImageSize?: {
12145
+ targetSize: {
12146
+ width: number;
12147
+ height: number;
12148
+ };
12149
+ } | undefined;
12024
12150
  style?: {
12025
12151
  width?: "full" | "auto" | undefined;
12026
12152
  } | undefined;
@@ -12037,6 +12163,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12037
12163
  configuration: {
12038
12164
  maxFileSize: number;
12039
12165
  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;
12166
+ maxImageSize?: {
12167
+ targetSize: {
12168
+ width: number;
12169
+ height: number;
12170
+ };
12171
+ } | undefined;
12040
12172
  style?: {
12041
12173
  width?: "full" | "auto" | undefined;
12042
12174
  } | undefined;
@@ -12153,6 +12285,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12153
12285
  configuration?: {
12154
12286
  maxFileSize?: number | undefined;
12155
12287
  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;
12288
+ maxImageSize?: {
12289
+ targetSize: {
12290
+ width: number;
12291
+ height: number;
12292
+ };
12293
+ } | undefined;
12156
12294
  style?: {
12157
12295
  width?: "full" | "auto" | undefined;
12158
12296
  } | undefined;
@@ -12293,13 +12431,47 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12293
12431
  }>, "many">>;
12294
12432
  configuration: z.ZodDefault<z.ZodObject<{
12295
12433
  maxFileSize: z.ZodDefault<z.ZodNumber>;
12434
+ maxImageSize: z.ZodOptional<z.ZodObject<{
12435
+ targetSize: z.ZodObject<{
12436
+ width: z.ZodNumber;
12437
+ height: z.ZodNumber;
12438
+ }, "strip", z.ZodTypeAny, {
12439
+ width: number;
12440
+ height: number;
12441
+ }, {
12442
+ width: number;
12443
+ height: number;
12444
+ }>;
12445
+ }, "strip", z.ZodTypeAny, {
12446
+ targetSize: {
12447
+ width: number;
12448
+ height: number;
12449
+ };
12450
+ }, {
12451
+ targetSize: {
12452
+ width: number;
12453
+ height: number;
12454
+ };
12455
+ }>>;
12296
12456
  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
12457
  }, "strip", z.ZodTypeAny, {
12298
12458
  maxFileSize: number;
12299
12459
  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;
12460
+ maxImageSize?: {
12461
+ targetSize: {
12462
+ width: number;
12463
+ height: number;
12464
+ };
12465
+ } | undefined;
12300
12466
  }, {
12301
12467
  maxFileSize?: number | undefined;
12302
12468
  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;
12469
+ maxImageSize?: {
12470
+ targetSize: {
12471
+ width: number;
12472
+ height: number;
12473
+ };
12474
+ } | undefined;
12303
12475
  }>>;
12304
12476
  }>, "strip", z.ZodTypeAny, {
12305
12477
  type: "FILE_WITH_OPTIONS";
@@ -12312,6 +12484,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12312
12484
  configuration: {
12313
12485
  maxFileSize: number;
12314
12486
  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;
12487
+ maxImageSize?: {
12488
+ targetSize: {
12489
+ width: number;
12490
+ height: number;
12491
+ };
12492
+ } | undefined;
12315
12493
  };
12316
12494
  parent?: {
12317
12495
  $$field: string;
@@ -12434,6 +12612,12 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12434
12612
  configuration?: {
12435
12613
  maxFileSize?: number | undefined;
12436
12614
  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;
12615
+ maxImageSize?: {
12616
+ targetSize: {
12617
+ width: number;
12618
+ height: number;
12619
+ };
12620
+ } | undefined;
12437
12621
  } | undefined;
12438
12622
  }>]>;
12439
12623
  export type AnyFileField = z.infer<typeof AnyFileField>;
@@ -10,8 +10,8 @@ import { FieldValue } from './FieldValue';
10
10
  export type SystemVariables = {
11
11
  user: {
12
12
  id: string;
13
- province: string;
14
- district: string;
13
+ province?: string;
14
+ district?: string;
15
15
  name?: string;
16
16
  role?: string;
17
17
  firstname?: string;