client-event-api.ts 419 B

12345678910111213141516171819
  1. import { z } from "zod";
  2. class ClientEventApi {
  3. GET_Event = {
  4. res: z.object({
  5. code: z.enum(["success"]),
  6. event: z.object({
  7. eventId: z.string().uuid(),
  8. eventInstId: z.string().uuid(),
  9. code: z.string(),
  10. eventTypeCode: z.string(),
  11. publicName: z.string(),
  12. timezone: z.string(),
  13. }),
  14. }),
  15. };
  16. }
  17. export const clientEventApi = new ClientEventApi();