@open-tender/types 0.4.120 → 0.4.122

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.
@@ -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 {
@@ -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
- }
@@ -139,5 +139,7 @@ export interface Store {
139
139
  take_out_custom_name: string | null;
140
140
  eat_here_custom_name: string | null;
141
141
  display_default_prep_type: boolean;
142
+ display_category_image: boolean;
143
+ display_descriptions: boolean;
142
144
  }
143
145
  export declare type Stores = Store[];
@@ -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 {
@@ -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
- }
@@ -139,5 +139,7 @@ export interface Store {
139
139
  take_out_custom_name: string | null;
140
140
  eat_here_custom_name: string | null;
141
141
  display_default_prep_type: boolean;
142
+ display_category_image: boolean;
143
+ display_descriptions: boolean;
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.120",
3
+ "version": "0.4.122",
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",