* migration and init to accept creationSource for new bookings * V1 create booking * V1 user creation * webapp booking + V1 user * user creation in V1, V2 and webapp * booking source V2 and fix for v1 user * fit type * --fix type * add test -- WIP * fix type * fix type * ^ * Need more sleep zzz * -_- * bump libraries platform * adds for v2 recurring booking * fix lint * instant meetings * fix: api v2 creation source * fixup! fix: api v2 creation source * bump libraries * add user * fix test * fixup! fix test * add more source * more source... * fix type & test --1 * fix type & test --2 * typefix * fixup test --------- Co-authored-by: Morgan Vernay <morgan@cal.com>
19 lines
443 B
TypeScript
19 lines
443 B
TypeScript
import { z } from "zod";
|
|
|
|
import { CreationSource } from "@calcom/prisma/enums";
|
|
|
|
export const ZCreateTeamsSchema = z.object({
|
|
teamNames: z.string().array(),
|
|
orgId: z.number(),
|
|
moveTeams: z.array(
|
|
z.object({
|
|
id: z.number(),
|
|
newSlug: z.string().nullable(),
|
|
shouldMove: z.boolean(),
|
|
})
|
|
),
|
|
creationSource: z.nativeEnum(CreationSource),
|
|
});
|
|
|
|
export type TCreateTeamsSchema = z.infer<typeof ZCreateTeamsSchema>;
|