@posx/core 5.5.131 → 5.5.133

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
@@ -281,7 +281,7 @@ declare module '@posx/core/service.factory' {
281
281
  print_templates: string;
282
282
  employee_roles: string;
283
283
  order_displays: string;
284
- storage: string;
284
+ storages: string;
285
285
  };
286
286
  export class ServiceFactory {
287
287
  readonly options: IServiceOptions;
@@ -291,6 +291,11 @@ declare module '@posx/core/service.factory' {
291
291
  dataSource: Dexie;
292
292
  private status;
293
293
  constructor(options: IServiceOptions, win: any, withoutDbInit?: boolean);
294
+ /**
295
+ * Static factory method to create and initialize a ServiceFactory instance
296
+ * Use this instead of constructor + separate init call for proper async handling
297
+ */
298
+ static init(options: IServiceOptions, win: any, withoutDbInit?: boolean): Promise<ServiceFactory>;
294
299
  initializeDatabase(): Promise<Dexie>;
295
300
  dropDatabase(): Promise<void>;
296
301
  clearTableData(tableName: string): import("dexie").PromiseExtended<void>;