@isettingkit/business-rules 2.1.9 → 2.1.10

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.
@@ -84,6 +84,7 @@ export declare const formatDecisionForBackend: (props: {
84
84
  businessRuleId?: string;
85
85
  conditionDataType?: ValueDataType[keyof ValueDataType];
86
86
  conditionName?: string;
87
+ conditionGroups?: ICondition[];
87
88
  decision?: IDecision;
88
89
  decisions?: IDecision[];
89
90
  decisionDataType?: ValueDataType[keyof ValueDataType];
@@ -102,7 +103,7 @@ export declare const formatDecisionForBackend: (props: {
102
103
 
103
104
  export declare const FormFilter: (props: IFormFilter) => JSX.Element;
104
105
 
105
- export declare const getConditionsByGroup: (decision: IRuleDecision) => {};
106
+ export declare const getConditionsByGroup: (raw: any) => Record<string, any[]>;
106
107
 
107
108
  export declare interface IBackAndNextButton extends Omit<IButton, "onClick" | "path" | "children"> {
108
109
  handleBack: () => void;
@@ -410,7 +411,7 @@ declare interface ITranslateOptions {
410
411
  apiKey: string;
411
412
  }
412
413
 
413
- export declare const mapByGroup: <T, R>(obj: Record<string, T[]>, fn: (c: T, idx: number, arr: T[], group: string) => R) => Record<string, R[]>;
414
+ export declare const mapByGroup: (raw: any, mapFn: (condition: any) => any) => Record<string, any[]>;
414
415
 
415
416
  export declare const ModalRules: (props: IModalRules) => ReactPortal;
416
417
 
@@ -424,6 +425,7 @@ export declare const revertSortedDataSampleSwitchPlaces: (props: IRevertSortedDa
424
425
  businessRuleId?: string;
425
426
  conditionDataType?: ValueDataType[keyof ValueDataType];
426
427
  conditionName?: string;
428
+ conditionGroups?: ICondition[];
427
429
  decision?: IDecision;
428
430
  decisions?: IDecision[];
429
431
  decisionDataType?: ValueDataType[keyof ValueDataType];
@@ -454,6 +456,7 @@ export declare const sortDisplayDataSampleSwitchPlaces: (props: IRevertSortedDat
454
456
  businessRuleId?: string;
455
457
  conditionDataType?: ValueDataType[keyof ValueDataType];
456
458
  conditionName?: string;
459
+ conditionGroups?: ICondition[];
457
460
  conditionsThatEstablishesTheDecision?: ICondition[];
458
461
  decision?: IDecision;
459
462
  decisions?: IDecision[];