@vita-mojo/types 1.0.5 → 1.0.6-VMOS-8494-2c29c9b-345-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.5",
3
+ "version": "1.0.6-VMOS-8494-2c29c9b-345-rc.0",
4
4
  "peerDependencies": {
5
5
  "tslib": "2.4.1"
6
6
  },
@@ -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: boolean;
5
- online: boolean;
6
- pos: boolean;
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: string;
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: string;
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: number;
50
+ type: string;
51
+ items?: Item[];
48
52
  itemTypes: ItemType[];
49
53
  price: number;
50
54
  priceEatIn: number;
@@ -1,6 +1,6 @@
1
1
  export interface Device {
2
- deviceType: string;
3
- appVersion: string;
2
+ deviceType: string | null;
3
+ appVersion: string | null;
4
4
  productVersion: string;
5
5
  platform: string;
6
6
  deviceOS: string;
@@ -5,7 +5,7 @@ export interface ItemType {
5
5
  minRestriction: number;
6
6
  maxRestriction: number;
7
7
  name: string;
8
- ticketGroup: string;
8
+ ticketGroup: string | null;
9
9
  type: string;
10
10
  items: Item[];
11
11
  }
@@ -1,8 +1,8 @@
1
1
  import { Promotion } from './promotion';
2
2
  export interface AppStraightToPickup {
3
- kiosk: boolean;
4
- online: boolean;
5
- pos: boolean;
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,10 +18,10 @@ 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: string;
24
+ standalonePrice: number;
25
25
  unitsNumber: number;
26
26
  }
27
27
  export interface Customization {
@@ -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;
@@ -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;
@@ -11,9 +11,9 @@ export interface Payment {
11
11
  name?: string;
12
12
  type?: string;
13
13
  refundSumUp?: number;
14
- salesTaxRate?: number;
14
+ salesTaxRate?: number | null;
15
15
  serviceCharge?: number;
16
- serviceChargePercentage?: number;
16
+ serviceChargePercentage?: number | null;
17
17
  deliveryFee: number;
18
18
  transactions?: Transaction[];
19
19
  }
@@ -21,6 +21,7 @@ export interface Transaction {
21
21
  uuid: string;
22
22
  status: string;
23
23
  type: string;
24
+ terminalId: string | null;
24
25
  amount: number;
25
26
  provider: {
26
27
  slug: string;
@@ -6,15 +6,16 @@ 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: number;
15
- maxAmount: number;
16
- minBasket: number;
17
- providerPromotion: PromotionProviderDetails;
15
+ loyaltyPoints: boolean;
16
+ maxAmount: number | null;
17
+ minBasket: number | null;
18
+ providerPromotion: PromotionProviderDetails | null;
18
19
  provider: string;
19
20
  freeDelivery: boolean;
20
21
  }
@@ -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;
@@ -1,12 +1,12 @@
1
1
  export interface UserAddress {
2
- address1: string;
3
- address2: null;
4
- county: null;
5
- distance: number;
6
- instructions: string;
2
+ address1?: string;
3
+ address2?: null;
4
+ county?: null;
5
+ distance?: number;
6
+ instructions?: string;
7
7
  phoneNumber: string;
8
- postCode: string;
9
- town: string;
8
+ postCode?: string;
9
+ town?: string;
10
10
  }
11
11
  export interface User {
12
12
  extUserUUID: string;
@@ -15,6 +15,6 @@ export interface User {
15
15
  name: string;
16
16
  originalName: string;
17
17
  address?: UserAddress;
18
- acteolMemberNumber?: number;
18
+ acteolMemberNumber?: number | null;
19
19
  acteolCtcId?: number;
20
20
  }