@open-tender/types 0.4.125 → 0.4.127

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,6 +31,7 @@ export interface CartItemOption {
31
31
  name: string;
32
32
  nutritionalInfo: NutritionalInfo | null;
33
33
  points: number | null;
34
+ pos_ext_id: string | null;
34
35
  price: number;
35
36
  quantity: number;
36
37
  shorthand: string | null;
@@ -112,6 +112,7 @@ export interface ConfigBrand {
112
112
  pilot_slug: string | null;
113
113
  privacy_url: string | null;
114
114
  require_address: boolean;
115
+ require_cardholder_name: boolean;
115
116
  sign_up_message: string | null;
116
117
  terms_url: string | null;
117
118
  timezone: TimezonePython;
@@ -53,6 +53,7 @@ export interface Discount {
53
53
  short_description: string;
54
54
  start_date: DateString | null;
55
55
  title: string;
56
+ end_at: DateString | null;
56
57
  }
57
58
  export declare type Discounts = Discount[];
58
59
  export interface DiscountEnhanced extends Discount {
@@ -108,6 +108,7 @@ 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;
111
112
  price: Money | string;
112
113
  sales_tax_override: Decimal | null;
113
114
  short_description: string | null;
@@ -112,6 +112,7 @@ 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;
115
116
  in_delivery_zone: boolean;
116
117
  }
117
118
  export interface DynamicPrepTime {
@@ -120,15 +121,6 @@ export interface DynamicPrepTime {
120
121
  min: number | null;
121
122
  }
122
123
  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
- }
132
124
  export interface RevenueCenter {
133
125
  address: RevenueCenterAddress;
134
126
  cutoff_time: TimeHuman | null;
@@ -138,7 +130,6 @@ export interface RevenueCenter {
138
130
  description: string | null;
139
131
  directions_url: string | null;
140
132
  distance?: number;
141
- driving_distance?: DrivingDistance | null;
142
133
  dynamic_prep_times: DynamicPrepTimes;
143
134
  excluded_times: ExcludedTimes | null;
144
135
  first_times: FirstTimes | null;
@@ -8,3 +8,10 @@ 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
+ }
@@ -31,6 +31,7 @@ export interface CartItemOption {
31
31
  name: string;
32
32
  nutritionalInfo: NutritionalInfo | null;
33
33
  points: number | null;
34
+ pos_ext_id: string | null;
34
35
  price: number;
35
36
  quantity: number;
36
37
  shorthand: string | null;
@@ -112,6 +112,7 @@ export interface ConfigBrand {
112
112
  pilot_slug: string | null;
113
113
  privacy_url: string | null;
114
114
  require_address: boolean;
115
+ require_cardholder_name: boolean;
115
116
  sign_up_message: string | null;
116
117
  terms_url: string | null;
117
118
  timezone: TimezonePython;
@@ -53,6 +53,7 @@ export interface Discount {
53
53
  short_description: string;
54
54
  start_date: DateString | null;
55
55
  title: string;
56
+ end_at: DateString | null;
56
57
  }
57
58
  export declare type Discounts = Discount[];
58
59
  export interface DiscountEnhanced extends Discount {
@@ -108,6 +108,7 @@ 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;
111
112
  price: Money | string;
112
113
  sales_tax_override: Decimal | null;
113
114
  short_description: string | null;
@@ -112,6 +112,7 @@ 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;
115
116
  in_delivery_zone: boolean;
116
117
  }
117
118
  export interface DynamicPrepTime {
@@ -120,15 +121,6 @@ export interface DynamicPrepTime {
120
121
  min: number | null;
121
122
  }
122
123
  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
- }
132
124
  export interface RevenueCenter {
133
125
  address: RevenueCenterAddress;
134
126
  cutoff_time: TimeHuman | null;
@@ -138,7 +130,6 @@ export interface RevenueCenter {
138
130
  description: string | null;
139
131
  directions_url: string | null;
140
132
  distance?: number;
141
- driving_distance?: DrivingDistance | null;
142
133
  dynamic_prep_times: DynamicPrepTimes;
143
134
  excluded_times: ExcludedTimes | null;
144
135
  first_times: FirstTimes | null;
@@ -8,3 +8,10 @@ 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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.4.125",
3
+ "version": "0.4.127",
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",