@isettingkit/business-rules 3.2.1 → 3.2.3

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.
@@ -98,7 +98,7 @@ export declare enum EFieldType {
98
98
 
99
99
  export declare enum EFieldTypeNew {
100
100
  ALPHABETICAL = "alphabetical",
101
- CURRENCY = "currency",
101
+ MONETARY = "monetary",
102
102
  DATE = "date",
103
103
  NUMBER = "number",
104
104
  PERCENTAGE = "percentage"
@@ -141,7 +141,7 @@ export declare const formatDecisionForBackend: (props: {
141
141
  businessRuleId?: string;
142
142
  conditionDataType?: "number" | "alphabetical" | "currency" | "date" | "monetary" | "percentage";
143
143
  conditionName?: string;
144
- conditionGroups?: ICondition_2[];
144
+ conditionGroups?: ICondition[];
145
145
  decision?: IDecision;
146
146
  decisions?: IDecision[];
147
147
  decisionDataType?: "number" | "alphabetical" | "currency" | "date" | "monetary" | "percentage";
@@ -340,12 +340,8 @@ declare type ICheckpickerSize_3 = (typeof sizes_3)[number];
340
340
 
341
341
  export declare type IClientLabel = string;
342
342
 
343
- export declare interface ICondition<TData> {
344
- (data: TData): boolean;
345
- }
346
-
347
- declare interface ICondition_2 {
348
- conditionsThatEstablishesTheDecision?: ICondition_2[];
343
+ export declare interface ICondition {
344
+ conditionsThatEstablishesTheDecision?: ICondition[];
349
345
  conditionDataType: (typeof ValueDataType)[keyof typeof ValueDataType];
350
346
  hidden?: boolean;
351
347
  conditionName: string;
@@ -357,6 +353,11 @@ declare interface ICondition_2 {
357
353
  descriptionUse?: string;
358
354
  i18n?: Partial<Record<string, string>>;
359
355
  i18nValue?: string | string[] | number | IValue;
356
+ timeUnit?: string;
357
+ }
358
+
359
+ declare interface ICondition_2<TData> {
360
+ (data: TData): boolean;
360
361
  }
361
362
 
362
363
  declare interface IConditionNew {
@@ -686,7 +687,7 @@ declare interface IMultipleChoicesNew {
686
687
 
687
688
  declare interface INodeBase<TData> {
688
689
  id: string;
689
- when?: ICondition<TData>;
690
+ when?: ICondition_2<TData>;
690
691
  }
691
692
 
692
693
  export declare const InputRange: (props: IInputRange) => JSX.Element;
@@ -733,8 +734,8 @@ export declare interface IRuleDecision {
733
734
  businessRuleId?: string;
734
735
  conditionDataType?: (typeof ValueDataType)[keyof typeof ValueDataType];
735
736
  conditionName?: string;
736
- conditionGroups?: ICondition_2[];
737
- conditionsThatEstablishesTheDecision?: ICondition_2[];
737
+ conditionGroups?: ICondition[];
738
+ conditionsThatEstablishesTheDecision?: ICondition[];
738
739
  decision?: IDecision;
739
740
  decisions?: IDecision[];
740
741
  decisionDataType?: (typeof ValueDataType)[keyof typeof ValueDataType];
@@ -762,8 +763,8 @@ export declare interface IRuleDecisionNew {
762
763
  businessRuleId?: string;
763
764
  conditionDataType?: EFieldTypeNew;
764
765
  conditionName?: string;
765
- conditionGroups?: ICondition_2[];
766
- conditionsThatEstablishesTheDecision?: ICondition_2[];
766
+ conditionGroups?: ICondition[];
767
+ conditionsThatEstablishesTheDecision?: ICondition[];
767
768
  decision?: IDecision;
768
769
  decisions?: IDecision[];
769
770
  decisionDataType?: EFieldTypeNew;
@@ -977,11 +978,11 @@ export declare const parseRangeFromString: (value: string | number | string[] |
977
978
  export declare const percentageFormat: (percentage: number | string) => string;
978
979
 
979
980
  export declare const revertSortedDataSampleSwitchPlaces: (props: IRevertSortedData) => {
980
- conditionsThatEstablishesTheDecision: ICondition_2[];
981
+ conditionsThatEstablishesTheDecision: ICondition[];
981
982
  businessRuleId?: string;
982
983
  conditionDataType?: "number" | "alphabetical" | "currency" | "date" | "monetary" | "percentage";
983
984
  conditionName?: string;
984
- conditionGroups?: ICondition_2[];
985
+ conditionGroups?: ICondition[];
985
986
  decision?: IDecision;
986
987
  decisions?: IDecision[];
987
988
  decisionDataType?: "number" | "alphabetical" | "currency" | "date" | "monetary" | "percentage";
@@ -1021,8 +1022,8 @@ export declare const sortDisplayDataSampleSwitchPlaces: (props: IRevertSortedDat
1021
1022
  businessRuleId?: string;
1022
1023
  conditionDataType?: "number" | "alphabetical" | "currency" | "date" | "monetary" | "percentage";
1023
1024
  conditionName?: string;
1024
- conditionGroups?: ICondition_2[];
1025
- conditionsThatEstablishesTheDecision?: ICondition_2[];
1025
+ conditionGroups?: ICondition[];
1026
+ conditionsThatEstablishesTheDecision?: ICondition[];
1026
1027
  decision?: IDecision;
1027
1028
  decisions?: IDecision[];
1028
1029
  decisionDataType?: "number" | "alphabetical" | "currency" | "date" | "monetary" | "percentage";