UNPKG

@medusajs/medusa

Version:

Building blocks for digital commerce

240 lines • 6.9 kB
import { z } from "zod"; export type AdminGetRegionParamsType = z.infer<typeof AdminGetRegionParams>; export declare const AdminGetRegionParams: z.ZodObject<{ fields: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { fields?: string | undefined; }, { fields?: string | undefined; }>; export declare const AdminGetRegionsParamsFields: z.ZodObject<{ q: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>; currency_code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>; name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>; 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; currency_code?: string | string[] | undefined; name?: string | string[] | undefined; created_at?: any; updated_at?: any; deleted_at?: any; }, { q?: string | undefined; id?: string | string[] | undefined; currency_code?: string | string[] | undefined; name?: string | string[] | undefined; created_at?: any; updated_at?: any; deleted_at?: any; }>; export type AdminGetRegionsParamsType = z.infer<typeof AdminGetRegionsParams>; export declare const AdminGetRegionsParams: 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 type AdminCreateRegionType = z.infer<typeof AdminCreateRegion>; export declare const AdminCreateRegion: z.ZodObject<{ name: z.ZodString; currency_code: z.ZodString; countries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; automatic_taxes: z.ZodOptional<z.ZodBoolean>; is_tax_inclusive: z.ZodOptional<z.ZodBoolean>; payment_providers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>; }, "strict", z.ZodTypeAny, { name: string; currency_code: string; countries?: string[] | undefined; automatic_taxes?: boolean | undefined; is_tax_inclusive?: boolean | undefined; payment_providers?: string[] | undefined; metadata?: Record<string, unknown> | null | undefined; }, { name: string; currency_code: string; countries?: string[] | undefined; automatic_taxes?: boolean | undefined; is_tax_inclusive?: boolean | undefined; payment_providers?: string[] | undefined; metadata?: Record<string, unknown> | null | undefined; }>; export type AdminUpdateRegionType = z.infer<typeof AdminUpdateRegion>; export declare const AdminUpdateRegion: z.ZodObject<{ name: z.ZodOptional<z.ZodString>; currency_code: z.ZodOptional<z.ZodString>; countries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; automatic_taxes: z.ZodOptional<z.ZodBoolean>; is_tax_inclusive: z.ZodOptional<z.ZodBoolean>; payment_providers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>; }, "strict", z.ZodTypeAny, { name?: string | undefined; currency_code?: string | undefined; countries?: string[] | undefined; automatic_taxes?: boolean | undefined; is_tax_inclusive?: boolean | undefined; payment_providers?: string[] | undefined; metadata?: Record<string, unknown> | null | undefined; }, { name?: string | undefined; currency_code?: string | undefined; countries?: string[] | undefined; automatic_taxes?: boolean | undefined; is_tax_inclusive?: boolean | undefined; payment_providers?: string[] | undefined; metadata?: Record<string, unknown> | null | undefined; }>; //# sourceMappingURL=validators.d.ts.map