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