@omni-commerce/sdk 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +17 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +236 -43
- package/dist/index.d.ts +236 -43
- package/dist/index.js +17 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -26,7 +26,7 @@ function normalizeClientOptions(options = {}) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
// src/version.ts
|
|
29
|
-
var SDK_VERSION = "0.1.
|
|
29
|
+
var SDK_VERSION = "0.1.1";
|
|
30
30
|
var SDK_USER_AGENT = `omnicommerce-js/${SDK_VERSION}`;
|
|
31
31
|
|
|
32
32
|
// src/environments.ts
|
|
@@ -1490,12 +1490,14 @@ var ProductsClient = class {
|
|
|
1490
1490
|
}
|
|
1491
1491
|
_http;
|
|
1492
1492
|
/**
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1493
|
+
* List Products
|
|
1494
|
+
*
|
|
1495
|
+
* List products for the authenticated organization with optional filters and pagination. Authenticate with an API key or OAuth bearer token. The organization is taken from that credential; do not send `organizationId`.
|
|
1496
|
+
|
|
1497
|
+
Rows are in `items`. Read catalog stock from `items[].stockQuantity`: parent rows already aggregate their non-deleted variants, and virtual bundles use component availability with any manual cap. Null means unknown, not zero. List rows do not contain `inventoryQuantity`, `inventory.quantity`, or an embedded `variants` array.
|
|
1498
|
+
*
|
|
1499
|
+
* `GET /api/v1/products`
|
|
1500
|
+
*/
|
|
1499
1501
|
list(request = {}, requestOptions) {
|
|
1500
1502
|
const {
|
|
1501
1503
|
status,
|
|
@@ -1636,12 +1638,14 @@ var ProductsClient = class {
|
|
|
1636
1638
|
});
|
|
1637
1639
|
}
|
|
1638
1640
|
/**
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1641
|
+
* Delist Product
|
|
1642
|
+
*
|
|
1643
|
+
* Queue delist for one product on the marketplaces you name. `marketplaces` accepts one or more of shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, and ebay. Each named marketplace must already have a listing; other channels are left untouched. Omit `marketplaces` to delist every existing listing. This does not delete the OmniCommerce product.
|
|
1644
|
+
|
|
1645
|
+
Poll GET /api/v1/jobs/{jobId} until data.status is succeeded, partial, or failed. Accepted means the job was queued, not that the marketplace has removed the listing.
|
|
1646
|
+
*
|
|
1647
|
+
* `POST /api/v1/products/{productId}/delist`
|
|
1648
|
+
*/
|
|
1645
1649
|
delist(request, requestOptions) {
|
|
1646
1650
|
const { productId, ...body } = request ?? {};
|
|
1647
1651
|
return this._http.request({
|