@vita-mojo/types 1.0.37-VMOS-13502-68ef91b-896-rc.0 → 1.0.37-VMOS-13376-c9fcd22-900-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
package/src/order/bundle.d.ts
CHANGED
|
@@ -23,8 +23,13 @@ export interface DefaultItem {
|
|
|
23
23
|
name: string;
|
|
24
24
|
customizations: DefaultItemCustomization[];
|
|
25
25
|
}
|
|
26
|
+
export interface DealCategory {
|
|
27
|
+
uuid: string;
|
|
28
|
+
isOptional: boolean;
|
|
29
|
+
}
|
|
26
30
|
export interface Deal {
|
|
27
31
|
uuid: string;
|
|
32
|
+
dealCategories: DealCategory[];
|
|
28
33
|
dealCategoryUUID: string;
|
|
29
34
|
name: string;
|
|
30
35
|
basketUUID: string;
|
|
@@ -45,6 +50,11 @@ export interface Adjustment {
|
|
|
45
50
|
time: string;
|
|
46
51
|
type: string;
|
|
47
52
|
}
|
|
53
|
+
export interface Tag {
|
|
54
|
+
name: string;
|
|
55
|
+
uuid: string;
|
|
56
|
+
type: 'tag' | 'recommendation' | 'discountGroup';
|
|
57
|
+
}
|
|
48
58
|
export interface Bundle {
|
|
49
59
|
uuid: string;
|
|
50
60
|
menuUUID?: string;
|
|
@@ -115,4 +125,5 @@ export interface Bundle {
|
|
|
115
125
|
quantity?: number;
|
|
116
126
|
basketEntries?: Record<string, Partial<Bundle>>;
|
|
117
127
|
adjustment?: Adjustment;
|
|
128
|
+
tags: Tag[];
|
|
118
129
|
}
|
package/src/order/promotion.d.ts
CHANGED
|
@@ -4,20 +4,42 @@ 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
|
+
}
|
|
7
13
|
export interface Promotion {
|
|
8
14
|
uuid: string;
|
|
9
15
|
bundleDiscountOnly?: boolean;
|
|
10
16
|
type: string;
|
|
11
17
|
value: number;
|
|
12
18
|
name: string;
|
|
13
|
-
appliesTo:
|
|
19
|
+
appliesTo: PromoAppliesTo;
|
|
14
20
|
promoCode?: PromoCodeDto;
|
|
15
|
-
loyaltyPoints?:
|
|
21
|
+
loyaltyPoints?: number;
|
|
16
22
|
maxAmount?: number;
|
|
17
23
|
minBasket?: number;
|
|
18
24
|
providerPromotion?: PromotionProviderDetails;
|
|
19
25
|
provider?: string;
|
|
20
26
|
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;
|
|
21
43
|
}
|
|
22
44
|
export interface PromotionProviderDetails {
|
|
23
45
|
type?: string;
|
package/src/order/promotion.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
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 = {}));
|
|
3
11
|
//# sourceMappingURL=promotion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promotion.js","sourceRoot":"","sources":["../../../../../packages/types/src/order/promotion.ts"],"names":[],"mappings":""}
|
|
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"}
|
package/src/order/subway.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export interface Validation {
|
|
|
8
8
|
offers: Offer[];
|
|
9
9
|
certificates: Certificate[];
|
|
10
10
|
productIdIndex: ProductIdIndex;
|
|
11
|
+
locationId: string;
|
|
12
|
+
orderSourceType: string;
|
|
11
13
|
}
|
|
12
14
|
export interface Tax {
|
|
13
15
|
name: string;
|
|
@@ -23,6 +25,8 @@ export interface Item {
|
|
|
23
25
|
modifiers: Item[];
|
|
24
26
|
discounts: Discount[];
|
|
25
27
|
taxes: Tax[];
|
|
28
|
+
price: number;
|
|
29
|
+
description: string;
|
|
26
30
|
}
|
|
27
31
|
export interface Discount {
|
|
28
32
|
promotionId: number;
|
package/src/order/user.d.ts
CHANGED