cecon-interfaces 1.9.79 → 1.9.81

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 (61) hide show
  1. package/dist/esm2022/natipay/orders/enums/sale-channel.enum.mjs +2 -1
  2. package/dist/esm2022/natipay/payload/entities/payload-device.entity.mjs +1 -3
  3. package/dist/esm2022/natipay/payload/enums/token-type.enum.mjs +4 -1
  4. package/dist/esm2022/natipay/payload/interfaces/i-payload-device.mjs +1 -1
  5. package/dist/esm2022/natipay/tokens/entities/token.entity.mjs +2 -4
  6. package/dist/esm2022/natipay/tokens/interfaces/i-token.mjs +1 -1
  7. package/dist/esm2022/order/interfaces/i-order.mjs +1 -1
  8. package/dist/esm2022/payio/index.mjs +2 -1
  9. package/dist/esm2022/payio/payload/entities/payload-device.entity.mjs +2 -1
  10. package/dist/esm2022/payio/payload/entities/payload-user.entity.mjs +2 -1
  11. package/dist/esm2022/payio/payload/interfaces/i-payload-device.mjs +1 -1
  12. package/dist/esm2022/payio/payload/interfaces/i-payload-user.mjs +1 -1
  13. package/dist/esm2022/payio/tokens/entities/token.entity.mjs +2 -1
  14. package/dist/esm2022/payio/tokens/interfaces/i-token.mjs +1 -1
  15. package/dist/esm2022/payio/ze-config/entities/index.mjs +2 -0
  16. package/dist/esm2022/payio/ze-config/entities/ze-config.entity.mjs +20 -0
  17. package/dist/esm2022/payio/ze-config/enums/event.enum.mjs +8 -0
  18. package/dist/esm2022/payio/ze-config/enums/index.mjs +2 -0
  19. package/dist/esm2022/payio/ze-config/index.mjs +4 -0
  20. package/dist/esm2022/payio/ze-config/interfaces/i-ze-config.mjs +2 -0
  21. package/dist/esm2022/payio/ze-config/interfaces/index.mjs +2 -0
  22. package/dist/fesm2022/cecon-interfaces.mjs +37 -6
  23. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  24. package/dist/natipay/orders/enums/sale-channel.enum.d.ts +1 -0
  25. package/dist/natipay/orders/enums/sale-channel.enum.js +1 -0
  26. package/dist/natipay/payload/entities/payload-device.entity.d.ts +0 -2
  27. package/dist/natipay/payload/entities/payload-device.entity.js +0 -2
  28. package/dist/natipay/payload/enums/token-type.enum.d.ts +4 -1
  29. package/dist/natipay/payload/enums/token-type.enum.js +3 -0
  30. package/dist/natipay/payload/interfaces/i-payload-device.d.ts +0 -2
  31. package/dist/natipay/tokens/entities/token.entity.d.ts +1 -0
  32. package/dist/natipay/tokens/entities/token.entity.js +1 -3
  33. package/dist/natipay/tokens/interfaces/i-token.d.ts +1 -0
  34. package/dist/order/interfaces/i-order.d.ts +17 -17
  35. package/dist/payio/index.d.ts +1 -0
  36. package/dist/payio/index.js +1 -0
  37. package/dist/payio/payload/entities/payload-device.entity.d.ts +1 -0
  38. package/dist/payio/payload/entities/payload-device.entity.js +1 -0
  39. package/dist/payio/payload/entities/payload-user.entity.d.ts +1 -0
  40. package/dist/payio/payload/entities/payload-user.entity.js +1 -0
  41. package/dist/payio/payload/interfaces/i-payload-device.d.ts +1 -0
  42. package/dist/payio/payload/interfaces/i-payload-user.d.ts +4 -3
  43. package/dist/payio/tokens/entities/token.entity.d.ts +1 -0
  44. package/dist/payio/tokens/entities/token.entity.js +1 -0
  45. package/dist/payio/tokens/interfaces/i-token.d.ts +1 -0
  46. package/dist/payio/ze-config/entities/index.d.ts +1 -0
  47. package/dist/payio/ze-config/entities/index.js +5 -0
  48. package/dist/payio/ze-config/entities/ze-config.entity.d.ts +13 -0
  49. package/dist/payio/ze-config/entities/ze-config.entity.js +24 -0
  50. package/dist/payio/ze-config/enums/event.enum.d.ts +6 -0
  51. package/dist/payio/ze-config/enums/event.enum.js +10 -0
  52. package/dist/payio/ze-config/enums/index.d.ts +1 -0
  53. package/dist/payio/ze-config/enums/index.js +5 -0
  54. package/dist/payio/ze-config/index.d.ts +3 -0
  55. package/dist/payio/ze-config/index.js +19 -0
  56. package/dist/payio/ze-config/interfaces/i-ze-config.d.ts +11 -0
  57. package/dist/payio/ze-config/interfaces/i-ze-config.js +2 -0
  58. package/dist/payio/ze-config/interfaces/index.d.ts +1 -0
  59. package/dist/payio/ze-config/interfaces/index.js +2 -0
  60. package/order-temp.zip +0 -0
  61. package/package.json +1 -1
@@ -5,6 +5,7 @@ export declare enum ENatipaySaleChannel {
5
5
  NATIPAY = "NATIPAY",
6
6
  NATIPAY_TAB = "NATIPAY-TAB",
7
7
  NATI_PDV = "NATI-PDV",
8
+ NATI_DELIVERY = "NATI-DELIVERY",
8
9
  NATI_SMART_POS = "NATI-SMART-POS",
9
10
  NATI_TOTEM = "NATI-TOTEM",
10
11
  MOBYO_DELIVERY = "MOBYO-DELIVERY",
@@ -10,6 +10,7 @@ var ENatipaySaleChannel;
10
10
  ENatipaySaleChannel["NATIPAY"] = "NATIPAY";
11
11
  ENatipaySaleChannel["NATIPAY_TAB"] = "NATIPAY-TAB";
12
12
  ENatipaySaleChannel["NATI_PDV"] = "NATI-PDV";
13
+ ENatipaySaleChannel["NATI_DELIVERY"] = "NATI-DELIVERY";
13
14
  ENatipaySaleChannel["NATI_SMART_POS"] = "NATI-SMART-POS";
14
15
  ENatipaySaleChannel["NATI_TOTEM"] = "NATI-TOTEM";
15
16
  ENatipaySaleChannel["MOBYO_DELIVERY"] = "MOBYO-DELIVERY";
@@ -1,8 +1,6 @@
1
1
  import { INatipayJwtPayloadDevice } from '../interfaces/i-payload-device';
2
2
  export declare class NatipayJwtPayloadDeviceEntity implements INatipayJwtPayloadDevice {
3
- chefConfigId: string | null;
4
3
  id: string;
5
4
  name: string | null;
6
- scheduleId: string | null;
7
5
  constructor(data?: Partial<NatipayJwtPayloadDeviceEntity>);
8
6
  }
@@ -6,10 +6,8 @@ var NatipayJwtPayloadDeviceEntity = /** @class */ (function () {
6
6
  // #region Constructors (1)
7
7
  function NatipayJwtPayloadDeviceEntity(data) {
8
8
  // #region Properties (4)
9
- this.chefConfigId = '';
10
9
  this.id = '';
11
10
  this.name = '';
12
- this.scheduleId = '';
13
11
  if (data) {
14
12
  for (var key in data) {
15
13
  if (data.hasOwnProperty(key) && key in this) {
@@ -5,5 +5,8 @@ export declare enum ENatipayJwtTokenType {
5
5
  CHECKIN = "CHECKIN",
6
6
  CHECKOUT = "CHECKOUT",
7
7
  DEVICE = "DEVICE",
8
- ACCESS_TOKEN = "ACCESS_TOKEN"
8
+ ACCESS_TOKEN = "ACCESS_TOKEN",
9
+ SIGNOUT = "SIGNOUT",
10
+ IOT = "IOT",
11
+ DEVELOPER_APP = "DEVELOPER_APP"
9
12
  }
@@ -10,4 +10,7 @@ var ENatipayJwtTokenType;
10
10
  ENatipayJwtTokenType["CHECKOUT"] = "CHECKOUT";
11
11
  ENatipayJwtTokenType["DEVICE"] = "DEVICE";
12
12
  ENatipayJwtTokenType["ACCESS_TOKEN"] = "ACCESS_TOKEN";
13
+ ENatipayJwtTokenType["SIGNOUT"] = "SIGNOUT";
14
+ ENatipayJwtTokenType["IOT"] = "IOT";
15
+ ENatipayJwtTokenType["DEVELOPER_APP"] = "DEVELOPER_APP";
13
16
  })(ENatipayJwtTokenType || (exports.ENatipayJwtTokenType = ENatipayJwtTokenType = {}));
@@ -1,6 +1,4 @@
1
1
  export interface INatipayJwtPayloadDevice {
2
2
  id: string;
3
3
  name: string | null;
4
- chefConfigId: string | null;
5
- scheduleId: string | null;
6
4
  }
@@ -1,5 +1,6 @@
1
1
  import { INatipayToken } from '../interfaces/i-token';
2
2
  export declare class NatipayTokenEntity implements INatipayToken {
3
+ appId: string;
3
4
  createdAt: Date;
4
5
  deviceId: string | null;
5
6
  expiresAt: Date;
@@ -2,10 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NatipayTokenEntity = void 0;
4
4
  var NatipayTokenEntity = /** @class */ (function () {
5
- // #endregion Properties (12)
6
- // #region Constructors (1)
7
5
  function NatipayTokenEntity(data) {
8
- // #region Properties (12)
6
+ this.appId = '';
9
7
  this.createdAt = new Date();
10
8
  this.deviceId = null;
11
9
  this.expiresAt = new Date();
@@ -1,4 +1,5 @@
1
1
  export interface INatipayToken {
2
+ appId: string;
2
3
  createdAt: Date;
3
4
  deviceId: string | null;
4
5
  expiresAt: Date;
@@ -1,15 +1,15 @@
1
- import { EFrom } from '../../general';
2
- import { EOrderExtraInfo, EOrderTiming } from '../enums';
3
- import { EOrderStatus } from '../enums/order-status.enum';
4
- import { EOrderType } from '../enums/order-type.enum';
5
- import { IOrderAdditionalFee } from './i-additional-fee';
6
- import { IOrderBenefits } from './i-benefits';
7
- import { IOrderCancellation } from './i-cancellation';
8
- import { IOrderCustomer } from './i-customer';
9
- import { IOrderDelivery } from './i-delivery';
10
- import { IOrderItem } from './i-item';
11
- import { IOrderPayment } from './i-payment';
12
- import { IOrderTotal } from './i-total';
1
+ import { EFrom } from "../../general";
2
+ import { EOrderExtraInfo, EOrderTiming } from "../enums";
3
+ import { EOrderStatus } from "../enums/order-status.enum";
4
+ import { EOrderType } from "../enums/order-type.enum";
5
+ import { IOrderAdditionalFee } from "./i-additional-fee";
6
+ import { IOrderBenefits } from "./i-benefits";
7
+ import { IOrderCancellation } from "./i-cancellation";
8
+ import { IOrderCustomer } from "./i-customer";
9
+ import { IOrderDelivery } from "./i-delivery";
10
+ import { IOrderItem } from "./i-item";
11
+ import { IOrderPayment } from "./i-payment";
12
+ import { IOrderTotal } from "./i-total";
13
13
  export interface IOrder {
14
14
  additionalFees: IOrderAdditionalFee[];
15
15
  benefits: IOrderBenefits[];
@@ -18,25 +18,25 @@ export interface IOrder {
18
18
  containerId: string;
19
19
  createdAt: Date;
20
20
  customer: IOrderCustomer | null;
21
- displayId: string;
22
- invoiceId: string | null;
23
21
  delivery: IOrderDelivery | null;
22
+ displayId: string;
23
+ extraInfo: EOrderExtraInfo | string | null;
24
+ from: EFrom;
24
25
  id: string;
26
+ invoiceId: string | null;
25
27
  items: IOrderItem[];
26
28
  orderTiming: EOrderTiming;
27
29
  orderType: EOrderType | null;
28
30
  payments: IOrderPayment | null;
29
31
  reference: string | null;
32
+ saleChannel: string;
30
33
  /**
31
34
  * @deprecated Use saleChannel instead
32
35
  */
33
36
  salesChannel?: string;
34
- saleChannel: string;
35
37
  sandbox: boolean;
36
38
  status: EOrderStatus;
37
39
  total: IOrderTotal;
38
40
  updatedAt: Date;
39
41
  version: string;
40
- from: EFrom;
41
- extraInfo: EOrderExtraInfo | string | null;
42
42
  }
@@ -29,3 +29,4 @@ export * from './preparation-place';
29
29
  export * from './cards';
30
30
  export * from './option-group';
31
31
  export * from './vision-config';
32
+ export * from './ze-config';
@@ -45,3 +45,4 @@ __exportStar(require("./preparation-place"), exports);
45
45
  __exportStar(require("./cards"), exports);
46
46
  __exportStar(require("./option-group"), exports);
47
47
  __exportStar(require("./vision-config"), exports);
48
+ __exportStar(require("./ze-config"), exports);
@@ -8,6 +8,7 @@ export declare class PayioJwtPayloadDeviceEntity implements IPayioJwtPayloadDevi
8
8
  bigChefConfigId: string | null;
9
9
  cashConfigId: string | null;
10
10
  chefConfigId: string | null;
11
+ zeConfigId: string | null;
11
12
  id: string;
12
13
  name: string | null;
13
14
  scheduleId: string | null;
@@ -11,6 +11,7 @@ var PayioJwtPayloadDeviceEntity = /** @class */ (function () {
11
11
  this.bigChefConfigId = '';
12
12
  this.cashConfigId = '';
13
13
  this.chefConfigId = '';
14
+ this.zeConfigId = '';
14
15
  this.id = '';
15
16
  this.name = '';
16
17
  this.scheduleId = '';
@@ -7,5 +7,6 @@ export declare class PayioJwtPayloadUserEntity implements IPayioJwtPayloadUser {
7
7
  name: string;
8
8
  phoneNumber: string;
9
9
  type: EPayioUserType | null;
10
+ isAdmin: boolean;
10
11
  constructor(data?: Partial<PayioJwtPayloadUserEntity>);
11
12
  }
@@ -9,6 +9,7 @@ var PayioJwtPayloadUserEntity = /** @class */ (function () {
9
9
  this.name = '';
10
10
  this.phoneNumber = '';
11
11
  this.type = null;
12
+ this.isAdmin = false;
12
13
  if (data) {
13
14
  for (var key in data) {
14
15
  if (data.hasOwnProperty(key) && key in this) {
@@ -7,6 +7,7 @@ export interface IPayioJwtPayloadDevice {
7
7
  bigChefConfigId: string | null;
8
8
  cashConfigId: string | null;
9
9
  chefConfigId: string | null;
10
+ zeConfigId: string | null;
10
11
  id: string;
11
12
  name: string | null;
12
13
  scheduleId: string | null;
@@ -1,9 +1,10 @@
1
- import { EPayioUserType } from '../enums/user-type.enum';
1
+ import { EPayioUserType } from "../enums/user-type.enum";
2
2
  export interface IPayioJwtPayloadUser {
3
- phoneNumber: string;
4
- internationalCode: string;
5
3
  email: string | null;
6
4
  id: string;
5
+ internationalCode: string;
6
+ isAdmin: boolean;
7
7
  name: string;
8
+ phoneNumber: string;
8
9
  type: EPayioUserType | null;
9
10
  }
@@ -1,5 +1,6 @@
1
1
  import { IPayioToken } from '../interfaces/i-token';
2
2
  export declare class PayioTokenEntity implements IPayioToken {
3
+ appId: string;
3
4
  createdAt: Date;
4
5
  deviceId: string | null;
5
6
  expiresAt: Date;
@@ -6,6 +6,7 @@ var PayioTokenEntity = /** @class */ (function () {
6
6
  // #region Constructors (1)
7
7
  function PayioTokenEntity(data) {
8
8
  // #region Properties (12)
9
+ this.appId = '';
9
10
  this.createdAt = new Date();
10
11
  this.deviceId = null;
11
12
  this.expiresAt = new Date();
@@ -1,4 +1,5 @@
1
1
  export interface IPayioToken {
2
+ appId: string;
2
3
  createdAt: Date;
3
4
  deviceId: string | null;
4
5
  expiresAt: Date;
@@ -0,0 +1 @@
1
+ export { PayioZeConfigEntity } from './ze-config.entity';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioZeConfigEntity = void 0;
4
+ var ze_config_entity_1 = require("./ze-config.entity");
5
+ Object.defineProperty(exports, "PayioZeConfigEntity", { enumerable: true, get: function () { return ze_config_entity_1.PayioZeConfigEntity; } });
@@ -0,0 +1,13 @@
1
+ import { EZeEvent } from '../enums';
2
+ import { IPayioZeConfig } from '../interfaces/i-ze-config';
3
+ export declare class PayioZeConfigEntity implements IPayioZeConfig {
4
+ autoAccept: boolean;
5
+ createdAt: Date;
6
+ events: EZeEvent[];
7
+ id: string;
8
+ name: string;
9
+ soundAlert: boolean;
10
+ updatedAt: Date;
11
+ webhook: string[];
12
+ constructor(data?: Partial<PayioZeConfigEntity>);
13
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioZeConfigEntity = void 0;
4
+ var PayioZeConfigEntity = /** @class */ (function () {
5
+ function PayioZeConfigEntity(data) {
6
+ this.autoAccept = false;
7
+ this.createdAt = new Date();
8
+ this.events = [];
9
+ this.id = '';
10
+ this.name = '';
11
+ this.soundAlert = false;
12
+ this.updatedAt = new Date();
13
+ this.webhook = [];
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 PayioZeConfigEntity;
23
+ }());
24
+ exports.PayioZeConfigEntity = PayioZeConfigEntity;
@@ -0,0 +1,6 @@
1
+ export declare enum EZeEvent {
2
+ ON_ORDER_CREATED = "on_order_created",
3
+ ON_ORDER_UPDATED = "on_order_updated",
4
+ ON_ORDER_DELETED = "on_order_deleted",
5
+ ON_ORDER_ACCEPTED = "on_order_accepted"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EZeEvent = void 0;
4
+ var EZeEvent;
5
+ (function (EZeEvent) {
6
+ EZeEvent["ON_ORDER_CREATED"] = "on_order_created";
7
+ EZeEvent["ON_ORDER_UPDATED"] = "on_order_updated";
8
+ EZeEvent["ON_ORDER_DELETED"] = "on_order_deleted";
9
+ EZeEvent["ON_ORDER_ACCEPTED"] = "on_order_accepted";
10
+ })(EZeEvent || (exports.EZeEvent = EZeEvent = {}));
@@ -0,0 +1 @@
1
+ export { EZeEvent } from './event.enum';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EZeEvent = void 0;
4
+ var event_enum_1 = require("./event.enum");
5
+ Object.defineProperty(exports, "EZeEvent", { enumerable: true, get: function () { return event_enum_1.EZeEvent; } });
@@ -0,0 +1,3 @@
1
+ export * from './entities';
2
+ export * from './enums';
3
+ export * from './interfaces';
@@ -0,0 +1,19 @@
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("./enums"), exports);
19
+ __exportStar(require("./interfaces"), exports);
@@ -0,0 +1,11 @@
1
+ import { EZeEvent } from '../enums/event.enum';
2
+ export interface IPayioZeConfig {
3
+ autoAccept: boolean;
4
+ soundAlert: boolean;
5
+ webhook: string[];
6
+ events: EZeEvent[];
7
+ createdAt: Date;
8
+ id: string;
9
+ name: string;
10
+ updatedAt: Date;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { IPayioZeConfig } from './i-ze-config';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/order-temp.zip ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.9.79",
3
+ "version": "1.9.81",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",