@posx/core 5.3.85 → 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 CHANGED
@@ -313,6 +313,7 @@ declare module '@posx/core/services/abstract.service' {
313
313
  */
314
314
  export interface IAppCoreService<T extends IAppCoreModel> {
315
315
  db: Dexie;
316
+ table: Dexie.Table<T>;
316
317
  moduleName: string;
317
318
  /**
318
319
  * Creates a live query.
@@ -975,7 +976,7 @@ declare module '@posx/core/services/invoice.service' {
975
976
  import { QueryResponse } from '@posx/core/types/auto.query.type';
976
977
  import { IChangePaymentMethodOption } from '@posx/core/types/payment.type';
977
978
  import { PrinterService } from '@posx/core/services/printer.service';
978
- import { IPrinter } from '@posx/core/types/printer.type';
979
+ import { IPrinter, PrinterType } from '@posx/core/types/printer.type';
979
980
  import { IEmployee } from '@posx/core/types/employee.type';
980
981
  import { QueryBuilder, QueryEtcParams } from '@posx/core/utils/autoquery.utils';
981
982
  export interface IInvoiceBaseService extends IAppRemoteService<IInvoice> {
@@ -1468,7 +1469,10 @@ declare module '@posx/core/services/invoice.service' {
1468
1469
  private createKitchenPrintJobs;
1469
1470
  private createOrderPrintJobs;
1470
1471
  private createLabelPrintJobs;
1471
- private filterLinesAndPrintersToPrint;
1472
+ filterLinesAndPrintersToPrint(invoiceLines: IInvoiceLine[], printerType: PrinterType): {
1473
+ lines: IInvoiceLine[];
1474
+ printerUids: string[];
1475
+ };
1472
1476
  private preprocessInvoice;
1473
1477
  /**
1474
1478
  * Adds a charge to an invoice
@@ -1862,8 +1866,6 @@ declare module '@posx/core/types/config.type' {
1862
1866
  /** Kitchen slip setting */
1863
1867
  kitchen: IKitchenConfig;
1864
1868
  /** KDS setting */
1865
- kds: IKdsConfig;
1866
- /** KDS setting */
1867
1869
  label: ILabelConfig;
1868
1870
  /** Order setting */
1869
1871
  order: IOrderConfig;
@@ -1890,6 +1892,19 @@ declare module '@posx/core/types/config.type' {
1890
1892
  cash_drawer: ICashDrawerConfig;
1891
1893
  /** Marketing setting */
1892
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();
1893
1908
  }
1894
1909
  export interface IMarketing {
1895
1910
  /** Marketing Point Configuration */
@@ -1946,6 +1961,7 @@ declare module '@posx/core/types/config.type' {
1946
1961
  marketing: MarketingConfig;
1947
1962
  charges: ChargeConfig;
1948
1963
  currency: CurrencyConfig;
1964
+ cds: CustomerDisplaySystemConfig;
1949
1965
  constructor();
1950
1966
  }
1951
1967
  export interface IGeneralConfig {
@@ -3424,10 +3440,37 @@ declare module '@posx/core/types/product.type' {
3424
3440
  * @ignore
3425
3441
  */
3426
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>;
3427
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
+ };
3428
3469
  export class ProductBase extends AppExtraModel implements IProductBase {
3429
3470
  meta: {};
3430
3471
  etc: {};
3472
+ assets: {};
3473
+ config: {};
3431
3474
  color: string;
3432
3475
  icon: string;
3433
3476
  sequence: number;