Files
klz-cables.com/.pnpm-store/v10/files/90/259b40608462e95faca1cc2b2a68c4cef6eba32c4444fb98fab30c7c83df375027594fd21d709e6b3ec00453646e0de53cae4664bb59131f8e9d1c2a89890c
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

31 lines
1.6 KiB
Plaintext

import { DirectusRole } from "../../../schema/role.cjs";
import { ApplyQueryFields } from "../../../types/output.cjs";
import { Query } from "../../../types/query.cjs";
import { RestCommand } from "../../types.cjs";
//#region src/rest/commands/read/roles.d.ts
type ReadRoleOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusRole<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
/**
* List all Roles that exist in Directus.
* @param query The query parameters
* @returns An array of up to limit Role objects. If no items are available, data will be an empty array.
*/
declare const readRoles: <Schema, const TQuery extends Query<Schema, DirectusRole<Schema>>>(query?: TQuery) => RestCommand<ReadRoleOutput<Schema, TQuery>[], Schema>;
/**
* List an existing Role by primary key.
* @param key The primary key of the role
* @param query The query parameters
* @returns Returns a Role object if a valid primary key was provided.
* @throws Will throw if key is empty
*/
declare const readRole: <Schema, const TQuery extends Query<Schema, DirectusRole<Schema>>>(key: DirectusRole<Schema>["id"], query?: TQuery) => RestCommand<ReadRoleOutput<Schema, TQuery>, Schema>;
/**
* List the attached roles for the current user.
* @param query The query parameters
* @returns Returns Role objects
* @throws Will throw if key is empty
*/
declare const readRolesMe: <Schema, const TQuery extends Query<Schema, DirectusRole<Schema>>>(query?: TQuery) => RestCommand<ReadRoleOutput<Schema, TQuery>[], Schema>;
//#endregion
export { ReadRoleOutput, readRole, readRoles, readRolesMe };
//# sourceMappingURL=roles.d.cts.map