@posx/core 5.5.107 → 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 +32 -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' {
|
|
@@ -1983,6 +1994,15 @@ declare module '@posx/core/types/config.type' {
|
|
|
1983
1994
|
kiosk: IKioskSystemConfig;
|
|
1984
1995
|
/** Online order setting */
|
|
1985
1996
|
online_order: IOnlineOrderConfig;
|
|
1997
|
+
/** Loyalty program setting */
|
|
1998
|
+
loyalty_program: ILoyaltyProgram & Record<string, any>;
|
|
1999
|
+
}
|
|
2000
|
+
export interface ILoyaltyProgram {
|
|
2001
|
+
enable_price_tiers: boolean;
|
|
2002
|
+
}
|
|
2003
|
+
export class LoyaltyProgram implements ILoyaltyProgram {
|
|
2004
|
+
enable_price_tiers: boolean;
|
|
2005
|
+
constructor();
|
|
1986
2006
|
}
|
|
1987
2007
|
export interface ICustomerDisplaySystemConfig {
|
|
1988
2008
|
enabled: boolean;
|
|
@@ -2070,6 +2090,7 @@ declare module '@posx/core/types/config.type' {
|
|
|
2070
2090
|
cds: CustomerDisplaySystemConfig;
|
|
2071
2091
|
kiosk: KioskSystemConfig;
|
|
2072
2092
|
online_order: OnlineOrderConfig;
|
|
2093
|
+
loyalty_program: LoyaltyProgram;
|
|
2073
2094
|
constructor();
|
|
2074
2095
|
}
|
|
2075
2096
|
export interface IOnlineOrderConfig {
|
|
@@ -3105,7 +3126,8 @@ declare module '@posx/core/types/misc.type' {
|
|
|
3105
3126
|
OrderDisplaySystem = "ods_",
|
|
3106
3127
|
Charge = "chr_",
|
|
3107
3128
|
Price = "prc_",
|
|
3108
|
-
ComboGroup = "cbo_"
|
|
3129
|
+
ComboGroup = "cbo_",
|
|
3130
|
+
Storage = "sto_"
|
|
3109
3131
|
}
|
|
3110
3132
|
export enum ModelType {
|
|
3111
3133
|
Merchant = "mnt",
|
|
@@ -4531,6 +4553,15 @@ declare module '@posx/core/types/shift.type' {
|
|
|
4531
4553
|
constructor();
|
|
4532
4554
|
}
|
|
4533
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
|
+
|
|
4534
4565
|
}
|
|
4535
4566
|
declare module '@posx/core/types/wyo.coupon.type' {
|
|
4536
4567
|
enum ApplyingType {
|