UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

195 lines 6.33 kB
import { z } from 'zod'; /** Import - key field only, passthrough for API flexibility */ export declare const ImportSchema: z.ZodObject<{ importUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ importUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ importUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; /** Import list params */ export declare const ImportListParamsSchema: z.ZodObject<{ importState: z.ZodOptional<z.ZodEnum<["initial", "hold", "delivered"]>>; limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; orderBy: z.ZodOptional<z.ZodString>; q: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { limit?: number | undefined; offset?: number | undefined; q?: string | undefined; orderBy?: string | undefined; importState?: "initial" | "hold" | "delivered" | undefined; }, { limit?: number | undefined; offset?: number | undefined; q?: string | undefined; orderBy?: string | undefined; importState?: "initial" | "hold" | "delivered" | undefined; }>; /** Import recent params */ export declare const ImportRecentParamsSchema: z.ZodObject<{ hours: z.ZodOptional<z.ZodNumber>; limit: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { limit?: number | undefined; hours?: number | undefined; }, { limit?: number | undefined; hours?: number | undefined; }>; /** Import stuck params */ export declare const ImportStuckParamsSchema: z.ZodObject<{ hours: z.ZodOptional<z.ZodNumber>; limit: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { limit?: number | undefined; hours?: number | undefined; }, { limit?: number | undefined; hours?: number | undefined; }>; /** Import detail params */ export declare const ImportDetailParamsSchema: z.ZodObject<{ importUid: z.ZodString; }, "strip", z.ZodTypeAny, { importUid: string; }, { importUid: string; }>; export declare const ImportResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ importUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ importUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ importUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; message: z.ZodString; options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; status: z.ZodNumber; total: z.ZodNumber; totalResults: z.ZodNumber; }, "strip", z.ZodTypeAny, { params: Record<string, unknown> | unknown[]; data: { importUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { importUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { importUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { importUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export declare const ImportListResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodArray<z.ZodObject<{ importUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ importUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ importUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">; message: z.ZodString; options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; status: z.ZodNumber; total: z.ZodNumber; totalResults: z.ZodNumber; }, "strip", z.ZodTypeAny, { params: Record<string, unknown> | unknown[]; data: z.objectOutputType<{ importUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: z.objectInputType<{ importUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: z.objectOutputType<{ importUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: z.objectInputType<{ importUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export type Import = z.infer<typeof ImportSchema>; export type ImportListParams = z.infer<typeof ImportListParamsSchema>; export type ImportRecentParams = z.infer<typeof ImportRecentParamsSchema>; export type ImportStuckParams = z.infer<typeof ImportStuckParamsSchema>; export type ImportDetailParams = z.infer<typeof ImportDetailParamsSchema>; export type ImportResponse = z.infer<typeof ImportResponseSchema>; export type ImportListResponse = z.infer<typeof ImportListResponseSchema>; //# sourceMappingURL=import.d.ts.map