UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

339 lines (338 loc) 13.6 kB
import { z } from 'zod'; export declare const GetProductStockAvailabilitySearchParams: z.ZodObject<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>>; }>, z.UnknownKeysParam, z.ZodTypeAny, { locale?: string; offset?: void; limit?: void; 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; offset?: number; limit?: number; 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 GetProductStockAvailabilitySearchParams = z.infer<typeof GetProductStockAvailabilitySearchParams>; export declare const GetProductStockAvailabilityResponse: z.ZodObject<{ data: z.ZodArray<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; }>, "many">; paging: z.ZodObject<{ total: z.ZodNumber; offset: z.ZodDefault<z.ZodNumber>; limit: z.ZodDefault<z.ZodNumber>; }, "strip", z.ZodTypeAny, { total?: number; offset?: number; limit?: number; }, { total?: number; offset?: number; limit?: 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<z.objectUtil.extendShape<{ self: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; first: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; last: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; next: z.ZodOptional<z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>>; previous: z.ZodOptional<z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>>; }, { product: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; }>, "strip", z.ZodTypeAny, { self?: { href?: string; }; first?: { href?: string; }; last?: { href?: string; }; next?: { href?: string; }; previous?: { href?: string; }; product?: { href?: string; }; }, { self?: { href?: string; }; first?: { href?: string; }; last?: { href?: string; }; next?: { href?: string; }; previous?: { href?: string; }; product?: { href?: string; }; }>; }, "strip", z.ZodTypeAny, { _links?: { self?: { href?: string; }; first?: { href?: string; }; last?: { href?: string; }; next?: { href?: string; }; previous?: { href?: string; }; product?: { 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; }[]; paging?: { total?: number; offset?: number; limit?: number; }; filter_settings?: { value?: string; name?: string; }; }, { _links?: { self?: { href?: string; }; first?: { href?: string; }; last?: { href?: string; }; next?: { href?: string; }; previous?: { href?: string; }; product?: { 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; }[]; paging?: { total?: number; offset?: number; limit?: number; }; filter_settings?: { value?: string; name?: string; }; }>; export type GetProductStockAvailabilityResponse = z.infer<typeof GetProductStockAvailabilityResponse>;