@sp-api-sdk/vendor-direct-fulfillment-inventory-api-v1 1.8.3 → 1.8.6
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/src/api-model/api/update-inventory-api.js +1 -1
- package/dist/es/src/api-model/api/update-inventory-api.js +1 -1
- package/dist/types/src/api-model/api/update-inventory-api.d.ts +7 -7
- package/dist/types/src/api-model/base.d.ts +2 -2
- package/dist/types/src/api-model/common.d.ts +7 -7
- package/dist/types/src/api-model/models/inventory-update.d.ts +3 -3
- package/dist/types/src/api-model/models/item-details.d.ts +4 -4
- package/dist/types/src/api-model/models/item-quantity.d.ts +2 -2
- package/dist/types/src/api-model/models/model-error.d.ts +3 -3
- package/dist/types/src/api-model/models/party-identification.d.ts +1 -1
- package/dist/types/src/api-model/models/submit-inventory-update-request.d.ts +1 -1
- package/dist/types/src/api-model/models/submit-inventory-update-response.d.ts +2 -2
- package/dist/types/src/api-model/models/transaction-reference.d.ts +1 -1
- package/package.json +4 -4
|
@@ -51,7 +51,7 @@ const UpdateInventoryApiAxiosParamCreator = function (configuration) {
|
|
|
51
51
|
const localVarHeaderParameter = {};
|
|
52
52
|
const localVarQueryParameter = {};
|
|
53
53
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
54
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter
|
|
54
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
55
55
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56
56
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
57
57
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
@@ -47,7 +47,7 @@ export const UpdateInventoryApiAxiosParamCreator = function (configuration) {
|
|
|
47
47
|
const localVarHeaderParameter = {};
|
|
48
48
|
const localVarQueryParameter = {};
|
|
49
49
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
50
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
50
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
51
51
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
52
52
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
53
53
|
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AxiosPromise, AxiosInstance } from 'axios';
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { SubmitInventoryUpdateRequest } from '../models';
|
|
@@ -18,7 +18,7 @@ import { SubmitInventoryUpdateResponse } from '../models';
|
|
|
18
18
|
* UpdateInventoryApi - axios parameter creator
|
|
19
19
|
* @export
|
|
20
20
|
*/
|
|
21
|
-
export declare const UpdateInventoryApiAxiosParamCreator: (configuration?: Configuration
|
|
21
|
+
export declare const UpdateInventoryApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
22
|
/**
|
|
23
23
|
* Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
24
24
|
* @param {string} warehouseId Identifier for the warehouse for which to update inventory.
|
|
@@ -26,13 +26,13 @@ export declare const UpdateInventoryApiAxiosParamCreator: (configuration?: Confi
|
|
|
26
26
|
* @param {*} [options] Override http request option.
|
|
27
27
|
* @throws {RequiredError}
|
|
28
28
|
*/
|
|
29
|
-
submitInventoryUpdate: (warehouseId: string, body: SubmitInventoryUpdateRequest, options?:
|
|
29
|
+
submitInventoryUpdate: (warehouseId: string, body: SubmitInventoryUpdateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* UpdateInventoryApi - functional programming interface
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export declare const UpdateInventoryApiFp: (configuration?: Configuration
|
|
35
|
+
export declare const UpdateInventoryApiFp: (configuration?: Configuration) => {
|
|
36
36
|
/**
|
|
37
37
|
* Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
38
38
|
* @param {string} warehouseId Identifier for the warehouse for which to update inventory.
|
|
@@ -40,13 +40,13 @@ export declare const UpdateInventoryApiFp: (configuration?: Configuration | unde
|
|
|
40
40
|
* @param {*} [options] Override http request option.
|
|
41
41
|
* @throws {RequiredError}
|
|
42
42
|
*/
|
|
43
|
-
submitInventoryUpdate(warehouseId: string, body: SubmitInventoryUpdateRequest, options?:
|
|
43
|
+
submitInventoryUpdate(warehouseId: string, body: SubmitInventoryUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitInventoryUpdateResponse>>;
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
46
|
* UpdateInventoryApi - factory interface
|
|
47
47
|
* @export
|
|
48
48
|
*/
|
|
49
|
-
export declare const UpdateInventoryApiFactory: (configuration?: Configuration
|
|
49
|
+
export declare const UpdateInventoryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
50
50
|
/**
|
|
51
51
|
* Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
52
52
|
* @param {string} warehouseId Identifier for the warehouse for which to update inventory.
|
|
@@ -89,5 +89,5 @@ export declare class UpdateInventoryApi extends BaseAPI {
|
|
|
89
89
|
* @throws {RequiredError}
|
|
90
90
|
* @memberof UpdateInventoryApi
|
|
91
91
|
*/
|
|
92
|
-
submitInventoryUpdate(requestParameters: UpdateInventoryApiSubmitInventoryUpdateRequest, options?:
|
|
92
|
+
submitInventoryUpdate(requestParameters: UpdateInventoryApiSubmitInventoryUpdateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitInventoryUpdateResponse, any>>;
|
|
93
93
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Configuration } from "./configuration";
|
|
13
|
-
import { AxiosInstance } from 'axios';
|
|
13
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface RequestArgs {
|
|
31
31
|
url: string;
|
|
32
|
-
options:
|
|
32
|
+
options: AxiosRequestConfig;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Configuration } from "./configuration";
|
|
13
13
|
import { RequestArgs } from "./base";
|
|
14
|
-
import { AxiosInstance } from 'axios';
|
|
14
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -27,22 +27,22 @@ export declare const assertParamExists: (functionName: string, paramName: string
|
|
|
27
27
|
*
|
|
28
28
|
* @export
|
|
29
29
|
*/
|
|
30
|
-
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration
|
|
30
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration
|
|
35
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
|
-
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration
|
|
40
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @export
|
|
44
44
|
*/
|
|
45
|
-
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration
|
|
45
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @export
|
|
@@ -52,7 +52,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
|
52
52
|
*
|
|
53
53
|
* @export
|
|
54
54
|
*/
|
|
55
|
-
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration
|
|
55
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @export
|
|
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -22,17 +22,17 @@ export interface InventoryUpdate {
|
|
|
22
22
|
* @type {PartyIdentification}
|
|
23
23
|
* @memberof InventoryUpdate
|
|
24
24
|
*/
|
|
25
|
-
sellingParty: PartyIdentification;
|
|
25
|
+
'sellingParty': PartyIdentification;
|
|
26
26
|
/**
|
|
27
27
|
* When true, this request contains a full feed. Otherwise, this request contains a partial feed. When sending a full feed, you must send information about all items in the warehouse. Any items not in the full feed are updated as not available. When sending a partial feed, only include the items that need an update to inventory. The status of other items will remain unchanged.
|
|
28
28
|
* @type {boolean}
|
|
29
29
|
* @memberof InventoryUpdate
|
|
30
30
|
*/
|
|
31
|
-
isFullUpdate: boolean;
|
|
31
|
+
'isFullUpdate': boolean;
|
|
32
32
|
/**
|
|
33
33
|
* A list of inventory items with updated details, including quantity available.
|
|
34
34
|
* @type {Array<ItemDetails>}
|
|
35
35
|
* @memberof InventoryUpdate
|
|
36
36
|
*/
|
|
37
|
-
items: Array<ItemDetails>;
|
|
37
|
+
'items': Array<ItemDetails>;
|
|
38
38
|
}
|
|
@@ -21,23 +21,23 @@ export interface ItemDetails {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof ItemDetails
|
|
23
23
|
*/
|
|
24
|
-
buyerProductIdentifier?: string;
|
|
24
|
+
'buyerProductIdentifier'?: string;
|
|
25
25
|
/**
|
|
26
26
|
* The vendor selected product identification of the item. Either buyerProductIdentifier or vendorProductIdentifier should be submitted.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof ItemDetails
|
|
29
29
|
*/
|
|
30
|
-
vendorProductIdentifier?: string;
|
|
30
|
+
'vendorProductIdentifier'?: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {ItemQuantity}
|
|
34
34
|
* @memberof ItemDetails
|
|
35
35
|
*/
|
|
36
|
-
availableQuantity: ItemQuantity;
|
|
36
|
+
'availableQuantity': ItemQuantity;
|
|
37
37
|
/**
|
|
38
38
|
* When true, the item is permanently unavailable.
|
|
39
39
|
* @type {boolean}
|
|
40
40
|
* @memberof ItemDetails
|
|
41
41
|
*/
|
|
42
|
-
isObsolete?: boolean;
|
|
42
|
+
'isObsolete'?: boolean;
|
|
43
43
|
}
|
|
@@ -20,11 +20,11 @@ export interface ItemQuantity {
|
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof ItemQuantity
|
|
22
22
|
*/
|
|
23
|
-
amount?: number;
|
|
23
|
+
'amount'?: number;
|
|
24
24
|
/**
|
|
25
25
|
* Unit of measure for the available quantity.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ItemQuantity
|
|
28
28
|
*/
|
|
29
|
-
unitOfMeasure: string;
|
|
29
|
+
'unitOfMeasure': string;
|
|
30
30
|
}
|
|
@@ -20,17 +20,17 @@ export interface ModelError {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ModelError
|
|
22
22
|
*/
|
|
23
|
-
code: string;
|
|
23
|
+
'code': string;
|
|
24
24
|
/**
|
|
25
25
|
* A message that describes the error condition.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ModelError
|
|
28
28
|
*/
|
|
29
|
-
message: string;
|
|
29
|
+
'message': string;
|
|
30
30
|
/**
|
|
31
31
|
* Additional details that can help the caller understand or fix the issue.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ModelError
|
|
34
34
|
*/
|
|
35
|
-
details?: string;
|
|
35
|
+
'details'?: string;
|
|
36
36
|
}
|
|
@@ -21,11 +21,11 @@ export interface SubmitInventoryUpdateResponse {
|
|
|
21
21
|
* @type {TransactionReference}
|
|
22
22
|
* @memberof SubmitInventoryUpdateResponse
|
|
23
23
|
*/
|
|
24
|
-
payload?: TransactionReference;
|
|
24
|
+
'payload'?: TransactionReference;
|
|
25
25
|
/**
|
|
26
26
|
* A list of error responses returned when a request is unsuccessful.
|
|
27
27
|
* @type {Array<Error>}
|
|
28
28
|
* @memberof SubmitInventoryUpdateResponse
|
|
29
29
|
*/
|
|
30
|
-
errors?: Array<Error>;
|
|
30
|
+
'errors'?: Array<Error>;
|
|
31
31
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/vendor-direct-fulfillment-inventory-api-v1",
|
|
3
3
|
"author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor's inventory updates.",
|
|
5
|
-
"version": "1.8.
|
|
5
|
+
"version": "1.8.6",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"test": "jest"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@sp-api-sdk/auth": "^1.9.
|
|
31
|
-
"@sp-api-sdk/common": "^1.9.
|
|
30
|
+
"@sp-api-sdk/auth": "^1.9.18",
|
|
31
|
+
"@sp-api-sdk/common": "^1.9.4",
|
|
32
32
|
"axios": "^0.27.2"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"sp sdk",
|
|
51
51
|
"vendor direct fulfillment inventory api"
|
|
52
52
|
],
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "18efdada205f63f94bd5c11e163e758adbb93257"
|
|
54
54
|
}
|