UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

235 lines (234 loc) 11.4 kB
import { z } from 'zod'; export declare const GetVariantStockAvailabilitySearchParams: z.ZodObject<Pick<z.objectUtil.extendShape<{ techniques: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["dtg", "digital", "cut-sew", "uv", "embroidery", "sublimation", "dtfilm"]>, "many">, string, ("dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm")[]>>; selling_region_name: z.ZodOptional<z.ZodDefault<z.ZodEnum<["worldwide", "north_america", "canada", "europe", "spain", "latvia", "uk", "france", "germany", "australia", "japan", "new_zealand", "italy", "brazil", "southeast_asia", "republic_of_korea", "english_speaking_regions", "all"]>>>; limit: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, void, number>>; offset: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, void, number>>; }, { locale: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>; }>, "locale" | "techniques" | "selling_region_name">, z.UnknownKeysParam, z.ZodTypeAny, { locale?: string; techniques?: string; selling_region_name?: "worldwide" | "north_america" | "canada" | "europe" | "spain" | "latvia" | "uk" | "france" | "germany" | "australia" | "japan" | "new_zealand" | "italy" | "brazil" | "southeast_asia" | "republic_of_korea" | "english_speaking_regions" | "all"; }, { locale?: string; techniques?: ("dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm")[]; selling_region_name?: "worldwide" | "north_america" | "canada" | "europe" | "spain" | "latvia" | "uk" | "france" | "germany" | "australia" | "japan" | "new_zealand" | "italy" | "brazil" | "southeast_asia" | "republic_of_korea" | "english_speaking_regions" | "all"; }>; export type GetVariantStockAvailabilitySearchParams = z.infer<typeof GetVariantStockAvailabilitySearchParams>; export declare const GetVariantStockAvailabilityResponse: z.ZodObject<{ data: z.ZodObject<{ catalog_variant_id: z.ZodNumber; techniques: z.ZodArray<z.ZodObject<{ technique: z.ZodEnum<["dtg", "digital", "cut-sew", "uv", "embroidery", "sublimation", "dtfilm"]>; selling_regions: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{ name: z.ZodString; availability: z.ZodEnum<["in stock", "out of stock", "not fulfillable", "unknown"]>; }, { name: z.ZodEnum<["worldwide", "north_america", "canada", "europe", "spain", "latvia", "uk", "france", "germany", "australia", "japan", "new_zealand", "italy", "brazil", "southeast_asia", "republic_of_korea", "english_speaking_regions", "all"]>; placement_option_availability: z.ZodArray<z.ZodObject<{ name: z.ZodString; availability: z.ZodEnum<["in stock", "out of stock", "not fulfillable", "unknown"]>; }, "strip", z.ZodTypeAny, { name?: string; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; }, { name?: string; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; }>, "many">; }>, "strip", z.ZodTypeAny, { name?: "worldwide" | "north_america" | "canada" | "europe" | "spain" | "latvia" | "uk" | "france" | "germany" | "australia" | "japan" | "new_zealand" | "italy" | "brazil" | "southeast_asia" | "republic_of_korea" | "english_speaking_regions" | "all"; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; placement_option_availability?: { name?: string; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; }[]; }, { name?: "worldwide" | "north_america" | "canada" | "europe" | "spain" | "latvia" | "uk" | "france" | "germany" | "australia" | "japan" | "new_zealand" | "italy" | "brazil" | "southeast_asia" | "republic_of_korea" | "english_speaking_regions" | "all"; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; placement_option_availability?: { name?: string; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { technique?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; selling_regions?: { name?: "worldwide" | "north_america" | "canada" | "europe" | "spain" | "latvia" | "uk" | "france" | "germany" | "australia" | "japan" | "new_zealand" | "italy" | "brazil" | "southeast_asia" | "republic_of_korea" | "english_speaking_regions" | "all"; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; placement_option_availability?: { name?: string; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; }[]; }[]; }, { technique?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; selling_regions?: { name?: "worldwide" | "north_america" | "canada" | "europe" | "spain" | "latvia" | "uk" | "france" | "germany" | "australia" | "japan" | "new_zealand" | "italy" | "brazil" | "southeast_asia" | "republic_of_korea" | "english_speaking_regions" | "all"; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; placement_option_availability?: { name?: string; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; }[]; }[]; }>, "many">; _links: z.ZodObject<{ variant: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; }, "strip", z.ZodTypeAny, { variant?: { href?: string; }; }, { variant?: { href?: string; }; }>; }, "strip", z.ZodTypeAny, { _links?: { variant?: { href?: string; }; }; techniques?: { technique?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; selling_regions?: { name?: "worldwide" | "north_america" | "canada" | "europe" | "spain" | "latvia" | "uk" | "france" | "germany" | "australia" | "japan" | "new_zealand" | "italy" | "brazil" | "southeast_asia" | "republic_of_korea" | "english_speaking_regions" | "all"; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; placement_option_availability?: { name?: string; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; }[]; }[]; }[]; catalog_variant_id?: number; }, { _links?: { variant?: { href?: string; }; }; techniques?: { technique?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; selling_regions?: { name?: "worldwide" | "north_america" | "canada" | "europe" | "spain" | "latvia" | "uk" | "france" | "germany" | "australia" | "japan" | "new_zealand" | "italy" | "brazil" | "southeast_asia" | "republic_of_korea" | "english_speaking_regions" | "all"; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; placement_option_availability?: { name?: string; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; }[]; }[]; }[]; catalog_variant_id?: number; }>; filter_settings: z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value?: string; name?: string; }, { value?: string; name?: string; }>; _links: z.ZodObject<{ self: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; variant: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; }, "strip", z.ZodTypeAny, { self?: { href?: string; }; variant?: { href?: string; }; }, { self?: { href?: string; }; variant?: { href?: string; }; }>; }, "strip", z.ZodTypeAny, { _links?: { self?: { href?: string; }; variant?: { href?: string; }; }; data?: { _links?: { variant?: { href?: string; }; }; techniques?: { technique?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; selling_regions?: { name?: "worldwide" | "north_america" | "canada" | "europe" | "spain" | "latvia" | "uk" | "france" | "germany" | "australia" | "japan" | "new_zealand" | "italy" | "brazil" | "southeast_asia" | "republic_of_korea" | "english_speaking_regions" | "all"; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; placement_option_availability?: { name?: string; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; }[]; }[]; }[]; catalog_variant_id?: number; }; filter_settings?: { value?: string; name?: string; }; }, { _links?: { self?: { href?: string; }; variant?: { href?: string; }; }; data?: { _links?: { variant?: { href?: string; }; }; techniques?: { technique?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; selling_regions?: { name?: "worldwide" | "north_america" | "canada" | "europe" | "spain" | "latvia" | "uk" | "france" | "germany" | "australia" | "japan" | "new_zealand" | "italy" | "brazil" | "southeast_asia" | "republic_of_korea" | "english_speaking_regions" | "all"; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; placement_option_availability?: { name?: string; availability?: "unknown" | "in stock" | "out of stock" | "not fulfillable"; }[]; }[]; }[]; catalog_variant_id?: number; }; filter_settings?: { value?: string; name?: string; }; }>; export type GetVariantStockAvailabilityResponse = z.infer<typeof GetVariantStockAvailabilityResponse>;