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