import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class OtaService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Get OTA settings * @param projectId The unique identifier of the project. * @param otaId The unique name of the OTA environment. Like "prod", "default", "staging" etc. * @returns any Success * @throws ApiError */ getOtaSettings(projectId: string, otaId: string): CancelablePromise<{ /** * The unique identifier of the OTA environment */ id: string; /** * The name of the OTA environment */ name: string; /** * The date and time when the OTA environment was created */ created_at: string; /** * The user who created the OTA environment */ created_by: { email: string; name: string; }; /** * The format of the OTA environment */ format: 'string' | 'php_laravel' | 'xcstrings' | 'i18njson' | 'yaml' | 'xliff' | 'po' | 'properties' | 'php' | 'json'; /** * The variable format of the OTAA environment */ variable_format?: 'object' | 'icu' | 'i18n'; /** * To which release the OTA environment points to. If 'latest', it points to the latest translation data in the project */ points_to_release_id: string; }>; /** * Update OTA settings * @param projectId The unique identifier of the project. * @param otaId The unique name of the OTA environment. Like "prod", "default", "staging" etc. * @param requestBody * @returns any Success * @throws ApiError */ updateOtaSettings(projectId: string, otaId: string, requestBody: { /** * The identifier of the OTA environment */ id?: string; /** * To which release the OTA environment points to. If 'latest', it points to the latest translation data in the project */ points_to_release_id: string; }): CancelablePromise<{ /** * The unique identifier of the OTA environment */ id: string; /** * The name of the OTA environment */ name: string; /** * The date and time when the OTA environment was created */ created_at: string; /** * The user who created the OTA environment */ created_by: { email: string; name: string; }; /** * The format of the OTA environment */ format: 'string' | 'php_laravel' | 'xcstrings' | 'i18njson' | 'yaml' | 'xliff' | 'po' | 'properties' | 'php' | 'json'; /** * The variable format of the OTAA environment */ variable_format?: 'object' | 'icu' | 'i18n'; /** * To which release the OTA environment points to. If 'latest', it points to the latest translation data in the project */ points_to_release_id: string; }>; /** * Delete OTA environment * @param projectId The unique identifier of the project. * @param otaId The unique name of the OTA environment. Like "prod", "default", "staging" etc. * @returns any Success * @throws ApiError */ deleteOtaEnvironment(projectId: string, otaId: string): CancelablePromise; /** * Create OTA environment * @param projectId The unique identifier of the project. * @param requestBody * @returns any Success * @throws ApiError */ createOtaEnvironment(projectId: string, requestBody: { /** * The name of the OTA environment */ name: string; /** * The format of the OTA environment */ format: 'string' | 'php_laravel' | 'xcstrings' | 'i18njson' | 'yaml' | 'xliff' | 'po' | 'properties' | 'php' | 'json'; /** * The variable format of the OTAA environment */ variable_format?: 'object' | 'icu' | 'i18n'; /** * To which release the OTA environment points to. If 'latest', it points to the latest translation data in the project */ points_to_release_id: string; }): CancelablePromise<{ /** * The unique identifier of the OTA environment */ id: string; /** * The name of the OTA environment */ name: string; /** * The date and time when the OTA environment was created */ created_at: string; /** * The user who created the OTA environment */ created_by: { email: string; name: string; }; /** * The format of the OTA environment */ format: 'string' | 'php_laravel' | 'xcstrings' | 'i18njson' | 'yaml' | 'xliff' | 'po' | 'properties' | 'php' | 'json'; /** * The variable format of the OTAA environment */ variable_format?: 'object' | 'icu' | 'i18n'; /** * To which release the OTA environment points to. If 'latest', it points to the latest translation data in the project */ points_to_release_id: string; }>; /** * Get all OTA environments * @param projectId The unique identifier of the project. * @param page * @param pageSize * @returns any Success * @throws ApiError */ getAllOtaEnvironments(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 OTA environment */ id: string; /** * The name of the OTA environment */ name: string; /** * The date and time when the OTA environment was created */ created_at: string; /** * The user who created the OTA environment */ created_by: { email: string; name: string; }; /** * The format of the OTA environment */ format: 'string' | 'php_laravel' | 'xcstrings' | 'i18njson' | 'yaml' | 'xliff' | 'po' | 'properties' | 'php' | 'json'; /** * The variable format of the OTAA environment */ variable_format?: 'object' | 'icu' | 'i18n'; /** * To which release the OTA environment points to. If 'latest', it points to the latest translation data in the project */ points_to_release_id: string; }>; }>; } //# sourceMappingURL=OtaService.d.ts.map