@fiado/type-kit 1.0.57 → 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/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/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/src/account/enums/AccountStatus.ts +0 -7
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
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';
|