UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

547 lines (546 loc) 18.3 kB
import { z } from 'zod'; export declare const ListProductPricesSearchParams: z.ZodObject<z.objectUtil.extendShape<{ selling_region_name: z.ZodOptional<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"]>>; currency: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; }, { locale: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>; }>, z.UnknownKeysParam, z.ZodTypeAny, { locale?: string; currency?: 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; currency?: 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"; }>; export type ListProductPricesSearchParams = z.infer<typeof ListProductPricesSearchParams>; export declare const ListProductPricesResponse: z.ZodObject<{ data: z.ZodArray<z.ZodObject<{ currency: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; product: z.ZodObject<{ id: z.ZodNumber; placements: z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodString; technique_key: z.ZodString; price: z.ZodString; discounted_price: z.ZodString; placement_options: z.ZodArray<z.ZodObject<{ name: z.ZodString; type: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodAny, "many">, "many">; description: z.ZodString; prices: z.ZodAny; }, "strip", z.ZodTypeAny, { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }, { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }>, "many">; layers: z.ZodArray<z.ZodObject<{ type: z.ZodString; additional_price: z.ZodString; layer_options: z.ZodArray<z.ZodObject<{ name: z.ZodString; type: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodAny, "many">, "many">; description: z.ZodString; prices: z.ZodAny; }, "strip", z.ZodTypeAny, { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }, { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }>, "many">; }, "strip", z.ZodTypeAny, { type?: string; additional_price?: string; layer_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; }, { type?: string; additional_price?: string; layer_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { type?: string; title?: string; price?: string; id?: string; technique_key?: string; discounted_price?: string; placement_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; layers?: { type?: string; additional_price?: string; layer_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; }[]; }, { type?: string; title?: string; price?: string; id?: string; technique_key?: string; discounted_price?: string; placement_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; layers?: { type?: string; additional_price?: string; layer_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { id?: number; placements?: { type?: string; title?: string; price?: string; id?: string; technique_key?: string; discounted_price?: string; placement_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; layers?: { type?: string; additional_price?: string; layer_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; }[]; }[]; }, { id?: number; placements?: { type?: string; title?: string; price?: string; id?: string; technique_key?: string; discounted_price?: string; placement_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; layers?: { type?: string; additional_price?: string; layer_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; }[]; }[]; }>; variants: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; techniques: z.ZodArray<z.ZodObject<{ technique_key: z.ZodEnum<["dtg", "digital", "cut-sew", "uv", "embroidery", "sublimation", "dtfilm"]>; technique_display_name: z.ZodString; price: z.ZodString; discounted_price: z.ZodString; }, "strip", z.ZodTypeAny, { price?: string; technique_key?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; discounted_price?: string; technique_display_name?: string; }, { price?: string; technique_key?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; discounted_price?: string; technique_display_name?: string; }>, "many">; }, "strip", z.ZodTypeAny, { id?: number; techniques?: { price?: string; technique_key?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; discounted_price?: string; technique_display_name?: string; }[]; }, { id?: number; techniques?: { price?: string; technique_key?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; discounted_price?: string; technique_display_name?: string; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { currency?: string; product?: { id?: number; placements?: { type?: string; title?: string; price?: string; id?: string; technique_key?: string; discounted_price?: string; placement_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; layers?: { type?: string; additional_price?: string; layer_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; }[]; }[]; }; variants?: { id?: number; techniques?: { price?: string; technique_key?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; discounted_price?: string; technique_display_name?: string; }[]; }[]; }, { currency?: string; product?: { id?: number; placements?: { type?: string; title?: string; price?: string; id?: string; technique_key?: string; discounted_price?: string; placement_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; layers?: { type?: string; additional_price?: string; layer_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; }[]; }[]; }; variants?: { id?: number; techniques?: { price?: string; technique_key?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; discounted_price?: string; technique_display_name?: string; }[]; }[]; }>, "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; }>; _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_details: 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_details?: { href?: string; }; }, { self?: { href?: string; }; first?: { href?: string; }; last?: { href?: string; }; next?: { href?: string; }; previous?: { href?: string; }; product_details?: { href?: string; }; }>; }, "strip", z.ZodTypeAny, { _links?: { self?: { href?: string; }; first?: { href?: string; }; last?: { href?: string; }; next?: { href?: string; }; previous?: { href?: string; }; product_details?: { href?: string; }; }; data?: { currency?: string; product?: { id?: number; placements?: { type?: string; title?: string; price?: string; id?: string; technique_key?: string; discounted_price?: string; placement_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; layers?: { type?: string; additional_price?: string; layer_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; }[]; }[]; }; variants?: { id?: number; techniques?: { price?: string; technique_key?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; discounted_price?: string; technique_display_name?: string; }[]; }[]; }[]; paging?: { total?: number; offset?: number; limit?: number; }; }, { _links?: { self?: { href?: string; }; first?: { href?: string; }; last?: { href?: string; }; next?: { href?: string; }; previous?: { href?: string; }; product_details?: { href?: string; }; }; data?: { currency?: string; product?: { id?: number; placements?: { type?: string; title?: string; price?: string; id?: string; technique_key?: string; discounted_price?: string; placement_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; layers?: { type?: string; additional_price?: string; layer_options?: { values?: any[][]; type?: string; description?: string; name?: string; prices?: any; }[]; }[]; }[]; }; variants?: { id?: number; techniques?: { price?: string; technique_key?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; discounted_price?: string; technique_display_name?: string; }[]; }[]; }[]; paging?: { total?: number; offset?: number; limit?: number; }; }>; export type ListProductPricesResponse = z.infer<typeof ListProductPricesResponse>;