Files
klz-cables.com/.pnpm-store/v10/files/c3/be745684abcd894b2f9d278db6e4822bf595cef5a39d6f5c38f356a6ec37ea2a440ff22b644e4fd83b728c4eba5cb5d82857b3c98f2a891738a8f7f46e7660
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

36 lines
2.0 KiB
Plaintext

import { DirectusComment } from "../../../schema/comment.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/comments.d.ts
type UpdateCommentOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusComment<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
/**
* Update multiple existing comments.
* @param keysOrQuery The primary keys or a query
* @param item
* @param query
* @returns Returns the comment objects for the updated comments.
* @throws Will throw if keys is empty
*/
declare const updateComments: <Schema, const TQuery extends Query<Schema, DirectusComment<Schema>>>(keysOrQuery: DirectusComment<Schema>["id"][] | Query<Schema, DirectusComment<Schema>>, item: NestedPartial<DirectusComment<Schema>>, query?: TQuery) => RestCommand<UpdateCommentOutput<Schema, TQuery>[], Schema>;
/**
* Update multiple comments as batch.
* @param items
* @param query
* @returns Returns the comment objects for the updated comments.
*/
declare const updateCommentsBatch: <Schema, const TQuery extends Query<Schema, DirectusComment<Schema>>>(items: NestedPartial<DirectusComment<Schema>>[], query?: TQuery) => RestCommand<UpdateCommentOutput<Schema, TQuery>[], Schema>;
/**
* Update an existing comment.
* @param key
* @param item
* @param query
* @returns Returns the comment object for the updated comment.
* @throws Will throw if key is empty
*/
declare const updateComment: <Schema, const TQuery extends Query<Schema, DirectusComment<Schema>>>(key: DirectusComment<Schema>["id"], item: NestedPartial<DirectusComment<Schema>>, query?: TQuery) => RestCommand<UpdateCommentOutput<Schema, TQuery>, Schema>;
//#endregion
export { UpdateCommentOutput, updateComment, updateComments, updateCommentsBatch };
//# sourceMappingURL=comments.d.cts.map