shopoflex-types 1.0.229 → 1.0.231

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/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from './common';
2
2
  export * from './productCart';
3
3
  export * from './filters';
4
4
  export * from './accounting';
5
+ export * from './terminal';
package/dist/index.js CHANGED
@@ -18,3 +18,4 @@ __exportStar(require("./common"), exports);
18
18
  __exportStar(require("./productCart"), exports);
19
19
  __exportStar(require("./filters"), exports);
20
20
  __exportStar(require("./accounting"), exports);
21
+ __exportStar(require("./terminal"), exports);
@@ -0,0 +1,54 @@
1
+ export type TerminalRole = 'cashier' | 'waiter' | 'kds' | 'status-board' | 'customer-display' | 'reservations' | 'reservation-desk' | 'online-orders';
2
+ export type TerminalMainView = 'default' | 'tables';
3
+ export type TerminalOrderType = 'dinein' | 'pickup' | 'delivery';
4
+ export interface TerminalDuties {
5
+ onlineOrders?: boolean;
6
+ reservations?: boolean;
7
+ statusBoard?: boolean;
8
+ }
9
+ export interface Terminal {
10
+ _id?: string;
11
+ vendorId: string;
12
+ branchId: string;
13
+ terminalId: string;
14
+ label?: string;
15
+ canHost?: boolean;
16
+ lastSeen?: string;
17
+ assigned?: boolean;
18
+ role?: TerminalRole;
19
+ mainView?: TerminalMainView;
20
+ orderTypes?: TerminalOrderType[];
21
+ reservationBranchIds?: string[];
22
+ stations?: string[];
23
+ duties?: TerminalDuties;
24
+ permissions?: string[];
25
+ sharesPrinters?: boolean;
26
+ usesPrinterBridge?: string;
27
+ createdAt?: string;
28
+ updatedAt?: string;
29
+ }
30
+ export type KitchenTicketStatus = 'new' | 'preparing' | 'ready' | 'served';
31
+ export type KitchenTicketSource = 'dine-in' | 'online' | 'reservation';
32
+ export interface KitchenTicketItem {
33
+ name: string;
34
+ quantity: number;
35
+ categoryId?: string;
36
+ modifiers?: string;
37
+ notes?: string;
38
+ }
39
+ export interface KitchenTicket {
40
+ _id: string;
41
+ vendorId?: string;
42
+ branchId?: string;
43
+ source?: KitchenTicketSource;
44
+ tableNumber?: string;
45
+ orderRef?: string;
46
+ ticketNumber?: string;
47
+ items: KitchenTicketItem[];
48
+ status: KitchenTicketStatus;
49
+ firedByTerminalId?: string;
50
+ firedByName?: string;
51
+ servedAt?: string;
52
+ createdAt: string;
53
+ updatedAt: string;
54
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // Terminal registry + kitchen tickets — shared shapes for the terminal-role
3
+ // system (POS / dashboard / server). IDs are strings (JSON), not ObjectIds.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.229",
3
+ "version": "1.0.231",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",