@corsa-labs/sdk 4.16.13 → 4.17.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/ComplianceClient.d.ts +0 -4
- package/dist/ComplianceClient.js +0 -6
- package/dist/ComplianceClient.js.map +1 -1
- package/dist/models/UpdateBankAccountDto.d.ts +4 -0
- package/dist/models/UpdateBankAccountDto.js.map +1 -1
- package/dist/models/UpdateBlockchainWalletDto.d.ts +4 -0
- package/package.json +1 -1
- package/dist/models/ActionConfigDto.d.ts +0 -19
- package/dist/models/ActionConfigDto.js +0 -15
- package/dist/models/ActionConfigDto.js.map +0 -1
- package/dist/models/ActivateRuleDto.d.ts +0 -6
- package/dist/models/ActivateRuleDto.js +0 -3
- package/dist/models/ActivateRuleDto.js.map +0 -1
- package/dist/models/AggregationFilterDto.d.ts +0 -20
- package/dist/models/AggregationFilterDto.js +0 -21
- package/dist/models/AggregationFilterDto.js.map +0 -1
- package/dist/models/ConditionDto.d.ts +0 -133
- package/dist/models/ConditionDto.js +0 -73
- package/dist/models/ConditionDto.js.map +0 -1
- package/dist/models/ConditionResultDto.d.ts +0 -30
- package/dist/models/ConditionResultDto.js +0 -3
- package/dist/models/ConditionResultDto.js.map +0 -1
- package/dist/models/ConditionsDto.d.ts +0 -11
- package/dist/models/ConditionsDto.js +0 -3
- package/dist/models/ConditionsDto.js.map +0 -1
- package/dist/models/CreateRuleDto.d.ts +0 -20
- package/dist/models/CreateRuleDto.js +0 -3
- package/dist/models/CreateRuleDto.js.map +0 -1
- package/dist/models/DisableRuleDto.d.ts +0 -6
- package/dist/models/DisableRuleDto.js +0 -3
- package/dist/models/DisableRuleDto.js.map +0 -1
- package/dist/models/EvaluationRequestDto.d.ts +0 -10
- package/dist/models/EvaluationRequestDto.js +0 -3
- package/dist/models/EvaluationRequestDto.js.map +0 -1
- package/dist/models/EvaluationResultDto.d.ts +0 -27
- package/dist/models/EvaluationResultDto.js +0 -15
- package/dist/models/EvaluationResultDto.js.map +0 -1
- package/dist/models/RuleMatchDto.d.ts +0 -28
- package/dist/models/RuleMatchDto.js +0 -15
- package/dist/models/RuleMatchDto.js.map +0 -1
- package/dist/models/RuleResponseDto.d.ts +0 -18
- package/dist/models/RuleResponseDto.js +0 -13
- package/dist/models/RuleResponseDto.js.map +0 -1
- package/dist/models/UpdateRuleDto.d.ts +0 -15
- package/dist/models/UpdateRuleDto.js +0 -3
- package/dist/models/UpdateRuleDto.js.map +0 -1
- package/dist/services/EvaluationService.d.ts +0 -16
- package/dist/services/EvaluationService.js +0 -26
- package/dist/services/EvaluationService.js.map +0 -1
- package/dist/services/RulesService.d.ts +0 -223
- package/dist/services/RulesService.js +0 -299
- package/dist/services/RulesService.js.map +0 -1
|
@@ -8,10 +8,8 @@ import { CasesService } from './services/CasesService';
|
|
|
8
8
|
import { ChecklistsService } from './services/ChecklistsService';
|
|
9
9
|
import { ClientsService } from './services/ClientsService';
|
|
10
10
|
import { DepositsService } from './services/DepositsService';
|
|
11
|
-
import { EvaluationService } from './services/EvaluationService';
|
|
12
11
|
import { MembersService } from './services/MembersService';
|
|
13
12
|
import { PlatformService } from './services/PlatformService';
|
|
14
|
-
import { RulesService } from './services/RulesService';
|
|
15
13
|
import { TradesService } from './services/TradesService';
|
|
16
14
|
import { TransactionsService } from './services/TransactionsService';
|
|
17
15
|
import { WithdrawalsService } from './services/WithdrawalsService';
|
|
@@ -25,10 +23,8 @@ export declare class ComplianceClient {
|
|
|
25
23
|
readonly checklists: ChecklistsService;
|
|
26
24
|
readonly clients: ClientsService;
|
|
27
25
|
readonly deposits: DepositsService;
|
|
28
|
-
readonly evaluation: EvaluationService;
|
|
29
26
|
readonly members: MembersService;
|
|
30
27
|
readonly platform: PlatformService;
|
|
31
|
-
readonly rules: RulesService;
|
|
32
28
|
readonly trades: TradesService;
|
|
33
29
|
readonly transactions: TransactionsService;
|
|
34
30
|
readonly withdrawals: WithdrawalsService;
|
package/dist/ComplianceClient.js
CHANGED
|
@@ -10,10 +10,8 @@ const CasesService_1 = require("./services/CasesService");
|
|
|
10
10
|
const ChecklistsService_1 = require("./services/ChecklistsService");
|
|
11
11
|
const ClientsService_1 = require("./services/ClientsService");
|
|
12
12
|
const DepositsService_1 = require("./services/DepositsService");
|
|
13
|
-
const EvaluationService_1 = require("./services/EvaluationService");
|
|
14
13
|
const MembersService_1 = require("./services/MembersService");
|
|
15
14
|
const PlatformService_1 = require("./services/PlatformService");
|
|
16
|
-
const RulesService_1 = require("./services/RulesService");
|
|
17
15
|
const TradesService_1 = require("./services/TradesService");
|
|
18
16
|
const TransactionsService_1 = require("./services/TransactionsService");
|
|
19
17
|
const WithdrawalsService_1 = require("./services/WithdrawalsService");
|
|
@@ -26,10 +24,8 @@ class ComplianceClient {
|
|
|
26
24
|
checklists;
|
|
27
25
|
clients;
|
|
28
26
|
deposits;
|
|
29
|
-
evaluation;
|
|
30
27
|
members;
|
|
31
28
|
platform;
|
|
32
|
-
rules;
|
|
33
29
|
trades;
|
|
34
30
|
transactions;
|
|
35
31
|
withdrawals;
|
|
@@ -54,10 +50,8 @@ class ComplianceClient {
|
|
|
54
50
|
this.checklists = new ChecklistsService_1.ChecklistsService(this.request);
|
|
55
51
|
this.clients = new ClientsService_1.ClientsService(this.request);
|
|
56
52
|
this.deposits = new DepositsService_1.DepositsService(this.request);
|
|
57
|
-
this.evaluation = new EvaluationService_1.EvaluationService(this.request);
|
|
58
53
|
this.members = new MembersService_1.MembersService(this.request);
|
|
59
54
|
this.platform = new PlatformService_1.PlatformService(this.request);
|
|
60
|
-
this.rules = new RulesService_1.RulesService(this.request);
|
|
61
55
|
this.trades = new TradesService_1.TradesService(this.request);
|
|
62
56
|
this.transactions = new TransactionsService_1.TransactionsService(this.request);
|
|
63
57
|
this.withdrawals = new WithdrawalsService_1.WithdrawalsService(this.request);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComplianceClient.js","sourceRoot":"","sources":["../ComplianceClient.ts"],"names":[],"m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3
|
export type UpdateBankAccountDto = {
|
|
4
|
+
/**
|
|
5
|
+
* External reference ID for the bank account
|
|
6
|
+
*/
|
|
7
|
+
referenceId?: string;
|
|
4
8
|
/**
|
|
5
9
|
* Status of the bank account
|
|
6
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateBankAccountDto.js","sourceRoot":"","sources":["../../models/UpdateBankAccountDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"UpdateBankAccountDto.js","sourceRoot":"","sources":["../../models/UpdateBankAccountDto.ts"],"names":[],"mappings":";;;AA4DA,IAAiB,oBAAoB,CASpC;AATD,WAAiB,oBAAoB;IACjC;;OAEG;IACH,IAAY,MAIX;IAJD,WAAY,MAAM;QACd,2BAAiB,CAAA;QACjB,+BAAqB,CAAA;QACrB,2BAAiB,CAAA;IACrB,CAAC,EAJW,MAAM,GAAN,2BAAM,KAAN,2BAAM,QAIjB;AACL,CAAC,EATgB,oBAAoB,oCAApB,oBAAoB,QASpC"}
|
|
@@ -2,6 +2,10 @@ import type { BlockchainWalletIntegrationsDto } from './BlockchainWalletIntegrat
|
|
|
2
2
|
import type { ClientBlockchainWalletRelationDto } from './ClientBlockchainWalletRelationDto';
|
|
3
3
|
import type { CreateOrUpdateRiskDto } from './CreateOrUpdateRiskDto';
|
|
4
4
|
export type UpdateBlockchainWalletDto = {
|
|
5
|
+
/**
|
|
6
|
+
* External reference ID for the blockchain wallet
|
|
7
|
+
*/
|
|
8
|
+
referenceId?: string;
|
|
5
9
|
/**
|
|
6
10
|
* Screening date of the blockchain wallet
|
|
7
11
|
*/
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type ActionConfigDto = {
|
|
2
|
-
/**
|
|
3
|
-
* Action type
|
|
4
|
-
*/
|
|
5
|
-
type: ActionConfigDto.type;
|
|
6
|
-
/**
|
|
7
|
-
* Action-specific configuration
|
|
8
|
-
*/
|
|
9
|
-
config: Record<string, any>;
|
|
10
|
-
};
|
|
11
|
-
export declare namespace ActionConfigDto {
|
|
12
|
-
/**
|
|
13
|
-
* Action type
|
|
14
|
-
*/
|
|
15
|
-
enum type {
|
|
16
|
-
CREATE_ALERT = "CREATE_ALERT",
|
|
17
|
-
HALT_TRANSACTION = "HALT_TRANSACTION"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActionConfigDto = void 0;
|
|
4
|
-
var ActionConfigDto;
|
|
5
|
-
(function (ActionConfigDto) {
|
|
6
|
-
/**
|
|
7
|
-
* Action type
|
|
8
|
-
*/
|
|
9
|
-
let type;
|
|
10
|
-
(function (type) {
|
|
11
|
-
type["CREATE_ALERT"] = "CREATE_ALERT";
|
|
12
|
-
type["HALT_TRANSACTION"] = "HALT_TRANSACTION";
|
|
13
|
-
})(type = ActionConfigDto.type || (ActionConfigDto.type = {}));
|
|
14
|
-
})(ActionConfigDto || (exports.ActionConfigDto = ActionConfigDto = {}));
|
|
15
|
-
//# sourceMappingURL=ActionConfigDto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,6CAAqC,CAAA;IACzC,CAAC,EAHW,IAAI,GAAJ,oBAAI,KAAJ,oBAAI,QAGf;AACL,CAAC,EARgB,eAAe,+BAAf,eAAe,QAQ/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ActivateRuleDto.js","sourceRoot":"","sources":["../../models/ActivateRuleDto.ts"],"names":[],"mappings":""}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,133 +0,0 @@
|
|
|
1
|
-
import type { AggregationFilterDto } from './AggregationFilterDto';
|
|
2
|
-
export type ConditionDto = {
|
|
3
|
-
/**
|
|
4
|
-
* Label for this condition or condition group
|
|
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>;
|
|
47
|
-
/**
|
|
48
|
-
* Fact name to evaluate
|
|
49
|
-
*/
|
|
50
|
-
fact?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Comparison operator
|
|
53
|
-
*/
|
|
54
|
-
operator?: ConditionDto.operator;
|
|
55
|
-
/**
|
|
56
|
-
* Value to compare against
|
|
57
|
-
*/
|
|
58
|
-
value?: Record<string, any>;
|
|
59
|
-
/**
|
|
60
|
-
* JSONPath for nested object properties
|
|
61
|
-
*/
|
|
62
|
-
path?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Nested ALL conditions (AND logic)
|
|
65
|
-
*/
|
|
66
|
-
all?: Array<Record<string, any>>;
|
|
67
|
-
/**
|
|
68
|
-
* Nested ANY conditions (OR logic)
|
|
69
|
-
*/
|
|
70
|
-
any?: Array<Record<string, any>>;
|
|
71
|
-
};
|
|
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
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Comparison operator
|
|
119
|
-
*/
|
|
120
|
-
enum operator {
|
|
121
|
-
EQUAL = "equal",
|
|
122
|
-
NOT_EQUAL = "notEqual",
|
|
123
|
-
GREATER_THAN = "greaterThan",
|
|
124
|
-
GREATER_THAN_INCLUSIVE = "greaterThanInclusive",
|
|
125
|
-
LESS_THAN = "lessThan",
|
|
126
|
-
LESS_THAN_INCLUSIVE = "lessThanInclusive",
|
|
127
|
-
IN = "in",
|
|
128
|
-
NOT_IN = "notIn",
|
|
129
|
-
CONTAINS = "contains",
|
|
130
|
-
DOES_NOT_CONTAIN = "doesNotContain",
|
|
131
|
-
BETWEEN = "between"
|
|
132
|
-
}
|
|
133
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConditionDto = void 0;
|
|
4
|
-
var ConditionDto;
|
|
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 = {}));
|
|
55
|
-
/**
|
|
56
|
-
* Comparison operator
|
|
57
|
-
*/
|
|
58
|
-
let operator;
|
|
59
|
-
(function (operator) {
|
|
60
|
-
operator["EQUAL"] = "equal";
|
|
61
|
-
operator["NOT_EQUAL"] = "notEqual";
|
|
62
|
-
operator["GREATER_THAN"] = "greaterThan";
|
|
63
|
-
operator["GREATER_THAN_INCLUSIVE"] = "greaterThanInclusive";
|
|
64
|
-
operator["LESS_THAN"] = "lessThan";
|
|
65
|
-
operator["LESS_THAN_INCLUSIVE"] = "lessThanInclusive";
|
|
66
|
-
operator["IN"] = "in";
|
|
67
|
-
operator["NOT_IN"] = "notIn";
|
|
68
|
-
operator["CONTAINS"] = "contains";
|
|
69
|
-
operator["DOES_NOT_CONTAIN"] = "doesNotContain";
|
|
70
|
-
operator["BETWEEN"] = "between";
|
|
71
|
-
})(operator = ConditionDto.operator || (ConditionDto.operator = {}));
|
|
72
|
-
})(ConditionDto || (exports.ConditionDto = ConditionDto = {}));
|
|
73
|
-
//# sourceMappingURL=ConditionDto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export type ConditionResultDto = {
|
|
2
|
-
/**
|
|
3
|
-
* Fact name that was evaluated
|
|
4
|
-
*/
|
|
5
|
-
fact: string;
|
|
6
|
-
/**
|
|
7
|
-
* label for the fact
|
|
8
|
-
*/
|
|
9
|
-
factLabel?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Operator used (greaterThan, lessThan, equal, etc.)
|
|
12
|
-
*/
|
|
13
|
-
operator: string;
|
|
14
|
-
/**
|
|
15
|
-
* Expected value from rule condition
|
|
16
|
-
*/
|
|
17
|
-
value: Record<string, any>;
|
|
18
|
-
/**
|
|
19
|
-
* Actual value of the fact
|
|
20
|
-
*/
|
|
21
|
-
factValue: Record<string, any>;
|
|
22
|
-
/**
|
|
23
|
-
* Whether this condition passed
|
|
24
|
-
*/
|
|
25
|
-
result: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Aggregation definition when fact is an aggregation (present only for agg facts)
|
|
28
|
-
*/
|
|
29
|
-
aggregation?: Record<string, any>;
|
|
30
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionResultDto.js","sourceRoot":"","sources":["../../models/ConditionResultDto.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ConditionDto } from './ConditionDto';
|
|
2
|
-
export type ConditionsDto = {
|
|
3
|
-
/**
|
|
4
|
-
* ALL conditions (AND logic) - all must be true
|
|
5
|
-
*/
|
|
6
|
-
all?: Array<ConditionDto>;
|
|
7
|
-
/**
|
|
8
|
-
* ANY conditions (OR logic) - at least one must be true
|
|
9
|
-
*/
|
|
10
|
-
any?: Array<ConditionDto>;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionsDto.js","sourceRoot":"","sources":["../../models/ConditionsDto.ts"],"names":[],"mappings":""}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ActionConfigDto } from './ActionConfigDto';
|
|
2
|
-
import type { ConditionsDto } from './ConditionsDto';
|
|
3
|
-
export type CreateRuleDto = {
|
|
4
|
-
/**
|
|
5
|
-
* User-facing rule name
|
|
6
|
-
*/
|
|
7
|
-
name: string;
|
|
8
|
-
/**
|
|
9
|
-
* Detailed description of what the rule does
|
|
10
|
-
*/
|
|
11
|
-
description?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Actions to execute when rule matches
|
|
14
|
-
*/
|
|
15
|
-
actions: Array<ActionConfigDto>;
|
|
16
|
-
/**
|
|
17
|
-
* Rule conditions (IF logic)
|
|
18
|
-
*/
|
|
19
|
-
conditions: ConditionsDto;
|
|
20
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateRuleDto.js","sourceRoot":"","sources":["../../models/CreateRuleDto.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DisableRuleDto.js","sourceRoot":"","sources":["../../models/DisableRuleDto.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type EvaluationRequestDto = {
|
|
2
|
-
/**
|
|
3
|
-
* Optional transaction ID for tracking/correlation.
|
|
4
|
-
*/
|
|
5
|
-
transactionId?: string;
|
|
6
|
-
/**
|
|
7
|
-
* Transaction data to evaluate. The 'id' field is optional and will be taken from transactionId if provided.
|
|
8
|
-
*/
|
|
9
|
-
transactionData: Record<string, any>;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EvaluationRequestDto.js","sourceRoot":"","sources":["../../models/EvaluationRequestDto.ts"],"names":[],"mappings":""}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { RuleMatchDto } from './RuleMatchDto';
|
|
2
|
-
export type EvaluationResultDto = {
|
|
3
|
-
/**
|
|
4
|
-
* Transaction ID if provided, undefined for anonymous evaluations
|
|
5
|
-
*/
|
|
6
|
-
transactionId?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Final decision: FREEZE if any rule would freeze, otherwise ALLOW
|
|
9
|
-
*/
|
|
10
|
-
decision: EvaluationResultDto.decision;
|
|
11
|
-
/**
|
|
12
|
-
* List of triggered rule IDs
|
|
13
|
-
*/
|
|
14
|
-
triggeredRuleIds: Array<string>;
|
|
15
|
-
matches: Array<RuleMatchDto>;
|
|
16
|
-
evaluatedAt: string;
|
|
17
|
-
latencyMs: number;
|
|
18
|
-
};
|
|
19
|
-
export declare namespace EvaluationResultDto {
|
|
20
|
-
/**
|
|
21
|
-
* Final decision: FREEZE if any rule would freeze, otherwise ALLOW
|
|
22
|
-
*/
|
|
23
|
-
enum decision {
|
|
24
|
-
FREEZE = "FREEZE",
|
|
25
|
-
ALLOW = "ALLOW"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EvaluationResultDto = void 0;
|
|
4
|
-
var EvaluationResultDto;
|
|
5
|
-
(function (EvaluationResultDto) {
|
|
6
|
-
/**
|
|
7
|
-
* Final decision: FREEZE if any rule would freeze, otherwise ALLOW
|
|
8
|
-
*/
|
|
9
|
-
let decision;
|
|
10
|
-
(function (decision) {
|
|
11
|
-
decision["FREEZE"] = "FREEZE";
|
|
12
|
-
decision["ALLOW"] = "ALLOW";
|
|
13
|
-
})(decision = EvaluationResultDto.decision || (EvaluationResultDto.decision = {}));
|
|
14
|
-
})(EvaluationResultDto || (exports.EvaluationResultDto = EvaluationResultDto = {}));
|
|
15
|
-
//# sourceMappingURL=EvaluationResultDto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EvaluationResultDto.js","sourceRoot":"","sources":["../../models/EvaluationResultDto.ts"],"names":[],"mappings":";;;AAsBA,IAAiB,mBAAmB,CAQnC;AARD,WAAiB,mBAAmB;IAChC;;OAEG;IACH,IAAY,QAGX;IAHD,WAAY,QAAQ;QAChB,6BAAiB,CAAA;QACjB,2BAAe,CAAA;IACnB,CAAC,EAHW,QAAQ,GAAR,4BAAQ,KAAR,4BAAQ,QAGnB;AACL,CAAC,EARgB,mBAAmB,mCAAnB,mBAAmB,QAQnC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { ConditionResultDto } from './ConditionResultDto';
|
|
2
|
-
export type RuleMatchDto = {
|
|
3
|
-
id: string;
|
|
4
|
-
version: number;
|
|
5
|
-
ruleName: string;
|
|
6
|
-
/**
|
|
7
|
-
* Rule decision: FREEZE if rule has HALT_TRANSACTION action, otherwise ALLOW
|
|
8
|
-
*/
|
|
9
|
-
decision: RuleMatchDto.decision;
|
|
10
|
-
actions: Array<Record<string, any>>;
|
|
11
|
-
/**
|
|
12
|
-
* All facts used in evaluation
|
|
13
|
-
*/
|
|
14
|
-
explain: Record<string, any>;
|
|
15
|
-
/**
|
|
16
|
-
* Detailed information about which conditions triggered the rule
|
|
17
|
-
*/
|
|
18
|
-
conditionResults?: Array<ConditionResultDto>;
|
|
19
|
-
};
|
|
20
|
-
export declare namespace RuleMatchDto {
|
|
21
|
-
/**
|
|
22
|
-
* Rule decision: FREEZE if rule has HALT_TRANSACTION action, otherwise ALLOW
|
|
23
|
-
*/
|
|
24
|
-
enum decision {
|
|
25
|
-
FREEZE = "FREEZE",
|
|
26
|
-
ALLOW = "ALLOW"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RuleMatchDto = void 0;
|
|
4
|
-
var RuleMatchDto;
|
|
5
|
-
(function (RuleMatchDto) {
|
|
6
|
-
/**
|
|
7
|
-
* Rule decision: FREEZE if rule has HALT_TRANSACTION action, otherwise ALLOW
|
|
8
|
-
*/
|
|
9
|
-
let decision;
|
|
10
|
-
(function (decision) {
|
|
11
|
-
decision["FREEZE"] = "FREEZE";
|
|
12
|
-
decision["ALLOW"] = "ALLOW";
|
|
13
|
-
})(decision = RuleMatchDto.decision || (RuleMatchDto.decision = {}));
|
|
14
|
-
})(RuleMatchDto || (exports.RuleMatchDto = RuleMatchDto = {}));
|
|
15
|
-
//# sourceMappingURL=RuleMatchDto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RuleMatchDto.js","sourceRoot":"","sources":["../../models/RuleMatchDto.ts"],"names":[],"mappings":";;;AAuBA,IAAiB,YAAY,CAQ5B;AARD,WAAiB,YAAY;IACzB;;OAEG;IACH,IAAY,QAGX;IAHD,WAAY,QAAQ;QAChB,6BAAiB,CAAA;QACjB,2BAAe,CAAA;IACnB,CAAC,EAHW,QAAQ,GAAR,qBAAQ,KAAR,qBAAQ,QAGnB;AACL,CAAC,EARgB,YAAY,4BAAZ,YAAY,QAQ5B"}
|