@open-tender/types 0.1.3 → 0.1.5
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/cjs/types/api/checkout.d.ts +197 -121
- package/dist/cjs/types/api/config.d.ts +22 -36
- package/dist/cjs/types/api/creditCards.d.ts +6 -6
- package/dist/cjs/types/api/customer/addresses.d.ts +10 -6
- package/dist/cjs/types/api/kds.d.ts +1 -1
- package/dist/cjs/types/api/menu.d.ts +16 -3
- package/dist/cjs/types/api/messages.d.ts +1 -1
- package/dist/cjs/types/api/order.d.ts +207 -446
- package/dist/cjs/types/api/order.js +17 -0
- package/dist/cjs/types/api/pos.d.ts +163 -0
- package/dist/cjs/types/api/pos.js +2 -0
- package/dist/cjs/types/global.d.ts +9 -2
- package/dist/cjs/types/request.d.ts +7 -4
- package/dist/esm/types/api/checkout.d.ts +197 -121
- package/dist/esm/types/api/config.d.ts +22 -36
- package/dist/esm/types/api/creditCards.d.ts +6 -6
- package/dist/esm/types/api/customer/addresses.d.ts +10 -6
- package/dist/esm/types/api/kds.d.ts +1 -1
- package/dist/esm/types/api/menu.d.ts +16 -3
- package/dist/esm/types/api/messages.d.ts +1 -1
- package/dist/esm/types/api/order.d.ts +207 -446
- package/dist/esm/types/api/order.js +12 -1
- package/dist/esm/types/api/pos.d.ts +163 -0
- package/dist/esm/types/api/pos.js +1 -0
- package/dist/esm/types/global.d.ts +9 -2
- package/dist/esm/types/request.d.ts +7 -4
- package/package.json +1 -1
- package/dist/.DS_Store +0 -0
- package/dist/cjs/.DS_Store +0 -0
- package/dist/esm/.DS_Store +0 -0
|
@@ -528,6 +528,9 @@ export interface ConfigCountColors {
|
|
|
528
528
|
weight: string;
|
|
529
529
|
}
|
|
530
530
|
export declare type ConfigFontSizes = 'big' | 'giga' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'main' | 'mega' | 'small' | 'tera' | 'xBig' | 'xSmall' | 'xxBig' | 'xxSmall';
|
|
531
|
+
export declare type ConfigThemeFontSizes = Record<string, string> & {
|
|
532
|
+
[keys in ConfigFontSizes]: string;
|
|
533
|
+
};
|
|
531
534
|
export interface ConfigFont {
|
|
532
535
|
color: string;
|
|
533
536
|
family: string;
|
|
@@ -535,9 +538,7 @@ export interface ConfigFont {
|
|
|
535
538
|
fontSmoothing: string;
|
|
536
539
|
letterSpacing: string;
|
|
537
540
|
lineHeight: number;
|
|
538
|
-
lineHeights:
|
|
539
|
-
[keys in ConfigFontSizes]: string;
|
|
540
|
-
};
|
|
541
|
+
lineHeights: ConfigThemeFontSizes;
|
|
541
542
|
textTransform: string;
|
|
542
543
|
url: string;
|
|
543
544
|
weight: string;
|
|
@@ -559,13 +560,10 @@ export interface ConfigThemeFont {
|
|
|
559
560
|
body: ConfigFont;
|
|
560
561
|
headings: ConfigFont;
|
|
561
562
|
headline: ConfigFont;
|
|
562
|
-
lineHeights:
|
|
563
|
-
[keys in ConfigFontSizes]: string;
|
|
564
|
-
};
|
|
563
|
+
lineHeights: ConfigThemeFontSizes;
|
|
565
564
|
preface: ConfigFont;
|
|
566
|
-
sizes:
|
|
567
|
-
|
|
568
|
-
};
|
|
565
|
+
sizes: ConfigThemeFontSizes;
|
|
566
|
+
sizesMobile: ConfigThemeFontSizes;
|
|
569
567
|
}
|
|
570
568
|
export interface ConfigThemeInputLabel {
|
|
571
569
|
fontSize: string;
|
|
@@ -705,24 +703,25 @@ export interface ConfigThemeWelcome {
|
|
|
705
703
|
titleSize: string;
|
|
706
704
|
mobile?: ConfigThemeWelcome;
|
|
707
705
|
}
|
|
706
|
+
export interface ConfigThemeColors extends Record<string, string> {
|
|
707
|
+
alert: string;
|
|
708
|
+
allergens: string;
|
|
709
|
+
dark: string;
|
|
710
|
+
error: string;
|
|
711
|
+
highlight: string;
|
|
712
|
+
light: string;
|
|
713
|
+
primary: string;
|
|
714
|
+
secondary: string;
|
|
715
|
+
success: string;
|
|
716
|
+
tertiary: string;
|
|
717
|
+
toast: string;
|
|
718
|
+
}
|
|
708
719
|
export interface ConfigTheme {
|
|
709
720
|
alert: {
|
|
710
721
|
bgColor: string;
|
|
711
722
|
color: string;
|
|
712
723
|
};
|
|
713
|
-
bgColors:
|
|
714
|
-
alert: string;
|
|
715
|
-
allergens: string;
|
|
716
|
-
dark: string;
|
|
717
|
-
error: string;
|
|
718
|
-
highlight: string;
|
|
719
|
-
light: string;
|
|
720
|
-
primary: string;
|
|
721
|
-
secondary: string;
|
|
722
|
-
success: string;
|
|
723
|
-
tertiary: string;
|
|
724
|
-
toast: string;
|
|
725
|
-
};
|
|
724
|
+
bgColors: ConfigThemeColors;
|
|
726
725
|
boldWeight: string;
|
|
727
726
|
border: ConfigThemeBorder;
|
|
728
727
|
boxShadow: {
|
|
@@ -739,20 +738,7 @@ export interface ConfigTheme {
|
|
|
739
738
|
};
|
|
740
739
|
buttons: ConfigThemeButtons;
|
|
741
740
|
cards: ConfigThemeCards;
|
|
742
|
-
colors:
|
|
743
|
-
alert: string;
|
|
744
|
-
allergens: string;
|
|
745
|
-
dark: string;
|
|
746
|
-
error: string;
|
|
747
|
-
light: string;
|
|
748
|
-
primary: string;
|
|
749
|
-
secondary: string;
|
|
750
|
-
success: string;
|
|
751
|
-
tags: string;
|
|
752
|
-
tertiary: string;
|
|
753
|
-
title: string;
|
|
754
|
-
toast: string;
|
|
755
|
-
};
|
|
741
|
+
colors: ConfigThemeColors;
|
|
756
742
|
counts: ConfigThemeCounts;
|
|
757
743
|
error: {
|
|
758
744
|
bgColor: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CardType } from '../global';
|
|
1
|
+
import { CardType, CardTypeName } from '../global';
|
|
2
2
|
export interface CreditCard {
|
|
3
|
-
card_type
|
|
4
|
-
card_type_name
|
|
5
|
-
customer_card_id
|
|
3
|
+
card_type: CardType;
|
|
4
|
+
card_type_name: CardTypeName;
|
|
5
|
+
customer_card_id: number;
|
|
6
6
|
has_profile?: boolean;
|
|
7
7
|
is_default?: boolean;
|
|
8
|
-
last4
|
|
9
|
-
masked
|
|
8
|
+
last4: string;
|
|
9
|
+
masked: string;
|
|
10
10
|
}
|
|
11
11
|
export declare type CreditCards = Array<CreditCard>;
|
|
12
12
|
export interface CreditCardData {
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
import { ISOStringOffset } from '../../datetimes';
|
|
1
2
|
export interface Address {
|
|
2
|
-
city
|
|
3
|
+
city: string;
|
|
3
4
|
company?: string;
|
|
4
5
|
contact?: string;
|
|
5
|
-
|
|
6
|
+
country?: string;
|
|
7
|
+
created_at?: ISOStringOffset;
|
|
6
8
|
customer_address_id?: number;
|
|
9
|
+
customer_id?: number;
|
|
7
10
|
description?: string;
|
|
8
11
|
formatted_address?: string;
|
|
12
|
+
is_active?: boolean;
|
|
9
13
|
is_default?: boolean;
|
|
10
|
-
last_used_at?:
|
|
11
|
-
lat: number
|
|
12
|
-
lng: number
|
|
14
|
+
last_used_at?: ISOStringOffset;
|
|
15
|
+
lat: number;
|
|
16
|
+
lng: number;
|
|
13
17
|
notes?: string;
|
|
14
18
|
phone?: string;
|
|
15
19
|
postal_code: string;
|
|
@@ -17,4 +21,4 @@ export interface Address {
|
|
|
17
21
|
street: string;
|
|
18
22
|
unit?: string;
|
|
19
23
|
}
|
|
20
|
-
export declare type Addresses =
|
|
24
|
+
export declare type Addresses = Address[];
|
|
@@ -122,16 +122,29 @@ export interface MenuCategory {
|
|
|
122
122
|
small_image_url: string | null;
|
|
123
123
|
}
|
|
124
124
|
export declare type MenuCategories = MenuCategory[];
|
|
125
|
+
export interface MenuRevenueCenter {
|
|
126
|
+
app_image_url: string;
|
|
127
|
+
description: string;
|
|
128
|
+
display_order: number;
|
|
129
|
+
hours_desc: string;
|
|
130
|
+
large_image_url: string;
|
|
131
|
+
name: string;
|
|
132
|
+
revenue_center_id: number;
|
|
133
|
+
short_name: string;
|
|
134
|
+
small_image_url: string;
|
|
135
|
+
}
|
|
136
|
+
export declare type MenuRevenueCenters = MenuRevenueCenter[];
|
|
137
|
+
export declare type SoldOut = number[];
|
|
125
138
|
export interface Menu {
|
|
126
139
|
menu: MenuCategories;
|
|
127
|
-
|
|
140
|
+
revenue_centers: MenuRevenueCenters | null;
|
|
141
|
+
sold_out_items: SoldOut;
|
|
128
142
|
}
|
|
129
143
|
export interface MenuVars {
|
|
130
144
|
revenueCenterId: number;
|
|
131
145
|
serviceType: ServiceType;
|
|
132
146
|
requestedAt: RequestedAt;
|
|
133
147
|
}
|
|
134
|
-
export declare type SoldOut = number[];
|
|
135
148
|
export interface DiscountedItem {
|
|
136
149
|
id: number;
|
|
137
150
|
category_id: number;
|
|
@@ -139,6 +152,6 @@ export interface DiscountedItem {
|
|
|
139
152
|
short_name: string;
|
|
140
153
|
}
|
|
141
154
|
export interface DiscountedItems {
|
|
142
|
-
items:
|
|
155
|
+
items: DiscountedItem[];
|
|
143
156
|
quantity: number;
|
|
144
157
|
}
|