@opencrvs/toolkit 2.2.0-rc.90ed9cd → 2.2.0-rc.ac299dc

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.
@@ -159,6 +159,7 @@ export declare const FieldConfigSchema: z.ZodObject<{
159
159
  }>;
160
160
  }, z.core.$strip>]>;
161
161
  }, z.core.$strip>>;
162
+ useFormDefaultValue: z.ZodOptional<z.ZodBoolean>;
162
163
  fieldId: z.ZodString;
163
164
  fieldType: z.ZodLiteral<"field">;
164
165
  }, z.core.$strip>;
@@ -347,6 +348,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
347
348
  }>;
348
349
  }, z.core.$strip>]>;
349
350
  }, z.core.$strip>>;
351
+ useFormDefaultValue: z.ZodOptional<z.ZodBoolean>;
350
352
  fieldId: z.ZodEnum<{
351
353
  "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
352
354
  "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
@@ -511,6 +513,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
511
513
  }>;
512
514
  }, z.core.$strip>]>;
513
515
  }, z.core.$strip>>;
516
+ useFormDefaultValue: z.ZodOptional<z.ZodBoolean>;
514
517
  fieldId: z.ZodString;
515
518
  fieldType: z.ZodLiteral<"field">;
516
519
  }, z.core.$strip>, z.ZodObject<{
@@ -667,6 +670,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
667
670
  }>;
668
671
  }, z.core.$strip>]>;
669
672
  }, z.core.$strip>>;
673
+ useFormDefaultValue: z.ZodOptional<z.ZodBoolean>;
670
674
  fieldId: z.ZodEnum<{
671
675
  "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
672
676
  "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
@@ -834,6 +838,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
834
838
  }>;
835
839
  }, z.core.$strip>]>;
836
840
  }, z.core.$strip>>;
841
+ useFormDefaultValue: z.ZodOptional<z.ZodBoolean>;
837
842
  fieldId: z.ZodString;
838
843
  fieldType: z.ZodLiteral<"field">;
839
844
  }, z.core.$strip>, z.ZodObject<{
@@ -990,6 +995,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
990
995
  }>;
991
996
  }, z.core.$strip>]>;
992
997
  }, z.core.$strip>>;
998
+ useFormDefaultValue: z.ZodOptional<z.ZodBoolean>;
993
999
  fieldId: z.ZodEnum<{
994
1000
  "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
995
1001
  "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
@@ -37,6 +37,7 @@ export declare function field(fieldId: string, options?: {
37
37
  validations?: ValidationConfig[];
38
38
  searchCriteriaLabelPrefix?: TranslationConfig;
39
39
  allowedLocations?: JurisdictionReference;
40
+ useFormDefaultValue?: boolean;
40
41
  }): {
41
42
  $$field: string;
42
43
  $$subfield: string[];
@@ -387,6 +388,7 @@ export declare function field(fieldId: string, options?: {
387
388
  validations?: ValidationConfig[];
388
389
  searchCriteriaLabelPrefix?: TranslationConfig;
389
390
  allowedLocations?: JurisdictionReference;
391
+ useFormDefaultValue?: boolean;
390
392
  fieldId: string;
391
393
  fieldType: 'field';
392
394
  } & {
@@ -400,6 +402,7 @@ export declare function field(fieldId: string, options?: {
400
402
  validations?: ValidationConfig[];
401
403
  searchCriteriaLabelPrefix?: TranslationConfig;
402
404
  allowedLocations?: JurisdictionReference;
405
+ useFormDefaultValue?: boolean;
403
406
  fieldId: string;
404
407
  fieldType: 'field';
405
408
  } & {
@@ -413,6 +416,7 @@ export declare function field(fieldId: string, options?: {
413
416
  validations?: ValidationConfig[];
414
417
  searchCriteriaLabelPrefix?: TranslationConfig;
415
418
  allowedLocations?: JurisdictionReference;
419
+ useFormDefaultValue?: boolean;
416
420
  fieldId: string;
417
421
  fieldType: 'field';
418
422
  } & {
@@ -426,6 +430,7 @@ export declare function field(fieldId: string, options?: {
426
430
  validations?: ValidationConfig[];
427
431
  searchCriteriaLabelPrefix?: TranslationConfig;
428
432
  allowedLocations?: JurisdictionReference;
433
+ useFormDefaultValue?: boolean;
429
434
  fieldId: string;
430
435
  fieldType: 'field';
431
436
  } & {
@@ -4051,6 +4051,9 @@ var BaseField3 = z30.object({
4051
4051
  ),
4052
4052
  allowedLocations: JurisdictionReference.optional().describe(
4053
4053
  `Override the allowedLocations for a location field in advanced search. Use this when the declaration form's allowedLocations references a scope (e.g. record.create) that search-only users don't have \u2014 specify record.search scope instead.`
4054
+ ),
4055
+ useFormDefaultValue: z30.boolean().optional().describe(
4056
+ `Set to false to open the field empty in advanced search instead of pre-filled with the declaration form's defaultValue.`
4054
4057
  )
4055
4058
  });
4056
4059
  var SearchQueryParams = z30.object({
@@ -3443,6 +3443,9 @@ var BaseField3 = z30.object({
3443
3443
  ),
3444
3444
  allowedLocations: JurisdictionReference.optional().describe(
3445
3445
  `Override the allowedLocations for a location field in advanced search. Use this when the declaration form's allowedLocations references a scope (e.g. record.create) that search-only users don't have \u2014 specify record.search scope instead.`
3446
+ ),
3447
+ useFormDefaultValue: z30.boolean().optional().describe(
3448
+ `Set to false to open the field empty in advanced search instead of pre-filled with the declaration form's defaultValue.`
3446
3449
  )
3447
3450
  });
3448
3451
  var SearchQueryParams = z30.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.2.0-rc.90ed9cd",
3
+ "version": "2.2.0-rc.ac299dc",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {