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
29 lines
1.4 KiB
Plaintext
29 lines
1.4 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/create/comments.d.ts
|
|
type CreateCommentOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusComment<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
|
|
/**
|
|
* Create multiple new comments.
|
|
*
|
|
* @param items The comments to create
|
|
* @param query Optional return data query
|
|
*
|
|
* @returns Returns the comment object for the created comment.
|
|
*/
|
|
declare const createComments: <Schema, const TQuery extends Query<Schema, DirectusComment<Schema>>>(items: NestedPartial<DirectusComment<Schema>>[], query?: TQuery) => RestCommand<CreateCommentOutput<Schema, TQuery>[], Schema>;
|
|
/**
|
|
* Create a new comment.
|
|
*
|
|
* @param item The comment to create
|
|
* @param query Optional return data query
|
|
*
|
|
* @returns Returns the comment object for the created comment.
|
|
*/
|
|
declare const createComment: <Schema, const TQuery extends Query<Schema, DirectusComment<Schema>>>(item: NestedPartial<DirectusComment<Schema>>, query?: TQuery) => RestCommand<CreateCommentOutput<Schema, TQuery>, Schema>;
|
|
//#endregion
|
|
export { CreateCommentOutput, createComment, createComments };
|
|
//# sourceMappingURL=comments.d.ts.map |