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
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ export interface IMottuOrderDeliveryMan {
2
+ ddd: string;
3
+ document: string;
4
+ email: string;
5
+ id: number;
6
+ latitude: number;
7
+ longitude: number;
8
+ name: string;
9
+ phone: string;
10
+ profileId: number;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { IMottuAddress } from './i-address';
2
+ import { IMottuOrderStore } from './i-order-store';
3
+ export interface IMottuOrderPreview {
4
+ deliveries: IMottuAddress[];
5
+ deliveryFee: number;
6
+ expectedDelivery: Date;
7
+ expectedPickup: Date;
8
+ onlinePayment: boolean;
9
+ pickupAddress: IMottuAddress;
10
+ previewDeliveryTime: boolean;
11
+ sortByBestRoute: boolean;
12
+ store: IMottuOrderStore;
13
+ totalDistance: number;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface IMottuOrderStore {
2
+ userMottuId: number;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import { IMottuEvent } from './i-event';
2
+ import { IMottuOrderDeliveryMan } from './i-order-delivery-man';
3
+ export interface IMottuOrder {
4
+ code: string;
5
+ createdAt: Date;
6
+ deliveryFee: number;
7
+ deliveryMan: IMottuOrderDeliveryMan;
8
+ events: IMottuEvent[];
9
+ expectedDelivery: Date;
10
+ expectedPickup: Date;
11
+ fullCode: string;
12
+ id: number;
13
+ origin: string;
14
+ pickupCode: string;
15
+ preparationTime: number;
16
+ returnCode: string;
17
+ situation: number;
18
+ storeId: number;
19
+ totalDistance: number;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface IMottuStoreMatrix {
2
+ id: number;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface IMottuStoreResponsible {
2
+ phone: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { IMottuAddress } from './i-address';
2
+ import { IMottuStoreMatrix } from './i-store-matrix';
3
+ import { IMottuStoreResponsible } from './i-store-responsible';
4
+ export interface IMottuStore {
5
+ address: IMottuAddress;
6
+ balance: number;
7
+ cnpj: string;
8
+ email: string;
9
+ id: number;
10
+ marketplaceBranchId: number;
11
+ matrix: IMottuStoreMatrix;
12
+ name: string;
13
+ responsible: IMottuStoreResponsible;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ export { IMottuAddress } from './i-address';
2
+ export { IMottuEvent } from './i-event';
3
+ export { IMottuEventDeliveryMan } from './i-event-delivery-man';
4
+ export { IMottuEventRequestedBy } from './i-event-requested-by';
5
+ export { IMottuOrder } from './i-order';
6
+ export { IMottuOrderDeliverer } from './i-order-deliverer';
7
+ export { IMottuOrderDeliveryMan } from './i-order-delivery-man';
8
+ export { IMottuOrderPreview } from './i-order-preview';
9
+ export { IMottuOrderStore } from './i-order-store';
10
+ export { IMottuStore } from './i-store';
11
+ export { IMottuStoreMatrix } from './i-store-matrix';
12
+ export { IMottuStoreResponsible } from './i-store-responsible';
@@ -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.43",
3
+ "version": "1.2.46",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1 @@
1
+ export { VerifierTokenEntity } from './verifier-token.entity';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VerifierTokenEntity = void 0;
4
+ var verifier_token_entity_1 = require("./verifier-token.entity");
5
+ Object.defineProperty(exports, "VerifierTokenEntity", { enumerable: true, get: function () { return verifier_token_entity_1.VerifierTokenEntity; } });
@@ -0,0 +1,13 @@
1
+ import { IVerifierToken } from '../interfaces/i-verifier-token';
2
+ export declare class VerifierTokenEntity implements IVerifierToken {
3
+ appId: string | null;
4
+ createdAt: number;
5
+ expiresAt: number;
6
+ id: string;
7
+ message: string;
8
+ receiver: string;
9
+ value: string;
10
+ verified: boolean;
11
+ verifiedAt: number;
12
+ constructor(data?: Partial<VerifierTokenEntity>);
13
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VerifierTokenEntity = void 0;
4
+ var VerifierTokenEntity = /** @class */ (function () {
5
+ // #endregion Properties (9)
6
+ // #region Constructors (1)
7
+ function VerifierTokenEntity(data) {
8
+ // #region Properties (9)
9
+ this.appId = null;
10
+ this.createdAt = Date.now();
11
+ this.expiresAt = Date.now() + 1000 * 60 * 30;
12
+ this.id = '';
13
+ this.message = '';
14
+ this.receiver = '';
15
+ this.value = '';
16
+ this.verified = false;
17
+ this.verifiedAt = 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 VerifierTokenEntity;
27
+ }());
28
+ exports.VerifierTokenEntity = VerifierTokenEntity;
@@ -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,11 @@
1
+ export interface IVerifierToken {
2
+ createdAt: number;
3
+ expiresAt: number;
4
+ id: string;
5
+ receiver: string;
6
+ message: string;
7
+ value: string;
8
+ verified: boolean;
9
+ verifiedAt: number;
10
+ appId: string | null;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { IVerifierToken } from './i-verifier-token';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.43",
3
+ "version": "1.2.46",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",