shopoflex-types 1.0.240 → 1.0.245
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/common.d.ts +16 -2
- package/dist/productCart.d.ts +1 -0
- package/dist/terminal.d.ts +19 -0
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -484,8 +484,8 @@ export interface Vendor {
|
|
|
484
484
|
}[];
|
|
485
485
|
/** POS-to-POS inter-branch item request settings (opt-in, off by default). */
|
|
486
486
|
posStockTransfer?: import('./interBranchRequest').PosStockTransferSettings;
|
|
487
|
-
getTaxConfig(country?: string): TaxSettings;
|
|
488
|
-
calculateTax(subtotal: number, country?: string): {
|
|
487
|
+
getTaxConfig(country?: string, branchId?: string): TaxSettings;
|
|
488
|
+
calculateTax(subtotal: number, country?: string, branchId?: string): {
|
|
489
489
|
taxAmount: number;
|
|
490
490
|
taxConfig: TaxSettings;
|
|
491
491
|
taxIncludedInTotal: boolean;
|
|
@@ -719,6 +719,8 @@ export interface IBranch {
|
|
|
719
719
|
showCost?: boolean;
|
|
720
720
|
preventSessionCloseIfOpenCarts?: boolean;
|
|
721
721
|
autoLockPosOnInit?: boolean;
|
|
722
|
+
requireKitchenPrintBeforeReceipt?: boolean;
|
|
723
|
+
requireReceiptPrintBeforeCheckout?: boolean;
|
|
722
724
|
}
|
|
723
725
|
export interface PaginationQuery {
|
|
724
726
|
page?: string;
|
|
@@ -794,5 +796,17 @@ export interface TaxConfig {
|
|
|
794
796
|
percentage: number;
|
|
795
797
|
mode?: "flat" | "per_item";
|
|
796
798
|
}>;
|
|
799
|
+
/**
|
|
800
|
+
* Per-branch tax overrides, keyed by branch `_id`. When a branch has an entry
|
|
801
|
+
* here it fully replaces the resolved `fixed`/`perCountry` rule for that branch.
|
|
802
|
+
* Branches without an entry fall back to the global config (backward compatible).
|
|
803
|
+
*/
|
|
804
|
+
taxByBranch?: Record<string, {
|
|
805
|
+
active: boolean;
|
|
806
|
+
show: boolean;
|
|
807
|
+
payer: "vendor" | "customer";
|
|
808
|
+
percentage: number;
|
|
809
|
+
mode?: "flat" | "per_item";
|
|
810
|
+
}>;
|
|
797
811
|
}
|
|
798
812
|
export {};
|
package/dist/productCart.d.ts
CHANGED
package/dist/terminal.d.ts
CHANGED
|
@@ -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;
|