@open-tender/types 0.4.15 → 0.4.17
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/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 +66 -18
- 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 +66 -18
- package/package.json +1 -1
- 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
package/dist/.DS_Store
CHANGED
|
Binary file
|
|
@@ -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,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PrepStations } from './devices';
|
|
2
|
+
import { OrderCart, OrderItem, Orders } from './order';
|
|
2
3
|
export declare type KdsView = 'column' | 'grid' | 'list' | 'tiles';
|
|
3
4
|
export declare type KdsFontSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
4
5
|
export declare type KdsColorScheme = 'dark' | 'light';
|
|
@@ -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;
|
|
@@ -50,3 +35,66 @@ export interface OrdersAndStationCounts {
|
|
|
50
35
|
orders: Orders;
|
|
51
36
|
stationCounts: KdsStationCounts | null;
|
|
52
37
|
}
|
|
38
|
+
export interface OrderCounts {
|
|
39
|
+
current: Record<string, number> | null;
|
|
40
|
+
future: Record<string, number> | null;
|
|
41
|
+
qa: Record<string, number> | null;
|
|
42
|
+
}
|
|
43
|
+
export interface OrdersAndCounts {
|
|
44
|
+
orders: Orders;
|
|
45
|
+
counts: OrderCounts;
|
|
46
|
+
}
|
|
47
|
+
export interface OrderUpdate {
|
|
48
|
+
expected_at?: string;
|
|
49
|
+
prep_status?: PrepStatus;
|
|
50
|
+
}
|
|
51
|
+
export interface OrderBucket {
|
|
52
|
+
orders: Orders;
|
|
53
|
+
start: Date;
|
|
54
|
+
end: Date;
|
|
55
|
+
}
|
|
56
|
+
export declare type OrderBuckets = Array<OrderBucket>;
|
|
57
|
+
export interface OrderPrepTimes {
|
|
58
|
+
delayed: number;
|
|
59
|
+
requested: Date;
|
|
60
|
+
requestedTime: string;
|
|
61
|
+
expected: Date;
|
|
62
|
+
expectedDate: string;
|
|
63
|
+
expectedTime: string;
|
|
64
|
+
readyBy: Date;
|
|
65
|
+
readyTime: string;
|
|
66
|
+
dateStr: string;
|
|
67
|
+
status: string;
|
|
68
|
+
}
|
|
69
|
+
export interface TicketUpdate {
|
|
70
|
+
ticket_status: TicketStatus;
|
|
71
|
+
}
|
|
72
|
+
export interface TicketsUpdate {
|
|
73
|
+
ticket_status?: TicketStatus;
|
|
74
|
+
ticket_nos?: number[];
|
|
75
|
+
}
|
|
76
|
+
export declare type TicketStatusUpdate = 'done' | 'completed' | 'reset';
|
|
77
|
+
export interface Ticket {
|
|
78
|
+
item_nos: number[];
|
|
79
|
+
item_type_id: number;
|
|
80
|
+
item_type_name: string;
|
|
81
|
+
ticket_no: number;
|
|
82
|
+
ticket_status: TicketStatus;
|
|
83
|
+
items: OrderCart;
|
|
84
|
+
is_default: boolean;
|
|
85
|
+
is_grouped: boolean;
|
|
86
|
+
is_hidden_assembly: boolean;
|
|
87
|
+
is_hidden_qa: boolean;
|
|
88
|
+
print_on_completed: boolean;
|
|
89
|
+
}
|
|
90
|
+
export declare type TicketGroup = Ticket[];
|
|
91
|
+
export declare type TicketGroups = TicketGroup[];
|
|
92
|
+
export interface OrderKdsStatus {
|
|
93
|
+
NOT_DONE: boolean;
|
|
94
|
+
DONE: boolean;
|
|
95
|
+
COMPLETED: boolean;
|
|
96
|
+
}
|
|
97
|
+
export interface OrderItemCount {
|
|
98
|
+
item: OrderItem;
|
|
99
|
+
count: number;
|
|
100
|
+
}
|
|
@@ -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,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PrepStations } from './devices';
|
|
2
|
+
import { OrderCart, OrderItem, Orders } from './order';
|
|
2
3
|
export declare type KdsView = 'column' | 'grid' | 'list' | 'tiles';
|
|
3
4
|
export declare type KdsFontSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
4
5
|
export declare type KdsColorScheme = 'dark' | 'light';
|
|
@@ -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;
|
|
@@ -50,3 +35,66 @@ export interface OrdersAndStationCounts {
|
|
|
50
35
|
orders: Orders;
|
|
51
36
|
stationCounts: KdsStationCounts | null;
|
|
52
37
|
}
|
|
38
|
+
export interface OrderCounts {
|
|
39
|
+
current: Record<string, number> | null;
|
|
40
|
+
future: Record<string, number> | null;
|
|
41
|
+
qa: Record<string, number> | null;
|
|
42
|
+
}
|
|
43
|
+
export interface OrdersAndCounts {
|
|
44
|
+
orders: Orders;
|
|
45
|
+
counts: OrderCounts;
|
|
46
|
+
}
|
|
47
|
+
export interface OrderUpdate {
|
|
48
|
+
expected_at?: string;
|
|
49
|
+
prep_status?: PrepStatus;
|
|
50
|
+
}
|
|
51
|
+
export interface OrderBucket {
|
|
52
|
+
orders: Orders;
|
|
53
|
+
start: Date;
|
|
54
|
+
end: Date;
|
|
55
|
+
}
|
|
56
|
+
export declare type OrderBuckets = Array<OrderBucket>;
|
|
57
|
+
export interface OrderPrepTimes {
|
|
58
|
+
delayed: number;
|
|
59
|
+
requested: Date;
|
|
60
|
+
requestedTime: string;
|
|
61
|
+
expected: Date;
|
|
62
|
+
expectedDate: string;
|
|
63
|
+
expectedTime: string;
|
|
64
|
+
readyBy: Date;
|
|
65
|
+
readyTime: string;
|
|
66
|
+
dateStr: string;
|
|
67
|
+
status: string;
|
|
68
|
+
}
|
|
69
|
+
export interface TicketUpdate {
|
|
70
|
+
ticket_status: TicketStatus;
|
|
71
|
+
}
|
|
72
|
+
export interface TicketsUpdate {
|
|
73
|
+
ticket_status?: TicketStatus;
|
|
74
|
+
ticket_nos?: number[];
|
|
75
|
+
}
|
|
76
|
+
export declare type TicketStatusUpdate = 'done' | 'completed' | 'reset';
|
|
77
|
+
export interface Ticket {
|
|
78
|
+
item_nos: number[];
|
|
79
|
+
item_type_id: number;
|
|
80
|
+
item_type_name: string;
|
|
81
|
+
ticket_no: number;
|
|
82
|
+
ticket_status: TicketStatus;
|
|
83
|
+
items: OrderCart;
|
|
84
|
+
is_default: boolean;
|
|
85
|
+
is_grouped: boolean;
|
|
86
|
+
is_hidden_assembly: boolean;
|
|
87
|
+
is_hidden_qa: boolean;
|
|
88
|
+
print_on_completed: boolean;
|
|
89
|
+
}
|
|
90
|
+
export declare type TicketGroup = Ticket[];
|
|
91
|
+
export declare type TicketGroups = TicketGroup[];
|
|
92
|
+
export interface OrderKdsStatus {
|
|
93
|
+
NOT_DONE: boolean;
|
|
94
|
+
DONE: boolean;
|
|
95
|
+
COMPLETED: boolean;
|
|
96
|
+
}
|
|
97
|
+
export interface OrderItemCount {
|
|
98
|
+
item: OrderItem;
|
|
99
|
+
count: number;
|
|
100
|
+
}
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|