@opencrvs/toolkit 1.8.1-rc.38945e7 → 1.8.1-rc.38ac682

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,6 +946,37 @@ 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;
949
980
  })[];
950
981
  conditional?: import(".").JSONSchema | undefined;
951
982
  }[];
@@ -1896,6 +1927,37 @@ export declare const defineConfig: (config: EventConfigInput) => {
1896
1927
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
1897
1928
  hideLabel?: boolean | undefined;
1898
1929
  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;
1899
1961
  })[];
1900
1962
  };
1901
1963
  draft?: boolean | undefined;
@@ -2845,6 +2907,37 @@ export declare const defineConfig: (config: EventConfigInput) => {
2845
2907
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
2846
2908
  hideLabel?: boolean | undefined;
2847
2909
  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;
2848
2941
  })[];
2849
2942
  };
2850
2943
  draft?: boolean | undefined;
@@ -3794,6 +3887,37 @@ export declare const defineConfig: (config: EventConfigInput) => {
3794
3887
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
3795
3888
  hideLabel?: boolean | undefined;
3796
3889
  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;
3797
3921
  })[];
3798
3922
  };
3799
3923
  draft?: boolean | undefined;
@@ -4743,6 +4867,37 @@ export declare const defineConfig: (config: EventConfigInput) => {
4743
4867
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
4744
4868
  hideLabel?: boolean | undefined;
4745
4869
  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;
4746
4901
  })[];
4747
4902
  };
4748
4903
  draft?: boolean | undefined;
@@ -5740,6 +5895,37 @@ export declare const defineConfig: (config: EventConfigInput) => {
5740
5895
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
5741
5896
  hideLabel?: boolean | undefined;
5742
5897
  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;
5743
5929
  })[];
5744
5930
  conditional?: import(".").JSONSchema | undefined;
5745
5931
  } | {
@@ -6692,6 +6878,37 @@ export declare const defineConfig: (config: EventConfigInput) => {
6692
6878
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
6693
6879
  hideLabel?: boolean | undefined;
6694
6880
  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;
6695
6912
  })[];
6696
6913
  conditional?: import(".").JSONSchema | undefined;
6697
6914
  })[];
@@ -7647,6 +7864,37 @@ export declare const defineConfig: (config: EventConfigInput) => {
7647
7864
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
7648
7865
  hideLabel?: boolean | undefined;
7649
7866
  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;
7650
7898
  })[];
7651
7899
  conditional?: import(".").JSONSchema | undefined;
7652
7900
  } | {
@@ -8599,6 +8847,37 @@ export declare const defineConfig: (config: EventConfigInput) => {
8599
8847
  helperText?: import("./TranslationConfig").TranslationConfig | undefined;
8600
8848
  hideLabel?: boolean | undefined;
8601
8849
  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;
8602
8881
  })[];
8603
8882
  conditional?: import(".").JSONSchema | undefined;
8604
8883
  })[];
@@ -414,7 +414,7 @@ export declare function eventPayloadGenerator(rng: () => number): {
414
414
  requestId: string;
415
415
  keepAssignment: boolean | undefined;
416
416
  };
417
- reject: (eventId: string, requestId: string, input?: Partial<Pick<RejectCorrectionActionInput, "transactionId" | "annotation" | "keepAssignment">>) => {
417
+ reject: (eventId: string, requestId: string, input: Partial<Pick<RejectCorrectionActionInput, "transactionId" | "annotation" | "keepAssignment" | "reason">>) => {
418
418
  type: "REJECT_CORRECTION";
419
419
  transactionId: string;
420
420
  declaration: {};
@@ -422,6 +422,10 @@ export declare function eventPayloadGenerator(rng: () => number): {
422
422
  eventId: string;
423
423
  requestId: string;
424
424
  keepAssignment: boolean | undefined;
425
+ reason: {
426
+ message: string;
427
+ isDuplicate?: boolean | undefined;
428
+ };
425
429
  };
426
430
  };
427
431
  };