@opencrvs/toolkit 1.8.0-rc.feef45c → 1.8.0-rc.ff0a1b5

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.
@@ -14,6 +14,14 @@ export declare const EventStatus: {
14
14
  readonly ARCHIVED: "ARCHIVED";
15
15
  };
16
16
  export type EventStatus = (typeof EventStatus)[keyof typeof EventStatus];
17
+ export declare const CustomFlags: {
18
+ readonly CERTIFICATE_PRINTED: "certificate-printed";
19
+ };
20
+ export type CustomFlags = (typeof CustomFlags)[keyof typeof CustomFlags];
21
+ export declare const Flag: z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
22
+ readonly CERTIFICATE_PRINTED: "certificate-printed";
23
+ }>]>;
24
+ export type Flag = z.infer<typeof Flag>;
17
25
  export declare const eventStatuses: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
18
26
  export declare const EventStatuses: z.ZodNativeEnum<{
19
27
  readonly CREATED: "CREATED";
@@ -26,6 +34,126 @@ export declare const EventStatuses: z.ZodNativeEnum<{
26
34
  readonly ARCHIVED: "ARCHIVED";
27
35
  }>;
28
36
  export declare const ZodDate: z.ZodString;
37
+ export declare const ActionCreationMetadata: z.ZodObject<{
38
+ createdAt: z.ZodString;
39
+ createdBy: z.ZodString;
40
+ createdAtLocation: z.ZodString;
41
+ acceptedAt: z.ZodString;
42
+ createdByRole: z.ZodString;
43
+ }, "strip", z.ZodTypeAny, {
44
+ createdAt: string;
45
+ createdBy: string;
46
+ createdByRole: string;
47
+ createdAtLocation: string;
48
+ acceptedAt: string;
49
+ }, {
50
+ createdAt: string;
51
+ createdBy: string;
52
+ createdByRole: string;
53
+ createdAtLocation: string;
54
+ acceptedAt: string;
55
+ }>;
56
+ export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
57
+ export declare const RegistrationCreationMetadata: z.ZodObject<z.objectUtil.extendShape<{
58
+ createdAt: z.ZodString;
59
+ createdBy: z.ZodString;
60
+ createdAtLocation: z.ZodString;
61
+ acceptedAt: z.ZodString;
62
+ createdByRole: z.ZodString;
63
+ }, {
64
+ registrationNumber: z.ZodString;
65
+ }>, "strip", z.ZodTypeAny, {
66
+ createdAt: string;
67
+ createdBy: string;
68
+ createdByRole: string;
69
+ createdAtLocation: string;
70
+ registrationNumber: string;
71
+ acceptedAt: string;
72
+ }, {
73
+ createdAt: string;
74
+ createdBy: string;
75
+ createdByRole: string;
76
+ createdAtLocation: string;
77
+ registrationNumber: string;
78
+ acceptedAt: string;
79
+ }>;
80
+ export type RegistrationCreationMetadata = z.infer<typeof RegistrationCreationMetadata>;
81
+ export declare const LegalStatuses: z.ZodObject<{
82
+ DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
83
+ createdAt: z.ZodString;
84
+ createdBy: z.ZodString;
85
+ createdAtLocation: z.ZodString;
86
+ acceptedAt: z.ZodString;
87
+ createdByRole: z.ZodString;
88
+ }, "strip", z.ZodTypeAny, {
89
+ createdAt: string;
90
+ createdBy: string;
91
+ createdByRole: string;
92
+ createdAtLocation: string;
93
+ acceptedAt: string;
94
+ }, {
95
+ createdAt: string;
96
+ createdBy: string;
97
+ createdByRole: string;
98
+ createdAtLocation: string;
99
+ acceptedAt: string;
100
+ }>>>;
101
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
102
+ createdAt: z.ZodString;
103
+ createdBy: z.ZodString;
104
+ createdAtLocation: z.ZodString;
105
+ acceptedAt: z.ZodString;
106
+ createdByRole: z.ZodString;
107
+ }, {
108
+ registrationNumber: z.ZodString;
109
+ }>, "strip", z.ZodTypeAny, {
110
+ createdAt: string;
111
+ createdBy: string;
112
+ createdByRole: string;
113
+ createdAtLocation: string;
114
+ registrationNumber: string;
115
+ acceptedAt: string;
116
+ }, {
117
+ createdAt: string;
118
+ createdBy: string;
119
+ createdByRole: string;
120
+ createdAtLocation: string;
121
+ registrationNumber: string;
122
+ acceptedAt: string;
123
+ }>>>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ DECLARED?: {
126
+ createdAt: string;
127
+ createdBy: string;
128
+ createdByRole: string;
129
+ createdAtLocation: string;
130
+ acceptedAt: string;
131
+ } | null | undefined;
132
+ REGISTERED?: {
133
+ createdAt: string;
134
+ createdBy: string;
135
+ createdByRole: string;
136
+ createdAtLocation: string;
137
+ registrationNumber: string;
138
+ acceptedAt: string;
139
+ } | null | undefined;
140
+ }, {
141
+ DECLARED?: {
142
+ createdAt: string;
143
+ createdBy: string;
144
+ createdByRole: string;
145
+ createdAtLocation: string;
146
+ acceptedAt: string;
147
+ } | null | undefined;
148
+ REGISTERED?: {
149
+ createdAt: string;
150
+ createdBy: string;
151
+ createdByRole: string;
152
+ createdAtLocation: string;
153
+ registrationNumber: string;
154
+ acceptedAt: string;
155
+ } | null | undefined;
156
+ }>;
29
157
  /**
30
158
  * Event metadata exposed to client.
31
159
  *
@@ -44,17 +172,95 @@ export declare const EventMetadata: z.ZodObject<{
44
172
  readonly REJECTED: "REJECTED";
45
173
  readonly ARCHIVED: "ARCHIVED";
46
174
  }>;
175
+ legalStatuses: z.ZodObject<{
176
+ DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
177
+ createdAt: z.ZodString;
178
+ createdBy: z.ZodString;
179
+ createdAtLocation: z.ZodString;
180
+ acceptedAt: z.ZodString;
181
+ createdByRole: z.ZodString;
182
+ }, "strip", z.ZodTypeAny, {
183
+ createdAt: string;
184
+ createdBy: string;
185
+ createdByRole: string;
186
+ createdAtLocation: string;
187
+ acceptedAt: string;
188
+ }, {
189
+ createdAt: string;
190
+ createdBy: string;
191
+ createdByRole: string;
192
+ createdAtLocation: string;
193
+ acceptedAt: string;
194
+ }>>>;
195
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
196
+ createdAt: z.ZodString;
197
+ createdBy: z.ZodString;
198
+ createdAtLocation: z.ZodString;
199
+ acceptedAt: z.ZodString;
200
+ createdByRole: z.ZodString;
201
+ }, {
202
+ registrationNumber: z.ZodString;
203
+ }>, "strip", z.ZodTypeAny, {
204
+ createdAt: string;
205
+ createdBy: string;
206
+ createdByRole: string;
207
+ createdAtLocation: string;
208
+ registrationNumber: string;
209
+ acceptedAt: string;
210
+ }, {
211
+ createdAt: string;
212
+ createdBy: string;
213
+ createdByRole: string;
214
+ createdAtLocation: string;
215
+ registrationNumber: string;
216
+ acceptedAt: string;
217
+ }>>>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ DECLARED?: {
220
+ createdAt: string;
221
+ createdBy: string;
222
+ createdByRole: string;
223
+ createdAtLocation: string;
224
+ acceptedAt: string;
225
+ } | null | undefined;
226
+ REGISTERED?: {
227
+ createdAt: string;
228
+ createdBy: string;
229
+ createdByRole: string;
230
+ createdAtLocation: string;
231
+ registrationNumber: string;
232
+ acceptedAt: string;
233
+ } | null | undefined;
234
+ }, {
235
+ DECLARED?: {
236
+ createdAt: string;
237
+ createdBy: string;
238
+ createdByRole: string;
239
+ createdAtLocation: string;
240
+ acceptedAt: string;
241
+ } | null | undefined;
242
+ REGISTERED?: {
243
+ createdAt: string;
244
+ createdBy: string;
245
+ createdByRole: string;
246
+ createdAtLocation: string;
247
+ registrationNumber: string;
248
+ acceptedAt: string;
249
+ } | null | undefined;
250
+ }>;
47
251
  createdAt: z.ZodString;
48
252
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
253
  createdBy: z.ZodString;
50
254
  updatedByUserRole: z.ZodString;
51
255
  createdAtLocation: z.ZodString;
52
- updatedAtLocation: z.ZodString;
256
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
257
  updatedAt: z.ZodString;
54
258
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
- updatedBy: z.ZodString;
259
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
260
  trackingId: z.ZodString;
57
- registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
+ flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
262
+ readonly CERTIFICATE_PRINTED: "certificate-printed";
263
+ }>]>, "many">;
58
264
  }, "strip", z.ZodTypeAny, {
59
265
  type: string;
60
266
  id: string;
@@ -62,14 +268,31 @@ export declare const EventMetadata: z.ZodObject<{
62
268
  createdAt: string;
63
269
  createdBy: string;
64
270
  createdAtLocation: string;
65
- updatedAtLocation: string;
66
271
  updatedAt: string;
67
272
  trackingId: string;
273
+ legalStatuses: {
274
+ DECLARED?: {
275
+ createdAt: string;
276
+ createdBy: string;
277
+ createdByRole: string;
278
+ createdAtLocation: string;
279
+ acceptedAt: string;
280
+ } | null | undefined;
281
+ REGISTERED?: {
282
+ createdAt: string;
283
+ createdBy: string;
284
+ createdByRole: string;
285
+ createdAtLocation: string;
286
+ registrationNumber: string;
287
+ acceptedAt: string;
288
+ } | null | undefined;
289
+ };
68
290
  updatedByUserRole: string;
69
- updatedBy: string;
291
+ flags: string[];
70
292
  assignedTo?: string | null | undefined;
71
- registrationNumber?: string | null | undefined;
72
293
  dateOfEvent?: string | null | undefined;
294
+ updatedAtLocation?: string | null | undefined;
295
+ updatedBy?: string | null | undefined;
73
296
  }, {
74
297
  type: string;
75
298
  id: string;
@@ -77,21 +300,50 @@ export declare const EventMetadata: z.ZodObject<{
77
300
  createdAt: string;
78
301
  createdBy: string;
79
302
  createdAtLocation: string;
80
- updatedAtLocation: string;
81
303
  updatedAt: string;
82
304
  trackingId: string;
305
+ legalStatuses: {
306
+ DECLARED?: {
307
+ createdAt: string;
308
+ createdBy: string;
309
+ createdByRole: string;
310
+ createdAtLocation: string;
311
+ acceptedAt: string;
312
+ } | null | undefined;
313
+ REGISTERED?: {
314
+ createdAt: string;
315
+ createdBy: string;
316
+ createdByRole: string;
317
+ createdAtLocation: string;
318
+ registrationNumber: string;
319
+ acceptedAt: string;
320
+ } | null | undefined;
321
+ };
83
322
  updatedByUserRole: string;
84
- updatedBy: string;
323
+ flags: string[];
85
324
  assignedTo?: string | null | undefined;
86
- registrationNumber?: string | null | undefined;
87
325
  dateOfEvent?: string | null | undefined;
326
+ updatedAtLocation?: string | null | undefined;
327
+ updatedBy?: string | null | undefined;
88
328
  }>;
89
329
  export type EventMetadata = z.infer<typeof EventMetadata>;
90
- export type EventMetadataKeys = `event.${keyof EventMetadata}`;
330
+ export declare const EventMetadataKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
331
+ export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
332
+ /**
333
+ * This ensures `event.field()` takes a key from `EventMetadata`
334
+ */
335
+ export declare const EventMetadataParameter: z.ZodObject<{
336
+ $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
339
+ }, {
340
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
341
+ }>;
342
+ export type EventMetadataParameter = z.infer<typeof EventMetadataParameter>;
91
343
  /**
92
344
  * Mapping of event metadata keys to translation configuration.
93
345
  * Consider introducing type in same manner as we have in FieldConfig.
94
346
  * We need a way to know how to parse it.
95
347
  */
96
- export declare const eventMetadataLabelMap: Record<EventMetadataKeys, TranslationConfig>;
348
+ export declare const eventMetadataLabelMap: Record<Exclude<`event.${EventMetadataKeys}`, 'event.legalStatuses'>, TranslationConfig>;
97
349
  //# sourceMappingURL=EventMetadata.d.ts.map
@@ -1088,6 +1088,139 @@ declare const DateField: z.ZodObject<z.objectUtil.extendShape<{
1088
1088
  } | undefined;
1089
1089
  }>;
1090
1090
  export type DateField = z.infer<typeof DateField>;
1091
+ declare const DateRangeField: z.ZodObject<z.objectUtil.extendShape<{
1092
+ id: z.ZodString;
1093
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1094
+ parent: z.ZodOptional<z.ZodObject<{
1095
+ _fieldId: z.ZodOptional<z.ZodString>;
1096
+ }, "strip", z.ZodTypeAny, {
1097
+ _fieldId?: string | undefined;
1098
+ }, {
1099
+ _fieldId?: string | undefined;
1100
+ }>>;
1101
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
1102
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1103
+ placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1104
+ id: string;
1105
+ description: string;
1106
+ defaultMessage: string;
1107
+ }>>;
1108
+ validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
1109
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1110
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1111
+ id: string;
1112
+ description: string;
1113
+ defaultMessage: string;
1114
+ }>;
1115
+ }, "strip", z.ZodTypeAny, {
1116
+ message: TranslationConfig;
1117
+ validator: import(".").JSONSchema;
1118
+ }, {
1119
+ message: {
1120
+ id: string;
1121
+ description: string;
1122
+ defaultMessage: string;
1123
+ };
1124
+ validator: import(".").JSONSchema;
1125
+ }>, "many">>>;
1126
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1127
+ id: string;
1128
+ description: string;
1129
+ defaultMessage: string;
1130
+ }>;
1131
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1132
+ }, {
1133
+ type: z.ZodLiteral<"DATE_RANGE">;
1134
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>;
1135
+ configuration: z.ZodOptional<z.ZodObject<{
1136
+ notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1137
+ id: string;
1138
+ description: string;
1139
+ defaultMessage: string;
1140
+ }>>;
1141
+ }, "strip", z.ZodTypeAny, {
1142
+ notice?: TranslationConfig | undefined;
1143
+ }, {
1144
+ notice?: {
1145
+ id: string;
1146
+ description: string;
1147
+ defaultMessage: string;
1148
+ } | undefined;
1149
+ }>>;
1150
+ }>, "strip", z.ZodTypeAny, {
1151
+ type: "DATE_RANGE";
1152
+ id: string;
1153
+ label: TranslationConfig;
1154
+ parent?: {
1155
+ _fieldId?: string | undefined;
1156
+ } | undefined;
1157
+ validation?: {
1158
+ message: TranslationConfig;
1159
+ validator: import(".").JSONSchema;
1160
+ }[] | undefined;
1161
+ required?: boolean | undefined;
1162
+ defaultValue?: string | [string, string] | undefined;
1163
+ conditionals?: ({
1164
+ type: "SHOW";
1165
+ conditional: import(".").JSONSchema;
1166
+ } | {
1167
+ type: "ENABLE";
1168
+ conditional: import(".").JSONSchema;
1169
+ } | {
1170
+ type: "DISPLAY_ON_REVIEW";
1171
+ conditional: import(".").JSONSchema;
1172
+ })[] | undefined;
1173
+ placeholder?: TranslationConfig | undefined;
1174
+ hideLabel?: boolean | undefined;
1175
+ configuration?: {
1176
+ notice?: TranslationConfig | undefined;
1177
+ } | undefined;
1178
+ }, {
1179
+ type: "DATE_RANGE";
1180
+ id: string;
1181
+ label: {
1182
+ id: string;
1183
+ description: string;
1184
+ defaultMessage: string;
1185
+ };
1186
+ parent?: {
1187
+ _fieldId?: string | undefined;
1188
+ } | undefined;
1189
+ validation?: {
1190
+ message: {
1191
+ id: string;
1192
+ description: string;
1193
+ defaultMessage: string;
1194
+ };
1195
+ validator: import(".").JSONSchema;
1196
+ }[] | undefined;
1197
+ required?: boolean | undefined;
1198
+ defaultValue?: string | [string, string] | undefined;
1199
+ conditionals?: ({
1200
+ type: "SHOW";
1201
+ conditional: import(".").JSONSchema;
1202
+ } | {
1203
+ type: "ENABLE";
1204
+ conditional: import(".").JSONSchema;
1205
+ } | {
1206
+ type: "DISPLAY_ON_REVIEW";
1207
+ conditional: import(".").JSONSchema;
1208
+ })[] | undefined;
1209
+ placeholder?: {
1210
+ id: string;
1211
+ description: string;
1212
+ defaultMessage: string;
1213
+ } | undefined;
1214
+ hideLabel?: boolean | undefined;
1215
+ configuration?: {
1216
+ notice?: {
1217
+ id: string;
1218
+ description: string;
1219
+ defaultMessage: string;
1220
+ } | undefined;
1221
+ } | undefined;
1222
+ }>;
1223
+ export type DateRangeField = z.infer<typeof DateRangeField>;
1091
1224
  declare const HtmlFontVariant: z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>;
1092
1225
  export type HtmlFontVariant = z.infer<typeof HtmlFontVariant>;
1093
1226
  declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
@@ -3303,14 +3436,14 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3303
3436
  }>;
3304
3437
  export type DataField = z.infer<typeof DataField>;
3305
3438
  /** @knipignore */
3306
- export type AllFields = typeof Address | typeof TextField | typeof NumberField | typeof TextAreaField | typeof DateField | typeof Paragraph | typeof RadioGroup | typeof BulletList | typeof PageHeader | typeof Select | typeof Checkbox | typeof File | typeof Country | typeof AdministrativeArea | typeof Divider | typeof Location | typeof Facility | typeof Office | typeof SignatureField | typeof EmailField | typeof FileUploadWithOptions | typeof DataField;
3439
+ export type AllFields = typeof Address | typeof TextField | typeof NumberField | typeof TextAreaField | typeof DateField | typeof DateRangeField | typeof Paragraph | typeof RadioGroup | typeof BulletList | typeof PageHeader | typeof Select | typeof Checkbox | typeof File | typeof Country | typeof AdministrativeArea | typeof Divider | typeof Location | typeof Facility | typeof Office | typeof SignatureField | typeof EmailField | typeof FileUploadWithOptions | typeof DataField;
3307
3440
  /** @knipignore */
3308
- export type Inferred = z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof Paragraph> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof Checkbox> | z.infer<typeof File> | z.infer<typeof FileUploadWithOptions> | z.infer<typeof Country> | z.infer<typeof AdministrativeArea> | z.infer<typeof Divider> | z.infer<typeof Location> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField> | z.infer<typeof DataField>;
3441
+ export type Inferred = z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof DateRangeField> | z.infer<typeof Paragraph> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof Checkbox> | z.infer<typeof File> | z.infer<typeof FileUploadWithOptions> | z.infer<typeof Country> | z.infer<typeof AdministrativeArea> | z.infer<typeof Divider> | z.infer<typeof Location> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField> | z.infer<typeof DataField>;
3309
3442
  /** @knipignore */
3310
3443
  /**
3311
3444
  * This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
3312
3445
  */
3313
- export type InferredInput = z.input<typeof Address> | z.input<typeof TextField> | z.input<typeof NumberField> | z.input<typeof TextAreaField> | z.input<typeof DateField> | z.input<typeof Paragraph> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof Checkbox> | z.input<typeof File> | z.input<typeof FileUploadWithOptions> | z.input<typeof Country> | z.input<typeof AdministrativeArea> | z.input<typeof Divider> | z.input<typeof Location> | z.input<typeof Facility> | z.input<typeof Office> | z.input<typeof SignatureField> | z.input<typeof EmailField> | z.input<typeof DataField>;
3446
+ export type InferredInput = z.input<typeof Address> | z.input<typeof TextField> | z.input<typeof NumberField> | z.input<typeof TextAreaField> | z.input<typeof DateField> | z.input<typeof DateRangeField> | z.input<typeof Paragraph> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof Checkbox> | z.input<typeof File> | z.input<typeof FileUploadWithOptions> | z.input<typeof Country> | z.input<typeof AdministrativeArea> | z.input<typeof Divider> | z.input<typeof Location> | z.input<typeof Facility> | z.input<typeof Office> | z.input<typeof SignatureField> | z.input<typeof EmailField> | z.input<typeof DataField>;
3314
3447
  export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
3315
3448
  id: z.ZodString;
3316
3449
  defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
@@ -4210,6 +4343,137 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4210
4343
  defaultMessage: string;
4211
4344
  }>;
4212
4345
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4346
+ }, {
4347
+ type: z.ZodLiteral<"DATE_RANGE">;
4348
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>;
4349
+ configuration: z.ZodOptional<z.ZodObject<{
4350
+ notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4351
+ id: string;
4352
+ description: string;
4353
+ defaultMessage: string;
4354
+ }>>;
4355
+ }, "strip", z.ZodTypeAny, {
4356
+ notice?: TranslationConfig | undefined;
4357
+ }, {
4358
+ notice?: {
4359
+ id: string;
4360
+ description: string;
4361
+ defaultMessage: string;
4362
+ } | undefined;
4363
+ }>>;
4364
+ }>, "strip", z.ZodTypeAny, {
4365
+ type: "DATE_RANGE";
4366
+ id: string;
4367
+ label: TranslationConfig;
4368
+ parent?: {
4369
+ _fieldId?: string | undefined;
4370
+ } | undefined;
4371
+ validation?: {
4372
+ message: TranslationConfig;
4373
+ validator: import(".").JSONSchema;
4374
+ }[] | undefined;
4375
+ required?: boolean | undefined;
4376
+ defaultValue?: string | [string, string] | undefined;
4377
+ conditionals?: ({
4378
+ type: "SHOW";
4379
+ conditional: import(".").JSONSchema;
4380
+ } | {
4381
+ type: "ENABLE";
4382
+ conditional: import(".").JSONSchema;
4383
+ } | {
4384
+ type: "DISPLAY_ON_REVIEW";
4385
+ conditional: import(".").JSONSchema;
4386
+ })[] | undefined;
4387
+ placeholder?: TranslationConfig | undefined;
4388
+ hideLabel?: boolean | undefined;
4389
+ configuration?: {
4390
+ notice?: TranslationConfig | undefined;
4391
+ } | undefined;
4392
+ }, {
4393
+ type: "DATE_RANGE";
4394
+ id: string;
4395
+ label: {
4396
+ id: string;
4397
+ description: string;
4398
+ defaultMessage: string;
4399
+ };
4400
+ parent?: {
4401
+ _fieldId?: string | undefined;
4402
+ } | undefined;
4403
+ validation?: {
4404
+ message: {
4405
+ id: string;
4406
+ description: string;
4407
+ defaultMessage: string;
4408
+ };
4409
+ validator: import(".").JSONSchema;
4410
+ }[] | undefined;
4411
+ required?: boolean | undefined;
4412
+ defaultValue?: string | [string, string] | undefined;
4413
+ conditionals?: ({
4414
+ type: "SHOW";
4415
+ conditional: import(".").JSONSchema;
4416
+ } | {
4417
+ type: "ENABLE";
4418
+ conditional: import(".").JSONSchema;
4419
+ } | {
4420
+ type: "DISPLAY_ON_REVIEW";
4421
+ conditional: import(".").JSONSchema;
4422
+ })[] | undefined;
4423
+ placeholder?: {
4424
+ id: string;
4425
+ description: string;
4426
+ defaultMessage: string;
4427
+ } | undefined;
4428
+ hideLabel?: boolean | undefined;
4429
+ configuration?: {
4430
+ notice?: {
4431
+ id: string;
4432
+ description: string;
4433
+ defaultMessage: string;
4434
+ } | undefined;
4435
+ } | undefined;
4436
+ }>, z.ZodObject<z.objectUtil.extendShape<{
4437
+ id: z.ZodString;
4438
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
4439
+ parent: z.ZodOptional<z.ZodObject<{
4440
+ _fieldId: z.ZodOptional<z.ZodString>;
4441
+ }, "strip", z.ZodTypeAny, {
4442
+ _fieldId?: string | undefined;
4443
+ }, {
4444
+ _fieldId?: string | undefined;
4445
+ }>>;
4446
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
4447
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4448
+ placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4449
+ id: string;
4450
+ description: string;
4451
+ defaultMessage: string;
4452
+ }>>;
4453
+ validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
4454
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
4455
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4456
+ id: string;
4457
+ description: string;
4458
+ defaultMessage: string;
4459
+ }>;
4460
+ }, "strip", z.ZodTypeAny, {
4461
+ message: TranslationConfig;
4462
+ validator: import(".").JSONSchema;
4463
+ }, {
4464
+ message: {
4465
+ id: string;
4466
+ description: string;
4467
+ defaultMessage: string;
4468
+ };
4469
+ validator: import(".").JSONSchema;
4470
+ }>, "many">>>;
4471
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4472
+ id: string;
4473
+ description: string;
4474
+ defaultMessage: string;
4475
+ }>;
4476
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4213
4477
  }, {
4214
4478
  type: z.ZodLiteral<"PARAGRAPH">;
4215
4479
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -5,6 +5,7 @@ export declare const FieldType: {
5
5
  readonly TEXTAREA: "TEXTAREA";
6
6
  readonly EMAIL: "EMAIL";
7
7
  readonly DATE: "DATE";
8
+ readonly DATE_RANGE: "DATE_RANGE";
8
9
  readonly PARAGRAPH: "PARAGRAPH";
9
10
  readonly PAGE_HEADER: "PAGE_HEADER";
10
11
  readonly RADIO_GROUP: "RADIO_GROUP";
@@ -22,10 +23,10 @@ export declare const FieldType: {
22
23
  readonly SIGNATURE: "SIGNATURE";
23
24
  readonly DATA: "DATA";
24
25
  };
25
- export declare const fieldTypes: ("ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA")[];
26
+ export declare const fieldTypes: ("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")[];
26
27
  export type FieldType = (typeof fieldTypes)[number];
27
28
  /**
28
29
  * Composite field types are field types that consist of multiple field values.
29
30
  */
30
- export declare const compositeFieldTypes: ("ADDRESS" | "FILE" | "FILE_WITH_OPTIONS")[];
31
+ export declare const compositeFieldTypes: ("ADDRESS" | "DATE_RANGE" | "FILE" | "FILE_WITH_OPTIONS")[];
31
32
  //# sourceMappingURL=FieldType.d.ts.map