@omni-commerce/sdk 0.12.0 → 0.13.0

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/README.md CHANGED
@@ -96,6 +96,20 @@ console.log(completed.result?.success, completed.result?.results);
96
96
 
97
97
  Omit `gl` to compare all recorded listing markets; `gl: "sg"` restricts research to Singapore. Global Zalora prices stay separate by country/currency. An India Shopify store selling in SGD is researched in Singapore. Read each product's `markets` array for its price evidence, research, comparison, and errors. Missing published price evidence is an explicit failure; a catalog fallback is never a verified listing price. Client timeouts leave the durable job running. [Full comparison guide](https://docs.omnicommerce.sg/sdk/typescript#market-price-comparison).
98
98
 
99
+ ## Publish selected fields
100
+
101
+ Choose marketplaces and publish only saved fields on existing listings, matching the publish popover:
102
+
103
+ ```ts
104
+ const publish = await client.products.publish({
105
+ productId: "prod_123",
106
+ marketplaces: ["shopee", "lazada"],
107
+ updateFields: ["name", "description", "images"],
108
+ });
109
+ ```
110
+
111
+ Omit marketplaces to use every enabled or listed marketplace; omit fields for full publishing. Selected-field updates preserve other fields and listing visibility. Inspect every target result for capability/connection errors and await every returned job ID and inventory correlation. See the [publishing guide](https://docs.omnicommerce.sg/sdk/typescript#publish-selected-fields).
112
+
99
113
  ## Resources
100
114
 
101
115
  | Client | Examples |
package/dist/index.cjs CHANGED
@@ -35,7 +35,7 @@ function normalizeClientOptions(options = {}) {
35
35
  }
36
36
 
37
37
  // src/version.ts
38
- var SDK_VERSION = "0.12.0";
38
+ var SDK_VERSION = "0.13.0";
39
39
  var SDK_USER_AGENT = `omnicommerce-js/${SDK_VERSION}`;
40
40
 
41
41
  // src/environments.ts
@@ -2479,12 +2479,22 @@ var ProductsClient = class {
2479
2479
  });
2480
2480
  }
2481
2481
  /**
2482
- * Publish Product
2483
- *
2484
- * Queue marketplace publish jobs for a product by productId. OmniCommerce publishes to the marketplaces already enabled on the product and uses the product's store selection or a single/default connected store.
2485
- *
2486
- * `POST /api/v1/products/{productId}/publish`
2487
- */
2482
+ * Publish Product
2483
+ *
2484
+ * ### Publishing
2485
+
2486
+ Queue durable marketplace publish/update jobs for a product. Omit marketplaces to use every enabled or already listed marketplace, or name the marketplaces to target. Omit updateFields for a full publish with live/draft visibility. Set updateFields to update only saved values for those fields on existing listings with assigned stores; other fields and listing visibility stay unchanged. No new listing is created by a selected-field update.
2487
+
2488
+ ### Marketplace capabilities
2489
+
2490
+ SEO is Shopify-only; highlights support Lazada, TikTok and Amazon; attributes exclude WhatsApp. Category-only updates require a full publish on TikTok and Amazon. Unsupported combinations and missing listings/stores return explicit per-marketplace failures while valid targets continue.
2491
+
2492
+ ### Completion
2493
+
2494
+ Accept
2495
+ *
2496
+ * `POST /api/v1/products/{productId}/publish`
2497
+ */
2488
2498
  publish(request, requestOptions) {
2489
2499
  const { productId, ...body } = request ?? {};
2490
2500
  return this._http.request({