@fiado/type-kit 1.0.64 → 1.0.66

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.
Files changed (109) hide show
  1. package/.idea/aws.xml +11 -0
  2. package/.idea/fiado-type-kit.iml +12 -0
  3. package/.idea/modules.xml +8 -0
  4. package/.idea/sonarlint/issuestore/1/2/12453d06e6e35287172e482940b954ba12dc25a2 +2 -0
  5. package/.idea/sonarlint/issuestore/1/f/1fcc1ef4b4c5c551f5f5833f39af79dd4d6440bd +0 -0
  6. package/.idea/sonarlint/issuestore/2/5/25497cc140764f84080ed16d4d408b09b411525a +0 -0
  7. package/.idea/sonarlint/issuestore/3/5/355a0b1b7628657539752d4cfbd8f33fcc664d5d +0 -0
  8. package/.idea/sonarlint/issuestore/3/7/37a0f1ea15e5f94c2fc86540cc529be06a155756 +2 -0
  9. package/.idea/sonarlint/issuestore/3/a/3a96f9d5c15844580b34596455a77e22ce0b1da1 +0 -0
  10. package/.idea/sonarlint/issuestore/4/f/4f9e0d80d4df64baa27bf681528cb43a3ba4fde6 +2 -0
  11. package/.idea/sonarlint/issuestore/5/a/5a74acb4b064cbe70d9a71991eb486fb4d78f531 +0 -0
  12. package/.idea/sonarlint/issuestore/6/4/646b88aafc1ca8453d1a111ea33d258c52e07851 +0 -0
  13. package/.idea/sonarlint/issuestore/6/9/69abfdb53d85b80c255b3ab2a88666175ceeac54 +0 -0
  14. package/.idea/sonarlint/issuestore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
  15. package/.idea/sonarlint/issuestore/7/3/73eee44012dacbb17c6d2e2d988e6def209267b8 +0 -0
  16. package/.idea/sonarlint/issuestore/7/e/7ecdb333781356fc0fe1cc9fa84ac8f76b996401 +0 -0
  17. package/.idea/sonarlint/issuestore/7/f/7f9d84f1e541f40d1bc582e467f11283b3acfe99 +0 -0
  18. package/.idea/sonarlint/issuestore/8/b/8b0588db2495f22a93ce5d97cc089971f40aa4ec +0 -0
  19. package/.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
  20. package/.idea/sonarlint/issuestore/9/f/9fc96c9beeba61e907bd3ba313f11eac8cf0d430 +0 -0
  21. package/.idea/sonarlint/issuestore/c/5/c5fb850250c7443c48a6c12b5cf6916773da31f1 +0 -0
  22. package/.idea/sonarlint/issuestore/d/3/d3d6982c02d9d56dc2122ebca0b84b00a90b67e5 +0 -0
  23. package/.idea/sonarlint/issuestore/index.pb +39 -0
  24. package/.idea/sonarlint/securityhotspotstore/1/2/12453d06e6e35287172e482940b954ba12dc25a2 +0 -0
  25. package/.idea/sonarlint/securityhotspotstore/1/f/1fcc1ef4b4c5c551f5f5833f39af79dd4d6440bd +0 -0
  26. package/.idea/sonarlint/securityhotspotstore/2/5/25497cc140764f84080ed16d4d408b09b411525a +0 -0
  27. package/.idea/sonarlint/securityhotspotstore/3/5/355a0b1b7628657539752d4cfbd8f33fcc664d5d +0 -0
  28. package/.idea/sonarlint/securityhotspotstore/3/7/37a0f1ea15e5f94c2fc86540cc529be06a155756 +0 -0
  29. package/.idea/sonarlint/securityhotspotstore/3/a/3a96f9d5c15844580b34596455a77e22ce0b1da1 +0 -0
  30. package/.idea/sonarlint/securityhotspotstore/4/f/4f9e0d80d4df64baa27bf681528cb43a3ba4fde6 +0 -0
  31. package/.idea/sonarlint/securityhotspotstore/5/a/5a74acb4b064cbe70d9a71991eb486fb4d78f531 +0 -0
  32. package/.idea/sonarlint/securityhotspotstore/6/4/646b88aafc1ca8453d1a111ea33d258c52e07851 +0 -0
  33. package/.idea/sonarlint/securityhotspotstore/6/9/69abfdb53d85b80c255b3ab2a88666175ceeac54 +0 -0
  34. package/.idea/sonarlint/securityhotspotstore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
  35. package/.idea/sonarlint/securityhotspotstore/7/3/73eee44012dacbb17c6d2e2d988e6def209267b8 +0 -0
  36. package/.idea/sonarlint/securityhotspotstore/7/e/7ecdb333781356fc0fe1cc9fa84ac8f76b996401 +0 -0
  37. package/.idea/sonarlint/securityhotspotstore/7/f/7f9d84f1e541f40d1bc582e467f11283b3acfe99 +0 -0
  38. package/.idea/sonarlint/securityhotspotstore/8/b/8b0588db2495f22a93ce5d97cc089971f40aa4ec +0 -0
  39. package/.idea/sonarlint/securityhotspotstore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
  40. package/.idea/sonarlint/securityhotspotstore/9/f/9fc96c9beeba61e907bd3ba313f11eac8cf0d430 +0 -0
  41. package/.idea/sonarlint/securityhotspotstore/c/5/c5fb850250c7443c48a6c12b5cf6916773da31f1 +0 -0
  42. package/.idea/sonarlint/securityhotspotstore/d/3/d3d6982c02d9d56dc2122ebca0b84b00a90b67e5 +0 -0
  43. package/.idea/sonarlint/securityhotspotstore/index.pb +39 -0
  44. package/.idea/vcs.xml +6 -0
  45. package/bin/account/dtos/{CreateBankAccountInput.d.ts → CreateBankAccountRequest.d.ts} +1 -1
  46. package/bin/account/dtos/CreateBankAccountRequest.js +6 -0
  47. package/bin/{tern/dtos/TernCreateAccountResponse.d.ts → account/dtos/CreateBankAccountResponse.d.ts} +1 -1
  48. package/bin/account/dtos/CreateBankAccountResponse.js +6 -0
  49. package/bin/account/dtos/{CreateBankAccountUserInput.d.ts → CreateBankAccountUserRequest.d.ts} +1 -1
  50. package/bin/account/dtos/CreateBankAccountUserRequest.js +6 -0
  51. package/bin/{tern/dtos/TernCreateUserResponse.d.ts → account/dtos/CreateBankAccountUserResponse.d.ts} +1 -1
  52. package/bin/account/dtos/CreateBankAccountUserResponse.js +6 -0
  53. package/bin/account/index.d.ts +4 -2
  54. package/bin/account/index.js +5 -2
  55. package/bin/index.d.ts +0 -2
  56. package/bin/index.js +1 -3
  57. package/package.json +1 -1
  58. package/src/account/dtos/{CreateBankAccountInput.ts → CreateBankAccountRequest.ts} +1 -1
  59. package/src/account/dtos/CreateBankAccountResponse.ts +8 -0
  60. package/src/account/dtos/{CreateBankAccountUserInput.ts → CreateBankAccountUserRequest.ts} +1 -1
  61. package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -0
  62. package/src/account/index.ts +8 -2
  63. package/src/index.ts +0 -2
  64. package/bin/account/dtos/CreateBankAccountInput.js +0 -6
  65. package/bin/account/dtos/CreateBankAccountUserInput.js +0 -6
  66. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +0 -3
  67. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +0 -22
  68. package/bin/tern/dtos/TernAddress.d.ts +0 -8
  69. package/bin/tern/dtos/TernAddress.js +0 -40
  70. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +0 -7
  71. package/bin/tern/dtos/TernCreateAccountRequest.js +0 -33
  72. package/bin/tern/dtos/TernCreateAccountResponse.js +0 -25
  73. package/bin/tern/dtos/TernCreateUserRequest.d.ts +0 -15
  74. package/bin/tern/dtos/TernCreateUserRequest.js +0 -70
  75. package/bin/tern/dtos/TernCreateUserResponse.js +0 -37
  76. package/bin/tern/dtos/TernGetAccountRequest.d.ts +0 -5
  77. package/bin/tern/dtos/TernGetAccountRequest.js +0 -25
  78. package/bin/tern/dtos/TernGetAccountResponse.d.ts +0 -22
  79. package/bin/tern/dtos/TernGetAccountResponse.js +0 -87
  80. package/bin/tern/dtos/TernGetUserRequest.d.ts +0 -3
  81. package/bin/tern/dtos/TernGetUserRequest.js +0 -20
  82. package/bin/tern/dtos/TernGetUserResponse.d.ts +0 -24
  83. package/bin/tern/dtos/TernGetUserResponse.js +0 -96
  84. package/bin/tern/enums/TernAccountStatusEnum.d.ts +0 -4
  85. package/bin/tern/enums/TernAccountStatusEnum.js +0 -8
  86. package/bin/tern/enums/TernAccountTypeEnum.d.ts +0 -5
  87. package/bin/tern/enums/TernAccountTypeEnum.js +0 -9
  88. package/bin/tern/index.d.ts +0 -11
  89. package/bin/tern/index.js +0 -29
  90. package/src/pomelo/dtos/PomeloCreateUserRequest.ts +0 -31
  91. package/src/pomelo/dtos/PomeloCreateUserResponse.ts +0 -36
  92. package/src/pomelo/enums/CountryEnum.ts +0 -9
  93. package/src/pomelo/enums/IdentificationTypeEnum.ts +0 -11
  94. package/src/pomelo/enums/SexEnum.ts +0 -4
  95. package/src/pomelo/enums/TaxTypeEnum.ts +0 -8
  96. package/src/pomelo/enums/UserStatusEnum.ts +0 -7
  97. package/src/pomelo/index.ts +0 -11
  98. package/src/tern/dtos/TernAddress.ts +0 -21
  99. package/src/tern/dtos/TernCreateAccountRequest.ts +0 -16
  100. package/src/tern/dtos/TernCreateAccountResponse.ts +0 -10
  101. package/src/tern/dtos/TernCreateUserRequest.ts +0 -47
  102. package/src/tern/dtos/TernCreateUserResponse.ts +0 -19
  103. package/src/tern/dtos/TernGetAccountRequest.ts +0 -10
  104. package/src/tern/dtos/TernGetAccountResponse.ts +0 -57
  105. package/src/tern/dtos/TernGetUserRequest.ts +0 -6
  106. package/src/tern/dtos/TernGetUserResponse.ts +0 -64
  107. package/src/tern/enums/TernAccountStatusEnum.ts +0 -4
  108. package/src/tern/enums/TernAccountTypeEnum.ts +0 -5
  109. package/src/tern/index.ts +0 -14
@@ -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,5 +0,0 @@
1
- import { TernAccountTypeEnum } from "../enums/TernAccountTypeEnum";
2
- export declare class TernGetAccountRequest {
3
- externalAccountId: string;
4
- accountType?: TernAccountTypeEnum;
5
- }
@@ -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);
@@ -1,3 +0,0 @@
1
- export declare class TernGetUserRequest {
2
- externalUserId: string;
3
- }
@@ -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,4 +0,0 @@
1
- export declare enum TernAccountStatusEnum {
2
- ACTIVE = "ACTIVE",
3
- INACTIVE = "INACTIVE"
4
- }
@@ -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,5 +0,0 @@
1
- export declare enum TernAccountTypeEnum {
2
- CARD_ISSUING = "Card Issuing",
3
- USER = "USER",
4
- BUSINESS = "BUSINESS"
5
- }
@@ -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 = {}));
@@ -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
- }
@@ -1,9 +0,0 @@
1
- export enum CountryEnum
2
- {
3
- MEX = "MEX",
4
- ARG = "ARG",
5
- BRA = "BRA",
6
- PER = "PER",
7
- COL = "COL",
8
- CHL = "CHL",
9
- }
@@ -1,11 +0,0 @@
1
-
2
-
3
-
4
- export enum IdentificationTypeEnum
5
- {
6
- MX_NATIONAL_ID = "INE",
7
- MX_PASSPORT = "PASSPORT",
8
- US_DRIVER_LICENSE = "INE",
9
- FIADO_MX_NATIONAL_ID = "MX_NATIONAL_ID",
10
- PASSPORT = "MX_PASSPORT",
11
- }
@@ -1,4 +0,0 @@
1
- export enum SexEnum{
2
- M = "MALE",
3
- F = "FEMALE"
4
- }
@@ -1,8 +0,0 @@
1
- export enum TaxTypeEnum
2
- {
3
- RFC = "RFC",
4
- CUIL = "CUIL",
5
- CPF = "CPF",
6
- NIT = "NIT",
7
- RUC = "RUC",
8
- }
@@ -1,7 +0,0 @@
1
-
2
-
3
- export enum UserStatusEnum
4
- {
5
- ACTIVE = "ACTIVE",
6
- BLOCKED = "BLOCKED"
7
- }
@@ -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,10 +0,0 @@
1
- import {Provider} from "../../provider";
2
- import {IsEnum, IsString} from "class-validator";
3
-
4
- export class TernCreateAccountResponse {
5
- @IsString()
6
- externalAccountId: string;
7
-
8
- @IsEnum(Provider)
9
- provider: Provider;
10
- }