UNPKG

shipstation-node

Version:
42 lines (41 loc) 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Inventory = void 0; const BaseResource_1 = require("../../BaseResource"); /** * [Official Documentation](https://docs.shipstation.com/openapi/inventory) * * Manage inventory, adjust quantities, and handle warehouses and locations. */ class Inventory extends BaseResource_1.BaseResource { constructor(shipstation) { super(shipstation, 'inventory'); } /** * [Official Documentation](https://docs.shipstation.com/openapi/inventory/getinventorylevels) * * @param options Options for the request * * @returns SKU inventory levels */ async listSKUInventoryLevels(options) { return this.shipstation.request({ url: this.baseUrl, method: 'GET', params: options }); } /** * [Official Documentation](https://docs.shipstation.com/openapi/inventory/updateskustocklevels) * * @param data Data for the request */ async updateSKULevelsAndProperties(options) { await this.shipstation.request({ url: this.baseUrl, method: 'POST', data: options }); } } exports.Inventory = Inventory;