cecon-interfaces 1.4.26 → 1.4.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/dist/campaign/entities/campaign.entity.d.ts +1 -0
  2. package/dist/campaign/entities/campaign.entity.js +1 -0
  3. package/dist/campaign/interfaces/i-campaign-customer.d.ts +15 -0
  4. package/dist/campaign/interfaces/i-campaign-customer.js +2 -0
  5. package/dist/campaign/interfaces/i-campaign.d.ts +1 -0
  6. package/dist/campaign/interfaces/index.d.ts +1 -0
  7. package/dist/esm2022/campaign/entities/campaign.entity.mjs +2 -1
  8. package/dist/esm2022/campaign/interfaces/i-campaign-customer.mjs +2 -0
  9. package/dist/esm2022/campaign/interfaces/i-campaign.mjs +1 -1
  10. package/dist/esm2022/campaign/interfaces/index.mjs +1 -1
  11. package/dist/esm2022/mobyo/index.mjs +2 -1
  12. package/dist/esm2022/mobyo/mobyo-api/interfaces/i-order-customer-v3.mjs +1 -1
  13. package/dist/esm2022/mobyo/mobyo-customer-mobyo/entities/customer-mobyo.entity.mjs +1 -2
  14. package/dist/esm2022/mobyo/mobyo-customer-mobyo/interfaces/i-customer-mobyo.mjs +1 -1
  15. package/dist/esm2022/mobyo/resumes/index.mjs +2 -0
  16. package/dist/esm2022/mobyo/resumes/vouchers/index.mjs +2 -0
  17. package/dist/esm2022/mobyo/resumes/vouchers/interfaces/i-resume-voucher-item.mjs +2 -0
  18. package/dist/esm2022/mobyo/resumes/vouchers/interfaces/i-resume-voucher.mjs +2 -0
  19. package/dist/esm2022/mobyo/resumes/vouchers/interfaces/index.mjs +2 -0
  20. package/dist/fesm2022/cecon-interfaces.mjs +1 -1
  21. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  22. package/dist/mobyo/index.d.ts +1 -0
  23. package/dist/mobyo/index.js +1 -0
  24. package/dist/mobyo/mobyo-api/interfaces/i-order-customer-v3.d.ts +0 -2
  25. package/dist/mobyo/mobyo-customer-mobyo/entities/customer-mobyo.entity.d.ts +0 -2
  26. package/dist/mobyo/mobyo-customer-mobyo/entities/customer-mobyo.entity.js +0 -1
  27. package/dist/mobyo/mobyo-customer-mobyo/interfaces/i-customer-mobyo.d.ts +0 -2
  28. package/dist/mobyo/resumes/index.d.ts +1 -0
  29. package/dist/mobyo/resumes/index.js +17 -0
  30. package/dist/mobyo/resumes/vouchers/index.d.ts +1 -0
  31. package/dist/mobyo/resumes/vouchers/index.js +17 -0
  32. package/dist/mobyo/resumes/vouchers/interfaces/i-resume-voucher-item.d.ts +12 -0
  33. package/dist/mobyo/resumes/vouchers/interfaces/i-resume-voucher-item.js +2 -0
  34. package/dist/mobyo/resumes/vouchers/interfaces/i-resume-voucher.d.ts +18 -0
  35. package/dist/mobyo/resumes/vouchers/interfaces/i-resume-voucher.js +2 -0
  36. package/dist/mobyo/resumes/vouchers/interfaces/index.d.ts +2 -0
  37. package/dist/mobyo/resumes/vouchers/interfaces/index.js +2 -0
  38. package/dist/package.json +1 -1
  39. package/package.json +1 -1
@@ -2,3 +2,4 @@ export * from './company-settings';
2
2
  export * from './mobyo-api';
3
3
  export * from './mobyo-customer-mobyo';
4
4
  export * from './mobyo-deliverer';
5
+ export * from './resumes';
@@ -18,3 +18,4 @@ __exportStar(require("./company-settings"), exports);
18
18
  __exportStar(require("./mobyo-api"), exports);
19
19
  __exportStar(require("./mobyo-customer-mobyo"), exports);
20
20
  __exportStar(require("./mobyo-deliverer"), exports);
21
+ __exportStar(require("./resumes"), exports);
@@ -1,4 +1,3 @@
1
- import { IUsedVoucher } from "../../mobyo-customer-mobyo";
2
1
  export interface IOrdersCustomerPhone {
3
2
  description: String;
4
3
  localizer: String;
@@ -13,6 +12,5 @@ export interface IOrderCustomerV3 {
13
12
  ordersCountOnMerchant: number;
14
13
  phone: IOrdersCustomerPhone;
15
14
  picture: string;
16
- usedVouchers: IUsedVoucher[];
17
15
  birthday: Date | null;
18
16
  }
@@ -1,6 +1,5 @@
1
1
  import { CustomerEntity } from '../../../customer';
2
2
  import { IAddress } from '../../../general';
3
- import { IUsedVoucher } from '../interfaces';
4
3
  import { ICustomerMobyo } from '../interfaces/i-customer-mobyo';
5
4
  export declare class CustomerMobyoEntity extends CustomerEntity implements ICustomerMobyo {
6
5
  active: boolean;
@@ -12,7 +11,6 @@ export declare class CustomerMobyoEntity extends CustomerEntity implements ICust
12
11
  ordersCountOnRestaurant: number;
13
12
  uid: string;
14
13
  version: string;
15
- usedVouchers: IUsedVoucher[];
16
14
  birthday: Date | null;
17
15
  constructor(data?: Partial<CustomerMobyoEntity>);
18
16
  }
@@ -33,7 +33,6 @@ 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
36
  _this.birthday = null;
38
37
  if (data) {
39
38
  for (var key in data) {
@@ -1,6 +1,5 @@
1
1
  import { ICustomer } from '../../../customer';
2
2
  import { IAddress } from '../../../general';
3
- import { IUsedVoucher } from './i-used-voucher';
4
3
  export interface ICustomerMobyo extends ICustomer {
5
4
  active: boolean;
6
5
  addresses: IAddress[];
@@ -11,6 +10,5 @@ export interface ICustomerMobyo extends ICustomer {
11
10
  ordersCountOnRestaurant: number;
12
11
  uid: string;
13
12
  version: string;
14
- usedVouchers: IUsedVoucher[];
15
13
  birthday: Date | null;
16
14
  }
@@ -0,0 +1 @@
1
+ export * from './vouchers';
@@ -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("./vouchers"), 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,12 @@
1
+ import { ICoords } from '../../../../general';
2
+ export interface IResumeVoucherItem {
3
+ confirmed: IResumeVoucherItemDetail;
4
+ cancelled: IResumeVoucherItemDetail;
5
+ }
6
+ export interface IResumeVoucherItemDetail {
7
+ cords: ICoords[];
8
+ count: number;
9
+ orderItemsCount: number;
10
+ totalAmount: number;
11
+ totalDiscount: number;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import { ECampaignTargetTypes } from '../../../../campaign';
2
+ import { IMobyoInfo, INatiInfo } from '../../../../general';
3
+ import { IResumeVoucherItem } from './i-resume-voucher-item';
4
+ export interface IResumeVoucher {
5
+ id: string;
6
+ createdAt: Date;
7
+ updatedAt: Date;
8
+ item: IResumeVoucherItem;
9
+ items: {
10
+ id: string;
11
+ item: IResumeVoucherItem;
12
+ }[];
13
+ targetType: {
14
+ id: ECampaignTargetTypes;
15
+ item: IResumeVoucherItem;
16
+ }[];
17
+ info: IMobyoInfo | INatiInfo;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { IResumeVoucher } from './i-resume-voucher';
2
+ export { IResumeVoucherItem, IResumeVoucherItemDetail } from './i-resume-voucher-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.4.26",
3
+ "version": "1.4.27",
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.26",
3
+ "version": "1.4.27",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",