Files
klz-cables.com/.pnpm-store/v10/files/70/95c76d37a4c622284a87248f62f262c0f3a350ec89759821d4b1d4aaf4d364cbed9b55f82e94e3b22c2ff13a48240bf7d6d12f5e5b498df86cad604e16d68e
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
1.9 KiB
Plaintext

import { DirectusComment } from "../../../schema/comment.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/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.ts.map