@sp-api-sdk/customer-feedback-api-2024-06-01 2.0.0 → 2.1.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 +3 -4
- package/dist/index.cjs +655 -651
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +785 -1067
- package/dist/index.d.ts +785 -1067
- package/dist/index.js +632 -615
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/dist/index.cjs
CHANGED
|
@@ -1,679 +1,683 @@
|
|
|
1
|
-
"
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
9
|
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
|
+
get: ((k) => from[k]).bind(null, key),
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
// src/index.ts
|
|
31
|
-
var index_exports = {};
|
|
32
|
-
__export(index_exports, {
|
|
33
|
-
CustomerFeedbackApi: () => CustomerFeedbackApi,
|
|
34
|
-
CustomerFeedbackApiAxiosParamCreator: () => CustomerFeedbackApiAxiosParamCreator,
|
|
35
|
-
CustomerFeedbackApiClient: () => CustomerFeedbackApiClient,
|
|
36
|
-
CustomerFeedbackApiFactory: () => CustomerFeedbackApiFactory,
|
|
37
|
-
CustomerFeedbackApiFp: () => CustomerFeedbackApiFp,
|
|
38
|
-
clientRateLimits: () => clientRateLimits
|
|
39
|
-
});
|
|
40
|
-
module.exports = __toCommonJS(index_exports);
|
|
41
|
-
|
|
42
|
-
// src/client.ts
|
|
43
|
-
var import_common2 = require("@sp-api-sdk/common");
|
|
44
|
-
|
|
45
|
-
// src/api-model/api/customer-feedback-api.ts
|
|
46
|
-
var import_axios2 = __toESM(require("axios"), 1);
|
|
47
|
-
|
|
48
|
-
// src/api-model/base.ts
|
|
49
|
-
var import_axios = __toESM(require("axios"), 1);
|
|
50
|
-
var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
20
|
+
value: mod,
|
|
21
|
+
enumerable: true
|
|
22
|
+
}) : target, mod));
|
|
23
|
+
//#endregion
|
|
24
|
+
let _sp_api_sdk_common = require("@sp-api-sdk/common");
|
|
25
|
+
let axios = require("axios");
|
|
26
|
+
axios = __toESM(axios, 1);
|
|
27
|
+
//#region src/api-model/base.ts
|
|
28
|
+
const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
51
29
|
var BaseAPI = class {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
30
|
+
basePath;
|
|
31
|
+
axios;
|
|
32
|
+
configuration;
|
|
33
|
+
constructor(configuration, basePath = BASE_PATH, axios$9 = axios.default) {
|
|
34
|
+
this.basePath = basePath;
|
|
35
|
+
this.axios = axios$9;
|
|
36
|
+
if (configuration) {
|
|
37
|
+
this.configuration = configuration;
|
|
38
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
63
41
|
};
|
|
64
42
|
var RequiredError = class extends Error {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
43
|
+
field;
|
|
44
|
+
constructor(field, msg) {
|
|
45
|
+
super(msg);
|
|
46
|
+
this.field = field;
|
|
47
|
+
this.name = "RequiredError";
|
|
48
|
+
}
|
|
71
49
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
50
|
+
const operationServerMap = {};
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/api-model/common.ts
|
|
53
|
+
const DUMMY_BASE_URL = "https://example.com";
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
const assertParamExists = function(functionName, paramName, paramValue) {
|
|
59
|
+
if (paramValue === null || paramValue === void 0) throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
80
60
|
};
|
|
81
61
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
Object.keys(parameter).forEach(
|
|
88
|
-
(currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
} else {
|
|
92
|
-
if (urlSearchParams.has(key)) {
|
|
93
|
-
urlSearchParams.append(key, parameter);
|
|
94
|
-
} else {
|
|
95
|
-
urlSearchParams.set(key, parameter);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
62
|
+
if (parameter == null) return;
|
|
63
|
+
if (typeof parameter === "object") if (Array.isArray(parameter) || parameter instanceof Set) parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
64
|
+
else Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`));
|
|
65
|
+
else if (urlSearchParams.has(key)) urlSearchParams.append(key, parameter);
|
|
66
|
+
else urlSearchParams.set(key, parameter);
|
|
98
67
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
68
|
+
const setSearchParams = function(url, ...objects) {
|
|
69
|
+
const searchParams = new URLSearchParams(url.search);
|
|
70
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
71
|
+
url.search = searchParams.toString();
|
|
103
72
|
};
|
|
104
|
-
|
|
105
|
-
|
|
73
|
+
const toPathString = function(url) {
|
|
74
|
+
return url.pathname + url.search + url.hash;
|
|
106
75
|
};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
76
|
+
const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
77
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
78
|
+
const axiosRequestArgs = {
|
|
79
|
+
...axiosArgs.options,
|
|
80
|
+
url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url
|
|
81
|
+
};
|
|
82
|
+
return axios.request(axiosRequestArgs);
|
|
83
|
+
};
|
|
112
84
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/api-model/api/customer-feedback-api.ts
|
|
87
|
+
/**
|
|
88
|
+
* CustomerFeedbackApi - axios parameter creator
|
|
89
|
+
*/
|
|
90
|
+
const CustomerFeedbackApiAxiosParamCreator = function(configuration) {
|
|
91
|
+
return {
|
|
92
|
+
/**
|
|
93
|
+
* Retrieve the topics that customers mention when they return items in a browse node.
|
|
94
|
+
* @param {string} browseNodeId A browse node ID is a unique identifier for a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
|
|
95
|
+
* @param {string} marketplaceId The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
getBrowseNodeReturnTopics: async (browseNodeId, marketplaceId, options = {}) => {
|
|
100
|
+
assertParamExists("getBrowseNodeReturnTopics", "browseNodeId", browseNodeId);
|
|
101
|
+
assertParamExists("getBrowseNodeReturnTopics", "marketplaceId", marketplaceId);
|
|
102
|
+
const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/returns/topics`.replace("{browseNodeId}", encodeURIComponent(String(browseNodeId)));
|
|
103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
104
|
+
let baseOptions;
|
|
105
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
106
|
+
const localVarRequestOptions = {
|
|
107
|
+
method: "GET",
|
|
108
|
+
...baseOptions,
|
|
109
|
+
...options
|
|
110
|
+
};
|
|
111
|
+
const localVarHeaderParameter = {};
|
|
112
|
+
const localVarQueryParameter = {};
|
|
113
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
114
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
115
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
116
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
117
|
+
localVarRequestOptions.headers = {
|
|
118
|
+
...localVarHeaderParameter,
|
|
119
|
+
...headersFromBaseOptions,
|
|
120
|
+
...options.headers
|
|
121
|
+
};
|
|
122
|
+
return {
|
|
123
|
+
url: toPathString(localVarUrlObj),
|
|
124
|
+
options: localVarRequestOptions
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
/**
|
|
128
|
+
* Retrieve the trends of topics that customers mention when they return items in a browse node.
|
|
129
|
+
* @param {string} browseNodeId A browse node ID is a unique identifier of a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
|
|
130
|
+
* @param {string} marketplaceId The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
*/
|
|
134
|
+
getBrowseNodeReturnTrends: async (browseNodeId, marketplaceId, options = {}) => {
|
|
135
|
+
assertParamExists("getBrowseNodeReturnTrends", "browseNodeId", browseNodeId);
|
|
136
|
+
assertParamExists("getBrowseNodeReturnTrends", "marketplaceId", marketplaceId);
|
|
137
|
+
const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/returns/trends`.replace("{browseNodeId}", encodeURIComponent(String(browseNodeId)));
|
|
138
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
139
|
+
let baseOptions;
|
|
140
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
141
|
+
const localVarRequestOptions = {
|
|
142
|
+
method: "GET",
|
|
143
|
+
...baseOptions,
|
|
144
|
+
...options
|
|
145
|
+
};
|
|
146
|
+
const localVarHeaderParameter = {};
|
|
147
|
+
const localVarQueryParameter = {};
|
|
148
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
149
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
150
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
151
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
152
|
+
localVarRequestOptions.headers = {
|
|
153
|
+
...localVarHeaderParameter,
|
|
154
|
+
...headersFromBaseOptions,
|
|
155
|
+
...options.headers
|
|
156
|
+
};
|
|
157
|
+
return {
|
|
158
|
+
url: toPathString(localVarUrlObj),
|
|
159
|
+
options: localVarRequestOptions
|
|
160
|
+
};
|
|
161
|
+
},
|
|
162
|
+
/**
|
|
163
|
+
* Retrieve a browse node\'s ten most positive and ten most negative review topics.
|
|
164
|
+
* @param {string} browseNodeId The ID of a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
|
|
165
|
+
* @param {string} marketplaceId The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
166
|
+
* @param {string} sortBy The metric by which to sort the data in the response.
|
|
167
|
+
* @param {*} [options] Override http request option.
|
|
168
|
+
* @throws {RequiredError}
|
|
169
|
+
*/
|
|
170
|
+
getBrowseNodeReviewTopics: async (browseNodeId, marketplaceId, sortBy, options = {}) => {
|
|
171
|
+
assertParamExists("getBrowseNodeReviewTopics", "browseNodeId", browseNodeId);
|
|
172
|
+
assertParamExists("getBrowseNodeReviewTopics", "marketplaceId", marketplaceId);
|
|
173
|
+
assertParamExists("getBrowseNodeReviewTopics", "sortBy", sortBy);
|
|
174
|
+
const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/reviews/topics`.replace("{browseNodeId}", encodeURIComponent(String(browseNodeId)));
|
|
175
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
176
|
+
let baseOptions;
|
|
177
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
178
|
+
const localVarRequestOptions = {
|
|
179
|
+
method: "GET",
|
|
180
|
+
...baseOptions,
|
|
181
|
+
...options
|
|
182
|
+
};
|
|
183
|
+
const localVarHeaderParameter = {};
|
|
184
|
+
const localVarQueryParameter = {};
|
|
185
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
186
|
+
if (sortBy !== void 0) localVarQueryParameter["sortBy"] = sortBy;
|
|
187
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
188
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
189
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
190
|
+
localVarRequestOptions.headers = {
|
|
191
|
+
...localVarHeaderParameter,
|
|
192
|
+
...headersFromBaseOptions,
|
|
193
|
+
...options.headers
|
|
194
|
+
};
|
|
195
|
+
return {
|
|
196
|
+
url: toPathString(localVarUrlObj),
|
|
197
|
+
options: localVarRequestOptions
|
|
198
|
+
};
|
|
199
|
+
},
|
|
200
|
+
/**
|
|
201
|
+
* Retrieve the positive and negative review trends of items in a browse node for the past six months.
|
|
202
|
+
* @param {string} browseNodeId A browse node ID is a unique identifier of a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
|
|
203
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. For more information, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
*/
|
|
207
|
+
getBrowseNodeReviewTrends: async (browseNodeId, marketplaceId, options = {}) => {
|
|
208
|
+
assertParamExists("getBrowseNodeReviewTrends", "browseNodeId", browseNodeId);
|
|
209
|
+
assertParamExists("getBrowseNodeReviewTrends", "marketplaceId", marketplaceId);
|
|
210
|
+
const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/reviews/trends`.replace("{browseNodeId}", encodeURIComponent(String(browseNodeId)));
|
|
211
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
212
|
+
let baseOptions;
|
|
213
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
214
|
+
const localVarRequestOptions = {
|
|
215
|
+
method: "GET",
|
|
216
|
+
...baseOptions,
|
|
217
|
+
...options
|
|
218
|
+
};
|
|
219
|
+
const localVarHeaderParameter = {};
|
|
220
|
+
const localVarQueryParameter = {};
|
|
221
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
222
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
223
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
224
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
225
|
+
localVarRequestOptions.headers = {
|
|
226
|
+
...localVarHeaderParameter,
|
|
227
|
+
...headersFromBaseOptions,
|
|
228
|
+
...options.headers
|
|
229
|
+
};
|
|
230
|
+
return {
|
|
231
|
+
url: toPathString(localVarUrlObj),
|
|
232
|
+
options: localVarRequestOptions
|
|
233
|
+
};
|
|
234
|
+
},
|
|
235
|
+
/**
|
|
236
|
+
* This API returns the associated browse node of the requested ASIN. A browse node is a location in a browse tree that is used for navigation, product classification, and website content on the Amazon retail website.
|
|
237
|
+
* @param {string} asin The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace.
|
|
238
|
+
* @param {string} marketplaceId The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
239
|
+
* @param {*} [options] Override http request option.
|
|
240
|
+
* @throws {RequiredError}
|
|
241
|
+
*/
|
|
242
|
+
getItemBrowseNode: async (asin, marketplaceId, options = {}) => {
|
|
243
|
+
assertParamExists("getItemBrowseNode", "asin", asin);
|
|
244
|
+
assertParamExists("getItemBrowseNode", "marketplaceId", marketplaceId);
|
|
245
|
+
const localVarPath = `/customerFeedback/2024-06-01/items/{asin}/browseNode`.replace("{asin}", encodeURIComponent(String(asin)));
|
|
246
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
247
|
+
let baseOptions;
|
|
248
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
249
|
+
const localVarRequestOptions = {
|
|
250
|
+
method: "GET",
|
|
251
|
+
...baseOptions,
|
|
252
|
+
...options
|
|
253
|
+
};
|
|
254
|
+
const localVarHeaderParameter = {};
|
|
255
|
+
const localVarQueryParameter = {};
|
|
256
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
257
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
258
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
259
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
260
|
+
localVarRequestOptions.headers = {
|
|
261
|
+
...localVarHeaderParameter,
|
|
262
|
+
...headersFromBaseOptions,
|
|
263
|
+
...options.headers
|
|
264
|
+
};
|
|
265
|
+
return {
|
|
266
|
+
url: toPathString(localVarUrlObj),
|
|
267
|
+
options: localVarRequestOptions
|
|
268
|
+
};
|
|
269
|
+
},
|
|
270
|
+
/**
|
|
271
|
+
* Retrieve an item\'s ten most positive and ten most negative review topics.
|
|
272
|
+
* @param {string} asin The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace. The value must be a child ASIN.
|
|
273
|
+
* @param {string} marketplaceId The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
274
|
+
* @param {string} sortBy The metric by which to sort data in the response.
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
getItemReviewTopics: async (asin, marketplaceId, sortBy, options = {}) => {
|
|
279
|
+
assertParamExists("getItemReviewTopics", "asin", asin);
|
|
280
|
+
assertParamExists("getItemReviewTopics", "marketplaceId", marketplaceId);
|
|
281
|
+
assertParamExists("getItemReviewTopics", "sortBy", sortBy);
|
|
282
|
+
const localVarPath = `/customerFeedback/2024-06-01/items/{asin}/reviews/topics`.replace("{asin}", encodeURIComponent(String(asin)));
|
|
283
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
284
|
+
let baseOptions;
|
|
285
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
286
|
+
const localVarRequestOptions = {
|
|
287
|
+
method: "GET",
|
|
288
|
+
...baseOptions,
|
|
289
|
+
...options
|
|
290
|
+
};
|
|
291
|
+
const localVarHeaderParameter = {};
|
|
292
|
+
const localVarQueryParameter = {};
|
|
293
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
294
|
+
if (sortBy !== void 0) localVarQueryParameter["sortBy"] = sortBy;
|
|
295
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
296
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
|
+
localVarRequestOptions.headers = {
|
|
299
|
+
...localVarHeaderParameter,
|
|
300
|
+
...headersFromBaseOptions,
|
|
301
|
+
...options.headers
|
|
302
|
+
};
|
|
303
|
+
return {
|
|
304
|
+
url: toPathString(localVarUrlObj),
|
|
305
|
+
options: localVarRequestOptions
|
|
306
|
+
};
|
|
307
|
+
},
|
|
308
|
+
/**
|
|
309
|
+
* Retrieve an item\'s positive and negative review trends for the past six months.
|
|
310
|
+
* @param {string} asin The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace. This API takes child ASIN as an input.
|
|
311
|
+
* @param {string} marketplaceId The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
*/
|
|
315
|
+
getItemReviewTrends: async (asin, marketplaceId, options = {}) => {
|
|
316
|
+
assertParamExists("getItemReviewTrends", "asin", asin);
|
|
317
|
+
assertParamExists("getItemReviewTrends", "marketplaceId", marketplaceId);
|
|
318
|
+
const localVarPath = `/customerFeedback/2024-06-01/items/{asin}/reviews/trends`.replace("{asin}", encodeURIComponent(String(asin)));
|
|
319
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
320
|
+
let baseOptions;
|
|
321
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
322
|
+
const localVarRequestOptions = {
|
|
323
|
+
method: "GET",
|
|
324
|
+
...baseOptions,
|
|
325
|
+
...options
|
|
326
|
+
};
|
|
327
|
+
const localVarHeaderParameter = {};
|
|
328
|
+
const localVarQueryParameter = {};
|
|
329
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
330
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
331
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
332
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
333
|
+
localVarRequestOptions.headers = {
|
|
334
|
+
...localVarHeaderParameter,
|
|
335
|
+
...headersFromBaseOptions,
|
|
336
|
+
...options.headers
|
|
337
|
+
};
|
|
338
|
+
return {
|
|
339
|
+
url: toPathString(localVarUrlObj),
|
|
340
|
+
options: localVarRequestOptions
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
};
|
|
345
344
|
};
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
345
|
+
/**
|
|
346
|
+
* CustomerFeedbackApi - functional programming interface
|
|
347
|
+
*/
|
|
348
|
+
const CustomerFeedbackApiFp = function(configuration) {
|
|
349
|
+
const localVarAxiosParamCreator = CustomerFeedbackApiAxiosParamCreator(configuration);
|
|
350
|
+
return {
|
|
351
|
+
/**
|
|
352
|
+
* Retrieve the topics that customers mention when they return items in a browse node.
|
|
353
|
+
* @param {string} browseNodeId A browse node ID is a unique identifier for a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
|
|
354
|
+
* @param {string} marketplaceId The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
355
|
+
* @param {*} [options] Override http request option.
|
|
356
|
+
* @throws {RequiredError}
|
|
357
|
+
*/
|
|
358
|
+
async getBrowseNodeReturnTopics(browseNodeId, marketplaceId, options) {
|
|
359
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrowseNodeReturnTopics(browseNodeId, marketplaceId, options);
|
|
360
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
361
|
+
const localVarOperationServerBasePath = operationServerMap["CustomerFeedbackApi.getBrowseNodeReturnTopics"]?.[localVarOperationServerIndex]?.url;
|
|
362
|
+
return (axios$1, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$1, localVarOperationServerBasePath || basePath);
|
|
363
|
+
},
|
|
364
|
+
/**
|
|
365
|
+
* Retrieve the trends of topics that customers mention when they return items in a browse node.
|
|
366
|
+
* @param {string} browseNodeId A browse node ID is a unique identifier of a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
|
|
367
|
+
* @param {string} marketplaceId The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
368
|
+
* @param {*} [options] Override http request option.
|
|
369
|
+
* @throws {RequiredError}
|
|
370
|
+
*/
|
|
371
|
+
async getBrowseNodeReturnTrends(browseNodeId, marketplaceId, options) {
|
|
372
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrowseNodeReturnTrends(browseNodeId, marketplaceId, options);
|
|
373
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
374
|
+
const localVarOperationServerBasePath = operationServerMap["CustomerFeedbackApi.getBrowseNodeReturnTrends"]?.[localVarOperationServerIndex]?.url;
|
|
375
|
+
return (axios$2, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$2, localVarOperationServerBasePath || basePath);
|
|
376
|
+
},
|
|
377
|
+
/**
|
|
378
|
+
* Retrieve a browse node\'s ten most positive and ten most negative review topics.
|
|
379
|
+
* @param {string} browseNodeId The ID of a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
|
|
380
|
+
* @param {string} marketplaceId The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
381
|
+
* @param {string} sortBy The metric by which to sort the data in the response.
|
|
382
|
+
* @param {*} [options] Override http request option.
|
|
383
|
+
* @throws {RequiredError}
|
|
384
|
+
*/
|
|
385
|
+
async getBrowseNodeReviewTopics(browseNodeId, marketplaceId, sortBy, options) {
|
|
386
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrowseNodeReviewTopics(browseNodeId, marketplaceId, sortBy, options);
|
|
387
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
388
|
+
const localVarOperationServerBasePath = operationServerMap["CustomerFeedbackApi.getBrowseNodeReviewTopics"]?.[localVarOperationServerIndex]?.url;
|
|
389
|
+
return (axios$3, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$3, localVarOperationServerBasePath || basePath);
|
|
390
|
+
},
|
|
391
|
+
/**
|
|
392
|
+
* Retrieve the positive and negative review trends of items in a browse node for the past six months.
|
|
393
|
+
* @param {string} browseNodeId A browse node ID is a unique identifier of a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
|
|
394
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. For more information, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
395
|
+
* @param {*} [options] Override http request option.
|
|
396
|
+
* @throws {RequiredError}
|
|
397
|
+
*/
|
|
398
|
+
async getBrowseNodeReviewTrends(browseNodeId, marketplaceId, options) {
|
|
399
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrowseNodeReviewTrends(browseNodeId, marketplaceId, options);
|
|
400
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
401
|
+
const localVarOperationServerBasePath = operationServerMap["CustomerFeedbackApi.getBrowseNodeReviewTrends"]?.[localVarOperationServerIndex]?.url;
|
|
402
|
+
return (axios$4, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$4, localVarOperationServerBasePath || basePath);
|
|
403
|
+
},
|
|
404
|
+
/**
|
|
405
|
+
* This API returns the associated browse node of the requested ASIN. A browse node is a location in a browse tree that is used for navigation, product classification, and website content on the Amazon retail website.
|
|
406
|
+
* @param {string} asin The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace.
|
|
407
|
+
* @param {string} marketplaceId The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
408
|
+
* @param {*} [options] Override http request option.
|
|
409
|
+
* @throws {RequiredError}
|
|
410
|
+
*/
|
|
411
|
+
async getItemBrowseNode(asin, marketplaceId, options) {
|
|
412
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getItemBrowseNode(asin, marketplaceId, options);
|
|
413
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
414
|
+
const localVarOperationServerBasePath = operationServerMap["CustomerFeedbackApi.getItemBrowseNode"]?.[localVarOperationServerIndex]?.url;
|
|
415
|
+
return (axios$5, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$5, localVarOperationServerBasePath || basePath);
|
|
416
|
+
},
|
|
417
|
+
/**
|
|
418
|
+
* Retrieve an item\'s ten most positive and ten most negative review topics.
|
|
419
|
+
* @param {string} asin The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace. The value must be a child ASIN.
|
|
420
|
+
* @param {string} marketplaceId The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
421
|
+
* @param {string} sortBy The metric by which to sort data in the response.
|
|
422
|
+
* @param {*} [options] Override http request option.
|
|
423
|
+
* @throws {RequiredError}
|
|
424
|
+
*/
|
|
425
|
+
async getItemReviewTopics(asin, marketplaceId, sortBy, options) {
|
|
426
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getItemReviewTopics(asin, marketplaceId, sortBy, options);
|
|
427
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
428
|
+
const localVarOperationServerBasePath = operationServerMap["CustomerFeedbackApi.getItemReviewTopics"]?.[localVarOperationServerIndex]?.url;
|
|
429
|
+
return (axios$6, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$6, localVarOperationServerBasePath || basePath);
|
|
430
|
+
},
|
|
431
|
+
/**
|
|
432
|
+
* Retrieve an item\'s positive and negative review trends for the past six months.
|
|
433
|
+
* @param {string} asin The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace. This API takes child ASIN as an input.
|
|
434
|
+
* @param {string} marketplaceId The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
|
|
435
|
+
* @param {*} [options] Override http request option.
|
|
436
|
+
* @throws {RequiredError}
|
|
437
|
+
*/
|
|
438
|
+
async getItemReviewTrends(asin, marketplaceId, options) {
|
|
439
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getItemReviewTrends(asin, marketplaceId, options);
|
|
440
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
441
|
+
const localVarOperationServerBasePath = operationServerMap["CustomerFeedbackApi.getItemReviewTrends"]?.[localVarOperationServerIndex]?.url;
|
|
442
|
+
return (axios$7, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$7, localVarOperationServerBasePath || basePath);
|
|
443
|
+
}
|
|
444
|
+
};
|
|
443
445
|
};
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
446
|
+
/**
|
|
447
|
+
* CustomerFeedbackApi - factory interface
|
|
448
|
+
*/
|
|
449
|
+
const CustomerFeedbackApiFactory = function(configuration, basePath, axios$8) {
|
|
450
|
+
const localVarFp = CustomerFeedbackApiFp(configuration);
|
|
451
|
+
return {
|
|
452
|
+
/**
|
|
453
|
+
* Retrieve the topics that customers mention when they return items in a browse node.
|
|
454
|
+
* @param {CustomerFeedbackApiGetBrowseNodeReturnTopicsRequest} requestParameters Request parameters.
|
|
455
|
+
* @param {*} [options] Override http request option.
|
|
456
|
+
* @throws {RequiredError}
|
|
457
|
+
*/
|
|
458
|
+
getBrowseNodeReturnTopics(requestParameters, options) {
|
|
459
|
+
return localVarFp.getBrowseNodeReturnTopics(requestParameters.browseNodeId, requestParameters.marketplaceId, options).then((request) => request(axios$8, basePath));
|
|
460
|
+
},
|
|
461
|
+
/**
|
|
462
|
+
* Retrieve the trends of topics that customers mention when they return items in a browse node.
|
|
463
|
+
* @param {CustomerFeedbackApiGetBrowseNodeReturnTrendsRequest} requestParameters Request parameters.
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
*/
|
|
467
|
+
getBrowseNodeReturnTrends(requestParameters, options) {
|
|
468
|
+
return localVarFp.getBrowseNodeReturnTrends(requestParameters.browseNodeId, requestParameters.marketplaceId, options).then((request) => request(axios$8, basePath));
|
|
469
|
+
},
|
|
470
|
+
/**
|
|
471
|
+
* Retrieve a browse node\'s ten most positive and ten most negative review topics.
|
|
472
|
+
* @param {CustomerFeedbackApiGetBrowseNodeReviewTopicsRequest} requestParameters Request parameters.
|
|
473
|
+
* @param {*} [options] Override http request option.
|
|
474
|
+
* @throws {RequiredError}
|
|
475
|
+
*/
|
|
476
|
+
getBrowseNodeReviewTopics(requestParameters, options) {
|
|
477
|
+
return localVarFp.getBrowseNodeReviewTopics(requestParameters.browseNodeId, requestParameters.marketplaceId, requestParameters.sortBy, options).then((request) => request(axios$8, basePath));
|
|
478
|
+
},
|
|
479
|
+
/**
|
|
480
|
+
* Retrieve the positive and negative review trends of items in a browse node for the past six months.
|
|
481
|
+
* @param {CustomerFeedbackApiGetBrowseNodeReviewTrendsRequest} requestParameters Request parameters.
|
|
482
|
+
* @param {*} [options] Override http request option.
|
|
483
|
+
* @throws {RequiredError}
|
|
484
|
+
*/
|
|
485
|
+
getBrowseNodeReviewTrends(requestParameters, options) {
|
|
486
|
+
return localVarFp.getBrowseNodeReviewTrends(requestParameters.browseNodeId, requestParameters.marketplaceId, options).then((request) => request(axios$8, basePath));
|
|
487
|
+
},
|
|
488
|
+
/**
|
|
489
|
+
* This API returns the associated browse node of the requested ASIN. A browse node is a location in a browse tree that is used for navigation, product classification, and website content on the Amazon retail website.
|
|
490
|
+
* @param {CustomerFeedbackApiGetItemBrowseNodeRequest} requestParameters Request parameters.
|
|
491
|
+
* @param {*} [options] Override http request option.
|
|
492
|
+
* @throws {RequiredError}
|
|
493
|
+
*/
|
|
494
|
+
getItemBrowseNode(requestParameters, options) {
|
|
495
|
+
return localVarFp.getItemBrowseNode(requestParameters.asin, requestParameters.marketplaceId, options).then((request) => request(axios$8, basePath));
|
|
496
|
+
},
|
|
497
|
+
/**
|
|
498
|
+
* Retrieve an item\'s ten most positive and ten most negative review topics.
|
|
499
|
+
* @param {CustomerFeedbackApiGetItemReviewTopicsRequest} requestParameters Request parameters.
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
*/
|
|
503
|
+
getItemReviewTopics(requestParameters, options) {
|
|
504
|
+
return localVarFp.getItemReviewTopics(requestParameters.asin, requestParameters.marketplaceId, requestParameters.sortBy, options).then((request) => request(axios$8, basePath));
|
|
505
|
+
},
|
|
506
|
+
/**
|
|
507
|
+
* Retrieve an item\'s positive and negative review trends for the past six months.
|
|
508
|
+
* @param {CustomerFeedbackApiGetItemReviewTrendsRequest} requestParameters Request parameters.
|
|
509
|
+
* @param {*} [options] Override http request option.
|
|
510
|
+
* @throws {RequiredError}
|
|
511
|
+
*/
|
|
512
|
+
getItemReviewTrends(requestParameters, options) {
|
|
513
|
+
return localVarFp.getItemReviewTrends(requestParameters.asin, requestParameters.marketplaceId, options).then((request) => request(axios$8, basePath));
|
|
514
|
+
}
|
|
515
|
+
};
|
|
511
516
|
};
|
|
517
|
+
/**
|
|
518
|
+
* CustomerFeedbackApi - object-oriented interface
|
|
519
|
+
*/
|
|
512
520
|
var CustomerFeedbackApi = class extends BaseAPI {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
521
|
+
/**
|
|
522
|
+
* Retrieve the topics that customers mention when they return items in a browse node.
|
|
523
|
+
* @param {CustomerFeedbackApiGetBrowseNodeReturnTopicsRequest} requestParameters Request parameters.
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
getBrowseNodeReturnTopics(requestParameters, options) {
|
|
528
|
+
return CustomerFeedbackApiFp(this.configuration).getBrowseNodeReturnTopics(requestParameters.browseNodeId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Retrieve the trends of topics that customers mention when they return items in a browse node.
|
|
532
|
+
* @param {CustomerFeedbackApiGetBrowseNodeReturnTrendsRequest} requestParameters Request parameters.
|
|
533
|
+
* @param {*} [options] Override http request option.
|
|
534
|
+
* @throws {RequiredError}
|
|
535
|
+
*/
|
|
536
|
+
getBrowseNodeReturnTrends(requestParameters, options) {
|
|
537
|
+
return CustomerFeedbackApiFp(this.configuration).getBrowseNodeReturnTrends(requestParameters.browseNodeId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* Retrieve a browse node\'s ten most positive and ten most negative review topics.
|
|
541
|
+
* @param {CustomerFeedbackApiGetBrowseNodeReviewTopicsRequest} requestParameters Request parameters.
|
|
542
|
+
* @param {*} [options] Override http request option.
|
|
543
|
+
* @throws {RequiredError}
|
|
544
|
+
*/
|
|
545
|
+
getBrowseNodeReviewTopics(requestParameters, options) {
|
|
546
|
+
return CustomerFeedbackApiFp(this.configuration).getBrowseNodeReviewTopics(requestParameters.browseNodeId, requestParameters.marketplaceId, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Retrieve the positive and negative review trends of items in a browse node for the past six months.
|
|
550
|
+
* @param {CustomerFeedbackApiGetBrowseNodeReviewTrendsRequest} requestParameters Request parameters.
|
|
551
|
+
* @param {*} [options] Override http request option.
|
|
552
|
+
* @throws {RequiredError}
|
|
553
|
+
*/
|
|
554
|
+
getBrowseNodeReviewTrends(requestParameters, options) {
|
|
555
|
+
return CustomerFeedbackApiFp(this.configuration).getBrowseNodeReviewTrends(requestParameters.browseNodeId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* This API returns the associated browse node of the requested ASIN. A browse node is a location in a browse tree that is used for navigation, product classification, and website content on the Amazon retail website.
|
|
559
|
+
* @param {CustomerFeedbackApiGetItemBrowseNodeRequest} requestParameters Request parameters.
|
|
560
|
+
* @param {*} [options] Override http request option.
|
|
561
|
+
* @throws {RequiredError}
|
|
562
|
+
*/
|
|
563
|
+
getItemBrowseNode(requestParameters, options) {
|
|
564
|
+
return CustomerFeedbackApiFp(this.configuration).getItemBrowseNode(requestParameters.asin, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* Retrieve an item\'s ten most positive and ten most negative review topics.
|
|
568
|
+
* @param {CustomerFeedbackApiGetItemReviewTopicsRequest} requestParameters Request parameters.
|
|
569
|
+
* @param {*} [options] Override http request option.
|
|
570
|
+
* @throws {RequiredError}
|
|
571
|
+
*/
|
|
572
|
+
getItemReviewTopics(requestParameters, options) {
|
|
573
|
+
return CustomerFeedbackApiFp(this.configuration).getItemReviewTopics(requestParameters.asin, requestParameters.marketplaceId, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Retrieve an item\'s positive and negative review trends for the past six months.
|
|
577
|
+
* @param {CustomerFeedbackApiGetItemReviewTrendsRequest} requestParameters Request parameters.
|
|
578
|
+
* @param {*} [options] Override http request option.
|
|
579
|
+
* @throws {RequiredError}
|
|
580
|
+
*/
|
|
581
|
+
getItemReviewTrends(requestParameters, options) {
|
|
582
|
+
return CustomerFeedbackApiFp(this.configuration).getItemReviewTrends(requestParameters.asin, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
|
|
583
|
+
}
|
|
576
584
|
};
|
|
577
|
-
|
|
578
|
-
|
|
585
|
+
//#endregion
|
|
586
|
+
//#region src/api-model/configuration.ts
|
|
579
587
|
var Configuration = class {
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
658
|
-
return mime !== null && jsonMime.test(mime);
|
|
659
|
-
}
|
|
588
|
+
/**
|
|
589
|
+
* parameter for apiKey security
|
|
590
|
+
* @param name security name
|
|
591
|
+
*/
|
|
592
|
+
apiKey;
|
|
593
|
+
/**
|
|
594
|
+
* parameter for basic security
|
|
595
|
+
*/
|
|
596
|
+
username;
|
|
597
|
+
/**
|
|
598
|
+
* parameter for basic security
|
|
599
|
+
*/
|
|
600
|
+
password;
|
|
601
|
+
/**
|
|
602
|
+
* parameter for oauth2 security
|
|
603
|
+
* @param name security name
|
|
604
|
+
* @param scopes oauth2 scope
|
|
605
|
+
*/
|
|
606
|
+
accessToken;
|
|
607
|
+
/**
|
|
608
|
+
* parameter for aws4 signature security
|
|
609
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
610
|
+
* @param {string} options.region - aws region
|
|
611
|
+
* @param {string} options.service - name of the service.
|
|
612
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
613
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
614
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
615
|
+
* @memberof Configuration
|
|
616
|
+
*/
|
|
617
|
+
awsv4;
|
|
618
|
+
/**
|
|
619
|
+
* override base path
|
|
620
|
+
*/
|
|
621
|
+
basePath;
|
|
622
|
+
/**
|
|
623
|
+
* override server index
|
|
624
|
+
*/
|
|
625
|
+
serverIndex;
|
|
626
|
+
/**
|
|
627
|
+
* base options for axios calls
|
|
628
|
+
*/
|
|
629
|
+
baseOptions;
|
|
630
|
+
/**
|
|
631
|
+
* The FormData constructor that will be used to create multipart form data
|
|
632
|
+
* requests. You can inject this here so that execution environments that
|
|
633
|
+
* do not support the FormData class can still run the generated client.
|
|
634
|
+
*
|
|
635
|
+
* @type {new () => FormData}
|
|
636
|
+
*/
|
|
637
|
+
formDataCtor;
|
|
638
|
+
constructor(param = {}) {
|
|
639
|
+
this.apiKey = param.apiKey;
|
|
640
|
+
this.username = param.username;
|
|
641
|
+
this.password = param.password;
|
|
642
|
+
this.accessToken = param.accessToken;
|
|
643
|
+
this.awsv4 = param.awsv4;
|
|
644
|
+
this.basePath = param.basePath;
|
|
645
|
+
this.serverIndex = param.serverIndex;
|
|
646
|
+
this.baseOptions = {
|
|
647
|
+
...param.baseOptions,
|
|
648
|
+
headers: { ...param.baseOptions?.headers }
|
|
649
|
+
};
|
|
650
|
+
this.formDataCtor = param.formDataCtor;
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* Check if the given MIME is a JSON MIME.
|
|
654
|
+
* JSON MIME examples:
|
|
655
|
+
* application/json
|
|
656
|
+
* application/json; charset=UTF8
|
|
657
|
+
* APPLICATION/JSON
|
|
658
|
+
* application/vnd.company+json
|
|
659
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
660
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
661
|
+
*/
|
|
662
|
+
isJsonMime(mime) {
|
|
663
|
+
return mime !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(mime);
|
|
664
|
+
}
|
|
660
665
|
};
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
666
|
+
//#endregion
|
|
667
|
+
//#region src/client.ts
|
|
668
|
+
const clientRateLimits = [];
|
|
664
669
|
var CustomerFeedbackApiClient = class extends CustomerFeedbackApi {
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
670
|
+
constructor(configuration) {
|
|
671
|
+
const { axios, endpoint } = (0, _sp_api_sdk_common.createAxiosInstance)(configuration, clientRateLimits);
|
|
672
|
+
super(new Configuration(), endpoint, axios);
|
|
673
|
+
}
|
|
669
674
|
};
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
});
|
|
675
|
+
//#endregion
|
|
676
|
+
exports.CustomerFeedbackApi = CustomerFeedbackApi;
|
|
677
|
+
exports.CustomerFeedbackApiAxiosParamCreator = CustomerFeedbackApiAxiosParamCreator;
|
|
678
|
+
exports.CustomerFeedbackApiClient = CustomerFeedbackApiClient;
|
|
679
|
+
exports.CustomerFeedbackApiFactory = CustomerFeedbackApiFactory;
|
|
680
|
+
exports.CustomerFeedbackApiFp = CustomerFeedbackApiFp;
|
|
681
|
+
exports.clientRateLimits = clientRateLimits;
|
|
682
|
+
|
|
679
683
|
//# sourceMappingURL=index.cjs.map
|