cecon-interfaces 1.8.79 → 1.8.82

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.
Files changed (32) hide show
  1. package/dist/esm2022/natipay/payload/entities/payload.entity.mjs +1 -1
  2. package/dist/esm2022/natipay/payload/interfaces/i-payload.mjs +1 -1
  3. package/dist/esm2022/payio/app/entities/app.entity.mjs +3 -3
  4. package/dist/esm2022/payio/app/enums/app-slug.enum.mjs +10 -9
  5. package/dist/esm2022/payio/app/enums/index.mjs +2 -2
  6. package/dist/esm2022/payio/app/interfaces/i-app.mjs +1 -1
  7. package/dist/esm2022/payio/orders/entities/order.entity.mjs +4 -4
  8. package/dist/esm2022/payio/orders/interfaces/i-order.mjs +1 -1
  9. package/dist/esm2022/payio/orders-queue/entities/order-queue.entity.mjs +2 -1
  10. package/dist/esm2022/payio/orders-queue/interfaces/i-order-queue.mjs +1 -1
  11. package/dist/esm2022/payio/payload/entities/payload.entity.mjs +1 -1
  12. package/dist/esm2022/payio/payload/interfaces/i-payload.mjs +1 -1
  13. package/dist/fesm2022/cecon-interfaces.mjs +13 -11
  14. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  15. package/dist/natipay/payload/entities/payload.entity.d.ts +1 -1
  16. package/dist/natipay/payload/interfaces/i-payload.d.ts +2 -1
  17. package/dist/payio/app/entities/app.entity.d.ts +2 -2
  18. package/dist/payio/app/entities/app.entity.js +1 -1
  19. package/dist/payio/app/enums/app-slug.enum.d.ts +2 -1
  20. package/dist/payio/app/enums/app-slug.enum.js +10 -9
  21. package/dist/payio/app/enums/index.d.ts +1 -1
  22. package/dist/payio/app/enums/index.js +2 -2
  23. package/dist/payio/app/interfaces/i-app.d.ts +2 -2
  24. package/dist/payio/orders/entities/order.entity.d.ts +5 -5
  25. package/dist/payio/orders/entities/order.entity.js +1 -1
  26. package/dist/payio/orders/interfaces/i-order.d.ts +2 -2
  27. package/dist/payio/orders-queue/entities/order-queue.entity.d.ts +1 -0
  28. package/dist/payio/orders-queue/interfaces/i-order-queue.d.ts +1 -0
  29. package/dist/payio/payload/entities/payload.entity.d.ts +1 -1
  30. package/dist/payio/payload/interfaces/i-payload.d.ts +2 -1
  31. package/package.json +1 -1
  32. package/readme.md +5 -3
@@ -5,7 +5,7 @@ import { NatipayJwtPayloadDeviceEntity } from './payload-device.entity';
5
5
  import { NatipayJwtPayloadUserEntity } from './payload-user.entity';
6
6
  export declare class NatipayJwtPayloadEntity implements INatipayJwtPayload {
7
7
  app: INatipayJwtPayloadApp | null;
8
- aud: string;
8
+ aud: string | string[];
9
9
  device: NatipayJwtPayloadDeviceEntity | null;
10
10
  exp?: number;
11
11
  iat: number;
@@ -6,8 +6,9 @@ export interface INatipayJwtPayload {
6
6
  app: INatipayJwtPayloadApp | null;
7
7
  /**
8
8
  * (Audiência): Identifica os destinatários pretendidos do JWT (sua aplicação).
9
+ * Pode ser uma string única ou um array de strings para múltiplas audiências.
9
10
  */
10
- aud: string;
11
+ aud: string | string[];
11
12
  device: INatipayJwtPayloadDevice | null;
12
13
  /**
13
14
  * (Expiração): Timestamp de quando o JWT expira
@@ -1,4 +1,4 @@
1
- import { EPayuioAppSlug } from '../enums';
1
+ import { EPayioAppSlug } from '../enums';
2
2
  import { IPayioApp } from '../interfaces/i-app';
3
3
  export declare class PayioAppEntity implements IPayioApp {
4
4
  active: boolean;
@@ -14,7 +14,7 @@ export declare class PayioAppEntity implements IPayioApp {
14
14
  price: number;
15
15
  refreshToken: string | null;
16
16
  secret: string;
17
- slug: EPayuioAppSlug;
17
+ slug: EPayioAppSlug;
18
18
  tags: string[];
19
19
  accessToken: string | null;
20
20
  updatedAt: Date;
@@ -17,7 +17,7 @@ var PayioAppEntity = /** @class */ (function () {
17
17
  this.price = 0;
18
18
  this.refreshToken = null;
19
19
  this.secret = '';
20
- this.slug = enums_1.EPayuioAppSlug.none;
20
+ this.slug = enums_1.EPayioAppSlug.none;
21
21
  this.tags = [];
22
22
  this.accessToken = null;
23
23
  this.updatedAt = new Date();
@@ -1,6 +1,7 @@
1
- export declare enum EPayuioAppSlug {
1
+ export declare enum EPayioAppSlug {
2
2
  payio_cash = "payio-cash",
3
3
  payio_chef = "payio-chef",
4
+ payio_big_chef = "payio-big-chef",
4
5
  payio_distributor = "payio-distributor",
5
6
  payio_main = "payio-main",
6
7
  none = "none"
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EPayuioAppSlug = void 0;
4
- var EPayuioAppSlug;
5
- (function (EPayuioAppSlug) {
6
- EPayuioAppSlug["payio_cash"] = "payio-cash";
7
- EPayuioAppSlug["payio_chef"] = "payio-chef";
8
- EPayuioAppSlug["payio_distributor"] = "payio-distributor";
9
- EPayuioAppSlug["payio_main"] = "payio-main";
10
- EPayuioAppSlug["none"] = "none";
11
- })(EPayuioAppSlug || (exports.EPayuioAppSlug = EPayuioAppSlug = {}));
3
+ exports.EPayioAppSlug = void 0;
4
+ var EPayioAppSlug;
5
+ (function (EPayioAppSlug) {
6
+ EPayioAppSlug["payio_cash"] = "payio-cash";
7
+ EPayioAppSlug["payio_chef"] = "payio-chef";
8
+ EPayioAppSlug["payio_big_chef"] = "payio-big-chef";
9
+ EPayioAppSlug["payio_distributor"] = "payio-distributor";
10
+ EPayioAppSlug["payio_main"] = "payio-main";
11
+ EPayioAppSlug["none"] = "none";
12
+ })(EPayioAppSlug || (exports.EPayioAppSlug = EPayioAppSlug = {}));
@@ -1 +1 @@
1
- export { EPayuioAppSlug } from './app-slug.enum';
1
+ export { EPayioAppSlug } from './app-slug.enum';
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EPayuioAppSlug = void 0;
3
+ exports.EPayioAppSlug = void 0;
4
4
  var app_slug_enum_1 = require("./app-slug.enum");
5
- Object.defineProperty(exports, "EPayuioAppSlug", { enumerable: true, get: function () { return app_slug_enum_1.EPayuioAppSlug; } });
5
+ Object.defineProperty(exports, "EPayioAppSlug", { enumerable: true, get: function () { return app_slug_enum_1.EPayioAppSlug; } });
@@ -1,4 +1,4 @@
1
- import { EPayuioAppSlug } from '../enums';
1
+ import { EPayioAppSlug } from '../enums';
2
2
  export interface IPayioApp {
3
3
  active: boolean;
4
4
  clientKey: string | null;
@@ -13,7 +13,7 @@ export interface IPayioApp {
13
13
  price: number;
14
14
  refreshToken: string | null;
15
15
  secret: string;
16
- slug: EPayuioAppSlug;
16
+ slug: EPayioAppSlug;
17
17
  tags: string[];
18
18
  accessToken: string | null;
19
19
  updatedAt: Date;
@@ -1,10 +1,10 @@
1
- import { OrderEntity } from "../../../order";
2
- import { EPayuioAppSlug } from "../../app";
3
- import { IPayioOrder } from "../interfaces";
4
- import { PayioOrderIndoorEntity } from "./indoor.entity";
1
+ import { OrderEntity } from '../../../order';
2
+ import { EPayioAppSlug } from '../../app';
3
+ import { IPayioOrder } from '../interfaces';
4
+ import { PayioOrderIndoorEntity } from './indoor.entity';
5
5
  export declare class PayioOrderEntity extends OrderEntity implements IPayioOrder {
6
6
  appId: string | null;
7
- appSlug: EPayuioAppSlug;
7
+ appSlug: EPayioAppSlug;
8
8
  deviceId: string | null;
9
9
  indoor: PayioOrderIndoorEntity | null;
10
10
  resumeVersion: string;
@@ -23,7 +23,7 @@ var PayioOrderEntity = /** @class */ (function (_super) {
23
23
  function PayioOrderEntity(data) {
24
24
  var _this = _super.call(this) || this;
25
25
  _this.appId = null;
26
- _this.appSlug = app_1.EPayuioAppSlug.none;
26
+ _this.appSlug = app_1.EPayioAppSlug.none;
27
27
  _this.deviceId = null;
28
28
  _this.indoor = null;
29
29
  _this.resumeVersion = '';
@@ -1,9 +1,9 @@
1
1
  import { IOrder } from '../../../order';
2
- import { EPayuioAppSlug } from '../../app';
2
+ import { EPayioAppSlug } from '../../app';
3
3
  import { IPayioOrderIndoor } from './i-order-indoor';
4
4
  export interface IPayioOrder extends IOrder {
5
5
  appId: string | null;
6
- appSlug: EPayuioAppSlug;
6
+ appSlug: EPayioAppSlug;
7
7
  deviceId: string | null;
8
8
  indoor: IPayioOrderIndoor | null;
9
9
  resumeVersion: string;
@@ -1,6 +1,7 @@
1
1
  import { PayioOrderQueueStatusEnum } from '../enums';
2
2
  import { IPayioOrderQueue } from '../interfaces/i-order-queue';
3
3
  export declare class PayioOrderQueueEntity implements IPayioOrderQueue {
4
+ deviceId?: string;
4
5
  appId: string;
5
6
  attempts: number;
6
7
  companyId: string;
@@ -3,6 +3,7 @@ export interface IPayioOrderQueue {
3
3
  attempts: number;
4
4
  createdAt: Date;
5
5
  reference: string;
6
+ deviceId?: string;
6
7
  companyId: string;
7
8
  companyName: string;
8
9
  appId: string;
@@ -8,7 +8,7 @@ import { PayioJwtPayloadUserEntity } from './payload-user.entity';
8
8
  export declare class PayioJwtPayloadEntity implements IPayioJwtPayload {
9
9
  activationStatus: EPayuioActivationStatus;
10
10
  app: IPayioJwtPayloadApp | null;
11
- aud: string;
11
+ aud: string | string[];
12
12
  device: PayioJwtPayloadDeviceEntity | null;
13
13
  distributorId: string | null;
14
14
  exp?: number;
@@ -8,8 +8,9 @@ export interface IPayioJwtPayload {
8
8
  app: IPayioJwtPayloadApp | null;
9
9
  /**
10
10
  * (Audiência): Identifica os destinatários pretendidos do JWT (sua aplicação).
11
+ * Pode ser uma string única ou um array de strings para múltiplas audiências.
11
12
  */
12
- aud: string;
13
+ aud: string | string[];
13
14
  device: IPayioJwtPayloadDevice | null;
14
15
  distributorId: string | null;
15
16
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.8.79",
3
+ "version": "1.8.82",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -2,9 +2,11 @@
2
2
 
3
3
  Compilar & publicar:
4
4
 
5
- npm run packagr
6
- npm run build
7
- npm publish
5
+ ATENÇAO, sempre mudar a versão do package.json
6
+
7
+ npm run packagr // primeiro
8
+ npm run build // segundo
9
+ npm publish // terceiro
8
10
 
9
11
 
10
12
  *Não esqueça de dar push no github*