UNPKG

@vzeta/camunda-api-zod-schemas

Version:

Zod schemas and TypeScript types for Camunda 8 unified API

19 lines (18 loc) 381 B
import { z } from "zod"; import { API_VERSION } from "../common.js"; const pinClockRequestBodySchema = z.object({ timestamp: z.number().int() }); const pinClock = { method: "PUT", getUrl: () => `/${API_VERSION}/clock` }; const resetClock = { method: "POST", getUrl: () => `/${API_VERSION}/clock/reset` }; export { pinClock, pinClockRequestBodySchema, resetClock };