@sp-api-sdk/customer-feedback-api-2024-06-01 1.1.16 → 2.0.0

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