cecon-interfaces 1.7.44 → 1.7.46

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.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.44",
3
+ "version": "1.7.46",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,6 @@
1
+ import { IPayioChefConfigWebhookHeader } from '../interfaces/i-chef-config-webhook-header';
2
+ export declare class PayioChefConfigWebhookHeaderEntity implements IPayioChefConfigWebhookHeader {
3
+ key: string;
4
+ value: string;
5
+ constructor(data?: Partial<PayioChefConfigWebhookHeaderEntity>);
6
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioChefConfigWebhookHeaderEntity = void 0;
4
+ var PayioChefConfigWebhookHeaderEntity = /** @class */ (function () {
5
+ function PayioChefConfigWebhookHeaderEntity(data) {
6
+ this.key = '';
7
+ this.value = '';
8
+ if (data) {
9
+ for (var key in data) {
10
+ if (data.hasOwnProperty(key) && key in this) {
11
+ this[key] = data[key];
12
+ }
13
+ }
14
+ }
15
+ }
16
+ return PayioChefConfigWebhookHeaderEntity;
17
+ }());
18
+ exports.PayioChefConfigWebhookHeaderEntity = PayioChefConfigWebhookHeaderEntity;
@@ -1,11 +1,11 @@
1
1
  import { IPayioChefConfigWebhook } from '../interfaces';
2
+ import { IPayioChefConfigWebhookHeader } from '../interfaces/i-chef-config-webhook-header';
2
3
  export declare class PayioChefConfigWebhookEntity implements IPayioChefConfigWebhook {
3
4
  active: boolean;
4
- authToken: string | null;
5
+ headers: IPayioChefConfigWebhookHeader[];
5
6
  locked: boolean;
6
7
  method: 'GET' | 'POST' | 'PUT' | 'DELETE';
7
- response: string | null;
8
- secret: string | null;
8
+ response: any;
9
9
  type: 'PING' | 'GET_PRODUCT' | 'SEND_ORDER' | 'GET_ORDER' | 'CANCEL_ORDER' | 'GET_ORDER_STATUS' | 'VISION_SEND_IMG' | 'VISION_ASSIGN_POSITION';
10
10
  url: string;
11
11
  constructor(data?: Partial<PayioChefConfigWebhookEntity>);
@@ -2,17 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioChefConfigWebhookEntity = void 0;
4
4
  var PayioChefConfigWebhookEntity = /** @class */ (function () {
5
- // #endregion Properties (9)
6
- // #region Constructors (1)
7
5
  function PayioChefConfigWebhookEntity(data) {
8
- // #region Properties (9)
9
6
  this.active = true;
10
- this.authToken = null;
7
+ this.headers = [];
11
8
  this.locked = false;
12
9
  this.method = 'POST';
13
- // Travar caso não esteja respondendo
14
- this.response = null;
15
- this.secret = null;
16
10
  this.type = 'SEND_ORDER';
17
11
  this.url = '';
18
12
  if (data) {
@@ -2,5 +2,6 @@ export { PayioChefConfigOperationEntity } from './chef-config-operation.entity';
2
2
  export { PayioChefConfigPrinterEntity } from './chef-config-printer.entity';
3
3
  export { PayioChefConfigScaleEntity } from './chef-config-scale.entity';
4
4
  export { PayioChefConfigTabsEntity } from './chef-config-tabs.entity';
5
+ export { PayioChefConfigWebhookHeaderEntity } from './chef-config-webhook-header.entity';
5
6
  export { PayioChefConfigWebhookEntity } from './chef-config-webhook.entity';
6
7
  export { PayioChefConfigEntity } from './chef-config.entity';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioChefConfigEntity = exports.PayioChefConfigWebhookEntity = exports.PayioChefConfigTabsEntity = exports.PayioChefConfigScaleEntity = exports.PayioChefConfigPrinterEntity = exports.PayioChefConfigOperationEntity = void 0;
3
+ exports.PayioChefConfigEntity = exports.PayioChefConfigWebhookEntity = exports.PayioChefConfigWebhookHeaderEntity = exports.PayioChefConfigTabsEntity = exports.PayioChefConfigScaleEntity = exports.PayioChefConfigPrinterEntity = exports.PayioChefConfigOperationEntity = void 0;
4
4
  var chef_config_operation_entity_1 = require("./chef-config-operation.entity");
5
5
  Object.defineProperty(exports, "PayioChefConfigOperationEntity", { enumerable: true, get: function () { return chef_config_operation_entity_1.PayioChefConfigOperationEntity; } });
6
6
  var chef_config_printer_entity_1 = require("./chef-config-printer.entity");
@@ -9,6 +9,8 @@ var chef_config_scale_entity_1 = require("./chef-config-scale.entity");
9
9
  Object.defineProperty(exports, "PayioChefConfigScaleEntity", { enumerable: true, get: function () { return chef_config_scale_entity_1.PayioChefConfigScaleEntity; } });
10
10
  var chef_config_tabs_entity_1 = require("./chef-config-tabs.entity");
11
11
  Object.defineProperty(exports, "PayioChefConfigTabsEntity", { enumerable: true, get: function () { return chef_config_tabs_entity_1.PayioChefConfigTabsEntity; } });
12
+ var chef_config_webhook_header_entity_1 = require("./chef-config-webhook-header.entity");
13
+ Object.defineProperty(exports, "PayioChefConfigWebhookHeaderEntity", { enumerable: true, get: function () { return chef_config_webhook_header_entity_1.PayioChefConfigWebhookHeaderEntity; } });
12
14
  var chef_config_webhook_entity_1 = require("./chef-config-webhook.entity");
13
15
  Object.defineProperty(exports, "PayioChefConfigWebhookEntity", { enumerable: true, get: function () { return chef_config_webhook_entity_1.PayioChefConfigWebhookEntity; } });
14
16
  var chef_config_entity_1 = require("./chef-config.entity");
@@ -0,0 +1,4 @@
1
+ export interface IPayioChefConfigWebhookHeader {
2
+ key: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,10 @@
1
+ import { IPayioChefConfigWebhookHeader } from './i-chef-config-webhook-header';
1
2
  export interface IPayioChefConfigWebhook {
2
3
  active: boolean;
3
4
  method: 'GET' | 'POST' | 'PUT' | 'DELETE';
4
- authToken: string | null;
5
- secret: string | null;
5
+ headers: IPayioChefConfigWebhookHeader[];
6
6
  url: string;
7
7
  type: 'PING' | 'GET_PRODUCT' | 'SEND_ORDER' | 'GET_ORDER' | 'CANCEL_ORDER' | 'GET_ORDER_STATUS' | 'VISION_SEND_IMG' | 'VISION_ASSIGN_POSITION';
8
- response: string | null;
8
+ response: any;
9
9
  locked: boolean;
10
10
  }
@@ -4,3 +4,4 @@ export { IPayioChefConfigPrinter } from './i-chef-config-printer';
4
4
  export { IPayioChefConfigScale } from './i-chef-config-scale';
5
5
  export { IPayioChefConfigTabs } from './i-chef-config-tabs';
6
6
  export { IPayioChefConfigWebhook } from './i-chef-config-webhook';
7
+ export { IPayioChefConfigWebhookHeader } from './i-chef-config-webhook-header';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.44",
3
+ "version": "1.7.46",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",