@fiado/type-kit 1.0.5 → 1.0.7
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/README.md +36 -1
- package/bin/account/dtos/AccountCreateRequest.d.ts +14 -0
- package/bin/account/dtos/AccountCreateRequest.js +65 -0
- package/bin/account/dtos/AccountResponse.js +0 -79
- package/bin/account/dtos/PocketCreateRequest.d.ts +4 -0
- package/bin/account/dtos/PocketCreateRequest.js +31 -0
- package/bin/account/index.d.ts +4 -0
- package/bin/account/index.js +22 -0
- package/bin/address/dtos/AddressCreateRequest.d.ts +3 -0
- package/bin/address/dtos/AddressCreateRequest.js +7 -0
- package/bin/address/index.d.ts +7 -0
- package/bin/address/index.js +9 -0
- package/bin/app/enums/App.d.ts +9 -0
- package/bin/app/enums/App.js +13 -0
- package/bin/authentication/dtos/SignUpAdditionalRequest.d.ts +7 -0
- package/bin/authentication/dtos/SignUpAdditionalRequest.js +46 -0
- package/bin/authentication/dtos/SignUpAdditionalResponse.d.ts +4 -0
- package/bin/authentication/dtos/SignUpAdditionalResponse.js +6 -0
- package/bin/authentication/index.d.ts +1 -0
- package/bin/authentication/index.js +28 -0
- package/bin/card/dtos/CardBalanceResponse.d.ts +9 -0
- package/bin/card/dtos/CardBalanceResponse.js +6 -0
- package/bin/card/dtos/CardCreateAdditionalRequest.d.ts +10 -0
- package/bin/card/dtos/CardCreateAdditionalRequest.js +59 -0
- package/bin/card/dtos/CardCreateRequest.d.ts +34 -0
- package/bin/card/dtos/CardCreateRequest.js +176 -0
- package/bin/card/dtos/CardResponse.js +0 -0
- package/bin/card/index.d.ts +13 -0
- package/bin/card/index.js +10 -4
- package/bin/country/index.d.ts +1 -0
- package/bin/country/index.js +3 -0
- package/bin/currency/dtos/CurrencyResponse.d.ts +6 -0
- package/bin/currency/dtos/CurrencyResponse.js +6 -0
- package/bin/directory/dtos/DirectoryResponse.d.ts +16 -0
- package/bin/directory/dtos/DirectoryResponse.js +2 -0
- package/bin/directory/dtos/External.d.ts +5 -0
- package/bin/directory/dtos/External.js +2 -0
- package/bin/directory/enums/Profile.d.ts +5 -0
- package/bin/directory/enums/Profile.js +9 -0
- package/bin/directory/enums/Scope.d.ts +6 -0
- package/bin/directory/enums/Scope.js +10 -0
- package/bin/directory/enums/Status.d.ts +6 -0
- package/bin/directory/enums/Status.js +10 -0
- package/bin/directory/index.d.ts +1 -0
- package/bin/directory/index.js +19 -0
- package/bin/exchangeRate/dtos/ExchangeRateCreateRequest.d.ts +17 -0
- package/bin/exchangeRate/dtos/ExchangeRateCreateRequest.js +74 -0
- package/bin/exchangeRate/dtos/ExchangeRateResponse.d.ts +18 -0
- package/bin/exchangeRate/dtos/ExchangeRateResponse.js +6 -0
- package/bin/exchangeRate/enums/ExchangeRateStatus.d.ts +4 -0
- package/bin/exchangeRate/enums/ExchangeRateStatus.js +8 -0
- package/bin/exchangeRate/index.d.ts +2 -0
- package/bin/exchangeRate/index.js +20 -0
- package/bin/identity/dtos/IdentificationDocument.d.ts +22 -0
- package/bin/identity/dtos/IdentificationDocument.js +6 -0
- package/bin/identity/dtos/PeopleCreateRequest.d.ts +0 -0
- package/bin/identity/dtos/PeopleCreateRequest.js +0 -0
- package/bin/identity/dtos/PeopleResponse.d.ts +75 -0
- package/bin/identity/dtos/PeopleResponse.js +6 -0
- package/bin/identity/dtos/TypeOfDocument.d.ts +10 -0
- package/bin/identity/dtos/TypeOfDocument.js +6 -0
- package/bin/identity/enums/IdentificationDocumentStatus.d.ts +5 -0
- package/bin/identity/enums/IdentificationDocumentStatus.js +9 -0
- package/bin/identity/enums/SexDocument.d.ts +4 -0
- package/bin/identity/enums/SexDocument.js +8 -0
- package/bin/identity/index.d.ts +0 -0
- package/bin/identity/index.js +0 -0
- package/bin/index.d.ts +6 -15
- package/bin/index.js +18 -17
- package/package.json +1 -1
- package/src/account/dtos/{CreateAccountRequest.ts → AccountCreateRequest.ts} +1 -1
- package/src/account/dtos/AccountResponse.ts +2 -36
- package/src/account/dtos/{CreatePockeRequest.ts → PocketCreateRequest.ts} +1 -1
- package/src/account/index.ts +11 -0
- package/src/address/dtos/AddressCreateRequest.ts +7 -0
- package/src/address/index.ts +11 -0
- package/src/app/enums/App.ts +11 -0
- package/src/authentication/dtos/SignUpAdditionalRequest.ts +34 -0
- package/src/authentication/dtos/SignUpAdditionalResponse.ts +6 -0
- package/src/authentication/index.ts +3 -0
- package/src/card/dtos/CardBalanceResponse.ts +12 -0
- package/src/card/dtos/CardCreateAdditionalRequest.ts +41 -0
- package/src/card/dtos/{CreateCardRequest.ts → CardCreateRequest.ts} +1 -1
- package/src/card/dtos/CardResponse.ts +0 -0
- package/src/card/index.ts +17 -0
- package/src/country/index.ts +6 -1
- package/src/currency/dtos/CurrencyResponse.ts +10 -0
- package/src/directory/dtos/DirectoryResponse.ts +18 -0
- package/src/directory/dtos/External.ts +7 -0
- package/src/directory/enums/Profile.ts +7 -0
- package/src/directory/enums/Scope.ts +8 -0
- package/src/directory/enums/Status.ts +8 -0
- package/src/directory/index.ts +7 -0
- package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +51 -0
- package/src/exchangeRate/dtos/ExchangeRateResponse.ts +22 -0
- package/src/exchangeRate/enums/ExchangeRateStatus.ts +6 -0
- package/src/exchangeRate/index.ts +7 -0
- package/src/identity/dtos/IdentificationDocument.ts +25 -0
- package/src/identity/dtos/PeopleCreateRequest.ts +0 -0
- package/src/identity/dtos/PeopleResponse.ts +80 -0
- package/src/identity/dtos/TypeOfDocument.ts +12 -0
- package/src/identity/enums/IdentificationDocumentStatus.ts +7 -0
- package/src/identity/enums/SexDocument.ts +6 -0
- package/src/identity/index.ts +0 -0
- package/src/index.ts +6 -18
- package/src/address/dtos/CreateAddressRequest.ts +0 -7
- /package/{src/account/dtos/PocketResponse.ts → bin/card/dtos/CardResponse.d.ts} +0 -0
|
@@ -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);
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './dtos/CardActivateRequest';
|
|
2
|
+
export * from './dtos/CardApplicationRequest';
|
|
3
|
+
export * from './dtos/CardCreateRequest';
|
|
4
|
+
export * from './dtos/CardUpdateRequest';
|
|
5
|
+
export * from './dtos/CardCreateAdditionalRequest';
|
|
6
|
+
export * from './dtos/CardBalanceResponse';
|
|
7
|
+
export * from './enums/CardType';
|
|
8
|
+
export * from './enums/CardUpdateKey';
|
|
9
|
+
export * from './enums/IssuanceType';
|
|
10
|
+
export * from './enums/Status';
|
|
11
|
+
export * from './enums/OwnershipType';
|
|
12
|
+
export * from './enums/Brand';
|
|
13
|
+
export * from './enums/UpdateKey';
|
package/bin/card/index.js
CHANGED
|
@@ -14,12 +14,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./dtos/
|
|
19
|
-
__exportStar(require("./dtos/
|
|
17
|
+
//dtos
|
|
18
|
+
__exportStar(require("./dtos/CardActivateRequest"), exports);
|
|
19
|
+
__exportStar(require("./dtos/CardApplicationRequest"), exports);
|
|
20
|
+
__exportStar(require("./dtos/CardCreateRequest"), exports);
|
|
21
|
+
__exportStar(require("./dtos/CardUpdateRequest"), exports);
|
|
22
|
+
__exportStar(require("./dtos/CardCreateAdditionalRequest"), exports);
|
|
23
|
+
__exportStar(require("./dtos/CardBalanceResponse"), exports);
|
|
24
|
+
//enums
|
|
20
25
|
__exportStar(require("./enums/CardType"), exports);
|
|
21
26
|
__exportStar(require("./enums/CardUpdateKey"), exports);
|
|
22
27
|
__exportStar(require("./enums/IssuanceType"), exports);
|
|
23
28
|
__exportStar(require("./enums/Status"), exports);
|
|
24
|
-
__exportStar(require("./enums/IssuanceType"), exports);
|
|
25
29
|
__exportStar(require("./enums/OwnershipType"), exports);
|
|
30
|
+
__exportStar(require("./enums/Brand"), exports);
|
|
31
|
+
__exportStar(require("./enums/UpdateKey"), exports);
|
package/bin/country/index.d.ts
CHANGED
package/bin/country/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
//dto
|
|
2
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
4
|
if (k2 === undefined) k2 = k;
|
|
4
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -14,4 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
16
|
};
|
|
16
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//enums
|
|
17
19
|
__exportStar(require("./enums/CountryId"), exports);
|
|
20
|
+
__exportStar(require("./enums/Country"), 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,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,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,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 = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './enums/TypeOfDirectoryId';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//dtos
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//enums
|
|
19
|
+
__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,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,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,20 @@
|
|
|
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
|
+
//enums
|
|
20
|
+
__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
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { App } from '../../app/enums/App';
|
|
2
|
+
import { SexDocument } from '../enums/SexDocument';
|
|
3
|
+
import { IdentificationDocument } from './IdentificationDocument';
|
|
4
|
+
export declare class PeopleResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
createDate: string;
|
|
7
|
+
lastUpdateDate: string;
|
|
8
|
+
creationMethod: App;
|
|
9
|
+
indexName: string;
|
|
10
|
+
preferredName: string;
|
|
11
|
+
usSuffix: string | null;
|
|
12
|
+
usLastNames: string | null;
|
|
13
|
+
usNames: string | null;
|
|
14
|
+
latNames: string | null;
|
|
15
|
+
latLastNamePaternal: string | null;
|
|
16
|
+
latLastNameMaternal: string | null;
|
|
17
|
+
aliasNames: string[] | null;
|
|
18
|
+
preferredPronoun: string | null;
|
|
19
|
+
SSN_ITIN: string | null;
|
|
20
|
+
rfc: string | null;
|
|
21
|
+
curp: string | null;
|
|
22
|
+
passportNumber: string | null;
|
|
23
|
+
countryOfPassport: string | null;
|
|
24
|
+
documents: IdentificationDocument[] | null;
|
|
25
|
+
countryOfBirth: string | null;
|
|
26
|
+
dateOfBirth: string | null;
|
|
27
|
+
stateOfBirth: string | null;
|
|
28
|
+
nationalities: string[] | null;
|
|
29
|
+
docSex: SexDocument | null;
|
|
30
|
+
internalEmail: string | null;
|
|
31
|
+
occupation: string | null;
|
|
32
|
+
incomeSource: string | null;
|
|
33
|
+
operationId: string | null;
|
|
34
|
+
tenantId: string | null;
|
|
35
|
+
photoOfpersonImageName: string | null;
|
|
36
|
+
videoOfPersonImageName: string | null;
|
|
37
|
+
USA_DebitAccount: boolean;
|
|
38
|
+
MEX_DebitAccount: boolean;
|
|
39
|
+
MEX_CreditClient: boolean;
|
|
40
|
+
MEX_CreditAdditional: boolean;
|
|
41
|
+
magicNumber: boolean;
|
|
42
|
+
USA_UploadDocument: boolean;
|
|
43
|
+
MEX_UploadDocument: boolean;
|
|
44
|
+
videoSelfieVerified: boolean;
|
|
45
|
+
MEX_ValidDocument: string;
|
|
46
|
+
USA_ValidDocument: string;
|
|
47
|
+
USA_FacematchVerified: boolean | null;
|
|
48
|
+
MEX_FacematchVerified: boolean | null;
|
|
49
|
+
fiadoListApproved: boolean | null;
|
|
50
|
+
ofacListApproved: boolean | null;
|
|
51
|
+
cnbvListApproved: boolean | null;
|
|
52
|
+
blackListApproved: boolean | null;
|
|
53
|
+
whiteList: boolean | null;
|
|
54
|
+
hasOwner: boolean;
|
|
55
|
+
older18: boolean | null;
|
|
56
|
+
USA_Address: boolean;
|
|
57
|
+
MEX_Address: boolean;
|
|
58
|
+
COL_Address: boolean;
|
|
59
|
+
GTM_Address: boolean;
|
|
60
|
+
HND_Address: boolean;
|
|
61
|
+
CRI_Address: boolean;
|
|
62
|
+
PER_Address: boolean;
|
|
63
|
+
MEX_ProofAddress: boolean;
|
|
64
|
+
MEX_SendWish: boolean;
|
|
65
|
+
COL_SendWish: boolean;
|
|
66
|
+
GTM_SendWish: boolean;
|
|
67
|
+
HND_SendWish: boolean;
|
|
68
|
+
CRI_SendWish: boolean;
|
|
69
|
+
PER_SendWish: boolean;
|
|
70
|
+
USA_DebitAccountWish: boolean;
|
|
71
|
+
MEX_DebitAccountWish: boolean;
|
|
72
|
+
MEX_CreditAdditionalWish: boolean;
|
|
73
|
+
MEX_CreditClientWish: boolean;
|
|
74
|
+
SSN_ITINRequired: boolean | null;
|
|
75
|
+
}
|