haravan-client
Version:
### Haravan API
18 lines (17 loc) • 551 B
TypeScript
import { IHaravanProduct } from './product';
export declare type IHaravanInventory = {
location_id: number;
type?: 'set' | 'adjust';
reason?: 'newproduct' | 'returned' | 'productionofgoods' | 'damaged' | 'shrinkage' | 'promotion' | 'transfer';
note?: string;
line_items: {
product_id: number;
product_variant_id: number;
quantity: number;
}[];
};
export declare function postInventory(param: {
accessToken: string;
inventory: IHaravanInventory;
delay?: number;
}): Promise<IHaravanProduct>;