@pfantato/printful-ts
Version:
Typescript SDK to integrate with Printful
307 lines (306 loc) • 9.05 kB
TypeScript
import { z } from 'zod';
export declare const GetWarehouseProductResponse: z.ZodObject<{
data: 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;
};
}[];
}>;
}, "strip", z.ZodTypeAny, {
data?: {
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;
};
}[];
};
}, {
data?: {
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 GetWarehouseProductResponse = z.infer<typeof GetWarehouseProductResponse>;