@sp-api-sdk/sellers-api-v1 2.1.3 → 2.2.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 (61) hide show
  1. package/README.md +7 -1
  2. package/dist/cjs/index.js +1 -0
  3. package/dist/cjs/src/api-model/api/sellers-api.js +57 -5
  4. package/dist/cjs/src/api-model/api.js +1 -1
  5. package/dist/cjs/src/api-model/base.js +1 -1
  6. package/dist/cjs/src/api-model/common.js +1 -1
  7. package/dist/cjs/src/api-model/configuration.js +1 -1
  8. package/dist/cjs/src/api-model/index.js +1 -1
  9. package/dist/cjs/src/api-model/models/account.js +26 -0
  10. package/dist/cjs/src/api-model/models/address.js +15 -0
  11. package/dist/cjs/src/api-model/models/business.js +15 -0
  12. package/dist/cjs/src/api-model/models/get-account-response.js +15 -0
  13. package/dist/cjs/src/api-model/models/get-marketplace-participations-response.js +1 -1
  14. package/dist/cjs/src/api-model/models/index.js +6 -0
  15. package/dist/cjs/src/api-model/models/marketplace-level-attributes.js +24 -0
  16. package/dist/cjs/src/api-model/models/marketplace-participation.js +1 -1
  17. package/dist/cjs/src/api-model/models/marketplace.js +1 -1
  18. package/dist/cjs/src/api-model/models/model-error.js +1 -1
  19. package/dist/cjs/src/api-model/models/participation.js +1 -1
  20. package/dist/cjs/src/api-model/models/primary-contact.js +15 -0
  21. package/dist/cjs/src/client.js +7 -0
  22. package/dist/es/index.js +1 -0
  23. package/dist/es/src/api-model/api/sellers-api.js +57 -5
  24. package/dist/es/src/api-model/api.js +1 -1
  25. package/dist/es/src/api-model/base.js +1 -1
  26. package/dist/es/src/api-model/common.js +1 -1
  27. package/dist/es/src/api-model/configuration.js +1 -1
  28. package/dist/es/src/api-model/index.js +1 -1
  29. package/dist/es/src/api-model/models/account.js +23 -0
  30. package/dist/es/src/api-model/models/address.js +14 -0
  31. package/dist/es/src/api-model/models/business.js +14 -0
  32. package/dist/es/src/api-model/models/get-account-response.js +14 -0
  33. package/dist/es/src/api-model/models/get-marketplace-participations-response.js +1 -1
  34. package/dist/es/src/api-model/models/index.js +6 -0
  35. package/dist/es/src/api-model/models/marketplace-level-attributes.js +21 -0
  36. package/dist/es/src/api-model/models/marketplace-participation.js +1 -1
  37. package/dist/es/src/api-model/models/marketplace.js +1 -1
  38. package/dist/es/src/api-model/models/model-error.js +1 -1
  39. package/dist/es/src/api-model/models/participation.js +1 -1
  40. package/dist/es/src/api-model/models/primary-contact.js +14 -0
  41. package/dist/es/src/client.js +7 -0
  42. package/dist/types/index.d.ts +1 -0
  43. package/dist/types/src/api-model/api/sellers-api.d.ts +31 -5
  44. package/dist/types/src/api-model/api.d.ts +1 -1
  45. package/dist/types/src/api-model/base.d.ts +1 -1
  46. package/dist/types/src/api-model/common.d.ts +1 -1
  47. package/dist/types/src/api-model/configuration.d.ts +1 -1
  48. package/dist/types/src/api-model/index.d.ts +1 -1
  49. package/dist/types/src/api-model/models/account.d.ts +56 -0
  50. package/dist/types/src/api-model/models/address.d.ts +54 -0
  51. package/dist/types/src/api-model/models/business.d.ts +49 -0
  52. package/dist/types/src/api-model/models/get-account-response.d.ts +31 -0
  53. package/dist/types/src/api-model/models/get-marketplace-participations-response.d.ts +2 -2
  54. package/dist/types/src/api-model/models/index.d.ts +6 -0
  55. package/dist/types/src/api-model/models/marketplace-level-attributes.d.ts +53 -0
  56. package/dist/types/src/api-model/models/marketplace-participation.d.ts +1 -1
  57. package/dist/types/src/api-model/models/marketplace.d.ts +3 -3
  58. package/dist/types/src/api-model/models/model-error.d.ts +3 -3
  59. package/dist/types/src/api-model/models/participation.d.ts +4 -4
  60. package/dist/types/src/api-model/models/primary-contact.d.ts +37 -0
  61. package/package.json +5 -5
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Selling Partner API for Sellers
3
+ * The [Selling Partner API for Sellers](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) (Sellers API) provides essential information about seller accounts, such as: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer to the [Sellers API reference](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) for details about this API\'s operations, data types, and schemas.
4
+ *
5
+ * The version of the OpenAPI document: v1
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 { Marketplace } from './marketplace';
13
+ /**
14
+ * Attributes that define the seller\'s presence and status within a specific marketplace. These attributes include the marketplace details, store name, listing status, and the selling plan the seller is subscribed to.
15
+ * @export
16
+ * @interface MarketplaceLevelAttributes
17
+ */
18
+ export interface MarketplaceLevelAttributes {
19
+ /**
20
+ *
21
+ * @type {Marketplace}
22
+ * @memberof MarketplaceLevelAttributes
23
+ */
24
+ 'marketplace': Marketplace;
25
+ /**
26
+ * The name of the seller\'s store as displayed in the marketplace.
27
+ * @type {string}
28
+ * @memberof MarketplaceLevelAttributes
29
+ */
30
+ 'storeName': string;
31
+ /**
32
+ * The current status of the seller\'s listings.
33
+ * @type {string}
34
+ * @memberof MarketplaceLevelAttributes
35
+ */
36
+ 'listingStatus': MarketplaceLevelAttributesListingStatusEnum;
37
+ /**
38
+ * The selling plan details.
39
+ * @type {string}
40
+ * @memberof MarketplaceLevelAttributes
41
+ */
42
+ 'sellingPlan': MarketplaceLevelAttributesSellingPlanEnum;
43
+ }
44
+ export declare const MarketplaceLevelAttributesListingStatusEnum: {
45
+ readonly Active: "ACTIVE";
46
+ readonly Inactive: "INACTIVE";
47
+ };
48
+ export type MarketplaceLevelAttributesListingStatusEnum = typeof MarketplaceLevelAttributesListingStatusEnum[keyof typeof MarketplaceLevelAttributesListingStatusEnum];
49
+ export declare const MarketplaceLevelAttributesSellingPlanEnum: {
50
+ readonly Professional: "PROFESSIONAL";
51
+ readonly Individual: "INDIVIDUAL";
52
+ };
53
+ export type MarketplaceLevelAttributesSellingPlanEnum = typeof MarketplaceLevelAttributesSellingPlanEnum[keyof typeof MarketplaceLevelAttributesSellingPlanEnum];
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Sellers
3
- * The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.
3
+ * The [Selling Partner API for Sellers](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) (Sellers API) provides essential information about seller accounts, such as: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer to the [Sellers API reference](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) for details about this API\'s operations, data types, and schemas.
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Sellers
3
- * The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.
3
+ * The [Selling Partner API for Sellers](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) (Sellers API) provides essential information about seller accounts, such as: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer to the [Sellers API reference](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) for details about this API\'s operations, data types, and schemas.
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Detailed information about an Amazon market where a seller can list items for sale and customers can view and purchase items.
13
+ * Information about an Amazon marketplace where a seller can list items and customers can view and purchase items.
14
14
  * @export
15
15
  * @interface Marketplace
16
16
  */
@@ -22,7 +22,7 @@ export interface Marketplace {
22
22
  */
23
23
  'id': string;
24
24
  /**
25
- * Marketplace name.
25
+ * The marketplace name.
26
26
  * @type {string}
27
27
  * @memberof Marketplace
28
28
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Sellers
3
- * The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.
3
+ * The [Selling Partner API for Sellers](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) (Sellers API) provides essential information about seller accounts, such as: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer to the [Sellers API reference](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) for details about this API\'s operations, data types, and schemas.
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface ModelError {
18
18
  /**
19
- * An error code that identifies the type of error that occured.
19
+ * An error code that identifies the type of error that occurred.
20
20
  * @type {string}
21
21
  * @memberof ModelError
22
22
  */
@@ -28,7 +28,7 @@ export interface ModelError {
28
28
  */
29
29
  'message': string;
30
30
  /**
31
- * Additional details that can help the caller understand or fix the issue.
31
+ * Additional details that can help you understand or fix the issue.
32
32
  * @type {string}
33
33
  * @memberof ModelError
34
34
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Sellers
3
- * The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.
3
+ * The [Selling Partner API for Sellers](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) (Sellers API) provides essential information about seller accounts, such as: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer to the [Sellers API reference](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) for details about this API\'s operations, data types, and schemas.
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -10,19 +10,19 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Detailed information that is specific to a seller in a Marketplace.
13
+ * Information that is specific to a seller in a marketplace.
14
14
  * @export
15
15
  * @interface Participation
16
16
  */
17
17
  export interface Participation {
18
18
  /**
19
- *
19
+ * If `true`, the seller participates in the marketplace. Otherwise `false`.
20
20
  * @type {boolean}
21
21
  * @memberof Participation
22
22
  */
23
23
  'isParticipating': boolean;
24
24
  /**
25
- * Specifies if the seller has suspended listings. True if the seller Listing Status is set to Inactive, otherwise False.
25
+ * Specifies if the seller has suspended listings. `true` if the seller Listing Status is set to Inactive, otherwise `false`.
26
26
  * @type {boolean}
27
27
  * @memberof Participation
28
28
  */
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Selling Partner API for Sellers
3
+ * The [Selling Partner API for Sellers](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) (Sellers API) provides essential information about seller accounts, such as: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer to the [Sellers API reference](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) for details about this API\'s operations, data types, and schemas.
4
+ *
5
+ * The version of the OpenAPI document: v1
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 { Address } from './address';
13
+ /**
14
+ * Information about the seller\'s primary contact.
15
+ * @export
16
+ * @interface PrimaryContact
17
+ */
18
+ export interface PrimaryContact {
19
+ /**
20
+ * The full name of the seller\'s primary contact.
21
+ * @type {string}
22
+ * @memberof PrimaryContact
23
+ */
24
+ 'name': string;
25
+ /**
26
+ *
27
+ * @type {Address}
28
+ * @memberof PrimaryContact
29
+ */
30
+ 'address': Address;
31
+ /**
32
+ * The non-Latin script version of the primary contact\'s name, if applicable.
33
+ * @type {string}
34
+ * @memberof PrimaryContact
35
+ */
36
+ 'nonLatinName'?: string;
37
+ }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@sp-api-sdk/sellers-api-v1",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
- "description": "The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.",
5
- "version": "2.1.3",
4
+ "description": "The Selling Partner API for Sellers (Sellers API) provides essential information about seller accounts, such as: The marketplaces a seller can list in The default language and currency of a marketplace Whether the seller has suspended listings Refer to the Sellers API reference for details about this API's operations, data types, and schemas.",
5
+ "version": "2.2.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.0.11",
22
- "axios": "^1.7.2"
21
+ "@sp-api-sdk/common": "2.0.12",
22
+ "axios": "^1.7.4"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "sellers api"
42
42
  ],
43
- "gitHead": "6f3dfd53cad528b970ec29dfd12b0105b351464b"
43
+ "gitHead": "bfd73ff78b2b8e141419439963c93e61224edae5"
44
44
  }