@corsa-labs/sdk 3.2.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ComplianceClient.d.ts +2 -0
- package/dist/ComplianceClient.js +3 -0
- package/dist/ComplianceClient.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/models/AlertDecisionDto.d.ts +10 -0
- package/dist/models/AlertDecisionDto.js +3 -0
- package/dist/models/AlertDecisionDto.js.map +1 -0
- package/dist/models/AlertDto.d.ts +4 -0
- package/dist/models/AlertDto.js.map +1 -1
- package/dist/models/AssociatedAlertDto.d.ts +10 -0
- package/dist/models/AssociatedAlertDto.js +3 -0
- package/dist/models/AssociatedAlertDto.js.map +1 -0
- package/dist/models/CaseDto.d.ts +91 -0
- package/dist/models/CaseDto.js +31 -0
- package/dist/models/CaseDto.js.map +1 -0
- package/dist/models/CaseInvestigationData.d.ts +18 -0
- package/dist/models/CaseInvestigationData.js +3 -0
- package/dist/models/CaseInvestigationData.js.map +1 -0
- package/dist/models/CaseStatusData.d.ts +36 -0
- package/dist/models/CaseStatusData.js +20 -0
- package/dist/models/CaseStatusData.js.map +1 -0
- package/dist/models/CreateAlertDto.d.ts +4 -0
- package/dist/models/CreateAlertDto.js.map +1 -1
- package/dist/models/CreateCaseDto.d.ts +66 -0
- package/dist/models/CreateCaseDto.js +31 -0
- package/dist/models/CreateCaseDto.js.map +1 -0
- package/dist/models/UpdateAlertDto.d.ts +9 -4
- package/dist/models/UpdateAlertDto.js.map +1 -1
- package/dist/models/UpdateCaseDto.d.ts +76 -0
- package/dist/models/UpdateCaseDto.js +31 -0
- package/dist/models/UpdateCaseDto.js.map +1 -0
- package/dist/models/UpdateCaseInvestigationDto.d.ts +10 -0
- package/dist/models/UpdateCaseInvestigationDto.js +3 -0
- package/dist/models/UpdateCaseInvestigationDto.js.map +1 -0
- package/dist/models/UpdateCaseStatusDto.d.ts +28 -0
- package/dist/models/UpdateCaseStatusDto.js +20 -0
- package/dist/models/UpdateCaseStatusDto.js.map +1 -0
- package/dist/services/CasesService.d.ts +55 -0
- package/dist/services/CasesService.js +112 -0
- package/dist/services/CasesService.js.map +1 -0
- package/dist/webhooks/types.d.ts +0 -18
- package/dist/webhooks/types.js +1 -12
- package/dist/webhooks/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BaseHttpRequest } from './core/BaseHttpRequest';
|
|
2
2
|
import type { OpenAPIConfig } from './core/OpenAPI';
|
|
3
3
|
import { AlertsService } from './services/AlertsService';
|
|
4
|
+
import { CasesService } from './services/CasesService';
|
|
4
5
|
import { ClientsService } from './services/ClientsService';
|
|
5
6
|
import { DepositsService } from './services/DepositsService';
|
|
6
7
|
import { HealthService } from './services/HealthService';
|
|
@@ -10,6 +11,7 @@ import { WithdrawalsService } from './services/WithdrawalsService';
|
|
|
10
11
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
11
12
|
export declare class ComplianceClient {
|
|
12
13
|
readonly alerts: AlertsService;
|
|
14
|
+
readonly cases: CasesService;
|
|
13
15
|
readonly clients: ClientsService;
|
|
14
16
|
readonly deposits: DepositsService;
|
|
15
17
|
readonly health: HealthService;
|
package/dist/ComplianceClient.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ComplianceClient = void 0;
|
|
4
4
|
const FetchHttpRequest_1 = require("./core/FetchHttpRequest");
|
|
5
5
|
const AlertsService_1 = require("./services/AlertsService");
|
|
6
|
+
const CasesService_1 = require("./services/CasesService");
|
|
6
7
|
const ClientsService_1 = require("./services/ClientsService");
|
|
7
8
|
const DepositsService_1 = require("./services/DepositsService");
|
|
8
9
|
const HealthService_1 = require("./services/HealthService");
|
|
@@ -11,6 +12,7 @@ const TransactionsService_1 = require("./services/TransactionsService");
|
|
|
11
12
|
const WithdrawalsService_1 = require("./services/WithdrawalsService");
|
|
12
13
|
class ComplianceClient {
|
|
13
14
|
alerts;
|
|
15
|
+
cases;
|
|
14
16
|
clients;
|
|
15
17
|
deposits;
|
|
16
18
|
health;
|
|
@@ -31,6 +33,7 @@ class ComplianceClient {
|
|
|
31
33
|
ENCODE_PATH: config?.ENCODE_PATH,
|
|
32
34
|
});
|
|
33
35
|
this.alerts = new AlertsService_1.AlertsService(this.request);
|
|
36
|
+
this.cases = new CasesService_1.CasesService(this.request);
|
|
34
37
|
this.clients = new ClientsService_1.ClientsService(this.request);
|
|
35
38
|
this.deposits = new DepositsService_1.DepositsService(this.request);
|
|
36
39
|
this.health = new HealthService_1.HealthService(this.request);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComplianceClient.js","sourceRoot":"","sources":["../ComplianceClient.ts"],"names":[],"mappings":";;;AAMA,8DAA2D;AAC3D,4DAAyD;AACzD,8DAA2D;AAC3D,gEAA6D;AAC7D,4DAAyD;AACzD,4DAAyD;AACzD,wEAAqE;AACrE,sEAAmE;AAEnE,MAAa,gBAAgB;IACT,MAAM,CAAgB;IACtB,OAAO,CAAiB;IACxB,QAAQ,CAAkB;IAC1B,MAAM,CAAgB;IACtB,MAAM,CAAgB;IACtB,YAAY,CAAsB;IAClC,WAAW,CAAqB;IAChC,OAAO,CAAkB;IACzC,YAAY,MAA+B,EAAE,cAAsC,mCAAgB;QAC/F,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC;YAC3B,IAAI,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE;YACxB,OAAO,EAAE,MAAM,EAAE,OAAO,IAAI,KAAK;YACjC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,IAAI,KAAK;YACnD,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,SAAS;YAC7C,KAAK,EAAE,MAAM,EAAE,KAAK;YACpB,QAAQ,EAAE,MAAM,EAAE,QAAQ;YAC1B,QAAQ,EAAE,MAAM,EAAE,QAAQ;YAC1B,OAAO,EAAE,MAAM,EAAE,OAAO;YACxB,WAAW,EAAE,MAAM,EAAE,WAAW;SACnC,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,GAAG,IAAI,6BAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,IAAI,+BAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,IAAI,iCAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,MAAM,GAAG,IAAI,6BAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9C,IAAI,CAAC,MAAM,GAAG,IAAI,6BAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9C,IAAI,CAAC,YAAY,GAAG,IAAI,yCAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1D,IAAI,CAAC,WAAW,GAAG,IAAI,uCAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"ComplianceClient.js","sourceRoot":"","sources":["../ComplianceClient.ts"],"names":[],"mappings":";;;AAMA,8DAA2D;AAC3D,4DAAyD;AACzD,0DAAuD;AACvD,8DAA2D;AAC3D,gEAA6D;AAC7D,4DAAyD;AACzD,4DAAyD;AACzD,wEAAqE;AACrE,sEAAmE;AAEnE,MAAa,gBAAgB;IACT,MAAM,CAAgB;IACtB,KAAK,CAAe;IACpB,OAAO,CAAiB;IACxB,QAAQ,CAAkB;IAC1B,MAAM,CAAgB;IACtB,MAAM,CAAgB;IACtB,YAAY,CAAsB;IAClC,WAAW,CAAqB;IAChC,OAAO,CAAkB;IACzC,YAAY,MAA+B,EAAE,cAAsC,mCAAgB;QAC/F,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC;YAC3B,IAAI,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE;YACxB,OAAO,EAAE,MAAM,EAAE,OAAO,IAAI,KAAK;YACjC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,IAAI,KAAK;YACnD,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,SAAS;YAC7C,KAAK,EAAE,MAAM,EAAE,KAAK;YACpB,QAAQ,EAAE,MAAM,EAAE,QAAQ;YAC1B,QAAQ,EAAE,MAAM,EAAE,QAAQ;YAC1B,OAAO,EAAE,MAAM,EAAE,OAAO;YACxB,WAAW,EAAE,MAAM,EAAE,WAAW;SACnC,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,GAAG,IAAI,6BAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9C,IAAI,CAAC,KAAK,GAAG,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,IAAI,+BAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,IAAI,iCAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,MAAM,GAAG,IAAI,6BAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9C,IAAI,CAAC,MAAM,GAAG,IAAI,6BAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9C,IAAI,CAAC,YAAY,GAAG,IAAI,yCAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1D,IAAI,CAAC,WAAW,GAAG,IAAI,uCAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;CACJ;AA/BD,4CA+BC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,11 +7,16 @@ export type { OpenAPIConfig } from './core/OpenAPI';
|
|
|
7
7
|
export type { AdverseMediaDto } from './models/AdverseMediaDto';
|
|
8
8
|
export type { AlertAssociationResponseDto } from './models/AlertAssociationResponseDto';
|
|
9
9
|
export type { AlertCustomFieldDataDto } from './models/AlertCustomFieldDataDto';
|
|
10
|
+
export type { AlertDecisionDto } from './models/AlertDecisionDto';
|
|
10
11
|
export { AlertDto } from './models/AlertDto';
|
|
11
12
|
export type { AlertSourceDto } from './models/AlertSourceDto';
|
|
12
13
|
export { AlertStatusData } from './models/AlertStatusData';
|
|
14
|
+
export type { AssociatedAlertDto } from './models/AssociatedAlertDto';
|
|
13
15
|
export type { AssociatedClientDto } from './models/AssociatedClientDto';
|
|
14
16
|
export type { AssociatedTransactionDto } from './models/AssociatedTransactionDto';
|
|
17
|
+
export { CaseDto } from './models/CaseDto';
|
|
18
|
+
export type { CaseInvestigationData } from './models/CaseInvestigationData';
|
|
19
|
+
export { CaseStatusData } from './models/CaseStatusData';
|
|
15
20
|
export { ClientRiskDto } from './models/ClientRiskDto';
|
|
16
21
|
export type { CorporateClientAddressDto } from './models/CorporateClientAddressDto';
|
|
17
22
|
export type { CorporateClientAddressLineDto } from './models/CorporateClientAddressLineDto';
|
|
@@ -21,6 +26,7 @@ export { CorporateClientCustomFieldDataDto } from './models/CorporateClientCusto
|
|
|
21
26
|
export { CorporateClientDto } from './models/CorporateClientDto';
|
|
22
27
|
export type { CorporateClientGeneralDto } from './models/CorporateClientGeneralDto';
|
|
23
28
|
export { CreateAlertDto } from './models/CreateAlertDto';
|
|
29
|
+
export { CreateCaseDto } from './models/CreateCaseDto';
|
|
24
30
|
export { CreateCorporateClientDto } from './models/CreateCorporateClientDto';
|
|
25
31
|
export type { CreateDepositOperationDto } from './models/CreateDepositOperationDto';
|
|
26
32
|
export { CreateIndividualClientDto } from './models/CreateIndividualClientDto';
|
|
@@ -49,10 +55,14 @@ export type { TransactionSourceOrDestinationClientDto } from './models/Transacti
|
|
|
49
55
|
export type { TransactionSourceOrDestinationDto } from './models/TransactionSourceOrDestinationDto';
|
|
50
56
|
export { TransactionStatusDto } from './models/TransactionStatusDto';
|
|
51
57
|
export { UpdateAlertDto } from './models/UpdateAlertDto';
|
|
58
|
+
export { UpdateCaseDto } from './models/UpdateCaseDto';
|
|
59
|
+
export type { UpdateCaseInvestigationDto } from './models/UpdateCaseInvestigationDto';
|
|
60
|
+
export { UpdateCaseStatusDto } from './models/UpdateCaseStatusDto';
|
|
52
61
|
export { UpdateCorporateClientDto } from './models/UpdateCorporateClientDto';
|
|
53
62
|
export { UpdateIndividualClientDto } from './models/UpdateIndividualClientDto';
|
|
54
63
|
export type { WithdrawalOperationDto } from './models/WithdrawalOperationDto';
|
|
55
64
|
export { AlertsService } from './services/AlertsService';
|
|
65
|
+
export { CasesService } from './services/CasesService';
|
|
56
66
|
export { ClientsService } from './services/ClientsService';
|
|
57
67
|
export { DepositsService } from './services/DepositsService';
|
|
58
68
|
export { HealthService } from './services/HealthService';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WithdrawalsService = exports.TransactionsService = exports.TradesService = exports.HealthService = exports.DepositsService = exports.ClientsService = exports.AlertsService = exports.UpdateIndividualClientDto = exports.UpdateCorporateClientDto = exports.UpdateAlertDto = exports.TransactionStatusDto = exports.TransactionDto = exports.TradeOperationDto = exports.IndividualClientGeneralInformationDto = exports.IndividualClientDto = exports.IndividualClientCustomFieldDataDto = exports.CreateTradeOperationDto = exports.CreateOrUpdateRiskDto = exports.CreateIndividualClientDto = exports.CreateCorporateClientDto = exports.CreateAlertDto = exports.CorporateClientDto = exports.CorporateClientCustomFieldDataDto = exports.ClientRiskDto = exports.AlertStatusData = exports.AlertDto = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.ComplianceClient = void 0;
|
|
3
|
+
exports.WithdrawalsService = exports.TransactionsService = exports.TradesService = exports.HealthService = exports.DepositsService = exports.ClientsService = exports.CasesService = exports.AlertsService = exports.UpdateIndividualClientDto = exports.UpdateCorporateClientDto = exports.UpdateCaseStatusDto = exports.UpdateCaseDto = exports.UpdateAlertDto = exports.TransactionStatusDto = exports.TransactionDto = exports.TradeOperationDto = exports.IndividualClientGeneralInformationDto = exports.IndividualClientDto = exports.IndividualClientCustomFieldDataDto = exports.CreateTradeOperationDto = exports.CreateOrUpdateRiskDto = exports.CreateIndividualClientDto = exports.CreateCorporateClientDto = exports.CreateCaseDto = exports.CreateAlertDto = exports.CorporateClientDto = exports.CorporateClientCustomFieldDataDto = exports.ClientRiskDto = exports.CaseStatusData = exports.CaseDto = exports.AlertStatusData = exports.AlertDto = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.ComplianceClient = void 0;
|
|
4
4
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
5
|
/* istanbul ignore file */
|
|
6
6
|
/* tslint:disable */
|
|
@@ -20,6 +20,10 @@ var AlertDto_1 = require("./models/AlertDto");
|
|
|
20
20
|
Object.defineProperty(exports, "AlertDto", { enumerable: true, get: function () { return AlertDto_1.AlertDto; } });
|
|
21
21
|
var AlertStatusData_1 = require("./models/AlertStatusData");
|
|
22
22
|
Object.defineProperty(exports, "AlertStatusData", { enumerable: true, get: function () { return AlertStatusData_1.AlertStatusData; } });
|
|
23
|
+
var CaseDto_1 = require("./models/CaseDto");
|
|
24
|
+
Object.defineProperty(exports, "CaseDto", { enumerable: true, get: function () { return CaseDto_1.CaseDto; } });
|
|
25
|
+
var CaseStatusData_1 = require("./models/CaseStatusData");
|
|
26
|
+
Object.defineProperty(exports, "CaseStatusData", { enumerable: true, get: function () { return CaseStatusData_1.CaseStatusData; } });
|
|
23
27
|
var ClientRiskDto_1 = require("./models/ClientRiskDto");
|
|
24
28
|
Object.defineProperty(exports, "ClientRiskDto", { enumerable: true, get: function () { return ClientRiskDto_1.ClientRiskDto; } });
|
|
25
29
|
var CorporateClientCustomFieldDataDto_1 = require("./models/CorporateClientCustomFieldDataDto");
|
|
@@ -28,6 +32,8 @@ var CorporateClientDto_1 = require("./models/CorporateClientDto");
|
|
|
28
32
|
Object.defineProperty(exports, "CorporateClientDto", { enumerable: true, get: function () { return CorporateClientDto_1.CorporateClientDto; } });
|
|
29
33
|
var CreateAlertDto_1 = require("./models/CreateAlertDto");
|
|
30
34
|
Object.defineProperty(exports, "CreateAlertDto", { enumerable: true, get: function () { return CreateAlertDto_1.CreateAlertDto; } });
|
|
35
|
+
var CreateCaseDto_1 = require("./models/CreateCaseDto");
|
|
36
|
+
Object.defineProperty(exports, "CreateCaseDto", { enumerable: true, get: function () { return CreateCaseDto_1.CreateCaseDto; } });
|
|
31
37
|
var CreateCorporateClientDto_1 = require("./models/CreateCorporateClientDto");
|
|
32
38
|
Object.defineProperty(exports, "CreateCorporateClientDto", { enumerable: true, get: function () { return CreateCorporateClientDto_1.CreateCorporateClientDto; } });
|
|
33
39
|
var CreateIndividualClientDto_1 = require("./models/CreateIndividualClientDto");
|
|
@@ -50,12 +56,18 @@ var TransactionStatusDto_1 = require("./models/TransactionStatusDto");
|
|
|
50
56
|
Object.defineProperty(exports, "TransactionStatusDto", { enumerable: true, get: function () { return TransactionStatusDto_1.TransactionStatusDto; } });
|
|
51
57
|
var UpdateAlertDto_1 = require("./models/UpdateAlertDto");
|
|
52
58
|
Object.defineProperty(exports, "UpdateAlertDto", { enumerable: true, get: function () { return UpdateAlertDto_1.UpdateAlertDto; } });
|
|
59
|
+
var UpdateCaseDto_1 = require("./models/UpdateCaseDto");
|
|
60
|
+
Object.defineProperty(exports, "UpdateCaseDto", { enumerable: true, get: function () { return UpdateCaseDto_1.UpdateCaseDto; } });
|
|
61
|
+
var UpdateCaseStatusDto_1 = require("./models/UpdateCaseStatusDto");
|
|
62
|
+
Object.defineProperty(exports, "UpdateCaseStatusDto", { enumerable: true, get: function () { return UpdateCaseStatusDto_1.UpdateCaseStatusDto; } });
|
|
53
63
|
var UpdateCorporateClientDto_1 = require("./models/UpdateCorporateClientDto");
|
|
54
64
|
Object.defineProperty(exports, "UpdateCorporateClientDto", { enumerable: true, get: function () { return UpdateCorporateClientDto_1.UpdateCorporateClientDto; } });
|
|
55
65
|
var UpdateIndividualClientDto_1 = require("./models/UpdateIndividualClientDto");
|
|
56
66
|
Object.defineProperty(exports, "UpdateIndividualClientDto", { enumerable: true, get: function () { return UpdateIndividualClientDto_1.UpdateIndividualClientDto; } });
|
|
57
67
|
var AlertsService_1 = require("./services/AlertsService");
|
|
58
68
|
Object.defineProperty(exports, "AlertsService", { enumerable: true, get: function () { return AlertsService_1.AlertsService; } });
|
|
69
|
+
var CasesService_1 = require("./services/CasesService");
|
|
70
|
+
Object.defineProperty(exports, "CasesService", { enumerable: true, get: function () { return CasesService_1.CasesService; } });
|
|
59
71
|
var ClientsService_1 = require("./services/ClientsService");
|
|
60
72
|
Object.defineProperty(exports, "ClientsService", { enumerable: true, get: function () { return ClientsService_1.ClientsService; } });
|
|
61
73
|
var DepositsService_1 = require("./services/DepositsService");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AAEzB,4CAA2C;AAAlC,oGAAA,QAAQ,OAAA;AACjB,0DAAyD;AAAhD,kHAAA,eAAe,OAAA;AACxB,8DAA0E;AAAjE,sHAAA,iBAAiB,OAAA;AAAE,gHAAA,WAAW,OAAA;AACvC,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AAEzB,4CAA2C;AAAlC,oGAAA,QAAQ,OAAA;AACjB,0DAAyD;AAAhD,kHAAA,eAAe,OAAA;AACxB,8DAA0E;AAAjE,sHAAA,iBAAiB,OAAA;AAAE,gHAAA,WAAW,OAAA;AACvC,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;AAOhB,8CAA6C;AAApC,oGAAA,QAAQ,OAAA;AAEjB,4DAA2D;AAAlD,kHAAA,eAAe,OAAA;AAIxB,4CAA2C;AAAlC,kGAAA,OAAO,OAAA;AAEhB,0DAAyD;AAAhD,gHAAA,cAAc,OAAA;AACvB,wDAAuD;AAA9C,8GAAA,aAAa,OAAA;AAKtB,gGAA+F;AAAtF,sJAAA,iCAAiC,OAAA;AAC1C,kEAAiE;AAAxD,wHAAA,kBAAkB,OAAA;AAE3B,0DAAyD;AAAhD,gHAAA,cAAc,OAAA;AACvB,wDAAuD;AAA9C,8GAAA,aAAa,OAAA;AACtB,8EAA6E;AAApE,oIAAA,wBAAwB,OAAA;AAEjC,gFAA+E;AAAtE,sIAAA,yBAAyB,OAAA;AAClC,wEAAuE;AAA9D,8HAAA,qBAAqB,OAAA;AAC9B,4EAA2E;AAAlE,kIAAA,uBAAuB,OAAA;AAQhC,kGAAiG;AAAxF,wJAAA,kCAAkC,OAAA;AAC3C,oEAAmE;AAA1D,0HAAA,mBAAmB,OAAA;AAE5B,wGAAuG;AAA9F,8JAAA,qCAAqC,OAAA;AAK9C,gEAA+D;AAAtD,sHAAA,iBAAiB,OAAA;AAG1B,0DAAyD;AAAhD,gHAAA,cAAc,OAAA;AAGvB,sEAAqE;AAA5D,4HAAA,oBAAoB,OAAA;AAC7B,0DAAyD;AAAhD,gHAAA,cAAc,OAAA;AACvB,wDAAuD;AAA9C,8GAAA,aAAa,OAAA;AAEtB,oEAAmE;AAA1D,0HAAA,mBAAmB,OAAA;AAC5B,8EAA6E;AAApE,oIAAA,wBAAwB,OAAA;AACjC,gFAA+E;AAAtE,sIAAA,yBAAyB,OAAA;AAGlC,0DAAyD;AAAhD,8GAAA,aAAa,OAAA;AACtB,wDAAuD;AAA9C,4GAAA,YAAY,OAAA;AACrB,4DAA2D;AAAlD,gHAAA,cAAc,OAAA;AACvB,8DAA6D;AAApD,kHAAA,eAAe,OAAA;AACxB,0DAAyD;AAAhD,8GAAA,aAAa,OAAA;AACtB,0DAAyD;AAAhD,8GAAA,aAAa,OAAA;AACtB,sEAAqE;AAA5D,0HAAA,mBAAmB,OAAA;AAC5B,oEAAmE;AAA1D,wHAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDecisionDto.js","sourceRoot":"","sources":["../../models/AlertDecisionDto.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertDto.js","sourceRoot":"","sources":["../../models/AlertDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AlertDto.js","sourceRoot":"","sources":["../../models/AlertDto.ts"],"names":[],"mappings":";;;AA2EA,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 @@
|
|
|
1
|
+
{"version":3,"file":"AssociatedAlertDto.js","sourceRoot":"","sources":["../../models/AssociatedAlertDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { AssociatedAlertDto } from './AssociatedAlertDto';
|
|
2
|
+
import type { AssociatedClientDto } from './AssociatedClientDto';
|
|
3
|
+
import type { AssociatedTransactionDto } from './AssociatedTransactionDto';
|
|
4
|
+
import type { CaseInvestigationData } from './CaseInvestigationData';
|
|
5
|
+
import type { CaseStatusData } from './CaseStatusData';
|
|
6
|
+
export type CaseDto = {
|
|
7
|
+
/**
|
|
8
|
+
* Unique identifier for the case
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* External reference ID for the case
|
|
13
|
+
*/
|
|
14
|
+
referenceId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Timestamp when the case was created
|
|
17
|
+
*/
|
|
18
|
+
createdAt: string;
|
|
19
|
+
/**
|
|
20
|
+
* Timestamp when the case was last updated
|
|
21
|
+
*/
|
|
22
|
+
updatedAt: string;
|
|
23
|
+
/**
|
|
24
|
+
* Array of attachment IDs associated with the case
|
|
25
|
+
*/
|
|
26
|
+
attachmentIds?: Array<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Priority level of the case
|
|
29
|
+
*/
|
|
30
|
+
priority: CaseDto.priority;
|
|
31
|
+
/**
|
|
32
|
+
* Category or type of the case
|
|
33
|
+
*/
|
|
34
|
+
category: CaseDto.category;
|
|
35
|
+
/**
|
|
36
|
+
* ID of the user assigned to the case
|
|
37
|
+
*/
|
|
38
|
+
assigneeId?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Array of reviewer user IDs
|
|
41
|
+
*/
|
|
42
|
+
reviewersIds: Array<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Description or summary of the case
|
|
45
|
+
*/
|
|
46
|
+
description?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Historical record of case status changes
|
|
49
|
+
*/
|
|
50
|
+
statusHistory: Array<CaseStatusData>;
|
|
51
|
+
/**
|
|
52
|
+
* Alerts associated with this case
|
|
53
|
+
*/
|
|
54
|
+
alerts: Array<AssociatedAlertDto>;
|
|
55
|
+
/**
|
|
56
|
+
* Transactions associated with this case
|
|
57
|
+
*/
|
|
58
|
+
transactions: Array<AssociatedTransactionDto>;
|
|
59
|
+
/**
|
|
60
|
+
* Clients associated with this case
|
|
61
|
+
*/
|
|
62
|
+
clients: Array<AssociatedClientDto>;
|
|
63
|
+
/**
|
|
64
|
+
* Investigation data and notes for the case
|
|
65
|
+
*/
|
|
66
|
+
investigation?: CaseInvestigationData;
|
|
67
|
+
};
|
|
68
|
+
export declare namespace CaseDto {
|
|
69
|
+
/**
|
|
70
|
+
* Priority level of the case
|
|
71
|
+
*/
|
|
72
|
+
enum priority {
|
|
73
|
+
LOW = "LOW",
|
|
74
|
+
MEDIUM = "MEDIUM",
|
|
75
|
+
HIGH = "HIGH"
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Category or type of the case
|
|
79
|
+
*/
|
|
80
|
+
enum category {
|
|
81
|
+
KYC = "KYC",
|
|
82
|
+
KYB = "KYB",
|
|
83
|
+
TRANSACTION_MONITORING = "TRANSACTION_MONITORING",
|
|
84
|
+
ONCHAIN_TRANSACTION_MONITORING = "ONCHAIN_TRANSACTION_MONITORING",
|
|
85
|
+
SCREENING = "SCREENING",
|
|
86
|
+
FRAUD = "FRAUD",
|
|
87
|
+
PERIODIC_REVIEW = "PERIODIC_REVIEW",
|
|
88
|
+
EDD = "EDD",
|
|
89
|
+
OTHER = "OTHER"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CaseDto = void 0;
|
|
4
|
+
var CaseDto;
|
|
5
|
+
(function (CaseDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Priority level of the case
|
|
8
|
+
*/
|
|
9
|
+
let priority;
|
|
10
|
+
(function (priority) {
|
|
11
|
+
priority["LOW"] = "LOW";
|
|
12
|
+
priority["MEDIUM"] = "MEDIUM";
|
|
13
|
+
priority["HIGH"] = "HIGH";
|
|
14
|
+
})(priority = CaseDto.priority || (CaseDto.priority = {}));
|
|
15
|
+
/**
|
|
16
|
+
* Category or type of the case
|
|
17
|
+
*/
|
|
18
|
+
let category;
|
|
19
|
+
(function (category) {
|
|
20
|
+
category["KYC"] = "KYC";
|
|
21
|
+
category["KYB"] = "KYB";
|
|
22
|
+
category["TRANSACTION_MONITORING"] = "TRANSACTION_MONITORING";
|
|
23
|
+
category["ONCHAIN_TRANSACTION_MONITORING"] = "ONCHAIN_TRANSACTION_MONITORING";
|
|
24
|
+
category["SCREENING"] = "SCREENING";
|
|
25
|
+
category["FRAUD"] = "FRAUD";
|
|
26
|
+
category["PERIODIC_REVIEW"] = "PERIODIC_REVIEW";
|
|
27
|
+
category["EDD"] = "EDD";
|
|
28
|
+
category["OTHER"] = "OTHER";
|
|
29
|
+
})(category = CaseDto.category || (CaseDto.category = {}));
|
|
30
|
+
})(CaseDto || (exports.CaseDto = CaseDto = {}));
|
|
31
|
+
//# sourceMappingURL=CaseDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CaseDto.js","sourceRoot":"","sources":["../../models/CaseDto.ts"],"names":[],"mappings":";;;AAuEA,IAAiB,OAAO,CAuBvB;AAvBD,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,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,gBAAQ,KAAR,gBAAQ,QAUnB;AACL,CAAC,EAvBgB,OAAO,uBAAP,OAAO,QAuBvB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type CaseInvestigationData = {
|
|
2
|
+
/**
|
|
3
|
+
* Investigation content and notes
|
|
4
|
+
*/
|
|
5
|
+
content?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Nickname or alias for the investigation
|
|
8
|
+
*/
|
|
9
|
+
nickname?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Timestamp of the last edit
|
|
12
|
+
*/
|
|
13
|
+
lastEditedAt: string;
|
|
14
|
+
/**
|
|
15
|
+
* ID of the user who last edited the investigation
|
|
16
|
+
*/
|
|
17
|
+
lastEditorId: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CaseInvestigationData.js","sourceRoot":"","sources":["../../models/CaseInvestigationData.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type CaseStatusData = {
|
|
2
|
+
/**
|
|
3
|
+
* Current status of the case
|
|
4
|
+
*/
|
|
5
|
+
status: CaseStatusData.status;
|
|
6
|
+
/**
|
|
7
|
+
* Reason for the status change
|
|
8
|
+
*/
|
|
9
|
+
reason?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Sub-status providing additional context
|
|
12
|
+
*/
|
|
13
|
+
subStatus?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Timestamp when the status was evaluated
|
|
16
|
+
*/
|
|
17
|
+
evaluatedAt: string;
|
|
18
|
+
/**
|
|
19
|
+
* ID of the user who evaluated the status
|
|
20
|
+
*/
|
|
21
|
+
evaluatedBy?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare namespace CaseStatusData {
|
|
24
|
+
/**
|
|
25
|
+
* Current status of the case
|
|
26
|
+
*/
|
|
27
|
+
enum status {
|
|
28
|
+
NEW = "NEW",
|
|
29
|
+
UNDER_INVESTIGATION = "UNDER_INVESTIGATION",
|
|
30
|
+
PENDING_EDD = "PENDING_EDD",
|
|
31
|
+
PENDING_RFI = "PENDING_RFI",
|
|
32
|
+
PENDING_REVIEW = "PENDING_REVIEW",
|
|
33
|
+
CLOSED_DISMISSED = "CLOSED_DISMISSED",
|
|
34
|
+
CLOSED_ESCALATION_TO_SAR = "CLOSED_ESCALATION_TO_SAR"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CaseStatusData = void 0;
|
|
4
|
+
var CaseStatusData;
|
|
5
|
+
(function (CaseStatusData) {
|
|
6
|
+
/**
|
|
7
|
+
* Current status of the case
|
|
8
|
+
*/
|
|
9
|
+
let status;
|
|
10
|
+
(function (status) {
|
|
11
|
+
status["NEW"] = "NEW";
|
|
12
|
+
status["UNDER_INVESTIGATION"] = "UNDER_INVESTIGATION";
|
|
13
|
+
status["PENDING_EDD"] = "PENDING_EDD";
|
|
14
|
+
status["PENDING_RFI"] = "PENDING_RFI";
|
|
15
|
+
status["PENDING_REVIEW"] = "PENDING_REVIEW";
|
|
16
|
+
status["CLOSED_DISMISSED"] = "CLOSED_DISMISSED";
|
|
17
|
+
status["CLOSED_ESCALATION_TO_SAR"] = "CLOSED_ESCALATION_TO_SAR";
|
|
18
|
+
})(status = CaseStatusData.status || (CaseStatusData.status = {}));
|
|
19
|
+
})(CaseStatusData || (exports.CaseStatusData = CaseStatusData = {}));
|
|
20
|
+
//# sourceMappingURL=CaseStatusData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CaseStatusData.js","sourceRoot":"","sources":["../../models/CaseStatusData.ts"],"names":[],"mappings":";;;AA0BA,IAAiB,cAAc,CAa9B;AAbD,WAAiB,cAAc;IAC3B;;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,qBAAM,KAAN,qBAAM,QAQjB;AACL,CAAC,EAbgB,cAAc,8BAAd,cAAc,QAa9B"}
|
|
@@ -41,6 +41,10 @@ export type CreateAlertDto = {
|
|
|
41
41
|
* List of transaction IDs associated with this alert
|
|
42
42
|
*/
|
|
43
43
|
associatedTransactions?: Array<string>;
|
|
44
|
+
/**
|
|
45
|
+
* List of attachment IDs associated with this alert
|
|
46
|
+
*/
|
|
47
|
+
attachmentIds?: Array<string>;
|
|
44
48
|
/**
|
|
45
49
|
* Custom fields data
|
|
46
50
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateAlertDto.js","sourceRoot":"","sources":["../../models/CreateAlertDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CreateAlertDto.js","sourceRoot":"","sources":["../../models/CreateAlertDto.ts"],"names":[],"mappings":";;;AAwDA,IAAiB,cAAc,CAgC9B;AAhCD,WAAiB,cAAc;IAC3B;;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,uBAAQ,KAAR,uBAAQ,QAUnB;IACD;;OAEG;IACH,IAAY,QAIX;IAJD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,6BAAiB,CAAA;QACjB,yBAAa,CAAA;IACjB,CAAC,EAJW,QAAQ,GAAR,uBAAQ,KAAR,uBAAQ,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,qBAAM,KAAN,qBAAM,QAKjB;AACL,CAAC,EAhCgB,cAAc,8BAAd,cAAc,QAgC9B"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export type CreateCaseDto = {
|
|
2
|
+
/**
|
|
3
|
+
* External reference ID for the case
|
|
4
|
+
*/
|
|
5
|
+
referenceId?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Array of attachment IDs associated with the case
|
|
8
|
+
*/
|
|
9
|
+
attachmentIds?: Array<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Priority of the case
|
|
12
|
+
*/
|
|
13
|
+
priority: CreateCaseDto.priority;
|
|
14
|
+
/**
|
|
15
|
+
* Category of the case
|
|
16
|
+
*/
|
|
17
|
+
category: CreateCaseDto.category;
|
|
18
|
+
/**
|
|
19
|
+
* ID of the user who assigned the case
|
|
20
|
+
*/
|
|
21
|
+
assigneeId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* IDs of the reviewers of the case
|
|
24
|
+
*/
|
|
25
|
+
reviewersIds: Array<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Description of the case
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
* IDs or Reference IDs of the alerts associated with the case
|
|
32
|
+
*/
|
|
33
|
+
alertsIds?: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* IDs or Reference IDs of the transactions associated with the case
|
|
36
|
+
*/
|
|
37
|
+
transactionsIds?: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* IDs or Reference IDs of the clients associated with the case
|
|
40
|
+
*/
|
|
41
|
+
clientsIds?: Array<string>;
|
|
42
|
+
};
|
|
43
|
+
export declare namespace CreateCaseDto {
|
|
44
|
+
/**
|
|
45
|
+
* Priority of the case
|
|
46
|
+
*/
|
|
47
|
+
enum priority {
|
|
48
|
+
LOW = "LOW",
|
|
49
|
+
MEDIUM = "MEDIUM",
|
|
50
|
+
HIGH = "HIGH"
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Category of the case
|
|
54
|
+
*/
|
|
55
|
+
enum category {
|
|
56
|
+
KYC = "KYC",
|
|
57
|
+
KYB = "KYB",
|
|
58
|
+
TRANSACTION_MONITORING = "TRANSACTION_MONITORING",
|
|
59
|
+
ONCHAIN_TRANSACTION_MONITORING = "ONCHAIN_TRANSACTION_MONITORING",
|
|
60
|
+
SCREENING = "SCREENING",
|
|
61
|
+
FRAUD = "FRAUD",
|
|
62
|
+
PERIODIC_REVIEW = "PERIODIC_REVIEW",
|
|
63
|
+
EDD = "EDD",
|
|
64
|
+
OTHER = "OTHER"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateCaseDto = void 0;
|
|
4
|
+
var CreateCaseDto;
|
|
5
|
+
(function (CreateCaseDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Priority of the case
|
|
8
|
+
*/
|
|
9
|
+
let priority;
|
|
10
|
+
(function (priority) {
|
|
11
|
+
priority["LOW"] = "LOW";
|
|
12
|
+
priority["MEDIUM"] = "MEDIUM";
|
|
13
|
+
priority["HIGH"] = "HIGH";
|
|
14
|
+
})(priority = CreateCaseDto.priority || (CreateCaseDto.priority = {}));
|
|
15
|
+
/**
|
|
16
|
+
* Category of the case
|
|
17
|
+
*/
|
|
18
|
+
let category;
|
|
19
|
+
(function (category) {
|
|
20
|
+
category["KYC"] = "KYC";
|
|
21
|
+
category["KYB"] = "KYB";
|
|
22
|
+
category["TRANSACTION_MONITORING"] = "TRANSACTION_MONITORING";
|
|
23
|
+
category["ONCHAIN_TRANSACTION_MONITORING"] = "ONCHAIN_TRANSACTION_MONITORING";
|
|
24
|
+
category["SCREENING"] = "SCREENING";
|
|
25
|
+
category["FRAUD"] = "FRAUD";
|
|
26
|
+
category["PERIODIC_REVIEW"] = "PERIODIC_REVIEW";
|
|
27
|
+
category["EDD"] = "EDD";
|
|
28
|
+
category["OTHER"] = "OTHER";
|
|
29
|
+
})(category = CreateCaseDto.category || (CreateCaseDto.category = {}));
|
|
30
|
+
})(CreateCaseDto || (exports.CreateCaseDto = CreateCaseDto = {}));
|
|
31
|
+
//# sourceMappingURL=CreateCaseDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateCaseDto.js","sourceRoot":"","sources":["../../models/CreateCaseDto.ts"],"names":[],"mappings":";;;AA8CA,IAAiB,aAAa,CAuB7B;AAvBD,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,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,sBAAQ,KAAR,sBAAQ,QAUnB;AACL,CAAC,EAvBgB,aAAa,6BAAb,aAAa,QAuB7B"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import type { AlertDecisionDto } from './AlertDecisionDto';
|
|
1
2
|
import type { AlertSourceDto } from './AlertSourceDto';
|
|
2
3
|
export type UpdateAlertDto = {
|
|
3
4
|
/**
|
|
4
5
|
* Priority level of the alert
|
|
5
6
|
*/
|
|
6
7
|
priority?: UpdateAlertDto.priority;
|
|
8
|
+
/**
|
|
9
|
+
* UUID of the user assigned to handle this alert
|
|
10
|
+
*/
|
|
11
|
+
assigneeId?: string;
|
|
7
12
|
/**
|
|
8
13
|
* Category of the alert
|
|
9
14
|
*/
|
|
@@ -12,14 +17,14 @@ export type UpdateAlertDto = {
|
|
|
12
17
|
* Current status of the alert
|
|
13
18
|
*/
|
|
14
19
|
status?: UpdateAlertDto.status;
|
|
15
|
-
/**
|
|
16
|
-
* UUID of the user assigned to handle this alert
|
|
17
|
-
*/
|
|
18
|
-
assigneeId?: string;
|
|
19
20
|
/**
|
|
20
21
|
* Source information for the alert
|
|
21
22
|
*/
|
|
22
23
|
source?: AlertSourceDto;
|
|
24
|
+
/**
|
|
25
|
+
* Decision information for the alert
|
|
26
|
+
*/
|
|
27
|
+
decision?: AlertDecisionDto;
|
|
23
28
|
/**
|
|
24
29
|
* Custom fields data
|
|
25
30
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateAlertDto.js","sourceRoot":"","sources":["../../models/UpdateAlertDto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"UpdateAlertDto.js","sourceRoot":"","sources":["../../models/UpdateAlertDto.ts"],"names":[],"mappings":";;;AAoCA,IAAiB,cAAc,CAgC9B;AAhCD,WAAiB,cAAc;IAC3B;;OAEG;IACH,IAAY,QAIX;IAJD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,6BAAiB,CAAA;QACjB,yBAAa,CAAA;IACjB,CAAC,EAJW,QAAQ,GAAR,uBAAQ,KAAR,uBAAQ,QAInB;IACD;;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,uBAAQ,KAAR,uBAAQ,QAUnB;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,qBAAM,KAAN,qBAAM,QAKjB;AACL,CAAC,EAhCgB,cAAc,8BAAd,cAAc,QAgC9B"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { UpdateCaseInvestigationDto } from './UpdateCaseInvestigationDto';
|
|
2
|
+
import type { UpdateCaseStatusDto } from './UpdateCaseStatusDto';
|
|
3
|
+
export type UpdateCaseDto = {
|
|
4
|
+
/**
|
|
5
|
+
* External reference ID for the case
|
|
6
|
+
*/
|
|
7
|
+
referenceId?: string;
|
|
8
|
+
/**
|
|
9
|
+
* ID of the user who created the case
|
|
10
|
+
*/
|
|
11
|
+
attachmentIds?: Array<string>;
|
|
12
|
+
/**
|
|
13
|
+
* Priority of the case
|
|
14
|
+
*/
|
|
15
|
+
priority?: UpdateCaseDto.priority;
|
|
16
|
+
/**
|
|
17
|
+
* Category of the case
|
|
18
|
+
*/
|
|
19
|
+
category?: UpdateCaseDto.category;
|
|
20
|
+
/**
|
|
21
|
+
* IDs of the reviewers of the case
|
|
22
|
+
*/
|
|
23
|
+
reviewersIds?: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Description of the case
|
|
26
|
+
*/
|
|
27
|
+
description?: string;
|
|
28
|
+
/**
|
|
29
|
+
* ID of the user who assigned the case
|
|
30
|
+
*/
|
|
31
|
+
assigneeId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* IDs or Reference IDs of the alerts associated with the case
|
|
34
|
+
*/
|
|
35
|
+
alertsIds?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* IDs or Reference IDs of the transactions associated with the case
|
|
38
|
+
*/
|
|
39
|
+
transactionsIds?: Array<string>;
|
|
40
|
+
/**
|
|
41
|
+
* IDs or Reference IDs of the clients associated with the case
|
|
42
|
+
*/
|
|
43
|
+
clientsIds?: Array<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Status update with optional reason and sub-status
|
|
46
|
+
*/
|
|
47
|
+
status?: UpdateCaseStatusDto;
|
|
48
|
+
/**
|
|
49
|
+
* Investigation data and notes for the case
|
|
50
|
+
*/
|
|
51
|
+
investigation?: UpdateCaseInvestigationDto;
|
|
52
|
+
};
|
|
53
|
+
export declare namespace UpdateCaseDto {
|
|
54
|
+
/**
|
|
55
|
+
* Priority of the case
|
|
56
|
+
*/
|
|
57
|
+
enum priority {
|
|
58
|
+
LOW = "LOW",
|
|
59
|
+
MEDIUM = "MEDIUM",
|
|
60
|
+
HIGH = "HIGH"
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Category of the case
|
|
64
|
+
*/
|
|
65
|
+
enum category {
|
|
66
|
+
KYC = "KYC",
|
|
67
|
+
KYB = "KYB",
|
|
68
|
+
TRANSACTION_MONITORING = "TRANSACTION_MONITORING",
|
|
69
|
+
ONCHAIN_TRANSACTION_MONITORING = "ONCHAIN_TRANSACTION_MONITORING",
|
|
70
|
+
SCREENING = "SCREENING",
|
|
71
|
+
FRAUD = "FRAUD",
|
|
72
|
+
PERIODIC_REVIEW = "PERIODIC_REVIEW",
|
|
73
|
+
EDD = "EDD",
|
|
74
|
+
OTHER = "OTHER"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateCaseDto = void 0;
|
|
4
|
+
var UpdateCaseDto;
|
|
5
|
+
(function (UpdateCaseDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Priority of the case
|
|
8
|
+
*/
|
|
9
|
+
let priority;
|
|
10
|
+
(function (priority) {
|
|
11
|
+
priority["LOW"] = "LOW";
|
|
12
|
+
priority["MEDIUM"] = "MEDIUM";
|
|
13
|
+
priority["HIGH"] = "HIGH";
|
|
14
|
+
})(priority = UpdateCaseDto.priority || (UpdateCaseDto.priority = {}));
|
|
15
|
+
/**
|
|
16
|
+
* Category of the case
|
|
17
|
+
*/
|
|
18
|
+
let category;
|
|
19
|
+
(function (category) {
|
|
20
|
+
category["KYC"] = "KYC";
|
|
21
|
+
category["KYB"] = "KYB";
|
|
22
|
+
category["TRANSACTION_MONITORING"] = "TRANSACTION_MONITORING";
|
|
23
|
+
category["ONCHAIN_TRANSACTION_MONITORING"] = "ONCHAIN_TRANSACTION_MONITORING";
|
|
24
|
+
category["SCREENING"] = "SCREENING";
|
|
25
|
+
category["FRAUD"] = "FRAUD";
|
|
26
|
+
category["PERIODIC_REVIEW"] = "PERIODIC_REVIEW";
|
|
27
|
+
category["EDD"] = "EDD";
|
|
28
|
+
category["OTHER"] = "OTHER";
|
|
29
|
+
})(category = UpdateCaseDto.category || (UpdateCaseDto.category = {}));
|
|
30
|
+
})(UpdateCaseDto || (exports.UpdateCaseDto = UpdateCaseDto = {}));
|
|
31
|
+
//# sourceMappingURL=UpdateCaseDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateCaseDto.js","sourceRoot":"","sources":["../../models/UpdateCaseDto.ts"],"names":[],"mappings":";;;AAwDA,IAAiB,aAAa,CAuB7B;AAvBD,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,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,sBAAQ,KAAR,sBAAQ,QAUnB;AACL,CAAC,EAvBgB,aAAa,6BAAb,aAAa,QAuB7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateCaseInvestigationDto.js","sourceRoot":"","sources":["../../models/UpdateCaseInvestigationDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type UpdateCaseStatusDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Status of the case
|
|
4
|
+
*/
|
|
5
|
+
status: UpdateCaseStatusDto.status;
|
|
6
|
+
/**
|
|
7
|
+
* Reason for the status change
|
|
8
|
+
*/
|
|
9
|
+
reason?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Sub-status providing additional context
|
|
12
|
+
*/
|
|
13
|
+
subStatus?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare namespace UpdateCaseStatusDto {
|
|
16
|
+
/**
|
|
17
|
+
* Status of the case
|
|
18
|
+
*/
|
|
19
|
+
enum status {
|
|
20
|
+
NEW = "NEW",
|
|
21
|
+
UNDER_INVESTIGATION = "UNDER_INVESTIGATION",
|
|
22
|
+
PENDING_EDD = "PENDING_EDD",
|
|
23
|
+
PENDING_RFI = "PENDING_RFI",
|
|
24
|
+
PENDING_REVIEW = "PENDING_REVIEW",
|
|
25
|
+
CLOSED_DISMISSED = "CLOSED_DISMISSED",
|
|
26
|
+
CLOSED_ESCALATION_TO_SAR = "CLOSED_ESCALATION_TO_SAR"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateCaseStatusDto = void 0;
|
|
4
|
+
var UpdateCaseStatusDto;
|
|
5
|
+
(function (UpdateCaseStatusDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Status of the case
|
|
8
|
+
*/
|
|
9
|
+
let status;
|
|
10
|
+
(function (status) {
|
|
11
|
+
status["NEW"] = "NEW";
|
|
12
|
+
status["UNDER_INVESTIGATION"] = "UNDER_INVESTIGATION";
|
|
13
|
+
status["PENDING_EDD"] = "PENDING_EDD";
|
|
14
|
+
status["PENDING_RFI"] = "PENDING_RFI";
|
|
15
|
+
status["PENDING_REVIEW"] = "PENDING_REVIEW";
|
|
16
|
+
status["CLOSED_DISMISSED"] = "CLOSED_DISMISSED";
|
|
17
|
+
status["CLOSED_ESCALATION_TO_SAR"] = "CLOSED_ESCALATION_TO_SAR";
|
|
18
|
+
})(status = UpdateCaseStatusDto.status || (UpdateCaseStatusDto.status = {}));
|
|
19
|
+
})(UpdateCaseStatusDto || (exports.UpdateCaseStatusDto = UpdateCaseStatusDto = {}));
|
|
20
|
+
//# sourceMappingURL=UpdateCaseStatusDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateCaseStatusDto.js","sourceRoot":"","sources":["../../models/UpdateCaseStatusDto.ts"],"names":[],"mappings":";;;AAkBA,IAAiB,mBAAmB,CAanC;AAbD,WAAiB,mBAAmB;IAChC;;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,0BAAM,KAAN,0BAAM,QAQjB;AACL,CAAC,EAbgB,mBAAmB,mCAAnB,mBAAmB,QAanC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { CaseDto } from '../models/CaseDto';
|
|
2
|
+
import type { CreateCaseDto } from '../models/CreateCaseDto';
|
|
3
|
+
import type { UpdateCaseDto } from '../models/UpdateCaseDto';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
6
|
+
export declare class CasesService {
|
|
7
|
+
readonly httpRequest: BaseHttpRequest;
|
|
8
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
9
|
+
/**
|
|
10
|
+
* Create a new case
|
|
11
|
+
* @param requestBody
|
|
12
|
+
* @returns CaseDto
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
createCase(requestBody: CreateCaseDto): CancelablePromise<CaseDto>;
|
|
16
|
+
/**
|
|
17
|
+
* Associate a case with transactions
|
|
18
|
+
* @param caseId
|
|
19
|
+
* @param requestBody
|
|
20
|
+
* @returns any
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
associateCaseWithTransactions(caseId: string, requestBody: Array<string>): CancelablePromise<Record<string, any>>;
|
|
24
|
+
/**
|
|
25
|
+
* Associate a case with clients
|
|
26
|
+
* @param caseId
|
|
27
|
+
* @param requestBody
|
|
28
|
+
* @returns any
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
associateCaseWithClients(caseId: string, requestBody: Array<string>): CancelablePromise<Record<string, any>>;
|
|
32
|
+
/**
|
|
33
|
+
* Associate a case with alerts
|
|
34
|
+
* @param caseId
|
|
35
|
+
* @param requestBody
|
|
36
|
+
* @returns any
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
associateCaseWithAlerts(caseId: string, requestBody: Array<string>): CancelablePromise<Record<string, any>>;
|
|
40
|
+
/**
|
|
41
|
+
* Update a case
|
|
42
|
+
* @param caseId
|
|
43
|
+
* @param requestBody
|
|
44
|
+
* @returns CaseDto
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
updateCase(caseId: string, requestBody: UpdateCaseDto): CancelablePromise<CaseDto>;
|
|
48
|
+
/**
|
|
49
|
+
* Get a case by ID
|
|
50
|
+
* @param caseId
|
|
51
|
+
* @returns CaseDto
|
|
52
|
+
* @throws ApiError
|
|
53
|
+
*/
|
|
54
|
+
getCase(caseId: string): CancelablePromise<CaseDto>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CasesService = void 0;
|
|
4
|
+
class CasesService {
|
|
5
|
+
httpRequest;
|
|
6
|
+
constructor(httpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create a new case
|
|
11
|
+
* @param requestBody
|
|
12
|
+
* @returns CaseDto
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
createCase(requestBody) {
|
|
16
|
+
return this.httpRequest.request({
|
|
17
|
+
method: 'POST',
|
|
18
|
+
url: '/v1/cases',
|
|
19
|
+
body: requestBody,
|
|
20
|
+
mediaType: 'application/json',
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Associate a case with transactions
|
|
25
|
+
* @param caseId
|
|
26
|
+
* @param requestBody
|
|
27
|
+
* @returns any
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
associateCaseWithTransactions(caseId, requestBody) {
|
|
31
|
+
return this.httpRequest.request({
|
|
32
|
+
method: 'PUT',
|
|
33
|
+
url: '/v1/cases/{caseId}/transactions',
|
|
34
|
+
path: {
|
|
35
|
+
'caseId': caseId,
|
|
36
|
+
},
|
|
37
|
+
body: requestBody,
|
|
38
|
+
mediaType: 'application/json',
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Associate a case with clients
|
|
43
|
+
* @param caseId
|
|
44
|
+
* @param requestBody
|
|
45
|
+
* @returns any
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
associateCaseWithClients(caseId, requestBody) {
|
|
49
|
+
return this.httpRequest.request({
|
|
50
|
+
method: 'PUT',
|
|
51
|
+
url: '/v1/cases/{caseId}/clients',
|
|
52
|
+
path: {
|
|
53
|
+
'caseId': caseId,
|
|
54
|
+
},
|
|
55
|
+
body: requestBody,
|
|
56
|
+
mediaType: 'application/json',
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Associate a case with alerts
|
|
61
|
+
* @param caseId
|
|
62
|
+
* @param requestBody
|
|
63
|
+
* @returns any
|
|
64
|
+
* @throws ApiError
|
|
65
|
+
*/
|
|
66
|
+
associateCaseWithAlerts(caseId, requestBody) {
|
|
67
|
+
return this.httpRequest.request({
|
|
68
|
+
method: 'PUT',
|
|
69
|
+
url: '/v1/cases/{caseId}/alerts',
|
|
70
|
+
path: {
|
|
71
|
+
'caseId': caseId,
|
|
72
|
+
},
|
|
73
|
+
body: requestBody,
|
|
74
|
+
mediaType: 'application/json',
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Update a case
|
|
79
|
+
* @param caseId
|
|
80
|
+
* @param requestBody
|
|
81
|
+
* @returns CaseDto
|
|
82
|
+
* @throws ApiError
|
|
83
|
+
*/
|
|
84
|
+
updateCase(caseId, requestBody) {
|
|
85
|
+
return this.httpRequest.request({
|
|
86
|
+
method: 'PUT',
|
|
87
|
+
url: '/v1/cases/{caseId}/update',
|
|
88
|
+
path: {
|
|
89
|
+
'caseId': caseId,
|
|
90
|
+
},
|
|
91
|
+
body: requestBody,
|
|
92
|
+
mediaType: 'application/json',
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Get a case by ID
|
|
97
|
+
* @param caseId
|
|
98
|
+
* @returns CaseDto
|
|
99
|
+
* @throws ApiError
|
|
100
|
+
*/
|
|
101
|
+
getCase(caseId) {
|
|
102
|
+
return this.httpRequest.request({
|
|
103
|
+
method: 'GET',
|
|
104
|
+
url: '/v1/cases/{caseId}',
|
|
105
|
+
path: {
|
|
106
|
+
'caseId': caseId,
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.CasesService = CasesService;
|
|
112
|
+
//# sourceMappingURL=CasesService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CasesService.js","sourceRoot":"","sources":["../../services/CasesService.ts"],"names":[],"mappings":";;;AASA,MAAa,YAAY;IACO;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;OAKG;IACI,UAAU,CACb,WAA0B;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,WAAW;YAChB,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,6BAA6B,CAChC,MAAc,EACd,WAA0B;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,iCAAiC;YACtC,IAAI,EAAE;gBACF,QAAQ,EAAE,MAAM;aACnB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,wBAAwB,CAC3B,MAAc,EACd,WAA0B;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,4BAA4B;YACjC,IAAI,EAAE;gBACF,QAAQ,EAAE,MAAM;aACnB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,uBAAuB,CAC1B,MAAc,EACd,WAA0B;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,2BAA2B;YAChC,IAAI,EAAE;gBACF,QAAQ,EAAE,MAAM;aACnB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,UAAU,CACb,MAAc,EACd,WAA0B;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,2BAA2B;YAChC,IAAI,EAAE;gBACF,QAAQ,EAAE,MAAM;aACnB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,OAAO,CACV,MAAc;QAEd,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,oBAAoB;YACzB,IAAI,EAAE;gBACF,QAAQ,EAAE,MAAM;aACnB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AAvHD,oCAuHC"}
|
package/dist/webhooks/types.d.ts
CHANGED
|
@@ -26,30 +26,12 @@ export interface WebhookEvent<M, T extends EntityCreatedPayload<M> | EntityUpdat
|
|
|
26
26
|
type: WebhookEventType;
|
|
27
27
|
timestamp: string;
|
|
28
28
|
}
|
|
29
|
-
/** todo export case dto from openapi schema */
|
|
30
|
-
export declare enum CaseStatus {
|
|
31
|
-
NEW = "NEW",
|
|
32
|
-
UNDER_INVESTIGATION = "UNDER_INVESTIGATION",
|
|
33
|
-
PENDING_EDD = "PENDING_EDD",
|
|
34
|
-
PENDING_RFI = "PENDING_RFI",
|
|
35
|
-
PENDING_REVIEW = "PENDING_REVIEW",
|
|
36
|
-
CLOSED_DISMISSED = "CLOSED_DISMISSED",
|
|
37
|
-
CLOSED_ESCALATION_TO_SAR = "CLOSED_ESCALATION_TO_SAR"
|
|
38
|
-
}
|
|
39
|
-
export interface CaseDto {
|
|
40
|
-
id: string;
|
|
41
|
-
status: CaseStatus;
|
|
42
|
-
assigneeId?: string | null;
|
|
43
|
-
reviewersIds: string[];
|
|
44
|
-
}
|
|
45
29
|
export type IndividualClientCreatedEvent = WebhookEvent<IndividualClientDto, EntityCreatedPayload<IndividualClientDto>>;
|
|
46
30
|
export type IndividualClientUpdatedEvent = WebhookEvent<IndividualClientDto, EntityUpdatedPayload<IndividualClientDto>>;
|
|
47
31
|
export type CorporateClientCreatedEvent = WebhookEvent<CorporateClientDto, EntityCreatedPayload<CorporateClientDto>>;
|
|
48
32
|
export type CorporateClientUpdatedEvent = WebhookEvent<CorporateClientDto, EntityUpdatedPayload<CorporateClientDto>>;
|
|
49
33
|
export type AlertCreatedEvent = WebhookEvent<AlertDto, EntityCreatedPayload<AlertDto>>;
|
|
50
34
|
export type AlertUpdatedEvent = WebhookEvent<AlertDto, EntityUpdatedPayload<AlertDto>>;
|
|
51
|
-
export type CaseCreatedEvent = WebhookEvent<CaseDto, EntityCreatedPayload<CaseDto>>;
|
|
52
|
-
export type CaseUpdatedEvent = WebhookEvent<CaseDto, EntityUpdatedPayload<CaseDto>>;
|
|
53
35
|
export declare const WebhookSignatureHeader = "x-hub-signature-256";
|
|
54
36
|
export declare const WebhookIdHeader = "x-tweed-hook-id";
|
|
55
37
|
export declare const WebhookDeliveryIdHeader = "x-tweed-delivery";
|
package/dist/webhooks/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookEventTypeHeader = exports.WebhookDeliveryIdHeader = exports.WebhookIdHeader = exports.WebhookSignatureHeader = exports.
|
|
3
|
+
exports.WebhookEventTypeHeader = exports.WebhookDeliveryIdHeader = exports.WebhookIdHeader = exports.WebhookSignatureHeader = exports.WebhookEventType = void 0;
|
|
4
4
|
var WebhookEventType;
|
|
5
5
|
(function (WebhookEventType) {
|
|
6
6
|
WebhookEventType["INDIVIDUAL_CLIENT_CREATED"] = "individual_client.created";
|
|
@@ -12,17 +12,6 @@ var WebhookEventType;
|
|
|
12
12
|
WebhookEventType["CASE_CREATED"] = "case.created";
|
|
13
13
|
WebhookEventType["CASE_UPDATED"] = "case.updated";
|
|
14
14
|
})(WebhookEventType || (exports.WebhookEventType = WebhookEventType = {}));
|
|
15
|
-
/** todo export case dto from openapi schema */
|
|
16
|
-
var CaseStatus;
|
|
17
|
-
(function (CaseStatus) {
|
|
18
|
-
CaseStatus["NEW"] = "NEW";
|
|
19
|
-
CaseStatus["UNDER_INVESTIGATION"] = "UNDER_INVESTIGATION";
|
|
20
|
-
CaseStatus["PENDING_EDD"] = "PENDING_EDD";
|
|
21
|
-
CaseStatus["PENDING_RFI"] = "PENDING_RFI";
|
|
22
|
-
CaseStatus["PENDING_REVIEW"] = "PENDING_REVIEW";
|
|
23
|
-
CaseStatus["CLOSED_DISMISSED"] = "CLOSED_DISMISSED";
|
|
24
|
-
CaseStatus["CLOSED_ESCALATION_TO_SAR"] = "CLOSED_ESCALATION_TO_SAR";
|
|
25
|
-
})(CaseStatus || (exports.CaseStatus = CaseStatus = {}));
|
|
26
15
|
exports.WebhookSignatureHeader = 'x-hub-signature-256';
|
|
27
16
|
exports.WebhookIdHeader = 'x-tweed-hook-id';
|
|
28
17
|
exports.WebhookDeliveryIdHeader = 'x-tweed-delivery';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../webhooks/types.ts"],"names":[],"mappings":";;;AAIA,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,2EAAuD,CAAA;IACvD,2EAAuD,CAAA;IACvD,yEAAqD,CAAA;IACrD,yEAAqD,CAAA;IACrD,mDAA+B,CAAA;IAC/B,mDAA+B,CAAA;IAC/B,iDAA6B,CAAA;IAC7B,iDAA6B,CAAA;AAC/B,CAAC,EATW,gBAAgB,gCAAhB,gBAAgB,QAS3B;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../webhooks/types.ts"],"names":[],"mappings":";;;AAIA,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,2EAAuD,CAAA;IACvD,2EAAuD,CAAA;IACvD,yEAAqD,CAAA;IACrD,yEAAqD,CAAA;IACrD,mDAA+B,CAAA;IAC/B,mDAA+B,CAAA;IAC/B,iDAA6B,CAAA;IAC7B,iDAA6B,CAAA;AAC/B,CAAC,EATW,gBAAgB,gCAAhB,gBAAgB,QAS3B;AA2BY,QAAA,sBAAsB,GAAG,qBAAqB,CAAC;AAC/C,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,uBAAuB,GAAG,kBAAkB,CAAC;AAC7C,QAAA,sBAAsB,GAAG,eAAe,CAAC"}
|