@localazy/strapi-plugin
Version:
The official Strapi Plugin by Localazy.
29 lines (28 loc) • 853 B
TypeScript
import type { Core } from '@strapi/strapi';
declare const LocalazyUploadService: ({ strapi }: {
strapi: Core.Strapi;
}) => {
/**
* Upload data to Localazy.
* Use config to adjust the upload process.
* Returns status and id of a last chunk
*/
upload(file: any, config?: {}): Promise<{
success: boolean;
result: import("@localazy/api-client").File & {
importBatch: string;
};
message?: undefined;
} | {
success: boolean;
message: any;
result?: undefined;
}>;
createImportFileRepresentation(sourceLang: string, strings: Record<string, any>): {
[x: string]: {
[x: string]: any;
};
};
};
export type LocalazyUploadServiceReturnType = ReturnType<typeof LocalazyUploadService>;
export default LocalazyUploadService;