@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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export class BankAccountExternalAddress {
|
|
2
|
+
// TERN
|
|
3
|
+
address1?: string;
|
|
4
|
+
address2?: string;
|
|
5
|
+
province?: string;
|
|
6
|
+
postalCode?: string;
|
|
7
|
+
// POMELO
|
|
8
|
+
streetName?: string;
|
|
9
|
+
streetNumber?: string;
|
|
10
|
+
apartment?: string;
|
|
11
|
+
region?: string;
|
|
12
|
+
zipCode?: string;
|
|
13
|
+
neighborhood?: string;
|
|
14
|
+
additionalInfo?: string;
|
|
15
|
+
// COMMON PARAMETERS
|
|
16
|
+
city?: string;
|
|
17
|
+
country?: string;
|
|
18
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BankAccountTypeEnum } from "../enums/BankAccountTypeEnum";
|
|
1
|
+
import {AddressBase} from "../../address/dtos/AddressBase";
|
|
3
2
|
|
|
4
|
-
export class
|
|
3
|
+
export class CreateBankAccountUserRequest {
|
|
5
4
|
directoryId: string;
|
|
6
5
|
typeOfDirectoryId: string;
|
|
7
6
|
firstName: string;
|
|
@@ -12,7 +11,7 @@ export class CreateBankAccountUserInput {
|
|
|
12
11
|
dob: string;
|
|
13
12
|
documentNumber: string;
|
|
14
13
|
documentType?: string;
|
|
15
|
-
gender?: "M"|"F";
|
|
14
|
+
gender?: "M" | "F";
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {BankAccountTypeEnum} from "../enums/BankAccountTypeEnum";
|
|
2
|
+
import {BankAccountExternalAddress} from "./BankAccountExternalAddress";
|
|
3
|
+
import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum";
|
|
4
|
+
|
|
5
|
+
export class GetBankAccountResponse {
|
|
6
|
+
id: string;
|
|
7
|
+
businessId: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
accountNumber: string;
|
|
11
|
+
routingNumber: string;
|
|
12
|
+
accountType: BankAccountTypeEnum;
|
|
13
|
+
active: boolean;
|
|
14
|
+
isPrimary: boolean;
|
|
15
|
+
createdDate: string;
|
|
16
|
+
updatedDate: string;
|
|
17
|
+
deletedDate: string;
|
|
18
|
+
updatedBy: string;
|
|
19
|
+
balance: number;
|
|
20
|
+
address?: BankAccountExternalAddress;
|
|
21
|
+
kybStatus?: string;
|
|
22
|
+
statusName?: AccountEntityStatusEnum;
|
|
23
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {BankAccountExternalAddress} from "./BankAccountExternalAddress";
|
|
2
|
+
import {UserEntityStatusEnum} from "../enums/UserEntityStatusEnum";
|
|
3
|
+
import {SexDocument, TypeOfDocument} from "../../identity";
|
|
4
|
+
import {Country} from "../../country";
|
|
5
|
+
|
|
6
|
+
export class GetBankAccountUserResponse {
|
|
7
|
+
id: string;
|
|
8
|
+
typeOfUserId: string;
|
|
9
|
+
dob: string;
|
|
10
|
+
name: string;
|
|
11
|
+
lastName: string;
|
|
12
|
+
phoneNumber: string;
|
|
13
|
+
email: string;
|
|
14
|
+
address?: BankAccountExternalAddress;
|
|
15
|
+
status: UserEntityStatusEnum;
|
|
16
|
+
sex?: SexDocument;
|
|
17
|
+
documentNumber: string;
|
|
18
|
+
typeOfDocumentId?: TypeOfDocument;
|
|
19
|
+
countryId: Country;
|
|
20
|
+
userAccountIds?: string[];
|
|
21
|
+
createdDate?: string;
|
|
22
|
+
updatedDate?: string;
|
|
23
|
+
deletedDate?: string;
|
|
24
|
+
updatedBy?: string;
|
|
25
|
+
accountIds?: number[];
|
|
26
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum"
|
|
2
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
|
|
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
11
|
}
|
package/src/account/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
//dtos
|
|
2
2
|
export * from './dtos/AccountCreateRequest';
|
|
3
|
-
export * from './dtos/
|
|
4
|
-
export * from './dtos/
|
|
3
|
+
export * from './dtos/CreateBankAccountRequest';
|
|
4
|
+
export * from './dtos/CreateBankAccountUserRequest';
|
|
5
5
|
export * from './dtos/AccountCreateResponse';
|
|
6
|
-
export * from './dtos/
|
|
7
|
-
export * from './dtos/
|
|
6
|
+
export * from './dtos/CreateBankAccountResponse';
|
|
7
|
+
export * from './dtos/CreateBankAccountUserResponse';
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
//Entities
|
package/src/index.ts
CHANGED
|
@@ -16,8 +16,6 @@ export * as NotificationMessages from './notificationMessages';
|
|
|
16
16
|
export * as SessionActivity from './sessionActivity';
|
|
17
17
|
export * as EventBridgeMessage from './eventBridge'
|
|
18
18
|
export * as GenericMessage from './genericMessage'
|
|
19
|
-
export * as Pomelo from './pomelo'
|
|
20
|
-
export * as Tern from './tern'
|
|
21
19
|
|
|
22
20
|
|
|
23
21
|
|
|
@@ -1,40 +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.TernAddress = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class TernAddress {
|
|
15
|
-
}
|
|
16
|
-
exports.TernAddress = TernAddress;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], TernAddress.prototype, "address1", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], TernAddress.prototype, "address2", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], TernAddress.prototype, "city", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsString)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], TernAddress.prototype, "province", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsString)(),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], TernAddress.prototype, "postalCode", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_validator_1.IsString)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], TernAddress.prototype, "country", void 0);
|
|
@@ -1,33 +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.TernCreateAccountRequest = void 0;
|
|
13
|
-
const TernAccountTypeEnum_1 = require("../enums/TernAccountTypeEnum");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
class TernCreateAccountRequest {
|
|
16
|
-
}
|
|
17
|
-
exports.TernCreateAccountRequest = TernCreateAccountRequest;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], TernCreateAccountRequest.prototype, "externalUserId", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], TernCreateAccountRequest.prototype, "name", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsString)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], TernCreateAccountRequest.prototype, "lastName", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsEnum)(TernAccountTypeEnum_1.TernAccountTypeEnum),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], TernCreateAccountRequest.prototype, "type", void 0);
|
|
@@ -1,25 +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.TernCreateAccountResponse = void 0;
|
|
13
|
-
const provider_1 = require("../../provider");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
class TernCreateAccountResponse {
|
|
16
|
-
}
|
|
17
|
-
exports.TernCreateAccountResponse = TernCreateAccountResponse;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], TernCreateAccountResponse.prototype, "externalAccountId", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsEnum)(provider_1.Provider),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], TernCreateAccountResponse.prototype, "provider", void 0);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SexDocument } from "../../identity";
|
|
2
|
-
import { AddressResponse } from "../../address";
|
|
3
|
-
export declare class TernCreateUserRequest {
|
|
4
|
-
directoryId: string;
|
|
5
|
-
typeOfDirectoryId: string;
|
|
6
|
-
firstName: string;
|
|
7
|
-
lastName: string;
|
|
8
|
-
phoneNumber: string;
|
|
9
|
-
address: AddressResponse;
|
|
10
|
-
email: string;
|
|
11
|
-
dob: string;
|
|
12
|
-
documentNumber: string;
|
|
13
|
-
documentType?: string;
|
|
14
|
-
gender?: SexDocument;
|
|
15
|
-
}
|
|
@@ -1,70 +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.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);
|
|
@@ -1,37 +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.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);
|
|
@@ -1,25 +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.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);
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,87 +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.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);
|