@posx/core 5.5.106 → 5.5.109

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 CHANGED
@@ -406,6 +406,11 @@ declare module '@posx/core/services/abstract.service' {
406
406
  updateOne(id: number, item: Partial<T>): Promise<T>;
407
407
  updateMany(items: T[]): Promise<T[]>;
408
408
  deleteOne(model: T): Promise<T>;
409
+ /**
410
+ * Hard delete one entity
411
+ * @param model
412
+ */
413
+ hardDeleteOne(model: T): Promise<T>;
409
414
  }
410
415
  export class AppRemoteService<T extends IAppCoreModel> extends AppCoreService<T> implements IAppRemoteService<T> {
411
416
  protected readonly http: AxiosInstance;
@@ -416,6 +421,7 @@ declare module '@posx/core/services/abstract.service' {
416
421
  updateOne(id: number, item: Partial<T>): Promise<T>;
417
422
  updateMany(items: T[]): Promise<T[]>;
418
423
  deleteOne(model: T): Promise<T>;
424
+ hardDeleteOne(model: T): Promise<T>;
419
425
  }
420
426
  export interface IAppModelSequence {
421
427
  sequence: number;
@@ -1977,6 +1983,15 @@ declare module '@posx/core/types/config.type' {
1977
1983
  kiosk: IKioskSystemConfig;
1978
1984
  /** Online order setting */
1979
1985
  online_order: IOnlineOrderConfig;
1986
+ /** Loyalty program setting */
1987
+ loyalty_program: ILoyaltyProgram & Record<string, any>;
1988
+ }
1989
+ export interface ILoyaltyProgram {
1990
+ enable_price_tiers: boolean;
1991
+ }
1992
+ export class LoyaltyProgram implements ILoyaltyProgram {
1993
+ enable_price_tiers: boolean;
1994
+ constructor();
1980
1995
  }
1981
1996
  export interface ICustomerDisplaySystemConfig {
1982
1997
  enabled: boolean;
@@ -2064,6 +2079,7 @@ declare module '@posx/core/types/config.type' {
2064
2079
  cds: CustomerDisplaySystemConfig;
2065
2080
  kiosk: KioskSystemConfig;
2066
2081
  online_order: OnlineOrderConfig;
2082
+ loyalty_program: LoyaltyProgram;
2067
2083
  constructor();
2068
2084
  }
2069
2085
  export interface IOnlineOrderConfig {