haravan-client
Version:
### Haravan API
18 lines (17 loc) • 541 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.postInventory = void 0;
const common_1 = require("./common");
function postInventory(param) {
const { accessToken, inventory, delay } = param;
const config = common_1.makeRequestConfig({
path: `/com/inventories/adjustorset.json`,
method: 'POST',
accessToken,
data: { inventory },
rootField: 'inventory',
delay
});
return common_1.sendRequest(config);
}
exports.postInventory = postInventory;