UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

112 lines (111 loc) 3.47 kB
import type { Options } from 'ky'; import { ListWarehouseProductsSearchParams } from '@printful-ts/schemas'; import { PrintfulApiService } from './printful-api.service'; export declare class WarehouseProductsService extends PrintfulApiService { listWarehouseProducts(params: ListWarehouseProductsSearchParams, options?: Options): Promise<{ _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; }; }>; getWarehouseProduct(warehouse_product_id: number, store_id?: number, options?: Options): Promise<{ 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; }; }[]; }; }>; }