import { z } from "zod";

export const ONBOARDING_GOALS = [
  "Customer feedback",
  "Employee engagement",
  "Market research",
  "Product-market fit",
  "Academic research",
] as const;

export const TEAM_SIZES = [
  "Just me",
  "2–10",
  "11–50",
  "51–200",
  "200+",
] as const;

export const onboardingStep1Schema = z.object({
  companyName: z.string().min(2, "Company name is required"),
  teamSize: z.enum(TEAM_SIZES),
});

export const onboardingStep2Schema = z.object({
  goals: z
    .array(z.enum(ONBOARDING_GOALS))
    .min(1, "Select at least one goal"),
});

export const onboardingSchema = onboardingStep1Schema.merge(onboardingStep2Schema);

export type OnboardingInput = z.infer<typeof onboardingSchema>;
