@sp-api-sdk/customer-feedback-api-2024-06-01 1.1.16 → 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.
Files changed (152) hide show
  1. package/README.md +7 -8
  2. package/dist/index.cjs +683 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +1202 -0
  5. package/dist/index.d.ts +1202 -0
  6. package/dist/index.js +654 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +26 -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,683 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region \0rolldown/runtime.js
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __copyProps = (to, from, except, desc) => {
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;
18
+ };
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(/\/+$/, "");
29
+ var BaseAPI = class {
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
+ }
41
+ };
42
+ var RequiredError = class extends Error {
43
+ field;
44
+ constructor(field, msg) {
45
+ super(msg);
46
+ this.field = field;
47
+ this.name = "RequiredError";
48
+ }
49
+ };
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}.`);
60
+ };
61
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
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);
67
+ }
68
+ const setSearchParams = function(url, ...objects) {
69
+ const searchParams = new URLSearchParams(url.search);
70
+ setFlattenedQueryParams(searchParams, objects);
71
+ url.search = searchParams.toString();
72
+ };
73
+ const toPathString = function(url) {
74
+ return url.pathname + url.search + url.hash;
75
+ };
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
+ };
84
+ };
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
+ };
344
+ };
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
+ };
445
+ };
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
+ };
516
+ };
517
+ /**
518
+ * CustomerFeedbackApi - object-oriented interface
519
+ */
520
+ var CustomerFeedbackApi = class extends BaseAPI {
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
+ }
584
+ };
585
+ //#endregion
586
+ //#region src/api-model/configuration.ts
587
+ var Configuration = class {
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
+ }
665
+ };
666
+ //#endregion
667
+ //#region src/client.ts
668
+ const clientRateLimits = [];
669
+ var CustomerFeedbackApiClient = class extends CustomerFeedbackApi {
670
+ constructor(configuration) {
671
+ const { axios, endpoint } = (0, _sp_api_sdk_common.createAxiosInstance)(configuration, clientRateLimits);
672
+ super(new Configuration(), endpoint, axios);
673
+ }
674
+ };
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
+
683
+ //# sourceMappingURL=index.cjs.map