@vita-mojo/types 1.0.5 → 1.0.6-VMOS-8494-0cb1846-346-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 +1 -1
- package/src/order/bundle.d.ts +12 -8
- package/src/order/device.d.ts +3 -3
- package/src/order/item-type.d.ts +1 -1
- package/src/order/item.d.ts +9 -9
- package/src/order/order.d.ts +2 -2
- package/src/order/payment.d.ts +4 -2
- package/src/order/promotion.d.ts +6 -5
- package/src/order/settings.d.ts +2 -1
- package/src/order/user.d.ts +14 -8
package/package.json
CHANGED
package/src/order/bundle.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { Item } from './item';
|
|
1
2
|
import { ItemType } from './item-type';
|
|
2
3
|
import { Promotion } from './promotion';
|
|
3
4
|
export interface AppStraightToPickup {
|
|
4
|
-
kiosk
|
|
5
|
-
online
|
|
6
|
-
pos
|
|
5
|
+
kiosk?: boolean;
|
|
6
|
+
online?: boolean;
|
|
7
|
+
pos?: boolean;
|
|
8
|
+
opat?: boolean;
|
|
7
9
|
}
|
|
8
10
|
export interface KitchenStation {
|
|
9
11
|
uuid: string;
|
|
@@ -12,7 +14,7 @@ export interface KitchenStation {
|
|
|
12
14
|
}
|
|
13
15
|
export interface DefaultItemCustomization {
|
|
14
16
|
type: string;
|
|
15
|
-
uuid
|
|
17
|
+
uuid?: string;
|
|
16
18
|
current: number | number[];
|
|
17
19
|
}
|
|
18
20
|
export interface DefaultItem {
|
|
@@ -30,21 +32,23 @@ export interface Deal {
|
|
|
30
32
|
export interface Bundle {
|
|
31
33
|
uuid: string;
|
|
32
34
|
menuUUID: string;
|
|
35
|
+
upsellCategories?: string[];
|
|
33
36
|
isReorder: boolean;
|
|
34
37
|
basketUUID: string;
|
|
35
|
-
hasModifiers:
|
|
38
|
+
hasModifiers: boolean;
|
|
36
39
|
extMediaUUID: string;
|
|
37
40
|
name: string;
|
|
38
41
|
kitchenTicketName: string;
|
|
39
42
|
slug: string;
|
|
40
|
-
description: string;
|
|
43
|
+
description: string | null;
|
|
41
44
|
dealCategoryOrder: number;
|
|
42
45
|
isGrouped: boolean;
|
|
43
46
|
isPrintable: boolean;
|
|
44
47
|
isAccessory: boolean;
|
|
45
48
|
straightToPickup: boolean;
|
|
46
49
|
appStraightToPickup: AppStraightToPickup;
|
|
47
|
-
type:
|
|
50
|
+
type: string;
|
|
51
|
+
items?: Item[];
|
|
48
52
|
itemTypes: ItemType[];
|
|
49
53
|
price: number;
|
|
50
54
|
priceEatIn: number;
|
|
@@ -77,7 +81,7 @@ export interface Bundle {
|
|
|
77
81
|
baseTotalAmount: number;
|
|
78
82
|
baseVatAmount: number;
|
|
79
83
|
deal: Deal;
|
|
80
|
-
kitchenStation: KitchenStation;
|
|
84
|
+
kitchenStation: KitchenStation | null;
|
|
81
85
|
status?: string;
|
|
82
86
|
allergens: string[];
|
|
83
87
|
isRecommendation: boolean;
|
package/src/order/device.d.ts
CHANGED
package/src/order/item-type.d.ts
CHANGED
package/src/order/item.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Promotion } from './promotion';
|
|
2
2
|
export interface AppStraightToPickup {
|
|
3
|
-
kiosk
|
|
4
|
-
online
|
|
5
|
-
pos
|
|
3
|
+
kiosk?: boolean;
|
|
4
|
+
online?: boolean;
|
|
5
|
+
pos?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export interface Unit {
|
|
8
8
|
slug: string;
|
|
@@ -10,7 +10,7 @@ export interface Unit {
|
|
|
10
10
|
value: any;
|
|
11
11
|
}
|
|
12
12
|
export interface Variation {
|
|
13
|
-
name: string;
|
|
13
|
+
name: string | null;
|
|
14
14
|
unit: Unit;
|
|
15
15
|
price: number;
|
|
16
16
|
priceEatIn: number;
|
|
@@ -18,11 +18,11 @@ export interface Variation {
|
|
|
18
18
|
step: number;
|
|
19
19
|
type: string;
|
|
20
20
|
uuid: string;
|
|
21
|
-
parentUUID: string;
|
|
21
|
+
parentUUID: string | null;
|
|
22
22
|
value: any;
|
|
23
23
|
printText: string;
|
|
24
|
-
standalonePrice:
|
|
25
|
-
unitsNumber
|
|
24
|
+
standalonePrice: number;
|
|
25
|
+
unitsNumber?: number;
|
|
26
26
|
}
|
|
27
27
|
export interface Customization {
|
|
28
28
|
uuid: string;
|
|
@@ -42,8 +42,8 @@ export interface KitchenZone {
|
|
|
42
42
|
export interface Item {
|
|
43
43
|
name: string;
|
|
44
44
|
uuid: string;
|
|
45
|
-
kitchenTicketName: string;
|
|
46
|
-
kitchenZone: KitchenZone;
|
|
45
|
+
kitchenTicketName: string | null;
|
|
46
|
+
kitchenZone: KitchenZone | null;
|
|
47
47
|
itemUUID: string;
|
|
48
48
|
straightToPickup: boolean;
|
|
49
49
|
price: number;
|
package/src/order/order.d.ts
CHANGED
|
@@ -43,8 +43,8 @@ export interface Order {
|
|
|
43
43
|
canceledBy?: AuthUser;
|
|
44
44
|
accessories?: Accessory[];
|
|
45
45
|
bundlesBatchEvents?: string[];
|
|
46
|
-
promotions?: Promotion;
|
|
47
|
-
note?: string;
|
|
46
|
+
promotions?: Promotion[];
|
|
47
|
+
note?: string | null;
|
|
48
48
|
brand?: Brand;
|
|
49
49
|
device: Device;
|
|
50
50
|
settings: OrderSettings;
|
package/src/order/payment.d.ts
CHANGED
|
@@ -9,11 +9,12 @@ export interface Payment {
|
|
|
9
9
|
status?: string;
|
|
10
10
|
meta?: string;
|
|
11
11
|
name?: string;
|
|
12
|
+
deliveryVatRate?: number | null;
|
|
12
13
|
type?: string;
|
|
13
14
|
refundSumUp?: number;
|
|
14
|
-
salesTaxRate?: number;
|
|
15
|
+
salesTaxRate?: number | null;
|
|
15
16
|
serviceCharge?: number;
|
|
16
|
-
serviceChargePercentage?: number;
|
|
17
|
+
serviceChargePercentage?: number | null;
|
|
17
18
|
deliveryFee: number;
|
|
18
19
|
transactions?: Transaction[];
|
|
19
20
|
}
|
|
@@ -21,6 +22,7 @@ export interface Transaction {
|
|
|
21
22
|
uuid: string;
|
|
22
23
|
status: string;
|
|
23
24
|
type: string;
|
|
25
|
+
terminalId: string | null;
|
|
24
26
|
amount: number;
|
|
25
27
|
provider: {
|
|
26
28
|
slug: string;
|
package/src/order/promotion.d.ts
CHANGED
|
@@ -6,17 +6,18 @@ export interface PromoCodeDto {
|
|
|
6
6
|
}
|
|
7
7
|
export interface Promotion {
|
|
8
8
|
uuid: string;
|
|
9
|
+
bundleDiscountOnly?: boolean;
|
|
9
10
|
type: string;
|
|
10
11
|
value: number;
|
|
11
12
|
name: string;
|
|
12
13
|
appliesTo: string;
|
|
13
14
|
promoCode: PromoCodeDto;
|
|
14
|
-
loyaltyPoints
|
|
15
|
-
maxAmount: number;
|
|
16
|
-
minBasket
|
|
17
|
-
providerPromotion: PromotionProviderDetails;
|
|
15
|
+
loyaltyPoints?: boolean;
|
|
16
|
+
maxAmount: number | null;
|
|
17
|
+
minBasket?: number | null;
|
|
18
|
+
providerPromotion: PromotionProviderDetails | null;
|
|
18
19
|
provider: string;
|
|
19
|
-
freeDelivery
|
|
20
|
+
freeDelivery?: boolean;
|
|
20
21
|
}
|
|
21
22
|
export interface PromotionProviderDetails {
|
|
22
23
|
type: string;
|
package/src/order/settings.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface OrderSettings {
|
|
|
9
9
|
isStraightToProductionFlowEnabled?: boolean;
|
|
10
10
|
isPaidOrdersStraightToProduction?: boolean;
|
|
11
11
|
timezone?: string;
|
|
12
|
-
salesTaxRate?: string;
|
|
12
|
+
salesTaxRate?: string | null;
|
|
13
13
|
randomSerialNumber?: boolean;
|
|
14
14
|
deliveryFeeVatRate?: string;
|
|
15
15
|
feedbackExpiryMinutes?: string;
|
|
@@ -19,6 +19,7 @@ export interface OrderSettings {
|
|
|
19
19
|
optInOnly: boolean;
|
|
20
20
|
};
|
|
21
21
|
kdsEnableBaggingStep?: boolean;
|
|
22
|
+
"preorder.delivery.fee"?: string;
|
|
22
23
|
stockManagementLimitedQuantity?: StockManagementLimitedQuantity;
|
|
23
24
|
}
|
|
24
25
|
export {};
|
package/src/order/user.d.ts
CHANGED
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
export interface UserAddress {
|
|
2
|
-
address1
|
|
3
|
-
address2
|
|
4
|
-
county
|
|
5
|
-
distance
|
|
6
|
-
instructions
|
|
2
|
+
address1?: string;
|
|
3
|
+
address2?: null;
|
|
4
|
+
county?: null;
|
|
5
|
+
distance?: number;
|
|
6
|
+
instructions?: string;
|
|
7
7
|
phoneNumber: string;
|
|
8
|
-
postCode
|
|
9
|
-
town
|
|
8
|
+
postCode?: string;
|
|
9
|
+
town?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface UserRole {
|
|
12
|
+
description: string;
|
|
13
|
+
slug: string;
|
|
14
|
+
displayName: string;
|
|
10
15
|
}
|
|
11
16
|
export interface User {
|
|
12
17
|
extUserUUID: string;
|
|
13
18
|
email: string;
|
|
14
19
|
isGuest: boolean;
|
|
15
20
|
name: string;
|
|
21
|
+
role?: UserRole;
|
|
16
22
|
originalName: string;
|
|
17
23
|
address?: UserAddress;
|
|
18
|
-
acteolMemberNumber?: number;
|
|
24
|
+
acteolMemberNumber?: number | null;
|
|
19
25
|
acteolCtcId?: number;
|
|
20
26
|
}
|