UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

320 lines (319 loc) 8.15 kB
import { z } from 'zod'; export declare const GetProductVariantResponse: z.ZodObject<{ data: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; catalog_product_id: z.ZodNumber; name: z.ZodString; image: z.ZodString; size: z.ZodString; color: z.ZodEffects<z.ZodString, string, string>; color_code: z.ZodEffects<z.ZodString, string, string>; color_code2: z.ZodEffects<z.ZodString, string, string>; _links: z.ZodObject<{ self: 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; }>; product_variants: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; variant_prices: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; variant_images: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; variant_availability: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; }, "strip", z.ZodTypeAny, { self?: { href?: string; }; product_details?: { href?: string; }; product_variants?: { href?: string; }; variant_prices?: { href?: string; }; variant_images?: { href?: string; }; variant_availability?: { href?: string; }; }, { self?: { href?: string; }; product_details?: { href?: string; }; product_variants?: { href?: string; }; variant_prices?: { href?: string; }; variant_images?: { href?: string; }; variant_availability?: { href?: string; }; }>; }, "strip", z.ZodTypeAny, { size?: string; name?: string; id?: number; _links?: { self?: { href?: string; }; product_details?: { href?: string; }; product_variants?: { href?: string; }; variant_prices?: { href?: string; }; variant_images?: { href?: string; }; variant_availability?: { href?: string; }; }; catalog_product_id?: number; image?: string; color?: string; color_code?: string; color_code2?: string; }, { size?: string; name?: string; id?: number; _links?: { self?: { href?: string; }; product_details?: { href?: string; }; product_variants?: { href?: string; }; variant_prices?: { href?: string; }; variant_images?: { href?: string; }; variant_availability?: { href?: string; }; }; catalog_product_id?: number; image?: string; color?: string; color_code?: string; color_code2?: string; }>, "many">; _links: z.ZodObject<{ self: z.ZodOptional<z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>>; product_variants: z.ZodOptional<z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>>; product_details: z.ZodOptional<z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>>; variant_prices: z.ZodOptional<z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>>; variant_images: z.ZodOptional<z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>>; }, "strip", z.ZodTypeAny, { self?: { href?: string; }; product_details?: { href?: string; }; product_variants?: { href?: string; }; variant_prices?: { href?: string; }; variant_images?: { href?: string; }; }, { self?: { href?: string; }; product_details?: { href?: string; }; product_variants?: { href?: string; }; variant_prices?: { href?: string; }; variant_images?: { href?: string; }; }>; }, "strip", z.ZodTypeAny, { _links?: { self?: { href?: string; }; product_details?: { href?: string; }; product_variants?: { href?: string; }; variant_prices?: { href?: string; }; variant_images?: { href?: string; }; }; data?: { size?: string; name?: string; id?: number; _links?: { self?: { href?: string; }; product_details?: { href?: string; }; product_variants?: { href?: string; }; variant_prices?: { href?: string; }; variant_images?: { href?: string; }; variant_availability?: { href?: string; }; }; catalog_product_id?: number; image?: string; color?: string; color_code?: string; color_code2?: string; }[]; }, { _links?: { self?: { href?: string; }; product_details?: { href?: string; }; product_variants?: { href?: string; }; variant_prices?: { href?: string; }; variant_images?: { href?: string; }; }; data?: { size?: string; name?: string; id?: number; _links?: { self?: { href?: string; }; product_details?: { href?: string; }; product_variants?: { href?: string; }; variant_prices?: { href?: string; }; variant_images?: { href?: string; }; variant_availability?: { href?: string; }; }; catalog_product_id?: number; image?: string; color?: string; color_code?: string; color_code2?: string; }[]; }>; export type GetProductVariantResponse = z.infer<typeof GetProductVariantResponse>;