@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1 4.0.1 → 4.0.2
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/cjs/api-model/api/vendor-direct-fulfillment-orders-api.js +0 -15
- package/dist/cjs/api-model/base.js +0 -19
- package/dist/cjs/api-model/common.js +0 -37
- package/dist/cjs/api-model/configuration.js +0 -17
- package/dist/es/api-model/api/vendor-direct-fulfillment-orders-api.js +0 -15
- package/dist/es/api-model/base.js +0 -19
- package/dist/es/api-model/common.js +0 -37
- package/dist/es/api-model/configuration.js +0 -17
- package/dist/types/api-model/api/vendor-direct-fulfillment-orders-api.d.ts +0 -41
- package/dist/types/api-model/base.d.ts +0 -24
- package/dist/types/api-model/common.d.ts +0 -37
- package/dist/types/api-model/configuration.d.ts +0 -17
- package/dist/types/api-model/models/acknowledgement-status.d.ts +0 -6
- package/dist/types/api-model/models/address.d.ts +0 -26
- package/dist/types/api-model/models/get-order-response.d.ts +0 -9
- package/dist/types/api-model/models/get-orders-response.d.ts +0 -9
- package/dist/types/api-model/models/gift-details.d.ts +0 -6
- package/dist/types/api-model/models/item-quantity.d.ts +0 -6
- package/dist/types/api-model/models/model-error.d.ts +0 -8
- package/dist/types/api-model/models/money.d.ts +0 -6
- package/dist/types/api-model/models/order-acknowledgement-item.d.ts +0 -25
- package/dist/types/api-model/models/order-details-tax-total.d.ts +0 -4
- package/dist/types/api-model/models/order-details.d.ts +0 -40
- package/dist/types/api-model/models/order-item-acknowledgement.d.ts +0 -13
- package/dist/types/api-model/models/order-item-tax-details.d.ts +0 -4
- package/dist/types/api-model/models/order-item.d.ts +0 -40
- package/dist/types/api-model/models/order-list.d.ts +0 -9
- package/dist/types/api-model/models/order.d.ts +0 -9
- package/dist/types/api-model/models/pagination.d.ts +0 -4
- package/dist/types/api-model/models/party-identification.d.ts +0 -14
- package/dist/types/api-model/models/scheduled-delivery-shipment.d.ts +0 -8
- package/dist/types/api-model/models/shipment-dates.d.ts +0 -6
- package/dist/types/api-model/models/shipment-details.d.ts +0 -19
- package/dist/types/api-model/models/submit-acknowledgement-request.d.ts +0 -4
- package/dist/types/api-model/models/submit-acknowledgement-response.d.ts +0 -9
- package/dist/types/api-model/models/tax-details.d.ts +0 -16
- package/dist/types/api-model/models/tax-registration-details.d.ts +0 -13
- package/dist/types/api-model/models/transaction-id.d.ts +0 -4
- package/package.json +25 -4
|
@@ -25,7 +25,6 @@ const common_1 = require("../common");
|
|
|
25
25
|
const base_1 = require("../base");
|
|
26
26
|
/**
|
|
27
27
|
* VendorDirectFulfillmentOrdersApi - axios parameter creator
|
|
28
|
-
* @export
|
|
29
28
|
*/
|
|
30
29
|
const VendorDirectFulfillmentOrdersApiAxiosParamCreator = function (configuration) {
|
|
31
30
|
return {
|
|
@@ -155,7 +154,6 @@ const VendorDirectFulfillmentOrdersApiAxiosParamCreator = function (configuratio
|
|
|
155
154
|
exports.VendorDirectFulfillmentOrdersApiAxiosParamCreator = VendorDirectFulfillmentOrdersApiAxiosParamCreator;
|
|
156
155
|
/**
|
|
157
156
|
* VendorDirectFulfillmentOrdersApi - functional programming interface
|
|
158
|
-
* @export
|
|
159
157
|
*/
|
|
160
158
|
const VendorDirectFulfillmentOrdersApiFp = function (configuration) {
|
|
161
159
|
const localVarAxiosParamCreator = (0, exports.VendorDirectFulfillmentOrdersApiAxiosParamCreator)(configuration);
|
|
@@ -208,7 +206,6 @@ const VendorDirectFulfillmentOrdersApiFp = function (configuration) {
|
|
|
208
206
|
exports.VendorDirectFulfillmentOrdersApiFp = VendorDirectFulfillmentOrdersApiFp;
|
|
209
207
|
/**
|
|
210
208
|
* VendorDirectFulfillmentOrdersApi - factory interface
|
|
211
|
-
* @export
|
|
212
209
|
*/
|
|
213
210
|
const VendorDirectFulfillmentOrdersApiFactory = function (configuration, basePath, axios) {
|
|
214
211
|
const localVarFp = (0, exports.VendorDirectFulfillmentOrdersApiFp)(configuration);
|
|
@@ -245,9 +242,6 @@ const VendorDirectFulfillmentOrdersApiFactory = function (configuration, basePat
|
|
|
245
242
|
exports.VendorDirectFulfillmentOrdersApiFactory = VendorDirectFulfillmentOrdersApiFactory;
|
|
246
243
|
/**
|
|
247
244
|
* VendorDirectFulfillmentOrdersApi - object-oriented interface
|
|
248
|
-
* @export
|
|
249
|
-
* @class VendorDirectFulfillmentOrdersApi
|
|
250
|
-
* @extends {BaseAPI}
|
|
251
245
|
*/
|
|
252
246
|
class VendorDirectFulfillmentOrdersApi extends base_1.BaseAPI {
|
|
253
247
|
/**
|
|
@@ -255,7 +249,6 @@ class VendorDirectFulfillmentOrdersApi extends base_1.BaseAPI {
|
|
|
255
249
|
* @param {VendorDirectFulfillmentOrdersApiGetOrderRequest} requestParameters Request parameters.
|
|
256
250
|
* @param {*} [options] Override http request option.
|
|
257
251
|
* @throws {RequiredError}
|
|
258
|
-
* @memberof VendorDirectFulfillmentOrdersApi
|
|
259
252
|
*/
|
|
260
253
|
getOrder(requestParameters, options) {
|
|
261
254
|
return (0, exports.VendorDirectFulfillmentOrdersApiFp)(this.configuration).getOrder(requestParameters.purchaseOrderNumber, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -265,7 +258,6 @@ class VendorDirectFulfillmentOrdersApi extends base_1.BaseAPI {
|
|
|
265
258
|
* @param {VendorDirectFulfillmentOrdersApiGetOrdersRequest} requestParameters Request parameters.
|
|
266
259
|
* @param {*} [options] Override http request option.
|
|
267
260
|
* @throws {RequiredError}
|
|
268
|
-
* @memberof VendorDirectFulfillmentOrdersApi
|
|
269
261
|
*/
|
|
270
262
|
getOrders(requestParameters, options) {
|
|
271
263
|
return (0, exports.VendorDirectFulfillmentOrdersApiFp)(this.configuration).getOrders(requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.shipFromPartyId, requestParameters.status, requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.includeDetails, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -275,25 +267,18 @@ class VendorDirectFulfillmentOrdersApi extends base_1.BaseAPI {
|
|
|
275
267
|
* @param {VendorDirectFulfillmentOrdersApiSubmitAcknowledgementRequest} requestParameters Request parameters.
|
|
276
268
|
* @param {*} [options] Override http request option.
|
|
277
269
|
* @throws {RequiredError}
|
|
278
|
-
* @memberof VendorDirectFulfillmentOrdersApi
|
|
279
270
|
*/
|
|
280
271
|
submitAcknowledgement(requestParameters, options) {
|
|
281
272
|
return (0, exports.VendorDirectFulfillmentOrdersApiFp)(this.configuration).submitAcknowledgement(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
282
273
|
}
|
|
283
274
|
}
|
|
284
275
|
exports.VendorDirectFulfillmentOrdersApi = VendorDirectFulfillmentOrdersApi;
|
|
285
|
-
/**
|
|
286
|
-
* @export
|
|
287
|
-
*/
|
|
288
276
|
exports.GetOrdersStatusEnum = {
|
|
289
277
|
New: 'NEW',
|
|
290
278
|
Shipped: 'SHIPPED',
|
|
291
279
|
Accepted: 'ACCEPTED',
|
|
292
280
|
Cancelled: 'CANCELLED'
|
|
293
281
|
};
|
|
294
|
-
/**
|
|
295
|
-
* @export
|
|
296
|
-
*/
|
|
297
282
|
exports.GetOrdersSortOrderEnum = {
|
|
298
283
|
Asc: 'ASC',
|
|
299
284
|
Desc: 'DESC'
|
|
@@ -19,21 +19,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
22
|
exports.COLLECTION_FORMATS = {
|
|
27
23
|
csv: ",",
|
|
28
24
|
ssv: " ",
|
|
29
25
|
tsv: "\t",
|
|
30
26
|
pipes: "|",
|
|
31
27
|
};
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @export
|
|
35
|
-
* @class BaseAPI
|
|
36
|
-
*/
|
|
37
28
|
class BaseAPI {
|
|
38
29
|
basePath;
|
|
39
30
|
axios;
|
|
@@ -49,12 +40,6 @@ class BaseAPI {
|
|
|
49
40
|
}
|
|
50
41
|
exports.BaseAPI = BaseAPI;
|
|
51
42
|
;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @export
|
|
55
|
-
* @class RequiredError
|
|
56
|
-
* @extends {Error}
|
|
57
|
-
*/
|
|
58
43
|
class RequiredError extends Error {
|
|
59
44
|
field;
|
|
60
45
|
constructor(field, msg) {
|
|
@@ -64,8 +49,4 @@ class RequiredError extends Error {
|
|
|
64
49
|
}
|
|
65
50
|
}
|
|
66
51
|
exports.RequiredError = RequiredError;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @export
|
|
70
|
-
*/
|
|
71
52
|
exports.operationServerMap = {};
|
|
@@ -15,15 +15,10 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
17
17
|
const base_1 = require("./base");
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
*/
|
|
22
18
|
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
23
19
|
/**
|
|
24
20
|
*
|
|
25
21
|
* @throws {RequiredError}
|
|
26
|
-
* @export
|
|
27
22
|
*/
|
|
28
23
|
const assertParamExists = function (functionName, paramName, paramValue) {
|
|
29
24
|
if (paramValue === null || paramValue === undefined) {
|
|
@@ -31,10 +26,6 @@ const assertParamExists = function (functionName, paramName, paramValue) {
|
|
|
31
26
|
}
|
|
32
27
|
};
|
|
33
28
|
exports.assertParamExists = assertParamExists;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
*/
|
|
38
29
|
const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
39
30
|
if (configuration && configuration.apiKey) {
|
|
40
31
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -44,20 +35,12 @@ const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
|
44
35
|
}
|
|
45
36
|
};
|
|
46
37
|
exports.setApiKeyToObject = setApiKeyToObject;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @export
|
|
50
|
-
*/
|
|
51
38
|
const setBasicAuthToObject = function (object, configuration) {
|
|
52
39
|
if (configuration && (configuration.username || configuration.password)) {
|
|
53
40
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
54
41
|
}
|
|
55
42
|
};
|
|
56
43
|
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @export
|
|
60
|
-
*/
|
|
61
44
|
const setBearerAuthToObject = async function (object, configuration) {
|
|
62
45
|
if (configuration && configuration.accessToken) {
|
|
63
46
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
@@ -67,10 +50,6 @@ const setBearerAuthToObject = async function (object, configuration) {
|
|
|
67
50
|
}
|
|
68
51
|
};
|
|
69
52
|
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @export
|
|
73
|
-
*/
|
|
74
53
|
const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
75
54
|
if (configuration && configuration.accessToken) {
|
|
76
55
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
@@ -100,20 +79,12 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
100
79
|
}
|
|
101
80
|
}
|
|
102
81
|
}
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @export
|
|
106
|
-
*/
|
|
107
82
|
const setSearchParams = function (url, ...objects) {
|
|
108
83
|
const searchParams = new URLSearchParams(url.search);
|
|
109
84
|
setFlattenedQueryParams(searchParams, objects);
|
|
110
85
|
url.search = searchParams.toString();
|
|
111
86
|
};
|
|
112
87
|
exports.setSearchParams = setSearchParams;
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
115
|
-
* @export
|
|
116
|
-
*/
|
|
117
88
|
const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
118
89
|
const nonString = typeof value !== 'string';
|
|
119
90
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
@@ -124,18 +95,10 @@ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
|
124
95
|
: (value || "");
|
|
125
96
|
};
|
|
126
97
|
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @export
|
|
130
|
-
*/
|
|
131
98
|
const toPathString = function (url) {
|
|
132
99
|
return url.pathname + url.search + url.hash;
|
|
133
100
|
};
|
|
134
101
|
exports.toPathString = toPathString;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @export
|
|
138
|
-
*/
|
|
139
102
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
140
103
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
141
104
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
@@ -18,49 +18,32 @@ class Configuration {
|
|
|
18
18
|
/**
|
|
19
19
|
* parameter for apiKey security
|
|
20
20
|
* @param name security name
|
|
21
|
-
* @memberof Configuration
|
|
22
21
|
*/
|
|
23
22
|
apiKey;
|
|
24
23
|
/**
|
|
25
24
|
* parameter for basic security
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof Configuration
|
|
29
25
|
*/
|
|
30
26
|
username;
|
|
31
27
|
/**
|
|
32
28
|
* parameter for basic security
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof Configuration
|
|
36
29
|
*/
|
|
37
30
|
password;
|
|
38
31
|
/**
|
|
39
32
|
* parameter for oauth2 security
|
|
40
33
|
* @param name security name
|
|
41
34
|
* @param scopes oauth2 scope
|
|
42
|
-
* @memberof Configuration
|
|
43
35
|
*/
|
|
44
36
|
accessToken;
|
|
45
37
|
/**
|
|
46
38
|
* override base path
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof Configuration
|
|
50
39
|
*/
|
|
51
40
|
basePath;
|
|
52
41
|
/**
|
|
53
42
|
* override server index
|
|
54
|
-
*
|
|
55
|
-
* @type {number}
|
|
56
|
-
* @memberof Configuration
|
|
57
43
|
*/
|
|
58
44
|
serverIndex;
|
|
59
45
|
/**
|
|
60
46
|
* base options for axios calls
|
|
61
|
-
*
|
|
62
|
-
* @type {any}
|
|
63
|
-
* @memberof Configuration
|
|
64
47
|
*/
|
|
65
48
|
baseOptions;
|
|
66
49
|
/**
|
|
@@ -19,7 +19,6 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeed
|
|
|
19
19
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
21
|
* VendorDirectFulfillmentOrdersApi - axios parameter creator
|
|
22
|
-
* @export
|
|
23
22
|
*/
|
|
24
23
|
export const VendorDirectFulfillmentOrdersApiAxiosParamCreator = function (configuration) {
|
|
25
24
|
return {
|
|
@@ -148,7 +147,6 @@ export const VendorDirectFulfillmentOrdersApiAxiosParamCreator = function (confi
|
|
|
148
147
|
};
|
|
149
148
|
/**
|
|
150
149
|
* VendorDirectFulfillmentOrdersApi - functional programming interface
|
|
151
|
-
* @export
|
|
152
150
|
*/
|
|
153
151
|
export const VendorDirectFulfillmentOrdersApiFp = function (configuration) {
|
|
154
152
|
const localVarAxiosParamCreator = VendorDirectFulfillmentOrdersApiAxiosParamCreator(configuration);
|
|
@@ -200,7 +198,6 @@ export const VendorDirectFulfillmentOrdersApiFp = function (configuration) {
|
|
|
200
198
|
};
|
|
201
199
|
/**
|
|
202
200
|
* VendorDirectFulfillmentOrdersApi - factory interface
|
|
203
|
-
* @export
|
|
204
201
|
*/
|
|
205
202
|
export const VendorDirectFulfillmentOrdersApiFactory = function (configuration, basePath, axios) {
|
|
206
203
|
const localVarFp = VendorDirectFulfillmentOrdersApiFp(configuration);
|
|
@@ -236,9 +233,6 @@ export const VendorDirectFulfillmentOrdersApiFactory = function (configuration,
|
|
|
236
233
|
};
|
|
237
234
|
/**
|
|
238
235
|
* VendorDirectFulfillmentOrdersApi - object-oriented interface
|
|
239
|
-
* @export
|
|
240
|
-
* @class VendorDirectFulfillmentOrdersApi
|
|
241
|
-
* @extends {BaseAPI}
|
|
242
236
|
*/
|
|
243
237
|
export class VendorDirectFulfillmentOrdersApi extends BaseAPI {
|
|
244
238
|
/**
|
|
@@ -246,7 +240,6 @@ export class VendorDirectFulfillmentOrdersApi extends BaseAPI {
|
|
|
246
240
|
* @param {VendorDirectFulfillmentOrdersApiGetOrderRequest} requestParameters Request parameters.
|
|
247
241
|
* @param {*} [options] Override http request option.
|
|
248
242
|
* @throws {RequiredError}
|
|
249
|
-
* @memberof VendorDirectFulfillmentOrdersApi
|
|
250
243
|
*/
|
|
251
244
|
getOrder(requestParameters, options) {
|
|
252
245
|
return VendorDirectFulfillmentOrdersApiFp(this.configuration).getOrder(requestParameters.purchaseOrderNumber, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -256,7 +249,6 @@ export class VendorDirectFulfillmentOrdersApi extends BaseAPI {
|
|
|
256
249
|
* @param {VendorDirectFulfillmentOrdersApiGetOrdersRequest} requestParameters Request parameters.
|
|
257
250
|
* @param {*} [options] Override http request option.
|
|
258
251
|
* @throws {RequiredError}
|
|
259
|
-
* @memberof VendorDirectFulfillmentOrdersApi
|
|
260
252
|
*/
|
|
261
253
|
getOrders(requestParameters, options) {
|
|
262
254
|
return VendorDirectFulfillmentOrdersApiFp(this.configuration).getOrders(requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.shipFromPartyId, requestParameters.status, requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.includeDetails, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -266,24 +258,17 @@ export class VendorDirectFulfillmentOrdersApi extends BaseAPI {
|
|
|
266
258
|
* @param {VendorDirectFulfillmentOrdersApiSubmitAcknowledgementRequest} requestParameters Request parameters.
|
|
267
259
|
* @param {*} [options] Override http request option.
|
|
268
260
|
* @throws {RequiredError}
|
|
269
|
-
* @memberof VendorDirectFulfillmentOrdersApi
|
|
270
261
|
*/
|
|
271
262
|
submitAcknowledgement(requestParameters, options) {
|
|
272
263
|
return VendorDirectFulfillmentOrdersApiFp(this.configuration).submitAcknowledgement(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
273
264
|
}
|
|
274
265
|
}
|
|
275
|
-
/**
|
|
276
|
-
* @export
|
|
277
|
-
*/
|
|
278
266
|
export const GetOrdersStatusEnum = {
|
|
279
267
|
New: 'NEW',
|
|
280
268
|
Shipped: 'SHIPPED',
|
|
281
269
|
Accepted: 'ACCEPTED',
|
|
282
270
|
Cancelled: 'CANCELLED'
|
|
283
271
|
};
|
|
284
|
-
/**
|
|
285
|
-
* @export
|
|
286
|
-
*/
|
|
287
272
|
export const GetOrdersSortOrderEnum = {
|
|
288
273
|
Asc: 'ASC',
|
|
289
274
|
Desc: 'DESC'
|
|
@@ -13,21 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
15
|
export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
16
|
export const COLLECTION_FORMATS = {
|
|
21
17
|
csv: ",",
|
|
22
18
|
ssv: " ",
|
|
23
19
|
tsv: "\t",
|
|
24
20
|
pipes: "|",
|
|
25
21
|
};
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @class BaseAPI
|
|
30
|
-
*/
|
|
31
22
|
export class BaseAPI {
|
|
32
23
|
basePath;
|
|
33
24
|
axios;
|
|
@@ -42,12 +33,6 @@ export class BaseAPI {
|
|
|
42
33
|
}
|
|
43
34
|
}
|
|
44
35
|
;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
36
|
export class RequiredError extends Error {
|
|
52
37
|
field;
|
|
53
38
|
constructor(field, msg) {
|
|
@@ -56,8 +41,4 @@ export class RequiredError extends Error {
|
|
|
56
41
|
this.name = "RequiredError";
|
|
57
42
|
}
|
|
58
43
|
}
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @export
|
|
62
|
-
*/
|
|
63
44
|
export const operationServerMap = {};
|
|
@@ -12,25 +12,16 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { RequiredError } from "./base";
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export const DUMMY_BASE_URL = 'https://example.com';
|
|
20
16
|
/**
|
|
21
17
|
*
|
|
22
18
|
* @throws {RequiredError}
|
|
23
|
-
* @export
|
|
24
19
|
*/
|
|
25
20
|
export const assertParamExists = function (functionName, paramName, paramValue) {
|
|
26
21
|
if (paramValue === null || paramValue === undefined) {
|
|
27
22
|
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
28
23
|
}
|
|
29
24
|
};
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
25
|
export const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
35
26
|
if (configuration && configuration.apiKey) {
|
|
36
27
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -39,19 +30,11 @@ export const setApiKeyToObject = async function (object, keyParamName, configura
|
|
|
39
30
|
object[keyParamName] = localVarApiKeyValue;
|
|
40
31
|
}
|
|
41
32
|
};
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @export
|
|
45
|
-
*/
|
|
46
33
|
export const setBasicAuthToObject = function (object, configuration) {
|
|
47
34
|
if (configuration && (configuration.username || configuration.password)) {
|
|
48
35
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
49
36
|
}
|
|
50
37
|
};
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
*/
|
|
55
38
|
export const setBearerAuthToObject = async function (object, configuration) {
|
|
56
39
|
if (configuration && configuration.accessToken) {
|
|
57
40
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
@@ -60,10 +43,6 @@ export const setBearerAuthToObject = async function (object, configuration) {
|
|
|
60
43
|
object["Authorization"] = "Bearer " + accessToken;
|
|
61
44
|
}
|
|
62
45
|
};
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @export
|
|
66
|
-
*/
|
|
67
46
|
export const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
68
47
|
if (configuration && configuration.accessToken) {
|
|
69
48
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
@@ -92,19 +71,11 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
92
71
|
}
|
|
93
72
|
}
|
|
94
73
|
}
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @export
|
|
98
|
-
*/
|
|
99
74
|
export const setSearchParams = function (url, ...objects) {
|
|
100
75
|
const searchParams = new URLSearchParams(url.search);
|
|
101
76
|
setFlattenedQueryParams(searchParams, objects);
|
|
102
77
|
url.search = searchParams.toString();
|
|
103
78
|
};
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @export
|
|
107
|
-
*/
|
|
108
79
|
export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
109
80
|
const nonString = typeof value !== 'string';
|
|
110
81
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
@@ -114,17 +85,9 @@ export const serializeDataIfNeeded = function (value, requestOptions, configurat
|
|
|
114
85
|
? JSON.stringify(value !== undefined ? value : {})
|
|
115
86
|
: (value || "");
|
|
116
87
|
};
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @export
|
|
120
|
-
*/
|
|
121
88
|
export const toPathString = function (url) {
|
|
122
89
|
return url.pathname + url.search + url.hash;
|
|
123
90
|
};
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @export
|
|
127
|
-
*/
|
|
128
91
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
129
92
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
130
93
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
@@ -15,49 +15,32 @@ export class Configuration {
|
|
|
15
15
|
/**
|
|
16
16
|
* parameter for apiKey security
|
|
17
17
|
* @param name security name
|
|
18
|
-
* @memberof Configuration
|
|
19
18
|
*/
|
|
20
19
|
apiKey;
|
|
21
20
|
/**
|
|
22
21
|
* parameter for basic security
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof Configuration
|
|
26
22
|
*/
|
|
27
23
|
username;
|
|
28
24
|
/**
|
|
29
25
|
* parameter for basic security
|
|
30
|
-
*
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof Configuration
|
|
33
26
|
*/
|
|
34
27
|
password;
|
|
35
28
|
/**
|
|
36
29
|
* parameter for oauth2 security
|
|
37
30
|
* @param name security name
|
|
38
31
|
* @param scopes oauth2 scope
|
|
39
|
-
* @memberof Configuration
|
|
40
32
|
*/
|
|
41
33
|
accessToken;
|
|
42
34
|
/**
|
|
43
35
|
* override base path
|
|
44
|
-
*
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof Configuration
|
|
47
36
|
*/
|
|
48
37
|
basePath;
|
|
49
38
|
/**
|
|
50
39
|
* override server index
|
|
51
|
-
*
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof Configuration
|
|
54
40
|
*/
|
|
55
41
|
serverIndex;
|
|
56
42
|
/**
|
|
57
43
|
* base options for axios calls
|
|
58
|
-
*
|
|
59
|
-
* @type {any}
|
|
60
|
-
* @memberof Configuration
|
|
61
44
|
*/
|
|
62
45
|
baseOptions;
|
|
63
46
|
/**
|
|
@@ -19,7 +19,6 @@ import type { SubmitAcknowledgementRequest } from '../models';
|
|
|
19
19
|
import type { SubmitAcknowledgementResponse } from '../models';
|
|
20
20
|
/**
|
|
21
21
|
* VendorDirectFulfillmentOrdersApi - axios parameter creator
|
|
22
|
-
* @export
|
|
23
22
|
*/
|
|
24
23
|
export declare const VendorDirectFulfillmentOrdersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25
24
|
/**
|
|
@@ -53,7 +52,6 @@ export declare const VendorDirectFulfillmentOrdersApiAxiosParamCreator: (configu
|
|
|
53
52
|
};
|
|
54
53
|
/**
|
|
55
54
|
* VendorDirectFulfillmentOrdersApi - functional programming interface
|
|
56
|
-
* @export
|
|
57
55
|
*/
|
|
58
56
|
export declare const VendorDirectFulfillmentOrdersApiFp: (configuration?: Configuration) => {
|
|
59
57
|
/**
|
|
@@ -87,7 +85,6 @@ export declare const VendorDirectFulfillmentOrdersApiFp: (configuration?: Config
|
|
|
87
85
|
};
|
|
88
86
|
/**
|
|
89
87
|
* VendorDirectFulfillmentOrdersApi - factory interface
|
|
90
|
-
* @export
|
|
91
88
|
*/
|
|
92
89
|
export declare const VendorDirectFulfillmentOrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
93
90
|
/**
|
|
@@ -114,90 +111,61 @@ export declare const VendorDirectFulfillmentOrdersApiFactory: (configuration?: C
|
|
|
114
111
|
};
|
|
115
112
|
/**
|
|
116
113
|
* Request parameters for getOrder operation in VendorDirectFulfillmentOrdersApi.
|
|
117
|
-
* @export
|
|
118
|
-
* @interface VendorDirectFulfillmentOrdersApiGetOrderRequest
|
|
119
114
|
*/
|
|
120
115
|
export interface VendorDirectFulfillmentOrdersApiGetOrderRequest {
|
|
121
116
|
/**
|
|
122
117
|
* The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code.
|
|
123
|
-
* @type {string}
|
|
124
|
-
* @memberof VendorDirectFulfillmentOrdersApiGetOrder
|
|
125
118
|
*/
|
|
126
119
|
readonly purchaseOrderNumber: string;
|
|
127
120
|
}
|
|
128
121
|
/**
|
|
129
122
|
* Request parameters for getOrders operation in VendorDirectFulfillmentOrdersApi.
|
|
130
|
-
* @export
|
|
131
|
-
* @interface VendorDirectFulfillmentOrdersApiGetOrdersRequest
|
|
132
123
|
*/
|
|
133
124
|
export interface VendorDirectFulfillmentOrdersApiGetOrdersRequest {
|
|
134
125
|
/**
|
|
135
126
|
* Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
|
|
136
|
-
* @type {string}
|
|
137
|
-
* @memberof VendorDirectFulfillmentOrdersApiGetOrders
|
|
138
127
|
*/
|
|
139
128
|
readonly createdAfter: string;
|
|
140
129
|
/**
|
|
141
130
|
* Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
|
|
142
|
-
* @type {string}
|
|
143
|
-
* @memberof VendorDirectFulfillmentOrdersApiGetOrders
|
|
144
131
|
*/
|
|
145
132
|
readonly createdBefore: string;
|
|
146
133
|
/**
|
|
147
134
|
* The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
|
|
148
|
-
* @type {string}
|
|
149
|
-
* @memberof VendorDirectFulfillmentOrdersApiGetOrders
|
|
150
135
|
*/
|
|
151
136
|
readonly shipFromPartyId?: string;
|
|
152
137
|
/**
|
|
153
138
|
* Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
|
|
154
|
-
* @type {'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED'}
|
|
155
|
-
* @memberof VendorDirectFulfillmentOrdersApiGetOrders
|
|
156
139
|
*/
|
|
157
140
|
readonly status?: GetOrdersStatusEnum;
|
|
158
141
|
/**
|
|
159
142
|
* The limit to the number of purchase orders returned.
|
|
160
|
-
* @type {number}
|
|
161
|
-
* @memberof VendorDirectFulfillmentOrdersApiGetOrders
|
|
162
143
|
*/
|
|
163
144
|
readonly limit?: number;
|
|
164
145
|
/**
|
|
165
146
|
* Sort the list in ascending or descending order by order creation date.
|
|
166
|
-
* @type {'ASC' | 'DESC'}
|
|
167
|
-
* @memberof VendorDirectFulfillmentOrdersApiGetOrders
|
|
168
147
|
*/
|
|
169
148
|
readonly sortOrder?: GetOrdersSortOrderEnum;
|
|
170
149
|
/**
|
|
171
150
|
* Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.
|
|
172
|
-
* @type {string}
|
|
173
|
-
* @memberof VendorDirectFulfillmentOrdersApiGetOrders
|
|
174
151
|
*/
|
|
175
152
|
readonly nextToken?: string;
|
|
176
153
|
/**
|
|
177
154
|
* When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.
|
|
178
|
-
* @type {boolean}
|
|
179
|
-
* @memberof VendorDirectFulfillmentOrdersApiGetOrders
|
|
180
155
|
*/
|
|
181
156
|
readonly includeDetails?: boolean;
|
|
182
157
|
}
|
|
183
158
|
/**
|
|
184
159
|
* Request parameters for submitAcknowledgement operation in VendorDirectFulfillmentOrdersApi.
|
|
185
|
-
* @export
|
|
186
|
-
* @interface VendorDirectFulfillmentOrdersApiSubmitAcknowledgementRequest
|
|
187
160
|
*/
|
|
188
161
|
export interface VendorDirectFulfillmentOrdersApiSubmitAcknowledgementRequest {
|
|
189
162
|
/**
|
|
190
163
|
* The request body containing the acknowledgement to an order.
|
|
191
|
-
* @type {SubmitAcknowledgementRequest}
|
|
192
|
-
* @memberof VendorDirectFulfillmentOrdersApiSubmitAcknowledgement
|
|
193
164
|
*/
|
|
194
165
|
readonly body: SubmitAcknowledgementRequest;
|
|
195
166
|
}
|
|
196
167
|
/**
|
|
197
168
|
* VendorDirectFulfillmentOrdersApi - object-oriented interface
|
|
198
|
-
* @export
|
|
199
|
-
* @class VendorDirectFulfillmentOrdersApi
|
|
200
|
-
* @extends {BaseAPI}
|
|
201
169
|
*/
|
|
202
170
|
export declare class VendorDirectFulfillmentOrdersApi extends BaseAPI {
|
|
203
171
|
/**
|
|
@@ -205,7 +173,6 @@ export declare class VendorDirectFulfillmentOrdersApi extends BaseAPI {
|
|
|
205
173
|
* @param {VendorDirectFulfillmentOrdersApiGetOrderRequest} requestParameters Request parameters.
|
|
206
174
|
* @param {*} [options] Override http request option.
|
|
207
175
|
* @throws {RequiredError}
|
|
208
|
-
* @memberof VendorDirectFulfillmentOrdersApi
|
|
209
176
|
*/
|
|
210
177
|
getOrder(requestParameters: VendorDirectFulfillmentOrdersApiGetOrderRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetOrderResponse, any>>;
|
|
211
178
|
/**
|
|
@@ -213,7 +180,6 @@ export declare class VendorDirectFulfillmentOrdersApi extends BaseAPI {
|
|
|
213
180
|
* @param {VendorDirectFulfillmentOrdersApiGetOrdersRequest} requestParameters Request parameters.
|
|
214
181
|
* @param {*} [options] Override http request option.
|
|
215
182
|
* @throws {RequiredError}
|
|
216
|
-
* @memberof VendorDirectFulfillmentOrdersApi
|
|
217
183
|
*/
|
|
218
184
|
getOrders(requestParameters: VendorDirectFulfillmentOrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetOrdersResponse, any>>;
|
|
219
185
|
/**
|
|
@@ -221,13 +187,9 @@ export declare class VendorDirectFulfillmentOrdersApi extends BaseAPI {
|
|
|
221
187
|
* @param {VendorDirectFulfillmentOrdersApiSubmitAcknowledgementRequest} requestParameters Request parameters.
|
|
222
188
|
* @param {*} [options] Override http request option.
|
|
223
189
|
* @throws {RequiredError}
|
|
224
|
-
* @memberof VendorDirectFulfillmentOrdersApi
|
|
225
190
|
*/
|
|
226
191
|
submitAcknowledgement(requestParameters: VendorDirectFulfillmentOrdersApiSubmitAcknowledgementRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<SubmitAcknowledgementResponse, any>>;
|
|
227
192
|
}
|
|
228
|
-
/**
|
|
229
|
-
* @export
|
|
230
|
-
*/
|
|
231
193
|
export declare const GetOrdersStatusEnum: {
|
|
232
194
|
readonly New: "NEW";
|
|
233
195
|
readonly Shipped: "SHIPPED";
|
|
@@ -235,9 +197,6 @@ export declare const GetOrdersStatusEnum: {
|
|
|
235
197
|
readonly Cancelled: "CANCELLED";
|
|
236
198
|
};
|
|
237
199
|
export type GetOrdersStatusEnum = typeof GetOrdersStatusEnum[keyof typeof GetOrdersStatusEnum];
|
|
238
|
-
/**
|
|
239
|
-
* @export
|
|
240
|
-
*/
|
|
241
200
|
export declare const GetOrdersSortOrderEnum: {
|
|
242
201
|
readonly Asc: "ASC";
|
|
243
202
|
readonly Desc: "DESC";
|