cecon-interfaces 1.8.25 → 1.8.26

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.8.25",
3
+ "version": "1.8.26",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,3 +1,4 @@
1
+ import { EPayioUserType } from '../enums/user-type.enum';
1
2
  import { IPayioJwtPayloadUser } from '../interfaces/i-payload-user';
2
3
  export declare class PayioJwtPayloadUserEntity implements IPayioJwtPayloadUser {
3
4
  email: string | null;
@@ -5,5 +6,6 @@ export declare class PayioJwtPayloadUserEntity implements IPayioJwtPayloadUser {
5
6
  internationalCode: string;
6
7
  name: string;
7
8
  phoneNumber: string;
9
+ type: EPayioUserType | null;
8
10
  constructor(data?: Partial<PayioJwtPayloadUserEntity>);
9
11
  }
@@ -2,15 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioJwtPayloadUserEntity = void 0;
4
4
  var PayioJwtPayloadUserEntity = /** @class */ (function () {
5
- // #endregion Properties (6)
6
- // #region Constructors (1)
7
5
  function PayioJwtPayloadUserEntity(data) {
8
- // #region Properties (6)
9
6
  this.email = null;
10
7
  this.id = '';
11
8
  this.internationalCode = '';
12
9
  this.name = '';
13
10
  this.phoneNumber = '';
11
+ this.type = null;
14
12
  if (data) {
15
13
  for (var key in data) {
16
14
  if (data.hasOwnProperty(key) && key in this) {
@@ -0,0 +1 @@
1
+ export { EPayioUserType } from './user-type.enum';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayioUserType = void 0;
4
+ var user_type_enum_1 = require("./user-type.enum");
5
+ Object.defineProperty(exports, "EPayioUserType", { enumerable: true, get: function () { return user_type_enum_1.EPayioUserType; } });
@@ -0,0 +1,7 @@
1
+ export declare enum EPayioUserType {
2
+ USER = "user",
3
+ ADMIN = "admin",
4
+ DISTRIBUTOR = "distributor",
5
+ MERCHANT = "merchant",
6
+ TESTER = "tester"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayioUserType = void 0;
4
+ var EPayioUserType;
5
+ (function (EPayioUserType) {
6
+ EPayioUserType["USER"] = "user";
7
+ EPayioUserType["ADMIN"] = "admin";
8
+ EPayioUserType["DISTRIBUTOR"] = "distributor";
9
+ EPayioUserType["MERCHANT"] = "merchant";
10
+ EPayioUserType["TESTER"] = "tester";
11
+ })(EPayioUserType || (exports.EPayioUserType = EPayioUserType = {}));
@@ -1,2 +1,3 @@
1
1
  export * from './entities';
2
+ export * from './enums';
2
3
  export * from './interfaces';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./enums"), exports);
18
19
  __exportStar(require("./interfaces"), exports);
@@ -1,7 +1,9 @@
1
+ import { EPayioUserType } from '../enums/user-type.enum';
1
2
  export interface IPayioJwtPayloadUser {
2
3
  phoneNumber: string;
3
4
  internationalCode: string;
4
5
  email: string | null;
5
6
  id: string;
6
7
  name: string;
8
+ type: EPayioUserType | null;
7
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.8.25",
3
+ "version": "1.8.26",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",