@omni-commerce/sdk 0.24.0 → 0.25.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/dist/index.js CHANGED
@@ -33,7 +33,7 @@ function normalizeClientOptions(options = {}) {
33
33
  }
34
34
 
35
35
  // src/version.ts
36
- var SDK_VERSION = "0.24.0";
36
+ var SDK_VERSION = "0.25.0";
37
37
  var SDK_USER_AGENT = `omnicommerce-js/${SDK_VERSION}`;
38
38
 
39
39
  // src/environments.ts
@@ -2497,6 +2497,8 @@ var JobsClient = class {
2497
2497
  *
2498
2498
  * Fetch shared async status for developer-platform operations, including product workflow jobs, bulk CSV import jobs, Look generation jobs, import jobs, enrichment jobs, price comparison jobs, and sync jobs.
2499
2499
 
2500
+ Marketplace-only bulk imports expose data.deferStoreSelection: true. For imports with automatic publishing enabled, inspect data.publishing for per-store results.
2501
+
2500
2502
  Price comparison jobs expose partial progress in data.results and their final batch result in data.result; completed means processing finished, so inspect data.result.success for comparison failures.
2501
2503
  *
2502
2504
  * `GET /api/v1/jobs/{jobId}`
@@ -3577,14 +3579,11 @@ var ProductsClient = class {
3577
3579
  *
3578
3580
  * Queue a bulk product import for the authenticated organization.
3579
3581
 
3580
- Supply explicit SKU options in each row's `variationAttributes` and native marketplace attributes in `marketplaceAttributes`. Enrichment never infers SKU options. At Zalora publish time, a missing required Size defaults to One Size only when valid for the selected category and supplied size system. Supplied sizes are preserved; missing or incompatible size systems and other required options block publishing. Each row remains a standalone product; no child variants are created for the default.
3582
+ ### Destinations
3581
3583
 
3582
- ### Input options
3584
+ Supply targetMarketplaces and marketplaceStoreSelections to prepare for specific connected stores. Set deferStoreSelection=true to choose marketplaces only and assign stores later with POST /api/v1/products/marketplace-stores. Omit marketplaceStoreSelections and leave workflow.publish off when deferring. Automatic publishing requires catalog:sync in addition to catalog:write.
3583
3585
 
3584
- - Upload a CSV (2 MiB) or JSON products file (8 MiB) using `multipart/form-data`.
3585
- - Send JSON with a `products` array of 1–5,000 flat product objects (8 MiB request maximum).
3586
- - Send JSON with inline `csvText`.
3587
- - Send
3586
+ Supply explicit SKU options in each row's `variationAttributes` and native marketplace attributes in `marketplaceAttributes`. Enrichment never infers SKU options. At Zalora publish time, a missing required Size defaults to One Size only when valid for the selected category and supplied size system. Supplied sizes are preserved; missing
3588
3587
  *
3589
3588
  * `POST /api/v1/products/bulk-import`
3590
3589
  */
@@ -3928,9 +3927,7 @@ var ProductsClient = class {
3928
3927
 
3929
3928
  ### Enrichment options
3930
3929
 
3931
- Fields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections.
3932
-
3933
- autoApplyHighConfidence defaults to false.
3930
+ Fields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections. Use deferredMarketplaces to enrich product
3934
3931
  *
3935
3932
  * `POST /api/v1/products/enrich`
3936
3933
  */
@@ -3944,6 +3941,31 @@ var ProductsClient = class {
3944
3941
  ...mergeRequestOptions(requestOptions)
3945
3942
  });
3946
3943
  }
3944
+ /**
3945
+ * Assign Product Marketplace Stores
3946
+ *
3947
+ * Requires catalog:write. Assign one or more connected stores per marketplace to 1–100 products, including marketplace-only drafts. Get exact store IDs and countries from GET /api/v1/marketplaces/connected.
3948
+
3949
+ ### Store selection
3950
+
3951
+ Each product family is updated independently. Existing listings keep their remote identities. Reusing a store ID across countries requires storeCountries to identify the connection. Each product can use only one country per store ID. Copy compatible taxonomy from an existing sourceStoreId when supplied.
3952
+
3953
+ ### Publish assigned stores
3954
+
3955
+ The response includes exact data.storeTargets for publishing the successful products. HTTP 207 means at least one product failed. Inspect each result before passing those storeTargets to POST /api/v1/products/{productId}/publish.
3956
+ *
3957
+ * `POST /api/v1/products/marketplace-stores`
3958
+ */
3959
+ assignMarketplaceStores(request, requestOptions) {
3960
+ const { ...body } = request ?? {};
3961
+ return this._http.request({
3962
+ method: "POST",
3963
+ path: "/api/v1/products/marketplace-stores",
3964
+ query: void 0,
3965
+ body,
3966
+ ...mergeRequestOptions(requestOptions)
3967
+ });
3968
+ }
3947
3969
  /** Read a bounded chunk without summary classification; persist progress to resume. */
3948
3970
  scan(request = {}, options) {
3949
3971
  return scanProducts(