Skip to main content
Glama
staff.ts1.38 kB
import { z } from 'zod'; import { router, protectedProcedure } from '../trpc'; // ============================================================================ // STAFF ROUTER // ============================================================================ export const staffRouter = router({ getAll: protectedProcedure .input( z .object({ staffIds: z.array(z.number()).optional(), filters: z.array(z.string()).optional(), sessionTypeIds: z.array(z.number()).optional(), locationIds: z.array(z.number()).optional(), startDateTime: z.string().optional(), limit: z.number().optional(), offset: z.number().optional(), }) .optional() ) .query(async ({ ctx, input }) => { return ctx.mindbody.getStaff(input); }), getById: protectedProcedure .input(z.object({ staffId: z.number() })) .query(async ({ ctx, input }) => { return ctx.mindbody.getStaffById(input.staffId); }), getSchedule: protectedProcedure .input( z.object({ teacherId: z.number(), startDate: z.string().optional(), endDate: z.string().optional(), }) ) .query(async ({ ctx, input }) => { return ctx.mindbody.getTeacherSchedule( input.teacherId, input.startDate, input.endDate ); }), });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vespo92/MindbodyMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server