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

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