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.8 KiB
Plaintext
36 lines
1.8 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/update/roles.d.ts
|
|
type UpdateRoleOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusRole<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
|
|
/**
|
|
* Update multiple existing roles.
|
|
* @param keys
|
|
* @param item
|
|
* @param query
|
|
* @returns Returns the role objects for the updated roles.
|
|
* @throws Will throw if keys is empty
|
|
*/
|
|
declare const updateRoles: <Schema, const TQuery extends Query<Schema, DirectusRole<Schema>>>(keys: DirectusRole<Schema>["id"][], item: NestedPartial<DirectusRole<Schema>>, query?: TQuery) => RestCommand<UpdateRoleOutput<Schema, TQuery>[], Schema>;
|
|
/**
|
|
* Update multiple roles as batch.
|
|
* @param items
|
|
* @param query
|
|
* @returns Returns the role objects for the updated roles.
|
|
*/
|
|
declare const updateRolesBatch: <Schema, const TQuery extends Query<Schema, DirectusRole<Schema>>>(items: NestedPartial<DirectusRole<Schema>>[], query?: TQuery) => RestCommand<UpdateRoleOutput<Schema, TQuery>[], Schema>;
|
|
/**
|
|
* Update an existing role.
|
|
* @param key
|
|
* @param item
|
|
* @param query
|
|
* @returns Returns the role object for the updated role.
|
|
* @throws Will throw if key is empty
|
|
*/
|
|
declare const updateRole: <Schema, const TQuery extends Query<Schema, DirectusRole<Schema>>>(key: DirectusRole<Schema>["id"], item: NestedPartial<DirectusRole<Schema>>, query?: TQuery) => RestCommand<UpdateRoleOutput<Schema, TQuery>, Schema>;
|
|
//#endregion
|
|
export { UpdateRoleOutput, updateRole, updateRoles, updateRolesBatch };
|
|
//# sourceMappingURL=roles.d.cts.map |