import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class GlossaryService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Create glossary term * @param projectId The unique identifier of the project. * @param requestBody * @returns any Success * @throws ApiError */ createGlossaryTerm(projectId: string, requestBody: { /** * Description of the glossary term */ description: string; /** * Whether the glossary term should never be translated. If this is set to true, the term will be excluded from translation */ never_translate: boolean; /** * The keys for each language in the glossary term. Languages not included will not have a key and not be used */ terms_per_language: Array<{ /** * The locale of the glossary term */ locale: string; /** * The term in the specified locale */ term: string; }>; }): CancelablePromise<{ /** * The unique identifier of the glossary term */ id: string; /** * Description of the glossary term */ description: string; /** * Whether the glossary term should never be translated. If this is set to true, the term will be excluded from translation */ never_translate: boolean; /** * When the glossary term was created */ created_at: string; /** * The user who created the glossary term */ created_by: { email: string; name: string; }; /** * The keys for each language in the glossary term. Languages not included will not have a key and not be used */ terms_per_language: Array<{ /** * The locale of the glossary term */ locale: string; /** * The term in the specified locale */ term: string; }>; }>; /** * Get all glossary terms * @param projectId The unique identifier of the project. * @param page * @param pageSize * @returns any Success * @throws ApiError */ getAllGlossaryTerms(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 glossary term */ id: string; /** * Description of the glossary term */ description: string; /** * Whether the glossary term should never be translated. If this is set to true, the term will be excluded from translation */ never_translate: boolean; /** * When the glossary term was created */ created_at: string; /** * The user who created the glossary term */ created_by: { email: string; name: string; }; /** * The keys for each language in the glossary term. Languages not included will not have a key and not be used */ terms_per_language: Array<{ /** * The locale of the glossary term */ locale: string; /** * The term in the specified locale */ term: string; }>; }>; }>; /** * Get glossary term * @param projectId The unique identifier of the project. * @param glossaryPk * @returns any Success * @throws ApiError */ getGlossaryTerm(projectId: string, glossaryPk: string): CancelablePromise<{ /** * The unique identifier of the glossary term */ id: string; /** * Description of the glossary term */ description: string; /** * Whether the glossary term should never be translated. If this is set to true, the term will be excluded from translation */ never_translate: boolean; /** * When the glossary term was created */ created_at: string; /** * The user who created the glossary term */ created_by: { email: string; name: string; }; /** * The keys for each language in the glossary term. Languages not included will not have a key and not be used */ terms_per_language: Array<{ /** * The locale of the glossary term */ locale: string; /** * The term in the specified locale */ term: string; }>; }>; /** * Update glossary term * @param projectId The unique identifier of the project. * @param glossaryPk * @param requestBody * @returns any Success * @throws ApiError */ updateGlossaryTerm(projectId: string, glossaryPk: string, requestBody: { /** * Description of the glossary term */ description: string; /** * Whether the glossary term should never be translated. If this is set to true, the term will be excluded from translation */ never_translate: boolean; /** * The keys for each language in the glossary term. Languages not included will not have a key and not be used */ terms_per_language: Array<{ /** * The locale of the glossary term */ locale: string; /** * The term in the specified locale */ term: string; }>; }): CancelablePromise<{ /** * The unique identifier of the glossary term */ id: string; /** * Description of the glossary term */ description: string; /** * Whether the glossary term should never be translated. If this is set to true, the term will be excluded from translation */ never_translate: boolean; /** * When the glossary term was created */ created_at: string; /** * The user who created the glossary term */ created_by: { email: string; name: string; }; /** * The keys for each language in the glossary term. Languages not included will not have a key and not be used */ terms_per_language: Array<{ /** * The locale of the glossary term */ locale: string; /** * The term in the specified locale */ term: string; }>; }>; /** * Delete glossary term * @param projectId The unique identifier of the project. * @param glossaryPk * @returns any Success * @throws ApiError */ deleteGlossaryTerm(projectId: string, glossaryPk: string): CancelablePromise; } //# sourceMappingURL=GlossaryService.d.ts.map