cecon-interfaces 1.5.25 → 1.5.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,9 @@
1
1
  import { IMottuEvent, IMottuOrder, IMottuOrderDeliveryMan } from '../interfaces';
2
+ import { IMottuDeliveries } from '../interfaces/i-deliveries';
2
3
  export declare class MottuOrderEntity implements IMottuOrder {
3
4
  code: string;
4
5
  createdAt: Date;
6
+ deliveries: IMottuDeliveries[];
5
7
  deliveryFee: number;
6
8
  deliveryMan: IMottuOrderDeliveryMan;
7
9
  events: IMottuEvent[];
@@ -9,6 +9,7 @@ var MottuOrderEntity = /** @class */ (function () {
9
9
  // #region Properties (18)
10
10
  this.code = '';
11
11
  this.createdAt = new Date();
12
+ this.deliveries = []; // Create Entity and instanced new one
12
13
  this.deliveryFee = 0;
13
14
  this.deliveryMan = new order_deliverery_man_entity_1.MottuOrderDeliveryManEntity();
14
15
  this.events = [];
@@ -0,0 +1,16 @@
1
+ import { IMottuAddress } from "./i-address";
2
+ export interface IMottuDeliveries {
3
+ code: string;
4
+ fullCode: string;
5
+ name: string;
6
+ phone: string;
7
+ observation: string;
8
+ onlinePayment: boolean;
9
+ productValue: number;
10
+ id: number;
11
+ situation: number;
12
+ orderRoute: number;
13
+ address: IMottuAddress;
14
+ distance: number;
15
+ deliveryCode: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,10 @@
1
+ import { IMottuDeliveries } from './i-deliveries';
1
2
  import { IMottuEvent } from './i-event';
2
3
  import { IMottuOrderDeliveryMan } from './i-order-delivery-man';
3
4
  export interface IMottuOrder {
4
5
  code: string;
5
6
  createdAt: Date;
7
+ deliveries: IMottuDeliveries[];
6
8
  deliveryFee: number;
7
9
  deliveryMan: IMottuOrderDeliveryMan;
8
10
  events: IMottuEvent[];
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.25",
3
+ "version": "1.5.26",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -7,6 +7,7 @@ export declare enum EImageFolder {
7
7
  MENU_CATEGORIES = "menu-categories",
8
8
  MENUS = "menus",
9
9
  PRODUCTS = "products",
10
+ TOPPINGS = "toppings",
10
11
  SECOES = "secoes",
11
12
  TAA = "taa",
12
13
  DEFAULT = "default"
@@ -11,6 +11,7 @@ var EImageFolder;
11
11
  EImageFolder["MENU_CATEGORIES"] = "menu-categories";
12
12
  EImageFolder["MENUS"] = "menus";
13
13
  EImageFolder["PRODUCTS"] = "products";
14
+ EImageFolder["TOPPINGS"] = "toppings";
14
15
  EImageFolder["SECOES"] = "secoes";
15
16
  EImageFolder["TAA"] = "taa";
16
17
  EImageFolder["DEFAULT"] = "default";
@@ -1,3 +1,3 @@
1
1
  export { EImageFolder } from './image-folder.enum';
2
- export { EMineTypeFile } from './mine-type.enum';
2
+ export { EMimeTypeFile } from './mime-type.enum';
3
3
  export { ETypeFile } from './type-file.enum';
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ETypeFile = exports.EMineTypeFile = exports.EImageFolder = void 0;
3
+ exports.ETypeFile = exports.EMimeTypeFile = exports.EImageFolder = void 0;
4
4
  var image_folder_enum_1 = require("./image-folder.enum");
5
5
  Object.defineProperty(exports, "EImageFolder", { enumerable: true, get: function () { return image_folder_enum_1.EImageFolder; } });
6
- var mine_type_enum_1 = require("./mine-type.enum");
7
- Object.defineProperty(exports, "EMineTypeFile", { enumerable: true, get: function () { return mine_type_enum_1.EMineTypeFile; } });
6
+ var mime_type_enum_1 = require("./mime-type.enum");
7
+ Object.defineProperty(exports, "EMimeTypeFile", { enumerable: true, get: function () { return mime_type_enum_1.EMimeTypeFile; } });
8
8
  var type_file_enum_1 = require("./type-file.enum");
9
9
  Object.defineProperty(exports, "ETypeFile", { enumerable: true, get: function () { return type_file_enum_1.ETypeFile; } });
@@ -1,4 +1,4 @@
1
- export declare enum EMineTypeFile {
1
+ export declare enum EMimeTypeFile {
2
2
  PNG = "image/png",
3
3
  JPEG = "image/jpeg",
4
4
  MPFOUR = "video/mp4",
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EMimeTypeFile = void 0;
4
+ var EMimeTypeFile;
5
+ (function (EMimeTypeFile) {
6
+ EMimeTypeFile["PNG"] = "image/png";
7
+ EMimeTypeFile["JPEG"] = "image/jpeg";
8
+ EMimeTypeFile["MPFOUR"] = "video/mp4";
9
+ EMimeTypeFile["OGG"] = "video/ogg";
10
+ EMimeTypeFile["WEBP"] = "image/webp";
11
+ })(EMimeTypeFile || (exports.EMimeTypeFile = EMimeTypeFile = {}));
@@ -1,7 +1,7 @@
1
- import { EMineTypeFile } from "../enums";
1
+ import { EMimeTypeFile } from "../enums";
2
2
  import { ETypeFile } from "../enums/type-file.enum";
3
3
  export interface IFile {
4
- mineType: EMineTypeFile;
4
+ mimeType: EMimeTypeFile;
5
5
  icon: string;
6
6
  lastModified: Date;
7
7
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.25",
3
+ "version": "1.5.26",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EMineTypeFile = void 0;
4
- var EMineTypeFile;
5
- (function (EMineTypeFile) {
6
- EMineTypeFile["PNG"] = "image/png";
7
- EMineTypeFile["JPEG"] = "image/jpeg";
8
- EMineTypeFile["MPFOUR"] = "video/mp4";
9
- EMineTypeFile["OGG"] = "video/ogg";
10
- EMineTypeFile["WEBP"] = "image/webp";
11
- })(EMineTypeFile || (exports.EMineTypeFile = EMineTypeFile = {}));