@sp-api-sdk/notifications-api-v1 3.0.11 → 3.0.15
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.
|
@@ -48,6 +48,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
48
48
|
const localVarHeaderParameter = {};
|
|
49
49
|
const localVarQueryParameter = {};
|
|
50
50
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
51
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Response';
|
|
51
52
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
52
53
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53
54
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -81,6 +82,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
81
82
|
const localVarHeaderParameter = {};
|
|
82
83
|
const localVarQueryParameter = {};
|
|
83
84
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
85
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Response';
|
|
84
86
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
85
87
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
86
88
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -110,6 +112,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
110
112
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
111
113
|
const localVarHeaderParameter = {};
|
|
112
114
|
const localVarQueryParameter = {};
|
|
115
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Response';
|
|
113
116
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
114
117
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
115
118
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -142,6 +145,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
142
145
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
143
146
|
const localVarHeaderParameter = {};
|
|
144
147
|
const localVarQueryParameter = {};
|
|
148
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Operation Response';
|
|
145
149
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
146
150
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147
151
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -170,6 +174,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
170
174
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
171
175
|
const localVarHeaderParameter = {};
|
|
172
176
|
const localVarQueryParameter = {};
|
|
177
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Response';
|
|
173
178
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
174
179
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
180
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -194,6 +199,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
194
199
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
195
200
|
const localVarHeaderParameter = {};
|
|
196
201
|
const localVarQueryParameter = {};
|
|
202
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Response';
|
|
197
203
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
198
204
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
205
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -226,6 +232,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
226
232
|
if (payloadVersion !== undefined) {
|
|
227
233
|
localVarQueryParameter['payloadVersion'] = payloadVersion;
|
|
228
234
|
}
|
|
235
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Response';
|
|
229
236
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
230
237
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
231
238
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -258,6 +265,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
258
265
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
259
266
|
const localVarHeaderParameter = {};
|
|
260
267
|
const localVarQueryParameter = {};
|
|
268
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Response';
|
|
261
269
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
262
270
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
263
271
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
3
|
/**
|
|
5
4
|
* Selling Partner API for Notifications
|
|
6
5
|
* The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, refer to the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
|
|
@@ -34,6 +33,17 @@ class Configuration {
|
|
|
34
33
|
* @param scopes oauth2 scope
|
|
35
34
|
*/
|
|
36
35
|
accessToken;
|
|
36
|
+
/**
|
|
37
|
+
* parameter for aws4 signature security
|
|
38
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
39
|
+
* @param {string} options.region - aws region
|
|
40
|
+
* @param {string} options.service - name of the service.
|
|
41
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
42
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
43
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
44
|
+
* @memberof Configuration
|
|
45
|
+
*/
|
|
46
|
+
awsv4;
|
|
37
47
|
/**
|
|
38
48
|
* override base path
|
|
39
49
|
*/
|
|
@@ -59,6 +69,7 @@ class Configuration {
|
|
|
59
69
|
this.username = param.username;
|
|
60
70
|
this.password = param.password;
|
|
61
71
|
this.accessToken = param.accessToken;
|
|
72
|
+
this.awsv4 = param.awsv4;
|
|
62
73
|
this.basePath = param.basePath;
|
|
63
74
|
this.serverIndex = param.serverIndex;
|
|
64
75
|
this.baseOptions = {
|
|
@@ -42,6 +42,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
42
42
|
const localVarHeaderParameter = {};
|
|
43
43
|
const localVarQueryParameter = {};
|
|
44
44
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
45
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Response';
|
|
45
46
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46
47
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
47
48
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -75,6 +76,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
75
76
|
const localVarHeaderParameter = {};
|
|
76
77
|
const localVarQueryParameter = {};
|
|
77
78
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
79
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Response';
|
|
78
80
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
81
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
82
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -104,6 +106,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
104
106
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
105
107
|
const localVarHeaderParameter = {};
|
|
106
108
|
const localVarQueryParameter = {};
|
|
109
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Response';
|
|
107
110
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
108
111
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
109
112
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -136,6 +139,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
136
139
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
137
140
|
const localVarHeaderParameter = {};
|
|
138
141
|
const localVarQueryParameter = {};
|
|
142
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Operation Response';
|
|
139
143
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
140
144
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
145
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -164,6 +168,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
164
168
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
165
169
|
const localVarHeaderParameter = {};
|
|
166
170
|
const localVarQueryParameter = {};
|
|
171
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Response';
|
|
167
172
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
168
173
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
169
174
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -188,6 +193,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
188
193
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
189
194
|
const localVarHeaderParameter = {};
|
|
190
195
|
const localVarQueryParameter = {};
|
|
196
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Response';
|
|
191
197
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
192
198
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
193
199
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -220,6 +226,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
220
226
|
if (payloadVersion !== undefined) {
|
|
221
227
|
localVarQueryParameter['payloadVersion'] = payloadVersion;
|
|
222
228
|
}
|
|
229
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Response';
|
|
223
230
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
224
231
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
225
232
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -252,6 +259,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
252
259
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
253
260
|
const localVarHeaderParameter = {};
|
|
254
261
|
const localVarQueryParameter = {};
|
|
262
|
+
localVarHeaderParameter['Accept'] = 'application/json,Successful Response';
|
|
255
263
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
256
264
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
257
265
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* Selling Partner API for Notifications
|
|
5
4
|
* The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, refer to the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
|
|
@@ -31,6 +30,17 @@ export class Configuration {
|
|
|
31
30
|
* @param scopes oauth2 scope
|
|
32
31
|
*/
|
|
33
32
|
accessToken;
|
|
33
|
+
/**
|
|
34
|
+
* parameter for aws4 signature security
|
|
35
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
36
|
+
* @param {string} options.region - aws region
|
|
37
|
+
* @param {string} options.service - name of the service.
|
|
38
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
39
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
40
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
41
|
+
* @memberof Configuration
|
|
42
|
+
*/
|
|
43
|
+
awsv4;
|
|
34
44
|
/**
|
|
35
45
|
* override base path
|
|
36
46
|
*/
|
|
@@ -56,6 +66,7 @@ export class Configuration {
|
|
|
56
66
|
this.username = param.username;
|
|
57
67
|
this.password = param.password;
|
|
58
68
|
this.accessToken = param.accessToken;
|
|
69
|
+
this.awsv4 = param.awsv4;
|
|
59
70
|
this.basePath = param.basePath;
|
|
60
71
|
this.serverIndex = param.serverIndex;
|
|
61
72
|
this.baseOptions = {
|
|
@@ -9,11 +9,23 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
interface AWSv4Configuration {
|
|
13
|
+
options?: {
|
|
14
|
+
region?: string;
|
|
15
|
+
service?: string;
|
|
16
|
+
};
|
|
17
|
+
credentials?: {
|
|
18
|
+
accessKeyId?: string;
|
|
19
|
+
secretAccessKey?: string;
|
|
20
|
+
sessionToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
12
23
|
export interface ConfigurationParameters {
|
|
13
24
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
25
|
username?: string;
|
|
15
26
|
password?: string;
|
|
16
27
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
+
awsv4?: AWSv4Configuration;
|
|
17
29
|
basePath?: string;
|
|
18
30
|
serverIndex?: number;
|
|
19
31
|
baseOptions?: any;
|
|
@@ -39,6 +51,17 @@ export declare class Configuration {
|
|
|
39
51
|
* @param scopes oauth2 scope
|
|
40
52
|
*/
|
|
41
53
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
54
|
+
/**
|
|
55
|
+
* parameter for aws4 signature security
|
|
56
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
57
|
+
* @param {string} options.region - aws region
|
|
58
|
+
* @param {string} options.service - name of the service.
|
|
59
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
60
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
61
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
62
|
+
* @memberof Configuration
|
|
63
|
+
*/
|
|
64
|
+
awsv4?: AWSv4Configuration;
|
|
42
65
|
/**
|
|
43
66
|
* override base path
|
|
44
67
|
*/
|
|
@@ -72,3 +95,4 @@ export declare class Configuration {
|
|
|
72
95
|
*/
|
|
73
96
|
isJsonMime(mime: string): boolean;
|
|
74
97
|
}
|
|
98
|
+
export {};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/notifications-api-v1",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, refer to the Notifications Use Case Guide.",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.15",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.1.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.24",
|
|
22
|
+
"axios": "^1.13.2"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"notifications api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "b3fe13460a11917282a12b5bdbcfaf565b9b773e"
|
|
44
44
|
}
|