cecon-interfaces 1.5.77 → 1.5.79

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/dist/esm2022/general/enums/index.mjs +2 -1
  2. package/dist/esm2022/general/enums/jwt-status.enum.mjs +7 -0
  3. package/dist/esm2022/index.mjs +2 -1
  4. package/dist/esm2022/member-access/entities/member-access.entity.mjs +4 -3
  5. package/dist/esm2022/member-access/interfaces/i-member-access.mjs +1 -1
  6. package/dist/esm2022/payio/index.mjs +2 -0
  7. package/dist/esm2022/payio/payload/entities/index.mjs +6 -0
  8. package/dist/esm2022/payio/payload/entities/payload-app.entity.mjs +18 -0
  9. package/dist/esm2022/payio/payload/entities/payload-device.entity.mjs +18 -0
  10. package/dist/esm2022/payio/payload/entities/payload-subscription.entity.mjs +19 -0
  11. package/dist/esm2022/payio/payload/entities/payload-user.entity.mjs +20 -0
  12. package/dist/esm2022/payio/payload/entities/payload.entity.mjs +26 -0
  13. package/dist/esm2022/payio/payload/index.mjs +3 -0
  14. package/dist/esm2022/payio/payload/interfaces/i-payload-app.mjs +2 -0
  15. package/dist/esm2022/payio/payload/interfaces/i-payload-device.mjs +2 -0
  16. package/dist/esm2022/payio/payload/interfaces/i-payload-subscription.mjs +2 -0
  17. package/dist/esm2022/payio/payload/interfaces/i-payload-user.mjs +2 -0
  18. package/dist/esm2022/payio/payload/interfaces/i-payload.mjs +2 -0
  19. package/dist/esm2022/payio/payload/interfaces/index.mjs +2 -0
  20. package/dist/esm2022/requested-items/entities/requested-items.entity.mjs +2 -1
  21. package/dist/esm2022/requested-items/interfaces/i-requested-items.mjs +1 -1
  22. package/dist/fesm2022/cecon-interfaces.mjs +112 -3
  23. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  24. package/dist/general/enums/index.d.ts +1 -0
  25. package/dist/general/enums/index.js +3 -1
  26. package/dist/general/enums/jwt-status.enum.d.ts +5 -0
  27. package/dist/general/enums/jwt-status.enum.js +9 -0
  28. package/dist/index.d.ts +1 -0
  29. package/dist/index.js +1 -0
  30. package/dist/member-access/entities/member-access.entity.d.ts +1 -0
  31. package/dist/member-access/entities/member-access.entity.js +3 -2
  32. package/dist/member-access/interfaces/i-member-access.d.ts +1 -0
  33. package/dist/package.json +1 -1
  34. package/dist/payio/index.d.ts +1 -0
  35. package/dist/payio/index.js +17 -0
  36. package/dist/payio/payload/entities/index.d.ts +5 -0
  37. package/dist/payio/payload/entities/index.js +13 -0
  38. package/dist/payio/payload/entities/payload-app.entity.d.ts +7 -0
  39. package/dist/payio/payload/entities/payload-app.entity.js +22 -0
  40. package/dist/payio/payload/entities/payload-device.entity.d.ts +7 -0
  41. package/dist/payio/payload/entities/payload-device.entity.js +22 -0
  42. package/dist/payio/payload/entities/payload-subscription.entity.d.ts +8 -0
  43. package/dist/payio/payload/entities/payload-subscription.entity.js +23 -0
  44. package/dist/payio/payload/entities/payload-user.entity.d.ts +9 -0
  45. package/dist/payio/payload/entities/payload-user.entity.js +24 -0
  46. package/dist/payio/payload/entities/payload.entity.d.ts +19 -0
  47. package/dist/payio/payload/entities/payload.entity.js +30 -0
  48. package/dist/payio/payload/index.d.ts +2 -0
  49. package/dist/payio/payload/index.js +18 -0
  50. package/dist/payio/payload/interfaces/i-payload-app.d.ts +5 -0
  51. package/dist/payio/payload/interfaces/i-payload-app.js +2 -0
  52. package/dist/payio/payload/interfaces/i-payload-device.d.ts +5 -0
  53. package/dist/payio/payload/interfaces/i-payload-device.js +2 -0
  54. package/dist/payio/payload/interfaces/i-payload-subscription.d.ts +6 -0
  55. package/dist/payio/payload/interfaces/i-payload-subscription.js +2 -0
  56. package/dist/payio/payload/interfaces/i-payload-user.d.ts +7 -0
  57. package/dist/payio/payload/interfaces/i-payload-user.js +2 -0
  58. package/dist/payio/payload/interfaces/i-payload.d.ts +29 -0
  59. package/dist/payio/payload/interfaces/i-payload.js +2 -0
  60. package/dist/payio/payload/interfaces/index.d.ts +5 -0
  61. package/dist/payio/payload/interfaces/index.js +2 -0
  62. package/dist/requested-items/entities/requested-items.entity.d.ts +2 -0
  63. package/dist/requested-items/entities/requested-items.entity.js +1 -0
  64. package/dist/requested-items/interfaces/i-requested-items.d.ts +2 -0
  65. package/package.json +1 -1
@@ -7,6 +7,7 @@ export { EDocType } from './doc-type.enum';
7
7
  export { EDiscountType } from './e-discount-type.enum';
8
8
  export { EFiscalDocModelCode } from './fiscal-doc-model-code.enum';
9
9
  export { EIntervalType } from './interval-type.enum';
10
+ export { EJwtStatus } from './jwt-status.enum';
10
11
  export { ELeadOrigin } from './lead-origin.enum';
11
12
  export { EOperator } from './operators.enum';
12
13
  export { EOs } from './os.enum';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ESponsorshipValues = exports.EPubSub = exports.EPaymentProvider = exports.EPlatform = exports.ELegalEntiy = exports.EPaymentType = exports.EPaymentStatus = exports.EPaymentMode = exports.EPaymentChannel = exports.EOs = exports.EOperator = exports.ELeadOrigin = exports.EIntervalType = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.EDesenfilaFrom = exports.ECollectionsTypes = exports.EBooleanString = exports.EBankSlipStatus = exports.EFcmSkill = void 0;
3
+ exports.ESponsorshipValues = exports.EPubSub = exports.EPaymentProvider = exports.EPlatform = exports.ELegalEntiy = exports.EPaymentType = exports.EPaymentStatus = exports.EPaymentMode = exports.EPaymentChannel = exports.EOs = exports.EOperator = exports.ELeadOrigin = exports.EJwtStatus = exports.EIntervalType = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.EDesenfilaFrom = exports.ECollectionsTypes = exports.EBooleanString = exports.EBankSlipStatus = exports.EFcmSkill = void 0;
4
4
  var skill_enum_1 = require("../../fcm-token-message/enums/skill.enum");
5
5
  Object.defineProperty(exports, "EFcmSkill", { enumerable: true, get: function () { return skill_enum_1.EFcmSkill; } });
6
6
  var bank_slip_status_enum_1 = require("./bank-slip-status.enum");
@@ -19,6 +19,8 @@ var fiscal_doc_model_code_enum_1 = require("./fiscal-doc-model-code.enum");
19
19
  Object.defineProperty(exports, "EFiscalDocModelCode", { enumerable: true, get: function () { return fiscal_doc_model_code_enum_1.EFiscalDocModelCode; } });
20
20
  var interval_type_enum_1 = require("./interval-type.enum");
21
21
  Object.defineProperty(exports, "EIntervalType", { enumerable: true, get: function () { return interval_type_enum_1.EIntervalType; } });
22
+ var jwt_status_enum_1 = require("./jwt-status.enum");
23
+ Object.defineProperty(exports, "EJwtStatus", { enumerable: true, get: function () { return jwt_status_enum_1.EJwtStatus; } });
22
24
  var lead_origin_enum_1 = require("./lead-origin.enum");
23
25
  Object.defineProperty(exports, "ELeadOrigin", { enumerable: true, get: function () { return lead_origin_enum_1.ELeadOrigin; } });
24
26
  var operators_enum_1 = require("./operators.enum");
@@ -0,0 +1,5 @@
1
+ export declare enum EJwtStatus {
2
+ ACTIVE = "ACTIVE",
3
+ INACTIVE = "INACTIVE",
4
+ EXPIRED = "EXPIRED"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EJwtStatus = void 0;
4
+ var EJwtStatus;
5
+ (function (EJwtStatus) {
6
+ EJwtStatus["ACTIVE"] = "ACTIVE";
7
+ EJwtStatus["INACTIVE"] = "INACTIVE";
8
+ EJwtStatus["EXPIRED"] = "EXPIRED";
9
+ })(EJwtStatus || (exports.EJwtStatus = EJwtStatus = {}));
package/dist/index.d.ts CHANGED
@@ -38,6 +38,7 @@ export * from './nati-v1';
38
38
  export * from './notification';
39
39
  export * from './order';
40
40
  export * from './partner';
41
+ export * from './payio';
41
42
  export * from './plan';
42
43
  export * from './product-company';
43
44
  export * from './product-container';
package/dist/index.js CHANGED
@@ -54,6 +54,7 @@ __exportStar(require("./nati-v1"), exports);
54
54
  __exportStar(require("./notification"), exports);
55
55
  __exportStar(require("./order"), exports);
56
56
  __exportStar(require("./partner"), exports);
57
+ __exportStar(require("./payio"), exports);
57
58
  __exportStar(require("./plan"), exports);
58
59
  __exportStar(require("./product-company"), exports);
59
60
  __exportStar(require("./product-container"), exports);
@@ -11,6 +11,7 @@ export declare class MemberAccessEntity implements IMemberAccess {
11
11
  imageUrl: string | null;
12
12
  lastAccessAt: Date | null;
13
13
  name: string;
14
+ roles: string[];
14
15
  rule: MemberRulesEnum;
15
16
  tags: string[];
16
17
  updated: Date;
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MemberAccessEntity = void 0;
4
4
  var enums_1 = require("../../member/enums");
5
5
  var MemberAccessEntity = /** @class */ (function () {
6
- // #endregion Properties (14)
6
+ // #endregion Properties (15)
7
7
  // #region Constructors (1)
8
8
  function MemberAccessEntity(data) {
9
- // #region Properties (14)
9
+ // #region Properties (15)
10
10
  this.accessCount = null;
11
11
  this.active = true;
12
12
  this.companyId = '';
@@ -17,6 +17,7 @@ var MemberAccessEntity = /** @class */ (function () {
17
17
  this.imageUrl = null;
18
18
  this.lastAccessAt = null;
19
19
  this.name = '';
20
+ this.roles = [];
20
21
  this.rule = enums_1.MemberRulesEnum.USER;
21
22
  this.tags = [];
22
23
  this.updated = new Date();
@@ -10,6 +10,7 @@ export interface IMemberAccess {
10
10
  imageUrl: string | null;
11
11
  lastAccessAt: Date | null;
12
12
  name: string;
13
+ roles: string[];
13
14
  rule: MemberRulesEnum;
14
15
  tags: string[];
15
16
  updated: Date;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.77",
3
+ "version": "1.5.79",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1 @@
1
+ export * from './payload';
@@ -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("./payload"), exports);
@@ -0,0 +1,5 @@
1
+ export { PayioJwtPayloadAppEntity } from './payload-app.entity';
2
+ export { PayioJwtPayloadDeviceEntity } from './payload-device.entity';
3
+ export { PayioJwtPayloadSubscriptionEntity } from './payload-subscription.entity';
4
+ export { PayioJwtPayloadUserEntity } from './payload-user.entity';
5
+ export { PayioJwtPayloadEntity } from './payload.entity';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioJwtPayloadEntity = exports.PayioJwtPayloadUserEntity = exports.PayioJwtPayloadSubscriptionEntity = exports.PayioJwtPayloadDeviceEntity = exports.PayioJwtPayloadAppEntity = void 0;
4
+ var payload_app_entity_1 = require("./payload-app.entity");
5
+ Object.defineProperty(exports, "PayioJwtPayloadAppEntity", { enumerable: true, get: function () { return payload_app_entity_1.PayioJwtPayloadAppEntity; } });
6
+ var payload_device_entity_1 = require("./payload-device.entity");
7
+ Object.defineProperty(exports, "PayioJwtPayloadDeviceEntity", { enumerable: true, get: function () { return payload_device_entity_1.PayioJwtPayloadDeviceEntity; } });
8
+ var payload_subscription_entity_1 = require("./payload-subscription.entity");
9
+ Object.defineProperty(exports, "PayioJwtPayloadSubscriptionEntity", { enumerable: true, get: function () { return payload_subscription_entity_1.PayioJwtPayloadSubscriptionEntity; } });
10
+ var payload_user_entity_1 = require("./payload-user.entity");
11
+ Object.defineProperty(exports, "PayioJwtPayloadUserEntity", { enumerable: true, get: function () { return payload_user_entity_1.PayioJwtPayloadUserEntity; } });
12
+ var payload_entity_1 = require("./payload.entity");
13
+ Object.defineProperty(exports, "PayioJwtPayloadEntity", { enumerable: true, get: function () { return payload_entity_1.PayioJwtPayloadEntity; } });
@@ -0,0 +1,7 @@
1
+ import { IPayioJwtPayloadApp } from '../interfaces/i-payload-app';
2
+ export declare class PayioJwtPayloadAppEntity implements IPayioJwtPayloadApp {
3
+ id: string;
4
+ name: string;
5
+ version: string | null;
6
+ constructor(data?: Partial<PayioJwtPayloadAppEntity>);
7
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioJwtPayloadAppEntity = void 0;
4
+ var PayioJwtPayloadAppEntity = /** @class */ (function () {
5
+ // #endregion Properties (3)
6
+ // #region Constructors (1)
7
+ function PayioJwtPayloadAppEntity(data) {
8
+ // #region Properties (3)
9
+ this.id = '';
10
+ this.name = '';
11
+ this.version = null;
12
+ if (data) {
13
+ for (var key in data) {
14
+ if (data.hasOwnProperty(key) && key in this) {
15
+ this[key] = data[key];
16
+ }
17
+ }
18
+ }
19
+ }
20
+ return PayioJwtPayloadAppEntity;
21
+ }());
22
+ exports.PayioJwtPayloadAppEntity = PayioJwtPayloadAppEntity;
@@ -0,0 +1,7 @@
1
+ import { IPayioJwtPayloadDevice } from '../interfaces/i-payload-device';
2
+ export declare class PayioJwtPayloadDeviceEntity implements IPayioJwtPayloadDevice {
3
+ id: string;
4
+ registeredAt: number;
5
+ type: string;
6
+ constructor(data?: Partial<PayioJwtPayloadDeviceEntity>);
7
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioJwtPayloadDeviceEntity = void 0;
4
+ var PayioJwtPayloadDeviceEntity = /** @class */ (function () {
5
+ // #endregion Properties (3)
6
+ // #region Constructors (1)
7
+ function PayioJwtPayloadDeviceEntity(data) {
8
+ // #region Properties (3)
9
+ this.id = '';
10
+ this.registeredAt = 0;
11
+ this.type = '';
12
+ if (data) {
13
+ for (var key in data) {
14
+ if (data.hasOwnProperty(key) && key in this) {
15
+ this[key] = data[key];
16
+ }
17
+ }
18
+ }
19
+ }
20
+ return PayioJwtPayloadDeviceEntity;
21
+ }());
22
+ exports.PayioJwtPayloadDeviceEntity = PayioJwtPayloadDeviceEntity;
@@ -0,0 +1,8 @@
1
+ import { EJwtStatus } from '../../../general';
2
+ import { IPayioJwtPayloadSubscription } from '../interfaces/i-payload-subscription';
3
+ export declare class PayioJwtPayloadSubscriptionEntity implements IPayioJwtPayloadSubscription {
4
+ expiresAt: number;
5
+ plan: string;
6
+ status: EJwtStatus;
7
+ constructor(data?: Partial<PayioJwtPayloadSubscriptionEntity>);
8
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioJwtPayloadSubscriptionEntity = void 0;
4
+ var general_1 = require("../../../general");
5
+ var PayioJwtPayloadSubscriptionEntity = /** @class */ (function () {
6
+ // #endregion Properties (3)
7
+ // #region Constructors (1)
8
+ function PayioJwtPayloadSubscriptionEntity(data) {
9
+ // #region Properties (3)
10
+ this.expiresAt = 0;
11
+ this.plan = '';
12
+ this.status = general_1.EJwtStatus.INACTIVE;
13
+ if (data) {
14
+ for (var key in data) {
15
+ if (data.hasOwnProperty(key) && key in this) {
16
+ this[key] = data[key];
17
+ }
18
+ }
19
+ }
20
+ }
21
+ return PayioJwtPayloadSubscriptionEntity;
22
+ }());
23
+ exports.PayioJwtPayloadSubscriptionEntity = PayioJwtPayloadSubscriptionEntity;
@@ -0,0 +1,9 @@
1
+ import { IPayioJwtPayloadUser } from '../interfaces/i-payload-user';
2
+ export declare class PayioJwtPayloadUserEntity implements IPayioJwtPayloadUser {
3
+ email: string | null;
4
+ id: string;
5
+ internationalCode: string;
6
+ phoneNumber: string;
7
+ roles: string[];
8
+ constructor(data?: Partial<PayioJwtPayloadUserEntity>);
9
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioJwtPayloadUserEntity = void 0;
4
+ var PayioJwtPayloadUserEntity = /** @class */ (function () {
5
+ // #endregion Properties (5)
6
+ // #region Constructors (1)
7
+ function PayioJwtPayloadUserEntity(data) {
8
+ // #region Properties (5)
9
+ this.email = null;
10
+ this.id = '';
11
+ this.internationalCode = '';
12
+ this.phoneNumber = '';
13
+ this.roles = [];
14
+ if (data) {
15
+ for (var key in data) {
16
+ if (data.hasOwnProperty(key) && key in this) {
17
+ this[key] = data[key];
18
+ }
19
+ }
20
+ }
21
+ }
22
+ return PayioJwtPayloadUserEntity;
23
+ }());
24
+ exports.PayioJwtPayloadUserEntity = PayioJwtPayloadUserEntity;
@@ -0,0 +1,19 @@
1
+ import { IPayioJwtPayload } from '../interfaces/i-payload';
2
+ import { IPayioJwtPayloadApp } from '../interfaces/i-payload-app';
3
+ import { PayioJwtPayloadDeviceEntity } from './payload-device.entity';
4
+ import { PayioJwtPayloadSubscriptionEntity } from './payload-subscription.entity';
5
+ import { PayioJwtPayloadUserEntity } from './payload-user.entity';
6
+ export declare class PayioJwtPayloadEntity implements IPayioJwtPayload {
7
+ app: IPayioJwtPayloadApp | null;
8
+ aud: string;
9
+ device: PayioJwtPayloadDeviceEntity | null;
10
+ exp: number;
11
+ iat: number;
12
+ iss: string;
13
+ permissions: string[];
14
+ sub: string;
15
+ subscription: PayioJwtPayloadSubscriptionEntity | null;
16
+ type: string | null;
17
+ user: PayioJwtPayloadUserEntity | null;
18
+ constructor(data?: Partial<PayioJwtPayloadEntity>);
19
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioJwtPayloadEntity = void 0;
4
+ var PayioJwtPayloadEntity = /** @class */ (function () {
5
+ // #endregion Properties (11)
6
+ // #region Constructors (1)
7
+ function PayioJwtPayloadEntity(data) {
8
+ // #region Properties (11)
9
+ this.app = null;
10
+ this.aud = '';
11
+ this.device = null;
12
+ this.exp = 0;
13
+ this.iat = 0;
14
+ this.iss = '';
15
+ this.permissions = [];
16
+ this.sub = '';
17
+ this.subscription = null;
18
+ this.type = null;
19
+ this.user = null;
20
+ if (data) {
21
+ for (var key in data) {
22
+ if (data.hasOwnProperty(key) && key in this) {
23
+ this[key] = data[key];
24
+ }
25
+ }
26
+ }
27
+ }
28
+ return PayioJwtPayloadEntity;
29
+ }());
30
+ exports.PayioJwtPayloadEntity = PayioJwtPayloadEntity;
@@ -0,0 +1,2 @@
1
+ export * from './entities';
2
+ export * from './interfaces';
@@ -0,0 +1,18 @@
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("./entities"), exports);
18
+ __exportStar(require("./interfaces"), exports);
@@ -0,0 +1,5 @@
1
+ export interface IPayioJwtPayloadApp {
2
+ id: string;
3
+ name: string;
4
+ version: string | null;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface IPayioJwtPayloadDevice {
2
+ id: string;
3
+ registeredAt: number;
4
+ type: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { EJwtStatus } from '../../../general/enums/jwt-status.enum';
2
+ export interface IPayioJwtPayloadSubscription {
3
+ expiresAt: number;
4
+ plan: string;
5
+ status: EJwtStatus;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export interface IPayioJwtPayloadUser {
2
+ phoneNumber: string;
3
+ internationalCode: string;
4
+ email: string | null;
5
+ id: string;
6
+ roles: string[];
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import { IPayioJwtPayloadApp } from './i-payload-app';
2
+ import { IPayioJwtPayloadDevice } from './i-payload-device';
3
+ import { IPayioJwtPayloadSubscription } from './i-payload-subscription';
4
+ import { IPayioJwtPayloadUser } from './i-payload-user';
5
+ export interface IPayioJwtPayload {
6
+ app: IPayioJwtPayloadApp | null;
7
+ /**
8
+ * (Audiência): Identifica os destinatários pretendidos do JWT (sua aplicação).
9
+ */
10
+ aud: string;
11
+ device: IPayioJwtPayloadDevice | null;
12
+ /**
13
+ * (Expiração): Timestamp de quando o JWT expira
14
+ */
15
+ exp: number;
16
+ /**
17
+ * (Emitido em): Timestamp de quando o JWT foi emitido
18
+ */
19
+ iat: number;
20
+ /**
21
+ * (Emissor): Identifica quem emitiu o JWT (o domínio da sua aplicação).
22
+ */
23
+ iss: string;
24
+ permissions: string[];
25
+ sub: string;
26
+ subscription: IPayioJwtPayloadSubscription | null;
27
+ type: string | null;
28
+ user: IPayioJwtPayloadUser | null;
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export { IPayioJwtPayload } from './i-payload';
2
+ export { IPayioJwtPayloadApp } from './i-payload-app';
3
+ export { IPayioJwtPayloadDevice } from './i-payload-device';
4
+ export { IPayioJwtPayloadSubscription } from './i-payload-subscription';
5
+ export { IPayioJwtPayloadUser } from './i-payload-user';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ import { EOrderExtraInfo } from '../../order';
1
2
  import { IRequestedItems } from '../interfaces/i-requested-items';
2
3
  import { IRequestedItemData } from '../interfaces/i-requested-items-data';
3
4
  export declare class RequestedItemsEntity implements IRequestedItems {
@@ -11,6 +12,7 @@ export declare class RequestedItemsEntity implements IRequestedItems {
11
12
  token: string;
12
13
  updatedAt: Date;
13
14
  isPaid: boolean;
15
+ status: EOrderExtraInfo | null;
14
16
  referenceToken: string | null;
15
17
  resendCount: number;
16
18
  constructor(data?: Partial<RequestedItemsEntity>);
@@ -16,6 +16,7 @@ var RequestedItemsEntity = /** @class */ (function () {
16
16
  this.token = '';
17
17
  this.updatedAt = new Date();
18
18
  this.isPaid = false;
19
+ this.status = null;
19
20
  this.referenceToken = null;
20
21
  this.resendCount = 0;
21
22
  if (data) {
@@ -1,3 +1,4 @@
1
+ import { EOrderExtraInfo } from '../../order/enums/extra-info.enum';
1
2
  import { IRequestedItemData } from './i-requested-items-data';
2
3
  export interface IRequestedItems {
3
4
  companyId: string | null;
@@ -9,6 +10,7 @@ export interface IRequestedItems {
9
10
  preview: boolean;
10
11
  isPaid: boolean;
11
12
  token: string;
13
+ status: EOrderExtraInfo | null;
12
14
  data: IRequestedItemData[];
13
15
  referenceToken: string | null;
14
16
  resendCount: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.77",
3
+ "version": "1.5.79",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",