@fiado/type-kit 1.0.6 → 1.0.8

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 (122) hide show
  1. package/README.md +36 -1
  2. package/bin/account/dtos/AccountCreateRequest.d.ts +14 -0
  3. package/bin/account/dtos/AccountCreateRequest.js +65 -0
  4. package/bin/account/dtos/AccountCreateResponse.d.ts +3 -0
  5. package/bin/account/dtos/AccountCreateResponse.js +7 -0
  6. package/bin/account/dtos/AccountResponse.js +0 -79
  7. package/bin/account/dtos/PocketCreateRequest.d.ts +4 -0
  8. package/bin/account/dtos/PocketCreateRequest.js +31 -0
  9. package/bin/account/dtos/PocketCreateResponse.d.ts +2 -0
  10. package/bin/account/dtos/PocketCreateResponse.js +6 -0
  11. package/bin/account/index.d.ts +4 -2
  12. package/bin/account/index.js +4 -2
  13. package/bin/address/dtos/AddressCreateRequest.d.ts +3 -0
  14. package/bin/address/dtos/AddressCreateRequest.js +7 -0
  15. package/bin/address/index.d.ts +1 -1
  16. package/bin/address/index.js +1 -1
  17. package/bin/app/enums/App.d.ts +9 -0
  18. package/bin/app/enums/App.js +13 -0
  19. package/bin/app/index.d.ts +1 -0
  20. package/bin/app/index.js +18 -0
  21. package/bin/authentication/dtos/SignUpAdditionalRequest.d.ts +7 -0
  22. package/bin/authentication/dtos/SignUpAdditionalRequest.js +46 -0
  23. package/bin/authentication/dtos/SignUpAdditionalResponse.d.ts +4 -0
  24. package/bin/authentication/dtos/SignUpAdditionalResponse.js +6 -0
  25. package/bin/authentication/index.d.ts +1 -0
  26. package/bin/authentication/index.js +28 -0
  27. package/bin/card/dtos/CardBalanceResponse.d.ts +9 -0
  28. package/bin/card/dtos/CardBalanceResponse.js +6 -0
  29. package/bin/card/dtos/CardCreateAdditionalRequest.d.ts +10 -0
  30. package/bin/card/dtos/CardCreateAdditionalRequest.js +59 -0
  31. package/bin/card/dtos/CardCreateRequest.d.ts +34 -0
  32. package/bin/card/dtos/CardCreateRequest.js +176 -0
  33. package/bin/card/dtos/CardResponse.d.ts +2 -0
  34. package/bin/card/dtos/CardResponse.js +6 -0
  35. package/bin/card/index.d.ts +4 -1
  36. package/bin/card/index.js +4 -1
  37. package/bin/currency/dtos/CurrencyResponse.d.ts +6 -0
  38. package/bin/currency/dtos/CurrencyResponse.js +6 -0
  39. package/bin/currency/index.d.ts +1 -0
  40. package/bin/currency/index.js +17 -0
  41. package/bin/directory/dtos/DirectoryResponse.d.ts +16 -0
  42. package/bin/directory/dtos/DirectoryResponse.js +2 -0
  43. package/bin/directory/dtos/External.d.ts +5 -0
  44. package/bin/directory/dtos/External.js +2 -0
  45. package/bin/directory/enums/Profile.d.ts +5 -0
  46. package/bin/directory/enums/Profile.js +9 -0
  47. package/bin/directory/enums/Scope.d.ts +6 -0
  48. package/bin/directory/enums/Scope.js +10 -0
  49. package/bin/directory/enums/Status.d.ts +6 -0
  50. package/bin/directory/enums/Status.js +10 -0
  51. package/bin/directory/index.d.ts +2 -0
  52. package/bin/directory/index.js +3 -1
  53. package/bin/exchangeRate/dtos/ExchangeRateCreateRequest.d.ts +17 -0
  54. package/bin/exchangeRate/dtos/ExchangeRateCreateRequest.js +74 -0
  55. package/bin/exchangeRate/dtos/ExchangeRateCreateResponse.d.ts +3 -0
  56. package/bin/exchangeRate/dtos/ExchangeRateCreateResponse.js +7 -0
  57. package/bin/exchangeRate/dtos/ExchangeRateResponse.d.ts +18 -0
  58. package/bin/exchangeRate/dtos/ExchangeRateResponse.js +6 -0
  59. package/bin/exchangeRate/enums/ExchangeRateStatus.d.ts +4 -0
  60. package/bin/exchangeRate/enums/ExchangeRateStatus.js +8 -0
  61. package/bin/exchangeRate/index.d.ts +4 -0
  62. package/bin/exchangeRate/index.js +22 -0
  63. package/bin/identity/dtos/IdentificationDocument.d.ts +22 -0
  64. package/bin/identity/dtos/IdentificationDocument.js +6 -0
  65. package/bin/identity/dtos/PeopleCreateRequest.d.ts +2 -0
  66. package/bin/identity/dtos/PeopleCreateRequest.js +6 -0
  67. package/bin/identity/dtos/PeopleResponse.d.ts +75 -0
  68. package/bin/identity/dtos/PeopleResponse.js +6 -0
  69. package/bin/identity/dtos/TypeOfDocument.d.ts +10 -0
  70. package/bin/identity/dtos/TypeOfDocument.js +6 -0
  71. package/bin/identity/enums/IdentificationDocumentStatus.d.ts +5 -0
  72. package/bin/identity/enums/IdentificationDocumentStatus.js +9 -0
  73. package/bin/identity/enums/SexDocument.d.ts +4 -0
  74. package/bin/identity/enums/SexDocument.js +8 -0
  75. package/bin/identity/index.d.ts +6 -0
  76. package/bin/identity/index.js +24 -0
  77. package/bin/index.d.ts +6 -0
  78. package/bin/index.js +7 -1
  79. package/bin/provider/index.d.ts +1 -0
  80. package/bin/provider/index.js +17 -0
  81. package/package.json +1 -1
  82. package/src/account/dtos/{CreateAccountRequest.ts → AccountCreateRequest.ts} +1 -1
  83. package/src/account/dtos/AccountCreateResponse.ts +6 -0
  84. package/src/account/dtos/AccountResponse.ts +2 -36
  85. package/src/account/dtos/{CreatePockeRequest.ts → PocketCreateRequest.ts} +1 -1
  86. package/src/account/dtos/PocketCreateResponse.ts +5 -0
  87. package/src/account/index.ts +4 -2
  88. package/src/address/dtos/AddressCreateRequest.ts +7 -0
  89. package/src/address/index.ts +1 -1
  90. package/src/app/enums/App.ts +11 -0
  91. package/src/app/index.ts +4 -0
  92. package/src/authentication/dtos/SignUpAdditionalRequest.ts +33 -0
  93. package/src/authentication/dtos/SignUpAdditionalResponse.ts +6 -0
  94. package/src/authentication/index.ts +3 -0
  95. package/src/card/dtos/CardBalanceResponse.ts +12 -0
  96. package/src/card/dtos/CardCreateAdditionalRequest.ts +41 -0
  97. package/src/card/dtos/{CreateCardRequest.ts → CardCreateRequest.ts} +1 -1
  98. package/src/card/dtos/CardResponse.ts +5 -0
  99. package/src/card/index.ts +4 -1
  100. package/src/currency/dtos/CurrencyResponse.ts +9 -0
  101. package/src/currency/index.ts +3 -0
  102. package/src/directory/dtos/DirectoryResponse.ts +18 -0
  103. package/src/directory/dtos/External.ts +7 -0
  104. package/src/directory/enums/Profile.ts +7 -0
  105. package/src/directory/enums/Scope.ts +8 -0
  106. package/src/directory/enums/Status.ts +8 -0
  107. package/src/directory/index.ts +2 -1
  108. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +51 -0
  109. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +5 -0
  110. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +20 -0
  111. package/src/exchangeRate/enums/ExchangeRateStatus.ts +6 -0
  112. package/src/exchangeRate/index.ts +9 -0
  113. package/src/identity/dtos/IdentificationDocument.ts +25 -0
  114. package/src/identity/dtos/PeopleCreateRequest.ts +5 -0
  115. package/src/identity/dtos/PeopleResponse.ts +80 -0
  116. package/src/identity/dtos/TypeOfDocument.ts +12 -0
  117. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -0
  118. package/src/identity/enums/SexDocument.ts +6 -0
  119. package/src/identity/index.ts +11 -0
  120. package/src/index.ts +6 -0
  121. package/src/provider/index.ts +2 -0
  122. package/src/address/dtos/CreateAddressRequest.ts +0 -7
@@ -0,0 +1,176 @@
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.CardCreateRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const CountryId_1 = require("../../country/enums/CountryId");
16
+ const CardType_1 = require("../enums/CardType");
17
+ const Brand_1 = require("../enums/Brand");
18
+ const OwnershipType_1 = require("../enums/OwnershipType");
19
+ const Status_1 = require("../enums/Status");
20
+ const regex_1 = require("../../helpers/constans/regex");
21
+ const address_1 = require("../../address");
22
+ class CardCreateRequest {
23
+ }
24
+ exports.CardCreateRequest = CardCreateRequest;
25
+ __decorate([
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_validator_1.IsString)(),
28
+ (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
29
+ message: 'id must be a valid UUID v4',
30
+ }),
31
+ __metadata("design:type", String)
32
+ ], CardCreateRequest.prototype, "id", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsString)(),
36
+ (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
37
+ message: 'accountId must be a valid UUID v4 or null',
38
+ }),
39
+ __metadata("design:type", String)
40
+ ], CardCreateRequest.prototype, "accountId", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsOptional)(),
43
+ (0, class_validator_1.IsString)(),
44
+ (0, class_validator_1.Matches)(regex_1.regexIso8601, {
45
+ message: 'activationDate must be a valid ISO 8601 date string',
46
+ }),
47
+ __metadata("design:type", String)
48
+ ], CardCreateRequest.prototype, "activationDate", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsEnum)(CountryId_1.CountryId),
51
+ __metadata("design:type", String)
52
+ ], CardCreateRequest.prototype, "countryId", void 0);
53
+ __decorate([
54
+ (0, class_validator_1.IsEnum)(CardType_1.CardType),
55
+ __metadata("design:type", String)
56
+ ], CardCreateRequest.prototype, "type", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsString)(),
59
+ (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
60
+ message: 'directoryId must be a valid UUID v4',
61
+ }),
62
+ __metadata("design:type", String)
63
+ ], CardCreateRequest.prototype, "directoryId", void 0);
64
+ __decorate([
65
+ (0, class_validator_1.IsString)(),
66
+ (0, class_validator_1.Length)(1, 100),
67
+ __metadata("design:type", String)
68
+ ], CardCreateRequest.prototype, "externalCardId", void 0);
69
+ __decorate([
70
+ (0, class_validator_1.IsString)(),
71
+ (0, class_validator_1.Length)(1, 100),
72
+ __metadata("design:type", String)
73
+ ], CardCreateRequest.prototype, "externalUserId", void 0);
74
+ __decorate([
75
+ (0, class_validator_1.IsOptional)(),
76
+ (0, class_validator_1.IsString)(),
77
+ (0, class_validator_1.Length)(1, 100),
78
+ __metadata("design:type", String)
79
+ ], CardCreateRequest.prototype, "externalShipmentId", void 0);
80
+ __decorate([
81
+ (0, class_validator_1.IsOptional)(),
82
+ (0, class_validator_1.IsString)(),
83
+ (0, class_validator_1.Length)(1, 50),
84
+ __metadata("design:type", String)
85
+ ], CardCreateRequest.prototype, "shipmentProvider", void 0);
86
+ __decorate([
87
+ (0, class_validator_1.IsOptional)(),
88
+ (0, class_validator_1.IsString)(),
89
+ (0, class_validator_1.Length)(1, 50),
90
+ __metadata("design:type", String)
91
+ ], CardCreateRequest.prototype, "externalShipmentTrackingId", void 0);
92
+ __decorate([
93
+ (0, class_validator_1.IsOptional)(),
94
+ (0, class_validator_1.IsString)(),
95
+ (0, class_validator_1.Length)(1, 200),
96
+ __metadata("design:type", String)
97
+ ], CardCreateRequest.prototype, "externalShipmentTrackingUrl", void 0);
98
+ __decorate([
99
+ (0, class_validator_1.IsOptional)(),
100
+ (0, class_validator_1.IsString)(),
101
+ (0, class_validator_1.Length)(1, 50),
102
+ __metadata("design:type", String)
103
+ ], CardCreateRequest.prototype, "holderName", void 0);
104
+ __decorate([
105
+ (0, class_validator_1.IsOptional)(),
106
+ (0, class_validator_1.IsString)(),
107
+ (0, class_validator_1.Length)(1, 50),
108
+ __metadata("design:type", String)
109
+ ], CardCreateRequest.prototype, "holderLastName", void 0);
110
+ __decorate([
111
+ (0, class_validator_1.IsOptional)(),
112
+ (0, class_validator_1.IsString)(),
113
+ (0, class_validator_1.Length)(1, 200),
114
+ __metadata("design:type", String)
115
+ ], CardCreateRequest.prototype, "imageUrl", void 0);
116
+ __decorate([
117
+ (0, class_validator_1.IsEnum)(Brand_1.Brand),
118
+ __metadata("design:type", String)
119
+ ], CardCreateRequest.prototype, "brand", void 0);
120
+ __decorate([
121
+ (0, class_validator_1.IsEnum)(OwnershipType_1.OwnershipType),
122
+ __metadata("design:type", String)
123
+ ], CardCreateRequest.prototype, "ownershipType", void 0);
124
+ __decorate([
125
+ (0, class_validator_1.IsString)(),
126
+ (0, class_validator_1.Length)(4, 4),
127
+ __metadata("design:type", String)
128
+ ], CardCreateRequest.prototype, "lastFour", void 0);
129
+ __decorate([
130
+ (0, class_validator_1.IsOptional)(),
131
+ (0, class_validator_1.IsString)(),
132
+ (0, class_validator_1.Length)(1, 50),
133
+ __metadata("design:type", String)
134
+ ], CardCreateRequest.prototype, "providerName", void 0);
135
+ __decorate([
136
+ (0, class_validator_1.IsEnum)(Status_1.Status),
137
+ __metadata("design:type", String)
138
+ ], CardCreateRequest.prototype, "status", void 0);
139
+ __decorate([
140
+ (0, class_validator_1.IsOptional)(),
141
+ (0, class_validator_1.IsString)(),
142
+ __metadata("design:type", String)
143
+ ], CardCreateRequest.prototype, "statusUpdateDate", void 0);
144
+ __decorate([
145
+ (0, class_validator_1.IsOptional)(),
146
+ (0, class_validator_1.IsString)(),
147
+ (0, class_validator_1.Length)(1, 50),
148
+ __metadata("design:type", String)
149
+ ], CardCreateRequest.prototype, "tenantId", void 0);
150
+ __decorate([
151
+ (0, class_validator_1.IsOptional)(),
152
+ (0, class_validator_1.IsNumber)(),
153
+ (0, class_validator_1.Min)(1),
154
+ (0, class_validator_1.Max)(9999999999),
155
+ __metadata("design:type", Number)
156
+ ], CardCreateRequest.prototype, "spendLimitByTransaction", void 0);
157
+ __decorate([
158
+ (0, class_validator_1.IsOptional)(),
159
+ (0, class_validator_1.IsNumber)(),
160
+ (0, class_validator_1.Min)(1),
161
+ (0, class_validator_1.Max)(9999999999),
162
+ __metadata("design:type", Number)
163
+ ], CardCreateRequest.prototype, "spendLimitByDay", void 0);
164
+ __decorate([
165
+ (0, class_validator_1.IsOptional)(),
166
+ (0, class_validator_1.IsNumber)(),
167
+ (0, class_validator_1.Min)(1),
168
+ (0, class_validator_1.Max)(9999999999),
169
+ __metadata("design:type", Number)
170
+ ], CardCreateRequest.prototype, "spendLimitByMonth", void 0);
171
+ __decorate([
172
+ (0, class_validator_1.IsOptional)(),
173
+ (0, class_validator_1.ValidateNested)(),
174
+ (0, class_transformer_1.Type)(() => address_1.Shipping),
175
+ __metadata("design:type", address_1.Shipping)
176
+ ], CardCreateRequest.prototype, "shippedAddress", void 0);
@@ -0,0 +1,2 @@
1
+ export declare class CardResponse {
2
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CardResponse = void 0;
4
+ class CardResponse {
5
+ }
6
+ exports.CardResponse = CardResponse;
@@ -1,7 +1,10 @@
1
1
  export * from './dtos/CardActivateRequest';
2
2
  export * from './dtos/CardApplicationRequest';
3
- export * from './dtos/CreateCardRequest';
3
+ export * from './dtos/CardCreateRequest';
4
4
  export * from './dtos/CardUpdateRequest';
5
+ export * from './dtos/CardCreateAdditionalRequest';
6
+ export * from './dtos/CardBalanceResponse';
7
+ export * from './dtos/CardResponse';
5
8
  export * from './enums/CardType';
6
9
  export * from './enums/CardUpdateKey';
7
10
  export * from './enums/IssuanceType';
package/bin/card/index.js CHANGED
@@ -17,8 +17,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  //dtos
18
18
  __exportStar(require("./dtos/CardActivateRequest"), exports);
19
19
  __exportStar(require("./dtos/CardApplicationRequest"), exports);
20
- __exportStar(require("./dtos/CreateCardRequest"), exports);
20
+ __exportStar(require("./dtos/CardCreateRequest"), exports);
21
21
  __exportStar(require("./dtos/CardUpdateRequest"), exports);
22
+ __exportStar(require("./dtos/CardCreateAdditionalRequest"), exports);
23
+ __exportStar(require("./dtos/CardBalanceResponse"), exports);
24
+ __exportStar(require("./dtos/CardResponse"), exports);
22
25
  //enums
23
26
  __exportStar(require("./enums/CardType"), exports);
24
27
  __exportStar(require("./enums/CardUpdateKey"), exports);
@@ -0,0 +1,6 @@
1
+ export declare class CurrencyResponse {
2
+ currencyId: string;
3
+ iso: string;
4
+ name: string;
5
+ symbol: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CurrencyResponse = void 0;
4
+ class CurrencyResponse {
5
+ }
6
+ exports.CurrencyResponse = CurrencyResponse;
@@ -0,0 +1 @@
1
+ export * from './dtos/CurrencyResponse';
@@ -0,0 +1,17 @@
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
+ __exportStar(require("./dtos/CurrencyResponse"), exports);
@@ -0,0 +1,16 @@
1
+ import { Profile } from "../enums/Profile";
2
+ import { Scope } from "../enums/Scope";
3
+ import { Status } from "../enums/Status";
4
+ import { External } from "./External";
5
+ export interface Directory {
6
+ identityId: string | null;
7
+ lastSession: string | null;
8
+ ownerDirectoryId: string | null;
9
+ password: string;
10
+ peopleId: string;
11
+ phoneNumber: string;
12
+ scope: Array<Scope>;
13
+ status: Status;
14
+ userProfile: Profile;
15
+ external: Array<External>;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { Provider } from "../../provider/enums/Provider";
2
+ export type External = {
3
+ provider: Provider;
4
+ user: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export declare enum Profile {
2
+ HOST = "HOST",
3
+ GUEST = "GUEST",
4
+ GUEST_MINOR = "GUEST_MINOR"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Profile = void 0;
4
+ var Profile;
5
+ (function (Profile) {
6
+ Profile["HOST"] = "HOST";
7
+ Profile["GUEST"] = "GUEST";
8
+ Profile["GUEST_MINOR"] = "GUEST_MINOR";
9
+ })(Profile || (exports.Profile = Profile = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum Scope {
2
+ FIADO_MX = "fiado.mx",
3
+ FIADO_US = "fiado.us",
4
+ US_ONBOARDING_PROFILE = "fiado.on_us",
5
+ MX_ONBOARDING_PROFILE = "fiado.on_mx"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Scope = void 0;
4
+ var Scope;
5
+ (function (Scope) {
6
+ Scope["FIADO_MX"] = "fiado.mx";
7
+ Scope["FIADO_US"] = "fiado.us";
8
+ Scope["US_ONBOARDING_PROFILE"] = "fiado.on_us";
9
+ Scope["MX_ONBOARDING_PROFILE"] = "fiado.on_mx";
10
+ })(Scope || (exports.Scope = Scope = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum Status {
2
+ ACTIVE = "ACTIVE",
3
+ PAUSED = "PAUSED",
4
+ PROHIBITED = "PROHIBITED",
5
+ SIGN_UP = "SIGN_UP"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Status = void 0;
4
+ var Status;
5
+ (function (Status) {
6
+ Status["ACTIVE"] = "ACTIVE";
7
+ Status["PAUSED"] = "PAUSED";
8
+ Status["PROHIBITED"] = "PROHIBITED";
9
+ Status["SIGN_UP"] = "SIGN_UP";
10
+ })(Status || (exports.Status = Status = {}));
@@ -1 +1,3 @@
1
+ export * from './dtos/DirectoryResponse';
2
+ export * from './dtos/External';
1
3
  export * from './enums/TypeOfDirectoryId';
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- //dtos
3
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
3
  if (k2 === undefined) k2 = k;
5
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -15,5 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
15
  };
17
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ //dtos
18
+ __exportStar(require("./dtos/DirectoryResponse"), exports);
19
+ __exportStar(require("./dtos/External"), exports);
18
20
  //enums
19
21
  __exportStar(require("./enums/TypeOfDirectoryId"), exports);
@@ -0,0 +1,17 @@
1
+ import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
2
+ import { CountryId } from "../../country";
3
+ import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
4
+ export declare class ExchangeRateCreateRequest {
5
+ id: string;
6
+ adjustmentExchangeRate: number;
7
+ adjustmentPercentage: number;
8
+ destinationCurrency: CurrencyResponse;
9
+ destinationCurrencyId: CountryId;
10
+ exchangeRate: number;
11
+ fxFactor: number;
12
+ maxRequestAmount: number;
13
+ minRequestAmount: number;
14
+ originCurrency: CurrencyResponse;
15
+ originCurrencyId: string;
16
+ status: ExchangeRateStatus;
17
+ }
@@ -0,0 +1,74 @@
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.ExchangeRateCreateRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const CurrencyResponse_1 = require("../../currency/dtos/CurrencyResponse");
15
+ const class_transformer_1 = require("class-transformer");
16
+ const country_1 = require("../../country");
17
+ const ExchangeRateStatus_1 = require("../enums/ExchangeRateStatus");
18
+ class ExchangeRateCreateRequest {
19
+ }
20
+ exports.ExchangeRateCreateRequest = ExchangeRateCreateRequest;
21
+ __decorate([
22
+ (0, class_validator_1.IsUUID)(),
23
+ __metadata("design:type", String)
24
+ ], ExchangeRateCreateRequest.prototype, "id", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsNumber)(),
27
+ __metadata("design:type", Number)
28
+ ], ExchangeRateCreateRequest.prototype, "adjustmentExchangeRate", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsNumber)(),
31
+ __metadata("design:type", Number)
32
+ ], ExchangeRateCreateRequest.prototype, "adjustmentPercentage", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.ValidateNested)(),
35
+ (0, class_transformer_1.Type)(() => CurrencyResponse_1.CurrencyResponse),
36
+ __metadata("design:type", CurrencyResponse_1.CurrencyResponse)
37
+ ], ExchangeRateCreateRequest.prototype, "destinationCurrency", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsString)(),
40
+ __metadata("design:type", String)
41
+ ], ExchangeRateCreateRequest.prototype, "destinationCurrencyId", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsNumber)(),
44
+ __metadata("design:type", Number)
45
+ ], ExchangeRateCreateRequest.prototype, "exchangeRate", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsNumber)(),
48
+ __metadata("design:type", Number)
49
+ ], ExchangeRateCreateRequest.prototype, "fxFactor", void 0);
50
+ __decorate([
51
+ (0, class_validator_1.IsNumber)(),
52
+ (0, class_validator_1.Max)(50000),
53
+ (0, class_validator_1.Min)(10),
54
+ __metadata("design:type", Number)
55
+ ], ExchangeRateCreateRequest.prototype, "maxRequestAmount", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsNumber)(),
58
+ (0, class_validator_1.Max)(50000),
59
+ (0, class_validator_1.Min)(10),
60
+ __metadata("design:type", Number)
61
+ ], ExchangeRateCreateRequest.prototype, "minRequestAmount", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.ValidateNested)(),
64
+ (0, class_transformer_1.Type)(() => CurrencyResponse_1.CurrencyResponse),
65
+ __metadata("design:type", CurrencyResponse_1.CurrencyResponse)
66
+ ], ExchangeRateCreateRequest.prototype, "originCurrency", void 0);
67
+ __decorate([
68
+ (0, class_validator_1.IsString)(),
69
+ __metadata("design:type", String)
70
+ ], ExchangeRateCreateRequest.prototype, "originCurrencyId", void 0);
71
+ __decorate([
72
+ (0, class_validator_1.IsEnum)(ExchangeRateStatus_1.ExchangeRateStatus),
73
+ __metadata("design:type", String)
74
+ ], ExchangeRateCreateRequest.prototype, "status", void 0);
@@ -0,0 +1,3 @@
1
+ import { ExchangeRateResponse } from "./ExchangeRateResponse";
2
+ export declare class ExchangeRateCreateResponse extends ExchangeRateResponse {
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExchangeRateCreateResponse = void 0;
4
+ const ExchangeRateResponse_1 = require("./ExchangeRateResponse");
5
+ class ExchangeRateCreateResponse extends ExchangeRateResponse_1.ExchangeRateResponse {
6
+ }
7
+ exports.ExchangeRateCreateResponse = ExchangeRateCreateResponse;
@@ -0,0 +1,18 @@
1
+ import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
2
+ import { CountryId } from "../../country";
3
+ import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
4
+ export declare class ExchangeRateResponse {
5
+ id: string;
6
+ adjustmentExchangeRate: number;
7
+ adjustmentPercentage: number;
8
+ createDate: string;
9
+ destinationCurrency: CurrencyResponse;
10
+ destinationCurrencyId: CountryId;
11
+ exchangeRate: number;
12
+ fxFactor: number;
13
+ maxRequestAmount: number;
14
+ minRequestAmount: number;
15
+ originCurrency: CurrencyResponse;
16
+ originCurrencyId: string;
17
+ status: ExchangeRateStatus;
18
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExchangeRateResponse = void 0;
4
+ class ExchangeRateResponse {
5
+ }
6
+ exports.ExchangeRateResponse = ExchangeRateResponse;
@@ -0,0 +1,4 @@
1
+ export declare enum ExchangeRateStatus {
2
+ ENABLED = "ENABLED",
3
+ DISABLED = "DISABLED"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExchangeRateStatus = void 0;
4
+ var ExchangeRateStatus;
5
+ (function (ExchangeRateStatus) {
6
+ ExchangeRateStatus["ENABLED"] = "ENABLED";
7
+ ExchangeRateStatus["DISABLED"] = "DISABLED";
8
+ })(ExchangeRateStatus || (exports.ExchangeRateStatus = ExchangeRateStatus = {}));
@@ -0,0 +1,4 @@
1
+ export * from './dtos/ExchangeRateResponse';
2
+ export * from './dtos/ExchangeRateCreateRequest';
3
+ export * from './dtos/ExchangeRateCreateResponse';
4
+ export * from './enums/ExchangeRateStatus';
@@ -0,0 +1,22 @@
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/ExchangeRateResponse"), exports);
19
+ __exportStar(require("./dtos/ExchangeRateCreateRequest"), exports);
20
+ __exportStar(require("./dtos/ExchangeRateCreateResponse"), exports);
21
+ //enums
22
+ __exportStar(require("./enums/ExchangeRateStatus"), exports);
@@ -0,0 +1,22 @@
1
+ import { Country } from "../../country/enums/Country";
2
+ import { IdentificationDocumentStatus } from "../enums/IdentificationDocumentStatus";
3
+ import { SexDocument } from "../enums/SexDocument";
4
+ export declare class IdentificationDocument {
5
+ frontImageName: string | null;
6
+ backImageName: string | null;
7
+ countryId: Country | null;
8
+ expirationDate: string | null;
9
+ issueDate: string | null;
10
+ lastNameFirst: string | null;
11
+ lastNameSecond: string | null;
12
+ names: string | null;
13
+ fullName: string | null;
14
+ countryOfBirth: string | null;
15
+ dateOfBirth: string | null;
16
+ documentNumber: string | null;
17
+ typeOfDocument: string;
18
+ sex: SexDocument | null;
19
+ verificationId: string | null;
20
+ curp: string | null;
21
+ status: IdentificationDocumentStatus;
22
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IdentificationDocument = void 0;
4
+ class IdentificationDocument {
5
+ }
6
+ exports.IdentificationDocument = IdentificationDocument;
@@ -0,0 +1,2 @@
1
+ export declare class PeopleCreateRequest {
2
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PeopleCreateRequest = void 0;
4
+ class PeopleCreateRequest {
5
+ }
6
+ exports.PeopleCreateRequest = PeopleCreateRequest;