UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

451 lines (450 loc) 12.4 kB
import { z } from 'zod'; export declare const ListWarehouseProductsSearchParams: z.ZodObject<z.objectUtil.extendShape<{ filter: z.ZodOptional<z.ZodString>; limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; offset: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; }, { store_id: z.ZodOptional<z.ZodNumber>; }>, z.UnknownKeysParam, z.ZodTypeAny, { filter?: string; offset?: number; limit?: number; store_id?: number; }, { filter?: string; offset?: number; limit?: number; store_id?: number; }>; export type ListWarehouseProductsSearchParams = z.infer<typeof ListWarehouseProductsSearchParams>; export declare const ListWarehouseProductsResponse: z.ZodObject<{ data: z.ZodArray<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; }; }[]; }>, "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<{ 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; }>>; }, "strip", z.ZodTypeAny, { self?: { href?: string; }; first?: { href?: string; }; last?: { href?: string; }; next?: { href?: string; }; previous?: { href?: string; }; }, { self?: { href?: string; }; first?: { href?: string; }; last?: { href?: string; }; next?: { href?: string; }; previous?: { href?: string; }; }>; }, "strip", z.ZodTypeAny, { _links?: { self?: { href?: string; }; first?: { href?: string; }; last?: { href?: string; }; next?: { href?: string; }; previous?: { href?: string; }; }; 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; }; }[]; }[]; paging?: { total?: number; offset?: number; limit?: number; }; }, { _links?: { self?: { href?: string; }; first?: { href?: string; }; last?: { href?: string; }; next?: { href?: string; }; previous?: { href?: string; }; }; 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; }; }[]; }[]; paging?: { total?: number; offset?: number; limit?: number; }; }>; export type ListWarehouseProductsResponse = z.infer<typeof ListWarehouseProductsResponse>;