added more endpoints and validations for publish-pay teams (#209)

## What does the PR do?

- Team billing via API

Just like the web project, we validate that team has stripe metadata
before converting requestedSlug to slug.

Co-authored-by: zomars <zomars@me.com>
This commit is contained in:
alannncandzomars authored and GitHub committed 2022-11-22 13:24:25 -07:00
1 parent 8e25b9244c
commit c016a4343d
8 files changed
+142 -17

No files matched your search

+4 -1
View File
@@ -2,7 +2,10 @@ import { z } from "zod";
import { _TeamModel as Team } from "@calcom/prisma/zod";
export const schemaTeamBaseBodyParams = Team.omit({ id: true }).partial({ hideBranding: true });
export const schemaTeamBaseBodyParams = Team.omit({ id: true, createdAt: true }).partial({
hideBranding: true,
metadata: true,
});
const schemaTeamRequiredParams = z.object({});