Skip to main content
Glama
createRoutine.ts1.08 kB
/** * Generated by Kubb (https://kubb.dev/). * Do not edit manually. */ import type { Routine } from "../types/Routine.ts"; import { faker } from "@faker-js/faker"; export function createRoutine(data?: Partial<Routine>): Routine { return { ...{"id": faker.string.alpha(),"title": faker.string.alpha(),"folder_id": faker.number.float(),"updated_at": faker.string.alpha(),"created_at": faker.string.alpha(),"exercises": faker.helpers.multiple(() => ({"index": faker.number.float(),"title": faker.string.alpha(),"rest_seconds": faker.string.alpha(),"notes": faker.string.alpha(),"exercise_template_id": faker.string.alpha(),"supersets_id": faker.number.float(),"sets": faker.helpers.multiple(() => ({"index": faker.number.float(),"type": faker.string.alpha(),"weight_kg": faker.number.float(),"reps": faker.number.float(),"rep_range": {"start": faker.number.float(),"end": faker.number.float()},"distance_meters": faker.number.float(),"duration_seconds": faker.number.float(),"rpe": faker.number.float(),"custom_metric": faker.number.float()}))}))}, ...data || {} } }

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/chrisdoc/hevy-mcp'

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