@corsa-labs/sdk 4.2.0 → 4.4.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.
@@ -28,6 +28,7 @@ export declare namespace AlertSourceDto {
28
28
  CHAINALYSIS = "CHAINALYSIS",
29
29
  SARDINE = "SARDINE",
30
30
  MANUAL = "MANUAL",
31
- API = "API"
31
+ API = "API",
32
+ TRM_LABS = "TRM_LABS"
32
33
  }
33
34
  }
@@ -12,6 +12,7 @@ var AlertSourceDto;
12
12
  alertSource["SARDINE"] = "SARDINE";
13
13
  alertSource["MANUAL"] = "MANUAL";
14
14
  alertSource["API"] = "API";
15
+ alertSource["TRM_LABS"] = "TRM_LABS";
15
16
  })(alertSource = AlertSourceDto.alertSource || (AlertSourceDto.alertSource = {}));
16
17
  })(AlertSourceDto || (exports.AlertSourceDto = AlertSourceDto = {}));
17
18
  //# sourceMappingURL=AlertSourceDto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlertSourceDto.js","sourceRoot":"","sources":["../../models/AlertSourceDto.ts"],"names":[],"mappings":";;;AA0BA,IAAiB,cAAc,CAU9B;AAVD,WAAiB,cAAc;IAC3B;;OAEG;IACH,IAAY,WAKX;IALD,WAAY,WAAW;QACnB,0CAA2B,CAAA;QAC3B,kCAAmB,CAAA;QACnB,gCAAiB,CAAA;QACjB,0BAAW,CAAA;IACf,CAAC,EALW,WAAW,GAAX,0BAAW,KAAX,0BAAW,QAKtB;AACL,CAAC,EAVgB,cAAc,8BAAd,cAAc,QAU9B"}
1
+ {"version":3,"file":"AlertSourceDto.js","sourceRoot":"","sources":["../../models/AlertSourceDto.ts"],"names":[],"mappings":";;;AA0BA,IAAiB,cAAc,CAW9B;AAXD,WAAiB,cAAc;IAC3B;;OAEG;IACH,IAAY,WAMX;IAND,WAAY,WAAW;QACnB,0CAA2B,CAAA;QAC3B,kCAAmB,CAAA;QACnB,gCAAiB,CAAA;QACjB,0BAAW,CAAA;QACX,oCAAqB,CAAA;IACzB,CAAC,EANW,WAAW,GAAX,0BAAW,KAAX,0BAAW,QAMtB;AACL,CAAC,EAXgB,cAAc,8BAAd,cAAc,QAW9B"}
@@ -8,7 +8,7 @@ export type CorporateClientSourceOfFundsDto = {
8
8
  */
9
9
  sourceOfFundsDetails?: string;
10
10
  /**
11
- * Country codes where the funds originate from
11
+ * Country codes where the funds originate from (always sorted lexicographically)
12
12
  */
13
13
  sourceOfFundsJurisdictions?: Array<string>;
14
14
  /**
@@ -7,4 +7,8 @@ export type TransactionIntegrationsDto = {
7
7
  * Chainalysis transaction ID
8
8
  */
9
9
  chainalysisTransactionId?: string;
10
+ /**
11
+ * Trm transaction ID
12
+ */
13
+ trmTransactionId?: string;
10
14
  };
@@ -29,10 +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 SUMSUB) - if this is provided, the client is expected to be the id in the integrated vendor
32
33
  * @returns CorporateClientDto
33
34
  * @throws ApiError
34
35
  */
35
- getCorporateClient(clientId: string, includeMembers?: boolean): CancelablePromise<CorporateClientDto>;
36
+ getCorporateClient(clientId: string, includeMembers?: boolean, integrationId?: 'CHAINALYSIS' | 'SUMSUB'): CancelablePromise<CorporateClientDto>;
36
37
  /**
37
38
  * Create a new individual client. If upsert is true, update existing client if found by referenceId, id, sardineCustomerId, chainalysisUserId, or sumsubApplicantId
38
39
  * @param requestBody
@@ -46,10 +46,11 @@ 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 SUMSUB) - if this is provided, the client is expected to be the id in the integrated vendor
49
50
  * @returns CorporateClientDto
50
51
  * @throws ApiError
51
52
  */
52
- getCorporateClient(clientId, includeMembers) {
53
+ getCorporateClient(clientId, includeMembers, integrationId) {
53
54
  return this.httpRequest.request({
54
55
  method: 'GET',
55
56
  url: '/v1/clients/corporates/{clientId}',
@@ -58,6 +59,7 @@ class ClientsService {
58
59
  },
59
60
  query: {
60
61
  'includeMembers': includeMembers,
62
+ 'integrationId': integrationId,
61
63
  },
62
64
  });
63
65
  }
@@ -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;;;;;;OAMG;IACI,kBAAkB,CACrB,QAAgB,EAChB,cAAwB;QAExB,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;aACnC;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,aAAoD;QAEpD,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;AAlID,wCAkIC"}
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,SA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OAMG;IACI,mBAAmB,CACtB,QAAgB,EAChB,aAAoD;QAEpD,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"}
@@ -6,9 +6,9 @@ export declare class DepositsService {
6
6
  readonly httpRequest: BaseHttpRequest;
7
7
  constructor(httpRequest: BaseHttpRequest);
8
8
  /**
9
- * Create a new deposit. If upsert is true, return existing deposit if found by referenceId
9
+ * Create a new deposit. If upsert is true, update existing deposit's transaction if found by referenceId and return updated
10
10
  * @param requestBody
11
- * @param upsert If true, return existing deposit instead of creating if deposit already exists
11
+ * @param upsert If true, update existing deposit's transaction if found by referenceId and return updated deposit
12
12
  * @returns DepositOperationDto
13
13
  * @throws ApiError
14
14
  */
@@ -7,9 +7,9 @@ class DepositsService {
7
7
  this.httpRequest = httpRequest;
8
8
  }
9
9
  /**
10
- * Create a new deposit. If upsert is true, return existing deposit if found by referenceId
10
+ * Create a new deposit. If upsert is true, update existing deposit's transaction if found by referenceId and return updated
11
11
  * @param requestBody
12
- * @param upsert If true, return existing deposit instead of creating if deposit already exists
12
+ * @param upsert If true, update existing deposit's transaction if found by referenceId and return updated deposit
13
13
  * @returns DepositOperationDto
14
14
  * @throws ApiError
15
15
  */
@@ -6,9 +6,9 @@ export declare class WithdrawalsService {
6
6
  readonly httpRequest: BaseHttpRequest;
7
7
  constructor(httpRequest: BaseHttpRequest);
8
8
  /**
9
- * Create a new withdrawal. If upsert is true, return existing withdrawal if found by referenceId
9
+ * Create a new withdrawal. If upsert is true, update existing withdrawal's transaction if found by referenceId and return updated withdrawal
10
10
  * @param requestBody
11
- * @param upsert If true, return existing withdrawal instead of creating if withdrawal already exists
11
+ * @param upsert If true, update existing withdrawal's transaction if found by referenceId and return updated withdrawal
12
12
  * @returns WithdrawalOperationDto
13
13
  * @throws ApiError
14
14
  */
@@ -7,9 +7,9 @@ class WithdrawalsService {
7
7
  this.httpRequest = httpRequest;
8
8
  }
9
9
  /**
10
- * Create a new withdrawal. If upsert is true, return existing withdrawal if found by referenceId
10
+ * Create a new withdrawal. If upsert is true, update existing withdrawal's transaction if found by referenceId and return updated withdrawal
11
11
  * @param requestBody
12
- * @param upsert If true, return existing withdrawal instead of creating if withdrawal already exists
12
+ * @param upsert If true, update existing withdrawal's transaction if found by referenceId and return updated withdrawal
13
13
  * @returns WithdrawalOperationDto
14
14
  * @throws ApiError
15
15
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corsa-labs/sdk",
3
- "version": "4.2.0",
3
+ "version": "4.4.0",
4
4
  "description": "SDK for Corsa API",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",