@open-tender/types 0.1.6 → 0.1.8

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.
Files changed (37) hide show
  1. package/dist/cjs/types/api/checkout.d.ts +1 -0
  2. package/dist/cjs/types/api/config.d.ts +2 -2
  3. package/dist/cjs/types/api/creditCards.d.ts +6 -2
  4. package/dist/cjs/types/api/customer/giftCards.d.ts +12 -3
  5. package/dist/cjs/types/api/customer/index.d.ts +0 -1
  6. package/dist/cjs/types/api/customer/index.js +0 -1
  7. package/dist/cjs/types/api/customer/rewards.d.ts +2 -3
  8. package/dist/cjs/types/api/deals.d.ts +2 -3
  9. package/dist/cjs/types/api/donations.d.ts +3 -3
  10. package/dist/cjs/types/api/index.d.ts +1 -0
  11. package/dist/cjs/types/api/index.js +1 -0
  12. package/dist/cjs/types/api/order.d.ts +8 -8
  13. package/dist/cjs/types/api/pos.d.ts +54 -3
  14. package/dist/cjs/types/api/revenueCenter.d.ts +160 -47
  15. package/dist/cjs/types/global.d.ts +7 -1
  16. package/dist/cjs/types/request.d.ts +1 -1
  17. package/dist/esm/types/api/checkout.d.ts +1 -0
  18. package/dist/esm/types/api/config.d.ts +2 -2
  19. package/dist/esm/types/api/creditCards.d.ts +6 -2
  20. package/dist/esm/types/api/customer/giftCards.d.ts +12 -3
  21. package/dist/esm/types/api/customer/index.d.ts +0 -1
  22. package/dist/esm/types/api/customer/index.js +0 -1
  23. package/dist/esm/types/api/customer/rewards.d.ts +2 -3
  24. package/dist/esm/types/api/deals.d.ts +2 -3
  25. package/dist/esm/types/api/donations.d.ts +3 -3
  26. package/dist/esm/types/api/index.d.ts +1 -0
  27. package/dist/esm/types/api/index.js +1 -0
  28. package/dist/esm/types/api/order.d.ts +8 -8
  29. package/dist/esm/types/api/pos.d.ts +54 -3
  30. package/dist/esm/types/api/revenueCenter.d.ts +160 -47
  31. package/dist/esm/types/global.d.ts +7 -1
  32. package/dist/esm/types/request.d.ts +1 -1
  33. package/package.json +1 -1
  34. package/dist/cjs/types/api/customer/revenueCenters.d.ts +0 -187
  35. package/dist/cjs/types/api/customer/revenueCenters.js +0 -2
  36. package/dist/esm/types/api/customer/revenueCenters.d.ts +0 -187
  37. package/dist/esm/types/api/customer/revenueCenters.js +0 -1
@@ -1,7 +1,6 @@
1
- import { DiscountAuthType, DiscountType, Money, OrderType, ServiceType } from '../global';
1
+ import { DiscountAuthType, DiscountType, Images, Money, OrderType, ServiceType } from '../global';
2
2
  import { DayPart } from './customer';
3
3
  import { DiscountedItems } from './menu';
4
- import { OrderItemImage } from './order';
5
4
  import { RevenueCenter } from './revenueCenter';
6
5
  export interface Deal {
7
6
  amount: Money;
@@ -12,7 +11,7 @@ export interface Deal {
12
11
  discount_type: DiscountType;
13
12
  discounted_items: DiscountedItems;
14
13
  end_date: string;
15
- images: Array<OrderItemImage>;
14
+ images: Images;
16
15
  max_amount: string;
17
16
  max_order_size: string;
18
17
  max_redemptions: number;
@@ -1,8 +1,8 @@
1
1
  import { Money } from '../global';
2
- import { CreditCard } from './creditCards';
3
- export interface PurchaseDonationRequest {
2
+ import { CreditCardData, CreditCardSaved } from './creditCards';
3
+ export interface DonationPurchase {
4
4
  amount: Money;
5
- credit_card: CreditCard;
5
+ credit_card: CreditCardData | CreditCardSaved;
6
6
  email: string;
7
7
  token?: string;
8
8
  }
@@ -17,6 +17,7 @@ export * from './messages';
17
17
  export * from './notifications';
18
18
  export * from './offlineAuths';
19
19
  export * from './order';
20
+ export * from './pos';
20
21
  export * from './refund';
21
22
  export * from './revenueCenter';
22
23
  export * from './settings';
@@ -17,6 +17,7 @@ export * from './messages';
17
17
  export * from './notifications';
18
18
  export * from './offlineAuths';
19
19
  export * from './order';
20
+ export * from './pos';
20
21
  export * from './refund';
21
22
  export * from './revenueCenter';
22
23
  export * from './settings';
@@ -1,20 +1,15 @@
1
1
  import { ISOStringOffset, RequestedAt, TimeHuman, TimezonePython } from '../datetimes';
2
- import { CardType, CardTypeName, DiscountAuthType, DiscountType, Money, NegativeMoney, OrderStatus, OrderType, ServiceType, TenderType } from '../global';
2
+ import { CardType, CardTypeName, ChannelType, DiscountAuthType, DiscountType, Images, Money, NegativeMoney, OrderStatus, OrderType, ServiceType, TenderType } from '../global';
3
3
  import { CreditCard } from './creditCards';
4
4
  import { Address } from './customer';
5
5
  import { PrepStatus } from './kds';
6
6
  import { NutritionalInfo } from './menu';
7
- export interface OrderItemImage {
8
- type: 'LARGE_IMAGE' | 'SMALL_IMAGE' | 'APP_IMAGE';
9
- url: string | null;
10
- }
11
- export declare type OrderItemImages = OrderItemImage[];
12
7
  export interface OrderItem {
13
8
  allergens: string[];
14
9
  description: string | null;
15
10
  groups: OrderItemGroups;
16
11
  id: number;
17
- images: OrderItemImages;
12
+ images: Images;
18
13
  ingredients: string | null;
19
14
  made_for?: string | null;
20
15
  name: string;
@@ -184,7 +179,7 @@ export interface OrderTax {
184
179
  is_optional: boolean;
185
180
  name: string;
186
181
  }
187
- export declare type OrderTaxes = OrderTax;
182
+ export declare type OrderTaxes = OrderTax[];
188
183
  export interface OrderTenderCreditCard {
189
184
  amount: Money;
190
185
  credit_card: CreditCard;
@@ -250,6 +245,11 @@ export interface Order {
250
245
  totals: OrderTotals;
251
246
  }
252
247
  export declare type Orders = Order[];
248
+ export interface OrderChannel {
249
+ ext_id?: string | null;
250
+ ext_name?: string | null;
251
+ type: ChannelType;
252
+ }
253
253
  export interface DisplayItem {
254
254
  allergens: string[];
255
255
  cals: number | null;
@@ -1,7 +1,9 @@
1
- import { DateString, ISOStringOffset } from '../datetimes';
2
- import { ChannelType, Decimal, Money, NegativeMoney, ReceiptType, SurchargeType } from '../global';
1
+ import { DateString, ISOStringOffset, TimeString } from '../datetimes';
2
+ import { ChannelType, Decimal, Money, NegativeMoney, OrderType, ReceiptType, ServiceType, SurchargeType, TaxType, Weekday } from '../global';
3
+ import { PunchAuthType } from './employee';
3
4
  import { PrepStatus, TicketStatus } from './kds';
4
5
  import { Order, OrderCart, OrderItem } from './order';
6
+ import { PaymentProcessing } from './store';
5
7
  export interface PosOrderItemGroup {
6
8
  id: number;
7
9
  name: string;
@@ -74,7 +76,7 @@ export interface OrderBucket {
74
76
  end: Date;
75
77
  }
76
78
  export declare type OrderBuckets = Array<OrderBucket>;
77
- export interface OrderTimes {
79
+ export interface PosOrderTimes {
78
80
  delayed: number;
79
81
  requested: Date;
80
82
  requestedTime: string;
@@ -161,3 +163,52 @@ export interface PosOrderSurcharge {
161
163
  taxes: Array<OrderSurchargeTax>;
162
164
  }
163
165
  export declare type PosOrderSurcharges = Array<PosOrderSurcharge>;
166
+ export interface PosRevenueCenterTax {
167
+ amount: Decimal;
168
+ display_order: number;
169
+ is_active: boolean;
170
+ is_optional: boolean;
171
+ name: string;
172
+ tax_id: number;
173
+ tax_type: TaxType;
174
+ }
175
+ export interface PosRevenueCenter {
176
+ credit: PaymentProcessing;
177
+ dine_in_prompt: boolean;
178
+ dine_in_show: boolean;
179
+ end_of_day: TimeString;
180
+ greeting: string;
181
+ has_loyalty: boolean;
182
+ is_closed: boolean;
183
+ is_outpost: boolean;
184
+ is_temporarily_closed: boolean;
185
+ item_discount_approval: boolean;
186
+ name: string;
187
+ olo_print_device_id: number;
188
+ olo_print_order_type: 'BOTH_OLO_CATERING' | 'OLO_ONLY' | 'CATERING_ONLY';
189
+ olo_print_server_id: number;
190
+ olo_print_stage: 'PLACED' | 'FIRED' | 'CONFIRMED';
191
+ order_page_swipe: boolean;
192
+ overtime_threshold: number;
193
+ overtime_threshold_daily: number;
194
+ page_timeout: number;
195
+ punch_type: PunchAuthType;
196
+ receipt_footer: string;
197
+ receipt_header: string;
198
+ receipt_phone: boolean;
199
+ revenue_center_id: number;
200
+ revenue_center_type: OrderType;
201
+ send_offline_alerts: boolean;
202
+ service_types: Array<ServiceType>;
203
+ short_name: string;
204
+ slug: string;
205
+ starting_cash: Money;
206
+ tax_exempt_approval: boolean;
207
+ taxes: Array<PosRevenueCenterTax>;
208
+ week_start_day: Weekday;
209
+ delivery_wait_time_id: number | null;
210
+ temporary_delivery_wait_time_id: number | null;
211
+ pickup_wait_time_id: number | null;
212
+ temporary_pickup_wait_time_id: number | null;
213
+ distance?: number;
214
+ }
@@ -1,54 +1,167 @@
1
- import { TimeString } from '../datetimes';
2
- import { Decimal, Money, OrderType, ServiceType, TaxType, Weekday } from '../global';
3
- import { PunchAuthType } from './employee';
4
- import { PaymentProcessing } from './store';
5
- export interface RevenueCenterTax {
6
- amount: Decimal;
7
- display_order: number;
8
- is_active: boolean;
9
- is_optional: boolean;
10
- name: string;
11
- tax_id: number;
12
- tax_type: TaxType;
1
+ import { DateString, ISOString, Time24, TimeHuman, TimezonePython } from '../datetimes';
2
+ import { Images, Money, ServiceType, Weekday } from '../global';
3
+ export interface RevenueCenterParams {
4
+ type: string;
5
+ is_outpost?: boolean;
6
+ lat?: number;
7
+ lng?: number;
8
+ requestedAt?: string;
9
+ }
10
+ export declare type RevenueCenterType = 'POS' | 'OLO' | 'CATERING';
11
+ export interface RevenueCenterAddress {
12
+ city: string;
13
+ cross_streets: string;
14
+ lat: number;
15
+ lng: number;
16
+ phone: string;
17
+ postal_code: string;
18
+ state: string;
19
+ street: string;
20
+ }
21
+ export interface DeliveryZone {
22
+ coordinates: number[][];
23
+ description: string | null;
24
+ priority: number | null;
25
+ }
26
+ export declare type ExcludedTime = {
27
+ [key: DateString]: number[];
28
+ };
29
+ export declare type ExcludedTimes = {
30
+ [key in ServiceType]: ExcludedTime;
31
+ };
32
+ export interface FirstTime {
33
+ date: DateString;
34
+ has_asap: boolean;
35
+ minutes: number;
36
+ time: TimeHuman;
37
+ utc: ISOString;
38
+ wait_minutes: number | null;
39
+ weekday: Weekday;
40
+ }
41
+ export declare type FirstTimes = {
42
+ [key in ServiceType]: FirstTime;
43
+ };
44
+ export interface GroupOrdering {
45
+ guest_limit: number | null;
46
+ lead_time: number;
47
+ prep_time: number;
48
+ }
49
+ export interface HoursWeekday {
50
+ close: Time24 | null;
51
+ holiday: string | null;
52
+ open: Time24 | null;
53
+ weekday: Weekday;
54
+ }
55
+ export declare type Hours = {
56
+ [key in ServiceType]: HoursWeekday[] | null;
57
+ } & {
58
+ description: string;
59
+ };
60
+ export interface ValidTime {
61
+ is_orderable: boolean;
62
+ minutes: number;
63
+ time: string;
64
+ }
65
+ export declare type ValidTimeList = ValidTime[];
66
+ export declare type ValidTimes = {
67
+ [key in ServiceType]: {
68
+ [key in Weekday]: ValidTimeList | null;
69
+ } | null;
70
+ };
71
+ export interface HolidayHours extends HoursWeekday {
72
+ valid_times: ValidTimeList;
73
+ }
74
+ export declare type Holidays = {
75
+ [key: DateString]: {
76
+ [key in ServiceType]: HolidayHours | null;
77
+ };
78
+ };
79
+ export interface OrderBy {
80
+ time: Time24;
81
+ weekday: Weekday;
82
+ }
83
+ export interface OrderTime {
84
+ date: DateString;
85
+ end_time: Time24;
86
+ order_by: OrderBy;
87
+ start_time: Time24;
88
+ weekday: Weekday;
89
+ }
90
+ export declare type OrderTimes = {
91
+ [key in ServiceType]: OrderTime[] | null;
92
+ };
93
+ export interface OrderByWithDate {
94
+ date: Date;
95
+ time: Time24;
96
+ weekday: Weekday;
97
+ }
98
+ export interface OrderTimeWithDate {
99
+ date: Date;
100
+ end_time: Time24;
101
+ order_by: OrderByWithDate;
102
+ start_time: Time24;
103
+ weekday: Weekday;
104
+ iso: ISOString;
105
+ }
106
+ export declare type OrderTimesWithDate = {
107
+ [key in ServiceType]: OrderTimeWithDate[] | null;
108
+ };
109
+ export declare type RevenueCenterStatus = 'CLOSED' | 'CLOSED_TEMPORARILY' | 'COMING_SOON' | 'HIDDEN' | 'OPEN';
110
+ export interface RevenueCenterUser {
111
+ distance_from: number;
112
+ in_delivery_zone: boolean;
13
113
  }
14
114
  export interface RevenueCenter {
15
- credit: PaymentProcessing;
16
- dine_in_prompt: boolean;
17
- dine_in_show: boolean;
18
- end_of_day: TimeString;
19
- greeting: string;
20
- has_loyalty: boolean;
21
- is_closed: boolean;
115
+ address: RevenueCenterAddress;
116
+ cutoff_time: TimeHuman | null;
117
+ days_ahead: number;
118
+ delivery_url: string;
119
+ delivery_zone: DeliveryZone;
120
+ description: string | null;
121
+ directions_url: string | null;
122
+ distance?: number;
123
+ excluded_times: ExcludedTimes | null;
124
+ first_times: FirstTimes | null;
125
+ group_ordering: GroupOrdering;
126
+ has_curbside: boolean;
127
+ holidays: Holidays | null;
128
+ hours: Hours;
129
+ images: Images;
130
+ inZone?: boolean;
131
+ is_new: boolean;
22
132
  is_outpost: boolean;
23
- is_temporarily_closed: boolean;
24
- item_discount_approval: boolean;
133
+ is_parent: boolean;
134
+ lead_time_in_hours: number | null;
135
+ menu_pdf_url: string | null;
25
136
  name: string;
26
- olo_print_device_id: number;
27
- olo_print_order_type: 'BOTH_OLO_CATERING' | 'OLO_ONLY' | 'CATERING_ONLY';
28
- olo_print_server_id: number;
29
- olo_print_stage: 'PLACED' | 'FIRED' | 'CONFIRMED';
30
- order_page_swipe: boolean;
31
- overtime_threshold: number;
32
- overtime_threshold_daily: number;
33
- page_timeout: number;
34
- punch_type: PunchAuthType;
35
- receipt_footer: string;
36
- receipt_header: string;
37
- receipt_phone: boolean;
137
+ order_maximum: {
138
+ [key in ServiceType]: Money;
139
+ };
140
+ order_minimum: {
141
+ [key in ServiceType]: Money;
142
+ };
143
+ order_times: OrderTimes;
144
+ priority?: number;
38
145
  revenue_center_id: number;
39
- revenue_center_type: OrderType;
40
- send_offline_alerts: boolean;
41
- service_types: Array<ServiceType>;
42
- short_name: string;
146
+ revenue_center_type: RevenueCenterType;
147
+ service_types: ServiceType[];
43
148
  slug: string;
44
- starting_cash: Money;
45
- tax_exempt_approval: boolean;
46
- taxes: Array<RevenueCenterTax>;
47
- week_start_day: Weekday;
48
- delivery_wait_time_id: number | null;
49
- temporary_delivery_wait_time_id: number | null;
50
- pickup_wait_time_id: number | null;
51
- temporary_pickup_wait_time_id: number | null;
52
- distance?: number;
149
+ status: RevenueCenterStatus;
150
+ tax_exempt_is_allowed: boolean;
151
+ time_ranges: {
152
+ [key in ServiceType]: number | null;
153
+ };
154
+ timezone: TimezonePython;
155
+ user: RevenueCenterUser | null;
156
+ valid_times: ValidTimes | null;
157
+ wait_times: {
158
+ [key in ServiceType]: number;
159
+ };
53
160
  }
54
- export declare type RevenueCenterType = 'POS' | 'OLO' | 'CATERING';
161
+ export declare type RevenueCenters = RevenueCenter[];
162
+ export interface RevenueCenterWithDistance extends RevenueCenter {
163
+ distance: number;
164
+ inZone: boolean;
165
+ priority: number;
166
+ }
167
+ export declare type RevenueCentersWithDistance = RevenueCenterWithDistance[];
@@ -15,7 +15,7 @@ export declare type FullOrderType = OrderType | 'MAIN_MENU' | 'ECOMMERCE';
15
15
  export declare type OrderTypeMap = {
16
16
  [Property in OrderType]: string;
17
17
  };
18
- export declare type ServiceType = 'WALKIN' | 'PICKUP' | 'DELIVERY' | 'PORTAL' | 'OUTPOST';
18
+ export declare type ServiceType = 'WALKIN' | 'PICKUP' | 'DELIVERY';
19
19
  export declare type ServiceTypeMap = {
20
20
  [Property in ServiceType]: string;
21
21
  };
@@ -44,3 +44,9 @@ export interface PicklistOption {
44
44
  export declare type PicklistOptions = PicklistOption[];
45
45
  export declare type DeviceType = 'DESKTOP' | 'KIOSK' | 'MOBILE' | 'NONE' | 'TABLET';
46
46
  export declare type PrepType = 'EAT_HERE' | 'TAKE_OUT';
47
+ export declare type ImageType = 'APP_IMAGE' | 'LARGE_IMAGE' | 'SMALL_IMAGE';
48
+ export interface Image {
49
+ type: ImageType;
50
+ url: string;
51
+ }
52
+ export declare type Images = Image[];
@@ -8,7 +8,7 @@ export interface RequestErrorMessage {
8
8
  message: string;
9
9
  title: string;
10
10
  }
11
- export declare type RequestErrorParams = Record<string, RequestErrorMessage>;
11
+ export declare type RequestErrorParams = Record<string, string>;
12
12
  export interface RequestErrorAPI extends RequestErrorMessage {
13
13
  status: number;
14
14
  params?: RequestErrorParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
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",
@@ -1,187 +0,0 @@
1
- import { DateString, ISOString, Time24, TimeHuman, TimezonePython } from '../../datetimes';
2
- import { Money, ServiceType, Weekday } from '../../global';
3
- import { OrderItemImages } from '../order';
4
- import { RevenueCenterType } from '../revenueCenter';
5
- export interface RevenueCenterAddress {
6
- city: string;
7
- cross_streets: string;
8
- lat: number;
9
- lng: number;
10
- phone: string;
11
- postal_code: string;
12
- state: string;
13
- street: string;
14
- }
15
- export interface DeliveryZone {
16
- coordinates: Array<Array<number>>;
17
- description: string | null;
18
- priority: number;
19
- }
20
- export interface FirstTime {
21
- date: string;
22
- has_asap: boolean;
23
- minutes: number;
24
- time: TimeHuman;
25
- utc: ISOString;
26
- wait_minutes: number | null;
27
- weekday: Weekday;
28
- interval?: number;
29
- }
30
- export interface RevenueCenterGroupOrdering {
31
- guest_limit: number;
32
- lead_time: number;
33
- prep_time: number;
34
- }
35
- export interface Hours {
36
- close: Time24 | null;
37
- holiday: string | null;
38
- open: Time24 | null;
39
- weekday: Weekday;
40
- }
41
- export interface ValidTime {
42
- is_orderable: boolean;
43
- minutes: number;
44
- time: string;
45
- interval: number;
46
- times: ValidTimes | null;
47
- }
48
- export declare type ValidTimes = Array<ValidTime>;
49
- export interface HolidayItem extends Hours {
50
- valid_times: ValidTimes;
51
- }
52
- export declare type RevenueCenterImageType = 'APP_IMAGE' | 'SMALL_IMAGE' | 'LARGE_IMAGE';
53
- export interface RevenueCenterImage {
54
- type: RevenueCenterImageType;
55
- url: string;
56
- }
57
- export declare type ExcludedTimes = {
58
- [key in ServiceType]: {
59
- [key: DateString]: number[];
60
- };
61
- };
62
- export interface OrderBy {
63
- time: Time24;
64
- weekday: Weekday;
65
- date: Date | string;
66
- }
67
- export interface OrderTime {
68
- date: DateString | Date;
69
- end_time: Time24;
70
- order_by: OrderBy;
71
- start_time: Time24;
72
- weekday: Weekday;
73
- iso?: ISOString;
74
- }
75
- export declare type RevenueCenterOrderTimes = {
76
- [key in ServiceType]: Array<OrderTime> | null;
77
- };
78
- export interface CustomerRevenueCenterSettings {
79
- cutoff_time: string;
80
- days_ahead: {
81
- [key in ServiceType]?: number;
82
- };
83
- first_times: {
84
- [key in ServiceType]?: FirstTime | null;
85
- };
86
- group_ordering: RevenueCenterGroupOrdering;
87
- holidays: {
88
- [key: DateString]: {
89
- [key in ServiceType]?: HolidayItem | null;
90
- };
91
- };
92
- lead_time_in_hours: number;
93
- order_maximum: {
94
- [key in ServiceType]: Money;
95
- };
96
- order_minimum: {
97
- [key in ServiceType]: Money;
98
- };
99
- order_times: RevenueCenterOrderTimes;
100
- tax_exempt_is_allowed: boolean;
101
- time_ranges: {
102
- [key in ServiceType]: number | null;
103
- };
104
- valid_times: {
105
- [key in ServiceType]?: {
106
- [key in Weekday]?: ValidTimes;
107
- };
108
- };
109
- wait_times: {
110
- [key in ServiceType]?: number;
111
- };
112
- excluded_times: ExcludedTimes | null;
113
- service_types?: Array<ServiceType>;
114
- }
115
- export declare type CustomerRevenueCenterHours = {
116
- [key in ServiceType]?: Array<Hours>;
117
- } & {
118
- description?: string;
119
- };
120
- export interface CustomerRevenueCenter {
121
- id?: number | null;
122
- address: RevenueCenterAddress;
123
- cutoff_time: TimeHuman | null;
124
- days_ahead: number;
125
- delivery_url: string;
126
- delivery_zone: DeliveryZone;
127
- description: string | null;
128
- directions_url: string;
129
- excluded_times: ExcludedTimes | null;
130
- first_times: {
131
- [key in ServiceType]?: FirstTime | null;
132
- };
133
- group_ordering: RevenueCenterGroupOrdering;
134
- has_curbside: boolean;
135
- holidays: {
136
- [key: DateString]: {
137
- [key in ServiceType]?: HolidayItem | null;
138
- };
139
- };
140
- hours: CustomerRevenueCenterHours;
141
- is_new: boolean;
142
- is_outpost: boolean;
143
- is_parent: boolean;
144
- lead_time_in_hours: number | null;
145
- menu_pdf_url: string | null;
146
- name: string;
147
- order_maximum: {
148
- [key in ServiceType]: Money;
149
- };
150
- order_minimum: {
151
- [key in ServiceType]: Money;
152
- };
153
- order_times: RevenueCenterOrderTimes;
154
- revenue_center_id: number;
155
- revenue_center_type: RevenueCenterType;
156
- service_types: Array<ServiceType>;
157
- slug: string;
158
- status: string;
159
- tax_exempt_is_allowed: boolean;
160
- time_ranges: {
161
- [key in ServiceType]: number | null;
162
- };
163
- timezone?: TimezonePython;
164
- user: any;
165
- wait_times: {
166
- [key in ServiceType]?: number;
167
- };
168
- valid_times: {
169
- [key in ServiceType]?: {
170
- [key in Weekday]?: ValidTimes;
171
- };
172
- };
173
- settings?: CustomerRevenueCenterSettings;
174
- distance?: number;
175
- inZone?: boolean;
176
- priority?: number;
177
- images?: OrderItemImages;
178
- app_image_url?: string;
179
- hours_desc?: string;
180
- }
181
- export declare type CustomerRevenueCenters = Array<CustomerRevenueCenter>;
182
- export interface AvailableDates {
183
- minDate: Date | null;
184
- maxDate: Date | null;
185
- excludeDates: Array<Date>;
186
- filterDate: (date: Date) => boolean;
187
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });