@posx/core 5.5.212 → 5.5.214
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 +28 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -286,6 +286,7 @@ declare module '@posx/core/service.factory' {
|
|
|
286
286
|
employee_roles: string;
|
|
287
287
|
order_displays: string;
|
|
288
288
|
storages: string;
|
|
289
|
+
menus: string;
|
|
289
290
|
};
|
|
290
291
|
export class ServiceFactory {
|
|
291
292
|
readonly options: IServiceOptions;
|
|
@@ -461,6 +462,7 @@ declare module '@posx/core/services/app.service' {
|
|
|
461
462
|
import { QueryBuilder } from '@posx/core/utils/autoquery.utils';
|
|
462
463
|
import { QueryResponse } from '@posx/core/types/auto.query.type';
|
|
463
464
|
import { IStorage } from '@posx/core/types/storage.type';
|
|
465
|
+
import { IMenu } from '@posx/core/types/menu.type';
|
|
464
466
|
export type IEmployeeRoleService = IAppRemoteService<IEmployeeRole> & IAppRemoteService<IEmployeeRole>;
|
|
465
467
|
export type INoteService = IAppRemoteService<INote>;
|
|
466
468
|
export type INoteGroupService = IAppRemoteService<INoteGroup>;
|
|
@@ -963,6 +965,15 @@ declare module '@posx/core/services/app.service' {
|
|
|
963
965
|
autoquery(builder: QueryBuilder<IPrintJob>): Promise<QueryResponse<IPrintJob>>;
|
|
964
966
|
replacePrinter(printJob: IPrintJob, printer: IPrinter): IPrintJob;
|
|
965
967
|
}
|
|
968
|
+
export type IMenuService = IAppRemoteService<IMenu>;
|
|
969
|
+
export class MenuService extends AppRemoteService<IMenu> implements IMenuService {
|
|
970
|
+
readonly http: AxiosInstance;
|
|
971
|
+
readonly db: Dexie;
|
|
972
|
+
readonly options: IServiceOptions;
|
|
973
|
+
readonly moduleName: string;
|
|
974
|
+
readonly methodName: string;
|
|
975
|
+
constructor(http: AxiosInstance, db: Dexie, options: IServiceOptions, moduleName?: string, methodName?: string);
|
|
976
|
+
}
|
|
966
977
|
export interface IPrintTemplateService extends IAppRemoteService<IPrintTemplate> {
|
|
967
978
|
/**
|
|
968
979
|
* initialize all default print templates, it should be called only once
|
|
@@ -3217,6 +3228,21 @@ declare module '@posx/core/types/invoice.type' {
|
|
|
3217
3228
|
print_jobs?: IPrintJob[];
|
|
3218
3229
|
};
|
|
3219
3230
|
|
|
3231
|
+
}
|
|
3232
|
+
declare module '@posx/core/types/menu.type' {
|
|
3233
|
+
import { AppBaseModel, IAppBaseModel } from "@posx/core/types/abstract.type";
|
|
3234
|
+
export interface IMenu extends IAppBaseModel {
|
|
3235
|
+
icon: string;
|
|
3236
|
+
meta: Record<string, any>;
|
|
3237
|
+
category_uids: string[];
|
|
3238
|
+
}
|
|
3239
|
+
export class Menu extends AppBaseModel implements IMenu {
|
|
3240
|
+
uid: string;
|
|
3241
|
+
icon: string;
|
|
3242
|
+
meta: {};
|
|
3243
|
+
category_uids: any[];
|
|
3244
|
+
}
|
|
3245
|
+
|
|
3220
3246
|
}
|
|
3221
3247
|
declare module '@posx/core/types/merchant.type' {
|
|
3222
3248
|
export type IMerchantAsset = {
|
|
@@ -3297,7 +3323,8 @@ declare module '@posx/core/types/misc.type' {
|
|
|
3297
3323
|
Charge = "chr_",
|
|
3298
3324
|
Price = "prc_",
|
|
3299
3325
|
ComboGroup = "cbo_",
|
|
3300
|
-
Storage = "sto_"
|
|
3326
|
+
Storage = "sto_",
|
|
3327
|
+
Menu = "men_"
|
|
3301
3328
|
}
|
|
3302
3329
|
export enum ModelType {
|
|
3303
3330
|
Merchant = "mnt",
|