Skip to content
tRPC router

businessSite

A profile's website and contacts, managed on WeDance (RAZ-412): /business/network/<username>/website edits the page (sections, words in every language, the welcome email), /business/network/<username>/contacts lists who signed up on it. The site reads /api/profiles/<username>/site.

Procedures (5)

businessSite.save

mutationprotectedserver/trpc/routers/businessSite.ts:29
Input
{
  username: string  // len 1..∞
  site: {
    domain?: string  // len 0..2000
    locales: string[]  // items 1..10
    seo?: {
      title?: Record<string, string>
      description?: Record<string, string>
      image?: string  // len 0..2000
    }
    welcome?: {
      subject?: Record<string, string>
      body?: Record<string, string>
    }
    sections: {
      id: string  // len 0..40
      kind: "hero" | "text" | "cards" | "events" | "faq" | "video" | "person" | "location" | "signup" | "cta"
      hidden?: boolean
      anchor?: string  // len 0..40, /^[a-z0-9-]*$/
      navLabel?: Record<string, string>
      eyebrow?: Record<string, string>
      title?: Record<string, string>
      titleAccent?: Record<string, string>
      body?: Record<string, string>
      image?: string  // len 0..2000
      video?: string  // len 0..2000
      address?: Record<string, string>
      mapUrl?: string  // len 0..2000
      days?: number /* int */  // 1..180
      buttons?: {
        label: Record<string, string>
        url: string  // len 0..2000
      }[]  // items 0..4
      items?: {
        id: string  // len 0..40
        tag?: Record<string, string>
        title?: Record<string, string>
        body?: Record<string, string>
        image?: string  // len 0..2000
        url?: string  // len 0..2000
      }[]  // items 0..24
      callout?: {
        title?: Record<string, string>
        body?: Record<string, string>
        button?: {
          label: Record<string, string>
          url: string  // len 0..2000
        }
      }
    }[]  // items 0..40
  }
}

Source: server/trpc/routers/businessSite.ts