@sp-api-sdk/product-type-definitions-api-2020-09-01 1.10.7 → 1.10.9

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.
@@ -35,6 +35,9 @@ exports.COLLECTION_FORMATS = {
35
35
  * @class BaseAPI
36
36
  */
37
37
  class BaseAPI {
38
+ basePath;
39
+ axios;
40
+ configuration;
38
41
  constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
39
42
  this.basePath = basePath;
40
43
  this.axios = axios;
@@ -53,10 +56,11 @@ exports.BaseAPI = BaseAPI;
53
56
  * @extends {Error}
54
57
  */
55
58
  class RequiredError extends Error {
59
+ field;
60
+ name = "RequiredError";
56
61
  constructor(field, msg) {
57
62
  super(msg);
58
63
  this.field = field;
59
- this.name = "RequiredError";
60
64
  }
61
65
  }
62
66
  exports.RequiredError = RequiredError;
@@ -15,6 +15,55 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.Configuration = void 0;
17
17
  class Configuration {
18
+ /**
19
+ * parameter for apiKey security
20
+ * @param name security name
21
+ * @memberof Configuration
22
+ */
23
+ apiKey;
24
+ /**
25
+ * parameter for basic security
26
+ *
27
+ * @type {string}
28
+ * @memberof Configuration
29
+ */
30
+ username;
31
+ /**
32
+ * parameter for basic security
33
+ *
34
+ * @type {string}
35
+ * @memberof Configuration
36
+ */
37
+ password;
38
+ /**
39
+ * parameter for oauth2 security
40
+ * @param name security name
41
+ * @param scopes oauth2 scope
42
+ * @memberof Configuration
43
+ */
44
+ accessToken;
45
+ /**
46
+ * override base path
47
+ *
48
+ * @type {string}
49
+ * @memberof Configuration
50
+ */
51
+ basePath;
52
+ /**
53
+ * base options for axios calls
54
+ *
55
+ * @type {any}
56
+ * @memberof Configuration
57
+ */
58
+ baseOptions;
59
+ /**
60
+ * The FormData constructor that will be used to create multipart form data
61
+ * requests. You can inject this here so that execution environments that
62
+ * do not support the FormData class can still run the generated client.
63
+ *
64
+ * @type {new () => FormData}
65
+ */
66
+ formDataCtor;
18
67
  constructor(param = {}) {
19
68
  this.apiKey = param.apiKey;
20
69
  this.username = param.username;
@@ -31,6 +31,9 @@ export const COLLECTION_FORMATS = {
31
31
  * @class BaseAPI
32
32
  */
33
33
  export class BaseAPI {
34
+ basePath;
35
+ axios;
36
+ configuration;
34
37
  constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
35
38
  this.basePath = basePath;
36
39
  this.axios = axios;
@@ -48,9 +51,10 @@ export class BaseAPI {
48
51
  * @extends {Error}
49
52
  */
50
53
  export class RequiredError extends Error {
54
+ field;
55
+ name = "RequiredError";
51
56
  constructor(field, msg) {
52
57
  super(msg);
53
58
  this.field = field;
54
- this.name = "RequiredError";
55
59
  }
56
60
  }
@@ -12,6 +12,55 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  export class Configuration {
15
+ /**
16
+ * parameter for apiKey security
17
+ * @param name security name
18
+ * @memberof Configuration
19
+ */
20
+ apiKey;
21
+ /**
22
+ * parameter for basic security
23
+ *
24
+ * @type {string}
25
+ * @memberof Configuration
26
+ */
27
+ username;
28
+ /**
29
+ * parameter for basic security
30
+ *
31
+ * @type {string}
32
+ * @memberof Configuration
33
+ */
34
+ password;
35
+ /**
36
+ * parameter for oauth2 security
37
+ * @param name security name
38
+ * @param scopes oauth2 scope
39
+ * @memberof Configuration
40
+ */
41
+ accessToken;
42
+ /**
43
+ * override base path
44
+ *
45
+ * @type {string}
46
+ * @memberof Configuration
47
+ */
48
+ basePath;
49
+ /**
50
+ * base options for axios calls
51
+ *
52
+ * @type {any}
53
+ * @memberof Configuration
54
+ */
55
+ baseOptions;
56
+ /**
57
+ * The FormData constructor that will be used to create multipart form data
58
+ * requests. You can inject this here so that execution environments that
59
+ * do not support the FormData class can still run the generated client.
60
+ *
61
+ * @type {new () => FormData}
62
+ */
63
+ formDataCtor;
15
64
  constructor(param = {}) {
16
65
  this.apiKey = param.apiKey;
17
66
  this.username = param.username;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/product-type-definitions-api-2020-09-01",
3
3
  "author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the Product Type Definitions API Use Case Guide.",
5
- "version": "1.10.7",
5
+ "version": "1.10.9",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "test": "jest"
27
27
  },
28
28
  "dependencies": {
29
- "@sp-api-sdk/common": "^1.9.19",
29
+ "@sp-api-sdk/common": "^1.9.21",
30
30
  "axios": "^0.27.2"
31
31
  },
32
32
  "repository": {
@@ -51,5 +51,5 @@
51
51
  "typedoc": {
52
52
  "entryPoint": "./index.ts"
53
53
  },
54
- "gitHead": "51c491e1ac6ad46d8cfae56568f17b350fc9e367"
54
+ "gitHead": "4aae180b5a1395b37b673b93c285065ddba25470"
55
55
  }