cecon-interfaces 1.6.55 → 1.6.58

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/dist/esm2022/payio/chef-config/entities/chef-config.entity.mjs +2 -3
  2. package/dist/esm2022/payio/chef-config/interfaces/i-chef-config.mjs +1 -1
  3. package/dist/esm2022/payio/device/entities/device-chef.entity.mjs +19 -0
  4. package/dist/esm2022/payio/device/entities/device.entity.mjs +2 -1
  5. package/dist/esm2022/payio/device/entities/index.mjs +2 -1
  6. package/dist/esm2022/payio/device/interfaces/i-device-chef.mjs +2 -0
  7. package/dist/esm2022/payio/device/interfaces/i-device.mjs +1 -1
  8. package/dist/esm2022/payio/device/interfaces/index.mjs +1 -1
  9. package/dist/esm2022/payio/schedules/entities/index.mjs +3 -1
  10. package/dist/esm2022/payio/schedules/entities/schedule-day.entity.mjs +17 -0
  11. package/dist/esm2022/payio/schedules/entities/schedule-product.entity.mjs +24 -0
  12. package/dist/esm2022/payio/schedules/entities/schedule-slot.entity.mjs +2 -2
  13. package/dist/esm2022/payio/schedules/entities/schedule.entity.mjs +7 -5
  14. package/dist/esm2022/payio/schedules/interfaces/i-schedule-day.mjs +2 -0
  15. package/dist/esm2022/payio/schedules/interfaces/i-schedule-product.mjs +2 -0
  16. package/dist/esm2022/payio/schedules/interfaces/i-schedule-slots.mjs +2 -0
  17. package/dist/esm2022/payio/schedules/interfaces/i-schedule.mjs +1 -1
  18. package/dist/esm2022/payio/schedules/interfaces/index.mjs +1 -1
  19. package/dist/fesm2022/cecon-interfaces.mjs +70 -7
  20. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  21. package/dist/package.json +1 -1
  22. package/dist/payio/chef-config/entities/chef-config.entity.d.ts +1 -1
  23. package/dist/payio/chef-config/entities/chef-config.entity.js +1 -2
  24. package/dist/payio/chef-config/interfaces/i-chef-config.d.ts +3 -3
  25. package/dist/payio/device/entities/device-chef.entity.d.ts +8 -0
  26. package/dist/payio/device/entities/device-chef.entity.js +23 -0
  27. package/dist/payio/device/entities/device.entity.d.ts +2 -0
  28. package/dist/payio/device/entities/device.entity.js +1 -0
  29. package/dist/payio/device/entities/index.d.ts +1 -0
  30. package/dist/payio/device/entities/index.js +3 -1
  31. package/dist/payio/device/interfaces/i-device-chef.d.ts +6 -0
  32. package/dist/payio/device/interfaces/i-device.d.ts +2 -0
  33. package/dist/payio/device/interfaces/index.d.ts +1 -0
  34. package/dist/payio/schedules/entities/index.d.ts +2 -0
  35. package/dist/payio/schedules/entities/index.js +5 -1
  36. package/dist/payio/schedules/entities/schedule-day.entity.d.ts +7 -0
  37. package/dist/payio/schedules/entities/schedule-day.entity.js +21 -0
  38. package/dist/payio/schedules/entities/schedule-product.entity.d.ts +13 -0
  39. package/dist/payio/schedules/entities/schedule-product.entity.js +28 -0
  40. package/dist/payio/schedules/entities/schedule-slot.entity.d.ts +1 -1
  41. package/dist/payio/schedules/entities/schedule-slot.entity.js +1 -1
  42. package/dist/payio/schedules/entities/schedule.entity.d.ts +4 -3
  43. package/dist/payio/schedules/entities/schedule.entity.js +6 -4
  44. package/dist/payio/schedules/interfaces/i-schedule-day.d.ts +5 -0
  45. package/dist/payio/schedules/interfaces/i-schedule-day.js +2 -0
  46. package/dist/payio/schedules/interfaces/i-schedule-product.d.ts +11 -0
  47. package/dist/payio/schedules/interfaces/i-schedule-product.js +2 -0
  48. package/dist/payio/schedules/interfaces/{i-schedule-slot.d.ts → i-schedule-slots.d.ts} +1 -1
  49. package/dist/payio/schedules/interfaces/i-schedule-slots.js +2 -0
  50. package/dist/payio/schedules/interfaces/i-schedule.d.ts +5 -2
  51. package/dist/payio/schedules/interfaces/index.d.ts +3 -1
  52. package/package.json +1 -1
  53. package/dist/esm2022/payio/schedules/interfaces/i-schedule-slot.mjs +0 -2
  54. /package/dist/payio/{schedules/interfaces/i-schedule-slot.js → device/interfaces/i-device-chef.js} +0 -0
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.55",
3
+ "version": "1.6.58",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -5,7 +5,7 @@ export declare class PayioChefConfigEntity implements IPayioChefConfig {
5
5
  multiOrder: boolean;
6
6
  name: string;
7
7
  operation: IPayioChefConfigOperation;
8
- printer: IPayioChefConfigPrinter;
8
+ printer: IPayioChefConfigPrinter | null;
9
9
  scale: IPayioChefConfigScale;
10
10
  updatedAt: Date;
11
11
  webhook: IPayioChefConfigWebhook[];
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioChefConfigEntity = void 0;
4
4
  var chef_config_operation_entity_1 = require("./chef-config-operation.entity");
5
- var chef_config_printer_entity_1 = require("./chef-config-printer.entity");
6
5
  var chef_config_scale_entity_1 = require("./chef-config-scale.entity");
7
6
  var PayioChefConfigEntity = /** @class */ (function () {
8
7
  // #endregion Properties (9)
@@ -14,7 +13,7 @@ var PayioChefConfigEntity = /** @class */ (function () {
14
13
  this.multiOrder = false;
15
14
  this.name = '';
16
15
  this.operation = new chef_config_operation_entity_1.PayioChefConfigOperationEntity();
17
- this.printer = new chef_config_printer_entity_1.PayioChefConfigPrinterEntity();
16
+ this.printer = null;
18
17
  this.scale = new chef_config_scale_entity_1.PayioChefConfigScaleEntity();
19
18
  this.updatedAt = new Date();
20
19
  this.webhook = [];
@@ -5,11 +5,11 @@ import { IPayioChefConfigWebhook } from './i-chef-config-webhook';
5
5
  export interface IPayioChefConfig {
6
6
  createdAt: Date;
7
7
  id: string;
8
+ multiOrder: boolean;
8
9
  name: string;
10
+ operation: IPayioChefConfigOperation;
11
+ printer: IPayioChefConfigPrinter | null;
9
12
  scale: IPayioChefConfigScale;
10
13
  updatedAt: Date;
11
- printer: IPayioChefConfigPrinter;
12
14
  webhook: IPayioChefConfigWebhook[];
13
- multiOrder: boolean;
14
- operation: IPayioChefConfigOperation;
15
15
  }
@@ -0,0 +1,8 @@
1
+ import { IPayioDeviceChef } from '../interfaces/i-device-chef';
2
+ export declare class PayioDeviceChefEntity implements IPayioDeviceChef {
3
+ chefConfigId: string | null;
4
+ chefConfigName: string | null;
5
+ scheduleId: string | null;
6
+ scheduleName: string | null;
7
+ constructor(data?: Partial<PayioDeviceChefEntity>);
8
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioDeviceChefEntity = void 0;
4
+ var PayioDeviceChefEntity = /** @class */ (function () {
5
+ // #endregion Properties (4)
6
+ // #region Constructors (1)
7
+ function PayioDeviceChefEntity(data) {
8
+ // #region Properties (4)
9
+ this.chefConfigId = null;
10
+ this.chefConfigName = null;
11
+ this.scheduleId = null;
12
+ this.scheduleName = null;
13
+ if (data) {
14
+ for (var key in data) {
15
+ if (data.hasOwnProperty(key) && key in this) {
16
+ this[key] = data[key];
17
+ }
18
+ }
19
+ }
20
+ }
21
+ return PayioDeviceChefEntity;
22
+ }());
23
+ exports.PayioDeviceChefEntity = PayioDeviceChefEntity;
@@ -1,4 +1,5 @@
1
1
  import { IPayioDevice } from '../interfaces/i-device';
2
+ import { PayioDeviceChefEntity } from './device-chef.entity';
2
3
  export declare class PayioDeviceEntity implements IPayioDevice {
3
4
  active: boolean;
4
5
  companyId: string;
@@ -10,5 +11,6 @@ export declare class PayioDeviceEntity implements IPayioDevice {
10
11
  name: string;
11
12
  tags: string[];
12
13
  updatedAt: Date;
14
+ chef: PayioDeviceChefEntity | null;
13
15
  constructor(data?: Partial<PayioDeviceEntity>);
14
16
  }
@@ -16,6 +16,7 @@ var PayioDeviceEntity = /** @class */ (function () {
16
16
  this.name = '';
17
17
  this.tags = [];
18
18
  this.updatedAt = new Date();
19
+ this.chef = null;
19
20
  if (data) {
20
21
  for (var key in data) {
21
22
  if (data.hasOwnProperty(key) && key in this) {
@@ -1 +1,2 @@
1
+ export { PayioDeviceChefEntity } from './device-chef.entity';
1
2
  export { PayioDeviceEntity } from './device.entity';
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioDeviceEntity = void 0;
3
+ exports.PayioDeviceEntity = exports.PayioDeviceChefEntity = void 0;
4
+ var device_chef_entity_1 = require("./device-chef.entity");
5
+ Object.defineProperty(exports, "PayioDeviceChefEntity", { enumerable: true, get: function () { return device_chef_entity_1.PayioDeviceChefEntity; } });
4
6
  var device_entity_1 = require("./device.entity");
5
7
  Object.defineProperty(exports, "PayioDeviceEntity", { enumerable: true, get: function () { return device_entity_1.PayioDeviceEntity; } });
@@ -0,0 +1,6 @@
1
+ export interface IPayioDeviceChef {
2
+ chefConfigId: string | null;
3
+ chefConfigName: string | null;
4
+ scheduleId: string | null;
5
+ scheduleName: string | null;
6
+ }
@@ -1,3 +1,4 @@
1
+ import { IPayioDeviceChef } from './i-device-chef';
1
2
  export interface IPayioDevice {
2
3
  active: boolean;
3
4
  companyId: string;
@@ -8,5 +9,6 @@ export interface IPayioDevice {
8
9
  lastAccess: Date;
9
10
  name: string;
10
11
  tags: string[];
12
+ chef: IPayioDeviceChef | null;
11
13
  updatedAt: Date;
12
14
  }
@@ -1 +1,2 @@
1
1
  export { IPayioDevice } from './i-device';
2
+ export { IPayioDeviceChef } from './i-device-chef';
@@ -1,2 +1,4 @@
1
+ export { PayioScheduleDayEntity } from './schedule-day.entity';
2
+ export { PayioScheduleProductEntity } from './schedule-product.entity';
1
3
  export { PayioScheduleSlotEntity } from './schedule-slot.entity';
2
4
  export { PayioScheduleEntity } from './schedule.entity';
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioScheduleEntity = exports.PayioScheduleSlotEntity = void 0;
3
+ exports.PayioScheduleEntity = exports.PayioScheduleSlotEntity = exports.PayioScheduleProductEntity = exports.PayioScheduleDayEntity = void 0;
4
+ var schedule_day_entity_1 = require("./schedule-day.entity");
5
+ Object.defineProperty(exports, "PayioScheduleDayEntity", { enumerable: true, get: function () { return schedule_day_entity_1.PayioScheduleDayEntity; } });
6
+ var schedule_product_entity_1 = require("./schedule-product.entity");
7
+ Object.defineProperty(exports, "PayioScheduleProductEntity", { enumerable: true, get: function () { return schedule_product_entity_1.PayioScheduleProductEntity; } });
4
8
  var schedule_slot_entity_1 = require("./schedule-slot.entity");
5
9
  Object.defineProperty(exports, "PayioScheduleSlotEntity", { enumerable: true, get: function () { return schedule_slot_entity_1.PayioScheduleSlotEntity; } });
6
10
  var schedule_entity_1 = require("./schedule.entity");
@@ -0,0 +1,7 @@
1
+ import { IPayioScheduleSlot } from '../interfaces';
2
+ import { IPayioScheduleDay } from '../interfaces/i-schedule-day';
3
+ export declare class PayioScheduleDayEntity implements IPayioScheduleDay {
4
+ day: string;
5
+ slots: IPayioScheduleSlot[];
6
+ constructor(data?: Partial<PayioScheduleDayEntity>);
7
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioScheduleDayEntity = void 0;
4
+ var PayioScheduleDayEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
7
+ function PayioScheduleDayEntity(data) {
8
+ // #region Properties (2)
9
+ this.day = '';
10
+ this.slots = [];
11
+ if (data) {
12
+ for (var key in data) {
13
+ if (data.hasOwnProperty(key) && key in this) {
14
+ this[key] = data[key];
15
+ }
16
+ }
17
+ }
18
+ }
19
+ return PayioScheduleDayEntity;
20
+ }());
21
+ exports.PayioScheduleDayEntity = PayioScheduleDayEntity;
@@ -0,0 +1,13 @@
1
+ import { IPayioScheduleProduct } from '../interfaces/i-schedule-product';
2
+ export declare class PayioScheduleProductEntity implements IPayioScheduleProduct {
3
+ code: string;
4
+ description: string;
5
+ id: string;
6
+ maxWeightLimit: number;
7
+ price: number;
8
+ unit: string;
9
+ weightLimitExceededMessageId: number;
10
+ weightLimitExceededMessageText: string;
11
+ weightLimitExceededPrice: number;
12
+ constructor(data?: Partial<PayioScheduleProductEntity>);
13
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioScheduleProductEntity = void 0;
4
+ var PayioScheduleProductEntity = /** @class */ (function () {
5
+ // #endregion Properties (9)
6
+ // #region Constructors (1)
7
+ function PayioScheduleProductEntity(data) {
8
+ // #region Properties (9)
9
+ this.code = '';
10
+ this.description = '';
11
+ this.id = '';
12
+ this.maxWeightLimit = 0;
13
+ this.price = 0;
14
+ this.unit = 'KG';
15
+ this.weightLimitExceededMessageId = 0;
16
+ this.weightLimitExceededMessageText = '';
17
+ this.weightLimitExceededPrice = 0;
18
+ if (data) {
19
+ for (var key in data) {
20
+ if (data.hasOwnProperty(key) && key in this) {
21
+ this[key] = data[key];
22
+ }
23
+ }
24
+ }
25
+ }
26
+ return PayioScheduleProductEntity;
27
+ }());
28
+ exports.PayioScheduleProductEntity = PayioScheduleProductEntity;
@@ -1,6 +1,6 @@
1
1
  import { IPayioScheduleSlot } from '../interfaces';
2
2
  export declare class PayioScheduleSlotEntity implements IPayioScheduleSlot {
3
3
  productCode: string;
4
- slot: string;
4
+ time: string;
5
5
  constructor(data?: Partial<PayioScheduleSlotEntity>);
6
6
  }
@@ -7,7 +7,7 @@ var PayioScheduleSlotEntity = /** @class */ (function () {
7
7
  function PayioScheduleSlotEntity(data) {
8
8
  // #region Properties (2)
9
9
  this.productCode = '';
10
- this.slot = '';
10
+ this.time = '';
11
11
  if (data) {
12
12
  for (var key in data) {
13
13
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,10 +1,11 @@
1
- import { IPayioSchedule } from '../interfaces';
2
- import { PayioScheduleSlotEntity } from './schedule-slot.entity';
1
+ import { IPayioSchedule, IPayioScheduleDay, IPayioScheduleProduct } from '../interfaces';
3
2
  export declare class PayioScheduleEntity implements IPayioSchedule {
4
3
  active: boolean;
5
4
  createdAt: Date;
5
+ days: IPayioScheduleDay[];
6
6
  id: string;
7
- slots: PayioScheduleSlotEntity[];
7
+ name: string;
8
+ products: IPayioScheduleProduct[];
8
9
  updatedAt: Date;
9
10
  constructor(data?: Partial<PayioScheduleEntity>);
10
11
  }
@@ -2,14 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioScheduleEntity = void 0;
4
4
  var PayioScheduleEntity = /** @class */ (function () {
5
- // #endregion Properties (5)
5
+ // #endregion Properties (7)
6
6
  // #region Constructors (1)
7
7
  function PayioScheduleEntity(data) {
8
- // #region Properties (5)
8
+ // #region Properties (7)
9
9
  this.active = true;
10
10
  this.createdAt = new Date();
11
- this.id = 'SEG';
12
- this.slots = [];
11
+ this.days = [];
12
+ this.id = '';
13
+ this.name = '';
14
+ this.products = [];
13
15
  this.updatedAt = new Date();
14
16
  if (data) {
15
17
  for (var key in data) {
@@ -0,0 +1,5 @@
1
+ import { IPayioScheduleSlot } from './i-schedule-slots';
2
+ export interface IPayioScheduleDay {
3
+ day: string;
4
+ slots: IPayioScheduleSlot[];
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ export interface IPayioScheduleProduct {
2
+ code: string;
3
+ description: string;
4
+ id: string;
5
+ maxWeightLimit: number;
6
+ weightLimitExceededMessageId: number;
7
+ weightLimitExceededPrice: number;
8
+ weightLimitExceededMessageText: string;
9
+ price: number;
10
+ unit: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
1
  export interface IPayioScheduleSlot {
2
2
  productCode: string;
3
- slot: string;
3
+ time: string;
4
4
  }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,11 @@
1
- import { IPayioScheduleSlot } from './i-schedule-slot';
1
+ import { IPayioScheduleDay } from './i-schedule-day';
2
+ import { IPayioScheduleProduct } from './i-schedule-product';
2
3
  export interface IPayioSchedule {
3
4
  active: boolean;
4
5
  createdAt: Date;
5
- slots: IPayioScheduleSlot[];
6
+ days: IPayioScheduleDay[];
7
+ products: IPayioScheduleProduct[];
6
8
  id: string;
9
+ name: string;
7
10
  updatedAt: Date;
8
11
  }
@@ -1,2 +1,4 @@
1
1
  export { IPayioSchedule } from './i-schedule';
2
- export { IPayioScheduleSlot } from './i-schedule-slot';
2
+ export { IPayioScheduleDay } from './i-schedule-day';
3
+ export { IPayioScheduleSlot } from './i-schedule-slots';
4
+ export { IPayioScheduleProduct } from './i-schedule-product';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.55",
3
+ "version": "1.6.58",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1zY2hlZHVsZS1zbG90LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3BheWlvL3NjaGVkdWxlcy9pbnRlcmZhY2VzL2ktc2NoZWR1bGUtc2xvdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJUGF5aW9TY2hlZHVsZVNsb3Qge1xyXG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMilcclxuXHJcbiAgcHJvZHVjdENvZGU6IHN0cmluZztcclxuICBzbG90OiBzdHJpbmc7IC8vIDA4OjAwLTEyOjAwXHJcblxyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMilcclxufVxyXG4iXX0=