shopoflex-types 1.0.222 → 1.0.224
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/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -252,7 +252,7 @@ export interface CurrentUserType extends IUser {
|
|
|
252
252
|
}>;
|
|
253
253
|
hasAccesstoVendor?: boolean;
|
|
254
254
|
}
|
|
255
|
-
export type Permission = "products.read" | "products.create" | "products.update" | "products.delete" | "products.cost" | "products.inventory" | "orders.read" | "orders.create" | "orders.update" | "orders.delete" | "orders.refund" | "orders.status" | "customers.read" | "customers.create" | "customers.update" | "customers.delete" | "accounting.read" | "accounting.create" | "accounting.update" | "accounting.delete" | "analytics.dashboard" | "analytics.revenue" | "analytics.customers" | "analytics.products" | "analytics.traffic" | "analytics.financial" | "analytics.inventory" | "analytics.export" | "branches.read" | "branches.create" | "branches.update" | "branches.delete" | "users.read" | "users.create" | "users.update" | "users.delete" | "users.invite" | "users.permissions.view" | "roles.read" | "roles.create" | "roles.update" | "roles.delete" | "system.vendor.update" | "system.discounts.read" | "system.discounts.create" | "system.discounts.update" | "system.discounts.delete" | "system.wallet.view" | "system.cart.restrict_item_removal" | "traffic.read" | "traffic.analytics" | "traffic.network";
|
|
255
|
+
export type Permission = "products.read" | "products.create" | "products.update" | "products.delete" | "products.cost" | "products.inventory" | "orders.read" | "orders.create" | "orders.update" | "orders.delete" | "orders.refund" | "orders.status" | "customers.read" | "customers.create" | "customers.update" | "customers.delete" | "accounting.read" | "accounting.create" | "accounting.update" | "accounting.delete" | "analytics.dashboard" | "analytics.revenue" | "analytics.customers" | "analytics.products" | "analytics.traffic" | "analytics.financial" | "analytics.inventory" | "analytics.export" | "branches.read" | "branches.create" | "branches.update" | "branches.delete" | "users.read" | "users.create" | "users.update" | "users.delete" | "users.invite" | "users.permissions.view" | "roles.read" | "roles.create" | "roles.update" | "roles.delete" | "system.vendor.update" | "system.discounts.read" | "system.discounts.create" | "system.discounts.update" | "system.discounts.delete" | "system.wallet.view" | "system.cart.restrict_item_removal" | "traffic.read" | "traffic.analytics" | "traffic.network" | "activity.read";
|
|
256
256
|
export interface IRole {
|
|
257
257
|
_id?: string;
|
|
258
258
|
name: NameType;
|
|
@@ -462,6 +462,14 @@ export interface Vendor {
|
|
|
462
462
|
currentPlan?: VendorCurrentPlan;
|
|
463
463
|
branding?: any;
|
|
464
464
|
onlineOrdersHandlers?: string[];
|
|
465
|
+
/** Terminals marked "operational" for reservations, each with the branch(es)
|
|
466
|
+
* it handles. Unlike onlineOrdersHandlers (which serve only the terminal's own
|
|
467
|
+
* branch), a reservation handler receives reservations for its assigned
|
|
468
|
+
* branches — e.g. a central factory handling several shops. */
|
|
469
|
+
reservationHandlerBranches?: {
|
|
470
|
+
terminalId: string;
|
|
471
|
+
branchIds: string[];
|
|
472
|
+
}[];
|
|
465
473
|
getTaxConfig(country?: string): TaxSettings;
|
|
466
474
|
calculateTax(subtotal: number, country?: string): {
|
|
467
475
|
taxAmount: number;
|