translation_statuses.d.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. import { BaseCollection } from "./base_collection";
  2. import { TranslationStatus } from "../models/translation_status";
  3. import { PaginatedResult } from "../interfaces/paginated_result";
  4. import { ProjectWithPagination } from "../interfaces/project_with_pagination";
  5. import { ProjectOnly } from "../interfaces/project_only";
  6. type CreateTranslationStatusParams = {
  7. title: string;
  8. color: string;
  9. };
  10. type UpdateTranslationStatusParams = {
  11. title?: string;
  12. color?: string;
  13. };
  14. type TranslationStatusDeleted = {
  15. project_id: string;
  16. custom_translation_status_deleted: boolean;
  17. };
  18. type TranslationStatusColors = {
  19. colors: string[];
  20. };
  21. export declare class TranslationStatuses extends BaseCollection {
  22. protected static rootElementName: string;
  23. protected static prefixURI: string;
  24. protected static elementClass: typeof TranslationStatus;
  25. protected static rootElementNameSingular: string;
  26. list(request_params: ProjectWithPagination): Promise<PaginatedResult<TranslationStatus>>;
  27. create(translation_status_params: CreateTranslationStatusParams, request_params: ProjectOnly): Promise<TranslationStatus>;
  28. get(translation_status_id: string | number, request_params: ProjectOnly): Promise<TranslationStatus>;
  29. update(translation_status_id: string | number, translation_status_params: UpdateTranslationStatusParams, request_params: ProjectOnly): Promise<TranslationStatus>;
  30. delete(translation_status_id: string | number, request_params: ProjectOnly): Promise<TranslationStatusDeleted>;
  31. available_colors(request_params: ProjectOnly): Promise<TranslationStatusColors>;
  32. }
  33. export {};