@omni-commerce/sdk 0.9.2 → 0.10.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 +4 -0
- package/dist/index.cjs +3 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20635 -19154
- package/dist/index.d.ts +20635 -19154
- package/dist/index.js +3 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -75,6 +75,10 @@ await client.orders.get(
|
|
|
75
75
|
|
|
76
76
|
`await request.withRawResponse()` returns `{ data, rawResponse }` with status and headers.
|
|
77
77
|
|
|
78
|
+
## Review actions
|
|
79
|
+
|
|
80
|
+
SDK 0.10.0 removes `reviews.actions`. Read reviews and draft replies through the SDK; review and send replies from the workspace Reviews page.
|
|
81
|
+
|
|
78
82
|
## Batch market price comparison
|
|
79
83
|
|
|
80
84
|
SDK 0.9.2 adds `products.comparePrices` and `products.getPriceComparison`. Submit up to 50 simple product or variant IDs with a `catalog:read` credential:
|
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.
|
|
38
|
+
var SDK_VERSION = "0.10.0";
|
|
39
39
|
var SDK_USER_AGENT = `omnicommerce-js/${SDK_VERSION}`;
|
|
40
40
|
|
|
41
41
|
// src/environments.ts
|
|
@@ -2503,7 +2503,7 @@ var ProductsClient = class {
|
|
|
2503
2503
|
### Input options
|
|
2504
2504
|
|
|
2505
2505
|
- Upload a CSV (2 MiB) or JSON products file (8 MiB) using `multipart/form-data`.
|
|
2506
|
-
- Send JSON with a `products` array of 1–
|
|
2506
|
+
- Send JSON with a `products` array of 1–5,000 flat product objects (8 MiB request maximum).
|
|
2507
2507
|
- Send JSON with inline `csvText`.
|
|
2508
2508
|
- Send JSON referencing a stored `documentId`.
|
|
2509
2509
|
|
|
@@ -2922,7 +2922,7 @@ var ReviewsClient = class {
|
|
|
2922
2922
|
*
|
|
2923
2923
|
* Draft a reply with AI from the review, the product, recent replies, and the brand kit. Uses AI credits. Requires `reviews:write`.
|
|
2924
2924
|
|
|
2925
|
-
Nothing is posted; send the
|
|
2925
|
+
Nothing is posted; review and send the draft from the workspace Reviews page.
|
|
2926
2926
|
*
|
|
2927
2927
|
* `POST /api/v1/reviews/{reviewId}/draft-reply`
|
|
2928
2928
|
*/
|
|
@@ -2936,25 +2936,6 @@ var ReviewsClient = class {
|
|
|
2936
2936
|
...mergeRequestOptions(requestOptions)
|
|
2937
2937
|
});
|
|
2938
2938
|
}
|
|
2939
|
-
/**
|
|
2940
|
-
* Act on Reviews
|
|
2941
|
-
*
|
|
2942
|
-
* Reply to up to 50 reviews, or send Amazon review requests for solicitation rows. Requires `reviews:write`.
|
|
2943
|
-
|
|
2944
|
-
Each target succeeds or fails on its own; read `data.results`. `ok` is true only when every target succeeds.
|
|
2945
|
-
*
|
|
2946
|
-
* `POST /api/v1/reviews/actions`
|
|
2947
|
-
*/
|
|
2948
|
-
actions(request, requestOptions) {
|
|
2949
|
-
const { ...body } = request ?? {};
|
|
2950
|
-
return this._http.request({
|
|
2951
|
-
method: "POST",
|
|
2952
|
-
path: "/api/v1/reviews/actions",
|
|
2953
|
-
query: void 0,
|
|
2954
|
-
body,
|
|
2955
|
-
...mergeRequestOptions(requestOptions)
|
|
2956
|
-
});
|
|
2957
|
-
}
|
|
2958
2939
|
};
|
|
2959
2940
|
var SearchClient = class {
|
|
2960
2941
|
constructor(_http) {
|