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
1.9 KiB
Plaintext
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 |