shopoflex-types 1.0.198 → 1.0.200
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 +28 -0
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -97,6 +97,12 @@ export interface CashTransactionInterface {
|
|
|
97
97
|
createdAt?: Date;
|
|
98
98
|
updatedAt?: Date;
|
|
99
99
|
}
|
|
100
|
+
export interface PackagingOption {
|
|
101
|
+
id: string;
|
|
102
|
+
name: string;
|
|
103
|
+
unitsPerPackage: number;
|
|
104
|
+
barcode?: string;
|
|
105
|
+
}
|
|
100
106
|
export interface PriceModel {
|
|
101
107
|
price: number;
|
|
102
108
|
discountedPrice?: number;
|
|
@@ -105,6 +111,7 @@ export interface PriceModel {
|
|
|
105
111
|
allowDecimal?: boolean;
|
|
106
112
|
minQuantity?: number;
|
|
107
113
|
unit: UnitTypeValue;
|
|
114
|
+
packaging?: PackagingOption[];
|
|
108
115
|
}
|
|
109
116
|
export interface Dimensions {
|
|
110
117
|
active: boolean;
|
|
@@ -426,6 +433,27 @@ export interface Vendor {
|
|
|
426
433
|
canCreateOrder(): Promise<boolean>;
|
|
427
434
|
canCreateUser(): Promise<boolean>;
|
|
428
435
|
canCreateBranch(): Promise<boolean>;
|
|
436
|
+
printStyleSettings?: IPrintStyleSettings;
|
|
437
|
+
}
|
|
438
|
+
export interface IPrintStyleSettings {
|
|
439
|
+
fontSize?: 'small' | 'medium' | 'large';
|
|
440
|
+
showLogo?: boolean;
|
|
441
|
+
showBusinessName?: boolean;
|
|
442
|
+
showAddress?: boolean;
|
|
443
|
+
addressPosition?: 'header' | 'footer';
|
|
444
|
+
showPhone?: boolean;
|
|
445
|
+
phonePosition?: 'header' | 'footer';
|
|
446
|
+
showOrderNumber?: boolean;
|
|
447
|
+
showTable?: boolean;
|
|
448
|
+
dateTimePosition?: 'info' | 'footer';
|
|
449
|
+
showModifiers?: boolean;
|
|
450
|
+
showFooter?: boolean;
|
|
451
|
+
footerMessage?: string;
|
|
452
|
+
headerMessage?: string;
|
|
453
|
+
showQRCode?: boolean;
|
|
454
|
+
qrSource?: 'menu' | 'website' | 'custom';
|
|
455
|
+
customQrUrl?: string;
|
|
456
|
+
qrLabel?: string;
|
|
429
457
|
}
|
|
430
458
|
export interface VendorUser<TUser = string, TRole = string> {
|
|
431
459
|
user: TUser;
|