mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* mvp * Improve UI * wip * self-review * self-review --------- Co-authored-by: Omar López <[email protected]>
33 lines
850 B
TypeScript
33 lines
850 B
TypeScript
import { z } from "zod";
|
|
|
|
import { serviceAccountKeySchema } from "@calcom/prisma/zod-utils";
|
|
|
|
export const DelegationCredentialCreateSchema = z.object({
|
|
workspacePlatformSlug: z.string(),
|
|
domain: z.string(),
|
|
serviceAccountKey: serviceAccountKeySchema,
|
|
});
|
|
|
|
export const DelegationCredentialUpdateSchema = z.object({
|
|
id: z.string(),
|
|
workspacePlatformSlug: z.string(),
|
|
domain: z.string(),
|
|
});
|
|
|
|
export const DelegationCredentialToggleEnabledSchema = z.object({
|
|
id: z.string(),
|
|
enabled: z.boolean(),
|
|
});
|
|
|
|
export const DelegationCredentialDeleteSchema = z.object({
|
|
id: z.string(),
|
|
});
|
|
|
|
export const DelegationCredentialGetAffectedMembersForDisableSchema = z.object({
|
|
id: z.string(),
|
|
});
|
|
|
|
export type TDelegationCredentialGetAffectedMembersForDisableSchema = z.infer<
|
|
typeof DelegationCredentialGetAffectedMembersForDisableSchema
|
|
>;
|