UNPKG

@vzeta/camunda-api-zod-schemas

Version:

Zod schemas and TypeScript types for Camunda 8 unified API

22 lines (21 loc) 858 B
import { z } from 'zod'; import { Endpoint } from './common'; declare const usageMetricsSchema: z.ZodObject<{ assignees: z.ZodNumber; processInstances: z.ZodNumber; decisionInstances: z.ZodNumber; }, z.core.$strip>; type UsageMetrics = z.infer<typeof usageMetricsSchema>; declare const getUsageMetricsResponseBodySchema: z.ZodObject<{ assignees: z.ZodNumber; processInstances: z.ZodNumber; decisionInstances: z.ZodNumber; }, z.core.$strip>; type GetUsageMetricsResponseBody = z.infer<typeof getUsageMetricsResponseBodySchema>; type GetUsageMetricsParams = { startTime: string; endTime: string; }; declare const getUsageMetrics: Endpoint<GetUsageMetricsParams>; export { getUsageMetrics, usageMetricsSchema, getUsageMetricsResponseBodySchema }; export type { UsageMetrics, GetUsageMetricsResponseBody, GetUsageMetricsParams };