@posx/core 5.3.81 → 5.3.82

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
@@ -435,7 +435,7 @@ declare module '@posx/core/services/app.service' {
435
435
  import { ISection, ISectionItem } from '@posx/core/types/section.type';
436
436
  import { Category, ICategory, ICoreItem, IItem, ISubcategory } from '@posx/core/types/product.type';
437
437
  import { AxiosInstance } from 'axios';
438
- import { IServiceOptions } from '@posx/core/types/misc.type';
438
+ import { IFileUploadResponse, IServiceOptions } from '@posx/core/types/misc.type';
439
439
  import Dexie from 'dexie';
440
440
  import { ICoreCategory } from '@posx/core/types/product.type';
441
441
  import { IShift, ITill } from '@posx/core/types/shift.type';
@@ -684,10 +684,7 @@ declare module '@posx/core/services/app.service' {
684
684
  * @param file - The file to upload.
685
685
  * @returns A promise that resolves with the uploaded file.
686
686
  */
687
- uploadFile(file: File): Promise<{
688
- file_url: string;
689
- thumbnail_url: string;
690
- }>;
687
+ uploadFile(file: File): Promise<IFileUploadResponse>;
691
688
  }
692
689
  export class ConfigService extends AppRemoteService<IAppConfig> implements IConfigService {
693
690
  readonly http: AxiosInstance;
@@ -700,10 +697,7 @@ declare module '@posx/core/services/app.service' {
700
697
  updateConfig<T extends keyof IConfig>(configKey: T, options: Partial<IConfig[T]>): Promise<IAppConfig>;
701
698
  updateGeneralConfig(options: UpdateGeneralConfigOptions): Promise<IAppConfig>;
702
699
  updateCache(partialCache: Partial<ICache>): Promise<IAppConfig>;
703
- uploadFile(file: File): Promise<{
704
- file_url: string;
705
- thumbnail_url: string;
706
- }>;
700
+ uploadFile(file: File): Promise<IFileUploadResponse>;
707
701
  }
708
702
  export class SectionService extends AppRemoteService<ISection> implements ISectionService {
709
703
  readonly http: AxiosInstance;
@@ -2975,6 +2969,10 @@ declare module '@posx/core/types/misc.type' {
2975
2969
  outdatedSourceSectionItem = "outdated source section item",
2976
2970
  outdatedTargetSectionItem = "outdated target section item"
2977
2971
  }
2972
+ export interface IFileUploadResponse {
2973
+ file_url: string;
2974
+ thumbnail_url: string;
2975
+ }
2978
2976
 
2979
2977
  }
2980
2978
  declare module '@posx/core/types/note.type' {