* Revert "Revert "chore: Chore team metadata table + isOrganization migration from metadata (#12828)""
This reverts commit 2408338ed4.
* Remove constraint slug,isOrganization and reset migration
* fix: conflicts
* change schema to bust cache
* Fix issues reported by TS
* change schema to bust cache
* Review fixes
* Colaesce for orgAutoAcceptEmail as well
* Fix missing negation
---------
Co-authored-by: zomars <zomars@me.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Keith Williams <keithwillcode@gmail.com>
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
13 lines
332 B
TypeScript
13 lines
332 B
TypeScript
import { z } from "zod";
|
|
|
|
import { orgSettingsSchema } from "@calcom/prisma/zod-utils";
|
|
|
|
export const ZAdminUpdate = z.object({
|
|
id: z.number(),
|
|
name: z.string().optional(),
|
|
slug: z.string().nullish(),
|
|
organizationSettings: orgSettingsSchema.unwrap().optional(),
|
|
});
|
|
|
|
export type TAdminUpdate = z.infer<typeof ZAdminUpdate>;
|