Revert "Tweak/gitignore prisma zod (#1905)" (#1906)

This reverts commit 15bfeb30d7.
pull/1925/head^2
Omar López 2022-02-17 18:11:33 -07:00 committed by GitHub
parent 15bfeb30d7
commit 152bb57bc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 23 deletions

View File

@ -8,7 +8,7 @@ import {
_EventTypeModel,
} from "@calcom/prisma/zod";
import { stringOrNumber } from "@calcom/prisma/zod-utils";
import { createEventTypeInput } from "@calcom/prisma/zod-utils";
import { createEventTypeInput } from "@calcom/prisma/zod/eventtypeCustom";
import { createProtectedRouter } from "@server/createRouter";
import { viewerRouter } from "@server/routers/viewer";

View File

@ -22,7 +22,6 @@
"lint": "turbo run lint",
"pre-commit": "lint-staged",
"prepare": "husky install",
"postinstall": "yarn workspace @calcom/prisma generate-schemas",
"start": "turbo run start --scope=\"@calcom/web\"",
"test": "turbo run test",
"test-playwright": "yarn playwright test",

View File

@ -2,8 +2,6 @@ import { z } from "zod";
import { LocationType } from "@calcom/lib/location";
import { _EventTypeModel } from "./zod/eventtype";
export const eventTypeLocations = z.array(
z.object({ type: z.nativeEnum(LocationType), address: z.string().optional() })
);
@ -11,19 +9,3 @@ export const eventTypeLocations = z.array(
export const eventTypeSlug = z.string().transform((val) => val.trim());
export const stringToDate = z.string().transform((a) => new Date(a));
export const stringOrNumber = z.union([z.string().transform((v) => parseInt(v, 10)), z.number().int()]);
const createEventTypeBaseInput = _EventTypeModel
.pick({
title: true,
slug: true,
description: true,
length: true,
teamId: true,
schedulingType: true,
})
.refine((data) => (data.teamId ? data.teamId && data.schedulingType : true), {
path: ["schedulingType"],
message: "You must select a scheduling type for team events",
});
export const createEventTypeInput = createEventTypeBaseInput;

View File

@ -51,9 +51,6 @@
],
"outputs": [".next/**"]
},
"@calcom/web#dev": {
"dependsOn": ["@calcom/prisma#build"]
},
"@calcom/web#dx": {
"dependsOn": ["@calcom/prisma#dx"]
},