@posx/core 5.3.73 → 5.3.77

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
@@ -689,7 +689,23 @@ declare module '@posx/core/services/app.service' {
689
689
  constructor(http: AxiosInstance, db: Dexie, options: IServiceOptions, moduleName?: string, methodName?: string);
690
690
  changeToTakeOut(uid: string): Promise<ISectionItem>;
691
691
  }
692
- export type IProductService = IAppRemoteService<IItem>;
692
+ export interface IProductService extends IAppRemoteService<IItem> {
693
+ /**
694
+ * Clone an item
695
+ * @param item item to clone
696
+ * @returns cloned item
697
+ */
698
+ cloneItem(item: IItem): Promise<IItem>;
699
+ /**
700
+ * Clone modifiers of an item
701
+ * @param item item to clone modifiers
702
+ * @returns cloned modifiers
703
+ */
704
+ cloneModifiers(modifierCategory: ICoreCategory, modifiers: ICoreItem[]): Promise<{
705
+ modifierCategory: ICoreCategory;
706
+ modifiers: ICoreItem[];
707
+ }>;
708
+ }
693
709
  export class ProductService extends AppRemoteService<IItem> implements IProductService {
694
710
  readonly http: AxiosInstance;
695
711
  readonly db: Dexie;
@@ -697,6 +713,11 @@ declare module '@posx/core/services/app.service' {
697
713
  readonly moduleName: string;
698
714
  readonly methodName: string;
699
715
  constructor(http: AxiosInstance, db: Dexie, options: IServiceOptions, moduleName?: string, methodName?: string);
716
+ cloneItem(item: IItem): Promise<IItem>;
717
+ cloneModifiers(modifierCategory: ICoreCategory, modifiers: ICoreItem[]): Promise<{
718
+ modifierCategory: ICoreCategory;
719
+ modifiers: ICoreItem[];
720
+ }>;
700
721
  }
701
722
  export interface IShiftService extends IAppRemoteService<IShift> {
702
723
  closeShift(declareAmount: number, userUid: string): Promise<IShift>;
@@ -1439,6 +1460,7 @@ declare module '@posx/core/services/invoice.service' {
1439
1460
  private createReceiptPrintJob;
1440
1461
  private createKitchenPrintJobs;
1441
1462
  private createOrderPrintJobs;
1463
+ private createLabelPrintJobs;
1442
1464
  private filterLinesAndPrintersToPrint;
1443
1465
  private preprocessInvoice;
1444
1466
  /**
@@ -3656,6 +3678,10 @@ declare module '@posx/core/types/product.type' {
3656
3678
  * Order printer IDs of the item
3657
3679
  */
3658
3680
  order_printers_uids: Array<string>;
3681
+ /**
3682
+ * Label printer IDs of the item
3683
+ */
3684
+ label_printers_uids: Array<string>;
3659
3685
  /**
3660
3686
  * if editor will be opened by default when item is clicked
3661
3687
  */
@@ -3699,6 +3725,7 @@ declare module '@posx/core/types/product.type' {
3699
3725
  uid: string;
3700
3726
  kitchen_printers_uids: any[];
3701
3727
  order_printers_uids: any[];
3728
+ label_printers_uids: any[];
3702
3729
  open_editor_panel: boolean;
3703
3730
  open_price_editor: boolean;
3704
3731
  constructor();