import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import * as core from "../../../../core"; import * as Webflow from "../../../index"; export declare namespace Inventory { interface Options extends BaseClientOptions { } interface RequestOptions extends BaseRequestOptions { } } /** * Inventory is the stock of e-commerce items in your Webflow site. */ export declare class Inventory { protected readonly _options: Inventory.Options; constructor(_options: Inventory.Options); /** * List the current inventory levels for a particular SKU item. * * Required scope | `ecommerce:read` * * @param {string} skuCollectionId - Unique identifier for a SKU collection. Use the List Collections API to find this ID. * @param {string} skuId - Unique identifier for a SKU * @param {Inventory.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} * @throws {@link Webflow.UnauthorizedError} * @throws {@link Webflow.ForbiddenError} * @throws {@link Webflow.NotFoundError} * @throws {@link Webflow.ConflictError} * @throws {@link Webflow.TooManyRequestsError} * @throws {@link Webflow.InternalServerError} * * @example * await client.inventory.list("6377a7c4b7a79608c34a46f7", "5e8518516e147040726cc415") */ list(skuCollectionId: string, skuId: string, requestOptions?: Inventory.RequestOptions): core.HttpResponsePromise; private __list; /** * Updates the current inventory levels for a particular SKU item. * * Updates may be given in one or two methods, absolutely or incrementally. * - Absolute updates are done by setting `quantity` directly. * - Incremental updates are by specifying the inventory delta in `updateQuantity` which is then added to the `quantity` stored on the server. * * Required scope | `ecommerce:write` * * @param {string} skuCollectionId - Unique identifier for a SKU collection. Use the List Collections API to find this ID. * @param {string} skuId - Unique identifier for a SKU * @param {Webflow.InventoryUpdateRequest} request * @param {Inventory.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} * @throws {@link Webflow.UnauthorizedError} * @throws {@link Webflow.ForbiddenError} * @throws {@link Webflow.NotFoundError} * @throws {@link Webflow.ConflictError} * @throws {@link Webflow.TooManyRequestsError} * @throws {@link Webflow.InternalServerError} * * @example * await client.inventory.update("6377a7c4b7a79608c34a46f7", "5e8518516e147040726cc415", { * inventoryType: "infinite" * }) */ update(skuCollectionId: string, skuId: string, request: Webflow.InventoryUpdateRequest, requestOptions?: Inventory.RequestOptions): core.HttpResponsePromise; private __update; protected _getAuthorizationHeader(): Promise; }