feat: initial work unifying new endpoint and generating api key

This commit is contained in:
Agusti Fernandez Pardo
2022-04-07 03:29:53 +02:00
parent a1dcfa59bc
commit fc2978a61b
8 changed files with 135 additions and 92 deletions
+2 -2
View File
@@ -2,9 +2,9 @@ import { withValidation } from "next-validations";
import { _PaymentModel as Payment } from "@calcom/prisma/zod";
// FIXME: Payment seems a delicate endpoint, do we need to remove anything here?
export const schemaPaymentBodyParams = Payment.omit({ id: true });
export const schemaPaymentPublic = Payment.omit({});
export const schemaPaymentPublic = Payment.omit({ externalId: true });
export const withValidPayment = withValidation({
schema: schemaPaymentBodyParams,