@posx/core 5.3.86 → 5.3.90
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 +68 -22
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -517,7 +517,7 @@ declare module '@posx/core/services/app.service' {
|
|
|
517
517
|
* @param item - The item to add the image to.
|
|
518
518
|
* @returns A Promise that resolves to the updated IItem object.
|
|
519
519
|
*/
|
|
520
|
-
addImageAsync(file: File, item:
|
|
520
|
+
addImageAsync(file: File, item: ICoreItem): Promise<void>;
|
|
521
521
|
/**
|
|
522
522
|
* Adds a modifier category to an item.
|
|
523
523
|
* @param item - The item to add the modifier category to.
|
|
@@ -616,7 +616,7 @@ declare module '@posx/core/services/app.service' {
|
|
|
616
616
|
updateModifier(item: IItem, modifier: ICoreItem): Promise<IItem>;
|
|
617
617
|
removeModifier(item: IItem, modifier: ICoreItem): Promise<IItem>;
|
|
618
618
|
attachModifierToGroup(item: IItem, modifier_uid: string, category_uid: string): Promise<IItem>;
|
|
619
|
-
addImageAsync(file: File, item:
|
|
619
|
+
addImageAsync(file: File, item: ICoreItem): Promise<void>;
|
|
620
620
|
changeToSoldOut(uid: string): Promise<IItem>;
|
|
621
621
|
changeStock(uid: string, stock: number): Promise<IItem>;
|
|
622
622
|
private convertFileToBase64;
|
|
@@ -976,7 +976,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
976
976
|
import { QueryResponse } from '@posx/core/types/auto.query.type';
|
|
977
977
|
import { IChangePaymentMethodOption } from '@posx/core/types/payment.type';
|
|
978
978
|
import { PrinterService } from '@posx/core/services/printer.service';
|
|
979
|
-
import { IPrinter } from '@posx/core/types/printer.type';
|
|
979
|
+
import { IPrinter, PrinterType } from '@posx/core/types/printer.type';
|
|
980
980
|
import { IEmployee } from '@posx/core/types/employee.type';
|
|
981
981
|
import { QueryBuilder, QueryEtcParams } from '@posx/core/utils/autoquery.utils';
|
|
982
982
|
export interface IInvoiceBaseService extends IAppRemoteService<IInvoice> {
|
|
@@ -1469,7 +1469,10 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1469
1469
|
private createKitchenPrintJobs;
|
|
1470
1470
|
private createOrderPrintJobs;
|
|
1471
1471
|
private createLabelPrintJobs;
|
|
1472
|
-
|
|
1472
|
+
filterLinesAndPrintersToPrint(invoiceLines: IInvoiceLine[], printerType: PrinterType): {
|
|
1473
|
+
lines: IInvoiceLine[];
|
|
1474
|
+
printerUids: string[];
|
|
1475
|
+
};
|
|
1473
1476
|
private preprocessInvoice;
|
|
1474
1477
|
/**
|
|
1475
1478
|
* Adds a charge to an invoice
|
|
@@ -1863,8 +1866,6 @@ declare module '@posx/core/types/config.type' {
|
|
|
1863
1866
|
/** Kitchen slip setting */
|
|
1864
1867
|
kitchen: IKitchenConfig;
|
|
1865
1868
|
/** KDS setting */
|
|
1866
|
-
kds: IKdsConfig;
|
|
1867
|
-
/** KDS setting */
|
|
1868
1869
|
label: ILabelConfig;
|
|
1869
1870
|
/** Order setting */
|
|
1870
1871
|
order: IOrderConfig;
|
|
@@ -1891,6 +1892,19 @@ declare module '@posx/core/types/config.type' {
|
|
|
1891
1892
|
cash_drawer: ICashDrawerConfig;
|
|
1892
1893
|
/** Marketing setting */
|
|
1893
1894
|
marketing: IMarketing;
|
|
1895
|
+
/** KDS setting */
|
|
1896
|
+
kds: IKdsConfig;
|
|
1897
|
+
/** Customer display system setting */
|
|
1898
|
+
cds: ICustomerDisplaySystemConfig;
|
|
1899
|
+
}
|
|
1900
|
+
export interface ICustomerDisplaySystemConfig {
|
|
1901
|
+
full_screen_assets: string[];
|
|
1902
|
+
half_screen_assets: string[];
|
|
1903
|
+
}
|
|
1904
|
+
export class CustomerDisplaySystemConfig implements ICustomerDisplaySystemConfig {
|
|
1905
|
+
full_screen_assets: any[];
|
|
1906
|
+
half_screen_assets: any[];
|
|
1907
|
+
constructor();
|
|
1894
1908
|
}
|
|
1895
1909
|
export interface IMarketing {
|
|
1896
1910
|
/** Marketing Point Configuration */
|
|
@@ -1947,6 +1961,7 @@ declare module '@posx/core/types/config.type' {
|
|
|
1947
1961
|
marketing: MarketingConfig;
|
|
1948
1962
|
charges: ChargeConfig;
|
|
1949
1963
|
currency: CurrencyConfig;
|
|
1964
|
+
cds: CustomerDisplaySystemConfig;
|
|
1950
1965
|
constructor();
|
|
1951
1966
|
}
|
|
1952
1967
|
export interface IGeneralConfig {
|
|
@@ -3425,10 +3440,37 @@ declare module '@posx/core/types/product.type' {
|
|
|
3425
3440
|
* @ignore
|
|
3426
3441
|
*/
|
|
3427
3442
|
etc: Record<string, any>;
|
|
3443
|
+
/**
|
|
3444
|
+
* assets of the product (for image, etc)
|
|
3445
|
+
* Predefined keys that can be used by the system
|
|
3446
|
+
*/
|
|
3447
|
+
assets: ProductPartialAssets & Record<string, any>;
|
|
3448
|
+
/**
|
|
3449
|
+
* config of the product
|
|
3450
|
+
* Predefined keys that can be used by the system
|
|
3451
|
+
*/
|
|
3452
|
+
config: ProductPartialConfig & Record<string, any>;
|
|
3428
3453
|
}
|
|
3454
|
+
/**
|
|
3455
|
+
* Predefined asset keys that can be used in the product assets
|
|
3456
|
+
*/
|
|
3457
|
+
export type ProductPartialAssets = {
|
|
3458
|
+
order_big_image_url?: string;
|
|
3459
|
+
order_big_image_thumbnail_url?: string;
|
|
3460
|
+
order_image_url?: string;
|
|
3461
|
+
order_image_thumbnail_url?: string;
|
|
3462
|
+
};
|
|
3463
|
+
/**
|
|
3464
|
+
* Predefined config keys that can be used in the product configs
|
|
3465
|
+
*/
|
|
3466
|
+
export type ProductPartialConfig = {
|
|
3467
|
+
display_big_image_on_order?: boolean;
|
|
3468
|
+
};
|
|
3429
3469
|
export class ProductBase extends AppExtraModel implements IProductBase {
|
|
3430
3470
|
meta: {};
|
|
3431
3471
|
etc: {};
|
|
3472
|
+
assets: {};
|
|
3473
|
+
config: {};
|
|
3432
3474
|
color: string;
|
|
3433
3475
|
icon: string;
|
|
3434
3476
|
sequence: number;
|
|
@@ -3533,6 +3575,22 @@ declare module '@posx/core/types/product.type' {
|
|
|
3533
3575
|
* Interface for a core item, which extends the IProductBase interface.
|
|
3534
3576
|
*/
|
|
3535
3577
|
export interface ICoreItem extends IProductBase {
|
|
3578
|
+
/**
|
|
3579
|
+
* Rank of the item
|
|
3580
|
+
*/
|
|
3581
|
+
image_url: string;
|
|
3582
|
+
/**
|
|
3583
|
+
* image file path
|
|
3584
|
+
*/
|
|
3585
|
+
image_file_path: string;
|
|
3586
|
+
/**
|
|
3587
|
+
* @ignore
|
|
3588
|
+
*/
|
|
3589
|
+
image_thumbnail_url: string;
|
|
3590
|
+
/**
|
|
3591
|
+
* image thumbnail file path
|
|
3592
|
+
*/
|
|
3593
|
+
image_thumbnail_file_path: string;
|
|
3536
3594
|
/**
|
|
3537
3595
|
* The SKU (stock keeping unit) of the item.
|
|
3538
3596
|
*/
|
|
@@ -3568,6 +3626,10 @@ declare module '@posx/core/types/product.type' {
|
|
|
3568
3626
|
price_adjustable: boolean;
|
|
3569
3627
|
}
|
|
3570
3628
|
export class CoreItem extends ProductBase implements ICoreItem {
|
|
3629
|
+
image_url: string;
|
|
3630
|
+
image_file_path: string;
|
|
3631
|
+
image_thumbnail_url: string;
|
|
3632
|
+
image_thumbnail_file_path: string;
|
|
3571
3633
|
sku: string;
|
|
3572
3634
|
type: ProductType;
|
|
3573
3635
|
barcode: string;
|
|
@@ -3583,22 +3645,6 @@ declare module '@posx/core/types/product.type' {
|
|
|
3583
3645
|
* Items
|
|
3584
3646
|
*/
|
|
3585
3647
|
export interface IItem extends ICoreItem {
|
|
3586
|
-
/**
|
|
3587
|
-
* Rank of the item
|
|
3588
|
-
*/
|
|
3589
|
-
image_url: string;
|
|
3590
|
-
/**
|
|
3591
|
-
* image file path
|
|
3592
|
-
*/
|
|
3593
|
-
image_file_path: string;
|
|
3594
|
-
/**
|
|
3595
|
-
* @ignore
|
|
3596
|
-
*/
|
|
3597
|
-
image_thumbnail_url: string;
|
|
3598
|
-
/**
|
|
3599
|
-
* image thumbnail file path
|
|
3600
|
-
*/
|
|
3601
|
-
image_thumbnail_file_path: string;
|
|
3602
3648
|
/**
|
|
3603
3649
|
* Codename of the item
|
|
3604
3650
|
*/
|