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.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
import { DirectusRole } from "../../../schema/role.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/create/roles.d.ts
|
|
type CreateRoleOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusRole<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
|
|
/**
|
|
* Create multiple new roles.
|
|
*
|
|
* @param items The roles to create
|
|
* @param query Optional return data query
|
|
*
|
|
* @returns Returns the role objects for the created roles.
|
|
*/
|
|
declare const createRoles: <Schema, const TQuery extends Query<Schema, DirectusRole<Schema>>>(items: NestedPartial<DirectusRole<Schema>>[], query?: TQuery) => RestCommand<CreateRoleOutput<Schema, TQuery>[], Schema>;
|
|
/**
|
|
* Create a new role.
|
|
*
|
|
* @param item The role to create
|
|
* @param query Optional return data query
|
|
*
|
|
* @returns Returns the role object for the created role.
|
|
*/
|
|
declare const createRole: <Schema, const TQuery extends Query<Schema, DirectusRole<Schema>>>(item: NestedPartial<DirectusRole<Schema>>, query?: TQuery) => RestCommand<CreateRoleOutput<Schema, TQuery>, Schema>;
|
|
//#endregion
|
|
export { CreateRoleOutput, createRole, createRoles };
|
|
//# sourceMappingURL=roles.d.cts.map |