import { useAuthedTenantQuery } from "../lib/auth.js";
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) => useAuthedTenantQuery(LIST_ROLES_QUERY, { slug: projectSlug });
export {
  PROJECT_ROLES_FRAGMENT,
  useListRolesQuery
};
//# sourceMappingURL=roles.js.map
