cecon-interfaces 1.2.47 → 1.2.49

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/dist/customer/entities/customer.entity.d.ts +5 -3
  2. package/dist/customer/entities/customer.entity.js +6 -4
  3. package/dist/customer/interfaces/i-customer.d.ts +10 -8
  4. package/dist/esm2022/customer/entities/customer.entity.mjs +7 -5
  5. package/dist/esm2022/customer/interfaces/i-customer.mjs +1 -1
  6. package/dist/esm2022/index.mjs +2 -1
  7. package/dist/esm2022/mobyo/deliverer/index.mjs +2 -0
  8. package/dist/esm2022/mobyo/deliverer/interfaces/i-deliverer-mobyo.mjs +2 -0
  9. package/dist/esm2022/mobyo/deliverer/interfaces/index.mjs +2 -0
  10. package/dist/esm2022/mobyo/index.mjs +2 -1
  11. package/dist/esm2022/nati-v1/entities/cart-desenfila.entity.mjs +17 -0
  12. package/dist/esm2022/nati-v1/entities/cart-item.entity.mjs +38 -0
  13. package/dist/esm2022/nati-v1/entities/cart.entity.mjs +36 -0
  14. package/dist/esm2022/nati-v1/entities/index.mjs +4 -0
  15. package/dist/esm2022/nati-v1/index.mjs +3 -0
  16. package/dist/esm2022/nati-v1/interfaces/i-cart-desenfila.mjs +2 -0
  17. package/dist/esm2022/nati-v1/interfaces/i-cart-item.mjs +2 -0
  18. package/dist/esm2022/nati-v1/interfaces/i-cart.mjs +2 -0
  19. package/dist/esm2022/nati-v1/interfaces/index.mjs +2 -0
  20. package/dist/fesm2022/cecon-interfaces.mjs +98 -5
  21. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  22. package/dist/index.d.ts +1 -0
  23. package/dist/index.js +1 -0
  24. package/dist/mobyo/deliverer/index.d.ts +1 -0
  25. package/dist/mobyo/deliverer/index.js +17 -0
  26. package/dist/mobyo/deliverer/interfaces/i-deliverer-mobyo.d.ts +11 -0
  27. package/dist/mobyo/deliverer/interfaces/i-deliverer-mobyo.js +2 -0
  28. package/dist/mobyo/deliverer/interfaces/index.d.ts +1 -0
  29. package/dist/mobyo/deliverer/interfaces/index.js +2 -0
  30. package/dist/mobyo/index.d.ts +1 -0
  31. package/dist/mobyo/index.js +1 -0
  32. package/dist/nati-v1/entities/cart-desenfila.entity.d.ts +6 -0
  33. package/dist/nati-v1/entities/cart-desenfila.entity.js +21 -0
  34. package/dist/nati-v1/entities/cart-item.entity.d.ts +27 -0
  35. package/dist/nati-v1/entities/cart-item.entity.js +42 -0
  36. package/dist/nati-v1/entities/cart.entity.d.ts +27 -0
  37. package/dist/nati-v1/entities/cart.entity.js +40 -0
  38. package/dist/nati-v1/entities/index.d.ts +3 -0
  39. package/dist/nati-v1/entities/index.js +9 -0
  40. package/dist/nati-v1/index.d.ts +2 -0
  41. package/dist/nati-v1/index.js +18 -0
  42. package/dist/nati-v1/interfaces/i-cart-desenfila.d.ts +4 -0
  43. package/dist/nati-v1/interfaces/i-cart-desenfila.js +2 -0
  44. package/dist/nati-v1/interfaces/i-cart-item.d.ts +25 -0
  45. package/dist/nati-v1/interfaces/i-cart-item.js +2 -0
  46. package/dist/nati-v1/interfaces/i-cart.d.ts +25 -0
  47. package/dist/nati-v1/interfaces/i-cart.js +2 -0
  48. package/dist/nati-v1/interfaces/index.d.ts +3 -0
  49. package/dist/nati-v1/interfaces/index.js +2 -0
  50. package/dist/package.json +1 -1
  51. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from './lead';
21
21
  export * from './member';
22
22
  export * from './mobyo';
23
23
  export * from './mottu';
24
+ export * from './nati-v1';
24
25
  export * from './notification';
25
26
  export * from './order';
26
27
  export * from './partner';
package/dist/index.js CHANGED
@@ -37,6 +37,7 @@ __exportStar(require("./lead"), exports);
37
37
  __exportStar(require("./member"), exports);
38
38
  __exportStar(require("./mobyo"), exports);
39
39
  __exportStar(require("./mottu"), exports);
40
+ __exportStar(require("./nati-v1"), exports);
40
41
  __exportStar(require("./notification"), exports);
41
42
  __exportStar(require("./order"), exports);
42
43
  __exportStar(require("./partner"), exports);
@@ -0,0 +1 @@
1
+ export * from './interfaces';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./interfaces"), exports);
@@ -0,0 +1,11 @@
1
+ import { IOrder } from '../../../order';
2
+ export interface IDelivererMobyo {
3
+ id: string;
4
+ cellPhone: string;
5
+ email?: string;
6
+ name: string;
7
+ nickName: string;
8
+ tags: string[];
9
+ ordersCountDeliveredOnRestaurant: IOrder[];
10
+ pictureUrl?: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { IDelivererMobyo } from './i-deliverer-mobyo';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export * from './customer';
2
+ export * from './deliverer';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./customer"), exports);
18
+ __exportStar(require("./deliverer"), exports);
@@ -0,0 +1,6 @@
1
+ import { INatiV1CartDesenfila } from '../interfaces/i-cart-desenfila';
2
+ export declare class NatiV1CartDesenfilaEntity implements INatiV1CartDesenfila {
3
+ pixKey: string;
4
+ qrImage: string;
5
+ constructor(data?: Partial<NatiV1CartDesenfilaEntity>);
6
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NatiV1CartDesenfilaEntity = void 0;
4
+ var NatiV1CartDesenfilaEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
7
+ function NatiV1CartDesenfilaEntity(data) {
8
+ // #region Properties (2)
9
+ this.pixKey = '';
10
+ this.qrImage = '';
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 NatiV1CartDesenfilaEntity;
20
+ }());
21
+ exports.NatiV1CartDesenfilaEntity = NatiV1CartDesenfilaEntity;
@@ -0,0 +1,27 @@
1
+ import { INatiV1CartItem } from '../interfaces/i-cart-item';
2
+ export declare class NatiV1CartItemEntity implements INatiV1CartItem {
3
+ addition: number;
4
+ addsValue: boolean;
5
+ createdAt: Date;
6
+ id: number;
7
+ isAdditionalItem: boolean;
8
+ isDelivery: boolean;
9
+ isNew: boolean;
10
+ linkItemId: number;
11
+ measure: string;
12
+ observations: string;
13
+ personId: number;
14
+ picture: string | null | undefined;
15
+ productCode: string;
16
+ productId: number;
17
+ productName: string;
18
+ quantity: number;
19
+ tabId: number;
20
+ terminalId: string;
21
+ total: number;
22
+ unitPrice: number;
23
+ updatedAt: Date;
24
+ userName: string;
25
+ without: boolean;
26
+ constructor(data?: Partial<NatiV1CartItemEntity>);
27
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NatiV1CartItemEntity = void 0;
4
+ var NatiV1CartItemEntity = /** @class */ (function () {
5
+ // #endregion Properties (23)
6
+ // #region Constructors (1)
7
+ function NatiV1CartItemEntity(data) {
8
+ // #region Properties (23)
9
+ this.addition = 0;
10
+ this.addsValue = false;
11
+ this.createdAt = new Date();
12
+ this.id = 0;
13
+ this.isAdditionalItem = false;
14
+ this.isDelivery = false;
15
+ this.isNew = false;
16
+ this.linkItemId = 0;
17
+ this.measure = '';
18
+ this.observations = '';
19
+ this.personId = 0;
20
+ this.picture = undefined;
21
+ this.productCode = '';
22
+ this.productId = 0;
23
+ this.productName = '';
24
+ this.quantity = 0;
25
+ this.tabId = 0;
26
+ this.terminalId = '';
27
+ this.total = 0;
28
+ this.unitPrice = 0;
29
+ this.updatedAt = new Date();
30
+ this.userName = '';
31
+ this.without = false;
32
+ if (data) {
33
+ for (var key in data) {
34
+ if (data.hasOwnProperty(key) && key in this) {
35
+ this[key] = data[key];
36
+ }
37
+ }
38
+ }
39
+ }
40
+ return NatiV1CartItemEntity;
41
+ }());
42
+ exports.NatiV1CartItemEntity = NatiV1CartItemEntity;
@@ -0,0 +1,27 @@
1
+ import { INatiV1Cart } from '../interfaces/i-cart';
2
+ import { INatiV1CartDesenfila } from '../interfaces/i-cart-desenfila';
3
+ import { INatiV1CartItem } from '../interfaces/i-cart-item';
4
+ export declare class NatiV1CartEntity implements INatiV1Cart {
5
+ addition: number;
6
+ askedForTheBill: boolean;
7
+ blocked: boolean;
8
+ customerId: string;
9
+ desenfila: INatiV1CartDesenfila | null | undefined;
10
+ dtAlteracao: Date;
11
+ firstDate: Date;
12
+ id: number;
13
+ idOperadorCaixa: number;
14
+ items: INatiV1CartItem[];
15
+ lastDate: Date;
16
+ people: number;
17
+ qrCode: string | undefined;
18
+ tableId: number;
19
+ terminalId: string;
20
+ total: number;
21
+ useByUser: string;
22
+ uuid: string;
23
+ vrDesconto: number;
24
+ vrLimite: number;
25
+ wasReturned: boolean;
26
+ constructor(data?: Partial<NatiV1CartEntity>);
27
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NatiV1CartEntity = void 0;
4
+ var NatiV1CartEntity = /** @class */ (function () {
5
+ // #endregion Properties (21)
6
+ // #region Constructors (1)
7
+ function NatiV1CartEntity(data) {
8
+ // #region Properties (21)
9
+ this.addition = 0;
10
+ this.askedForTheBill = false;
11
+ this.blocked = false;
12
+ this.customerId = '';
13
+ this.desenfila = null;
14
+ this.dtAlteracao = new Date();
15
+ this.firstDate = new Date();
16
+ this.id = 0;
17
+ this.idOperadorCaixa = 0;
18
+ this.items = [];
19
+ this.lastDate = new Date();
20
+ this.people = 0;
21
+ this.qrCode = undefined;
22
+ this.tableId = 0;
23
+ this.terminalId = '';
24
+ this.total = 0;
25
+ this.useByUser = '';
26
+ this.uuid = '';
27
+ this.vrDesconto = 0;
28
+ this.vrLimite = 0;
29
+ this.wasReturned = false;
30
+ if (data) {
31
+ for (var key in data) {
32
+ if (data.hasOwnProperty(key) && key in this) {
33
+ this[key] = data[key];
34
+ }
35
+ }
36
+ }
37
+ }
38
+ return NatiV1CartEntity;
39
+ }());
40
+ exports.NatiV1CartEntity = NatiV1CartEntity;
@@ -0,0 +1,3 @@
1
+ export { NatiV1CartDesenfilaEntity } from './cart-desenfila.entity';
2
+ export { NatiV1CartItemEntity } from './cart-item.entity';
3
+ export { NatiV1CartEntity } from './cart.entity';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NatiV1CartEntity = exports.NatiV1CartItemEntity = exports.NatiV1CartDesenfilaEntity = void 0;
4
+ var cart_desenfila_entity_1 = require("./cart-desenfila.entity");
5
+ Object.defineProperty(exports, "NatiV1CartDesenfilaEntity", { enumerable: true, get: function () { return cart_desenfila_entity_1.NatiV1CartDesenfilaEntity; } });
6
+ var cart_item_entity_1 = require("./cart-item.entity");
7
+ Object.defineProperty(exports, "NatiV1CartItemEntity", { enumerable: true, get: function () { return cart_item_entity_1.NatiV1CartItemEntity; } });
8
+ var cart_entity_1 = require("./cart.entity");
9
+ Object.defineProperty(exports, "NatiV1CartEntity", { enumerable: true, get: function () { return cart_entity_1.NatiV1CartEntity; } });
@@ -0,0 +1,2 @@
1
+ export * from './entities';
2
+ export * from './interfaces';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./interfaces"), exports);
@@ -0,0 +1,4 @@
1
+ export interface INatiV1CartDesenfila {
2
+ pixKey: string;
3
+ qrImage: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ export interface INatiV1CartItem {
2
+ addition: number;
3
+ addsValue: boolean;
4
+ createdAt: Date;
5
+ id: number;
6
+ isAdditionalItem: boolean;
7
+ isDelivery: boolean;
8
+ isNew: boolean;
9
+ linkItemId: number;
10
+ measure: string;
11
+ observations: string;
12
+ personId: number;
13
+ picture: string | null | undefined;
14
+ productCode: string;
15
+ productId: number;
16
+ productName: string;
17
+ quantity: number;
18
+ tabId: number;
19
+ terminalId: string;
20
+ total: number;
21
+ unitPrice: number;
22
+ updatedAt: Date;
23
+ userName: string;
24
+ without: boolean;
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ import { INatiV1CartDesenfila } from './i-cart-desenfila';
2
+ import { INatiV1CartItem } from './i-cart-item';
3
+ export interface INatiV1Cart {
4
+ addition: number;
5
+ askedForTheBill: boolean;
6
+ blocked: boolean;
7
+ customerId: string;
8
+ dtAlteracao: Date;
9
+ desenfila?: INatiV1CartDesenfila | null;
10
+ firstDate: Date;
11
+ id: number;
12
+ idOperadorCaixa: number;
13
+ items: INatiV1CartItem[];
14
+ lastDate: Date;
15
+ people: number;
16
+ qrCode?: string;
17
+ tableId: number;
18
+ terminalId: string;
19
+ total: number;
20
+ useByUser: string;
21
+ uuid: string;
22
+ vrDesconto: number;
23
+ vrLimite: number;
24
+ wasReturned: boolean;
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export { INatiV1Cart } from './i-cart';
2
+ export { INatiV1CartDesenfila } from './i-cart-desenfila';
3
+ export { INatiV1CartItem } from './i-cart-item';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.47",
3
+ "version": "1.2.49",
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.47",
3
+ "version": "1.2.49",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",