@corsa-labs/sdk 4.15.0 → 4.16.13
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/extensions/EncryptedComplianceClient.js +5 -10
- package/dist/extensions/EncryptedComplianceClient.js.map +1 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.js +3 -2
- package/dist/main.js.map +1 -1
- package/dist/models/CorporateClientDto.d.ts +4 -0
- package/dist/models/CorporateClientDto.js.map +1 -1
- package/dist/models/CorporateClientIntegrationsDto.d.ts +3 -2
- package/dist/models/CreateCorporateClientDto.d.ts +4 -0
- package/dist/models/CreateCorporateClientDto.js.map +1 -1
- package/dist/models/CreateIndividualClientDto.d.ts +4 -0
- package/dist/models/CreateIndividualClientDto.js.map +1 -1
- package/dist/models/CreateRuleDto.d.ts +1 -1
- package/dist/models/IndividualClientDto.d.ts +4 -0
- package/dist/models/IndividualClientDto.js.map +1 -1
- package/dist/models/IndividualClientIntegrationsDto.d.ts +3 -2
- package/dist/models/PlainIntegrationDto.d.ts +10 -0
- package/dist/models/PlainIntegrationDto.js +3 -0
- package/dist/models/PlainIntegrationDto.js.map +1 -0
- package/dist/models/RelateAttachmentsDto.d.ts +4 -0
- package/dist/models/RelateAttachmentsDto.js.map +1 -1
- package/dist/models/RuleResponseDto.d.ts +1 -1
- package/dist/models/UpdateCaseInvestigationDto.d.ts +4 -0
- package/dist/models/UpdateCorporateClientDto.d.ts +4 -0
- package/dist/models/UpdateCorporateClientDto.js.map +1 -1
- package/dist/models/UpdateIndividualClientDto.d.ts +4 -0
- package/dist/models/UpdateIndividualClientDto.js.map +1 -1
- package/dist/services/AttachmentsService.d.ts +3 -3
- package/dist/services/AttachmentsService.js +3 -3
- package/dist/services/ClientsService.d.ts +4 -4
- package/dist/services/ClientsService.js +2 -2
- package/dist/services/ClientsService.js.map +1 -1
- package/dist/services/TradesService.d.ts +2 -1
- package/dist/services/TradesService.js +3 -1
- package/dist/services/TradesService.js.map +1 -1
- package/package.json +8 -5
|
@@ -114,6 +114,9 @@ class EncryptedComplianceClient extends ComplianceClient_1.ComplianceClient {
|
|
|
114
114
|
constructor(config, HttpRequestConstructor = FetchHttpRequest_1.FetchHttpRequest, encryptionMiddleware) {
|
|
115
115
|
// If encryption middleware is provided, use EncryptedFetchHttpRequest
|
|
116
116
|
if (encryptionMiddleware) {
|
|
117
|
+
// Use EncryptedFetchHttpRequest directly as it already handles middleware
|
|
118
|
+
super(config, EncryptedFetchHttpRequest_1.EncryptedFetchHttpRequest);
|
|
119
|
+
// Re-create the request with middleware after super() call
|
|
117
120
|
const openApiConfig = {
|
|
118
121
|
BASE: config?.BASE ?? "",
|
|
119
122
|
VERSION: config?.VERSION ?? "1.0",
|
|
@@ -125,16 +128,8 @@ class EncryptedComplianceClient extends ComplianceClient_1.ComplianceClient {
|
|
|
125
128
|
HEADERS: config?.HEADERS,
|
|
126
129
|
ENCODE_PATH: config?.ENCODE_PATH,
|
|
127
130
|
};
|
|
128
|
-
//
|
|
129
|
-
|
|
130
|
-
// Call parent constructor with our custom request handler
|
|
131
|
-
// We need to pass it as if it were a constructor, so we create a wrapper
|
|
132
|
-
super(config, class extends FetchHttpRequest_1.FetchHttpRequest {
|
|
133
|
-
request = encryptedRequest.request.bind(encryptedRequest);
|
|
134
|
-
constructor(cfg) {
|
|
135
|
-
super(cfg);
|
|
136
|
-
}
|
|
137
|
-
});
|
|
131
|
+
// Override the request with our encrypted version
|
|
132
|
+
this.request = new EncryptedFetchHttpRequest_1.EncryptedFetchHttpRequest(openApiConfig, encryptionMiddleware);
|
|
138
133
|
}
|
|
139
134
|
else {
|
|
140
135
|
// No encryption middleware, use standard client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EncryptedComplianceClient.js","sourceRoot":"","sources":["../../extensions/EncryptedComplianceClient.ts"],"names":[],"mappings":";AAAA,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;;;AAEpB,0DAAuD;
|
|
1
|
+
{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Schema } from "@corsa-labs/encryption-core";
|
|
2
|
-
export { EncryptedComplianceClient } from "./extensions/EncryptedComplianceClient";
|
|
3
1
|
export * from "./index";
|
|
4
2
|
export * from "./webhooks";
|
|
3
|
+
export { type EncryptedFieldSchema } from "@corsa-labs/encryption-core";
|
|
4
|
+
export { EncryptedComplianceClient } from "./extensions/EncryptedComplianceClient";
|
package/dist/main.js
CHANGED
|
@@ -15,8 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.EncryptedComplianceClient = void 0;
|
|
18
|
-
|
|
19
|
-
Object.defineProperty(exports, "EncryptedComplianceClient", { enumerable: true, get: function () { return EncryptedComplianceClient_1.EncryptedComplianceClient; } });
|
|
18
|
+
// Export base SDK first to avoid circular dependency issues
|
|
20
19
|
__exportStar(require("./index"), exports);
|
|
21
20
|
__exportStar(require("./webhooks"), exports);
|
|
21
|
+
var EncryptedComplianceClient_1 = require("./extensions/EncryptedComplianceClient");
|
|
22
|
+
Object.defineProperty(exports, "EncryptedComplianceClient", { enumerable: true, get: function () { return EncryptedComplianceClient_1.EncryptedComplianceClient; } });
|
|
22
23
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4DAA4D;AAC5D,0CAAwB;AACxB,6CAA2B;AAI3B,oFAAmF;AAA1E,sIAAA,yBAAyB,OAAA"}
|
|
@@ -95,6 +95,10 @@ export type CorporateClientDto = {
|
|
|
95
95
|
* @deprecated
|
|
96
96
|
*/
|
|
97
97
|
controls: Array<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Array of asset symbols the client is expected to trade with (Maximum 50)
|
|
100
|
+
*/
|
|
101
|
+
declaredAssets?: Array<string>;
|
|
98
102
|
/**
|
|
99
103
|
* ISO Date when the client record was created
|
|
100
104
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CorporateClientDto.js","sourceRoot":"","sources":["../../models/CorporateClientDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CorporateClientDto.js","sourceRoot":"","sources":["../../models/CorporateClientDto.ts"],"names":[],"mappings":";;;AAsHA,IAAiB,kBAAkB,CAsBlC;AAtBD,WAAiB,kBAAkB;IAC/B;;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,gCAAa,KAAb,gCAAa,QAUxB;IACD;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,iCAAc,KAAd,iCAAc,QAGzB;AACL,CAAC,EAtBgB,kBAAkB,kCAAlB,kBAAkB,QAsBlC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ClientSumsubDto } from './ClientSumsubDto';
|
|
2
|
+
import type { PlainIntegrationDto } from './PlainIntegrationDto';
|
|
2
3
|
export type CorporateClientIntegrationsDto = {
|
|
3
4
|
/**
|
|
4
5
|
* Chainalysis user ID for the individual client
|
|
@@ -9,7 +10,7 @@ export type CorporateClientIntegrationsDto = {
|
|
|
9
10
|
*/
|
|
10
11
|
sumsub?: ClientSumsubDto;
|
|
11
12
|
/**
|
|
12
|
-
* Plain
|
|
13
|
+
* Plain integration information
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
plain?: PlainIntegrationDto;
|
|
15
16
|
};
|
|
@@ -34,6 +34,10 @@ export type CreateCorporateClientDto = {
|
|
|
34
34
|
* @deprecated
|
|
35
35
|
*/
|
|
36
36
|
controls?: Array<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Array of asset symbols the client is expected to trade with (maximum 50)
|
|
39
|
+
*/
|
|
40
|
+
declaredAssets?: Array<string>;
|
|
37
41
|
/**
|
|
38
42
|
* General information about the corporate client
|
|
39
43
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateCorporateClientDto.js","sourceRoot":"","sources":["../../models/CreateCorporateClientDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CreateCorporateClientDto.js","sourceRoot":"","sources":["../../models/CreateCorporateClientDto.ts"],"names":[],"mappings":";;;AAqFA,IAAiB,wBAAwB,CAsBxC;AAtBD,WAAiB,wBAAwB;IACrC;;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;IACD;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,uCAAc,KAAd,uCAAc,QAGzB;AACL,CAAC,EAtBgB,wBAAwB,wCAAxB,wBAAwB,QAsBxC"}
|
|
@@ -31,6 +31,10 @@ export type CreateIndividualClientDto = {
|
|
|
31
31
|
* @deprecated
|
|
32
32
|
*/
|
|
33
33
|
controls?: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Array of asset symbols the client is expected to trade with (maximum 50)
|
|
36
|
+
*/
|
|
37
|
+
declaredAssets?: Array<string>;
|
|
34
38
|
/**
|
|
35
39
|
* Address information of the individual client
|
|
36
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateIndividualClientDto.js","sourceRoot":"","sources":["../../models/CreateIndividualClientDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CreateIndividualClientDto.js","sourceRoot":"","sources":["../../models/CreateIndividualClientDto.ts"],"names":[],"mappings":";;;AA0FA,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"}
|
|
@@ -91,6 +91,10 @@ export type IndividualClientDto = {
|
|
|
91
91
|
* @deprecated
|
|
92
92
|
*/
|
|
93
93
|
controls: Array<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Array of asset symbols the client is expected to trade with (maximum 50)
|
|
96
|
+
*/
|
|
97
|
+
declaredAssets?: Array<string>;
|
|
94
98
|
/**
|
|
95
99
|
* ISO timestamp of creation
|
|
96
100
|
*/
|
|
@@ -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":";;;AAsHA,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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ClientSumsubDto } from './ClientSumsubDto';
|
|
2
|
+
import type { PlainIntegrationDto } from './PlainIntegrationDto';
|
|
2
3
|
export type IndividualClientIntegrationsDto = {
|
|
3
4
|
/**
|
|
4
5
|
* Sardine customer ID for the individual client
|
|
@@ -13,7 +14,7 @@ export type IndividualClientIntegrationsDto = {
|
|
|
13
14
|
*/
|
|
14
15
|
sumsub?: ClientSumsubDto;
|
|
15
16
|
/**
|
|
16
|
-
* Plain
|
|
17
|
+
* Plain integration information
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
+
plain?: PlainIntegrationDto;
|
|
19
20
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlainIntegrationDto.js","sourceRoot":"","sources":["../../models/PlainIntegrationDto.ts"],"names":[],"mappings":""}
|
|
@@ -11,6 +11,10 @@ export type RelateAttachmentsDto = {
|
|
|
11
11
|
* Type of entity to relate attachments to
|
|
12
12
|
*/
|
|
13
13
|
entityType: RelateAttachmentsDto.entityType;
|
|
14
|
+
/**
|
|
15
|
+
* The MIME type of the document (used when entityType is checklist_item)
|
|
16
|
+
*/
|
|
17
|
+
documentMimeType?: string;
|
|
14
18
|
};
|
|
15
19
|
export declare namespace RelateAttachmentsDto {
|
|
16
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelateAttachmentsDto.js","sourceRoot":"","sources":["../../models/RelateAttachmentsDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"RelateAttachmentsDto.js","sourceRoot":"","sources":["../../models/RelateAttachmentsDto.ts"],"names":[],"mappings":";;;AAsBA,IAAiB,oBAAoB,CAapC;AAbD,WAAiB,oBAAoB;IACjC;;OAEG;IACH,IAAY,UAQX;IARD,WAAY,UAAU;QAClB,iCAAmB,CAAA;QACnB,+BAAiB,CAAA;QACjB,yCAA2B,CAAA;QAC3B,+BAAiB,CAAA;QACjB,2BAAa,CAAA;QACb,6BAAe,CAAA;QACf,+CAAiC,CAAA;IACrC,CAAC,EARW,UAAU,GAAV,+BAAU,KAAV,+BAAU,QAQrB;AACL,CAAC,EAbgB,oBAAoB,oCAApB,oBAAoB,QAapC"}
|
|
@@ -69,6 +69,10 @@ export type UpdateCorporateClientDto = {
|
|
|
69
69
|
* Tags to remove from the corporate client (maximum 50)
|
|
70
70
|
*/
|
|
71
71
|
tagsToRemove?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Array of asset symbols the client is expected to trade with (maximum 50). This will replace the existing declaredAssets.
|
|
74
|
+
*/
|
|
75
|
+
declaredAssets?: Array<string>;
|
|
72
76
|
/**
|
|
73
77
|
* Controls to add to the corporate client (maximum 50)
|
|
74
78
|
* @deprecated
|
|
@@ -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":";;;AA8FA,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"}
|
|
@@ -58,6 +58,10 @@ export type UpdateIndividualClientDto = {
|
|
|
58
58
|
* Tags to remove from the individual client (maximum 50)
|
|
59
59
|
*/
|
|
60
60
|
tagsToRemove?: Array<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Array of asset symbols the client is expected to trade with (maximum 50). This will replace the existing declaredAssets.
|
|
63
|
+
*/
|
|
64
|
+
declaredAssets?: Array<string>;
|
|
61
65
|
/**
|
|
62
66
|
* Controls to add to the individual client (maximum 50)
|
|
63
67
|
* @deprecated
|
|
@@ -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":";;;AAmGA,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"}
|
|
@@ -27,7 +27,7 @@ export declare class AttachmentsService {
|
|
|
27
27
|
* @param entityType Type of entity to associate attachments with
|
|
28
28
|
* @param entityId ID of the entity to associate attachments with
|
|
29
29
|
* @param formData
|
|
30
|
-
* @returns any
|
|
30
|
+
* @returns any Attachments related successfully. For checklist_item entity type, the checklist item is also updated with the attachment reference.
|
|
31
31
|
* @throws ApiError
|
|
32
32
|
*/
|
|
33
33
|
uploadAttachments(entityType: 'comment' | 'client' | 'transaction' | 'report' | 'case' | 'alert' | 'checklist_item', entityId: string, formData: {
|
|
@@ -54,14 +54,14 @@ export declare class AttachmentsService {
|
|
|
54
54
|
/**
|
|
55
55
|
* Relate existing attachments to an entity
|
|
56
56
|
* @param requestBody
|
|
57
|
-
* @returns any Attachments related successfully
|
|
57
|
+
* @returns any Attachments related successfully. For checklist_item entity type, the checklist item is also updated with the attachment reference.
|
|
58
58
|
* @throws ApiError
|
|
59
59
|
*/
|
|
60
60
|
relateAttachments(requestBody: RelateAttachmentsDto): CancelablePromise<any>;
|
|
61
61
|
/**
|
|
62
62
|
* Create an external document attachment from a download URL
|
|
63
63
|
* @param requestBody
|
|
64
|
-
* @returns CreateExternalDocumentResponseDto External document attachment created successfully
|
|
64
|
+
* @returns CreateExternalDocumentResponseDto External document attachment created successfully. For checklist_item entity type, the checklist item is also updated with the attachment reference.
|
|
65
65
|
* @throws ApiError
|
|
66
66
|
*/
|
|
67
67
|
createExternalDocument(requestBody: CreateExternalDocumentDto): CancelablePromise<CreateExternalDocumentResponseDto>;
|
|
@@ -49,7 +49,7 @@ class AttachmentsService {
|
|
|
49
49
|
* @param entityType Type of entity to associate attachments with
|
|
50
50
|
* @param entityId ID of the entity to associate attachments with
|
|
51
51
|
* @param formData
|
|
52
|
-
* @returns any
|
|
52
|
+
* @returns any Attachments related successfully. For checklist_item entity type, the checklist item is also updated with the attachment reference.
|
|
53
53
|
* @throws ApiError
|
|
54
54
|
*/
|
|
55
55
|
uploadAttachments(entityType, entityId, formData) {
|
|
@@ -109,7 +109,7 @@ class AttachmentsService {
|
|
|
109
109
|
/**
|
|
110
110
|
* Relate existing attachments to an entity
|
|
111
111
|
* @param requestBody
|
|
112
|
-
* @returns any Attachments related successfully
|
|
112
|
+
* @returns any Attachments related successfully. For checklist_item entity type, the checklist item is also updated with the attachment reference.
|
|
113
113
|
* @throws ApiError
|
|
114
114
|
*/
|
|
115
115
|
relateAttachments(requestBody) {
|
|
@@ -126,7 +126,7 @@ class AttachmentsService {
|
|
|
126
126
|
/**
|
|
127
127
|
* Create an external document attachment from a download URL
|
|
128
128
|
* @param requestBody
|
|
129
|
-
* @returns CreateExternalDocumentResponseDto External document attachment created successfully
|
|
129
|
+
* @returns CreateExternalDocumentResponseDto External document attachment created successfully. For checklist_item entity type, the checklist item is also updated with the attachment reference.
|
|
130
130
|
* @throws ApiError
|
|
131
131
|
*/
|
|
132
132
|
createExternalDocument(requestBody) {
|
|
@@ -29,11 +29,11 @@ export declare class ClientsService {
|
|
|
29
29
|
* Get a corporate client by ID
|
|
30
30
|
* @param clientId
|
|
31
31
|
* @param includeMembers If true, include related members in the response
|
|
32
|
-
* @param integrationId Integration type to filter by (CHAINALYSIS or
|
|
32
|
+
* @param integrationId Integration type to filter by (CHAINALYSIS, SUMSUB or PLAIN) - if this is provided, the client is expected to be the id in the integrated vendor
|
|
33
33
|
* @returns CorporateClientDto
|
|
34
34
|
* @throws ApiError
|
|
35
35
|
*/
|
|
36
|
-
getCorporateClient(clientId: string, includeMembers?: boolean, integrationId?: 'CHAINALYSIS' | 'SUMSUB'): CancelablePromise<CorporateClientDto>;
|
|
36
|
+
getCorporateClient(clientId: string, includeMembers?: boolean, integrationId?: 'CHAINALYSIS' | 'SUMSUB' | 'PLAIN'): CancelablePromise<CorporateClientDto>;
|
|
37
37
|
/**
|
|
38
38
|
* Create a new individual client. If upsert is true, update existing client if found by referenceId, id, sardineCustomerId, chainalysisUserId, or sumsubApplicantId
|
|
39
39
|
* @param requestBody
|
|
@@ -53,9 +53,9 @@ export declare class ClientsService {
|
|
|
53
53
|
/**
|
|
54
54
|
* Get an individual client by ID
|
|
55
55
|
* @param clientId
|
|
56
|
-
* @param integrationId Integration type to filter by (SARDINE, CHAINALYSIS or
|
|
56
|
+
* @param integrationId Integration type to filter by (SARDINE, CHAINALYSIS, SUMSUB or PLAIN) - if this is provided, the client is expected to be the id in the integrated vendor
|
|
57
57
|
* @returns IndividualClientDto
|
|
58
58
|
* @throws ApiError
|
|
59
59
|
*/
|
|
60
|
-
getIndividualClient(clientId: string, integrationId?: 'SARDINE' | 'CHAINALYSIS' | 'SUMSUB'): CancelablePromise<IndividualClientDto>;
|
|
60
|
+
getIndividualClient(clientId: string, integrationId?: 'SARDINE' | 'CHAINALYSIS' | 'SUMSUB' | 'PLAIN'): CancelablePromise<IndividualClientDto>;
|
|
61
61
|
}
|
|
@@ -46,7 +46,7 @@ class ClientsService {
|
|
|
46
46
|
* Get a corporate client by ID
|
|
47
47
|
* @param clientId
|
|
48
48
|
* @param includeMembers If true, include related members in the response
|
|
49
|
-
* @param integrationId Integration type to filter by (CHAINALYSIS or
|
|
49
|
+
* @param integrationId Integration type to filter by (CHAINALYSIS, SUMSUB or PLAIN) - if this is provided, the client is expected to be the id in the integrated vendor
|
|
50
50
|
* @returns CorporateClientDto
|
|
51
51
|
* @throws ApiError
|
|
52
52
|
*/
|
|
@@ -102,7 +102,7 @@ class ClientsService {
|
|
|
102
102
|
/**
|
|
103
103
|
* Get an individual client by ID
|
|
104
104
|
* @param clientId
|
|
105
|
-
* @param integrationId Integration type to filter by (SARDINE, CHAINALYSIS or
|
|
105
|
+
* @param integrationId Integration type to filter by (SARDINE, CHAINALYSIS, SUMSUB or PLAIN) - if this is provided, the client is expected to be the id in the integrated vendor
|
|
106
106
|
* @returns IndividualClientDto
|
|
107
107
|
* @throws ApiError
|
|
108
108
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientsService.js","sourceRoot":"","sources":["../../services/ClientsService.ts"],"names":[],"mappings":";;;AAYA,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;;;;;;;OAOG;IACI,kBAAkB,CACrB,QAAgB,EAChB,cAAwB,EACxB,
|
|
1
|
+
{"version":3,"file":"ClientsService.js","sourceRoot":"","sources":["../../services/ClientsService.ts"],"names":[],"mappings":";;;AAYA,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;;;;;;;OAOG;IACI,kBAAkB,CACrB,QAAgB,EAChB,cAAwB,EACxB,aAAkD;QAElD,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mCAAmC;YACxC,IAAI,EAAE;gBACF,UAAU,EAAE,QAAQ;aACvB;YACD,KAAK,EAAE;gBACH,gBAAgB,EAAE,cAAc;gBAChC,eAAe,EAAE,aAAa;aACjC;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;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,sBAAsB,CACzB,QAAgB,EAChB,WAAsC;QAEtC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,oCAAoC;YACzC,IAAI,EAAE;gBACF,UAAU,EAAE,QAAQ;aACvB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,mBAAmB,CACtB,QAAgB,EAChB,aAA8D;QAE9D,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,oCAAoC;YACzC,IAAI,EAAE;gBACF,UAAU,EAAE,QAAQ;aACvB;YACD,KAAK,EAAE;gBACH,eAAe,EAAE,aAAa;aACjC;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AArID,wCAqIC"}
|
|
@@ -11,10 +11,11 @@ export declare class TradesService {
|
|
|
11
11
|
* Create a new trade
|
|
12
12
|
* @param requestBody
|
|
13
13
|
* @param shouldAppendToExistingTrade Whether to append transactions to an existing trade with matching properties
|
|
14
|
+
* @param upsert If true, update existing trade with matching referenceId instead of creating a new one
|
|
14
15
|
* @returns TradeOperationDto
|
|
15
16
|
* @throws ApiError
|
|
16
17
|
*/
|
|
17
|
-
createTrade(requestBody: CreateTradeOperationDto, shouldAppendToExistingTrade?: boolean): CancelablePromise<TradeOperationDto>;
|
|
18
|
+
createTrade(requestBody: CreateTradeOperationDto, shouldAppendToExistingTrade?: boolean, upsert?: boolean): CancelablePromise<TradeOperationDto>;
|
|
18
19
|
/**
|
|
19
20
|
* Update the status of a trade
|
|
20
21
|
* @param id
|
|
@@ -10,15 +10,17 @@ class TradesService {
|
|
|
10
10
|
* Create a new trade
|
|
11
11
|
* @param requestBody
|
|
12
12
|
* @param shouldAppendToExistingTrade Whether to append transactions to an existing trade with matching properties
|
|
13
|
+
* @param upsert If true, update existing trade with matching referenceId instead of creating a new one
|
|
13
14
|
* @returns TradeOperationDto
|
|
14
15
|
* @throws ApiError
|
|
15
16
|
*/
|
|
16
|
-
createTrade(requestBody, shouldAppendToExistingTrade) {
|
|
17
|
+
createTrade(requestBody, shouldAppendToExistingTrade, upsert) {
|
|
17
18
|
return this.httpRequest.request({
|
|
18
19
|
method: 'POST',
|
|
19
20
|
url: '/v1/operations/trades',
|
|
20
21
|
query: {
|
|
21
22
|
'shouldAppendToExistingTrade': shouldAppendToExistingTrade,
|
|
23
|
+
'upsert': upsert,
|
|
22
24
|
},
|
|
23
25
|
body: requestBody,
|
|
24
26
|
mediaType: 'application/json',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TradesService.js","sourceRoot":"","sources":["../../services/TradesService.ts"],"names":[],"mappings":";;;AAUA,MAAa,aAAa;IACM;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D
|
|
1
|
+
{"version":3,"file":"TradesService.js","sourceRoot":"","sources":["../../services/TradesService.ts"],"names":[],"mappings":";;;AAUA,MAAa,aAAa;IACM;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;;OAOG;IACI,WAAW,CACd,WAAoC,EACpC,2BAAqC,EACrC,MAAgB;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,uBAAuB;YAC5B,KAAK,EAAE;gBACH,6BAA6B,EAAE,2BAA2B;gBAC1D,QAAQ,EAAE,MAAM;aACnB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,iBAAiB,CACpB,EAAU,EACV,WAAqC;QAErC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yCAAyC;YAC9C,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,QAAQ,CACX,EAAU;QAEV,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,4BAA4B;YACjC,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,cAAc,CACjB,EAAU,EACV,WAAiC;QAEjC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yCAAyC;YAC9C,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ;AArFD,sCAqFC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corsa-labs/sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.16.13",
|
|
4
4
|
"description": "SDK for Corsa API",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"types": "dist/main.d.ts",
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"prebuild": "rimraf dist",
|
|
12
12
|
"build": "rimraf dist && tsc",
|
|
13
|
-
"prepublishOnly": "npm run build",
|
|
14
13
|
"test": "jest --coverage --passWithNoTests --runInBand --detectOpenHandles --forceExit",
|
|
15
14
|
"semantic-release": "semantic-release --debug",
|
|
16
15
|
"prepare-generate-client": "curl -o api-spec.json http://localhost:3000/api-spec.json",
|
|
@@ -23,10 +22,9 @@
|
|
|
23
22
|
"uuid": "^11.1.0"
|
|
24
23
|
},
|
|
25
24
|
"devDependencies": {
|
|
26
|
-
"@semantic-release/npm": "^12.0.1",
|
|
27
25
|
"@types/node": "^22.15.2",
|
|
28
26
|
"rimraf": "^6.0.1",
|
|
29
|
-
"semantic-release": "^
|
|
27
|
+
"semantic-release": "^25.0.3"
|
|
30
28
|
},
|
|
31
29
|
"publishConfig": {
|
|
32
30
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -37,7 +35,12 @@
|
|
|
37
35
|
"main"
|
|
38
36
|
],
|
|
39
37
|
"plugins": [
|
|
40
|
-
|
|
38
|
+
[
|
|
39
|
+
"@semantic-release/npm",
|
|
40
|
+
{
|
|
41
|
+
"npmPublish": true
|
|
42
|
+
}
|
|
43
|
+
],
|
|
41
44
|
"@semantic-release/github"
|
|
42
45
|
]
|
|
43
46
|
}
|