import { AuthorResponse } from "./Author"; import { ContentId, ContentResponse, FieldPath } from "./Content"; export type ContentTranslationId = number; export type FieldTranslation = { key: string; path: FieldPath; value: string; checksum: string; }; export type ContentTranslation = { id: ContentTranslationId; spaceId: string; locale: string; translations: FieldTranslation[]; createdDate: Date; lastModifiedDate: Date; author: AuthorResponse; latestContributor: AuthorResponse; content: ContentResponse; status: ContentTranslationStatus; version: number; }; export type GetContentTranslationRequest = { contentId: ContentId; locale: string; }; export type GetContentTranslationResponse = ContentTranslation & { translatedContent: ContentResponse; }; export type CreateContentTranslationRequest = { contentId: ContentId; locale: string; }; export type CreateContentTranslationResponse = ContentTranslation; export type UpdateContentTranslationRequest = { contentId: ContentId; locale: string; translations: Pick[]; checksum: string; }; export type UpdateContentTranslationResponse = ContentTranslation; export declare enum ContentTranslationStatus { UPTODATE = 0, TO_VERIFY = 1, INCOMPLETE = 2, MISSING = 3 } export type ListContentTranslationRequest = { contentId: ContentId; }; export type ListContentTranslationResponse = ContentTranslation[]; export type DeleteContentTranslationRequest = { contentId: ContentId; locale: string; }; export type DeleteContentTranslationResponse = boolean; export type CleanContentTranslationRequest = { contentId: ContentId; locales: string[]; }; export type CleanContentTranslationResponse = boolean;