@open-tender/store 0.6.9 → 0.7.1
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.
- package/dist/.DS_Store +0 -0
- package/dist/cjs/app/hooks.d.ts +2 -2
- package/dist/cjs/app/store.d.ts +56 -31
- package/dist/cjs/slices/alerts.d.ts +2 -2
- package/dist/cjs/slices/arrivals.d.ts +14 -2
- package/dist/cjs/slices/arrivals.js +1 -1
- package/dist/cjs/slices/checkout.d.ts +62 -2
- package/dist/cjs/slices/checkout.js +1 -1
- package/dist/cjs/slices/completedOrders.d.ts +14 -2
- package/dist/cjs/slices/completedOrders.js +1 -1
- package/dist/cjs/slices/config.d.ts +8 -2
- package/dist/cjs/slices/config.js +1 -1
- package/dist/cjs/slices/discounts.d.ts +8 -2
- package/dist/cjs/slices/discounts.js +1 -1
- package/dist/cjs/slices/errorAlerts.d.ts +14 -2
- package/dist/cjs/slices/errorAlerts.js +1 -1
- package/dist/cjs/slices/kds.d.ts +79 -134
- package/dist/cjs/slices/kds.js +6 -6
- package/dist/cjs/slices/kiosk.d.ts +8 -2
- package/dist/cjs/slices/kiosk.js +1 -1
- package/dist/cjs/slices/menu.d.ts +8 -2
- package/dist/cjs/slices/menu.js +1 -1
- package/dist/cjs/slices/menuPages.d.ts +8 -2
- package/dist/cjs/slices/menuPages.js +1 -1
- package/dist/cjs/slices/modal.d.ts +2 -2
- package/dist/cjs/slices/notifications.d.ts +2 -2
- package/dist/cjs/slices/offlineAuths.d.ts +14 -2
- package/dist/cjs/slices/offlineAuths.js +1 -1
- package/dist/cjs/slices/order.d.ts +8 -2
- package/dist/cjs/slices/order.js +1 -1
- package/dist/cjs/slices/pos.d.ts +21 -2
- package/dist/cjs/slices/pos.js +1 -1
- package/dist/cjs/slices/punches.d.ts +8 -2
- package/dist/cjs/slices/punches.js +1 -1
- package/dist/cjs/slices/refund.d.ts +20 -2
- package/dist/cjs/slices/refund.js +1 -1
- package/dist/cjs/slices/settings.d.ts +20 -2
- package/dist/cjs/slices/settings.js +1 -1
- package/dist/cjs/slices/sidebar.d.ts +2 -2
- package/dist/cjs/slices/surcharges.d.ts +8 -2
- package/dist/cjs/slices/surcharges.js +1 -1
- package/dist/cjs/slices/taxes.d.ts +8 -2
- package/dist/cjs/slices/taxes.js +1 -1
- package/dist/cjs/slices/types.js +1 -1
- package/dist/cjs/types/api/alerts.d.ts +1 -1
- package/dist/cjs/types/api/arrivals.d.ts +1 -1
- package/dist/cjs/types/api/cart.d.ts +4 -4
- package/dist/cjs/types/api/checkout.d.ts +4 -4
- package/dist/cjs/types/api/config.d.ts +2 -2
- package/dist/cjs/types/api/devices.d.ts +10 -10
- package/dist/cjs/types/api/discounts.d.ts +1 -1
- package/dist/cjs/types/api/employee.d.ts +7 -7
- package/dist/cjs/types/api/errorAlerts.d.ts +1 -1
- package/dist/cjs/types/api/favorite.d.ts +1 -1
- package/dist/cjs/types/api/kds.d.ts +9 -9
- package/dist/cjs/types/api/kiosk.d.ts +2 -2
- package/dist/cjs/types/api/menu.d.ts +9 -9
- package/dist/cjs/types/api/menuPages.d.ts +3 -3
- package/dist/cjs/types/api/messages.d.ts +1 -1
- package/dist/cjs/types/api/notifications.d.ts +1 -1
- package/dist/cjs/types/api/offlineAuths.d.ts +1 -1
- package/dist/cjs/types/api/order.d.ts +20 -20
- package/dist/cjs/types/api/refund.d.ts +2 -2
- package/dist/cjs/types/api/revenueCenter.d.ts +2 -2
- package/dist/cjs/types/api/store.d.ts +3 -3
- package/dist/cjs/types/api/surcharges.d.ts +1 -1
- package/dist/cjs/types/api/taxes.d.ts +1 -1
- package/dist/cjs/types/api/themeCloud.d.ts +9 -9
- package/dist/cjs/types/datetimes.d.ts +18 -18
- package/dist/cjs/types/global.d.ts +26 -26
- package/dist/cjs/types/request.d.ts +3 -3
- package/dist/cjs/types/theme.d.ts +12 -12
- package/dist/cjs/utils/helpers.d.ts +2 -2
- package/dist/cjs/utils/theme.js +24 -24
- package/dist/esm/app/hooks.d.ts +2 -2
- package/dist/esm/app/store.d.ts +56 -31
- package/dist/esm/slices/alerts.d.ts +2 -2
- package/dist/esm/slices/arrivals.d.ts +14 -2
- package/dist/esm/slices/checkout.d.ts +62 -2
- package/dist/esm/slices/completedOrders.d.ts +14 -2
- package/dist/esm/slices/config.d.ts +8 -2
- package/dist/esm/slices/discounts.d.ts +8 -2
- package/dist/esm/slices/errorAlerts.d.ts +14 -2
- package/dist/esm/slices/kds.d.ts +79 -134
- package/dist/esm/slices/kds.js +1 -1
- package/dist/esm/slices/kiosk.d.ts +8 -2
- package/dist/esm/slices/menu.d.ts +8 -2
- package/dist/esm/slices/menuPages.d.ts +8 -2
- package/dist/esm/slices/modal.d.ts +2 -2
- package/dist/esm/slices/notifications.d.ts +2 -2
- package/dist/esm/slices/offlineAuths.d.ts +14 -2
- package/dist/esm/slices/order.d.ts +8 -2
- package/dist/esm/slices/pos.d.ts +21 -2
- package/dist/esm/slices/punches.d.ts +8 -2
- package/dist/esm/slices/refund.d.ts +20 -2
- package/dist/esm/slices/settings.d.ts +20 -2
- package/dist/esm/slices/sidebar.d.ts +2 -2
- package/dist/esm/slices/surcharges.d.ts +8 -2
- package/dist/esm/slices/taxes.d.ts +8 -2
- package/dist/esm/types/api/alerts.d.ts +1 -1
- package/dist/esm/types/api/arrivals.d.ts +1 -1
- package/dist/esm/types/api/cart.d.ts +4 -4
- package/dist/esm/types/api/checkout.d.ts +4 -4
- package/dist/esm/types/api/config.d.ts +2 -2
- package/dist/esm/types/api/devices.d.ts +10 -10
- package/dist/esm/types/api/discounts.d.ts +1 -1
- package/dist/esm/types/api/employee.d.ts +7 -7
- package/dist/esm/types/api/errorAlerts.d.ts +1 -1
- package/dist/esm/types/api/favorite.d.ts +1 -1
- package/dist/esm/types/api/kds.d.ts +9 -9
- package/dist/esm/types/api/kiosk.d.ts +2 -2
- package/dist/esm/types/api/menu.d.ts +9 -9
- package/dist/esm/types/api/menuPages.d.ts +3 -3
- package/dist/esm/types/api/messages.d.ts +1 -1
- package/dist/esm/types/api/notifications.d.ts +1 -1
- package/dist/esm/types/api/offlineAuths.d.ts +1 -1
- package/dist/esm/types/api/order.d.ts +20 -20
- package/dist/esm/types/api/refund.d.ts +2 -2
- package/dist/esm/types/api/revenueCenter.d.ts +2 -2
- package/dist/esm/types/api/store.d.ts +3 -3
- package/dist/esm/types/api/surcharges.d.ts +1 -1
- package/dist/esm/types/api/taxes.d.ts +1 -1
- package/dist/esm/types/api/themeCloud.d.ts +9 -9
- package/dist/esm/types/datetimes.d.ts +18 -18
- package/dist/esm/types/global.d.ts +26 -26
- package/dist/esm/types/request.d.ts +3 -3
- package/dist/esm/types/theme.d.ts +12 -12
- package/dist/esm/utils/helpers.d.ts +2 -2
- package/dist/esm/utils/theme.js +24 -24
- package/package.json +27 -27
- package/dist/cjs/.DS_Store +0 -0
|
@@ -26,7 +26,7 @@ export interface OrderDiscount {
|
|
|
26
26
|
is_promo_code: boolean;
|
|
27
27
|
discount_type: 1 | 2 | 3 | 4;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
29
|
+
export type OrderDiscounts = Array<OrderDiscount>;
|
|
30
30
|
export interface OrderFulfillment {
|
|
31
31
|
acknowledged: boolean;
|
|
32
32
|
arrival_info: string | null;
|
|
@@ -57,20 +57,20 @@ export interface OrderItemDiscount {
|
|
|
57
57
|
amount: NegativeMoney;
|
|
58
58
|
amount_total: NegativeMoney;
|
|
59
59
|
}
|
|
60
|
-
export
|
|
60
|
+
export type OrderItemDiscounts = Array<OrderItemDiscount>;
|
|
61
61
|
export interface OrderItemImage {
|
|
62
62
|
type: 'LARGE_IMAGE' | 'SMALL_IMAGE' | 'APP_IMAGE';
|
|
63
63
|
url: string | null;
|
|
64
64
|
}
|
|
65
|
-
export
|
|
65
|
+
export type OrderItemImages = Array<OrderItemImage>;
|
|
66
66
|
export interface OrderItemTax {
|
|
67
67
|
tax_id: number;
|
|
68
68
|
name: string;
|
|
69
69
|
amount: NegativeMoney;
|
|
70
70
|
amount_total: NegativeMoney;
|
|
71
71
|
}
|
|
72
|
-
export
|
|
73
|
-
export
|
|
72
|
+
export type OrderItemTaxes = Array<OrderItemTax>;
|
|
73
|
+
export type OrderGroupOptions = Array<OrderItem>;
|
|
74
74
|
export interface OrderGroup {
|
|
75
75
|
id: number;
|
|
76
76
|
inc: number;
|
|
@@ -81,7 +81,7 @@ export interface OrderGroup {
|
|
|
81
81
|
options: OrderGroupOptions;
|
|
82
82
|
short_name: string;
|
|
83
83
|
}
|
|
84
|
-
export
|
|
84
|
+
export type OrderGroups = Array<OrderGroup>;
|
|
85
85
|
export interface OrderItem {
|
|
86
86
|
description: string;
|
|
87
87
|
discount: Money;
|
|
@@ -115,7 +115,7 @@ export interface OrderItem {
|
|
|
115
115
|
taxes: OrderItemTaxes;
|
|
116
116
|
temperature: Temperature;
|
|
117
117
|
}
|
|
118
|
-
export
|
|
118
|
+
export type OrderCart = Array<OrderItem>;
|
|
119
119
|
export interface OrderItemPoints {
|
|
120
120
|
index: number;
|
|
121
121
|
name: string;
|
|
@@ -123,7 +123,7 @@ export interface OrderItemPoints {
|
|
|
123
123
|
discount: Money;
|
|
124
124
|
isApplied: boolean;
|
|
125
125
|
}
|
|
126
|
-
export
|
|
126
|
+
export type OrderCartPoints = Array<OrderItemPoints>;
|
|
127
127
|
export interface ModifiersMetadataOption {
|
|
128
128
|
id: number;
|
|
129
129
|
line_no: number;
|
|
@@ -155,7 +155,7 @@ export interface ModifiersMetadataItem {
|
|
|
155
155
|
short_name: string;
|
|
156
156
|
shorthand: string | null;
|
|
157
157
|
}
|
|
158
|
-
export
|
|
158
|
+
export type ModifiersMetadata = Array<ModifiersMetadataItem>;
|
|
159
159
|
export interface OrderShipment {
|
|
160
160
|
amount: Money;
|
|
161
161
|
api_shipment_id: string;
|
|
@@ -194,7 +194,7 @@ export interface OrderSurcharge {
|
|
|
194
194
|
tax: Money;
|
|
195
195
|
taxes: Array<OrderSurchargeTax>;
|
|
196
196
|
}
|
|
197
|
-
export
|
|
197
|
+
export type OrderSurcharges = Array<OrderSurcharge>;
|
|
198
198
|
export interface OrderGiftCard {
|
|
199
199
|
id?: number;
|
|
200
200
|
gift_card_id?: number;
|
|
@@ -203,7 +203,7 @@ export interface OrderGiftCard {
|
|
|
203
203
|
amount: Money;
|
|
204
204
|
employee_id?: number;
|
|
205
205
|
}
|
|
206
|
-
export
|
|
206
|
+
export type OrderGiftCards = Array<OrderGiftCard>;
|
|
207
207
|
export interface OrderTax {
|
|
208
208
|
amount: Money;
|
|
209
209
|
amount_total?: Money;
|
|
@@ -214,7 +214,7 @@ export interface OrderTax {
|
|
|
214
214
|
tax_id?: number;
|
|
215
215
|
tax_type?: number;
|
|
216
216
|
}
|
|
217
|
-
export
|
|
217
|
+
export type OrderTaxes = Array<OrderTax>;
|
|
218
218
|
export interface OrderTenderCash {
|
|
219
219
|
cash_back: Money;
|
|
220
220
|
}
|
|
@@ -258,7 +258,7 @@ export interface OrderTender {
|
|
|
258
258
|
tender_type: TenderType;
|
|
259
259
|
tender_uuid: string;
|
|
260
260
|
}
|
|
261
|
-
export
|
|
261
|
+
export type OrderTenders = Array<OrderTender>;
|
|
262
262
|
export interface OrderTicket {
|
|
263
263
|
display_order?: number;
|
|
264
264
|
item_nos: number[];
|
|
@@ -267,7 +267,7 @@ export interface OrderTicket {
|
|
|
267
267
|
ticket_no?: number;
|
|
268
268
|
ticket_status: PrepStatus;
|
|
269
269
|
}
|
|
270
|
-
export
|
|
270
|
+
export type OrderTickets = Array<OrderTicket>;
|
|
271
271
|
export interface OrderTotals {
|
|
272
272
|
amount_due?: Money;
|
|
273
273
|
discount: NegativeMoney;
|
|
@@ -330,13 +330,13 @@ export interface Order {
|
|
|
330
330
|
timezone: TimezonePython;
|
|
331
331
|
totals: OrderTotals;
|
|
332
332
|
}
|
|
333
|
-
export
|
|
333
|
+
export type Orders = Array<Order>;
|
|
334
334
|
export interface OrderKds extends Omit<Order, 'fire_at' | 'tickets' | 'expected_at'> {
|
|
335
335
|
expected_at: ISOStringOffset;
|
|
336
336
|
fire_at: ISOStringOffset;
|
|
337
337
|
tickets: OrderTickets;
|
|
338
338
|
}
|
|
339
|
-
export
|
|
339
|
+
export type OrdersKds = Array<OrderKds>;
|
|
340
340
|
export interface FetchOrdersArgs {
|
|
341
341
|
businessDate?: DateString | null;
|
|
342
342
|
receiptType?: ReceiptType | 'BOTH';
|
|
@@ -375,7 +375,7 @@ export interface OrderBucket {
|
|
|
375
375
|
start: Date;
|
|
376
376
|
end: Date;
|
|
377
377
|
}
|
|
378
|
-
export
|
|
378
|
+
export type OrderBuckets = Array<OrderBucket>;
|
|
379
379
|
export interface OrderTimes {
|
|
380
380
|
delayed: number;
|
|
381
381
|
requested: Date;
|
|
@@ -395,7 +395,7 @@ export interface TicketsUpdate {
|
|
|
395
395
|
ticket_status?: TicketStatus;
|
|
396
396
|
ticket_nos?: number[];
|
|
397
397
|
}
|
|
398
|
-
export
|
|
398
|
+
export type TicketStatusUpdate = 'done' | 'completed' | 'reset';
|
|
399
399
|
export interface Ticket {
|
|
400
400
|
item_nos: number[];
|
|
401
401
|
item_type_id: number;
|
|
@@ -409,8 +409,8 @@ export interface Ticket {
|
|
|
409
409
|
is_hidden_qa: boolean;
|
|
410
410
|
print_on_completed: boolean;
|
|
411
411
|
}
|
|
412
|
-
export
|
|
413
|
-
export
|
|
412
|
+
export type TicketGroup = Ticket[];
|
|
413
|
+
export type TicketGroups = TicketGroup[];
|
|
414
414
|
export interface OrderKdsStatus {
|
|
415
415
|
NOT_DONE: boolean;
|
|
416
416
|
DONE: boolean;
|
|
@@ -3,11 +3,11 @@ export interface RefundItem {
|
|
|
3
3
|
item_no: number;
|
|
4
4
|
quantity: number;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type RefundItems = Array<RefundItem>;
|
|
7
7
|
export interface RefundSurcharge {
|
|
8
8
|
surcharge_id: number;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type RefundSurcharges = Array<RefundSurcharge>;
|
|
11
11
|
export interface Refund {
|
|
12
12
|
full_refund: boolean;
|
|
13
13
|
all_taxes: boolean;
|
|
@@ -11,8 +11,8 @@ export interface RevenueCenterTax {
|
|
|
11
11
|
tax_id: number;
|
|
12
12
|
tax_type: TaxType;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
15
|
-
export
|
|
14
|
+
export type RevenueCenterTaxes = RevenueCenterTax[];
|
|
15
|
+
export type RevenueCenterTenderTypes = Record<ServiceType, TenderType[]>;
|
|
16
16
|
export interface RevenueCenter {
|
|
17
17
|
credit: PaymentProcessing;
|
|
18
18
|
dine_in_prompt: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TimeString, TimezonePython } from '../datetimes';
|
|
2
2
|
import { Decimal, Money, ServiceType, TenderType, Url, Weekday } from '../global';
|
|
3
|
-
export
|
|
3
|
+
export type PaymentProcessor = 'NONE' | 'CARDCONNECT' | 'VANTIV' | 'CLOVER' | 'NMI';
|
|
4
4
|
export interface PaymentProcessing {
|
|
5
5
|
integration: PaymentProcessor;
|
|
6
6
|
is_testing: boolean;
|
|
@@ -54,7 +54,7 @@ export interface StoreMessage {
|
|
|
54
54
|
message_url: string | null;
|
|
55
55
|
is_active: boolean;
|
|
56
56
|
}
|
|
57
|
-
export
|
|
57
|
+
export type StorePunchType = 'PIN' | 'CARD';
|
|
58
58
|
export interface Store {
|
|
59
59
|
address: StoreAddress;
|
|
60
60
|
auth_type: 'PIN' | 'CARD';
|
|
@@ -110,4 +110,4 @@ export interface Store {
|
|
|
110
110
|
warning_minutes: number;
|
|
111
111
|
week_start_day: Weekday;
|
|
112
112
|
}
|
|
113
|
-
export
|
|
113
|
+
export type Stores = Store[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
export type RGBA = `rgba(${number}, ${number}, ${number}, ${number})` | 'none';
|
|
2
|
+
export type HEX = `#${string}` | 'transparent';
|
|
3
|
+
export type Pixels = `${string}px`;
|
|
4
|
+
export type Rems = `${string}rem`;
|
|
5
|
+
export type PaddingRems = `${Rems} ${Rems} ${Rems}`;
|
|
6
6
|
export interface TCMessageColor {
|
|
7
7
|
bgColor: HEX;
|
|
8
8
|
color: HEX;
|
|
@@ -20,7 +20,7 @@ export interface TCBgColors {
|
|
|
20
20
|
tertiary: HEX;
|
|
21
21
|
toast: HEX;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type TCBoldWeight = string;
|
|
24
24
|
export interface TCBorder {
|
|
25
25
|
color: HEX;
|
|
26
26
|
radius: string;
|
|
@@ -289,12 +289,12 @@ export interface TCLayout {
|
|
|
289
289
|
padding: string;
|
|
290
290
|
paddingMobile: string;
|
|
291
291
|
}
|
|
292
|
-
export
|
|
292
|
+
export type TCLineHeight = string;
|
|
293
293
|
export interface TCLinkColor {
|
|
294
294
|
color: HEX;
|
|
295
295
|
hover: HEX;
|
|
296
296
|
}
|
|
297
|
-
export
|
|
297
|
+
export type TCLinkDecoration = 'none' | 'underline' | 'line-through' | 'overline' | 'inherit';
|
|
298
298
|
export interface TCLinks {
|
|
299
299
|
dark: TCLinkColor;
|
|
300
300
|
light: TCLinkColor;
|
|
@@ -310,7 +310,7 @@ export interface TCOverlay {
|
|
|
310
310
|
secondary: RGBA;
|
|
311
311
|
tertiary: RGBA;
|
|
312
312
|
}
|
|
313
|
-
export
|
|
313
|
+
export type TCTextAlign = 'left' | 'right' | 'center';
|
|
314
314
|
export interface TCWelcome {
|
|
315
315
|
marginBottom: string;
|
|
316
316
|
marginTop: string;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
type Year = `${number}${number}${number}${number}`;
|
|
2
|
+
type Month = `${number}${number}`;
|
|
3
|
+
type Day = `${number}${number}`;
|
|
4
|
+
type Hours = `${number}${number}`;
|
|
5
|
+
type Minutes = `${number}${number}`;
|
|
6
|
+
type Seconds = `${number}${number}`;
|
|
7
|
+
type Milliseconds = `${number}${number}${number}`;
|
|
8
8
|
/**
|
|
9
9
|
* Represent a string like `2021-01-08`
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type DateString = `${Year}-${Month}-${Day}`;
|
|
12
12
|
/**
|
|
13
13
|
* Represent a string like `14:42:34.678`
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
16
|
-
export
|
|
15
|
+
export type TimeString = `${Hours}:${Minutes}:${Seconds}`;
|
|
16
|
+
export type TimeStringPrecise = `${Hours}:${Minutes}:${Seconds}.${Milliseconds}`;
|
|
17
17
|
/**
|
|
18
18
|
* Represent a timezone offset like `-05:00`
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export type TimezoneOffset = `${'+' | '-'}${Hours}:${Minutes}`;
|
|
21
21
|
/**
|
|
22
22
|
* Represent a string like `2021-01-08T14:42:34.678Z` (format: ISO 8601).
|
|
23
23
|
*
|
|
@@ -25,13 +25,13 @@ export declare type TimezoneOffset = `${'+' | '-'}${Hours}:${Minutes}`;
|
|
|
25
25
|
* it would result in a warning from TypeScript:
|
|
26
26
|
* "Expression produces a union type that is too complex to represent. ts(2590)
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
28
|
+
export type ISOString = `${DateString}T${TimeString}Z`;
|
|
29
|
+
export type ISOStringPrecise = `${DateString}T${TimeStringPrecise}Z`;
|
|
30
|
+
export type ISOStringOffset = `${DateString}T${TimeString}${TimezoneOffset}`;
|
|
31
|
+
export type TimezonePython = 'US/Eastern' | 'US/Central' | 'US/Mountain' | 'US/Pacific';
|
|
32
|
+
export type Timezone = 'America/New_York' | 'America/Chicago' | 'America/Denver' | 'America/Los_Angeles';
|
|
33
|
+
export type TimezoneMap = {
|
|
34
34
|
[Property in TimezonePython]: Timezone;
|
|
35
35
|
};
|
|
36
|
-
export
|
|
36
|
+
export type RequestedAt = ISOString | 'asap';
|
|
37
37
|
export {};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
1
|
+
export type Decimal = `${number}.${number}`;
|
|
2
|
+
export type Money = `${number}.${number}`;
|
|
3
|
+
export type NegativeMoney = `-${number}.${number}`;
|
|
4
|
+
export type Percentage = `${number}.${number}%`;
|
|
5
|
+
export type IpAddress = `${number}.${number}.${number}.${number}`;
|
|
6
|
+
export type Url = `https://${string}`;
|
|
7
|
+
export type Weekday = 'SUNDAY' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY';
|
|
8
|
+
export type OrderType = 'OLO' | 'CATERING' | 'MERCH';
|
|
9
|
+
export type FullOrderType = OrderType | 'MAIN_MENU' | 'ECOMMERCE';
|
|
10
|
+
export type OrderTypeMap = {
|
|
11
11
|
[Property in OrderType]: string;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
13
|
+
export type ServiceType = 'WALKIN' | 'PICKUP' | 'DELIVERY' | 'PORTAL';
|
|
14
|
+
export type ServiceTypeMap = {
|
|
15
15
|
[Property in ServiceType]: string;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
18
|
-
export
|
|
17
|
+
export type TenderType = 'CASH' | 'CREDIT' | 'HOUSE_ACCOUNT' | 'GIFT_CARD' | 'COMP';
|
|
18
|
+
export type TenderTypeMap = {
|
|
19
19
|
[Property in TenderType]: string;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
21
|
+
export type CardType = 'VISA' | 'MC' | 'DISC' | 'AMEX' | 'OTHER';
|
|
22
|
+
export type DiscountType = 'DOLLAR' | 'PERCENTAGE' | 'LOYALTY';
|
|
23
|
+
export type SurchargeType = 'DOLLAR' | 'PERCENTAGE' | 'DISTANCE' | 'TRAVEL_TIME';
|
|
24
|
+
export type TaxType = 'DOLLAR' | 'PERCENTAGE';
|
|
25
|
+
export type TaxTypeInt = 1 | 2;
|
|
26
|
+
export type Temperature = 'Hot' | 'Cold';
|
|
27
|
+
export type ReceiptType = 'SALE' | 'REFUND';
|
|
28
|
+
export type ChannelType = 'POS' | 'ONLINE' | 'APP' | 'PHONE' | 'KIOSK' | 'PORTAL';
|
|
29
|
+
export type OrderStatus = 'OPEN' | 'HELD' | 'CLOSED' | 'VOID';
|
|
30
|
+
export type TenderStatus = 'AUTHORIZED' | 'PAID' | 'REFUNDED' | 'VOID' | 'FAILED';
|
|
31
|
+
export type PosSettingType = 'TIME_PUNCH' | 'CASH_EVENT' | 'ORDER' | 'DEPARTMENT' | 'DEVICES' | 'DISCOUNT' | 'EMPLOYEE' | 'HOUSE_ACCOUNT' | 'LOCATION' | 'MENU' | 'MENU_PAGE' | 'SELECT_OPTION' | 'SURCHARGE' | 'TAX' | 'STORE' | 'REVENUE_CENTER' | 'ITEM_TYPE' | 'QRCODE' | 'KIOSK_CONFIG';
|
|
32
32
|
export interface PicklistOption {
|
|
33
33
|
name: string;
|
|
34
34
|
value: string | number;
|
|
35
35
|
disabled?: boolean;
|
|
36
36
|
}
|
|
37
|
-
export
|
|
37
|
+
export type PicklistOptions = PicklistOption[];
|
|
@@ -9,6 +9,6 @@ export interface RequestErrorAPI {
|
|
|
9
9
|
status: number;
|
|
10
10
|
params?: Record<string, string>;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
12
|
+
export type RequestError = RequestErrorAPI | null | undefined;
|
|
13
|
+
export type RequestStatus = 'idle' | 'pending';
|
|
14
|
+
export type Version = number | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export type Layout = {
|
|
3
3
|
padding: string;
|
|
4
4
|
margin: string;
|
|
5
5
|
headerHeight: string;
|
|
@@ -29,14 +29,14 @@ export declare type Layout = {
|
|
|
29
29
|
tktMinHeight: string;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type Font = {
|
|
33
33
|
fontFamily: string;
|
|
34
34
|
fontWeight: string;
|
|
35
35
|
fontStyle: string;
|
|
36
36
|
lineHeight: string;
|
|
37
37
|
letterSpacing: string;
|
|
38
38
|
};
|
|
39
|
-
export
|
|
39
|
+
export type FontSizes = {
|
|
40
40
|
xxxsmall: string;
|
|
41
41
|
xxsmall: string;
|
|
42
42
|
xsmall: string;
|
|
@@ -50,12 +50,12 @@ export declare type FontSizes = {
|
|
|
50
50
|
giga: string;
|
|
51
51
|
tera: string;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
53
|
+
export type Color = {
|
|
54
54
|
primary: string;
|
|
55
55
|
secondary: string;
|
|
56
56
|
tertiary: string;
|
|
57
57
|
};
|
|
58
|
-
export
|
|
58
|
+
export type Colors = {
|
|
59
59
|
text: Color;
|
|
60
60
|
background: Color;
|
|
61
61
|
border: Color;
|
|
@@ -64,30 +64,30 @@ export declare type Colors = {
|
|
|
64
64
|
success: Color;
|
|
65
65
|
alert: Color;
|
|
66
66
|
};
|
|
67
|
-
export
|
|
67
|
+
export type HeaderColor = {
|
|
68
68
|
text: string;
|
|
69
69
|
timer: string;
|
|
70
70
|
background: string;
|
|
71
71
|
border: string;
|
|
72
72
|
};
|
|
73
|
-
export
|
|
73
|
+
export type HeaderColors = {
|
|
74
74
|
default: HeaderColor;
|
|
75
75
|
alert: HeaderColor;
|
|
76
76
|
error: HeaderColor;
|
|
77
77
|
};
|
|
78
|
-
export
|
|
78
|
+
export type AlertColors = {
|
|
79
79
|
text: string;
|
|
80
80
|
default: string;
|
|
81
81
|
warning: string;
|
|
82
82
|
error: string;
|
|
83
83
|
success: string;
|
|
84
84
|
};
|
|
85
|
-
export
|
|
85
|
+
export type ButtonColor = {
|
|
86
86
|
color: string;
|
|
87
87
|
bgColor: string;
|
|
88
88
|
borderColor: string;
|
|
89
89
|
};
|
|
90
|
-
export
|
|
90
|
+
export type ButtonColors = {
|
|
91
91
|
primary: ButtonColor;
|
|
92
92
|
secondary: ButtonColor;
|
|
93
93
|
invisible: ButtonColor;
|
|
@@ -97,12 +97,12 @@ export declare type ButtonColors = {
|
|
|
97
97
|
success: ButtonColor;
|
|
98
98
|
alert: ButtonColor;
|
|
99
99
|
};
|
|
100
|
-
export
|
|
100
|
+
export type ButtonSize = {
|
|
101
101
|
fontSize: string;
|
|
102
102
|
padding: string;
|
|
103
103
|
height: string;
|
|
104
104
|
};
|
|
105
|
-
export
|
|
105
|
+
export type ButtonSizes = {
|
|
106
106
|
xsmall: ButtonSize;
|
|
107
107
|
small: ButtonSize;
|
|
108
108
|
medium: ButtonSize;
|
|
@@ -30,7 +30,7 @@ export declare const handleRespError: (err: RequestErrorAPI | string) => {
|
|
|
30
30
|
};
|
|
31
31
|
export declare const hexToRgb: (hex: string) => number[];
|
|
32
32
|
export declare const makeContrastColor: (textColors: Record<string, string>, backgroundColor: string | null) => string | null;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
type ThrottleArgs = string | number | Record<string, unknown>;
|
|
34
|
+
type ThrottleFunc = (...args: any) => void;
|
|
35
35
|
export declare function throttle(func: ThrottleFunc, delay: number): (args?: ThrottleArgs) => void;
|
|
36
36
|
export {};
|
package/dist/cjs/utils/theme.js
CHANGED
|
@@ -180,37 +180,37 @@ exports.theme = {
|
|
|
180
180
|
},
|
|
181
181
|
colors: {
|
|
182
182
|
text: {
|
|
183
|
-
primary: '#fafafb',
|
|
184
|
-
secondary: '#a9b0b7',
|
|
183
|
+
primary: '#fafafb', // headings
|
|
184
|
+
secondary: '#a9b0b7', // body
|
|
185
185
|
tertiary: '#5b6167' // secondary body
|
|
186
186
|
},
|
|
187
187
|
background: {
|
|
188
|
-
primary: '#101114',
|
|
189
|
-
secondary: '#17191c',
|
|
188
|
+
primary: '#101114', // main
|
|
189
|
+
secondary: '#17191c', // boxes
|
|
190
190
|
tertiary: '#1c1e21' // modals
|
|
191
191
|
},
|
|
192
192
|
border: {
|
|
193
|
-
primary: '#22252a',
|
|
194
|
-
secondary: '#26282b',
|
|
193
|
+
primary: '#22252a', // subtle
|
|
194
|
+
secondary: '#26282b', // less subtle
|
|
195
195
|
tertiary: '#394047' // more pronounced
|
|
196
196
|
},
|
|
197
197
|
link: {
|
|
198
|
-
primary: '#2bba3c',
|
|
199
|
-
secondary: '#1da1f2',
|
|
198
|
+
primary: '#2bba3c', // green
|
|
199
|
+
secondary: '#1da1f2', // blue
|
|
200
200
|
tertiary: '#a9b0b7' // gray
|
|
201
201
|
},
|
|
202
202
|
error: {
|
|
203
|
-
primary: '#eb2d5a',
|
|
204
|
-
secondary: '#eb2d5a',
|
|
203
|
+
primary: '#eb2d5a', // red
|
|
204
|
+
secondary: '#eb2d5a', // red - TODO: replace
|
|
205
205
|
tertiary: '#430d15' // dark red
|
|
206
206
|
},
|
|
207
207
|
success: {
|
|
208
|
-
primary: '#2bba3c',
|
|
209
|
-
secondary: '#2bba3c',
|
|
208
|
+
primary: '#2bba3c', // green
|
|
209
|
+
secondary: '#2bba3c', // green
|
|
210
210
|
tertiary: '#2bba3c' // green
|
|
211
211
|
},
|
|
212
212
|
alert: {
|
|
213
|
-
primary: '#f8e405',
|
|
213
|
+
primary: '#f8e405', // yellow
|
|
214
214
|
secondary: '#5a5aff',
|
|
215
215
|
tertiary: '#5a5aff'
|
|
216
216
|
}
|
|
@@ -218,32 +218,32 @@ exports.theme = {
|
|
|
218
218
|
buttons: {
|
|
219
219
|
colors: {
|
|
220
220
|
primary: {
|
|
221
|
-
color: '#fafafb',
|
|
222
|
-
bgColor: '#2bba3c',
|
|
221
|
+
color: '#fafafb', // white
|
|
222
|
+
bgColor: '#2bba3c', // green
|
|
223
223
|
borderColor: '#2bba3c' // green
|
|
224
224
|
},
|
|
225
225
|
secondary: {
|
|
226
|
-
color: '#fafafb',
|
|
227
|
-
bgColor: '#26282b',
|
|
226
|
+
color: '#fafafb', // white
|
|
227
|
+
bgColor: '#26282b', // gray
|
|
228
228
|
borderColor: '#26282b' // gray
|
|
229
229
|
},
|
|
230
230
|
black: {
|
|
231
|
-
color: '#fafafb',
|
|
232
|
-
bgColor: '#101114',
|
|
231
|
+
color: '#fafafb', // white
|
|
232
|
+
bgColor: '#101114', // black
|
|
233
233
|
borderColor: '#101114' // black
|
|
234
234
|
},
|
|
235
235
|
white: {
|
|
236
|
-
color: '#101114',
|
|
237
|
-
bgColor: '#fafafb',
|
|
236
|
+
color: '#101114', // black
|
|
237
|
+
bgColor: '#fafafb', // white
|
|
238
238
|
borderColor: '#fafafb' // white
|
|
239
239
|
},
|
|
240
240
|
error: {
|
|
241
|
-
color: '#fafafb',
|
|
242
|
-
bgColor: '#eb2d5a',
|
|
241
|
+
color: '#fafafb', // white
|
|
242
|
+
bgColor: '#eb2d5a', // red
|
|
243
243
|
borderColor: '#eb2d5a' // red
|
|
244
244
|
},
|
|
245
245
|
invisible: {
|
|
246
|
-
color: '#a9b0b7',
|
|
246
|
+
color: '#a9b0b7', // gray (secondary text)
|
|
247
247
|
bgColor: 'transparent',
|
|
248
248
|
borderColor: 'transparent'
|
|
249
249
|
}
|
package/dist/esm/app/hooks.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
2
|
import type { RootState } from './store';
|
|
3
|
-
export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<
|
|
3
|
+
export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<{
|
|
4
4
|
alerts: import("..").Alerts;
|
|
5
5
|
arrivals: import("..").ArrivalsState;
|
|
6
6
|
checkout: import("..").CheckoutState;
|
|
@@ -23,5 +23,5 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<i
|
|
|
23
23
|
sidebar: import("..").SidebarState;
|
|
24
24
|
surcharges: import("..").SurchargesState;
|
|
25
25
|
taxes: import("..").TaxesState;
|
|
26
|
-
}
|
|
26
|
+
}, undefined, import("redux").UnknownAction> & import("redux").Dispatch<import("redux").Action>;
|
|
27
27
|
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|