@sp-api-sdk/customer-feedback-api-2024-06-01 1.1.15 → 2.0.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.
Files changed (152) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +679 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +1484 -0
  5. package/dist/index.d.ts +1484 -0
  6. package/dist/index.js +637 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/customer-feedback-api.js +0 -533
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/browse-node-all-occurrence.js +0 -15
  16. package/dist/cjs/api-model/models/browse-node-all-star-rating-impact.js +0 -15
  17. package/dist/cjs/api-model/models/browse-node-occurrence.js +0 -15
  18. package/dist/cjs/api-model/models/browse-node-response.js +0 -15
  19. package/dist/cjs/api-model/models/browse-node-return-topics-response.js +0 -15
  20. package/dist/cjs/api-model/models/browse-node-return-topics.js +0 -15
  21. package/dist/cjs/api-model/models/browse-node-return-trend-point.js +0 -15
  22. package/dist/cjs/api-model/models/browse-node-return-trend.js +0 -15
  23. package/dist/cjs/api-model/models/browse-node-return-trends-response.js +0 -15
  24. package/dist/cjs/api-model/models/browse-node-review-subtopic-metrics.js +0 -15
  25. package/dist/cjs/api-model/models/browse-node-review-topic-metrics.js +0 -15
  26. package/dist/cjs/api-model/models/browse-node-review-topic.js +0 -15
  27. package/dist/cjs/api-model/models/browse-node-review-topics-response.js +0 -15
  28. package/dist/cjs/api-model/models/browse-node-review-topics.js +0 -15
  29. package/dist/cjs/api-model/models/browse-node-review-trend-metrics.js +0 -15
  30. package/dist/cjs/api-model/models/browse-node-review-trend-point.js +0 -15
  31. package/dist/cjs/api-model/models/browse-node-review-trend.js +0 -15
  32. package/dist/cjs/api-model/models/browse-node-review-trends-response.js +0 -15
  33. package/dist/cjs/api-model/models/browse-node-review-trends.js +0 -15
  34. package/dist/cjs/api-model/models/browse-node-star-rating-impact.js +0 -15
  35. package/dist/cjs/api-model/models/browse-node-subtopic.js +0 -15
  36. package/dist/cjs/api-model/models/browse-node-trend-metrics.js +0 -15
  37. package/dist/cjs/api-model/models/child-asin-mention-metrics.js +0 -15
  38. package/dist/cjs/api-model/models/child-asin-metrics.js +0 -15
  39. package/dist/cjs/api-model/models/date-range.js +0 -15
  40. package/dist/cjs/api-model/models/error-list.js +0 -15
  41. package/dist/cjs/api-model/models/index.js +0 -55
  42. package/dist/cjs/api-model/models/item-review-browse-node-metrics.js +0 -15
  43. package/dist/cjs/api-model/models/item-review-subtopic-metrics.js +0 -15
  44. package/dist/cjs/api-model/models/item-review-subtopic.js +0 -15
  45. package/dist/cjs/api-model/models/item-review-topic-metrics.js +0 -15
  46. package/dist/cjs/api-model/models/item-review-topic.js +0 -15
  47. package/dist/cjs/api-model/models/item-review-topics-response.js +0 -15
  48. package/dist/cjs/api-model/models/item-review-topics.js +0 -15
  49. package/dist/cjs/api-model/models/item-review-trend-point.js +0 -15
  50. package/dist/cjs/api-model/models/item-review-trend.js +0 -15
  51. package/dist/cjs/api-model/models/item-review-trends-response.js +0 -15
  52. package/dist/cjs/api-model/models/item-review-trends.js +0 -15
  53. package/dist/cjs/api-model/models/model-error.js +0 -15
  54. package/dist/cjs/api-model/models/review-trend-metrics.js +0 -15
  55. package/dist/cjs/client.js +0 -13
  56. package/dist/cjs/index.js +0 -18
  57. package/dist/es/api-model/api/customer-feedback-api.js +0 -523
  58. package/dist/es/api-model/api.js +0 -14
  59. package/dist/es/api-model/base.js +0 -44
  60. package/dist/es/api-model/common.js +0 -110
  61. package/dist/es/api-model/configuration.js +0 -94
  62. package/dist/es/api-model/index.js +0 -16
  63. package/dist/es/api-model/models/browse-node-all-occurrence.js +0 -14
  64. package/dist/es/api-model/models/browse-node-all-star-rating-impact.js +0 -14
  65. package/dist/es/api-model/models/browse-node-occurrence.js +0 -14
  66. package/dist/es/api-model/models/browse-node-response.js +0 -14
  67. package/dist/es/api-model/models/browse-node-return-topics-response.js +0 -14
  68. package/dist/es/api-model/models/browse-node-return-topics.js +0 -14
  69. package/dist/es/api-model/models/browse-node-return-trend-point.js +0 -14
  70. package/dist/es/api-model/models/browse-node-return-trend.js +0 -14
  71. package/dist/es/api-model/models/browse-node-return-trends-response.js +0 -14
  72. package/dist/es/api-model/models/browse-node-review-subtopic-metrics.js +0 -14
  73. package/dist/es/api-model/models/browse-node-review-topic-metrics.js +0 -14
  74. package/dist/es/api-model/models/browse-node-review-topic.js +0 -14
  75. package/dist/es/api-model/models/browse-node-review-topics-response.js +0 -14
  76. package/dist/es/api-model/models/browse-node-review-topics.js +0 -14
  77. package/dist/es/api-model/models/browse-node-review-trend-metrics.js +0 -14
  78. package/dist/es/api-model/models/browse-node-review-trend-point.js +0 -14
  79. package/dist/es/api-model/models/browse-node-review-trend.js +0 -14
  80. package/dist/es/api-model/models/browse-node-review-trends-response.js +0 -14
  81. package/dist/es/api-model/models/browse-node-review-trends.js +0 -14
  82. package/dist/es/api-model/models/browse-node-star-rating-impact.js +0 -14
  83. package/dist/es/api-model/models/browse-node-subtopic.js +0 -14
  84. package/dist/es/api-model/models/browse-node-trend-metrics.js +0 -14
  85. package/dist/es/api-model/models/child-asin-mention-metrics.js +0 -14
  86. package/dist/es/api-model/models/child-asin-metrics.js +0 -14
  87. package/dist/es/api-model/models/date-range.js +0 -14
  88. package/dist/es/api-model/models/error-list.js +0 -14
  89. package/dist/es/api-model/models/index.js +0 -39
  90. package/dist/es/api-model/models/item-review-browse-node-metrics.js +0 -14
  91. package/dist/es/api-model/models/item-review-subtopic-metrics.js +0 -14
  92. package/dist/es/api-model/models/item-review-subtopic.js +0 -14
  93. package/dist/es/api-model/models/item-review-topic-metrics.js +0 -14
  94. package/dist/es/api-model/models/item-review-topic.js +0 -14
  95. package/dist/es/api-model/models/item-review-topics-response.js +0 -14
  96. package/dist/es/api-model/models/item-review-topics.js +0 -14
  97. package/dist/es/api-model/models/item-review-trend-point.js +0 -14
  98. package/dist/es/api-model/models/item-review-trend.js +0 -14
  99. package/dist/es/api-model/models/item-review-trends-response.js +0 -14
  100. package/dist/es/api-model/models/item-review-trends.js +0 -14
  101. package/dist/es/api-model/models/model-error.js +0 -14
  102. package/dist/es/api-model/models/review-trend-metrics.js +0 -14
  103. package/dist/es/client.js +0 -9
  104. package/dist/es/index.js +0 -2
  105. package/dist/types/api-model/api/customer-feedback-api.d.ts +0 -355
  106. package/dist/types/api-model/api.d.ts +0 -12
  107. package/dist/types/api-model/base.d.ts +0 -42
  108. package/dist/types/api-model/common.d.ts +0 -34
  109. package/dist/types/api-model/configuration.d.ts +0 -98
  110. package/dist/types/api-model/index.d.ts +0 -14
  111. package/dist/types/api-model/models/browse-node-all-occurrence.d.ts +0 -24
  112. package/dist/types/api-model/models/browse-node-all-star-rating-impact.d.ts +0 -24
  113. package/dist/types/api-model/models/browse-node-occurrence.d.ts +0 -20
  114. package/dist/types/api-model/models/browse-node-response.d.ts +0 -24
  115. package/dist/types/api-model/models/browse-node-return-topics-response.d.ts +0 -39
  116. package/dist/types/api-model/models/browse-node-return-topics.d.ts +0 -22
  117. package/dist/types/api-model/models/browse-node-return-trend-point.d.ts +0 -20
  118. package/dist/types/api-model/models/browse-node-return-trend.d.ts +0 -25
  119. package/dist/types/api-model/models/browse-node-return-trends-response.d.ts +0 -39
  120. package/dist/types/api-model/models/browse-node-review-subtopic-metrics.d.ts +0 -20
  121. package/dist/types/api-model/models/browse-node-review-topic-metrics.d.ts +0 -20
  122. package/dist/types/api-model/models/browse-node-review-topic.d.ts +0 -31
  123. package/dist/types/api-model/models/browse-node-review-topics-response.d.ts +0 -36
  124. package/dist/types/api-model/models/browse-node-review-topics.d.ts +0 -25
  125. package/dist/types/api-model/models/browse-node-review-trend-metrics.d.ts +0 -18
  126. package/dist/types/api-model/models/browse-node-review-trend-point.d.ts +0 -20
  127. package/dist/types/api-model/models/browse-node-review-trend.d.ts +0 -25
  128. package/dist/types/api-model/models/browse-node-review-trends-response.d.ts +0 -36
  129. package/dist/types/api-model/models/browse-node-review-trends.d.ts +0 -25
  130. package/dist/types/api-model/models/browse-node-star-rating-impact.d.ts +0 -20
  131. package/dist/types/api-model/models/browse-node-subtopic.d.ts +0 -26
  132. package/dist/types/api-model/models/browse-node-trend-metrics.d.ts +0 -18
  133. package/dist/types/api-model/models/child-asin-mention-metrics.d.ts +0 -24
  134. package/dist/types/api-model/models/child-asin-metrics.d.ts +0 -19
  135. package/dist/types/api-model/models/date-range.d.ts +0 -24
  136. package/dist/types/api-model/models/error-list.d.ts +0 -20
  137. package/dist/types/api-model/models/index.d.ts +0 -39
  138. package/dist/types/api-model/models/item-review-browse-node-metrics.d.ts +0 -20
  139. package/dist/types/api-model/models/item-review-subtopic-metrics.d.ts +0 -24
  140. package/dist/types/api-model/models/item-review-subtopic.d.ts +0 -26
  141. package/dist/types/api-model/models/item-review-topic-metrics.d.ts +0 -28
  142. package/dist/types/api-model/models/item-review-topic.d.ts +0 -36
  143. package/dist/types/api-model/models/item-review-topics-response.d.ts +0 -36
  144. package/dist/types/api-model/models/item-review-topics.d.ts +0 -25
  145. package/dist/types/api-model/models/item-review-trend-point.d.ts +0 -23
  146. package/dist/types/api-model/models/item-review-trend.d.ts +0 -25
  147. package/dist/types/api-model/models/item-review-trends-response.d.ts +0 -36
  148. package/dist/types/api-model/models/item-review-trends.d.ts +0 -25
  149. package/dist/types/api-model/models/model-error.d.ts +0 -28
  150. package/dist/types/api-model/models/review-trend-metrics.d.ts +0 -20
  151. package/dist/types/client.d.ts +0 -6
  152. package/dist/types/index.d.ts +0 -3
package/dist/index.cjs ADDED
@@ -0,0 +1,679 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ 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
+ 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;
19
+ };
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(/\/+$/, "");
51
+ 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;
63
+ };
64
+ var RequiredError = class extends Error {
65
+ constructor(field, msg) {
66
+ super(msg);
67
+ this.field = field;
68
+ this.name = "RequiredError";
69
+ }
70
+ field;
71
+ };
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
+ }
80
+ };
81
+ 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
+ }
98
+ }
99
+ var setSearchParams = function(url, ...objects) {
100
+ const searchParams = new URLSearchParams(url.search);
101
+ setFlattenedQueryParams(searchParams, objects);
102
+ url.search = searchParams.toString();
103
+ };
104
+ var toPathString = function(url) {
105
+ return url.pathname + url.search + url.hash;
106
+ };
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
+ };
112
+ };
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
+ };
345
+ };
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
+ };
443
+ };
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
+ };
511
+ };
512
+ 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
+ }
576
+ };
577
+
578
+ // src/api-model/configuration.ts
579
+ 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
+ }
660
+ };
661
+
662
+ // src/client.ts
663
+ var clientRateLimits = [];
664
+ 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
+ }
669
+ };
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
+ });
679
+ //# sourceMappingURL=index.cjs.map