@corsa-labs/sdk 4.38.0 → 4.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +28 -1
- package/dist/index.js +17 -5
- package/dist/index.js.map +1 -1
- package/dist/models/BatchCreateCaseFailedDto.d.ts +14 -0
- package/dist/models/BatchCreateCaseFailedDto.js +3 -0
- package/dist/models/BatchCreateCaseFailedDto.js.map +1 -0
- package/dist/models/BatchCreateCasesDto.d.ts +7 -0
- package/dist/models/BatchCreateCasesDto.js +3 -0
- package/dist/models/BatchCreateCasesDto.js.map +1 -0
- package/dist/models/BatchCreateCasesResponseDto.d.ts +24 -0
- package/dist/models/BatchCreateCasesResponseDto.js +3 -0
- package/dist/models/BatchCreateCasesResponseDto.js.map +1 -0
- package/dist/models/BulkAlertUpdateFields.d.ts +193 -0
- package/dist/models/BulkAlertUpdateFields.js +66 -0
- package/dist/models/BulkAlertUpdateFields.js.map +1 -0
- package/dist/models/BulkCaseUpdateFields.d.ts +88 -0
- package/dist/models/BulkCaseUpdateFields.js +35 -0
- package/dist/models/BulkCaseUpdateFields.js.map +1 -0
- package/dist/models/BulkCorporateClientUpdateFields.d.ts +128 -0
- package/dist/models/BulkCorporateClientUpdateFields.js +30 -0
- package/dist/models/BulkCorporateClientUpdateFields.js.map +1 -0
- package/dist/models/BulkFailedCorporateClientDto.d.ts +10 -0
- package/dist/models/BulkFailedCorporateClientDto.js +3 -0
- package/dist/models/BulkFailedCorporateClientDto.js.map +1 -0
- package/dist/models/BulkFailedIndividualClientDto.d.ts +10 -0
- package/dist/models/BulkFailedIndividualClientDto.js +3 -0
- package/dist/models/BulkFailedIndividualClientDto.js.map +1 -0
- package/dist/models/BulkFailedTransactionDto.d.ts +10 -0
- package/dist/models/BulkFailedTransactionDto.js +3 -0
- package/dist/models/BulkFailedTransactionDto.js.map +1 -0
- package/dist/models/BulkIndividualClientUpdateFields.d.ts +123 -0
- package/dist/models/BulkIndividualClientUpdateFields.js +30 -0
- package/dist/models/BulkIndividualClientUpdateFields.js.map +1 -0
- package/dist/models/BulkTransactionUpdateFields.d.ts +47 -0
- package/dist/models/BulkTransactionUpdateFields.js +16 -0
- package/dist/models/BulkTransactionUpdateFields.js.map +1 -0
- package/dist/models/BulkUpdateAlertDto.d.ts +11 -0
- package/dist/models/BulkUpdateAlertDto.js +3 -0
- package/dist/models/BulkUpdateAlertDto.js.map +1 -0
- package/dist/models/BulkUpdateAlertResponseDto.d.ts +28 -0
- package/dist/models/BulkUpdateAlertResponseDto.js +3 -0
- package/dist/models/BulkUpdateAlertResponseDto.js.map +1 -0
- package/dist/models/BulkUpdateCaseDto.d.ts +11 -0
- package/dist/models/BulkUpdateCaseDto.js +3 -0
- package/dist/models/BulkUpdateCaseDto.js.map +1 -0
- package/dist/models/BulkUpdateCaseResponseDto.d.ts +28 -0
- package/dist/models/BulkUpdateCaseResponseDto.js +3 -0
- package/dist/models/BulkUpdateCaseResponseDto.js.map +1 -0
- package/dist/models/BulkUpdateCorporateClientsDto.d.ts +11 -0
- package/dist/models/BulkUpdateCorporateClientsDto.js +3 -0
- package/dist/models/BulkUpdateCorporateClientsDto.js.map +1 -0
- package/dist/models/BulkUpdateCorporateClientsResponseDto.d.ts +24 -0
- package/dist/models/BulkUpdateCorporateClientsResponseDto.js +3 -0
- package/dist/models/BulkUpdateCorporateClientsResponseDto.js.map +1 -0
- package/dist/models/BulkUpdateIndividualClientsDto.d.ts +11 -0
- package/dist/models/BulkUpdateIndividualClientsDto.js +3 -0
- package/dist/models/BulkUpdateIndividualClientsDto.js.map +1 -0
- package/dist/models/BulkUpdateIndividualClientsResponseDto.d.ts +24 -0
- package/dist/models/BulkUpdateIndividualClientsResponseDto.js +3 -0
- package/dist/models/BulkUpdateIndividualClientsResponseDto.js.map +1 -0
- package/dist/models/BulkUpdateTransactionsDto.d.ts +11 -0
- package/dist/models/BulkUpdateTransactionsDto.js +3 -0
- package/dist/models/BulkUpdateTransactionsDto.js.map +1 -0
- package/dist/models/BulkUpdateTransactionsResponseDto.d.ts +24 -0
- package/dist/models/BulkUpdateTransactionsResponseDto.js +3 -0
- package/dist/models/BulkUpdateTransactionsResponseDto.js.map +1 -0
- package/dist/models/BulkUpdatedAlertFieldsDto.d.ts +14 -0
- package/dist/models/BulkUpdatedAlertFieldsDto.js +3 -0
- package/dist/models/BulkUpdatedAlertFieldsDto.js.map +1 -0
- package/dist/models/BulkUpdatedCaseFieldsDto.d.ts +14 -0
- package/dist/models/BulkUpdatedCaseFieldsDto.js +3 -0
- package/dist/models/BulkUpdatedCaseFieldsDto.js.map +1 -0
- package/dist/models/BulkUpdatedCorporateClientDto.d.ts +14 -0
- package/dist/models/BulkUpdatedCorporateClientDto.js +3 -0
- package/dist/models/BulkUpdatedCorporateClientDto.js.map +1 -0
- package/dist/models/BulkUpdatedIndividualClientDto.d.ts +14 -0
- package/dist/models/BulkUpdatedIndividualClientDto.js +3 -0
- package/dist/models/BulkUpdatedIndividualClientDto.js.map +1 -0
- package/dist/models/BulkUpdatedTransactionDto.d.ts +14 -0
- package/dist/models/BulkUpdatedTransactionDto.js +3 -0
- package/dist/models/BulkUpdatedTransactionDto.js.map +1 -0
- package/dist/models/CaseDto.d.ts +12 -0
- package/dist/models/CaseDto.js.map +1 -1
- package/dist/models/ClientSumsubDto.d.ts +4 -0
- package/dist/models/CreateCaseDto.d.ts +11 -8
- package/dist/models/CreateCaseDto.js +1 -3
- package/dist/models/CreateCaseDto.js.map +1 -1
- package/dist/models/CreateDepositOperationDto.d.ts +1 -1
- package/dist/models/{UpsertVerificationDto.d.ts → CreateVerificationDto.d.ts} +10 -17
- package/dist/models/CreateVerificationDto.js +19 -0
- package/dist/models/CreateVerificationDto.js.map +1 -0
- package/dist/models/CreateWithdrawalOperationDto.d.ts +2 -2
- package/dist/models/UpdateVerificationDto.d.ts +52 -0
- package/dist/models/UpdateVerificationDto.js +19 -0
- package/dist/models/UpdateVerificationDto.js.map +1 -0
- package/dist/models/VerificationCheckDto.d.ts +6 -6
- package/dist/models/VerificationCheckDto.js +1 -1
- package/dist/models/VerificationCheckImageDto.d.ts +7 -7
- package/dist/models/VerificationCheckImageDto.js +1 -1
- package/dist/models/VerificationResponseDto.d.ts +17 -24
- package/dist/models/VerificationResponseDto.js +1 -9
- package/dist/models/VerificationResponseDto.js.map +1 -1
- package/dist/services/AlertsService.d.ts +10 -0
- package/dist/services/AlertsService.js +15 -0
- package/dist/services/AlertsService.js.map +1 -1
- package/dist/services/CasesService.d.ts +20 -0
- package/dist/services/CasesService.js +30 -0
- package/dist/services/CasesService.js.map +1 -1
- package/dist/services/ClientsService.d.ts +20 -0
- package/dist/services/ClientsService.js +30 -0
- package/dist/services/ClientsService.js.map +1 -1
- package/dist/services/TransactionsService.d.ts +10 -0
- package/dist/services/TransactionsService.js +15 -0
- package/dist/services/TransactionsService.js.map +1 -1
- package/dist/services/VerificationsService.d.ts +15 -4
- package/dist/services/VerificationsService.js +29 -5
- package/dist/services/VerificationsService.js.map +1 -1
- package/package.json +1 -1
- package/dist/models/UpsertVerificationDto.js +0 -27
- package/dist/models/UpsertVerificationDto.js.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BulkFailedIndividualClientDto } from './BulkFailedIndividualClientDto';
|
|
2
|
+
import type { BulkUpdatedIndividualClientDto } from './BulkUpdatedIndividualClientDto';
|
|
3
|
+
export type BulkUpdateIndividualClientsResponseDto = {
|
|
4
|
+
/**
|
|
5
|
+
* Array of successfully updated clients
|
|
6
|
+
*/
|
|
7
|
+
updatedClients: Array<BulkUpdatedIndividualClientDto>;
|
|
8
|
+
/**
|
|
9
|
+
* Array of clients that failed to process
|
|
10
|
+
*/
|
|
11
|
+
failedClients: Array<BulkFailedIndividualClientDto>;
|
|
12
|
+
/**
|
|
13
|
+
* Total number of clients processed
|
|
14
|
+
*/
|
|
15
|
+
totalProcessed: number;
|
|
16
|
+
/**
|
|
17
|
+
* Number of clients successfully processed
|
|
18
|
+
*/
|
|
19
|
+
successCount: number;
|
|
20
|
+
/**
|
|
21
|
+
* Number of clients that failed to process
|
|
22
|
+
*/
|
|
23
|
+
failureCount: number;
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulkUpdateIndividualClientsResponseDto.js","sourceRoot":"","sources":["../../models/BulkUpdateIndividualClientsResponseDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BulkTransactionUpdateFields } from './BulkTransactionUpdateFields';
|
|
2
|
+
export type BulkUpdateTransactionsDto = {
|
|
3
|
+
/**
|
|
4
|
+
* Array of transaction IDs or reference IDs (maximum 100)
|
|
5
|
+
*/
|
|
6
|
+
transactionIds: Array<string>;
|
|
7
|
+
/**
|
|
8
|
+
* Fields to update on all specified transactions
|
|
9
|
+
*/
|
|
10
|
+
update: BulkTransactionUpdateFields;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulkUpdateTransactionsDto.js","sourceRoot":"","sources":["../../models/BulkUpdateTransactionsDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BulkFailedTransactionDto } from './BulkFailedTransactionDto';
|
|
2
|
+
import type { BulkUpdatedTransactionDto } from './BulkUpdatedTransactionDto';
|
|
3
|
+
export type BulkUpdateTransactionsResponseDto = {
|
|
4
|
+
/**
|
|
5
|
+
* Array of successfully updated transactions
|
|
6
|
+
*/
|
|
7
|
+
updatedTransactions: Array<BulkUpdatedTransactionDto>;
|
|
8
|
+
/**
|
|
9
|
+
* Array of transactions that failed to process
|
|
10
|
+
*/
|
|
11
|
+
failedTransactions: Array<BulkFailedTransactionDto>;
|
|
12
|
+
/**
|
|
13
|
+
* Total number of transactions processed
|
|
14
|
+
*/
|
|
15
|
+
totalProcessed: number;
|
|
16
|
+
/**
|
|
17
|
+
* Number of transactions successfully processed
|
|
18
|
+
*/
|
|
19
|
+
successCount: number;
|
|
20
|
+
/**
|
|
21
|
+
* Number of transactions that failed to process
|
|
22
|
+
*/
|
|
23
|
+
failureCount: number;
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulkUpdateTransactionsResponseDto.js","sourceRoot":"","sources":["../../models/BulkUpdateTransactionsResponseDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type BulkUpdatedAlertFieldsDto = {
|
|
2
|
+
/**
|
|
3
|
+
* The ID of the updated alert
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* The reference ID of the updated alert
|
|
8
|
+
*/
|
|
9
|
+
referenceId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The fields that were applied to this entity
|
|
12
|
+
*/
|
|
13
|
+
appliedChanges: Record<string, any>;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulkUpdatedAlertFieldsDto.js","sourceRoot":"","sources":["../../models/BulkUpdatedAlertFieldsDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type BulkUpdatedCaseFieldsDto = {
|
|
2
|
+
/**
|
|
3
|
+
* The ID of the updated case
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* The reference ID of the updated case
|
|
8
|
+
*/
|
|
9
|
+
referenceId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The fields that were applied to this entity
|
|
12
|
+
*/
|
|
13
|
+
appliedChanges: Record<string, any>;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulkUpdatedCaseFieldsDto.js","sourceRoot":"","sources":["../../models/BulkUpdatedCaseFieldsDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type BulkUpdatedCorporateClientDto = {
|
|
2
|
+
/**
|
|
3
|
+
* The ID of the updated client
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* The reference ID of the updated client
|
|
8
|
+
*/
|
|
9
|
+
referenceId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The fields that were applied to this entity
|
|
12
|
+
*/
|
|
13
|
+
appliedChanges: Record<string, any>;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulkUpdatedCorporateClientDto.js","sourceRoot":"","sources":["../../models/BulkUpdatedCorporateClientDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type BulkUpdatedIndividualClientDto = {
|
|
2
|
+
/**
|
|
3
|
+
* The ID of the updated client
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* The reference ID of the updated client
|
|
8
|
+
*/
|
|
9
|
+
referenceId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The fields that were applied to this entity
|
|
12
|
+
*/
|
|
13
|
+
appliedChanges: Record<string, any>;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulkUpdatedIndividualClientDto.js","sourceRoot":"","sources":["../../models/BulkUpdatedIndividualClientDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type BulkUpdatedTransactionDto = {
|
|
2
|
+
/**
|
|
3
|
+
* The ID of the updated transaction
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* The reference ID of the updated transaction
|
|
8
|
+
*/
|
|
9
|
+
referenceId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The fields that were applied to this entity
|
|
12
|
+
*/
|
|
13
|
+
appliedChanges: Record<string, any>;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulkUpdatedTransactionDto.js","sourceRoot":"","sources":["../../models/BulkUpdatedTransactionDto.ts"],"names":[],"mappings":""}
|
package/dist/models/CaseDto.d.ts
CHANGED
|
@@ -72,6 +72,18 @@ export type CaseDto = {
|
|
|
72
72
|
* Investigation data and notes for the case
|
|
73
73
|
*/
|
|
74
74
|
investigation?: CaseInvestigationData;
|
|
75
|
+
/**
|
|
76
|
+
* Source of the alert that triggered this case (e.g., API, MANUAL)
|
|
77
|
+
*/
|
|
78
|
+
overview_alertSource?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Vendor that created/triggered this case (e.g., Corsa Workflows, Chainalysis)
|
|
81
|
+
*/
|
|
82
|
+
overview_alertVendor?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Link to the case details in the originating vendor system
|
|
85
|
+
*/
|
|
86
|
+
overview_alertLinkInVendor?: string;
|
|
75
87
|
/**
|
|
76
88
|
* ISO Date when the case is due
|
|
77
89
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDto.js","sourceRoot":"","sources":["../../models/CaseDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CaseDto.js","sourceRoot":"","sources":["../../models/CaseDto.ts"],"names":[],"mappings":";;;AA+GA,IAAiB,OAAO,CAuCvB;AAvCD,WAAiB,OAAO;IACpB;;OAEG;IACH,IAAY,QAIX;IAJD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,6BAAiB,CAAA;QACjB,yBAAa,CAAA;IACjB,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB;IACD;;OAEG;IACH,IAAY,QAcX;IAdD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,uBAAW,CAAA;QACX,6DAAiD,CAAA;QACjD,6EAAiE,CAAA;QACjE,uDAA2C,CAAA;QAC3C,2CAA+B,CAAA;QAC/B,+DAAmD,CAAA;QACnD,yDAA6C,CAAA;QAC7C,+CAAmC,CAAA;QACnC,2BAAe,CAAA;QACf,+CAAmC,CAAA;QACnC,uBAAW,CAAA;QACX,2BAAe,CAAA;IACnB,CAAC,EAdW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAcnB;IACD;;OAEG;IACH,IAAY,MAQX;IARD,WAAY,MAAM;QACd,qBAAW,CAAA;QACX,qDAA2C,CAAA;QAC3C,qCAA2B,CAAA;QAC3B,qCAA2B,CAAA;QAC3B,2CAAiC,CAAA;QACjC,+CAAqC,CAAA;QACrC,+DAAqD,CAAA;IACzD,CAAC,EARW,MAAM,GAAN,cAAM,KAAN,cAAM,QAQjB;AACL,CAAC,EAvCgB,OAAO,uBAAP,OAAO,QAuCvB"}
|
|
@@ -6,18 +6,22 @@ export type ClientSumsubDto = {
|
|
|
6
6
|
id?: string;
|
|
7
7
|
/**
|
|
8
8
|
* Status of the verification image
|
|
9
|
+
* @deprecated
|
|
9
10
|
*/
|
|
10
11
|
status?: string;
|
|
11
12
|
/**
|
|
12
13
|
* Reject labels if the image was rejected
|
|
14
|
+
* @deprecated
|
|
13
15
|
*/
|
|
14
16
|
rejectLabels?: Array<string>;
|
|
15
17
|
/**
|
|
16
18
|
* Reason for rejection if applicable
|
|
19
|
+
* @deprecated
|
|
17
20
|
*/
|
|
18
21
|
reason?: string;
|
|
19
22
|
/**
|
|
20
23
|
* Sumsub verifications
|
|
24
|
+
* @deprecated
|
|
21
25
|
*/
|
|
22
26
|
verifications?: Array<SumsubVerificationDto>;
|
|
23
27
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AlertSourceDto } from './AlertSourceDto';
|
|
1
2
|
export type CreateCaseDto = {
|
|
2
3
|
/**
|
|
3
4
|
* External reference ID for the case
|
|
@@ -31,10 +32,6 @@ export type CreateCaseDto = {
|
|
|
31
32
|
* Description of the case
|
|
32
33
|
*/
|
|
33
34
|
description?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Current status of the case
|
|
36
|
-
*/
|
|
37
|
-
status: CreateCaseDto.status;
|
|
38
35
|
/**
|
|
39
36
|
* ISO Date when the case is due
|
|
40
37
|
*/
|
|
@@ -55,6 +52,14 @@ export type CreateCaseDto = {
|
|
|
55
52
|
* Number of whole elapsed days from assignedDate to closedDate, truncated to full days
|
|
56
53
|
*/
|
|
57
54
|
timeToCloseFromAssignedDate?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Initial status of the case. Defaults to NEW if not provided. Closed statuses are not allowed at creation.
|
|
57
|
+
*/
|
|
58
|
+
status?: CreateCaseDto.status;
|
|
59
|
+
/**
|
|
60
|
+
* Source of the case creation (e.g., Corsa Workflows, API). When provided, overrides the alert-derived source.
|
|
61
|
+
*/
|
|
62
|
+
source?: AlertSourceDto;
|
|
58
63
|
/**
|
|
59
64
|
* IDs or Reference IDs of the alerts associated with the case (maximum 100)
|
|
60
65
|
*/
|
|
@@ -96,15 +101,13 @@ export declare namespace CreateCaseDto {
|
|
|
96
101
|
OTHER = "OTHER"
|
|
97
102
|
}
|
|
98
103
|
/**
|
|
99
|
-
*
|
|
104
|
+
* Initial status of the case. Defaults to NEW if not provided. Closed statuses are not allowed at creation.
|
|
100
105
|
*/
|
|
101
106
|
enum status {
|
|
102
107
|
NEW = "NEW",
|
|
103
108
|
UNDER_INVESTIGATION = "UNDER_INVESTIGATION",
|
|
104
109
|
PENDING_EDD = "PENDING_EDD",
|
|
105
110
|
PENDING_RFI = "PENDING_RFI",
|
|
106
|
-
PENDING_REVIEW = "PENDING_REVIEW"
|
|
107
|
-
CLOSED_DISMISSED = "CLOSED_DISMISSED",
|
|
108
|
-
CLOSED_ESCALATION_TO_SAR = "CLOSED_ESCALATION_TO_SAR"
|
|
111
|
+
PENDING_REVIEW = "PENDING_REVIEW"
|
|
109
112
|
}
|
|
110
113
|
}
|
|
@@ -32,7 +32,7 @@ var CreateCaseDto;
|
|
|
32
32
|
category["OTHER"] = "OTHER";
|
|
33
33
|
})(category = CreateCaseDto.category || (CreateCaseDto.category = {}));
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Initial status of the case. Defaults to NEW if not provided. Closed statuses are not allowed at creation.
|
|
36
36
|
*/
|
|
37
37
|
let status;
|
|
38
38
|
(function (status) {
|
|
@@ -41,8 +41,6 @@ var CreateCaseDto;
|
|
|
41
41
|
status["PENDING_EDD"] = "PENDING_EDD";
|
|
42
42
|
status["PENDING_RFI"] = "PENDING_RFI";
|
|
43
43
|
status["PENDING_REVIEW"] = "PENDING_REVIEW";
|
|
44
|
-
status["CLOSED_DISMISSED"] = "CLOSED_DISMISSED";
|
|
45
|
-
status["CLOSED_ESCALATION_TO_SAR"] = "CLOSED_ESCALATION_TO_SAR";
|
|
46
44
|
})(status = CreateCaseDto.status || (CreateCaseDto.status = {}));
|
|
47
45
|
})(CreateCaseDto || (exports.CreateCaseDto = CreateCaseDto = {}));
|
|
48
46
|
//# sourceMappingURL=CreateCaseDto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateCaseDto.js","sourceRoot":"","sources":["../../models/CreateCaseDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CreateCaseDto.js","sourceRoot":"","sources":["../../models/CreateCaseDto.ts"],"names":[],"mappings":";;;AA+EA,IAAiB,aAAa,CAqC7B;AArCD,WAAiB,aAAa;IAC1B;;OAEG;IACH,IAAY,QAIX;IAJD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,6BAAiB,CAAA;QACjB,yBAAa,CAAA;IACjB,CAAC,EAJW,QAAQ,GAAR,sBAAQ,KAAR,sBAAQ,QAInB;IACD;;OAEG;IACH,IAAY,QAcX;IAdD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,uBAAW,CAAA;QACX,6DAAiD,CAAA;QACjD,6EAAiE,CAAA;QACjE,uDAA2C,CAAA;QAC3C,2CAA+B,CAAA;QAC/B,+DAAmD,CAAA;QACnD,yDAA6C,CAAA;QAC7C,+CAAmC,CAAA;QACnC,2BAAe,CAAA;QACf,+CAAmC,CAAA;QACnC,uBAAW,CAAA;QACX,2BAAe,CAAA;IACnB,CAAC,EAdW,QAAQ,GAAR,sBAAQ,KAAR,sBAAQ,QAcnB;IACD;;OAEG;IACH,IAAY,MAMX;IAND,WAAY,MAAM;QACd,qBAAW,CAAA;QACX,qDAA2C,CAAA;QAC3C,qCAA2B,CAAA;QAC3B,qCAA2B,CAAA;QAC3B,2CAAiC,CAAA;IACrC,CAAC,EANW,MAAM,GAAN,oBAAM,KAAN,oBAAM,QAMjB;AACL,CAAC,EArCgB,aAAa,6BAAb,aAAa,QAqC7B"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { VerificationCheckDto } from './VerificationCheckDto';
|
|
2
|
-
export type
|
|
2
|
+
export type CreateVerificationDto = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Name of the KYC/KYB provider (e.g. SUMSUB, PERSONA)
|
|
5
5
|
*/
|
|
6
|
-
provider:
|
|
6
|
+
provider: string;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Unique verification identifier in the provider's system
|
|
9
9
|
*/
|
|
10
10
|
providerId: string;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Raw verification status as reported by the provider (e.g. completed, pending, init)
|
|
13
13
|
*/
|
|
14
14
|
providerStatus: string;
|
|
15
15
|
/**
|
|
@@ -17,9 +17,9 @@ export type UpsertVerificationDto = {
|
|
|
17
17
|
*/
|
|
18
18
|
providerLink?: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Corsa-normalized verification status
|
|
21
21
|
*/
|
|
22
|
-
status:
|
|
22
|
+
status: CreateVerificationDto.status;
|
|
23
23
|
/**
|
|
24
24
|
* Review comment summarizing the verification outcome
|
|
25
25
|
*/
|
|
@@ -37,7 +37,7 @@ export type UpsertVerificationDto = {
|
|
|
37
37
|
*/
|
|
38
38
|
completedAt?: string;
|
|
39
39
|
/**
|
|
40
|
-
* Individual verification checks
|
|
40
|
+
* Individual verification checks performed by the provider (e.g. identity, document, selfie)
|
|
41
41
|
*/
|
|
42
42
|
checks?: Array<VerificationCheckDto>;
|
|
43
43
|
/**
|
|
@@ -45,16 +45,9 @@ export type UpsertVerificationDto = {
|
|
|
45
45
|
*/
|
|
46
46
|
metadata?: string;
|
|
47
47
|
};
|
|
48
|
-
export declare namespace
|
|
48
|
+
export declare namespace CreateVerificationDto {
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
enum provider {
|
|
53
|
-
SUMSUB = "SUMSUB",
|
|
54
|
-
PERSONA = "PERSONA"
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Normalized verification status
|
|
50
|
+
* Corsa-normalized verification status
|
|
58
51
|
*/
|
|
59
52
|
enum status {
|
|
60
53
|
REQUESTED = "REQUESTED",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateVerificationDto = void 0;
|
|
4
|
+
var CreateVerificationDto;
|
|
5
|
+
(function (CreateVerificationDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Corsa-normalized verification status
|
|
8
|
+
*/
|
|
9
|
+
let status;
|
|
10
|
+
(function (status) {
|
|
11
|
+
status["REQUESTED"] = "REQUESTED";
|
|
12
|
+
status["PENDING"] = "PENDING";
|
|
13
|
+
status["APPROVED"] = "APPROVED";
|
|
14
|
+
status["REJECTED"] = "REJECTED";
|
|
15
|
+
status["EXPIRED"] = "EXPIRED";
|
|
16
|
+
status["CANCELLED"] = "CANCELLED";
|
|
17
|
+
})(status = CreateVerificationDto.status || (CreateVerificationDto.status = {}));
|
|
18
|
+
})(CreateVerificationDto || (exports.CreateVerificationDto = CreateVerificationDto = {}));
|
|
19
|
+
//# sourceMappingURL=CreateVerificationDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateVerificationDto.js","sourceRoot":"","sources":["../../models/CreateVerificationDto.ts"],"names":[],"mappings":";;;AAmDA,IAAiB,qBAAqB,CAYrC;AAZD,WAAiB,qBAAqB;IAClC;;OAEG;IACH,IAAY,MAOX;IAPD,WAAY,MAAM;QACd,iCAAuB,CAAA;QACvB,6BAAmB,CAAA;QACnB,+BAAqB,CAAA;QACrB,+BAAqB,CAAA;QACrB,6BAAmB,CAAA;QACnB,iCAAuB,CAAA;IAC3B,CAAC,EAPW,MAAM,GAAN,4BAAM,KAAN,4BAAM,QAOjB;AACL,CAAC,EAZgB,qBAAqB,qCAArB,qBAAqB,QAYrC"}
|
|
@@ -6,9 +6,9 @@ export type CreateWithdrawalOperationDto = {
|
|
|
6
6
|
*/
|
|
7
7
|
referenceId?: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* UUID of the client who initiated the withdrawal
|
|
10
10
|
*/
|
|
11
|
-
initiatedBy
|
|
11
|
+
initiatedBy: string;
|
|
12
12
|
/**
|
|
13
13
|
* Date and time of the withdrawal operation. Defaults to current date and time if not provided
|
|
14
14
|
*/
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { VerificationCheckDto } from './VerificationCheckDto';
|
|
2
|
+
export type UpdateVerificationDto = {
|
|
3
|
+
/**
|
|
4
|
+
* Raw verification status as reported by the provider (e.g. completed, pending, init)
|
|
5
|
+
*/
|
|
6
|
+
providerStatus?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Direct link to this verification in the provider's dashboard
|
|
9
|
+
*/
|
|
10
|
+
providerLink?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Corsa-normalized verification status
|
|
13
|
+
*/
|
|
14
|
+
status?: UpdateVerificationDto.status;
|
|
15
|
+
/**
|
|
16
|
+
* Review comment summarizing the verification outcome
|
|
17
|
+
*/
|
|
18
|
+
reviewComment?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Provider-specific rejection reason labels
|
|
21
|
+
*/
|
|
22
|
+
rejectLabels?: Array<string>;
|
|
23
|
+
/**
|
|
24
|
+
* When the verification was started
|
|
25
|
+
*/
|
|
26
|
+
startedAt?: string;
|
|
27
|
+
/**
|
|
28
|
+
* When the verification was completed
|
|
29
|
+
*/
|
|
30
|
+
completedAt?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Individual verification checks performed by the provider (e.g. identity, document, selfie)
|
|
33
|
+
*/
|
|
34
|
+
checks?: Array<VerificationCheckDto>;
|
|
35
|
+
/**
|
|
36
|
+
* Additional provider-specific metadata as JSON string
|
|
37
|
+
*/
|
|
38
|
+
metadata?: string;
|
|
39
|
+
};
|
|
40
|
+
export declare namespace UpdateVerificationDto {
|
|
41
|
+
/**
|
|
42
|
+
* Corsa-normalized verification status
|
|
43
|
+
*/
|
|
44
|
+
enum status {
|
|
45
|
+
REQUESTED = "REQUESTED",
|
|
46
|
+
PENDING = "PENDING",
|
|
47
|
+
APPROVED = "APPROVED",
|
|
48
|
+
REJECTED = "REJECTED",
|
|
49
|
+
EXPIRED = "EXPIRED",
|
|
50
|
+
CANCELLED = "CANCELLED"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateVerificationDto = void 0;
|
|
4
|
+
var UpdateVerificationDto;
|
|
5
|
+
(function (UpdateVerificationDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Corsa-normalized verification status
|
|
8
|
+
*/
|
|
9
|
+
let status;
|
|
10
|
+
(function (status) {
|
|
11
|
+
status["REQUESTED"] = "REQUESTED";
|
|
12
|
+
status["PENDING"] = "PENDING";
|
|
13
|
+
status["APPROVED"] = "APPROVED";
|
|
14
|
+
status["REJECTED"] = "REJECTED";
|
|
15
|
+
status["EXPIRED"] = "EXPIRED";
|
|
16
|
+
status["CANCELLED"] = "CANCELLED";
|
|
17
|
+
})(status = UpdateVerificationDto.status || (UpdateVerificationDto.status = {}));
|
|
18
|
+
})(UpdateVerificationDto || (exports.UpdateVerificationDto = UpdateVerificationDto = {}));
|
|
19
|
+
//# sourceMappingURL=UpdateVerificationDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateVerificationDto.js","sourceRoot":"","sources":["../../models/UpdateVerificationDto.ts"],"names":[],"mappings":";;;AA2CA,IAAiB,qBAAqB,CAYrC;AAZD,WAAiB,qBAAqB;IAClC;;OAEG;IACH,IAAY,MAOX;IAPD,WAAY,MAAM;QACd,iCAAuB,CAAA;QACvB,6BAAmB,CAAA;QACnB,+BAAqB,CAAA;QACrB,+BAAqB,CAAA;QACrB,6BAAmB,CAAA;QACnB,iCAAuB,CAAA;IAC3B,CAAC,EAPW,MAAM,GAAN,4BAAM,KAAN,4BAAM,QAOjB;AACL,CAAC,EAZgB,qBAAqB,qCAArB,qBAAqB,QAYrC"}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import type { VerificationCheckImageDto } from './VerificationCheckImageDto';
|
|
2
2
|
export type VerificationCheckDto = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Name of the verification check (e.g. Identity, Document, Selfie)
|
|
5
5
|
*/
|
|
6
6
|
title: string;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Overall status of this verification check
|
|
9
9
|
*/
|
|
10
10
|
status: VerificationCheckDto.status;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* ISO 3166-1 alpha-2 country code of the issued document
|
|
13
13
|
*/
|
|
14
14
|
country?: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Type of document verified (e.g. PASSPORT, ID_CARD, DRIVERS_LICENSE)
|
|
17
17
|
*/
|
|
18
18
|
documentType?: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Document images submitted and reviewed for this check
|
|
21
21
|
*/
|
|
22
22
|
images?: Array<VerificationCheckImageDto>;
|
|
23
23
|
};
|
|
24
24
|
export declare namespace VerificationCheckDto {
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Overall status of this verification check
|
|
27
27
|
*/
|
|
28
28
|
enum status {
|
|
29
29
|
APPROVED = "Approved",
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
export type VerificationCheckImageDto = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Provider-assigned image identifier
|
|
4
4
|
*/
|
|
5
5
|
id: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Review status of the document image
|
|
8
8
|
*/
|
|
9
9
|
status: VerificationCheckImageDto.status;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Provider-specific rejection labels for the document image
|
|
12
12
|
*/
|
|
13
13
|
rejectLabels?: Array<string>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Human-readable rejection reason for the document image
|
|
16
16
|
*/
|
|
17
17
|
reason?: string;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Corsa file ID referencing the stored document image
|
|
20
20
|
*/
|
|
21
21
|
fileId?: string;
|
|
22
22
|
/**
|
|
23
|
-
* Original file name
|
|
23
|
+
* Original file name as uploaded by the applicant
|
|
24
24
|
*/
|
|
25
25
|
fileName?: string;
|
|
26
26
|
};
|
|
27
27
|
export declare namespace VerificationCheckImageDto {
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Review status of the document image
|
|
30
30
|
*/
|
|
31
31
|
enum status {
|
|
32
32
|
APPROVED = "Approved",
|