shopoflex-types 1.0.239 → 1.0.241

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.
@@ -120,6 +120,12 @@ export interface ProductType {
120
120
  /** When true, cashiers may override this item's price at the POS even if the
121
121
  * branch-wide custom pricing setting is off (additive with branch setting). */
122
122
  allowCustomPricing?: boolean;
123
+ /** When true, a made-to-order line for this product accepts customer-supplied
124
+ * reference photo(s) + a text note (e.g. a custom cake). The options UI (POS
125
+ * and navori_app) shows an uploader + text box, stored on the cart line's
126
+ * `referenceImages` + `notes`, and printed per-line on the factory's color/A4
127
+ * printer. */
128
+ allowReferenceImages?: boolean;
123
129
  specifications?: {
124
130
  active: boolean;
125
131
  values: any[];
@@ -185,6 +191,12 @@ export interface CartItem {
185
191
  pluLocked?: boolean;
186
192
  /** Copied from the product; lets the POS enable price editing per-item. */
187
193
  allowCustomPricing?: boolean;
194
+ /** Customer-supplied reference photo(s) for a made-to-order line (e.g. a custom
195
+ * cake). imgix ids, resolved via getImageUrl. Populated by the POS cashier
196
+ * (QR handoff or file pick) OR by the customer in navori_app. A line carrying
197
+ * these never merges with another. Printed per-line on the factory color/A4
198
+ * printer; the accompanying text reuses `notes`. */
199
+ referenceImages?: string[];
188
200
  }
189
201
  export interface sModifier {
190
202
  name: NameType;
@@ -8,6 +8,24 @@ export interface TerminalDuties {
8
8
  reservationsBranchIds?: string[];
9
9
  statusBoard?: boolean;
10
10
  }
11
+ export interface ReservationCaps {
12
+ create?: boolean;
13
+ createOrder?: boolean;
14
+ edit?: boolean;
15
+ cancel?: boolean;
16
+ changeBranch?: boolean;
17
+ printAllKitchens?: boolean;
18
+ printKitchen?: boolean;
19
+ printReceipt?: boolean;
20
+ printPhoto?: boolean;
21
+ printAllPhotos?: boolean;
22
+ printCombined?: boolean;
23
+ printAllCombined?: boolean;
24
+ printRows?: boolean;
25
+ updateStatus?: boolean;
26
+ urgentAlerts?: boolean;
27
+ showMoney?: boolean;
28
+ }
11
29
  export interface Terminal {
12
30
  _id?: string;
13
31
  vendorId: string;
@@ -24,6 +42,7 @@ export interface Terminal {
24
42
  reservationBranchIds?: string[];
25
43
  stations?: string[];
26
44
  duties?: TerminalDuties;
45
+ reservationCaps?: ReservationCaps;
27
46
  permissions?: string[];
28
47
  sharesPrinters?: boolean;
29
48
  usesPrinterBridge?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.239",
3
+ "version": "1.0.241",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",