@corsa-labs/sdk 1.0.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.
Files changed (212) hide show
  1. package/README.md +282 -0
  2. package/dist/ComplianceClient.d.ts +22 -0
  3. package/dist/ComplianceClient.js +43 -0
  4. package/dist/ComplianceClient.js.map +1 -0
  5. package/dist/core/ApiError.d.ts +11 -0
  6. package/dist/core/ApiError.js +23 -0
  7. package/dist/core/ApiError.js.map +1 -0
  8. package/dist/core/ApiRequestOptions.d.ts +13 -0
  9. package/dist/core/ApiRequestOptions.js +3 -0
  10. package/dist/core/ApiRequestOptions.js.map +1 -0
  11. package/dist/core/ApiResult.d.ts +7 -0
  12. package/dist/core/ApiResult.js +3 -0
  13. package/dist/core/ApiResult.js.map +1 -0
  14. package/dist/core/BaseHttpRequest.d.ts +8 -0
  15. package/dist/core/BaseHttpRequest.js +11 -0
  16. package/dist/core/BaseHttpRequest.js.map +1 -0
  17. package/dist/core/CancelablePromise.d.ts +20 -0
  18. package/dist/core/CancelablePromise.js +105 -0
  19. package/dist/core/CancelablePromise.js.map +1 -0
  20. package/dist/core/FetchHttpRequest.d.ts +14 -0
  21. package/dist/core/FetchHttpRequest.js +21 -0
  22. package/dist/core/FetchHttpRequest.js.map +1 -0
  23. package/dist/core/OpenAPI.d.ts +16 -0
  24. package/dist/core/OpenAPI.js +15 -0
  25. package/dist/core/OpenAPI.js.map +1 -0
  26. package/dist/core/request.d.ts +30 -0
  27. package/dist/core/request.js +300 -0
  28. package/dist/core/request.js.map +1 -0
  29. package/dist/index.d.ts +61 -0
  30. package/dist/index.js +71 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/main.d.ts +2 -0
  33. package/dist/main.js +19 -0
  34. package/dist/main.js.map +1 -0
  35. package/dist/models/AdverseMediaDto.d.ts +6 -0
  36. package/dist/models/AdverseMediaDto.js +3 -0
  37. package/dist/models/AdverseMediaDto.js.map +1 -0
  38. package/dist/models/AlertAssociationResponseDto.d.ts +16 -0
  39. package/dist/models/AlertAssociationResponseDto.js +3 -0
  40. package/dist/models/AlertAssociationResponseDto.js.map +1 -0
  41. package/dist/models/AlertCustomFieldDataDto.d.ts +10 -0
  42. package/dist/models/AlertCustomFieldDataDto.js +3 -0
  43. package/dist/models/AlertCustomFieldDataDto.js.map +1 -0
  44. package/dist/models/AlertDto.d.ts +100 -0
  45. package/dist/models/AlertDto.js +41 -0
  46. package/dist/models/AlertDto.js.map +1 -0
  47. package/dist/models/AlertSourceDto.d.ts +18 -0
  48. package/dist/models/AlertSourceDto.js +3 -0
  49. package/dist/models/AlertSourceDto.js.map +1 -0
  50. package/dist/models/AlertStatusData.d.ts +25 -0
  51. package/dist/models/AlertStatusData.js +17 -0
  52. package/dist/models/AlertStatusData.js.map +1 -0
  53. package/dist/models/AssociatedClientDto.d.ts +10 -0
  54. package/dist/models/AssociatedClientDto.js +3 -0
  55. package/dist/models/AssociatedClientDto.js.map +1 -0
  56. package/dist/models/AssociatedTransactionDto.d.ts +10 -0
  57. package/dist/models/AssociatedTransactionDto.js +3 -0
  58. package/dist/models/AssociatedTransactionDto.js.map +1 -0
  59. package/dist/models/ClientRiskDto.d.ts +28 -0
  60. package/dist/models/ClientRiskDto.js +16 -0
  61. package/dist/models/ClientRiskDto.js.map +1 -0
  62. package/dist/models/CorporateClientAddressDto.d.ts +11 -0
  63. package/dist/models/CorporateClientAddressDto.js +3 -0
  64. package/dist/models/CorporateClientAddressDto.js.map +1 -0
  65. package/dist/models/CorporateClientAddressLineDto.d.ts +22 -0
  66. package/dist/models/CorporateClientAddressLineDto.js +3 -0
  67. package/dist/models/CorporateClientAddressLineDto.js.map +1 -0
  68. package/dist/models/CorporateClientApplicationDto.d.ts +14 -0
  69. package/dist/models/CorporateClientApplicationDto.js +3 -0
  70. package/dist/models/CorporateClientApplicationDto.js.map +1 -0
  71. package/dist/models/CorporateClientBusinessDto.d.ts +10 -0
  72. package/dist/models/CorporateClientBusinessDto.js +3 -0
  73. package/dist/models/CorporateClientBusinessDto.js.map +1 -0
  74. package/dist/models/CorporateClientCustomFieldDataDto.d.ts +26 -0
  75. package/dist/models/CorporateClientCustomFieldDataDto.js +18 -0
  76. package/dist/models/CorporateClientCustomFieldDataDto.js.map +1 -0
  77. package/dist/models/CorporateClientDto.d.ts +101 -0
  78. package/dist/models/CorporateClientDto.js +29 -0
  79. package/dist/models/CorporateClientDto.js.map +1 -0
  80. package/dist/models/CorporateClientGeneralDto.d.ts +14 -0
  81. package/dist/models/CorporateClientGeneralDto.js +3 -0
  82. package/dist/models/CorporateClientGeneralDto.js.map +1 -0
  83. package/dist/models/CreateAlertDto.d.ts +81 -0
  84. package/dist/models/CreateAlertDto.js +41 -0
  85. package/dist/models/CreateAlertDto.js.map +1 -0
  86. package/dist/models/CreateCorporateClientDto.d.ts +74 -0
  87. package/dist/models/CreateCorporateClientDto.js +29 -0
  88. package/dist/models/CreateCorporateClientDto.js.map +1 -0
  89. package/dist/models/CreateDepositOperationDto.d.ts +19 -0
  90. package/dist/models/CreateDepositOperationDto.js +3 -0
  91. package/dist/models/CreateDepositOperationDto.js.map +1 -0
  92. package/dist/models/CreateIndividualClientDto.d.ts +99 -0
  93. package/dist/models/CreateIndividualClientDto.js +29 -0
  94. package/dist/models/CreateIndividualClientDto.js.map +1 -0
  95. package/dist/models/CreateIndividualClientResponseDto.d.ts +60 -0
  96. package/dist/models/CreateIndividualClientResponseDto.js +27 -0
  97. package/dist/models/CreateIndividualClientResponseDto.js.map +1 -0
  98. package/dist/models/CreateOrUpdateRiskDto.d.ts +24 -0
  99. package/dist/models/CreateOrUpdateRiskDto.js +16 -0
  100. package/dist/models/CreateOrUpdateRiskDto.js.map +1 -0
  101. package/dist/models/CreateTradeOperationDto.d.ts +48 -0
  102. package/dist/models/CreateTradeOperationDto.js +15 -0
  103. package/dist/models/CreateTradeOperationDto.js.map +1 -0
  104. package/dist/models/CreateTransactionDto.d.ts +50 -0
  105. package/dist/models/CreateTransactionDto.js +3 -0
  106. package/dist/models/CreateTransactionDto.js.map +1 -0
  107. package/dist/models/CreateTransactionSourceOrDestinationClientDto.d.ts +10 -0
  108. package/dist/models/CreateTransactionSourceOrDestinationClientDto.js +3 -0
  109. package/dist/models/CreateTransactionSourceOrDestinationClientDto.js.map +1 -0
  110. package/dist/models/CreateWithdrawalOperationDto.d.ts +19 -0
  111. package/dist/models/CreateWithdrawalOperationDto.js +3 -0
  112. package/dist/models/CreateWithdrawalOperationDto.js.map +1 -0
  113. package/dist/models/DepositOperationDto.d.ts +32 -0
  114. package/dist/models/DepositOperationDto.js +3 -0
  115. package/dist/models/DepositOperationDto.js.map +1 -0
  116. package/dist/models/IndividualClientAddressDto.d.ts +22 -0
  117. package/dist/models/IndividualClientAddressDto.js +3 -0
  118. package/dist/models/IndividualClientAddressDto.js.map +1 -0
  119. package/dist/models/IndividualClientApplicationInformationDto.d.ts +14 -0
  120. package/dist/models/IndividualClientApplicationInformationDto.js +3 -0
  121. package/dist/models/IndividualClientApplicationInformationDto.js.map +1 -0
  122. package/dist/models/IndividualClientContactInformationDto.d.ts +10 -0
  123. package/dist/models/IndividualClientContactInformationDto.js +3 -0
  124. package/dist/models/IndividualClientContactInformationDto.js.map +1 -0
  125. package/dist/models/IndividualClientCustomFieldDataDto.d.ts +27 -0
  126. package/dist/models/IndividualClientCustomFieldDataDto.js +19 -0
  127. package/dist/models/IndividualClientCustomFieldDataDto.js.map +1 -0
  128. package/dist/models/IndividualClientDto.d.ts +127 -0
  129. package/dist/models/IndividualClientDto.js +29 -0
  130. package/dist/models/IndividualClientDto.js.map +1 -0
  131. package/dist/models/IndividualClientFinancialInformationDto.d.ts +6 -0
  132. package/dist/models/IndividualClientFinancialInformationDto.js +3 -0
  133. package/dist/models/IndividualClientFinancialInformationDto.js.map +1 -0
  134. package/dist/models/IndividualClientGeneralInformationDto.d.ts +39 -0
  135. package/dist/models/IndividualClientGeneralInformationDto.js +15 -0
  136. package/dist/models/IndividualClientGeneralInformationDto.js.map +1 -0
  137. package/dist/models/IndividualClientWorkInformationDto.d.ts +6 -0
  138. package/dist/models/IndividualClientWorkInformationDto.js +3 -0
  139. package/dist/models/IndividualClientWorkInformationDto.js.map +1 -0
  140. package/dist/models/OperationInitiatorDto.d.ts +10 -0
  141. package/dist/models/OperationInitiatorDto.js +3 -0
  142. package/dist/models/OperationInitiatorDto.js.map +1 -0
  143. package/dist/models/PoliticalExposureDto.d.ts +6 -0
  144. package/dist/models/PoliticalExposureDto.js +3 -0
  145. package/dist/models/PoliticalExposureDto.js.map +1 -0
  146. package/dist/models/SanctionsDto.d.ts +6 -0
  147. package/dist/models/SanctionsDto.js +3 -0
  148. package/dist/models/SanctionsDto.js.map +1 -0
  149. package/dist/models/TradeOperationDto.d.ts +61 -0
  150. package/dist/models/TradeOperationDto.js +15 -0
  151. package/dist/models/TradeOperationDto.js.map +1 -0
  152. package/dist/models/TransactionAmountDto.d.ts +14 -0
  153. package/dist/models/TransactionAmountDto.js +3 -0
  154. package/dist/models/TransactionAmountDto.js.map +1 -0
  155. package/dist/models/TransactionCustomFieldDto.d.ts +14 -0
  156. package/dist/models/TransactionCustomFieldDto.js +3 -0
  157. package/dist/models/TransactionCustomFieldDto.js.map +1 -0
  158. package/dist/models/TransactionDto.d.ts +82 -0
  159. package/dist/models/TransactionDto.js +24 -0
  160. package/dist/models/TransactionDto.js.map +1 -0
  161. package/dist/models/TransactionSourceOrDestinationClientDto.d.ts +10 -0
  162. package/dist/models/TransactionSourceOrDestinationClientDto.js +3 -0
  163. package/dist/models/TransactionSourceOrDestinationClientDto.js.map +1 -0
  164. package/dist/models/TransactionSourceOrDestinationDto.d.ts +11 -0
  165. package/dist/models/TransactionSourceOrDestinationDto.js +3 -0
  166. package/dist/models/TransactionSourceOrDestinationDto.js.map +1 -0
  167. package/dist/models/TransactionStatusDto.d.ts +29 -0
  168. package/dist/models/TransactionStatusDto.js +17 -0
  169. package/dist/models/TransactionStatusDto.js.map +1 -0
  170. package/dist/models/UpdateAlertDto.d.ts +60 -0
  171. package/dist/models/UpdateAlertDto.js +41 -0
  172. package/dist/models/UpdateAlertDto.js.map +1 -0
  173. package/dist/models/UpdateCorporateClientDto.d.ts +82 -0
  174. package/dist/models/UpdateCorporateClientDto.js +29 -0
  175. package/dist/models/UpdateCorporateClientDto.js.map +1 -0
  176. package/dist/models/UpdateIndividualClientDto.d.ts +107 -0
  177. package/dist/models/UpdateIndividualClientDto.js +29 -0
  178. package/dist/models/UpdateIndividualClientDto.js.map +1 -0
  179. package/dist/models/WithdrawalOperationDto.d.ts +33 -0
  180. package/dist/models/WithdrawalOperationDto.js +3 -0
  181. package/dist/models/WithdrawalOperationDto.js.map +1 -0
  182. package/dist/services/AlertsService.d.ts +48 -0
  183. package/dist/services/AlertsService.js +94 -0
  184. package/dist/services/AlertsService.js.map +1 -0
  185. package/dist/services/ClientsService.d.ts +56 -0
  186. package/dist/services/ClientsService.js +105 -0
  187. package/dist/services/ClientsService.js.map +1 -0
  188. package/dist/services/DepositsService.d.ts +22 -0
  189. package/dist/services/DepositsService.js +40 -0
  190. package/dist/services/DepositsService.js.map +1 -0
  191. package/dist/services/HealthService.d.ts +13 -0
  192. package/dist/services/HealthService.js +23 -0
  193. package/dist/services/HealthService.js.map +1 -0
  194. package/dist/services/TradesService.d.ts +32 -0
  195. package/dist/services/TradesService.js +62 -0
  196. package/dist/services/TradesService.js.map +1 -0
  197. package/dist/services/TransactionsService.d.ts +14 -0
  198. package/dist/services/TransactionsService.js +28 -0
  199. package/dist/services/TransactionsService.js.map +1 -0
  200. package/dist/services/WithdrawalsService.d.ts +22 -0
  201. package/dist/services/WithdrawalsService.js +40 -0
  202. package/dist/services/WithdrawalsService.js.map +1 -0
  203. package/dist/webhooks/index.d.ts +2 -0
  204. package/dist/webhooks/index.js +19 -0
  205. package/dist/webhooks/index.js.map +1 -0
  206. package/dist/webhooks/types.d.ts +56 -0
  207. package/dist/webhooks/types.js +30 -0
  208. package/dist/webhooks/types.js.map +1 -0
  209. package/dist/webhooks/verify-signature.d.ts +15 -0
  210. package/dist/webhooks/verify-signature.js +49 -0
  211. package/dist/webhooks/verify-signature.js.map +1 -0
  212. package/package.json +42 -0
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AlertsService = void 0;
4
+ class AlertsService {
5
+ httpRequest;
6
+ constructor(httpRequest) {
7
+ this.httpRequest = httpRequest;
8
+ }
9
+ /**
10
+ * Create a new alert
11
+ * @param requestBody
12
+ * @returns AlertDto
13
+ * @throws ApiError
14
+ */
15
+ createAlert(requestBody) {
16
+ return this.httpRequest.request({
17
+ method: 'POST',
18
+ url: '/v1/alerts',
19
+ body: requestBody,
20
+ mediaType: 'application/json',
21
+ });
22
+ }
23
+ /**
24
+ * Associate an alert with transactions
25
+ * @param alertId
26
+ * @param requestBody
27
+ * @returns AlertAssociationResponseDto
28
+ * @throws ApiError
29
+ */
30
+ associateAlertWithTransactions(alertId, requestBody) {
31
+ return this.httpRequest.request({
32
+ method: 'PUT',
33
+ url: '/v1/alerts/{alertId}/transactions',
34
+ path: {
35
+ 'alertId': alertId,
36
+ },
37
+ body: requestBody,
38
+ mediaType: 'application/json',
39
+ });
40
+ }
41
+ /**
42
+ * Associate an alert with clients
43
+ * @param alertId
44
+ * @param requestBody
45
+ * @returns AlertAssociationResponseDto
46
+ * @throws ApiError
47
+ */
48
+ associateAlertWithClients(alertId, requestBody) {
49
+ return this.httpRequest.request({
50
+ method: 'PUT',
51
+ url: '/v1/alerts/{alertId}/clients',
52
+ path: {
53
+ 'alertId': alertId,
54
+ },
55
+ body: requestBody,
56
+ mediaType: 'application/json',
57
+ });
58
+ }
59
+ /**
60
+ * Update an alert
61
+ * @param alertId
62
+ * @param requestBody
63
+ * @returns AlertDto
64
+ * @throws ApiError
65
+ */
66
+ updateAlert(alertId, requestBody) {
67
+ return this.httpRequest.request({
68
+ method: 'PUT',
69
+ url: '/v1/alerts/{alertId}/update',
70
+ path: {
71
+ 'alertId': alertId,
72
+ },
73
+ body: requestBody,
74
+ mediaType: 'application/json',
75
+ });
76
+ }
77
+ /**
78
+ * Get an alert by ID
79
+ * @param alertId
80
+ * @returns AlertDto
81
+ * @throws ApiError
82
+ */
83
+ getAlert(alertId) {
84
+ return this.httpRequest.request({
85
+ method: 'GET',
86
+ url: '/v1/alerts/{alertId}',
87
+ path: {
88
+ 'alertId': alertId,
89
+ },
90
+ });
91
+ }
92
+ }
93
+ exports.AlertsService = AlertsService;
94
+ //# sourceMappingURL=AlertsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertsService.js","sourceRoot":"","sources":["../../services/AlertsService.ts"],"names":[],"mappings":";;;AAUA,MAAa,aAAa;IACM;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;OAKG;IACI,WAAW,CACd,WAA2B;QAE3B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,YAAY;YACjB,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,8BAA8B,CACjC,OAAe,EACf,WAA0B;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mCAAmC;YACxC,IAAI,EAAE;gBACF,SAAS,EAAE,OAAO;aACrB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,yBAAyB,CAC5B,OAAe,EACf,WAA0B;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,8BAA8B;YACnC,IAAI,EAAE;gBACF,SAAS,EAAE,OAAO;aACrB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,WAAW,CACd,OAAe,EACf,WAA2B;QAE3B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6BAA6B;YAClC,IAAI,EAAE;gBACF,SAAS,EAAE,OAAO;aACrB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,QAAQ,CACX,OAAe;QAEf,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,sBAAsB;YAC3B,IAAI,EAAE;gBACF,SAAS,EAAE,OAAO;aACrB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AAlGD,sCAkGC"}
@@ -0,0 +1,56 @@
1
+ import type { CorporateClientDto } from '../models/CorporateClientDto';
2
+ import type { CreateCorporateClientDto } from '../models/CreateCorporateClientDto';
3
+ import type { CreateIndividualClientDto } from '../models/CreateIndividualClientDto';
4
+ import type { IndividualClientDto } from '../models/IndividualClientDto';
5
+ import type { UpdateCorporateClientDto } from '../models/UpdateCorporateClientDto';
6
+ import type { UpdateIndividualClientDto } from '../models/UpdateIndividualClientDto';
7
+ import type { CancelablePromise } from '../core/CancelablePromise';
8
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
9
+ export declare class ClientsService {
10
+ readonly httpRequest: BaseHttpRequest;
11
+ constructor(httpRequest: BaseHttpRequest);
12
+ /**
13
+ * Create a new corporate client
14
+ * @param requestBody
15
+ * @returns CorporateClientDto
16
+ * @throws ApiError
17
+ */
18
+ createCorporateClient(requestBody: CreateCorporateClientDto): CancelablePromise<CorporateClientDto>;
19
+ /**
20
+ * Update a corporate client
21
+ * @param clientId
22
+ * @param requestBody
23
+ * @returns CorporateClientDto
24
+ * @throws ApiError
25
+ */
26
+ updateCorporateClient(clientId: string, requestBody: UpdateCorporateClientDto): CancelablePromise<CorporateClientDto>;
27
+ /**
28
+ * Get a corporate client by ID
29
+ * @param clientId
30
+ * @returns CorporateClientDto
31
+ * @throws ApiError
32
+ */
33
+ getCorporateClient(clientId: string): CancelablePromise<CorporateClientDto>;
34
+ /**
35
+ * Create a new individual client
36
+ * @param requestBody
37
+ * @returns IndividualClientDto
38
+ * @throws ApiError
39
+ */
40
+ createIndividualClient(requestBody: CreateIndividualClientDto): CancelablePromise<IndividualClientDto>;
41
+ /**
42
+ * Update an individual client
43
+ * @param clientId
44
+ * @param requestBody
45
+ * @returns IndividualClientDto
46
+ * @throws ApiError
47
+ */
48
+ updateIndividualClient(clientId: string, requestBody: UpdateIndividualClientDto): CancelablePromise<IndividualClientDto>;
49
+ /**
50
+ * Get an individual client by ID
51
+ * @param clientId
52
+ * @returns IndividualClientDto
53
+ * @throws ApiError
54
+ */
55
+ getIndividualClient(clientId: string): CancelablePromise<IndividualClientDto>;
56
+ }
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClientsService = void 0;
4
+ class ClientsService {
5
+ httpRequest;
6
+ constructor(httpRequest) {
7
+ this.httpRequest = httpRequest;
8
+ }
9
+ /**
10
+ * Create a new corporate client
11
+ * @param requestBody
12
+ * @returns CorporateClientDto
13
+ * @throws ApiError
14
+ */
15
+ createCorporateClient(requestBody) {
16
+ return this.httpRequest.request({
17
+ method: 'POST',
18
+ url: '/v1/clients/corporates',
19
+ body: requestBody,
20
+ mediaType: 'application/json',
21
+ });
22
+ }
23
+ /**
24
+ * Update a corporate client
25
+ * @param clientId
26
+ * @param requestBody
27
+ * @returns CorporateClientDto
28
+ * @throws ApiError
29
+ */
30
+ updateCorporateClient(clientId, requestBody) {
31
+ return this.httpRequest.request({
32
+ method: 'PUT',
33
+ url: '/v1/clients/corporates/{clientId}',
34
+ path: {
35
+ 'clientId': clientId,
36
+ },
37
+ body: requestBody,
38
+ mediaType: 'application/json',
39
+ });
40
+ }
41
+ /**
42
+ * Get a corporate client by ID
43
+ * @param clientId
44
+ * @returns CorporateClientDto
45
+ * @throws ApiError
46
+ */
47
+ getCorporateClient(clientId) {
48
+ return this.httpRequest.request({
49
+ method: 'GET',
50
+ url: '/v1/clients/corporates/{clientId}',
51
+ path: {
52
+ 'clientId': clientId,
53
+ },
54
+ });
55
+ }
56
+ /**
57
+ * Create a new individual client
58
+ * @param requestBody
59
+ * @returns IndividualClientDto
60
+ * @throws ApiError
61
+ */
62
+ createIndividualClient(requestBody) {
63
+ return this.httpRequest.request({
64
+ method: 'POST',
65
+ url: '/v1/clients/individuals',
66
+ body: requestBody,
67
+ mediaType: 'application/json',
68
+ });
69
+ }
70
+ /**
71
+ * Update an individual client
72
+ * @param clientId
73
+ * @param requestBody
74
+ * @returns IndividualClientDto
75
+ * @throws ApiError
76
+ */
77
+ updateIndividualClient(clientId, requestBody) {
78
+ return this.httpRequest.request({
79
+ method: 'PUT',
80
+ url: '/v1/clients/individuals/{clientId}',
81
+ path: {
82
+ 'clientId': clientId,
83
+ },
84
+ body: requestBody,
85
+ mediaType: 'application/json',
86
+ });
87
+ }
88
+ /**
89
+ * Get an individual client by ID
90
+ * @param clientId
91
+ * @returns IndividualClientDto
92
+ * @throws ApiError
93
+ */
94
+ getIndividualClient(clientId) {
95
+ return this.httpRequest.request({
96
+ method: 'GET',
97
+ url: '/v1/clients/individuals/{clientId}',
98
+ path: {
99
+ 'clientId': clientId,
100
+ },
101
+ });
102
+ }
103
+ }
104
+ exports.ClientsService = ClientsService;
105
+ //# sourceMappingURL=ClientsService.js.map
@@ -0,0 +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;;;;;OAKG;IACI,qBAAqB,CACxB,WAAqC;QAErC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,wBAAwB;YAC7B,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,qBAAqB,CACxB,QAAgB,EAChB,WAAqC;QAErC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mCAAmC;YACxC,IAAI,EAAE;gBACF,UAAU,EAAE,QAAQ;aACvB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,kBAAkB,CACrB,QAAgB;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mCAAmC;YACxC,IAAI,EAAE;gBACF,UAAU,EAAE,QAAQ;aACvB;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,sBAAsB,CACzB,WAAsC;QAEtC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,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;;;;;OAKG;IACI,mBAAmB,CACtB,QAAgB;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,oCAAoC;YACzC,IAAI,EAAE;gBACF,UAAU,EAAE,QAAQ;aACvB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AA9GD,wCA8GC"}
@@ -0,0 +1,22 @@
1
+ import type { CreateDepositOperationDto } from '../models/CreateDepositOperationDto';
2
+ import type { DepositOperationDto } from '../models/DepositOperationDto';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
5
+ export declare class DepositsService {
6
+ readonly httpRequest: BaseHttpRequest;
7
+ constructor(httpRequest: BaseHttpRequest);
8
+ /**
9
+ * Create a new deposit
10
+ * @param requestBody
11
+ * @returns DepositOperationDto
12
+ * @throws ApiError
13
+ */
14
+ createDeposit(requestBody: CreateDepositOperationDto): CancelablePromise<DepositOperationDto>;
15
+ /**
16
+ * Get a deposit by ID or referenceId
17
+ * @param id
18
+ * @returns DepositOperationDto
19
+ * @throws ApiError
20
+ */
21
+ getDeposit(id: string): CancelablePromise<DepositOperationDto>;
22
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DepositsService = void 0;
4
+ class DepositsService {
5
+ httpRequest;
6
+ constructor(httpRequest) {
7
+ this.httpRequest = httpRequest;
8
+ }
9
+ /**
10
+ * Create a new deposit
11
+ * @param requestBody
12
+ * @returns DepositOperationDto
13
+ * @throws ApiError
14
+ */
15
+ createDeposit(requestBody) {
16
+ return this.httpRequest.request({
17
+ method: 'POST',
18
+ url: '/v1/operations/deposits',
19
+ body: requestBody,
20
+ mediaType: 'application/json',
21
+ });
22
+ }
23
+ /**
24
+ * Get a deposit by ID or referenceId
25
+ * @param id
26
+ * @returns DepositOperationDto
27
+ * @throws ApiError
28
+ */
29
+ getDeposit(id) {
30
+ return this.httpRequest.request({
31
+ method: 'GET',
32
+ url: '/v1/operations/deposits/{id}',
33
+ path: {
34
+ 'id': id,
35
+ },
36
+ });
37
+ }
38
+ }
39
+ exports.DepositsService = DepositsService;
40
+ //# sourceMappingURL=DepositsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepositsService.js","sourceRoot":"","sources":["../../services/DepositsService.ts"],"names":[],"mappings":";;;AAQA,MAAa,eAAe;IACI;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;OAKG;IACI,aAAa,CAChB,WAAsC;QAEtC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,UAAU,CACb,EAAU;QAEV,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,8BAA8B;YACnC,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AAnCD,0CAmCC"}
@@ -0,0 +1,13 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
3
+ export declare class HealthService {
4
+ readonly httpRequest: BaseHttpRequest;
5
+ constructor(httpRequest: BaseHttpRequest);
6
+ /**
7
+ * Health check
8
+ * Health check for the service
9
+ * @returns any
10
+ * @throws ApiError
11
+ */
12
+ healthCheck(): CancelablePromise<any>;
13
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HealthService = void 0;
4
+ class HealthService {
5
+ httpRequest;
6
+ constructor(httpRequest) {
7
+ this.httpRequest = httpRequest;
8
+ }
9
+ /**
10
+ * Health check
11
+ * Health check for the service
12
+ * @returns any
13
+ * @throws ApiError
14
+ */
15
+ healthCheck() {
16
+ return this.httpRequest.request({
17
+ method: 'GET',
18
+ url: '/',
19
+ });
20
+ }
21
+ }
22
+ exports.HealthService = HealthService;
23
+ //# sourceMappingURL=HealthService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HealthService.js","sourceRoot":"","sources":["../../services/HealthService.ts"],"names":[],"mappings":";;;AAMA,MAAa,aAAa;IACM;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;OAKG;IACI,WAAW;QACd,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,GAAG;SACX,CAAC,CAAC;IACP,CAAC;CACJ;AAdD,sCAcC"}
@@ -0,0 +1,32 @@
1
+ import type { CreateTradeOperationDto } from '../models/CreateTradeOperationDto';
2
+ import type { CreateTransactionDto } from '../models/CreateTransactionDto';
3
+ import type { TradeOperationDto } from '../models/TradeOperationDto';
4
+ import type { CancelablePromise } from '../core/CancelablePromise';
5
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
6
+ export declare class TradesService {
7
+ readonly httpRequest: BaseHttpRequest;
8
+ constructor(httpRequest: BaseHttpRequest);
9
+ /**
10
+ * Create a new trade
11
+ * @param requestBody
12
+ * @param shouldAppendToExistingTrade Whether to append transactions to an existing trade with matching properties
13
+ * @returns TradeOperationDto
14
+ * @throws ApiError
15
+ */
16
+ createTrade(requestBody: CreateTradeOperationDto, shouldAppendToExistingTrade?: boolean): CancelablePromise<TradeOperationDto>;
17
+ /**
18
+ * Get a trade by ID or referenceId
19
+ * @param id
20
+ * @returns TradeOperationDto
21
+ * @throws ApiError
22
+ */
23
+ getTrade(id: string): CancelablePromise<TradeOperationDto>;
24
+ /**
25
+ * Create a transaction and associate it to a trade
26
+ * @param id
27
+ * @param requestBody
28
+ * @returns TradeOperationDto
29
+ * @throws ApiError
30
+ */
31
+ addTransaction(id: string, requestBody: CreateTransactionDto): CancelablePromise<TradeOperationDto>;
32
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TradesService = void 0;
4
+ class TradesService {
5
+ httpRequest;
6
+ constructor(httpRequest) {
7
+ this.httpRequest = httpRequest;
8
+ }
9
+ /**
10
+ * Create a new trade
11
+ * @param requestBody
12
+ * @param shouldAppendToExistingTrade Whether to append transactions to an existing trade with matching properties
13
+ * @returns TradeOperationDto
14
+ * @throws ApiError
15
+ */
16
+ createTrade(requestBody, shouldAppendToExistingTrade) {
17
+ return this.httpRequest.request({
18
+ method: 'POST',
19
+ url: '/v1/operations/trades',
20
+ query: {
21
+ 'shouldAppendToExistingTrade': shouldAppendToExistingTrade,
22
+ },
23
+ body: requestBody,
24
+ mediaType: 'application/json',
25
+ });
26
+ }
27
+ /**
28
+ * Get a trade by ID or referenceId
29
+ * @param id
30
+ * @returns TradeOperationDto
31
+ * @throws ApiError
32
+ */
33
+ getTrade(id) {
34
+ return this.httpRequest.request({
35
+ method: 'GET',
36
+ url: '/v1/operations/trades/{id}',
37
+ path: {
38
+ 'id': id,
39
+ },
40
+ });
41
+ }
42
+ /**
43
+ * Create a transaction and associate it to a trade
44
+ * @param id
45
+ * @param requestBody
46
+ * @returns TradeOperationDto
47
+ * @throws ApiError
48
+ */
49
+ addTransaction(id, requestBody) {
50
+ return this.httpRequest.request({
51
+ method: 'PUT',
52
+ url: '/v1/operations/trades/{id}/transactions',
53
+ path: {
54
+ 'id': id,
55
+ },
56
+ body: requestBody,
57
+ mediaType: 'application/json',
58
+ });
59
+ }
60
+ }
61
+ exports.TradesService = TradesService;
62
+ //# sourceMappingURL=TradesService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TradesService.js","sourceRoot":"","sources":["../../services/TradesService.ts"],"names":[],"mappings":";;;AASA,MAAa,aAAa;IACM;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;OAMG;IACI,WAAW,CACd,WAAoC,EACpC,2BAAqC;QAErC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,uBAAuB;YAC5B,KAAK,EAAE;gBACH,6BAA6B,EAAE,2BAA2B;aAC7D;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;AA7DD,sCA6DC"}
@@ -0,0 +1,14 @@
1
+ import type { TransactionStatusDto } from '../models/TransactionStatusDto';
2
+ import type { CancelablePromise } from '../core/CancelablePromise';
3
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
4
+ export declare class TransactionsService {
5
+ readonly httpRequest: BaseHttpRequest;
6
+ constructor(httpRequest: BaseHttpRequest);
7
+ /**
8
+ * @param id
9
+ * @param requestBody
10
+ * @returns any
11
+ * @throws ApiError
12
+ */
13
+ transactionsControllerUpdateTransactionStatus(id: string, requestBody: TransactionStatusDto): CancelablePromise<any>;
14
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionsService = void 0;
4
+ class TransactionsService {
5
+ httpRequest;
6
+ constructor(httpRequest) {
7
+ this.httpRequest = httpRequest;
8
+ }
9
+ /**
10
+ * @param id
11
+ * @param requestBody
12
+ * @returns any
13
+ * @throws ApiError
14
+ */
15
+ transactionsControllerUpdateTransactionStatus(id, requestBody) {
16
+ return this.httpRequest.request({
17
+ method: 'PUT',
18
+ url: '/v1/transactions/{id}/updateStatus',
19
+ path: {
20
+ 'id': id,
21
+ },
22
+ body: requestBody,
23
+ mediaType: 'application/json',
24
+ });
25
+ }
26
+ }
27
+ exports.TransactionsService = TransactionsService;
28
+ //# sourceMappingURL=TransactionsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionsService.js","sourceRoot":"","sources":["../../services/TransactionsService.ts"],"names":[],"mappings":";;;AAOA,MAAa,mBAAmB;IACA;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;OAKG;IACI,6CAA6C,CAChD,EAAU,EACV,WAAiC;QAEjC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,oCAAoC;YACzC,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ;AAtBD,kDAsBC"}
@@ -0,0 +1,22 @@
1
+ import type { CreateWithdrawalOperationDto } from '../models/CreateWithdrawalOperationDto';
2
+ import type { WithdrawalOperationDto } from '../models/WithdrawalOperationDto';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
5
+ export declare class WithdrawalsService {
6
+ readonly httpRequest: BaseHttpRequest;
7
+ constructor(httpRequest: BaseHttpRequest);
8
+ /**
9
+ * Create a new withdrawal
10
+ * @param requestBody
11
+ * @returns WithdrawalOperationDto
12
+ * @throws ApiError
13
+ */
14
+ createWithdrawal(requestBody: CreateWithdrawalOperationDto): CancelablePromise<WithdrawalOperationDto>;
15
+ /**
16
+ * Get a withdrawal by ID or referenceId
17
+ * @param id
18
+ * @returns WithdrawalOperationDto
19
+ * @throws ApiError
20
+ */
21
+ getWithdrawal(id: string): CancelablePromise<WithdrawalOperationDto>;
22
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WithdrawalsService = void 0;
4
+ class WithdrawalsService {
5
+ httpRequest;
6
+ constructor(httpRequest) {
7
+ this.httpRequest = httpRequest;
8
+ }
9
+ /**
10
+ * Create a new withdrawal
11
+ * @param requestBody
12
+ * @returns WithdrawalOperationDto
13
+ * @throws ApiError
14
+ */
15
+ createWithdrawal(requestBody) {
16
+ return this.httpRequest.request({
17
+ method: 'POST',
18
+ url: '/v1/operations/withdrawals',
19
+ body: requestBody,
20
+ mediaType: 'application/json',
21
+ });
22
+ }
23
+ /**
24
+ * Get a withdrawal by ID or referenceId
25
+ * @param id
26
+ * @returns WithdrawalOperationDto
27
+ * @throws ApiError
28
+ */
29
+ getWithdrawal(id) {
30
+ return this.httpRequest.request({
31
+ method: 'GET',
32
+ url: '/v1/operations/withdrawals/{id}',
33
+ path: {
34
+ 'id': id,
35
+ },
36
+ });
37
+ }
38
+ }
39
+ exports.WithdrawalsService = WithdrawalsService;
40
+ //# sourceMappingURL=WithdrawalsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawalsService.js","sourceRoot":"","sources":["../../services/WithdrawalsService.ts"],"names":[],"mappings":";;;AAQA,MAAa,kBAAkB;IACC;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;OAKG;IACI,gBAAgB,CACnB,WAAyC;QAEzC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,4BAA4B;YACjC,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,aAAa,CAChB,EAAU;QAEV,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,iCAAiC;YACtC,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AAnCD,gDAmCC"}
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./verify-signature";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./verify-signature"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../webhooks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,qDAAmC"}