* Initial commit * routingForm to Booking a particular team member working * Happy path working * Fixes * Fix router query params forwarding * Add basicConfig within app * Tests * More tests * Update packages/app-store/routing-forms/components/SingleForm.tsx Co-authored-by: Omar López <zomars@me.com> --------- Co-authored-by: Omar López <zomars@me.com> Co-authored-by: Benny Joo <sldisek783@gmail.com>
17 lines
490 B
TypeScript
17 lines
490 B
TypeScript
import { z } from "zod";
|
|
|
|
export const ZResponseInputSchema = z.object({
|
|
formId: z.string(),
|
|
formFillerId: z.string(),
|
|
response: z.record(
|
|
z.object({
|
|
label: z.string(),
|
|
value: z.union([z.string(), z.number(), z.array(z.string())]),
|
|
})
|
|
),
|
|
// TODO: There could be existing forms loaded that will not send chosenRouteId. Make it required later.
|
|
chosenRouteId: z.string().optional(),
|
|
});
|
|
|
|
export type TResponseInputSchema = z.infer<typeof ZResponseInputSchema>;
|