@sp-api-sdk/catalog-items-api-2022-04-01 4.0.1 → 4.1.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 (44) hide show
  1. package/dist/cjs/api-model/api/catalog-items-api.js +8 -25
  2. package/dist/cjs/api-model/base.js +0 -19
  3. package/dist/cjs/api-model/common.js +0 -37
  4. package/dist/cjs/api-model/configuration.js +0 -17
  5. package/dist/cjs/client.js +4 -4
  6. package/dist/es/api-model/api/catalog-items-api.js +8 -25
  7. package/dist/es/api-model/base.js +0 -19
  8. package/dist/es/api-model/common.js +0 -37
  9. package/dist/es/api-model/configuration.js +0 -17
  10. package/dist/es/client.js +4 -4
  11. package/dist/types/api-model/api/catalog-items-api.d.ts +8 -61
  12. package/dist/types/api-model/base.d.ts +0 -24
  13. package/dist/types/api-model/common.d.ts +0 -37
  14. package/dist/types/api-model/configuration.d.ts +0 -17
  15. package/dist/types/api-model/models/brand-refinement.d.ts +0 -6
  16. package/dist/types/api-model/models/classification-refinement.d.ts +0 -8
  17. package/dist/types/api-model/models/dimension.d.ts +0 -6
  18. package/dist/types/api-model/models/dimensions.d.ts +0 -22
  19. package/dist/types/api-model/models/error-list.d.ts +0 -7
  20. package/dist/types/api-model/models/item-browse-classification.d.ts +0 -11
  21. package/dist/types/api-model/models/item-browse-classifications-by-marketplace.d.ts +0 -6
  22. package/dist/types/api-model/models/item-classification-sales-rank.d.ts +0 -10
  23. package/dist/types/api-model/models/item-contributor-role.d.ts +0 -6
  24. package/dist/types/api-model/models/item-contributor.d.ts +0 -9
  25. package/dist/types/api-model/models/item-dimensions-by-marketplace.d.ts +0 -14
  26. package/dist/types/api-model/models/item-display-group-sales-rank.d.ts +0 -10
  27. package/dist/types/api-model/models/item-identifier.d.ts +0 -6
  28. package/dist/types/api-model/models/item-identifiers-by-marketplace.d.ts +0 -6
  29. package/dist/types/api-model/models/item-image.d.ts +0 -10
  30. package/dist/types/api-model/models/item-images-by-marketplace.d.ts +0 -6
  31. package/dist/types/api-model/models/item-product-type-by-marketplace.d.ts +0 -6
  32. package/dist/types/api-model/models/item-relationship.d.ts +0 -13
  33. package/dist/types/api-model/models/item-relationships-by-marketplace.d.ts +0 -6
  34. package/dist/types/api-model/models/item-sales-ranks-by-marketplace.d.ts +0 -8
  35. package/dist/types/api-model/models/item-search-results.d.ts +0 -16
  36. package/dist/types/api-model/models/item-summary-by-marketplace.d.ts +0 -45
  37. package/dist/types/api-model/models/item-variation-theme.d.ts +0 -6
  38. package/dist/types/api-model/models/item-vendor-details-by-marketplace.d.ts +0 -24
  39. package/dist/types/api-model/models/item-vendor-details-category.d.ts +0 -6
  40. package/dist/types/api-model/models/item.d.ts +1 -25
  41. package/dist/types/api-model/models/model-error.d.ts +0 -8
  42. package/dist/types/api-model/models/pagination.d.ts +0 -6
  43. package/dist/types/api-model/models/refinements.d.ts +0 -6
  44. package/package.json +25 -4
@@ -20,76 +20,52 @@ import type { ItemSummaryByMarketplace } from './item-summary-by-marketplace';
20
20
  import type { ItemVendorDetailsByMarketplace } from './item-vendor-details-by-marketplace';
21
21
  /**
22
22
  * An item in the Amazon catalog.
23
- * @export
24
- * @interface Item
25
23
  */
26
24
  export interface Item {
27
25
  /**
28
26
  * The unique identifier of an item in the Amazon catalog.
29
- * @type {string}
30
- * @memberof Item
31
27
  */
32
28
  'asin': string;
33
29
  /**
34
- * A JSON object containing structured item attribute data that is keyed by attribute name. Catalog item attributes conform to the related Amazon product type definitions that you can get from the [Product Type Definitions API](https://developer-docs.amazon.com/sp-api/docs/product-type-definitions-api-v2020-09-01-reference).
35
- * @type {{ [key: string]: any; }}
36
- * @memberof Item
30
+ * A JSON object containing structured item attribute data that is keyed by attribute name. Catalog item attributes conform to the related Amazon product type definitions that you can get from the [Product Type Definitions API](https://developer-docs.amazon.com/sp-api/reference/product-type-definitions-v2020-09-01).
37
31
  */
38
32
  'attributes'?: {
39
33
  [key: string]: any;
40
34
  };
41
35
  /**
42
36
  * An array of classifications (browse nodes) that is associated with the item in the Amazon catalog, grouped by `marketplaceId`.
43
- * @type {Array<ItemBrowseClassificationsByMarketplace>}
44
- * @memberof Item
45
37
  */
46
38
  'classifications'?: Array<ItemBrowseClassificationsByMarketplace>;
47
39
  /**
48
40
  * An array of dimensions that are associated with the item in the Amazon catalog, grouped by `marketplaceId`.
49
- * @type {Array<ItemDimensionsByMarketplace>}
50
- * @memberof Item
51
41
  */
52
42
  'dimensions'?: Array<ItemDimensionsByMarketplace>;
53
43
  /**
54
44
  * Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers.
55
- * @type {Array<ItemIdentifiersByMarketplace>}
56
- * @memberof Item
57
45
  */
58
46
  'identifiers'?: Array<ItemIdentifiersByMarketplace>;
59
47
  /**
60
48
  * The images for an item in the Amazon catalog.
61
- * @type {Array<ItemImagesByMarketplace>}
62
- * @memberof Item
63
49
  */
64
50
  'images'?: Array<ItemImagesByMarketplace>;
65
51
  /**
66
52
  * Product types that are associated with the Amazon catalog item.
67
- * @type {Array<ItemProductTypeByMarketplace>}
68
- * @memberof Item
69
53
  */
70
54
  'productTypes'?: Array<ItemProductTypeByMarketplace>;
71
55
  /**
72
56
  * Relationships grouped by `marketplaceId` for an Amazon catalog item (for example, variations).
73
- * @type {Array<ItemRelationshipsByMarketplace>}
74
- * @memberof Item
75
57
  */
76
58
  'relationships'?: Array<ItemRelationshipsByMarketplace>;
77
59
  /**
78
60
  * Sales ranks of an Amazon catalog item.
79
- * @type {Array<ItemSalesRanksByMarketplace>}
80
- * @memberof Item
81
61
  */
82
62
  'salesRanks'?: Array<ItemSalesRanksByMarketplace>;
83
63
  /**
84
64
  * Summaries of Amazon catalog items.
85
- * @type {Array<ItemSummaryByMarketplace>}
86
- * @memberof Item
87
65
  */
88
66
  'summaries'?: Array<ItemSummaryByMarketplace>;
89
67
  /**
90
68
  * The vendor details that are associated with an Amazon catalog item. Vendor details are only available to vendors.
91
- * @type {Array<ItemVendorDetailsByMarketplace>}
92
- * @memberof Item
93
69
  */
94
70
  'vendorDetails'?: Array<ItemVendorDetailsByMarketplace>;
95
71
  }
@@ -11,26 +11,18 @@
11
11
  */
12
12
  /**
13
13
  * Error response returned when the request is unsuccessful.
14
- * @export
15
- * @interface ModelError
16
14
  */
17
15
  export interface ModelError {
18
16
  /**
19
17
  * An error code that identifies the type of error that occurred.
20
- * @type {string}
21
- * @memberof ModelError
22
18
  */
23
19
  'code': string;
24
20
  /**
25
21
  * A message that describes the error condition.
26
- * @type {string}
27
- * @memberof ModelError
28
22
  */
29
23
  'message': string;
30
24
  /**
31
25
  * Additional details that can help the caller understand or fix the issue.
32
- * @type {string}
33
- * @memberof ModelError
34
26
  */
35
27
  'details'?: string;
36
28
  }
@@ -11,20 +11,14 @@
11
11
  */
12
12
  /**
13
13
  * Pagination occurs when a request produces a response that exceeds the `pageSize`. This means that the response is divided into individual pages. To retrieve the next page or the previous page of results, you must pass the `nextToken` value or the `previousToken` value as the `pageToken` parameter in the next request. There is no `nextToken` in the pagination object on the last page.
14
- * @export
15
- * @interface Pagination
16
14
  */
17
15
  export interface Pagination {
18
16
  /**
19
17
  * A token that you can use to retrieve the next page.
20
- * @type {string}
21
- * @memberof Pagination
22
18
  */
23
19
  'nextToken'?: string;
24
20
  /**
25
21
  * A token that you can use to retrieve the previous page.
26
- * @type {string}
27
- * @memberof Pagination
28
22
  */
29
23
  'previousToken'?: string;
30
24
  }
@@ -13,20 +13,14 @@ import type { BrandRefinement } from './brand-refinement';
13
13
  import type { ClassificationRefinement } from './classification-refinement';
14
14
  /**
15
15
  * Optional fields that you can use to refine your search results.
16
- * @export
17
- * @interface Refinements
18
16
  */
19
17
  export interface Refinements {
20
18
  /**
21
19
  * A list of brands you can use to refine your search.
22
- * @type {Array<BrandRefinement>}
23
- * @memberof Refinements
24
20
  */
25
21
  'brands': Array<BrandRefinement>;
26
22
  /**
27
23
  * A list of classifications you can use to refine your search.
28
- * @type {Array<ClassificationRefinement>}
29
- * @memberof Refinements
30
24
  */
31
25
  'classifications': Array<ClassificationRefinement>;
32
26
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/catalog-items-api-2022-04-01",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "Use the Selling Partner API for Catalog Items to retrieve information about items in the Amazon catalog. For more information, refer to the Catalog Items API Use Case Guide.",
5
- "version": "4.0.1",
5
+ "version": "4.1.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.15",
22
- "axios": "^1.10.0"
21
+ "@sp-api-sdk/common": "2.1.16",
22
+ "axios": "^1.11.0"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,26 @@
40
40
  "sp sdk",
41
41
  "catalog items api"
42
42
  ],
43
- "gitHead": "b36600f33d62a2b6c3a9035968a93bc83e9838a9"
43
+ "xo": {
44
+ "extends": [
45
+ "xo-bizon"
46
+ ],
47
+ "settings": {
48
+ "import/internal-regex": "^@sp-api-sdk/"
49
+ },
50
+ "semicolon": false,
51
+ "space": 2,
52
+ "prettier": true,
53
+ "ignores": [
54
+ "src/api-model/**"
55
+ ],
56
+ "rules": {
57
+ "unicorn/prevent-abbreviations": "off"
58
+ }
59
+ },
60
+ "prettier": {
61
+ "printWidth": 100,
62
+ "jsxSingleQuote": true
63
+ },
64
+ "gitHead": "fc1b46f3bc172469e2fbbc2e0155f6fa7ce3edde"
44
65
  }