@yorkie-js/sdk
    Preparing search index...

    Interface RevisionSummary

    RevisionSummary represents a document revision for version management. It stores a snapshot of document content at a specific point in time, enabling features like rollback, audit, and version history tracking.

    interface RevisionSummary {
        createdAt: Date;
        description: string;
        id: string;
        label: string;
        snapshot: string;
    }
    Index

    Properties

    createdAt: Date

    createdAt is the time when this revision was created.

    description: string

    description is a detailed explanation of this revision.

    id: string

    id is the unique identifier of the revision.

    label: string

    label is a user-friendly name for this revision.

    snapshot: string

    snapshot is the serialized document content in YSON format at this revision point.

    Use YSON.parse() to convert this string to a typed JavaScript object:

    import { YSON } from 'yorkie-js-sdk';
    const snapshot = YSON.parse(revision.snapshot);