"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const variables = require("../../lib/variables.cjs");
const useSingleTenantMutation = require("../../lib/useSingleTenantMutation.cjs");
const UPDATE_MEMBERSHIP_QUERY = `
	updateProjectMember(
		projectSlug: $projectSlug,
		identityId: $identityId,
		memberships: $memberships
	) {
		ok
		errors {
			code
		}
	}
`;
const MembershipInput = { graphQlType: "MembershipInput", required: false };
const updateMembershipVariables = {
  projectSlug: variables.GQLVariable.Required(variables.GQLVariable.String),
  identityId: variables.GQLVariable.Required(variables.GQLVariable.String),
  memberships: variables.GQLVariable.Required(variables.GQLVariable.List(MembershipInput))
};
const useUpdateProjectMembership = () => useSingleTenantMutation.useSingleTenantMutation(
  UPDATE_MEMBERSHIP_QUERY,
  updateMembershipVariables
);
exports.MembershipInput = MembershipInput;
exports.useUpdateProjectMembership = useUpdateProjectMembership;
//# sourceMappingURL=updateMembership.cjs.map
