@posx/core 5.5.109 → 5.5.110
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
|
@@ -280,6 +280,7 @@ declare module '@posx/core/service.factory' {
|
|
|
280
280
|
print_templates: string;
|
|
281
281
|
employee_roles: string;
|
|
282
282
|
order_displays: string;
|
|
283
|
+
storage: string;
|
|
283
284
|
};
|
|
284
285
|
export class ServiceFactory {
|
|
285
286
|
readonly options: IServiceOptions;
|
|
@@ -449,6 +450,7 @@ declare module '@posx/core/services/app.service' {
|
|
|
449
450
|
import { IPrintCommand } from '@posx/core/libs/escpos.printer';
|
|
450
451
|
import { QueryBuilder } from '@posx/core/utils/autoquery.utils';
|
|
451
452
|
import { QueryResponse } from '@posx/core/types/auto.query.type';
|
|
453
|
+
import { TStorage } from '@posx/core/types/storage.type';
|
|
452
454
|
export type IEmployeeRoleService = IAppRemoteService<IEmployeeRole> & IAppRemoteService<IEmployeeRole>;
|
|
453
455
|
export type INoteService = IAppRemoteService<INote>;
|
|
454
456
|
export type INoteGroupService = IAppRemoteService<INoteGroup>;
|
|
@@ -976,6 +978,15 @@ declare module '@posx/core/services/app.service' {
|
|
|
976
978
|
private getCodepageByCountryCode;
|
|
977
979
|
private renderPrintCommand;
|
|
978
980
|
}
|
|
981
|
+
export type TStorageService<T = Record<string, unknown>> = IAppRemoteService<TStorage<T>>;
|
|
982
|
+
export class StorageService<T = Record<string, unknown>> extends AppRemoteService<TStorage<T>> implements TStorageService<T> {
|
|
983
|
+
readonly http: AxiosInstance;
|
|
984
|
+
readonly db: Dexie;
|
|
985
|
+
readonly options: IServiceOptions;
|
|
986
|
+
readonly moduleName: string;
|
|
987
|
+
readonly methodName: string;
|
|
988
|
+
constructor(http: AxiosInstance, db: Dexie, options: IServiceOptions, moduleName?: string, methodName?: string);
|
|
989
|
+
}
|
|
979
990
|
|
|
980
991
|
}
|
|
981
992
|
declare module '@posx/core/services/invoice.service' {
|
|
@@ -3115,7 +3126,8 @@ declare module '@posx/core/types/misc.type' {
|
|
|
3115
3126
|
OrderDisplaySystem = "ods_",
|
|
3116
3127
|
Charge = "chr_",
|
|
3117
3128
|
Price = "prc_",
|
|
3118
|
-
ComboGroup = "cbo_"
|
|
3129
|
+
ComboGroup = "cbo_",
|
|
3130
|
+
Storage = "sto_"
|
|
3119
3131
|
}
|
|
3120
3132
|
export enum ModelType {
|
|
3121
3133
|
Merchant = "mnt",
|
|
@@ -4541,6 +4553,15 @@ declare module '@posx/core/types/shift.type' {
|
|
|
4541
4553
|
constructor();
|
|
4542
4554
|
}
|
|
4543
4555
|
|
|
4556
|
+
}
|
|
4557
|
+
declare module '@posx/core/types/storage.type' {
|
|
4558
|
+
import { AppBaseModel, IAppBaseModel } from '@posx/core/types/abstract.type';
|
|
4559
|
+
export type TStorage<T = Record<string, unknown>> = IAppBaseModel & T;
|
|
4560
|
+
export class Storage<T = Record<string, unknown>> extends AppBaseModel {
|
|
4561
|
+
uid: string;
|
|
4562
|
+
constructor(extensions?: Partial<T>);
|
|
4563
|
+
}
|
|
4564
|
+
|
|
4544
4565
|
}
|
|
4545
4566
|
declare module '@posx/core/types/wyo.coupon.type' {
|
|
4546
4567
|
enum ApplyingType {
|