UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

365 lines (364 loc) 9.6 kB
import { z } from 'zod'; export declare const StockLocation: z.ZodObject<{ facility: z.ZodString; stocked: z.ZodNumber; available: z.ZodNumber; }, "strip", z.ZodTypeAny, { facility?: string; stocked?: number; available?: number; }, { facility?: string; stocked?: number; available?: number; }>; export type StockLocation = z.infer<typeof StockLocation>; export declare const Dimensions: z.ZodObject<{ measurement_system: z.ZodEnum<["imperial", "metric"]>; width: z.ZodNumber; height: z.ZodNumber; length: z.ZodNumber; weight: z.ZodNumber; }, "strip", z.ZodTypeAny, { length?: number; measurement_system?: "imperial" | "metric"; width?: number; height?: number; weight?: number; }, { length?: number; measurement_system?: "imperial" | "metric"; width?: number; height?: number; weight?: number; }>; export type Dimensions = z.infer<typeof Dimensions>; export declare const WarehouseProductStatus: z.ZodEnum<["draft", "awaiting_approval", "approved", "declined", "suspended"]>; export type WarehouseProductStatus = z.infer<typeof WarehouseProductStatus>; export declare const WarehouseProductVariant: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; sku: z.ZodString; image_url: z.ZodString; retail_prie: z.ZodString; quantity: z.ZodNumber; stock_location: z.ZodArray<z.ZodObject<{ facility: z.ZodString; stocked: z.ZodNumber; available: z.ZodNumber; }, "strip", z.ZodTypeAny, { facility?: string; stocked?: number; available?: number; }, { facility?: string; stocked?: number; available?: number; }>, "many">; dimensions: z.ZodObject<{ measurement_system: z.ZodEnum<["imperial", "metric"]>; width: z.ZodNumber; height: z.ZodNumber; length: z.ZodNumber; weight: z.ZodNumber; }, "strip", z.ZodTypeAny, { length?: number; measurement_system?: "imperial" | "metric"; width?: number; height?: number; weight?: number; }, { length?: number; measurement_system?: "imperial" | "metric"; width?: number; height?: number; weight?: number; }>; _links: z.ZodObject<{ self: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; }, "strip", z.ZodTypeAny, { self?: { href?: string; }; }, { self?: { href?: string; }; }>; }, "strip", z.ZodTypeAny, { name?: string; id?: number; image_url?: string; _links?: { self?: { href?: string; }; }; quantity?: number; sku?: string; retail_prie?: string; stock_location?: { facility?: string; stocked?: number; available?: number; }[]; dimensions?: { length?: number; measurement_system?: "imperial" | "metric"; width?: number; height?: number; weight?: number; }; }, { name?: string; id?: number; image_url?: string; _links?: { self?: { href?: string; }; }; quantity?: number; sku?: string; retail_prie?: string; stock_location?: { facility?: string; stocked?: number; available?: number; }[]; dimensions?: { length?: number; measurement_system?: "imperial" | "metric"; width?: number; height?: number; weight?: number; }; }>; export type WarehouseProductVariant = z.infer<typeof WarehouseProductVariant>; export declare const WarehouseProduct: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; status: z.ZodEnum<["draft", "awaiting_approval", "approved", "declined", "suspended"]>; currency: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; image_url: z.ZodString; variants: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; sku: z.ZodString; image_url: z.ZodString; retail_prie: z.ZodString; quantity: z.ZodNumber; stock_location: z.ZodArray<z.ZodObject<{ facility: z.ZodString; stocked: z.ZodNumber; available: z.ZodNumber; }, "strip", z.ZodTypeAny, { facility?: string; stocked?: number; available?: number; }, { facility?: string; stocked?: number; available?: number; }>, "many">; dimensions: z.ZodObject<{ measurement_system: z.ZodEnum<["imperial", "metric"]>; width: z.ZodNumber; height: z.ZodNumber; length: z.ZodNumber; weight: z.ZodNumber; }, "strip", z.ZodTypeAny, { length?: number; measurement_system?: "imperial" | "metric"; width?: number; height?: number; weight?: number; }, { length?: number; measurement_system?: "imperial" | "metric"; width?: number; height?: number; weight?: number; }>; _links: z.ZodObject<{ self: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; }, "strip", z.ZodTypeAny, { self?: { href?: string; }; }, { self?: { href?: string; }; }>; }, "strip", z.ZodTypeAny, { name?: string; id?: number; image_url?: string; _links?: { self?: { href?: string; }; }; quantity?: number; sku?: string; retail_prie?: string; stock_location?: { facility?: string; stocked?: number; available?: number; }[]; dimensions?: { length?: number; measurement_system?: "imperial" | "metric"; width?: number; height?: number; weight?: number; }; }, { name?: string; id?: number; image_url?: string; _links?: { self?: { href?: string; }; }; quantity?: number; sku?: string; retail_prie?: string; stock_location?: { facility?: string; stocked?: number; available?: number; }[]; dimensions?: { length?: number; measurement_system?: "imperial" | "metric"; width?: number; height?: number; weight?: number; }; }>, "many">; _links: z.ZodObject<{ self: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; warehouse_variants: z.ZodObject<{ href: z.ZodString; }, "strip", z.ZodTypeAny, { href?: string; }, { href?: string; }>; }, "strip", z.ZodTypeAny, { self?: { href?: string; }; warehouse_variants?: { href?: string; }; }, { self?: { href?: string; }; warehouse_variants?: { href?: string; }; }>; }, "strip", z.ZodTypeAny, { status?: "draft" | "awaiting_approval" | "approved" | "declined" | "suspended"; name?: string; id?: number; image_url?: string; _links?: { self?: { href?: string; }; warehouse_variants?: { href?: string; }; }; currency?: string; variants?: { name?: string; id?: number; image_url?: string; _links?: { self?: { href?: string; }; }; quantity?: number; sku?: string; retail_prie?: string; stock_location?: { facility?: string; stocked?: number; available?: number; }[]; dimensions?: { length?: number; measurement_system?: "imperial" | "metric"; width?: number; height?: number; weight?: number; }; }[]; }, { status?: "draft" | "awaiting_approval" | "approved" | "declined" | "suspended"; name?: string; id?: number; image_url?: string; _links?: { self?: { href?: string; }; warehouse_variants?: { href?: string; }; }; currency?: string; variants?: { name?: string; id?: number; image_url?: string; _links?: { self?: { href?: string; }; }; quantity?: number; sku?: string; retail_prie?: string; stock_location?: { facility?: string; stocked?: number; available?: number; }[]; dimensions?: { length?: number; measurement_system?: "imperial" | "metric"; width?: number; height?: number; weight?: number; }; }[]; }>; export type WarehouseProduct = z.infer<typeof WarehouseProduct>;