@open-tender/types 0.4.61 → 0.4.63

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 (239) hide show
  1. package/LICENSE.md +21 -21
  2. package/README.md +2 -2
  3. package/dist/cjs/index.d.ts +1 -1
  4. package/dist/cjs/index.js +4 -4
  5. package/dist/cjs/types/api/alerts.d.ts +5 -5
  6. package/dist/cjs/types/api/alerts.js +2 -2
  7. package/dist/cjs/types/api/allergens.d.ts +13 -13
  8. package/dist/cjs/types/api/allergens.js +2 -2
  9. package/dist/cjs/types/api/announcements.d.ts +57 -57
  10. package/dist/cjs/types/api/announcements.js +2 -2
  11. package/dist/cjs/types/api/arrivals.d.ts +14 -14
  12. package/dist/cjs/types/api/arrivals.js +2 -2
  13. package/dist/cjs/types/api/cart.d.ts +106 -106
  14. package/dist/cjs/types/api/cart.js +2 -2
  15. package/dist/cjs/types/api/checkout.d.ts +307 -307
  16. package/dist/cjs/types/api/checkout.js +29 -29
  17. package/dist/cjs/types/api/completedOrders.d.ts +42 -42
  18. package/dist/cjs/types/api/completedOrders.js +2 -2
  19. package/dist/cjs/types/api/config.d.ts +511 -511
  20. package/dist/cjs/types/api/config.js +2 -2
  21. package/dist/cjs/types/api/creditCards.d.ts +39 -39
  22. package/dist/cjs/types/api/creditCards.js +2 -2
  23. package/dist/cjs/types/api/customer/account.d.ts +24 -24
  24. package/dist/cjs/types/api/customer/account.js +2 -2
  25. package/dist/cjs/types/api/customer/addresses.d.ts +24 -24
  26. package/dist/cjs/types/api/customer/addresses.js +2 -2
  27. package/dist/cjs/types/api/customer/allergens.d.ts +5 -5
  28. package/dist/cjs/types/api/customer/allergens.js +2 -2
  29. package/dist/cjs/types/api/customer/communicationPreferences.d.ts +12 -12
  30. package/dist/cjs/types/api/customer/communicationPreferences.js +2 -2
  31. package/dist/cjs/types/api/customer/customer.d.ts +54 -54
  32. package/dist/cjs/types/api/customer/customer.js +2 -2
  33. package/dist/cjs/types/api/customer/giftCards.d.ts +36 -36
  34. package/dist/cjs/types/api/customer/giftCards.js +2 -2
  35. package/dist/cjs/types/api/customer/groupOrders.d.ts +62 -62
  36. package/dist/cjs/types/api/customer/groupOrders.js +11 -11
  37. package/dist/cjs/types/api/customer/houseAccounts.d.ts +21 -21
  38. package/dist/cjs/types/api/customer/houseAccounts.js +2 -2
  39. package/dist/cjs/types/api/customer/identify.d.ts +46 -46
  40. package/dist/cjs/types/api/customer/identify.js +2 -2
  41. package/dist/cjs/types/api/customer/index.d.ts +13 -13
  42. package/dist/cjs/types/api/customer/index.js +17 -17
  43. package/dist/cjs/types/api/customer/loyalty.d.ts +70 -70
  44. package/dist/cjs/types/api/customer/loyalty.js +2 -2
  45. package/dist/cjs/types/api/customer/qrcode.d.ts +3 -3
  46. package/dist/cjs/types/api/customer/qrcode.js +2 -2
  47. package/dist/cjs/types/api/customer/thanx.d.ts +26 -26
  48. package/dist/cjs/types/api/customer/thanx.js +2 -2
  49. package/dist/cjs/types/api/customer/tpls.d.ts +74 -74
  50. package/dist/cjs/types/api/customer/tpls.js +2 -2
  51. package/dist/cjs/types/api/devices.d.ts +94 -94
  52. package/dist/cjs/types/api/devices.js +2 -2
  53. package/dist/cjs/types/api/discounts.d.ts +63 -63
  54. package/dist/cjs/types/api/discounts.js +2 -2
  55. package/dist/cjs/types/api/donations.d.ts +12 -12
  56. package/dist/cjs/types/api/donations.js +2 -2
  57. package/dist/cjs/types/api/employee.d.ts +70 -70
  58. package/dist/cjs/types/api/employee.js +2 -2
  59. package/dist/cjs/types/api/errorAlerts.d.ts +9 -9
  60. package/dist/cjs/types/api/errorAlerts.js +2 -2
  61. package/dist/cjs/types/api/favorite.d.ts +13 -13
  62. package/dist/cjs/types/api/favorite.js +2 -2
  63. package/dist/cjs/types/api/giftCard.d.ts +11 -11
  64. package/dist/cjs/types/api/giftCard.js +2 -2
  65. package/dist/cjs/types/api/index.d.ts +36 -36
  66. package/dist/cjs/types/api/index.js +39 -39
  67. package/dist/cjs/types/api/itemTypes.d.ts +15 -15
  68. package/dist/cjs/types/api/itemTypes.js +2 -2
  69. package/dist/cjs/types/api/kds.d.ts +100 -100
  70. package/dist/cjs/types/api/kds.js +2 -2
  71. package/dist/cjs/types/api/kiosk.d.ts +35 -34
  72. package/dist/cjs/types/api/kiosk.js +2 -2
  73. package/dist/cjs/types/api/menu.d.ts +179 -179
  74. package/dist/cjs/types/api/menu.js +2 -2
  75. package/dist/cjs/types/api/menuPages.d.ts +21 -21
  76. package/dist/cjs/types/api/menuPages.js +2 -2
  77. package/dist/cjs/types/api/messages.d.ts +5 -5
  78. package/dist/cjs/types/api/messages.js +2 -2
  79. package/dist/cjs/types/api/notifications.d.ts +5 -5
  80. package/dist/cjs/types/api/notifications.js +2 -2
  81. package/dist/cjs/types/api/offlineAuths.d.ts +12 -12
  82. package/dist/cjs/types/api/offlineAuths.js +2 -2
  83. package/dist/cjs/types/api/order.d.ts +350 -350
  84. package/dist/cjs/types/api/order.js +19 -19
  85. package/dist/cjs/types/api/orders.d.ts +5 -5
  86. package/dist/cjs/types/api/orders.js +2 -2
  87. package/dist/cjs/types/api/refund.d.ts +22 -22
  88. package/dist/cjs/types/api/refund.js +2 -2
  89. package/dist/cjs/types/api/revenueCenter.d.ts +167 -167
  90. package/dist/cjs/types/api/revenueCenter.js +2 -2
  91. package/dist/cjs/types/api/selectOptions.d.ts +7 -7
  92. package/dist/cjs/types/api/selectOptions.js +2 -2
  93. package/dist/cjs/types/api/settings.d.ts +10 -10
  94. package/dist/cjs/types/api/settings.js +2 -2
  95. package/dist/cjs/types/api/store.d.ts +124 -102
  96. package/dist/cjs/types/api/store.js +2 -2
  97. package/dist/cjs/types/api/surcharges.d.ts +15 -15
  98. package/dist/cjs/types/api/surcharges.js +2 -2
  99. package/dist/cjs/types/api/tags.d.ts +13 -13
  100. package/dist/cjs/types/api/tags.js +2 -2
  101. package/dist/cjs/types/api/taxes.d.ts +15 -15
  102. package/dist/cjs/types/api/taxes.js +2 -2
  103. package/dist/cjs/types/api/theme.d.ts +737 -737
  104. package/dist/cjs/types/api/theme.js +2 -2
  105. package/dist/cjs/types/datetimes.d.ts +52 -52
  106. package/dist/cjs/types/datetimes.js +2 -2
  107. package/dist/cjs/types/errors.d.ts +2 -2
  108. package/dist/cjs/types/errors.js +5 -5
  109. package/dist/cjs/types/global.d.ts +58 -58
  110. package/dist/cjs/types/global.js +2 -2
  111. package/dist/cjs/types/index.d.ts +8 -8
  112. package/dist/cjs/types/index.js +11 -11
  113. package/dist/cjs/types/inputs.d.ts +82 -82
  114. package/dist/cjs/types/inputs.js +23 -23
  115. package/dist/cjs/types/pizzaBuilder.d.ts +7 -7
  116. package/dist/cjs/types/pizzaBuilder.js +2 -2
  117. package/dist/cjs/types/request.d.ts +27 -27
  118. package/dist/cjs/types/request.js +2 -2
  119. package/dist/cjs/types/themePos.d.ts +117 -117
  120. package/dist/cjs/types/themePos.js +2 -2
  121. package/dist/esm/index.d.ts +1 -1
  122. package/dist/esm/index.js +1 -1
  123. package/dist/esm/types/api/alerts.d.ts +5 -5
  124. package/dist/esm/types/api/alerts.js +1 -1
  125. package/dist/esm/types/api/allergens.d.ts +13 -13
  126. package/dist/esm/types/api/allergens.js +1 -1
  127. package/dist/esm/types/api/announcements.d.ts +57 -57
  128. package/dist/esm/types/api/announcements.js +1 -1
  129. package/dist/esm/types/api/arrivals.d.ts +14 -14
  130. package/dist/esm/types/api/arrivals.js +1 -1
  131. package/dist/esm/types/api/cart.d.ts +106 -106
  132. package/dist/esm/types/api/cart.js +1 -1
  133. package/dist/esm/types/api/checkout.d.ts +307 -307
  134. package/dist/esm/types/api/checkout.js +20 -20
  135. package/dist/esm/types/api/completedOrders.d.ts +42 -42
  136. package/dist/esm/types/api/completedOrders.js +1 -1
  137. package/dist/esm/types/api/config.d.ts +511 -511
  138. package/dist/esm/types/api/config.js +1 -1
  139. package/dist/esm/types/api/creditCards.d.ts +39 -39
  140. package/dist/esm/types/api/creditCards.js +1 -1
  141. package/dist/esm/types/api/customer/account.d.ts +24 -24
  142. package/dist/esm/types/api/customer/account.js +1 -1
  143. package/dist/esm/types/api/customer/addresses.d.ts +24 -24
  144. package/dist/esm/types/api/customer/addresses.js +1 -1
  145. package/dist/esm/types/api/customer/allergens.d.ts +5 -5
  146. package/dist/esm/types/api/customer/allergens.js +1 -1
  147. package/dist/esm/types/api/customer/communicationPreferences.d.ts +12 -12
  148. package/dist/esm/types/api/customer/communicationPreferences.js +1 -1
  149. package/dist/esm/types/api/customer/customer.d.ts +54 -54
  150. package/dist/esm/types/api/customer/customer.js +1 -1
  151. package/dist/esm/types/api/customer/giftCards.d.ts +36 -36
  152. package/dist/esm/types/api/customer/giftCards.js +1 -1
  153. package/dist/esm/types/api/customer/groupOrders.d.ts +62 -62
  154. package/dist/esm/types/api/customer/groupOrders.js +6 -6
  155. package/dist/esm/types/api/customer/houseAccounts.d.ts +21 -21
  156. package/dist/esm/types/api/customer/houseAccounts.js +1 -1
  157. package/dist/esm/types/api/customer/identify.d.ts +46 -46
  158. package/dist/esm/types/api/customer/identify.js +1 -1
  159. package/dist/esm/types/api/customer/index.d.ts +13 -13
  160. package/dist/esm/types/api/customer/index.js +14 -14
  161. package/dist/esm/types/api/customer/loyalty.d.ts +70 -70
  162. package/dist/esm/types/api/customer/loyalty.js +1 -1
  163. package/dist/esm/types/api/customer/qrcode.d.ts +3 -3
  164. package/dist/esm/types/api/customer/qrcode.js +1 -1
  165. package/dist/esm/types/api/customer/thanx.d.ts +26 -26
  166. package/dist/esm/types/api/customer/thanx.js +1 -1
  167. package/dist/esm/types/api/customer/tpls.d.ts +74 -74
  168. package/dist/esm/types/api/customer/tpls.js +1 -1
  169. package/dist/esm/types/api/devices.d.ts +94 -94
  170. package/dist/esm/types/api/devices.js +1 -1
  171. package/dist/esm/types/api/discounts.d.ts +63 -63
  172. package/dist/esm/types/api/discounts.js +1 -1
  173. package/dist/esm/types/api/donations.d.ts +12 -12
  174. package/dist/esm/types/api/donations.js +1 -1
  175. package/dist/esm/types/api/employee.d.ts +70 -70
  176. package/dist/esm/types/api/employee.js +1 -1
  177. package/dist/esm/types/api/errorAlerts.d.ts +9 -9
  178. package/dist/esm/types/api/errorAlerts.js +1 -1
  179. package/dist/esm/types/api/favorite.d.ts +13 -13
  180. package/dist/esm/types/api/favorite.js +1 -1
  181. package/dist/esm/types/api/giftCard.d.ts +11 -11
  182. package/dist/esm/types/api/giftCard.js +1 -1
  183. package/dist/esm/types/api/index.d.ts +36 -36
  184. package/dist/esm/types/api/index.js +36 -36
  185. package/dist/esm/types/api/itemTypes.d.ts +15 -15
  186. package/dist/esm/types/api/itemTypes.js +1 -1
  187. package/dist/esm/types/api/kds.d.ts +100 -100
  188. package/dist/esm/types/api/kds.js +1 -1
  189. package/dist/esm/types/api/kiosk.d.ts +35 -34
  190. package/dist/esm/types/api/kiosk.js +1 -1
  191. package/dist/esm/types/api/menu.d.ts +179 -179
  192. package/dist/esm/types/api/menu.js +1 -1
  193. package/dist/esm/types/api/menuPages.d.ts +21 -21
  194. package/dist/esm/types/api/menuPages.js +1 -1
  195. package/dist/esm/types/api/messages.d.ts +5 -5
  196. package/dist/esm/types/api/messages.js +1 -1
  197. package/dist/esm/types/api/notifications.d.ts +5 -5
  198. package/dist/esm/types/api/notifications.js +1 -1
  199. package/dist/esm/types/api/offlineAuths.d.ts +12 -12
  200. package/dist/esm/types/api/offlineAuths.js +1 -1
  201. package/dist/esm/types/api/order.d.ts +350 -350
  202. package/dist/esm/types/api/order.js +12 -12
  203. package/dist/esm/types/api/orders.d.ts +5 -5
  204. package/dist/esm/types/api/orders.js +1 -1
  205. package/dist/esm/types/api/refund.d.ts +22 -22
  206. package/dist/esm/types/api/refund.js +1 -1
  207. package/dist/esm/types/api/revenueCenter.d.ts +167 -167
  208. package/dist/esm/types/api/revenueCenter.js +1 -1
  209. package/dist/esm/types/api/selectOptions.d.ts +7 -7
  210. package/dist/esm/types/api/selectOptions.js +1 -1
  211. package/dist/esm/types/api/settings.d.ts +10 -10
  212. package/dist/esm/types/api/settings.js +1 -1
  213. package/dist/esm/types/api/store.d.ts +124 -102
  214. package/dist/esm/types/api/store.js +1 -1
  215. package/dist/esm/types/api/surcharges.d.ts +15 -15
  216. package/dist/esm/types/api/surcharges.js +1 -1
  217. package/dist/esm/types/api/tags.d.ts +13 -13
  218. package/dist/esm/types/api/tags.js +1 -1
  219. package/dist/esm/types/api/taxes.d.ts +15 -15
  220. package/dist/esm/types/api/taxes.js +1 -1
  221. package/dist/esm/types/api/theme.d.ts +737 -737
  222. package/dist/esm/types/api/theme.js +1 -1
  223. package/dist/esm/types/datetimes.d.ts +52 -52
  224. package/dist/esm/types/datetimes.js +1 -1
  225. package/dist/esm/types/errors.d.ts +2 -2
  226. package/dist/esm/types/errors.js +2 -2
  227. package/dist/esm/types/global.d.ts +58 -58
  228. package/dist/esm/types/global.js +1 -1
  229. package/dist/esm/types/index.d.ts +8 -8
  230. package/dist/esm/types/index.js +8 -8
  231. package/dist/esm/types/inputs.d.ts +82 -82
  232. package/dist/esm/types/inputs.js +15 -15
  233. package/dist/esm/types/pizzaBuilder.d.ts +7 -7
  234. package/dist/esm/types/pizzaBuilder.js +1 -1
  235. package/dist/esm/types/request.d.ts +27 -27
  236. package/dist/esm/types/request.js +1 -1
  237. package/dist/esm/types/themePos.d.ts +117 -117
  238. package/dist/esm/types/themePos.js +1 -1
  239. package/package.json +59 -59
@@ -1,12 +1,12 @@
1
- export const isOrderCustomer = (customer) => {
2
- return customer.customer_id !== undefined;
3
- };
4
- export const isCreditTender = (tender) => {
5
- return tender.tender_type === 'CREDIT';
6
- };
7
- export const isGiftCardTender = (tender) => {
8
- return tender.tender_type === 'GIFT_CARD';
9
- };
10
- export const isHouseAccountTender = (tender) => {
11
- return tender.tender_type === 'HOUSE_ACCOUNT';
12
- };
1
+ export const isOrderCustomer = (customer) => {
2
+ return customer.customer_id !== undefined;
3
+ };
4
+ export const isCreditTender = (tender) => {
5
+ return tender.tender_type === 'CREDIT';
6
+ };
7
+ export const isGiftCardTender = (tender) => {
8
+ return tender.tender_type === 'GIFT_CARD';
9
+ };
10
+ export const isHouseAccountTender = (tender) => {
11
+ return tender.tender_type === 'HOUSE_ACCOUNT';
12
+ };
@@ -1,5 +1,5 @@
1
- export interface OrdersCount {
2
- current: any;
3
- future: any;
4
- qa: any;
5
- }
1
+ export interface OrdersCount {
2
+ current: any;
3
+ future: any;
4
+ qa: any;
5
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,22 +1,22 @@
1
- import { Money } from '../global';
2
- export interface RefundItem {
3
- item_no: number;
4
- quantity: number;
5
- }
6
- export declare type RefundItems = Array<RefundItem>;
7
- export interface RefundSurcharge {
8
- surcharge_id: number;
9
- }
10
- export declare type RefundSurcharges = Array<RefundSurcharge>;
11
- export interface Refund {
12
- full_refund: boolean;
13
- all_taxes: boolean;
14
- items: RefundItems;
15
- surcharges: RefundSurcharges;
16
- tip: Money;
17
- shipping: Money;
18
- }
19
- export interface RefundArgs {
20
- orderId: string;
21
- refund: Refund;
22
- }
1
+ import { Money } from '../global';
2
+ export interface RefundItem {
3
+ item_no: number;
4
+ quantity: number;
5
+ }
6
+ export declare type RefundItems = Array<RefundItem>;
7
+ export interface RefundSurcharge {
8
+ surcharge_id: number;
9
+ }
10
+ export declare type RefundSurcharges = Array<RefundSurcharge>;
11
+ export interface Refund {
12
+ full_refund: boolean;
13
+ all_taxes: boolean;
14
+ items: RefundItems;
15
+ surcharges: RefundSurcharges;
16
+ tip: Money;
17
+ shipping: Money;
18
+ }
19
+ export interface RefundArgs {
20
+ orderId: string;
21
+ refund: Refund;
22
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,167 +1,167 @@
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 = '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;
113
- }
114
- export interface RevenueCenter {
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;
132
- is_outpost: boolean;
133
- is_parent: boolean;
134
- lead_time_in_hours: number | null;
135
- menu_pdf_url: string | null;
136
- name: string;
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;
145
- revenue_center_id: number;
146
- revenue_center_type: RevenueCenterType;
147
- service_types: ServiceType[];
148
- slug: string;
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
- };
160
- }
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[];
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 = '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;
113
+ }
114
+ export interface RevenueCenter {
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;
132
+ is_outpost: boolean;
133
+ is_parent: boolean;
134
+ lead_time_in_hours: number | null;
135
+ menu_pdf_url: string | null;
136
+ name: string;
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;
145
+ revenue_center_id: number;
146
+ revenue_center_type: RevenueCenterType;
147
+ service_types: ServiceType[];
148
+ slug: string;
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
+ };
160
+ }
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[];
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,7 +1,7 @@
1
- export interface SelectOption {
2
- name: string;
3
- option_type: 'PAID_IN' | 'PAID_OUT';
4
- position: number;
5
- select_option_id: number;
6
- }
7
- export declare type SelectOptions = SelectOption[];
1
+ export interface SelectOption {
2
+ name: string;
3
+ option_type: 'PAID_IN' | 'PAID_OUT';
4
+ position: number;
5
+ select_option_id: number;
6
+ }
7
+ export declare type SelectOptions = SelectOption[];
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,10 +1,10 @@
1
- import { EntityType } from '../global';
2
- export interface Settings {
3
- entity_type: EntityType;
4
- object_id: number;
5
- version: number;
6
- data: Record<string, unknown>;
7
- }
8
- export interface InternalSettings {
9
- is_offline: boolean;
10
- }
1
+ import { EntityType } from '../global';
2
+ export interface Settings {
3
+ entity_type: EntityType;
4
+ object_id: number;
5
+ version: number;
6
+ data: Record<string, unknown>;
7
+ }
8
+ export interface InternalSettings {
9
+ is_offline: boolean;
10
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};