@sp-api-sdk/fulfillment-outbound-api-2020-07-01 2.3.1 → 2.4.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.
@@ -153,11 +153,10 @@ const FbaOutboundApiAxiosParamCreator = function (configuration) {
153
153
  * @param {string} marketplaceId The marketplace for which to return a list of the inventory that is eligible for the specified feature.
154
154
  * @param {string} featureName The name of the feature for which to return a list of eligible inventory.
155
155
  * @param {string} [nextToken] A string token returned in the response to your previous request that is used to return the next response page. A value of null will return the first page.
156
- * @param {string} [queryStartDate] A date that you can use to select inventory that has been updated since a specified date. An update is defined as any change in feature-enabled inventory availability. The date must be in the format yyyy-MM-ddTHH:mm:ss.sssZ
157
156
  * @param {*} [options] Override http request option.
158
157
  * @throws {RequiredError}
159
158
  */
160
- getFeatureInventory: async (marketplaceId, featureName, nextToken, queryStartDate, options = {}) => {
159
+ getFeatureInventory: async (marketplaceId, featureName, nextToken, options = {}) => {
161
160
  // verify required parameter 'marketplaceId' is not null or undefined
162
161
  (0, common_1.assertParamExists)('getFeatureInventory', 'marketplaceId', marketplaceId);
163
162
  // verify required parameter 'featureName' is not null or undefined
@@ -179,11 +178,6 @@ const FbaOutboundApiAxiosParamCreator = function (configuration) {
179
178
  if (nextToken !== undefined) {
180
179
  localVarQueryParameter['nextToken'] = nextToken;
181
180
  }
182
- if (queryStartDate !== undefined) {
183
- localVarQueryParameter['queryStartDate'] = (queryStartDate instanceof Date) ?
184
- queryStartDate.toISOString() :
185
- queryStartDate;
186
- }
187
181
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
188
182
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
189
183
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -553,12 +547,11 @@ const FbaOutboundApiFp = function (configuration) {
553
547
  * @param {string} marketplaceId The marketplace for which to return a list of the inventory that is eligible for the specified feature.
554
548
  * @param {string} featureName The name of the feature for which to return a list of eligible inventory.
555
549
  * @param {string} [nextToken] A string token returned in the response to your previous request that is used to return the next response page. A value of null will return the first page.
556
- * @param {string} [queryStartDate] A date that you can use to select inventory that has been updated since a specified date. An update is defined as any change in feature-enabled inventory availability. The date must be in the format yyyy-MM-ddTHH:mm:ss.sssZ
557
550
  * @param {*} [options] Override http request option.
558
551
  * @throws {RequiredError}
559
552
  */
560
- async getFeatureInventory(marketplaceId, featureName, nextToken, queryStartDate, options) {
561
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatureInventory(marketplaceId, featureName, nextToken, queryStartDate, options);
553
+ async getFeatureInventory(marketplaceId, featureName, nextToken, options) {
554
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatureInventory(marketplaceId, featureName, nextToken, options);
562
555
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
563
556
  const localVarOperationServerBasePath = base_1.operationServerMap['FbaOutboundApi.getFeatureInventory']?.[localVarOperationServerIndex]?.url;
564
557
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -732,7 +725,7 @@ const FbaOutboundApiFactory = function (configuration, basePath, axios) {
732
725
  * @throws {RequiredError}
733
726
  */
734
727
  getFeatureInventory(requestParameters, options) {
735
- return localVarFp.getFeatureInventory(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.nextToken, requestParameters.queryStartDate, options).then((request) => request(axios, basePath));
728
+ return localVarFp.getFeatureInventory(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.nextToken, options).then((request) => request(axios, basePath));
736
729
  },
737
730
  /**
738
731
  * Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn\'t eligible, the response will contain an empty skuInfo object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
@@ -873,7 +866,7 @@ class FbaOutboundApi extends base_1.BaseAPI {
873
866
  * @memberof FbaOutboundApi
874
867
  */
875
868
  getFeatureInventory(requestParameters, options) {
876
- return (0, exports.FbaOutboundApiFp)(this.configuration).getFeatureInventory(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.nextToken, requestParameters.queryStartDate, options).then((request) => request(this.axios, this.basePath));
869
+ return (0, exports.FbaOutboundApiFp)(this.configuration).getFeatureInventory(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
877
870
  }
878
871
  /**
879
872
  * Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn\'t eligible, the response will contain an empty skuInfo object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
@@ -147,11 +147,10 @@ export const FbaOutboundApiAxiosParamCreator = function (configuration) {
147
147
  * @param {string} marketplaceId The marketplace for which to return a list of the inventory that is eligible for the specified feature.
148
148
  * @param {string} featureName The name of the feature for which to return a list of eligible inventory.
149
149
  * @param {string} [nextToken] A string token returned in the response to your previous request that is used to return the next response page. A value of null will return the first page.
150
- * @param {string} [queryStartDate] A date that you can use to select inventory that has been updated since a specified date. An update is defined as any change in feature-enabled inventory availability. The date must be in the format yyyy-MM-ddTHH:mm:ss.sssZ
151
150
  * @param {*} [options] Override http request option.
152
151
  * @throws {RequiredError}
153
152
  */
154
- getFeatureInventory: async (marketplaceId, featureName, nextToken, queryStartDate, options = {}) => {
153
+ getFeatureInventory: async (marketplaceId, featureName, nextToken, options = {}) => {
155
154
  // verify required parameter 'marketplaceId' is not null or undefined
156
155
  assertParamExists('getFeatureInventory', 'marketplaceId', marketplaceId);
157
156
  // verify required parameter 'featureName' is not null or undefined
@@ -173,11 +172,6 @@ export const FbaOutboundApiAxiosParamCreator = function (configuration) {
173
172
  if (nextToken !== undefined) {
174
173
  localVarQueryParameter['nextToken'] = nextToken;
175
174
  }
176
- if (queryStartDate !== undefined) {
177
- localVarQueryParameter['queryStartDate'] = (queryStartDate instanceof Date) ?
178
- queryStartDate.toISOString() :
179
- queryStartDate;
180
- }
181
175
  setSearchParams(localVarUrlObj, localVarQueryParameter);
182
176
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
177
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -546,12 +540,11 @@ export const FbaOutboundApiFp = function (configuration) {
546
540
  * @param {string} marketplaceId The marketplace for which to return a list of the inventory that is eligible for the specified feature.
547
541
  * @param {string} featureName The name of the feature for which to return a list of eligible inventory.
548
542
  * @param {string} [nextToken] A string token returned in the response to your previous request that is used to return the next response page. A value of null will return the first page.
549
- * @param {string} [queryStartDate] A date that you can use to select inventory that has been updated since a specified date. An update is defined as any change in feature-enabled inventory availability. The date must be in the format yyyy-MM-ddTHH:mm:ss.sssZ
550
543
  * @param {*} [options] Override http request option.
551
544
  * @throws {RequiredError}
552
545
  */
553
- async getFeatureInventory(marketplaceId, featureName, nextToken, queryStartDate, options) {
554
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatureInventory(marketplaceId, featureName, nextToken, queryStartDate, options);
546
+ async getFeatureInventory(marketplaceId, featureName, nextToken, options) {
547
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatureInventory(marketplaceId, featureName, nextToken, options);
555
548
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
556
549
  const localVarOperationServerBasePath = operationServerMap['FbaOutboundApi.getFeatureInventory']?.[localVarOperationServerIndex]?.url;
557
550
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -724,7 +717,7 @@ export const FbaOutboundApiFactory = function (configuration, basePath, axios) {
724
717
  * @throws {RequiredError}
725
718
  */
726
719
  getFeatureInventory(requestParameters, options) {
727
- return localVarFp.getFeatureInventory(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.nextToken, requestParameters.queryStartDate, options).then((request) => request(axios, basePath));
720
+ return localVarFp.getFeatureInventory(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.nextToken, options).then((request) => request(axios, basePath));
728
721
  },
729
722
  /**
730
723
  * Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn\'t eligible, the response will contain an empty skuInfo object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
@@ -864,7 +857,7 @@ export class FbaOutboundApi extends BaseAPI {
864
857
  * @memberof FbaOutboundApi
865
858
  */
866
859
  getFeatureInventory(requestParameters, options) {
867
- return FbaOutboundApiFp(this.configuration).getFeatureInventory(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.nextToken, requestParameters.queryStartDate, options).then((request) => request(this.axios, this.basePath));
860
+ return FbaOutboundApiFp(this.configuration).getFeatureInventory(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
868
861
  }
869
862
  /**
870
863
  * Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn\'t eligible, the response will contain an empty skuInfo object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
@@ -72,11 +72,10 @@ export declare const FbaOutboundApiAxiosParamCreator: (configuration?: Configura
72
72
  * @param {string} marketplaceId The marketplace for which to return a list of the inventory that is eligible for the specified feature.
73
73
  * @param {string} featureName The name of the feature for which to return a list of eligible inventory.
74
74
  * @param {string} [nextToken] A string token returned in the response to your previous request that is used to return the next response page. A value of null will return the first page.
75
- * @param {string} [queryStartDate] A date that you can use to select inventory that has been updated since a specified date. An update is defined as any change in feature-enabled inventory availability. The date must be in the format yyyy-MM-ddTHH:mm:ss.sssZ
76
75
  * @param {*} [options] Override http request option.
77
76
  * @throws {RequiredError}
78
77
  */
79
- getFeatureInventory: (marketplaceId: string, featureName: string, nextToken?: string, queryStartDate?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
78
+ getFeatureInventory: (marketplaceId: string, featureName: string, nextToken?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
80
79
  /**
81
80
  * Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn\'t eligible, the response will contain an empty skuInfo object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
82
81
  * @param {string} marketplaceId The marketplace for which to return the count.
@@ -188,11 +187,10 @@ export declare const FbaOutboundApiFp: (configuration?: Configuration) => {
188
187
  * @param {string} marketplaceId The marketplace for which to return a list of the inventory that is eligible for the specified feature.
189
188
  * @param {string} featureName The name of the feature for which to return a list of eligible inventory.
190
189
  * @param {string} [nextToken] A string token returned in the response to your previous request that is used to return the next response page. A value of null will return the first page.
191
- * @param {string} [queryStartDate] A date that you can use to select inventory that has been updated since a specified date. An update is defined as any change in feature-enabled inventory availability. The date must be in the format yyyy-MM-ddTHH:mm:ss.sssZ
192
190
  * @param {*} [options] Override http request option.
193
191
  * @throws {RequiredError}
194
192
  */
195
- getFeatureInventory(marketplaceId: string, featureName: string, nextToken?: string, queryStartDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFeatureInventoryResponse>>;
193
+ getFeatureInventory(marketplaceId: string, featureName: string, nextToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFeatureInventoryResponse>>;
196
194
  /**
197
195
  * Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn\'t eligible, the response will contain an empty skuInfo object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
198
196
  * @param {string} marketplaceId The marketplace for which to return the count.
@@ -451,12 +449,6 @@ export interface FbaOutboundApiGetFeatureInventoryRequest {
451
449
  * @memberof FbaOutboundApiGetFeatureInventory
452
450
  */
453
451
  readonly nextToken?: string;
454
- /**
455
- * A date that you can use to select inventory that has been updated since a specified date. An update is defined as any change in feature-enabled inventory availability. The date must be in the format yyyy-MM-ddTHH:mm:ss.sssZ
456
- * @type {string}
457
- * @memberof FbaOutboundApiGetFeatureInventory
458
- */
459
- readonly queryStartDate?: string;
460
452
  }
461
453
  /**
462
454
  * Request parameters for getFeatureSKU operation in FbaOutboundApi.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/fulfillment-outbound-api-2020-07-01",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders.",
5
- "version": "2.3.1",
5
+ "version": "2.4.1",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.0.10",
21
+ "@sp-api-sdk/common": "2.0.11",
22
22
  "axios": "^1.7.2"
23
23
  },
24
24
  "repository": {
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "fulfillment outbound api"
42
42
  ],
43
- "gitHead": "c646647a684e625c54e35ff8c141791efd60417c"
43
+ "gitHead": "6f3dfd53cad528b970ec29dfd12b0105b351464b"
44
44
  }