import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class AsyncTasksService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Get async task * @param projectId The unique identifier of the project. * @param asyncTaskId * @returns any Success * @throws ApiError */ getAsyncTask(projectId: string, asyncTaskId: string): CancelablePromise<{ /** * The unique identifier of the async task */ id: string; /** * The date and time when the async task was started */ started_at: string; /** * The number of completed events in the async task */ completed_events: number; /** * The total number of events in the async task that will complete */ total_events: number; /** * If the task failed, this will contain the error message */ error_msg?: string; /** * The date and time when the async task was completed */ completed_at?: string; /** * The current status of the async task */ status: 'pending' | 'running' | 'completed' | 'failed'; file_upload?: { /** * List of files that was successfully uploaded */ sucess_files: Array<{ /** * The name of the file that was uploaded */ file_name: string; /** * The language code associated with the file */ language_code: string; /** * The number of keys that was extracted from the file */ number_of_keys: number; }>; /** * List of files that failed to be uploaded */ failed_files: Array<{ file_name: string; reason: string; }>; /** * Statistics about the created keys */ created_keys: { /** * Ids if all the keys that was created */ all_created_key_ids: Array; all_updated_key_ids: Array; /** * Total number of translations that changed */ total_number_of_changed_translations: number; }; }; key_creation?: { /** * Statistics about the created keys */ created_keys: { /** * Ids if all the keys that was created */ all_created_key_ids: Array; all_updated_key_ids: Array; /** * Total number of translations that changed */ total_number_of_changed_translations: number; }; /** * List of keys that failed to be created */ failures: Array<{ code: string; reason: string; }>; }; preview_data_github_pull?: { /** * How many new keys were created */ number_of_new_keys: number; /** * The files involved in the pull */ files: Array<{ /** * The locale of the file */ locale: string; /** * Was the file found in the repository */ found: boolean; /** * How many translations was found in the file */ number_of_keys: number; /** * The name of the file */ file_name: string; }>; /** * Warnings that occurred during the pull */ warnings: Array; }; }>; } //# sourceMappingURL=AsyncTasksService.d.ts.map