@open-tender/types 0.4.121 → 0.4.123

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.
@@ -31,7 +31,6 @@ export interface CartItemOption {
31
31
  name: string;
32
32
  nutritionalInfo: NutritionalInfo | null;
33
33
  points: number | null;
34
- pos_ext_id: string | null;
35
34
  price: number;
36
35
  quantity: number;
37
36
  shorthand: string | null;
@@ -28,6 +28,7 @@ export interface PosTerminal {
28
28
  print_kds: boolean;
29
29
  print_receipt: PosTerminalPrintReceipt;
30
30
  printers: PosPrinters;
31
+ disable_kiosk_until: string | null;
31
32
  }
32
33
  export declare type PosTerminals = PosTerminal[];
33
34
  export declare type PrepStationPrepType = 'ASSEMBLY' | 'EXPO';
@@ -53,7 +53,6 @@ export interface Discount {
53
53
  short_description: string;
54
54
  start_date: DateString | null;
55
55
  title: string;
56
- end_at: DateString | null;
57
56
  }
58
57
  export declare type Discounts = Discount[];
59
58
  export interface DiscountEnhanced extends Discount {
@@ -108,7 +108,6 @@ export interface MenuItem {
108
108
  plu: string | null;
109
109
  points: number | null;
110
110
  pos_display_color: string | null;
111
- pos_ext_id: string | null;
112
111
  price: Money | string;
113
112
  sales_tax_override: Decimal | null;
114
113
  short_description: string | null;
@@ -112,7 +112,6 @@ export declare type OrderTimesWithDate = {
112
112
  export declare type RevenueCenterStatus = 'CLOSED' | 'CLOSED_TEMPORARILY' | 'COMING_SOON' | 'HIDDEN' | 'OPEN';
113
113
  export interface RevenueCenterUser {
114
114
  distance_from: number;
115
- distance_in_miles: number;
116
115
  in_delivery_zone: boolean;
117
116
  }
118
117
  export interface DynamicPrepTime {
@@ -121,6 +120,15 @@ export interface DynamicPrepTime {
121
120
  min: number | null;
122
121
  }
123
122
  export declare type DynamicPrepTimes = DynamicPrepTime[];
123
+ export interface DrivingDistance {
124
+ data: {
125
+ distance: number;
126
+ distance_text: string;
127
+ duration: number;
128
+ duration_text: string;
129
+ } | null;
130
+ error: string;
131
+ }
124
132
  export interface RevenueCenter {
125
133
  address: RevenueCenterAddress;
126
134
  cutoff_time: TimeHuman | null;
@@ -130,6 +138,7 @@ export interface RevenueCenter {
130
138
  description: string | null;
131
139
  directions_url: string | null;
132
140
  distance?: number;
141
+ driving_distance?: DrivingDistance | null;
133
142
  dynamic_prep_times: DynamicPrepTimes;
134
143
  excluded_times: ExcludedTimes | null;
135
144
  first_times: FirstTimes | null;
@@ -8,10 +8,3 @@ export interface Settings {
8
8
  export interface InternalSettings {
9
9
  is_offline: boolean;
10
10
  }
11
- export declare type DeliveryProvider = 'DOORDASH' | 'ONFLEET' | 'RELAY' | 'UBER_DIRECT';
12
- export interface MapDeliveryProvider {
13
- delivery_provider: DeliveryProvider;
14
- location_id: number;
15
- role_id: number;
16
- store_id: number;
17
- }
@@ -127,7 +127,6 @@ export interface Store {
127
127
  walkin_prep_minutes: number;
128
128
  warning_minutes: number;
129
129
  week_start_day: Weekday;
130
- disable_kiosk_until: ISOString | null;
131
130
  display_category_nav_page: boolean;
132
131
  guest_name_required: boolean;
133
132
  menu_type: MenuType;
@@ -139,5 +138,8 @@ export interface Store {
139
138
  take_out_custom_name: string | null;
140
139
  eat_here_custom_name: string | null;
141
140
  display_default_prep_type: boolean;
141
+ display_category_image: boolean;
142
+ display_descriptions: boolean;
143
+ disable_kiosk_message: ISOString | null;
142
144
  }
143
145
  export declare type Stores = Store[];
@@ -31,7 +31,6 @@ export interface CartItemOption {
31
31
  name: string;
32
32
  nutritionalInfo: NutritionalInfo | null;
33
33
  points: number | null;
34
- pos_ext_id: string | null;
35
34
  price: number;
36
35
  quantity: number;
37
36
  shorthand: string | null;
@@ -28,6 +28,7 @@ export interface PosTerminal {
28
28
  print_kds: boolean;
29
29
  print_receipt: PosTerminalPrintReceipt;
30
30
  printers: PosPrinters;
31
+ disable_kiosk_until: string | null;
31
32
  }
32
33
  export declare type PosTerminals = PosTerminal[];
33
34
  export declare type PrepStationPrepType = 'ASSEMBLY' | 'EXPO';
@@ -53,7 +53,6 @@ export interface Discount {
53
53
  short_description: string;
54
54
  start_date: DateString | null;
55
55
  title: string;
56
- end_at: DateString | null;
57
56
  }
58
57
  export declare type Discounts = Discount[];
59
58
  export interface DiscountEnhanced extends Discount {
@@ -108,7 +108,6 @@ export interface MenuItem {
108
108
  plu: string | null;
109
109
  points: number | null;
110
110
  pos_display_color: string | null;
111
- pos_ext_id: string | null;
112
111
  price: Money | string;
113
112
  sales_tax_override: Decimal | null;
114
113
  short_description: string | null;
@@ -112,7 +112,6 @@ export declare type OrderTimesWithDate = {
112
112
  export declare type RevenueCenterStatus = 'CLOSED' | 'CLOSED_TEMPORARILY' | 'COMING_SOON' | 'HIDDEN' | 'OPEN';
113
113
  export interface RevenueCenterUser {
114
114
  distance_from: number;
115
- distance_in_miles: number;
116
115
  in_delivery_zone: boolean;
117
116
  }
118
117
  export interface DynamicPrepTime {
@@ -121,6 +120,15 @@ export interface DynamicPrepTime {
121
120
  min: number | null;
122
121
  }
123
122
  export declare type DynamicPrepTimes = DynamicPrepTime[];
123
+ export interface DrivingDistance {
124
+ data: {
125
+ distance: number;
126
+ distance_text: string;
127
+ duration: number;
128
+ duration_text: string;
129
+ } | null;
130
+ error: string;
131
+ }
124
132
  export interface RevenueCenter {
125
133
  address: RevenueCenterAddress;
126
134
  cutoff_time: TimeHuman | null;
@@ -130,6 +138,7 @@ export interface RevenueCenter {
130
138
  description: string | null;
131
139
  directions_url: string | null;
132
140
  distance?: number;
141
+ driving_distance?: DrivingDistance | null;
133
142
  dynamic_prep_times: DynamicPrepTimes;
134
143
  excluded_times: ExcludedTimes | null;
135
144
  first_times: FirstTimes | null;
@@ -8,10 +8,3 @@ export interface Settings {
8
8
  export interface InternalSettings {
9
9
  is_offline: boolean;
10
10
  }
11
- export declare type DeliveryProvider = 'DOORDASH' | 'ONFLEET' | 'RELAY' | 'UBER_DIRECT';
12
- export interface MapDeliveryProvider {
13
- delivery_provider: DeliveryProvider;
14
- location_id: number;
15
- role_id: number;
16
- store_id: number;
17
- }
@@ -127,7 +127,6 @@ export interface Store {
127
127
  walkin_prep_minutes: number;
128
128
  warning_minutes: number;
129
129
  week_start_day: Weekday;
130
- disable_kiosk_until: ISOString | null;
131
130
  display_category_nav_page: boolean;
132
131
  guest_name_required: boolean;
133
132
  menu_type: MenuType;
@@ -139,5 +138,8 @@ export interface Store {
139
138
  take_out_custom_name: string | null;
140
139
  eat_here_custom_name: string | null;
141
140
  display_default_prep_type: boolean;
141
+ display_category_image: boolean;
142
+ display_descriptions: boolean;
143
+ disable_kiosk_message: ISOString | null;
142
144
  }
143
145
  export declare type Stores = Store[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.4.121",
3
+ "version": "0.4.123",
4
4
  "description": "A library of types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",