@corsa-labs/sdk 4.9.0 → 4.10.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.
- package/dist/models/ActionConfigDto.d.ts +1 -1
- package/dist/models/ActionConfigDto.js +1 -1
- package/dist/models/ActionConfigDto.js.map +1 -1
- package/dist/models/ActivateRuleDto.d.ts +6 -0
- package/dist/models/{DeleteRuleDto.js → ActivateRuleDto.js} +1 -1
- package/dist/models/ActivateRuleDto.js.map +1 -0
- package/dist/models/AggregationFilterDto.d.ts +20 -0
- package/dist/models/AggregationFilterDto.js +21 -0
- package/dist/models/AggregationFilterDto.js.map +1 -0
- package/dist/models/ConditionDto.d.ts +87 -1
- package/dist/models/ConditionDto.js +50 -0
- package/dist/models/ConditionDto.js.map +1 -1
- package/dist/models/CreateRuleDto.d.ts +0 -18
- package/dist/models/CreateRuleDto.js +0 -13
- package/dist/models/CreateRuleDto.js.map +1 -1
- package/dist/models/RuleResponseDto.d.ts +0 -7
- package/dist/models/RuleResponseDto.js +0 -6
- package/dist/models/RuleResponseDto.js.map +1 -1
- package/dist/models/UpdateRuleDto.d.ts +4 -9
- package/dist/models/UpdateRuleDto.js +0 -10
- package/dist/models/UpdateRuleDto.js.map +1 -1
- package/dist/services/ChecklistsService.d.ts +0 -16
- package/dist/services/ChecklistsService.js +0 -44
- package/dist/services/ChecklistsService.js.map +1 -1
- package/dist/services/MembersService.d.ts +6 -4
- package/dist/services/MembersService.js +12 -4
- package/dist/services/MembersService.js.map +1 -1
- package/dist/services/RulesService.d.ts +16 -42
- package/dist/services/RulesService.js +29 -63
- package/dist/services/RulesService.js.map +1 -1
- package/package.json +1 -1
- package/dist/models/DeleteRuleDto.d.ts +0 -6
- package/dist/models/DeleteRuleDto.js.map +0 -1
|
@@ -9,7 +9,7 @@ var ActionConfigDto;
|
|
|
9
9
|
let type;
|
|
10
10
|
(function (type) {
|
|
11
11
|
type["CREATE_ALERT"] = "CREATE_ALERT";
|
|
12
|
-
type["
|
|
12
|
+
type["ALERT_AND_HALT"] = "ALERT_AND_HALT";
|
|
13
13
|
})(type = ActionConfigDto.type || (ActionConfigDto.type = {}));
|
|
14
14
|
})(ActionConfigDto || (exports.ActionConfigDto = ActionConfigDto = {}));
|
|
15
15
|
//# sourceMappingURL=ActionConfigDto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionConfigDto.js","sourceRoot":"","sources":["../../models/ActionConfigDto.ts"],"names":[],"mappings":";;;AAcA,IAAiB,eAAe,CAQ/B;AARD,WAAiB,eAAe;IAC5B;;OAEG;IACH,IAAY,IAGX;IAHD,WAAY,IAAI;QACZ,qCAA6B,CAAA;QAC7B,
|
|
1
|
+
{"version":3,"file":"ActionConfigDto.js","sourceRoot":"","sources":["../../models/ActionConfigDto.ts"],"names":[],"mappings":";;;AAcA,IAAiB,eAAe,CAQ/B;AARD,WAAiB,eAAe;IAC5B;;OAEG;IACH,IAAY,IAGX;IAHD,WAAY,IAAI;QACZ,qCAA6B,CAAA;QAC7B,yCAAiC,CAAA;IACrC,CAAC,EAHW,IAAI,GAAJ,oBAAI,KAAJ,oBAAI,QAGf;AACL,CAAC,EARgB,eAAe,+BAAf,eAAe,QAQ/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActivateRuleDto.js","sourceRoot":"","sources":["../../models/ActivateRuleDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type AggregationFilterDto = {
|
|
2
|
+
property?: string;
|
|
3
|
+
operator?: AggregationFilterDto.operator;
|
|
4
|
+
value?: Record<string, any>;
|
|
5
|
+
};
|
|
6
|
+
export declare namespace AggregationFilterDto {
|
|
7
|
+
enum operator {
|
|
8
|
+
EQUAL = "equal",
|
|
9
|
+
NOT_EQUAL = "notEqual",
|
|
10
|
+
GREATER_THAN = "greaterThan",
|
|
11
|
+
GREATER_THAN_INCLUSIVE = "greaterThanInclusive",
|
|
12
|
+
LESS_THAN = "lessThan",
|
|
13
|
+
LESS_THAN_INCLUSIVE = "lessThanInclusive",
|
|
14
|
+
IN = "in",
|
|
15
|
+
NOT_IN = "notIn",
|
|
16
|
+
CONTAINS = "contains",
|
|
17
|
+
DOES_NOT_CONTAIN = "doesNotContain",
|
|
18
|
+
BETWEEN = "between"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AggregationFilterDto = void 0;
|
|
4
|
+
var AggregationFilterDto;
|
|
5
|
+
(function (AggregationFilterDto) {
|
|
6
|
+
let operator;
|
|
7
|
+
(function (operator) {
|
|
8
|
+
operator["EQUAL"] = "equal";
|
|
9
|
+
operator["NOT_EQUAL"] = "notEqual";
|
|
10
|
+
operator["GREATER_THAN"] = "greaterThan";
|
|
11
|
+
operator["GREATER_THAN_INCLUSIVE"] = "greaterThanInclusive";
|
|
12
|
+
operator["LESS_THAN"] = "lessThan";
|
|
13
|
+
operator["LESS_THAN_INCLUSIVE"] = "lessThanInclusive";
|
|
14
|
+
operator["IN"] = "in";
|
|
15
|
+
operator["NOT_IN"] = "notIn";
|
|
16
|
+
operator["CONTAINS"] = "contains";
|
|
17
|
+
operator["DOES_NOT_CONTAIN"] = "doesNotContain";
|
|
18
|
+
operator["BETWEEN"] = "between";
|
|
19
|
+
})(operator = AggregationFilterDto.operator || (AggregationFilterDto.operator = {}));
|
|
20
|
+
})(AggregationFilterDto || (exports.AggregationFilterDto = AggregationFilterDto = {}));
|
|
21
|
+
//# sourceMappingURL=AggregationFilterDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AggregationFilterDto.js","sourceRoot":"","sources":["../../models/AggregationFilterDto.ts"],"names":[],"mappings":";;;AASA,IAAiB,oBAAoB,CAcpC;AAdD,WAAiB,oBAAoB;IACjC,IAAY,QAYX;IAZD,WAAY,QAAQ;QAChB,2BAAe,CAAA;QACf,kCAAsB,CAAA;QACtB,wCAA4B,CAAA;QAC5B,2DAA+C,CAAA;QAC/C,kCAAsB,CAAA;QACtB,qDAAyC,CAAA;QACzC,qBAAS,CAAA;QACT,4BAAgB,CAAA;QAChB,iCAAqB,CAAA;QACrB,+CAAmC,CAAA;QACnC,+BAAmB,CAAA;IACvB,CAAC,EAZW,QAAQ,GAAR,6BAAQ,KAAR,6BAAQ,QAYnB;AACL,CAAC,EAdgB,oBAAoB,oCAApB,oBAAoB,QAcpC"}
|
|
@@ -1,8 +1,49 @@
|
|
|
1
|
+
import type { AggregationFilterDto } from './AggregationFilterDto';
|
|
1
2
|
export type ConditionDto = {
|
|
2
3
|
/**
|
|
3
4
|
* Label for this condition or condition group
|
|
4
5
|
*/
|
|
5
6
|
label?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Primary entity for this condition
|
|
9
|
+
*/
|
|
10
|
+
entity?: ConditionDto.entity;
|
|
11
|
+
/**
|
|
12
|
+
* The client's relationship to the transaction (sender, receiver, or both)
|
|
13
|
+
*/
|
|
14
|
+
entityRelationship?: ConditionDto.entityRelationship;
|
|
15
|
+
/**
|
|
16
|
+
* Entity property referenced by this condition
|
|
17
|
+
*/
|
|
18
|
+
property?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Aggregation property (for aggregation conditions)
|
|
21
|
+
*/
|
|
22
|
+
aggregationProperty?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Aggregation operator
|
|
25
|
+
*/
|
|
26
|
+
aggregationOperator?: ConditionDto.aggregationOperator;
|
|
27
|
+
/**
|
|
28
|
+
* Aggregation filters
|
|
29
|
+
*/
|
|
30
|
+
aggregationFilters?: Array<AggregationFilterDto>;
|
|
31
|
+
/**
|
|
32
|
+
* Aggregation time window type
|
|
33
|
+
*/
|
|
34
|
+
aggregationTimeType?: ConditionDto.aggregationTimeType;
|
|
35
|
+
/**
|
|
36
|
+
* Aggregation time window value
|
|
37
|
+
*/
|
|
38
|
+
aggregationTimeValue?: Record<string, any>;
|
|
39
|
+
/**
|
|
40
|
+
* Aggregation time period (when using IN_THE_LAST)
|
|
41
|
+
*/
|
|
42
|
+
aggregationTimePeriod?: ConditionDto.aggregationTimePeriod;
|
|
43
|
+
/**
|
|
44
|
+
* Resolved aggregation fact definition (internal use)
|
|
45
|
+
*/
|
|
46
|
+
aggregation?: Record<string, any>;
|
|
6
47
|
/**
|
|
7
48
|
* Fact name to evaluate
|
|
8
49
|
*/
|
|
@@ -29,6 +70,50 @@ export type ConditionDto = {
|
|
|
29
70
|
any?: Array<Record<string, any>>;
|
|
30
71
|
};
|
|
31
72
|
export declare namespace ConditionDto {
|
|
73
|
+
/**
|
|
74
|
+
* Primary entity for this condition
|
|
75
|
+
*/
|
|
76
|
+
enum entity {
|
|
77
|
+
TRANSACTION = "transaction",
|
|
78
|
+
CLIENT = "client"
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The client's relationship to the transaction (sender, receiver, or both)
|
|
82
|
+
*/
|
|
83
|
+
enum entityRelationship {
|
|
84
|
+
ALL = "all",
|
|
85
|
+
SENDER = "sender",
|
|
86
|
+
RECEIVER = "receiver"
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Aggregation operator
|
|
90
|
+
*/
|
|
91
|
+
enum aggregationOperator {
|
|
92
|
+
SUM = "sum",
|
|
93
|
+
COUNT = "count",
|
|
94
|
+
AVG = "avg",
|
|
95
|
+
MIN = "min",
|
|
96
|
+
MAX = "max"
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Aggregation time window type
|
|
100
|
+
*/
|
|
101
|
+
enum aggregationTimeType {
|
|
102
|
+
ALL_TIME = "all_time",
|
|
103
|
+
IN_THE_LAST = "in_the_last",
|
|
104
|
+
AFTER = "after",
|
|
105
|
+
BEFORE = "before",
|
|
106
|
+
BETWEEN = "between"
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Aggregation time period (when using IN_THE_LAST)
|
|
110
|
+
*/
|
|
111
|
+
enum aggregationTimePeriod {
|
|
112
|
+
DAYS = "days",
|
|
113
|
+
WEEKS = "weeks",
|
|
114
|
+
MONTHS = "months",
|
|
115
|
+
YEARS = "years"
|
|
116
|
+
}
|
|
32
117
|
/**
|
|
33
118
|
* Comparison operator
|
|
34
119
|
*/
|
|
@@ -42,6 +127,7 @@ export declare namespace ConditionDto {
|
|
|
42
127
|
IN = "in",
|
|
43
128
|
NOT_IN = "notIn",
|
|
44
129
|
CONTAINS = "contains",
|
|
45
|
-
DOES_NOT_CONTAIN = "doesNotContain"
|
|
130
|
+
DOES_NOT_CONTAIN = "doesNotContain",
|
|
131
|
+
BETWEEN = "between"
|
|
46
132
|
}
|
|
47
133
|
}
|
|
@@ -3,6 +3,55 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ConditionDto = void 0;
|
|
4
4
|
var ConditionDto;
|
|
5
5
|
(function (ConditionDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Primary entity for this condition
|
|
8
|
+
*/
|
|
9
|
+
let entity;
|
|
10
|
+
(function (entity) {
|
|
11
|
+
entity["TRANSACTION"] = "transaction";
|
|
12
|
+
entity["CLIENT"] = "client";
|
|
13
|
+
})(entity = ConditionDto.entity || (ConditionDto.entity = {}));
|
|
14
|
+
/**
|
|
15
|
+
* The client's relationship to the transaction (sender, receiver, or both)
|
|
16
|
+
*/
|
|
17
|
+
let entityRelationship;
|
|
18
|
+
(function (entityRelationship) {
|
|
19
|
+
entityRelationship["ALL"] = "all";
|
|
20
|
+
entityRelationship["SENDER"] = "sender";
|
|
21
|
+
entityRelationship["RECEIVER"] = "receiver";
|
|
22
|
+
})(entityRelationship = ConditionDto.entityRelationship || (ConditionDto.entityRelationship = {}));
|
|
23
|
+
/**
|
|
24
|
+
* Aggregation operator
|
|
25
|
+
*/
|
|
26
|
+
let aggregationOperator;
|
|
27
|
+
(function (aggregationOperator) {
|
|
28
|
+
aggregationOperator["SUM"] = "sum";
|
|
29
|
+
aggregationOperator["COUNT"] = "count";
|
|
30
|
+
aggregationOperator["AVG"] = "avg";
|
|
31
|
+
aggregationOperator["MIN"] = "min";
|
|
32
|
+
aggregationOperator["MAX"] = "max";
|
|
33
|
+
})(aggregationOperator = ConditionDto.aggregationOperator || (ConditionDto.aggregationOperator = {}));
|
|
34
|
+
/**
|
|
35
|
+
* Aggregation time window type
|
|
36
|
+
*/
|
|
37
|
+
let aggregationTimeType;
|
|
38
|
+
(function (aggregationTimeType) {
|
|
39
|
+
aggregationTimeType["ALL_TIME"] = "all_time";
|
|
40
|
+
aggregationTimeType["IN_THE_LAST"] = "in_the_last";
|
|
41
|
+
aggregationTimeType["AFTER"] = "after";
|
|
42
|
+
aggregationTimeType["BEFORE"] = "before";
|
|
43
|
+
aggregationTimeType["BETWEEN"] = "between";
|
|
44
|
+
})(aggregationTimeType = ConditionDto.aggregationTimeType || (ConditionDto.aggregationTimeType = {}));
|
|
45
|
+
/**
|
|
46
|
+
* Aggregation time period (when using IN_THE_LAST)
|
|
47
|
+
*/
|
|
48
|
+
let aggregationTimePeriod;
|
|
49
|
+
(function (aggregationTimePeriod) {
|
|
50
|
+
aggregationTimePeriod["DAYS"] = "days";
|
|
51
|
+
aggregationTimePeriod["WEEKS"] = "weeks";
|
|
52
|
+
aggregationTimePeriod["MONTHS"] = "months";
|
|
53
|
+
aggregationTimePeriod["YEARS"] = "years";
|
|
54
|
+
})(aggregationTimePeriod = ConditionDto.aggregationTimePeriod || (ConditionDto.aggregationTimePeriod = {}));
|
|
6
55
|
/**
|
|
7
56
|
* Comparison operator
|
|
8
57
|
*/
|
|
@@ -18,6 +67,7 @@ var ConditionDto;
|
|
|
18
67
|
operator["NOT_IN"] = "notIn";
|
|
19
68
|
operator["CONTAINS"] = "contains";
|
|
20
69
|
operator["DOES_NOT_CONTAIN"] = "doesNotContain";
|
|
70
|
+
operator["BETWEEN"] = "between";
|
|
21
71
|
})(operator = ConditionDto.operator || (ConditionDto.operator = {}));
|
|
22
72
|
})(ConditionDto || (exports.ConditionDto = ConditionDto = {}));
|
|
23
73
|
//# sourceMappingURL=ConditionDto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionDto.js","sourceRoot":"","sources":["../../models/ConditionDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ConditionDto.js","sourceRoot":"","sources":["../../models/ConditionDto.ts"],"names":[],"mappings":";;;AA2EA,IAAiB,YAAY,CA6D5B;AA7DD,WAAiB,YAAY;IACzB;;OAEG;IACH,IAAY,MAGX;IAHD,WAAY,MAAM;QACd,qCAA2B,CAAA;QAC3B,2BAAiB,CAAA;IACrB,CAAC,EAHW,MAAM,GAAN,mBAAM,KAAN,mBAAM,QAGjB;IACD;;OAEG;IACH,IAAY,kBAIX;IAJD,WAAY,kBAAkB;QAC1B,iCAAW,CAAA;QACX,uCAAiB,CAAA;QACjB,2CAAqB,CAAA;IACzB,CAAC,EAJW,kBAAkB,GAAlB,+BAAkB,KAAlB,+BAAkB,QAI7B;IACD;;OAEG;IACH,IAAY,mBAMX;IAND,WAAY,mBAAmB;QAC3B,kCAAW,CAAA;QACX,sCAAe,CAAA;QACf,kCAAW,CAAA;QACX,kCAAW,CAAA;QACX,kCAAW,CAAA;IACf,CAAC,EANW,mBAAmB,GAAnB,gCAAmB,KAAnB,gCAAmB,QAM9B;IACD;;OAEG;IACH,IAAY,mBAMX;IAND,WAAY,mBAAmB;QAC3B,4CAAqB,CAAA;QACrB,kDAA2B,CAAA;QAC3B,sCAAe,CAAA;QACf,wCAAiB,CAAA;QACjB,0CAAmB,CAAA;IACvB,CAAC,EANW,mBAAmB,GAAnB,gCAAmB,KAAnB,gCAAmB,QAM9B;IACD;;OAEG;IACH,IAAY,qBAKX;IALD,WAAY,qBAAqB;QAC7B,sCAAa,CAAA;QACb,wCAAe,CAAA;QACf,0CAAiB,CAAA;QACjB,wCAAe,CAAA;IACnB,CAAC,EALW,qBAAqB,GAArB,kCAAqB,KAArB,kCAAqB,QAKhC;IACD;;OAEG;IACH,IAAY,QAYX;IAZD,WAAY,QAAQ;QAChB,2BAAe,CAAA;QACf,kCAAsB,CAAA;QACtB,wCAA4B,CAAA;QAC5B,2DAA+C,CAAA;QAC/C,kCAAsB,CAAA;QACtB,qDAAyC,CAAA;QACzC,qBAAS,CAAA;QACT,4BAAgB,CAAA;QAChB,iCAAqB,CAAA;QACrB,+CAAmC,CAAA;QACnC,+BAAmB,CAAA;IACvB,CAAC,EAZW,QAAQ,GAAR,qBAAQ,KAAR,qBAAQ,QAYnB;AACL,CAAC,EA7DgB,YAAY,4BAAZ,YAAY,QA6D5B"}
|
|
@@ -9,30 +9,12 @@ export type CreateRuleDto = {
|
|
|
9
9
|
* Detailed description of what the rule does
|
|
10
10
|
*/
|
|
11
11
|
description: string;
|
|
12
|
-
/**
|
|
13
|
-
* Business priority level
|
|
14
|
-
*/
|
|
15
|
-
priority: CreateRuleDto.priority;
|
|
16
12
|
/**
|
|
17
13
|
* Actions to execute when rule matches
|
|
18
14
|
*/
|
|
19
15
|
actions: Array<ActionConfigDto>;
|
|
20
|
-
/**
|
|
21
|
-
* Scope/cohort filtering
|
|
22
|
-
*/
|
|
23
|
-
scope?: Record<string, any>;
|
|
24
16
|
/**
|
|
25
17
|
* Rule conditions (IF logic)
|
|
26
18
|
*/
|
|
27
19
|
conditions: ConditionsDto;
|
|
28
20
|
};
|
|
29
|
-
export declare namespace CreateRuleDto {
|
|
30
|
-
/**
|
|
31
|
-
* Business priority level
|
|
32
|
-
*/
|
|
33
|
-
enum priority {
|
|
34
|
-
LOW = "LOW",
|
|
35
|
-
MEDIUM = "MEDIUM",
|
|
36
|
-
HIGH = "HIGH"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,16 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateRuleDto = void 0;
|
|
4
|
-
var CreateRuleDto;
|
|
5
|
-
(function (CreateRuleDto) {
|
|
6
|
-
/**
|
|
7
|
-
* Business priority level
|
|
8
|
-
*/
|
|
9
|
-
let priority;
|
|
10
|
-
(function (priority) {
|
|
11
|
-
priority["LOW"] = "LOW";
|
|
12
|
-
priority["MEDIUM"] = "MEDIUM";
|
|
13
|
-
priority["HIGH"] = "HIGH";
|
|
14
|
-
})(priority = CreateRuleDto.priority || (CreateRuleDto.priority = {}));
|
|
15
|
-
})(CreateRuleDto || (exports.CreateRuleDto = CreateRuleDto = {}));
|
|
16
3
|
//# sourceMappingURL=CreateRuleDto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateRuleDto.js","sourceRoot":"","sources":["../../models/CreateRuleDto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreateRuleDto.js","sourceRoot":"","sources":["../../models/CreateRuleDto.ts"],"names":[],"mappings":""}
|
|
@@ -4,9 +4,7 @@ export type RuleResponseDto = {
|
|
|
4
4
|
status: RuleResponseDto.status;
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
|
7
|
-
priority: RuleResponseDto.priority;
|
|
8
7
|
actions: Array<Record<string, any>>;
|
|
9
|
-
scope: Record<string, any>;
|
|
10
8
|
jreRule: Record<string, any>;
|
|
11
9
|
createdBy: string;
|
|
12
10
|
createdAt: string;
|
|
@@ -17,9 +15,4 @@ export declare namespace RuleResponseDto {
|
|
|
17
15
|
ACTIVE = "active",
|
|
18
16
|
DISABLED = "disabled"
|
|
19
17
|
}
|
|
20
|
-
enum priority {
|
|
21
|
-
LOW = "LOW",
|
|
22
|
-
MEDIUM = "MEDIUM",
|
|
23
|
-
HIGH = "HIGH"
|
|
24
|
-
}
|
|
25
18
|
}
|
|
@@ -9,11 +9,5 @@ var RuleResponseDto;
|
|
|
9
9
|
status["ACTIVE"] = "active";
|
|
10
10
|
status["DISABLED"] = "disabled";
|
|
11
11
|
})(status = RuleResponseDto.status || (RuleResponseDto.status = {}));
|
|
12
|
-
let priority;
|
|
13
|
-
(function (priority) {
|
|
14
|
-
priority["LOW"] = "LOW";
|
|
15
|
-
priority["MEDIUM"] = "MEDIUM";
|
|
16
|
-
priority["HIGH"] = "HIGH";
|
|
17
|
-
})(priority = RuleResponseDto.priority || (RuleResponseDto.priority = {}));
|
|
18
12
|
})(RuleResponseDto || (exports.RuleResponseDto = RuleResponseDto = {}));
|
|
19
13
|
//# sourceMappingURL=RuleResponseDto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleResponseDto.js","sourceRoot":"","sources":["../../models/RuleResponseDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"RuleResponseDto.js","sourceRoot":"","sources":["../../models/RuleResponseDto.ts"],"names":[],"mappings":";;;AAeA,IAAiB,eAAe,CAM/B;AAND,WAAiB,eAAe;IAC5B,IAAY,MAIX;IAJD,WAAY,MAAM;QACd,yBAAe,CAAA;QACf,2BAAiB,CAAA;QACjB,+BAAqB,CAAA;IACzB,CAAC,EAJW,MAAM,GAAN,sBAAM,KAAN,sBAAM,QAIjB;AACL,CAAC,EANgB,eAAe,+BAAf,eAAe,QAM/B"}
|
|
@@ -3,18 +3,13 @@ import type { ConditionsDto } from './ConditionsDto';
|
|
|
3
3
|
export type UpdateRuleDto = {
|
|
4
4
|
name?: string;
|
|
5
5
|
description?: string;
|
|
6
|
-
priority?: UpdateRuleDto.priority;
|
|
7
6
|
actions?: Array<ActionConfigDto>;
|
|
8
|
-
scope?: Record<string, any>;
|
|
9
7
|
/**
|
|
10
8
|
* Rule conditions (IF logic)
|
|
11
9
|
*/
|
|
12
10
|
conditions?: ConditionsDto;
|
|
11
|
+
/**
|
|
12
|
+
* Reason for updating the rule (used for audit trail when updating active rules)
|
|
13
|
+
*/
|
|
14
|
+
reason?: string;
|
|
13
15
|
};
|
|
14
|
-
export declare namespace UpdateRuleDto {
|
|
15
|
-
enum priority {
|
|
16
|
-
LOW = "LOW",
|
|
17
|
-
MEDIUM = "MEDIUM",
|
|
18
|
-
HIGH = "HIGH"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateRuleDto = void 0;
|
|
4
|
-
var UpdateRuleDto;
|
|
5
|
-
(function (UpdateRuleDto) {
|
|
6
|
-
let priority;
|
|
7
|
-
(function (priority) {
|
|
8
|
-
priority["LOW"] = "LOW";
|
|
9
|
-
priority["MEDIUM"] = "MEDIUM";
|
|
10
|
-
priority["HIGH"] = "HIGH";
|
|
11
|
-
})(priority = UpdateRuleDto.priority || (UpdateRuleDto.priority = {}));
|
|
12
|
-
})(UpdateRuleDto || (exports.UpdateRuleDto = UpdateRuleDto = {}));
|
|
13
3
|
//# sourceMappingURL=UpdateRuleDto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateRuleDto.js","sourceRoot":"","sources":["../../models/UpdateRuleDto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpdateRuleDto.js","sourceRoot":"","sources":["../../models/UpdateRuleDto.ts"],"names":[],"mappings":""}
|
|
@@ -19,13 +19,6 @@ export declare class ChecklistsService {
|
|
|
19
19
|
* @throws ApiError
|
|
20
20
|
*/
|
|
21
21
|
getEntityChecklist(entityId: string): CancelablePromise<ChecklistResponseDto>;
|
|
22
|
-
/**
|
|
23
|
-
* Get checklist for an entity
|
|
24
|
-
* @param entityId ID of the entity to get the checklist for
|
|
25
|
-
* @returns ChecklistResponseDto Checklist retrieved successfully
|
|
26
|
-
* @throws ApiError
|
|
27
|
-
*/
|
|
28
|
-
getChecklistByEntity1(entityId: string): CancelablePromise<ChecklistResponseDto>;
|
|
29
22
|
/**
|
|
30
23
|
* Update checklist item
|
|
31
24
|
* @param checklistId The ID of the checklist containing the item
|
|
@@ -35,15 +28,6 @@ export declare class ChecklistsService {
|
|
|
35
28
|
* @throws ApiError
|
|
36
29
|
*/
|
|
37
30
|
updateChecklistItem(checklistId: string, itemId: string, requestBody: UpdateChecklistItemDto): CancelablePromise<ChecklistItemResponseDto>;
|
|
38
|
-
/**
|
|
39
|
-
* Update checklist item
|
|
40
|
-
* @param checklistId The ID of the checklist containing the item
|
|
41
|
-
* @param itemId The ID of the checklist item to update
|
|
42
|
-
* @param requestBody
|
|
43
|
-
* @returns ChecklistItemResponseDto Checklist item updated successfully
|
|
44
|
-
* @throws ApiError
|
|
45
|
-
*/
|
|
46
|
-
updateChecklistItem1(checklistId: string, itemId: string, requestBody: UpdateChecklistItemDto): CancelablePromise<ChecklistItemResponseDto>;
|
|
47
31
|
/**
|
|
48
32
|
* @deprecated
|
|
49
33
|
* Get checklist for an entity. Note: This is deprecated, please use getEntityChecklist instead (/v1/checklists/entity).
|
|
@@ -13,25 +13,6 @@ class ChecklistsService {
|
|
|
13
13
|
* @throws ApiError
|
|
14
14
|
*/
|
|
15
15
|
getEntityChecklist(entityId) {
|
|
16
|
-
return this.httpRequest.request({
|
|
17
|
-
method: 'GET',
|
|
18
|
-
url: '/v1/checklist/entity',
|
|
19
|
-
query: {
|
|
20
|
-
'entityId': entityId,
|
|
21
|
-
},
|
|
22
|
-
errors: {
|
|
23
|
-
400: `Bad request - missing entityId`,
|
|
24
|
-
500: `Internal server error`,
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Get checklist for an entity
|
|
30
|
-
* @param entityId ID of the entity to get the checklist for
|
|
31
|
-
* @returns ChecklistResponseDto Checklist retrieved successfully
|
|
32
|
-
* @throws ApiError
|
|
33
|
-
*/
|
|
34
|
-
getChecklistByEntity1(entityId) {
|
|
35
16
|
return this.httpRequest.request({
|
|
36
17
|
method: 'GET',
|
|
37
18
|
url: '/v1/checklists/entity',
|
|
@@ -53,31 +34,6 @@ class ChecklistsService {
|
|
|
53
34
|
* @throws ApiError
|
|
54
35
|
*/
|
|
55
36
|
updateChecklistItem(checklistId, itemId, requestBody) {
|
|
56
|
-
return this.httpRequest.request({
|
|
57
|
-
method: 'PUT',
|
|
58
|
-
url: '/v1/checklist/{checklistId}/items/{itemId}',
|
|
59
|
-
path: {
|
|
60
|
-
'checklistId': checklistId,
|
|
61
|
-
'itemId': itemId,
|
|
62
|
-
},
|
|
63
|
-
body: requestBody,
|
|
64
|
-
mediaType: 'application/json',
|
|
65
|
-
errors: {
|
|
66
|
-
400: `Bad request - invalid data`,
|
|
67
|
-
404: `Checklist or checklist item not found`,
|
|
68
|
-
500: `Internal server error`,
|
|
69
|
-
},
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Update checklist item
|
|
74
|
-
* @param checklistId The ID of the checklist containing the item
|
|
75
|
-
* @param itemId The ID of the checklist item to update
|
|
76
|
-
* @param requestBody
|
|
77
|
-
* @returns ChecklistItemResponseDto Checklist item updated successfully
|
|
78
|
-
* @throws ApiError
|
|
79
|
-
*/
|
|
80
|
-
updateChecklistItem1(checklistId, itemId, requestBody) {
|
|
81
37
|
return this.httpRequest.request({
|
|
82
38
|
method: 'PUT',
|
|
83
39
|
url: '/v1/checklists/{checklistId}/items/{itemId}',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChecklistsService.js","sourceRoot":"","sources":["../../services/ChecklistsService.ts"],"names":[],"mappings":";;;AAeA,MAAa,iBAAiB;IACE;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;OAKG;IACI,kBAAkB,CACrB,QAAgB;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"ChecklistsService.js","sourceRoot":"","sources":["../../services/ChecklistsService.ts"],"names":[],"mappings":";;;AAeA,MAAa,iBAAiB;IACE;IAA5B,YAA4B,WAA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,MAAM,EAAE;gBACJ,GAAG,EAAE,oCAAoC;gBACzC,GAAG,EAAE,yBAAyB;gBAC9B,GAAG,EAAE,uBAAuB;aAC/B;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AApQD,8CAoQC"}
|
|
@@ -13,12 +13,13 @@ export declare class MembersService {
|
|
|
13
13
|
readonly httpRequest: BaseHttpRequest;
|
|
14
14
|
constructor(httpRequest: BaseHttpRequest);
|
|
15
15
|
/**
|
|
16
|
-
* Create a new corporate member
|
|
16
|
+
* Create a new corporate member. If upsert is true, update existing member if found by referenceId
|
|
17
17
|
* @param requestBody
|
|
18
|
+
* @param upsert If true, update existing member instead of creating if member already exists
|
|
18
19
|
* @returns CorporateMemberDto
|
|
19
20
|
* @throws ApiError
|
|
20
21
|
*/
|
|
21
|
-
createCorporateMember(requestBody: CreateCorporateMemberDto): CancelablePromise<CorporateMemberDto>;
|
|
22
|
+
createCorporateMember(requestBody: CreateCorporateMemberDto, upsert?: boolean): CancelablePromise<CorporateMemberDto>;
|
|
22
23
|
/**
|
|
23
24
|
* Update a corporate member
|
|
24
25
|
* @param memberId
|
|
@@ -35,12 +36,13 @@ export declare class MembersService {
|
|
|
35
36
|
*/
|
|
36
37
|
getCorporateMember(memberId: string): CancelablePromise<CorporateMemberDto>;
|
|
37
38
|
/**
|
|
38
|
-
* Create a new individual member
|
|
39
|
+
* Create a new individual member. If upsert is true, update existing member if found by referenceId
|
|
39
40
|
* @param requestBody
|
|
41
|
+
* @param upsert If true, update existing member instead of creating if member already exists
|
|
40
42
|
* @returns IndividualMemberDto
|
|
41
43
|
* @throws ApiError
|
|
42
44
|
*/
|
|
43
|
-
createIndividualMember(requestBody: CreateIndividualMemberDto): CancelablePromise<IndividualMemberDto>;
|
|
45
|
+
createIndividualMember(requestBody: CreateIndividualMemberDto, upsert?: boolean): CancelablePromise<IndividualMemberDto>;
|
|
44
46
|
/**
|
|
45
47
|
* Update an individual member
|
|
46
48
|
* @param memberId
|
|
@@ -7,15 +7,19 @@ class MembersService {
|
|
|
7
7
|
this.httpRequest = httpRequest;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Create a new corporate member
|
|
10
|
+
* Create a new corporate member. If upsert is true, update existing member if found by referenceId
|
|
11
11
|
* @param requestBody
|
|
12
|
+
* @param upsert If true, update existing member instead of creating if member already exists
|
|
12
13
|
* @returns CorporateMemberDto
|
|
13
14
|
* @throws ApiError
|
|
14
15
|
*/
|
|
15
|
-
createCorporateMember(requestBody) {
|
|
16
|
+
createCorporateMember(requestBody, upsert) {
|
|
16
17
|
return this.httpRequest.request({
|
|
17
18
|
method: 'POST',
|
|
18
19
|
url: '/v1/members/corporates',
|
|
20
|
+
query: {
|
|
21
|
+
'upsert': upsert,
|
|
22
|
+
},
|
|
19
23
|
body: requestBody,
|
|
20
24
|
mediaType: 'application/json',
|
|
21
25
|
});
|
|
@@ -54,15 +58,19 @@ class MembersService {
|
|
|
54
58
|
});
|
|
55
59
|
}
|
|
56
60
|
/**
|
|
57
|
-
* Create a new individual member
|
|
61
|
+
* Create a new individual member. If upsert is true, update existing member if found by referenceId
|
|
58
62
|
* @param requestBody
|
|
63
|
+
* @param upsert If true, update existing member instead of creating if member already exists
|
|
59
64
|
* @returns IndividualMemberDto
|
|
60
65
|
* @throws ApiError
|
|
61
66
|
*/
|
|
62
|
-
createIndividualMember(requestBody) {
|
|
67
|
+
createIndividualMember(requestBody, upsert) {
|
|
63
68
|
return this.httpRequest.request({
|
|
64
69
|
method: 'POST',
|
|
65
70
|
url: '/v1/members/individuals',
|
|
71
|
+
query: {
|
|
72
|
+
'upsert': upsert,
|
|
73
|
+
},
|
|
66
74
|
body: requestBody,
|
|
67
75
|
mediaType: 'application/json',
|
|
68
76
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MembersService.js","sourceRoot":"","sources":["../../services/MembersService.ts"],"names":[],"mappings":";;;AAeA,MAAa,cAAc;IACK;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D
|
|
1
|
+
{"version":3,"file":"MembersService.js","sourceRoot":"","sources":["../../services/MembersService.ts"],"names":[],"mappings":";;;AAeA,MAAa,cAAc;IACK;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;OAMG;IACI,qBAAqB,CACxB,WAAqC,EACrC,MAAgB;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,wBAAwB;YAC7B,KAAK,EAAE;gBACH,QAAQ,EAAE,MAAM;aACnB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,qBAAqB,CACxB,QAAgB,EAChB,WAAqC;QAErC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mCAAmC;YACxC,IAAI,EAAE;gBACF,UAAU,EAAE,QAAQ;aACvB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,kBAAkB,CACrB,QAAgB;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mCAAmC;YACxC,IAAI,EAAE;gBACF,UAAU,EAAE,QAAQ;aACvB;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,sBAAsB,CACzB,WAAsC,EACtC,MAAgB;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,KAAK,EAAE;gBACH,QAAQ,EAAE,MAAM;aACnB;YACD,IAAI,EAAE,WAAW;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A2D;YAChE,IAAI,EAAE;gBACF,UAAU,EAAE,QAAQ;gBACpB,YAAY,EAAE,UAAU;aAC3B;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,8BAA8B,CACjC,QAAgB,EAChB,UAAkB;QAElB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,2DAA2D;YAChE,IAAI,EAAE;gBACF,UAAU,EAAE,QAAQ;gBACpB,YAAY,EAAE,UAAU;aAC3B;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AA1MD,wCA0MC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { ActivateRuleDto } from '../models/ActivateRuleDto';
|
|
1
2
|
import type { CreateRuleDto } from '../models/CreateRuleDto';
|
|
2
|
-
import type { DeleteRuleDto } from '../models/DeleteRuleDto';
|
|
3
3
|
import type { DisableRuleDto } from '../models/DisableRuleDto';
|
|
4
4
|
import type { RuleResponseDto } from '../models/RuleResponseDto';
|
|
5
5
|
import type { UpdateRuleDto } from '../models/UpdateRuleDto';
|
|
@@ -93,22 +93,6 @@ export declare class RulesService {
|
|
|
93
93
|
* - $and
|
|
94
94
|
*
|
|
95
95
|
* - $or
|
|
96
|
-
* @param filterPriority Filter by priority query param.
|
|
97
|
-
*
|
|
98
|
-
* **Format:** filter.priority={$not}:OPERATION:VALUE
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
* **Example:** filter.priority=$eq:John Doe&filter.priority=$in:John Doe
|
|
103
|
-
*
|
|
104
|
-
* **Available Operations**
|
|
105
|
-
* - $eq
|
|
106
|
-
*
|
|
107
|
-
* - $in
|
|
108
|
-
*
|
|
109
|
-
* - $and
|
|
110
|
-
*
|
|
111
|
-
* - $or
|
|
112
96
|
* @param filterUpdatedAt Filter by updatedAt query param.
|
|
113
97
|
*
|
|
114
98
|
* **Format:** filter.updatedAt={$not}:OPERATION:VALUE
|
|
@@ -167,8 +151,6 @@ export declare class RulesService {
|
|
|
167
151
|
*
|
|
168
152
|
* - status
|
|
169
153
|
*
|
|
170
|
-
* - priority
|
|
171
|
-
*
|
|
172
154
|
* @param search Search term to filter result values
|
|
173
155
|
*
|
|
174
156
|
* **Example:** John
|
|
@@ -192,10 +174,10 @@ export declare class RulesService {
|
|
|
192
174
|
* @returns any
|
|
193
175
|
* @throws ApiError
|
|
194
176
|
*/
|
|
195
|
-
listRules(page?: number, limit?: number, filterId?: Array<string>, filterName?: Array<string>, filterStatus?: Array<string>,
|
|
177
|
+
listRules(page?: number, limit?: number, filterId?: Array<string>, filterName?: Array<string>, filterStatus?: Array<string>, filterUpdatedAt?: Array<string>, filterCreatedAt?: Array<string>, sortBy?: Array<'id:ASC' | 'id:DESC' | 'name:ASC' | 'name:DESC' | 'updatedAt:ASC' | 'updatedAt:DESC' | 'createdAt:ASC' | 'createdAt:DESC' | 'status:ASC' | 'status:DESC'>, search?: string, searchBy?: Array<string>): CancelablePromise<any>;
|
|
196
178
|
/**
|
|
197
|
-
* Update a
|
|
198
|
-
* Update a
|
|
179
|
+
* Update a rule
|
|
180
|
+
* Update a rule
|
|
199
181
|
* @param id
|
|
200
182
|
* @param requestBody
|
|
201
183
|
* @returns RuleResponseDto
|
|
@@ -203,31 +185,32 @@ export declare class RulesService {
|
|
|
203
185
|
*/
|
|
204
186
|
updateRule(id: string, requestBody: UpdateRuleDto): CancelablePromise<RuleResponseDto>;
|
|
205
187
|
/**
|
|
206
|
-
*
|
|
207
|
-
*
|
|
188
|
+
* Delete a non-active rule (soft delete)
|
|
189
|
+
* Delete a non-active rule (soft delete)
|
|
208
190
|
* @param id
|
|
209
|
-
* @param
|
|
210
|
-
* @returns
|
|
191
|
+
* @param reason
|
|
192
|
+
* @returns any
|
|
211
193
|
* @throws ApiError
|
|
212
194
|
*/
|
|
213
|
-
|
|
195
|
+
deleteRule(id: string, reason?: string): CancelablePromise<any>;
|
|
214
196
|
/**
|
|
215
|
-
*
|
|
216
|
-
*
|
|
197
|
+
* Get a rule by ID
|
|
198
|
+
* Get a rule by ID
|
|
217
199
|
* @param id
|
|
218
|
-
* @param
|
|
200
|
+
* @param version
|
|
219
201
|
* @returns RuleResponseDto
|
|
220
202
|
* @throws ApiError
|
|
221
203
|
*/
|
|
222
|
-
|
|
204
|
+
getRule(id: string, version?: number): CancelablePromise<RuleResponseDto>;
|
|
223
205
|
/**
|
|
224
206
|
* Activate a rule
|
|
225
207
|
* Activate a rule
|
|
226
208
|
* @param id
|
|
209
|
+
* @param requestBody
|
|
227
210
|
* @returns RuleResponseDto
|
|
228
211
|
* @throws ApiError
|
|
229
212
|
*/
|
|
230
|
-
activateRule(id: string): CancelablePromise<RuleResponseDto>;
|
|
213
|
+
activateRule(id: string, requestBody?: ActivateRuleDto): CancelablePromise<RuleResponseDto>;
|
|
231
214
|
/**
|
|
232
215
|
* Disable an active rule
|
|
233
216
|
* Disable an active rule
|
|
@@ -236,14 +219,5 @@ export declare class RulesService {
|
|
|
236
219
|
* @returns RuleResponseDto
|
|
237
220
|
* @throws ApiError
|
|
238
221
|
*/
|
|
239
|
-
disableRule(id: string, requestBody
|
|
240
|
-
/**
|
|
241
|
-
* Delete a non-active rule (soft delete)
|
|
242
|
-
* Delete a non-active rule (soft delete)
|
|
243
|
-
* @param id
|
|
244
|
-
* @param requestBody
|
|
245
|
-
* @returns any
|
|
246
|
-
* @throws ApiError
|
|
247
|
-
*/
|
|
248
|
-
deleteRule(id: string, requestBody: DeleteRuleDto): CancelablePromise<any>;
|
|
222
|
+
disableRule(id: string, requestBody?: DisableRuleDto): CancelablePromise<RuleResponseDto>;
|
|
249
223
|
}
|
|
@@ -16,7 +16,7 @@ class RulesService {
|
|
|
16
16
|
createRule(requestBody) {
|
|
17
17
|
return this.httpRequest.request({
|
|
18
18
|
method: 'POST',
|
|
19
|
-
url: '/rules',
|
|
19
|
+
url: '/v1/rules',
|
|
20
20
|
body: requestBody,
|
|
21
21
|
mediaType: 'application/json',
|
|
22
22
|
});
|
|
@@ -98,22 +98,6 @@ class RulesService {
|
|
|
98
98
|
* - $and
|
|
99
99
|
*
|
|
100
100
|
* - $or
|
|
101
|
-
* @param filterPriority Filter by priority query param.
|
|
102
|
-
*
|
|
103
|
-
* **Format:** filter.priority={$not}:OPERATION:VALUE
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
* **Example:** filter.priority=$eq:John Doe&filter.priority=$in:John Doe
|
|
108
|
-
*
|
|
109
|
-
* **Available Operations**
|
|
110
|
-
* - $eq
|
|
111
|
-
*
|
|
112
|
-
* - $in
|
|
113
|
-
*
|
|
114
|
-
* - $and
|
|
115
|
-
*
|
|
116
|
-
* - $or
|
|
117
101
|
* @param filterUpdatedAt Filter by updatedAt query param.
|
|
118
102
|
*
|
|
119
103
|
* **Format:** filter.updatedAt={$not}:OPERATION:VALUE
|
|
@@ -172,8 +156,6 @@ class RulesService {
|
|
|
172
156
|
*
|
|
173
157
|
* - status
|
|
174
158
|
*
|
|
175
|
-
* - priority
|
|
176
|
-
*
|
|
177
159
|
* @param search Search term to filter result values
|
|
178
160
|
*
|
|
179
161
|
* **Example:** John
|
|
@@ -197,17 +179,16 @@ class RulesService {
|
|
|
197
179
|
* @returns any
|
|
198
180
|
* @throws ApiError
|
|
199
181
|
*/
|
|
200
|
-
listRules(page, limit, filterId, filterName, filterStatus,
|
|
182
|
+
listRules(page, limit, filterId, filterName, filterStatus, filterUpdatedAt, filterCreatedAt, sortBy, search, searchBy) {
|
|
201
183
|
return this.httpRequest.request({
|
|
202
184
|
method: 'GET',
|
|
203
|
-
url: '/rules',
|
|
185
|
+
url: '/v1/rules',
|
|
204
186
|
query: {
|
|
205
187
|
'page': page,
|
|
206
188
|
'limit': limit,
|
|
207
189
|
'filter.id': filterId,
|
|
208
190
|
'filter.name': filterName,
|
|
209
191
|
'filter.status': filterStatus,
|
|
210
|
-
'filter.priority': filterPriority,
|
|
211
192
|
'filter.updatedAt': filterUpdatedAt,
|
|
212
193
|
'filter.createdAt': filterCreatedAt,
|
|
213
194
|
'sortBy': sortBy,
|
|
@@ -217,8 +198,8 @@ class RulesService {
|
|
|
217
198
|
});
|
|
218
199
|
}
|
|
219
200
|
/**
|
|
220
|
-
* Update a
|
|
221
|
-
* Update a
|
|
201
|
+
* Update a rule
|
|
202
|
+
* Update a rule
|
|
222
203
|
* @param id
|
|
223
204
|
* @param requestBody
|
|
224
205
|
* @returns RuleResponseDto
|
|
@@ -227,7 +208,7 @@ class RulesService {
|
|
|
227
208
|
updateRule(id, requestBody) {
|
|
228
209
|
return this.httpRequest.request({
|
|
229
210
|
method: 'PUT',
|
|
230
|
-
url: '/rules/{id}',
|
|
211
|
+
url: '/v1/rules/{id}',
|
|
231
212
|
path: {
|
|
232
213
|
'id': id,
|
|
233
214
|
},
|
|
@@ -236,58 +217,62 @@ class RulesService {
|
|
|
236
217
|
});
|
|
237
218
|
}
|
|
238
219
|
/**
|
|
239
|
-
*
|
|
240
|
-
*
|
|
220
|
+
* Delete a non-active rule (soft delete)
|
|
221
|
+
* Delete a non-active rule (soft delete)
|
|
241
222
|
* @param id
|
|
242
|
-
* @param
|
|
243
|
-
* @returns
|
|
223
|
+
* @param reason
|
|
224
|
+
* @returns any
|
|
244
225
|
* @throws ApiError
|
|
245
226
|
*/
|
|
246
|
-
|
|
227
|
+
deleteRule(id, reason) {
|
|
247
228
|
return this.httpRequest.request({
|
|
248
|
-
method: '
|
|
249
|
-
url: '/rules/{id}',
|
|
229
|
+
method: 'DELETE',
|
|
230
|
+
url: '/v1/rules/{id}',
|
|
250
231
|
path: {
|
|
251
232
|
'id': id,
|
|
252
233
|
},
|
|
253
234
|
query: {
|
|
254
|
-
'
|
|
235
|
+
'reason': reason,
|
|
255
236
|
},
|
|
256
237
|
});
|
|
257
238
|
}
|
|
258
239
|
/**
|
|
259
|
-
*
|
|
260
|
-
*
|
|
240
|
+
* Get a rule by ID
|
|
241
|
+
* Get a rule by ID
|
|
261
242
|
* @param id
|
|
262
|
-
* @param
|
|
243
|
+
* @param version
|
|
263
244
|
* @returns RuleResponseDto
|
|
264
245
|
* @throws ApiError
|
|
265
246
|
*/
|
|
266
|
-
|
|
247
|
+
getRule(id, version) {
|
|
267
248
|
return this.httpRequest.request({
|
|
268
|
-
method: '
|
|
269
|
-
url: '/rules/{id}
|
|
249
|
+
method: 'GET',
|
|
250
|
+
url: '/v1/rules/{id}',
|
|
270
251
|
path: {
|
|
271
252
|
'id': id,
|
|
272
253
|
},
|
|
273
|
-
|
|
274
|
-
|
|
254
|
+
query: {
|
|
255
|
+
'version': version,
|
|
256
|
+
},
|
|
275
257
|
});
|
|
276
258
|
}
|
|
277
259
|
/**
|
|
278
260
|
* Activate a rule
|
|
279
261
|
* Activate a rule
|
|
280
262
|
* @param id
|
|
263
|
+
* @param requestBody
|
|
281
264
|
* @returns RuleResponseDto
|
|
282
265
|
* @throws ApiError
|
|
283
266
|
*/
|
|
284
|
-
activateRule(id) {
|
|
267
|
+
activateRule(id, requestBody) {
|
|
285
268
|
return this.httpRequest.request({
|
|
286
269
|
method: 'POST',
|
|
287
|
-
url: '/rules/{id}/activate',
|
|
270
|
+
url: '/v1/rules/{id}/activate',
|
|
288
271
|
path: {
|
|
289
272
|
'id': id,
|
|
290
273
|
},
|
|
274
|
+
body: requestBody,
|
|
275
|
+
mediaType: 'application/json',
|
|
291
276
|
});
|
|
292
277
|
}
|
|
293
278
|
/**
|
|
@@ -301,26 +286,7 @@ class RulesService {
|
|
|
301
286
|
disableRule(id, requestBody) {
|
|
302
287
|
return this.httpRequest.request({
|
|
303
288
|
method: 'POST',
|
|
304
|
-
url: '/rules/{id}/disable',
|
|
305
|
-
path: {
|
|
306
|
-
'id': id,
|
|
307
|
-
},
|
|
308
|
-
body: requestBody,
|
|
309
|
-
mediaType: 'application/json',
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
/**
|
|
313
|
-
* Delete a non-active rule (soft delete)
|
|
314
|
-
* Delete a non-active rule (soft delete)
|
|
315
|
-
* @param id
|
|
316
|
-
* @param requestBody
|
|
317
|
-
* @returns any
|
|
318
|
-
* @throws ApiError
|
|
319
|
-
*/
|
|
320
|
-
deleteRule(id, requestBody) {
|
|
321
|
-
return this.httpRequest.request({
|
|
322
|
-
method: 'POST',
|
|
323
|
-
url: '/rules/{id}/delete',
|
|
289
|
+
url: '/v1/rules/{id}/disable',
|
|
324
290
|
path: {
|
|
325
291
|
'id': id,
|
|
326
292
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RulesService.js","sourceRoot":"","sources":["../../services/RulesService.ts"],"names":[],"mappings":";;;AAWA,MAAa,YAAY;IACO;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;OAMG;IACI,UAAU,CACb,WAA0B;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"RulesService.js","sourceRoot":"","sources":["../../services/RulesService.ts"],"names":[],"mappings":";;;AAWA,MAAa,YAAY;IACO;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;OAMG;IACI,UAAU,CACb,WAA0B;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,WAAW;YAChB,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,gBAAgB;YACrB,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,KAAK,EAAE;gBACH,SAAS,EAAE,OAAO;aACrB;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,YAAY,CACf,EAAU,EACV,WAA6B;QAE7B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,WAAW,CACd,EAAU,EACV,WAA4B;QAE5B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,wBAAwB;YAC7B,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ;AA9TD,oCA8TC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteRuleDto.js","sourceRoot":"","sources":["../../models/DeleteRuleDto.ts"],"names":[],"mappings":""}
|