@opencrvs/toolkit 1.8.0-rc.ffe24c3 → 1.8.1-rc.008155b

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.
Files changed (35) hide show
  1. package/dist/commons/api/router.d.ts +1791 -14926
  2. package/dist/commons/conditionals/conditionals.d.ts +0 -12
  3. package/dist/commons/conditionals/validate.d.ts +5 -0
  4. package/dist/commons/events/ActionConfig.d.ts +37041 -35133
  5. package/dist/commons/events/ActionDocument.d.ts +3742 -1637
  6. package/dist/commons/events/ActionInput.d.ts +2342 -1380
  7. package/dist/commons/events/ActionType.d.ts +7 -4
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +153 -86
  9. package/dist/commons/events/CompositeFieldValue.d.ts +15 -15
  10. package/dist/commons/events/CountryConfigQueryInput.d.ts +1174 -772
  11. package/dist/commons/events/Draft.d.ts +190 -118
  12. package/dist/commons/events/EventConfig.d.ts +20268 -22409
  13. package/dist/commons/events/EventDocument.d.ts +1714 -1021
  14. package/dist/commons/events/EventIndex.d.ts +523 -182
  15. package/dist/commons/events/EventMetadata.d.ts +9 -7
  16. package/dist/commons/events/FieldConfig.d.ts +1527 -455
  17. package/dist/commons/events/FieldType.d.ts +3 -1
  18. package/dist/commons/events/FieldTypeMapping.d.ts +80 -41
  19. package/dist/commons/events/FieldValue.d.ts +58 -28
  20. package/dist/commons/events/FormConfig.d.ts +9263 -2657
  21. package/dist/commons/events/PageConfig.d.ts +3642 -2028
  22. package/dist/commons/events/SummaryConfig.d.ts +10 -10
  23. package/dist/commons/events/User.d.ts +6 -3
  24. package/dist/commons/events/WorkqueueConfig.d.ts +2290 -1350
  25. package/dist/commons/events/defineConfig.d.ts +2761 -3252
  26. package/dist/commons/events/event.d.ts +19 -19
  27. package/dist/commons/events/field.d.ts +27 -1
  28. package/dist/commons/events/scopes.d.ts +2 -1
  29. package/dist/commons/events/test.utils.d.ts +62 -34
  30. package/dist/commons/events/utils.d.ts +8851 -6797
  31. package/dist/conditionals/index.js +25 -55
  32. package/dist/events/index.js +1657 -1377
  33. package/dist/scopes/index.d.ts +92 -6
  34. package/dist/scopes/index.js +38 -9
  35. package/package.json +3 -3
@@ -9,6 +9,8 @@ export declare const FieldType: {
9
9
  readonly EMAIL: "EMAIL";
10
10
  readonly DATE: "DATE";
11
11
  readonly DATE_RANGE: "DATE_RANGE";
12
+ readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
13
+ readonly TIME: "TIME";
12
14
  readonly PARAGRAPH: "PARAGRAPH";
13
15
  readonly PAGE_HEADER: "PAGE_HEADER";
14
16
  readonly RADIO_GROUP: "RADIO_GROUP";
@@ -26,7 +28,7 @@ export declare const FieldType: {
26
28
  readonly SIGNATURE: "SIGNATURE";
27
29
  readonly DATA: "DATA";
28
30
  };
29
- export declare const fieldTypes: ("ID" | "NAME" | "PHONE" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "DATE_RANGE" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA")[];
31
+ export declare const fieldTypes: ("ID" | "NAME" | "PHONE" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA")[];
30
32
  export type FieldType = (typeof fieldTypes)[number];
31
33
  /**
32
34
  * Composite field types are field types that consist of multiple field values.
@@ -1,7 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { AddressField, AdministrativeArea, BulletList, Checkbox, Country, DateField, Divider, Facility, EmailField, FieldConfig, File, FileUploadWithOptions, Location, Office, PageHeader, Paragraph, RadioGroup, SelectField, SignatureField, TextAreaField, TextField, NumberField, DataField, NameField, PhoneField, IdField } from './FieldConfig';
2
+ import { AddressField, AdministrativeArea, BulletList, Checkbox, Country, DateField, Divider, Facility, EmailField, FieldConfig, File, FileUploadWithOptions, Location, Office, PageHeader, Paragraph, RadioGroup, SelectField, SignatureField, TextAreaField, TextField, NumberField, DataField, NameField, PhoneField, IdField, DateRangeField, SelectDateRangeField, TimeField } from './FieldConfig';
3
3
  import { FieldType } from './FieldType';
4
- import { FieldValue, FieldUpdateValueSchema } from './FieldValue';
4
+ import { FieldValue, FieldUpdateValueSchema, DateRangeFieldValue, SelectDateRangeValue } from './FieldValue';
5
+ import { FullDocumentPath } from '../documents';
5
6
  import { AddressFieldValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue } from './CompositeFieldValue';
6
7
  /**
7
8
  * FieldTypeMapping.ts should include functions that map field types to different formats dynamically.
@@ -19,28 +20,28 @@ type NullishFieldValueSchema = z.ZodOptional<z.ZodNullable<FieldUpdateValueSchem
19
20
  * Useful for building dynamic validations against FieldConfig
20
21
  */
21
22
  export declare function mapFieldTypeToZod(type: FieldType, required?: boolean): z.ZodString | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodObject<{
22
- filename: z.ZodString;
23
+ path: z.ZodEffects<z.ZodString, string, string>;
23
24
  originalFilename: z.ZodString;
24
25
  type: z.ZodString;
25
26
  }, "strip", z.ZodTypeAny, {
26
27
  type: string;
27
- filename: string;
28
+ path: string;
28
29
  originalFilename: string;
29
30
  }, {
30
31
  type: string;
31
- filename: string;
32
+ path: string;
32
33
  originalFilename: string;
33
34
  }> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
34
- filename: z.ZodString;
35
+ path: z.ZodEffects<z.ZodString, string, string>;
35
36
  originalFilename: z.ZodString;
36
37
  type: z.ZodString;
37
38
  }, "strip", z.ZodTypeAny, {
38
39
  type: string;
39
- filename: string;
40
+ path: string;
40
41
  originalFilename: string;
41
42
  }, {
42
43
  type: string;
43
- filename: string;
44
+ path: string;
44
45
  originalFilename: string;
45
46
  }>>> | z.ZodObject<{
46
47
  firstname: z.ZodString;
@@ -55,16 +56,16 @@ export declare function mapFieldTypeToZod(type: FieldType, required?: boolean):
55
56
  surname: string;
56
57
  middlename?: string | undefined;
57
58
  }> | z.ZodUndefined | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
58
- firstname: z.ZodString;
59
- surname: z.ZodString;
59
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
61
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
62
  }, "strip", z.ZodTypeAny, {
62
- firstname: string;
63
- surname: string;
63
+ firstname?: string | null | undefined;
64
+ surname?: string | null | undefined;
64
65
  middlename?: string | null | undefined;
65
66
  }, {
66
- firstname: string;
67
- surname: string;
67
+ firstname?: string | null | undefined;
68
+ surname?: string | null | undefined;
68
69
  middlename?: string | null | undefined;
69
70
  }>, z.ZodNull]>, z.ZodUndefined]> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
70
71
  firstname: z.ZodString;
@@ -79,16 +80,16 @@ export declare function mapFieldTypeToZod(type: FieldType, required?: boolean):
79
80
  surname: string;
80
81
  middlename?: string | undefined;
81
82
  }>>> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
82
- firstname: z.ZodString;
83
- surname: z.ZodString;
83
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
85
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
86
  }, "strip", z.ZodTypeAny, {
86
- firstname: string;
87
- surname: string;
87
+ firstname?: string | null | undefined;
88
+ surname?: string | null | undefined;
88
89
  middlename?: string | null | undefined;
89
90
  }, {
90
- firstname: string;
91
- surname: string;
91
+ firstname?: string | null | undefined;
92
+ surname?: string | null | undefined;
92
93
  middlename?: string | null | undefined;
93
94
  }>, z.ZodNull]>, z.ZodUndefined]>>> | z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
94
95
  country: z.ZodString;
@@ -177,36 +178,54 @@ export declare function mapFieldTypeToZod(type: FieldType, required?: boolean):
177
178
  addressLine3?: string | null | undefined;
178
179
  postcodeOrZip?: string | null | undefined;
179
180
  }>]> | z.ZodArray<z.ZodObject<{
180
- filename: z.ZodString;
181
+ path: z.ZodEffects<z.ZodString, string, string>;
181
182
  originalFilename: z.ZodString;
182
183
  type: z.ZodString;
183
184
  option: z.ZodString;
184
185
  }, "strip", z.ZodTypeAny, {
185
186
  type: string;
186
187
  option: string;
187
- filename: string;
188
+ path: string;
188
189
  originalFilename: string;
189
190
  }, {
190
191
  type: string;
191
192
  option: string;
192
- filename: string;
193
+ path: string;
193
194
  originalFilename: string;
194
195
  }>, "many"> | z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
195
- filename: z.ZodString;
196
+ path: z.ZodEffects<z.ZodString, string, string>;
196
197
  originalFilename: z.ZodString;
197
198
  type: z.ZodString;
198
199
  option: z.ZodString;
199
200
  }, "strip", z.ZodTypeAny, {
200
201
  type: string;
201
202
  option: string;
202
- filename: string;
203
+ path: string;
203
204
  originalFilename: string;
204
205
  }, {
205
206
  type: string;
206
207
  option: string;
207
- filename: string;
208
+ path: string;
208
209
  originalFilename: string;
209
- }>, "many">>> | z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>> | z.ZodBoolean | z.ZodOptional<z.ZodNullable<z.ZodBoolean>> | z.ZodNumber | z.ZodOptional<z.ZodNullable<z.ZodNumber>> | z.ZodOptional<z.ZodNullable<z.ZodUndefined>> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
210
+ }>, "many">>> | z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]> | z.ZodUnion<[z.ZodObject<{
211
+ start: z.ZodString;
212
+ end: z.ZodString;
213
+ }, "strip", z.ZodTypeAny, {
214
+ start: string;
215
+ end: string;
216
+ }, {
217
+ start: string;
218
+ end: string;
219
+ }>, z.ZodString]> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
220
+ start: z.ZodString;
221
+ end: z.ZodString;
222
+ }, "strip", z.ZodTypeAny, {
223
+ start: string;
224
+ end: string;
225
+ }, {
226
+ start: string;
227
+ end: string;
228
+ }>, z.ZodString]>>> | z.ZodOptional<z.ZodNullable<z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>>> | z.ZodBoolean | z.ZodOptional<z.ZodNullable<z.ZodBoolean>> | z.ZodNumber | z.ZodOptional<z.ZodNullable<z.ZodNumber>> | z.ZodOptional<z.ZodNullable<z.ZodUndefined>> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
210
229
  country: z.ZodString;
211
230
  addressType: z.ZodLiteral<"DOMESTIC">;
212
231
  province: z.ZodString;
@@ -296,7 +315,7 @@ export declare function mapFieldTypeToZod(type: FieldType, required?: boolean):
296
315
  export declare function createValidationSchema(config: FieldConfig[]): z.ZodObject<Record<string, FieldUpdateValueSchema | NullishFieldValueSchema>, "strip", z.ZodTypeAny, {
297
316
  [x: string]: string | number | boolean | {
298
317
  type: string;
299
- filename: string;
318
+ path: string;
300
319
  originalFilename: string;
301
320
  } | {
302
321
  country: string;
@@ -314,8 +333,8 @@ export declare function createValidationSchema(config: FieldConfig[]): z.ZodObje
314
333
  surname: string;
315
334
  middlename?: string | undefined;
316
335
  } | {
317
- firstname: string;
318
- surname: string;
336
+ firstname?: string | null | undefined;
337
+ surname?: string | null | undefined;
319
338
  middlename?: string | null | undefined;
320
339
  } | {
321
340
  country: string;
@@ -337,13 +356,16 @@ export declare function createValidationSchema(config: FieldConfig[]): z.ZodObje
337
356
  } | {
338
357
  type: string;
339
358
  option: string;
340
- filename: string;
359
+ path: string;
341
360
  originalFilename: string;
342
- }[] | [string, string] | null | undefined;
361
+ }[] | {
362
+ start: string;
363
+ end: string;
364
+ } | null | undefined;
343
365
  }, {
344
366
  [x: string]: string | number | boolean | {
345
367
  type: string;
346
- filename: string;
368
+ path: string;
347
369
  originalFilename: string;
348
370
  } | {
349
371
  country: string;
@@ -361,8 +383,8 @@ export declare function createValidationSchema(config: FieldConfig[]): z.ZodObje
361
383
  surname: string;
362
384
  middlename?: string | undefined;
363
385
  } | {
364
- firstname: string;
365
- surname: string;
386
+ firstname?: string | null | undefined;
387
+ surname?: string | null | undefined;
366
388
  middlename?: string | null | undefined;
367
389
  } | {
368
390
  country: string;
@@ -384,9 +406,12 @@ export declare function createValidationSchema(config: FieldConfig[]): z.ZodObje
384
406
  } | {
385
407
  type: string;
386
408
  option: string;
387
- filename: string;
409
+ path: string;
388
410
  originalFilename: string;
389
- }[] | [string, string] | null | undefined;
411
+ }[] | {
412
+ start: string;
413
+ end: string;
414
+ } | null | undefined;
390
415
  }>;
391
416
  /**
392
417
  * Maps complex or nested field types, such as Address fields, to their corresponding empty values.
@@ -402,11 +427,11 @@ export declare function mapFieldTypeToEmptyValue(field: FieldConfig): never[] |
402
427
  street: null;
403
428
  number: null;
404
429
  zipCode: null;
405
- filename?: undefined;
430
+ path?: undefined;
406
431
  originalFilename?: undefined;
407
432
  type?: undefined;
408
433
  } | {
409
- filename: string;
434
+ path: FullDocumentPath;
410
435
  originalFilename: string;
411
436
  type: string;
412
437
  country?: undefined;
@@ -434,12 +459,26 @@ export declare const isDateFieldType: (field: {
434
459
  value: string;
435
460
  config: DateField;
436
461
  };
437
- export declare const isDateRangeFieldType: (field: {
462
+ export declare const isTimeFieldType: (field: {
438
463
  config: FieldConfig;
439
464
  value: FieldValue;
440
465
  }) => field is {
441
466
  value: string;
442
- config: DateField;
467
+ config: TimeField;
468
+ };
469
+ export declare const isDateRangeFieldType: (field: {
470
+ config: FieldConfig;
471
+ value: FieldValue;
472
+ }) => field is {
473
+ value: DateRangeFieldValue;
474
+ config: DateRangeField;
475
+ };
476
+ export declare const isSelectDateRangeFieldType: (field: {
477
+ config: FieldConfig;
478
+ value: FieldValue;
479
+ }) => field is {
480
+ value: SelectDateRangeValue;
481
+ config: SelectDateRangeField;
443
482
  };
444
483
  export declare const isPageHeaderFieldType: (field: {
445
484
  config: FieldConfig;
@@ -15,9 +15,21 @@ import { AddressFieldValue, AddressFieldUpdateValue, FileFieldValue, FileFieldWi
15
15
  export declare const TextValue: z.ZodString;
16
16
  export declare const NonEmptyTextValue: z.ZodString;
17
17
  export declare const DateValue: z.ZodString;
18
+ export declare const TimeValue: z.ZodString;
18
19
  export declare const DatetimeValue: z.ZodString;
19
- export declare const DateRangeFieldValue: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
20
+ export declare const SelectDateRangeValue: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
21
+ export declare const DateRangeFieldValue: z.ZodUnion<[z.ZodObject<{
22
+ start: z.ZodString;
23
+ end: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ start: string;
26
+ end: string;
27
+ }, {
28
+ start: string;
29
+ end: string;
30
+ }>, z.ZodString]>;
20
31
  export type DateRangeFieldValue = z.infer<typeof DateRangeFieldValue>;
32
+ export type SelectDateRangeValue = z.infer<typeof SelectDateRangeValue>;
21
33
  export declare const EmailValue: z.ZodString;
22
34
  export declare const CheckboxFieldValue: z.ZodBoolean;
23
35
  export type CheckboxFieldValue = z.infer<typeof CheckboxFieldValue>;
@@ -27,32 +39,41 @@ export declare const DataFieldValue: z.ZodUndefined;
27
39
  export type DataFieldValue = z.infer<typeof DataFieldValue>;
28
40
  export declare const SignatureFieldValue: z.ZodString;
29
41
  export type SignatureFieldValue = z.infer<typeof SignatureFieldValue>;
30
- export declare const FieldValue: z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
31
- filename: z.ZodString;
42
+ export declare const FieldValue: z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
43
+ start: z.ZodString;
44
+ end: z.ZodString;
45
+ }, "strip", z.ZodTypeAny, {
46
+ start: string;
47
+ end: string;
48
+ }, {
49
+ start: string;
50
+ end: string;
51
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
52
+ path: z.ZodEffects<z.ZodString, string, string>;
32
53
  originalFilename: z.ZodString;
33
54
  type: z.ZodString;
34
55
  }, "strip", z.ZodTypeAny, {
35
56
  type: string;
36
- filename: string;
57
+ path: string;
37
58
  originalFilename: string;
38
59
  }, {
39
60
  type: string;
40
- filename: string;
61
+ path: string;
41
62
  originalFilename: string;
42
63
  }>, z.ZodArray<z.ZodObject<{
43
- filename: z.ZodString;
64
+ path: z.ZodEffects<z.ZodString, string, string>;
44
65
  originalFilename: z.ZodString;
45
66
  type: z.ZodString;
46
67
  option: z.ZodString;
47
68
  }, "strip", z.ZodTypeAny, {
48
69
  type: string;
49
70
  option: string;
50
- filename: string;
71
+ path: string;
51
72
  originalFilename: string;
52
73
  }, {
53
74
  type: string;
54
75
  option: string;
55
- filename: string;
76
+ path: string;
56
77
  originalFilename: string;
57
78
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
58
79
  country: z.ZodString;
@@ -153,45 +174,54 @@ export declare const FieldValue: z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnio
153
174
  surname: string;
154
175
  middlename?: string | undefined;
155
176
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
156
- firstname: z.ZodString;
157
- surname: z.ZodString;
177
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
158
179
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
180
  }, "strip", z.ZodTypeAny, {
160
- firstname: string;
161
- surname: string;
181
+ firstname?: string | null | undefined;
182
+ surname?: string | null | undefined;
162
183
  middlename?: string | null | undefined;
163
184
  }, {
164
- firstname: string;
165
- surname: string;
185
+ firstname?: string | null | undefined;
186
+ surname?: string | null | undefined;
166
187
  middlename?: string | null | undefined;
167
188
  }>, z.ZodNull]>, z.ZodUndefined]>]>;
168
189
  export type FieldValue = z.infer<typeof FieldValue>;
169
- export declare const FieldUpdateValue: z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
170
- filename: z.ZodString;
190
+ export declare const FieldUpdateValue: z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
191
+ start: z.ZodString;
192
+ end: z.ZodString;
193
+ }, "strip", z.ZodTypeAny, {
194
+ start: string;
195
+ end: string;
196
+ }, {
197
+ start: string;
198
+ end: string;
199
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
200
+ path: z.ZodEffects<z.ZodString, string, string>;
171
201
  originalFilename: z.ZodString;
172
202
  type: z.ZodString;
173
203
  }, "strip", z.ZodTypeAny, {
174
204
  type: string;
175
- filename: string;
205
+ path: string;
176
206
  originalFilename: string;
177
207
  }, {
178
208
  type: string;
179
- filename: string;
209
+ path: string;
180
210
  originalFilename: string;
181
211
  }>, z.ZodArray<z.ZodObject<{
182
- filename: z.ZodString;
212
+ path: z.ZodEffects<z.ZodString, string, string>;
183
213
  originalFilename: z.ZodString;
184
214
  type: z.ZodString;
185
215
  option: z.ZodString;
186
216
  }, "strip", z.ZodTypeAny, {
187
217
  type: string;
188
218
  option: string;
189
- filename: string;
219
+ path: string;
190
220
  originalFilename: string;
191
221
  }, {
192
222
  type: string;
193
223
  option: string;
194
- filename: string;
224
+ path: string;
195
225
  originalFilename: string;
196
226
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
197
227
  country: z.ZodString;
@@ -280,16 +310,16 @@ export declare const FieldUpdateValue: z.ZodUnion<[z.ZodString, z.ZodString, z.Z
280
310
  addressLine3?: string | null | undefined;
281
311
  postcodeOrZip?: string | null | undefined;
282
312
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
283
- firstname: z.ZodString;
284
- surname: z.ZodString;
313
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
314
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
285
315
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
286
316
  }, "strip", z.ZodTypeAny, {
287
- firstname: string;
288
- surname: string;
317
+ firstname?: string | null | undefined;
318
+ surname?: string | null | undefined;
289
319
  middlename?: string | null | undefined;
290
320
  }, {
291
- firstname: string;
292
- surname: string;
321
+ firstname?: string | null | undefined;
322
+ surname?: string | null | undefined;
293
323
  middlename?: string | null | undefined;
294
324
  }>, z.ZodNull]>, z.ZodUndefined]>]>;
295
325
  export type FieldUpdateValue = z.infer<typeof FieldUpdateValue>;
@@ -302,5 +332,5 @@ export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptio
302
332
  *
303
333
  * FieldValueInputSchema uses Input types which have set optional values as nullish
304
334
  * */
305
- export type FieldUpdateValueSchema = typeof DateRangeFieldValue | typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | typeof DataFieldValue | typeof NameFieldValue | typeof NameFieldUpdateValue | z.ZodString | z.ZodBoolean;
335
+ export type FieldUpdateValueSchema = typeof DateRangeFieldValue | typeof SelectDateRangeValue | typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | typeof DataFieldValue | typeof NameFieldValue | typeof NameFieldUpdateValue | z.ZodString | z.ZodBoolean;
306
336
  //# sourceMappingURL=FieldValue.d.ts.map