@sp-api-sdk/customer-feedback-api-2024-06-01 1.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 (147) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +99 -0
  3. package/dist/cjs/api-model/api/customer-feedback-api.js +539 -0
  4. package/dist/cjs/api-model/api.js +30 -0
  5. package/dist/cjs/api-model/base.js +71 -0
  6. package/dist/cjs/api-model/common.js +145 -0
  7. package/dist/cjs/api-model/configuration.js +104 -0
  8. package/dist/cjs/api-model/index.js +32 -0
  9. package/dist/cjs/api-model/models/browse-node-all-occurrence.js +15 -0
  10. package/dist/cjs/api-model/models/browse-node-all-star-rating-impact.js +15 -0
  11. package/dist/cjs/api-model/models/browse-node-occurrence.js +15 -0
  12. package/dist/cjs/api-model/models/browse-node-response.js +15 -0
  13. package/dist/cjs/api-model/models/browse-node-return-topics-response.js +15 -0
  14. package/dist/cjs/api-model/models/browse-node-return-topics.js +15 -0
  15. package/dist/cjs/api-model/models/browse-node-return-trend-point.js +15 -0
  16. package/dist/cjs/api-model/models/browse-node-return-trend.js +15 -0
  17. package/dist/cjs/api-model/models/browse-node-return-trends-response.js +15 -0
  18. package/dist/cjs/api-model/models/browse-node-review-subtopic-metrics.js +15 -0
  19. package/dist/cjs/api-model/models/browse-node-review-topic-metrics.js +15 -0
  20. package/dist/cjs/api-model/models/browse-node-review-topic.js +15 -0
  21. package/dist/cjs/api-model/models/browse-node-review-topics-response.js +15 -0
  22. package/dist/cjs/api-model/models/browse-node-review-topics.js +15 -0
  23. package/dist/cjs/api-model/models/browse-node-review-trend-metrics.js +15 -0
  24. package/dist/cjs/api-model/models/browse-node-review-trend-point.js +15 -0
  25. package/dist/cjs/api-model/models/browse-node-review-trend.js +15 -0
  26. package/dist/cjs/api-model/models/browse-node-review-trends-response.js +15 -0
  27. package/dist/cjs/api-model/models/browse-node-review-trends.js +15 -0
  28. package/dist/cjs/api-model/models/browse-node-star-rating-impact.js +15 -0
  29. package/dist/cjs/api-model/models/browse-node-subtopic.js +15 -0
  30. package/dist/cjs/api-model/models/browse-node-trend-metrics.js +15 -0
  31. package/dist/cjs/api-model/models/child-asin-mention-metrics.js +15 -0
  32. package/dist/cjs/api-model/models/child-asin-metrics.js +15 -0
  33. package/dist/cjs/api-model/models/date-range.js +15 -0
  34. package/dist/cjs/api-model/models/error-list.js +15 -0
  35. package/dist/cjs/api-model/models/index.js +55 -0
  36. package/dist/cjs/api-model/models/item-review-browse-node-metrics.js +15 -0
  37. package/dist/cjs/api-model/models/item-review-subtopic-metrics.js +15 -0
  38. package/dist/cjs/api-model/models/item-review-subtopic.js +15 -0
  39. package/dist/cjs/api-model/models/item-review-topic-metrics.js +15 -0
  40. package/dist/cjs/api-model/models/item-review-topic.js +15 -0
  41. package/dist/cjs/api-model/models/item-review-topics-response.js +15 -0
  42. package/dist/cjs/api-model/models/item-review-topics.js +15 -0
  43. package/dist/cjs/api-model/models/item-review-trend-point.js +15 -0
  44. package/dist/cjs/api-model/models/item-review-trend.js +15 -0
  45. package/dist/cjs/api-model/models/item-review-trends-response.js +15 -0
  46. package/dist/cjs/api-model/models/item-review-trends.js +15 -0
  47. package/dist/cjs/api-model/models/model-error.js +15 -0
  48. package/dist/cjs/api-model/models/review-trend-metrics.js +15 -0
  49. package/dist/cjs/client.js +13 -0
  50. package/dist/cjs/index.js +19 -0
  51. package/dist/es/api-model/api/customer-feedback-api.js +529 -0
  52. package/dist/es/api-model/api.js +14 -0
  53. package/dist/es/api-model/base.js +63 -0
  54. package/dist/es/api-model/common.js +133 -0
  55. package/dist/es/api-model/configuration.js +100 -0
  56. package/dist/es/api-model/index.js +16 -0
  57. package/dist/es/api-model/models/browse-node-all-occurrence.js +14 -0
  58. package/dist/es/api-model/models/browse-node-all-star-rating-impact.js +14 -0
  59. package/dist/es/api-model/models/browse-node-occurrence.js +14 -0
  60. package/dist/es/api-model/models/browse-node-response.js +14 -0
  61. package/dist/es/api-model/models/browse-node-return-topics-response.js +14 -0
  62. package/dist/es/api-model/models/browse-node-return-topics.js +14 -0
  63. package/dist/es/api-model/models/browse-node-return-trend-point.js +14 -0
  64. package/dist/es/api-model/models/browse-node-return-trend.js +14 -0
  65. package/dist/es/api-model/models/browse-node-return-trends-response.js +14 -0
  66. package/dist/es/api-model/models/browse-node-review-subtopic-metrics.js +14 -0
  67. package/dist/es/api-model/models/browse-node-review-topic-metrics.js +14 -0
  68. package/dist/es/api-model/models/browse-node-review-topic.js +14 -0
  69. package/dist/es/api-model/models/browse-node-review-topics-response.js +14 -0
  70. package/dist/es/api-model/models/browse-node-review-topics.js +14 -0
  71. package/dist/es/api-model/models/browse-node-review-trend-metrics.js +14 -0
  72. package/dist/es/api-model/models/browse-node-review-trend-point.js +14 -0
  73. package/dist/es/api-model/models/browse-node-review-trend.js +14 -0
  74. package/dist/es/api-model/models/browse-node-review-trends-response.js +14 -0
  75. package/dist/es/api-model/models/browse-node-review-trends.js +14 -0
  76. package/dist/es/api-model/models/browse-node-star-rating-impact.js +14 -0
  77. package/dist/es/api-model/models/browse-node-subtopic.js +14 -0
  78. package/dist/es/api-model/models/browse-node-trend-metrics.js +14 -0
  79. package/dist/es/api-model/models/child-asin-mention-metrics.js +14 -0
  80. package/dist/es/api-model/models/child-asin-metrics.js +14 -0
  81. package/dist/es/api-model/models/date-range.js +14 -0
  82. package/dist/es/api-model/models/error-list.js +14 -0
  83. package/dist/es/api-model/models/index.js +39 -0
  84. package/dist/es/api-model/models/item-review-browse-node-metrics.js +14 -0
  85. package/dist/es/api-model/models/item-review-subtopic-metrics.js +14 -0
  86. package/dist/es/api-model/models/item-review-subtopic.js +14 -0
  87. package/dist/es/api-model/models/item-review-topic-metrics.js +14 -0
  88. package/dist/es/api-model/models/item-review-topic.js +14 -0
  89. package/dist/es/api-model/models/item-review-topics-response.js +14 -0
  90. package/dist/es/api-model/models/item-review-topics.js +14 -0
  91. package/dist/es/api-model/models/item-review-trend-point.js +14 -0
  92. package/dist/es/api-model/models/item-review-trend.js +14 -0
  93. package/dist/es/api-model/models/item-review-trends-response.js +14 -0
  94. package/dist/es/api-model/models/item-review-trends.js +14 -0
  95. package/dist/es/api-model/models/model-error.js +14 -0
  96. package/dist/es/api-model/models/review-trend-metrics.js +14 -0
  97. package/dist/es/client.js +9 -0
  98. package/dist/es/index.js +3 -0
  99. package/dist/types/api-model/api/customer-feedback-api.d.ts +414 -0
  100. package/dist/types/api-model/api.d.ts +12 -0
  101. package/dist/types/api-model/base.d.ts +66 -0
  102. package/dist/types/api-model/common.d.ts +65 -0
  103. package/dist/types/api-model/configuration.d.ts +91 -0
  104. package/dist/types/api-model/index.d.ts +14 -0
  105. package/dist/types/api-model/models/browse-node-all-occurrence.d.ts +30 -0
  106. package/dist/types/api-model/models/browse-node-all-star-rating-impact.d.ts +30 -0
  107. package/dist/types/api-model/models/browse-node-occurrence.d.ts +24 -0
  108. package/dist/types/api-model/models/browse-node-response.d.ts +30 -0
  109. package/dist/types/api-model/models/browse-node-return-topics-response.d.ts +56 -0
  110. package/dist/types/api-model/models/browse-node-return-topics.d.ts +31 -0
  111. package/dist/types/api-model/models/browse-node-return-trend-point.d.ts +32 -0
  112. package/dist/types/api-model/models/browse-node-return-trend.d.ts +31 -0
  113. package/dist/types/api-model/models/browse-node-return-trends-response.d.ts +56 -0
  114. package/dist/types/api-model/models/browse-node-review-subtopic-metrics.d.ts +24 -0
  115. package/dist/types/api-model/models/browse-node-review-topic-metrics.d.ts +32 -0
  116. package/dist/types/api-model/models/browse-node-review-topic.d.ts +44 -0
  117. package/dist/types/api-model/models/browse-node-review-topics-response.d.ts +56 -0
  118. package/dist/types/api-model/models/browse-node-review-topics.d.ts +31 -0
  119. package/dist/types/api-model/models/browse-node-review-trend-metrics.d.ts +25 -0
  120. package/dist/types/api-model/models/browse-node-review-trend-point.d.ts +32 -0
  121. package/dist/types/api-model/models/browse-node-review-trend.d.ts +31 -0
  122. package/dist/types/api-model/models/browse-node-review-trends-response.d.ts +56 -0
  123. package/dist/types/api-model/models/browse-node-review-trends.d.ts +31 -0
  124. package/dist/types/api-model/models/browse-node-star-rating-impact.d.ts +24 -0
  125. package/dist/types/api-model/models/browse-node-subtopic.d.ts +37 -0
  126. package/dist/types/api-model/models/browse-node-trend-metrics.d.ts +25 -0
  127. package/dist/types/api-model/models/child-asin-mention-metrics.d.ts +30 -0
  128. package/dist/types/api-model/models/child-asin-metrics.d.ts +31 -0
  129. package/dist/types/api-model/models/date-range.d.ts +30 -0
  130. package/dist/types/api-model/models/error-list.d.ts +24 -0
  131. package/dist/types/api-model/models/index.d.ts +39 -0
  132. package/dist/types/api-model/models/item-review-browse-node-metrics.d.ts +32 -0
  133. package/dist/types/api-model/models/item-review-subtopic-metrics.d.ts +30 -0
  134. package/dist/types/api-model/models/item-review-subtopic.d.ts +37 -0
  135. package/dist/types/api-model/models/item-review-topic-metrics.d.ts +36 -0
  136. package/dist/types/api-model/models/item-review-topic.d.ts +64 -0
  137. package/dist/types/api-model/models/item-review-topics-response.d.ts +56 -0
  138. package/dist/types/api-model/models/item-review-topics.d.ts +31 -0
  139. package/dist/types/api-model/models/item-review-trend-point.d.ts +45 -0
  140. package/dist/types/api-model/models/item-review-trend.d.ts +31 -0
  141. package/dist/types/api-model/models/item-review-trends-response.d.ts +56 -0
  142. package/dist/types/api-model/models/item-review-trends.d.ts +31 -0
  143. package/dist/types/api-model/models/model-error.d.ts +36 -0
  144. package/dist/types/api-model/models/review-trend-metrics.d.ts +24 -0
  145. package/dist/types/client.d.ts +6 -0
  146. package/dist/types/index.d.ts +3 -0
  147. package/package.json +44 -0
@@ -0,0 +1,529 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * The Selling Partner API for CustomerFeedback
5
+ * The Selling Partner API for Customer Feedback (Customer Feedback API) provides information about customer reviews and returns at both the item and browse node level.
6
+ *
7
+ * The version of the OpenAPI document: 2024-06-01
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios from 'axios';
15
+ // Some imports not used depending on template conditions
16
+ // @ts-ignore
17
+ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../common';
18
+ // @ts-ignore
19
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
+ /**
21
+ * CustomerFeedbackApi - axios parameter creator
22
+ * @export
23
+ */
24
+ export const CustomerFeedbackApiAxiosParamCreator = function (configuration) {
25
+ return {
26
+ /**
27
+ * Retrieve the topics that customers mention when they return items in a browse node.
28
+ * @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.
29
+ * @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.
30
+ * @param {*} [options] Override http request option.
31
+ * @throws {RequiredError}
32
+ */
33
+ getBrowseNodeReturnTopics: async (browseNodeId, marketplaceId, options = {}) => {
34
+ // verify required parameter 'browseNodeId' is not null or undefined
35
+ assertParamExists('getBrowseNodeReturnTopics', 'browseNodeId', browseNodeId);
36
+ // verify required parameter 'marketplaceId' is not null or undefined
37
+ assertParamExists('getBrowseNodeReturnTopics', 'marketplaceId', marketplaceId);
38
+ const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/returns/topics`
39
+ .replace(`{${"browseNodeId"}}`, encodeURIComponent(String(browseNodeId)));
40
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42
+ let baseOptions;
43
+ if (configuration) {
44
+ baseOptions = configuration.baseOptions;
45
+ }
46
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
47
+ const localVarHeaderParameter = {};
48
+ const localVarQueryParameter = {};
49
+ if (marketplaceId !== undefined) {
50
+ localVarQueryParameter['marketplaceId'] = marketplaceId;
51
+ }
52
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
53
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
55
+ return {
56
+ url: toPathString(localVarUrlObj),
57
+ options: localVarRequestOptions,
58
+ };
59
+ },
60
+ /**
61
+ * Retrieve the trends of topics that customers mention when they return items in a browse node.
62
+ * @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.
63
+ * @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.
64
+ * @param {*} [options] Override http request option.
65
+ * @throws {RequiredError}
66
+ */
67
+ getBrowseNodeReturnTrends: async (browseNodeId, marketplaceId, options = {}) => {
68
+ // verify required parameter 'browseNodeId' is not null or undefined
69
+ assertParamExists('getBrowseNodeReturnTrends', 'browseNodeId', browseNodeId);
70
+ // verify required parameter 'marketplaceId' is not null or undefined
71
+ assertParamExists('getBrowseNodeReturnTrends', 'marketplaceId', marketplaceId);
72
+ const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/returns/trends`
73
+ .replace(`{${"browseNodeId"}}`, encodeURIComponent(String(browseNodeId)));
74
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
75
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
76
+ let baseOptions;
77
+ if (configuration) {
78
+ baseOptions = configuration.baseOptions;
79
+ }
80
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
81
+ const localVarHeaderParameter = {};
82
+ const localVarQueryParameter = {};
83
+ if (marketplaceId !== undefined) {
84
+ localVarQueryParameter['marketplaceId'] = marketplaceId;
85
+ }
86
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
87
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
88
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
89
+ return {
90
+ url: toPathString(localVarUrlObj),
91
+ options: localVarRequestOptions,
92
+ };
93
+ },
94
+ /**
95
+ * Retrieve a browse node\'s ten most positive and ten most negative review topics.
96
+ * @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.
97
+ * @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.
98
+ * @param {string} sortBy The metric by which to sort the data in the response.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ getBrowseNodeReviewTopics: async (browseNodeId, marketplaceId, sortBy, options = {}) => {
103
+ // verify required parameter 'browseNodeId' is not null or undefined
104
+ assertParamExists('getBrowseNodeReviewTopics', 'browseNodeId', browseNodeId);
105
+ // verify required parameter 'marketplaceId' is not null or undefined
106
+ assertParamExists('getBrowseNodeReviewTopics', 'marketplaceId', marketplaceId);
107
+ // verify required parameter 'sortBy' is not null or undefined
108
+ assertParamExists('getBrowseNodeReviewTopics', 'sortBy', sortBy);
109
+ const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/reviews/topics`
110
+ .replace(`{${"browseNodeId"}}`, encodeURIComponent(String(browseNodeId)));
111
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
112
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
113
+ let baseOptions;
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ }
117
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
118
+ const localVarHeaderParameter = {};
119
+ const localVarQueryParameter = {};
120
+ if (marketplaceId !== undefined) {
121
+ localVarQueryParameter['marketplaceId'] = marketplaceId;
122
+ }
123
+ if (sortBy !== undefined) {
124
+ localVarQueryParameter['sortBy'] = sortBy;
125
+ }
126
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
128
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
129
+ return {
130
+ url: toPathString(localVarUrlObj),
131
+ options: localVarRequestOptions,
132
+ };
133
+ },
134
+ /**
135
+ * Retrieve the positive and negative review trends of items in a browse node for the past six months.
136
+ * @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.
137
+ * @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).
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ getBrowseNodeReviewTrends: async (browseNodeId, marketplaceId, options = {}) => {
142
+ // verify required parameter 'browseNodeId' is not null or undefined
143
+ assertParamExists('getBrowseNodeReviewTrends', 'browseNodeId', browseNodeId);
144
+ // verify required parameter 'marketplaceId' is not null or undefined
145
+ assertParamExists('getBrowseNodeReviewTrends', 'marketplaceId', marketplaceId);
146
+ const localVarPath = `/customerFeedback/2024-06-01/browseNodes/{browseNodeId}/reviews/trends`
147
+ .replace(`{${"browseNodeId"}}`, encodeURIComponent(String(browseNodeId)));
148
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
149
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
150
+ let baseOptions;
151
+ if (configuration) {
152
+ baseOptions = configuration.baseOptions;
153
+ }
154
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
155
+ const localVarHeaderParameter = {};
156
+ const localVarQueryParameter = {};
157
+ if (marketplaceId !== undefined) {
158
+ localVarQueryParameter['marketplaceId'] = marketplaceId;
159
+ }
160
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
161
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
162
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
163
+ return {
164
+ url: toPathString(localVarUrlObj),
165
+ options: localVarRequestOptions,
166
+ };
167
+ },
168
+ /**
169
+ * 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.
170
+ * @param {string} asin The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace.
171
+ * @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.
172
+ * @param {*} [options] Override http request option.
173
+ * @throws {RequiredError}
174
+ */
175
+ getItemBrowseNode: async (asin, marketplaceId, options = {}) => {
176
+ // verify required parameter 'asin' is not null or undefined
177
+ assertParamExists('getItemBrowseNode', 'asin', asin);
178
+ // verify required parameter 'marketplaceId' is not null or undefined
179
+ assertParamExists('getItemBrowseNode', 'marketplaceId', marketplaceId);
180
+ const localVarPath = `/customerFeedback/2024-06-01/items/{asin}/browseNode`
181
+ .replace(`{${"asin"}}`, encodeURIComponent(String(asin)));
182
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
183
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
184
+ let baseOptions;
185
+ if (configuration) {
186
+ baseOptions = configuration.baseOptions;
187
+ }
188
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
189
+ const localVarHeaderParameter = {};
190
+ const localVarQueryParameter = {};
191
+ if (marketplaceId !== undefined) {
192
+ localVarQueryParameter['marketplaceId'] = marketplaceId;
193
+ }
194
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
196
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
197
+ return {
198
+ url: toPathString(localVarUrlObj),
199
+ options: localVarRequestOptions,
200
+ };
201
+ },
202
+ /**
203
+ * Retrieve an item\'s ten most positive and ten most negative review topics.
204
+ * @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.
205
+ * @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.
206
+ * @param {string} sortBy The metric by which to sort data in the response.
207
+ * @param {*} [options] Override http request option.
208
+ * @throws {RequiredError}
209
+ */
210
+ getItemReviewTopics: async (asin, marketplaceId, sortBy, options = {}) => {
211
+ // verify required parameter 'asin' is not null or undefined
212
+ assertParamExists('getItemReviewTopics', 'asin', asin);
213
+ // verify required parameter 'marketplaceId' is not null or undefined
214
+ assertParamExists('getItemReviewTopics', 'marketplaceId', marketplaceId);
215
+ // verify required parameter 'sortBy' is not null or undefined
216
+ assertParamExists('getItemReviewTopics', 'sortBy', sortBy);
217
+ const localVarPath = `/customerFeedback/2024-06-01/items/{asin}/reviews/topics`
218
+ .replace(`{${"asin"}}`, encodeURIComponent(String(asin)));
219
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
220
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
221
+ let baseOptions;
222
+ if (configuration) {
223
+ baseOptions = configuration.baseOptions;
224
+ }
225
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
226
+ const localVarHeaderParameter = {};
227
+ const localVarQueryParameter = {};
228
+ if (marketplaceId !== undefined) {
229
+ localVarQueryParameter['marketplaceId'] = marketplaceId;
230
+ }
231
+ if (sortBy !== undefined) {
232
+ localVarQueryParameter['sortBy'] = sortBy;
233
+ }
234
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
235
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
237
+ return {
238
+ url: toPathString(localVarUrlObj),
239
+ options: localVarRequestOptions,
240
+ };
241
+ },
242
+ /**
243
+ * Retrieve an item\'s positive and negative review trends for the past six months.
244
+ * @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.
245
+ * @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.
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ getItemReviewTrends: async (asin, marketplaceId, options = {}) => {
250
+ // verify required parameter 'asin' is not null or undefined
251
+ assertParamExists('getItemReviewTrends', 'asin', asin);
252
+ // verify required parameter 'marketplaceId' is not null or undefined
253
+ assertParamExists('getItemReviewTrends', 'marketplaceId', marketplaceId);
254
+ const localVarPath = `/customerFeedback/2024-06-01/items/{asin}/reviews/trends`
255
+ .replace(`{${"asin"}}`, encodeURIComponent(String(asin)));
256
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
257
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
258
+ let baseOptions;
259
+ if (configuration) {
260
+ baseOptions = configuration.baseOptions;
261
+ }
262
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
263
+ const localVarHeaderParameter = {};
264
+ const localVarQueryParameter = {};
265
+ if (marketplaceId !== undefined) {
266
+ localVarQueryParameter['marketplaceId'] = marketplaceId;
267
+ }
268
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
269
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
270
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
271
+ return {
272
+ url: toPathString(localVarUrlObj),
273
+ options: localVarRequestOptions,
274
+ };
275
+ },
276
+ };
277
+ };
278
+ /**
279
+ * CustomerFeedbackApi - functional programming interface
280
+ * @export
281
+ */
282
+ export const CustomerFeedbackApiFp = function (configuration) {
283
+ const localVarAxiosParamCreator = CustomerFeedbackApiAxiosParamCreator(configuration);
284
+ return {
285
+ /**
286
+ * Retrieve the topics that customers mention when they return items in a browse node.
287
+ * @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.
288
+ * @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.
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ async getBrowseNodeReturnTopics(browseNodeId, marketplaceId, options) {
293
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBrowseNodeReturnTopics(browseNodeId, marketplaceId, options);
294
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
295
+ const localVarOperationServerBasePath = operationServerMap['CustomerFeedbackApi.getBrowseNodeReturnTopics']?.[localVarOperationServerIndex]?.url;
296
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
297
+ },
298
+ /**
299
+ * Retrieve the trends of topics that customers mention when they return items in a browse node.
300
+ * @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.
301
+ * @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.
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ async getBrowseNodeReturnTrends(browseNodeId, marketplaceId, options) {
306
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBrowseNodeReturnTrends(browseNodeId, marketplaceId, options);
307
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
308
+ const localVarOperationServerBasePath = operationServerMap['CustomerFeedbackApi.getBrowseNodeReturnTrends']?.[localVarOperationServerIndex]?.url;
309
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
310
+ },
311
+ /**
312
+ * Retrieve a browse node\'s ten most positive and ten most negative review topics.
313
+ * @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.
314
+ * @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.
315
+ * @param {string} sortBy The metric by which to sort the data in the response.
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ async getBrowseNodeReviewTopics(browseNodeId, marketplaceId, sortBy, options) {
320
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBrowseNodeReviewTopics(browseNodeId, marketplaceId, sortBy, options);
321
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
322
+ const localVarOperationServerBasePath = operationServerMap['CustomerFeedbackApi.getBrowseNodeReviewTopics']?.[localVarOperationServerIndex]?.url;
323
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
324
+ },
325
+ /**
326
+ * Retrieve the positive and negative review trends of items in a browse node for the past six months.
327
+ * @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.
328
+ * @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).
329
+ * @param {*} [options] Override http request option.
330
+ * @throws {RequiredError}
331
+ */
332
+ async getBrowseNodeReviewTrends(browseNodeId, marketplaceId, options) {
333
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBrowseNodeReviewTrends(browseNodeId, marketplaceId, options);
334
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
335
+ const localVarOperationServerBasePath = operationServerMap['CustomerFeedbackApi.getBrowseNodeReviewTrends']?.[localVarOperationServerIndex]?.url;
336
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
337
+ },
338
+ /**
339
+ * 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.
340
+ * @param {string} asin The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace.
341
+ * @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.
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ async getItemBrowseNode(asin, marketplaceId, options) {
346
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItemBrowseNode(asin, marketplaceId, options);
347
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
348
+ const localVarOperationServerBasePath = operationServerMap['CustomerFeedbackApi.getItemBrowseNode']?.[localVarOperationServerIndex]?.url;
349
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
350
+ },
351
+ /**
352
+ * Retrieve an item\'s ten most positive and ten most negative review topics.
353
+ * @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.
354
+ * @param {string} marketplaceId The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
355
+ * @param {string} sortBy The metric by which to sort data in the response.
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ async getItemReviewTopics(asin, marketplaceId, sortBy, options) {
360
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItemReviewTopics(asin, marketplaceId, sortBy, options);
361
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
362
+ const localVarOperationServerBasePath = operationServerMap['CustomerFeedbackApi.getItemReviewTopics']?.[localVarOperationServerIndex]?.url;
363
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
364
+ },
365
+ /**
366
+ * Retrieve an item\'s positive and negative review trends for the past six months.
367
+ * @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.
368
+ * @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.
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ async getItemReviewTrends(asin, marketplaceId, options) {
373
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItemReviewTrends(asin, marketplaceId, options);
374
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
375
+ const localVarOperationServerBasePath = operationServerMap['CustomerFeedbackApi.getItemReviewTrends']?.[localVarOperationServerIndex]?.url;
376
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
377
+ },
378
+ };
379
+ };
380
+ /**
381
+ * CustomerFeedbackApi - factory interface
382
+ * @export
383
+ */
384
+ export const CustomerFeedbackApiFactory = function (configuration, basePath, axios) {
385
+ const localVarFp = CustomerFeedbackApiFp(configuration);
386
+ return {
387
+ /**
388
+ * Retrieve the topics that customers mention when they return items in a browse node.
389
+ * @param {CustomerFeedbackApiGetBrowseNodeReturnTopicsRequest} requestParameters Request parameters.
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ getBrowseNodeReturnTopics(requestParameters, options) {
394
+ return localVarFp.getBrowseNodeReturnTopics(requestParameters.browseNodeId, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
395
+ },
396
+ /**
397
+ * Retrieve the trends of topics that customers mention when they return items in a browse node.
398
+ * @param {CustomerFeedbackApiGetBrowseNodeReturnTrendsRequest} requestParameters Request parameters.
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ */
402
+ getBrowseNodeReturnTrends(requestParameters, options) {
403
+ return localVarFp.getBrowseNodeReturnTrends(requestParameters.browseNodeId, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
404
+ },
405
+ /**
406
+ * Retrieve a browse node\'s ten most positive and ten most negative review topics.
407
+ * @param {CustomerFeedbackApiGetBrowseNodeReviewTopicsRequest} requestParameters Request parameters.
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ getBrowseNodeReviewTopics(requestParameters, options) {
412
+ return localVarFp.getBrowseNodeReviewTopics(requestParameters.browseNodeId, requestParameters.marketplaceId, requestParameters.sortBy, options).then((request) => request(axios, basePath));
413
+ },
414
+ /**
415
+ * Retrieve the positive and negative review trends of items in a browse node for the past six months.
416
+ * @param {CustomerFeedbackApiGetBrowseNodeReviewTrendsRequest} requestParameters Request parameters.
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ getBrowseNodeReviewTrends(requestParameters, options) {
421
+ return localVarFp.getBrowseNodeReviewTrends(requestParameters.browseNodeId, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
422
+ },
423
+ /**
424
+ * 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.
425
+ * @param {CustomerFeedbackApiGetItemBrowseNodeRequest} requestParameters Request parameters.
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ */
429
+ getItemBrowseNode(requestParameters, options) {
430
+ return localVarFp.getItemBrowseNode(requestParameters.asin, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
431
+ },
432
+ /**
433
+ * Retrieve an item\'s ten most positive and ten most negative review topics.
434
+ * @param {CustomerFeedbackApiGetItemReviewTopicsRequest} requestParameters Request parameters.
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ */
438
+ getItemReviewTopics(requestParameters, options) {
439
+ return localVarFp.getItemReviewTopics(requestParameters.asin, requestParameters.marketplaceId, requestParameters.sortBy, options).then((request) => request(axios, basePath));
440
+ },
441
+ /**
442
+ * Retrieve an item\'s positive and negative review trends for the past six months.
443
+ * @param {CustomerFeedbackApiGetItemReviewTrendsRequest} requestParameters Request parameters.
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ getItemReviewTrends(requestParameters, options) {
448
+ return localVarFp.getItemReviewTrends(requestParameters.asin, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
449
+ },
450
+ };
451
+ };
452
+ /**
453
+ * CustomerFeedbackApi - object-oriented interface
454
+ * @export
455
+ * @class CustomerFeedbackApi
456
+ * @extends {BaseAPI}
457
+ */
458
+ export class CustomerFeedbackApi extends BaseAPI {
459
+ /**
460
+ * Retrieve the topics that customers mention when they return items in a browse node.
461
+ * @param {CustomerFeedbackApiGetBrowseNodeReturnTopicsRequest} requestParameters Request parameters.
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ * @memberof CustomerFeedbackApi
465
+ */
466
+ getBrowseNodeReturnTopics(requestParameters, options) {
467
+ return CustomerFeedbackApiFp(this.configuration).getBrowseNodeReturnTopics(requestParameters.browseNodeId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
468
+ }
469
+ /**
470
+ * Retrieve the trends of topics that customers mention when they return items in a browse node.
471
+ * @param {CustomerFeedbackApiGetBrowseNodeReturnTrendsRequest} requestParameters Request parameters.
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ * @memberof CustomerFeedbackApi
475
+ */
476
+ getBrowseNodeReturnTrends(requestParameters, options) {
477
+ return CustomerFeedbackApiFp(this.configuration).getBrowseNodeReturnTrends(requestParameters.browseNodeId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
478
+ }
479
+ /**
480
+ * Retrieve a browse node\'s ten most positive and ten most negative review topics.
481
+ * @param {CustomerFeedbackApiGetBrowseNodeReviewTopicsRequest} requestParameters Request parameters.
482
+ * @param {*} [options] Override http request option.
483
+ * @throws {RequiredError}
484
+ * @memberof CustomerFeedbackApi
485
+ */
486
+ getBrowseNodeReviewTopics(requestParameters, options) {
487
+ return CustomerFeedbackApiFp(this.configuration).getBrowseNodeReviewTopics(requestParameters.browseNodeId, requestParameters.marketplaceId, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
488
+ }
489
+ /**
490
+ * Retrieve the positive and negative review trends of items in a browse node for the past six months.
491
+ * @param {CustomerFeedbackApiGetBrowseNodeReviewTrendsRequest} requestParameters Request parameters.
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ * @memberof CustomerFeedbackApi
495
+ */
496
+ getBrowseNodeReviewTrends(requestParameters, options) {
497
+ return CustomerFeedbackApiFp(this.configuration).getBrowseNodeReviewTrends(requestParameters.browseNodeId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
498
+ }
499
+ /**
500
+ * 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.
501
+ * @param {CustomerFeedbackApiGetItemBrowseNodeRequest} requestParameters Request parameters.
502
+ * @param {*} [options] Override http request option.
503
+ * @throws {RequiredError}
504
+ * @memberof CustomerFeedbackApi
505
+ */
506
+ getItemBrowseNode(requestParameters, options) {
507
+ return CustomerFeedbackApiFp(this.configuration).getItemBrowseNode(requestParameters.asin, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
508
+ }
509
+ /**
510
+ * Retrieve an item\'s ten most positive and ten most negative review topics.
511
+ * @param {CustomerFeedbackApiGetItemReviewTopicsRequest} requestParameters Request parameters.
512
+ * @param {*} [options] Override http request option.
513
+ * @throws {RequiredError}
514
+ * @memberof CustomerFeedbackApi
515
+ */
516
+ getItemReviewTopics(requestParameters, options) {
517
+ return CustomerFeedbackApiFp(this.configuration).getItemReviewTopics(requestParameters.asin, requestParameters.marketplaceId, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
518
+ }
519
+ /**
520
+ * Retrieve an item\'s positive and negative review trends for the past six months.
521
+ * @param {CustomerFeedbackApiGetItemReviewTrendsRequest} requestParameters Request parameters.
522
+ * @param {*} [options] Override http request option.
523
+ * @throws {RequiredError}
524
+ * @memberof CustomerFeedbackApi
525
+ */
526
+ getItemReviewTrends(requestParameters, options) {
527
+ return CustomerFeedbackApiFp(this.configuration).getItemReviewTrends(requestParameters.asin, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
528
+ }
529
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * The Selling Partner API for CustomerFeedback
5
+ * The Selling Partner API for Customer Feedback (Customer Feedback API) provides information about customer reviews and returns at both the item and browse node level.
6
+ *
7
+ * The version of the OpenAPI document: 2024-06-01
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export * from './api/customer-feedback-api';
@@ -0,0 +1,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * The Selling Partner API for CustomerFeedback
5
+ * The Selling Partner API for Customer Feedback (Customer Feedback API) provides information about customer reviews and returns at both the item and browse node level.
6
+ *
7
+ * The version of the OpenAPI document: 2024-06-01
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios from 'axios';
15
+ export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const COLLECTION_FORMATS = {
21
+ csv: ",",
22
+ ssv: " ",
23
+ tsv: "\t",
24
+ pipes: "|",
25
+ };
26
+ /**
27
+ *
28
+ * @export
29
+ * @class BaseAPI
30
+ */
31
+ export class BaseAPI {
32
+ basePath;
33
+ axios;
34
+ configuration;
35
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
36
+ this.basePath = basePath;
37
+ this.axios = axios;
38
+ if (configuration) {
39
+ this.configuration = configuration;
40
+ this.basePath = configuration.basePath ?? basePath;
41
+ }
42
+ }
43
+ }
44
+ ;
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export class RequiredError extends Error {
52
+ field;
53
+ constructor(field, msg) {
54
+ super(msg);
55
+ this.field = field;
56
+ this.name = "RequiredError";
57
+ }
58
+ }
59
+ /**
60
+ *
61
+ * @export
62
+ */
63
+ export const operationServerMap = {};