123456789101112131415161718192021222324252627282930313233 |
- import { BaseCollection } from "./base_collection";
- import { TranslationStatus } from "../models/translation_status";
- import { PaginatedResult } from "../interfaces/paginated_result";
- import { ProjectWithPagination } from "../interfaces/project_with_pagination";
- import { ProjectOnly } from "../interfaces/project_only";
- type CreateTranslationStatusParams = {
- title: string;
- color: string;
- };
- type UpdateTranslationStatusParams = {
- title?: string;
- color?: string;
- };
- type TranslationStatusDeleted = {
- project_id: string;
- custom_translation_status_deleted: boolean;
- };
- type TranslationStatusColors = {
- colors: string[];
- };
- export declare class TranslationStatuses extends BaseCollection {
- protected static rootElementName: string;
- protected static prefixURI: string;
- protected static elementClass: typeof TranslationStatus;
- protected static rootElementNameSingular: string;
- list(request_params: ProjectWithPagination): Promise<PaginatedResult<TranslationStatus>>;
- create(translation_status_params: CreateTranslationStatusParams, request_params: ProjectOnly): Promise<TranslationStatus>;
- get(translation_status_id: string | number, request_params: ProjectOnly): Promise<TranslationStatus>;
- update(translation_status_id: string | number, translation_status_params: UpdateTranslationStatusParams, request_params: ProjectOnly): Promise<TranslationStatus>;
- delete(translation_status_id: string | number, request_params: ProjectOnly): Promise<TranslationStatusDeleted>;
- available_colors(request_params: ProjectOnly): Promise<TranslationStatusColors>;
- }
- export {};
|