@fiado/type-kit 1.0.62 → 1.0.64
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/account/dtos/AccountCreateRequest.d.ts +2 -2
- package/bin/account/dtos/AccountCreateRequest.js +6 -6
- package/bin/account/entities/AccountEntityBase.d.ts +10 -0
- package/bin/account/entities/AccountEntityBase.js +6 -0
- package/bin/account/enums/AccountEntityStatusEnum.d.ts +4 -0
- package/bin/account/enums/AccountEntityStatusEnum.js +8 -0
- package/bin/account/index.d.ts +4 -0
- package/bin/account/index.js +5 -0
- package/bin/address/dtos/AddressShippingCardRequest.d.ts +9 -0
- package/bin/address/dtos/AddressShippingCardRequest.js +7 -0
- package/bin/address/index.d.ts +1 -0
- package/bin/address/index.js +1 -0
- package/bin/card/enums/DeliveryChannel.d.ts +5 -0
- package/bin/card/enums/DeliveryChannel.js +9 -0
- package/bin/card/enums/ExternalShippingStatus.d.ts +14 -0
- package/bin/card/enums/ExternalShippingStatus.js +18 -0
- package/bin/card/enums/ExternalShippingStatusDetails.d.ts +54 -0
- package/bin/card/enums/ExternalShippingStatusDetails.js +58 -0
- package/bin/card/index.d.ts +3 -0
- package/bin/card/index.js +3 -0
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
- package/bin/identity/dtos/PeopleUpdateRequest.d.ts +73 -0
- package/bin/identity/dtos/PeopleUpdateRequest.js +6 -0
- package/bin/identity/index.d.ts +1 -0
- package/bin/identity/index.js +1 -0
- package/bin/index.d.ts +1 -0
- package/bin/index.js +2 -1
- 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 +1 -1
- package/src/account/entities/AccountEntityBase.ts +11 -0
- package/src/account/enums/AccountEntityStatusEnum.ts +4 -0
- package/src/account/index.ts +7 -0
- package/src/identity/dtos/PeopleUpdateRequest.ts +76 -0
- package/src/identity/index.ts +1 -0
|
@@ -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
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AccountEntityStatusEnum } from "../enums/AccountEntityStatusEnum"
|
|
2
|
+
|
|
3
|
+
export class AccountEntityBase{
|
|
4
|
+
id:string
|
|
5
|
+
directoryId:string
|
|
6
|
+
typeOfDirectoryId:string
|
|
7
|
+
peopleId:string
|
|
8
|
+
currencyId:string
|
|
9
|
+
status:AccountEntityStatusEnum
|
|
10
|
+
tenantId:string
|
|
11
|
+
}
|
package/src/account/index.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
//dtos
|
|
2
2
|
export * from './dtos/AccountCreateRequest';
|
|
3
|
+
export * from './dtos/CreateBankAccountInput';
|
|
4
|
+
export * from './dtos/CreateBankAccountUserInput';
|
|
3
5
|
export * from './dtos/AccountCreateResponse';
|
|
6
|
+
export * from './entities/AccountEntityBase';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
//Enums
|
|
10
|
+
export * from './enums/BankAccountTypeEnum';
|
|
4
11
|
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { SexDocument } from "../enums/SexDocument";
|
|
2
|
+
import { IdentificationDocument } from "./IdentificationDocument";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class PeopleUpdateRequest {
|
|
6
|
+
|
|
7
|
+
id?: string;
|
|
8
|
+
creationMethod?: string;
|
|
9
|
+
indexName?: string | null;
|
|
10
|
+
preferredName?: string | null;
|
|
11
|
+
usSuffix?: string | null;
|
|
12
|
+
usLastNames?: string | null;
|
|
13
|
+
usNames?: string | null;
|
|
14
|
+
latNames?: string | null;
|
|
15
|
+
latLastNamePaternal?: string | null;
|
|
16
|
+
latLastNameMaternal?: string | null;
|
|
17
|
+
aliasNames?: string[] | null;
|
|
18
|
+
preferredPronoun?: string | null;
|
|
19
|
+
SSN_ITIN?: string | null;
|
|
20
|
+
rfc?: string | null;
|
|
21
|
+
curp?: string | null;
|
|
22
|
+
passportNumber?: string | null;
|
|
23
|
+
countryOfPassport?: string | null;
|
|
24
|
+
documents?: IdentificationDocument[] | null;
|
|
25
|
+
countryOfBirth?: string | null;
|
|
26
|
+
dateOfBirth?: string | null;
|
|
27
|
+
stateOfBirth?: string | null;
|
|
28
|
+
nationalities?: string[] | null;
|
|
29
|
+
docSex?: SexDocument | null;
|
|
30
|
+
internalEmail?: string | null;
|
|
31
|
+
occupation?: string | null;
|
|
32
|
+
incomeSource?: string | null;
|
|
33
|
+
operationId?: string | null;
|
|
34
|
+
tenantId?: string | null;
|
|
35
|
+
photoOfpersonImageName?: string | null;
|
|
36
|
+
videoOfPersonImageName?: string | null;
|
|
37
|
+
USA_DebitAccount?: boolean;
|
|
38
|
+
MEX_DebitAccount?: boolean;
|
|
39
|
+
MEX_CreditClient?: boolean;
|
|
40
|
+
MEX_CreditAdditional?: boolean;
|
|
41
|
+
magicNumber?: boolean;
|
|
42
|
+
USA_UploadDocument?: boolean;
|
|
43
|
+
MEX_UploadDocument?: boolean;
|
|
44
|
+
videoSelfieVerified?: boolean;
|
|
45
|
+
MEX_ValidDocument?: string;
|
|
46
|
+
USA_ValidDocument?: string;
|
|
47
|
+
USA_FacematchVerified?: boolean | null;
|
|
48
|
+
MEX_FacematchVerified?: boolean | null;
|
|
49
|
+
fiadoListApproved?: boolean | null;
|
|
50
|
+
ofacListApproved?: boolean | null;
|
|
51
|
+
cnbvListApproved?: boolean | null;
|
|
52
|
+
blackListApproved?: boolean | null;
|
|
53
|
+
whiteList?: boolean | null;
|
|
54
|
+
hasOwner?: boolean;
|
|
55
|
+
older18?: boolean | null;
|
|
56
|
+
USA_Address?: boolean;
|
|
57
|
+
MEX_Address?: boolean;
|
|
58
|
+
COL_Address?: boolean;
|
|
59
|
+
GTM_Address?: boolean;
|
|
60
|
+
HND_Address?: boolean;
|
|
61
|
+
CRI_Address?: boolean;
|
|
62
|
+
PER_Address?: boolean;
|
|
63
|
+
MEX_ProofAddress?: boolean;
|
|
64
|
+
MEX_SendWish?: boolean;
|
|
65
|
+
COL_SendWish?: boolean;
|
|
66
|
+
GTM_SendWish?: boolean;
|
|
67
|
+
HND_SendWish?: boolean;
|
|
68
|
+
CRI_SendWish?: boolean;
|
|
69
|
+
PER_SendWish?: boolean;
|
|
70
|
+
USA_DebitAccountWish?: boolean;
|
|
71
|
+
MEX_DebitAccountWish?: boolean;
|
|
72
|
+
MEX_CreditAdditionalWish?: boolean;
|
|
73
|
+
MEX_CreditClientWish?: boolean;
|
|
74
|
+
SSN_ITINRequired?: boolean | null;
|
|
75
|
+
duplicateUserDetection?: boolean | null;
|
|
76
|
+
}
|
package/src/identity/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './dtos/IdentificationDocument'
|
|
|
4
4
|
export * from './dtos/PeopleCreateRequest';
|
|
5
5
|
export * from './dtos/PeopleResponse';
|
|
6
6
|
export * from './dtos/TypeOfDocument';
|
|
7
|
+
export * from './dtos/PeopleUpdateRequest';
|
|
7
8
|
|
|
8
9
|
//enums
|
|
9
10
|
export * from './enums/IdentificationDocumentStatus';
|