@open-tender/types 0.0.2 → 0.0.3

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 (205) hide show
  1. package/dist/cjs/index.d.ts +1 -0
  2. package/dist/cjs/index.js +4 -0
  3. package/dist/cjs/types/api/alerts.d.ts +5 -0
  4. package/dist/cjs/types/api/alerts.js +2 -0
  5. package/dist/cjs/types/api/allergens.d.ts +7 -0
  6. package/dist/cjs/types/api/allergens.js +2 -0
  7. package/dist/cjs/types/api/announcements.d.ts +47 -0
  8. package/dist/cjs/types/api/announcements.js +2 -0
  9. package/dist/cjs/types/api/arrivals.d.ts +14 -0
  10. package/dist/cjs/types/api/arrivals.js +2 -0
  11. package/dist/cjs/types/api/cart.d.ts +76 -0
  12. package/dist/cjs/types/api/cart.js +2 -0
  13. package/dist/cjs/types/api/checkout.d.ts +173 -0
  14. package/dist/cjs/types/api/checkout.js +2 -0
  15. package/dist/cjs/types/api/completedOrders.d.ts +42 -0
  16. package/dist/cjs/types/api/completedOrders.js +2 -0
  17. package/dist/cjs/types/api/config.d.ts +47 -0
  18. package/dist/cjs/types/api/config.js +2 -0
  19. package/dist/cjs/types/api/creditCards.d.ts +11 -0
  20. package/dist/cjs/types/api/creditCards.js +2 -0
  21. package/dist/cjs/types/api/customer/account.d.ts +22 -0
  22. package/dist/cjs/types/api/customer/account.js +2 -0
  23. package/dist/cjs/types/api/customer/addresses.d.ts +20 -0
  24. package/dist/cjs/types/api/customer/addresses.js +2 -0
  25. package/dist/cjs/types/api/customer/allergens.d.ts +5 -0
  26. package/dist/cjs/types/api/customer/allergens.js +2 -0
  27. package/dist/cjs/types/api/customer/communicationPreferences.d.ts +10 -0
  28. package/dist/cjs/types/api/customer/communicationPreferences.js +2 -0
  29. package/dist/cjs/types/api/customer/customer.d.ts +27 -0
  30. package/dist/cjs/types/api/customer/customer.js +2 -0
  31. package/dist/cjs/types/api/customer/giftCards.d.ts +12 -0
  32. package/dist/cjs/types/api/customer/giftCards.js +2 -0
  33. package/dist/cjs/types/api/customer/groupOrders.d.ts +33 -0
  34. package/dist/cjs/types/api/customer/groupOrders.js +2 -0
  35. package/dist/cjs/types/api/customer/houseAccounts.d.ts +13 -0
  36. package/dist/cjs/types/api/customer/houseAccounts.js +2 -0
  37. package/dist/cjs/types/api/customer/index.d.ts +11 -0
  38. package/dist/cjs/types/api/customer/index.js +14 -0
  39. package/dist/cjs/types/api/customer/loyalty.d.ts +64 -0
  40. package/dist/cjs/types/api/customer/loyalty.js +2 -0
  41. package/dist/cjs/types/api/customer/revenueCenters.d.ts +126 -0
  42. package/dist/cjs/types/api/customer/revenueCenters.js +2 -0
  43. package/dist/cjs/types/api/customer/rewards.d.ts +40 -0
  44. package/dist/cjs/types/api/customer/rewards.js +2 -0
  45. package/dist/cjs/types/api/device.d.ts +3 -0
  46. package/dist/cjs/types/api/device.js +2 -0
  47. package/dist/cjs/types/api/discounts.d.ts +20 -0
  48. package/dist/cjs/types/api/discounts.js +2 -0
  49. package/dist/cjs/types/api/donations.d.ts +12 -0
  50. package/dist/cjs/types/api/donations.js +2 -0
  51. package/dist/cjs/types/api/employee.d.ts +51 -0
  52. package/dist/cjs/types/api/employee.js +2 -0
  53. package/dist/cjs/types/api/errorAlerts.d.ts +9 -0
  54. package/dist/cjs/types/api/errorAlerts.js +2 -0
  55. package/dist/cjs/types/api/favorite.d.ts +70 -0
  56. package/dist/cjs/types/api/favorite.js +2 -0
  57. package/dist/cjs/types/api/giftCard.d.ts +11 -0
  58. package/dist/cjs/types/api/giftCard.js +2 -0
  59. package/dist/cjs/types/api/guest.d.ts +4 -0
  60. package/dist/cjs/types/api/guest.js +2 -0
  61. package/dist/cjs/types/api/index.d.ts +29 -0
  62. package/dist/cjs/types/api/index.js +32 -0
  63. package/dist/cjs/types/api/kds.d.ts +52 -0
  64. package/dist/cjs/types/api/kds.js +2 -0
  65. package/dist/cjs/types/api/menu.d.ts +135 -0
  66. package/dist/cjs/types/api/menu.js +2 -0
  67. package/dist/cjs/types/api/menuPages.d.ts +20 -0
  68. package/dist/cjs/types/api/menuPages.js +2 -0
  69. package/dist/cjs/types/api/messages.d.ts +5 -0
  70. package/dist/cjs/types/api/messages.js +2 -0
  71. package/dist/cjs/types/api/notifications.d.ts +5 -0
  72. package/dist/cjs/types/api/notifications.js +2 -0
  73. package/dist/cjs/types/api/offlineAuths.d.ts +12 -0
  74. package/dist/cjs/types/api/offlineAuths.js +2 -0
  75. package/dist/cjs/types/api/order.d.ts +427 -0
  76. package/dist/cjs/types/api/order.js +2 -0
  77. package/dist/cjs/types/api/orders.d.ts +5 -0
  78. package/dist/cjs/types/api/orders.js +2 -0
  79. package/dist/cjs/types/api/refund.d.ts +22 -0
  80. package/dist/cjs/types/api/refund.js +2 -0
  81. package/dist/cjs/types/api/revenueCenter.d.ts +52 -0
  82. package/dist/cjs/types/api/revenueCenter.js +2 -0
  83. package/dist/cjs/types/api/settings.d.ts +10 -0
  84. package/dist/cjs/types/api/settings.js +2 -0
  85. package/dist/cjs/types/api/store.d.ts +111 -0
  86. package/dist/cjs/types/api/store.js +2 -0
  87. package/dist/cjs/types/api/surcharges.d.ts +15 -0
  88. package/dist/cjs/types/api/surcharges.js +2 -0
  89. package/dist/cjs/types/api/taxes.d.ts +15 -0
  90. package/dist/cjs/types/api/taxes.js +2 -0
  91. package/dist/cjs/types/datetimes.d.ts +39 -0
  92. package/dist/cjs/types/datetimes.js +2 -0
  93. package/dist/cjs/types/errors.d.ts +2 -0
  94. package/dist/cjs/types/errors.js +5 -0
  95. package/dist/cjs/types/global.d.ts +39 -0
  96. package/dist/cjs/types/global.js +2 -0
  97. package/dist/cjs/types/index.d.ts +6 -0
  98. package/dist/cjs/types/index.js +9 -0
  99. package/dist/cjs/types/request.d.ts +14 -0
  100. package/dist/cjs/types/request.js +2 -0
  101. package/dist/cjs/types/theme.d.ts +109 -0
  102. package/dist/cjs/types/theme.js +2 -0
  103. package/dist/esm/index.d.ts +1 -0
  104. package/dist/esm/index.js +1 -0
  105. package/dist/esm/types/api/alerts.d.ts +5 -0
  106. package/dist/esm/types/api/alerts.js +1 -0
  107. package/dist/esm/types/api/allergens.d.ts +7 -0
  108. package/dist/esm/types/api/allergens.js +1 -0
  109. package/dist/esm/types/api/announcements.d.ts +47 -0
  110. package/dist/esm/types/api/announcements.js +1 -0
  111. package/dist/esm/types/api/arrivals.d.ts +14 -0
  112. package/dist/esm/types/api/arrivals.js +1 -0
  113. package/dist/esm/types/api/cart.d.ts +76 -0
  114. package/dist/esm/types/api/cart.js +1 -0
  115. package/dist/esm/types/api/checkout.d.ts +173 -0
  116. package/dist/esm/types/api/checkout.js +1 -0
  117. package/dist/esm/types/api/completedOrders.d.ts +42 -0
  118. package/dist/esm/types/api/completedOrders.js +1 -0
  119. package/dist/esm/types/api/config.d.ts +47 -0
  120. package/dist/esm/types/api/config.js +1 -0
  121. package/dist/esm/types/api/creditCards.d.ts +11 -0
  122. package/dist/esm/types/api/creditCards.js +1 -0
  123. package/dist/esm/types/api/customer/account.d.ts +22 -0
  124. package/dist/esm/types/api/customer/account.js +1 -0
  125. package/dist/esm/types/api/customer/addresses.d.ts +20 -0
  126. package/dist/esm/types/api/customer/addresses.js +1 -0
  127. package/dist/esm/types/api/customer/allergens.d.ts +5 -0
  128. package/dist/esm/types/api/customer/allergens.js +1 -0
  129. package/dist/esm/types/api/customer/communicationPreferences.d.ts +10 -0
  130. package/dist/esm/types/api/customer/communicationPreferences.js +1 -0
  131. package/dist/esm/types/api/customer/customer.d.ts +27 -0
  132. package/dist/esm/types/api/customer/customer.js +1 -0
  133. package/dist/esm/types/api/customer/giftCards.d.ts +12 -0
  134. package/dist/esm/types/api/customer/giftCards.js +1 -0
  135. package/dist/esm/types/api/customer/groupOrders.d.ts +33 -0
  136. package/dist/esm/types/api/customer/groupOrders.js +1 -0
  137. package/dist/esm/types/api/customer/houseAccounts.d.ts +13 -0
  138. package/dist/esm/types/api/customer/houseAccounts.js +1 -0
  139. package/dist/esm/types/api/customer/index.d.ts +11 -0
  140. package/dist/esm/types/api/customer/index.js +11 -0
  141. package/dist/esm/types/api/customer/loyalty.d.ts +64 -0
  142. package/dist/esm/types/api/customer/loyalty.js +1 -0
  143. package/dist/esm/types/api/customer/revenueCenters.d.ts +126 -0
  144. package/dist/esm/types/api/customer/revenueCenters.js +1 -0
  145. package/dist/esm/types/api/customer/rewards.d.ts +40 -0
  146. package/dist/esm/types/api/customer/rewards.js +1 -0
  147. package/dist/esm/types/api/device.d.ts +3 -0
  148. package/dist/esm/types/api/device.js +1 -0
  149. package/dist/esm/types/api/discounts.d.ts +20 -0
  150. package/dist/esm/types/api/discounts.js +1 -0
  151. package/dist/esm/types/api/donations.d.ts +12 -0
  152. package/dist/esm/types/api/donations.js +1 -0
  153. package/dist/esm/types/api/employee.d.ts +51 -0
  154. package/dist/esm/types/api/employee.js +1 -0
  155. package/dist/esm/types/api/errorAlerts.d.ts +9 -0
  156. package/dist/esm/types/api/errorAlerts.js +1 -0
  157. package/dist/esm/types/api/favorite.d.ts +70 -0
  158. package/dist/esm/types/api/favorite.js +1 -0
  159. package/dist/esm/types/api/giftCard.d.ts +11 -0
  160. package/dist/esm/types/api/giftCard.js +1 -0
  161. package/dist/esm/types/api/guest.d.ts +4 -0
  162. package/dist/esm/types/api/guest.js +1 -0
  163. package/dist/esm/types/api/index.d.ts +29 -0
  164. package/dist/esm/types/api/index.js +29 -0
  165. package/dist/esm/types/api/kds.d.ts +52 -0
  166. package/dist/esm/types/api/kds.js +1 -0
  167. package/dist/esm/types/api/menu.d.ts +135 -0
  168. package/dist/esm/types/api/menu.js +1 -0
  169. package/dist/esm/types/api/menuPages.d.ts +20 -0
  170. package/dist/esm/types/api/menuPages.js +1 -0
  171. package/dist/esm/types/api/messages.d.ts +5 -0
  172. package/dist/esm/types/api/messages.js +1 -0
  173. package/dist/esm/types/api/notifications.d.ts +5 -0
  174. package/dist/esm/types/api/notifications.js +1 -0
  175. package/dist/esm/types/api/offlineAuths.d.ts +12 -0
  176. package/dist/esm/types/api/offlineAuths.js +1 -0
  177. package/dist/esm/types/api/order.d.ts +427 -0
  178. package/dist/esm/types/api/order.js +1 -0
  179. package/dist/esm/types/api/orders.d.ts +5 -0
  180. package/dist/esm/types/api/orders.js +1 -0
  181. package/dist/esm/types/api/refund.d.ts +22 -0
  182. package/dist/esm/types/api/refund.js +1 -0
  183. package/dist/esm/types/api/revenueCenter.d.ts +52 -0
  184. package/dist/esm/types/api/revenueCenter.js +1 -0
  185. package/dist/esm/types/api/settings.d.ts +10 -0
  186. package/dist/esm/types/api/settings.js +1 -0
  187. package/dist/esm/types/api/store.d.ts +111 -0
  188. package/dist/esm/types/api/store.js +1 -0
  189. package/dist/esm/types/api/surcharges.d.ts +15 -0
  190. package/dist/esm/types/api/surcharges.js +1 -0
  191. package/dist/esm/types/api/taxes.d.ts +15 -0
  192. package/dist/esm/types/api/taxes.js +1 -0
  193. package/dist/esm/types/datetimes.d.ts +39 -0
  194. package/dist/esm/types/datetimes.js +1 -0
  195. package/dist/esm/types/errors.d.ts +2 -0
  196. package/dist/esm/types/errors.js +2 -0
  197. package/dist/esm/types/global.d.ts +39 -0
  198. package/dist/esm/types/global.js +1 -0
  199. package/dist/esm/types/index.d.ts +6 -0
  200. package/dist/esm/types/index.js +6 -0
  201. package/dist/esm/types/request.d.ts +14 -0
  202. package/dist/esm/types/request.js +1 -0
  203. package/dist/esm/types/theme.d.ts +109 -0
  204. package/dist/esm/types/theme.js +1 -0
  205. package/package.json +1 -1
@@ -0,0 +1,173 @@
1
+ import { ISOString, TimezonePython } from '../datetimes';
2
+ import { DiscountType, GratuityType, Money, OrderType, ServiceType, TenderType } from '../global';
3
+ import { Address, Customer, LoyaltyPoints } from './customer';
4
+ import { OrderDetails, OrderDiscounts, OrderFulfillment, OrderItem, OrderRevenueCenter, OrderShipment, OrderSurcharges, OrderTaxes, OrderTenders, OrderTotals } from './order';
5
+ export interface CustomerIdentifier {
6
+ card_token?: string;
7
+ phone?: string;
8
+ qr_code?: string;
9
+ }
10
+ export interface IdentifyCustomer {
11
+ data: CustomerIdentifier;
12
+ callback?: () => void;
13
+ showError?: boolean;
14
+ }
15
+ export interface CustomerDiscount {
16
+ customer_loyalty_id: number;
17
+ loyalty_program_id: number;
18
+ order_type: OrderType;
19
+ amount: Money;
20
+ name: string;
21
+ discount_id: number;
22
+ discount_type: DiscountType;
23
+ description: string;
24
+ before_surcharge: boolean;
25
+ is_taxed: boolean;
26
+ is_promo_code: boolean;
27
+ is_auto: boolean;
28
+ is_loyalty: boolean;
29
+ }
30
+ export declare type CustomerDiscounts = Array<CustomerDiscount>;
31
+ export interface CustomerCheckout {
32
+ customer: Customer;
33
+ discounts: CustomerDiscounts;
34
+ points: any;
35
+ discount: any;
36
+ }
37
+ export interface SimpleCartOption {
38
+ id: number;
39
+ quantity: number;
40
+ }
41
+ export interface SimpleCartGroup {
42
+ id: number;
43
+ options: Array<SimpleCartOption>;
44
+ }
45
+ export interface SimpleCartItem {
46
+ id: number;
47
+ quantity: number;
48
+ groups?: Array<SimpleCartGroup>;
49
+ made_for?: string;
50
+ notes?: string;
51
+ }
52
+ export declare type SimpleCart = Array<SimpleCartItem>;
53
+ export interface OrderCreateDetails {
54
+ eating_utensils?: boolean;
55
+ serving_utensils?: boolean;
56
+ person_count?: number | null;
57
+ notes?: string | null;
58
+ tax_exempt_id?: string | null;
59
+ cart_id?: number | null;
60
+ }
61
+ export interface OrderCreateGiftCard {
62
+ id: number;
63
+ gift_card_id?: number;
64
+ code?: string;
65
+ card_number: string;
66
+ amount: Money;
67
+ employee_id?: number;
68
+ }
69
+ export interface OrderCreateSurcharge {
70
+ id: number;
71
+ }
72
+ export interface OrderCreateDiscount {
73
+ id: number;
74
+ ext_id?: string | null;
75
+ }
76
+ export interface OrderCreateTax {
77
+ id: number;
78
+ }
79
+ export interface OrderCreatePoints {
80
+ index: number;
81
+ points: number;
82
+ }
83
+ export interface Tender {
84
+ tender_type: TenderType;
85
+ amount?: Money;
86
+ cash_back?: Money;
87
+ customer_card_id?: string;
88
+ acct?: string;
89
+ cvv?: string;
90
+ exp?: string;
91
+ zip?: string;
92
+ save?: boolean;
93
+ }
94
+ export interface OrderCreate {
95
+ address?: Address | null;
96
+ cart: SimpleCart;
97
+ customer?: Customer | null;
98
+ details?: OrderCreateDetails | null;
99
+ discounts?: Array<OrderCreateDiscount>;
100
+ gift_cards?: Array<OrderCreateGiftCard>;
101
+ is_tax_exempt?: boolean;
102
+ made_for?: string;
103
+ order_type?: OrderType;
104
+ order_uuid?: string;
105
+ points?: Array<OrderCreatePoints>;
106
+ promo_codes?: string[];
107
+ requested_at: ISOString | 'asap';
108
+ revenue_center_id: number;
109
+ service_type: ServiceType;
110
+ shipment_id?: string;
111
+ surcharges?: Array<OrderCreateSurcharge>;
112
+ taxes?: Array<OrderCreateTax>;
113
+ tenders?: Array<Tender>;
114
+ tip?: Money;
115
+ }
116
+ export interface CheckoutConfigDisplayed {
117
+ address: string[];
118
+ customer: Customer[];
119
+ details: string[];
120
+ }
121
+ export interface CheckoutConfigGratuity {
122
+ default: {
123
+ [key in GratuityType]: string;
124
+ } | null;
125
+ has_tip: boolean;
126
+ max_gratuity: {
127
+ [key in GratuityType]: string;
128
+ } | null;
129
+ options: {
130
+ [key in GratuityType]: string;
131
+ }[];
132
+ }
133
+ export interface CheckoutConfig {
134
+ allow_tax_exempt: boolean;
135
+ discounts: OrderDiscounts;
136
+ displayed: CheckoutConfigDisplayed;
137
+ gratuity: CheckoutConfigGratuity;
138
+ order_fulfillment: OrderFulfillment;
139
+ points: LoyaltyPoints | null;
140
+ promo_code_limit: number;
141
+ required: CheckoutConfigDisplayed;
142
+ surcharges: OrderSurcharges;
143
+ tender_types: Array<TenderType>;
144
+ }
145
+ export interface CheckoutForm {
146
+ address: Address | null;
147
+ customer: Customer;
148
+ details: OrderDetails;
149
+ discounts: OrderDiscounts;
150
+ points: Array<LoyaltyPoints>;
151
+ promoCodes: any;
152
+ surcharges: OrderSurcharges;
153
+ tenders: OrderTenders;
154
+ tip: any;
155
+ }
156
+ export interface CheckoutCheck {
157
+ address: Address | null;
158
+ cart: Array<OrderItem>;
159
+ config: CheckoutConfig;
160
+ customer: Customer;
161
+ details: OrderDetails;
162
+ discounts: OrderDiscounts;
163
+ order_type: OrderType;
164
+ requested_at: ISOString;
165
+ revenue_center: OrderRevenueCenter;
166
+ service_type: ServiceType;
167
+ shipment: OrderShipment | null;
168
+ surcharges: OrderSurcharges;
169
+ taxes: OrderTaxes;
170
+ tenders: OrderTenders;
171
+ timezone: TimezonePython;
172
+ totals: OrderTotals;
173
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,42 @@
1
+ import { ISOString, Timezone } from '../datetimes';
2
+ import { Money, OrderType, ServiceType, TenderType } from '../global';
3
+ import { RequestError } from '../request';
4
+ import { CreditCard } from './creditCards';
5
+ import { Address, Customer, HouseAccount } from './customer';
6
+ import { OrderDelivery, OrderDetails, OrderDiscounts, OrderFulfillment, OrderRating, OrderRevenueCenter, OrderShipment, OrderSurcharges, OrderTaxes, OrderTotals } from './order';
7
+ export interface CompletedOrderConfig {
8
+ discounts: OrderDiscounts | [];
9
+ surcharges: OrderSurcharges | [];
10
+ }
11
+ export interface OrderRefund {
12
+ amount: Money;
13
+ credit_card: CreditCard | null;
14
+ house_account: HouseAccount | null;
15
+ tender_type: TenderType;
16
+ }
17
+ export interface CompletedOrder {
18
+ address: Address | null;
19
+ config: CompletedOrderConfig;
20
+ created_at: ISOString;
21
+ customer: Customer;
22
+ delivery: OrderDelivery | null;
23
+ details: OrderDetails | null;
24
+ errors: RequestError;
25
+ estimated_at: ISOString;
26
+ is_asap: boolean;
27
+ is_editable: boolean;
28
+ is_future: boolean;
29
+ order_fulfillment: OrderFulfillment | null;
30
+ rating: OrderRating;
31
+ refunds: Array<OrderRefund>;
32
+ requested_at: ISOString;
33
+ requested_time: string;
34
+ revenue_center: OrderRevenueCenter;
35
+ service_type: ServiceType;
36
+ shipment: OrderShipment;
37
+ texes: OrderTaxes;
38
+ timezone: Timezone;
39
+ totals: OrderTotals;
40
+ order_type: OrderType;
41
+ }
42
+ export declare type CompletedOrders = Array<CompletedOrder>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,47 @@
1
+ import { IpAddress } from '../global';
2
+ import { PrepStations, PrepStatus } from './kds';
3
+ export interface Config {
4
+ backup_printer_ip_address: IpAddress | null;
5
+ backup_printer_use_beeper: boolean;
6
+ brand_id: number;
7
+ cardreader_id: string;
8
+ has_cardreader: boolean;
9
+ has_cardwriter: boolean;
10
+ has_cashdrawer: boolean;
11
+ has_pinpad: boolean;
12
+ has_qrcode: boolean;
13
+ has_timeclock: boolean;
14
+ ip_address: IpAddress;
15
+ name: string;
16
+ pos_server_id: number;
17
+ pos_terminal_id: number;
18
+ prep_stations?: PrepStations | null;
19
+ print_kds: boolean;
20
+ print_receipt: 'never' | 'always' | 'prompt';
21
+ printer: IpAddress;
22
+ printer_use_beeper: boolean;
23
+ scanner_id: string;
24
+ server: IpAddress;
25
+ terminal_type: 'POS_TERMINAL' | 'KDS_TERMINAL' | 'KIOSK';
26
+ }
27
+ export interface ItemType {
28
+ default_prep_status: PrepStatus;
29
+ is_default: boolean;
30
+ is_grouped: boolean;
31
+ is_hidden_assembly: boolean;
32
+ is_hidden_qa: boolean;
33
+ item_type_id: number;
34
+ items: number[];
35
+ name: string;
36
+ position: number;
37
+ prep_time: number;
38
+ print_on_completed: boolean;
39
+ }
40
+ export declare type ItemTypes = Array<ItemType>;
41
+ export interface SelectOption {
42
+ name: string;
43
+ option_type: 'PAID_IN' | 'PAID_OUT';
44
+ position: number;
45
+ select_option_id: number;
46
+ }
47
+ export declare type SelectOptions = Array<SelectOption>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import { CardType } from '../global';
2
+ export interface CreditCard {
3
+ card_type?: CardType;
4
+ card_type_name?: string;
5
+ customer_card_id?: number;
6
+ has_profile?: boolean;
7
+ is_default?: boolean;
8
+ last4?: string;
9
+ masked?: string;
10
+ }
11
+ export declare type CreditCards = Array<CreditCard>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ export interface Auth {
2
+ access_token: string;
3
+ expires_in: number;
4
+ refresh_token: string;
5
+ token_type: string;
6
+ }
7
+ export interface Profile {
8
+ birth_date: string | null;
9
+ company: string;
10
+ customer_id: number;
11
+ email: string;
12
+ first_name: string;
13
+ gender: string | null;
14
+ is_notification_set: boolean;
15
+ is_verified: boolean;
16
+ last_name: string;
17
+ phone: string;
18
+ }
19
+ export interface LoginData {
20
+ email: string;
21
+ password: string;
22
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ export interface Address {
2
+ city: string;
3
+ company?: string;
4
+ contact?: string;
5
+ created_at?: string;
6
+ customer_address_id?: number;
7
+ description?: string;
8
+ formatted_address?: string;
9
+ is_default?: boolean;
10
+ last_used_at?: string;
11
+ lat: number | null;
12
+ lng: number | null;
13
+ notes?: string;
14
+ phone?: string;
15
+ postal_code: string;
16
+ state: string;
17
+ street: string;
18
+ unit?: string;
19
+ }
20
+ export declare type Addresses = Array<Address>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface CustomerAllergen {
2
+ allergen_id: number;
3
+ name?: string;
4
+ }
5
+ export declare type CustomerAllergens = Array<CustomerAllergen>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ISOStringOffset } from '../../datetimes';
2
+ export declare type NotificationChannel = 'EMAIL' | 'SMS' | 'PUSH';
3
+ export declare type NotificationArea = 'ORDER' | 'RATING' | 'MARKETING';
4
+ export interface CustomerNotificationPref {
5
+ craeted_at: ISOStringOffset;
6
+ customer_notification_preference_id: number;
7
+ notification_area: NotificationArea;
8
+ notification_channel: NotificationChannel;
9
+ }
10
+ export declare type CustomerNotificationPrefs = Array<CustomerNotificationPref>;
@@ -0,0 +1,27 @@
1
+ import { DateString } from '../../datetimes';
2
+ import { Allergens } from '../allergens';
3
+ import { Favorites } from '../favorite';
4
+ import { CustomerNotificationPrefs } from './communicationPreferences';
5
+ import { CustomerGiftCards } from './giftCards';
6
+ export interface Customer {
7
+ accepts_marketing?: boolean;
8
+ birth_date?: DateString | null;
9
+ company?: boolean;
10
+ customer_id?: number;
11
+ email?: string;
12
+ first_name?: string;
13
+ gender?: 'MALE' | 'FEMALE' | 'DECLINED' | null;
14
+ is_guest?: boolean;
15
+ is_notification_set?: boolean;
16
+ is_verified?: boolean;
17
+ last_name?: string;
18
+ order_notifications?: 'NEW' | 'EMAIL' | 'SMS' | 'ALL' | 'NONE';
19
+ phone?: string | null;
20
+ }
21
+ export interface CustomerWithRelated extends Customer {
22
+ allergens?: Allergens;
23
+ customer_notification_preferences?: CustomerNotificationPrefs;
24
+ favorites?: Favorites;
25
+ gift_cards?: CustomerGiftCards;
26
+ levelup?: [] | null;
27
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import { DateString, ISOStringOffset } from '../../datetimes';
2
+ import { Money } from '../../global';
3
+ export interface CustomerGiftCard {
4
+ balance: Money;
5
+ card_number: string;
6
+ expiration: DateString | null;
7
+ gift_card_id: number;
8
+ orders: number;
9
+ qr_code_url: string;
10
+ updated_at: ISOStringOffset;
11
+ }
12
+ export declare type CustomerGiftCards = Array<CustomerGiftCard>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,33 @@
1
+ import { ISOString } from '../../datetimes';
2
+ import { ServiceType } from '../../global';
3
+ import { RequestErrorAPI, RequestStatus } from '../../request';
4
+ import { OrderItem, OrderRevenueCenter } from '../order';
5
+ import { Address } from './addresses';
6
+ export interface CartOwner {
7
+ customer_id: number;
8
+ first_name: string;
9
+ last_name: string;
10
+ }
11
+ export interface GroupOrder {
12
+ address?: Address | null;
13
+ cart: Array<OrderItem>;
14
+ cartGuest?: any;
15
+ cartGuests?: any[];
16
+ cart_id: number;
17
+ cartOwner?: CartOwner;
18
+ customer?: CartOwner;
19
+ closed: boolean;
20
+ cutoff_at: string;
21
+ error?: RequestErrorAPI;
22
+ guest_count: number;
23
+ guest_limit: number;
24
+ isCartOwner: boolean;
25
+ loading?: RequestStatus;
26
+ requested_at: ISOString;
27
+ revenue_center?: OrderRevenueCenter;
28
+ revenue_center_id: number;
29
+ service_type: ServiceType;
30
+ spending_limit: string;
31
+ token: string;
32
+ }
33
+ export declare type GroupOrders = Array<GroupOrder>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import { OrderType, ServiceType } from '../../global';
2
+ import { RevenueCenter } from '../revenueCenter';
3
+ export interface HouseAccount {
4
+ approved_contact: boolean;
5
+ domain: string;
6
+ house_account_id: number;
7
+ name: string;
8
+ order_type: OrderType;
9
+ pin: string;
10
+ revenue_centers: Array<RevenueCenter>;
11
+ service_type: ServiceType;
12
+ }
13
+ export declare type HouseAccounts = Array<HouseAccount>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export * from './account';
2
+ export * from './addresses';
3
+ export * from './communicationPreferences';
4
+ export * from './giftCards';
5
+ export * from './customer';
6
+ export * from './loyalty';
7
+ export * from './groupOrders';
8
+ export * from './allergens';
9
+ export * from './houseAccounts';
10
+ export * from './rewards';
11
+ export * from './revenueCenters';
@@ -0,0 +1,11 @@
1
+ export * from './account';
2
+ export * from './addresses';
3
+ export * from './communicationPreferences';
4
+ export * from './giftCards';
5
+ export * from './customer';
6
+ export * from './loyalty';
7
+ export * from './groupOrders';
8
+ export * from './allergens';
9
+ export * from './houseAccounts';
10
+ export * from './rewards';
11
+ export * from './revenueCenters';
@@ -0,0 +1,64 @@
1
+ import { OrderType } from '../../global';
2
+ export interface LoyaltyCredit {
3
+ current: string;
4
+ total: string;
5
+ }
6
+ export declare type LoyaltyType = 'CREDIT' | 'POINTS';
7
+ export interface LoyaltyPoints {
8
+ expiration_days: number;
9
+ name: string;
10
+ points: number;
11
+ points_per_dollar: number;
12
+ }
13
+ export interface LoyaltyRedemption {
14
+ order_type: OrderType;
15
+ reward: string;
16
+ threshold: string;
17
+ type: string;
18
+ }
19
+ export interface LoyaltySpend {
20
+ current: string | null;
21
+ order_type: OrderType;
22
+ total: string;
23
+ type: string;
24
+ }
25
+ export interface LoyaltyStatus {
26
+ days: number;
27
+ progress: string;
28
+ tier: any;
29
+ }
30
+ export interface LoyaltyThreshold {
31
+ name: string;
32
+ points: number;
33
+ description: string;
34
+ }
35
+ export interface LoyaltyDiscount {
36
+ amount: string;
37
+ description: string;
38
+ discount_id: number;
39
+ discount_type: string;
40
+ name: string;
41
+ title: string;
42
+ }
43
+ export interface LoyaltyTier {
44
+ description: string;
45
+ hex_code: string;
46
+ name: string;
47
+ threshold: string;
48
+ discount: LoyaltyDiscount;
49
+ }
50
+ export interface CustomerLoyalty {
51
+ credit: LoyaltyCredit | null;
52
+ description: string;
53
+ loyalty_type: LoyaltyType;
54
+ name: string;
55
+ points: LoyaltyPoints | null;
56
+ redemption: LoyaltyRedemption | null;
57
+ remaining: string | null;
58
+ spend: LoyaltySpend;
59
+ status: LoyaltyStatus;
60
+ thresholds: Array<LoyaltyThreshold>;
61
+ tiers: Array<LoyaltyTier>;
62
+ towards: string | null;
63
+ }
64
+ export declare type CustomerLoyalties = Array<CustomerLoyalty>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,126 @@
1
+ import { DateString, ISOString, Time24, TimeHuman, TimezonePython } from '../../datetimes';
2
+ import { Money, OrderType, ServiceType, Weekday } from '../../global';
3
+ export interface RevenueCenterAddress {
4
+ city: string;
5
+ cross_streets: string;
6
+ lat: number;
7
+ lng: number;
8
+ phone: string;
9
+ postal_code: string;
10
+ state: string;
11
+ street: string;
12
+ }
13
+ export interface DeliveryZone {
14
+ coordinates: Array<Array<number>>;
15
+ description: string | null;
16
+ priority: number;
17
+ }
18
+ export interface FirstTime {
19
+ date: string;
20
+ has_asap: boolean;
21
+ minutes: number;
22
+ time: TimeHuman;
23
+ utc: ISOString;
24
+ wait_minutes: number | null;
25
+ weekday: Weekday;
26
+ }
27
+ export interface RevenueCenterGroupOrdering {
28
+ guest_limit: number;
29
+ lead_time: number;
30
+ prep_time: number;
31
+ }
32
+ export interface Hours {
33
+ close: Time24 | null;
34
+ holiday: string | null;
35
+ open: Time24 | null;
36
+ weekday: Weekday;
37
+ }
38
+ export interface ValidTime {
39
+ is_orderable: boolean;
40
+ minutes: number;
41
+ time: string;
42
+ }
43
+ export declare type ValidTimes = Array<ValidTime>;
44
+ export interface HolidayItem extends Hours {
45
+ valid_times: ValidTimes;
46
+ }
47
+ export declare type RevenueCenterImageType = 'APP_IMAGE' | 'SMALL_IMAGE' | 'LARGE_IMAGE';
48
+ export interface RevenueCenterImage {
49
+ type: RevenueCenterImageType;
50
+ url: string;
51
+ }
52
+ export declare type ExcludedTimes = {
53
+ [key in ServiceType]: {
54
+ [key: DateString]: number[];
55
+ };
56
+ };
57
+ export interface OrderBy {
58
+ time: Time24;
59
+ weekday: Weekday;
60
+ }
61
+ export interface OrderTime {
62
+ date: DateString;
63
+ end_time: Time24;
64
+ order_by: OrderBy;
65
+ start_time: Time24;
66
+ weekday: Weekday;
67
+ }
68
+ export declare type RevenueCenterOrderTimes = {
69
+ [key in ServiceType]: Array<OrderTime> | null;
70
+ };
71
+ export interface CustomerRevenueCenter {
72
+ address: RevenueCenterAddress;
73
+ cutoff_time: TimeHuman | null;
74
+ days_ahead: number;
75
+ delivery_url: string;
76
+ delivery_zone: DeliveryZone;
77
+ description: string | null;
78
+ directions_url: string;
79
+ excluded_times: ExcludedTimes | null;
80
+ first_times: {
81
+ [key in ServiceType]?: FirstTime | null;
82
+ };
83
+ group_ordering: RevenueCenterGroupOrdering;
84
+ has_curbside: boolean;
85
+ holidays: {
86
+ [key: DateString]: {
87
+ [key in ServiceType]?: HolidayItem | null;
88
+ };
89
+ };
90
+ hours: {
91
+ [key in ServiceType]?: Array<Hours>;
92
+ };
93
+ is_new: boolean;
94
+ is_outpost: boolean;
95
+ is_parent: boolean;
96
+ lead_time_in_hours: number | null;
97
+ menu_pdf_url: string | null;
98
+ name: string;
99
+ order_maximum: {
100
+ [key in ServiceType]: Money;
101
+ };
102
+ order_minimum: {
103
+ [key in ServiceType]: Money;
104
+ };
105
+ order_times: RevenueCenterOrderTimes;
106
+ revenue_center_id: number;
107
+ revenue_center_type: OrderType;
108
+ service_types: Array<ServiceType>;
109
+ slug: string;
110
+ status: string;
111
+ tax_exempt_is_allowed: boolean;
112
+ time_ranges: {
113
+ [key in ServiceType]: number | null;
114
+ };
115
+ timezone: TimezonePython;
116
+ user: any;
117
+ wait_times: {
118
+ [key in ServiceType]?: number;
119
+ };
120
+ valid_times: {
121
+ [key in ServiceType]?: {
122
+ [key in Weekday]?: ValidTimes;
123
+ };
124
+ };
125
+ }
126
+ export declare type CustomerRevenueCenters = Array<CustomerRevenueCenter>;