@fiado/type-kit 1.0.65 → 1.0.67
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/sonarlint/issuestore/1/2/12453d06e6e35287172e482940b954ba12dc25a2 +2 -0
- package/.idea/sonarlint/issuestore/1/8/18c290c3d5b13d503bb211e6319a9e64ccd83350 +0 -0
- package/.idea/sonarlint/issuestore/1/f/1fcc1ef4b4c5c551f5f5833f39af79dd4d6440bd +0 -0
- package/.idea/sonarlint/issuestore/2/5/25497cc140764f84080ed16d4d408b09b411525a +0 -0
- package/.idea/sonarlint/issuestore/3/5/355a0b1b7628657539752d4cfbd8f33fcc664d5d +0 -0
- package/.idea/sonarlint/issuestore/3/7/37a0f1ea15e5f94c2fc86540cc529be06a155756 +2 -0
- package/.idea/sonarlint/issuestore/3/9/3942490f54c10c0111afa09b30a079f3ef9aeec7 +0 -0
- package/.idea/sonarlint/issuestore/3/a/3a96f9d5c15844580b34596455a77e22ce0b1da1 +0 -0
- package/.idea/sonarlint/issuestore/4/f/4f9e0d80d4df64baa27bf681528cb43a3ba4fde6 +0 -0
- package/.idea/sonarlint/issuestore/5/5/55792c374cceb362b99620756061abf16563279b +0 -0
- package/.idea/sonarlint/issuestore/5/8/5815363aa7c189fe1d8a995d750c3a3f27900621 +0 -0
- package/.idea/sonarlint/issuestore/5/a/5a74acb4b064cbe70d9a71991eb486fb4d78f531 +0 -0
- package/.idea/sonarlint/issuestore/6/1/619fe0b2aa30704d95a60035674b31d432fc5a75 +0 -0
- package/.idea/sonarlint/issuestore/6/4/646b88aafc1ca8453d1a111ea33d258c52e07851 +0 -0
- package/.idea/sonarlint/issuestore/6/9/69abfdb53d85b80c255b3ab2a88666175ceeac54 +0 -0
- package/.idea/sonarlint/issuestore/6/f/6f43ceef55b03d8c26768ceb4ee9e3e1cea7ddd4 +0 -0
- package/.idea/sonarlint/issuestore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
- package/.idea/sonarlint/issuestore/7/3/73eee44012dacbb17c6d2e2d988e6def209267b8 +0 -0
- package/.idea/sonarlint/issuestore/7/7/77a3404a468e41376864800c0ab63d69287e6eab +0 -0
- package/.idea/sonarlint/issuestore/7/e/7ecdb333781356fc0fe1cc9fa84ac8f76b996401 +0 -0
- package/.idea/sonarlint/issuestore/7/f/7f9d84f1e541f40d1bc582e467f11283b3acfe99 +0 -0
- package/.idea/sonarlint/issuestore/8/b/8b0588db2495f22a93ce5d97cc089971f40aa4ec +0 -0
- package/.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
- package/.idea/sonarlint/issuestore/9/4/948b0afb07fbe2035d9d0a168a017e51c2b221a2 +0 -0
- package/.idea/sonarlint/issuestore/9/f/9fc96c9beeba61e907bd3ba313f11eac8cf0d430 +0 -0
- package/.idea/sonarlint/issuestore/a/9/a903e3bfc804794d9b9535cbb530c68383652b5d +0 -0
- package/.idea/sonarlint/issuestore/c/5/c5fb850250c7443c48a6c12b5cf6916773da31f1 +0 -0
- package/.idea/sonarlint/issuestore/d/3/d3d6982c02d9d56dc2122ebca0b84b00a90b67e5 +0 -0
- package/.idea/sonarlint/issuestore/f/9/f9cb0ab2ca2e8ce4e64e10034c949066c38000f5 +0 -0
- package/.idea/sonarlint/issuestore/f/9/f9d6327040914014594d301e0dc6361a476a5ff4 +0 -0
- package/.idea/sonarlint/issuestore/index.pb +61 -0
- package/.idea/sonarlint/securityhotspotstore/1/2/12453d06e6e35287172e482940b954ba12dc25a2 +0 -0
- package/.idea/sonarlint/securityhotspotstore/1/8/18c290c3d5b13d503bb211e6319a9e64ccd83350 +0 -0
- package/.idea/sonarlint/securityhotspotstore/1/f/1fcc1ef4b4c5c551f5f5833f39af79dd4d6440bd +0 -0
- package/.idea/sonarlint/securityhotspotstore/2/5/25497cc140764f84080ed16d4d408b09b411525a +0 -0
- package/.idea/sonarlint/securityhotspotstore/3/5/355a0b1b7628657539752d4cfbd8f33fcc664d5d +0 -0
- package/.idea/sonarlint/securityhotspotstore/3/7/37a0f1ea15e5f94c2fc86540cc529be06a155756 +0 -0
- package/.idea/sonarlint/securityhotspotstore/3/9/3942490f54c10c0111afa09b30a079f3ef9aeec7 +0 -0
- package/.idea/sonarlint/securityhotspotstore/3/a/3a96f9d5c15844580b34596455a77e22ce0b1da1 +0 -0
- package/.idea/sonarlint/securityhotspotstore/4/f/4f9e0d80d4df64baa27bf681528cb43a3ba4fde6 +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/5/55792c374cceb362b99620756061abf16563279b +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/8/5815363aa7c189fe1d8a995d750c3a3f27900621 +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/a/5a74acb4b064cbe70d9a71991eb486fb4d78f531 +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/1/619fe0b2aa30704d95a60035674b31d432fc5a75 +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/4/646b88aafc1ca8453d1a111ea33d258c52e07851 +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/9/69abfdb53d85b80c255b3ab2a88666175ceeac54 +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/f/6f43ceef55b03d8c26768ceb4ee9e3e1cea7ddd4 +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/3/73eee44012dacbb17c6d2e2d988e6def209267b8 +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/7/77a3404a468e41376864800c0ab63d69287e6eab +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/e/7ecdb333781356fc0fe1cc9fa84ac8f76b996401 +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/f/7f9d84f1e541f40d1bc582e467f11283b3acfe99 +0 -0
- package/.idea/sonarlint/securityhotspotstore/8/b/8b0588db2495f22a93ce5d97cc089971f40aa4ec +0 -0
- package/.idea/sonarlint/securityhotspotstore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
- package/.idea/sonarlint/securityhotspotstore/9/4/948b0afb07fbe2035d9d0a168a017e51c2b221a2 +0 -0
- package/.idea/sonarlint/securityhotspotstore/9/f/9fc96c9beeba61e907bd3ba313f11eac8cf0d430 +0 -0
- package/.idea/sonarlint/securityhotspotstore/a/9/a903e3bfc804794d9b9535cbb530c68383652b5d +0 -0
- package/.idea/sonarlint/securityhotspotstore/c/5/c5fb850250c7443c48a6c12b5cf6916773da31f1 +0 -0
- package/.idea/sonarlint/securityhotspotstore/d/3/d3d6982c02d9d56dc2122ebca0b84b00a90b67e5 +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/9/f9cb0ab2ca2e8ce4e64e10034c949066c38000f5 +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/9/f9d6327040914014594d301e0dc6361a476a5ff4 +0 -0
- package/.idea/sonarlint/securityhotspotstore/index.pb +61 -0
- package/.idea/vcs.xml +6 -0
- package/bin/account/dtos/BankAccountExternalAddress.d.ts +15 -0
- package/bin/account/dtos/BankAccountExternalAddress.js +6 -0
- package/bin/account/dtos/{CreateBankAccountInput.d.ts → CreateBankAccountRequest.d.ts} +1 -1
- package/bin/account/dtos/CreateBankAccountRequest.js +6 -0
- package/bin/{tern/dtos/TernCreateAccountResponse.d.ts → account/dtos/CreateBankAccountResponse.d.ts} +1 -1
- package/bin/account/dtos/CreateBankAccountResponse.js +6 -0
- package/bin/account/dtos/{CreateBankAccountUserInput.d.ts → CreateBankAccountUserRequest.d.ts} +1 -1
- package/bin/account/dtos/CreateBankAccountUserRequest.js +6 -0
- package/bin/account/dtos/{CreateBankAccountUserOutput.d.ts → CreateBankAccountUserResponse.d.ts} +1 -1
- package/bin/account/dtos/CreateBankAccountUserResponse.js +6 -0
- package/bin/account/dtos/GetBankAccountRequest.d.ts +4 -0
- package/bin/account/dtos/GetBankAccountRequest.js +6 -0
- package/bin/account/dtos/GetBankAccountResponse.d.ts +22 -0
- package/bin/account/dtos/GetBankAccountResponse.js +6 -0
- package/bin/account/dtos/GetBankAccountUserRequest.d.ts +3 -0
- package/bin/account/dtos/GetBankAccountUserRequest.js +6 -0
- package/bin/account/dtos/GetBankAccountUserResponse.d.ts +25 -0
- package/bin/account/dtos/GetBankAccountUserResponse.js +6 -0
- package/bin/account/enums/AccountEntityStatusEnum.d.ts +3 -2
- package/bin/account/enums/AccountEntityStatusEnum.js +3 -2
- package/bin/account/enums/UserEntityStatusEnum.d.ts +5 -0
- package/bin/account/enums/UserEntityStatusEnum.js +9 -0
- package/bin/account/index.d.ts +4 -4
- package/bin/account/index.js +4 -4
- package/bin/index.d.ts +0 -2
- package/bin/index.js +1 -3
- package/package.json +1 -1
- package/src/account/dtos/BankAccountExternalAddress.ts +18 -0
- package/src/account/dtos/{CreateBankAccountInput.ts → CreateBankAccountRequest.ts} +1 -1
- package/src/account/dtos/{CreateBankAccountOutput.ts → CreateBankAccountResponse.ts} +1 -1
- package/src/account/dtos/{CreateBankAccountUserInput.ts → CreateBankAccountUserRequest.ts} +3 -4
- package/src/account/dtos/{CreateBankAccountUserOutput.ts → CreateBankAccountUserResponse.ts} +1 -1
- package/src/account/dtos/GetBankAccountRequest.ts +4 -0
- package/src/account/dtos/GetBankAccountResponse.ts +23 -0
- package/src/account/dtos/GetBankAccountUserRequest.ts +3 -0
- package/src/account/dtos/GetBankAccountUserResponse.ts +26 -0
- package/src/account/entities/AccountEntityBase.ts +9 -9
- package/src/account/enums/AccountEntityStatusEnum.ts +3 -2
- package/src/account/enums/UserEntityStatusEnum.ts +5 -0
- package/src/account/index.ts +4 -4
- package/src/index.ts +0 -2
- package/bin/account/dtos/CreateBankAccountInput.js +0 -6
- package/bin/account/dtos/CreateBankAccountOutput.d.ts +0 -5
- package/bin/account/dtos/CreateBankAccountOutput.js +0 -6
- package/bin/account/dtos/CreateBankAccountUserInput.js +0 -6
- package/bin/account/dtos/CreateBankAccountUserOutput.js +0 -6
- package/bin/tern/dtos/TernAddress.d.ts +0 -8
- package/bin/tern/dtos/TernAddress.js +0 -40
- package/bin/tern/dtos/TernCreateAccountRequest.d.ts +0 -7
- package/bin/tern/dtos/TernCreateAccountRequest.js +0 -33
- package/bin/tern/dtos/TernCreateAccountResponse.js +0 -25
- package/bin/tern/dtos/TernCreateUserRequest.d.ts +0 -15
- package/bin/tern/dtos/TernCreateUserRequest.js +0 -70
- package/bin/tern/dtos/TernCreateUserResponse.d.ts +0 -8
- package/bin/tern/dtos/TernCreateUserResponse.js +0 -37
- package/bin/tern/dtos/TernGetAccountRequest.d.ts +0 -5
- package/bin/tern/dtos/TernGetAccountRequest.js +0 -25
- package/bin/tern/dtos/TernGetAccountResponse.d.ts +0 -22
- package/bin/tern/dtos/TernGetAccountResponse.js +0 -87
- package/bin/tern/dtos/TernGetUserRequest.d.ts +0 -3
- package/bin/tern/dtos/TernGetUserRequest.js +0 -20
- package/bin/tern/dtos/TernGetUserResponse.d.ts +0 -24
- package/bin/tern/dtos/TernGetUserResponse.js +0 -96
- package/bin/tern/enums/TernAccountStatusEnum.d.ts +0 -4
- package/bin/tern/enums/TernAccountStatusEnum.js +0 -8
- package/bin/tern/enums/TernAccountTypeEnum.d.ts +0 -5
- package/bin/tern/enums/TernAccountTypeEnum.js +0 -9
- package/bin/tern/index.d.ts +0 -11
- package/bin/tern/index.js +0 -29
- package/src/pomelo/dtos/PomeloCreateUserRequest.ts +0 -31
- package/src/pomelo/dtos/PomeloCreateUserResponse.ts +0 -36
- package/src/pomelo/enums/CountryEnum.ts +0 -9
- package/src/pomelo/enums/IdentificationTypeEnum.ts +0 -11
- package/src/pomelo/enums/SexEnum.ts +0 -4
- package/src/pomelo/enums/TaxTypeEnum.ts +0 -8
- package/src/pomelo/enums/UserStatusEnum.ts +0 -7
- package/src/pomelo/index.ts +0 -11
- package/src/tern/dtos/TernAddress.ts +0 -21
- package/src/tern/dtos/TernCreateAccountRequest.ts +0 -16
- package/src/tern/dtos/TernCreateAccountResponse.ts +0 -10
- package/src/tern/dtos/TernCreateUserRequest.ts +0 -47
- package/src/tern/dtos/TernCreateUserResponse.ts +0 -19
- package/src/tern/dtos/TernGetAccountRequest.ts +0 -10
- package/src/tern/dtos/TernGetAccountResponse.ts +0 -57
- package/src/tern/dtos/TernGetUserRequest.ts +0 -6
- package/src/tern/dtos/TernGetUserResponse.ts +0 -64
- package/src/tern/enums/TernAccountStatusEnum.ts +0 -4
- package/src/tern/enums/TernAccountTypeEnum.ts +0 -5
- package/src/tern/index.ts +0 -14
|
@@ -1,20 +0,0 @@
|
|
|
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);
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
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);
|
|
@@ -1,8 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
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 = {}));
|
package/bin/tern/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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';
|
package/bin/tern/index.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
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);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { CountryEnum } from "../enums/CountryEnum"
|
|
2
|
-
import { SexEnum } from "../enums/SexEnum"
|
|
3
|
-
import { TaxTypeEnum } from "../enums/TaxTypeEnum"
|
|
4
|
-
|
|
5
|
-
export type PomeloCreateUserRequest =
|
|
6
|
-
{
|
|
7
|
-
name?: string,
|
|
8
|
-
surname?: string,
|
|
9
|
-
identification_type?: "INE",
|
|
10
|
-
identification_value?: string,
|
|
11
|
-
birthdate?:string,
|
|
12
|
-
gender?: SexEnum,
|
|
13
|
-
email: string,
|
|
14
|
-
phone?: string,
|
|
15
|
-
tax_identification_type?: TaxTypeEnum,
|
|
16
|
-
tax_identification_value?: string,
|
|
17
|
-
legal_address: {
|
|
18
|
-
street_name?: string,
|
|
19
|
-
street_number?: string,
|
|
20
|
-
floor?: string,
|
|
21
|
-
apartment?: string,
|
|
22
|
-
zip_code?: string,
|
|
23
|
-
neighborhood?: string,
|
|
24
|
-
city?: string,
|
|
25
|
-
region?:string,
|
|
26
|
-
additional_info?: string,
|
|
27
|
-
country?: CountryEnum
|
|
28
|
-
},
|
|
29
|
-
operation_country: CountryEnum,
|
|
30
|
-
|
|
31
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { CountryEnum } from "../enums/CountryEnum"
|
|
2
|
-
import { IdentificationTypeEnum } from "../enums/IdentificationTypeEnum"
|
|
3
|
-
import { SexEnum } from "../enums/SexEnum"
|
|
4
|
-
import { TaxTypeEnum } from "../enums/TaxTypeEnum"
|
|
5
|
-
import { UserStatusEnum } from "../enums/UserStatusEnum"
|
|
6
|
-
|
|
7
|
-
export interface PomeloCreateUserResponse {
|
|
8
|
-
data:{
|
|
9
|
-
id:string
|
|
10
|
-
name:string
|
|
11
|
-
surname:string
|
|
12
|
-
identification_type:IdentificationTypeEnum
|
|
13
|
-
identification_value:string
|
|
14
|
-
birthdate:string
|
|
15
|
-
gender:SexEnum
|
|
16
|
-
email:string
|
|
17
|
-
phone:string
|
|
18
|
-
tax_identification_type:TaxTypeEnum
|
|
19
|
-
tax_identification_value:string
|
|
20
|
-
nationality:CountryEnum
|
|
21
|
-
status:UserStatusEnum
|
|
22
|
-
operation_country:CountryEnum
|
|
23
|
-
legal_address:{
|
|
24
|
-
street_name:string
|
|
25
|
-
street_number:string
|
|
26
|
-
floor:string
|
|
27
|
-
apartment:string
|
|
28
|
-
zip_code:string
|
|
29
|
-
neighborhood:string
|
|
30
|
-
city:string
|
|
31
|
-
region:string
|
|
32
|
-
additional_info:string
|
|
33
|
-
country:CountryEnum
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
package/src/pomelo/index.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//dtos
|
|
3
|
-
export * from './dtos/PomeloCreateUserRequest'
|
|
4
|
-
export * from './dtos/PomeloCreateUserResponse';
|
|
5
|
-
|
|
6
|
-
//enums
|
|
7
|
-
export * from './enums/CountryEnum';
|
|
8
|
-
export * from './enums/IdentificationTypeEnum';
|
|
9
|
-
export * from './enums/SexEnum';
|
|
10
|
-
export * from './enums/TaxTypeEnum';
|
|
11
|
-
export * from './enums/UserStatusEnum';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import {IsString} from "class-validator";
|
|
2
|
-
|
|
3
|
-
export class TernAddress {
|
|
4
|
-
@IsString()
|
|
5
|
-
address1?: string;
|
|
6
|
-
|
|
7
|
-
@IsString()
|
|
8
|
-
address2?: string;
|
|
9
|
-
|
|
10
|
-
@IsString()
|
|
11
|
-
city?: string;
|
|
12
|
-
|
|
13
|
-
@IsString()
|
|
14
|
-
province?: string;
|
|
15
|
-
|
|
16
|
-
@IsString()
|
|
17
|
-
postalCode?: string;
|
|
18
|
-
|
|
19
|
-
@IsString()
|
|
20
|
-
country?: string;
|
|
21
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {TernAccountTypeEnum} from "../enums/TernAccountTypeEnum";
|
|
2
|
-
import {IsEnum, IsString} from "class-validator";
|
|
3
|
-
|
|
4
|
-
export class TernCreateAccountRequest {
|
|
5
|
-
@IsString()
|
|
6
|
-
externalUserId?: string;
|
|
7
|
-
|
|
8
|
-
@IsString()
|
|
9
|
-
name: string;
|
|
10
|
-
|
|
11
|
-
@IsString()
|
|
12
|
-
lastName: string;
|
|
13
|
-
|
|
14
|
-
@IsEnum(TernAccountTypeEnum)
|
|
15
|
-
type: TernAccountTypeEnum;
|
|
16
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import {SexDocument} from "../../identity";
|
|
2
|
-
import {IsDateString, IsEmail, IsEnum, IsString, Length, Matches, ValidateNested} from "class-validator";
|
|
3
|
-
import {regexUuidV4} from "../../helpers/constans/regex";
|
|
4
|
-
import {TypeOfDirectoryId} from "../../directory";
|
|
5
|
-
import {IsPhoneNumberFiado} from "../../card/validations/IsPhoneNumberConstraint";
|
|
6
|
-
import {AddressResponse} from "../../address";
|
|
7
|
-
|
|
8
|
-
export class TernCreateUserRequest {
|
|
9
|
-
@IsString()
|
|
10
|
-
@Matches(regexUuidV4,
|
|
11
|
-
{
|
|
12
|
-
message: 'directoryId must be a valid UUID v4',
|
|
13
|
-
})
|
|
14
|
-
directoryId: string;
|
|
15
|
-
|
|
16
|
-
@IsEnum(TypeOfDirectoryId)
|
|
17
|
-
typeOfDirectoryId: string;
|
|
18
|
-
|
|
19
|
-
@IsString()
|
|
20
|
-
firstName: string;
|
|
21
|
-
|
|
22
|
-
@IsString()
|
|
23
|
-
lastName: string;
|
|
24
|
-
|
|
25
|
-
@IsPhoneNumberFiado()
|
|
26
|
-
phoneNumber: string;
|
|
27
|
-
|
|
28
|
-
@ValidateNested()
|
|
29
|
-
address: AddressResponse;
|
|
30
|
-
|
|
31
|
-
@IsEmail()
|
|
32
|
-
email: string;
|
|
33
|
-
|
|
34
|
-
@IsDateString()
|
|
35
|
-
dob: string;
|
|
36
|
-
|
|
37
|
-
@IsString()
|
|
38
|
-
@Length(1, 30)
|
|
39
|
-
documentNumber: string;
|
|
40
|
-
|
|
41
|
-
@IsString()
|
|
42
|
-
@Length(1, 30)
|
|
43
|
-
documentType?: string;
|
|
44
|
-
|
|
45
|
-
@IsEnum(SexDocument)
|
|
46
|
-
gender?: SexDocument;
|
|
47
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {Provider} from "../../provider";
|
|
2
|
-
import {IsEnum, IsString} from "class-validator";
|
|
3
|
-
|
|
4
|
-
export class TernCreateUserResponse {
|
|
5
|
-
@IsString()
|
|
6
|
-
externalUserId: string;
|
|
7
|
-
|
|
8
|
-
@IsString()
|
|
9
|
-
externalAccountId?: string;
|
|
10
|
-
|
|
11
|
-
@IsEnum(Provider)
|
|
12
|
-
provider: Provider;
|
|
13
|
-
|
|
14
|
-
@IsString()
|
|
15
|
-
accountNumber?: string;
|
|
16
|
-
|
|
17
|
-
@IsString()
|
|
18
|
-
routingNumber?: string;
|
|
19
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {TernAccountTypeEnum} from "../enums/TernAccountTypeEnum";
|
|
2
|
-
import {IsEnum, IsString} from "class-validator";
|
|
3
|
-
|
|
4
|
-
export class TernGetAccountRequest {
|
|
5
|
-
@IsString()
|
|
6
|
-
externalAccountId: string;
|
|
7
|
-
|
|
8
|
-
@IsEnum(TernAccountTypeEnum)
|
|
9
|
-
accountType?: TernAccountTypeEnum;
|
|
10
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import {TernAccountTypeEnum} from "../enums/TernAccountTypeEnum";
|
|
2
|
-
import {TernAddress} from "./TernAddress";
|
|
3
|
-
import {TernAccountStatusEnum} from "../enums/TernAccountStatusEnum";
|
|
4
|
-
import {IsBoolean, IsEnum, IsNumber, IsString, ValidateNested} from "class-validator";
|
|
5
|
-
|
|
6
|
-
export class TernGetAccountResponse {
|
|
7
|
-
@IsString()
|
|
8
|
-
id: string;
|
|
9
|
-
|
|
10
|
-
@IsString()
|
|
11
|
-
businessId: string;
|
|
12
|
-
|
|
13
|
-
@IsString()
|
|
14
|
-
userId: string;
|
|
15
|
-
|
|
16
|
-
@IsString()
|
|
17
|
-
name: string;
|
|
18
|
-
|
|
19
|
-
@IsString()
|
|
20
|
-
accountNumber: string;
|
|
21
|
-
|
|
22
|
-
@IsString()
|
|
23
|
-
routingNumber: string;
|
|
24
|
-
|
|
25
|
-
@IsEnum(TernAccountTypeEnum)
|
|
26
|
-
accountType: TernAccountTypeEnum;
|
|
27
|
-
|
|
28
|
-
@IsBoolean()
|
|
29
|
-
active: boolean;
|
|
30
|
-
|
|
31
|
-
@IsBoolean()
|
|
32
|
-
isPrimary: boolean;
|
|
33
|
-
|
|
34
|
-
@IsString()
|
|
35
|
-
createdDate: string;
|
|
36
|
-
|
|
37
|
-
@IsString()
|
|
38
|
-
updatedDate: string;
|
|
39
|
-
|
|
40
|
-
@IsString()
|
|
41
|
-
deletedDate: string;
|
|
42
|
-
|
|
43
|
-
@IsString()
|
|
44
|
-
updatedBy: string;
|
|
45
|
-
|
|
46
|
-
@IsNumber()
|
|
47
|
-
balance: number;
|
|
48
|
-
|
|
49
|
-
@ValidateNested()
|
|
50
|
-
address?: TernAddress;
|
|
51
|
-
|
|
52
|
-
@IsString()
|
|
53
|
-
kybStatus?: string;
|
|
54
|
-
|
|
55
|
-
@IsEnum(TernAccountStatusEnum)
|
|
56
|
-
statusName?: TernAccountStatusEnum;
|
|
57
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import {SexDocument} from "../../identity";
|
|
2
|
-
import {TernAccountStatusEnum} from "../enums/TernAccountStatusEnum";
|
|
3
|
-
import {TernAddress} from "./TernAddress";
|
|
4
|
-
import {IsArray, IsEmail, IsEnum, IsString, ValidateNested} from "class-validator";
|
|
5
|
-
import {IsPhoneNumberFiado} from "../../card/validations/IsPhoneNumberConstraint";
|
|
6
|
-
|
|
7
|
-
export class TernGetUserResponse {
|
|
8
|
-
@IsString()
|
|
9
|
-
id: string;
|
|
10
|
-
|
|
11
|
-
@IsString()
|
|
12
|
-
typeOfUserId: string;
|
|
13
|
-
|
|
14
|
-
@IsString()
|
|
15
|
-
dob: string;
|
|
16
|
-
|
|
17
|
-
@IsString()
|
|
18
|
-
name: string;
|
|
19
|
-
|
|
20
|
-
@IsString()
|
|
21
|
-
lastName: string;
|
|
22
|
-
|
|
23
|
-
@IsPhoneNumberFiado()
|
|
24
|
-
phoneNumber: string;
|
|
25
|
-
|
|
26
|
-
@IsEmail()
|
|
27
|
-
email: string;
|
|
28
|
-
|
|
29
|
-
@ValidateNested()
|
|
30
|
-
address?: TernAddress;
|
|
31
|
-
|
|
32
|
-
@IsEnum(TernAccountStatusEnum)
|
|
33
|
-
status: TernAccountStatusEnum;
|
|
34
|
-
|
|
35
|
-
@IsEnum(SexDocument)
|
|
36
|
-
sex?: SexDocument;
|
|
37
|
-
|
|
38
|
-
@IsString()
|
|
39
|
-
documentNumber: string;
|
|
40
|
-
|
|
41
|
-
@IsString()
|
|
42
|
-
typeOfDocumentId?: string;
|
|
43
|
-
|
|
44
|
-
@IsString()
|
|
45
|
-
countryId: string;
|
|
46
|
-
|
|
47
|
-
@IsArray()
|
|
48
|
-
userAccountIds?: string[];
|
|
49
|
-
|
|
50
|
-
@IsString()
|
|
51
|
-
createdDate?: string;
|
|
52
|
-
|
|
53
|
-
@IsString()
|
|
54
|
-
updatedDate?: string;
|
|
55
|
-
|
|
56
|
-
@IsString()
|
|
57
|
-
deletedDate?: string;
|
|
58
|
-
|
|
59
|
-
@IsString()
|
|
60
|
-
updatedBy?: string;
|
|
61
|
-
|
|
62
|
-
@IsArray()
|
|
63
|
-
accountIds?: number[];
|
|
64
|
-
}
|
package/src/tern/index.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// DTOs
|
|
2
|
-
export * from './dtos/TernCreateUserRequest';
|
|
3
|
-
export * from './dtos/TernCreateUserResponse';
|
|
4
|
-
export * from './dtos/TernCreateAccountRequest';
|
|
5
|
-
export * from './dtos/TernCreateAccountResponse';
|
|
6
|
-
export * from './dtos/TernGetAccountRequest';
|
|
7
|
-
export * from './dtos/TernGetAccountResponse';
|
|
8
|
-
export * from './dtos/TernGetUserRequest';
|
|
9
|
-
export * from './dtos/TernGetUserResponse';
|
|
10
|
-
export * from './dtos/TernAddress';
|
|
11
|
-
|
|
12
|
-
// ENUMS
|
|
13
|
-
export * from './enums/TernAccountTypeEnum';
|
|
14
|
-
export * from './enums/TernAccountStatusEnum';
|