@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.
- package/README.md +282 -0
- package/dist/ComplianceClient.d.ts +22 -0
- package/dist/ComplianceClient.js +43 -0
- package/dist/ComplianceClient.js.map +1 -0
- package/dist/core/ApiError.d.ts +11 -0
- package/dist/core/ApiError.js +23 -0
- package/dist/core/ApiError.js.map +1 -0
- package/dist/core/ApiRequestOptions.d.ts +13 -0
- package/dist/core/ApiRequestOptions.js +3 -0
- package/dist/core/ApiRequestOptions.js.map +1 -0
- package/dist/core/ApiResult.d.ts +7 -0
- package/dist/core/ApiResult.js +3 -0
- package/dist/core/ApiResult.js.map +1 -0
- package/dist/core/BaseHttpRequest.d.ts +8 -0
- package/dist/core/BaseHttpRequest.js +11 -0
- package/dist/core/BaseHttpRequest.js.map +1 -0
- package/dist/core/CancelablePromise.d.ts +20 -0
- package/dist/core/CancelablePromise.js +105 -0
- package/dist/core/CancelablePromise.js.map +1 -0
- package/dist/core/FetchHttpRequest.d.ts +14 -0
- package/dist/core/FetchHttpRequest.js +21 -0
- package/dist/core/FetchHttpRequest.js.map +1 -0
- package/dist/core/OpenAPI.d.ts +16 -0
- package/dist/core/OpenAPI.js +15 -0
- package/dist/core/OpenAPI.js.map +1 -0
- package/dist/core/request.d.ts +30 -0
- package/dist/core/request.js +300 -0
- package/dist/core/request.js.map +1 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.js +71 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +19 -0
- package/dist/main.js.map +1 -0
- package/dist/models/AdverseMediaDto.d.ts +6 -0
- package/dist/models/AdverseMediaDto.js +3 -0
- package/dist/models/AdverseMediaDto.js.map +1 -0
- package/dist/models/AlertAssociationResponseDto.d.ts +16 -0
- package/dist/models/AlertAssociationResponseDto.js +3 -0
- package/dist/models/AlertAssociationResponseDto.js.map +1 -0
- package/dist/models/AlertCustomFieldDataDto.d.ts +10 -0
- package/dist/models/AlertCustomFieldDataDto.js +3 -0
- package/dist/models/AlertCustomFieldDataDto.js.map +1 -0
- package/dist/models/AlertDto.d.ts +100 -0
- package/dist/models/AlertDto.js +41 -0
- package/dist/models/AlertDto.js.map +1 -0
- package/dist/models/AlertSourceDto.d.ts +18 -0
- package/dist/models/AlertSourceDto.js +3 -0
- package/dist/models/AlertSourceDto.js.map +1 -0
- package/dist/models/AlertStatusData.d.ts +25 -0
- package/dist/models/AlertStatusData.js +17 -0
- package/dist/models/AlertStatusData.js.map +1 -0
- package/dist/models/AssociatedClientDto.d.ts +10 -0
- package/dist/models/AssociatedClientDto.js +3 -0
- package/dist/models/AssociatedClientDto.js.map +1 -0
- package/dist/models/AssociatedTransactionDto.d.ts +10 -0
- package/dist/models/AssociatedTransactionDto.js +3 -0
- package/dist/models/AssociatedTransactionDto.js.map +1 -0
- package/dist/models/ClientRiskDto.d.ts +28 -0
- package/dist/models/ClientRiskDto.js +16 -0
- package/dist/models/ClientRiskDto.js.map +1 -0
- package/dist/models/CorporateClientAddressDto.d.ts +11 -0
- package/dist/models/CorporateClientAddressDto.js +3 -0
- package/dist/models/CorporateClientAddressDto.js.map +1 -0
- package/dist/models/CorporateClientAddressLineDto.d.ts +22 -0
- package/dist/models/CorporateClientAddressLineDto.js +3 -0
- package/dist/models/CorporateClientAddressLineDto.js.map +1 -0
- package/dist/models/CorporateClientApplicationDto.d.ts +14 -0
- package/dist/models/CorporateClientApplicationDto.js +3 -0
- package/dist/models/CorporateClientApplicationDto.js.map +1 -0
- package/dist/models/CorporateClientBusinessDto.d.ts +10 -0
- package/dist/models/CorporateClientBusinessDto.js +3 -0
- package/dist/models/CorporateClientBusinessDto.js.map +1 -0
- package/dist/models/CorporateClientCustomFieldDataDto.d.ts +26 -0
- package/dist/models/CorporateClientCustomFieldDataDto.js +18 -0
- package/dist/models/CorporateClientCustomFieldDataDto.js.map +1 -0
- package/dist/models/CorporateClientDto.d.ts +101 -0
- package/dist/models/CorporateClientDto.js +29 -0
- package/dist/models/CorporateClientDto.js.map +1 -0
- package/dist/models/CorporateClientGeneralDto.d.ts +14 -0
- package/dist/models/CorporateClientGeneralDto.js +3 -0
- package/dist/models/CorporateClientGeneralDto.js.map +1 -0
- package/dist/models/CreateAlertDto.d.ts +81 -0
- package/dist/models/CreateAlertDto.js +41 -0
- package/dist/models/CreateAlertDto.js.map +1 -0
- package/dist/models/CreateCorporateClientDto.d.ts +74 -0
- package/dist/models/CreateCorporateClientDto.js +29 -0
- package/dist/models/CreateCorporateClientDto.js.map +1 -0
- package/dist/models/CreateDepositOperationDto.d.ts +19 -0
- package/dist/models/CreateDepositOperationDto.js +3 -0
- package/dist/models/CreateDepositOperationDto.js.map +1 -0
- package/dist/models/CreateIndividualClientDto.d.ts +99 -0
- package/dist/models/CreateIndividualClientDto.js +29 -0
- package/dist/models/CreateIndividualClientDto.js.map +1 -0
- package/dist/models/CreateIndividualClientResponseDto.d.ts +60 -0
- package/dist/models/CreateIndividualClientResponseDto.js +27 -0
- package/dist/models/CreateIndividualClientResponseDto.js.map +1 -0
- package/dist/models/CreateOrUpdateRiskDto.d.ts +24 -0
- package/dist/models/CreateOrUpdateRiskDto.js +16 -0
- package/dist/models/CreateOrUpdateRiskDto.js.map +1 -0
- package/dist/models/CreateTradeOperationDto.d.ts +48 -0
- package/dist/models/CreateTradeOperationDto.js +15 -0
- package/dist/models/CreateTradeOperationDto.js.map +1 -0
- package/dist/models/CreateTransactionDto.d.ts +50 -0
- package/dist/models/CreateTransactionDto.js +3 -0
- package/dist/models/CreateTransactionDto.js.map +1 -0
- package/dist/models/CreateTransactionSourceOrDestinationClientDto.d.ts +10 -0
- package/dist/models/CreateTransactionSourceOrDestinationClientDto.js +3 -0
- package/dist/models/CreateTransactionSourceOrDestinationClientDto.js.map +1 -0
- package/dist/models/CreateWithdrawalOperationDto.d.ts +19 -0
- package/dist/models/CreateWithdrawalOperationDto.js +3 -0
- package/dist/models/CreateWithdrawalOperationDto.js.map +1 -0
- package/dist/models/DepositOperationDto.d.ts +32 -0
- package/dist/models/DepositOperationDto.js +3 -0
- package/dist/models/DepositOperationDto.js.map +1 -0
- package/dist/models/IndividualClientAddressDto.d.ts +22 -0
- package/dist/models/IndividualClientAddressDto.js +3 -0
- package/dist/models/IndividualClientAddressDto.js.map +1 -0
- package/dist/models/IndividualClientApplicationInformationDto.d.ts +14 -0
- package/dist/models/IndividualClientApplicationInformationDto.js +3 -0
- package/dist/models/IndividualClientApplicationInformationDto.js.map +1 -0
- package/dist/models/IndividualClientContactInformationDto.d.ts +10 -0
- package/dist/models/IndividualClientContactInformationDto.js +3 -0
- package/dist/models/IndividualClientContactInformationDto.js.map +1 -0
- package/dist/models/IndividualClientCustomFieldDataDto.d.ts +27 -0
- package/dist/models/IndividualClientCustomFieldDataDto.js +19 -0
- package/dist/models/IndividualClientCustomFieldDataDto.js.map +1 -0
- package/dist/models/IndividualClientDto.d.ts +127 -0
- package/dist/models/IndividualClientDto.js +29 -0
- package/dist/models/IndividualClientDto.js.map +1 -0
- package/dist/models/IndividualClientFinancialInformationDto.d.ts +6 -0
- package/dist/models/IndividualClientFinancialInformationDto.js +3 -0
- package/dist/models/IndividualClientFinancialInformationDto.js.map +1 -0
- package/dist/models/IndividualClientGeneralInformationDto.d.ts +39 -0
- package/dist/models/IndividualClientGeneralInformationDto.js +15 -0
- package/dist/models/IndividualClientGeneralInformationDto.js.map +1 -0
- package/dist/models/IndividualClientWorkInformationDto.d.ts +6 -0
- package/dist/models/IndividualClientWorkInformationDto.js +3 -0
- package/dist/models/IndividualClientWorkInformationDto.js.map +1 -0
- package/dist/models/OperationInitiatorDto.d.ts +10 -0
- package/dist/models/OperationInitiatorDto.js +3 -0
- package/dist/models/OperationInitiatorDto.js.map +1 -0
- package/dist/models/PoliticalExposureDto.d.ts +6 -0
- package/dist/models/PoliticalExposureDto.js +3 -0
- package/dist/models/PoliticalExposureDto.js.map +1 -0
- package/dist/models/SanctionsDto.d.ts +6 -0
- package/dist/models/SanctionsDto.js +3 -0
- package/dist/models/SanctionsDto.js.map +1 -0
- package/dist/models/TradeOperationDto.d.ts +61 -0
- package/dist/models/TradeOperationDto.js +15 -0
- package/dist/models/TradeOperationDto.js.map +1 -0
- package/dist/models/TransactionAmountDto.d.ts +14 -0
- package/dist/models/TransactionAmountDto.js +3 -0
- package/dist/models/TransactionAmountDto.js.map +1 -0
- package/dist/models/TransactionCustomFieldDto.d.ts +14 -0
- package/dist/models/TransactionCustomFieldDto.js +3 -0
- package/dist/models/TransactionCustomFieldDto.js.map +1 -0
- package/dist/models/TransactionDto.d.ts +82 -0
- package/dist/models/TransactionDto.js +24 -0
- package/dist/models/TransactionDto.js.map +1 -0
- package/dist/models/TransactionSourceOrDestinationClientDto.d.ts +10 -0
- package/dist/models/TransactionSourceOrDestinationClientDto.js +3 -0
- package/dist/models/TransactionSourceOrDestinationClientDto.js.map +1 -0
- package/dist/models/TransactionSourceOrDestinationDto.d.ts +11 -0
- package/dist/models/TransactionSourceOrDestinationDto.js +3 -0
- package/dist/models/TransactionSourceOrDestinationDto.js.map +1 -0
- package/dist/models/TransactionStatusDto.d.ts +29 -0
- package/dist/models/TransactionStatusDto.js +17 -0
- package/dist/models/TransactionStatusDto.js.map +1 -0
- package/dist/models/UpdateAlertDto.d.ts +60 -0
- package/dist/models/UpdateAlertDto.js +41 -0
- package/dist/models/UpdateAlertDto.js.map +1 -0
- package/dist/models/UpdateCorporateClientDto.d.ts +82 -0
- package/dist/models/UpdateCorporateClientDto.js +29 -0
- package/dist/models/UpdateCorporateClientDto.js.map +1 -0
- package/dist/models/UpdateIndividualClientDto.d.ts +107 -0
- package/dist/models/UpdateIndividualClientDto.js +29 -0
- package/dist/models/UpdateIndividualClientDto.js.map +1 -0
- package/dist/models/WithdrawalOperationDto.d.ts +33 -0
- package/dist/models/WithdrawalOperationDto.js +3 -0
- package/dist/models/WithdrawalOperationDto.js.map +1 -0
- package/dist/services/AlertsService.d.ts +48 -0
- package/dist/services/AlertsService.js +94 -0
- package/dist/services/AlertsService.js.map +1 -0
- package/dist/services/ClientsService.d.ts +56 -0
- package/dist/services/ClientsService.js +105 -0
- package/dist/services/ClientsService.js.map +1 -0
- package/dist/services/DepositsService.d.ts +22 -0
- package/dist/services/DepositsService.js +40 -0
- package/dist/services/DepositsService.js.map +1 -0
- package/dist/services/HealthService.d.ts +13 -0
- package/dist/services/HealthService.js +23 -0
- package/dist/services/HealthService.js.map +1 -0
- package/dist/services/TradesService.d.ts +32 -0
- package/dist/services/TradesService.js +62 -0
- package/dist/services/TradesService.js.map +1 -0
- package/dist/services/TransactionsService.d.ts +14 -0
- package/dist/services/TransactionsService.js +28 -0
- package/dist/services/TransactionsService.js.map +1 -0
- package/dist/services/WithdrawalsService.d.ts +22 -0
- package/dist/services/WithdrawalsService.js +40 -0
- package/dist/services/WithdrawalsService.js.map +1 -0
- package/dist/webhooks/index.d.ts +2 -0
- package/dist/webhooks/index.js +19 -0
- package/dist/webhooks/index.js.map +1 -0
- package/dist/webhooks/types.d.ts +56 -0
- package/dist/webhooks/types.js +30 -0
- package/dist/webhooks/types.js.map +1 -0
- package/dist/webhooks/verify-signature.d.ts +15 -0
- package/dist/webhooks/verify-signature.js +49 -0
- package/dist/webhooks/verify-signature.js.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { AlertCustomFieldDataDto } from './AlertCustomFieldDataDto';
|
|
2
|
+
import type { AlertSourceDto } from './AlertSourceDto';
|
|
3
|
+
import type { AlertStatusData } from './AlertStatusData';
|
|
4
|
+
import type { AssociatedClientDto } from './AssociatedClientDto';
|
|
5
|
+
import type { AssociatedTransactionDto } from './AssociatedTransactionDto';
|
|
6
|
+
export type AlertDto = {
|
|
7
|
+
/**
|
|
8
|
+
* The ID of the alert
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* The reference ID of the alert
|
|
13
|
+
*/
|
|
14
|
+
referenceId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The ID of the assignee of the alert
|
|
17
|
+
*/
|
|
18
|
+
assigneeId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The category of the alert
|
|
21
|
+
*/
|
|
22
|
+
category: AlertDto.category;
|
|
23
|
+
/**
|
|
24
|
+
* The priority of the alert
|
|
25
|
+
*/
|
|
26
|
+
priority: AlertDto.priority;
|
|
27
|
+
/**
|
|
28
|
+
* The status of the alert
|
|
29
|
+
*/
|
|
30
|
+
status: AlertDto.status;
|
|
31
|
+
/**
|
|
32
|
+
* The description of the alert
|
|
33
|
+
*/
|
|
34
|
+
description: string;
|
|
35
|
+
/**
|
|
36
|
+
* ISO Date when the alert was raised
|
|
37
|
+
*/
|
|
38
|
+
raisedAt: string;
|
|
39
|
+
/**
|
|
40
|
+
* The source of the alert
|
|
41
|
+
*/
|
|
42
|
+
source: AlertSourceDto;
|
|
43
|
+
/**
|
|
44
|
+
* The custom fields of the alert
|
|
45
|
+
*/
|
|
46
|
+
customFields?: Record<string, AlertCustomFieldDataDto>;
|
|
47
|
+
/**
|
|
48
|
+
* The status history of the alert
|
|
49
|
+
*/
|
|
50
|
+
statusHistory: Array<AlertStatusData>;
|
|
51
|
+
/**
|
|
52
|
+
* The transactions associated with the alert
|
|
53
|
+
*/
|
|
54
|
+
associatedTransactions: Array<AssociatedTransactionDto>;
|
|
55
|
+
/**
|
|
56
|
+
* The clients associated with the alert
|
|
57
|
+
*/
|
|
58
|
+
associatedClients: Array<AssociatedClientDto>;
|
|
59
|
+
/**
|
|
60
|
+
* ISO Date when the alert was created
|
|
61
|
+
*/
|
|
62
|
+
createdAt: string;
|
|
63
|
+
/**
|
|
64
|
+
* ISO Date when the alert was updated
|
|
65
|
+
*/
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
};
|
|
68
|
+
export declare namespace AlertDto {
|
|
69
|
+
/**
|
|
70
|
+
* The category of the alert
|
|
71
|
+
*/
|
|
72
|
+
enum category {
|
|
73
|
+
KYC = "KYC",
|
|
74
|
+
KYB = "KYB",
|
|
75
|
+
TRANSACTION_MONITORING = "TRANSACTION_MONITORING",
|
|
76
|
+
ONCHAIN_TRANSACTION_MONITORING = "ONCHAIN_TRANSACTION_MONITORING",
|
|
77
|
+
SCREENING = "SCREENING",
|
|
78
|
+
FRAUD = "FRAUD",
|
|
79
|
+
PERIODIC_REVIEW = "PERIODIC_REVIEW",
|
|
80
|
+
EDD = "EDD",
|
|
81
|
+
OTHER = "OTHER"
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* The priority of the alert
|
|
85
|
+
*/
|
|
86
|
+
enum priority {
|
|
87
|
+
LOW = "LOW",
|
|
88
|
+
MEDIUM = "MEDIUM",
|
|
89
|
+
HIGH = "HIGH"
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The status of the alert
|
|
93
|
+
*/
|
|
94
|
+
enum status {
|
|
95
|
+
NEW = "NEW",
|
|
96
|
+
IN_REVIEW = "IN_REVIEW",
|
|
97
|
+
ESCALATED = "ESCALATED",
|
|
98
|
+
RESOLVED = "RESOLVED"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlertDto = void 0;
|
|
4
|
+
var AlertDto;
|
|
5
|
+
(function (AlertDto) {
|
|
6
|
+
/**
|
|
7
|
+
* The category of the alert
|
|
8
|
+
*/
|
|
9
|
+
let category;
|
|
10
|
+
(function (category) {
|
|
11
|
+
category["KYC"] = "KYC";
|
|
12
|
+
category["KYB"] = "KYB";
|
|
13
|
+
category["TRANSACTION_MONITORING"] = "TRANSACTION_MONITORING";
|
|
14
|
+
category["ONCHAIN_TRANSACTION_MONITORING"] = "ONCHAIN_TRANSACTION_MONITORING";
|
|
15
|
+
category["SCREENING"] = "SCREENING";
|
|
16
|
+
category["FRAUD"] = "FRAUD";
|
|
17
|
+
category["PERIODIC_REVIEW"] = "PERIODIC_REVIEW";
|
|
18
|
+
category["EDD"] = "EDD";
|
|
19
|
+
category["OTHER"] = "OTHER";
|
|
20
|
+
})(category = AlertDto.category || (AlertDto.category = {}));
|
|
21
|
+
/**
|
|
22
|
+
* The priority of the alert
|
|
23
|
+
*/
|
|
24
|
+
let priority;
|
|
25
|
+
(function (priority) {
|
|
26
|
+
priority["LOW"] = "LOW";
|
|
27
|
+
priority["MEDIUM"] = "MEDIUM";
|
|
28
|
+
priority["HIGH"] = "HIGH";
|
|
29
|
+
})(priority = AlertDto.priority || (AlertDto.priority = {}));
|
|
30
|
+
/**
|
|
31
|
+
* The status of the alert
|
|
32
|
+
*/
|
|
33
|
+
let status;
|
|
34
|
+
(function (status) {
|
|
35
|
+
status["NEW"] = "NEW";
|
|
36
|
+
status["IN_REVIEW"] = "IN_REVIEW";
|
|
37
|
+
status["ESCALATED"] = "ESCALATED";
|
|
38
|
+
status["RESOLVED"] = "RESOLVED";
|
|
39
|
+
})(status = AlertDto.status || (AlertDto.status = {}));
|
|
40
|
+
})(AlertDto || (exports.AlertDto = AlertDto = {}));
|
|
41
|
+
//# sourceMappingURL=AlertDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDto.js","sourceRoot":"","sources":["../../models/AlertDto.ts"],"names":[],"mappings":";;;AAuEA,IAAiB,QAAQ,CAgCxB;AAhCD,WAAiB,QAAQ;IACrB;;OAEG;IACH,IAAY,QAUX;IAVD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,uBAAW,CAAA;QACX,6DAAiD,CAAA;QACjD,6EAAiE,CAAA;QACjE,mCAAuB,CAAA;QACvB,2BAAe,CAAA;QACf,+CAAmC,CAAA;QACnC,uBAAW,CAAA;QACX,2BAAe,CAAA;IACnB,CAAC,EAVW,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QAUnB;IACD;;OAEG;IACH,IAAY,QAIX;IAJD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,6BAAiB,CAAA;QACjB,yBAAa,CAAA;IACjB,CAAC,EAJW,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QAInB;IACD;;OAEG;IACH,IAAY,MAKX;IALD,WAAY,MAAM;QACd,qBAAW,CAAA;QACX,iCAAuB,CAAA;QACvB,iCAAuB,CAAA;QACvB,+BAAqB,CAAA;IACzB,CAAC,EALW,MAAM,GAAN,eAAM,KAAN,eAAM,QAKjB;AACL,CAAC,EAhCgB,QAAQ,wBAAR,QAAQ,QAgCxB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type AlertSourceDto = {
|
|
2
|
+
/**
|
|
3
|
+
* The vendor that generated the alert
|
|
4
|
+
*/
|
|
5
|
+
vendor?: string;
|
|
6
|
+
/**
|
|
7
|
+
* The ID of the alert in the vendor system
|
|
8
|
+
*/
|
|
9
|
+
vendorAlertId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Additional data provided by the vendor
|
|
12
|
+
*/
|
|
13
|
+
vendorData?: Record<string, any>;
|
|
14
|
+
/**
|
|
15
|
+
* Link to the alert details in the vendor system
|
|
16
|
+
*/
|
|
17
|
+
link?: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertSourceDto.js","sourceRoot":"","sources":["../../models/AlertSourceDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type AlertStatusData = {
|
|
2
|
+
/**
|
|
3
|
+
* The status of the alert
|
|
4
|
+
*/
|
|
5
|
+
status: AlertStatusData.status;
|
|
6
|
+
/**
|
|
7
|
+
* ISO Date when the alert was evaluated
|
|
8
|
+
*/
|
|
9
|
+
evaluatedAt: string;
|
|
10
|
+
/**
|
|
11
|
+
* The ID of the user who evaluated the alert
|
|
12
|
+
*/
|
|
13
|
+
evaluatedBy: string;
|
|
14
|
+
};
|
|
15
|
+
export declare namespace AlertStatusData {
|
|
16
|
+
/**
|
|
17
|
+
* The status of the alert
|
|
18
|
+
*/
|
|
19
|
+
enum status {
|
|
20
|
+
NEW = "NEW",
|
|
21
|
+
IN_REVIEW = "IN_REVIEW",
|
|
22
|
+
ESCALATED = "ESCALATED",
|
|
23
|
+
RESOLVED = "RESOLVED"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlertStatusData = void 0;
|
|
4
|
+
var AlertStatusData;
|
|
5
|
+
(function (AlertStatusData) {
|
|
6
|
+
/**
|
|
7
|
+
* The status of the alert
|
|
8
|
+
*/
|
|
9
|
+
let status;
|
|
10
|
+
(function (status) {
|
|
11
|
+
status["NEW"] = "NEW";
|
|
12
|
+
status["IN_REVIEW"] = "IN_REVIEW";
|
|
13
|
+
status["ESCALATED"] = "ESCALATED";
|
|
14
|
+
status["RESOLVED"] = "RESOLVED";
|
|
15
|
+
})(status = AlertStatusData.status || (AlertStatusData.status = {}));
|
|
16
|
+
})(AlertStatusData || (exports.AlertStatusData = AlertStatusData = {}));
|
|
17
|
+
//# sourceMappingURL=AlertStatusData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertStatusData.js","sourceRoot":"","sources":["../../models/AlertStatusData.ts"],"names":[],"mappings":";;;AAkBA,IAAiB,eAAe,CAU/B;AAVD,WAAiB,eAAe;IAC5B;;OAEG;IACH,IAAY,MAKX;IALD,WAAY,MAAM;QACd,qBAAW,CAAA;QACX,iCAAuB,CAAA;QACvB,iCAAuB,CAAA;QACvB,+BAAqB,CAAA;IACzB,CAAC,EALW,MAAM,GAAN,sBAAM,KAAN,sBAAM,QAKjB;AACL,CAAC,EAVgB,eAAe,+BAAf,eAAe,QAU/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssociatedClientDto.js","sourceRoot":"","sources":["../../models/AssociatedClientDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssociatedTransactionDto.js","sourceRoot":"","sources":["../../models/AssociatedTransactionDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type ClientRiskDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Risk score value for the client. The score is a number between 0 and 100. 0-49 is low, 50-74 is medium, 75-100 is high
|
|
4
|
+
*/
|
|
5
|
+
score: number;
|
|
6
|
+
/**
|
|
7
|
+
* Risk level label based on the score. If you don't supply a level, the score will be used to calculate the level
|
|
8
|
+
*/
|
|
9
|
+
level?: ClientRiskDto.level;
|
|
10
|
+
/**
|
|
11
|
+
* Explanation for the assigned risk score
|
|
12
|
+
*/
|
|
13
|
+
reason?: string;
|
|
14
|
+
/**
|
|
15
|
+
* ISO timestamp when the risk was calculated
|
|
16
|
+
*/
|
|
17
|
+
calculatedAt: string;
|
|
18
|
+
};
|
|
19
|
+
export declare namespace ClientRiskDto {
|
|
20
|
+
/**
|
|
21
|
+
* Risk level label based on the score. If you don't supply a level, the score will be used to calculate the level
|
|
22
|
+
*/
|
|
23
|
+
enum level {
|
|
24
|
+
LOW = "LOW",
|
|
25
|
+
MEDIUM = "MEDIUM",
|
|
26
|
+
HIGH = "HIGH"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientRiskDto = void 0;
|
|
4
|
+
var ClientRiskDto;
|
|
5
|
+
(function (ClientRiskDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Risk level label based on the score. If you don't supply a level, the score will be used to calculate the level
|
|
8
|
+
*/
|
|
9
|
+
let level;
|
|
10
|
+
(function (level) {
|
|
11
|
+
level["LOW"] = "LOW";
|
|
12
|
+
level["MEDIUM"] = "MEDIUM";
|
|
13
|
+
level["HIGH"] = "HIGH";
|
|
14
|
+
})(level = ClientRiskDto.level || (ClientRiskDto.level = {}));
|
|
15
|
+
})(ClientRiskDto || (exports.ClientRiskDto = ClientRiskDto = {}));
|
|
16
|
+
//# sourceMappingURL=ClientRiskDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientRiskDto.js","sourceRoot":"","sources":["../../models/ClientRiskDto.ts"],"names":[],"mappings":";;;AAsBA,IAAiB,aAAa,CAS7B;AATD,WAAiB,aAAa;IAC1B;;OAEG;IACH,IAAY,KAIX;IAJD,WAAY,KAAK;QACb,oBAAW,CAAA;QACX,0BAAiB,CAAA;QACjB,sBAAa,CAAA;IACjB,CAAC,EAJW,KAAK,GAAL,mBAAK,KAAL,mBAAK,QAIhB;AACL,CAAC,EATgB,aAAa,6BAAb,aAAa,QAS7B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CorporateClientAddressLineDto } from './CorporateClientAddressLineDto';
|
|
2
|
+
export type CorporateClientAddressDto = {
|
|
3
|
+
/**
|
|
4
|
+
* Registration address details of the corporate client
|
|
5
|
+
*/
|
|
6
|
+
registrationAddress?: CorporateClientAddressLineDto;
|
|
7
|
+
/**
|
|
8
|
+
* Business address details if different from registration address
|
|
9
|
+
*/
|
|
10
|
+
businessAddress?: CorporateClientAddressLineDto;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorporateClientAddressDto.js","sourceRoot":"","sources":["../../models/CorporateClientAddressDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type CorporateClientAddressLineDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Country code of the address
|
|
4
|
+
*/
|
|
5
|
+
country?: string;
|
|
6
|
+
/**
|
|
7
|
+
* City name
|
|
8
|
+
*/
|
|
9
|
+
city?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Postal code
|
|
12
|
+
*/
|
|
13
|
+
postalCode?: string;
|
|
14
|
+
/**
|
|
15
|
+
* First line of the address
|
|
16
|
+
*/
|
|
17
|
+
addressLine1?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Second line of the address (optional)
|
|
20
|
+
*/
|
|
21
|
+
addressLine2?: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorporateClientAddressLineDto.js","sourceRoot":"","sources":["../../models/CorporateClientAddressLineDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type CorporateClientApplicationDto = {
|
|
2
|
+
/**
|
|
3
|
+
* The date when the client application was submitted
|
|
4
|
+
*/
|
|
5
|
+
submittedAt?: string;
|
|
6
|
+
/**
|
|
7
|
+
* The date when the client was successfully onboarded
|
|
8
|
+
*/
|
|
9
|
+
onboardedAt?: string;
|
|
10
|
+
/**
|
|
11
|
+
* ISO Date of the next scheduled periodic review
|
|
12
|
+
*/
|
|
13
|
+
nextPeriodicReview?: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorporateClientApplicationDto.js","sourceRoot":"","sources":["../../models/CorporateClientApplicationDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorporateClientBusinessDto.js","sourceRoot":"","sources":["../../models/CorporateClientBusinessDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type CorporateClientCustomFieldDataDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Label of the custom field
|
|
4
|
+
*/
|
|
5
|
+
label: string;
|
|
6
|
+
/**
|
|
7
|
+
* Value of the custom field. It can be a string, number, boolean. If you'd like to submit a country code, use the ISO 3166-1 alpha-2 code. If you'd like to submit a date, use the ISO 8601 format.
|
|
8
|
+
*/
|
|
9
|
+
value: (string | number | boolean);
|
|
10
|
+
/**
|
|
11
|
+
* Category of the custom field
|
|
12
|
+
*/
|
|
13
|
+
category: CorporateClientCustomFieldDataDto.category;
|
|
14
|
+
};
|
|
15
|
+
export declare namespace CorporateClientCustomFieldDataDto {
|
|
16
|
+
/**
|
|
17
|
+
* Category of the custom field
|
|
18
|
+
*/
|
|
19
|
+
enum category {
|
|
20
|
+
GENERAL = "GENERAL",
|
|
21
|
+
ADDRESS = "ADDRESS",
|
|
22
|
+
BUSINESS = "BUSINESS",
|
|
23
|
+
APPLICATION = "APPLICATION",
|
|
24
|
+
OTHER = "OTHER"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CorporateClientCustomFieldDataDto = void 0;
|
|
4
|
+
var CorporateClientCustomFieldDataDto;
|
|
5
|
+
(function (CorporateClientCustomFieldDataDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Category of the custom field
|
|
8
|
+
*/
|
|
9
|
+
let category;
|
|
10
|
+
(function (category) {
|
|
11
|
+
category["GENERAL"] = "GENERAL";
|
|
12
|
+
category["ADDRESS"] = "ADDRESS";
|
|
13
|
+
category["BUSINESS"] = "BUSINESS";
|
|
14
|
+
category["APPLICATION"] = "APPLICATION";
|
|
15
|
+
category["OTHER"] = "OTHER";
|
|
16
|
+
})(category = CorporateClientCustomFieldDataDto.category || (CorporateClientCustomFieldDataDto.category = {}));
|
|
17
|
+
})(CorporateClientCustomFieldDataDto || (exports.CorporateClientCustomFieldDataDto = CorporateClientCustomFieldDataDto = {}));
|
|
18
|
+
//# sourceMappingURL=CorporateClientCustomFieldDataDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorporateClientCustomFieldDataDto.js","sourceRoot":"","sources":["../../models/CorporateClientCustomFieldDataDto.ts"],"names":[],"mappings":";;;AAkBA,IAAiB,iCAAiC,CAWjD;AAXD,WAAiB,iCAAiC;IAC9C;;OAEG;IACH,IAAY,QAMX;IAND,WAAY,QAAQ;QAChB,+BAAmB,CAAA;QACnB,+BAAmB,CAAA;QACnB,iCAAqB,CAAA;QACrB,uCAA2B,CAAA;QAC3B,2BAAe,CAAA;IACnB,CAAC,EANW,QAAQ,GAAR,0CAAQ,KAAR,0CAAQ,QAMnB;AACL,CAAC,EAXgB,iCAAiC,iDAAjC,iCAAiC,QAWjD"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { ClientRiskDto } from './ClientRiskDto';
|
|
2
|
+
import type { CorporateClientAddressDto } from './CorporateClientAddressDto';
|
|
3
|
+
import type { CorporateClientApplicationDto } from './CorporateClientApplicationDto';
|
|
4
|
+
import type { CorporateClientBusinessDto } from './CorporateClientBusinessDto';
|
|
5
|
+
import type { CorporateClientGeneralDto } from './CorporateClientGeneralDto';
|
|
6
|
+
export type CorporateClientDto = {
|
|
7
|
+
/**
|
|
8
|
+
* Unique identifier of the corporate client
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* External reference ID for the client
|
|
13
|
+
*/
|
|
14
|
+
referenceId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Current status of the client account
|
|
17
|
+
*/
|
|
18
|
+
accountStatus: CorporateClientDto.accountStatus;
|
|
19
|
+
/**
|
|
20
|
+
* Current activity status of the client
|
|
21
|
+
*/
|
|
22
|
+
activityStatus: CorporateClientDto.activityStatus;
|
|
23
|
+
/**
|
|
24
|
+
* Address information of the corporate client
|
|
25
|
+
*/
|
|
26
|
+
address: CorporateClientAddressDto;
|
|
27
|
+
/**
|
|
28
|
+
* List of alert IDs associated with the client
|
|
29
|
+
*/
|
|
30
|
+
alerts?: Array<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Application and onboarding information
|
|
33
|
+
*/
|
|
34
|
+
application: CorporateClientApplicationDto;
|
|
35
|
+
/**
|
|
36
|
+
* Business-related information
|
|
37
|
+
*/
|
|
38
|
+
business: CorporateClientBusinessDto;
|
|
39
|
+
/**
|
|
40
|
+
* List of control measures applied to the client
|
|
41
|
+
*/
|
|
42
|
+
controls?: Array<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Current risk assessment of the client
|
|
45
|
+
*/
|
|
46
|
+
currentRisk?: ClientRiskDto;
|
|
47
|
+
/**
|
|
48
|
+
* Onboarding risk assessment of the client
|
|
49
|
+
*/
|
|
50
|
+
onboardingRisk?: ClientRiskDto;
|
|
51
|
+
/**
|
|
52
|
+
* Custom fields data for the client
|
|
53
|
+
*/
|
|
54
|
+
customFields?: Record<string, any>;
|
|
55
|
+
/**
|
|
56
|
+
* List of financial operation IDs associated with the client
|
|
57
|
+
*/
|
|
58
|
+
financialOperations?: Array<string>;
|
|
59
|
+
/**
|
|
60
|
+
* General information about the corporate client
|
|
61
|
+
*/
|
|
62
|
+
general: CorporateClientGeneralDto;
|
|
63
|
+
/**
|
|
64
|
+
* Historical risk assessments of the client
|
|
65
|
+
*/
|
|
66
|
+
riskHistory: Array<ClientRiskDto>;
|
|
67
|
+
/**
|
|
68
|
+
* Tags associated with the client
|
|
69
|
+
*/
|
|
70
|
+
tags?: Array<string>;
|
|
71
|
+
/**
|
|
72
|
+
* ISO Date when the client record was created
|
|
73
|
+
*/
|
|
74
|
+
createdAt: string;
|
|
75
|
+
/**
|
|
76
|
+
* ISO Date when the client record was last updated
|
|
77
|
+
*/
|
|
78
|
+
updatedAt: string;
|
|
79
|
+
};
|
|
80
|
+
export declare namespace CorporateClientDto {
|
|
81
|
+
/**
|
|
82
|
+
* Current status of the client account
|
|
83
|
+
*/
|
|
84
|
+
enum accountStatus {
|
|
85
|
+
APPROVED = "APPROVED",
|
|
86
|
+
WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW",
|
|
87
|
+
IN_REVIEW = "IN_REVIEW",
|
|
88
|
+
REJECTED = "REJECTED",
|
|
89
|
+
OFF_BOARDED = "OFF_BOARDED",
|
|
90
|
+
FROZEN = "FROZEN",
|
|
91
|
+
PENDING_DOCUMENTS = "PENDING_DOCUMENTS",
|
|
92
|
+
CLOSED_BY_CLIENT = "CLOSED_BY_CLIENT"
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Current activity status of the client
|
|
96
|
+
*/
|
|
97
|
+
enum activityStatus {
|
|
98
|
+
ACTIVE = "ACTIVE",
|
|
99
|
+
NOT_ACTIVE = "NOT_ACTIVE"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CorporateClientDto = void 0;
|
|
4
|
+
var CorporateClientDto;
|
|
5
|
+
(function (CorporateClientDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Current status of the client account
|
|
8
|
+
*/
|
|
9
|
+
let accountStatus;
|
|
10
|
+
(function (accountStatus) {
|
|
11
|
+
accountStatus["APPROVED"] = "APPROVED";
|
|
12
|
+
accountStatus["WAITING_FOR_REVIEW"] = "WAITING_FOR_REVIEW";
|
|
13
|
+
accountStatus["IN_REVIEW"] = "IN_REVIEW";
|
|
14
|
+
accountStatus["REJECTED"] = "REJECTED";
|
|
15
|
+
accountStatus["OFF_BOARDED"] = "OFF_BOARDED";
|
|
16
|
+
accountStatus["FROZEN"] = "FROZEN";
|
|
17
|
+
accountStatus["PENDING_DOCUMENTS"] = "PENDING_DOCUMENTS";
|
|
18
|
+
accountStatus["CLOSED_BY_CLIENT"] = "CLOSED_BY_CLIENT";
|
|
19
|
+
})(accountStatus = CorporateClientDto.accountStatus || (CorporateClientDto.accountStatus = {}));
|
|
20
|
+
/**
|
|
21
|
+
* Current activity status of the client
|
|
22
|
+
*/
|
|
23
|
+
let activityStatus;
|
|
24
|
+
(function (activityStatus) {
|
|
25
|
+
activityStatus["ACTIVE"] = "ACTIVE";
|
|
26
|
+
activityStatus["NOT_ACTIVE"] = "NOT_ACTIVE";
|
|
27
|
+
})(activityStatus = CorporateClientDto.activityStatus || (CorporateClientDto.activityStatus = {}));
|
|
28
|
+
})(CorporateClientDto || (exports.CorporateClientDto = CorporateClientDto = {}));
|
|
29
|
+
//# sourceMappingURL=CorporateClientDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorporateClientDto.js","sourceRoot":"","sources":["../../models/CorporateClientDto.ts"],"names":[],"mappings":";;;AAmFA,IAAiB,kBAAkB,CAqBlC;AArBD,WAAiB,kBAAkB;IAC/B;;OAEG;IACH,IAAY,aASX;IATD,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;IACzC,CAAC,EATW,aAAa,GAAb,gCAAa,KAAb,gCAAa,QASxB;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,EArBgB,kBAAkB,kCAAlB,kBAAkB,QAqBlC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type CorporateClientGeneralDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Legal registered name of the corporate entity
|
|
4
|
+
*/
|
|
5
|
+
legalEntityName?: string;
|
|
6
|
+
/**
|
|
7
|
+
* ISO Date when the company was incorporated
|
|
8
|
+
*/
|
|
9
|
+
dateOfIncorporation?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Country where the company is incorporated
|
|
12
|
+
*/
|
|
13
|
+
countryOfIncorporation?: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorporateClientGeneralDto.js","sourceRoot":"","sources":["../../models/CorporateClientGeneralDto.ts"],"names":[],"mappings":""}
|