cecon-interfaces 1.9.18 → 1.9.21

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.
@@ -1,6 +1,8 @@
1
1
  import { IPayioDevice } from '../interfaces/i-device';
2
2
  import { PayioDeviceChefEntity } from './device-chef.entity';
3
3
  export declare class PayioDeviceEntity implements IPayioDevice {
4
+ activationKeyId: string | null;
5
+ activationKey: string | null;
4
6
  active: boolean;
5
7
  chef: PayioDeviceChefEntity | null;
6
8
  companyId: string;
@@ -2,10 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioDeviceEntity = void 0;
4
4
  var PayioDeviceEntity = /** @class */ (function () {
5
- // #endregion Properties (12)
6
- // #region Constructors (1)
7
5
  function PayioDeviceEntity(data) {
8
- // #region Properties (12)
6
+ this.activationKeyId = null;
7
+ this.activationKey = null;
9
8
  this.active = false;
10
9
  this.chef = null;
11
10
  this.companyId = '';
@@ -1,5 +1,7 @@
1
1
  import { IPayioDeviceChef } from './i-device-chef';
2
2
  export interface IPayioDevice {
3
+ activationKey: string | null;
4
+ activationKeyId: string | null;
3
5
  active: boolean;
4
6
  chef: IPayioDeviceChef | null;
5
7
  companyId: string;
@@ -2,6 +2,5 @@ import { IPayioJwtPayloadApp } from '../interfaces/i-payload-app';
2
2
  export declare class PayioJwtPayloadAppEntity implements IPayioJwtPayloadApp {
3
3
  id: string;
4
4
  slug: string;
5
- allowedDeviceIds: string[];
6
5
  constructor(data?: Partial<PayioJwtPayloadAppEntity>);
7
6
  }
@@ -8,7 +8,6 @@ var PayioJwtPayloadAppEntity = /** @class */ (function () {
8
8
  // #region Properties (3)
9
9
  this.id = '';
10
10
  this.slug = '';
11
- this.allowedDeviceIds = [];
12
11
  if (data) {
13
12
  for (var key in data) {
14
13
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,5 +1,9 @@
1
+ import { EPayioActivationKeyStatus } from '../../activation-key/enums/activation-key-status.enum';
1
2
  import { IPayioJwtPayloadDevice } from '../interfaces/i-payload-device';
2
3
  export declare class PayioJwtPayloadDeviceEntity implements IPayioJwtPayloadDevice {
4
+ activationKey: string | null;
5
+ activationKeyId: string | null;
6
+ activationStatus: EPayioActivationKeyStatus;
3
7
  chefConfigId: string | null;
4
8
  id: string;
5
9
  name: string | null;
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioJwtPayloadDeviceEntity = void 0;
4
+ var activation_key_status_enum_1 = require("../../activation-key/enums/activation-key-status.enum");
4
5
  var PayioJwtPayloadDeviceEntity = /** @class */ (function () {
5
- // #endregion Properties (4)
6
- // #region Constructors (1)
7
6
  function PayioJwtPayloadDeviceEntity(data) {
8
- // #region Properties (4)
7
+ this.activationKey = '';
8
+ this.activationKeyId = '';
9
+ this.activationStatus = activation_key_status_enum_1.EPayioActivationKeyStatus.NONE;
9
10
  this.chefConfigId = '';
10
11
  this.id = '';
11
12
  this.name = '';
@@ -1,4 +1,3 @@
1
- import { EPayioActivationKeyStatus } from '../../activation-key/enums/activation-key-status.enum';
2
1
  import { PayioPermissionEntity } from '../../permissions';
3
2
  import { EPayioJwtTokenType } from '../enums';
4
3
  import { IPayioJwtPayload } from '../interfaces/i-payload';
@@ -7,7 +6,6 @@ import { IPayioJwtPayloadInfo } from '../interfaces/i-payload-info';
7
6
  import { PayioJwtPayloadDeviceEntity } from './payload-device.entity';
8
7
  import { PayioJwtPayloadUserEntity } from './payload-user.entity';
9
8
  export declare class PayioJwtPayloadEntity implements IPayioJwtPayload {
10
- activationStatus: EPayioActivationKeyStatus;
11
9
  app: IPayioJwtPayloadApp | null;
12
10
  aud: string | string[];
13
11
  device: PayioJwtPayloadDeviceEntity | null;
@@ -1,13 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioJwtPayloadEntity = void 0;
4
- var activation_key_status_enum_1 = require("../../activation-key/enums/activation-key-status.enum");
5
4
  var PayioJwtPayloadEntity = /** @class */ (function () {
6
- // #endregion Properties (16)
7
- // #region Constructors (1)
8
5
  function PayioJwtPayloadEntity(data) {
9
- // #region Properties (16)
10
- this.activationStatus = activation_key_status_enum_1.EPayioActivationKeyStatus.NONE;
11
6
  this.app = null;
12
7
  this.aud = '';
13
8
  this.device = null;
@@ -1,5 +1,4 @@
1
1
  export interface IPayioJwtPayloadApp {
2
2
  id: string;
3
3
  slug: string;
4
- allowedDeviceIds: string[];
5
4
  }
@@ -1,6 +1,10 @@
1
+ import { EPayioActivationKeyStatus } from '../../activation-key/enums/activation-key-status.enum';
1
2
  export interface IPayioJwtPayloadDevice {
3
+ activationKey: string | null;
4
+ activationKeyId: string | null;
5
+ activationStatus: EPayioActivationKeyStatus;
6
+ chefConfigId: string | null;
2
7
  id: string;
3
8
  name: string | null;
4
- chefConfigId: string | null;
5
9
  scheduleId: string | null;
6
10
  }
@@ -1,4 +1,3 @@
1
- import { EPayioActivationKeyStatus } from '../../activation-key/enums/activation-key-status.enum';
2
1
  import { IPayioPermission } from '../../permissions';
3
2
  import { EPayioJwtTokenType } from '../enums';
4
3
  import { IPayioJwtPayloadApp } from './i-payload-app';
@@ -23,7 +22,6 @@ export interface IPayioJwtPayload {
23
22
  */
24
23
  iat: number;
25
24
  info: IPayioJwtPayloadInfo | null;
26
- activationStatus: EPayioActivationKeyStatus;
27
25
  /**
28
26
  * (Emissor): Identifica quem emitiu o JWT (o domínio da sua aplicação).
29
27
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.9.18",
3
+ "version": "1.9.21",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",