UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

149 lines 5.77 kB
import { z } from 'zod'; /** Stock location data - key field only, passthrough for API flexibility */ export declare const StockLocationDataSchema: z.ZodObject<{ locationId: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; /** Stock details data - passthrough for API flexibility */ export declare const StockDetailsDataSchema: z.ZodObject<{ stockData: z.ZodOptional<z.ZodArray<z.ZodObject<{ locationId: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ stockData: z.ZodOptional<z.ZodArray<z.ZodObject<{ locationId: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ stockData: z.ZodOptional<z.ZodArray<z.ZodObject<{ locationId: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">>; export declare const GetStockParamsSchema: z.ZodObject<{ includeCompanySummary: z.ZodOptional<z.ZodBoolean>; includeCalculatedValues: z.ZodOptional<z.ZodBoolean>; locationIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; companyIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { includeCompanySummary?: boolean | undefined; includeCalculatedValues?: boolean | undefined; locationIds?: number[] | undefined; companyIds?: string[] | undefined; }, { includeCompanySummary?: boolean | undefined; includeCalculatedValues?: boolean | undefined; locationIds?: number[] | undefined; companyIds?: string[] | undefined; }>; export declare const GetStockResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ stockData: z.ZodOptional<z.ZodArray<z.ZodObject<{ locationId: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ stockData: z.ZodOptional<z.ZodArray<z.ZodObject<{ locationId: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ stockData: z.ZodOptional<z.ZodArray<z.ZodObject<{ locationId: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">>; }, 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: { stockData?: z.objectOutputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { stockData?: z.objectInputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { stockData?: z.objectOutputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { stockData?: z.objectInputType<{ locationId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export type StockLocationData = z.infer<typeof StockLocationDataSchema>; export type StockDetailsData = z.infer<typeof StockDetailsDataSchema>; export type GetStockParams = z.infer<typeof GetStockParamsSchema>; //# sourceMappingURL=invLoc.d.ts.map