@posx/core 5.3.75 → 5.3.78
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 +20 -0
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -583,6 +583,21 @@ declare module '@posx/core/services/app.service' {
|
|
|
583
583
|
* @param stock the quantity to change the stock by, can be negative
|
|
584
584
|
*/
|
|
585
585
|
changeStock(uid: string, stock: number): Promise<IItem>;
|
|
586
|
+
/**
|
|
587
|
+
* Clone an item
|
|
588
|
+
* @param item item to clone
|
|
589
|
+
* @returns cloned item
|
|
590
|
+
*/
|
|
591
|
+
cloneItem(item: IItem): Promise<IItem>;
|
|
592
|
+
/**
|
|
593
|
+
* Clone modifiers of an item
|
|
594
|
+
* @param item item to clone modifiers
|
|
595
|
+
* @returns cloned modifiers
|
|
596
|
+
*/
|
|
597
|
+
cloneModifiers(modifierCategory: ICoreCategory, modifiers: ICoreItem[]): Promise<{
|
|
598
|
+
modifierCategory: ICoreCategory;
|
|
599
|
+
modifiers: ICoreItem[];
|
|
600
|
+
}>;
|
|
586
601
|
}
|
|
587
602
|
export class ItemService extends AppRemoteService<IItem> implements IItemService {
|
|
588
603
|
readonly http: AxiosInstance;
|
|
@@ -604,6 +619,11 @@ declare module '@posx/core/services/app.service' {
|
|
|
604
619
|
changeStock(uid: string, stock: number): Promise<IItem>;
|
|
605
620
|
private convertFileToBase64;
|
|
606
621
|
private getFileExtension;
|
|
622
|
+
cloneItem(item: IItem): Promise<IItem>;
|
|
623
|
+
cloneModifiers(modifierCategory: ICoreCategory, modifiers: ICoreItem[]): Promise<{
|
|
624
|
+
modifierCategory: ICoreCategory;
|
|
625
|
+
modifiers: ICoreItem[];
|
|
626
|
+
}>;
|
|
607
627
|
}
|
|
608
628
|
/**
|
|
609
629
|
* Represents a service for managing categories.
|