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
27 lines
1.5 KiB
Plaintext
27 lines
1.5 KiB
Plaintext
import { DirectusCollection } from "../../../schema/collection.js";
|
|
import { NestedPartial } from "../../../types/utils.js";
|
|
import { ApplyQueryFields } from "../../../types/output.js";
|
|
import { Query } from "../../../types/query.js";
|
|
import { RestCommand } from "../../types.js";
|
|
|
|
//#region src/rest/commands/update/collections.d.ts
|
|
type UpdateCollectionOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusCollection<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
|
|
/**
|
|
* Update the metadata for an existing collection.
|
|
* @param collection
|
|
* @param item
|
|
* @param query
|
|
* @returns The collection object for the updated collection in this request.
|
|
* @throws Will throw if collection is empty
|
|
*/
|
|
declare const updateCollection: <Schema, const TQuery extends Query<Schema, DirectusCollection<Schema>>>(collection: DirectusCollection<Schema>["collection"], item: NestedPartial<DirectusCollection<Schema>>, query?: TQuery) => RestCommand<UpdateCollectionOutput<Schema, TQuery>, Schema>;
|
|
/**
|
|
* Update multiple collections as batch.
|
|
* @param items
|
|
* @param query
|
|
* @returns Returns the collection objects for the updated collections.
|
|
*/
|
|
declare const updateCollectionsBatch: <Schema, const TQuery extends Query<Schema, DirectusCollection<Schema>>>(items: NestedPartial<DirectusCollection<Schema>>[], query?: TQuery) => RestCommand<UpdateCollectionOutput<Schema, TQuery>, Schema>;
|
|
//#endregion
|
|
export { UpdateCollectionOutput, updateCollection, updateCollectionsBatch };
|
|
//# sourceMappingURL=collections.d.ts.map |