TypeScript API / laikacms/documents / UnpublishedSchema
Variable: UnpublishedSchema
ts
const UnpublishedSchema: StandardSchemaV1<{
content: {
[key: string]: any;
};
createdAt?: string;
key: string;
language?: string;
status: string;
type: "unpublished";
updatedAt?: string;
version?: string;
}, {
content: {
[key: string]: any;
};
createdAt?: string;
key: string;
language: string;
status: string;
type: "unpublished";
updatedAt?: string;
version?: string;
}> & Struct<{
content: $Record<String, Any>;
createdAt: optional<String>;
key: String;
language: StandardSchemaV1<string | undefined, string> & withDecodingDefault<String, never>;
status: String;
type: Literal<"unpublished">;
updatedAt: optional<String>;
version: optional<String>;
}>;Unpublished document entity
This is a unified type that replaces the separate draft, archive, and trash types. The status field determines the current state of the unpublished document. Documents are stored in .laika/[collection]/[status]/ directories.