import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class TasksService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Get all tasks * @param projectId The unique identifier of the project. * @param page * @param pageSize * @returns any Success * @throws ApiError */ getAllTasks(projectId: string, page: number, pageSize: number): CancelablePromise<{ metadata: { fetched_at: string; total_count: number; total_pages: number; current_page: number; page_size: number; }; data: Array<{ /** * The unique identifier of the task */ id: string; /** * The name of the task */ name: string; /** * The description of the task */ description: string; /** * The due date of the task */ due_date: string; /** * The user who created the task */ created_by: { email: string; name: string; }; /** * The date and time when the task was created */ created_at: string; /** * List of languages associated with the task */ task_languages: Array<{ /** * The language code for the task language */ language_code: string; /** * List of users assigned to this task language */ assigned_users: Array<{ /** * The user assigned to the task language */ user: { email: string; name: string; }; /** * Whether the user has accepted the task */ have_accepted: boolean; /** * Date when the user accepted the task */ accepted_at: string; }>; /** * The task language is complete */ is_complete: boolean; /** * The total number of translations in the task language, used if goal=='review' */ total_number_of_reviewed_translations: number; /** * The total number of translations in the task language, used if goal=='translate' */ total_number_of_translated_translations: number; }>; /** * The total number of keys associated with the task */ total_number_of_keys: number; /** * Whether the task is completed */ completed?: boolean; /** * List of key IDs associated with the task */ key_ids: Array; /** * The goal of the task */ goal: 'review' | 'translate'; }>; }>; /** * Create task * @param projectId The unique identifier of the project. * @param requestBody * @returns any Success * @throws ApiError */ createTask(projectId: string, requestBody: { /** * The name of the task */ name: string; /** * The description of the task */ description: string; /** * The due date of the task */ due_date: string; /** * The goal of the task */ goal: 'review' | 'translate'; /** * List of key IDs to include in the task */ key_ids: Array; /** * List of languages to include in the task */ languages: Array<{ /** * The language code for the task language */ language_code: string; /** * List of user emails assigned to this task language */ assigned_user_emails: Array; }>; }): CancelablePromise<{ /** * The unique identifier of the task */ id: string; /** * The name of the task */ name: string; /** * The description of the task */ description: string; /** * The due date of the task */ due_date: string; /** * The user who created the task */ created_by: { email: string; name: string; }; /** * The date and time when the task was created */ created_at: string; /** * List of languages associated with the task */ task_languages: Array<{ /** * The language code for the task language */ language_code: string; /** * List of users assigned to this task language */ assigned_users: Array<{ /** * The user assigned to the task language */ user: { email: string; name: string; }; /** * Whether the user has accepted the task */ have_accepted: boolean; /** * Date when the user accepted the task */ accepted_at: string; }>; /** * The task language is complete */ is_complete: boolean; /** * The total number of translations in the task language, used if goal=='review' */ total_number_of_reviewed_translations: number; /** * The total number of translations in the task language, used if goal=='translate' */ total_number_of_translated_translations: number; }>; /** * The total number of keys associated with the task */ total_number_of_keys: number; /** * Whether the task is completed */ completed?: boolean; /** * List of key IDs associated with the task */ key_ids: Array; /** * The goal of the task */ goal: 'review' | 'translate'; }>; /** * Get task * @param projectId The unique identifier of the project. * @param taskId The unique identifier of the task. * @returns any Success * @throws ApiError */ getTask(projectId: string, taskId: string): CancelablePromise<{ /** * The unique identifier of the task */ id: string; /** * The name of the task */ name: string; /** * The description of the task */ description: string; /** * The due date of the task */ due_date: string; /** * The user who created the task */ created_by: { email: string; name: string; }; /** * The date and time when the task was created */ created_at: string; /** * List of languages associated with the task */ task_languages: Array<{ /** * The language code for the task language */ language_code: string; /** * List of users assigned to this task language */ assigned_users: Array<{ /** * The user assigned to the task language */ user: { email: string; name: string; }; /** * Whether the user has accepted the task */ have_accepted: boolean; /** * Date when the user accepted the task */ accepted_at: string; }>; /** * The task language is complete */ is_complete: boolean; /** * The total number of translations in the task language, used if goal=='review' */ total_number_of_reviewed_translations: number; /** * The total number of translations in the task language, used if goal=='translate' */ total_number_of_translated_translations: number; }>; /** * The total number of keys associated with the task */ total_number_of_keys: number; /** * Whether the task is completed */ completed?: boolean; /** * List of key IDs associated with the task */ key_ids: Array; /** * The goal of the task */ goal: 'review' | 'translate'; }>; /** * Update task * @param projectId The unique identifier of the project. * @param taskId The unique identifier of the task. * @param requestBody * @returns any Success * @throws ApiError */ updateTask(projectId: string, taskId: string, requestBody: { /** * The unique identifier of the task */ id: string; /** * The name of the task */ name: string; /** * The description of the task */ description: string; /** * The due date of the task */ due_date: string; /** * The goal of the task */ goal: 'review' | 'translate'; /** * List of key IDs to include in the task */ key_ids: Array; /** * List of languages to include in the task */ languages: Array<{ /** * The language code for the task language */ language_code: string; /** * List of user emails assigned to this task language */ assigned_user_emails: Array; }>; }): CancelablePromise<{ /** * The unique identifier of the task */ id: string; /** * The name of the task */ name: string; /** * The description of the task */ description: string; /** * The due date of the task */ due_date: string; /** * The user who created the task */ created_by: { email: string; name: string; }; /** * The date and time when the task was created */ created_at: string; /** * List of languages associated with the task */ task_languages: Array<{ /** * The language code for the task language */ language_code: string; /** * List of users assigned to this task language */ assigned_users: Array<{ /** * The user assigned to the task language */ user: { email: string; name: string; }; /** * Whether the user has accepted the task */ have_accepted: boolean; /** * Date when the user accepted the task */ accepted_at: string; }>; /** * The task language is complete */ is_complete: boolean; /** * The total number of translations in the task language, used if goal=='review' */ total_number_of_reviewed_translations: number; /** * The total number of translations in the task language, used if goal=='translate' */ total_number_of_translated_translations: number; }>; /** * The total number of keys associated with the task */ total_number_of_keys: number; /** * Whether the task is completed */ completed?: boolean; /** * List of key IDs associated with the task */ key_ids: Array; /** * The goal of the task */ goal: 'review' | 'translate'; }>; /** * Delete task * @param projectId The unique identifier of the project. * @param taskId The unique identifier of the task. * @returns any Success * @throws ApiError */ deleteTask(projectId: string, taskId: string): CancelablePromise; } //# sourceMappingURL=TasksService.d.ts.map