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
18 lines
881 B
Plaintext
18 lines
881 B
Plaintext
import { RestCommand } from "../../types.cjs";
|
|
import { SchemaSnapshotOutput } from "./snapshot.cjs";
|
|
|
|
//#region src/rest/commands/schema/diff.d.ts
|
|
type SchemaDiffOutput = {
|
|
hash: string;
|
|
diff: Record<string, any>;
|
|
};
|
|
/**
|
|
* Compare the current instance's schema against the schema snapshot in JSON request body and retrieve the difference. This endpoint is only available to admin users.
|
|
* @param snapshot JSON object containing collections, fields, and relations to apply.
|
|
* @param force Bypass version and database vendor restrictions.
|
|
* @returns Returns the differences between the current instance's schema and the schema passed in the request body.
|
|
*/
|
|
declare const schemaDiff: <Schema>(snapshot: SchemaSnapshotOutput, force?: boolean) => RestCommand<SchemaDiffOutput, Schema>;
|
|
//#endregion
|
|
export { SchemaDiffOutput, schemaDiff };
|
|
//# sourceMappingURL=diff.d.cts.map |