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

931 B
Raw Blame
import { SignInRequest, SignUpRequest } from '@activepieces/shared'
import { faker } from '@faker-js/faker'

export const createMockSignUpRequest = (
    signUpRequest?: Partial<SignUpRequest>,
): SignUpRequest => {
    return {
        email: signUpRequest?.email ?? faker.internet.email(),
        password: signUpRequest?.password ?? faker.internet.password(),
        firstName: signUpRequest?.firstName ?? faker.person.firstName(),
        lastName: signUpRequest?.lastName ?? faker.person.lastName(),
        trackEvents: signUpRequest?.trackEvents ?? faker.datatype.boolean(),
        newsLetter: signUpRequest?.newsLetter ?? faker.datatype.boolean(),
    }
}

export const createMockSignInRequest = (
    signInRequest?: Partial<SignInRequest>,
): SignInRequest => {
    return {
        email: signInRequest?.email ?? faker.internet.email(),
        password: signInRequest?.password ?? faker.internet.password(),
    }
}