@omni-commerce/sdk 0.33.0 → 0.34.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.33.0";
36
+ var SDK_VERSION = "0.34.0";
37
37
  var SDK_USER_AGENT = `omnicommerce-js/${SDK_VERSION}`;
38
38
 
39
39
  // src/environments.ts
@@ -5294,12 +5294,29 @@ var ReviewQueueClient = class {
5294
5294
  ...mergeRequestOptions(requestOptions)
5295
5295
  });
5296
5296
  }
5297
+ /**
5298
+ * Apply Review Queue Corrections
5299
+ *
5300
+ * Requires `catalog:write`. Apply up to 100 item corrections across this job's linked scopes using each workflow's existing proposal validation. editedProposal follows the saved workflow proposal shape returned by items; images select existing candidate IDs. Duplicate item corrections are rejected. Product version and gallery checks remain enforced. Once all scopes commit, saved auto-publish requests continue automatically. Use repair-products for corrections to already approved catalog data.
5301
+ *
5302
+ * `POST /api/v1/review-queue/{batchId}/apply`
5303
+ */
5304
+ apply(request, requestOptions) {
5305
+ const { batchId, ...body } = request ?? {};
5306
+ return this._http.request({
5307
+ method: "POST",
5308
+ path: `/api/v1/review-queue/${encodePathParam("batchId", batchId)}/apply`,
5309
+ query: void 0,
5310
+ body,
5311
+ ...mergeRequestOptions(requestOptions)
5312
+ });
5313
+ }
5297
5314
  /**
5298
5315
  * Approve Review Queue Items
5299
5316
  *
5300
5317
  * Requires `catalog:write`.
5301
5318
 
5302
- Applies up to 100 explicitly selected review item IDs from the job and its linked batches. Approves the saved proposals through the catalog's normal stale-product and gallery checks. Set allowProductChangedOverride explicitly to approve despite an intervening product change. Already applied items are safe to resubmit. Call the publish endpoint separately to release approved changes.
5319
+ Applies up to 100 explicitly selected review item IDs from the job and its linked batches through the normal stale-product and gallery checks. Already applied items are safe to resubmit. Saved auto-publish requests continue after approval commits and all scopes for that product are applied. Otherwise use publish explicitly. Approval is not confirmation of marketplace publication.
5303
5320
  *
5304
5321
  * `POST /api/v1/review-queue/{batchId}/approve`
5305
5322
  */
@@ -5313,12 +5330,54 @@ var ReviewQueueClient = class {
5313
5330
  ...mergeRequestOptions(requestOptions)
5314
5331
  });
5315
5332
  }
5333
+ /**
5334
+ * Diagnose Review Product Publishing
5335
+ *
5336
+ * Requires `catalog:read`. Diagnose 1–25 exact review product or physical variant IDs. Returns current canonical shipping measurements (grams and cm), product facts and images, variant values, exact store/category fields, required/missing attributes, allowed options and the latest publish job's message, code and request ID. No raw provider request bodies or credentials are exposed. Store, variant and attribute-option pages have explicit continuation offsets. success means diagnosis completed; publishReady describes saved catalog validation and does not promise marketplace acceptance. Use product.updatedAt unchanged for repairs. Only targets belonging to this organization and review are accessible.
5337
+ *
5338
+ * `POST /api/v1/review-queue/{batchId}/diagnose`
5339
+ */
5340
+ diagnose(request, requestOptions) {
5341
+ const { batchId, ...body } = request ?? {};
5342
+ return this._http.request({
5343
+ method: "POST",
5344
+ path: `/api/v1/review-queue/${encodePathParam("batchId", batchId)}/diagnose`,
5345
+ query: void 0,
5346
+ body,
5347
+ ...mergeRequestOptions(requestOptions)
5348
+ });
5349
+ }
5350
+ /**
5351
+ * List Review Queue Item Details
5352
+ *
5353
+ * Requires `catalog:read`. Pages through saved proposals, issues, current/baseline/applied snapshots and publish receipts across every scope in this review job. Limit 1–50; follow nextOffset until hasMore is false. Repeat productIds to filter up to 50 products. Automation state reports each scope separately; fullyAutomatic describes configuration, not successful approval or publication.
5354
+ *
5355
+ * `GET /api/v1/review-queue/{batchId}/items`
5356
+ */
5357
+ listItems(request, requestOptions) {
5358
+ const {
5359
+ batchId,
5360
+ organizationId,
5361
+ limit,
5362
+ offset,
5363
+ status,
5364
+ workflow,
5365
+ productIds
5366
+ } = request ?? {};
5367
+ return this._http.request({
5368
+ method: "GET",
5369
+ path: `/api/v1/review-queue/${encodePathParam("batchId", batchId)}/items`,
5370
+ query: { organizationId, limit, offset, status, workflow, productIds },
5371
+ body: void 0,
5372
+ ...mergeRequestOptions(requestOptions)
5373
+ });
5374
+ }
5316
5375
  /**
5317
5376
  * Publish Review Queue Products
5318
5377
  *
5319
5378
  * Requires `catalog:sync`.
5320
5379
 
5321
- Specify productIds and visibility. Only products with all review scopes applied and outstanding releases to assigned marketplace stores are eligible. Optionally filter by marketplaces. Inspect every product and listing result for preparation failures. HTTP 202 confirms queue acceptance. Pass every returned correlation to POST /api/v1/commerce/jobs/await to check marketplace outcomes.
5380
+ Specify productIds and visibility. Only products with all review scopes applied and outstanding releases to assigned marketplace stores are eligible. Optionally filter by marketplaces and exact storeTargets to publish only repaired or failed stores. Inspect every product and listing result for preparation failures. HTTP 202 confirms queue acceptance. Pass every returned correlation to POST /api/v1/commerce/jobs/await and verify marketplace state before reporting publication.
5322
5381
  *
5323
5382
  * `POST /api/v1/review-queue/{batchId}/publish`
5324
5383
  */
@@ -5332,12 +5391,63 @@ var ReviewQueueClient = class {
5332
5391
  ...mergeRequestOptions(requestOptions)
5333
5392
  });
5334
5393
  }
5394
+ /**
5395
+ * Repair Approved Review Products
5396
+ *
5397
+ * Requires `catalog:write`. Correct 1–25 already approved products with expectedUpdatedAt copied exactly from diagnosis. Patches only supplied weight (grams), complete package dimensions (cm) and exact assigned-store category attributes. Validates keys and fixed-choice values against current marketplace metadata. Records evidence URLs and the initiating actor in review history. Conflicting versions and pending review scopes fail explicitly; correct pending proposals through apply first. Shared category attributes belong to the parent; variant values use the variant API. Does not approve or publish implicitly. Reload diagnosis and publish exact repaired stores after success. Duplicate product corrections are rejected.
5398
+ *
5399
+ * `POST /api/v1/review-queue/{batchId}/repair-products`
5400
+ */
5401
+ repairProducts(request, requestOptions) {
5402
+ const { batchId, ...body } = request ?? {};
5403
+ return this._http.request({
5404
+ method: "POST",
5405
+ path: `/api/v1/review-queue/${encodePathParam("batchId", batchId)}/repair-products`,
5406
+ query: void 0,
5407
+ body,
5408
+ ...mergeRequestOptions(requestOptions)
5409
+ });
5410
+ }
5411
+ /**
5412
+ * Retry Review Queue Processing
5413
+ *
5414
+ * Requires `catalog:write`. Explicitly restart existing durable review processing. scope defaults to failed; unfinished also includes unapplied work; all may regenerate applied proposals. Optionally restrict workflow and use a supported review model. No polling schedule is created. Read items to observe processing; this does not confirm publication.
5415
+ *
5416
+ * `POST /api/v1/review-queue/{batchId}/retry`
5417
+ */
5418
+ retry(request, requestOptions) {
5419
+ const { batchId, ...body } = request ?? {};
5420
+ return this._http.request({
5421
+ method: "POST",
5422
+ path: `/api/v1/review-queue/${encodePathParam("batchId", batchId)}/retry`,
5423
+ query: void 0,
5424
+ body,
5425
+ ...mergeRequestOptions(requestOptions)
5426
+ });
5427
+ }
5428
+ /**
5429
+ * Enable Review Queue Automation
5430
+ *
5431
+ * Requires both `catalog:write` and `catalog:sync`. Enable auto approval for enrichment, taxonomy and images plus saved auto-publish requests on 1–100 existing root review jobs, through the same durable worker as the app. Applies eligible proposals and continues publishing after all scopes commit. Blocked or unverified facts remain visible for the bot to diagnose and correct. Read items.automation for per-scope configuration and publishing for actual outcomes. Inspect every batch result; acceptance does not mean the job is already fully automatic or published.
5432
+ *
5433
+ * `POST /api/v1/review-queue/automation`
5434
+ */
5435
+ enableAutomation(request, requestOptions) {
5436
+ const { ...body } = request ?? {};
5437
+ return this._http.request({
5438
+ method: "POST",
5439
+ path: "/api/v1/review-queue/automation",
5440
+ query: void 0,
5441
+ body,
5442
+ ...mergeRequestOptions(requestOptions)
5443
+ });
5444
+ }
5335
5445
  /**
5336
5446
  * Get Review Queue Settings
5337
5447
  *
5338
5448
  * Requires catalog:review-settings for bearer credentials and company settings read permission for delegated users.
5339
5449
 
5340
- Returns the organization defaults for enrichment and taxonomy auto-apply confidence.
5450
+ Returns the organization auto-apply switch and enrichment/taxonomy confidence defaults.
5341
5451
  *
5342
5452
  * `GET /api/v1/review-queue/settings`
5343
5453
  */
@@ -5356,7 +5466,7 @@ var ReviewQueueClient = class {
5356
5466
  *
5357
5467
  * Requires catalog:review-settings for bearer credentials and company settings write permission for delegated users.
5358
5468
 
5359
- Update either or both thresholds from 0.50 to 1.00. Existing review jobs retain their saved settings.
5469
+ Set autoApplyHighConfidence and/or confidence thresholds from 0.50 to 1.00. Existing review jobs retain their saved settings.
5360
5470
  *
5361
5471
  * `PATCH /api/v1/review-queue/settings`
5362
5472
  */