"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const roles = require("./roles.cjs");
const auth = require("../lib/auth.cjs");
const LIST_MEMBERS_QUERY = `
	${roles.PROJECT_ROLES_FRAGMENT}
	query($slug: String!, $memberType: MemberType) {
		project: projectBySlug(slug: $slug) {
			id
			name
			slug
			... ProjectRoles
			members(memberType: $memberType) {
				identity {
					id
					description
					person {
						id
						email
					}
				}
				memberships {
					role
					variables {
						name
						values
					}
				}
			}
		}
	}
`;
const useListMembersQuery = (projectSlug, memberType) => {
  return auth.useAuthedTenantQuery(LIST_MEMBERS_QUERY, {
    slug: projectSlug,
    memberType
  });
};
exports.useListMembersQuery = useListMembersQuery;
//# sourceMappingURL=listUsers.cjs.map
