@posx/core 5.3.75 → 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 +22 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
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
|
|
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>;
|