@posx/core 5.3.86 → 5.3.89
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 +46 -4
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -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;
|