cecon-interfaces 1.6.57 → 1.6.58

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/dist/esm2022/payio/schedules/entities/index.mjs +3 -1
  2. package/dist/esm2022/payio/schedules/entities/schedule-day.entity.mjs +17 -0
  3. package/dist/esm2022/payio/schedules/entities/schedule-product.entity.mjs +24 -0
  4. package/dist/esm2022/payio/schedules/entities/schedule-slot.entity.mjs +2 -2
  5. package/dist/esm2022/payio/schedules/entities/schedule.entity.mjs +7 -5
  6. package/dist/esm2022/payio/schedules/interfaces/i-schedule-day.mjs +2 -0
  7. package/dist/esm2022/payio/schedules/interfaces/i-schedule-product.mjs +2 -0
  8. package/dist/esm2022/payio/schedules/interfaces/i-schedule-slots.mjs +2 -0
  9. package/dist/esm2022/payio/schedules/interfaces/i-schedule.mjs +1 -1
  10. package/dist/esm2022/payio/schedules/interfaces/index.mjs +1 -1
  11. package/dist/fesm2022/cecon-interfaces.mjs +49 -6
  12. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  13. package/dist/package.json +1 -1
  14. package/dist/payio/schedules/entities/index.d.ts +2 -0
  15. package/dist/payio/schedules/entities/index.js +5 -1
  16. package/dist/payio/schedules/entities/schedule-day.entity.d.ts +7 -0
  17. package/dist/payio/schedules/entities/schedule-day.entity.js +21 -0
  18. package/dist/payio/schedules/entities/schedule-product.entity.d.ts +13 -0
  19. package/dist/payio/schedules/entities/schedule-product.entity.js +28 -0
  20. package/dist/payio/schedules/entities/schedule-slot.entity.d.ts +1 -1
  21. package/dist/payio/schedules/entities/schedule-slot.entity.js +1 -1
  22. package/dist/payio/schedules/entities/schedule.entity.d.ts +4 -3
  23. package/dist/payio/schedules/entities/schedule.entity.js +6 -4
  24. package/dist/payio/schedules/interfaces/i-schedule-day.d.ts +5 -0
  25. package/dist/payio/schedules/interfaces/i-schedule-product.d.ts +11 -0
  26. package/dist/payio/schedules/interfaces/i-schedule-product.js +2 -0
  27. package/dist/payio/schedules/interfaces/{i-schedule-slot.d.ts → i-schedule-slots.d.ts} +1 -1
  28. package/dist/payio/schedules/interfaces/i-schedule-slots.js +2 -0
  29. package/dist/payio/schedules/interfaces/i-schedule.d.ts +5 -2
  30. package/dist/payio/schedules/interfaces/index.d.ts +3 -1
  31. package/package.json +1 -1
  32. package/dist/esm2022/payio/schedules/interfaces/i-schedule-slot.mjs +0 -2
  33. /package/dist/payio/schedules/interfaces/{i-schedule-slot.js → i-schedule-day.js} +0 -0
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.57",
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 +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,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.57",
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=