@sp-api-sdk/customer-feedback-api-2024-06-01 1.1.15 → 1.1.16
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.
|
@@ -41,7 +41,7 @@ const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
41
41
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
42
42
|
(0, common_1.assertParamExists)('getBrowseNodeReturnTopics', 'marketplaceId', marketplaceId);
|
|
43
43
|
const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/returns/topics`
|
|
44
|
-
.replace(
|
|
44
|
+
.replace('{browseNodeId}', encodeURIComponent(String(browseNodeId)));
|
|
45
45
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
46
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
47
47
|
let baseOptions;
|
|
@@ -76,7 +76,7 @@ const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
76
76
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
77
77
|
(0, common_1.assertParamExists)('getBrowseNodeReturnTrends', 'marketplaceId', marketplaceId);
|
|
78
78
|
const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/returns/trends`
|
|
79
|
-
.replace(
|
|
79
|
+
.replace('{browseNodeId}', encodeURIComponent(String(browseNodeId)));
|
|
80
80
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
81
81
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
82
82
|
let baseOptions;
|
|
@@ -114,7 +114,7 @@ const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
114
114
|
// verify required parameter 'sortBy' is not null or undefined
|
|
115
115
|
(0, common_1.assertParamExists)('getBrowseNodeReviewTopics', 'sortBy', sortBy);
|
|
116
116
|
const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/reviews/topics`
|
|
117
|
-
.replace(
|
|
117
|
+
.replace('{browseNodeId}', encodeURIComponent(String(browseNodeId)));
|
|
118
118
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
119
119
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
120
120
|
let baseOptions;
|
|
@@ -152,7 +152,7 @@ const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
152
152
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
153
153
|
(0, common_1.assertParamExists)('getBrowseNodeReviewTrends', 'marketplaceId', marketplaceId);
|
|
154
154
|
const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/reviews/trends`
|
|
155
|
-
.replace(
|
|
155
|
+
.replace('{browseNodeId}', encodeURIComponent(String(browseNodeId)));
|
|
156
156
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
157
157
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
158
158
|
let baseOptions;
|
|
@@ -187,7 +187,7 @@ const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
187
187
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
188
188
|
(0, common_1.assertParamExists)('getItemBrowseNode', 'marketplaceId', marketplaceId);
|
|
189
189
|
const localVarPath = `/customerFeedback/2024-06-01/items/{asin}/browseNode`
|
|
190
|
-
.replace(
|
|
190
|
+
.replace('{asin}', encodeURIComponent(String(asin)));
|
|
191
191
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
192
192
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
193
193
|
let baseOptions;
|
|
@@ -225,7 +225,7 @@ const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
225
225
|
// verify required parameter 'sortBy' is not null or undefined
|
|
226
226
|
(0, common_1.assertParamExists)('getItemReviewTopics', 'sortBy', sortBy);
|
|
227
227
|
const localVarPath = `/customerFeedback/2024-06-01/items/{asin}/reviews/topics`
|
|
228
|
-
.replace(
|
|
228
|
+
.replace('{asin}', encodeURIComponent(String(asin)));
|
|
229
229
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
230
230
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
231
231
|
let baseOptions;
|
|
@@ -263,7 +263,7 @@ const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
263
263
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
264
264
|
(0, common_1.assertParamExists)('getItemReviewTrends', 'marketplaceId', marketplaceId);
|
|
265
265
|
const localVarPath = `/customerFeedback/2024-06-01/items/{asin}/reviews/trends`
|
|
266
|
-
.replace(
|
|
266
|
+
.replace('{asin}', encodeURIComponent(String(asin)));
|
|
267
267
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
268
268
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
269
269
|
let baseOptions;
|
|
@@ -91,8 +91,8 @@ class Configuration {
|
|
|
91
91
|
* @return True if the given MIME is JSON, false otherwise.
|
|
92
92
|
*/
|
|
93
93
|
isJsonMime(mime) {
|
|
94
|
-
const jsonMime =
|
|
95
|
-
return mime !== null &&
|
|
94
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
95
|
+
return mime !== null && jsonMime.test(mime);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
exports.Configuration = Configuration;
|
|
@@ -35,7 +35,7 @@ export const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
35
35
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
36
36
|
assertParamExists('getBrowseNodeReturnTopics', 'marketplaceId', marketplaceId);
|
|
37
37
|
const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/returns/topics`
|
|
38
|
-
.replace(
|
|
38
|
+
.replace('{browseNodeId}', encodeURIComponent(String(browseNodeId)));
|
|
39
39
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40
40
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41
41
|
let baseOptions;
|
|
@@ -70,7 +70,7 @@ export const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
70
70
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
71
71
|
assertParamExists('getBrowseNodeReturnTrends', 'marketplaceId', marketplaceId);
|
|
72
72
|
const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/returns/trends`
|
|
73
|
-
.replace(
|
|
73
|
+
.replace('{browseNodeId}', encodeURIComponent(String(browseNodeId)));
|
|
74
74
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
75
75
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
76
76
|
let baseOptions;
|
|
@@ -108,7 +108,7 @@ export const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
108
108
|
// verify required parameter 'sortBy' is not null or undefined
|
|
109
109
|
assertParamExists('getBrowseNodeReviewTopics', 'sortBy', sortBy);
|
|
110
110
|
const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/reviews/topics`
|
|
111
|
-
.replace(
|
|
111
|
+
.replace('{browseNodeId}', encodeURIComponent(String(browseNodeId)));
|
|
112
112
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
113
113
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
114
114
|
let baseOptions;
|
|
@@ -146,7 +146,7 @@ export const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
147
147
|
assertParamExists('getBrowseNodeReviewTrends', 'marketplaceId', marketplaceId);
|
|
148
148
|
const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/reviews/trends`
|
|
149
|
-
.replace(
|
|
149
|
+
.replace('{browseNodeId}', encodeURIComponent(String(browseNodeId)));
|
|
150
150
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
151
151
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
152
152
|
let baseOptions;
|
|
@@ -181,7 +181,7 @@ export const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
181
181
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
182
182
|
assertParamExists('getItemBrowseNode', 'marketplaceId', marketplaceId);
|
|
183
183
|
const localVarPath = `/customerFeedback/2024-06-01/items/{asin}/browseNode`
|
|
184
|
-
.replace(
|
|
184
|
+
.replace('{asin}', encodeURIComponent(String(asin)));
|
|
185
185
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
186
186
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
187
187
|
let baseOptions;
|
|
@@ -219,7 +219,7 @@ export const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
219
219
|
// verify required parameter 'sortBy' is not null or undefined
|
|
220
220
|
assertParamExists('getItemReviewTopics', 'sortBy', sortBy);
|
|
221
221
|
const localVarPath = `/customerFeedback/2024-06-01/items/{asin}/reviews/topics`
|
|
222
|
-
.replace(
|
|
222
|
+
.replace('{asin}', encodeURIComponent(String(asin)));
|
|
223
223
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
224
224
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
225
225
|
let baseOptions;
|
|
@@ -257,7 +257,7 @@ export const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
257
257
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
258
258
|
assertParamExists('getItemReviewTrends', 'marketplaceId', marketplaceId);
|
|
259
259
|
const localVarPath = `/customerFeedback/2024-06-01/items/{asin}/reviews/trends`
|
|
260
|
-
.replace(
|
|
260
|
+
.replace('{asin}', encodeURIComponent(String(asin)));
|
|
261
261
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
262
262
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
263
263
|
let baseOptions;
|
|
@@ -88,7 +88,7 @@ export class Configuration {
|
|
|
88
88
|
* @return True if the given MIME is JSON, false otherwise.
|
|
89
89
|
*/
|
|
90
90
|
isJsonMime(mime) {
|
|
91
|
-
const jsonMime =
|
|
92
|
-
return mime !== null &&
|
|
91
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
92
|
+
return mime !== null && jsonMime.test(mime);
|
|
93
93
|
}
|
|
94
94
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/customer-feedback-api-2024-06-01",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Customer Feedback (Customer Feedback API) provides information about customer reviews and returns at both the item and browse node level.",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.16",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.1.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.31",
|
|
22
|
+
"axios": "^1.15.2"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"customer feedback api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
|
|
44
44
|
}
|