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