shopoflex-types 1.0.232 → 1.0.235
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 +9 -1
- package/dist/productCart.d.ts +2 -0
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -257,7 +257,7 @@ export interface CurrentUserType extends IUser {
|
|
|
257
257
|
}>;
|
|
258
258
|
hasAccesstoVendor?: boolean;
|
|
259
259
|
}
|
|
260
|
-
export type Permission = "
|
|
260
|
+
export type Permission = "orders.view" | "orders.manage" | "orders.refund" | "customers.view" | "customers.manage" | "discounts.view" | "discounts.manage" | "catalog.view" | "catalog.manage" | "catalog.delete" | "catalog.cost" | "inventory.view" | "inventory.manage" | "purchasing.view" | "purchasing.manage" | "expenses.view" | "expenses.manage" | "accounting.view" | "accounting.manage" | "accounting.delete" | "accounting.reports" | "analytics.view" | "analytics.financial" | "analytics.export" | "branches.view" | "branches.manage" | "users.view" | "users.manage" | "roles.manage" | "activity.view" | "settings.manage" | "terminals.manage" | "billing.view" | "billing.manage" | "pos.sell" | "pos.refund" | "pos.discount" | "pos.customers.manage" | "pos.session.operate" | "pos.cash.view" | "pos.cash.deposit" | "pos.cash.withdraw" | "pos.expense.create" | "pos.session.report" | "pos.tables.manage" | "pos.drivers.settle" | "pos.cart.no_remove";
|
|
261
261
|
export interface IRole {
|
|
262
262
|
_id?: string;
|
|
263
263
|
name: NameType;
|
|
@@ -401,6 +401,13 @@ export interface PluBarcodeConfig {
|
|
|
401
401
|
valueLength: number;
|
|
402
402
|
postfixLength: number;
|
|
403
403
|
valueType: 'price' | 'weight';
|
|
404
|
+
/**
|
|
405
|
+
* Divisor applied to the embedded value to convert it to a decimal.
|
|
406
|
+
* The scale encodes the value as an integer; e.g. a 2-decimal (kg×100)
|
|
407
|
+
* scale uses 100, a gram/3-decimal (kg×1000) scale uses 1000.
|
|
408
|
+
* Defaults to 100 for backward compatibility.
|
|
409
|
+
*/
|
|
410
|
+
valueDivisor?: number;
|
|
404
411
|
}
|
|
405
412
|
export interface VendorPages {
|
|
406
413
|
vendorId: string;
|
|
@@ -650,6 +657,7 @@ export interface IDeliverySettings {
|
|
|
650
657
|
charge?: string;
|
|
651
658
|
zones?: IZone[];
|
|
652
659
|
openingHours?: IOpeningHours;
|
|
660
|
+
excludeFeeFromSales?: boolean;
|
|
653
661
|
}
|
|
654
662
|
export interface IPickupSettings {
|
|
655
663
|
enabled?: boolean;
|
package/dist/productCart.d.ts
CHANGED
|
@@ -198,6 +198,7 @@ export interface Cart {
|
|
|
198
198
|
discount: number;
|
|
199
199
|
delivery: number;
|
|
200
200
|
deliveryTbd?: boolean;
|
|
201
|
+
informationalDeliveryFee?: number;
|
|
201
202
|
total: number;
|
|
202
203
|
tax?: number;
|
|
203
204
|
vendorTax?: number;
|
|
@@ -224,6 +225,7 @@ export interface CartState {
|
|
|
224
225
|
discount: number;
|
|
225
226
|
delivery: number;
|
|
226
227
|
deliveryTbd?: boolean;
|
|
228
|
+
informationalDeliveryFee?: number;
|
|
227
229
|
total: number;
|
|
228
230
|
promoCode?: Discount;
|
|
229
231
|
totalsByUnit?: Record<UnitTypeValue, number>;
|