@open-tender/types 0.4.17 → 0.4.19
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/kds.d.ts +4 -4
- package/dist/cjs/types/api/order.d.ts +3 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/themePos.d.ts +9 -1
- package/dist/esm/types/api/kds.d.ts +4 -4
- package/dist/esm/types/api/order.d.ts +3 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/types/themePos.d.ts +9 -1
- package/package.json +1 -1
- package/dist/.DS_Store +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PrepStations } from './devices';
|
|
2
2
|
import { OrderCart, OrderItem, Orders } from './order';
|
|
3
|
+
export declare type DeviceFontSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
4
|
+
export declare type DeviceColorScheme = 'dark' | 'light';
|
|
3
5
|
export declare type KdsView = 'column' | 'grid' | 'list' | 'tiles';
|
|
4
|
-
export declare type KdsFontSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
5
|
-
export declare type KdsColorScheme = 'dark' | 'light';
|
|
6
6
|
export declare type KdsPrepType = 'ASSEMBLY' | 'EXPO';
|
|
7
7
|
export declare type KdsOrderType = 'CURRENT' | 'FUTURE' | 'COMPLETED' | 'INCOMPLETE';
|
|
8
8
|
export declare type KdsAssemblyOptions = 'AUTO_PRINT' | 'PRINT_DONE' | 'MARK_DONE' | 'PRINT_AND_DONE' | null;
|
|
@@ -19,8 +19,8 @@ export interface KdsTerminalSettings {
|
|
|
19
19
|
columns: number;
|
|
20
20
|
boxes: number;
|
|
21
21
|
cardWidth: number;
|
|
22
|
-
fontSize:
|
|
23
|
-
colorScheme:
|
|
22
|
+
fontSize: DeviceFontSize;
|
|
23
|
+
colorScheme: DeviceColorScheme;
|
|
24
24
|
}
|
|
25
25
|
export interface KdsStationOrderTypeCount {
|
|
26
26
|
orders: number;
|
|
@@ -18,6 +18,8 @@ export interface OrderItem {
|
|
|
18
18
|
id: number;
|
|
19
19
|
images: Images;
|
|
20
20
|
ingredients: string | null;
|
|
21
|
+
item_no?: number;
|
|
22
|
+
line_no?: number;
|
|
21
23
|
made_for?: string | null;
|
|
22
24
|
name: string;
|
|
23
25
|
notes?: string | null;
|
|
@@ -250,7 +252,7 @@ export interface Order {
|
|
|
250
252
|
address: Address | null;
|
|
251
253
|
cart: OrderCart;
|
|
252
254
|
channel: OrderChannel;
|
|
253
|
-
created_at:
|
|
255
|
+
created_at: ISOString;
|
|
254
256
|
customer: OrderCustomer | null;
|
|
255
257
|
delivery: OrderDelivery | null;
|
|
256
258
|
deposit: Money | null;
|
package/dist/cjs/types/index.js
CHANGED
|
@@ -6,4 +6,5 @@ tslib_1.__exportStar(require("./datetimes"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./global"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./inputs"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./request"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./themePos"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./errors"), exports);
|
|
@@ -4,12 +4,20 @@ export declare type Layout = {
|
|
|
4
4
|
margin: string;
|
|
5
5
|
headerHeight: string;
|
|
6
6
|
footerHeight: string;
|
|
7
|
-
asideWidth: string;
|
|
8
7
|
sidebarWidth: string;
|
|
9
8
|
gutter: string;
|
|
10
9
|
paddingLessGutter: string;
|
|
11
10
|
marginLessGutter: string;
|
|
11
|
+
aside: {
|
|
12
|
+
width: string;
|
|
13
|
+
buttonHeight: string;
|
|
14
|
+
};
|
|
12
15
|
bigButton: {
|
|
16
|
+
width: string;
|
|
17
|
+
height: string;
|
|
18
|
+
};
|
|
19
|
+
tallButton: {
|
|
20
|
+
width: string;
|
|
13
21
|
height: string;
|
|
14
22
|
};
|
|
15
23
|
nav: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PrepStations } from './devices';
|
|
2
2
|
import { OrderCart, OrderItem, Orders } from './order';
|
|
3
|
+
export declare type DeviceFontSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
4
|
+
export declare type DeviceColorScheme = 'dark' | 'light';
|
|
3
5
|
export declare type KdsView = 'column' | 'grid' | 'list' | 'tiles';
|
|
4
|
-
export declare type KdsFontSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
5
|
-
export declare type KdsColorScheme = 'dark' | 'light';
|
|
6
6
|
export declare type KdsPrepType = 'ASSEMBLY' | 'EXPO';
|
|
7
7
|
export declare type KdsOrderType = 'CURRENT' | 'FUTURE' | 'COMPLETED' | 'INCOMPLETE';
|
|
8
8
|
export declare type KdsAssemblyOptions = 'AUTO_PRINT' | 'PRINT_DONE' | 'MARK_DONE' | 'PRINT_AND_DONE' | null;
|
|
@@ -19,8 +19,8 @@ export interface KdsTerminalSettings {
|
|
|
19
19
|
columns: number;
|
|
20
20
|
boxes: number;
|
|
21
21
|
cardWidth: number;
|
|
22
|
-
fontSize:
|
|
23
|
-
colorScheme:
|
|
22
|
+
fontSize: DeviceFontSize;
|
|
23
|
+
colorScheme: DeviceColorScheme;
|
|
24
24
|
}
|
|
25
25
|
export interface KdsStationOrderTypeCount {
|
|
26
26
|
orders: number;
|
|
@@ -18,6 +18,8 @@ export interface OrderItem {
|
|
|
18
18
|
id: number;
|
|
19
19
|
images: Images;
|
|
20
20
|
ingredients: string | null;
|
|
21
|
+
item_no?: number;
|
|
22
|
+
line_no?: number;
|
|
21
23
|
made_for?: string | null;
|
|
22
24
|
name: string;
|
|
23
25
|
notes?: string | null;
|
|
@@ -250,7 +252,7 @@ export interface Order {
|
|
|
250
252
|
address: Address | null;
|
|
251
253
|
cart: OrderCart;
|
|
252
254
|
channel: OrderChannel;
|
|
253
|
-
created_at:
|
|
255
|
+
created_at: ISOString;
|
|
254
256
|
customer: OrderCustomer | null;
|
|
255
257
|
delivery: OrderDelivery | null;
|
|
256
258
|
deposit: Money | null;
|
package/dist/esm/types/index.js
CHANGED
|
@@ -4,12 +4,20 @@ export declare type Layout = {
|
|
|
4
4
|
margin: string;
|
|
5
5
|
headerHeight: string;
|
|
6
6
|
footerHeight: string;
|
|
7
|
-
asideWidth: string;
|
|
8
7
|
sidebarWidth: string;
|
|
9
8
|
gutter: string;
|
|
10
9
|
paddingLessGutter: string;
|
|
11
10
|
marginLessGutter: string;
|
|
11
|
+
aside: {
|
|
12
|
+
width: string;
|
|
13
|
+
buttonHeight: string;
|
|
14
|
+
};
|
|
12
15
|
bigButton: {
|
|
16
|
+
width: string;
|
|
17
|
+
height: string;
|
|
18
|
+
};
|
|
19
|
+
tallButton: {
|
|
20
|
+
width: string;
|
|
13
21
|
height: string;
|
|
14
22
|
};
|
|
15
23
|
nav: {
|
package/package.json
CHANGED
package/dist/.DS_Store
DELETED
|
Binary file
|