"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const auth = require("../lib/auth.cjs");
const PROJECT_ROLES_FRAGMENT = `
	fragment ProjectRoles on Project {
		roles {
			name
			variables {
				... on RoleEntityVariableDefinition {
					name
					entityName
				}
			}
		}
	}
`;
const LIST_ROLES_QUERY = `
	${PROJECT_ROLES_FRAGMENT}
	query($slug: String!) {
		project: projectBySlug(slug: $slug) {
			id
			... ProjectRoles
		}
	}
`;
const useListRolesQuery = (projectSlug) => auth.useAuthedTenantQuery(LIST_ROLES_QUERY, { slug: projectSlug });
exports.PROJECT_ROLES_FRAGMENT = PROJECT_ROLES_FRAGMENT;
exports.useListRolesQuery = useListRolesQuery;
//# sourceMappingURL=roles.cjs.map
