@fiado/type-kit 1.0.57 → 1.0.59
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/.idea/aws.xml +11 -0
- package/.idea/fiado-type-kit.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/README.md +70 -70
- package/bin/account/dtos/AccountCreateRequest.d.ts +2 -2
- package/bin/account/dtos/AccountCreateRequest.js +6 -6
- package/bin/account/index.d.ts +0 -4
- package/bin/account/index.js +0 -6
- package/bin/index.d.ts +2 -0
- package/bin/index.js +3 -1
- package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +28 -0
- package/bin/pomelo/dtos/PomeloCreateUserRequest.js +2 -0
- package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +35 -0
- package/bin/pomelo/dtos/PomeloCreateUserResponse.js +2 -0
- package/bin/pomelo/enums/CountryEnum.d.ts +8 -0
- package/bin/pomelo/enums/CountryEnum.js +12 -0
- package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +7 -0
- package/bin/pomelo/enums/IdentificationTypeEnum.js +11 -0
- package/bin/pomelo/enums/SexEnum.d.ts +4 -0
- package/bin/pomelo/enums/SexEnum.js +8 -0
- package/bin/pomelo/enums/TaxTypeEnum.d.ts +7 -0
- package/bin/pomelo/enums/TaxTypeEnum.js +11 -0
- package/bin/pomelo/enums/UserStatusEnum.d.ts +4 -0
- package/bin/pomelo/enums/UserStatusEnum.js +8 -0
- package/bin/pomelo/index.d.ts +7 -0
- package/bin/pomelo/index.js +25 -0
- package/bin/tern/dtos/TernAddress.d.ts +8 -0
- package/bin/tern/dtos/TernAddress.js +40 -0
- package/bin/tern/dtos/TernCreateAccountRequest.d.ts +7 -0
- package/bin/tern/dtos/TernCreateAccountRequest.js +33 -0
- package/bin/tern/dtos/TernCreateAccountResponse.d.ts +5 -0
- package/bin/tern/dtos/TernCreateAccountResponse.js +25 -0
- package/bin/tern/dtos/TernCreateUserRequest.d.ts +15 -0
- package/bin/tern/dtos/TernCreateUserRequest.js +70 -0
- package/bin/tern/dtos/TernCreateUserResponse.d.ts +8 -0
- package/bin/tern/dtos/TernCreateUserResponse.js +37 -0
- package/bin/tern/dtos/TernGetAccountRequest.d.ts +5 -0
- package/bin/tern/dtos/TernGetAccountRequest.js +25 -0
- package/bin/tern/dtos/TernGetAccountResponse.d.ts +22 -0
- package/bin/tern/dtos/TernGetAccountResponse.js +87 -0
- package/bin/tern/dtos/TernGetUserRequest.d.ts +3 -0
- package/bin/tern/dtos/TernGetUserRequest.js +20 -0
- package/bin/tern/dtos/TernGetUserResponse.d.ts +24 -0
- package/bin/tern/dtos/TernGetUserResponse.js +96 -0
- package/bin/tern/enums/TernAccountStatusEnum.d.ts +4 -0
- package/bin/tern/enums/TernAccountStatusEnum.js +8 -0
- package/bin/tern/enums/TernAccountTypeEnum.d.ts +5 -0
- package/bin/tern/enums/TernAccountTypeEnum.js +9 -0
- package/bin/tern/index.d.ts +11 -0
- package/bin/tern/index.js +29 -0
- package/package.json +23 -23
- package/src/account/dtos/AccountCreateRequest.ts +58 -58
- package/src/account/dtos/AccountCreateResponse.ts +7 -7
- package/src/account/index.ts +4 -16
- package/src/address/dtos/AddressBase.ts +130 -130
- package/src/address/dtos/AddressCreateRequest.ts +6 -6
- package/src/address/dtos/AddressResponse.ts +41 -41
- package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
- package/src/address/dtos/Geometry.ts +4 -4
- package/src/address/dtos/OfficeDetails.ts +30 -30
- package/src/address/dtos/OperationSchedule.ts +8 -8
- package/src/address/dtos/Place.ts +83 -83
- package/src/address/dtos/Shipping.ts +36 -36
- package/src/address/dtos/Timezone.ts +5 -5
- package/src/address/enums/AddressProvider.ts +10 -10
- package/src/address/enums/AddressStatus.ts +9 -9
- package/src/address/index.ts +15 -15
- package/src/app/enums/App.ts +10 -10
- package/src/app/index.ts +3 -3
- package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
- package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
- package/src/authentication/index.ts +3 -3
- package/src/card/dtos/CardActivateRequest.ts +12 -12
- package/src/card/dtos/CardApplicationRequest.ts +20 -20
- package/src/card/dtos/CardBalanceResponse.ts +10 -10
- package/src/card/dtos/CardCreateAdditionalRequest.ts +40 -40
- package/src/card/dtos/CardCreateRequest.ts +141 -141
- package/src/card/dtos/CardResponse.ts +4 -4
- package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
- package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
- package/src/card/dtos/CardUpdateRequest.ts +13 -13
- package/src/card/enums/Brand.ts +7 -7
- package/src/card/enums/CardIssuanceStatus.ts +5 -5
- package/src/card/enums/CardType.ts +4 -4
- package/src/card/enums/CardUpdateKey.ts +4 -4
- package/src/card/enums/CreditOrDebit.ts +5 -5
- package/src/card/enums/IssuanceType.ts +5 -5
- package/src/card/enums/NominatedOrInnominated.ts +8 -8
- package/src/card/enums/OwnershipType.ts +3 -3
- package/src/card/enums/ShippingStatus.ts +8 -8
- package/src/card/enums/Status.ts +5 -5
- package/src/card/enums/UpdateKey.ts +5 -5
- package/src/card/enums/VirtualOrPhysical.ts +6 -6
- package/src/card/index.ts +28 -28
- package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
- package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
- package/src/country/enums/Country.ts +6 -6
- package/src/country/enums/CountryId.ts +6 -6
- package/src/country/index.ts +5 -5
- package/src/currency/dtos/CurrencyResponse.ts +8 -8
- package/src/currency/index.ts +2 -2
- package/src/directory/dtos/DirectoryResponse.ts +17 -17
- package/src/directory/dtos/External.ts +6 -6
- package/src/directory/enums/Profile.ts +6 -6
- package/src/directory/enums/Scope.ts +7 -7
- package/src/directory/enums/Status.ts +8 -8
- package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
- package/src/directory/index.ts +7 -7
- package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
- package/src/eventBridge/index.ts +1 -1
- package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
- package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
- package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
- package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
- package/src/exchangeRate/index.ts +8 -8
- package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
- package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
- package/src/genericMessage/index.ts +1 -1
- package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
- package/src/group/dtos/GroupCreateRequest.ts +54 -54
- package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
- package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
- package/src/group/dtos/GroupResponse.ts +17 -17
- package/src/group/dtos/GroupUpdateRequest.ts +31 -31
- package/src/group/enums/GroupAction.ts +8 -8
- package/src/group/enums/GroupStatus.ts +6 -6
- package/src/group/enums/RelationStatus.ts +8 -8
- package/src/group/enums/RelationType.ts +9 -9
- package/src/group/index.ts +18 -18
- package/src/header/TokenPayload.ts +17 -17
- package/src/header/index.ts +3 -3
- package/src/helpers/ValidationUtils.ts +32 -32
- package/src/helpers/constans/regex.ts +12 -12
- package/src/identity/dtos/IdentificationDocument.ts +24 -24
- package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
- package/src/identity/dtos/PeopleResponse.ts +80 -80
- package/src/identity/dtos/TypeOfDocument.ts +11 -11
- package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
- package/src/identity/enums/SexDocument.ts +6 -6
- package/src/identity/index.ts +11 -11
- package/src/index.ts +24 -22
- package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
- package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
- package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
- package/src/notificationMessages/enums/NotificationId.ts +13 -13
- package/src/notificationMessages/index.ts +5 -5
- package/src/pomelo/dtos/PomeloCreateUserRequest.ts +31 -0
- package/src/pomelo/dtos/PomeloCreateUserResponse.ts +36 -0
- package/src/pomelo/enums/CountryEnum.ts +9 -0
- package/src/pomelo/enums/IdentificationTypeEnum.ts +11 -0
- package/src/pomelo/enums/SexEnum.ts +4 -0
- package/src/pomelo/enums/TaxTypeEnum.ts +8 -0
- package/src/pomelo/enums/UserStatusEnum.ts +7 -0
- package/src/pomelo/index.ts +11 -0
- package/src/provider/enums/Provider.ts +5 -5
- package/src/provider/index.ts +1 -1
- package/src/queue/dtos/QueueMessageBase.ts +13 -13
- package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
- package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
- package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
- package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
- package/src/sessionActivity/index.ts +2 -2
- package/src/tern/dtos/TernAddress.ts +21 -0
- package/src/tern/dtos/TernCreateAccountRequest.ts +16 -0
- package/src/tern/dtos/TernCreateAccountResponse.ts +10 -0
- package/src/tern/dtos/TernCreateUserRequest.ts +47 -0
- package/src/tern/dtos/TernCreateUserResponse.ts +19 -0
- package/src/tern/dtos/TernGetAccountRequest.ts +10 -0
- package/src/tern/dtos/TernGetAccountResponse.ts +57 -0
- package/src/tern/dtos/TernGetUserRequest.ts +6 -0
- package/src/tern/dtos/TernGetUserResponse.ts +64 -0
- package/src/tern/enums/TernAccountStatusEnum.ts +4 -0
- package/src/tern/enums/TernAccountTypeEnum.ts +5 -0
- package/src/tern/index.ts +14 -0
- package/src/account/enums/AccountStatus.ts +0 -7
|
@@ -0,0 +1,70 @@
|
|
|
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.TernCreateUserRequest = void 0;
|
|
13
|
+
const identity_1 = require("../../identity");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const regex_1 = require("../../helpers/constans/regex");
|
|
16
|
+
const directory_1 = require("../../directory");
|
|
17
|
+
const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberConstraint");
|
|
18
|
+
const address_1 = require("../../address");
|
|
19
|
+
class TernCreateUserRequest {
|
|
20
|
+
}
|
|
21
|
+
exports.TernCreateUserRequest = TernCreateUserRequest;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.Matches)(regex_1.regexUuidV4, {
|
|
25
|
+
message: 'directoryId must be a valid UUID v4',
|
|
26
|
+
}),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], TernCreateUserRequest.prototype, "directoryId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsEnum)(directory_1.TypeOfDirectoryId),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], TernCreateUserRequest.prototype, "typeOfDirectoryId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], TernCreateUserRequest.prototype, "firstName", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], TernCreateUserRequest.prototype, "lastName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, IsPhoneNumberConstraint_1.IsPhoneNumberFiado)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], TernCreateUserRequest.prototype, "phoneNumber", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.ValidateNested)(),
|
|
47
|
+
__metadata("design:type", address_1.AddressResponse)
|
|
48
|
+
], TernCreateUserRequest.prototype, "address", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsEmail)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], TernCreateUserRequest.prototype, "email", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsDateString)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], TernCreateUserRequest.prototype, "dob", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
(0, class_validator_1.Length)(1, 30),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], TernCreateUserRequest.prototype, "documentNumber", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsString)(),
|
|
64
|
+
(0, class_validator_1.Length)(1, 30),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], TernCreateUserRequest.prototype, "documentType", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsEnum)(identity_1.SexDocument),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], TernCreateUserRequest.prototype, "gender", void 0);
|
|
@@ -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.TernCreateUserResponse = void 0;
|
|
13
|
+
const provider_1 = require("../../provider");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class TernCreateUserResponse {
|
|
16
|
+
}
|
|
17
|
+
exports.TernCreateUserResponse = TernCreateUserResponse;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], TernCreateUserResponse.prototype, "externalUserId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], TernCreateUserResponse.prototype, "externalAccountId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsEnum)(provider_1.Provider),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], TernCreateUserResponse.prototype, "provider", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], TernCreateUserResponse.prototype, "accountNumber", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], TernCreateUserResponse.prototype, "routingNumber", void 0);
|
|
@@ -0,0 +1,25 @@
|
|
|
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.TernGetAccountRequest = void 0;
|
|
13
|
+
const TernAccountTypeEnum_1 = require("../enums/TernAccountTypeEnum");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class TernGetAccountRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.TernGetAccountRequest = TernGetAccountRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], TernGetAccountRequest.prototype, "externalAccountId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsEnum)(TernAccountTypeEnum_1.TernAccountTypeEnum),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], TernGetAccountRequest.prototype, "accountType", void 0);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TernAccountTypeEnum } from "../enums/TernAccountTypeEnum";
|
|
2
|
+
import { TernAddress } from "./TernAddress";
|
|
3
|
+
import { TernAccountStatusEnum } from "../enums/TernAccountStatusEnum";
|
|
4
|
+
export declare class TernGetAccountResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
businessId: string;
|
|
7
|
+
userId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
accountNumber: string;
|
|
10
|
+
routingNumber: string;
|
|
11
|
+
accountType: TernAccountTypeEnum;
|
|
12
|
+
active: boolean;
|
|
13
|
+
isPrimary: boolean;
|
|
14
|
+
createdDate: string;
|
|
15
|
+
updatedDate: string;
|
|
16
|
+
deletedDate: string;
|
|
17
|
+
updatedBy: string;
|
|
18
|
+
balance: number;
|
|
19
|
+
address?: TernAddress;
|
|
20
|
+
kybStatus?: string;
|
|
21
|
+
statusName?: TernAccountStatusEnum;
|
|
22
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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.TernGetAccountResponse = void 0;
|
|
13
|
+
const TernAccountTypeEnum_1 = require("../enums/TernAccountTypeEnum");
|
|
14
|
+
const TernAddress_1 = require("./TernAddress");
|
|
15
|
+
const TernAccountStatusEnum_1 = require("../enums/TernAccountStatusEnum");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
class TernGetAccountResponse {
|
|
18
|
+
}
|
|
19
|
+
exports.TernGetAccountResponse = TernGetAccountResponse;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], TernGetAccountResponse.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], TernGetAccountResponse.prototype, "businessId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], TernGetAccountResponse.prototype, "userId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], TernGetAccountResponse.prototype, "name", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], TernGetAccountResponse.prototype, "accountNumber", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], TernGetAccountResponse.prototype, "routingNumber", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsEnum)(TernAccountTypeEnum_1.TernAccountTypeEnum),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], TernGetAccountResponse.prototype, "accountType", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsBoolean)(),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], TernGetAccountResponse.prototype, "active", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsBoolean)(),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], TernGetAccountResponse.prototype, "isPrimary", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsString)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], TernGetAccountResponse.prototype, "createdDate", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], TernGetAccountResponse.prototype, "updatedDate", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsString)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], TernGetAccountResponse.prototype, "deletedDate", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsString)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], TernGetAccountResponse.prototype, "updatedBy", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsNumber)(),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], TernGetAccountResponse.prototype, "balance", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.ValidateNested)(),
|
|
78
|
+
__metadata("design:type", TernAddress_1.TernAddress)
|
|
79
|
+
], TernGetAccountResponse.prototype, "address", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_validator_1.IsString)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], TernGetAccountResponse.prototype, "kybStatus", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_validator_1.IsEnum)(TernAccountStatusEnum_1.TernAccountStatusEnum),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], TernGetAccountResponse.prototype, "statusName", void 0);
|
|
@@ -0,0 +1,20 @@
|
|
|
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.TernGetUserRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class TernGetUserRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.TernGetUserRequest = TernGetUserRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], TernGetUserRequest.prototype, "externalUserId", void 0);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SexDocument } from "../../identity";
|
|
2
|
+
import { TernAccountStatusEnum } from "../enums/TernAccountStatusEnum";
|
|
3
|
+
import { TernAddress } from "./TernAddress";
|
|
4
|
+
export declare class TernGetUserResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
typeOfUserId: string;
|
|
7
|
+
dob: string;
|
|
8
|
+
name: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
phoneNumber: string;
|
|
11
|
+
email: string;
|
|
12
|
+
address?: TernAddress;
|
|
13
|
+
status: TernAccountStatusEnum;
|
|
14
|
+
sex?: SexDocument;
|
|
15
|
+
documentNumber: string;
|
|
16
|
+
typeOfDocumentId?: string;
|
|
17
|
+
countryId: string;
|
|
18
|
+
userAccountIds?: string[];
|
|
19
|
+
createdDate?: string;
|
|
20
|
+
updatedDate?: string;
|
|
21
|
+
deletedDate?: string;
|
|
22
|
+
updatedBy?: string;
|
|
23
|
+
accountIds?: number[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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.TernGetUserResponse = void 0;
|
|
13
|
+
const identity_1 = require("../../identity");
|
|
14
|
+
const TernAccountStatusEnum_1 = require("../enums/TernAccountStatusEnum");
|
|
15
|
+
const TernAddress_1 = require("./TernAddress");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberConstraint");
|
|
18
|
+
class TernGetUserResponse {
|
|
19
|
+
}
|
|
20
|
+
exports.TernGetUserResponse = TernGetUserResponse;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], TernGetUserResponse.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], TernGetUserResponse.prototype, "typeOfUserId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], TernGetUserResponse.prototype, "dob", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], TernGetUserResponse.prototype, "name", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], TernGetUserResponse.prototype, "lastName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, IsPhoneNumberConstraint_1.IsPhoneNumberFiado)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], TernGetUserResponse.prototype, "phoneNumber", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsEmail)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], TernGetUserResponse.prototype, "email", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.ValidateNested)(),
|
|
51
|
+
__metadata("design:type", TernAddress_1.TernAddress)
|
|
52
|
+
], TernGetUserResponse.prototype, "address", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsEnum)(TernAccountStatusEnum_1.TernAccountStatusEnum),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], TernGetUserResponse.prototype, "status", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsEnum)(identity_1.SexDocument),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], TernGetUserResponse.prototype, "sex", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsString)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], TernGetUserResponse.prototype, "documentNumber", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsString)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], TernGetUserResponse.prototype, "typeOfDocumentId", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], TernGetUserResponse.prototype, "countryId", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_validator_1.IsArray)(),
|
|
75
|
+
__metadata("design:type", Array)
|
|
76
|
+
], TernGetUserResponse.prototype, "userAccountIds", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsString)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], TernGetUserResponse.prototype, "createdDate", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsString)(),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], TernGetUserResponse.prototype, "updatedDate", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, class_validator_1.IsString)(),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], TernGetUserResponse.prototype, "deletedDate", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_validator_1.IsString)(),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], TernGetUserResponse.prototype, "updatedBy", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_validator_1.IsArray)(),
|
|
95
|
+
__metadata("design:type", Array)
|
|
96
|
+
], TernGetUserResponse.prototype, "accountIds", void 0);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TernAccountStatusEnum = void 0;
|
|
4
|
+
var TernAccountStatusEnum;
|
|
5
|
+
(function (TernAccountStatusEnum) {
|
|
6
|
+
TernAccountStatusEnum["ACTIVE"] = "ACTIVE";
|
|
7
|
+
TernAccountStatusEnum["INACTIVE"] = "INACTIVE";
|
|
8
|
+
})(TernAccountStatusEnum || (exports.TernAccountStatusEnum = TernAccountStatusEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TernAccountTypeEnum = void 0;
|
|
4
|
+
var TernAccountTypeEnum;
|
|
5
|
+
(function (TernAccountTypeEnum) {
|
|
6
|
+
TernAccountTypeEnum["CARD_ISSUING"] = "Card Issuing";
|
|
7
|
+
TernAccountTypeEnum["USER"] = "USER";
|
|
8
|
+
TernAccountTypeEnum["BUSINESS"] = "BUSINESS";
|
|
9
|
+
})(TernAccountTypeEnum || (exports.TernAccountTypeEnum = TernAccountTypeEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './dtos/TernCreateUserRequest';
|
|
2
|
+
export * from './dtos/TernCreateUserResponse';
|
|
3
|
+
export * from './dtos/TernCreateAccountRequest';
|
|
4
|
+
export * from './dtos/TernCreateAccountResponse';
|
|
5
|
+
export * from './dtos/TernGetAccountRequest';
|
|
6
|
+
export * from './dtos/TernGetAccountResponse';
|
|
7
|
+
export * from './dtos/TernGetUserRequest';
|
|
8
|
+
export * from './dtos/TernGetUserResponse';
|
|
9
|
+
export * from './dtos/TernAddress';
|
|
10
|
+
export * from './enums/TernAccountTypeEnum';
|
|
11
|
+
export * from './enums/TernAccountStatusEnum';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// DTOs
|
|
18
|
+
__exportStar(require("./dtos/TernCreateUserRequest"), exports);
|
|
19
|
+
__exportStar(require("./dtos/TernCreateUserResponse"), exports);
|
|
20
|
+
__exportStar(require("./dtos/TernCreateAccountRequest"), exports);
|
|
21
|
+
__exportStar(require("./dtos/TernCreateAccountResponse"), exports);
|
|
22
|
+
__exportStar(require("./dtos/TernGetAccountRequest"), exports);
|
|
23
|
+
__exportStar(require("./dtos/TernGetAccountResponse"), exports);
|
|
24
|
+
__exportStar(require("./dtos/TernGetUserRequest"), exports);
|
|
25
|
+
__exportStar(require("./dtos/TernGetUserResponse"), exports);
|
|
26
|
+
__exportStar(require("./dtos/TernAddress"), exports);
|
|
27
|
+
// ENUMS
|
|
28
|
+
__exportStar(require("./enums/TernAccountTypeEnum"), exports);
|
|
29
|
+
__exportStar(require("./enums/TernAccountStatusEnum"), exports);
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fiado/type-kit",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "bin/index.js",
|
|
6
|
-
"types": "bin/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "jest",
|
|
9
|
-
"build": "tsc"
|
|
10
|
-
},
|
|
11
|
-
"keywords": [],
|
|
12
|
-
"author": "Fiado Inc",
|
|
13
|
-
"license": "ISC",
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@types/node": "^20.11.20",
|
|
16
|
-
"install": "^0.13.0",
|
|
17
|
-
"npm": "^10.4.0",
|
|
18
|
-
"typescript": "^5.3.3"
|
|
19
|
-
},
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"class-transformer": "^0.5.1",
|
|
22
|
-
"class-validator": "^0.14.1"
|
|
23
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fiado/type-kit",
|
|
3
|
+
"version": "1.0.59",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "bin/index.js",
|
|
6
|
+
"types": "bin/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "jest",
|
|
9
|
+
"build": "tsc"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [],
|
|
12
|
+
"author": "Fiado Inc",
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@types/node": "^20.11.20",
|
|
16
|
+
"install": "^0.13.0",
|
|
17
|
+
"npm": "^10.4.0",
|
|
18
|
+
"typescript": "^5.3.3"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"class-transformer": "^0.5.1",
|
|
22
|
+
"class-validator": "^0.14.1"
|
|
23
|
+
}
|
|
24
24
|
}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { IsEmail, IsEnum, IsString,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
export class AccountCreateRequest {
|
|
10
|
-
|
|
11
|
-
@IsString()
|
|
12
|
-
@Matches(regexUuidV4,
|
|
13
|
-
{
|
|
14
|
-
message: 'directoryId must be a valid UUID v4',
|
|
15
|
-
})
|
|
16
|
-
directoryId: string;
|
|
17
|
-
|
|
18
|
-
@IsEnum(TypeOfDirectoryId)
|
|
19
|
-
typeOfDirectoryId: string;
|
|
20
|
-
|
|
21
|
-
@IsString()
|
|
22
|
-
firstName: string;
|
|
23
|
-
|
|
24
|
-
@IsString()
|
|
25
|
-
lastName: string;
|
|
26
|
-
|
|
27
|
-
@IsPhoneNumberFiado()
|
|
28
|
-
phoneNumber: string;
|
|
29
|
-
|
|
30
|
-
@ValidateNested()
|
|
31
|
-
address: AddressResponse;
|
|
32
|
-
|
|
33
|
-
@IsEmail()
|
|
34
|
-
email: string;
|
|
35
|
-
|
|
36
|
-
@IsDateString()
|
|
37
|
-
dob: string;
|
|
38
|
-
|
|
39
|
-
@IsString()
|
|
40
|
-
@Length(1, 30)
|
|
41
|
-
documentNumber: string;
|
|
42
|
-
|
|
43
|
-
@IsString()
|
|
44
|
-
@Length(1, 30)
|
|
45
|
-
documentType: string;
|
|
46
|
-
|
|
47
|
-
@IsEnum(SexDocument)
|
|
48
|
-
gender: SexDocument;
|
|
49
|
-
|
|
50
|
-
@IsString()
|
|
51
|
-
externalClientId: string;
|
|
52
|
-
|
|
53
|
-
@IsString()
|
|
54
|
-
externalUserId: string;
|
|
55
|
-
|
|
56
|
-
@IsEnum(Country)
|
|
57
|
-
countryId: Country;
|
|
58
|
-
}
|
|
1
|
+
import {IsDateString, IsEmail, IsEnum, IsString, Length, Matches, ValidateNested} from 'class-validator';
|
|
2
|
+
import {AddressResponse} from "../../address";
|
|
3
|
+
import {Country} from "../../country";
|
|
4
|
+
import {regexUuidV4} from '../../helpers/constans/regex';
|
|
5
|
+
import {TypeOfDirectoryId} from '../../directory';
|
|
6
|
+
import {IsPhoneNumberFiado} from '../../card/validations/IsPhoneNumberConstraint';
|
|
7
|
+
import {SexDocument} from '../../identity';
|
|
8
|
+
|
|
9
|
+
export class AccountCreateRequest {
|
|
10
|
+
|
|
11
|
+
@IsString()
|
|
12
|
+
@Matches(regexUuidV4,
|
|
13
|
+
{
|
|
14
|
+
message: 'directoryId must be a valid UUID v4',
|
|
15
|
+
})
|
|
16
|
+
directoryId: string;
|
|
17
|
+
|
|
18
|
+
@IsEnum(TypeOfDirectoryId)
|
|
19
|
+
typeOfDirectoryId: string;
|
|
20
|
+
|
|
21
|
+
@IsString()
|
|
22
|
+
firstName: string;
|
|
23
|
+
|
|
24
|
+
@IsString()
|
|
25
|
+
lastName: string;
|
|
26
|
+
|
|
27
|
+
@IsPhoneNumberFiado()
|
|
28
|
+
phoneNumber: string;
|
|
29
|
+
|
|
30
|
+
@ValidateNested()
|
|
31
|
+
address: AddressResponse;
|
|
32
|
+
|
|
33
|
+
@IsEmail()
|
|
34
|
+
email: string;
|
|
35
|
+
|
|
36
|
+
@IsDateString()
|
|
37
|
+
dob: string;
|
|
38
|
+
|
|
39
|
+
@IsString()
|
|
40
|
+
@Length(1, 30)
|
|
41
|
+
documentNumber: string;
|
|
42
|
+
|
|
43
|
+
@IsString()
|
|
44
|
+
@Length(1, 30)
|
|
45
|
+
documentType: string;
|
|
46
|
+
|
|
47
|
+
@IsEnum(SexDocument)
|
|
48
|
+
gender: SexDocument;
|
|
49
|
+
|
|
50
|
+
@IsString()
|
|
51
|
+
externalClientId: string;
|
|
52
|
+
|
|
53
|
+
@IsString()
|
|
54
|
+
externalUserId: string;
|
|
55
|
+
|
|
56
|
+
@IsEnum(Country)
|
|
57
|
+
countryId: Country;
|
|
58
|
+
}
|