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
36 lines
2.0 KiB
Plaintext
36 lines
2.0 KiB
Plaintext
import { DirectusVersion } from "../../../schema/version.cjs";
|
|
import { NestedPartial } from "../../../types/utils.cjs";
|
|
import { ApplyQueryFields } from "../../../types/output.cjs";
|
|
import { Query } from "../../../types/query.cjs";
|
|
import { RestCommand } from "../../types.cjs";
|
|
|
|
//#region src/rest/commands/update/versions.d.ts
|
|
type UpdateContentVersionOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusVersion<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
|
|
/**
|
|
* Update multiple existing Content Versions.
|
|
* @param keys
|
|
* @param item
|
|
* @param query
|
|
* @returns Returns the Content Version objects for the updated Content Versions.
|
|
* @throws Will throw if keys is empty
|
|
*/
|
|
declare const updateContentVersions: <Schema, const TQuery extends Query<Schema, DirectusVersion<Schema>>>(keys: DirectusVersion<Schema>["id"][], item: NestedPartial<DirectusVersion<Schema>>, query?: TQuery) => RestCommand<UpdateContentVersionOutput<Schema, TQuery>[], Schema>;
|
|
/**
|
|
* Update multiple Content Versions as batch.
|
|
* @param items
|
|
* @param query
|
|
* @returns Returns the Content Version objects for the updated Content Versions.
|
|
*/
|
|
declare const updateContentVersionsBatch: <Schema, const TQuery extends Query<Schema, DirectusVersion<Schema>>>(items: NestedPartial<DirectusVersion<Schema>>[], query?: TQuery) => RestCommand<UpdateContentVersionOutput<Schema, TQuery>[], Schema>;
|
|
/**
|
|
* Update an existing Content Version.
|
|
* @param key
|
|
* @param item
|
|
* @param query
|
|
* @returns Returns the Content Version object for the updated Content Version.
|
|
* @throws Will throw if key is empty
|
|
*/
|
|
declare const updateContentVersion: <Schema, const TQuery extends Query<Schema, DirectusVersion<Schema>>>(key: DirectusVersion<Schema>["id"], item: NestedPartial<DirectusVersion<Schema>>, query?: TQuery) => RestCommand<UpdateContentVersionOutput<Schema, TQuery>, Schema>;
|
|
//#endregion
|
|
export { UpdateContentVersionOutput, updateContentVersion, updateContentVersions, updateContentVersionsBatch };
|
|
//# sourceMappingURL=versions.d.cts.map |