cecon-interfaces 1.2.86 → 1.2.88

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. package/dist/app/entities/desenfila-fee.entity.d.ts +7 -0
  2. package/dist/app/entities/desenfila-fee.entity.js +22 -0
  3. package/dist/app/entities/desenfila.entity.d.ts +5 -1
  4. package/dist/app/entities/desenfila.entity.js +6 -2
  5. package/dist/app/entities/index.d.ts +1 -0
  6. package/dist/app/entities/index.js +3 -1
  7. package/dist/app/interfaces/i-desenfila-fee.d.ts +5 -0
  8. package/dist/app/interfaces/i-desenfila-fee.js +2 -0
  9. package/dist/app/interfaces/i-desenfila.d.ts +5 -0
  10. package/dist/app/interfaces/index.d.ts +1 -0
  11. package/dist/esm2022/app/entities/desenfila-fee.entity.mjs +18 -0
  12. package/dist/esm2022/app/entities/desenfila.entity.mjs +7 -3
  13. package/dist/esm2022/app/entities/index.mjs +2 -1
  14. package/dist/esm2022/app/interfaces/i-desenfila-fee.mjs +2 -0
  15. package/dist/esm2022/app/interfaces/i-desenfila.mjs +1 -1
  16. package/dist/esm2022/app/interfaces/index.mjs +1 -1
  17. package/dist/esm2022/general/enums/desenfila-from.enum.mjs +4 -1
  18. package/dist/esm2022/order/entities/order.entity.mjs +3 -3
  19. package/dist/esm2022/order/interfaces/i-additional-fee.mjs +1 -1
  20. package/dist/esm2022/order/interfaces/i-order.mjs +1 -1
  21. package/dist/fesm2022/cecon-interfaces.mjs +28 -5
  22. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  23. package/dist/general/enums/desenfila-from.enum.d.ts +4 -1
  24. package/dist/general/enums/desenfila-from.enum.js +3 -0
  25. package/dist/order/entities/order.entity.d.ts +2 -0
  26. package/dist/order/entities/order.entity.js +2 -2
  27. package/dist/order/interfaces/i-additional-fee.d.ts +2 -1
  28. package/dist/order/interfaces/i-order.d.ts +2 -0
  29. package/dist/package.json +1 -1
  30. package/package.json +1 -1
@@ -2,5 +2,8 @@ export declare enum EDesenfilaFrom {
2
2
  NATI = "NATI",
3
3
  AUTOMATION = "AUTOMATION",
4
4
  NATIPAY = "NATIPAY",
5
- MOBYO = "MOBYO"
5
+ DESENFILA = "DESENFILA",
6
+ NATIST = "NATIST",
7
+ MOBYO = "MOBYO",
8
+ DEFAULT = "DEFAULT"
6
9
  }
@@ -6,5 +6,8 @@ var EDesenfilaFrom;
6
6
  EDesenfilaFrom["NATI"] = "NATI";
7
7
  EDesenfilaFrom["AUTOMATION"] = "AUTOMATION";
8
8
  EDesenfilaFrom["NATIPAY"] = "NATIPAY";
9
+ EDesenfilaFrom["DESENFILA"] = "DESENFILA";
10
+ EDesenfilaFrom["NATIST"] = "NATIST";
9
11
  EDesenfilaFrom["MOBYO"] = "MOBYO";
12
+ EDesenfilaFrom["DEFAULT"] = "DEFAULT"; // outras fontes não mapeadas
10
13
  })(EDesenfilaFrom || (exports.EDesenfilaFrom = EDesenfilaFrom = {}));
@@ -1,3 +1,4 @@
1
+ import { EDesenfilaFrom } from '../../general';
1
2
  import { EOrderTiming, OrderStatusEnum } from '../enums';
2
3
  import { EOrderType } from '../enums/order-type.enum';
3
4
  import { IOrder } from '../interfaces';
@@ -32,5 +33,6 @@ export declare class OrderEntity implements IOrder {
32
33
  total: OrderTotalEntity;
33
34
  updatedAt: Date;
34
35
  version: string;
36
+ from: EDesenfilaFrom;
35
37
  constructor(data?: Partial<OrderEntity>);
36
38
  }
@@ -1,14 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OrderEntity = void 0;
4
+ var general_1 = require("../../general");
4
5
  var enums_1 = require("../enums");
5
6
  var cancellation_entity_1 = require("./cancellation.entity");
6
7
  var customer_entity_1 = require("./customer.entity");
7
8
  var payment_entity_1 = require("./payment.entity");
8
9
  var total_entity_1 = require("./total.entity");
9
10
  var OrderEntity = /** @class */ (function () {
10
- // #endregion Properties (22)
11
- // #region Constructors (1)
12
11
  function OrderEntity(data) {
13
12
  // #region Properties (22)
14
13
  this.additionalFees = [];
@@ -33,6 +32,7 @@ var OrderEntity = /** @class */ (function () {
33
32
  this.total = new total_entity_1.OrderTotalEntity();
34
33
  this.updatedAt = new Date();
35
34
  this.version = '';
35
+ this.from = general_1.EDesenfilaFrom.DEFAULT;
36
36
  if (data) {
37
37
  for (var key in data) {
38
38
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,4 +1,5 @@
1
+ import { EDesenfilaFrom } from "../../general";
1
2
  export interface IOrderAdditionalFee {
2
- type: string;
3
+ type: string | EDesenfilaFrom;
3
4
  value: number;
4
5
  }
@@ -1,3 +1,4 @@
1
+ import { EDesenfilaFrom } from '../../general';
1
2
  import { EOrderTiming, OrderStatusEnum } from '../enums';
2
3
  import { EOrderType } from '../enums/order-type.enum';
3
4
  import { IOrderAdditionalFee } from './i-additional-fee';
@@ -31,4 +32,5 @@ export interface IOrder {
31
32
  total: IOrderTotal;
32
33
  updatedAt: Date;
33
34
  version: string;
35
+ from: EDesenfilaFrom;
34
36
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.86",
3
+ "version": "1.2.88",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.86",
3
+ "version": "1.2.88",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",