@pfantato/printful-ts
Version:
Typescript SDK to integrate with Printful
153 lines (152 loc) • 3.61 kB
TypeScript
import { z } from 'zod';
export declare const ProductVariant: 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;
}>;
export type ProductVariant = z.infer<typeof ProductVariant>;