@sp-api-sdk/orders-api-v0 5.3.1 → 5.3.5
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.
|
@@ -52,6 +52,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
52
52
|
const localVarHeaderParameter = {};
|
|
53
53
|
const localVarQueryParameter = {};
|
|
54
54
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
55
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
55
56
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
56
57
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57
58
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -81,6 +82,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
81
82
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
82
83
|
const localVarHeaderParameter = {};
|
|
83
84
|
const localVarQueryParameter = {};
|
|
85
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
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 };
|
|
@@ -109,6 +111,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
109
111
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
110
112
|
const localVarHeaderParameter = {};
|
|
111
113
|
const localVarQueryParameter = {};
|
|
114
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
112
115
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
113
116
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
114
117
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -137,6 +140,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
137
140
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
138
141
|
const localVarHeaderParameter = {};
|
|
139
142
|
const localVarQueryParameter = {};
|
|
143
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
140
144
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
141
145
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
142
146
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -169,6 +173,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
169
173
|
if (nextToken !== undefined) {
|
|
170
174
|
localVarQueryParameter['NextToken'] = nextToken;
|
|
171
175
|
}
|
|
176
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
172
177
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
173
178
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
174
179
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -201,6 +206,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
201
206
|
if (nextToken !== undefined) {
|
|
202
207
|
localVarQueryParameter['NextToken'] = nextToken;
|
|
203
208
|
}
|
|
209
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
204
210
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
205
211
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
206
212
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -229,6 +235,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
229
235
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
230
236
|
const localVarHeaderParameter = {};
|
|
231
237
|
const localVarQueryParameter = {};
|
|
238
|
+
localVarHeaderParameter['Accept'] = 'application/json,PendingOrder,ApprovedOrder,RejectedOrder';
|
|
232
239
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
233
240
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
234
241
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -343,6 +350,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
343
350
|
if (latestDeliveryDateAfter !== undefined) {
|
|
344
351
|
localVarQueryParameter['LatestDeliveryDateAfter'] = latestDeliveryDateAfter;
|
|
345
352
|
}
|
|
353
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
346
354
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
347
355
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
348
356
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -375,6 +383,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
375
383
|
const localVarHeaderParameter = {};
|
|
376
384
|
const localVarQueryParameter = {};
|
|
377
385
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
386
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
378
387
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
379
388
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
380
389
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -408,6 +417,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
408
417
|
const localVarHeaderParameter = {};
|
|
409
418
|
const localVarQueryParameter = {};
|
|
410
419
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
420
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
411
421
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
412
422
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
413
423
|
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 Orders
|
|
6
5
|
* Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response).
|
|
@@ -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 = {
|
|
@@ -46,6 +46,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
46
46
|
const localVarHeaderParameter = {};
|
|
47
47
|
const localVarQueryParameter = {};
|
|
48
48
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
49
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
49
50
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50
51
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51
52
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -75,6 +76,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
75
76
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
76
77
|
const localVarHeaderParameter = {};
|
|
77
78
|
const localVarQueryParameter = {};
|
|
79
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
78
80
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
81
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
82
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -103,6 +105,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
103
105
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
104
106
|
const localVarHeaderParameter = {};
|
|
105
107
|
const localVarQueryParameter = {};
|
|
108
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
106
109
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
107
110
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
108
111
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -131,6 +134,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
131
134
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
132
135
|
const localVarHeaderParameter = {};
|
|
133
136
|
const localVarQueryParameter = {};
|
|
137
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
134
138
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
135
139
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
140
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -163,6 +167,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
163
167
|
if (nextToken !== undefined) {
|
|
164
168
|
localVarQueryParameter['NextToken'] = nextToken;
|
|
165
169
|
}
|
|
170
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
166
171
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
167
172
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
168
173
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -195,6 +200,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
195
200
|
if (nextToken !== undefined) {
|
|
196
201
|
localVarQueryParameter['NextToken'] = nextToken;
|
|
197
202
|
}
|
|
203
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
198
204
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
199
205
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
200
206
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -223,6 +229,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
223
229
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
224
230
|
const localVarHeaderParameter = {};
|
|
225
231
|
const localVarQueryParameter = {};
|
|
232
|
+
localVarHeaderParameter['Accept'] = 'application/json,PendingOrder,ApprovedOrder,RejectedOrder';
|
|
226
233
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
227
234
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
228
235
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -337,6 +344,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
337
344
|
if (latestDeliveryDateAfter !== undefined) {
|
|
338
345
|
localVarQueryParameter['LatestDeliveryDateAfter'] = latestDeliveryDateAfter;
|
|
339
346
|
}
|
|
347
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
340
348
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
341
349
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
342
350
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -369,6 +377,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
369
377
|
const localVarHeaderParameter = {};
|
|
370
378
|
const localVarQueryParameter = {};
|
|
371
379
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
380
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
372
381
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
373
382
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
374
383
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -402,6 +411,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
402
411
|
const localVarHeaderParameter = {};
|
|
403
412
|
const localVarQueryParameter = {};
|
|
404
413
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
414
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
405
415
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
406
416
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
407
417
|
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 Orders
|
|
5
4
|
* Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don\'t show up in the response).
|
|
@@ -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/orders-api-v0",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. Note: For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).",
|
|
5
|
-
"version": "5.3.
|
|
5
|
+
"version": "5.3.5",
|
|
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
|
"orders api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "b3fe13460a11917282a12b5bdbcfaf565b9b773e"
|
|
44
44
|
}
|