"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const variables = require("../../lib/variables.cjs");
const updateMembership = require("../membership/updateMembership.cjs");
const useSingleTenantMutation = require("../../lib/useSingleTenantMutation.cjs");
const INVITE_MUTATION = `
	invite(
		email: $email,
		projectSlug: $projectSlug,
		memberships: $memberships,
		options: { method: $method, mailVariant: $mailVariant },
	) {
		ok
		errors {
			code
		}
	}
`;
const inviteVariables = {
  projectSlug: variables.GQLVariable.Required(variables.GQLVariable.String),
  email: variables.GQLVariable.Required(variables.GQLVariable.String),
  memberships: variables.GQLVariable.Required(variables.GQLVariable.List(updateMembership.MembershipInput)),
  method: variables.GQLVariable.Enum("InviteMethod"),
  mailVariant: variables.GQLVariable.String
};
const useInvite = () => {
  return useSingleTenantMutation.useSingleTenantMutation(
    INVITE_MUTATION,
    inviteVariables
  );
};
exports.useInvite = useInvite;
//# sourceMappingURL=invite.cjs.map
