@sp-api-sdk/application-management-api-2023-11-30 4.0.0 → 4.1.1

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/dist/index.js CHANGED
@@ -1,237 +1,227 @@
1
- // src/client.ts
2
1
  import { createAxiosInstance } from "@sp-api-sdk/common";
3
-
4
- // src/api-model/api/application-management-api.ts
5
- import globalAxios2 from "axios";
6
-
7
- // src/api-model/base.ts
8
2
  import globalAxios from "axios";
9
- var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
3
+ //#region src/api-model/base.ts
4
+ const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
10
5
  var BaseAPI = class {
11
- constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
12
- this.basePath = basePath;
13
- this.axios = axios;
14
- if (configuration) {
15
- this.configuration = configuration;
16
- this.basePath = configuration.basePath ?? basePath;
17
- }
18
- }
19
- basePath;
20
- axios;
21
- configuration;
6
+ basePath;
7
+ axios;
8
+ configuration;
9
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
10
+ this.basePath = basePath;
11
+ this.axios = axios;
12
+ if (configuration) {
13
+ this.configuration = configuration;
14
+ this.basePath = configuration.basePath ?? basePath;
15
+ }
16
+ }
22
17
  };
23
- var operationServerMap = {};
24
-
25
- // src/api-model/common.ts
26
- var DUMMY_BASE_URL = "https://example.com";
18
+ const operationServerMap = {};
19
+ //#endregion
20
+ //#region src/api-model/common.ts
21
+ const DUMMY_BASE_URL = "https://example.com";
27
22
  function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
28
- if (parameter == null) return;
29
- if (typeof parameter === "object") {
30
- if (Array.isArray(parameter) || parameter instanceof Set) {
31
- parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
32
- } else {
33
- Object.keys(parameter).forEach(
34
- (currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
35
- );
36
- }
37
- } else {
38
- if (urlSearchParams.has(key)) {
39
- urlSearchParams.append(key, parameter);
40
- } else {
41
- urlSearchParams.set(key, parameter);
42
- }
43
- }
23
+ if (parameter == null) return;
24
+ if (typeof parameter === "object") if (Array.isArray(parameter) || parameter instanceof Set) parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
25
+ else Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`));
26
+ else if (urlSearchParams.has(key)) urlSearchParams.append(key, parameter);
27
+ else urlSearchParams.set(key, parameter);
44
28
  }
45
- var setSearchParams = function(url, ...objects) {
46
- const searchParams = new URLSearchParams(url.search);
47
- setFlattenedQueryParams(searchParams, objects);
48
- url.search = searchParams.toString();
29
+ const setSearchParams = function(url, ...objects) {
30
+ const searchParams = new URLSearchParams(url.search);
31
+ setFlattenedQueryParams(searchParams, objects);
32
+ url.search = searchParams.toString();
49
33
  };
50
- var toPathString = function(url) {
51
- return url.pathname + url.search + url.hash;
34
+ const toPathString = function(url) {
35
+ return url.pathname + url.search + url.hash;
52
36
  };
53
- var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
54
- return (axios = globalAxios3, basePath = BASE_PATH2) => {
55
- const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
56
- return axios.request(axiosRequestArgs);
57
- };
37
+ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, configuration) {
38
+ return (axios = globalAxios, basePath = BASE_PATH) => {
39
+ const axiosRequestArgs = {
40
+ ...axiosArgs.options,
41
+ url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url
42
+ };
43
+ return axios.request(axiosRequestArgs);
44
+ };
58
45
  };
59
-
60
- // src/api-model/api/application-management-api.ts
61
- var ApplicationManagementApiAxiosParamCreator = function(configuration) {
62
- return {
63
- /**
64
- * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
65
- * @param {*} [options] Override http request option.
66
- * @throws {RequiredError}
67
- */
68
- rotateApplicationClientSecret: async (options = {}) => {
69
- const localVarPath = `/applications/2023-11-30/clientSecret`;
70
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
71
- let baseOptions;
72
- if (configuration) {
73
- baseOptions = configuration.baseOptions;
74
- }
75
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
76
- const localVarHeaderParameter = {};
77
- const localVarQueryParameter = {};
78
- localVarHeaderParameter["Accept"] = "application/json";
79
- setSearchParams(localVarUrlObj, localVarQueryParameter);
80
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
81
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
82
- return {
83
- url: toPathString(localVarUrlObj),
84
- options: localVarRequestOptions
85
- };
86
- }
87
- };
46
+ //#endregion
47
+ //#region src/api-model/api/application-management-api.ts
48
+ /**
49
+ * ApplicationManagementApi - axios parameter creator
50
+ */
51
+ const ApplicationManagementApiAxiosParamCreator = function(configuration) {
52
+ return {
53
+ /**
54
+ * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ */
58
+ rotateApplicationClientSecret: async (options = {}) => {
59
+ const localVarUrlObj = new URL(`/applications/2023-11-30/clientSecret`, DUMMY_BASE_URL);
60
+ let baseOptions;
61
+ if (configuration) baseOptions = configuration.baseOptions;
62
+ const localVarRequestOptions = {
63
+ method: "POST",
64
+ ...baseOptions,
65
+ ...options
66
+ };
67
+ const localVarHeaderParameter = {};
68
+ const localVarQueryParameter = {};
69
+ localVarHeaderParameter["Accept"] = "application/json";
70
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
71
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
+ localVarRequestOptions.headers = {
73
+ ...localVarHeaderParameter,
74
+ ...headersFromBaseOptions,
75
+ ...options.headers
76
+ };
77
+ return {
78
+ url: toPathString(localVarUrlObj),
79
+ options: localVarRequestOptions
80
+ };
81
+ } };
88
82
  };
89
- var ApplicationManagementApiFp = function(configuration) {
90
- const localVarAxiosParamCreator = ApplicationManagementApiAxiosParamCreator(configuration);
91
- return {
92
- /**
93
- * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
94
- * @param {*} [options] Override http request option.
95
- * @throws {RequiredError}
96
- */
97
- async rotateApplicationClientSecret(options) {
98
- const localVarAxiosArgs = await localVarAxiosParamCreator.rotateApplicationClientSecret(options);
99
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
100
- const localVarOperationServerBasePath = operationServerMap["ApplicationManagementApi.rotateApplicationClientSecret"]?.[localVarOperationServerIndex]?.url;
101
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
102
- }
103
- };
83
+ /**
84
+ * ApplicationManagementApi - functional programming interface
85
+ */
86
+ const ApplicationManagementApiFp = function(configuration) {
87
+ const localVarAxiosParamCreator = ApplicationManagementApiAxiosParamCreator(configuration);
88
+ return {
89
+ /**
90
+ * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ async rotateApplicationClientSecret(options) {
95
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rotateApplicationClientSecret(options);
96
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
97
+ const localVarOperationServerBasePath = operationServerMap["ApplicationManagementApi.rotateApplicationClientSecret"]?.[localVarOperationServerIndex]?.url;
98
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
99
+ } };
104
100
  };
105
- var ApplicationManagementApiFactory = function(configuration, basePath, axios) {
106
- const localVarFp = ApplicationManagementApiFp(configuration);
107
- return {
108
- /**
109
- * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
110
- * @param {*} [options] Override http request option.
111
- * @throws {RequiredError}
112
- */
113
- rotateApplicationClientSecret(options) {
114
- return localVarFp.rotateApplicationClientSecret(options).then((request) => request(axios, basePath));
115
- }
116
- };
101
+ /**
102
+ * ApplicationManagementApi - factory interface
103
+ */
104
+ const ApplicationManagementApiFactory = function(configuration, basePath, axios) {
105
+ const localVarFp = ApplicationManagementApiFp(configuration);
106
+ return {
107
+ /**
108
+ * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ rotateApplicationClientSecret(options) {
113
+ return localVarFp.rotateApplicationClientSecret(options).then((request) => request(axios, basePath));
114
+ } };
117
115
  };
116
+ /**
117
+ * ApplicationManagementApi - object-oriented interface
118
+ */
118
119
  var ApplicationManagementApi = class extends BaseAPI {
119
- /**
120
- * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
121
- * @param {*} [options] Override http request option.
122
- * @throws {RequiredError}
123
- */
124
- rotateApplicationClientSecret(options) {
125
- return ApplicationManagementApiFp(this.configuration).rotateApplicationClientSecret(options).then((request) => request(this.axios, this.basePath));
126
- }
120
+ /**
121
+ * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ */
125
+ rotateApplicationClientSecret(options) {
126
+ return ApplicationManagementApiFp(this.configuration).rotateApplicationClientSecret(options).then((request) => request(this.axios, this.basePath));
127
+ }
127
128
  };
128
-
129
- // src/api-model/configuration.ts
129
+ //#endregion
130
+ //#region src/api-model/configuration.ts
130
131
  var Configuration = class {
131
- /**
132
- * parameter for apiKey security
133
- * @param name security name
134
- */
135
- apiKey;
136
- /**
137
- * parameter for basic security
138
- */
139
- username;
140
- /**
141
- * parameter for basic security
142
- */
143
- password;
144
- /**
145
- * parameter for oauth2 security
146
- * @param name security name
147
- * @param scopes oauth2 scope
148
- */
149
- accessToken;
150
- /**
151
- * parameter for aws4 signature security
152
- * @param {Object} AWS4Signature - AWS4 Signature security
153
- * @param {string} options.region - aws region
154
- * @param {string} options.service - name of the service.
155
- * @param {string} credentials.accessKeyId - aws access key id
156
- * @param {string} credentials.secretAccessKey - aws access key
157
- * @param {string} credentials.sessionToken - aws session token
158
- * @memberof Configuration
159
- */
160
- awsv4;
161
- /**
162
- * override base path
163
- */
164
- basePath;
165
- /**
166
- * override server index
167
- */
168
- serverIndex;
169
- /**
170
- * base options for axios calls
171
- */
172
- baseOptions;
173
- /**
174
- * The FormData constructor that will be used to create multipart form data
175
- * requests. You can inject this here so that execution environments that
176
- * do not support the FormData class can still run the generated client.
177
- *
178
- * @type {new () => FormData}
179
- */
180
- formDataCtor;
181
- constructor(param = {}) {
182
- this.apiKey = param.apiKey;
183
- this.username = param.username;
184
- this.password = param.password;
185
- this.accessToken = param.accessToken;
186
- this.awsv4 = param.awsv4;
187
- this.basePath = param.basePath;
188
- this.serverIndex = param.serverIndex;
189
- this.baseOptions = {
190
- ...param.baseOptions,
191
- headers: {
192
- ...param.baseOptions?.headers
193
- }
194
- };
195
- this.formDataCtor = param.formDataCtor;
196
- }
197
- /**
198
- * Check if the given MIME is a JSON MIME.
199
- * JSON MIME examples:
200
- * application/json
201
- * application/json; charset=UTF8
202
- * APPLICATION/JSON
203
- * application/vnd.company+json
204
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
205
- * @return True if the given MIME is JSON, false otherwise.
206
- */
207
- isJsonMime(mime) {
208
- const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
209
- return mime !== null && jsonMime.test(mime);
210
- }
132
+ /**
133
+ * parameter for apiKey security
134
+ * @param name security name
135
+ */
136
+ apiKey;
137
+ /**
138
+ * parameter for basic security
139
+ */
140
+ username;
141
+ /**
142
+ * parameter for basic security
143
+ */
144
+ password;
145
+ /**
146
+ * parameter for oauth2 security
147
+ * @param name security name
148
+ * @param scopes oauth2 scope
149
+ */
150
+ accessToken;
151
+ /**
152
+ * parameter for aws4 signature security
153
+ * @param {Object} AWS4Signature - AWS4 Signature security
154
+ * @param {string} options.region - aws region
155
+ * @param {string} options.service - name of the service.
156
+ * @param {string} credentials.accessKeyId - aws access key id
157
+ * @param {string} credentials.secretAccessKey - aws access key
158
+ * @param {string} credentials.sessionToken - aws session token
159
+ * @memberof Configuration
160
+ */
161
+ awsv4;
162
+ /**
163
+ * override base path
164
+ */
165
+ basePath;
166
+ /**
167
+ * override server index
168
+ */
169
+ serverIndex;
170
+ /**
171
+ * base options for axios calls
172
+ */
173
+ baseOptions;
174
+ /**
175
+ * The FormData constructor that will be used to create multipart form data
176
+ * requests. You can inject this here so that execution environments that
177
+ * do not support the FormData class can still run the generated client.
178
+ *
179
+ * @type {new () => FormData}
180
+ */
181
+ formDataCtor;
182
+ constructor(param = {}) {
183
+ this.apiKey = param.apiKey;
184
+ this.username = param.username;
185
+ this.password = param.password;
186
+ this.accessToken = param.accessToken;
187
+ this.awsv4 = param.awsv4;
188
+ this.basePath = param.basePath;
189
+ this.serverIndex = param.serverIndex;
190
+ this.baseOptions = {
191
+ ...param.baseOptions,
192
+ headers: { ...param.baseOptions?.headers }
193
+ };
194
+ this.formDataCtor = param.formDataCtor;
195
+ }
196
+ /**
197
+ * Check if the given MIME is a JSON MIME.
198
+ * JSON MIME examples:
199
+ * application/json
200
+ * application/json; charset=UTF8
201
+ * APPLICATION/JSON
202
+ * application/vnd.company+json
203
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
204
+ * @return True if the given MIME is JSON, false otherwise.
205
+ */
206
+ isJsonMime(mime) {
207
+ return mime !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(mime);
208
+ }
211
209
  };
212
-
213
- // src/client.ts
214
- var clientRateLimits = [
215
- {
216
- method: "post",
217
- // eslint-disable-next-line prefer-regex-literals
218
- urlRegex: new RegExp("^/applications/2023-11-30/clientSecret$"),
219
- rate: 0.0167,
220
- burst: 1
221
- }
222
- ];
210
+ //#endregion
211
+ //#region src/client.ts
212
+ const clientRateLimits = [{
213
+ method: "post",
214
+ urlRegex: /^\/applications\/2023\u{2D}11\u{2D}30\/clientSecret$/v,
215
+ rate: .0167,
216
+ burst: 1
217
+ }];
223
218
  var ApplicationManagementApiClient = class extends ApplicationManagementApi {
224
- constructor(configuration) {
225
- const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
226
- super(new Configuration(), endpoint, axios);
227
- }
228
- };
229
- export {
230
- ApplicationManagementApi,
231
- ApplicationManagementApiAxiosParamCreator,
232
- ApplicationManagementApiClient,
233
- ApplicationManagementApiFactory,
234
- ApplicationManagementApiFp,
235
- clientRateLimits
219
+ constructor(configuration) {
220
+ const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
221
+ super(new Configuration(), endpoint, axios);
222
+ }
236
223
  };
224
+ //#endregion
225
+ export { ApplicationManagementApi, ApplicationManagementApiAxiosParamCreator, ApplicationManagementApiClient, ApplicationManagementApiFactory, ApplicationManagementApiFp, clientRateLimits };
226
+
237
227
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/client.ts","../src/api-model/api/application-management-api.ts","../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/configuration.ts"],"sourcesContent":["import {type ClientConfiguration, createAxiosInstance, type RateLimit} from '@sp-api-sdk/common'\n\nimport {ApplicationManagementApi, Configuration} from './api-model/index.js'\n\nexport const clientRateLimits: RateLimit[] = [\n {\n method: 'post',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/applications/2023-11-30/clientSecret$'),\n rate: 0.0167,\n burst: 1,\n },\n]\n\nexport class ApplicationManagementApiClient extends ApplicationManagementApi {\n constructor(configuration: ClientConfiguration) {\n const {axios, endpoint} = createAxiosInstance(configuration, clientRateLimits)\n\n super(new Configuration(), endpoint, axios)\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Application Management\n * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.\n *\n * The version of the OpenAPI document: 2023-11-30\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base.js';\n// @ts-ignore\nimport type { ErrorList } from '../models/index.js';\n/**\n * ApplicationManagementApi - axios parameter creator\n */\nexport const ApplicationManagementApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n rotateApplicationClientSecret: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/applications/2023-11-30/clientSecret`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * ApplicationManagementApi - functional programming interface\n */\nexport const ApplicationManagementApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = ApplicationManagementApiAxiosParamCreator(configuration)\n return {\n /**\n * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async rotateApplicationClientSecret(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.rotateApplicationClientSecret(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ApplicationManagementApi.rotateApplicationClientSecret']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * ApplicationManagementApi - factory interface\n */\nexport const ApplicationManagementApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = ApplicationManagementApiFp(configuration)\n return {\n /**\n * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n rotateApplicationClientSecret(options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.rotateApplicationClientSecret(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * ApplicationManagementApi - object-oriented interface\n */\nexport class ApplicationManagementApi extends BaseAPI {\n /**\n * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public rotateApplicationClientSecret(options?: RawAxiosRequestConfig) {\n return ApplicationManagementApiFp(this.configuration).rotateApplicationClientSecret(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Application Management\n * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.\n *\n * The version of the OpenAPI document: 2023-11-30\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sellingpartnerapi-na.amazon.com\".replace(/\\/+$/, \"\");\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Application Management\n * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.\n *\n * The version of the OpenAPI document: 2023-11-30\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter) || parameter instanceof Set) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n * JSON serialization helper function which replaces instances of unserializable types with serializable ones.\n * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.\n * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.\n */\n// @ts-ignore\nexport const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {\n if (value instanceof Set) {\n return Array.from(value);\n } else {\n return value;\n }\n}\n\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)\n : (value || \"\");\n}\n\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/**\n * Selling Partner API for Application Management\n * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.\n *\n * The version of the OpenAPI document: 2023-11-30\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\ninterface AWSv4Configuration {\n options?: {\n region?: string\n service?: string\n }\n credentials?: {\n accessKeyId?: string\n secretAccessKey?: string,\n sessionToken?: string\n }\n}\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n awsv4?: AWSv4Configuration;\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n */\n username?: string;\n /**\n * parameter for basic security\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * parameter for aws4 signature security\n * @param {Object} AWS4Signature - AWS4 Signature security\n * @param {string} options.region - aws region\n * @param {string} options.service - name of the service.\n * @param {string} credentials.accessKeyId - aws access key id\n * @param {string} credentials.secretAccessKey - aws access key\n * @param {string} credentials.sessionToken - aws session token\n * @memberof Configuration\n */\n awsv4?: AWSv4Configuration;\n /**\n * override base path\n */\n basePath?: string;\n /**\n * override server index\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.awsv4 = param.awsv4;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = /^(application\\/json|[^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,SAAK,WAAW,MAAM;AACtB,SAAK,cAAc,MAAM;AACzB,SAAK,cAAc;AAAA,MACf,GAAG,MAAM;AAAA,MACT,SAAS;AAAA,QACL,GAAG,MAAM,aAAa;AAAA,MAC1B;AAAA,IACJ;AACA,SAAK,eAAe,MAAM;AAAA,EAC9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYO,WAAW,MAAuB;AACrC,UAAM,WAAmB;AACzB,WAAO,SAAS,QAAQ,SAAS,KAAK,IAAI;AAAA,EAC9C;AACJ;;;AJpHO,IAAM,mBAAgC;AAAA,EAC3C;AAAA,IACE,QAAQ;AAAA;AAAA,IAER,UAAU,IAAI,OAAO,yCAAyC;AAAA,IAC9D,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AACF;AAEO,IAAM,iCAAN,cAA6C,yBAAyB;AAAA,EAC3E,YAAY,eAAoC;AAC9C,UAAM,EAAC,OAAO,SAAQ,IAAI,oBAAoB,eAAe,gBAAgB;AAE7E,UAAM,IAAI,cAAc,GAAG,UAAU,KAAK;AAAA,EAC5C;AACF;","names":["globalAxios","globalAxios","BASE_PATH","globalAxios"]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/api/application-management-api.ts","../src/api-model/configuration.ts","../src/client.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Application Management\n * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.\n *\n * The version of the OpenAPI document: 2023-11-30\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sellingpartnerapi-na.amazon.com\".replace(/\\/+$/, \"\");\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Application Management\n * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.\n *\n * The version of the OpenAPI document: 2023-11-30\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter) || parameter instanceof Set) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n * JSON serialization helper function which replaces instances of unserializable types with serializable ones.\n * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.\n * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.\n */\n// @ts-ignore\nexport const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {\n if (value instanceof Set) {\n return Array.from(value);\n } else {\n return value;\n }\n}\n\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)\n : (value || \"\");\n}\n\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Application Management\n * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.\n *\n * The version of the OpenAPI document: 2023-11-30\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base.js';\n// @ts-ignore\nimport type { ErrorList } from '../models/index.js';\n/**\n * ApplicationManagementApi - axios parameter creator\n */\nexport const ApplicationManagementApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n rotateApplicationClientSecret: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/applications/2023-11-30/clientSecret`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * ApplicationManagementApi - functional programming interface\n */\nexport const ApplicationManagementApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = ApplicationManagementApiAxiosParamCreator(configuration)\n return {\n /**\n * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async rotateApplicationClientSecret(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.rotateApplicationClientSecret(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ApplicationManagementApi.rotateApplicationClientSecret']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * ApplicationManagementApi - factory interface\n */\nexport const ApplicationManagementApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = ApplicationManagementApiFp(configuration)\n return {\n /**\n * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n rotateApplicationClientSecret(options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.rotateApplicationClientSecret(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * ApplicationManagementApi - object-oriented interface\n */\nexport class ApplicationManagementApi extends BaseAPI {\n /**\n * Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public rotateApplicationClientSecret(options?: RawAxiosRequestConfig) {\n return ApplicationManagementApiFp(this.configuration).rotateApplicationClientSecret(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n","/* tslint:disable */\n/**\n * Selling Partner API for Application Management\n * The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.\n *\n * The version of the OpenAPI document: 2023-11-30\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\ninterface AWSv4Configuration {\n options?: {\n region?: string\n service?: string\n }\n credentials?: {\n accessKeyId?: string\n secretAccessKey?: string,\n sessionToken?: string\n }\n}\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n awsv4?: AWSv4Configuration;\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n */\n username?: string;\n /**\n * parameter for basic security\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * parameter for aws4 signature security\n * @param {Object} AWS4Signature - AWS4 Signature security\n * @param {string} options.region - aws region\n * @param {string} options.service - name of the service.\n * @param {string} credentials.accessKeyId - aws access key id\n * @param {string} credentials.secretAccessKey - aws access key\n * @param {string} credentials.sessionToken - aws session token\n * @memberof Configuration\n */\n awsv4?: AWSv4Configuration;\n /**\n * override base path\n */\n basePath?: string;\n /**\n * override server index\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.awsv4 = param.awsv4;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = /^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$/i;\n return mime !== null && jsonMime.test(mime);\n }\n}\n","import {type ClientConfiguration, createAxiosInstance, type RateLimit} from '@sp-api-sdk/common'\n\nimport {ApplicationManagementApi, Configuration} from './api-model/index.js'\n\nexport const clientRateLimits: RateLimit[] = [\n {\n method: 'post',\n urlRegex: /^\\/applications\\/2023\\u{2D}11\\u{2D}30\\/clientSecret$/v,\n rate: 0.0167,\n burst: 1,\n },\n]\n\nexport class ApplicationManagementApiClient extends ApplicationManagementApi {\n constructor(configuration: ClientConfiguration) {\n const {axios, endpoint} = createAxiosInstance(configuration, clientRateLimits)\n\n super(new Configuration(), endpoint, axios)\n }\n}\n"],"mappings":";;;AAqBA,MAAa,YAAY,0CAA0C,QAAQ,QAAQ,EAAE;AAcrF,IAAa,UAAb,MAAqB;CAGoC;CAAwC;CAF7F;CAEA,YAAY,eAA+B,WAA6B,WAAW,QAAiC,aAAa;EAA5E,KAAA,WAAA;EAAwC,KAAA,QAAA;EACzF,IAAI,eAAe;GACf,KAAK,gBAAgB;GACrB,KAAK,WAAW,cAAc,YAAY;EAC9C;CACJ;AACJ;AAgBA,MAAa,qBAAgC,CAC7C;;;AC1CA,MAAa,iBAAiB;AA8C9B,SAAS,wBAAwB,iBAAkC,WAAgB,MAAc,IAAU;CACvG,IAAI,aAAa,MAAM;CACvB,IAAI,OAAO,cAAc,UACrB,IAAI,MAAM,QAAQ,SAAS,KAAK,qBAAqB,KACjD,UAAqB,SAAQ,SAAQ,wBAAwB,iBAAiB,MAAM,GAAG,CAAC;MAGxF,OAAO,KAAK,SAAS,CAAC,CAAC,SAAQ,eAC3B,wBAAwB,iBAAiB,UAAU,aAAa,GAAG,MAAM,QAAQ,KAAK,MAAM,KAAK,YAAY,CACjH;MAIJ,IAAI,gBAAgB,IAAI,GAAG,GACvB,gBAAgB,OAAO,KAA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AC3C;CACE,QAAQ;CACR,UAAU;CACV,MAAM;CACN,OAAO;AACT,CACF;AAEA,IAAa,iCAAb,cAAoD,yBAAyB;CAC3E,YAAY,eAAoC;EAC9C,MAAM,EAAC,OAAO,aAAY,oBAAoB,eAAe,gBAAgB;EAE7E,MAAM,IAAI,cAAc,GAAG,UAAU,KAAK;CAC5C;AACF"}
package/package.json CHANGED
@@ -2,9 +2,12 @@
2
2
  "name": "@sp-api-sdk/application-management-api-2023-11-30",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.",
5
- "version": "4.0.0",
5
+ "version": "4.1.1",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
+ "engines": {
9
+ "node": ">=20"
10
+ },
8
11
  "sideEffects": false,
9
12
  "source": "./src/index.ts",
10
13
  "main": "./dist/index.cjs",
@@ -29,8 +32,8 @@
29
32
  "dist"
30
33
  ],
31
34
  "dependencies": {
32
- "@sp-api-sdk/common": "3.0.0",
33
- "axios": "^1.16.1"
35
+ "@sp-api-sdk/common": "4.0.1",
36
+ "axios": "^1.18.1"
34
37
  },
35
38
  "repository": {
36
39
  "type": "git",
@@ -43,13 +46,18 @@
43
46
  "homepage": "https://github.com/bizon/selling-partner-api-sdk/tree/master/clients/application-management-api-2023-11-30",
44
47
  "keywords": [
45
48
  "amazon",
49
+ "amazon-sp-api",
46
50
  "bizon",
47
- "marketplace web services",
48
- "mws",
51
+ "esm",
52
+ "nodejs",
53
+ "sdk",
49
54
  "selling partner api",
55
+ "selling-partner-api",
50
56
  "sp api",
51
57
  "sp sdk",
58
+ "sp-api",
59
+ "typescript",
52
60
  "application management api"
53
61
  ],
54
- "gitHead": "40177b741b5e9299d449d10c8e41a9a798aec593"
62
+ "gitHead": "ba6f2c01e5f1e877c8f7bbdbe346d0157e2ca9a7"
55
63
  }