/* Copyright (c), CKSource Holding sp. z o.o. All rights reserved. */ import Message, { type IMessage } from '../../../message'; import type { IDescriptorBody } from '../../../descriptor'; import { type IComment, type ICommentJSON } from '../../descriptors/commentdescriptor'; export interface IAddCommentThreadMessage extends IMessage { commentThreadId: string; documentId: string; context: string | null | undefined; resolvedAt: string; createdAt: string; resolvedBy: string | null; deletedAt: string; attributes: string | null; comments: ICommentJSON[]; } export default class AddCommentThreadMessage extends Message { readonly documentId: string; readonly commentThreadId: string; readonly comments: IComment[]; readonly context?: (Record | null) | undefined; readonly resolvedBy: string | null; readonly attributes: Record | null; readonly createdAt: Date | string; readonly resolvedAt: Date | string; readonly deletedAt: Date | string; static readonly TYPE: string; static readonly READABLE_TYPE_NAME: string; static readonly DESCRIPTOR_NAME: string; static readonly DESCRIPTOR: IDescriptorBody; constructor(documentId: string, commentThreadId: string, comments?: IComment[], context?: (Record | null) | undefined, resolvedBy?: string | null, createdAt?: string | Date | null, resolvedAt?: string | Date | null, deletedAt?: string | Date | null, attributes?: Record | null); toJSON(): IAddCommentThreadMessage; static fromJSON(object: IAddCommentThreadMessage): AddCommentThreadMessage; }