TypeScript API / laikacms/documents / RecordSummarySchema
Variable: RecordSummarySchema
ts
const RecordSummarySchema: Union<readonly [StandardSchemaV1<{
createdAt?: string;
key: string;
language?: string;
status: "published";
type: "published-summary";
updatedAt?: string;
version?: string;
}, {
createdAt?: string;
key: string;
language: string;
status: "published";
type: "published-summary";
updatedAt?: string;
version?: string;
}> & Struct<{
createdAt: optional<String>;
key: String;
language: StandardSchemaV1<string | undefined, string> & withDecodingDefault<String, never>;
status: Literal<"published">;
type: Literal<"published-summary">;
updatedAt: optional<String>;
version: optional<String>;
}>, StandardSchemaV1<{
createdAt?: string;
key: string;
language?: string;
status: string;
type: "unpublished-summary";
updatedAt?: string;
version?: string;
}, {
createdAt?: string;
key: string;
language: string;
status: string;
type: "unpublished-summary";
updatedAt?: string;
version?: string;
}> & Struct<{
createdAt: optional<String>;
key: String;
language: StandardSchemaV1<string | undefined, string> & withDecodingDefault<String, never>;
status: String;
type: Literal<"unpublished-summary">;
updatedAt: optional<String>;
version: optional<String>;
}>, StandardSchemaV1<{
createdAt?: string;
key: string;
type: "folder-summary";
updatedAt?: string;
}, {
createdAt?: string;
key: string;
type: "folder-summary";
updatedAt?: string;
}> & Struct<{
createdAt: optional<String>;
key: String;
type: Literal<"folder-summary">;
updatedAt: optional<String>;
}>]>;Record summary union type
Includes:
- document: Published content
- unpublished: Unpublished content with various statuses (draft, pending_review, archived, trash, etc.)
- folder: Directory entries