fix availabilities spelling
This commit is contained in:
1 parent
23698462b8
commit
5b3f9ee95c
4 files changed
+13
-36
No files matched your search
+1
-1
@@ -70,7 +70,7 @@ export type AttendeesResponse = BaseResponse & {
|
||||
export type AvailabilityResponse = BaseResponse & {
|
||||
data?: Partial<Availability>;
|
||||
};
|
||||
export type AvailabilitysResponse = BaseResponse & {
|
||||
export type AvailabilitiesResponse = BaseResponse & {
|
||||
data?: Partial<Availability>[];
|
||||
};
|
||||
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
import { withValidation } from "next-validations";
|
||||
import { z } from "zod";
|
||||
|
||||
import { _ApiKeyModel as ApiKey } from "@calcom/prisma/zod";
|
||||
|
||||
export const schemaApiKeyBaseBodyParams = ApiKey.omit({ id: true, userId: true, createdAt: true }).partial();
|
||||
|
||||
const schemaApiKeyRequiredParams = z.object({
|
||||
email: z.string().email(),
|
||||
});
|
||||
|
||||
export const schemaApiKeyBodyParams = schemaApiKeyBaseBodyParams.merge(schemaApiKeyRequiredParams);
|
||||
|
||||
export const schemaApiKeyPublic = ApiKey.omit({
|
||||
id: true,
|
||||
userId: true,
|
||||
});
|
||||
|
||||
export const withValidApiKey = withValidation({
|
||||
schema: schemaApiKeyBodyParams,
|
||||
type: "Zod",
|
||||
mode: "body",
|
||||
});
|
||||
Reference in new issue
Block a user