@vita-mojo/types 1.0.35-VMOS-13376-3426b64-852-rc.0 → 1.0.35-VMQA-9559-b3d5e4f-853-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vita-mojo/types",
3
- "version": "1.0.35-VMOS-13376-3426b64-852-rc.0",
3
+ "version": "1.0.35-VMQA-9559-b3d5e4f-853-rc.0",
4
4
  "main": "./src/index.js",
5
5
  "type": "commonjs"
6
6
  }
@@ -23,13 +23,8 @@ export interface DefaultItem {
23
23
  name: string;
24
24
  customizations: DefaultItemCustomization[];
25
25
  }
26
- export interface DealCategory {
27
- uuid: string;
28
- isOptional: boolean;
29
- }
30
26
  export interface Deal {
31
27
  uuid: string;
32
- dealCategories: DealCategory[];
33
28
  dealCategoryUUID: string;
34
29
  name: string;
35
30
  basketUUID: string;
@@ -4,42 +4,20 @@ export interface PromoCodeDto {
4
4
  secureCode?: string;
5
5
  bindAccount?: boolean;
6
6
  }
7
- export declare enum PromoAppliesTo {
8
- AssocBundles = "assoc_bundles",
9
- AssocMostExpensive = "assoc_most_expensive",
10
- AssocLeastExpensive = "assoc_least_expensive",
11
- Order = "order"
12
- }
13
7
  export interface Promotion {
14
8
  uuid: string;
15
9
  bundleDiscountOnly?: boolean;
16
10
  type: string;
17
11
  value: number;
18
12
  name: string;
19
- appliesTo: PromoAppliesTo;
13
+ appliesTo: string;
20
14
  promoCode?: PromoCodeDto;
21
- loyaltyPoints?: number;
15
+ loyaltyPoints?: boolean;
22
16
  maxAmount?: number;
23
17
  minBasket?: number;
24
18
  providerPromotion?: PromotionProviderDetails;
25
19
  provider?: string;
26
20
  freeDelivery?: boolean;
27
- userReward?: UserReward;
28
- discount?: number;
29
- }
30
- export interface UserReward {
31
- createdAt: string | number | Date;
32
- dateUsed: string | number | Date | null;
33
- email: string;
34
- eventType: string;
35
- extOrderUUID: string | null;
36
- extTenantUUID: string;
37
- id: number;
38
- isUsed: boolean;
39
- source: string | null;
40
- usableFrom: string | number | Date | null;
41
- usableUntil: string | number | Date | null;
42
- uuid: string;
43
21
  }
44
22
  export interface PromotionProviderDetails {
45
23
  type?: string;
@@ -1,11 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PromoAppliesTo = void 0;
4
- var PromoAppliesTo;
5
- (function (PromoAppliesTo) {
6
- PromoAppliesTo["AssocBundles"] = "assoc_bundles";
7
- PromoAppliesTo["AssocMostExpensive"] = "assoc_most_expensive";
8
- PromoAppliesTo["AssocLeastExpensive"] = "assoc_least_expensive";
9
- PromoAppliesTo["Order"] = "order";
10
- })(PromoAppliesTo || (exports.PromoAppliesTo = PromoAppliesTo = {}));
11
3
  //# sourceMappingURL=promotion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"promotion.js","sourceRoot":"","sources":["../../../../../packages/types/src/order/promotion.ts"],"names":[],"mappings":";;;AAOA,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,gDAA8B,CAAA;IAC9B,6DAA2C,CAAA;IAC3C,+DAA6C,CAAA;IAC7C,iCAAe,CAAA;AACjB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB"}
1
+ {"version":3,"file":"promotion.js","sourceRoot":"","sources":["../../../../../packages/types/src/order/promotion.ts"],"names":[],"mappings":""}
@@ -8,8 +8,6 @@ export interface Validation {
8
8
  offers: Offer[];
9
9
  certificates: Certificate[];
10
10
  productIdIndex: ProductIdIndex;
11
- locationId: string;
12
- orderSourceType: string;
13
11
  }
14
12
  export interface Tax {
15
13
  name: string;
@@ -25,8 +23,6 @@ export interface Item {
25
23
  modifiers: Item[];
26
24
  discounts: Discount[];
27
25
  taxes: Tax[];
28
- price: number;
29
- description: string;
30
26
  }
31
27
  export interface Discount {
32
28
  promotionId: number;
@@ -26,10 +26,4 @@ export interface User {
26
26
  address?: UserAddress;
27
27
  acteolMemberNumber?: number | null;
28
28
  acteolCtcId?: number;
29
- integrations?: {
30
- comoID?: string;
31
- externalUserId?: string;
32
- provider?: string;
33
- };
34
- isExternalAccount?: boolean;
35
29
  }