cecon-interfaces 1.2.43 → 1.2.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. package/dist/esm2022/index.mjs +3 -1
  2. package/dist/esm2022/mottu/entities/address.entity.mjs +22 -0
  3. package/dist/esm2022/mottu/entities/event-delivery-man.entity.mjs +17 -0
  4. package/dist/esm2022/mottu/entities/event-requested-by.entity.mjs +17 -0
  5. package/dist/esm2022/mottu/entities/event.entity.mjs +24 -0
  6. package/dist/esm2022/mottu/entities/index.mjs +13 -0
  7. package/dist/esm2022/mottu/entities/order-deliverer.entity.mjs +30 -0
  8. package/dist/esm2022/mottu/entities/order-deliverery-man.entity.mjs +24 -0
  9. package/dist/esm2022/mottu/entities/order-preview.entity.mjs +27 -0
  10. package/dist/esm2022/mottu/entities/order-store.entity.mjs +16 -0
  11. package/dist/esm2022/mottu/entities/order.entity.mjs +32 -0
  12. package/dist/esm2022/mottu/entities/store-matrix.entity.mjs +16 -0
  13. package/dist/esm2022/mottu/entities/store-responsible.entity.mjs +17 -0
  14. package/dist/esm2022/mottu/entities/store.entity.mjs +27 -0
  15. package/dist/esm2022/mottu/index.mjs +3 -0
  16. package/dist/esm2022/mottu/interfaces/i-address.mjs +2 -0
  17. package/dist/esm2022/mottu/interfaces/i-event-delivery-man.mjs +2 -0
  18. package/dist/esm2022/mottu/interfaces/i-event-requested-by.mjs +2 -0
  19. package/dist/esm2022/mottu/interfaces/i-event.mjs +2 -0
  20. package/dist/esm2022/mottu/interfaces/i-order-deliverer.mjs +2 -0
  21. package/dist/esm2022/mottu/interfaces/i-order-delivery-man.mjs +2 -0
  22. package/dist/esm2022/mottu/interfaces/i-order-preview.mjs +2 -0
  23. package/dist/esm2022/mottu/interfaces/i-order-store.mjs +2 -0
  24. package/dist/esm2022/mottu/interfaces/i-order.mjs +2 -0
  25. package/dist/esm2022/mottu/interfaces/i-store-matrix.mjs +2 -0
  26. package/dist/esm2022/mottu/interfaces/i-store-responsible.mjs +2 -0
  27. package/dist/esm2022/mottu/interfaces/i-store.mjs +2 -0
  28. package/dist/esm2022/mottu/interfaces/index.mjs +2 -0
  29. package/dist/esm2022/verifier-token/entities/index.mjs +2 -0
  30. package/dist/esm2022/verifier-token/entities/verifier-token.entity.mjs +24 -0
  31. package/dist/esm2022/verifier-token/index.mjs +3 -0
  32. package/dist/esm2022/verifier-token/interfaces/i-verifier-token.mjs +2 -0
  33. package/dist/esm2022/verifier-token/interfaces/index.mjs +2 -0
  34. package/dist/fesm2022/cecon-interfaces.mjs +285 -1
  35. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  36. package/dist/index.d.ts +2 -0
  37. package/dist/index.js +2 -0
  38. package/dist/mottu/entities/address.entity.d.ts +11 -0
  39. package/dist/mottu/entities/address.entity.js +26 -0
  40. package/dist/mottu/entities/event-delivery-man.entity.d.ts +6 -0
  41. package/dist/mottu/entities/event-delivery-man.entity.js +21 -0
  42. package/dist/mottu/entities/event-requested-by.entity.d.ts +6 -0
  43. package/dist/mottu/entities/event-requested-by.entity.js +21 -0
  44. package/dist/mottu/entities/event.entity.d.ts +11 -0
  45. package/dist/mottu/entities/event.entity.js +28 -0
  46. package/dist/mottu/entities/index.d.ts +12 -0
  47. package/dist/mottu/entities/index.js +27 -0
  48. package/dist/mottu/entities/order-deliverer.entity.d.ts +18 -0
  49. package/dist/mottu/entities/order-deliverer.entity.js +34 -0
  50. package/dist/mottu/entities/order-deliverery-man.entity.d.ts +13 -0
  51. package/dist/mottu/entities/order-deliverery-man.entity.js +28 -0
  52. package/dist/mottu/entities/order-preview.entity.d.ts +14 -0
  53. package/dist/mottu/entities/order-preview.entity.js +31 -0
  54. package/dist/mottu/entities/order-store.entity.d.ts +5 -0
  55. package/dist/mottu/entities/order-store.entity.js +20 -0
  56. package/dist/mottu/entities/order.entity.d.ts +20 -0
  57. package/dist/mottu/entities/order.entity.js +36 -0
  58. package/dist/mottu/entities/store-matrix.entity.d.ts +5 -0
  59. package/dist/mottu/entities/store-matrix.entity.js +20 -0
  60. package/dist/mottu/entities/store-responsible.entity.d.ts +6 -0
  61. package/dist/mottu/entities/store-responsible.entity.js +21 -0
  62. package/dist/mottu/entities/store.entity.d.ts +13 -0
  63. package/dist/mottu/entities/store.entity.js +31 -0
  64. package/dist/mottu/index.d.ts +2 -0
  65. package/dist/mottu/index.js +18 -0
  66. package/dist/mottu/interfaces/i-address.d.ts +9 -0
  67. package/dist/mottu/interfaces/i-address.js +2 -0
  68. package/dist/mottu/interfaces/i-event-delivery-man.d.ts +4 -0
  69. package/dist/mottu/interfaces/i-event-delivery-man.js +2 -0
  70. package/dist/mottu/interfaces/i-event-requested-by.d.ts +4 -0
  71. package/dist/mottu/interfaces/i-event-requested-by.js +2 -0
  72. package/dist/mottu/interfaces/i-event.d.ts +11 -0
  73. package/dist/mottu/interfaces/i-event.js +2 -0
  74. package/dist/mottu/interfaces/i-order-deliverer.d.ts +17 -0
  75. package/dist/mottu/interfaces/i-order-deliverer.js +2 -0
  76. package/dist/mottu/interfaces/i-order-delivery-man.d.ts +11 -0
  77. package/dist/mottu/interfaces/i-order-delivery-man.js +2 -0
  78. package/dist/mottu/interfaces/i-order-preview.d.ts +14 -0
  79. package/dist/mottu/interfaces/i-order-preview.js +2 -0
  80. package/dist/mottu/interfaces/i-order-store.d.ts +3 -0
  81. package/dist/mottu/interfaces/i-order-store.js +2 -0
  82. package/dist/mottu/interfaces/i-order.d.ts +20 -0
  83. package/dist/mottu/interfaces/i-order.js +2 -0
  84. package/dist/mottu/interfaces/i-store-matrix.d.ts +3 -0
  85. package/dist/mottu/interfaces/i-store-matrix.js +2 -0
  86. package/dist/mottu/interfaces/i-store-responsible.d.ts +4 -0
  87. package/dist/mottu/interfaces/i-store-responsible.js +2 -0
  88. package/dist/mottu/interfaces/i-store.d.ts +14 -0
  89. package/dist/mottu/interfaces/i-store.js +2 -0
  90. package/dist/mottu/interfaces/index.d.ts +12 -0
  91. package/dist/mottu/interfaces/index.js +2 -0
  92. package/dist/package.json +1 -1
  93. package/dist/verifier-token/entities/index.d.ts +1 -0
  94. package/dist/verifier-token/entities/index.js +5 -0
  95. package/dist/verifier-token/entities/verifier-token.entity.d.ts +13 -0
  96. package/dist/verifier-token/entities/verifier-token.entity.js +28 -0
  97. package/dist/verifier-token/index.d.ts +2 -0
  98. package/dist/verifier-token/index.js +18 -0
  99. package/dist/verifier-token/interfaces/i-verifier-token.d.ts +11 -0
  100. package/dist/verifier-token/interfaces/i-verifier-token.js +2 -0
  101. package/dist/verifier-token/interfaces/index.d.ts +1 -0
  102. package/dist/verifier-token/interfaces/index.js +2 -0
  103. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ export * from './iugu';
20
20
  export * from './lead';
21
21
  export * from './member';
22
22
  export * from './mobyo';
23
+ export * from './mottu';
23
24
  export * from './notification';
24
25
  export * from './order';
25
26
  export * from './partner';
@@ -34,6 +35,7 @@ export * from './subscription-base';
34
35
  export * from './subscription-company';
35
36
  export * from './subscription-customer';
36
37
  export * from './token';
38
+ export * from './verifier-token';
37
39
  export * from './viacep';
38
40
  export * from './voucher';
39
41
  export * from './wa-server';
package/dist/index.js CHANGED
@@ -36,6 +36,7 @@ __exportStar(require("./iugu"), exports);
36
36
  __exportStar(require("./lead"), exports);
37
37
  __exportStar(require("./member"), exports);
38
38
  __exportStar(require("./mobyo"), exports);
39
+ __exportStar(require("./mottu"), exports);
39
40
  __exportStar(require("./notification"), exports);
40
41
  __exportStar(require("./order"), exports);
41
42
  __exportStar(require("./partner"), exports);
@@ -50,6 +51,7 @@ __exportStar(require("./subscription-base"), exports);
50
51
  __exportStar(require("./subscription-company"), exports);
51
52
  __exportStar(require("./subscription-customer"), exports);
52
53
  __exportStar(require("./token"), exports);
54
+ __exportStar(require("./verifier-token"), exports);
53
55
  __exportStar(require("./viacep"), exports);
54
56
  __exportStar(require("./voucher"), exports);
55
57
  __exportStar(require("./wa-server"), exports);
@@ -0,0 +1,11 @@
1
+ import { IMottuAddress } from '../interfaces';
2
+ export declare class MottuAddressEntity implements IMottuAddress {
3
+ city: 'SP';
4
+ complement: string;
5
+ neighborhood: string;
6
+ number: string;
7
+ state: 'SP';
8
+ street: string;
9
+ zipCode: string;
10
+ constructor(data?: Partial<MottuAddressEntity>);
11
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MottuAddressEntity = void 0;
4
+ var MottuAddressEntity = /** @class */ (function () {
5
+ // #endregion Properties (7)
6
+ // #region Constructors (1)
7
+ function MottuAddressEntity(data) {
8
+ // #region Properties (7)
9
+ this.city = 'SP';
10
+ this.complement = '';
11
+ this.neighborhood = '';
12
+ this.number = '';
13
+ this.state = 'SP';
14
+ this.street = '';
15
+ this.zipCode = '';
16
+ if (data) {
17
+ for (var key in data) {
18
+ if (data.hasOwnProperty(key) && key in this) {
19
+ this[key] = data[key];
20
+ }
21
+ }
22
+ }
23
+ }
24
+ return MottuAddressEntity;
25
+ }());
26
+ exports.MottuAddressEntity = MottuAddressEntity;
@@ -0,0 +1,6 @@
1
+ import { IMottuEventDeliveryMan } from '../interfaces';
2
+ export declare class MottuEventDeliveryManEntity implements IMottuEventDeliveryMan {
3
+ name: string;
4
+ phone: string;
5
+ constructor(data?: Partial<MottuEventDeliveryManEntity>);
6
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MottuEventDeliveryManEntity = void 0;
4
+ var MottuEventDeliveryManEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
7
+ function MottuEventDeliveryManEntity(data) {
8
+ // #region Properties (2)
9
+ this.name = '';
10
+ this.phone = '';
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 MottuEventDeliveryManEntity;
20
+ }());
21
+ exports.MottuEventDeliveryManEntity = MottuEventDeliveryManEntity;
@@ -0,0 +1,6 @@
1
+ import { IMottuEventRequestedBy } from '../interfaces';
2
+ export declare class MottuEventRequestedByEntity implements IMottuEventRequestedBy {
3
+ name: string;
4
+ phone: string;
5
+ constructor(data?: Partial<MottuEventRequestedByEntity>);
6
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MottuEventRequestedByEntity = void 0;
4
+ var MottuEventRequestedByEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
7
+ function MottuEventRequestedByEntity(data) {
8
+ // #region Properties (2)
9
+ this.name = '';
10
+ this.phone = '';
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 MottuEventRequestedByEntity;
20
+ }());
21
+ exports.MottuEventRequestedByEntity = MottuEventRequestedByEntity;
@@ -0,0 +1,11 @@
1
+ import { IMottuEvent, IMottuEventDeliveryMan, IMottuEventRequestedBy } from '../interfaces';
2
+ export declare class MottuEventEntity implements IMottuEvent {
3
+ createdAt: Date;
4
+ deliveryMan: IMottuEventDeliveryMan;
5
+ description: string;
6
+ id: number;
7
+ latitude: number;
8
+ longitude: number;
9
+ requestedBy: IMottuEventRequestedBy;
10
+ constructor(data?: Partial<MottuEventEntity>);
11
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MottuEventEntity = void 0;
4
+ var event_delivery_man_entity_1 = require("./event-delivery-man.entity");
5
+ var event_requested_by_entity_1 = require("./event-requested-by.entity");
6
+ var MottuEventEntity = /** @class */ (function () {
7
+ // #endregion Properties (7)
8
+ // #region Constructors (1)
9
+ function MottuEventEntity(data) {
10
+ // #region Properties (7)
11
+ this.createdAt = new Date();
12
+ this.deliveryMan = new event_delivery_man_entity_1.MottuEventDeliveryManEntity();
13
+ this.description = '';
14
+ this.id = 0;
15
+ this.latitude = 0;
16
+ this.longitude = 0;
17
+ this.requestedBy = new event_requested_by_entity_1.MottuEventRequestedByEntity();
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 MottuEventEntity;
27
+ }());
28
+ exports.MottuEventEntity = MottuEventEntity;
@@ -0,0 +1,12 @@
1
+ export { MottuAddressEntity } from './address.entity';
2
+ export { MottuEventDeliveryManEntity } from './event-delivery-man.entity';
3
+ export { MottuEventRequestedByEntity } from './event-requested-by.entity';
4
+ export { MottuEventEntity } from './event.entity';
5
+ export { MottuOrderDelivererEntity } from './order-deliverer.entity';
6
+ export { MottuOrderDeliveryManEntity } from './order-deliverery-man.entity';
7
+ export { MottuOrderPreviewEntity } from './order-preview.entity';
8
+ export { MottuOrderStoreEntity } from './order-store.entity';
9
+ export { MottuOrderEntity } from './order.entity';
10
+ export { MottuStoreMatrixEntity } from './store-matrix.entity';
11
+ export { MottuStoreResponsibleEntity } from './store-responsible.entity';
12
+ export { MottuStoreEntity } from './store.entity';
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MottuStoreEntity = exports.MottuStoreResponsibleEntity = exports.MottuStoreMatrixEntity = exports.MottuOrderEntity = exports.MottuOrderStoreEntity = exports.MottuOrderPreviewEntity = exports.MottuOrderDeliveryManEntity = exports.MottuOrderDelivererEntity = exports.MottuEventEntity = exports.MottuEventRequestedByEntity = exports.MottuEventDeliveryManEntity = exports.MottuAddressEntity = void 0;
4
+ var address_entity_1 = require("./address.entity");
5
+ Object.defineProperty(exports, "MottuAddressEntity", { enumerable: true, get: function () { return address_entity_1.MottuAddressEntity; } });
6
+ var event_delivery_man_entity_1 = require("./event-delivery-man.entity");
7
+ Object.defineProperty(exports, "MottuEventDeliveryManEntity", { enumerable: true, get: function () { return event_delivery_man_entity_1.MottuEventDeliveryManEntity; } });
8
+ var event_requested_by_entity_1 = require("./event-requested-by.entity");
9
+ Object.defineProperty(exports, "MottuEventRequestedByEntity", { enumerable: true, get: function () { return event_requested_by_entity_1.MottuEventRequestedByEntity; } });
10
+ var event_entity_1 = require("./event.entity");
11
+ Object.defineProperty(exports, "MottuEventEntity", { enumerable: true, get: function () { return event_entity_1.MottuEventEntity; } });
12
+ var order_deliverer_entity_1 = require("./order-deliverer.entity");
13
+ Object.defineProperty(exports, "MottuOrderDelivererEntity", { enumerable: true, get: function () { return order_deliverer_entity_1.MottuOrderDelivererEntity; } });
14
+ var order_deliverery_man_entity_1 = require("./order-deliverery-man.entity");
15
+ Object.defineProperty(exports, "MottuOrderDeliveryManEntity", { enumerable: true, get: function () { return order_deliverery_man_entity_1.MottuOrderDeliveryManEntity; } });
16
+ var order_preview_entity_1 = require("./order-preview.entity");
17
+ Object.defineProperty(exports, "MottuOrderPreviewEntity", { enumerable: true, get: function () { return order_preview_entity_1.MottuOrderPreviewEntity; } });
18
+ var order_store_entity_1 = require("./order-store.entity");
19
+ Object.defineProperty(exports, "MottuOrderStoreEntity", { enumerable: true, get: function () { return order_store_entity_1.MottuOrderStoreEntity; } });
20
+ var order_entity_1 = require("./order.entity");
21
+ Object.defineProperty(exports, "MottuOrderEntity", { enumerable: true, get: function () { return order_entity_1.MottuOrderEntity; } });
22
+ var store_matrix_entity_1 = require("./store-matrix.entity");
23
+ Object.defineProperty(exports, "MottuStoreMatrixEntity", { enumerable: true, get: function () { return store_matrix_entity_1.MottuStoreMatrixEntity; } });
24
+ var store_responsible_entity_1 = require("./store-responsible.entity");
25
+ Object.defineProperty(exports, "MottuStoreResponsibleEntity", { enumerable: true, get: function () { return store_responsible_entity_1.MottuStoreResponsibleEntity; } });
26
+ var store_entity_1 = require("./store.entity");
27
+ Object.defineProperty(exports, "MottuStoreEntity", { enumerable: true, get: function () { return store_entity_1.MottuStoreEntity; } });
@@ -0,0 +1,18 @@
1
+ import { IMottuAddress, IMottuOrderDeliverer } from '../interfaces';
2
+ export declare class MottuOrderDelivererEntity implements IMottuOrderDeliverer {
3
+ address: IMottuAddress;
4
+ code: string | null;
5
+ deliveryCode: number | null;
6
+ distance: number | null;
7
+ dropoffCode: number | null;
8
+ fullCode: string | null;
9
+ id: number | null;
10
+ name: string | null;
11
+ observation: string | null;
12
+ onlinePayment: boolean;
13
+ orderRoute: number;
14
+ phone: string | null;
15
+ productValue: number | null;
16
+ situation: number | null;
17
+ constructor(data?: Partial<MottuOrderDelivererEntity>);
18
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MottuOrderDelivererEntity = void 0;
4
+ var address_entity_1 = require("./address.entity");
5
+ var MottuOrderDelivererEntity = /** @class */ (function () {
6
+ // #endregion Properties (14)
7
+ // #region Constructors (1)
8
+ function MottuOrderDelivererEntity(data) {
9
+ // #region Properties (14)
10
+ this.address = new address_entity_1.MottuAddressEntity();
11
+ this.code = null;
12
+ this.deliveryCode = null;
13
+ this.distance = null;
14
+ this.dropoffCode = null;
15
+ this.fullCode = null;
16
+ this.id = null;
17
+ this.name = null;
18
+ this.observation = null;
19
+ this.onlinePayment = false;
20
+ this.orderRoute = 0;
21
+ this.phone = null;
22
+ this.productValue = null;
23
+ this.situation = null;
24
+ if (data) {
25
+ for (var key in data) {
26
+ if (data.hasOwnProperty(key) && key in this) {
27
+ this[key] = data[key];
28
+ }
29
+ }
30
+ }
31
+ }
32
+ return MottuOrderDelivererEntity;
33
+ }());
34
+ exports.MottuOrderDelivererEntity = MottuOrderDelivererEntity;
@@ -0,0 +1,13 @@
1
+ import { IMottuOrderDeliveryMan } from '../interfaces';
2
+ export declare class MottuOrderDeliveryManEntity implements IMottuOrderDeliveryMan {
3
+ ddd: string;
4
+ document: string;
5
+ email: string;
6
+ id: number;
7
+ latitude: number;
8
+ longitude: number;
9
+ name: string;
10
+ phone: string;
11
+ profileId: number;
12
+ constructor(data?: Partial<MottuOrderDeliveryManEntity>);
13
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MottuOrderDeliveryManEntity = void 0;
4
+ var MottuOrderDeliveryManEntity = /** @class */ (function () {
5
+ // #endregion Properties (9)
6
+ // #region Constructors (1)
7
+ function MottuOrderDeliveryManEntity(data) {
8
+ // #region Properties (9)
9
+ this.ddd = '';
10
+ this.document = '';
11
+ this.email = '';
12
+ this.id = 0;
13
+ this.latitude = 0;
14
+ this.longitude = 0;
15
+ this.name = '';
16
+ this.phone = '';
17
+ this.profileId = 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 MottuOrderDeliveryManEntity;
27
+ }());
28
+ exports.MottuOrderDeliveryManEntity = MottuOrderDeliveryManEntity;
@@ -0,0 +1,14 @@
1
+ import { IMottuAddress, IMottuOrderPreview, IMottuOrderStore } from '../interfaces';
2
+ export declare class MottuOrderPreviewEntity implements IMottuOrderPreview {
3
+ deliveries: IMottuAddress[];
4
+ deliveryFee: number;
5
+ expectedDelivery: Date;
6
+ expectedPickup: Date;
7
+ onlinePayment: boolean;
8
+ pickupAddress: IMottuAddress;
9
+ previewDeliveryTime: boolean;
10
+ sortByBestRoute: boolean;
11
+ store: IMottuOrderStore;
12
+ totalDistance: number;
13
+ constructor(data?: Partial<MottuOrderPreviewEntity>);
14
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MottuOrderPreviewEntity = void 0;
4
+ var address_entity_1 = require("./address.entity");
5
+ var order_store_entity_1 = require("./order-store.entity");
6
+ var MottuOrderPreviewEntity = /** @class */ (function () {
7
+ // #endregion Properties (10)
8
+ // #region Constructors (1)
9
+ function MottuOrderPreviewEntity(data) {
10
+ // #region Properties (10)
11
+ this.deliveries = [];
12
+ this.deliveryFee = 0;
13
+ this.expectedDelivery = new Date();
14
+ this.expectedPickup = new Date();
15
+ this.onlinePayment = false;
16
+ this.pickupAddress = new address_entity_1.MottuAddressEntity();
17
+ this.previewDeliveryTime = false;
18
+ this.sortByBestRoute = false;
19
+ this.store = new order_store_entity_1.MottuOrderStoreEntity();
20
+ this.totalDistance = 0;
21
+ if (data) {
22
+ for (var key in data) {
23
+ if (data.hasOwnProperty(key) && key in this) {
24
+ this[key] = data[key];
25
+ }
26
+ }
27
+ }
28
+ }
29
+ return MottuOrderPreviewEntity;
30
+ }());
31
+ exports.MottuOrderPreviewEntity = MottuOrderPreviewEntity;
@@ -0,0 +1,5 @@
1
+ import { IMottuOrderStore } from '../interfaces';
2
+ export declare class MottuOrderStoreEntity implements IMottuOrderStore {
3
+ userMottuId: number;
4
+ constructor(data?: Partial<MottuOrderStoreEntity>);
5
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MottuOrderStoreEntity = void 0;
4
+ var MottuOrderStoreEntity = /** @class */ (function () {
5
+ // #endregion Properties (1)
6
+ // #region Constructors (1)
7
+ function MottuOrderStoreEntity(data) {
8
+ // #region Properties (1)
9
+ this.userMottuId = 0;
10
+ if (data) {
11
+ for (var key in data) {
12
+ if (data.hasOwnProperty(key) && key in this) {
13
+ this[key] = data[key];
14
+ }
15
+ }
16
+ }
17
+ }
18
+ return MottuOrderStoreEntity;
19
+ }());
20
+ exports.MottuOrderStoreEntity = MottuOrderStoreEntity;
@@ -0,0 +1,20 @@
1
+ import { IMottuEvent, IMottuOrder, IMottuOrderDeliveryMan } from '../interfaces';
2
+ export declare class MottuOrderEntity implements IMottuOrder {
3
+ code: string;
4
+ createdAt: Date;
5
+ deliveryFee: number;
6
+ deliveryMan: IMottuOrderDeliveryMan;
7
+ events: IMottuEvent[];
8
+ expectedDelivery: Date;
9
+ expectedPickup: Date;
10
+ fullCode: string;
11
+ id: number;
12
+ origin: string;
13
+ pickupCode: string;
14
+ preparationTime: number;
15
+ returnCode: string;
16
+ situation: number;
17
+ storeId: number;
18
+ totalDistance: number;
19
+ constructor(data?: Partial<MottuOrderEntity>);
20
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MottuOrderEntity = void 0;
4
+ var order_deliverery_man_entity_1 = require("./order-deliverery-man.entity");
5
+ var MottuOrderEntity = /** @class */ (function () {
6
+ // #endregion Properties (16)
7
+ // #region Constructors (1)
8
+ function MottuOrderEntity(data) {
9
+ // #region Properties (16)
10
+ this.code = '';
11
+ this.createdAt = new Date();
12
+ this.deliveryFee = 0;
13
+ this.deliveryMan = new order_deliverery_man_entity_1.MottuOrderDeliveryManEntity();
14
+ this.events = [];
15
+ this.expectedDelivery = new Date();
16
+ this.expectedPickup = new Date();
17
+ this.fullCode = '';
18
+ this.id = 0;
19
+ this.origin = '';
20
+ this.pickupCode = '';
21
+ this.preparationTime = 0;
22
+ this.returnCode = '';
23
+ this.situation = 0;
24
+ this.storeId = 0;
25
+ this.totalDistance = 0;
26
+ if (data) {
27
+ for (var key in data) {
28
+ if (data.hasOwnProperty(key) && key in this) {
29
+ this[key] = data[key];
30
+ }
31
+ }
32
+ }
33
+ }
34
+ return MottuOrderEntity;
35
+ }());
36
+ exports.MottuOrderEntity = MottuOrderEntity;
@@ -0,0 +1,5 @@
1
+ import { IMottuStoreMatrix } from '../interfaces';
2
+ export declare class MottuStoreMatrixEntity implements IMottuStoreMatrix {
3
+ id: number;
4
+ constructor(data?: Partial<MottuStoreMatrixEntity>);
5
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MottuStoreMatrixEntity = void 0;
4
+ var MottuStoreMatrixEntity = /** @class */ (function () {
5
+ // #endregion Properties (1)
6
+ // #region Constructors (1)
7
+ function MottuStoreMatrixEntity(data) {
8
+ // #region Properties (1)
9
+ this.id = 0;
10
+ if (data) {
11
+ for (var key in data) {
12
+ if (data.hasOwnProperty(key) && key in this) {
13
+ this[key] = data[key];
14
+ }
15
+ }
16
+ }
17
+ }
18
+ return MottuStoreMatrixEntity;
19
+ }());
20
+ exports.MottuStoreMatrixEntity = MottuStoreMatrixEntity;
@@ -0,0 +1,6 @@
1
+ import { IMottuStoreResponsible } from '../interfaces';
2
+ export declare class MottuStoreResponsibleEntity implements IMottuStoreResponsible {
3
+ name: string;
4
+ phone: string;
5
+ constructor(data?: Partial<MottuStoreResponsibleEntity>);
6
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MottuStoreResponsibleEntity = void 0;
4
+ var MottuStoreResponsibleEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
7
+ function MottuStoreResponsibleEntity(data) {
8
+ // #region Properties (2)
9
+ this.name = '';
10
+ this.phone = '';
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 MottuStoreResponsibleEntity;
20
+ }());
21
+ exports.MottuStoreResponsibleEntity = MottuStoreResponsibleEntity;
@@ -0,0 +1,13 @@
1
+ import { IMottuAddress, IMottuStore, IMottuStoreMatrix, IMottuStoreResponsible } from '../interfaces';
2
+ export declare class MottuStoreEntity implements IMottuStore {
3
+ address: IMottuAddress;
4
+ balance: number;
5
+ cnpj: string;
6
+ email: string;
7
+ id: number;
8
+ marketplaceBranchId: number;
9
+ matrix: IMottuStoreMatrix;
10
+ name: string;
11
+ responsible: IMottuStoreResponsible;
12
+ constructor(data?: Partial<MottuStoreEntity>);
13
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MottuStoreEntity = void 0;
4
+ var address_entity_1 = require("./address.entity");
5
+ var store_matrix_entity_1 = require("./store-matrix.entity");
6
+ var store_responsible_entity_1 = require("./store-responsible.entity");
7
+ var MottuStoreEntity = /** @class */ (function () {
8
+ // #endregion Properties (10)
9
+ // #region Constructors (1)
10
+ function MottuStoreEntity(data) {
11
+ // #region Properties (10)
12
+ this.address = new address_entity_1.MottuAddressEntity();
13
+ this.balance = 0;
14
+ this.cnpj = '';
15
+ this.email = '';
16
+ this.id = 0;
17
+ this.marketplaceBranchId = 0;
18
+ this.matrix = new store_matrix_entity_1.MottuStoreMatrixEntity();
19
+ this.name = '';
20
+ this.responsible = new store_responsible_entity_1.MottuStoreResponsibleEntity();
21
+ if (data) {
22
+ for (var key in data) {
23
+ if (data.hasOwnProperty(key) && key in this) {
24
+ this[key] = data[key];
25
+ }
26
+ }
27
+ }
28
+ }
29
+ return MottuStoreEntity;
30
+ }());
31
+ exports.MottuStoreEntity = MottuStoreEntity;
@@ -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,9 @@
1
+ export interface IMottuAddress {
2
+ city: 'SP';
3
+ complement: string;
4
+ neighborhood: string;
5
+ number: string;
6
+ state: 'SP';
7
+ street: string;
8
+ zipCode: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface IMottuEventDeliveryMan {
2
+ name: string;
3
+ phone: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface IMottuEventRequestedBy {
2
+ name: string;
3
+ phone: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { IMottuEventDeliveryMan } from './i-event-delivery-man';
2
+ import { IMottuEventRequestedBy } from './i-event-requested-by';
3
+ export interface IMottuEvent {
4
+ createdAt: Date;
5
+ deliveryMan: IMottuEventDeliveryMan;
6
+ description: string;
7
+ id: number;
8
+ latitude: number;
9
+ longitude: number;
10
+ requestedBy: IMottuEventRequestedBy;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { IMottuAddress } from './i-address';
2
+ export interface IMottuOrderDeliverer {
3
+ address: IMottuAddress;
4
+ code: string | null;
5
+ deliveryCode: number | null;
6
+ distance: number | null;
7
+ dropoffCode: number | null;
8
+ fullCode: string | null;
9
+ id: number | null;
10
+ name: string | null;
11
+ observation: string | null;
12
+ onlinePayment: boolean;
13
+ orderRoute: number;
14
+ phone: string | null;
15
+ productValue: number | null;
16
+ situation: number | null;
17
+ }