AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { InvitationType, ProjectType } from '@activepieces/shared';
function invitationType({
isPlatformPage,
projectRolesEnabled,
projectType,
}: InvitationTypeParams): InvitationType {
if (isPlatformPage) {
return InvitationType.PLATFORM;
}
return projectRolesEnabled && projectType === ProjectType.TEAM
? InvitationType.PROJECT
: InvitationType.PLATFORM;
}
export const inviteDefaults = {
invitationType,
};
type InvitationTypeParams = {
isPlatformPage: boolean;
projectRolesEnabled: boolean;
projectType: ProjectType | null;
};