@omni-commerce/sdk 0.5.0 → 0.6.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.cjs CHANGED
@@ -26,7 +26,7 @@ function normalizeClientOptions(options = {}) {
26
26
  }
27
27
 
28
28
  // src/version.ts
29
- var SDK_VERSION = "0.5.0";
29
+ var SDK_VERSION = "0.6.0";
30
30
  var SDK_USER_AGENT = `omnicommerce-js/${SDK_VERSION}`;
31
31
 
32
32
  // src/environments.ts
@@ -1100,6 +1100,35 @@ var AopClient = class {
1100
1100
  });
1101
1101
  }
1102
1102
  };
1103
+ var BrandsgatewayClient = class {
1104
+ constructor(_http) {
1105
+ this._http = _http;
1106
+ }
1107
+ _http;
1108
+ /**
1109
+ * Import BrandsGateway Products
1110
+ *
1111
+ * Requires catalog:write and a connected BrandsGateway account. Uses the same parameters and import service as the import_brandsgateway_products tool.
1112
+
1113
+ ### Selection
1114
+
1115
+ Choose catalogProductIds or importAllMatching with filters. maxProducts limits new imports to 1–50 across pages (default 50); already imported products are skipped. Numeric brandIds, vendorIds (supplier warehouses), categoryIds, and conditionIds arrays match any value within each field and all supplied fields together. Omit a field for no restriction; empty arrays and legacy singular/string filters are rejected. Brands accept at most 500 IDs; other filter arrays accept at most 50 each. Broad combinations may exceed the supplier request budget and return a failure asking you to narrow the filters.
1116
+
1117
+ ### Updated dates and enrichme
1118
+ *
1119
+ * `POST /api/v1/brandsgateway/import`
1120
+ */
1121
+ importProducts(request, requestOptions) {
1122
+ const { ...body } = request ?? {};
1123
+ return this._http.request({
1124
+ method: "POST",
1125
+ path: "/api/v1/brandsgateway/import",
1126
+ query: void 0,
1127
+ body,
1128
+ ...mergeRequestOptions(requestOptions)
1129
+ });
1130
+ }
1131
+ };
1103
1132
  var CampaignsClient = class {
1104
1133
  constructor(_http) {
1105
1134
  this._http = _http;
@@ -3389,6 +3418,7 @@ var OmniGeneratedClient = class {
3389
3418
  this.agents = new AgentsClient(this._http);
3390
3419
  this.analytics = new AnalyticsClient(this._http);
3391
3420
  this.aop = new AopClient(this._http);
3421
+ this.brandsgateway = new BrandsgatewayClient(this._http);
3392
3422
  this.campaigns = new CampaignsClient(this._http);
3393
3423
  this.catalog = new CatalogClient(this._http);
3394
3424
  this.checkoutSessions = new CheckoutSessionsClient(this._http);
@@ -3425,6 +3455,7 @@ var OmniGeneratedClient = class {
3425
3455
  agents;
3426
3456
  analytics;
3427
3457
  aop;
3458
+ brandsgateway;
3428
3459
  campaigns;
3429
3460
  catalog;
3430
3461
  checkoutSessions;