@opencrvs/toolkit 1.8.1-rc.38ac682 → 1.8.1-rc.45a3ec4

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.
@@ -946,37 +946,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
946
946
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
947
947
  hideLabel?: boolean | undefined;
948
948
  uncorrectable?: boolean | undefined;
949
- } | {
950
- type: "PRINT_BUTTON";
951
- id: string;
952
- label: import("./TranslationConfig").TranslationConfig;
953
- configuration: {
954
- template: string;
955
- buttonLabel?: import("./TranslationConfig").TranslationConfig | undefined;
956
- };
957
- parent?: {
958
- $$field: string;
959
- } | undefined;
960
- validation?: {
961
- message: import("./TranslationConfig").TranslationConfig;
962
- validator: import(".").JSONSchema;
963
- }[] | undefined;
964
- required?: boolean | undefined;
965
- conditionals?: ({
966
- type: "SHOW";
967
- conditional: import(".").JSONSchema;
968
- } | {
969
- type: "ENABLE";
970
- conditional: import(".").JSONSchema;
971
- } | {
972
- type: "DISPLAY_ON_REVIEW";
973
- conditional: import(".").JSONSchema;
974
- })[] | undefined;
975
- secured?: boolean | undefined;
976
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
977
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
978
- hideLabel?: boolean | undefined;
979
- uncorrectable?: boolean | undefined;
980
949
  })[];
981
950
  conditional?: import(".").JSONSchema | undefined;
982
951
  }[];
@@ -1927,37 +1896,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
1927
1896
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1928
1897
  hideLabel?: boolean | undefined;
1929
1898
  uncorrectable?: boolean | undefined;
1930
- } | {
1931
- type: "PRINT_BUTTON";
1932
- id: string;
1933
- label: import("./TranslationConfig").TranslationConfig;
1934
- configuration: {
1935
- template: string;
1936
- buttonLabel?: import("./TranslationConfig").TranslationConfig | undefined;
1937
- };
1938
- parent?: {
1939
- $$field: string;
1940
- } | undefined;
1941
- validation?: {
1942
- message: import("./TranslationConfig").TranslationConfig;
1943
- validator: import(".").JSONSchema;
1944
- }[] | undefined;
1945
- required?: boolean | undefined;
1946
- conditionals?: ({
1947
- type: "SHOW";
1948
- conditional: import(".").JSONSchema;
1949
- } | {
1950
- type: "ENABLE";
1951
- conditional: import(".").JSONSchema;
1952
- } | {
1953
- type: "DISPLAY_ON_REVIEW";
1954
- conditional: import(".").JSONSchema;
1955
- })[] | undefined;
1956
- secured?: boolean | undefined;
1957
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
1958
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1959
- hideLabel?: boolean | undefined;
1960
- uncorrectable?: boolean | undefined;
1961
1899
  })[];
1962
1900
  };
1963
1901
  draft?: boolean | undefined;
@@ -2907,37 +2845,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
2907
2845
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2908
2846
  hideLabel?: boolean | undefined;
2909
2847
  uncorrectable?: boolean | undefined;
2910
- } | {
2911
- type: "PRINT_BUTTON";
2912
- id: string;
2913
- label: import("./TranslationConfig").TranslationConfig;
2914
- configuration: {
2915
- template: string;
2916
- buttonLabel?: import("./TranslationConfig").TranslationConfig | undefined;
2917
- };
2918
- parent?: {
2919
- $$field: string;
2920
- } | undefined;
2921
- validation?: {
2922
- message: import("./TranslationConfig").TranslationConfig;
2923
- validator: import(".").JSONSchema;
2924
- }[] | undefined;
2925
- required?: boolean | undefined;
2926
- conditionals?: ({
2927
- type: "SHOW";
2928
- conditional: import(".").JSONSchema;
2929
- } | {
2930
- type: "ENABLE";
2931
- conditional: import(".").JSONSchema;
2932
- } | {
2933
- type: "DISPLAY_ON_REVIEW";
2934
- conditional: import(".").JSONSchema;
2935
- })[] | undefined;
2936
- secured?: boolean | undefined;
2937
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
2938
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2939
- hideLabel?: boolean | undefined;
2940
- uncorrectable?: boolean | undefined;
2941
2848
  })[];
2942
2849
  };
2943
2850
  draft?: boolean | undefined;
@@ -3887,37 +3794,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
3887
3794
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3888
3795
  hideLabel?: boolean | undefined;
3889
3796
  uncorrectable?: boolean | undefined;
3890
- } | {
3891
- type: "PRINT_BUTTON";
3892
- id: string;
3893
- label: import("./TranslationConfig").TranslationConfig;
3894
- configuration: {
3895
- template: string;
3896
- buttonLabel?: import("./TranslationConfig").TranslationConfig | undefined;
3897
- };
3898
- parent?: {
3899
- $$field: string;
3900
- } | undefined;
3901
- validation?: {
3902
- message: import("./TranslationConfig").TranslationConfig;
3903
- validator: import(".").JSONSchema;
3904
- }[] | undefined;
3905
- required?: boolean | undefined;
3906
- conditionals?: ({
3907
- type: "SHOW";
3908
- conditional: import(".").JSONSchema;
3909
- } | {
3910
- type: "ENABLE";
3911
- conditional: import(".").JSONSchema;
3912
- } | {
3913
- type: "DISPLAY_ON_REVIEW";
3914
- conditional: import(".").JSONSchema;
3915
- })[] | undefined;
3916
- secured?: boolean | undefined;
3917
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
3918
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3919
- hideLabel?: boolean | undefined;
3920
- uncorrectable?: boolean | undefined;
3921
3797
  })[];
3922
3798
  };
3923
3799
  draft?: boolean | undefined;
@@ -4867,37 +4743,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
4867
4743
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
4868
4744
  hideLabel?: boolean | undefined;
4869
4745
  uncorrectable?: boolean | undefined;
4870
- } | {
4871
- type: "PRINT_BUTTON";
4872
- id: string;
4873
- label: import("./TranslationConfig").TranslationConfig;
4874
- configuration: {
4875
- template: string;
4876
- buttonLabel?: import("./TranslationConfig").TranslationConfig | undefined;
4877
- };
4878
- parent?: {
4879
- $$field: string;
4880
- } | undefined;
4881
- validation?: {
4882
- message: import("./TranslationConfig").TranslationConfig;
4883
- validator: import(".").JSONSchema;
4884
- }[] | undefined;
4885
- required?: boolean | undefined;
4886
- conditionals?: ({
4887
- type: "SHOW";
4888
- conditional: import(".").JSONSchema;
4889
- } | {
4890
- type: "ENABLE";
4891
- conditional: import(".").JSONSchema;
4892
- } | {
4893
- type: "DISPLAY_ON_REVIEW";
4894
- conditional: import(".").JSONSchema;
4895
- })[] | undefined;
4896
- secured?: boolean | undefined;
4897
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
4898
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
4899
- hideLabel?: boolean | undefined;
4900
- uncorrectable?: boolean | undefined;
4901
4746
  })[];
4902
4747
  };
4903
4748
  draft?: boolean | undefined;
@@ -5895,37 +5740,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
5895
5740
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
5896
5741
  hideLabel?: boolean | undefined;
5897
5742
  uncorrectable?: boolean | undefined;
5898
- } | {
5899
- type: "PRINT_BUTTON";
5900
- id: string;
5901
- label: import("./TranslationConfig").TranslationConfig;
5902
- configuration: {
5903
- template: string;
5904
- buttonLabel?: import("./TranslationConfig").TranslationConfig | undefined;
5905
- };
5906
- parent?: {
5907
- $$field: string;
5908
- } | undefined;
5909
- validation?: {
5910
- message: import("./TranslationConfig").TranslationConfig;
5911
- validator: import(".").JSONSchema;
5912
- }[] | undefined;
5913
- required?: boolean | undefined;
5914
- conditionals?: ({
5915
- type: "SHOW";
5916
- conditional: import(".").JSONSchema;
5917
- } | {
5918
- type: "ENABLE";
5919
- conditional: import(".").JSONSchema;
5920
- } | {
5921
- type: "DISPLAY_ON_REVIEW";
5922
- conditional: import(".").JSONSchema;
5923
- })[] | undefined;
5924
- secured?: boolean | undefined;
5925
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
5926
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
5927
- hideLabel?: boolean | undefined;
5928
- uncorrectable?: boolean | undefined;
5929
5743
  })[];
5930
5744
  conditional?: import(".").JSONSchema | undefined;
5931
5745
  } | {
@@ -6878,37 +6692,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
6878
6692
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
6879
6693
  hideLabel?: boolean | undefined;
6880
6694
  uncorrectable?: boolean | undefined;
6881
- } | {
6882
- type: "PRINT_BUTTON";
6883
- id: string;
6884
- label: import("./TranslationConfig").TranslationConfig;
6885
- configuration: {
6886
- template: string;
6887
- buttonLabel?: import("./TranslationConfig").TranslationConfig | undefined;
6888
- };
6889
- parent?: {
6890
- $$field: string;
6891
- } | undefined;
6892
- validation?: {
6893
- message: import("./TranslationConfig").TranslationConfig;
6894
- validator: import(".").JSONSchema;
6895
- }[] | undefined;
6896
- required?: boolean | undefined;
6897
- conditionals?: ({
6898
- type: "SHOW";
6899
- conditional: import(".").JSONSchema;
6900
- } | {
6901
- type: "ENABLE";
6902
- conditional: import(".").JSONSchema;
6903
- } | {
6904
- type: "DISPLAY_ON_REVIEW";
6905
- conditional: import(".").JSONSchema;
6906
- })[] | undefined;
6907
- secured?: boolean | undefined;
6908
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
6909
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
6910
- hideLabel?: boolean | undefined;
6911
- uncorrectable?: boolean | undefined;
6912
6695
  })[];
6913
6696
  conditional?: import(".").JSONSchema | undefined;
6914
6697
  })[];
@@ -7864,37 +7647,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
7864
7647
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
7865
7648
  hideLabel?: boolean | undefined;
7866
7649
  uncorrectable?: boolean | undefined;
7867
- } | {
7868
- type: "PRINT_BUTTON";
7869
- id: string;
7870
- label: import("./TranslationConfig").TranslationConfig;
7871
- configuration: {
7872
- template: string;
7873
- buttonLabel?: import("./TranslationConfig").TranslationConfig | undefined;
7874
- };
7875
- parent?: {
7876
- $$field: string;
7877
- } | undefined;
7878
- validation?: {
7879
- message: import("./TranslationConfig").TranslationConfig;
7880
- validator: import(".").JSONSchema;
7881
- }[] | undefined;
7882
- required?: boolean | undefined;
7883
- conditionals?: ({
7884
- type: "SHOW";
7885
- conditional: import(".").JSONSchema;
7886
- } | {
7887
- type: "ENABLE";
7888
- conditional: import(".").JSONSchema;
7889
- } | {
7890
- type: "DISPLAY_ON_REVIEW";
7891
- conditional: import(".").JSONSchema;
7892
- })[] | undefined;
7893
- secured?: boolean | undefined;
7894
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
7895
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
7896
- hideLabel?: boolean | undefined;
7897
- uncorrectable?: boolean | undefined;
7898
7650
  })[];
7899
7651
  conditional?: import(".").JSONSchema | undefined;
7900
7652
  } | {
@@ -8847,37 +8599,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
8847
8599
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
8848
8600
  hideLabel?: boolean | undefined;
8849
8601
  uncorrectable?: boolean | undefined;
8850
- } | {
8851
- type: "PRINT_BUTTON";
8852
- id: string;
8853
- label: import("./TranslationConfig").TranslationConfig;
8854
- configuration: {
8855
- template: string;
8856
- buttonLabel?: import("./TranslationConfig").TranslationConfig | undefined;
8857
- };
8858
- parent?: {
8859
- $$field: string;
8860
- } | undefined;
8861
- validation?: {
8862
- message: import("./TranslationConfig").TranslationConfig;
8863
- validator: import(".").JSONSchema;
8864
- }[] | undefined;
8865
- required?: boolean | undefined;
8866
- conditionals?: ({
8867
- type: "SHOW";
8868
- conditional: import(".").JSONSchema;
8869
- } | {
8870
- type: "ENABLE";
8871
- conditional: import(".").JSONSchema;
8872
- } | {
8873
- type: "DISPLAY_ON_REVIEW";
8874
- conditional: import(".").JSONSchema;
8875
- })[] | undefined;
8876
- secured?: boolean | undefined;
8877
- placeholder?: import("./TranslationConfig").TranslationConfig | undefined;
8878
- helperText?: import("./TranslationConfig").TranslationConfig | undefined;
8879
- hideLabel?: boolean | undefined;
8880
- uncorrectable?: boolean | undefined;
8881
8602
  })[];
8882
8603
  conditional?: import(".").JSONSchema | undefined;
8883
8604
  })[];
@@ -8936,7 +8657,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
8936
8657
  title: import("./TranslationConfig").TranslationConfig;
8937
8658
  fields: ({
8938
8659
  config: {
8939
- type: "exact" | "fuzzy" | "range";
8660
+ type: "exact" | "fuzzy" | "range" | "within";
8940
8661
  };
8941
8662
  fieldId: string;
8942
8663
  fieldType: "field";
@@ -8963,7 +8684,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
8963
8684
  excludeInSearchQuery?: boolean | undefined;
8964
8685
  } | {
8965
8686
  config: {
8966
- type: "exact" | "fuzzy" | "range";
8687
+ type: "exact" | "fuzzy" | "range" | "within";
8967
8688
  };
8968
8689
  fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
8969
8690
  fieldType: "event";
@@ -33,6 +33,14 @@ declare function eventFn(fieldId: EventFieldId): {
33
33
  type: "fuzzy";
34
34
  };
35
35
  };
36
+ within: () => {
37
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
38
+ fieldType: "event";
39
+ } & {
40
+ config: {
41
+ type: "within";
42
+ };
43
+ };
36
44
  };
37
45
  declare const event: typeof eventFn & {
38
46
  /**
@@ -56,6 +56,20 @@ export declare function field(fieldId: string, options?: {
56
56
  type: "fuzzy";
57
57
  };
58
58
  };
59
+ within: () => {
60
+ options?: SelectOption[];
61
+ excludeInSearchQuery?: boolean;
62
+ alternateFieldIds?: string[];
63
+ conditionals?: FieldConditional[];
64
+ validations?: ValidationConfig[];
65
+ searchCriteriaLabelPrefix?: TranslationConfig;
66
+ fieldId: string;
67
+ fieldType: "field";
68
+ } & {
69
+ config: {
70
+ type: "within";
71
+ };
72
+ };
59
73
  $$field: string;
60
74
  isAfter: () => {
61
75
  days: (days: number) => {