@posx/core 5.3.89 → 5.3.91

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
@@ -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: IItem): Promise<IItem>;
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: IItem): Promise<IItem>;
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;
@@ -3575,6 +3575,22 @@ declare module '@posx/core/types/product.type' {
3575
3575
  * Interface for a core item, which extends the IProductBase interface.
3576
3576
  */
3577
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;
3578
3594
  /**
3579
3595
  * The SKU (stock keeping unit) of the item.
3580
3596
  */
@@ -3610,6 +3626,10 @@ declare module '@posx/core/types/product.type' {
3610
3626
  price_adjustable: boolean;
3611
3627
  }
3612
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;
3613
3633
  sku: string;
3614
3634
  type: ProductType;
3615
3635
  barcode: string;
@@ -3625,22 +3645,6 @@ declare module '@posx/core/types/product.type' {
3625
3645
  * Items
3626
3646
  */
3627
3647
  export interface IItem extends ICoreItem {
3628
- /**
3629
- * Rank of the item
3630
- */
3631
- image_url: string;
3632
- /**
3633
- * image file path
3634
- */
3635
- image_file_path: string;
3636
- /**
3637
- * @ignore
3638
- */
3639
- image_thumbnail_url: string;
3640
- /**
3641
- * image thumbnail file path
3642
- */
3643
- image_thumbnail_file_path: string;
3644
3648
  /**
3645
3649
  * Codename of the item
3646
3650
  */