@figuredev/orders-sdk
Advanced tools
Comparing version 0.12.22 to 0.12.23
@@ -0,1 +1,2 @@ | ||
import { InventoryInfoDTO } from "./inventory"; | ||
import { OrderDTO } from "./orderV3"; | ||
@@ -26,3 +27,7 @@ import { IsoDateTime } from "./types"; | ||
checkOrderExists(ctx: UserContext, id: string): Promise<boolean>; | ||
getInventoryInfo(ctx: UserContext, params: { | ||
locationId: string; | ||
productIds?: string[]; | ||
}): Promise<InventoryInfoDTO[]>; | ||
} | ||
export {}; |
@@ -76,4 +76,20 @@ "use strict"; | ||
} | ||
getInventoryInfo(ctx, params) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield axios_1.default | ||
.request({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: `/inventory/info`, | ||
headers: this.prepareHeaders(ctx), | ||
params: { | ||
locationId: params.locationId, | ||
productIds: params.productIds, | ||
}, | ||
}) | ||
.then((r) => { var _a; return (_a = r.data) !== null && _a !== void 0 ? _a : []; }); | ||
}); | ||
} | ||
} | ||
exports.OrdersClient = OrdersClient; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@figuredev/orders-sdk", | ||
"version": "0.12.22", | ||
"version": "0.12.23", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28446
17
617