cecon-interfaces 1.4.23 → 1.4.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. package/dist/campaign/enums/rule-types.enum.d.ts +0 -1
  2. package/dist/campaign/enums/rule-types.enum.js +0 -1
  3. package/dist/esm2022/campaign/enums/rule-types.enum.mjs +1 -2
  4. package/dist/esm2022/mobyo/mobyo-api/interfaces/i-order-v3.mjs +1 -1
  5. package/dist/esm2022/mobyo/mobyo-api/interfaces/index.mjs +1 -1
  6. package/dist/esm2022/mobyo/mobyo-customer-mobyo/entities/customer-mobyo.entity.mjs +3 -1
  7. package/dist/esm2022/mobyo/mobyo-customer-mobyo/interfaces/i-customer-mobyo.mjs +1 -1
  8. package/dist/esm2022/mobyo/mobyo-customer-mobyo/interfaces/i-used-voucher.mjs +2 -0
  9. package/dist/esm2022/mobyo/mobyo-customer-mobyo/interfaces/index.mjs +1 -1
  10. package/dist/fesm2022/cecon-interfaces.mjs +2 -1
  11. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  12. package/dist/mobyo/mobyo-api/interfaces/i-order-v3.d.ts +2 -2
  13. package/dist/mobyo/mobyo-api/interfaces/index.d.ts +0 -1
  14. package/dist/mobyo/mobyo-customer-mobyo/entities/customer-mobyo.entity.d.ts +3 -0
  15. package/dist/mobyo/mobyo-customer-mobyo/entities/customer-mobyo.entity.js +2 -0
  16. package/dist/mobyo/mobyo-customer-mobyo/interfaces/i-customer-mobyo.d.ts +3 -0
  17. package/dist/mobyo/mobyo-customer-mobyo/interfaces/i-used-voucher.d.ts +6 -0
  18. package/dist/mobyo/mobyo-customer-mobyo/interfaces/i-used-voucher.js +2 -0
  19. package/dist/mobyo/mobyo-customer-mobyo/interfaces/index.d.ts +1 -0
  20. package/dist/package.json +1 -1
  21. package/package.json +1 -1
  22. package/dist/esm2022/mobyo/mobyo-api/interfaces/i-order-customer-v3.mjs +0 -5
  23. package/dist/mobyo/mobyo-api/interfaces/i-order-customer-v3.d.ts +0 -15
  24. package/dist/mobyo/mobyo-api/interfaces/i-order-customer-v3.js +0 -5
@@ -1,4 +1,5 @@
1
1
  import { EOrderStatus } from '../../../order/enums/order-status.enum';
2
+ import { ICustomerMobyo } from '../../mobyo-customer-mobyo';
2
3
  import { EEngineType } from '../enum/engine-type.enum';
3
4
  import { EOrderV3SalesChannel } from '../enum/order-v3-sales-channel.enum';
4
5
  import { EOrderV3Timing } from '../enum/order-v3-timing.enum';
@@ -6,7 +7,6 @@ import { EOrderV3Type } from '../enum/order-v3-type.enum';
6
7
  import { IOrderActionV3 } from './i-order-action-v3';
7
8
  import { IOrderBenefitsV3 } from './i-order-benefits-v3';
8
9
  import { IOrderCancellationV3 } from './i-order-cancellation-v3';
9
- import { IOrderCustomerV3 } from './i-order-customer-v3';
10
10
  import { IOrderDelivererV3 } from './i-order-deliverer-v3';
11
11
  import { IOrderDeliveryV3 } from './i-order-delivery-v3';
12
12
  import { IOrderDesenfilaV3 } from './i-order-desenfila-v3';
@@ -24,7 +24,7 @@ export interface IOrderV3 {
24
24
  companyId: string;
25
25
  containerId: string;
26
26
  createdAt: Date;
27
- customer: IOrderCustomerV3;
27
+ customer: ICustomerMobyo;
28
28
  deliverer: IOrderDelivererV3;
29
29
  delivery: IOrderDeliveryV3;
30
30
  desenfila?: IOrderDesenfilaV3;
@@ -73,7 +73,6 @@ export { IOrderActionV3 as MobyoIOrderActionV3 } from './i-order-action-v3';
73
73
  export { IOrderAditionalFeeV3 as MobyoIOrderAditionalFeeV3 } from './i-order-additional-fees-v3';
74
74
  export { IOrderBenefitsV3 as MobyoIOrderBenefitsV3, ISponsorshipValues } from './i-order-benefits-v3';
75
75
  export { IOrderCancellationV3 as MobyoIOrderCancellationV3 } from './i-order-cancellation-v3';
76
- export { IOrderCustomerV3 as MobyoIOrderCustomerV3, IOrdersCustomerPhone as MobyoIOrdersCustomerPhone } from './i-order-customer-v3';
77
76
  export { IOrderDelivererV3 as MobyoIOrderDelivererV3 } from './i-order-deliverer-v3';
78
77
  export { IOrderDeliveryAddressV3 as MobyoIOrderDeliveryAddressV3 } from './i-order-delivery-address-v3';
79
78
  export { IOrderDeliveryV3 as MobyoIOrderDeliveryV3 } from './i-order-delivery-v3';
@@ -1,5 +1,6 @@
1
1
  import { CustomerEntity } from '../../../customer';
2
2
  import { IAddress } from '../../../general';
3
+ import { IUsedVoucher } from '../interfaces';
3
4
  import { ICustomerMobyo } from '../interfaces/i-customer-mobyo';
4
5
  export declare class CustomerMobyoEntity extends CustomerEntity implements ICustomerMobyo {
5
6
  active: boolean;
@@ -11,5 +12,7 @@ export declare class CustomerMobyoEntity extends CustomerEntity implements ICust
11
12
  ordersCountOnRestaurant: number;
12
13
  uid: string;
13
14
  version: string;
15
+ usedVouchers: IUsedVoucher[];
16
+ birthday: Date | null;
14
17
  constructor(data?: Partial<CustomerMobyoEntity>);
15
18
  }
@@ -33,6 +33,8 @@ var CustomerMobyoEntity = /** @class */ (function (_super) {
33
33
  _this.ordersCountOnRestaurant = 0;
34
34
  _this.uid = '';
35
35
  _this.version = '1.0.2';
36
+ _this.usedVouchers = [];
37
+ _this.birthday = null;
36
38
  if (data) {
37
39
  for (var key in data) {
38
40
  if (data.hasOwnProperty(key) && key in _this) {
@@ -1,5 +1,6 @@
1
1
  import { ICustomer } from '../../../customer';
2
2
  import { IAddress } from '../../../general';
3
+ import { IUsedVoucher } from './i-used-voucher';
3
4
  export interface ICustomerMobyo extends ICustomer {
4
5
  active: boolean;
5
6
  addresses: IAddress[];
@@ -10,4 +11,6 @@ export interface ICustomerMobyo extends ICustomer {
10
11
  ordersCountOnRestaurant: number;
11
12
  uid: string;
12
13
  version: string;
14
+ usedVouchers: IUsedVoucher[];
15
+ birthday: Date | null;
13
16
  }
@@ -0,0 +1,6 @@
1
+ export interface IUsedVoucher {
2
+ key: string;
3
+ id: string;
4
+ uses: number;
5
+ updatedAt: Date;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export { ICustomerMobyo } from './i-customer-mobyo';
2
+ export { IUsedVoucher } from './i-used-voucher';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.4.23",
3
+ "version": "1.4.24",
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.4.23",
3
+ "version": "1.4.24",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +0,0 @@
1
- // #region interfacees (2)
2
- export {};
3
- // #endregion interfacees (2)
4
- // #region Functions (3)
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1vcmRlci1jdXN0b21lci12My5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9tb2J5by9tb2J5by1hcGkvaW50ZXJmYWNlcy9pLW9yZGVyLWN1c3RvbWVyLXYzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLDBCQUEwQjs7QUFzQzFCLDZCQUE2QjtBQUU3Qix3QkFBd0IiLCJzb3VyY2VzQ29udGVudCI6WyJcclxuLy8gI3JlZ2lvbiBpbnRlcmZhY2VlcyAoMilcclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgSU9yZGVyc0N1c3RvbWVyUGhvbmUge1xyXG4gICAgLy8gI3JlZ2lvbiBQcm9wZXJ0aWVzICg0KVxyXG5cclxuICAgIFxyXG4gICAgZGVzY3JpcHRpb246IFN0cmluZztcclxuICAgIFxyXG4gICAgbG9jYWxpemVyOiBTdHJpbmc7XHJcbiAgICBcclxuICAgIGxvY2FsaXplckV4cGlyYXRpb246IFN0cmluZztcclxuICAgIFxyXG4gICAgbnVtYmVyOiBTdHJpbmc7XHJcblxyXG4gICAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICg0KVxyXG59XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIElPcmRlckN1c3RvbWVyVjMge1xyXG4gICAgLy8gI3JlZ2lvbiBQcm9wZXJ0aWVzICg3KVxyXG5cclxuICAgIFxyXG4gICAgZG9jdW1lbnROdW1iZXI6IHN0cmluZztcclxuICAgIFxyXG4gICAgZW1haWw6IHN0cmluZztcclxuICAgIFxyXG4gICAgaWQ6IHN0cmluZztcclxuICAgIFxyXG4gICAgbmFtZTogc3RyaW5nO1xyXG4gICAgXHJcbiAgICBvcmRlcnNDb3VudE9uTWVyY2hhbnQ6IG51bWJlcjtcclxuICAgIFxyXG4gICAgcGhvbmU6IElPcmRlcnNDdXN0b21lclBob25lO1xyXG4gICAgXHJcbiAgICBwaWN0dXJlOiBzdHJpbmc7XHJcblxyXG4gICAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICg3KVxyXG59XHJcblxyXG4vLyAjZW5kcmVnaW9uIGludGVyZmFjZWVzICgyKVxyXG5cclxuLy8gI3JlZ2lvbiBGdW5jdGlvbnMgKDMpIl19
@@ -1,15 +0,0 @@
1
- export interface IOrdersCustomerPhone {
2
- description: String;
3
- localizer: String;
4
- localizerExpiration: String;
5
- number: String;
6
- }
7
- export interface IOrderCustomerV3 {
8
- documentNumber: string;
9
- email: string;
10
- id: string;
11
- name: string;
12
- ordersCountOnMerchant: number;
13
- phone: IOrdersCustomerPhone;
14
- picture: string;
15
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- // #region interfacees (2)
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- // #endregion interfacees (2)
5
- // #region Functions (3)