Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
19 lines
631 B
Plaintext
19 lines
631 B
Plaintext
import { RestCommand } from "../../types.js";
|
|
|
|
//#region src/rest/commands/schema/snapshot.d.ts
|
|
type SchemaSnapshotOutput = {
|
|
version: number;
|
|
directus: string;
|
|
vendor: string;
|
|
collections: Record<string, any>[];
|
|
fields: Record<string, any>[];
|
|
relations: Record<string, any>[];
|
|
};
|
|
/**
|
|
* Retrieve the current schema. This endpoint is only available to admin users.
|
|
* @returns Returns the JSON object containing schema details.
|
|
*/
|
|
declare const schemaSnapshot: <Schema>() => RestCommand<SchemaSnapshotOutput, Schema>;
|
|
//#endregion
|
|
export { SchemaSnapshotOutput, schemaSnapshot };
|
|
//# sourceMappingURL=snapshot.d.ts.map |