UNPKG

@medusajs/medusa

Version:

Building blocks for digital commerce

277 lines • 9.45 kB
import { z } from "zod"; export type AdminProductCategoryParamsType = z.infer<typeof AdminProductCategoryParams>; export declare const AdminProductCategoryParams: z.ZodObject<{ fields: z.ZodOptional<z.ZodString>; include_ancestors_tree: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>; include_descendants_tree: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>; }, "strip", z.ZodTypeAny, { fields?: string | undefined; include_ancestors_tree?: boolean | undefined; include_descendants_tree?: boolean | undefined; }, { fields?: string | undefined; include_ancestors_tree?: string | boolean | undefined; include_descendants_tree?: string | boolean | undefined; }>; export declare const AdminProductCategoriesParamsFields: z.ZodObject<{ q: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>; description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>; handle: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>; parent_category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>; include_ancestors_tree: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>; include_descendants_tree: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>; is_internal: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>; is_active: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>; created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{ $eq: any; $ne: any; $in: any; $nin: any; $like: any; $ilike: any; $re: any; $contains: any; $gt: any; $gte: any; $lt: any; $lte: any; }, "strip", z.ZodTypeAny, { $eq?: any; $ne?: any; $in?: any; $nin?: any; $like?: any; $ilike?: any; $re?: any; $contains?: any; $gt?: any; $gte?: any; $lt?: any; $lte?: any; }, { $eq?: any; $ne?: any; $in?: any; $nin?: any; $like?: any; $ilike?: any; $re?: any; $contains?: any; $gt?: any; $gte?: any; $lt?: any; $lte?: any; }>]>>; updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{ $eq: any; $ne: any; $in: any; $nin: any; $like: any; $ilike: any; $re: any; $contains: any; $gt: any; $gte: any; $lt: any; $lte: any; }, "strip", z.ZodTypeAny, { $eq?: any; $ne?: any; $in?: any; $nin?: any; $like?: any; $ilike?: any; $re?: any; $contains?: any; $gt?: any; $gte?: any; $lt?: any; $lte?: any; }, { $eq?: any; $ne?: any; $in?: any; $nin?: any; $like?: any; $ilike?: any; $re?: any; $contains?: any; $gt?: any; $gte?: any; $lt?: any; $lte?: any; }>]>>; deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{ $eq: any; $ne: any; $in: any; $nin: any; $like: any; $ilike: any; $re: any; $contains: any; $gt: any; $gte: any; $lt: any; $lte: any; }, "strip", z.ZodTypeAny, { $eq?: any; $ne?: any; $in?: any; $nin?: any; $like?: any; $ilike?: any; $re?: any; $contains?: any; $gt?: any; $gte?: any; $lt?: any; $lte?: any; }, { $eq?: any; $ne?: any; $in?: any; $nin?: any; $like?: any; $ilike?: any; $re?: any; $contains?: any; $gt?: any; $gte?: any; $lt?: any; $lte?: any; }>]>>; }, "strip", z.ZodTypeAny, { q?: string | undefined; id?: string | string[] | undefined; description?: string | string[] | undefined; handle?: string | string[] | undefined; parent_category_id?: string | string[] | undefined; include_ancestors_tree?: boolean | undefined; include_descendants_tree?: boolean | undefined; is_internal?: boolean | undefined; is_active?: boolean | undefined; created_at?: any; updated_at?: any; deleted_at?: any; }, { q?: string | undefined; id?: string | string[] | undefined; description?: string | string[] | undefined; handle?: string | string[] | undefined; parent_category_id?: string | string[] | undefined; include_ancestors_tree?: string | boolean | undefined; include_descendants_tree?: string | boolean | undefined; is_internal?: string | boolean | undefined; is_active?: string | boolean | undefined; created_at?: any; updated_at?: any; deleted_at?: any; }>; export type AdminProductCategoriesParamsType = z.infer<typeof AdminProductCategoriesParams>; export declare const AdminProductCategoriesParams: z.ZodObject<{ [x: string]: any; [x: number]: any; [x: symbol]: any; $and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }>, "many">>>; $or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }>, "many">>>; }, "strip", z.ZodTypeAny, { [x: string]: any; [x: number]: any; [x: symbol]: any; $and?: { [x: string]: any; }[] | undefined; $or?: { [x: string]: any; }[] | undefined; }, { [x: string]: any; [x: number]: any; [x: symbol]: any; $and?: { [x: string]: any; }[] | undefined; $or?: { [x: string]: any; }[] | undefined; }>; export declare const CreateProductCategory: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional<z.ZodString>; handle: z.ZodOptional<z.ZodString>; is_internal: z.ZodOptional<z.ZodBoolean>; is_active: z.ZodOptional<z.ZodBoolean>; parent_category_id: z.ZodOptional<z.ZodNullable<z.ZodString>>; metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>; rank: z.ZodOptional<z.ZodNumber>; }, "strict", z.ZodTypeAny, { name: string; description?: string | undefined; handle?: string | undefined; is_internal?: boolean | undefined; is_active?: boolean | undefined; parent_category_id?: string | null | undefined; metadata?: Record<string, unknown> | null | undefined; rank?: number | undefined; }, { name: string; description?: string | undefined; handle?: string | undefined; is_internal?: boolean | undefined; is_active?: boolean | undefined; parent_category_id?: string | null | undefined; metadata?: Record<string, unknown> | null | undefined; rank?: number | undefined; }>; export declare const AdminCreateProductCategory: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }> | z.ZodEffects<any, any, any>; export type AdminCreateProductCategoryType = z.infer<typeof CreateProductCategory>; export declare const UpdateProductCategory: z.ZodObject<{ name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; handle: z.ZodOptional<z.ZodString>; is_internal: z.ZodOptional<z.ZodBoolean>; is_active: z.ZodOptional<z.ZodBoolean>; parent_category_id: z.ZodOptional<z.ZodNullable<z.ZodString>>; metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>; rank: z.ZodOptional<z.ZodNumber>; }, "strict", z.ZodTypeAny, { name?: string | undefined; description?: string | undefined; handle?: string | undefined; is_internal?: boolean | undefined; is_active?: boolean | undefined; parent_category_id?: string | null | undefined; metadata?: Record<string, unknown> | null | undefined; rank?: number | undefined; }, { name?: string | undefined; description?: string | undefined; handle?: string | undefined; is_internal?: boolean | undefined; is_active?: boolean | undefined; parent_category_id?: string | null | undefined; metadata?: Record<string, unknown> | null | undefined; rank?: number | undefined; }>; export declare const AdminUpdateProductCategory: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }> | z.ZodEffects<any, any, any>; export type AdminUpdateProductCategoryType = z.infer<typeof UpdateProductCategory>; //# sourceMappingURL=validators.d.ts.map