@posx/core 5.3.79 → 5.3.81
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 +15 -0
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -679,6 +679,15 @@ declare module '@posx/core/services/app.service' {
|
|
|
679
679
|
* @param options the value to update the config category with
|
|
680
680
|
*/
|
|
681
681
|
updateConfig(configKey: keyof IConfig, options: Partial<IConfig[typeof configKey]>): Promise<IAppConfig>;
|
|
682
|
+
/**
|
|
683
|
+
* Uploads an image to the server.
|
|
684
|
+
* @param file - The file to upload.
|
|
685
|
+
* @returns A promise that resolves with the uploaded file.
|
|
686
|
+
*/
|
|
687
|
+
uploadFile(file: File): Promise<{
|
|
688
|
+
file_url: string;
|
|
689
|
+
thumbnail_url: string;
|
|
690
|
+
}>;
|
|
682
691
|
}
|
|
683
692
|
export class ConfigService extends AppRemoteService<IAppConfig> implements IConfigService {
|
|
684
693
|
readonly http: AxiosInstance;
|
|
@@ -691,6 +700,10 @@ declare module '@posx/core/services/app.service' {
|
|
|
691
700
|
updateConfig<T extends keyof IConfig>(configKey: T, options: Partial<IConfig[T]>): Promise<IAppConfig>;
|
|
692
701
|
updateGeneralConfig(options: UpdateGeneralConfigOptions): Promise<IAppConfig>;
|
|
693
702
|
updateCache(partialCache: Partial<ICache>): Promise<IAppConfig>;
|
|
703
|
+
uploadFile(file: File): Promise<{
|
|
704
|
+
file_url: string;
|
|
705
|
+
thumbnail_url: string;
|
|
706
|
+
}>;
|
|
694
707
|
}
|
|
695
708
|
export class SectionService extends AppRemoteService<ISection> implements ISectionService {
|
|
696
709
|
readonly http: AxiosInstance;
|
|
@@ -1493,6 +1506,8 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1493
1506
|
}
|
|
1494
1507
|
declare module '@posx/core/services/misc.service' {
|
|
1495
1508
|
export function preciseRound(num: any, decimalPlaces?: number): number;
|
|
1509
|
+
export function getFileExtension(file: File): string;
|
|
1510
|
+
export function convertFileToBase64(file: File): Promise<string>;
|
|
1496
1511
|
|
|
1497
1512
|
}
|
|
1498
1513
|
declare module '@posx/core/services/ods.service' {
|