@sp-api-sdk/notifications-api-v1 3.0.6 → 3.0.7

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/notifications-api.js +0 -14
  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/api-model/models/aggregation-time-period.js +0 -2
  6. package/dist/cjs/api-model/models/order-change-type-enum.js +0 -2
  7. package/dist/es/api-model/api/notifications-api.js +0 -14
  8. package/dist/es/api-model/base.js +0 -19
  9. package/dist/es/api-model/common.js +0 -37
  10. package/dist/es/api-model/configuration.js +0 -17
  11. package/dist/es/api-model/models/aggregation-time-period.js +0 -2
  12. package/dist/es/api-model/models/order-change-type-enum.js +0 -2
  13. package/dist/types/api-model/api/notifications-api.d.ts +0 -56
  14. package/dist/types/api-model/base.d.ts +0 -24
  15. package/dist/types/api-model/common.d.ts +0 -37
  16. package/dist/types/api-model/configuration.d.ts +0 -17
  17. package/dist/types/api-model/models/aggregation-filter.d.ts +0 -7
  18. package/dist/types/api-model/models/aggregation-settings.d.ts +0 -7
  19. package/dist/types/api-model/models/aggregation-time-period.d.ts +0 -2
  20. package/dist/types/api-model/models/create-destination-request.d.ts +0 -9
  21. package/dist/types/api-model/models/create-destination-response.d.ts +0 -9
  22. package/dist/types/api-model/models/create-subscription-request.d.ts +0 -11
  23. package/dist/types/api-model/models/create-subscription-response.d.ts +0 -9
  24. package/dist/types/api-model/models/delete-destination-response.d.ts +0 -4
  25. package/dist/types/api-model/models/delete-subscription-by-id-response.d.ts +0 -4
  26. package/dist/types/api-model/models/destination-resource-specification.d.ts +0 -12
  27. package/dist/types/api-model/models/destination-resource.d.ts +0 -12
  28. package/dist/types/api-model/models/destination.d.ts +0 -11
  29. package/dist/types/api-model/models/event-bridge-resource-specification.d.ts +0 -6
  30. package/dist/types/api-model/models/event-bridge-resource.d.ts +0 -8
  31. package/dist/types/api-model/models/event-filter-all-of.d.ts +0 -7
  32. package/dist/types/api-model/models/event-filter.d.ts +0 -1
  33. package/dist/types/api-model/models/get-destination-response.d.ts +0 -9
  34. package/dist/types/api-model/models/get-destinations-response.d.ts +0 -6
  35. package/dist/types/api-model/models/get-subscription-by-id-response.d.ts +0 -9
  36. package/dist/types/api-model/models/get-subscription-response.d.ts +0 -9
  37. package/dist/types/api-model/models/marketplace-filter.d.ts +0 -4
  38. package/dist/types/api-model/models/model-error.d.ts +0 -8
  39. package/dist/types/api-model/models/order-change-type-enum.d.ts +0 -2
  40. package/dist/types/api-model/models/order-change-type-filter.d.ts +0 -4
  41. package/dist/types/api-model/models/processing-directive.d.ts +0 -7
  42. package/dist/types/api-model/models/sqs-resource.d.ts +0 -4
  43. package/dist/types/api-model/models/subscription.d.ts +0 -13
  44. package/package.json +25 -4
@@ -25,7 +25,6 @@ const common_1 = require("../common");
25
25
  const base_1 = require("../base");
26
26
  /**
27
27
  * NotificationsApi - axios parameter creator
28
- * @export
29
28
  */
30
29
  const NotificationsApiAxiosParamCreator = function (configuration) {
31
30
  return {
@@ -272,7 +271,6 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
272
271
  exports.NotificationsApiAxiosParamCreator = NotificationsApiAxiosParamCreator;
273
272
  /**
274
273
  * NotificationsApi - functional programming interface
275
- * @export
276
274
  */
277
275
  const NotificationsApiFp = function (configuration) {
278
276
  const localVarAxiosParamCreator = (0, exports.NotificationsApiAxiosParamCreator)(configuration);
@@ -381,7 +379,6 @@ const NotificationsApiFp = function (configuration) {
381
379
  exports.NotificationsApiFp = NotificationsApiFp;
382
380
  /**
383
381
  * NotificationsApi - factory interface
384
- * @export
385
382
  */
386
383
  const NotificationsApiFactory = function (configuration, basePath, axios) {
387
384
  const localVarFp = (0, exports.NotificationsApiFp)(configuration);
@@ -462,9 +459,6 @@ const NotificationsApiFactory = function (configuration, basePath, axios) {
462
459
  exports.NotificationsApiFactory = NotificationsApiFactory;
463
460
  /**
464
461
  * NotificationsApi - object-oriented interface
465
- * @export
466
- * @class NotificationsApi
467
- * @extends {BaseAPI}
468
462
  */
469
463
  class NotificationsApi extends base_1.BaseAPI {
470
464
  /**
@@ -472,7 +466,6 @@ class NotificationsApi extends base_1.BaseAPI {
472
466
  * @param {NotificationsApiCreateDestinationRequest} requestParameters Request parameters.
473
467
  * @param {*} [options] Override http request option.
474
468
  * @throws {RequiredError}
475
- * @memberof NotificationsApi
476
469
  */
477
470
  createDestination(requestParameters, options) {
478
471
  return (0, exports.NotificationsApiFp)(this.configuration).createDestination(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
@@ -482,7 +475,6 @@ class NotificationsApi extends base_1.BaseAPI {
482
475
  * @param {NotificationsApiCreateSubscriptionRequest} requestParameters Request parameters.
483
476
  * @param {*} [options] Override http request option.
484
477
  * @throws {RequiredError}
485
- * @memberof NotificationsApi
486
478
  */
487
479
  createSubscription(requestParameters, options) {
488
480
  return (0, exports.NotificationsApiFp)(this.configuration).createSubscription(requestParameters.notificationType, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
@@ -492,7 +484,6 @@ class NotificationsApi extends base_1.BaseAPI {
492
484
  * @param {NotificationsApiDeleteDestinationRequest} requestParameters Request parameters.
493
485
  * @param {*} [options] Override http request option.
494
486
  * @throws {RequiredError}
495
- * @memberof NotificationsApi
496
487
  */
497
488
  deleteDestination(requestParameters, options) {
498
489
  return (0, exports.NotificationsApiFp)(this.configuration).deleteDestination(requestParameters.destinationId, options).then((request) => request(this.axios, this.basePath));
@@ -502,7 +493,6 @@ class NotificationsApi extends base_1.BaseAPI {
502
493
  * @param {NotificationsApiDeleteSubscriptionByIdRequest} requestParameters Request parameters.
503
494
  * @param {*} [options] Override http request option.
504
495
  * @throws {RequiredError}
505
- * @memberof NotificationsApi
506
496
  */
507
497
  deleteSubscriptionById(requestParameters, options) {
508
498
  return (0, exports.NotificationsApiFp)(this.configuration).deleteSubscriptionById(requestParameters.subscriptionId, requestParameters.notificationType, options).then((request) => request(this.axios, this.basePath));
@@ -512,7 +502,6 @@ class NotificationsApi extends base_1.BaseAPI {
512
502
  * @param {NotificationsApiGetDestinationRequest} requestParameters Request parameters.
513
503
  * @param {*} [options] Override http request option.
514
504
  * @throws {RequiredError}
515
- * @memberof NotificationsApi
516
505
  */
517
506
  getDestination(requestParameters, options) {
518
507
  return (0, exports.NotificationsApiFp)(this.configuration).getDestination(requestParameters.destinationId, options).then((request) => request(this.axios, this.basePath));
@@ -521,7 +510,6 @@ class NotificationsApi extends base_1.BaseAPI {
521
510
  * Returns information about all destinations. The `getDestinations` operation is grantless. For more information, refer to [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | 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 observe 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).
522
511
  * @param {*} [options] Override http request option.
523
512
  * @throws {RequiredError}
524
- * @memberof NotificationsApi
525
513
  */
526
514
  getDestinations(options) {
527
515
  return (0, exports.NotificationsApiFp)(this.configuration).getDestinations(options).then((request) => request(this.axios, this.basePath));
@@ -531,7 +519,6 @@ class NotificationsApi extends base_1.BaseAPI {
531
519
  * @param {NotificationsApiGetSubscriptionRequest} requestParameters Request parameters.
532
520
  * @param {*} [options] Override http request option.
533
521
  * @throws {RequiredError}
534
- * @memberof NotificationsApi
535
522
  */
536
523
  getSubscription(requestParameters, options) {
537
524
  return (0, exports.NotificationsApiFp)(this.configuration).getSubscription(requestParameters.notificationType, requestParameters.payloadVersion, options).then((request) => request(this.axios, this.basePath));
@@ -541,7 +528,6 @@ class NotificationsApi extends base_1.BaseAPI {
541
528
  * @param {NotificationsApiGetSubscriptionByIdRequest} requestParameters Request parameters.
542
529
  * @param {*} [options] Override http request option.
543
530
  * @throws {RequiredError}
544
- * @memberof NotificationsApi
545
531
  */
546
532
  getSubscriptionById(requestParameters, options) {
547
533
  return (0, exports.NotificationsApiFp)(this.configuration).getSubscriptionById(requestParameters.subscriptionId, requestParameters.notificationType, options).then((request) => request(this.axios, this.basePath));
@@ -19,21 +19,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
20
20
  const axios_1 = __importDefault(require("axios"));
21
21
  exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
22
- /**
23
- *
24
- * @export
25
- */
26
22
  exports.COLLECTION_FORMATS = {
27
23
  csv: ",",
28
24
  ssv: " ",
29
25
  tsv: "\t",
30
26
  pipes: "|",
31
27
  };
32
- /**
33
- *
34
- * @export
35
- * @class BaseAPI
36
- */
37
28
  class BaseAPI {
38
29
  basePath;
39
30
  axios;
@@ -49,12 +40,6 @@ class BaseAPI {
49
40
  }
50
41
  exports.BaseAPI = BaseAPI;
51
42
  ;
52
- /**
53
- *
54
- * @export
55
- * @class RequiredError
56
- * @extends {Error}
57
- */
58
43
  class RequiredError extends Error {
59
44
  field;
60
45
  constructor(field, msg) {
@@ -64,8 +49,4 @@ class RequiredError extends Error {
64
49
  }
65
50
  }
66
51
  exports.RequiredError = RequiredError;
67
- /**
68
- *
69
- * @export
70
- */
71
52
  exports.operationServerMap = {};
@@ -15,15 +15,10 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
17
17
  const base_1 = require("./base");
18
- /**
19
- *
20
- * @export
21
- */
22
18
  exports.DUMMY_BASE_URL = 'https://example.com';
23
19
  /**
24
20
  *
25
21
  * @throws {RequiredError}
26
- * @export
27
22
  */
28
23
  const assertParamExists = function (functionName, paramName, paramValue) {
29
24
  if (paramValue === null || paramValue === undefined) {
@@ -31,10 +26,6 @@ const assertParamExists = function (functionName, paramName, paramValue) {
31
26
  }
32
27
  };
33
28
  exports.assertParamExists = assertParamExists;
34
- /**
35
- *
36
- * @export
37
- */
38
29
  const setApiKeyToObject = async function (object, keyParamName, configuration) {
39
30
  if (configuration && configuration.apiKey) {
40
31
  const localVarApiKeyValue = typeof configuration.apiKey === 'function'
@@ -44,20 +35,12 @@ const setApiKeyToObject = async function (object, keyParamName, configuration) {
44
35
  }
45
36
  };
46
37
  exports.setApiKeyToObject = setApiKeyToObject;
47
- /**
48
- *
49
- * @export
50
- */
51
38
  const setBasicAuthToObject = function (object, configuration) {
52
39
  if (configuration && (configuration.username || configuration.password)) {
53
40
  object["auth"] = { username: configuration.username, password: configuration.password };
54
41
  }
55
42
  };
56
43
  exports.setBasicAuthToObject = setBasicAuthToObject;
57
- /**
58
- *
59
- * @export
60
- */
61
44
  const setBearerAuthToObject = async function (object, configuration) {
62
45
  if (configuration && configuration.accessToken) {
63
46
  const accessToken = typeof configuration.accessToken === 'function'
@@ -67,10 +50,6 @@ const setBearerAuthToObject = async function (object, configuration) {
67
50
  }
68
51
  };
69
52
  exports.setBearerAuthToObject = setBearerAuthToObject;
70
- /**
71
- *
72
- * @export
73
- */
74
53
  const setOAuthToObject = async function (object, name, scopes, configuration) {
75
54
  if (configuration && configuration.accessToken) {
76
55
  const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
@@ -100,20 +79,12 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
100
79
  }
101
80
  }
102
81
  }
103
- /**
104
- *
105
- * @export
106
- */
107
82
  const setSearchParams = function (url, ...objects) {
108
83
  const searchParams = new URLSearchParams(url.search);
109
84
  setFlattenedQueryParams(searchParams, objects);
110
85
  url.search = searchParams.toString();
111
86
  };
112
87
  exports.setSearchParams = setSearchParams;
113
- /**
114
- *
115
- * @export
116
- */
117
88
  const serializeDataIfNeeded = function (value, requestOptions, configuration) {
118
89
  const nonString = typeof value !== 'string';
119
90
  const needsSerialization = nonString && configuration && configuration.isJsonMime
@@ -124,18 +95,10 @@ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
124
95
  : (value || "");
125
96
  };
126
97
  exports.serializeDataIfNeeded = serializeDataIfNeeded;
127
- /**
128
- *
129
- * @export
130
- */
131
98
  const toPathString = function (url) {
132
99
  return url.pathname + url.search + url.hash;
133
100
  };
134
101
  exports.toPathString = toPathString;
135
- /**
136
- *
137
- * @export
138
- */
139
102
  const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
140
103
  return (axios = globalAxios, basePath = BASE_PATH) => {
141
104
  const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
@@ -18,49 +18,32 @@ class Configuration {
18
18
  /**
19
19
  * parameter for apiKey security
20
20
  * @param name security name
21
- * @memberof Configuration
22
21
  */
23
22
  apiKey;
24
23
  /**
25
24
  * parameter for basic security
26
- *
27
- * @type {string}
28
- * @memberof Configuration
29
25
  */
30
26
  username;
31
27
  /**
32
28
  * parameter for basic security
33
- *
34
- * @type {string}
35
- * @memberof Configuration
36
29
  */
37
30
  password;
38
31
  /**
39
32
  * parameter for oauth2 security
40
33
  * @param name security name
41
34
  * @param scopes oauth2 scope
42
- * @memberof Configuration
43
35
  */
44
36
  accessToken;
45
37
  /**
46
38
  * override base path
47
- *
48
- * @type {string}
49
- * @memberof Configuration
50
39
  */
51
40
  basePath;
52
41
  /**
53
42
  * override server index
54
- *
55
- * @type {number}
56
- * @memberof Configuration
57
43
  */
58
44
  serverIndex;
59
45
  /**
60
46
  * base options for axios calls
61
- *
62
- * @type {any}
63
- * @memberof Configuration
64
47
  */
65
48
  baseOptions;
66
49
  /**
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.AggregationTimePeriod = void 0;
17
17
  /**
18
18
  * The supported aggregation time periods. For example, if FiveMinutes is the value chosen, and 50 price updates occur for an ASIN within 5 minutes, Amazon will send only two notifications; one for the first event, and then a subsequent notification 5 minutes later with the final end state of the data. The 48 interim events will be dropped.
19
- * @export
20
- * @enum {string}
21
19
  */
22
20
  exports.AggregationTimePeriod = {
23
21
  FiveMinutes: 'FiveMinutes',
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.OrderChangeTypeEnum = void 0;
17
17
  /**
18
18
  * The supported order change type of ORDER_CHANGE notification.
19
- * @export
20
- * @enum {string}
21
19
  */
22
20
  exports.OrderChangeTypeEnum = {
23
21
  OrderStatusChange: 'OrderStatusChange',
@@ -19,7 +19,6 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeed
19
19
  import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
20
  /**
21
21
  * NotificationsApi - axios parameter creator
22
- * @export
23
22
  */
24
23
  export const NotificationsApiAxiosParamCreator = function (configuration) {
25
24
  return {
@@ -265,7 +264,6 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
265
264
  };
266
265
  /**
267
266
  * NotificationsApi - functional programming interface
268
- * @export
269
267
  */
270
268
  export const NotificationsApiFp = function (configuration) {
271
269
  const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration);
@@ -373,7 +371,6 @@ export const NotificationsApiFp = function (configuration) {
373
371
  };
374
372
  /**
375
373
  * NotificationsApi - factory interface
376
- * @export
377
374
  */
378
375
  export const NotificationsApiFactory = function (configuration, basePath, axios) {
379
376
  const localVarFp = NotificationsApiFp(configuration);
@@ -453,9 +450,6 @@ export const NotificationsApiFactory = function (configuration, basePath, axios)
453
450
  };
454
451
  /**
455
452
  * NotificationsApi - object-oriented interface
456
- * @export
457
- * @class NotificationsApi
458
- * @extends {BaseAPI}
459
453
  */
460
454
  export class NotificationsApi extends BaseAPI {
461
455
  /**
@@ -463,7 +457,6 @@ export class NotificationsApi extends BaseAPI {
463
457
  * @param {NotificationsApiCreateDestinationRequest} requestParameters Request parameters.
464
458
  * @param {*} [options] Override http request option.
465
459
  * @throws {RequiredError}
466
- * @memberof NotificationsApi
467
460
  */
468
461
  createDestination(requestParameters, options) {
469
462
  return NotificationsApiFp(this.configuration).createDestination(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
@@ -473,7 +466,6 @@ export class NotificationsApi extends BaseAPI {
473
466
  * @param {NotificationsApiCreateSubscriptionRequest} requestParameters Request parameters.
474
467
  * @param {*} [options] Override http request option.
475
468
  * @throws {RequiredError}
476
- * @memberof NotificationsApi
477
469
  */
478
470
  createSubscription(requestParameters, options) {
479
471
  return NotificationsApiFp(this.configuration).createSubscription(requestParameters.notificationType, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
@@ -483,7 +475,6 @@ export class NotificationsApi extends BaseAPI {
483
475
  * @param {NotificationsApiDeleteDestinationRequest} requestParameters Request parameters.
484
476
  * @param {*} [options] Override http request option.
485
477
  * @throws {RequiredError}
486
- * @memberof NotificationsApi
487
478
  */
488
479
  deleteDestination(requestParameters, options) {
489
480
  return NotificationsApiFp(this.configuration).deleteDestination(requestParameters.destinationId, options).then((request) => request(this.axios, this.basePath));
@@ -493,7 +484,6 @@ export class NotificationsApi extends BaseAPI {
493
484
  * @param {NotificationsApiDeleteSubscriptionByIdRequest} requestParameters Request parameters.
494
485
  * @param {*} [options] Override http request option.
495
486
  * @throws {RequiredError}
496
- * @memberof NotificationsApi
497
487
  */
498
488
  deleteSubscriptionById(requestParameters, options) {
499
489
  return NotificationsApiFp(this.configuration).deleteSubscriptionById(requestParameters.subscriptionId, requestParameters.notificationType, options).then((request) => request(this.axios, this.basePath));
@@ -503,7 +493,6 @@ export class NotificationsApi extends BaseAPI {
503
493
  * @param {NotificationsApiGetDestinationRequest} requestParameters Request parameters.
504
494
  * @param {*} [options] Override http request option.
505
495
  * @throws {RequiredError}
506
- * @memberof NotificationsApi
507
496
  */
508
497
  getDestination(requestParameters, options) {
509
498
  return NotificationsApiFp(this.configuration).getDestination(requestParameters.destinationId, options).then((request) => request(this.axios, this.basePath));
@@ -512,7 +501,6 @@ export class NotificationsApi extends BaseAPI {
512
501
  * Returns information about all destinations. The `getDestinations` operation is grantless. For more information, refer to [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | 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 observe 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).
513
502
  * @param {*} [options] Override http request option.
514
503
  * @throws {RequiredError}
515
- * @memberof NotificationsApi
516
504
  */
517
505
  getDestinations(options) {
518
506
  return NotificationsApiFp(this.configuration).getDestinations(options).then((request) => request(this.axios, this.basePath));
@@ -522,7 +510,6 @@ export class NotificationsApi extends BaseAPI {
522
510
  * @param {NotificationsApiGetSubscriptionRequest} requestParameters Request parameters.
523
511
  * @param {*} [options] Override http request option.
524
512
  * @throws {RequiredError}
525
- * @memberof NotificationsApi
526
513
  */
527
514
  getSubscription(requestParameters, options) {
528
515
  return NotificationsApiFp(this.configuration).getSubscription(requestParameters.notificationType, requestParameters.payloadVersion, options).then((request) => request(this.axios, this.basePath));
@@ -532,7 +519,6 @@ export class NotificationsApi extends BaseAPI {
532
519
  * @param {NotificationsApiGetSubscriptionByIdRequest} requestParameters Request parameters.
533
520
  * @param {*} [options] Override http request option.
534
521
  * @throws {RequiredError}
535
- * @memberof NotificationsApi
536
522
  */
537
523
  getSubscriptionById(requestParameters, options) {
538
524
  return NotificationsApiFp(this.configuration).getSubscriptionById(requestParameters.subscriptionId, requestParameters.notificationType, options).then((request) => request(this.axios, this.basePath));
@@ -13,21 +13,12 @@
13
13
  */
14
14
  import globalAxios from 'axios';
15
15
  export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
16
- /**
17
- *
18
- * @export
19
- */
20
16
  export const COLLECTION_FORMATS = {
21
17
  csv: ",",
22
18
  ssv: " ",
23
19
  tsv: "\t",
24
20
  pipes: "|",
25
21
  };
26
- /**
27
- *
28
- * @export
29
- * @class BaseAPI
30
- */
31
22
  export class BaseAPI {
32
23
  basePath;
33
24
  axios;
@@ -42,12 +33,6 @@ export class BaseAPI {
42
33
  }
43
34
  }
44
35
  ;
45
- /**
46
- *
47
- * @export
48
- * @class RequiredError
49
- * @extends {Error}
50
- */
51
36
  export class RequiredError extends Error {
52
37
  field;
53
38
  constructor(field, msg) {
@@ -56,8 +41,4 @@ export class RequiredError extends Error {
56
41
  this.name = "RequiredError";
57
42
  }
58
43
  }
59
- /**
60
- *
61
- * @export
62
- */
63
44
  export const operationServerMap = {};
@@ -12,25 +12,16 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { RequiredError } from "./base";
15
- /**
16
- *
17
- * @export
18
- */
19
15
  export const DUMMY_BASE_URL = 'https://example.com';
20
16
  /**
21
17
  *
22
18
  * @throws {RequiredError}
23
- * @export
24
19
  */
25
20
  export const assertParamExists = function (functionName, paramName, paramValue) {
26
21
  if (paramValue === null || paramValue === undefined) {
27
22
  throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
28
23
  }
29
24
  };
30
- /**
31
- *
32
- * @export
33
- */
34
25
  export const setApiKeyToObject = async function (object, keyParamName, configuration) {
35
26
  if (configuration && configuration.apiKey) {
36
27
  const localVarApiKeyValue = typeof configuration.apiKey === 'function'
@@ -39,19 +30,11 @@ export const setApiKeyToObject = async function (object, keyParamName, configura
39
30
  object[keyParamName] = localVarApiKeyValue;
40
31
  }
41
32
  };
42
- /**
43
- *
44
- * @export
45
- */
46
33
  export const setBasicAuthToObject = function (object, configuration) {
47
34
  if (configuration && (configuration.username || configuration.password)) {
48
35
  object["auth"] = { username: configuration.username, password: configuration.password };
49
36
  }
50
37
  };
51
- /**
52
- *
53
- * @export
54
- */
55
38
  export const setBearerAuthToObject = async function (object, configuration) {
56
39
  if (configuration && configuration.accessToken) {
57
40
  const accessToken = typeof configuration.accessToken === 'function'
@@ -60,10 +43,6 @@ export const setBearerAuthToObject = async function (object, configuration) {
60
43
  object["Authorization"] = "Bearer " + accessToken;
61
44
  }
62
45
  };
63
- /**
64
- *
65
- * @export
66
- */
67
46
  export const setOAuthToObject = async function (object, name, scopes, configuration) {
68
47
  if (configuration && configuration.accessToken) {
69
48
  const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
@@ -92,19 +71,11 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
92
71
  }
93
72
  }
94
73
  }
95
- /**
96
- *
97
- * @export
98
- */
99
74
  export const setSearchParams = function (url, ...objects) {
100
75
  const searchParams = new URLSearchParams(url.search);
101
76
  setFlattenedQueryParams(searchParams, objects);
102
77
  url.search = searchParams.toString();
103
78
  };
104
- /**
105
- *
106
- * @export
107
- */
108
79
  export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
109
80
  const nonString = typeof value !== 'string';
110
81
  const needsSerialization = nonString && configuration && configuration.isJsonMime
@@ -114,17 +85,9 @@ export const serializeDataIfNeeded = function (value, requestOptions, configurat
114
85
  ? JSON.stringify(value !== undefined ? value : {})
115
86
  : (value || "");
116
87
  };
117
- /**
118
- *
119
- * @export
120
- */
121
88
  export const toPathString = function (url) {
122
89
  return url.pathname + url.search + url.hash;
123
90
  };
124
- /**
125
- *
126
- * @export
127
- */
128
91
  export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
129
92
  return (axios = globalAxios, basePath = BASE_PATH) => {
130
93
  const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
@@ -15,49 +15,32 @@ export class Configuration {
15
15
  /**
16
16
  * parameter for apiKey security
17
17
  * @param name security name
18
- * @memberof Configuration
19
18
  */
20
19
  apiKey;
21
20
  /**
22
21
  * parameter for basic security
23
- *
24
- * @type {string}
25
- * @memberof Configuration
26
22
  */
27
23
  username;
28
24
  /**
29
25
  * parameter for basic security
30
- *
31
- * @type {string}
32
- * @memberof Configuration
33
26
  */
34
27
  password;
35
28
  /**
36
29
  * parameter for oauth2 security
37
30
  * @param name security name
38
31
  * @param scopes oauth2 scope
39
- * @memberof Configuration
40
32
  */
41
33
  accessToken;
42
34
  /**
43
35
  * override base path
44
- *
45
- * @type {string}
46
- * @memberof Configuration
47
36
  */
48
37
  basePath;
49
38
  /**
50
39
  * override server index
51
- *
52
- * @type {number}
53
- * @memberof Configuration
54
40
  */
55
41
  serverIndex;
56
42
  /**
57
43
  * base options for axios calls
58
- *
59
- * @type {any}
60
- * @memberof Configuration
61
44
  */
62
45
  baseOptions;
63
46
  /**
@@ -13,8 +13,6 @@
13
13
  */
14
14
  /**
15
15
  * The supported aggregation time periods. For example, if FiveMinutes is the value chosen, and 50 price updates occur for an ASIN within 5 minutes, Amazon will send only two notifications; one for the first event, and then a subsequent notification 5 minutes later with the final end state of the data. The 48 interim events will be dropped.
16
- * @export
17
- * @enum {string}
18
16
  */
19
17
  export const AggregationTimePeriod = {
20
18
  FiveMinutes: 'FiveMinutes',
@@ -13,8 +13,6 @@
13
13
  */
14
14
  /**
15
15
  * The supported order change type of ORDER_CHANGE notification.
16
- * @export
17
- * @enum {string}
18
16
  */
19
17
  export const OrderChangeTypeEnum = {
20
18
  OrderStatusChange: 'OrderStatusChange',