@posx/core 5.5.125 → 5.5.127

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
@@ -450,7 +450,7 @@ declare module '@posx/core/services/app.service' {
450
450
  import { IPrintCommand } from '@posx/core/libs/escpos.printer';
451
451
  import { QueryBuilder } from '@posx/core/utils/autoquery.utils';
452
452
  import { QueryResponse } from '@posx/core/types/auto.query.type';
453
- import { TStorage } from '@posx/core/types/storage.type';
453
+ import { IStorage } from '@posx/core/types/storage.type';
454
454
  export type IEmployeeRoleService = IAppRemoteService<IEmployeeRole> & IAppRemoteService<IEmployeeRole>;
455
455
  export type INoteService = IAppRemoteService<INote>;
456
456
  export type INoteGroupService = IAppRemoteService<INoteGroup>;
@@ -990,8 +990,8 @@ declare module '@posx/core/services/app.service' {
990
990
  private getCodepageByCountryCode;
991
991
  private renderPrintCommand;
992
992
  }
993
- export type TStorageService<T = Record<string, unknown>> = IAppRemoteService<TStorage<T>>;
994
- export class StorageService<T = Record<string, unknown>> extends AppRemoteService<TStorage<T>> implements TStorageService<T> {
993
+ export type TStorageService<T = Record<string, unknown>> = IAppRemoteService<IStorage<T>>;
994
+ export class StorageService<T = Record<string, unknown>> extends AppRemoteService<IStorage<T>> implements TStorageService<T> {
995
995
  readonly http: AxiosInstance;
996
996
  readonly db: Dexie;
997
997
  readonly options: IServiceOptions;
@@ -4612,10 +4612,15 @@ declare module '@posx/core/types/shift.type' {
4612
4612
  }
4613
4613
  declare module '@posx/core/types/storage.type' {
4614
4614
  import { AppBaseModel, IAppBaseModel } from '@posx/core/types/abstract.type';
4615
- export type TStorage<T = Record<string, unknown>> = IAppBaseModel & T;
4616
- export class Storage<T = Record<string, unknown>> extends AppBaseModel {
4615
+ export interface IStorage<T = Record<string, unknown>> extends IAppBaseModel {
4617
4616
  uid: string;
4618
- constructor(extensions?: Partial<T>);
4617
+ model: 'discounts' | string;
4618
+ data: T;
4619
+ }
4620
+ export class Storage<T = Record<string, unknown>> extends AppBaseModel implements IStorage<T> {
4621
+ uid: string;
4622
+ model: 'discounts' | string;
4623
+ data: T;
4619
4624
  }
4620
4625
 
4621
4626
  }