Skip to content

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

576 B
Raw Blame
import { User } from '@activepieces/shared'
import { EntityManager } from 'typeorm'
import { hooksFactory } from '../helper/hooks-factory'

export const userHooks = hooksFactory.create<UserHooks>(_log => ({
    postCreate: async (_params: UserPostCreateParams) => {
        return
    },
}))

export type UserPostCreateParams = {
    user: User
    email: string
    platformId: string
    defaultProjectIds: string[]
    platformRoleAssigned: boolean
    entityManager: EntityManager
}

export type UserHooks = {
    postCreate(params: UserPostCreateParams): Promise<void>
}