@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
@@ -133,6 +133,7 @@ export interface CheckoutFormCustomer {
133
133
  customer_id?: number;
134
134
  email?: string;
135
135
  first_name?: string;
136
+ password?: string;
136
137
  phone?: string;
137
138
  last_name?: string;
138
139
  }
@@ -3,6 +3,7 @@ import { IpAddress, OrderType, ServiceType } from '../global';
3
3
  import { ButtonColor } from '../theme';
4
4
  import { LoyaltyType, NotificationChannel } from './customer';
5
5
  import { PrepStations, PrepStatus } from './kds';
6
+ import { RevenueCenterStatus } from './revenueCenter';
6
7
  export interface Config {
7
8
  backup_printer_ip_address: IpAddress | null;
8
9
  backup_printer_use_beeper: boolean;
@@ -139,7 +140,6 @@ export interface ConfigContentField {
139
140
  empty?: string;
140
141
  }
141
142
  export declare type HomeOrderTypes = 'CATERING' | 'DELIVERY' | 'DONATIONS' | 'GIFT_CARDS' | 'GROUP' | 'MERCH' | 'OUTPOST' | 'PICKUP' | 'WALKIN';
142
- export declare type RevenueCenterStatus = 'CLOSED' | 'CLOSED_TEMPORARILY' | 'COMING_SOON';
143
143
  export interface ConfigContent {
144
144
  about: {
145
145
  background: string;
@@ -461,7 +461,7 @@ export interface ConfigSettings {
461
461
  zoom: number;
462
462
  };
463
463
  locationName: {
464
- [keys in ServiceType]?: Array<string>;
464
+ [keys in ServiceType | 'OUTPOST']: Array<string>;
465
465
  };
466
466
  maxDistance: number;
467
467
  orderTypes: Array<HomeOrderTypes>;
@@ -8,7 +8,10 @@ export interface CreditCard {
8
8
  last4: string;
9
9
  masked: string;
10
10
  }
11
- export declare type CreditCards = Array<CreditCard>;
11
+ export declare type CreditCards = CreditCard[];
12
+ export interface CreditCardSaved {
13
+ customer_card_id: number;
14
+ }
12
15
  export interface CreditCardData {
13
16
  acct: string;
14
17
  exp: string;
@@ -18,7 +21,8 @@ export interface CreditCardData {
18
21
  is_default?: boolean;
19
22
  token?: string;
20
23
  }
21
- export interface ValidatedCreditCard {
24
+ export interface CreditCardValidate {
22
25
  card: CreditCardData;
26
+ cardType: CardType;
23
27
  errors: Partial<CreditCardData> | null;
24
28
  }
@@ -1,5 +1,6 @@
1
1
  import { DateString, ISOStringOffset } from '../../datetimes';
2
2
  import { Money } from '../../global';
3
+ import { CreditCardData, CreditCardSaved } from '../creditCards';
3
4
  export interface CustomerGiftCard {
4
5
  balance: Money;
5
6
  card_number: string;
@@ -11,14 +12,22 @@ export interface CustomerGiftCard {
11
12
  amount?: number;
12
13
  customer_card_id?: string | number;
13
14
  }
14
- export declare type CustomerGiftCards = Array<CustomerGiftCard>;
15
- export interface PurchasedGiftCard {
15
+ export declare type CustomerGiftCards = CustomerGiftCard[];
16
+ export interface GiftCardPurchased {
16
17
  email: string;
17
18
  balance: string;
18
19
  card_number: string;
19
20
  }
20
- export interface PurchaseGiftCardData {
21
+ export interface GiftCardPurchaseData {
21
22
  amount: string;
22
23
  quantity: number;
23
24
  email: string;
24
25
  }
26
+ export interface GiftCardsPurchase {
27
+ credit_card: CreditCardData | CreditCardSaved;
28
+ email: string;
29
+ gift_cards: GiftCardPurchaseData[];
30
+ name: string;
31
+ url: string;
32
+ token?: string;
33
+ }
@@ -8,6 +8,5 @@ export * from './groupOrders';
8
8
  export * from './allergens';
9
9
  export * from './houseAccounts';
10
10
  export * from './rewards';
11
- export * from './revenueCenters';
12
11
  export * from './qrcode';
13
12
  export * from './thanx';
@@ -11,6 +11,5 @@ tslib_1.__exportStar(require("./groupOrders"), exports);
11
11
  tslib_1.__exportStar(require("./allergens"), exports);
12
12
  tslib_1.__exportStar(require("./houseAccounts"), exports);
13
13
  tslib_1.__exportStar(require("./rewards"), exports);
14
- tslib_1.__exportStar(require("./revenueCenters"), exports);
15
14
  tslib_1.__exportStar(require("./qrcode"), exports);
16
15
  tslib_1.__exportStar(require("./thanx"), exports);
@@ -1,6 +1,5 @@
1
- import { DiscountAuthType, DiscountType, OrderType, ServiceType } from '../../global';
1
+ import { DiscountAuthType, DiscountType, Images, OrderType, ServiceType } from '../../global';
2
2
  import { MenuItems } from '../menu';
3
- import { OrderItemImages } from '../order';
4
3
  export interface DayPart {
5
4
  daypart_id: number;
6
5
  end_time: string;
@@ -21,7 +20,7 @@ export interface Reward {
21
20
  discount_type: DiscountType;
22
21
  discounted_items: RewardItems;
23
22
  end_date: string;
24
- images: OrderItemImages;
23
+ images: Images;
25
24
  max_amount: string;
26
25
  max_order_size: string;
27
26
  max_redemptions: number;
@@ -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';
@@ -20,6 +20,7 @@ tslib_1.__exportStar(require("./messages"), exports);
20
20
  tslib_1.__exportStar(require("./notifications"), exports);
21
21
  tslib_1.__exportStar(require("./offlineAuths"), exports);
22
22
  tslib_1.__exportStar(require("./order"), exports);
23
+ tslib_1.__exportStar(require("./pos"), exports);
23
24
  tslib_1.__exportStar(require("./refund"), exports);
24
25
  tslib_1.__exportStar(require("./revenueCenter"), exports);
25
26
  tslib_1.__exportStar(require("./settings"), exports);
@@ -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;
@@ -133,6 +133,7 @@ export interface CheckoutFormCustomer {
133
133
  customer_id?: number;
134
134
  email?: string;
135
135
  first_name?: string;
136
+ password?: string;
136
137
  phone?: string;
137
138
  last_name?: string;
138
139
  }
@@ -3,6 +3,7 @@ import { IpAddress, OrderType, ServiceType } from '../global';
3
3
  import { ButtonColor } from '../theme';
4
4
  import { LoyaltyType, NotificationChannel } from './customer';
5
5
  import { PrepStations, PrepStatus } from './kds';
6
+ import { RevenueCenterStatus } from './revenueCenter';
6
7
  export interface Config {
7
8
  backup_printer_ip_address: IpAddress | null;
8
9
  backup_printer_use_beeper: boolean;
@@ -139,7 +140,6 @@ export interface ConfigContentField {
139
140
  empty?: string;
140
141
  }
141
142
  export declare type HomeOrderTypes = 'CATERING' | 'DELIVERY' | 'DONATIONS' | 'GIFT_CARDS' | 'GROUP' | 'MERCH' | 'OUTPOST' | 'PICKUP' | 'WALKIN';
142
- export declare type RevenueCenterStatus = 'CLOSED' | 'CLOSED_TEMPORARILY' | 'COMING_SOON';
143
143
  export interface ConfigContent {
144
144
  about: {
145
145
  background: string;
@@ -461,7 +461,7 @@ export interface ConfigSettings {
461
461
  zoom: number;
462
462
  };
463
463
  locationName: {
464
- [keys in ServiceType]?: Array<string>;
464
+ [keys in ServiceType | 'OUTPOST']: Array<string>;
465
465
  };
466
466
  maxDistance: number;
467
467
  orderTypes: Array<HomeOrderTypes>;
@@ -8,7 +8,10 @@ export interface CreditCard {
8
8
  last4: string;
9
9
  masked: string;
10
10
  }
11
- export declare type CreditCards = Array<CreditCard>;
11
+ export declare type CreditCards = CreditCard[];
12
+ export interface CreditCardSaved {
13
+ customer_card_id: number;
14
+ }
12
15
  export interface CreditCardData {
13
16
  acct: string;
14
17
  exp: string;
@@ -18,7 +21,8 @@ export interface CreditCardData {
18
21
  is_default?: boolean;
19
22
  token?: string;
20
23
  }
21
- export interface ValidatedCreditCard {
24
+ export interface CreditCardValidate {
22
25
  card: CreditCardData;
26
+ cardType: CardType;
23
27
  errors: Partial<CreditCardData> | null;
24
28
  }
@@ -1,5 +1,6 @@
1
1
  import { DateString, ISOStringOffset } from '../../datetimes';
2
2
  import { Money } from '../../global';
3
+ import { CreditCardData, CreditCardSaved } from '../creditCards';
3
4
  export interface CustomerGiftCard {
4
5
  balance: Money;
5
6
  card_number: string;
@@ -11,14 +12,22 @@ export interface CustomerGiftCard {
11
12
  amount?: number;
12
13
  customer_card_id?: string | number;
13
14
  }
14
- export declare type CustomerGiftCards = Array<CustomerGiftCard>;
15
- export interface PurchasedGiftCard {
15
+ export declare type CustomerGiftCards = CustomerGiftCard[];
16
+ export interface GiftCardPurchased {
16
17
  email: string;
17
18
  balance: string;
18
19
  card_number: string;
19
20
  }
20
- export interface PurchaseGiftCardData {
21
+ export interface GiftCardPurchaseData {
21
22
  amount: string;
22
23
  quantity: number;
23
24
  email: string;
24
25
  }
26
+ export interface GiftCardsPurchase {
27
+ credit_card: CreditCardData | CreditCardSaved;
28
+ email: string;
29
+ gift_cards: GiftCardPurchaseData[];
30
+ name: string;
31
+ url: string;
32
+ token?: string;
33
+ }
@@ -8,6 +8,5 @@ export * from './groupOrders';
8
8
  export * from './allergens';
9
9
  export * from './houseAccounts';
10
10
  export * from './rewards';
11
- export * from './revenueCenters';
12
11
  export * from './qrcode';
13
12
  export * from './thanx';
@@ -8,6 +8,5 @@ export * from './groupOrders';
8
8
  export * from './allergens';
9
9
  export * from './houseAccounts';
10
10
  export * from './rewards';
11
- export * from './revenueCenters';
12
11
  export * from './qrcode';
13
12
  export * from './thanx';
@@ -1,6 +1,5 @@
1
- import { DiscountAuthType, DiscountType, OrderType, ServiceType } from '../../global';
1
+ import { DiscountAuthType, DiscountType, Images, OrderType, ServiceType } from '../../global';
2
2
  import { MenuItems } from '../menu';
3
- import { OrderItemImages } from '../order';
4
3
  export interface DayPart {
5
4
  daypart_id: number;
6
5
  end_time: string;
@@ -21,7 +20,7 @@ export interface Reward {
21
20
  discount_type: DiscountType;
22
21
  discounted_items: RewardItems;
23
22
  end_date: string;
24
- images: OrderItemImages;
23
+ images: Images;
25
24
  max_amount: string;
26
25
  max_order_size: string;
27
26
  max_redemptions: number;