UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

257 lines (256 loc) 8.52 kB
import { z } from 'zod'; export declare const GetProductMockupTemplatesSearchParams: z.ZodObject<z.objectUtil.extendShape<{ placements: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string, string[]>>; 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"]>>>; offset: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, void, number>>; limit: 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; placements?: 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; placements?: 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 GetProductMockupTemplatesSearchParams = z.infer<typeof GetProductMockupTemplatesSearchParams>; export declare const GetProductMockupTemplatesResponse: z.ZodObject<{ data: z.ZodArray<z.ZodObject<{ catalog_variant_ids: z.ZodArray<z.ZodNumber, "many">; placement: z.ZodString; technique: z.ZodEnum<["dtg", "digital", "cut-sew", "uv", "embroidery", "sublimation", "dtfilm"]>; image_url: z.ZodString; background_url: z.ZodNullable<z.ZodString>; background_color: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>; template_width: z.ZodNumber; template_height: z.ZodNumber; print_area_width: z.ZodNumber; print_area_height: z.ZodNumber; print_area_top: z.ZodNumber; print_area_left: z.ZodNumber; template_positioning: z.ZodEnum<["overlay", "background"]>; orientation: z.ZodEnum<["horizontal", "vertical", "any"]>; template_type: z.ZodEnum<["custom", "native", "color_group", "advanced"]>; }, "strip", z.ZodTypeAny, { image_url?: string; placement?: string; technique?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; print_area_width?: number; print_area_height?: number; catalog_variant_ids?: number[]; background_url?: string; background_color?: string; template_width?: number; template_height?: number; print_area_top?: number; print_area_left?: number; template_positioning?: "overlay" | "background"; orientation?: "horizontal" | "vertical" | "any"; template_type?: "custom" | "native" | "color_group" | "advanced"; }, { image_url?: string; placement?: string; technique?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; print_area_width?: number; print_area_height?: number; catalog_variant_ids?: number[]; background_url?: string; background_color?: string; template_width?: number; template_height?: number; print_area_top?: number; print_area_left?: number; template_positioning?: "overlay" | "background"; orientation?: "horizontal" | "vertical" | "any"; template_type?: "custom" | "native" | "color_group" | "advanced"; }>, "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: 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?: { image_url?: string; placement?: string; technique?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; print_area_width?: number; print_area_height?: number; catalog_variant_ids?: number[]; background_url?: string; background_color?: string; template_width?: number; template_height?: number; print_area_top?: number; print_area_left?: number; template_positioning?: "overlay" | "background"; orientation?: "horizontal" | "vertical" | "any"; template_type?: "custom" | "native" | "color_group" | "advanced"; }[]; paging?: { total?: number; offset?: number; limit?: number; }; }, { _links?: { self?: { href?: string; }; first?: { href?: string; }; last?: { href?: string; }; next?: { href?: string; }; previous?: { href?: string; }; product?: { href?: string; }; }; data?: { image_url?: string; placement?: string; technique?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; print_area_width?: number; print_area_height?: number; catalog_variant_ids?: number[]; background_url?: string; background_color?: string; template_width?: number; template_height?: number; print_area_top?: number; print_area_left?: number; template_positioning?: "overlay" | "background"; orientation?: "horizontal" | "vertical" | "any"; template_type?: "custom" | "native" | "color_group" | "advanced"; }[]; paging?: { total?: number; offset?: number; limit?: number; }; }>; export type GetProductMockupTemplatesResponse = z.infer<typeof GetProductMockupTemplatesResponse>;