@fiado/type-kit 1.4.90 → 1.4.92
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/bin/authentication/dtos/ChangePasswordRequest.d.ts +6 -0
- package/bin/authentication/dtos/ChangePasswordRequest.js +32 -0
- package/bin/authentication/dtos/RefreshTokenRequest.d.ts +4 -0
- package/bin/authentication/dtos/RefreshTokenRequest.js +26 -0
- package/bin/authentication/dtos/RespondToAuthChallengeRequest.d.ts +7 -0
- package/bin/authentication/dtos/RespondToAuthChallengeRequest.js +37 -0
- package/bin/authentication/dtos/SignInRequest.d.ts +9 -0
- package/bin/authentication/dtos/SignInRequest.js +47 -0
- package/bin/authentication/dtos/SignUpRequest.d.ts +7 -0
- package/bin/authentication/dtos/SignUpRequest.js +37 -0
- package/bin/authentication/dtos/UserConfirmRequest.d.ts +5 -0
- package/bin/authentication/dtos/UserConfirmRequest.js +27 -0
- package/bin/authentication/index.d.ts +6 -0
- package/bin/authentication/index.js +6 -0
- package/bin/cognitoConnector/dtos/ChangePasswordRequest.d.ts +6 -0
- package/bin/cognitoConnector/dtos/ChangePasswordRequest.js +32 -0
- package/bin/cognitoConnector/dtos/GetUserRequest.d.ts +5 -0
- package/bin/cognitoConnector/dtos/GetUserRequest.js +27 -0
- package/bin/cognitoConnector/dtos/GetUserResponse.d.ts +4 -0
- package/bin/cognitoConnector/dtos/GetUserResponse.js +6 -0
- package/bin/cognitoConnector/dtos/RefreshTokenRequest.d.ts +5 -0
- package/bin/cognitoConnector/dtos/RefreshTokenRequest.js +27 -0
- package/bin/cognitoConnector/dtos/RefreshTokenResponse.d.ts +4 -0
- package/bin/cognitoConnector/dtos/RefreshTokenResponse.js +6 -0
- package/bin/cognitoConnector/dtos/RespondToAuthChallengeRequest.d.ts +7 -0
- package/bin/cognitoConnector/dtos/RespondToAuthChallengeRequest.js +37 -0
- package/bin/cognitoConnector/dtos/SetPasswordRequest.d.ts +6 -0
- package/bin/cognitoConnector/dtos/SetPasswordRequest.js +32 -0
- package/bin/cognitoConnector/dtos/SignInRequest.d.ts +6 -0
- package/bin/cognitoConnector/dtos/SignInRequest.js +32 -0
- package/bin/cognitoConnector/dtos/SignInResponse.d.ts +6 -0
- package/bin/cognitoConnector/dtos/SignInResponse.js +6 -0
- package/bin/cognitoConnector/dtos/SignUpConfirmRequest.d.ts +4 -0
- package/bin/cognitoConnector/dtos/SignUpConfirmRequest.js +26 -0
- package/bin/cognitoConnector/dtos/SignUpRequest.d.ts +7 -0
- package/bin/cognitoConnector/dtos/SignUpRequest.js +37 -0
- package/bin/cognitoConnector/dtos/SignUpResponse.d.ts +3 -0
- package/bin/cognitoConnector/dtos/SignUpResponse.js +6 -0
- package/bin/cognitoConnector/index.d.ts +12 -0
- package/bin/cognitoConnector/index.js +29 -0
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
- package/bin/riskProfile/dtos/TransactionAlertResponse.d.ts +22 -0
- package/bin/riskProfile/dtos/TransactionAlertResponse.js +6 -0
- package/bin/riskProfile/index.d.ts +1 -0
- package/bin/riskProfile/index.js +1 -0
- package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.d.ts +5 -0
- package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.js +6 -0
- package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.d.ts +7 -0
- package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.js +6 -0
- package/package.json +1 -1
- package/src/authentication/dtos/ChangePasswordRequest.ts +17 -0
- package/src/authentication/dtos/RefreshTokenRequest.ts +13 -0
- package/src/authentication/dtos/RespondToAuthChallengeRequest.ts +25 -0
- package/src/authentication/dtos/SignInRequest.ts +30 -0
- package/src/authentication/dtos/SignUpRequest.ts +22 -0
- package/src/authentication/dtos/UserConfirmRequest.ts +14 -0
- package/src/authentication/index.ts +11 -1
- package/src/cognitoConnector/dtos/ChangePasswordRequest.ts +20 -0
- package/src/cognitoConnector/dtos/GetUserRequest.ts +13 -0
- package/src/cognitoConnector/dtos/GetUserResponse.ts +9 -0
- package/src/cognitoConnector/dtos/RefreshTokenRequest.ts +15 -0
- package/src/cognitoConnector/dtos/RefreshTokenResponse.ts +7 -0
- package/src/cognitoConnector/dtos/RespondToAuthChallengeRequest.ts +26 -0
- package/src/cognitoConnector/dtos/SetPasswordRequest.ts +20 -0
- package/src/cognitoConnector/dtos/SignInRequest.ts +21 -0
- package/src/cognitoConnector/dtos/SignInResponse.ts +11 -0
- package/src/cognitoConnector/dtos/SignUpConfirmRequest.ts +17 -0
- package/src/cognitoConnector/dtos/SignUpRequest.ts +23 -0
- package/src/cognitoConnector/dtos/SignUpResponse.ts +7 -0
- package/src/cognitoConnector/index.ts +21 -0
- package/src/riskProfile/dtos/TransactionAlertResponse.ts +43 -0
- package/src/riskProfile/index.ts +5 -0
- package/bin/account/dtos/CreateBankAccountOutput.d.ts +0 -5
- package/bin/account/dtos/CreateBankAccountOutput.js +0 -6
- package/bin/account/dtos/CreateBankAccountUserOutput.d.ts +0 -8
- package/bin/account/dtos/CreateBankAccountUserOutput.js +0 -6
- package/bin/creditContract/dto/CreditContractCreateRequest.d.ts +0 -15
- package/bin/creditContract/dto/CreditContractCreateRequest.js +0 -72
- package/bin/transaction/TransactionCreateRequest.d.ts +0 -2
- package/bin/transaction/TransactionCreateRequest.js +0 -6
- package/bin/transaction/TransactionCreateResponse.d.ts +0 -2
- package/bin/transaction/TransactionCreateResponse.js +0 -6
- package/bin/transaction/dtos/TransactionSourceEnum.d.ts +0 -5
- package/bin/transaction/dtos/TransactionSourceEnum.js +0 -9
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SignUpRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const directory_1 = require("../../directory");
|
|
15
|
+
class SignUpRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.SignUpRequest = SignUpRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], SignUpRequest.prototype, "username", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SignUpRequest.prototype, "password", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], SignUpRequest.prototype, "directoryId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], SignUpRequest.prototype, "typeOfDirectoryId", void 0);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from '../cognitoConnector/dtos/ChangePasswordRequest';
|
|
2
|
+
export * from '../cognitoConnector/dtos/GetUserResponse';
|
|
3
|
+
export * from '../cognitoConnector/dtos/GetUserRequest';
|
|
4
|
+
export * from '../cognitoConnector/dtos/RefreshTokenRequest';
|
|
5
|
+
export * from '../cognitoConnector/dtos/RefreshTokenResponse';
|
|
6
|
+
export * from '../cognitoConnector/dtos/RespondToAuthChallengeRequest';
|
|
7
|
+
export * from '../cognitoConnector/dtos/SetPasswordRequest';
|
|
8
|
+
export * from '../cognitoConnector/dtos/SignInRequest';
|
|
9
|
+
export * from '../cognitoConnector/dtos/SignInResponse';
|
|
10
|
+
export * from '../cognitoConnector/dtos/SignUpConfirmRequest';
|
|
11
|
+
export * from '../cognitoConnector/dtos/SignUpRequest';
|
|
12
|
+
export * from '../cognitoConnector/dtos/SignUpResponse';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//dtos
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(require("../cognitoConnector/dtos/ChangePasswordRequest"), exports);
|
|
19
|
+
__exportStar(require("../cognitoConnector/dtos/GetUserResponse"), exports);
|
|
20
|
+
__exportStar(require("../cognitoConnector/dtos/GetUserRequest"), exports);
|
|
21
|
+
__exportStar(require("../cognitoConnector/dtos/RefreshTokenRequest"), exports);
|
|
22
|
+
__exportStar(require("../cognitoConnector/dtos/RefreshTokenResponse"), exports);
|
|
23
|
+
__exportStar(require("../cognitoConnector/dtos/RespondToAuthChallengeRequest"), exports);
|
|
24
|
+
__exportStar(require("../cognitoConnector/dtos/SetPasswordRequest"), exports);
|
|
25
|
+
__exportStar(require("../cognitoConnector/dtos/SignInRequest"), exports);
|
|
26
|
+
__exportStar(require("../cognitoConnector/dtos/SignInResponse"), exports);
|
|
27
|
+
__exportStar(require("../cognitoConnector/dtos/SignUpConfirmRequest"), exports);
|
|
28
|
+
__exportStar(require("../cognitoConnector/dtos/SignUpRequest"), exports);
|
|
29
|
+
__exportStar(require("../cognitoConnector/dtos/SignUpResponse"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GroupDirectoryRetationsUpdateRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GroupDirectoryRetationsUpdateRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.GroupDirectoryRetationsUpdateRequest = GroupDirectoryRetationsUpdateRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.Length)(1, 20),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], GroupDirectoryRetationsUpdateRequest.prototype, "agent", void 0);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare class TransactionAlertResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
indexName: string;
|
|
4
|
+
phoneNumber: string;
|
|
5
|
+
type: string;
|
|
6
|
+
status: string;
|
|
7
|
+
notes: string;
|
|
8
|
+
reported: 1 | 0;
|
|
9
|
+
directoryId: string;
|
|
10
|
+
peopleId: string;
|
|
11
|
+
alertName: string;
|
|
12
|
+
transactionDate: string;
|
|
13
|
+
transactionNumber: string;
|
|
14
|
+
revisionEndingDate: string;
|
|
15
|
+
revisionEndingBy: string;
|
|
16
|
+
reportedDate: string;
|
|
17
|
+
reportedBy: string;
|
|
18
|
+
attachmentKeys: string[];
|
|
19
|
+
createdBy: string;
|
|
20
|
+
fileNumber: string;
|
|
21
|
+
transactionAmount: number;
|
|
22
|
+
}
|
|
@@ -6,6 +6,7 @@ export * from './dtos/TransactionAlarmQueueMessage';
|
|
|
6
6
|
export * from './dtos/UpdateTransactionAlertRequest';
|
|
7
7
|
export * from './dtos/CreateBackofficeAlarm';
|
|
8
8
|
export * from './dtos/CreatePrivateAlarm';
|
|
9
|
+
export * from './dtos/TransactionAlertResponse';
|
|
9
10
|
export * from './enums/PepLevelEnum';
|
|
10
11
|
export * from './enums/RiskFactorCategoryEnum';
|
|
11
12
|
export * from './enums/AlarmCategory';
|
package/bin/riskProfile/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./dtos/TransactionAlarmQueueMessage"), exports);
|
|
|
22
22
|
__exportStar(require("./dtos/UpdateTransactionAlertRequest"), exports);
|
|
23
23
|
__exportStar(require("./dtos/CreateBackofficeAlarm"), exports);
|
|
24
24
|
__exportStar(require("./dtos/CreatePrivateAlarm"), exports);
|
|
25
|
+
__exportStar(require("./dtos/TransactionAlertResponse"), exports);
|
|
25
26
|
__exportStar(require("./enums/PepLevelEnum"), exports);
|
|
26
27
|
__exportStar(require("./enums/RiskFactorCategoryEnum"), exports);
|
|
27
28
|
__exportStar(require("./enums/AlarmCategory"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IsNotEmpty, IsString } from "class-validator"
|
|
2
|
+
import { TypeOfDirectoryId } from "../../directory"
|
|
3
|
+
|
|
4
|
+
export class ChangePasswordRequest
|
|
5
|
+
{
|
|
6
|
+
@IsNotEmpty()
|
|
7
|
+
@IsString()
|
|
8
|
+
username: string
|
|
9
|
+
|
|
10
|
+
@IsNotEmpty()
|
|
11
|
+
@IsString()
|
|
12
|
+
newPassword: string
|
|
13
|
+
|
|
14
|
+
@IsNotEmpty()
|
|
15
|
+
@IsString()
|
|
16
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IsNotEmpty, IsString } from "class-validator";
|
|
2
|
+
import { TypeOfDirectoryId } from "../../directory";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class RespondToAuthChallengeRequest {
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
@IsString()
|
|
11
|
+
username: string
|
|
12
|
+
|
|
13
|
+
@IsNotEmpty()
|
|
14
|
+
@IsString()
|
|
15
|
+
password: string
|
|
16
|
+
|
|
17
|
+
@IsNotEmpty()
|
|
18
|
+
@IsString()
|
|
19
|
+
session: string
|
|
20
|
+
|
|
21
|
+
@IsNotEmpty()
|
|
22
|
+
@IsString()
|
|
23
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
24
|
+
|
|
25
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IsNotEmpty, IsOptional, IsString } from "class-validator"
|
|
2
|
+
import { TypeOfDirectoryId } from "../../directory"
|
|
3
|
+
|
|
4
|
+
export class SignInRequest {
|
|
5
|
+
|
|
6
|
+
@IsString()
|
|
7
|
+
@IsNotEmpty()
|
|
8
|
+
userName: string
|
|
9
|
+
|
|
10
|
+
@IsString()
|
|
11
|
+
@IsNotEmpty()
|
|
12
|
+
password: string
|
|
13
|
+
|
|
14
|
+
@IsString()
|
|
15
|
+
@IsNotEmpty()
|
|
16
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
17
|
+
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsString()
|
|
20
|
+
status: string
|
|
21
|
+
|
|
22
|
+
@IsOptional()
|
|
23
|
+
@IsString()
|
|
24
|
+
challengeName: string
|
|
25
|
+
|
|
26
|
+
@IsOptional()
|
|
27
|
+
@IsString()
|
|
28
|
+
session: string
|
|
29
|
+
|
|
30
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IsNotEmpty, IsPhoneNumber, IsString, IsUUID } from "class-validator"
|
|
2
|
+
import { TypeOfDirectoryId } from "../../directory"
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class SignUpRequest {
|
|
6
|
+
|
|
7
|
+
@IsString()
|
|
8
|
+
@IsNotEmpty()
|
|
9
|
+
phoneNumber: string
|
|
10
|
+
|
|
11
|
+
@IsNotEmpty()
|
|
12
|
+
@IsString()
|
|
13
|
+
directoryId: string
|
|
14
|
+
|
|
15
|
+
@IsString()
|
|
16
|
+
@IsNotEmpty()
|
|
17
|
+
password: string
|
|
18
|
+
|
|
19
|
+
@IsUUID()
|
|
20
|
+
@IsNotEmpty()
|
|
21
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IsNotEmpty, IsString, IsUUID } from "class-validator"
|
|
2
|
+
import { TypeOfDirectoryId } from "../../directory"
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class UserConfirmRequest {
|
|
6
|
+
|
|
7
|
+
@IsString()
|
|
8
|
+
@IsNotEmpty()
|
|
9
|
+
username: string
|
|
10
|
+
|
|
11
|
+
@IsUUID()
|
|
12
|
+
@IsNotEmpty()
|
|
13
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
14
|
+
}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
//dtos
|
|
3
|
+
export * from './dtos/ChangePasswordRequest';
|
|
4
|
+
export * from './dtos/RefreshTokenRequest';
|
|
5
|
+
export * from './dtos/RespondToAuthChallengeRequest';
|
|
6
|
+
export * from './dtos/SignInRequest';
|
|
7
|
+
|
|
3
8
|
export * from './dtos/SignUpAdditionalRequest';
|
|
4
|
-
export * from './dtos/SignUpAdditionalResponse';
|
|
9
|
+
export * from './dtos/SignUpAdditionalResponse';
|
|
10
|
+
export * from './dtos/SignUpRequest';
|
|
11
|
+
export * from './dtos/UserConfirmRequest';
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IsNotEmpty, IsString } from "class-validator"
|
|
2
|
+
import { TypeOfDirectoryId } from "../../directory"
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ChangePasswordRequest {
|
|
7
|
+
|
|
8
|
+
@IsString()
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
username: string
|
|
11
|
+
|
|
12
|
+
@IsString()
|
|
13
|
+
@IsNotEmpty()
|
|
14
|
+
newPassword: string
|
|
15
|
+
|
|
16
|
+
@IsString()
|
|
17
|
+
@IsNotEmpty()
|
|
18
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
19
|
+
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IsNotEmpty, IsString } from "class-validator"
|
|
2
|
+
import { TypeOfDirectoryId } from "../../directory"
|
|
3
|
+
|
|
4
|
+
export class GetUserRequest {
|
|
5
|
+
|
|
6
|
+
@IsString()
|
|
7
|
+
@IsNotEmpty()
|
|
8
|
+
username: string
|
|
9
|
+
|
|
10
|
+
@IsString()
|
|
11
|
+
@IsNotEmpty()
|
|
12
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IsNotEmpty, IsString } from "class-validator"
|
|
2
|
+
import { TypeOfDirectoryId } from "../../directory"
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class RefreshTokenRequest {
|
|
7
|
+
|
|
8
|
+
@IsString()
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
refreshToken: string
|
|
11
|
+
|
|
12
|
+
@IsString()
|
|
13
|
+
@IsNotEmpty()
|
|
14
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IsNotEmpty, IsString } from "class-validator"
|
|
2
|
+
import { TypeOfDirectoryId } from "../../directory"
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class RespondToAuthChallengeRequest {
|
|
6
|
+
|
|
7
|
+
@IsString()
|
|
8
|
+
@IsNotEmpty()
|
|
9
|
+
username: string
|
|
10
|
+
|
|
11
|
+
@IsString()
|
|
12
|
+
@IsNotEmpty()
|
|
13
|
+
newPassword: string
|
|
14
|
+
|
|
15
|
+
@IsString()
|
|
16
|
+
@IsNotEmpty()
|
|
17
|
+
session: string
|
|
18
|
+
|
|
19
|
+
@IsString()
|
|
20
|
+
@IsNotEmpty()
|
|
21
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IsNotEmpty, IsString } from "class-validator"
|
|
2
|
+
import { TypeOfDirectoryId } from "../../directory"
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class SetPasswordRequest {
|
|
7
|
+
|
|
8
|
+
@IsString()
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
username: string
|
|
11
|
+
|
|
12
|
+
@IsString()
|
|
13
|
+
@IsNotEmpty()
|
|
14
|
+
newPassowrd: string
|
|
15
|
+
|
|
16
|
+
@IsNotEmpty()
|
|
17
|
+
@IsString()
|
|
18
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
19
|
+
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IsNotEmpty, IsString } from "class-validator"
|
|
2
|
+
import { TypeOfDirectoryId } from "../../directory"
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class SignInRequest
|
|
8
|
+
{
|
|
9
|
+
@IsString()
|
|
10
|
+
@IsNotEmpty()
|
|
11
|
+
username: string
|
|
12
|
+
|
|
13
|
+
@IsString()
|
|
14
|
+
@IsNotEmpty()
|
|
15
|
+
password: string
|
|
16
|
+
|
|
17
|
+
@IsString()
|
|
18
|
+
@IsNotEmpty()
|
|
19
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
20
|
+
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IsNotEmpty, IsString } from "class-validator"
|
|
2
|
+
import { TypeOfDirectoryId } from "../../directory"
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class SignUpRequest {
|
|
7
|
+
|
|
8
|
+
@IsString()
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
username: string
|
|
11
|
+
|
|
12
|
+
@IsString()
|
|
13
|
+
@IsNotEmpty()
|
|
14
|
+
password: string
|
|
15
|
+
|
|
16
|
+
@IsString()
|
|
17
|
+
@IsNotEmpty()
|
|
18
|
+
directoryId: string
|
|
19
|
+
|
|
20
|
+
@IsString()
|
|
21
|
+
@IsNotEmpty()
|
|
22
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
23
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
//dtos
|
|
3
|
+
|
|
4
|
+
export * from '../cognitoConnector/dtos/ChangePasswordRequest';
|
|
5
|
+
export * from '../cognitoConnector/dtos/GetUserResponse';
|
|
6
|
+
export * from '../cognitoConnector/dtos/GetUserRequest';
|
|
7
|
+
export * from '../cognitoConnector/dtos/RefreshTokenRequest';
|
|
8
|
+
export * from '../cognitoConnector/dtos/RefreshTokenResponse';
|
|
9
|
+
export * from '../cognitoConnector/dtos/RespondToAuthChallengeRequest';
|
|
10
|
+
export * from '../cognitoConnector/dtos/SetPasswordRequest';
|
|
11
|
+
export * from '../cognitoConnector/dtos/SignInRequest';
|
|
12
|
+
export * from '../cognitoConnector/dtos/SignInResponse';
|
|
13
|
+
export * from '../cognitoConnector/dtos/SignUpConfirmRequest';
|
|
14
|
+
export * from '../cognitoConnector/dtos/SignUpRequest';
|
|
15
|
+
export * from '../cognitoConnector/dtos/SignUpResponse';
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export class TransactionAlertResponse {
|
|
2
|
+
|
|
3
|
+
id!: string;
|
|
4
|
+
|
|
5
|
+
indexName!: string;
|
|
6
|
+
|
|
7
|
+
phoneNumber!: string;
|
|
8
|
+
|
|
9
|
+
type!: string;
|
|
10
|
+
|
|
11
|
+
status!: string;
|
|
12
|
+
|
|
13
|
+
notes!: string;
|
|
14
|
+
|
|
15
|
+
reported!: 1 | 0;
|
|
16
|
+
|
|
17
|
+
directoryId!: string;
|
|
18
|
+
|
|
19
|
+
peopleId!: string;
|
|
20
|
+
|
|
21
|
+
alertName!: string;
|
|
22
|
+
|
|
23
|
+
transactionDate!: string;
|
|
24
|
+
|
|
25
|
+
transactionNumber!: string;
|
|
26
|
+
|
|
27
|
+
revisionEndingDate!: string;
|
|
28
|
+
|
|
29
|
+
revisionEndingBy!: string;
|
|
30
|
+
|
|
31
|
+
reportedDate!: string;
|
|
32
|
+
|
|
33
|
+
reportedBy!: string;
|
|
34
|
+
|
|
35
|
+
attachmentKeys!: string[];
|
|
36
|
+
|
|
37
|
+
createdBy!: string;
|
|
38
|
+
|
|
39
|
+
fileNumber!: string;
|
|
40
|
+
|
|
41
|
+
transactionAmount!: number;
|
|
42
|
+
}
|
|
43
|
+
|
package/src/riskProfile/index.ts
CHANGED
|
@@ -6,7 +6,12 @@ export * from './dtos/TransactionAlarmQueueMessage';
|
|
|
6
6
|
export * from './dtos/UpdateTransactionAlertRequest';
|
|
7
7
|
export * from './dtos/CreateBackofficeAlarm';
|
|
8
8
|
export * from './dtos/CreatePrivateAlarm';
|
|
9
|
+
export * from './dtos/TransactionAlertResponse';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
9
13
|
export * from './enums/PepLevelEnum';
|
|
10
14
|
export * from './enums/RiskFactorCategoryEnum';
|
|
11
15
|
export * from './enums/AlarmCategory';
|
|
12
16
|
export * from './enums/AlarmOperationType';
|
|
17
|
+
|