cecon-interfaces 1.8.37 → 1.8.40

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/payio/cash-config/entities/config-operation.entity.mjs +2 -1
  2. package/dist/esm2022/payio/cash-config/enums/index.mjs +2 -1
  3. package/dist/esm2022/payio/cash-config/enums/shift.enum.mjs +9 -0
  4. package/dist/esm2022/payio/cash-config/interfaces/i-cash-config-operation.mjs +1 -1
  5. package/dist/esm2022/payio/chef-config/entities/config-operation.entity.mjs +2 -2
  6. package/dist/esm2022/payio/chef-config/entities/webhook.entity.mjs +2 -10
  7. package/dist/esm2022/payio/chef-config/enums/webhook-type.enum.mjs +2 -5
  8. package/dist/esm2022/payio/chef-config/interfaces/i-chef-config-operation.mjs +1 -1
  9. package/dist/esm2022/payio/chef-config/interfaces/i-webhook.mjs +1 -1
  10. package/dist/esm2022/payio/chef-config/interfaces/index.mjs +1 -1
  11. package/dist/esm2022/payio/tabs/enums/status.enum.mjs +2 -1
  12. package/dist/fesm2022/cecon-interfaces.mjs +15 -15
  13. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  14. package/dist/payio/cash-config/entities/config-operation.entity.d.ts +1 -0
  15. package/dist/payio/cash-config/entities/config-operation.entity.js +1 -0
  16. package/dist/payio/cash-config/enums/index.d.ts +1 -0
  17. package/dist/payio/cash-config/enums/index.js +3 -1
  18. package/dist/payio/cash-config/enums/shift.enum.d.ts +7 -0
  19. package/dist/payio/cash-config/enums/shift.enum.js +11 -0
  20. package/dist/payio/cash-config/interfaces/i-cash-config-operation.d.ts +1 -0
  21. package/dist/payio/chef-config/entities/config-operation.entity.d.ts +1 -1
  22. package/dist/payio/chef-config/entities/config-operation.entity.js +1 -1
  23. package/dist/payio/chef-config/entities/webhook.entity.d.ts +2 -9
  24. package/dist/payio/chef-config/entities/webhook.entity.js +1 -12
  25. package/dist/payio/chef-config/enums/webhook-type.enum.d.ts +2 -5
  26. package/dist/payio/chef-config/enums/webhook-type.enum.js +1 -4
  27. package/dist/payio/chef-config/interfaces/i-chef-config-operation.d.ts +2 -1
  28. package/dist/payio/chef-config/interfaces/i-webhook.d.ts +1 -9
  29. package/dist/payio/chef-config/interfaces/index.d.ts +1 -1
  30. package/dist/payio/tabs/enums/status.enum.d.ts +1 -0
  31. package/dist/payio/tabs/enums/status.enum.js +1 -0
  32. package/package.json +1 -1
@@ -6,6 +6,7 @@ export declare class PayioCashConfigOperationEntity implements IPayioCashConfigO
6
6
  tabFormat: string | null;
7
7
  tef: IPayioCashConfigOperationTef;
8
8
  pdvId: string;
9
+ visionDeviceId: string;
9
10
  constructor(data?: Partial<PayioCashConfigOperationEntity>);
10
11
  }
11
12
  export declare class PayioCashConfigOperationTefEntity implements IPayioCashConfigOperationTef {
@@ -9,6 +9,7 @@ var PayioCashConfigOperationEntity = /** @class */ (function () {
9
9
  this.tabFormat = null;
10
10
  this.tef = new PayioCashConfigOperationTefEntity();
11
11
  this.pdvId = '';
12
+ this.visionDeviceId = '';
12
13
  if (data) {
13
14
  for (var key in data) {
14
15
  if (data.hasOwnProperty(key) && key in this) {
@@ -1 +1,2 @@
1
+ export { EWorkShiftType } from './shift.enum';
1
2
  export { ETefProvider } from './tef-provider.enum';
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ETefProvider = void 0;
3
+ exports.ETefProvider = exports.EWorkShiftType = void 0;
4
+ var shift_enum_1 = require("./shift.enum");
5
+ Object.defineProperty(exports, "EWorkShiftType", { enumerable: true, get: function () { return shift_enum_1.EWorkShiftType; } });
4
6
  var tef_provider_enum_1 = require("./tef-provider.enum");
5
7
  Object.defineProperty(exports, "ETefProvider", { enumerable: true, get: function () { return tef_provider_enum_1.ETefProvider; } });
@@ -0,0 +1,7 @@
1
+ export declare enum EWorkShiftType {
2
+ FULL_24H = "00:00_23:59",
3
+ TWO_SHIFTS_12H = "00:00_12:00_12:00_23:59",
4
+ THREE_SHIFTS_8H = "00:00_08:00_08:00_16:00_16:00_23:59",
5
+ FOUR_SHIFTS_6H = "00:00_06:00_06:00_12:00_12:00_18:00_18:00_23:59",
6
+ TWO_SHIFTS_14H = "00:00_14:00_14:00_23:59"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EWorkShiftType = void 0;
4
+ var EWorkShiftType;
5
+ (function (EWorkShiftType) {
6
+ EWorkShiftType["FULL_24H"] = "00:00_23:59";
7
+ EWorkShiftType["TWO_SHIFTS_12H"] = "00:00_12:00_12:00_23:59";
8
+ EWorkShiftType["THREE_SHIFTS_8H"] = "00:00_08:00_08:00_16:00_16:00_23:59";
9
+ EWorkShiftType["FOUR_SHIFTS_6H"] = "00:00_06:00_06:00_12:00_12:00_18:00_18:00_23:59";
10
+ EWorkShiftType["TWO_SHIFTS_14H"] = "00:00_14:00_14:00_23:59";
11
+ })(EWorkShiftType || (exports.EWorkShiftType = EWorkShiftType = {}));
@@ -6,6 +6,7 @@ export interface IPayioCashConfigOperation {
6
6
  tabFormat: string | null;
7
7
  tef: IPayioCashConfigOperationTef;
8
8
  pdvId: string;
9
+ visionDeviceId: string;
9
10
  }
10
11
  export interface IPayioCashConfigOperationTef {
11
12
  companyNumber: string;
@@ -19,6 +19,6 @@ export declare class PayioChefConfigOperationEntity implements IPayioChefConfigO
19
19
  tabMode: EPayioChefTabMode;
20
20
  tabRegistered: boolean;
21
21
  urlLogo: string;
22
- tabRegistred: boolean;
22
+ visionDeviceId: string;
23
23
  constructor(data?: Partial<PayioChefConfigOperationEntity>);
24
24
  }
@@ -22,7 +22,7 @@ var PayioChefConfigOperationEntity = /** @class */ (function () {
22
22
  this.tabMode = enums_1.EPayioChefTabMode.MANUAL;
23
23
  this.tabRegistered = false;
24
24
  this.urlLogo = '';
25
- this.tabRegistred = false;
25
+ this.visionDeviceId = '';
26
26
  if (data) {
27
27
  for (var key in data) {
28
28
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,17 +1,10 @@
1
1
  import { EWebhookMethod, EWebhookType } from '../../..';
2
- import { IPayioWebhook, IPayioWebhookHeader } from '../interfaces';
2
+ import { IPayioWebhook } from '../interfaces';
3
3
  export declare class PayioWebhookEntity implements IPayioWebhook {
4
- active: boolean;
5
- headers: PayioWebhookHeaderEntity[];
6
4
  id: string;
7
- locked: boolean;
8
5
  method: EWebhookMethod;
9
- response: any;
10
6
  type: EWebhookType;
11
7
  url: string;
12
8
  constructor(data?: Partial<PayioWebhookEntity>);
13
- }
14
- export declare class PayioWebhookHeaderEntity implements IPayioWebhookHeader {
15
- key: string;
16
- value: string;
9
+ response: any;
17
10
  }
@@ -1,13 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioWebhookHeaderEntity = exports.PayioWebhookEntity = void 0;
3
+ exports.PayioWebhookEntity = void 0;
4
4
  var __1 = require("../../..");
5
5
  var PayioWebhookEntity = /** @class */ (function () {
6
6
  function PayioWebhookEntity(data) {
7
- this.active = true;
8
- this.headers = [];
9
7
  this.id = '';
10
- this.locked = false;
11
8
  this.method = __1.EWebhookMethod.POST;
12
9
  this.type = __1.EWebhookType.SEND_ORDER;
13
10
  this.url = '';
@@ -22,11 +19,3 @@ var PayioWebhookEntity = /** @class */ (function () {
22
19
  return PayioWebhookEntity;
23
20
  }());
24
21
  exports.PayioWebhookEntity = PayioWebhookEntity;
25
- var PayioWebhookHeaderEntity = /** @class */ (function () {
26
- function PayioWebhookHeaderEntity() {
27
- this.key = '';
28
- this.value = '';
29
- }
30
- return PayioWebhookHeaderEntity;
31
- }());
32
- exports.PayioWebhookHeaderEntity = PayioWebhookHeaderEntity;
@@ -5,10 +5,7 @@ export declare enum EWebhookType {
5
5
  GET_ORDER = "GET_ORDER",
6
6
  CANCEL_ORDER = "CANCEL_ORDER",
7
7
  GET_ORDER_STATUS = "GET_ORDER_STATUS",
8
- VISION_SEND_IMG = "VISION_SEND_IMG",
9
- VISION_ASSIGN_POSITION = "VISION_ASSIGN_POSITION",
10
- VISION_UNASSIGN_POSITION = "VISION_UNASSIGN_POSITION",
11
- VISION_GET_POSITION = "VISION_GET_POSITION",
12
8
  NFCE_GET_XML = "NFCE_GET_XML",
13
- GET_TAB = "GET_TAB"
9
+ GET_TAB = "GET_TAB",
10
+ VISION = "VISION"
14
11
  }
@@ -9,10 +9,7 @@ var EWebhookType;
9
9
  EWebhookType["GET_ORDER"] = "GET_ORDER";
10
10
  EWebhookType["CANCEL_ORDER"] = "CANCEL_ORDER";
11
11
  EWebhookType["GET_ORDER_STATUS"] = "GET_ORDER_STATUS";
12
- EWebhookType["VISION_SEND_IMG"] = "VISION_SEND_IMG";
13
- EWebhookType["VISION_ASSIGN_POSITION"] = "VISION_ASSIGN_POSITION";
14
- EWebhookType["VISION_UNASSIGN_POSITION"] = "VISION_UNASSIGN_POSITION";
15
- EWebhookType["VISION_GET_POSITION"] = "VISION_GET_POSITION";
16
12
  EWebhookType["NFCE_GET_XML"] = "NFCE_GET_XML";
17
13
  EWebhookType["GET_TAB"] = "GET_TAB";
14
+ EWebhookType["VISION"] = "VISION";
18
15
  })(EWebhookType || (exports.EWebhookType = EWebhookType = {}));
@@ -17,7 +17,8 @@ export interface IPayioChefConfigOperation {
17
17
  showTotalPrice: boolean;
18
18
  startOrderIn: number;
19
19
  tabFormat: string | null;
20
- tabRegistered: boolean;
21
20
  tabMode: EPayioChefTabMode;
21
+ tabRegistered: boolean;
22
22
  urlLogo: string;
23
+ visionDeviceId: string;
23
24
  }
@@ -1,15 +1,7 @@
1
- import { EWebhookMethod, EWebhookType } from "../../..";
1
+ import { EWebhookMethod, EWebhookType } from '../../..';
2
2
  export interface IPayioWebhook {
3
- active: boolean;
4
- headers: IPayioWebhookHeader[];
5
3
  id: string;
6
- locked: boolean;
7
4
  method: EWebhookMethod;
8
- response: any;
9
5
  type: EWebhookType;
10
6
  url: string;
11
7
  }
12
- export interface IPayioWebhookHeader {
13
- key: string;
14
- value: string;
15
- }
@@ -2,4 +2,4 @@ export { IPayioChefConfig } from './i-chef-config';
2
2
  export { IPayioChefConfigOperation } from './i-chef-config-operation';
3
3
  export { IPayioChefConfigPrinter } from './i-chef-config-printer';
4
4
  export { IPayioChefConfigScale } from './i-chef-config-scale';
5
- export { IPayioWebhook, IPayioWebhookHeader } from './i-webhook';
5
+ export { IPayioWebhook } from './i-webhook';
@@ -1,6 +1,7 @@
1
1
  export declare enum EPayioTabStatus {
2
2
  ACTIVE = "active",
3
3
  INACTIVE = "inactive",
4
+ BLOCKED = "blocked",
4
5
  SUSPENDED = "suspended",
5
6
  LOST = "lost",
6
7
  UNDER_REVIEW = "under_review",
@@ -5,6 +5,7 @@ var EPayioTabStatus;
5
5
  (function (EPayioTabStatus) {
6
6
  EPayioTabStatus["ACTIVE"] = "active";
7
7
  EPayioTabStatus["INACTIVE"] = "inactive";
8
+ EPayioTabStatus["BLOCKED"] = "blocked";
8
9
  EPayioTabStatus["SUSPENDED"] = "suspended";
9
10
  EPayioTabStatus["LOST"] = "lost";
10
11
  EPayioTabStatus["UNDER_REVIEW"] = "under_review";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.8.37",
3
+ "version": "1.8.40",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",