UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

830 lines (829 loc) 27.2 kB
import { z } from 'zod'; export declare const Currency: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; export type Currency = z.infer<typeof Currency>; export declare const OptionPrice: 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; }>; export type OptionPrice = z.infer<typeof OptionPrice>; export declare const AdditionalPlacement: 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; }[]; }[]; }>; export type AdditionalPlacement = z.infer<typeof AdditionalPlacement>; export declare const VariantTechniquePrice: 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; }>; export type VariantTechniquePrice = z.infer<typeof VariantTechniquePrice>; export declare const VariantPriceData: 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; }[]; }>; export type VariantPriceData = z.infer<typeof VariantPriceData>; export declare const ProductPrice: 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; }[]; }[]; }>; export type ProductPrice = z.infer<typeof ProductPrice>; export declare const VariantPrice: z.ZodObject<z.objectUtil.extendShape<Pick<{ 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">; }, "currency" | "product">, { variant: 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; }[]; }>; }>, "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; }[]; }[]; }[]; }; variant?: { 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; }[]; }[]; }[]; }; variant?: { id?: number; techniques?: { price?: string; technique_key?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; discounted_price?: string; technique_display_name?: string; }[]; }; }>; export type VariantPrice = z.infer<typeof VariantPrice>;