UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

128 lines (127 loc) 4.97 kB
import { z } from 'zod'; export declare const InsideLabelTypeOption: z.ZodEnum<["native", "custom"]>; export type InsideLabelTypeOption = z.infer<typeof InsideLabelTypeOption>; export declare const PlacementOptions: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{ name: z.ZodLiteral<"unlimited_color">; value: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value?: boolean; name?: "unlimited_color"; }, { value?: boolean; name?: "unlimited_color"; }>, z.ZodObject<{ name: z.ZodLiteral<"inside_label_type">; values: z.ZodEnum<["native", "custom"]>; }, "strip", z.ZodTypeAny, { values?: "custom" | "native"; name?: "inside_label_type"; }, { values?: "custom" | "native"; name?: "inside_label_type"; }>]>; export type PlacementOptions = z.infer<typeof PlacementOptions>; export declare const PlacementStatus: z.ZodEnum<["ok", "failed"]>; export type PlacementStatus = z.infer<typeof PlacementStatus>; export declare const PlacementsList: z.ZodObject<z.objectUtil.extendShape<Pick<{ placement: z.ZodString; technique: z.ZodEnum<["dtg", "digital", "cut-sew", "uv", "embroidery", "sublimation", "dtfilm"]>; print_area_width: z.ZodNumber; print_area_height: z.ZodNumber; layers: z.ZodArray<z.ZodObject<{ type: z.ZodString; layer_options: z.ZodArray<z.ZodObject<{ name: z.ZodString; techniques: z.ZodArray<z.ZodEnum<["dtg", "digital", "cut-sew", "uv", "embroidery", "sublimation", "dtfilm"]>, "many">; type: z.ZodString; values: z.ZodArray<z.ZodUnknown, "many">; }, "strip", z.ZodTypeAny, { values?: unknown[]; type?: string; name?: string; techniques?: ("dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm")[]; }, { values?: unknown[]; type?: string; name?: string; techniques?: ("dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm")[]; }>, "many">; }, "strip", z.ZodTypeAny, { type?: string; layer_options?: { values?: unknown[]; type?: string; name?: string; techniques?: ("dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm")[]; }[]; }, { type?: string; layer_options?: { values?: unknown[]; type?: string; name?: string; techniques?: ("dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm")[]; }[]; }>, "many">; placement_options: z.ZodArray<z.ZodObject<{ name: z.ZodString; techniques: z.ZodArray<z.ZodEnum<["dtg", "digital", "cut-sew", "uv", "embroidery", "sublimation", "dtfilm"]>, "many">; type: z.ZodString; values: z.ZodArray<z.ZodUnknown, "many">; }, "strip", z.ZodTypeAny, { values?: unknown[]; type?: string; name?: string; techniques?: ("dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm")[]; }, { values?: unknown[]; type?: string; name?: string; techniques?: ("dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm")[]; }>, "many">; conflicting_placements: z.ZodArray<z.ZodString, "many">; }, "placement_options" | "layers" | "placement" | "technique">, { status: z.ZodEnum<["ok", "failed"]>; status_explanation: z.ZodString; }>, "strip", z.ZodTypeAny, { status?: "failed" | "ok"; placement_options?: { values?: unknown[]; type?: string; name?: string; techniques?: ("dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm")[]; }[]; layers?: { type?: string; layer_options?: { values?: unknown[]; type?: string; name?: string; techniques?: ("dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm")[]; }[]; }[]; placement?: string; technique?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; status_explanation?: string; }, { status?: "failed" | "ok"; placement_options?: { values?: unknown[]; type?: string; name?: string; techniques?: ("dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm")[]; }[]; layers?: { type?: string; layer_options?: { values?: unknown[]; type?: string; name?: string; techniques?: ("dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm")[]; }[]; }[]; placement?: string; technique?: "dtg" | "digital" | "cut-sew" | "uv" | "embroidery" | "sublimation" | "dtfilm"; status_explanation?: string; }>; export type PlacementsList = z.infer<typeof PlacementsList>;