@sp-api-sdk/product-pricing-api-2022-05-01 3.2.14 → 3.3.0

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.
Files changed (37) hide show
  1. package/dist/cjs/api-model/common.js +1 -0
  2. package/dist/cjs/api-model/configuration.js +2 -2
  3. package/dist/cjs/api-model/models/competitive-summary-included-data.js +2 -1
  4. package/dist/cjs/api-model/models/condition.js +1 -1
  5. package/dist/cjs/api-model/models/featured-buying-option.js +1 -1
  6. package/dist/cjs/api-model/models/featured-offer-segment.js +1 -1
  7. package/dist/cjs/api-model/models/fulfillment-type.js +1 -1
  8. package/dist/cjs/api-model/models/http-method.js +1 -1
  9. package/dist/cjs/api-model/models/index.js +2 -0
  10. package/dist/cjs/api-model/models/item.js +15 -0
  11. package/dist/cjs/api-model/models/lowest-priced-offers-input.js +1 -1
  12. package/dist/cjs/api-model/models/offer.js +1 -1
  13. package/dist/cjs/api-model/models/prime-details.js +1 -1
  14. package/dist/cjs/api-model/models/shipping-option.js +1 -1
  15. package/dist/cjs/api-model/models/similar-items.js +15 -0
  16. package/dist/es/api-model/common.js +1 -0
  17. package/dist/es/api-model/configuration.js +2 -2
  18. package/dist/es/api-model/models/competitive-summary-included-data.js +2 -1
  19. package/dist/es/api-model/models/condition.js +1 -1
  20. package/dist/es/api-model/models/featured-buying-option.js +1 -1
  21. package/dist/es/api-model/models/featured-offer-segment.js +1 -1
  22. package/dist/es/api-model/models/fulfillment-type.js +1 -1
  23. package/dist/es/api-model/models/http-method.js +1 -1
  24. package/dist/es/api-model/models/index.js +2 -0
  25. package/dist/es/api-model/models/item.js +14 -0
  26. package/dist/es/api-model/models/lowest-priced-offers-input.js +1 -1
  27. package/dist/es/api-model/models/offer.js +1 -1
  28. package/dist/es/api-model/models/prime-details.js +1 -1
  29. package/dist/es/api-model/models/shipping-option.js +1 -1
  30. package/dist/es/api-model/models/similar-items.js +14 -0
  31. package/dist/types/api-model/common.d.ts +1 -1
  32. package/dist/types/api-model/models/competitive-summary-included-data.d.ts +1 -0
  33. package/dist/types/api-model/models/competitive-summary-response-body.d.ts +5 -0
  34. package/dist/types/api-model/models/index.d.ts +2 -0
  35. package/dist/types/api-model/models/item.d.ts +20 -0
  36. package/dist/types/api-model/models/similar-items.d.ts +21 -0
  37. package/package.json +4 -4
@@ -90,6 +90,7 @@ exports.setSearchParams = setSearchParams;
90
90
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
91
91
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
92
92
  */
93
+ // @ts-ignore
93
94
  const replaceWithSerializableTypeIfNeeded = function (key, value) {
94
95
  if (value instanceof Set) {
95
96
  return Array.from(value);
@@ -91,8 +91,8 @@ class Configuration {
91
91
  * @return True if the given MIME is JSON, false otherwise.
92
92
  */
93
93
  isJsonMime(mime) {
94
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
95
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
94
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
95
+ return mime !== null && jsonMime.test(mime);
96
96
  }
97
97
  }
98
98
  exports.Configuration = Configuration;
@@ -20,5 +20,6 @@ exports.CompetitiveSummaryIncludedData = void 0;
20
20
  exports.CompetitiveSummaryIncludedData = {
21
21
  FeaturedBuyingOptions: 'featuredBuyingOptions',
22
22
  ReferencePrices: 'referencePrices',
23
- LowestPricedOffers: 'lowestPricedOffers'
23
+ LowestPricedOffers: 'lowestPricedOffers',
24
+ SimilarItems: 'similarItems',
24
25
  };
@@ -22,5 +22,5 @@ exports.Condition = {
22
22
  Used: 'Used',
23
23
  Collectible: 'Collectible',
24
24
  Refurbished: 'Refurbished',
25
- Club: 'Club'
25
+ Club: 'Club',
26
26
  };
@@ -15,5 +15,5 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.FeaturedBuyingOptionBuyingOptionTypeEnum = void 0;
17
17
  exports.FeaturedBuyingOptionBuyingOptionTypeEnum = {
18
- New: 'New'
18
+ New: 'New',
19
19
  };
@@ -17,5 +17,5 @@ exports.FeaturedOfferSegmentCustomerMembershipEnum = void 0;
17
17
  exports.FeaturedOfferSegmentCustomerMembershipEnum = {
18
18
  Prime: 'PRIME',
19
19
  NonPrime: 'NON_PRIME',
20
- Default: 'DEFAULT'
20
+ Default: 'DEFAULT',
21
21
  };
@@ -19,5 +19,5 @@ exports.FulfillmentType = void 0;
19
19
  */
20
20
  exports.FulfillmentType = {
21
21
  Afn: 'AFN',
22
- Mfn: 'MFN'
22
+ Mfn: 'MFN',
23
23
  };
@@ -22,5 +22,5 @@ exports.HttpMethod = {
22
22
  Put: 'PUT',
23
23
  Patch: 'PATCH',
24
24
  Delete: 'DELETE',
25
- Post: 'POST'
25
+ Post: 'POST',
26
26
  };
@@ -39,6 +39,7 @@ __exportStar(require("./get-featured-offer-expected-price-batch-request"), expor
39
39
  __exportStar(require("./get-featured-offer-expected-price-batch-response"), exports);
40
40
  __exportStar(require("./http-method"), exports);
41
41
  __exportStar(require("./http-status-line"), exports);
42
+ __exportStar(require("./item"), exports);
42
43
  __exportStar(require("./lowest-priced-offer"), exports);
43
44
  __exportStar(require("./lowest-priced-offers-input"), exports);
44
45
  __exportStar(require("./model-error"), exports);
@@ -56,3 +57,4 @@ __exportStar(require("./segment-details"), exports);
56
57
  __exportStar(require("./segmented-featured-offer"), exports);
57
58
  __exportStar(require("./segmented-featured-offer-all-of"), exports);
58
59
  __exportStar(require("./shipping-option"), exports);
60
+ __exportStar(require("./similar-items"), exports);
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Pricing
6
+ * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
7
+ *
8
+ * The version of the OpenAPI document: 2022-05-01
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,5 +15,5 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.LowestPricedOffersInputOfferTypeEnum = void 0;
17
17
  exports.LowestPricedOffersInputOfferTypeEnum = {
18
- Consumer: 'Consumer'
18
+ Consumer: 'Consumer',
19
19
  };
@@ -27,5 +27,5 @@ exports.OfferSubConditionEnum = {
27
27
  RefurbishedWarranty: 'RefurbishedWarranty',
28
28
  Refurbished: 'Refurbished',
29
29
  OpenBox: 'OpenBox',
30
- Other: 'Other'
30
+ Other: 'Other',
31
31
  };
@@ -17,5 +17,5 @@ exports.PrimeDetailsEligibilityEnum = void 0;
17
17
  exports.PrimeDetailsEligibilityEnum = {
18
18
  National: 'NATIONAL',
19
19
  Regional: 'REGIONAL',
20
- None: 'NONE'
20
+ None: 'NONE',
21
21
  };
@@ -15,5 +15,5 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ShippingOptionShippingOptionTypeEnum = void 0;
17
17
  exports.ShippingOptionShippingOptionTypeEnum = {
18
- Default: 'DEFAULT'
18
+ Default: 'DEFAULT',
19
19
  };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Pricing
6
+ * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
7
+ *
8
+ * The version of the OpenAPI document: 2022-05-01
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -81,6 +81,7 @@ export const setSearchParams = function (url, ...objects) {
81
81
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
82
82
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
83
83
  */
84
+ // @ts-ignore
84
85
  export const replaceWithSerializableTypeIfNeeded = function (key, value) {
85
86
  if (value instanceof Set) {
86
87
  return Array.from(value);
@@ -88,7 +88,7 @@ export class Configuration {
88
88
  * @return True if the given MIME is JSON, false otherwise.
89
89
  */
90
90
  isJsonMime(mime) {
91
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
92
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
91
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
92
+ return mime !== null && jsonMime.test(mime);
93
93
  }
94
94
  }
@@ -17,5 +17,6 @@
17
17
  export const CompetitiveSummaryIncludedData = {
18
18
  FeaturedBuyingOptions: 'featuredBuyingOptions',
19
19
  ReferencePrices: 'referencePrices',
20
- LowestPricedOffers: 'lowestPricedOffers'
20
+ LowestPricedOffers: 'lowestPricedOffers',
21
+ SimilarItems: 'similarItems',
21
22
  };
@@ -19,5 +19,5 @@ export const Condition = {
19
19
  Used: 'Used',
20
20
  Collectible: 'Collectible',
21
21
  Refurbished: 'Refurbished',
22
- Club: 'Club'
22
+ Club: 'Club',
23
23
  };
@@ -12,5 +12,5 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  export const FeaturedBuyingOptionBuyingOptionTypeEnum = {
15
- New: 'New'
15
+ New: 'New',
16
16
  };
@@ -14,5 +14,5 @@
14
14
  export const FeaturedOfferSegmentCustomerMembershipEnum = {
15
15
  Prime: 'PRIME',
16
16
  NonPrime: 'NON_PRIME',
17
- Default: 'DEFAULT'
17
+ Default: 'DEFAULT',
18
18
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const FulfillmentType = {
18
18
  Afn: 'AFN',
19
- Mfn: 'MFN'
19
+ Mfn: 'MFN',
20
20
  };
@@ -19,5 +19,5 @@ export const HttpMethod = {
19
19
  Put: 'PUT',
20
20
  Patch: 'PATCH',
21
21
  Delete: 'DELETE',
22
- Post: 'POST'
22
+ Post: 'POST',
23
23
  };
@@ -23,6 +23,7 @@ export * from './get-featured-offer-expected-price-batch-request';
23
23
  export * from './get-featured-offer-expected-price-batch-response';
24
24
  export * from './http-method';
25
25
  export * from './http-status-line';
26
+ export * from './item';
26
27
  export * from './lowest-priced-offer';
27
28
  export * from './lowest-priced-offers-input';
28
29
  export * from './model-error';
@@ -40,3 +41,4 @@ export * from './segment-details';
40
41
  export * from './segmented-featured-offer';
41
42
  export * from './segmented-featured-offer-all-of';
42
43
  export * from './shipping-option';
44
+ export * from './similar-items';
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Pricing
5
+ * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
6
+ *
7
+ * The version of the OpenAPI document: 2022-05-01
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -12,5 +12,5 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  export const LowestPricedOffersInputOfferTypeEnum = {
15
- Consumer: 'Consumer'
15
+ Consumer: 'Consumer',
16
16
  };
@@ -24,5 +24,5 @@ export const OfferSubConditionEnum = {
24
24
  RefurbishedWarranty: 'RefurbishedWarranty',
25
25
  Refurbished: 'Refurbished',
26
26
  OpenBox: 'OpenBox',
27
- Other: 'Other'
27
+ Other: 'Other',
28
28
  };
@@ -14,5 +14,5 @@
14
14
  export const PrimeDetailsEligibilityEnum = {
15
15
  National: 'NATIONAL',
16
16
  Regional: 'REGIONAL',
17
- None: 'NONE'
17
+ None: 'NONE',
18
18
  };
@@ -12,5 +12,5 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  export const ShippingOptionShippingOptionTypeEnum = {
15
- Default: 'DEFAULT'
15
+ Default: 'DEFAULT',
16
16
  };
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Pricing
5
+ * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
6
+ *
7
+ * The version of the OpenAPI document: 2022-05-01
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -28,7 +28,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
28
28
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
29
29
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
30
30
  */
31
- export declare const replaceWithSerializableTypeIfNeeded: (key: any, value: any) => any;
31
+ export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
32
32
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
33
33
  export declare const toPathString: (url: URL) => string;
34
34
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -16,5 +16,6 @@ export declare const CompetitiveSummaryIncludedData: {
16
16
  readonly FeaturedBuyingOptions: "featuredBuyingOptions";
17
17
  readonly ReferencePrices: "referencePrices";
18
18
  readonly LowestPricedOffers: "lowestPricedOffers";
19
+ readonly SimilarItems: "similarItems";
19
20
  };
20
21
  export type CompetitiveSummaryIncludedData = typeof CompetitiveSummaryIncludedData[keyof typeof CompetitiveSummaryIncludedData];
@@ -12,6 +12,7 @@
12
12
  import type { FeaturedBuyingOption } from './featured-buying-option';
13
13
  import type { LowestPricedOffer } from './lowest-priced-offer';
14
14
  import type { ReferencePrice } from './reference-price';
15
+ import type { SimilarItems } from './similar-items';
15
16
  /**
16
17
  * The `competitiveSummaryResponse` body for a requested ASIN and `marketplaceId`.
17
18
  */
@@ -36,6 +37,10 @@ export interface CompetitiveSummaryResponseBody {
36
37
  * A list of reference prices for the specified ASIN `marketplaceId` combination.
37
38
  */
38
39
  'referencePrices'?: Array<ReferencePrice>;
40
+ /**
41
+ * A list of similar items for the specified ASIN `marketplaceId` combination.
42
+ */
43
+ 'similarItems'?: Array<SimilarItems>;
39
44
  /**
40
45
  * A list of error responses that are returned when a request is unsuccessful.
41
46
  */
@@ -23,6 +23,7 @@ export * from './get-featured-offer-expected-price-batch-request';
23
23
  export * from './get-featured-offer-expected-price-batch-response';
24
24
  export * from './http-method';
25
25
  export * from './http-status-line';
26
+ export * from './item';
26
27
  export * from './lowest-priced-offer';
27
28
  export * from './lowest-priced-offers-input';
28
29
  export * from './model-error';
@@ -40,3 +41,4 @@ export * from './segment-details';
40
41
  export * from './segmented-featured-offer';
41
42
  export * from './segmented-featured-offer-all-of';
42
43
  export * from './shipping-option';
44
+ export * from './similar-items';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Selling Partner API for Pricing
3
+ * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
4
+ *
5
+ * The version of the OpenAPI document: 2022-05-01
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A similar item for the specified ASIN `marketplaceId` combination.
14
+ */
15
+ export interface Item {
16
+ /**
17
+ * The ASIN of the item.
18
+ */
19
+ 'asin': string;
20
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Selling Partner API for Pricing
3
+ * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
4
+ *
5
+ * The version of the OpenAPI document: 2022-05-01
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Item } from './item';
13
+ /**
14
+ * The summary of similar items for the specified ASIN `marketplaceId` combination.
15
+ */
16
+ export interface SimilarItems {
17
+ /**
18
+ * A list of similar items for the specified ASIN `marketplaceId` combination.
19
+ */
20
+ 'items'?: Array<Item>;
21
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/product-pricing-api-2022-05-01",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the Product Pricing v2022-05-01 Use Case Guide.",
5
- "version": "3.2.14",
5
+ "version": "3.3.0",
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.29",
22
- "axios": "^1.13.5"
21
+ "@sp-api-sdk/common": "2.1.31",
22
+ "axios": "^1.15.2"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "product pricing api"
42
42
  ],
43
- "gitHead": "2c1fe783fb7c2204e7e19d4f85fa2bdf822e4593"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }