@posx/core 5.5.86 → 5.5.88
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/build/index.d.ts +12 -10
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -288,7 +288,7 @@ declare module '@posx/core/service.factory' {
|
|
|
288
288
|
private readonly http;
|
|
289
289
|
dataSource: Dexie;
|
|
290
290
|
private status;
|
|
291
|
-
constructor(options: IServiceOptions, win: any);
|
|
291
|
+
constructor(options: IServiceOptions, win: any, withoutDbInit?: boolean);
|
|
292
292
|
initializeDatabase(): Promise<Dexie>;
|
|
293
293
|
dropDatabase(): Promise<void>;
|
|
294
294
|
clearTableData(tableName: string): import("dexie").PromiseExtended<void>;
|
|
@@ -3040,7 +3040,8 @@ declare module '@posx/core/types/misc.type' {
|
|
|
3040
3040
|
InvoiceDiscount = "ind_",
|
|
3041
3041
|
EmployeeRole = "emr_",
|
|
3042
3042
|
OrderDisplaySystem = "ods_",
|
|
3043
|
-
Charge = "chr_"
|
|
3043
|
+
Charge = "chr_",
|
|
3044
|
+
Price = "prc_"
|
|
3044
3045
|
}
|
|
3045
3046
|
export enum ModelType {
|
|
3046
3047
|
Merchant = "mnt",
|
|
@@ -3794,6 +3795,10 @@ declare module '@posx/core/types/product.type' {
|
|
|
3794
3795
|
* The price of the item.
|
|
3795
3796
|
*/
|
|
3796
3797
|
price: number;
|
|
3798
|
+
/**
|
|
3799
|
+
* The price list of the item.
|
|
3800
|
+
*/
|
|
3801
|
+
prices: Array<IPrice>;
|
|
3797
3802
|
/**
|
|
3798
3803
|
* The unique identifier of the category that the item belongs to.
|
|
3799
3804
|
*/
|
|
@@ -3827,6 +3832,7 @@ declare module '@posx/core/types/product.type' {
|
|
|
3827
3832
|
barcode: string;
|
|
3828
3833
|
category_uid: string;
|
|
3829
3834
|
price: number;
|
|
3835
|
+
prices: Array<IPrice>;
|
|
3830
3836
|
stock: number;
|
|
3831
3837
|
print_on_receipt: boolean;
|
|
3832
3838
|
price_adjustable: boolean;
|
|
@@ -3948,12 +3954,7 @@ declare module '@posx/core/types/product.type' {
|
|
|
3948
3954
|
*/
|
|
3949
3955
|
open_price_editor: boolean;
|
|
3950
3956
|
}
|
|
3951
|
-
export class Item extends
|
|
3952
|
-
image_url: string;
|
|
3953
|
-
image_file_path: string;
|
|
3954
|
-
image_thumbnail_url: string;
|
|
3955
|
-
image_thumbnail_file_path: string;
|
|
3956
|
-
visibility: Visibility[];
|
|
3957
|
+
export class Item extends CoreItem implements IItem {
|
|
3957
3958
|
codename: string;
|
|
3958
3959
|
sku: string;
|
|
3959
3960
|
recipe: string;
|
|
@@ -3992,7 +3993,7 @@ declare module '@posx/core/types/product.type' {
|
|
|
3992
3993
|
}
|
|
3993
3994
|
export interface IPrice extends IAppCoreModel {
|
|
3994
3995
|
/** keys to look up the price */
|
|
3995
|
-
lookup_keys: Array<string>;
|
|
3996
|
+
lookup_keys: Array<string | 'member_price'>;
|
|
3996
3997
|
/** product uid*/
|
|
3997
3998
|
product_uid: string;
|
|
3998
3999
|
/** price of the item */
|
|
@@ -4001,7 +4002,8 @@ declare module '@posx/core/types/product.type' {
|
|
|
4001
4002
|
export class Price extends AppCoreModel implements IPrice {
|
|
4002
4003
|
lookup_keys: any[];
|
|
4003
4004
|
product_uid: string;
|
|
4004
|
-
|
|
4005
|
+
uid: string;
|
|
4006
|
+
amount: number;
|
|
4005
4007
|
constructor();
|
|
4006
4008
|
}
|
|
4007
4009
|
|