Files
klz-cables.com/.pnpm-store/v10/files/2e/8254a24af67a86f000dd67d6949d69aa846166627c5855f77daddc1d668522aa1dd2a34f68670ead16d44d98f3e5d4f7155c8c72281be18535d1eebcc7791b
Marc Mintel 5397309103
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
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

27 lines
1.5 KiB
Plaintext

import { DirectusCollection } from "../../../schema/collection.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/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.cts.map