UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

156 lines 5.77 kB
import { z } from 'zod'; export declare const UsersParamsSchema: z.ZodObject<{ accessLevelList: z.ZodOptional<z.ZodString>; customerId: z.ZodOptional<z.ZodNumber>; limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; orderBy: z.ZodOptional<z.ZodString>; q: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ accessLevelList: z.ZodOptional<z.ZodString>; customerId: z.ZodOptional<z.ZodNumber>; limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; orderBy: z.ZodOptional<z.ZodString>; q: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ accessLevelList: z.ZodOptional<z.ZodString>; customerId: z.ZodOptional<z.ZodNumber>; limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; orderBy: z.ZodOptional<z.ZodString>; q: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>; /** User item - passthrough for API flexibility */ export declare const UserItemSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; export declare const UsersResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, 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<{}, 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<{}, 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<{}, 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<{}, z.ZodTypeAny, "passthrough">[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; /** Create request - passthrough for flexible input */ export declare const UsersCreateRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; /** Create response - key field only, passthrough for API flexibility */ export declare const UsersCreateDataSchema: z.ZodObject<{ id: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; export declare const UsersCreateResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ id: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: 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: { id: 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: { id: 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: { id: 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: { id: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export type UsersParams = z.infer<typeof UsersParamsSchema>; export type UserItem = z.infer<typeof UserItemSchema>; export type UsersResponse = z.infer<typeof UsersResponseSchema>; export type UsersCreateRequest = z.infer<typeof UsersCreateRequestSchema>; export type UsersCreateData = z.infer<typeof UsersCreateDataSchema>; export type UsersCreateResponse = z.infer<typeof UsersCreateResponseSchema>; //# sourceMappingURL=users.d.ts.map