@open-tender/types 0.4.16 → 0.4.18
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/devices.d.ts +89 -0
- package/dist/cjs/types/api/index.d.ts +1 -1
- package/dist/cjs/types/api/index.js +1 -1
- package/dist/cjs/types/api/kds.d.ts +6 -21
- 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/devices.d.ts +89 -0
- package/dist/esm/types/api/index.d.ts +1 -1
- package/dist/esm/types/api/index.js +1 -1
- package/dist/esm/types/api/kds.d.ts +6 -21
- 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
- package/dist/cjs/types/api/device.d.ts +0 -3
- package/dist/esm/types/api/device.d.ts +0 -3
- /package/dist/cjs/types/api/{device.js → devices.js} +0 -0
- /package/dist/esm/types/api/{device.js → devices.js} +0 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export interface PosPrinter {
|
|
2
|
+
backup_pos_printer_v2_id: number;
|
|
3
|
+
description: string;
|
|
4
|
+
ipv4_address: string;
|
|
5
|
+
name: string;
|
|
6
|
+
pos_printer_v2_id: number;
|
|
7
|
+
use_beeper: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare type PosPrinters = PosPrinter[];
|
|
10
|
+
export interface PosScanner {
|
|
11
|
+
description: string;
|
|
12
|
+
identifier: string;
|
|
13
|
+
name: string;
|
|
14
|
+
pos_scanner_id: number;
|
|
15
|
+
}
|
|
16
|
+
export declare type PosScanners = PosScanner[];
|
|
17
|
+
export declare type PosTerminalPrintReceipt = 'never' | 'always' | 'prompt';
|
|
18
|
+
export interface PosTerminal {
|
|
19
|
+
description: string;
|
|
20
|
+
name: string;
|
|
21
|
+
pos_chipdna_terminal_id: number | null;
|
|
22
|
+
pos_printer_v2_id: number | null;
|
|
23
|
+
pos_scanner: PosScanner;
|
|
24
|
+
pos_scanner_id: number | null;
|
|
25
|
+
pos_terminal_id: number;
|
|
26
|
+
print_kds: boolean;
|
|
27
|
+
print_receipt: PosTerminalPrintReceipt;
|
|
28
|
+
printer: PosPrinters;
|
|
29
|
+
}
|
|
30
|
+
export declare type PosTerminals = PosTerminal[];
|
|
31
|
+
export declare type PrepStationPrepType = 'ASSEMBLY' | 'EXPO';
|
|
32
|
+
export interface PrepStation {
|
|
33
|
+
assembly_done: boolean;
|
|
34
|
+
assembly_print: boolean;
|
|
35
|
+
expo_complete: boolean;
|
|
36
|
+
expo_complete_all: boolean;
|
|
37
|
+
expo_done_only: boolean;
|
|
38
|
+
expo_print: boolean;
|
|
39
|
+
expo_reset: boolean;
|
|
40
|
+
item_type_ids: number[];
|
|
41
|
+
name: string;
|
|
42
|
+
prep_station_id: number;
|
|
43
|
+
prep_type: PrepStationPrepType;
|
|
44
|
+
show_counts: boolean;
|
|
45
|
+
show_groups: boolean;
|
|
46
|
+
show_modifiers: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare type PrepStations = PrepStation[];
|
|
49
|
+
export interface KdsTerminal {
|
|
50
|
+
auto_print: boolean;
|
|
51
|
+
description: string;
|
|
52
|
+
kds_terminal_id: number;
|
|
53
|
+
name: string;
|
|
54
|
+
pos_printer_v2_id: number | null;
|
|
55
|
+
prep_stations: PrepStations;
|
|
56
|
+
printer: PosPrinters;
|
|
57
|
+
}
|
|
58
|
+
export declare type KdsTerminals = KdsTerminal[];
|
|
59
|
+
export interface PosServer {
|
|
60
|
+
ipv4_address: string;
|
|
61
|
+
name: string;
|
|
62
|
+
pos_server_id: number;
|
|
63
|
+
}
|
|
64
|
+
export declare type PosServers = PosServer[];
|
|
65
|
+
export interface PaymentTerminal {
|
|
66
|
+
api_key: string;
|
|
67
|
+
application_identifier: string;
|
|
68
|
+
description: string;
|
|
69
|
+
identifier: string;
|
|
70
|
+
is_active: boolean;
|
|
71
|
+
mac_address: string;
|
|
72
|
+
model: string;
|
|
73
|
+
name: string;
|
|
74
|
+
pos_chipdna_terminal_id: number;
|
|
75
|
+
revenue_center_id: number;
|
|
76
|
+
standby_message: string;
|
|
77
|
+
use_production: boolean;
|
|
78
|
+
}
|
|
79
|
+
export declare type PaymentTerminals = PaymentTerminal[];
|
|
80
|
+
export interface Devices {
|
|
81
|
+
kds_terminals: KdsTerminals;
|
|
82
|
+
pos_chipdna_terminals: PaymentTerminals;
|
|
83
|
+
pos_scanners: PosScanners;
|
|
84
|
+
pos_terminals: PosTerminals;
|
|
85
|
+
prep_stations: PrepStations;
|
|
86
|
+
printers: PosPrinters;
|
|
87
|
+
servers: PosServers;
|
|
88
|
+
}
|
|
89
|
+
export declare type DevicesList = Devices[];
|
|
@@ -8,7 +8,7 @@ export * from './completedOrders';
|
|
|
8
8
|
export * from './config';
|
|
9
9
|
export * from './creditCards';
|
|
10
10
|
export * from './customer';
|
|
11
|
-
export * from './
|
|
11
|
+
export * from './devices';
|
|
12
12
|
export * from './discounts';
|
|
13
13
|
export * from './donations';
|
|
14
14
|
export * from './employee';
|
|
@@ -11,7 +11,7 @@ tslib_1.__exportStar(require("./completedOrders"), exports);
|
|
|
11
11
|
tslib_1.__exportStar(require("./config"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./creditCards"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./customer"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./
|
|
14
|
+
tslib_1.__exportStar(require("./devices"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./discounts"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./donations"), exports);
|
|
17
17
|
tslib_1.__exportStar(require("./employee"), exports);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { PrepStations } from './devices';
|
|
1
2
|
import { OrderCart, OrderItem, Orders } from './order';
|
|
3
|
+
export declare type DeviceFontSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
4
|
+
export declare type DeviceColorScheme = 'dark' | 'light';
|
|
2
5
|
export declare type KdsView = 'column' | 'grid' | 'list' | 'tiles';
|
|
3
|
-
export declare type KdsFontSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
4
|
-
export declare type KdsColorScheme = 'dark' | 'light';
|
|
5
6
|
export declare type KdsPrepType = 'ASSEMBLY' | 'EXPO';
|
|
6
7
|
export declare type KdsOrderType = 'CURRENT' | 'FUTURE' | 'COMPLETED' | 'INCOMPLETE';
|
|
7
8
|
export declare type KdsAssemblyOptions = 'AUTO_PRINT' | 'PRINT_DONE' | 'MARK_DONE' | 'PRINT_AND_DONE' | null;
|
|
@@ -10,23 +11,7 @@ export declare type PrepStatusMap = {
|
|
|
10
11
|
[Property in PrepStatus]: PrepStatus;
|
|
11
12
|
};
|
|
12
13
|
export declare type TicketStatus = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'COMPLETED';
|
|
13
|
-
export interface
|
|
14
|
-
prep_station_id: number;
|
|
15
|
-
name: string;
|
|
16
|
-
item_type_ids: number[] | null;
|
|
17
|
-
prep_type: KdsPrepType;
|
|
18
|
-
assembly_options: KdsAssemblyOptions;
|
|
19
|
-
expo_done_only: boolean;
|
|
20
|
-
expo_print: boolean;
|
|
21
|
-
expo_reset: boolean;
|
|
22
|
-
expo_complete: boolean;
|
|
23
|
-
expo_complete_all: boolean;
|
|
24
|
-
show_modifiers: boolean;
|
|
25
|
-
show_groups: boolean;
|
|
26
|
-
show_counts: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare type PrepStations = PrepStation[];
|
|
29
|
-
export interface KdsTerminal {
|
|
14
|
+
export interface KdsTerminalSettings {
|
|
30
15
|
name: string;
|
|
31
16
|
ipAddress: string;
|
|
32
17
|
prepStations: PrepStations;
|
|
@@ -34,8 +19,8 @@ export interface KdsTerminal {
|
|
|
34
19
|
columns: number;
|
|
35
20
|
boxes: number;
|
|
36
21
|
cardWidth: number;
|
|
37
|
-
fontSize:
|
|
38
|
-
colorScheme:
|
|
22
|
+
fontSize: DeviceFontSize;
|
|
23
|
+
colorScheme: DeviceColorScheme;
|
|
39
24
|
}
|
|
40
25
|
export interface KdsStationOrderTypeCount {
|
|
41
26
|
orders: number;
|
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: {
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export interface PosPrinter {
|
|
2
|
+
backup_pos_printer_v2_id: number;
|
|
3
|
+
description: string;
|
|
4
|
+
ipv4_address: string;
|
|
5
|
+
name: string;
|
|
6
|
+
pos_printer_v2_id: number;
|
|
7
|
+
use_beeper: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare type PosPrinters = PosPrinter[];
|
|
10
|
+
export interface PosScanner {
|
|
11
|
+
description: string;
|
|
12
|
+
identifier: string;
|
|
13
|
+
name: string;
|
|
14
|
+
pos_scanner_id: number;
|
|
15
|
+
}
|
|
16
|
+
export declare type PosScanners = PosScanner[];
|
|
17
|
+
export declare type PosTerminalPrintReceipt = 'never' | 'always' | 'prompt';
|
|
18
|
+
export interface PosTerminal {
|
|
19
|
+
description: string;
|
|
20
|
+
name: string;
|
|
21
|
+
pos_chipdna_terminal_id: number | null;
|
|
22
|
+
pos_printer_v2_id: number | null;
|
|
23
|
+
pos_scanner: PosScanner;
|
|
24
|
+
pos_scanner_id: number | null;
|
|
25
|
+
pos_terminal_id: number;
|
|
26
|
+
print_kds: boolean;
|
|
27
|
+
print_receipt: PosTerminalPrintReceipt;
|
|
28
|
+
printer: PosPrinters;
|
|
29
|
+
}
|
|
30
|
+
export declare type PosTerminals = PosTerminal[];
|
|
31
|
+
export declare type PrepStationPrepType = 'ASSEMBLY' | 'EXPO';
|
|
32
|
+
export interface PrepStation {
|
|
33
|
+
assembly_done: boolean;
|
|
34
|
+
assembly_print: boolean;
|
|
35
|
+
expo_complete: boolean;
|
|
36
|
+
expo_complete_all: boolean;
|
|
37
|
+
expo_done_only: boolean;
|
|
38
|
+
expo_print: boolean;
|
|
39
|
+
expo_reset: boolean;
|
|
40
|
+
item_type_ids: number[];
|
|
41
|
+
name: string;
|
|
42
|
+
prep_station_id: number;
|
|
43
|
+
prep_type: PrepStationPrepType;
|
|
44
|
+
show_counts: boolean;
|
|
45
|
+
show_groups: boolean;
|
|
46
|
+
show_modifiers: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare type PrepStations = PrepStation[];
|
|
49
|
+
export interface KdsTerminal {
|
|
50
|
+
auto_print: boolean;
|
|
51
|
+
description: string;
|
|
52
|
+
kds_terminal_id: number;
|
|
53
|
+
name: string;
|
|
54
|
+
pos_printer_v2_id: number | null;
|
|
55
|
+
prep_stations: PrepStations;
|
|
56
|
+
printer: PosPrinters;
|
|
57
|
+
}
|
|
58
|
+
export declare type KdsTerminals = KdsTerminal[];
|
|
59
|
+
export interface PosServer {
|
|
60
|
+
ipv4_address: string;
|
|
61
|
+
name: string;
|
|
62
|
+
pos_server_id: number;
|
|
63
|
+
}
|
|
64
|
+
export declare type PosServers = PosServer[];
|
|
65
|
+
export interface PaymentTerminal {
|
|
66
|
+
api_key: string;
|
|
67
|
+
application_identifier: string;
|
|
68
|
+
description: string;
|
|
69
|
+
identifier: string;
|
|
70
|
+
is_active: boolean;
|
|
71
|
+
mac_address: string;
|
|
72
|
+
model: string;
|
|
73
|
+
name: string;
|
|
74
|
+
pos_chipdna_terminal_id: number;
|
|
75
|
+
revenue_center_id: number;
|
|
76
|
+
standby_message: string;
|
|
77
|
+
use_production: boolean;
|
|
78
|
+
}
|
|
79
|
+
export declare type PaymentTerminals = PaymentTerminal[];
|
|
80
|
+
export interface Devices {
|
|
81
|
+
kds_terminals: KdsTerminals;
|
|
82
|
+
pos_chipdna_terminals: PaymentTerminals;
|
|
83
|
+
pos_scanners: PosScanners;
|
|
84
|
+
pos_terminals: PosTerminals;
|
|
85
|
+
prep_stations: PrepStations;
|
|
86
|
+
printers: PosPrinters;
|
|
87
|
+
servers: PosServers;
|
|
88
|
+
}
|
|
89
|
+
export declare type DevicesList = Devices[];
|
|
@@ -8,7 +8,7 @@ export * from './completedOrders';
|
|
|
8
8
|
export * from './config';
|
|
9
9
|
export * from './creditCards';
|
|
10
10
|
export * from './customer';
|
|
11
|
-
export * from './
|
|
11
|
+
export * from './devices';
|
|
12
12
|
export * from './discounts';
|
|
13
13
|
export * from './donations';
|
|
14
14
|
export * from './employee';
|
|
@@ -8,7 +8,7 @@ export * from './completedOrders';
|
|
|
8
8
|
export * from './config';
|
|
9
9
|
export * from './creditCards';
|
|
10
10
|
export * from './customer';
|
|
11
|
-
export * from './
|
|
11
|
+
export * from './devices';
|
|
12
12
|
export * from './discounts';
|
|
13
13
|
export * from './donations';
|
|
14
14
|
export * from './employee';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { PrepStations } from './devices';
|
|
1
2
|
import { OrderCart, OrderItem, Orders } from './order';
|
|
3
|
+
export declare type DeviceFontSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
4
|
+
export declare type DeviceColorScheme = 'dark' | 'light';
|
|
2
5
|
export declare type KdsView = 'column' | 'grid' | 'list' | 'tiles';
|
|
3
|
-
export declare type KdsFontSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
4
|
-
export declare type KdsColorScheme = 'dark' | 'light';
|
|
5
6
|
export declare type KdsPrepType = 'ASSEMBLY' | 'EXPO';
|
|
6
7
|
export declare type KdsOrderType = 'CURRENT' | 'FUTURE' | 'COMPLETED' | 'INCOMPLETE';
|
|
7
8
|
export declare type KdsAssemblyOptions = 'AUTO_PRINT' | 'PRINT_DONE' | 'MARK_DONE' | 'PRINT_AND_DONE' | null;
|
|
@@ -10,23 +11,7 @@ export declare type PrepStatusMap = {
|
|
|
10
11
|
[Property in PrepStatus]: PrepStatus;
|
|
11
12
|
};
|
|
12
13
|
export declare type TicketStatus = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'COMPLETED';
|
|
13
|
-
export interface
|
|
14
|
-
prep_station_id: number;
|
|
15
|
-
name: string;
|
|
16
|
-
item_type_ids: number[] | null;
|
|
17
|
-
prep_type: KdsPrepType;
|
|
18
|
-
assembly_options: KdsAssemblyOptions;
|
|
19
|
-
expo_done_only: boolean;
|
|
20
|
-
expo_print: boolean;
|
|
21
|
-
expo_reset: boolean;
|
|
22
|
-
expo_complete: boolean;
|
|
23
|
-
expo_complete_all: boolean;
|
|
24
|
-
show_modifiers: boolean;
|
|
25
|
-
show_groups: boolean;
|
|
26
|
-
show_counts: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare type PrepStations = PrepStation[];
|
|
29
|
-
export interface KdsTerminal {
|
|
14
|
+
export interface KdsTerminalSettings {
|
|
30
15
|
name: string;
|
|
31
16
|
ipAddress: string;
|
|
32
17
|
prepStations: PrepStations;
|
|
@@ -34,8 +19,8 @@ export interface KdsTerminal {
|
|
|
34
19
|
columns: number;
|
|
35
20
|
boxes: number;
|
|
36
21
|
cardWidth: number;
|
|
37
|
-
fontSize:
|
|
38
|
-
colorScheme:
|
|
22
|
+
fontSize: DeviceFontSize;
|
|
23
|
+
colorScheme: DeviceColorScheme;
|
|
39
24
|
}
|
|
40
25
|
export interface KdsStationOrderTypeCount {
|
|
41
26
|
orders: number;
|
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
|
|
File without changes
|
|
File without changes
|