@fiado/type-kit 1.0.56 → 1.0.58
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/bin/account/dtos/AccountCreateRequest.d.ts +5 -0
- package/bin/account/dtos/AccountCreateRequest.js +18 -0
- package/bin/account/dtos/AccountCreateResponse.d.ts +7 -2
- package/bin/account/dtos/AccountCreateResponse.js +1 -2
- package/bin/account/index.d.ts +0 -4
- package/bin/account/index.js +0 -6
- package/bin/index.d.ts +1 -0
- package/bin/index.js +2 -1
- package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +28 -0
- package/bin/pomelo/dtos/PomeloCreateUserRequest.js +2 -0
- package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +35 -0
- package/bin/pomelo/dtos/PomeloCreateUserResponse.js +2 -0
- package/bin/pomelo/enums/CountryEnum.d.ts +8 -0
- package/bin/pomelo/enums/CountryEnum.js +12 -0
- package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +7 -0
- package/bin/pomelo/enums/IdentificationTypeEnum.js +11 -0
- package/bin/pomelo/enums/SexEnum.d.ts +4 -0
- package/bin/pomelo/enums/SexEnum.js +8 -0
- package/bin/pomelo/enums/TaxTypeEnum.d.ts +7 -0
- package/bin/pomelo/enums/TaxTypeEnum.js +11 -0
- package/bin/pomelo/enums/UserStatusEnum.d.ts +4 -0
- package/bin/pomelo/enums/UserStatusEnum.js +8 -0
- package/bin/pomelo/index.d.ts +7 -0
- package/bin/pomelo/index.js +25 -0
- package/package.json +1 -1
- package/src/account/dtos/AccountCreateRequest.ts +15 -2
- package/src/account/dtos/AccountCreateResponse.ts +7 -5
- package/src/account/index.ts +0 -12
- package/src/index.ts +1 -0
- package/src/pomelo/dtos/PomeloCreateUserRequest.ts +31 -0
- package/src/pomelo/dtos/PomeloCreateUserResponse.ts +36 -0
- package/src/pomelo/enums/CountryEnum.ts +9 -0
- package/src/pomelo/enums/IdentificationTypeEnum.ts +11 -0
- package/src/pomelo/enums/SexEnum.ts +4 -0
- package/src/pomelo/enums/TaxTypeEnum.ts +8 -0
- package/src/pomelo/enums/UserStatusEnum.ts +7 -0
- package/src/pomelo/index.ts +11 -0
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +0 -3
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +0 -22
- package/src/account/dtos/AccountResponse.ts +0 -26
- package/src/account/dtos/PocketCreateRequest.ts +0 -19
- package/src/account/dtos/PocketCreateResponse.ts +0 -5
- package/src/account/enums/AccountStatus.ts +0 -7
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AddressResponse } from "../../address/dtos/AddressResponse";
|
|
2
2
|
import { Country } from "../../country/enums/Country";
|
|
3
|
+
import { SexDocument } from '../../identity';
|
|
3
4
|
export declare class AccountCreateRequest {
|
|
4
5
|
directoryId: string;
|
|
5
6
|
typeOfDirectoryId: string;
|
|
@@ -10,5 +11,9 @@ export declare class AccountCreateRequest {
|
|
|
10
11
|
email: string;
|
|
11
12
|
dob: string;
|
|
12
13
|
documentNumber: string;
|
|
14
|
+
documentType: string;
|
|
15
|
+
gender: SexDocument;
|
|
16
|
+
externalClientId: string;
|
|
17
|
+
externalUserId: string;
|
|
13
18
|
countryId: Country;
|
|
14
19
|
}
|
|
@@ -16,6 +16,7 @@ const Country_1 = require("../../country/enums/Country");
|
|
|
16
16
|
const regex_1 = require("../../helpers/constans/regex");
|
|
17
17
|
const TypeOfDirectoryId_1 = require("../../directory/enums/TypeOfDirectoryId");
|
|
18
18
|
const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberConstraint");
|
|
19
|
+
const identity_1 = require("../../identity");
|
|
19
20
|
class AccountCreateRequest {
|
|
20
21
|
}
|
|
21
22
|
exports.AccountCreateRequest = AccountCreateRequest;
|
|
@@ -59,6 +60,23 @@ __decorate([
|
|
|
59
60
|
(0, class_validator_1.Length)(1, 30),
|
|
60
61
|
__metadata("design:type", String)
|
|
61
62
|
], AccountCreateRequest.prototype, "documentNumber", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
(0, class_validator_1.Length)(1, 30),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], AccountCreateRequest.prototype, "documentType", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsEnum)(identity_1.SexDocument),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], AccountCreateRequest.prototype, "gender", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsString)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], AccountCreateRequest.prototype, "externalClientId", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsString)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], AccountCreateRequest.prototype, "externalUserId", void 0);
|
|
62
80
|
__decorate([
|
|
63
81
|
(0, class_validator_1.IsEnum)(Country_1.Country),
|
|
64
82
|
__metadata("design:type", String)
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare class AccountCreateResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
externalId: string;
|
|
4
|
+
externalUserId: string;
|
|
5
|
+
directoryId: string;
|
|
6
|
+
typeOfDirectoryId: string;
|
|
7
|
+
countryId: string;
|
|
3
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AccountCreateResponse = void 0;
|
|
4
|
-
|
|
5
|
-
class AccountCreateResponse extends AccountResponse_1.AccountResponse {
|
|
4
|
+
class AccountCreateResponse {
|
|
6
5
|
}
|
|
7
6
|
exports.AccountCreateResponse = AccountCreateResponse;
|
package/bin/account/index.d.ts
CHANGED
package/bin/account/index.js
CHANGED
|
@@ -15,11 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
//dtos
|
|
18
|
-
__exportStar(require("./dtos/AccountResponse"), exports);
|
|
19
18
|
__exportStar(require("./dtos/AccountCreateRequest"), exports);
|
|
20
19
|
__exportStar(require("./dtos/AccountCreateResponse"), exports);
|
|
21
|
-
__exportStar(require("./dtos/PocketCreateRequest"), exports);
|
|
22
|
-
__exportStar(require("./dtos/PocketCreateResponse"), exports);
|
|
23
|
-
//enums
|
|
24
|
-
__exportStar(require("./enums/AccountStatus"), exports);
|
|
25
|
-
//interfaces
|
package/bin/index.d.ts
CHANGED
package/bin/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Account = void 0;
|
|
26
|
+
exports.Pomelo = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Account = void 0;
|
|
27
27
|
exports.Account = __importStar(require("./account"));
|
|
28
28
|
exports.Address = __importStar(require("./address"));
|
|
29
29
|
exports.App = __importStar(require("./app"));
|
|
@@ -42,3 +42,4 @@ exports.NotificationMessages = __importStar(require("./notificationMessages"));
|
|
|
42
42
|
exports.SessionActivity = __importStar(require("./sessionActivity"));
|
|
43
43
|
exports.EventBridgeMessage = __importStar(require("./eventBridge"));
|
|
44
44
|
exports.GenericMessage = __importStar(require("./genericMessage"));
|
|
45
|
+
exports.Pomelo = __importStar(require("./pomelo"));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CountryEnum } from "../enums/CountryEnum";
|
|
2
|
+
import { SexEnum } from "../enums/SexEnum";
|
|
3
|
+
import { TaxTypeEnum } from "../enums/TaxTypeEnum";
|
|
4
|
+
export type PomeloCreateUserRequest = {
|
|
5
|
+
name?: string;
|
|
6
|
+
surname?: string;
|
|
7
|
+
identification_type?: "INE";
|
|
8
|
+
identification_value?: string;
|
|
9
|
+
birthdate?: string;
|
|
10
|
+
gender?: SexEnum;
|
|
11
|
+
email: string;
|
|
12
|
+
phone?: string;
|
|
13
|
+
tax_identification_type?: TaxTypeEnum;
|
|
14
|
+
tax_identification_value?: string;
|
|
15
|
+
legal_address: {
|
|
16
|
+
street_name?: string;
|
|
17
|
+
street_number?: string;
|
|
18
|
+
floor?: string;
|
|
19
|
+
apartment?: string;
|
|
20
|
+
zip_code?: string;
|
|
21
|
+
neighborhood?: string;
|
|
22
|
+
city?: string;
|
|
23
|
+
region?: string;
|
|
24
|
+
additional_info?: string;
|
|
25
|
+
country?: CountryEnum;
|
|
26
|
+
};
|
|
27
|
+
operation_country: CountryEnum;
|
|
28
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
export interface PomeloCreateUserResponse {
|
|
7
|
+
data: {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
surname: string;
|
|
11
|
+
identification_type: IdentificationTypeEnum;
|
|
12
|
+
identification_value: string;
|
|
13
|
+
birthdate: string;
|
|
14
|
+
gender: SexEnum;
|
|
15
|
+
email: string;
|
|
16
|
+
phone: string;
|
|
17
|
+
tax_identification_type: TaxTypeEnum;
|
|
18
|
+
tax_identification_value: string;
|
|
19
|
+
nationality: CountryEnum;
|
|
20
|
+
status: UserStatusEnum;
|
|
21
|
+
operation_country: CountryEnum;
|
|
22
|
+
legal_address: {
|
|
23
|
+
street_name: string;
|
|
24
|
+
street_number: string;
|
|
25
|
+
floor: string;
|
|
26
|
+
apartment: string;
|
|
27
|
+
zip_code: string;
|
|
28
|
+
neighborhood: string;
|
|
29
|
+
city: string;
|
|
30
|
+
region: string;
|
|
31
|
+
additional_info: string;
|
|
32
|
+
country: CountryEnum;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CountryEnum = void 0;
|
|
4
|
+
var CountryEnum;
|
|
5
|
+
(function (CountryEnum) {
|
|
6
|
+
CountryEnum["MEX"] = "MEX";
|
|
7
|
+
CountryEnum["ARG"] = "ARG";
|
|
8
|
+
CountryEnum["BRA"] = "BRA";
|
|
9
|
+
CountryEnum["PER"] = "PER";
|
|
10
|
+
CountryEnum["COL"] = "COL";
|
|
11
|
+
CountryEnum["CHL"] = "CHL";
|
|
12
|
+
})(CountryEnum || (exports.CountryEnum = CountryEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdentificationTypeEnum = void 0;
|
|
4
|
+
var IdentificationTypeEnum;
|
|
5
|
+
(function (IdentificationTypeEnum) {
|
|
6
|
+
IdentificationTypeEnum["MX_NATIONAL_ID"] = "INE";
|
|
7
|
+
IdentificationTypeEnum["MX_PASSPORT"] = "PASSPORT";
|
|
8
|
+
IdentificationTypeEnum["US_DRIVER_LICENSE"] = "INE";
|
|
9
|
+
IdentificationTypeEnum["FIADO_MX_NATIONAL_ID"] = "MX_NATIONAL_ID";
|
|
10
|
+
IdentificationTypeEnum["PASSPORT"] = "MX_PASSPORT";
|
|
11
|
+
})(IdentificationTypeEnum || (exports.IdentificationTypeEnum = IdentificationTypeEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaxTypeEnum = void 0;
|
|
4
|
+
var TaxTypeEnum;
|
|
5
|
+
(function (TaxTypeEnum) {
|
|
6
|
+
TaxTypeEnum["RFC"] = "RFC";
|
|
7
|
+
TaxTypeEnum["CUIL"] = "CUIL";
|
|
8
|
+
TaxTypeEnum["CPF"] = "CPF";
|
|
9
|
+
TaxTypeEnum["NIT"] = "NIT";
|
|
10
|
+
TaxTypeEnum["RUC"] = "RUC";
|
|
11
|
+
})(TaxTypeEnum || (exports.TaxTypeEnum = TaxTypeEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserStatusEnum = void 0;
|
|
4
|
+
var UserStatusEnum;
|
|
5
|
+
(function (UserStatusEnum) {
|
|
6
|
+
UserStatusEnum["ACTIVE"] = "ACTIVE";
|
|
7
|
+
UserStatusEnum["BLOCKED"] = "BLOCKED";
|
|
8
|
+
})(UserStatusEnum || (exports.UserStatusEnum = UserStatusEnum = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './dtos/PomeloCreateUserRequest';
|
|
2
|
+
export * from './dtos/PomeloCreateUserResponse';
|
|
3
|
+
export * from './enums/CountryEnum';
|
|
4
|
+
export * from './enums/IdentificationTypeEnum';
|
|
5
|
+
export * from './enums/SexEnum';
|
|
6
|
+
export * from './enums/TaxTypeEnum';
|
|
7
|
+
export * from './enums/UserStatusEnum';
|
|
@@ -0,0 +1,25 @@
|
|
|
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/PomeloCreateUserRequest"), exports);
|
|
19
|
+
__exportStar(require("./dtos/PomeloCreateUserResponse"), exports);
|
|
20
|
+
//enums
|
|
21
|
+
__exportStar(require("./enums/CountryEnum"), exports);
|
|
22
|
+
__exportStar(require("./enums/IdentificationTypeEnum"), exports);
|
|
23
|
+
__exportStar(require("./enums/SexEnum"), exports);
|
|
24
|
+
__exportStar(require("./enums/TaxTypeEnum"), exports);
|
|
25
|
+
__exportStar(require("./enums/UserStatusEnum"), exports);
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ import { Country } from "../../country/enums/Country";
|
|
|
4
4
|
import { regexUuidV4 } from '../../helpers/constans/regex';
|
|
5
5
|
import { TypeOfDirectoryId } from '../../directory/enums/TypeOfDirectoryId';
|
|
6
6
|
import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
|
|
7
|
+
import { SexDocument } from '../../identity';
|
|
7
8
|
|
|
8
9
|
export class AccountCreateRequest {
|
|
9
10
|
|
|
@@ -21,7 +22,6 @@ export class AccountCreateRequest {
|
|
|
21
22
|
firstName: string;
|
|
22
23
|
|
|
23
24
|
@IsString()
|
|
24
|
-
|
|
25
25
|
lastName: string;
|
|
26
26
|
|
|
27
27
|
@IsPhoneNumberFiado()
|
|
@@ -40,6 +40,19 @@ export class AccountCreateRequest {
|
|
|
40
40
|
@Length(1, 30)
|
|
41
41
|
documentNumber: string;
|
|
42
42
|
|
|
43
|
+
@IsString()
|
|
44
|
+
@Length(1, 30)
|
|
45
|
+
documentType: string;
|
|
46
|
+
|
|
47
|
+
@IsEnum(SexDocument)
|
|
48
|
+
gender: SexDocument;
|
|
49
|
+
|
|
50
|
+
@IsString()
|
|
51
|
+
externalClientId: string;
|
|
52
|
+
|
|
53
|
+
@IsString()
|
|
54
|
+
externalUserId: string;
|
|
55
|
+
|
|
43
56
|
@IsEnum(Country)
|
|
44
57
|
countryId: Country;
|
|
45
|
-
}
|
|
58
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export class AccountCreateResponse{
|
|
2
|
+
id: string;
|
|
3
|
+
externalId: string;
|
|
4
|
+
externalUserId: string;
|
|
5
|
+
directoryId:string;
|
|
6
|
+
typeOfDirectoryId:string
|
|
7
|
+
countryId:string
|
|
6
8
|
}
|
package/src/account/index.ts
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
|
|
2
1
|
//dtos
|
|
3
|
-
export * from './dtos/AccountResponse';
|
|
4
2
|
export * from './dtos/AccountCreateRequest';
|
|
5
3
|
export * from './dtos/AccountCreateResponse';
|
|
6
|
-
export * from './dtos/PocketCreateRequest';
|
|
7
|
-
export * from './dtos/PocketCreateResponse';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//enums
|
|
11
|
-
export * from './enums/AccountStatus';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
//interfaces
|
|
15
|
-
|
|
16
4
|
|
package/src/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * as NotificationMessages from './notificationMessages';
|
|
|
16
16
|
export * as SessionActivity from './sessionActivity';
|
|
17
17
|
export * as EventBridgeMessage from './eventBridge'
|
|
18
18
|
export * as GenericMessage from './genericMessage'
|
|
19
|
+
export * as Pomelo from './pomelo'
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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,22 +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.GroupDirectoryRetationsUpdateRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class GroupDirectoryRetationsUpdateRequest {
|
|
15
|
-
}
|
|
16
|
-
exports.GroupDirectoryRetationsUpdateRequest = GroupDirectoryRetationsUpdateRequest;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsOptional)(),
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
(0, class_validator_1.Length)(1, 20),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], GroupDirectoryRetationsUpdateRequest.prototype, "agent", void 0);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { Provider } from '../../provider/enums/Provider';
|
|
4
|
-
import { Country } from '../../country/enums/Country';
|
|
5
|
-
import { AccountStatus } from '../enums/AccountStatus';
|
|
6
|
-
import { TypeOfDirectoryId } from '../../directory/enums/TypeOfDirectoryId';
|
|
7
|
-
|
|
8
|
-
export class AccountResponse {
|
|
9
|
-
|
|
10
|
-
id: string;
|
|
11
|
-
typeOfAccountId: string;
|
|
12
|
-
externalAccountId: string;
|
|
13
|
-
externalSubAccountId: string | null;
|
|
14
|
-
provider: Provider;
|
|
15
|
-
directoryId: string;
|
|
16
|
-
typeOfDirectoryId: TypeOfDirectoryId;
|
|
17
|
-
currentBalance: number;
|
|
18
|
-
balanceLock: number;
|
|
19
|
-
countryId: Country;
|
|
20
|
-
createDate: string;
|
|
21
|
-
lastUpdateDate: string;
|
|
22
|
-
accountNumber: string
|
|
23
|
-
routingNumber: string;
|
|
24
|
-
status: AccountStatus;
|
|
25
|
-
|
|
26
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { IsString, Matches } from "class-validator";
|
|
2
|
-
import { regexUuidV4 } from "../../helpers/constans/regex";
|
|
3
|
-
|
|
4
|
-
export class PocketCreateRequest {
|
|
5
|
-
|
|
6
|
-
@IsString()
|
|
7
|
-
@Matches(regexUuidV4,
|
|
8
|
-
{
|
|
9
|
-
message: 'beneficiaryDirectoryId must be a valid UUID v4',
|
|
10
|
-
})
|
|
11
|
-
beneficiaryDirectoryId?: string;
|
|
12
|
-
|
|
13
|
-
@IsString()
|
|
14
|
-
@Matches(regexUuidV4,
|
|
15
|
-
{
|
|
16
|
-
message: 'accountId must be a valid UUID v4',
|
|
17
|
-
})
|
|
18
|
-
accountId: string;
|
|
19
|
-
}
|