@isettingkit/business-rules 0.1.40 → 0.2.0

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.
@@ -1,6 +1,11 @@
1
+ import { ICondition } from '@isettingkit/input';
2
+ import { IDecision } from '@isettingkit/input';
1
3
  import { IRuleDecision } from '@isettingkit/input';
4
+ import { IValue } from '@isettingkit/input';
2
5
  import { JSX as JSX_2 } from 'react/jsx-runtime';
3
6
  import { ReactPortal } from 'react';
7
+ import { ValueDataType } from '@isettingkit/input';
8
+ import { ValueHowToSetUp } from '@isettingkit/input';
4
9
 
5
10
  export declare const BusinessRuleCard: (props: IBusinessRuleCard) => JSX_2.Element;
6
11
 
@@ -20,7 +25,7 @@ declare interface IBusinessRules {
20
25
  controls?: boolean;
21
26
  customTitleContentAddCard?: string;
22
27
  customMessageEmptyDecisions?: string;
23
- decisions: IRuleDecision[];
28
+ decisions?: IRuleDecision[];
24
29
  textValues: IRulesFormTextValues;
25
30
  decisionTemplate: IRuleDecision;
26
31
  isModalOpen: boolean;
@@ -45,6 +50,22 @@ declare interface IModalRules {
45
50
  title: string;
46
51
  }
47
52
 
53
+ declare interface IRevertSortedData {
54
+ decisionTemplate?: IRuleDecision;
55
+ dataDecision?: IRuleDecision;
56
+ decision?: IRuleDecision;
57
+ decisions?: IRuleDecision[];
58
+ originalDecision?: IRuleDecision;
59
+ }
60
+
61
+ declare interface IRevertSortedData_2 {
62
+ decisionTemplate?: IRuleDecision;
63
+ dataDecision?: IRuleDecision;
64
+ decision?: IRuleDecision;
65
+ decisions?: IRuleDecision[];
66
+ originalDecision?: IRuleDecision;
67
+ }
68
+
48
69
  export declare interface IRulesForm {
49
70
  decision: IRuleDecision;
50
71
  onCancel?: () => void;
@@ -72,14 +93,56 @@ declare interface IRulesFormTextValues {
72
93
 
73
94
  export declare const ModalRules: (props: IModalRules) => ReactPortal;
74
95
 
75
- export declare const revertSortedDataSampleSwitchPlaces: (dataDecision: IRuleDecision, originalDecision: IRuleDecision) => IRuleDecision;
76
-
77
- export declare const revertSortedDataSwitchPlaces: (decisions: IRuleDecision[]) => IRuleDecision[];
96
+ export declare const revertSortedDataSampleSwitchPlaces: (props: IRevertSortedData) => {
97
+ conditionsThatEstablishesTheDecision: ICondition[];
98
+ businessRuleId?: string;
99
+ conditionDataType?: ValueDataType[keyof ValueDataType];
100
+ conditionName?: string;
101
+ decision?: IDecision;
102
+ decisions?: IDecision[];
103
+ decisionDataType?: ValueDataType[keyof ValueDataType];
104
+ decisionId?: string;
105
+ descriptionOfChange?: string;
106
+ descriptionUse?: string;
107
+ effectiveFrom?: Date | string;
108
+ howToSetTheCondition?: ValueHowToSetUp[keyof ValueHowToSetUp];
109
+ howToSetTheDecision?: ValueHowToSetUp[keyof ValueHowToSetUp];
110
+ labelName?: string;
111
+ listOfPossibleValues?: IValue;
112
+ ruleDataType?: ValueDataType[keyof ValueDataType];
113
+ ruleName?: string;
114
+ transactionOperation?: string;
115
+ validUntil?: Date | string;
116
+ value?: string | string[] | number | IValue | undefined;
117
+ };
118
+
119
+ export declare const revertSortedDataSwitchPlaces: (props: IRevertSortedData_2) => IRuleDecision[] | undefined;
78
120
 
79
121
  export declare const RulesForm: (props: IRulesForm) => JSX_2.Element;
80
122
 
81
- export declare const sortDisplayDataSampleSwitchPlaces: (decision: IRuleDecision) => IRuleDecision;
82
-
83
- export declare const sortDisplayDataSwitchPlaces: (decisions: IRuleDecision[]) => IRuleDecision[];
123
+ export declare const sortDisplayDataSampleSwitchPlaces: (props: IRevertSortedData) => {
124
+ businessRuleId?: string;
125
+ conditionDataType?: ValueDataType[keyof ValueDataType];
126
+ conditionName?: string;
127
+ conditionsThatEstablishesTheDecision?: ICondition[];
128
+ decision?: IDecision;
129
+ decisions?: IDecision[];
130
+ decisionDataType?: ValueDataType[keyof ValueDataType];
131
+ decisionId?: string;
132
+ descriptionOfChange?: string;
133
+ descriptionUse?: string;
134
+ effectiveFrom?: Date | string;
135
+ howToSetTheCondition?: ValueHowToSetUp[keyof ValueHowToSetUp];
136
+ howToSetTheDecision?: ValueHowToSetUp[keyof ValueHowToSetUp];
137
+ labelName?: string;
138
+ listOfPossibleValues?: IValue;
139
+ ruleDataType?: ValueDataType[keyof ValueDataType];
140
+ ruleName?: string;
141
+ transactionOperation?: string;
142
+ validUntil?: Date | string;
143
+ value?: string | string[] | number | IValue | undefined;
144
+ };
145
+
146
+ export declare const sortDisplayDataSwitchPlaces: (props: IRevertSortedData_2) => IRuleDecision[] | undefined;
84
147
 
85
148
  export { }