@sp-api-sdk/easy-ship-api-2022-03-23 4.2.3 → 4.2.5

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 (52) hide show
  1. package/dist/cjs/api-model/api/easy-ship-api.js +0 -11
  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/code.js +0 -2
  6. package/dist/cjs/api-model/models/handover-method.js +0 -2
  7. package/dist/cjs/api-model/models/label-format.js +0 -2
  8. package/dist/cjs/api-model/models/package-status.js +0 -2
  9. package/dist/cjs/api-model/models/unit-of-length.js +0 -2
  10. package/dist/cjs/api-model/models/unit-of-weight.js +0 -2
  11. package/dist/es/api-model/api/easy-ship-api.js +0 -11
  12. package/dist/es/api-model/base.js +0 -19
  13. package/dist/es/api-model/common.js +0 -37
  14. package/dist/es/api-model/configuration.js +0 -17
  15. package/dist/es/api-model/models/code.js +0 -2
  16. package/dist/es/api-model/models/handover-method.js +0 -2
  17. package/dist/es/api-model/models/label-format.js +0 -2
  18. package/dist/es/api-model/models/package-status.js +0 -2
  19. package/dist/es/api-model/models/unit-of-length.js +0 -2
  20. package/dist/es/api-model/models/unit-of-weight.js +0 -2
  21. package/dist/types/api-model/api/easy-ship-api.d.ts +0 -33
  22. package/dist/types/api-model/base.d.ts +0 -24
  23. package/dist/types/api-model/common.d.ts +0 -37
  24. package/dist/types/api-model/configuration.d.ts +0 -17
  25. package/dist/types/api-model/models/code.d.ts +0 -2
  26. package/dist/types/api-model/models/create-scheduled-package-request.d.ts +0 -11
  27. package/dist/types/api-model/models/create-scheduled-packages-request.d.ts +0 -11
  28. package/dist/types/api-model/models/create-scheduled-packages-response.d.ts +0 -8
  29. package/dist/types/api-model/models/dimensions.d.ts +0 -15
  30. package/dist/types/api-model/models/error-list.d.ts +0 -4
  31. package/dist/types/api-model/models/handover-method.d.ts +0 -2
  32. package/dist/types/api-model/models/invoice-data.d.ts +0 -6
  33. package/dist/types/api-model/models/item.d.ts +0 -6
  34. package/dist/types/api-model/models/label-format.d.ts +0 -2
  35. package/dist/types/api-model/models/list-handover-slots-request.d.ts +0 -16
  36. package/dist/types/api-model/models/list-handover-slots-response.d.ts +0 -6
  37. package/dist/types/api-model/models/model-error.d.ts +0 -8
  38. package/dist/types/api-model/models/order-schedule-details.d.ts +0 -9
  39. package/dist/types/api-model/models/package-details.d.ts +0 -11
  40. package/dist/types/api-model/models/package-status.d.ts +0 -2
  41. package/dist/types/api-model/models/package.d.ts +0 -41
  42. package/dist/types/api-model/models/packages.d.ts +0 -4
  43. package/dist/types/api-model/models/rejected-order.d.ts +0 -9
  44. package/dist/types/api-model/models/scheduled-package-id.d.ts +0 -6
  45. package/dist/types/api-model/models/time-slot.d.ts +0 -13
  46. package/dist/types/api-model/models/tracking-details.d.ts +0 -4
  47. package/dist/types/api-model/models/unit-of-length.d.ts +0 -2
  48. package/dist/types/api-model/models/unit-of-weight.d.ts +0 -2
  49. package/dist/types/api-model/models/update-package-details.d.ts +0 -12
  50. package/dist/types/api-model/models/update-scheduled-packages-request.d.ts +0 -6
  51. package/dist/types/api-model/models/weight.d.ts +0 -9
  52. 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
  * EasyShipApi - axios parameter creator
28
- * @export
29
28
  */
30
29
  const EasyShipApiAxiosParamCreator = function (configuration) {
31
30
  return {
@@ -182,7 +181,6 @@ const EasyShipApiAxiosParamCreator = function (configuration) {
182
181
  exports.EasyShipApiAxiosParamCreator = EasyShipApiAxiosParamCreator;
183
182
  /**
184
183
  * EasyShipApi - functional programming interface
185
- * @export
186
184
  */
187
185
  const EasyShipApiFp = function (configuration) {
188
186
  const localVarAxiosParamCreator = (0, exports.EasyShipApiAxiosParamCreator)(configuration);
@@ -253,7 +251,6 @@ const EasyShipApiFp = function (configuration) {
253
251
  exports.EasyShipApiFp = EasyShipApiFp;
254
252
  /**
255
253
  * EasyShipApi - factory interface
256
- * @export
257
254
  */
258
255
  const EasyShipApiFactory = function (configuration, basePath, axios) {
259
256
  const localVarFp = (0, exports.EasyShipApiFp)(configuration);
@@ -308,9 +305,6 @@ const EasyShipApiFactory = function (configuration, basePath, axios) {
308
305
  exports.EasyShipApiFactory = EasyShipApiFactory;
309
306
  /**
310
307
  * EasyShipApi - object-oriented interface
311
- * @export
312
- * @class EasyShipApi
313
- * @extends {BaseAPI}
314
308
  */
315
309
  class EasyShipApi extends base_1.BaseAPI {
316
310
  /**
@@ -318,7 +312,6 @@ class EasyShipApi extends base_1.BaseAPI {
318
312
  * @param {EasyShipApiCreateScheduledPackageRequest} requestParameters Request parameters.
319
313
  * @param {*} [options] Override http request option.
320
314
  * @throws {RequiredError}
321
- * @memberof EasyShipApi
322
315
  */
323
316
  createScheduledPackage(requestParameters, options) {
324
317
  return (0, exports.EasyShipApiFp)(this.configuration).createScheduledPackage(requestParameters.createScheduledPackageRequest, options).then((request) => request(this.axios, this.basePath));
@@ -328,7 +321,6 @@ class EasyShipApi extends base_1.BaseAPI {
328
321
  * @param {EasyShipApiCreateScheduledPackageBulkRequest} requestParameters Request parameters.
329
322
  * @param {*} [options] Override http request option.
330
323
  * @throws {RequiredError}
331
- * @memberof EasyShipApi
332
324
  */
333
325
  createScheduledPackageBulk(requestParameters, options) {
334
326
  return (0, exports.EasyShipApiFp)(this.configuration).createScheduledPackageBulk(requestParameters.createScheduledPackagesRequest, options).then((request) => request(this.axios, this.basePath));
@@ -338,7 +330,6 @@ class EasyShipApi extends base_1.BaseAPI {
338
330
  * @param {EasyShipApiGetScheduledPackageRequest} requestParameters Request parameters.
339
331
  * @param {*} [options] Override http request option.
340
332
  * @throws {RequiredError}
341
- * @memberof EasyShipApi
342
333
  */
343
334
  getScheduledPackage(requestParameters, options) {
344
335
  return (0, exports.EasyShipApiFp)(this.configuration).getScheduledPackage(requestParameters.amazonOrderId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
@@ -348,7 +339,6 @@ class EasyShipApi extends base_1.BaseAPI {
348
339
  * @param {EasyShipApiListHandoverSlotsRequest} requestParameters Request parameters.
349
340
  * @param {*} [options] Override http request option.
350
341
  * @throws {RequiredError}
351
- * @memberof EasyShipApi
352
342
  */
353
343
  listHandoverSlots(requestParameters = {}, options) {
354
344
  return (0, exports.EasyShipApiFp)(this.configuration).listHandoverSlots(requestParameters.listHandoverSlotsRequest, options).then((request) => request(this.axios, this.basePath));
@@ -358,7 +348,6 @@ class EasyShipApi extends base_1.BaseAPI {
358
348
  * @param {EasyShipApiUpdateScheduledPackagesRequest} requestParameters Request parameters.
359
349
  * @param {*} [options] Override http request option.
360
350
  * @throws {RequiredError}
361
- * @memberof EasyShipApi
362
351
  */
363
352
  updateScheduledPackages(requestParameters = {}, options) {
364
353
  return (0, exports.EasyShipApiFp)(this.configuration).updateScheduledPackages(requestParameters.updateScheduledPackagesRequest, 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.Code = void 0;
17
17
  /**
18
18
  * An error code that identifies the type of error that occurred. The error codes listed below are specific to the Easy Ship section.
19
- * @export
20
- * @enum {string}
21
19
  */
22
20
  exports.Code = {
23
21
  InvalidInput: 'InvalidInput',
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.HandoverMethod = void 0;
17
17
  /**
18
18
  * Identifies the method by which a seller will hand a package over to Amazon Logistics.
19
- * @export
20
- * @enum {string}
21
19
  */
22
20
  exports.HandoverMethod = {
23
21
  Pickup: 'Pickup',
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.LabelFormat = void 0;
17
17
  /**
18
18
  * The file format in which the shipping label will be created.
19
- * @export
20
- * @enum {string}
21
19
  */
22
20
  exports.LabelFormat = {
23
21
  Pdf: 'PDF',
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PackageStatus = void 0;
17
17
  /**
18
18
  * The status of the package.
19
- * @export
20
- * @enum {string}
21
19
  */
22
20
  exports.PackageStatus = {
23
21
  ReadyForPickup: 'ReadyForPickup',
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UnitOfLength = void 0;
17
17
  /**
18
18
  * The unit of measurement used to measure the length.
19
- * @export
20
- * @enum {string}
21
19
  */
22
20
  exports.UnitOfLength = {
23
21
  Cm: 'Cm'
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UnitOfWeight = void 0;
17
17
  /**
18
18
  * The unit of measurement used to measure the weight.
19
- * @export
20
- * @enum {string}
21
19
  */
22
20
  exports.UnitOfWeight = {
23
21
  Grams: 'Grams',
@@ -19,7 +19,6 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeed
19
19
  import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
20
  /**
21
21
  * EasyShipApi - axios parameter creator
22
- * @export
23
22
  */
24
23
  export const EasyShipApiAxiosParamCreator = function (configuration) {
25
24
  return {
@@ -175,7 +174,6 @@ export const EasyShipApiAxiosParamCreator = function (configuration) {
175
174
  };
176
175
  /**
177
176
  * EasyShipApi - functional programming interface
178
- * @export
179
177
  */
180
178
  export const EasyShipApiFp = function (configuration) {
181
179
  const localVarAxiosParamCreator = EasyShipApiAxiosParamCreator(configuration);
@@ -245,7 +243,6 @@ export const EasyShipApiFp = function (configuration) {
245
243
  };
246
244
  /**
247
245
  * EasyShipApi - factory interface
248
- * @export
249
246
  */
250
247
  export const EasyShipApiFactory = function (configuration, basePath, axios) {
251
248
  const localVarFp = EasyShipApiFp(configuration);
@@ -299,9 +296,6 @@ export const EasyShipApiFactory = function (configuration, basePath, axios) {
299
296
  };
300
297
  /**
301
298
  * EasyShipApi - object-oriented interface
302
- * @export
303
- * @class EasyShipApi
304
- * @extends {BaseAPI}
305
299
  */
306
300
  export class EasyShipApi extends BaseAPI {
307
301
  /**
@@ -309,7 +303,6 @@ export class EasyShipApi extends BaseAPI {
309
303
  * @param {EasyShipApiCreateScheduledPackageRequest} requestParameters Request parameters.
310
304
  * @param {*} [options] Override http request option.
311
305
  * @throws {RequiredError}
312
- * @memberof EasyShipApi
313
306
  */
314
307
  createScheduledPackage(requestParameters, options) {
315
308
  return EasyShipApiFp(this.configuration).createScheduledPackage(requestParameters.createScheduledPackageRequest, options).then((request) => request(this.axios, this.basePath));
@@ -319,7 +312,6 @@ export class EasyShipApi extends BaseAPI {
319
312
  * @param {EasyShipApiCreateScheduledPackageBulkRequest} requestParameters Request parameters.
320
313
  * @param {*} [options] Override http request option.
321
314
  * @throws {RequiredError}
322
- * @memberof EasyShipApi
323
315
  */
324
316
  createScheduledPackageBulk(requestParameters, options) {
325
317
  return EasyShipApiFp(this.configuration).createScheduledPackageBulk(requestParameters.createScheduledPackagesRequest, options).then((request) => request(this.axios, this.basePath));
@@ -329,7 +321,6 @@ export class EasyShipApi extends BaseAPI {
329
321
  * @param {EasyShipApiGetScheduledPackageRequest} requestParameters Request parameters.
330
322
  * @param {*} [options] Override http request option.
331
323
  * @throws {RequiredError}
332
- * @memberof EasyShipApi
333
324
  */
334
325
  getScheduledPackage(requestParameters, options) {
335
326
  return EasyShipApiFp(this.configuration).getScheduledPackage(requestParameters.amazonOrderId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
@@ -339,7 +330,6 @@ export class EasyShipApi extends BaseAPI {
339
330
  * @param {EasyShipApiListHandoverSlotsRequest} requestParameters Request parameters.
340
331
  * @param {*} [options] Override http request option.
341
332
  * @throws {RequiredError}
342
- * @memberof EasyShipApi
343
333
  */
344
334
  listHandoverSlots(requestParameters = {}, options) {
345
335
  return EasyShipApiFp(this.configuration).listHandoverSlots(requestParameters.listHandoverSlotsRequest, options).then((request) => request(this.axios, this.basePath));
@@ -349,7 +339,6 @@ export class EasyShipApi extends BaseAPI {
349
339
  * @param {EasyShipApiUpdateScheduledPackagesRequest} requestParameters Request parameters.
350
340
  * @param {*} [options] Override http request option.
351
341
  * @throws {RequiredError}
352
- * @memberof EasyShipApi
353
342
  */
354
343
  updateScheduledPackages(requestParameters = {}, options) {
355
344
  return EasyShipApiFp(this.configuration).updateScheduledPackages(requestParameters.updateScheduledPackagesRequest, 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
  * An error code that identifies the type of error that occurred. The error codes listed below are specific to the Easy Ship section.
16
- * @export
17
- * @enum {string}
18
16
  */
19
17
  export const Code = {
20
18
  InvalidInput: 'InvalidInput',
@@ -13,8 +13,6 @@
13
13
  */
14
14
  /**
15
15
  * Identifies the method by which a seller will hand a package over to Amazon Logistics.
16
- * @export
17
- * @enum {string}
18
16
  */
19
17
  export const HandoverMethod = {
20
18
  Pickup: 'Pickup',
@@ -13,8 +13,6 @@
13
13
  */
14
14
  /**
15
15
  * The file format in which the shipping label will be created.
16
- * @export
17
- * @enum {string}
18
16
  */
19
17
  export const LabelFormat = {
20
18
  Pdf: 'PDF',
@@ -13,8 +13,6 @@
13
13
  */
14
14
  /**
15
15
  * The status of the package.
16
- * @export
17
- * @enum {string}
18
16
  */
19
17
  export const PackageStatus = {
20
18
  ReadyForPickup: 'ReadyForPickup',
@@ -13,8 +13,6 @@
13
13
  */
14
14
  /**
15
15
  * The unit of measurement used to measure the length.
16
- * @export
17
- * @enum {string}
18
16
  */
19
17
  export const UnitOfLength = {
20
18
  Cm: 'Cm'
@@ -13,8 +13,6 @@
13
13
  */
14
14
  /**
15
15
  * The unit of measurement used to measure the weight.
16
- * @export
17
- * @enum {string}
18
16
  */
19
17
  export const UnitOfWeight = {
20
18
  Grams: 'Grams',