UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

210 lines 8.17 kB
import { z } from 'zod'; export declare const ItemSearchParamsSchema: z.ZodObject<{ limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; } & { edgeCache: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<8>, z.ZodLiteral<"1">, z.ZodLiteral<"2">, z.ZodLiteral<"3">, z.ZodLiteral<"4">, z.ZodLiteral<"5">, z.ZodLiteral<"8">]>, 3 | 2 | 1 | 4 | 5 | 8, 3 | 2 | 1 | 4 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8">>; } & { q: z.ZodString; searchType: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"similarity">, z.ZodLiteral<"query">]>>; cacheSiteId: z.ZodOptional<z.ZodString>; cacheTtl: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; classId5ExcludeList: z.ZodOptional<z.ZodString>; classId5List: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodString>; filters: z.ZodOptional<z.ZodString>; from: z.ZodOptional<z.ZodNumber>; itemCategoryUidList: z.ZodOptional<z.ZodString>; operator: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"AND">, z.ZodLiteral<"OR">]>>; parentCategoryUid: z.ZodOptional<z.ZodNumber>; size: z.ZodOptional<z.ZodNumber>; sort: z.ZodOptional<z.ZodString>; sourceFieldsList: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodString>; useBrandFolderDoc: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"Y">, z.ZodLiteral<"N">]>>; }, "strip", z.ZodTypeAny, { q: string; searchType: "query" | "similarity"; cacheTtl: number; operator: "AND" | "OR"; useBrandFolderDoc: "Y" | "N"; sort?: string | undefined; limit?: number | undefined; offset?: number | undefined; edgeCache?: 3 | 2 | 1 | 4 | 5 | 8 | undefined; cacheSiteId?: string | undefined; classId5ExcludeList?: string | undefined; classId5List?: string | undefined; fields?: string | undefined; filters?: string | undefined; from?: number | undefined; itemCategoryUidList?: string | undefined; parentCategoryUid?: number | undefined; size?: number | undefined; sourceFieldsList?: string | undefined; tags?: string | undefined; }, { q: string; sort?: string | undefined; limit?: number | undefined; offset?: number | undefined; edgeCache?: 3 | 2 | 1 | 4 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8" | undefined; searchType?: "query" | "similarity" | undefined; cacheTtl?: number | undefined; cacheSiteId?: string | undefined; classId5ExcludeList?: string | undefined; classId5List?: string | undefined; fields?: string | undefined; filters?: string | undefined; from?: number | undefined; itemCategoryUidList?: string | undefined; operator?: "AND" | "OR" | undefined; parentCategoryUid?: number | undefined; size?: number | undefined; sourceFieldsList?: string | undefined; tags?: string | undefined; useBrandFolderDoc?: "Y" | "N" | undefined; }>; /** Search item - key field only, passthrough for API flexibility */ export declare const SearchItemSchema: z.ZodObject<{ invMastUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; /** Item search data - passthrough for API flexibility */ export declare const ItemSearchDataSchema: z.ZodObject<{ items: z.ZodArray<z.ZodObject<{ invMastUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">; totalResults: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ items: z.ZodArray<z.ZodObject<{ invMastUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">; totalResults: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ items: z.ZodArray<z.ZodObject<{ invMastUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">; totalResults: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; export declare const ItemSearchResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ items: z.ZodArray<z.ZodObject<{ invMastUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">; totalResults: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ items: z.ZodArray<z.ZodObject<{ invMastUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">; totalResults: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ items: z.ZodArray<z.ZodObject<{ invMastUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">; totalResults: 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: { totalResults: number; items: z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { totalResults: number; items: z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { totalResults: number; items: z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { totalResults: number; items: z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export type ItemSearchParams = z.infer<typeof ItemSearchParamsSchema>; export type SearchItem = z.infer<typeof SearchItemSchema>; export type ItemSearchData = z.infer<typeof ItemSearchDataSchema>; export type ItemSearchResponse = z.infer<typeof ItemSearchResponseSchema>; //# sourceMappingURL=search.d.ts.map