@opencrvs/toolkit 1.8.0-rc.fd1df48 → 1.8.0-rc.fd49b3a

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 (30) hide show
  1. package/dist/commons/api/router.d.ts +1806 -922
  2. package/dist/commons/conditionals/conditionals.d.ts +0 -12
  3. package/dist/commons/events/ActionConfig.d.ts +7830 -2014
  4. package/dist/commons/events/ActionDocument.d.ts +1948 -904
  5. package/dist/commons/events/ActionInput.d.ts +1680 -780
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +82 -33
  7. package/dist/commons/events/CompositeFieldValue.d.ts +9 -9
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +1086 -684
  9. package/dist/commons/events/Draft.d.ts +142 -70
  10. package/dist/commons/events/EventConfig.d.ts +3649 -935
  11. package/dist/commons/events/EventDocument.d.ts +1236 -588
  12. package/dist/commons/events/EventIndex.d.ts +339 -120
  13. package/dist/commons/events/FieldConfig.d.ts +455 -30
  14. package/dist/commons/events/FieldType.d.ts +2 -1
  15. package/dist/commons/events/FieldTypeMapping.d.ts +57 -25
  16. package/dist/commons/events/FieldValue.d.ts +45 -16
  17. package/dist/commons/events/FormConfig.d.ts +3005 -557
  18. package/dist/commons/events/PageConfig.d.ts +646 -38
  19. package/dist/commons/events/User.d.ts +6 -3
  20. package/dist/commons/events/WorkqueueConfig.d.ts +1990 -1174
  21. package/dist/commons/events/defineConfig.d.ts +498 -34
  22. package/dist/commons/events/event.d.ts +10 -18
  23. package/dist/commons/events/field.d.ts +13 -1
  24. package/dist/commons/events/test.utils.d.ts +43 -19
  25. package/dist/commons/events/utils.d.ts +2543 -77
  26. package/dist/conditionals/index.js +2 -34
  27. package/dist/events/index.js +963 -801
  28. package/dist/scopes/index.d.ts +92 -6
  29. package/dist/scopes/index.js +38 -9
  30. package/package.json +3 -3
@@ -1215,7 +1215,10 @@ declare const DateField: z.ZodObject<z.objectUtil.extendShape<{
1215
1215
  } | undefined;
1216
1216
  }>;
1217
1217
  export type DateField = z.infer<typeof DateField>;
1218
- declare const DateRangeField: z.ZodObject<z.objectUtil.extendShape<{
1218
+ /**
1219
+ * For internal use only. Needed for search functionality.
1220
+ */
1221
+ export declare const DateRangeField: z.ZodObject<z.objectUtil.extendShape<{
1219
1222
  id: z.ZodString;
1220
1223
  parent: z.ZodOptional<z.ZodObject<{
1221
1224
  $$field: z.ZodString;
@@ -1263,7 +1266,16 @@ declare const DateRangeField: z.ZodObject<z.objectUtil.extendShape<{
1263
1266
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1264
1267
  }, {
1265
1268
  type: z.ZodLiteral<"DATE_RANGE">;
1266
- defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>;
1269
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1270
+ start: z.ZodString;
1271
+ end: z.ZodString;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ start: string;
1274
+ end: string;
1275
+ }, {
1276
+ start: string;
1277
+ end: string;
1278
+ }>, z.ZodString]>>;
1267
1279
  configuration: z.ZodOptional<z.ZodObject<{
1268
1280
  notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1269
1281
  id: string;
@@ -1305,7 +1317,10 @@ declare const DateRangeField: z.ZodObject<z.objectUtil.extendShape<{
1305
1317
  placeholder?: TranslationConfig | undefined;
1306
1318
  helperText?: TranslationConfig | undefined;
1307
1319
  hideLabel?: boolean | undefined;
1308
- defaultValue?: string | [string, string] | undefined;
1320
+ defaultValue?: string | {
1321
+ start: string;
1322
+ end: string;
1323
+ } | undefined;
1309
1324
  configuration?: {
1310
1325
  notice?: TranslationConfig | undefined;
1311
1326
  } | undefined;
@@ -1351,7 +1366,10 @@ declare const DateRangeField: z.ZodObject<z.objectUtil.extendShape<{
1351
1366
  defaultMessage: string;
1352
1367
  } | undefined;
1353
1368
  hideLabel?: boolean | undefined;
1354
- defaultValue?: string | [string, string] | undefined;
1369
+ defaultValue?: string | {
1370
+ start: string;
1371
+ end: string;
1372
+ } | undefined;
1355
1373
  configuration?: {
1356
1374
  notice?: {
1357
1375
  id: string;
@@ -1681,16 +1699,16 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
1681
1699
  }, {
1682
1700
  type: z.ZodLiteral<"FILE">;
1683
1701
  defaultValue: z.ZodOptional<z.ZodObject<{
1684
- filename: z.ZodString;
1702
+ path: z.ZodEffects<z.ZodString, string, string>;
1685
1703
  originalFilename: z.ZodString;
1686
1704
  type: z.ZodString;
1687
1705
  }, "strip", z.ZodTypeAny, {
1688
1706
  type: string;
1689
- filename: string;
1707
+ path: string;
1690
1708
  originalFilename: string;
1691
1709
  }, {
1692
1710
  type: string;
1693
- filename: string;
1711
+ path: string;
1694
1712
  originalFilename: string;
1695
1713
  }>>;
1696
1714
  configuration: z.ZodDefault<z.ZodObject<{
@@ -1763,7 +1781,7 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
1763
1781
  hideLabel?: boolean | undefined;
1764
1782
  defaultValue?: {
1765
1783
  type: string;
1766
- filename: string;
1784
+ path: string;
1767
1785
  originalFilename: string;
1768
1786
  } | undefined;
1769
1787
  }, {
@@ -1810,7 +1828,7 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
1810
1828
  hideLabel?: boolean | undefined;
1811
1829
  defaultValue?: {
1812
1830
  type: string;
1813
- filename: string;
1831
+ path: string;
1814
1832
  originalFilename: string;
1815
1833
  } | undefined;
1816
1834
  configuration?: {
@@ -2332,6 +2350,179 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
2332
2350
  hideLabel?: boolean | undefined;
2333
2351
  defaultValue?: string | undefined;
2334
2352
  }>;
2353
+ export declare const SelectDateRangeOption: z.ZodObject<{
2354
+ value: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
2355
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2356
+ id: string;
2357
+ description: string;
2358
+ defaultMessage: string;
2359
+ }>;
2360
+ }, "strip", z.ZodTypeAny, {
2361
+ value: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2362
+ label: TranslationConfig;
2363
+ }, {
2364
+ value: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2365
+ label: {
2366
+ id: string;
2367
+ description: string;
2368
+ defaultMessage: string;
2369
+ };
2370
+ }>;
2371
+ export type SelectDateRangeOption = z.infer<typeof SelectDateRangeOption>;
2372
+ /**
2373
+ * For internal use only. Needed for search functionality.
2374
+ */
2375
+ export declare const SelectDateRangeField: z.ZodObject<z.objectUtil.extendShape<{
2376
+ id: z.ZodString;
2377
+ parent: z.ZodOptional<z.ZodObject<{
2378
+ $$field: z.ZodString;
2379
+ }, "strip", z.ZodTypeAny, {
2380
+ $$field: string;
2381
+ }, {
2382
+ $$field: string;
2383
+ }>>;
2384
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
2385
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2386
+ secured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2387
+ placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2388
+ id: string;
2389
+ description: string;
2390
+ defaultMessage: string;
2391
+ }>>;
2392
+ validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
2393
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
2394
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2395
+ id: string;
2396
+ description: string;
2397
+ defaultMessage: string;
2398
+ }>;
2399
+ }, "strip", z.ZodTypeAny, {
2400
+ message: TranslationConfig;
2401
+ validator: import(".").JSONSchema;
2402
+ }, {
2403
+ message: {
2404
+ id: string;
2405
+ description: string;
2406
+ defaultMessage: string;
2407
+ };
2408
+ validator: import(".").JSONSchema;
2409
+ }>, "many">>>;
2410
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2411
+ id: string;
2412
+ description: string;
2413
+ defaultMessage: string;
2414
+ }>;
2415
+ helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2416
+ id: string;
2417
+ description: string;
2418
+ defaultMessage: string;
2419
+ }>>;
2420
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2421
+ }, {
2422
+ type: z.ZodLiteral<"SELECT_DATE_RANGE">;
2423
+ defaultValue: z.ZodOptional<z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>>;
2424
+ options: z.ZodArray<z.ZodObject<{
2425
+ value: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
2426
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2427
+ id: string;
2428
+ description: string;
2429
+ defaultMessage: string;
2430
+ }>;
2431
+ }, "strip", z.ZodTypeAny, {
2432
+ value: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2433
+ label: TranslationConfig;
2434
+ }, {
2435
+ value: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2436
+ label: {
2437
+ id: string;
2438
+ description: string;
2439
+ defaultMessage: string;
2440
+ };
2441
+ }>, "many">;
2442
+ }>, "strip", z.ZodTypeAny, {
2443
+ type: "SELECT_DATE_RANGE";
2444
+ id: string;
2445
+ options: {
2446
+ value: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2447
+ label: TranslationConfig;
2448
+ }[];
2449
+ label: TranslationConfig;
2450
+ parent?: {
2451
+ $$field: string;
2452
+ } | undefined;
2453
+ validation?: {
2454
+ message: TranslationConfig;
2455
+ validator: import(".").JSONSchema;
2456
+ }[] | undefined;
2457
+ required?: boolean | undefined;
2458
+ conditionals?: ({
2459
+ type: "SHOW";
2460
+ conditional: import(".").JSONSchema;
2461
+ } | {
2462
+ type: "ENABLE";
2463
+ conditional: import(".").JSONSchema;
2464
+ } | {
2465
+ type: "DISPLAY_ON_REVIEW";
2466
+ conditional: import(".").JSONSchema;
2467
+ })[] | undefined;
2468
+ secured?: boolean | undefined;
2469
+ placeholder?: TranslationConfig | undefined;
2470
+ helperText?: TranslationConfig | undefined;
2471
+ hideLabel?: boolean | undefined;
2472
+ defaultValue?: "last7Days" | "last30Days" | "last90Days" | "last365Days" | undefined;
2473
+ }, {
2474
+ type: "SELECT_DATE_RANGE";
2475
+ id: string;
2476
+ options: {
2477
+ value: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2478
+ label: {
2479
+ id: string;
2480
+ description: string;
2481
+ defaultMessage: string;
2482
+ };
2483
+ }[];
2484
+ label: {
2485
+ id: string;
2486
+ description: string;
2487
+ defaultMessage: string;
2488
+ };
2489
+ parent?: {
2490
+ $$field: string;
2491
+ } | undefined;
2492
+ validation?: {
2493
+ message: {
2494
+ id: string;
2495
+ description: string;
2496
+ defaultMessage: string;
2497
+ };
2498
+ validator: import(".").JSONSchema;
2499
+ }[] | undefined;
2500
+ required?: boolean | undefined;
2501
+ conditionals?: ({
2502
+ type: "SHOW";
2503
+ conditional: import(".").JSONSchema;
2504
+ } | {
2505
+ type: "ENABLE";
2506
+ conditional: import(".").JSONSchema;
2507
+ } | {
2508
+ type: "DISPLAY_ON_REVIEW";
2509
+ conditional: import(".").JSONSchema;
2510
+ })[] | undefined;
2511
+ secured?: boolean | undefined;
2512
+ placeholder?: {
2513
+ id: string;
2514
+ description: string;
2515
+ defaultMessage: string;
2516
+ } | undefined;
2517
+ helperText?: {
2518
+ id: string;
2519
+ description: string;
2520
+ defaultMessage: string;
2521
+ } | undefined;
2522
+ hideLabel?: boolean | undefined;
2523
+ defaultValue?: "last7Days" | "last30Days" | "last90Days" | "last365Days" | undefined;
2524
+ }>;
2525
+ export type SelectDateRangeField = z.infer<typeof SelectDateRangeField>;
2335
2526
  declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
2336
2527
  id: z.ZodString;
2337
2528
  parent: z.ZodOptional<z.ZodObject<{
@@ -2402,10 +2593,14 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
2402
2593
  description: string;
2403
2594
  defaultMessage: string;
2404
2595
  }>>;
2596
+ includeMiddlename: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2597
+ searchMode: z.ZodOptional<z.ZodBoolean>;
2405
2598
  }, "strip", z.ZodTypeAny, {
2406
2599
  maxLength?: number | undefined;
2407
2600
  prefix?: TranslationConfig | undefined;
2408
2601
  postfix?: TranslationConfig | undefined;
2602
+ includeMiddlename?: boolean | undefined;
2603
+ searchMode?: boolean | undefined;
2409
2604
  }, {
2410
2605
  maxLength?: number | undefined;
2411
2606
  prefix?: {
@@ -2418,6 +2613,8 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
2418
2613
  description: string;
2419
2614
  defaultMessage: string;
2420
2615
  } | undefined;
2616
+ includeMiddlename?: boolean | undefined;
2617
+ searchMode?: boolean | undefined;
2421
2618
  }>>;
2422
2619
  }>, "strip", z.ZodTypeAny, {
2423
2620
  type: "NAME";
@@ -2453,6 +2650,8 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
2453
2650
  maxLength?: number | undefined;
2454
2651
  prefix?: TranslationConfig | undefined;
2455
2652
  postfix?: TranslationConfig | undefined;
2653
+ includeMiddlename?: boolean | undefined;
2654
+ searchMode?: boolean | undefined;
2456
2655
  } | undefined;
2457
2656
  }, {
2458
2657
  type: "NAME";
@@ -2512,6 +2711,8 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
2512
2711
  description: string;
2513
2712
  defaultMessage: string;
2514
2713
  } | undefined;
2714
+ includeMiddlename?: boolean | undefined;
2715
+ searchMode?: boolean | undefined;
2515
2716
  } | undefined;
2516
2717
  }>;
2517
2718
  declare const PhoneField: z.ZodObject<z.objectUtil.extendShape<{
@@ -3219,6 +3420,13 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
3219
3420
  }, {
3220
3421
  type: z.ZodLiteral<"LOCATION">;
3221
3422
  defaultValue: z.ZodOptional<z.ZodString>;
3423
+ configuration: z.ZodOptional<z.ZodObject<{
3424
+ searchableResource: z.ZodOptional<z.ZodArray<z.ZodEnum<["locations", "facilities", "offices"]>, "many">>;
3425
+ }, "strip", z.ZodTypeAny, {
3426
+ searchableResource?: ("locations" | "facilities" | "offices")[] | undefined;
3427
+ }, {
3428
+ searchableResource?: ("locations" | "facilities" | "offices")[] | undefined;
3429
+ }>>;
3222
3430
  }>, "strip", z.ZodTypeAny, {
3223
3431
  type: "LOCATION";
3224
3432
  id: string;
@@ -3246,6 +3454,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
3246
3454
  helperText?: TranslationConfig | undefined;
3247
3455
  hideLabel?: boolean | undefined;
3248
3456
  defaultValue?: string | undefined;
3457
+ configuration?: {
3458
+ searchableResource?: ("locations" | "facilities" | "offices")[] | undefined;
3459
+ } | undefined;
3249
3460
  }, {
3250
3461
  type: "LOCATION";
3251
3462
  id: string;
@@ -3289,6 +3500,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
3289
3500
  } | undefined;
3290
3501
  hideLabel?: boolean | undefined;
3291
3502
  defaultValue?: string | undefined;
3503
+ configuration?: {
3504
+ searchableResource?: ("locations" | "facilities" | "offices")[] | undefined;
3505
+ } | undefined;
3292
3506
  }>;
3293
3507
  export type Location = z.infer<typeof Location>;
3294
3508
  declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
@@ -3358,19 +3572,19 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
3358
3572
  };
3359
3573
  }>, "many">;
3360
3574
  defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
3361
- filename: z.ZodString;
3575
+ path: z.ZodEffects<z.ZodString, string, string>;
3362
3576
  originalFilename: z.ZodString;
3363
3577
  type: z.ZodString;
3364
3578
  option: z.ZodString;
3365
3579
  }, "strip", z.ZodTypeAny, {
3366
3580
  type: string;
3367
3581
  option: string;
3368
- filename: string;
3582
+ path: string;
3369
3583
  originalFilename: string;
3370
3584
  }, {
3371
3585
  type: string;
3372
3586
  option: string;
3373
- filename: string;
3587
+ path: string;
3374
3588
  originalFilename: string;
3375
3589
  }>, "many">>;
3376
3590
  configuration: z.ZodDefault<z.ZodObject<{
@@ -3420,7 +3634,7 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
3420
3634
  defaultValue?: {
3421
3635
  type: string;
3422
3636
  option: string;
3423
- filename: string;
3637
+ path: string;
3424
3638
  originalFilename: string;
3425
3639
  }[] | undefined;
3426
3640
  }, {
@@ -3476,7 +3690,7 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
3476
3690
  defaultValue?: {
3477
3691
  type: string;
3478
3692
  option: string;
3479
- filename: string;
3693
+ path: string;
3480
3694
  originalFilename: string;
3481
3695
  }[] | undefined;
3482
3696
  configuration?: {
@@ -3862,6 +4076,13 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3862
4076
  addressLine3?: string | undefined;
3863
4077
  postcodeOrZip?: string | undefined;
3864
4078
  }>]>>;
4079
+ configuration: z.ZodOptional<z.ZodObject<{
4080
+ searchMode: z.ZodOptional<z.ZodBoolean>;
4081
+ }, "strip", z.ZodTypeAny, {
4082
+ searchMode?: boolean | undefined;
4083
+ }, {
4084
+ searchMode?: boolean | undefined;
4085
+ }>>;
3865
4086
  }>, "strip", z.ZodTypeAny, {
3866
4087
  type: "ADDRESS";
3867
4088
  id: string;
@@ -3917,6 +4138,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3917
4138
  addressLine3?: string | undefined;
3918
4139
  postcodeOrZip?: string | undefined;
3919
4140
  } | undefined;
4141
+ configuration?: {
4142
+ searchMode?: boolean | undefined;
4143
+ } | undefined;
3920
4144
  }, {
3921
4145
  type: "ADDRESS";
3922
4146
  id: string;
@@ -3988,6 +4212,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3988
4212
  addressLine3?: string | undefined;
3989
4213
  postcodeOrZip?: string | undefined;
3990
4214
  } | undefined;
4215
+ configuration?: {
4216
+ searchMode?: boolean | undefined;
4217
+ } | undefined;
3991
4218
  }>;
3992
4219
  export declare const DataEntry: z.ZodUnion<[z.ZodObject<{
3993
4220
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
@@ -4238,9 +4465,7 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
4238
4465
  }>;
4239
4466
  export type DataField = z.infer<typeof DataField>;
4240
4467
  /** @knipignore */
4241
- 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 NameField | typeof PhoneField | typeof IdField | typeof Checkbox | typeof File | typeof Country | typeof AdministrativeArea | typeof Divider | typeof Location | typeof Facility | typeof Office | typeof SignatureField | typeof EmailField | typeof FileUploadWithOptions | typeof DataField;
4242
- /** @knipignore */
4243
- 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 NameField> | z.infer<typeof PhoneField> | z.infer<typeof IdField> | 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>;
4468
+ 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 SelectDateRangeField> | z.infer<typeof Paragraph> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof NameField> | z.infer<typeof PhoneField> | z.infer<typeof IdField> | 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>;
4244
4469
  /** @knipignore */
4245
4470
  /**
4246
4471
  * This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
@@ -4381,6 +4606,13 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4381
4606
  addressLine3?: string | undefined;
4382
4607
  postcodeOrZip?: string | undefined;
4383
4608
  }>]>>;
4609
+ configuration: z.ZodOptional<z.ZodObject<{
4610
+ searchMode: z.ZodOptional<z.ZodBoolean>;
4611
+ }, "strip", z.ZodTypeAny, {
4612
+ searchMode?: boolean | undefined;
4613
+ }, {
4614
+ searchMode?: boolean | undefined;
4615
+ }>>;
4384
4616
  }>, "strip", z.ZodTypeAny, {
4385
4617
  type: "ADDRESS";
4386
4618
  id: string;
@@ -4436,6 +4668,9 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4436
4668
  addressLine3?: string | undefined;
4437
4669
  postcodeOrZip?: string | undefined;
4438
4670
  } | undefined;
4671
+ configuration?: {
4672
+ searchMode?: boolean | undefined;
4673
+ } | undefined;
4439
4674
  }, {
4440
4675
  type: "ADDRESS";
4441
4676
  id: string;
@@ -4507,6 +4742,9 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4507
4742
  addressLine3?: string | undefined;
4508
4743
  postcodeOrZip?: string | undefined;
4509
4744
  } | undefined;
4745
+ configuration?: {
4746
+ searchMode?: boolean | undefined;
4747
+ } | undefined;
4510
4748
  }>, z.ZodObject<z.objectUtil.extendShape<{
4511
4749
  id: z.ZodString;
4512
4750
  parent: z.ZodOptional<z.ZodObject<{
@@ -5217,7 +5455,16 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5217
5455
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5218
5456
  }, {
5219
5457
  type: z.ZodLiteral<"DATE_RANGE">;
5220
- defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>;
5458
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
5459
+ start: z.ZodString;
5460
+ end: z.ZodString;
5461
+ }, "strip", z.ZodTypeAny, {
5462
+ start: string;
5463
+ end: string;
5464
+ }, {
5465
+ start: string;
5466
+ end: string;
5467
+ }>, z.ZodString]>>;
5221
5468
  configuration: z.ZodOptional<z.ZodObject<{
5222
5469
  notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5223
5470
  id: string;
@@ -5259,7 +5506,10 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5259
5506
  placeholder?: TranslationConfig | undefined;
5260
5507
  helperText?: TranslationConfig | undefined;
5261
5508
  hideLabel?: boolean | undefined;
5262
- defaultValue?: string | [string, string] | undefined;
5509
+ defaultValue?: string | {
5510
+ start: string;
5511
+ end: string;
5512
+ } | undefined;
5263
5513
  configuration?: {
5264
5514
  notice?: TranslationConfig | undefined;
5265
5515
  } | undefined;
@@ -5305,7 +5555,10 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5305
5555
  defaultMessage: string;
5306
5556
  } | undefined;
5307
5557
  hideLabel?: boolean | undefined;
5308
- defaultValue?: string | [string, string] | undefined;
5558
+ defaultValue?: string | {
5559
+ start: string;
5560
+ end: string;
5561
+ } | undefined;
5309
5562
  configuration?: {
5310
5563
  notice?: {
5311
5564
  id: string;
@@ -5359,6 +5612,155 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5359
5612
  defaultMessage: string;
5360
5613
  }>>;
5361
5614
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5615
+ }, {
5616
+ type: z.ZodLiteral<"SELECT_DATE_RANGE">;
5617
+ defaultValue: z.ZodOptional<z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>>;
5618
+ options: z.ZodArray<z.ZodObject<{
5619
+ value: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
5620
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5621
+ id: string;
5622
+ description: string;
5623
+ defaultMessage: string;
5624
+ }>;
5625
+ }, "strip", z.ZodTypeAny, {
5626
+ value: "last7Days" | "last30Days" | "last90Days" | "last365Days";
5627
+ label: TranslationConfig;
5628
+ }, {
5629
+ value: "last7Days" | "last30Days" | "last90Days" | "last365Days";
5630
+ label: {
5631
+ id: string;
5632
+ description: string;
5633
+ defaultMessage: string;
5634
+ };
5635
+ }>, "many">;
5636
+ }>, "strip", z.ZodTypeAny, {
5637
+ type: "SELECT_DATE_RANGE";
5638
+ id: string;
5639
+ options: {
5640
+ value: "last7Days" | "last30Days" | "last90Days" | "last365Days";
5641
+ label: TranslationConfig;
5642
+ }[];
5643
+ label: TranslationConfig;
5644
+ parent?: {
5645
+ $$field: string;
5646
+ } | undefined;
5647
+ validation?: {
5648
+ message: TranslationConfig;
5649
+ validator: import(".").JSONSchema;
5650
+ }[] | undefined;
5651
+ required?: boolean | undefined;
5652
+ conditionals?: ({
5653
+ type: "SHOW";
5654
+ conditional: import(".").JSONSchema;
5655
+ } | {
5656
+ type: "ENABLE";
5657
+ conditional: import(".").JSONSchema;
5658
+ } | {
5659
+ type: "DISPLAY_ON_REVIEW";
5660
+ conditional: import(".").JSONSchema;
5661
+ })[] | undefined;
5662
+ secured?: boolean | undefined;
5663
+ placeholder?: TranslationConfig | undefined;
5664
+ helperText?: TranslationConfig | undefined;
5665
+ hideLabel?: boolean | undefined;
5666
+ defaultValue?: "last7Days" | "last30Days" | "last90Days" | "last365Days" | undefined;
5667
+ }, {
5668
+ type: "SELECT_DATE_RANGE";
5669
+ id: string;
5670
+ options: {
5671
+ value: "last7Days" | "last30Days" | "last90Days" | "last365Days";
5672
+ label: {
5673
+ id: string;
5674
+ description: string;
5675
+ defaultMessage: string;
5676
+ };
5677
+ }[];
5678
+ label: {
5679
+ id: string;
5680
+ description: string;
5681
+ defaultMessage: string;
5682
+ };
5683
+ parent?: {
5684
+ $$field: string;
5685
+ } | undefined;
5686
+ validation?: {
5687
+ message: {
5688
+ id: string;
5689
+ description: string;
5690
+ defaultMessage: string;
5691
+ };
5692
+ validator: import(".").JSONSchema;
5693
+ }[] | undefined;
5694
+ required?: boolean | undefined;
5695
+ conditionals?: ({
5696
+ type: "SHOW";
5697
+ conditional: import(".").JSONSchema;
5698
+ } | {
5699
+ type: "ENABLE";
5700
+ conditional: import(".").JSONSchema;
5701
+ } | {
5702
+ type: "DISPLAY_ON_REVIEW";
5703
+ conditional: import(".").JSONSchema;
5704
+ })[] | undefined;
5705
+ secured?: boolean | undefined;
5706
+ placeholder?: {
5707
+ id: string;
5708
+ description: string;
5709
+ defaultMessage: string;
5710
+ } | undefined;
5711
+ helperText?: {
5712
+ id: string;
5713
+ description: string;
5714
+ defaultMessage: string;
5715
+ } | undefined;
5716
+ hideLabel?: boolean | undefined;
5717
+ defaultValue?: "last7Days" | "last30Days" | "last90Days" | "last365Days" | undefined;
5718
+ }>, z.ZodObject<z.objectUtil.extendShape<{
5719
+ id: z.ZodString;
5720
+ parent: z.ZodOptional<z.ZodObject<{
5721
+ $$field: z.ZodString;
5722
+ }, "strip", z.ZodTypeAny, {
5723
+ $$field: string;
5724
+ }, {
5725
+ $$field: string;
5726
+ }>>;
5727
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
5728
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5729
+ secured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5730
+ placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5731
+ id: string;
5732
+ description: string;
5733
+ defaultMessage: string;
5734
+ }>>;
5735
+ validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
5736
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
5737
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5738
+ id: string;
5739
+ description: string;
5740
+ defaultMessage: string;
5741
+ }>;
5742
+ }, "strip", z.ZodTypeAny, {
5743
+ message: TranslationConfig;
5744
+ validator: import(".").JSONSchema;
5745
+ }, {
5746
+ message: {
5747
+ id: string;
5748
+ description: string;
5749
+ defaultMessage: string;
5750
+ };
5751
+ validator: import(".").JSONSchema;
5752
+ }>, "many">>>;
5753
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5754
+ id: string;
5755
+ description: string;
5756
+ defaultMessage: string;
5757
+ }>;
5758
+ helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5759
+ id: string;
5760
+ description: string;
5761
+ defaultMessage: string;
5762
+ }>>;
5763
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5362
5764
  }, {
5363
5765
  type: z.ZodLiteral<"PARAGRAPH">;
5364
5766
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -6130,10 +6532,14 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6130
6532
  description: string;
6131
6533
  defaultMessage: string;
6132
6534
  }>>;
6535
+ includeMiddlename: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6536
+ searchMode: z.ZodOptional<z.ZodBoolean>;
6133
6537
  }, "strip", z.ZodTypeAny, {
6134
6538
  maxLength?: number | undefined;
6135
6539
  prefix?: TranslationConfig | undefined;
6136
6540
  postfix?: TranslationConfig | undefined;
6541
+ includeMiddlename?: boolean | undefined;
6542
+ searchMode?: boolean | undefined;
6137
6543
  }, {
6138
6544
  maxLength?: number | undefined;
6139
6545
  prefix?: {
@@ -6146,6 +6552,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6146
6552
  description: string;
6147
6553
  defaultMessage: string;
6148
6554
  } | undefined;
6555
+ includeMiddlename?: boolean | undefined;
6556
+ searchMode?: boolean | undefined;
6149
6557
  }>>;
6150
6558
  }>, "strip", z.ZodTypeAny, {
6151
6559
  type: "NAME";
@@ -6181,6 +6589,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6181
6589
  maxLength?: number | undefined;
6182
6590
  prefix?: TranslationConfig | undefined;
6183
6591
  postfix?: TranslationConfig | undefined;
6592
+ includeMiddlename?: boolean | undefined;
6593
+ searchMode?: boolean | undefined;
6184
6594
  } | undefined;
6185
6595
  }, {
6186
6596
  type: "NAME";
@@ -6240,6 +6650,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6240
6650
  description: string;
6241
6651
  defaultMessage: string;
6242
6652
  } | undefined;
6653
+ includeMiddlename?: boolean | undefined;
6654
+ searchMode?: boolean | undefined;
6243
6655
  } | undefined;
6244
6656
  }>, z.ZodObject<z.objectUtil.extendShape<{
6245
6657
  id: z.ZodString;
@@ -6647,16 +7059,16 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6647
7059
  }, {
6648
7060
  type: z.ZodLiteral<"FILE">;
6649
7061
  defaultValue: z.ZodOptional<z.ZodObject<{
6650
- filename: z.ZodString;
7062
+ path: z.ZodEffects<z.ZodString, string, string>;
6651
7063
  originalFilename: z.ZodString;
6652
7064
  type: z.ZodString;
6653
7065
  }, "strip", z.ZodTypeAny, {
6654
7066
  type: string;
6655
- filename: string;
7067
+ path: string;
6656
7068
  originalFilename: string;
6657
7069
  }, {
6658
7070
  type: string;
6659
- filename: string;
7071
+ path: string;
6660
7072
  originalFilename: string;
6661
7073
  }>>;
6662
7074
  configuration: z.ZodDefault<z.ZodObject<{
@@ -6729,7 +7141,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6729
7141
  hideLabel?: boolean | undefined;
6730
7142
  defaultValue?: {
6731
7143
  type: string;
6732
- filename: string;
7144
+ path: string;
6733
7145
  originalFilename: string;
6734
7146
  } | undefined;
6735
7147
  }, {
@@ -6776,7 +7188,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6776
7188
  hideLabel?: boolean | undefined;
6777
7189
  defaultValue?: {
6778
7190
  type: string;
6779
- filename: string;
7191
+ path: string;
6780
7192
  originalFilename: string;
6781
7193
  } | undefined;
6782
7194
  configuration?: {
@@ -7226,6 +7638,13 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7226
7638
  }, {
7227
7639
  type: z.ZodLiteral<"LOCATION">;
7228
7640
  defaultValue: z.ZodOptional<z.ZodString>;
7641
+ configuration: z.ZodOptional<z.ZodObject<{
7642
+ searchableResource: z.ZodOptional<z.ZodArray<z.ZodEnum<["locations", "facilities", "offices"]>, "many">>;
7643
+ }, "strip", z.ZodTypeAny, {
7644
+ searchableResource?: ("locations" | "facilities" | "offices")[] | undefined;
7645
+ }, {
7646
+ searchableResource?: ("locations" | "facilities" | "offices")[] | undefined;
7647
+ }>>;
7229
7648
  }>, "strip", z.ZodTypeAny, {
7230
7649
  type: "LOCATION";
7231
7650
  id: string;
@@ -7253,6 +7672,9 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7253
7672
  helperText?: TranslationConfig | undefined;
7254
7673
  hideLabel?: boolean | undefined;
7255
7674
  defaultValue?: string | undefined;
7675
+ configuration?: {
7676
+ searchableResource?: ("locations" | "facilities" | "offices")[] | undefined;
7677
+ } | undefined;
7256
7678
  }, {
7257
7679
  type: "LOCATION";
7258
7680
  id: string;
@@ -7296,6 +7718,9 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7296
7718
  } | undefined;
7297
7719
  hideLabel?: boolean | undefined;
7298
7720
  defaultValue?: string | undefined;
7721
+ configuration?: {
7722
+ searchableResource?: ("locations" | "facilities" | "offices")[] | undefined;
7723
+ } | undefined;
7299
7724
  }>, z.ZodObject<z.objectUtil.extendShape<{
7300
7725
  id: z.ZodString;
7301
7726
  parent: z.ZodOptional<z.ZodObject<{
@@ -7881,19 +8306,19 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7881
8306
  };
7882
8307
  }>, "many">;
7883
8308
  defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
7884
- filename: z.ZodString;
8309
+ path: z.ZodEffects<z.ZodString, string, string>;
7885
8310
  originalFilename: z.ZodString;
7886
8311
  type: z.ZodString;
7887
8312
  option: z.ZodString;
7888
8313
  }, "strip", z.ZodTypeAny, {
7889
8314
  type: string;
7890
8315
  option: string;
7891
- filename: string;
8316
+ path: string;
7892
8317
  originalFilename: string;
7893
8318
  }, {
7894
8319
  type: string;
7895
8320
  option: string;
7896
- filename: string;
8321
+ path: string;
7897
8322
  originalFilename: string;
7898
8323
  }>, "many">>;
7899
8324
  configuration: z.ZodDefault<z.ZodObject<{
@@ -7943,7 +8368,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7943
8368
  defaultValue?: {
7944
8369
  type: string;
7945
8370
  option: string;
7946
- filename: string;
8371
+ path: string;
7947
8372
  originalFilename: string;
7948
8373
  }[] | undefined;
7949
8374
  }, {
@@ -7999,7 +8424,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7999
8424
  defaultValue?: {
8000
8425
  type: string;
8001
8426
  option: string;
8002
- filename: string;
8427
+ path: string;
8003
8428
  originalFilename: string;
8004
8429
  }[] | undefined;
8005
8430
  configuration?: {