@corsa-labs/sdk 4.6.0 → 4.7.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 +4 -0
- package/dist/ComplianceClient.js +6 -0
- package/dist/ComplianceClient.js.map +1 -1
- package/dist/models/ActionConfigDto.d.ts +19 -0
- package/dist/models/ActionConfigDto.js +15 -0
- package/dist/models/ActionConfigDto.js.map +1 -0
- package/dist/models/ChecklistItemResponseDto.d.ts +74 -0
- package/dist/models/ChecklistItemResponseDto.js +18 -0
- package/dist/models/ChecklistItemResponseDto.js.map +1 -0
- package/dist/models/ChecklistResponseDto.d.ts +62 -0
- package/dist/models/ChecklistResponseDto.js +26 -0
- package/dist/models/ChecklistResponseDto.js.map +1 -0
- package/dist/models/ChecklistTemplateItemResponseDto.d.ts +45 -0
- package/dist/models/ChecklistTemplateItemResponseDto.js +18 -0
- package/dist/models/ChecklistTemplateItemResponseDto.js.map +1 -0
- package/dist/models/ChecklistTemplateResponseDto.d.ts +50 -0
- package/dist/models/ChecklistTemplateResponseDto.js +17 -0
- package/dist/models/ChecklistTemplateResponseDto.js.map +1 -0
- package/dist/models/ConditionDto.d.ts +47 -0
- package/dist/models/ConditionDto.js +23 -0
- package/dist/models/ConditionDto.js.map +1 -0
- package/dist/models/ConditionsDto.d.ts +11 -0
- package/dist/models/ConditionsDto.js +3 -0
- package/dist/models/ConditionsDto.js.map +1 -0
- package/dist/models/CorporateClientDto.d.ts +6 -5
- package/dist/models/CorporateClientDto.js.map +1 -1
- package/dist/models/CreateChecklistTemplateItemDto.d.ts +0 -11
- package/dist/models/CreateChecklistTemplateItemDto.js.map +1 -1
- package/dist/models/CreateCorporateClientDto.d.ts +1 -0
- package/dist/models/CreateCorporateClientDto.js.map +1 -1
- package/dist/models/CreateIndividualClientDto.d.ts +1 -0
- package/dist/models/CreateIndividualClientDto.js.map +1 -1
- package/dist/models/CreateRuleDto.d.ts +38 -0
- package/dist/models/CreateRuleDto.js +16 -0
- package/dist/models/CreateRuleDto.js.map +1 -0
- package/dist/models/DeleteRuleDto.d.ts +6 -0
- package/dist/models/DeleteRuleDto.js +3 -0
- package/dist/models/DeleteRuleDto.js.map +1 -0
- package/dist/models/DisableRuleDto.d.ts +6 -0
- package/dist/models/DisableRuleDto.js +3 -0
- package/dist/models/DisableRuleDto.js.map +1 -0
- package/dist/models/IndividualClientDto.d.ts +5 -4
- package/dist/models/IndividualClientDto.js.map +1 -1
- package/dist/models/RuleResponseDto.d.ts +25 -0
- package/dist/models/RuleResponseDto.js +19 -0
- package/dist/models/RuleResponseDto.js.map +1 -0
- package/dist/models/UpdateChecklistItemDto.d.ts +9 -6
- package/dist/models/UpdateChecklistItemDto.js.map +1 -1
- package/dist/models/UpdateChecklistTemplateItemDto.d.ts +0 -11
- package/dist/models/UpdateChecklistTemplateItemDto.js.map +1 -1
- package/dist/models/UpdateCorporateClientDto.d.ts +2 -0
- package/dist/models/UpdateCorporateClientDto.js.map +1 -1
- package/dist/models/UpdateIndividualClientDto.d.ts +2 -0
- package/dist/models/UpdateIndividualClientDto.js.map +1 -1
- package/dist/models/UpdateRuleDto.d.ts +20 -0
- package/dist/models/UpdateRuleDto.js +13 -0
- package/dist/models/UpdateRuleDto.js.map +1 -0
- package/dist/models/UpdateTransactionDto.d.ts +28 -0
- package/dist/models/UpdateTransactionDto.js +3 -0
- package/dist/models/UpdateTransactionDto.js.map +1 -0
- package/dist/services/ChecklistTemplatesService.d.ts +72 -0
- package/dist/services/ChecklistTemplatesService.js +177 -0
- package/dist/services/ChecklistTemplatesService.js.map +1 -0
- package/dist/services/ChecklistsService.d.ts +8 -70
- package/dist/services/ChecklistsService.js +8 -173
- package/dist/services/ChecklistsService.js.map +1 -1
- package/dist/services/RulesService.d.ts +249 -0
- package/dist/services/RulesService.js +333 -0
- package/dist/services/RulesService.js.map +1 -0
- package/dist/services/TransactionsService.d.ts +12 -3
- package/dist/services/TransactionsService.js +22 -4
- package/dist/services/TransactionsService.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* Business priority level
|
|
14
|
+
*/
|
|
15
|
+
priority: CreateRuleDto.priority;
|
|
16
|
+
/**
|
|
17
|
+
* Actions to execute when rule matches
|
|
18
|
+
*/
|
|
19
|
+
actions: Array<ActionConfigDto>;
|
|
20
|
+
/**
|
|
21
|
+
* Scope/cohort filtering
|
|
22
|
+
*/
|
|
23
|
+
scope?: Record<string, any>;
|
|
24
|
+
/**
|
|
25
|
+
* Rule conditions (IF logic)
|
|
26
|
+
*/
|
|
27
|
+
conditions: ConditionsDto;
|
|
28
|
+
};
|
|
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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
//# sourceMappingURL=CreateRuleDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateRuleDto.js","sourceRoot":"","sources":["../../models/CreateRuleDto.ts"],"names":[],"mappings":";;;AAgCA,IAAiB,aAAa,CAS7B;AATD,WAAiB,aAAa;IAC1B;;OAEG;IACH,IAAY,QAIX;IAJD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,6BAAiB,CAAA;QACjB,yBAAa,CAAA;IACjB,CAAC,EAJW,QAAQ,GAAR,sBAAQ,KAAR,sBAAQ,QAInB;AACL,CAAC,EATgB,aAAa,6BAAb,aAAa,QAS7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteRuleDto.js","sourceRoot":"","sources":["../../models/DeleteRuleDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisableRuleDto.js","sourceRoot":"","sources":["../../models/DisableRuleDto.ts"],"names":[],"mappings":""}
|
|
@@ -46,10 +46,6 @@ export type IndividualClientDto = {
|
|
|
46
46
|
* Contact information
|
|
47
47
|
*/
|
|
48
48
|
contact?: IndividualClientContactInformationDto;
|
|
49
|
-
/**
|
|
50
|
-
* List of control measures applied
|
|
51
|
-
*/
|
|
52
|
-
controls: Array<string>;
|
|
53
49
|
/**
|
|
54
50
|
* Current risk assessment
|
|
55
51
|
*/
|
|
@@ -90,6 +86,11 @@ export type IndividualClientDto = {
|
|
|
90
86
|
* Tags associated with the client
|
|
91
87
|
*/
|
|
92
88
|
tags: Array<string>;
|
|
89
|
+
/**
|
|
90
|
+
* List of control measures applied (DEPRECATED)
|
|
91
|
+
* @deprecated
|
|
92
|
+
*/
|
|
93
|
+
controls: Array<string>;
|
|
93
94
|
/**
|
|
94
95
|
* ISO timestamp of creation
|
|
95
96
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndividualClientDto.js","sourceRoot":"","sources":["../../models/IndividualClientDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"IndividualClientDto.js","sourceRoot":"","sources":["../../models/IndividualClientDto.ts"],"names":[],"mappings":";;;AAkHA,IAAiB,mBAAmB,CAsBnC;AAtBD,WAAiB,mBAAmB;IAChC;;OAEG;IACH,IAAY,aAUX;IAVD,WAAY,aAAa;QACrB,sCAAqB,CAAA;QACrB,0DAAyC,CAAA;QACzC,wCAAuB,CAAA;QACvB,sCAAqB,CAAA;QACrB,4CAA2B,CAAA;QAC3B,kCAAiB,CAAA;QACjB,wDAAuC,CAAA;QACvC,sDAAqC,CAAA;QACrC,oEAAmD,CAAA;IACvD,CAAC,EAVW,aAAa,GAAb,iCAAa,KAAb,iCAAa,QAUxB;IACD;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,kCAAc,KAAd,kCAAc,QAGzB;AACL,CAAC,EAtBgB,mBAAmB,mCAAnB,mBAAmB,QAsBnC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type RuleResponseDto = {
|
|
2
|
+
id: string;
|
|
3
|
+
version: number;
|
|
4
|
+
status: RuleResponseDto.status;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
priority: RuleResponseDto.priority;
|
|
8
|
+
actions: Array<Record<string, any>>;
|
|
9
|
+
scope: Record<string, any>;
|
|
10
|
+
jreRule: Record<string, any>;
|
|
11
|
+
createdBy: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
};
|
|
14
|
+
export declare namespace RuleResponseDto {
|
|
15
|
+
enum status {
|
|
16
|
+
DRAFT = "draft",
|
|
17
|
+
ACTIVE = "active",
|
|
18
|
+
DISABLED = "disabled"
|
|
19
|
+
}
|
|
20
|
+
enum priority {
|
|
21
|
+
LOW = "LOW",
|
|
22
|
+
MEDIUM = "MEDIUM",
|
|
23
|
+
HIGH = "HIGH"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RuleResponseDto = void 0;
|
|
4
|
+
var RuleResponseDto;
|
|
5
|
+
(function (RuleResponseDto) {
|
|
6
|
+
let status;
|
|
7
|
+
(function (status) {
|
|
8
|
+
status["DRAFT"] = "draft";
|
|
9
|
+
status["ACTIVE"] = "active";
|
|
10
|
+
status["DISABLED"] = "disabled";
|
|
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
|
+
})(RuleResponseDto || (exports.RuleResponseDto = RuleResponseDto = {}));
|
|
19
|
+
//# sourceMappingURL=RuleResponseDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleResponseDto.js","sourceRoot":"","sources":["../../models/RuleResponseDto.ts"],"names":[],"mappings":";;;AAiBA,IAAiB,eAAe,CAW/B;AAXD,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;IACD,IAAY,QAIX;IAJD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,6BAAiB,CAAA;QACjB,yBAAa,CAAA;IACjB,CAAC,EAJW,QAAQ,GAAR,wBAAQ,KAAR,wBAAQ,QAInB;AACL,CAAC,EAXgB,eAAe,+BAAf,eAAe,QAW/B"}
|
|
@@ -15,14 +15,14 @@ export type UpdateChecklistItemDto = {
|
|
|
15
15
|
* The status of the checklist item (can be default or custom status)
|
|
16
16
|
*/
|
|
17
17
|
status?: string;
|
|
18
|
-
/**
|
|
19
|
-
* ID of the attached document from the attachment service
|
|
20
|
-
*/
|
|
21
|
-
attachmentId?: string;
|
|
22
18
|
/**
|
|
23
19
|
* URL to the attached document
|
|
24
20
|
*/
|
|
25
21
|
documentUrl?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Attachment ID from the attachment service
|
|
24
|
+
*/
|
|
25
|
+
attachmentId?: string;
|
|
26
26
|
/**
|
|
27
27
|
* MIME type of the attached document
|
|
28
28
|
*/
|
|
@@ -44,9 +44,12 @@ export type UpdateChecklistItemDto = {
|
|
|
44
44
|
*/
|
|
45
45
|
isArchived?: boolean;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Custom status options for this item
|
|
48
48
|
*/
|
|
49
|
-
statusOptions?: Array<
|
|
49
|
+
statusOptions?: Array<{
|
|
50
|
+
name?: string;
|
|
51
|
+
color?: 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'purple' | 'pink' | 'gray' | 'white' | 'black' | null;
|
|
52
|
+
}>;
|
|
50
53
|
};
|
|
51
54
|
export declare namespace UpdateChecklistItemDto {
|
|
52
55
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateChecklistItemDto.js","sourceRoot":"","sources":["../../models/UpdateChecklistItemDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"UpdateChecklistItemDto.js","sourceRoot":"","sources":["../../models/UpdateChecklistItemDto.ts"],"names":[],"mappings":";;;AAyDA,IAAiB,sBAAsB,CAWtC;AAXD,WAAiB,sBAAsB;IACnC;;OAEG;IACH,IAAY,QAMX;IAND,WAAY,QAAQ;QAChB,+DAAmD,CAAA;QACnD,2DAA+C,CAAA;QAC/C,2DAA+C,CAAA;QAC/C,+DAAmD,CAAA;QACnD,2BAAe,CAAA;IACnB,CAAC,EANW,QAAQ,GAAR,+BAAQ,KAAR,+BAAQ,QAMnB;AACL,CAAC,EAXgB,sBAAsB,sCAAtB,sBAAsB,QAWtC"}
|
|
@@ -18,17 +18,6 @@ export type UpdateChecklistTemplateItemDto = {
|
|
|
18
18
|
name?: string;
|
|
19
19
|
color?: 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'purple' | 'pink' | 'gray' | 'white' | 'black' | null;
|
|
20
20
|
}>;
|
|
21
|
-
/**
|
|
22
|
-
* Custom fields for this checklist item
|
|
23
|
-
*/
|
|
24
|
-
customFields?: Record<string, {
|
|
25
|
-
label?: string;
|
|
26
|
-
value?: (string | number | boolean);
|
|
27
|
-
description?: string;
|
|
28
|
-
category?: string;
|
|
29
|
-
possibleValues?: Array<(string | number)>;
|
|
30
|
-
immutable?: boolean;
|
|
31
|
-
}>;
|
|
32
21
|
};
|
|
33
22
|
export declare namespace UpdateChecklistTemplateItemDto {
|
|
34
23
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateChecklistTemplateItemDto.js","sourceRoot":"","sources":["../../models/UpdateChecklistTemplateItemDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"UpdateChecklistTemplateItemDto.js","sourceRoot":"","sources":["../../models/UpdateChecklistTemplateItemDto.ts"],"names":[],"mappings":";;;AAyBA,IAAiB,8BAA8B,CAW9C;AAXD,WAAiB,8BAA8B;IAC3C;;OAEG;IACH,IAAY,QAMX;IAND,WAAY,QAAQ;QAChB,+DAAmD,CAAA;QACnD,2DAA+C,CAAA;QAC/C,2DAA+C,CAAA;QAC/C,+DAAmD,CAAA;QACnD,2BAAe,CAAA;IACnB,CAAC,EANW,QAAQ,GAAR,uCAAQ,KAAR,uCAAQ,QAMnB;AACL,CAAC,EAXgB,8BAA8B,8CAA9B,8BAA8B,QAW9C"}
|
|
@@ -71,10 +71,12 @@ export type UpdateCorporateClientDto = {
|
|
|
71
71
|
tagsToRemove?: Array<string>;
|
|
72
72
|
/**
|
|
73
73
|
* Controls to add to the corporate client (maximum 50)
|
|
74
|
+
* @deprecated
|
|
74
75
|
*/
|
|
75
76
|
controlsToAdd?: Array<string>;
|
|
76
77
|
/**
|
|
77
78
|
* Controls to remove from the corporate client (maximum 50)
|
|
79
|
+
* @deprecated
|
|
78
80
|
*/
|
|
79
81
|
controlsToRemove?: Array<string>;
|
|
80
82
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateCorporateClientDto.js","sourceRoot":"","sources":["../../models/UpdateCorporateClientDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"UpdateCorporateClientDto.js","sourceRoot":"","sources":["../../models/UpdateCorporateClientDto.ts"],"names":[],"mappings":";;;AA0FA,IAAiB,wBAAwB,CAsBxC;AAtBD,WAAiB,wBAAwB;IACrC;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,uCAAc,KAAd,uCAAc,QAGzB;IACD;;OAEG;IACH,IAAY,aAUX;IAVD,WAAY,aAAa;QACrB,sCAAqB,CAAA;QACrB,0DAAyC,CAAA;QACzC,wCAAuB,CAAA;QACvB,sCAAqB,CAAA;QACrB,4CAA2B,CAAA;QAC3B,kCAAiB,CAAA;QACjB,wDAAuC,CAAA;QACvC,sDAAqC,CAAA;QACrC,oEAAmD,CAAA;IACvD,CAAC,EAVW,aAAa,GAAb,sCAAa,KAAb,sCAAa,QAUxB;AACL,CAAC,EAtBgB,wBAAwB,wCAAxB,wBAAwB,QAsBxC"}
|
|
@@ -60,10 +60,12 @@ export type UpdateIndividualClientDto = {
|
|
|
60
60
|
tagsToRemove?: Array<string>;
|
|
61
61
|
/**
|
|
62
62
|
* Controls to add to the individual client (maximum 50)
|
|
63
|
+
* @deprecated
|
|
63
64
|
*/
|
|
64
65
|
controlsToAdd?: Array<string>;
|
|
65
66
|
/**
|
|
66
67
|
* Controls to remove from the individual client (maximum 50)
|
|
68
|
+
* @deprecated
|
|
67
69
|
*/
|
|
68
70
|
controlsToRemove?: Array<string>;
|
|
69
71
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateIndividualClientDto.js","sourceRoot":"","sources":["../../models/UpdateIndividualClientDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"UpdateIndividualClientDto.js","sourceRoot":"","sources":["../../models/UpdateIndividualClientDto.ts"],"names":[],"mappings":";;;AA+FA,IAAiB,yBAAyB,CAsBzC;AAtBD,WAAiB,yBAAyB;IACtC;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,wCAAc,KAAd,wCAAc,QAGzB;IACD;;OAEG;IACH,IAAY,aAUX;IAVD,WAAY,aAAa;QACrB,sCAAqB,CAAA;QACrB,0DAAyC,CAAA;QACzC,wCAAuB,CAAA;QACvB,sCAAqB,CAAA;QACrB,4CAA2B,CAAA;QAC3B,kCAAiB,CAAA;QACjB,wDAAuC,CAAA;QACvC,sDAAqC,CAAA;QACrC,oEAAmD,CAAA;IACvD,CAAC,EAVW,aAAa,GAAb,uCAAa,KAAb,uCAAa,QAUxB;AACL,CAAC,EAtBgB,yBAAyB,yCAAzB,yBAAyB,QAsBzC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ActionConfigDto } from './ActionConfigDto';
|
|
2
|
+
import type { ConditionsDto } from './ConditionsDto';
|
|
3
|
+
export type UpdateRuleDto = {
|
|
4
|
+
name?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
priority?: UpdateRuleDto.priority;
|
|
7
|
+
actions?: Array<ActionConfigDto>;
|
|
8
|
+
scope?: Record<string, any>;
|
|
9
|
+
/**
|
|
10
|
+
* Rule conditions (IF logic)
|
|
11
|
+
*/
|
|
12
|
+
conditions?: ConditionsDto;
|
|
13
|
+
};
|
|
14
|
+
export declare namespace UpdateRuleDto {
|
|
15
|
+
enum priority {
|
|
16
|
+
LOW = "LOW",
|
|
17
|
+
MEDIUM = "MEDIUM",
|
|
18
|
+
HIGH = "HIGH"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
//# sourceMappingURL=UpdateRuleDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateRuleDto.js","sourceRoot":"","sources":["../../models/UpdateRuleDto.ts"],"names":[],"mappings":";;;AAiBA,IAAiB,aAAa,CAM7B;AAND,WAAiB,aAAa;IAC1B,IAAY,QAIX;IAJD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,6BAAiB,CAAA;QACjB,yBAAa,CAAA;IACjB,CAAC,EAJW,QAAQ,GAAR,sBAAQ,KAAR,sBAAQ,QAInB;AACL,CAAC,EANgB,aAAa,6BAAb,aAAa,QAM7B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { TransactionAmountDto } from './TransactionAmountDto';
|
|
2
|
+
import type { TransactionIntegrationsDto } from './TransactionIntegrationsDto';
|
|
3
|
+
export type UpdateTransactionDto = {
|
|
4
|
+
/**
|
|
5
|
+
* Blockchain transaction hash
|
|
6
|
+
*/
|
|
7
|
+
txHash?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Transaction amount details
|
|
10
|
+
*/
|
|
11
|
+
amount?: TransactionAmountDto;
|
|
12
|
+
/**
|
|
13
|
+
* Converted amount details (e.g., to platform's preferred currency)
|
|
14
|
+
*/
|
|
15
|
+
convertedAmount?: TransactionAmountDto;
|
|
16
|
+
/**
|
|
17
|
+
* Method used for payment
|
|
18
|
+
*/
|
|
19
|
+
paymentMethod?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Integrations data for the transaction
|
|
22
|
+
*/
|
|
23
|
+
integrations?: TransactionIntegrationsDto;
|
|
24
|
+
/**
|
|
25
|
+
* Custom fields data
|
|
26
|
+
*/
|
|
27
|
+
customFields?: Record<string, any>;
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateTransactionDto.js","sourceRoot":"","sources":["../../models/UpdateTransactionDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { ChecklistTemplateItemResponseDto } from '../models/ChecklistTemplateItemResponseDto';
|
|
2
|
+
import type { ChecklistTemplateResponseDto } from '../models/ChecklistTemplateResponseDto';
|
|
3
|
+
import type { CreateChecklistTemplateDto } from '../models/CreateChecklistTemplateDto';
|
|
4
|
+
import type { CreateChecklistTemplateItemDto } from '../models/CreateChecklistTemplateItemDto';
|
|
5
|
+
import type { UpdateChecklistTemplateDto } from '../models/UpdateChecklistTemplateDto';
|
|
6
|
+
import type { UpdateChecklistTemplateItemDto } from '../models/UpdateChecklistTemplateItemDto';
|
|
7
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
9
|
+
export declare class ChecklistTemplatesService {
|
|
10
|
+
readonly httpRequest: BaseHttpRequest;
|
|
11
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
12
|
+
/**
|
|
13
|
+
* Create a new checklist template
|
|
14
|
+
* @param requestBody
|
|
15
|
+
* @returns ChecklistTemplateResponseDto Checklist template created successfully
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
createChecklistTemplate(requestBody: CreateChecklistTemplateDto): CancelablePromise<ChecklistTemplateResponseDto>;
|
|
19
|
+
/**
|
|
20
|
+
* Get checklist templates by platform
|
|
21
|
+
* @param platformId The platform ID to filter templates by
|
|
22
|
+
* @param entityType Optional entity type filter
|
|
23
|
+
* @returns ChecklistTemplateResponseDto Templates retrieved successfully
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
getChecklistTemplatesByPlatform(platformId: string, entityType?: string): CancelablePromise<Array<ChecklistTemplateResponseDto>>;
|
|
27
|
+
/**
|
|
28
|
+
* Get checklist template by ID
|
|
29
|
+
* @param id The ID of the checklist template
|
|
30
|
+
* @returns ChecklistTemplateResponseDto Checklist template retrieved successfully
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
getChecklistTemplateById(id: string): CancelablePromise<ChecklistTemplateResponseDto>;
|
|
34
|
+
/**
|
|
35
|
+
* Update checklist template
|
|
36
|
+
* @param id The ID of the checklist template to update
|
|
37
|
+
* @param requestBody
|
|
38
|
+
* @returns ChecklistTemplateResponseDto Checklist template updated successfully
|
|
39
|
+
* @throws ApiError
|
|
40
|
+
*/
|
|
41
|
+
updateChecklistTemplate(id: string, requestBody: UpdateChecklistTemplateDto): CancelablePromise<ChecklistTemplateResponseDto>;
|
|
42
|
+
/**
|
|
43
|
+
* Delete checklist template
|
|
44
|
+
* @param id The ID of the checklist template to delete
|
|
45
|
+
* @returns void
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
deleteChecklistTemplate(id: string): CancelablePromise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Add item to template
|
|
51
|
+
* @param id The ID of the checklist template
|
|
52
|
+
* @param requestBody
|
|
53
|
+
* @returns ChecklistTemplateItemResponseDto Template item created successfully
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
addItemToTemplate(id: string, requestBody: CreateChecklistTemplateItemDto): CancelablePromise<ChecklistTemplateItemResponseDto>;
|
|
57
|
+
/**
|
|
58
|
+
* Update template item
|
|
59
|
+
* @param itemId The ID of the template item to update
|
|
60
|
+
* @param requestBody
|
|
61
|
+
* @returns ChecklistTemplateItemResponseDto Template item updated successfully
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
updateTemplateItem(itemId: string, requestBody: UpdateChecklistTemplateItemDto): CancelablePromise<ChecklistTemplateItemResponseDto>;
|
|
65
|
+
/**
|
|
66
|
+
* Delete template item
|
|
67
|
+
* @param itemId The ID of the template item to delete
|
|
68
|
+
* @returns void
|
|
69
|
+
* @throws ApiError
|
|
70
|
+
*/
|
|
71
|
+
deleteTemplateItem(itemId: string): CancelablePromise<void>;
|
|
72
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistTemplatesService = void 0;
|
|
4
|
+
class ChecklistTemplatesService {
|
|
5
|
+
httpRequest;
|
|
6
|
+
constructor(httpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create a new checklist template
|
|
11
|
+
* @param requestBody
|
|
12
|
+
* @returns ChecklistTemplateResponseDto Checklist template created successfully
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
createChecklistTemplate(requestBody) {
|
|
16
|
+
return this.httpRequest.request({
|
|
17
|
+
method: 'POST',
|
|
18
|
+
url: '/v1/checklist-templates',
|
|
19
|
+
body: requestBody,
|
|
20
|
+
mediaType: 'application/json',
|
|
21
|
+
errors: {
|
|
22
|
+
400: `Bad request - invalid data`,
|
|
23
|
+
500: `Internal server error`,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get checklist templates by platform
|
|
29
|
+
* @param platformId The platform ID to filter templates by
|
|
30
|
+
* @param entityType Optional entity type filter
|
|
31
|
+
* @returns ChecklistTemplateResponseDto Templates retrieved successfully
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
getChecklistTemplatesByPlatform(platformId, entityType) {
|
|
35
|
+
return this.httpRequest.request({
|
|
36
|
+
method: 'GET',
|
|
37
|
+
url: '/v1/checklist-templates',
|
|
38
|
+
query: {
|
|
39
|
+
'platformId': platformId,
|
|
40
|
+
'entityType': entityType,
|
|
41
|
+
},
|
|
42
|
+
errors: {
|
|
43
|
+
400: `Bad request - missing platformId`,
|
|
44
|
+
500: `Internal server error`,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get checklist template by ID
|
|
50
|
+
* @param id The ID of the checklist template
|
|
51
|
+
* @returns ChecklistTemplateResponseDto Checklist template retrieved successfully
|
|
52
|
+
* @throws ApiError
|
|
53
|
+
*/
|
|
54
|
+
getChecklistTemplateById(id) {
|
|
55
|
+
return this.httpRequest.request({
|
|
56
|
+
method: 'GET',
|
|
57
|
+
url: '/v1/checklist-templates/{id}',
|
|
58
|
+
path: {
|
|
59
|
+
'id': id,
|
|
60
|
+
},
|
|
61
|
+
errors: {
|
|
62
|
+
404: `Checklist template not found`,
|
|
63
|
+
500: `Internal server error`,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Update checklist template
|
|
69
|
+
* @param id The ID of the checklist template to update
|
|
70
|
+
* @param requestBody
|
|
71
|
+
* @returns ChecklistTemplateResponseDto Checklist template updated successfully
|
|
72
|
+
* @throws ApiError
|
|
73
|
+
*/
|
|
74
|
+
updateChecklistTemplate(id, requestBody) {
|
|
75
|
+
return this.httpRequest.request({
|
|
76
|
+
method: 'PUT',
|
|
77
|
+
url: '/v1/checklist-templates/{id}',
|
|
78
|
+
path: {
|
|
79
|
+
'id': id,
|
|
80
|
+
},
|
|
81
|
+
body: requestBody,
|
|
82
|
+
mediaType: 'application/json',
|
|
83
|
+
errors: {
|
|
84
|
+
400: `Bad request - invalid data`,
|
|
85
|
+
404: `Checklist template not found`,
|
|
86
|
+
500: `Internal server error`,
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Delete checklist template
|
|
92
|
+
* @param id The ID of the checklist template to delete
|
|
93
|
+
* @returns void
|
|
94
|
+
* @throws ApiError
|
|
95
|
+
*/
|
|
96
|
+
deleteChecklistTemplate(id) {
|
|
97
|
+
return this.httpRequest.request({
|
|
98
|
+
method: 'DELETE',
|
|
99
|
+
url: '/v1/checklist-templates/{id}',
|
|
100
|
+
path: {
|
|
101
|
+
'id': id,
|
|
102
|
+
},
|
|
103
|
+
errors: {
|
|
104
|
+
404: `Checklist template not found`,
|
|
105
|
+
500: `Internal server error`,
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Add item to template
|
|
111
|
+
* @param id The ID of the checklist template
|
|
112
|
+
* @param requestBody
|
|
113
|
+
* @returns ChecklistTemplateItemResponseDto Template item created successfully
|
|
114
|
+
* @throws ApiError
|
|
115
|
+
*/
|
|
116
|
+
addItemToTemplate(id, requestBody) {
|
|
117
|
+
return this.httpRequest.request({
|
|
118
|
+
method: 'POST',
|
|
119
|
+
url: '/v1/checklist-templates/{id}/items',
|
|
120
|
+
path: {
|
|
121
|
+
'id': id,
|
|
122
|
+
},
|
|
123
|
+
body: requestBody,
|
|
124
|
+
mediaType: 'application/json',
|
|
125
|
+
errors: {
|
|
126
|
+
400: `Bad request - invalid data`,
|
|
127
|
+
404: `Checklist template not found`,
|
|
128
|
+
500: `Internal server error`,
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Update template item
|
|
134
|
+
* @param itemId The ID of the template item to update
|
|
135
|
+
* @param requestBody
|
|
136
|
+
* @returns ChecklistTemplateItemResponseDto Template item updated successfully
|
|
137
|
+
* @throws ApiError
|
|
138
|
+
*/
|
|
139
|
+
updateTemplateItem(itemId, requestBody) {
|
|
140
|
+
return this.httpRequest.request({
|
|
141
|
+
method: 'PUT',
|
|
142
|
+
url: '/v1/checklist-templates/items/{itemId}',
|
|
143
|
+
path: {
|
|
144
|
+
'itemId': itemId,
|
|
145
|
+
},
|
|
146
|
+
body: requestBody,
|
|
147
|
+
mediaType: 'application/json',
|
|
148
|
+
errors: {
|
|
149
|
+
400: `Bad request - invalid data`,
|
|
150
|
+
404: `Template item not found`,
|
|
151
|
+
500: `Internal server error`,
|
|
152
|
+
},
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Delete template item
|
|
157
|
+
* @param itemId The ID of the template item to delete
|
|
158
|
+
* @returns void
|
|
159
|
+
* @throws ApiError
|
|
160
|
+
*/
|
|
161
|
+
deleteTemplateItem(itemId) {
|
|
162
|
+
return this.httpRequest.request({
|
|
163
|
+
method: 'DELETE',
|
|
164
|
+
url: '/v1/checklist-templates/items/{itemId}',
|
|
165
|
+
path: {
|
|
166
|
+
'itemId': itemId,
|
|
167
|
+
},
|
|
168
|
+
errors: {
|
|
169
|
+
400: `Cannot delete template item in use`,
|
|
170
|
+
404: `Template item not found`,
|
|
171
|
+
500: `Internal server error`,
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
exports.ChecklistTemplatesService = ChecklistTemplatesService;
|
|
177
|
+
//# sourceMappingURL=ChecklistTemplatesService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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