@corsa-labs/sdk 4.44.0 → 4.46.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/CorsaClient.d.ts +6 -0
- package/dist/CorsaClient.js +9 -0
- package/dist/CorsaClient.js.map +1 -1
- package/dist/index.d.ts +19 -0
- package/dist/index.js +21 -3
- package/dist/index.js.map +1 -1
- package/dist/models/AddScreeningMatchesDto.d.ts +7 -0
- package/dist/models/AddScreeningMatchesDto.js +3 -0
- package/dist/models/AddScreeningMatchesDto.js.map +1 -0
- package/dist/models/AlertDecisionDto.d.ts +4 -0
- package/dist/models/AlertDto.d.ts +17 -0
- package/dist/models/AlertDto.js +9 -0
- package/dist/models/AlertDto.js.map +1 -1
- package/dist/models/AlertStatusData.d.ts +5 -0
- package/dist/models/AlertStatusData.js.map +1 -1
- package/dist/models/BulkAlertDecisionInput.d.ts +4 -0
- package/dist/models/BulkAppliedCorporateClientChanges.d.ts +43 -1
- package/dist/models/BulkAppliedCorporateClientChanges.js +33 -0
- package/dist/models/BulkAppliedCorporateClientChanges.js.map +1 -1
- package/dist/models/BulkAppliedIndividualClientChanges.d.ts +43 -1
- package/dist/models/BulkAppliedIndividualClientChanges.js +33 -0
- package/dist/models/BulkAppliedIndividualClientChanges.js.map +1 -1
- package/dist/models/BulkAppliedTransactionChanges.d.ts +5 -0
- package/dist/models/BulkAppliedTransactionChanges.js.map +1 -1
- package/dist/models/BulkCaseStatusInput.d.ts +4 -0
- package/dist/models/BulkCaseStatusInput.js.map +1 -1
- package/dist/models/BulkCorporateClientUpdateFields.d.ts +43 -1
- package/dist/models/BulkCorporateClientUpdateFields.js +33 -0
- package/dist/models/BulkCorporateClientUpdateFields.js.map +1 -1
- package/dist/models/BulkEscalateAlertDto.d.ts +4 -0
- package/dist/models/BulkIndividualClientUpdateFields.d.ts +43 -1
- package/dist/models/BulkIndividualClientUpdateFields.js +33 -0
- package/dist/models/BulkIndividualClientUpdateFields.js.map +1 -1
- package/dist/models/BulkScreeningMatchDecisionDto.d.ts +28 -0
- package/dist/models/BulkScreeningMatchDecisionDto.js +16 -0
- package/dist/models/BulkScreeningMatchDecisionDto.js.map +1 -0
- package/dist/models/BulkScreeningMatchDecisionResponseDto.d.ts +27 -0
- package/dist/models/BulkScreeningMatchDecisionResponseDto.js +3 -0
- package/dist/models/BulkScreeningMatchDecisionResponseDto.js.map +1 -0
- package/dist/models/BulkTransactionUpdateFields.d.ts +5 -0
- package/dist/models/BulkTransactionUpdateFields.js.map +1 -1
- package/dist/models/BulkUpdateAlertStatusDto.d.ts +1 -1
- package/dist/models/BulkUpdateCaseStatusDto.d.ts +4 -0
- package/dist/models/BulkUpdateCaseStatusDto.js.map +1 -1
- package/dist/models/CaseStatusData.d.ts +5 -0
- package/dist/models/CaseStatusData.js.map +1 -1
- package/dist/models/CorporateClientDto.d.ts +43 -1
- package/dist/models/CorporateClientDto.js +33 -0
- package/dist/models/CorporateClientDto.js.map +1 -1
- package/dist/models/CreateAlertDto.d.ts +9 -0
- package/dist/models/CreateAlertDto.js.map +1 -1
- package/dist/models/CreateCorporateClientDto.d.ts +43 -1
- package/dist/models/CreateCorporateClientDto.js +33 -0
- package/dist/models/CreateCorporateClientDto.js.map +1 -1
- package/dist/models/CreateExternalRuleDto.d.ts +18 -0
- package/dist/models/CreateExternalRuleDto.js +3 -0
- package/dist/models/CreateExternalRuleDto.js.map +1 -0
- package/dist/models/CreateIndividualClientDto.d.ts +43 -1
- package/dist/models/CreateIndividualClientDto.js +33 -0
- package/dist/models/CreateIndividualClientDto.js.map +1 -1
- package/dist/models/CreateScreeningMatchDto.d.ts +61 -0
- package/dist/models/CreateScreeningMatchDto.js +3 -0
- package/dist/models/CreateScreeningMatchDto.js.map +1 -0
- package/dist/models/CreateSubDispositionDto.d.ts +36 -0
- package/dist/models/CreateSubDispositionDto.js +25 -0
- package/dist/models/CreateSubDispositionDto.js.map +1 -0
- package/dist/models/CreateTradeOperationResponseDto.d.ts +1 -1
- package/dist/models/CreateTransactionDto.d.ts +5 -0
- package/dist/models/CreateTransactionDto.js.map +1 -1
- package/dist/models/CreateTransferOperationDto.d.ts +24 -0
- package/dist/models/CreateTransferOperationDto.js +3 -0
- package/dist/models/CreateTransferOperationDto.js.map +1 -0
- package/dist/models/CreateTransferOperationResponseDto.d.ts +32 -0
- package/dist/models/CreateTransferOperationResponseDto.js +3 -0
- package/dist/models/CreateTransferOperationResponseDto.js.map +1 -0
- package/dist/models/EvaluationResultDto.d.ts +0 -4
- package/dist/models/EvaluationResultDto.js.map +1 -1
- package/dist/models/IndividualClientDto.d.ts +43 -1
- package/dist/models/IndividualClientDto.js +33 -0
- package/dist/models/IndividualClientDto.js.map +1 -1
- package/dist/models/RuleResponseDto.d.ts +5 -2
- package/dist/models/RuleResponseDto.js.map +1 -1
- package/dist/models/ScreeningMatchDecisionDto.d.ts +24 -0
- package/dist/models/ScreeningMatchDecisionDto.js +16 -0
- package/dist/models/ScreeningMatchDecisionDto.js.map +1 -0
- package/dist/models/ScreeningMatchDto.d.ts +89 -0
- package/dist/models/ScreeningMatchDto.js +17 -0
- package/dist/models/ScreeningMatchDto.js.map +1 -0
- package/dist/models/SubDispositionDto.d.ts +60 -0
- package/dist/models/SubDispositionDto.js +25 -0
- package/dist/models/SubDispositionDto.js.map +1 -0
- package/dist/models/SubDispositionSummaryDto.d.ts +29 -0
- package/dist/models/SubDispositionSummaryDto.js +17 -0
- package/dist/models/SubDispositionSummaryDto.js.map +1 -0
- package/dist/models/TradeOperationDto.d.ts +1 -1
- package/dist/models/TransactionDto.d.ts +11 -1
- package/dist/models/TransactionDto.js +1 -0
- package/dist/models/TransactionDto.js.map +1 -1
- package/dist/models/TransferOperationDto.d.ts +32 -0
- package/dist/models/TransferOperationDto.js +3 -0
- package/dist/models/TransferOperationDto.js.map +1 -0
- package/dist/models/UpdateCaseStatusDto.d.ts +4 -0
- package/dist/models/UpdateCaseStatusDto.js.map +1 -1
- package/dist/models/UpdateCorporateClientDto.d.ts +43 -1
- package/dist/models/UpdateCorporateClientDto.js +33 -0
- package/dist/models/UpdateCorporateClientDto.js.map +1 -1
- package/dist/models/UpdateExternalRuleDto.d.ts +12 -0
- package/dist/models/UpdateExternalRuleDto.js +3 -0
- package/dist/models/UpdateExternalRuleDto.js.map +1 -0
- package/dist/models/UpdateIndividualClientDto.d.ts +43 -1
- package/dist/models/UpdateIndividualClientDto.js +33 -0
- package/dist/models/UpdateIndividualClientDto.js.map +1 -1
- package/dist/models/UpdateScreeningMatchDto.d.ts +61 -0
- package/dist/models/UpdateScreeningMatchDto.js +3 -0
- package/dist/models/UpdateScreeningMatchDto.js.map +1 -0
- package/dist/models/UpdateSubDispositionDto.d.ts +10 -0
- package/dist/models/UpdateSubDispositionDto.js +3 -0
- package/dist/models/UpdateSubDispositionDto.js.map +1 -0
- package/dist/models/UpdateTransactionDto.d.ts +5 -0
- package/dist/models/UpdateTransactionDto.js.map +1 -1
- package/dist/services/AlertsService.d.ts +48 -0
- package/dist/services/AlertsService.js +93 -0
- package/dist/services/AlertsService.js.map +1 -1
- package/dist/services/ExternalRulesService.d.ts +235 -0
- package/dist/services/ExternalRulesService.js +304 -0
- package/dist/services/ExternalRulesService.js.map +1 -0
- package/dist/services/RulesService.d.ts +37 -1
- package/dist/services/RulesService.js +39 -1
- package/dist/services/RulesService.js.map +1 -1
- package/dist/services/SubDispositionsService.d.ts +60 -0
- package/dist/services/SubDispositionsService.js +123 -0
- package/dist/services/SubDispositionsService.js.map +1 -0
- package/dist/services/TransfersService.d.ts +24 -0
- package/dist/services/TransfersService.js +44 -0
- package/dist/services/TransfersService.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export type UpdateScreeningMatchDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Full name of the matched entity
|
|
4
|
+
*/
|
|
5
|
+
fullName?: string;
|
|
6
|
+
firstName?: string;
|
|
7
|
+
middleName?: string;
|
|
8
|
+
lastName?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Date of birth in ISO or vendor format
|
|
11
|
+
*/
|
|
12
|
+
dateOfBirth?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Age of the matched entity
|
|
15
|
+
*/
|
|
16
|
+
age?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Gender of the matched entity
|
|
19
|
+
*/
|
|
20
|
+
gender?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Name of the sanctions/PEP list
|
|
23
|
+
*/
|
|
24
|
+
listName?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Type of exposure (e.g., sanction, PEP, crime)
|
|
27
|
+
*/
|
|
28
|
+
exposureType?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Confidence score from the screening vendor (0-1)
|
|
31
|
+
*/
|
|
32
|
+
confidenceScore?: number;
|
|
33
|
+
photoUrl?: string;
|
|
34
|
+
country?: string;
|
|
35
|
+
address?: string;
|
|
36
|
+
aliases?: Array<string>;
|
|
37
|
+
/**
|
|
38
|
+
* ISO country codes
|
|
39
|
+
*/
|
|
40
|
+
countries?: Array<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Source datasets
|
|
43
|
+
*/
|
|
44
|
+
datasets?: Array<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Vendor-specific entity identifier
|
|
47
|
+
*/
|
|
48
|
+
vendorEntityId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Name of the screening vendor
|
|
51
|
+
*/
|
|
52
|
+
vendorName?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Vendor-specific data as key-value pairs
|
|
55
|
+
*/
|
|
56
|
+
vendorData?: Record<string, any>;
|
|
57
|
+
/**
|
|
58
|
+
* URL to the source/profile in the vendor system
|
|
59
|
+
*/
|
|
60
|
+
sourceUrl?: string;
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateScreeningMatchDto.js","sourceRoot":"","sources":["../../models/UpdateScreeningMatchDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateSubDispositionDto.js","sourceRoot":"","sources":["../../models/UpdateSubDispositionDto.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CreateOrUpdateRiskDto } from './CreateOrUpdateRiskDto';
|
|
1
2
|
import type { TransactionAmountDto } from './TransactionAmountDto';
|
|
2
3
|
import type { TransactionCustomFieldDto } from './TransactionCustomFieldDto';
|
|
3
4
|
import type { TransactionIntegrationsDto } from './TransactionIntegrationsDto';
|
|
@@ -6,6 +7,10 @@ export type UpdateTransactionDto = {
|
|
|
6
7
|
* Blockchain transaction hash
|
|
7
8
|
*/
|
|
8
9
|
txHash?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Current risk assessment of the transaction
|
|
12
|
+
*/
|
|
13
|
+
currentRisk?: CreateOrUpdateRiskDto;
|
|
9
14
|
/**
|
|
10
15
|
* Transaction amount details
|
|
11
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateTransactionDto.js","sourceRoot":"","sources":["../../models/UpdateTransactionDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"UpdateTransactionDto.js","sourceRoot":"","sources":["../../models/UpdateTransactionDto.ts"],"names":[],"mappings":";;;AA8CA,IAAiB,oBAAoB,CASpC;AATD,WAAiB,oBAAoB;IACjC;;OAEG;IACH,IAAY,YAIX;IAJD,WAAY,YAAY;QACpB,+CAA+B,CAAA;QAC/B,qCAAqB,CAAA;QACrB,qCAAqB,CAAA;IACzB,CAAC,EAJW,YAAY,GAAZ,iCAAY,KAAZ,iCAAY,QAIvB;AACL,CAAC,EATgB,oBAAoB,oCAApB,oBAAoB,QASpC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AddScreeningMatchesDto } from '../models/AddScreeningMatchesDto';
|
|
1
2
|
import type { AlertAssociationResponseDto } from '../models/AlertAssociationResponseDto';
|
|
2
3
|
import type { AlertDto } from '../models/AlertDto';
|
|
3
4
|
import type { BatchCreateAlertsDto } from '../models/BatchCreateAlertsDto';
|
|
@@ -6,12 +7,17 @@ import type { BulkAssignAlertDto } from '../models/BulkAssignAlertDto';
|
|
|
6
7
|
import type { BulkAssignAlertResponseDto } from '../models/BulkAssignAlertResponseDto';
|
|
7
8
|
import type { BulkEscalateAlertDto } from '../models/BulkEscalateAlertDto';
|
|
8
9
|
import type { BulkEscalateAlertResponseDto } from '../models/BulkEscalateAlertResponseDto';
|
|
10
|
+
import type { BulkScreeningMatchDecisionDto } from '../models/BulkScreeningMatchDecisionDto';
|
|
11
|
+
import type { BulkScreeningMatchDecisionResponseDto } from '../models/BulkScreeningMatchDecisionResponseDto';
|
|
9
12
|
import type { BulkUpdateAlertDto } from '../models/BulkUpdateAlertDto';
|
|
10
13
|
import type { BulkUpdateAlertResponseDto } from '../models/BulkUpdateAlertResponseDto';
|
|
11
14
|
import type { BulkUpdateAlertStatusDto } from '../models/BulkUpdateAlertStatusDto';
|
|
12
15
|
import type { BulkUpdateAlertStatusResponseDto } from '../models/BulkUpdateAlertStatusResponseDto';
|
|
13
16
|
import type { CreateAlertDto } from '../models/CreateAlertDto';
|
|
17
|
+
import type { ScreeningMatchDecisionDto } from '../models/ScreeningMatchDecisionDto';
|
|
18
|
+
import type { ScreeningMatchDto } from '../models/ScreeningMatchDto';
|
|
14
19
|
import type { UpdateAlertDto } from '../models/UpdateAlertDto';
|
|
20
|
+
import type { UpdateScreeningMatchDto } from '../models/UpdateScreeningMatchDto';
|
|
15
21
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
16
22
|
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
17
23
|
export declare class AlertsService {
|
|
@@ -89,6 +95,48 @@ export declare class AlertsService {
|
|
|
89
95
|
* @throws ApiError
|
|
90
96
|
*/
|
|
91
97
|
bulkEscalateAlert(requestBody: BulkEscalateAlertDto): CancelablePromise<BulkEscalateAlertResponseDto>;
|
|
98
|
+
/**
|
|
99
|
+
* Record a decision (TRUE_MATCH or FALSE_MATCH) for a single screening match
|
|
100
|
+
* @param alertId Alert ID or referenceId
|
|
101
|
+
* @param matchId Screening match ID
|
|
102
|
+
* @param requestBody
|
|
103
|
+
* @returns ScreeningMatchDto
|
|
104
|
+
* @throws ApiError
|
|
105
|
+
*/
|
|
106
|
+
recordScreeningMatchDecision(alertId: string, matchId: string, requestBody: ScreeningMatchDecisionDto): CancelablePromise<ScreeningMatchDto>;
|
|
107
|
+
/**
|
|
108
|
+
* Record the same decision for multiple screening matches on a single alert
|
|
109
|
+
* @param alertId Alert ID or referenceId
|
|
110
|
+
* @param requestBody
|
|
111
|
+
* @returns BulkScreeningMatchDecisionResponseDto
|
|
112
|
+
* @throws ApiError
|
|
113
|
+
*/
|
|
114
|
+
recordBulkScreeningMatchDecision(alertId: string, requestBody: BulkScreeningMatchDecisionDto): CancelablePromise<BulkScreeningMatchDecisionResponseDto>;
|
|
115
|
+
/**
|
|
116
|
+
* Attach one or more screening matches to an existing screening alert (e.g. async vendor delivery, customer-driven appends). Rejects when the alert is RESOLVED or not a screening category.
|
|
117
|
+
* @param alertId Alert ID or referenceId
|
|
118
|
+
* @param requestBody
|
|
119
|
+
* @returns ScreeningMatchDto
|
|
120
|
+
* @throws ApiError
|
|
121
|
+
*/
|
|
122
|
+
addScreeningMatches(alertId: string, requestBody: AddScreeningMatchesDto): CancelablePromise<Array<ScreeningMatchDto>>;
|
|
123
|
+
/**
|
|
124
|
+
* Update fields on a screening match before any decision has been recorded (e.g. vendor delivers an updated profile). Rejects after a decision is recorded.
|
|
125
|
+
* @param alertId Alert ID or referenceId
|
|
126
|
+
* @param matchId Screening match ID
|
|
127
|
+
* @param requestBody
|
|
128
|
+
* @returns ScreeningMatchDto
|
|
129
|
+
* @throws ApiError
|
|
130
|
+
*/
|
|
131
|
+
updateScreeningMatch(alertId: string, matchId: string, requestBody: UpdateScreeningMatchDto): CancelablePromise<ScreeningMatchDto>;
|
|
132
|
+
/**
|
|
133
|
+
* Remove a wrongly-attached screening match (e.g. vendor retry duplicate). Rejects if a decision has been recorded. Recomputes client screening status after deletion.
|
|
134
|
+
* @param alertId Alert ID or referenceId
|
|
135
|
+
* @param matchId Screening match ID
|
|
136
|
+
* @returns void
|
|
137
|
+
* @throws ApiError
|
|
138
|
+
*/
|
|
139
|
+
deleteScreeningMatch(alertId: string, matchId: string): CancelablePromise<void>;
|
|
92
140
|
/**
|
|
93
141
|
* Get an alert by ID
|
|
94
142
|
* @param alertId
|
|
@@ -156,6 +156,99 @@ class AlertsService {
|
|
|
156
156
|
mediaType: 'application/json',
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* Record a decision (TRUE_MATCH or FALSE_MATCH) for a single screening match
|
|
161
|
+
* @param alertId Alert ID or referenceId
|
|
162
|
+
* @param matchId Screening match ID
|
|
163
|
+
* @param requestBody
|
|
164
|
+
* @returns ScreeningMatchDto
|
|
165
|
+
* @throws ApiError
|
|
166
|
+
*/
|
|
167
|
+
recordScreeningMatchDecision(alertId, matchId, requestBody) {
|
|
168
|
+
return this.httpRequest.request({
|
|
169
|
+
method: 'POST',
|
|
170
|
+
url: '/v1/alerts/{alertId}/matches/{matchId}/decision',
|
|
171
|
+
path: {
|
|
172
|
+
'alertId': alertId,
|
|
173
|
+
'matchId': matchId,
|
|
174
|
+
},
|
|
175
|
+
body: requestBody,
|
|
176
|
+
mediaType: 'application/json',
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Record the same decision for multiple screening matches on a single alert
|
|
181
|
+
* @param alertId Alert ID or referenceId
|
|
182
|
+
* @param requestBody
|
|
183
|
+
* @returns BulkScreeningMatchDecisionResponseDto
|
|
184
|
+
* @throws ApiError
|
|
185
|
+
*/
|
|
186
|
+
recordBulkScreeningMatchDecision(alertId, requestBody) {
|
|
187
|
+
return this.httpRequest.request({
|
|
188
|
+
method: 'POST',
|
|
189
|
+
url: '/v1/alerts/{alertId}/matches/bulk-decision',
|
|
190
|
+
path: {
|
|
191
|
+
'alertId': alertId,
|
|
192
|
+
},
|
|
193
|
+
body: requestBody,
|
|
194
|
+
mediaType: 'application/json',
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Attach one or more screening matches to an existing screening alert (e.g. async vendor delivery, customer-driven appends). Rejects when the alert is RESOLVED or not a screening category.
|
|
199
|
+
* @param alertId Alert ID or referenceId
|
|
200
|
+
* @param requestBody
|
|
201
|
+
* @returns ScreeningMatchDto
|
|
202
|
+
* @throws ApiError
|
|
203
|
+
*/
|
|
204
|
+
addScreeningMatches(alertId, requestBody) {
|
|
205
|
+
return this.httpRequest.request({
|
|
206
|
+
method: 'POST',
|
|
207
|
+
url: '/v1/alerts/{alertId}/matches',
|
|
208
|
+
path: {
|
|
209
|
+
'alertId': alertId,
|
|
210
|
+
},
|
|
211
|
+
body: requestBody,
|
|
212
|
+
mediaType: 'application/json',
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Update fields on a screening match before any decision has been recorded (e.g. vendor delivers an updated profile). Rejects after a decision is recorded.
|
|
217
|
+
* @param alertId Alert ID or referenceId
|
|
218
|
+
* @param matchId Screening match ID
|
|
219
|
+
* @param requestBody
|
|
220
|
+
* @returns ScreeningMatchDto
|
|
221
|
+
* @throws ApiError
|
|
222
|
+
*/
|
|
223
|
+
updateScreeningMatch(alertId, matchId, requestBody) {
|
|
224
|
+
return this.httpRequest.request({
|
|
225
|
+
method: 'PATCH',
|
|
226
|
+
url: '/v1/alerts/{alertId}/matches/{matchId}',
|
|
227
|
+
path: {
|
|
228
|
+
'alertId': alertId,
|
|
229
|
+
'matchId': matchId,
|
|
230
|
+
},
|
|
231
|
+
body: requestBody,
|
|
232
|
+
mediaType: 'application/json',
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Remove a wrongly-attached screening match (e.g. vendor retry duplicate). Rejects if a decision has been recorded. Recomputes client screening status after deletion.
|
|
237
|
+
* @param alertId Alert ID or referenceId
|
|
238
|
+
* @param matchId Screening match ID
|
|
239
|
+
* @returns void
|
|
240
|
+
* @throws ApiError
|
|
241
|
+
*/
|
|
242
|
+
deleteScreeningMatch(alertId, matchId) {
|
|
243
|
+
return this.httpRequest.request({
|
|
244
|
+
method: 'DELETE',
|
|
245
|
+
url: '/v1/alerts/{alertId}/matches/{matchId}',
|
|
246
|
+
path: {
|
|
247
|
+
'alertId': alertId,
|
|
248
|
+
'matchId': matchId,
|
|
249
|
+
},
|
|
250
|
+
});
|
|
251
|
+
}
|
|
159
252
|
/**
|
|
160
253
|
* Get an alert by ID
|
|
161
254
|
* @param alertId
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertsService.js","sourceRoot":"","sources":["../../services/AlertsService.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AlertsService.js","sourceRoot":"","sources":["../../services/AlertsService.ts"],"names":[],"mappings":";;;AA0BA,MAAa,aAAa;IACM;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;OAMG;IACI,WAAW,CACd,WAA2B,EAC3B,iBAA2B;QAE3B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,YAAY;YACjB,KAAK,EAAE;gBACH,mBAAmB,EAAE,iBAAiB;aACzC;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,iBAAiB,CACpB,WAAiC,EACjC,iBAA2B;QAE3B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,kBAAkB;YACvB,KAAK,EAAE;gBACH,mBAAmB,EAAE,iBAA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AmC;QAEnC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,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;;;;;;;OAOG;IACI,oBAAoB,CACvB,OAAe,EACf,OAAe,EACf,WAAoC;QAEpC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,OAAO;YACf,GAAG,EAAE,wCAAwC;YAC7C,IAAI,EAAE;gBACF,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE,OAAO;aACrB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,oBAAoB,CACvB,OAAe,EACf,OAAe;QAEf,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,wCAAwC;YAC7C,IAAI,EAAE;gBACF,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE,OAAO;aACrB;SACJ,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;AA9SD,sCA8SC"}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import type { CreateExternalRuleDto } from '../models/CreateExternalRuleDto';
|
|
2
|
+
import type { RuleResponseDto } from '../models/RuleResponseDto';
|
|
3
|
+
import type { UpdateExternalRuleDto } from '../models/UpdateExternalRuleDto';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
6
|
+
export declare class ExternalRulesService {
|
|
7
|
+
readonly httpRequest: BaseHttpRequest;
|
|
8
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
9
|
+
/**
|
|
10
|
+
* Create an external vendor rule
|
|
11
|
+
* Create an external vendor rule
|
|
12
|
+
* @param requestBody
|
|
13
|
+
* @returns RuleResponseDto
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
createExternalRule(requestBody: CreateExternalRuleDto): CancelablePromise<RuleResponseDto>;
|
|
17
|
+
/**
|
|
18
|
+
* List external rules with pagination
|
|
19
|
+
* List external rules with pagination
|
|
20
|
+
* @param page Page number to retrieve. If you provide invalid value the default page number will applied
|
|
21
|
+
*
|
|
22
|
+
* **Example:** 1
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* **Default Value:** 1
|
|
26
|
+
*
|
|
27
|
+
*
|
|
28
|
+
* @param limit Number of records per page.
|
|
29
|
+
*
|
|
30
|
+
*
|
|
31
|
+
* **Example:** 20
|
|
32
|
+
*
|
|
33
|
+
*
|
|
34
|
+
*
|
|
35
|
+
* **Default Value:** 20
|
|
36
|
+
*
|
|
37
|
+
*
|
|
38
|
+
*
|
|
39
|
+
* **Max Value:** 100
|
|
40
|
+
*
|
|
41
|
+
*
|
|
42
|
+
* If provided value is greater than max value, max value will be applied.
|
|
43
|
+
*
|
|
44
|
+
* @param filterId Filter by id query param.
|
|
45
|
+
*
|
|
46
|
+
* **Format:** filter.id={$not}:OPERATION:VALUE
|
|
47
|
+
*
|
|
48
|
+
*
|
|
49
|
+
*
|
|
50
|
+
* **Example:** filter.id=$eq:John Doe&filter.id=$in:John Doe
|
|
51
|
+
*
|
|
52
|
+
* **Available Operations**
|
|
53
|
+
* - $eq
|
|
54
|
+
*
|
|
55
|
+
* - $in
|
|
56
|
+
*
|
|
57
|
+
* - $and
|
|
58
|
+
*
|
|
59
|
+
* - $or
|
|
60
|
+
* @param filterName Filter by name query param.
|
|
61
|
+
*
|
|
62
|
+
* **Format:** filter.name={$not}:OPERATION:VALUE
|
|
63
|
+
*
|
|
64
|
+
*
|
|
65
|
+
*
|
|
66
|
+
* **Example:** filter.name=$eq:John Doe&filter.name=$ilike:John Doe
|
|
67
|
+
*
|
|
68
|
+
* **Available Operations**
|
|
69
|
+
* - $eq
|
|
70
|
+
*
|
|
71
|
+
* - $ilike
|
|
72
|
+
*
|
|
73
|
+
* - $in
|
|
74
|
+
*
|
|
75
|
+
* - $and
|
|
76
|
+
*
|
|
77
|
+
* - $or
|
|
78
|
+
* @param filterStatus Filter by status query param.
|
|
79
|
+
*
|
|
80
|
+
* **Format:** filter.status={$not}:OPERATION:VALUE
|
|
81
|
+
*
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* **Example:** filter.status=$eq:John Doe&filter.status=$in:John Doe
|
|
85
|
+
*
|
|
86
|
+
* **Available Operations**
|
|
87
|
+
* - $eq
|
|
88
|
+
*
|
|
89
|
+
* - $in
|
|
90
|
+
*
|
|
91
|
+
* - $and
|
|
92
|
+
*
|
|
93
|
+
* - $or
|
|
94
|
+
* @param filterVendorName Filter by vendorName query param.
|
|
95
|
+
*
|
|
96
|
+
* **Format:** filter.vendorName={$not}:OPERATION:VALUE
|
|
97
|
+
*
|
|
98
|
+
*
|
|
99
|
+
*
|
|
100
|
+
* **Example:** filter.vendorName=$eq:John Doe&filter.vendorName=$ilike:John Doe
|
|
101
|
+
*
|
|
102
|
+
* **Available Operations**
|
|
103
|
+
* - $eq
|
|
104
|
+
*
|
|
105
|
+
* - $ilike
|
|
106
|
+
*
|
|
107
|
+
* - $in
|
|
108
|
+
*
|
|
109
|
+
* - $and
|
|
110
|
+
*
|
|
111
|
+
* - $or
|
|
112
|
+
* @param filterUpdatedAt Filter by updatedAt query param.
|
|
113
|
+
*
|
|
114
|
+
* **Format:** filter.updatedAt={$not}:OPERATION:VALUE
|
|
115
|
+
*
|
|
116
|
+
*
|
|
117
|
+
*
|
|
118
|
+
* **Example:** filter.updatedAt=$btw:John Doe&filter.updatedAt=$gte:John Doe
|
|
119
|
+
*
|
|
120
|
+
* **Available Operations**
|
|
121
|
+
* - $gte
|
|
122
|
+
*
|
|
123
|
+
* - $lte
|
|
124
|
+
*
|
|
125
|
+
* - $btw
|
|
126
|
+
*
|
|
127
|
+
* - $and
|
|
128
|
+
*
|
|
129
|
+
* - $or
|
|
130
|
+
* @param filterCreatedAt Filter by createdAt query param.
|
|
131
|
+
*
|
|
132
|
+
* **Format:** filter.createdAt={$not}:OPERATION:VALUE
|
|
133
|
+
*
|
|
134
|
+
*
|
|
135
|
+
*
|
|
136
|
+
* **Example:** filter.createdAt=$btw:John Doe&filter.createdAt=$gte:John Doe
|
|
137
|
+
*
|
|
138
|
+
* **Available Operations**
|
|
139
|
+
* - $gte
|
|
140
|
+
*
|
|
141
|
+
* - $lte
|
|
142
|
+
*
|
|
143
|
+
* - $btw
|
|
144
|
+
*
|
|
145
|
+
* - $and
|
|
146
|
+
*
|
|
147
|
+
* - $or
|
|
148
|
+
* @param sortBy Parameter to sort by.
|
|
149
|
+
* To sort by multiple fields, just provide query param multiple types. The order in url defines an order of sorting
|
|
150
|
+
*
|
|
151
|
+
* **Format:** {fieldName}:{DIRECTION}
|
|
152
|
+
*
|
|
153
|
+
*
|
|
154
|
+
* **Example:** sortBy=id:DESC&sortBy=name:DESC
|
|
155
|
+
*
|
|
156
|
+
*
|
|
157
|
+
* **Default Value:** updatedAt:DESC
|
|
158
|
+
*
|
|
159
|
+
* **Available Fields**
|
|
160
|
+
* - id
|
|
161
|
+
*
|
|
162
|
+
* - name
|
|
163
|
+
*
|
|
164
|
+
* - updatedAt
|
|
165
|
+
*
|
|
166
|
+
* - createdAt
|
|
167
|
+
*
|
|
168
|
+
* - vendorName
|
|
169
|
+
*
|
|
170
|
+
* @param search Search term to filter result values
|
|
171
|
+
*
|
|
172
|
+
* **Example:** John
|
|
173
|
+
*
|
|
174
|
+
*
|
|
175
|
+
* **Default Value:** No default value
|
|
176
|
+
*
|
|
177
|
+
*
|
|
178
|
+
* @param searchBy List of fields to search by term to filter result values
|
|
179
|
+
*
|
|
180
|
+
* **Example:** name,description
|
|
181
|
+
*
|
|
182
|
+
*
|
|
183
|
+
* **Default Value:** By default all fields mentioned below will be used to search by term
|
|
184
|
+
*
|
|
185
|
+
* **Available Fields**
|
|
186
|
+
* - name
|
|
187
|
+
*
|
|
188
|
+
* - description
|
|
189
|
+
*
|
|
190
|
+
* @returns any
|
|
191
|
+
* @throws ApiError
|
|
192
|
+
*/
|
|
193
|
+
listExternalRules(page?: number, limit?: number, filterId?: Array<string>, filterName?: Array<string>, filterStatus?: Array<string>, filterVendorName?: Array<string>, filterUpdatedAt?: Array<string>, filterCreatedAt?: Array<string>, sortBy?: Array<'id:ASC' | 'id:DESC' | 'name:ASC' | 'name:DESC' | 'updatedAt:ASC' | 'updatedAt:DESC' | 'createdAt:ASC' | 'createdAt:DESC' | 'vendorName:ASC' | 'vendorName:DESC'>, search?: string, searchBy?: Array<string>): CancelablePromise<any>;
|
|
194
|
+
/**
|
|
195
|
+
* Update an external vendor rule
|
|
196
|
+
* Update an external vendor rule
|
|
197
|
+
* @param id
|
|
198
|
+
* @param requestBody
|
|
199
|
+
* @returns RuleResponseDto
|
|
200
|
+
* @throws ApiError
|
|
201
|
+
*/
|
|
202
|
+
updateExternalRule(id: string, requestBody: UpdateExternalRuleDto): CancelablePromise<RuleResponseDto>;
|
|
203
|
+
/**
|
|
204
|
+
* Delete an external vendor rule (soft delete)
|
|
205
|
+
* Delete an external vendor rule (soft delete)
|
|
206
|
+
* @param id
|
|
207
|
+
* @param reason
|
|
208
|
+
* @returns void
|
|
209
|
+
* @throws ApiError
|
|
210
|
+
*/
|
|
211
|
+
deleteExternalRule(id: string, reason?: string): CancelablePromise<void>;
|
|
212
|
+
/**
|
|
213
|
+
* Get an external rule by ID
|
|
214
|
+
* Get an external rule by ID
|
|
215
|
+
* @param id
|
|
216
|
+
* @returns RuleResponseDto
|
|
217
|
+
* @throws ApiError
|
|
218
|
+
*/
|
|
219
|
+
getExternalRule(id: string): CancelablePromise<RuleResponseDto>;
|
|
220
|
+
/**
|
|
221
|
+
* Get distinct vendor names from external rules
|
|
222
|
+
* Get distinct vendor names from external rules
|
|
223
|
+
* @returns string
|
|
224
|
+
* @throws ApiError
|
|
225
|
+
*/
|
|
226
|
+
listExternalRuleVendors(): CancelablePromise<Array<string>>;
|
|
227
|
+
/**
|
|
228
|
+
* Check if a rule name already exists
|
|
229
|
+
* Check if a rule name already exists
|
|
230
|
+
* @param name
|
|
231
|
+
* @returns any
|
|
232
|
+
* @throws ApiError
|
|
233
|
+
*/
|
|
234
|
+
checkExternalRuleNameExists(name: string): CancelablePromise<any>;
|
|
235
|
+
}
|