@sp-api-sdk/vendor-orders-api-v1 3.0.5 → 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 (42) hide show
  1. package/dist/cjs/api-model/api/vendor-orders-api.js +0 -31
  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/es/api-model/api/vendor-orders-api.js +0 -31
  6. package/dist/es/api-model/base.js +0 -19
  7. package/dist/es/api-model/common.js +0 -37
  8. package/dist/es/api-model/configuration.js +0 -17
  9. package/dist/types/api-model/api/vendor-orders-api.d.ts +0 -93
  10. package/dist/types/api-model/base.d.ts +0 -24
  11. package/dist/types/api-model/common.d.ts +0 -37
  12. package/dist/types/api-model/configuration.d.ts +0 -17
  13. package/dist/types/api-model/models/acknowledgement-status-details.d.ts +0 -14
  14. package/dist/types/api-model/models/address.d.ts +0 -24
  15. package/dist/types/api-model/models/get-purchase-order-response.d.ts +0 -9
  16. package/dist/types/api-model/models/get-purchase-orders-response.d.ts +0 -9
  17. package/dist/types/api-model/models/get-purchase-orders-status-response.d.ts +0 -9
  18. package/dist/types/api-model/models/import-details.d.ts +0 -12
  19. package/dist/types/api-model/models/item-quantity.d.ts +0 -8
  20. package/dist/types/api-model/models/model-error.d.ts +0 -8
  21. package/dist/types/api-model/models/money.d.ts +0 -8
  22. package/dist/types/api-model/models/order-acknowledgement-item.d.ts +0 -27
  23. package/dist/types/api-model/models/order-acknowledgement.d.ts +0 -13
  24. package/dist/types/api-model/models/order-details.d.ts +0 -45
  25. package/dist/types/api-model/models/order-item-acknowledgement.d.ts +0 -15
  26. package/dist/types/api-model/models/order-item-status-acknowledgement-status.d.ts +0 -16
  27. package/dist/types/api-model/models/order-item-status-ordered-quantity.d.ts +0 -9
  28. package/dist/types/api-model/models/order-item-status-receiving-status.d.ts +0 -11
  29. package/dist/types/api-model/models/order-item-status.d.ts +0 -33
  30. package/dist/types/api-model/models/order-item.d.ts +0 -25
  31. package/dist/types/api-model/models/order-list-status.d.ts +0 -9
  32. package/dist/types/api-model/models/order-list.d.ts +0 -9
  33. package/dist/types/api-model/models/order-status.d.ts +0 -22
  34. package/dist/types/api-model/models/order.d.ts +0 -11
  35. package/dist/types/api-model/models/ordered-quantity-details.d.ts +0 -14
  36. package/dist/types/api-model/models/pagination.d.ts +0 -4
  37. package/dist/types/api-model/models/party-identification.d.ts +0 -14
  38. package/dist/types/api-model/models/submit-acknowledgement-request.d.ts +0 -4
  39. package/dist/types/api-model/models/submit-acknowledgement-response.d.ts +0 -9
  40. package/dist/types/api-model/models/tax-registration-details.d.ts +0 -6
  41. package/dist/types/api-model/models/transaction-id.d.ts +0 -4
  42. 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
  * VendorOrdersApi - axios parameter creator
28
- * @export
29
28
  */
30
29
  const VendorOrdersApiAxiosParamCreator = function (configuration) {
31
30
  return {
@@ -255,7 +254,6 @@ const VendorOrdersApiAxiosParamCreator = function (configuration) {
255
254
  exports.VendorOrdersApiAxiosParamCreator = VendorOrdersApiAxiosParamCreator;
256
255
  /**
257
256
  * VendorOrdersApi - functional programming interface
258
- * @export
259
257
  */
260
258
  const VendorOrdersApiFp = function (configuration) {
261
259
  const localVarAxiosParamCreator = (0, exports.VendorOrdersApiAxiosParamCreator)(configuration);
@@ -336,7 +334,6 @@ const VendorOrdersApiFp = function (configuration) {
336
334
  exports.VendorOrdersApiFp = VendorOrdersApiFp;
337
335
  /**
338
336
  * VendorOrdersApi - factory interface
339
- * @export
340
337
  */
341
338
  const VendorOrdersApiFactory = function (configuration, basePath, axios) {
342
339
  const localVarFp = (0, exports.VendorOrdersApiFp)(configuration);
@@ -382,9 +379,6 @@ const VendorOrdersApiFactory = function (configuration, basePath, axios) {
382
379
  exports.VendorOrdersApiFactory = VendorOrdersApiFactory;
383
380
  /**
384
381
  * VendorOrdersApi - object-oriented interface
385
- * @export
386
- * @class VendorOrdersApi
387
- * @extends {BaseAPI}
388
382
  */
389
383
  class VendorOrdersApi extends base_1.BaseAPI {
390
384
  /**
@@ -392,7 +386,6 @@ class VendorOrdersApi extends base_1.BaseAPI {
392
386
  * @param {VendorOrdersApiGetPurchaseOrderRequest} requestParameters Request parameters.
393
387
  * @param {*} [options] Override http request option.
394
388
  * @throws {RequiredError}
395
- * @memberof VendorOrdersApi
396
389
  */
397
390
  getPurchaseOrder(requestParameters, options) {
398
391
  return (0, exports.VendorOrdersApiFp)(this.configuration).getPurchaseOrder(requestParameters.purchaseOrderNumber, options).then((request) => request(this.axios, this.basePath));
@@ -402,7 +395,6 @@ class VendorOrdersApi extends base_1.BaseAPI {
402
395
  * @param {VendorOrdersApiGetPurchaseOrdersRequest} requestParameters Request parameters.
403
396
  * @param {*} [options] Override http request option.
404
397
  * @throws {RequiredError}
405
- * @memberof VendorOrdersApi
406
398
  */
407
399
  getPurchaseOrders(requestParameters = {}, options) {
408
400
  return (0, exports.VendorOrdersApiFp)(this.configuration).getPurchaseOrders(requestParameters.limit, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.includeDetails, requestParameters.changedAfter, requestParameters.changedBefore, requestParameters.poItemState, requestParameters.isPOChanged, requestParameters.purchaseOrderState, requestParameters.orderingVendorCode, options).then((request) => request(this.axios, this.basePath));
@@ -412,7 +404,6 @@ class VendorOrdersApi extends base_1.BaseAPI {
412
404
  * @param {VendorOrdersApiGetPurchaseOrdersStatusRequest} requestParameters Request parameters.
413
405
  * @param {*} [options] Override http request option.
414
406
  * @throws {RequiredError}
415
- * @memberof VendorOrdersApi
416
407
  */
417
408
  getPurchaseOrdersStatus(requestParameters = {}, options) {
418
409
  return (0, exports.VendorOrdersApiFp)(this.configuration).getPurchaseOrdersStatus(requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.purchaseOrderNumber, requestParameters.purchaseOrderStatus, requestParameters.itemConfirmationStatus, requestParameters.itemReceiveStatus, requestParameters.orderingVendorCode, requestParameters.shipToPartyId, options).then((request) => request(this.axios, this.basePath));
@@ -422,60 +413,38 @@ class VendorOrdersApi extends base_1.BaseAPI {
422
413
  * @param {VendorOrdersApiSubmitAcknowledgementRequest} requestParameters Request parameters.
423
414
  * @param {*} [options] Override http request option.
424
415
  * @throws {RequiredError}
425
- * @memberof VendorOrdersApi
426
416
  */
427
417
  submitAcknowledgement(requestParameters, options) {
428
418
  return (0, exports.VendorOrdersApiFp)(this.configuration).submitAcknowledgement(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
429
419
  }
430
420
  }
431
421
  exports.VendorOrdersApi = VendorOrdersApi;
432
- /**
433
- * @export
434
- */
435
422
  exports.GetPurchaseOrdersSortOrderEnum = {
436
423
  Asc: 'ASC',
437
424
  Desc: 'DESC'
438
425
  };
439
- /**
440
- * @export
441
- */
442
426
  exports.GetPurchaseOrdersPoItemStateEnum = {
443
427
  Cancelled: 'Cancelled'
444
428
  };
445
- /**
446
- * @export
447
- */
448
429
  exports.GetPurchaseOrdersPurchaseOrderStateEnum = {
449
430
  New: 'New',
450
431
  Acknowledged: 'Acknowledged',
451
432
  Closed: 'Closed'
452
433
  };
453
- /**
454
- * @export
455
- */
456
434
  exports.GetPurchaseOrdersStatusSortOrderEnum = {
457
435
  Asc: 'ASC',
458
436
  Desc: 'DESC'
459
437
  };
460
- /**
461
- * @export
462
- */
463
438
  exports.GetPurchaseOrdersStatusPurchaseOrderStatusEnum = {
464
439
  Open: 'OPEN',
465
440
  Closed: 'CLOSED'
466
441
  };
467
- /**
468
- * @export
469
- */
470
442
  exports.GetPurchaseOrdersStatusItemConfirmationStatusEnum = {
471
443
  Accepted: 'ACCEPTED',
472
444
  PartiallyAccepted: 'PARTIALLY_ACCEPTED',
473
445
  Rejected: 'REJECTED',
474
446
  Unconfirmed: 'UNCONFIRMED'
475
447
  };
476
- /**
477
- * @export
478
- */
479
448
  exports.GetPurchaseOrdersStatusItemReceiveStatusEnum = {
480
449
  NotReceived: 'NOT_RECEIVED',
481
450
  PartiallyReceived: 'PARTIALLY_RECEIVED',
@@ -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
  /**
@@ -19,7 +19,6 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeed
19
19
  import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
20
  /**
21
21
  * VendorOrdersApi - axios parameter creator
22
- * @export
23
22
  */
24
23
  export const VendorOrdersApiAxiosParamCreator = function (configuration) {
25
24
  return {
@@ -248,7 +247,6 @@ export const VendorOrdersApiAxiosParamCreator = function (configuration) {
248
247
  };
249
248
  /**
250
249
  * VendorOrdersApi - functional programming interface
251
- * @export
252
250
  */
253
251
  export const VendorOrdersApiFp = function (configuration) {
254
252
  const localVarAxiosParamCreator = VendorOrdersApiAxiosParamCreator(configuration);
@@ -328,7 +326,6 @@ export const VendorOrdersApiFp = function (configuration) {
328
326
  };
329
327
  /**
330
328
  * VendorOrdersApi - factory interface
331
- * @export
332
329
  */
333
330
  export const VendorOrdersApiFactory = function (configuration, basePath, axios) {
334
331
  const localVarFp = VendorOrdersApiFp(configuration);
@@ -373,9 +370,6 @@ export const VendorOrdersApiFactory = function (configuration, basePath, axios)
373
370
  };
374
371
  /**
375
372
  * VendorOrdersApi - object-oriented interface
376
- * @export
377
- * @class VendorOrdersApi
378
- * @extends {BaseAPI}
379
373
  */
380
374
  export class VendorOrdersApi extends BaseAPI {
381
375
  /**
@@ -383,7 +377,6 @@ export class VendorOrdersApi extends BaseAPI {
383
377
  * @param {VendorOrdersApiGetPurchaseOrderRequest} requestParameters Request parameters.
384
378
  * @param {*} [options] Override http request option.
385
379
  * @throws {RequiredError}
386
- * @memberof VendorOrdersApi
387
380
  */
388
381
  getPurchaseOrder(requestParameters, options) {
389
382
  return VendorOrdersApiFp(this.configuration).getPurchaseOrder(requestParameters.purchaseOrderNumber, options).then((request) => request(this.axios, this.basePath));
@@ -393,7 +386,6 @@ export class VendorOrdersApi extends BaseAPI {
393
386
  * @param {VendorOrdersApiGetPurchaseOrdersRequest} requestParameters Request parameters.
394
387
  * @param {*} [options] Override http request option.
395
388
  * @throws {RequiredError}
396
- * @memberof VendorOrdersApi
397
389
  */
398
390
  getPurchaseOrders(requestParameters = {}, options) {
399
391
  return VendorOrdersApiFp(this.configuration).getPurchaseOrders(requestParameters.limit, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.includeDetails, requestParameters.changedAfter, requestParameters.changedBefore, requestParameters.poItemState, requestParameters.isPOChanged, requestParameters.purchaseOrderState, requestParameters.orderingVendorCode, options).then((request) => request(this.axios, this.basePath));
@@ -403,7 +395,6 @@ export class VendorOrdersApi extends BaseAPI {
403
395
  * @param {VendorOrdersApiGetPurchaseOrdersStatusRequest} requestParameters Request parameters.
404
396
  * @param {*} [options] Override http request option.
405
397
  * @throws {RequiredError}
406
- * @memberof VendorOrdersApi
407
398
  */
408
399
  getPurchaseOrdersStatus(requestParameters = {}, options) {
409
400
  return VendorOrdersApiFp(this.configuration).getPurchaseOrdersStatus(requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.purchaseOrderNumber, requestParameters.purchaseOrderStatus, requestParameters.itemConfirmationStatus, requestParameters.itemReceiveStatus, requestParameters.orderingVendorCode, requestParameters.shipToPartyId, options).then((request) => request(this.axios, this.basePath));
@@ -413,59 +404,37 @@ export class VendorOrdersApi extends BaseAPI {
413
404
  * @param {VendorOrdersApiSubmitAcknowledgementRequest} requestParameters Request parameters.
414
405
  * @param {*} [options] Override http request option.
415
406
  * @throws {RequiredError}
416
- * @memberof VendorOrdersApi
417
407
  */
418
408
  submitAcknowledgement(requestParameters, options) {
419
409
  return VendorOrdersApiFp(this.configuration).submitAcknowledgement(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
420
410
  }
421
411
  }
422
- /**
423
- * @export
424
- */
425
412
  export const GetPurchaseOrdersSortOrderEnum = {
426
413
  Asc: 'ASC',
427
414
  Desc: 'DESC'
428
415
  };
429
- /**
430
- * @export
431
- */
432
416
  export const GetPurchaseOrdersPoItemStateEnum = {
433
417
  Cancelled: 'Cancelled'
434
418
  };
435
- /**
436
- * @export
437
- */
438
419
  export const GetPurchaseOrdersPurchaseOrderStateEnum = {
439
420
  New: 'New',
440
421
  Acknowledged: 'Acknowledged',
441
422
  Closed: 'Closed'
442
423
  };
443
- /**
444
- * @export
445
- */
446
424
  export const GetPurchaseOrdersStatusSortOrderEnum = {
447
425
  Asc: 'ASC',
448
426
  Desc: 'DESC'
449
427
  };
450
- /**
451
- * @export
452
- */
453
428
  export const GetPurchaseOrdersStatusPurchaseOrderStatusEnum = {
454
429
  Open: 'OPEN',
455
430
  Closed: 'CLOSED'
456
431
  };
457
- /**
458
- * @export
459
- */
460
432
  export const GetPurchaseOrdersStatusItemConfirmationStatusEnum = {
461
433
  Accepted: 'ACCEPTED',
462
434
  PartiallyAccepted: 'PARTIALLY_ACCEPTED',
463
435
  Rejected: 'REJECTED',
464
436
  Unconfirmed: 'UNCONFIRMED'
465
437
  };
466
- /**
467
- * @export
468
- */
469
438
  export const GetPurchaseOrdersStatusItemReceiveStatusEnum = {
470
439
  NotReceived: 'NOT_RECEIVED',
471
440
  PartiallyReceived: 'PARTIALLY_RECEIVED',
@@ -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
  /**