@sp-api-sdk/fulfillment-outbound-api-2020-07-01 2.1.0 → 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.
- package/dist/cjs/src/api-model/api/fba-outbound-api.js +39 -13
- package/dist/cjs/src/api-model/base.js +7 -2
- package/dist/cjs/src/api-model/common.js +1 -1
- package/dist/cjs/src/api-model/configuration.js +8 -0
- package/dist/es/src/api-model/api/fba-outbound-api.js +40 -14
- package/dist/es/src/api-model/base.js +6 -1
- package/dist/es/src/api-model/common.js +1 -1
- package/dist/es/src/api-model/configuration.js +8 -0
- package/dist/types/src/api-model/api/fba-outbound-api.d.ts +72 -72
- package/dist/types/src/api-model/base.d.ts +14 -2
- package/dist/types/src/api-model/configuration.d.ts +8 -0
- package/dist/types/src/api-model/models/codsettings.d.ts +1 -1
- package/dist/types/src/api-model/models/create-fulfillment-order-item.d.ts +1 -1
- package/dist/types/src/api-model/models/create-fulfillment-order-request.d.ts +9 -9
- package/dist/types/src/api-model/models/create-fulfillment-return-request.d.ts +1 -1
- package/dist/types/src/api-model/models/create-fulfillment-return-response.d.ts +1 -1
- package/dist/types/src/api-model/models/create-fulfillment-return-result.d.ts +3 -3
- package/dist/types/src/api-model/models/fee.d.ts +1 -1
- package/dist/types/src/api-model/models/fulfillment-order-item.d.ts +1 -1
- package/dist/types/src/api-model/models/fulfillment-order.d.ts +8 -8
- package/dist/types/src/api-model/models/fulfillment-preview-item.d.ts +1 -1
- package/dist/types/src/api-model/models/fulfillment-preview-shipment.d.ts +1 -1
- package/dist/types/src/api-model/models/fulfillment-preview.d.ts +7 -7
- package/dist/types/src/api-model/models/fulfillment-shipment.d.ts +2 -2
- package/dist/types/src/api-model/models/get-feature-inventory-response.d.ts +1 -1
- package/dist/types/src/api-model/models/get-feature-inventory-result.d.ts +1 -1
- package/dist/types/src/api-model/models/get-feature-sku-response.d.ts +1 -1
- package/dist/types/src/api-model/models/get-feature-sku-result.d.ts +1 -1
- package/dist/types/src/api-model/models/get-features-response.d.ts +1 -1
- package/dist/types/src/api-model/models/get-features-result.d.ts +1 -1
- package/dist/types/src/api-model/models/get-fulfillment-order-response.d.ts +1 -1
- package/dist/types/src/api-model/models/get-fulfillment-order-result.d.ts +6 -6
- package/dist/types/src/api-model/models/get-fulfillment-preview-item.d.ts +1 -1
- package/dist/types/src/api-model/models/get-fulfillment-preview-request.d.ts +4 -4
- package/dist/types/src/api-model/models/get-fulfillment-preview-response.d.ts +1 -1
- package/dist/types/src/api-model/models/get-fulfillment-preview-result.d.ts +1 -1
- package/dist/types/src/api-model/models/get-package-tracking-details-response.d.ts +1 -1
- package/dist/types/src/api-model/models/invalid-item-reason.d.ts +1 -1
- package/dist/types/src/api-model/models/invalid-return-item.d.ts +1 -1
- package/dist/types/src/api-model/models/list-all-fulfillment-orders-response.d.ts +1 -1
- package/dist/types/src/api-model/models/list-all-fulfillment-orders-result.d.ts +1 -1
- package/dist/types/src/api-model/models/list-return-reason-codes-response.d.ts +1 -1
- package/dist/types/src/api-model/models/list-return-reason-codes-result.d.ts +1 -1
- package/dist/types/src/api-model/models/package-tracking-details.d.ts +4 -4
- package/dist/types/src/api-model/models/return-authorization.d.ts +1 -1
- package/dist/types/src/api-model/models/return-item.d.ts +2 -2
- package/dist/types/src/api-model/models/scheduled-delivery-info.d.ts +1 -1
- package/dist/types/src/api-model/models/submit-fulfillment-order-status-update-request.d.ts +1 -1
- package/dist/types/src/api-model/models/tracking-event.d.ts +2 -2
- package/dist/types/src/api-model/models/update-fulfillment-order-item.d.ts +1 -1
- package/dist/types/src/api-model/models/update-fulfillment-order-request.d.ts +6 -6
- package/package.json +5 -5
|
@@ -472,7 +472,9 @@ const FbaOutboundApiFp = function (configuration) {
|
|
|
472
472
|
*/
|
|
473
473
|
async cancelFulfillmentOrder(sellerFulfillmentOrderId, options) {
|
|
474
474
|
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelFulfillmentOrder(sellerFulfillmentOrderId, options);
|
|
475
|
-
|
|
475
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
476
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaOutboundApi.cancelFulfillmentOrder']?.[localVarOperationServerIndex]?.url;
|
|
477
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
476
478
|
},
|
|
477
479
|
/**
|
|
478
480
|
* Requests that Amazon ship items from the seller\'s inventory in Amazon\'s fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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)
|
|
@@ -482,7 +484,9 @@ const FbaOutboundApiFp = function (configuration) {
|
|
|
482
484
|
*/
|
|
483
485
|
async createFulfillmentOrder(body, options) {
|
|
484
486
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createFulfillmentOrder(body, options);
|
|
485
|
-
|
|
487
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
488
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaOutboundApi.createFulfillmentOrder']?.[localVarOperationServerIndex]?.url;
|
|
489
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
486
490
|
},
|
|
487
491
|
/**
|
|
488
492
|
* Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -493,7 +497,9 @@ const FbaOutboundApiFp = function (configuration) {
|
|
|
493
497
|
*/
|
|
494
498
|
async createFulfillmentReturn(sellerFulfillmentOrderId, body, options) {
|
|
495
499
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createFulfillmentReturn(sellerFulfillmentOrderId, body, options);
|
|
496
|
-
|
|
500
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
501
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaOutboundApi.createFulfillmentReturn']?.[localVarOperationServerIndex]?.url;
|
|
502
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
497
503
|
},
|
|
498
504
|
/**
|
|
499
505
|
* Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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)..
|
|
@@ -505,7 +511,9 @@ const FbaOutboundApiFp = function (configuration) {
|
|
|
505
511
|
*/
|
|
506
512
|
async getFeatureInventory(marketplaceId, featureName, nextToken, options) {
|
|
507
513
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatureInventory(marketplaceId, featureName, nextToken, options);
|
|
508
|
-
|
|
514
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
515
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaOutboundApi.getFeatureInventory']?.[localVarOperationServerIndex]?.url;
|
|
516
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
509
517
|
},
|
|
510
518
|
/**
|
|
511
519
|
* Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn\'t eligible, the response will contain an empty skuInfo object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -517,7 +525,9 @@ const FbaOutboundApiFp = function (configuration) {
|
|
|
517
525
|
*/
|
|
518
526
|
async getFeatureSKU(marketplaceId, featureName, sellerSku, options) {
|
|
519
527
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatureSKU(marketplaceId, featureName, sellerSku, options);
|
|
520
|
-
|
|
528
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
529
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaOutboundApi.getFeatureSKU']?.[localVarOperationServerIndex]?.url;
|
|
530
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
521
531
|
},
|
|
522
532
|
/**
|
|
523
533
|
* Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -527,7 +537,9 @@ const FbaOutboundApiFp = function (configuration) {
|
|
|
527
537
|
*/
|
|
528
538
|
async getFeatures(marketplaceId, options) {
|
|
529
539
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatures(marketplaceId, options);
|
|
530
|
-
|
|
540
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
541
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaOutboundApi.getFeatures']?.[localVarOperationServerIndex]?.url;
|
|
542
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
531
543
|
},
|
|
532
544
|
/**
|
|
533
545
|
* Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -537,7 +549,9 @@ const FbaOutboundApiFp = function (configuration) {
|
|
|
537
549
|
*/
|
|
538
550
|
async getFulfillmentOrder(sellerFulfillmentOrderId, options) {
|
|
539
551
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFulfillmentOrder(sellerFulfillmentOrderId, options);
|
|
540
|
-
|
|
552
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
553
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaOutboundApi.getFulfillmentOrder']?.[localVarOperationServerIndex]?.url;
|
|
554
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
541
555
|
},
|
|
542
556
|
/**
|
|
543
557
|
* Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -547,7 +561,9 @@ const FbaOutboundApiFp = function (configuration) {
|
|
|
547
561
|
*/
|
|
548
562
|
async getFulfillmentPreview(body, options) {
|
|
549
563
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFulfillmentPreview(body, options);
|
|
550
|
-
|
|
564
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
565
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaOutboundApi.getFulfillmentPreview']?.[localVarOperationServerIndex]?.url;
|
|
566
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
551
567
|
},
|
|
552
568
|
/**
|
|
553
569
|
* Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -557,7 +573,9 @@ const FbaOutboundApiFp = function (configuration) {
|
|
|
557
573
|
*/
|
|
558
574
|
async getPackageTrackingDetails(packageNumber, options) {
|
|
559
575
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPackageTrackingDetails(packageNumber, options);
|
|
560
|
-
|
|
576
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
577
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaOutboundApi.getPackageTrackingDetails']?.[localVarOperationServerIndex]?.url;
|
|
578
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
561
579
|
},
|
|
562
580
|
/**
|
|
563
581
|
* Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the next token parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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)
|
|
@@ -568,7 +586,9 @@ const FbaOutboundApiFp = function (configuration) {
|
|
|
568
586
|
*/
|
|
569
587
|
async listAllFulfillmentOrders(queryStartDate, nextToken, options) {
|
|
570
588
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllFulfillmentOrders(queryStartDate, nextToken, options);
|
|
571
|
-
|
|
589
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
590
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaOutboundApi.listAllFulfillmentOrders']?.[localVarOperationServerIndex]?.url;
|
|
591
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
572
592
|
},
|
|
573
593
|
/**
|
|
574
594
|
* Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -581,7 +601,9 @@ const FbaOutboundApiFp = function (configuration) {
|
|
|
581
601
|
*/
|
|
582
602
|
async listReturnReasonCodes(sellerSku, marketplaceId, sellerFulfillmentOrderId, language, options) {
|
|
583
603
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listReturnReasonCodes(sellerSku, marketplaceId, sellerFulfillmentOrderId, language, options);
|
|
584
|
-
|
|
604
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
605
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaOutboundApi.listReturnReasonCodes']?.[localVarOperationServerIndex]?.url;
|
|
606
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
585
607
|
},
|
|
586
608
|
/**
|
|
587
609
|
* Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
@@ -592,7 +614,9 @@ const FbaOutboundApiFp = function (configuration) {
|
|
|
592
614
|
*/
|
|
593
615
|
async submitFulfillmentOrderStatusUpdate(sellerFulfillmentOrderId, body, options) {
|
|
594
616
|
const localVarAxiosArgs = await localVarAxiosParamCreator.submitFulfillmentOrderStatusUpdate(sellerFulfillmentOrderId, body, options);
|
|
595
|
-
|
|
617
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
618
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaOutboundApi.submitFulfillmentOrderStatusUpdate']?.[localVarOperationServerIndex]?.url;
|
|
619
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
596
620
|
},
|
|
597
621
|
/**
|
|
598
622
|
* Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -603,7 +627,9 @@ const FbaOutboundApiFp = function (configuration) {
|
|
|
603
627
|
*/
|
|
604
628
|
async updateFulfillmentOrder(sellerFulfillmentOrderId, body, options) {
|
|
605
629
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFulfillmentOrder(sellerFulfillmentOrderId, body, options);
|
|
606
|
-
|
|
630
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
631
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaOutboundApi.updateFulfillmentOrder']?.[localVarOperationServerIndex]?.url;
|
|
632
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
607
633
|
},
|
|
608
634
|
};
|
|
609
635
|
};
|
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
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
22
|
/**
|
|
@@ -43,7 +43,7 @@ class BaseAPI {
|
|
|
43
43
|
this.axios = axios;
|
|
44
44
|
if (configuration) {
|
|
45
45
|
this.configuration = configuration;
|
|
46
|
-
this.basePath = configuration.basePath
|
|
46
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -64,3 +64,8 @@ class RequiredError extends Error {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
exports.RequiredError = RequiredError;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
exports.operationServerMap = {};
|
|
@@ -138,7 +138,7 @@ exports.toPathString = toPathString;
|
|
|
138
138
|
*/
|
|
139
139
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
140
140
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
141
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath
|
|
141
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
142
142
|
return axios.request(axiosRequestArgs);
|
|
143
143
|
};
|
|
144
144
|
};
|
|
@@ -49,6 +49,13 @@ class Configuration {
|
|
|
49
49
|
* @memberof Configuration
|
|
50
50
|
*/
|
|
51
51
|
basePath;
|
|
52
|
+
/**
|
|
53
|
+
* override server index
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof Configuration
|
|
57
|
+
*/
|
|
58
|
+
serverIndex;
|
|
52
59
|
/**
|
|
53
60
|
* base options for axios calls
|
|
54
61
|
*
|
|
@@ -70,6 +77,7 @@ class Configuration {
|
|
|
70
77
|
this.password = param.password;
|
|
71
78
|
this.accessToken = param.accessToken;
|
|
72
79
|
this.basePath = param.basePath;
|
|
80
|
+
this.serverIndex = param.serverIndex;
|
|
73
81
|
this.baseOptions = param.baseOptions;
|
|
74
82
|
this.formDataCtor = param.formDataCtor;
|
|
75
83
|
}
|
|
@@ -16,7 +16,7 @@ import globalAxios from 'axios';
|
|
|
16
16
|
// @ts-ignore
|
|
17
17
|
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import { BASE_PATH, BaseAPI } from '../base';
|
|
19
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
21
|
* FbaOutboundApi - axios parameter creator
|
|
22
22
|
* @export
|
|
@@ -465,7 +465,9 @@ export const FbaOutboundApiFp = function (configuration) {
|
|
|
465
465
|
*/
|
|
466
466
|
async cancelFulfillmentOrder(sellerFulfillmentOrderId, options) {
|
|
467
467
|
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelFulfillmentOrder(sellerFulfillmentOrderId, options);
|
|
468
|
-
|
|
468
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
469
|
+
const localVarOperationServerBasePath = operationServerMap['FbaOutboundApi.cancelFulfillmentOrder']?.[localVarOperationServerIndex]?.url;
|
|
470
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
469
471
|
},
|
|
470
472
|
/**
|
|
471
473
|
* Requests that Amazon ship items from the seller\'s inventory in Amazon\'s fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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)
|
|
@@ -475,7 +477,9 @@ export const FbaOutboundApiFp = function (configuration) {
|
|
|
475
477
|
*/
|
|
476
478
|
async createFulfillmentOrder(body, options) {
|
|
477
479
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createFulfillmentOrder(body, options);
|
|
478
|
-
|
|
480
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
481
|
+
const localVarOperationServerBasePath = operationServerMap['FbaOutboundApi.createFulfillmentOrder']?.[localVarOperationServerIndex]?.url;
|
|
482
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
479
483
|
},
|
|
480
484
|
/**
|
|
481
485
|
* Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -486,7 +490,9 @@ export const FbaOutboundApiFp = function (configuration) {
|
|
|
486
490
|
*/
|
|
487
491
|
async createFulfillmentReturn(sellerFulfillmentOrderId, body, options) {
|
|
488
492
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createFulfillmentReturn(sellerFulfillmentOrderId, body, options);
|
|
489
|
-
|
|
493
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
494
|
+
const localVarOperationServerBasePath = operationServerMap['FbaOutboundApi.createFulfillmentReturn']?.[localVarOperationServerIndex]?.url;
|
|
495
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
490
496
|
},
|
|
491
497
|
/**
|
|
492
498
|
* Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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)..
|
|
@@ -498,7 +504,9 @@ export const FbaOutboundApiFp = function (configuration) {
|
|
|
498
504
|
*/
|
|
499
505
|
async getFeatureInventory(marketplaceId, featureName, nextToken, options) {
|
|
500
506
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatureInventory(marketplaceId, featureName, nextToken, options);
|
|
501
|
-
|
|
507
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
508
|
+
const localVarOperationServerBasePath = operationServerMap['FbaOutboundApi.getFeatureInventory']?.[localVarOperationServerIndex]?.url;
|
|
509
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
502
510
|
},
|
|
503
511
|
/**
|
|
504
512
|
* Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn\'t eligible, the response will contain an empty skuInfo object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -510,7 +518,9 @@ export const FbaOutboundApiFp = function (configuration) {
|
|
|
510
518
|
*/
|
|
511
519
|
async getFeatureSKU(marketplaceId, featureName, sellerSku, options) {
|
|
512
520
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatureSKU(marketplaceId, featureName, sellerSku, options);
|
|
513
|
-
|
|
521
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
522
|
+
const localVarOperationServerBasePath = operationServerMap['FbaOutboundApi.getFeatureSKU']?.[localVarOperationServerIndex]?.url;
|
|
523
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
514
524
|
},
|
|
515
525
|
/**
|
|
516
526
|
* Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -520,7 +530,9 @@ export const FbaOutboundApiFp = function (configuration) {
|
|
|
520
530
|
*/
|
|
521
531
|
async getFeatures(marketplaceId, options) {
|
|
522
532
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatures(marketplaceId, options);
|
|
523
|
-
|
|
533
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
534
|
+
const localVarOperationServerBasePath = operationServerMap['FbaOutboundApi.getFeatures']?.[localVarOperationServerIndex]?.url;
|
|
535
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
524
536
|
},
|
|
525
537
|
/**
|
|
526
538
|
* Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -530,7 +542,9 @@ export const FbaOutboundApiFp = function (configuration) {
|
|
|
530
542
|
*/
|
|
531
543
|
async getFulfillmentOrder(sellerFulfillmentOrderId, options) {
|
|
532
544
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFulfillmentOrder(sellerFulfillmentOrderId, options);
|
|
533
|
-
|
|
545
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
546
|
+
const localVarOperationServerBasePath = operationServerMap['FbaOutboundApi.getFulfillmentOrder']?.[localVarOperationServerIndex]?.url;
|
|
547
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
534
548
|
},
|
|
535
549
|
/**
|
|
536
550
|
* Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -540,7 +554,9 @@ export const FbaOutboundApiFp = function (configuration) {
|
|
|
540
554
|
*/
|
|
541
555
|
async getFulfillmentPreview(body, options) {
|
|
542
556
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFulfillmentPreview(body, options);
|
|
543
|
-
|
|
557
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
558
|
+
const localVarOperationServerBasePath = operationServerMap['FbaOutboundApi.getFulfillmentPreview']?.[localVarOperationServerIndex]?.url;
|
|
559
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
544
560
|
},
|
|
545
561
|
/**
|
|
546
562
|
* Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -550,7 +566,9 @@ export const FbaOutboundApiFp = function (configuration) {
|
|
|
550
566
|
*/
|
|
551
567
|
async getPackageTrackingDetails(packageNumber, options) {
|
|
552
568
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPackageTrackingDetails(packageNumber, options);
|
|
553
|
-
|
|
569
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
570
|
+
const localVarOperationServerBasePath = operationServerMap['FbaOutboundApi.getPackageTrackingDetails']?.[localVarOperationServerIndex]?.url;
|
|
571
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
554
572
|
},
|
|
555
573
|
/**
|
|
556
574
|
* Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the next token parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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)
|
|
@@ -561,7 +579,9 @@ export const FbaOutboundApiFp = function (configuration) {
|
|
|
561
579
|
*/
|
|
562
580
|
async listAllFulfillmentOrders(queryStartDate, nextToken, options) {
|
|
563
581
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllFulfillmentOrders(queryStartDate, nextToken, options);
|
|
564
|
-
|
|
582
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
583
|
+
const localVarOperationServerBasePath = operationServerMap['FbaOutboundApi.listAllFulfillmentOrders']?.[localVarOperationServerIndex]?.url;
|
|
584
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
565
585
|
},
|
|
566
586
|
/**
|
|
567
587
|
* Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -574,7 +594,9 @@ export const FbaOutboundApiFp = function (configuration) {
|
|
|
574
594
|
*/
|
|
575
595
|
async listReturnReasonCodes(sellerSku, marketplaceId, sellerFulfillmentOrderId, language, options) {
|
|
576
596
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listReturnReasonCodes(sellerSku, marketplaceId, sellerFulfillmentOrderId, language, options);
|
|
577
|
-
|
|
597
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
598
|
+
const localVarOperationServerBasePath = operationServerMap['FbaOutboundApi.listReturnReasonCodes']?.[localVarOperationServerIndex]?.url;
|
|
599
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
578
600
|
},
|
|
579
601
|
/**
|
|
580
602
|
* Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
@@ -585,7 +607,9 @@ export const FbaOutboundApiFp = function (configuration) {
|
|
|
585
607
|
*/
|
|
586
608
|
async submitFulfillmentOrderStatusUpdate(sellerFulfillmentOrderId, body, options) {
|
|
587
609
|
const localVarAxiosArgs = await localVarAxiosParamCreator.submitFulfillmentOrderStatusUpdate(sellerFulfillmentOrderId, body, options);
|
|
588
|
-
|
|
610
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
611
|
+
const localVarOperationServerBasePath = operationServerMap['FbaOutboundApi.submitFulfillmentOrderStatusUpdate']?.[localVarOperationServerIndex]?.url;
|
|
612
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
589
613
|
},
|
|
590
614
|
/**
|
|
591
615
|
* Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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 see 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).
|
|
@@ -596,7 +620,9 @@ export const FbaOutboundApiFp = function (configuration) {
|
|
|
596
620
|
*/
|
|
597
621
|
async updateFulfillmentOrder(sellerFulfillmentOrderId, body, options) {
|
|
598
622
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFulfillmentOrder(sellerFulfillmentOrderId, body, options);
|
|
599
|
-
|
|
623
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
624
|
+
const localVarOperationServerBasePath = operationServerMap['FbaOutboundApi.updateFulfillmentOrder']?.[localVarOperationServerIndex]?.url;
|
|
625
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
600
626
|
},
|
|
601
627
|
};
|
|
602
628
|
};
|
|
@@ -37,7 +37,7 @@ export class BaseAPI {
|
|
|
37
37
|
this.axios = axios;
|
|
38
38
|
if (configuration) {
|
|
39
39
|
this.configuration = configuration;
|
|
40
|
-
this.basePath = configuration.basePath
|
|
40
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -56,3 +56,8 @@ export class RequiredError extends Error {
|
|
|
56
56
|
this.name = "RequiredError";
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export const operationServerMap = {};
|
|
@@ -127,7 +127,7 @@ export const toPathString = function (url) {
|
|
|
127
127
|
*/
|
|
128
128
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
129
129
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
130
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath
|
|
130
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
131
131
|
return axios.request(axiosRequestArgs);
|
|
132
132
|
};
|
|
133
133
|
};
|
|
@@ -46,6 +46,13 @@ export class Configuration {
|
|
|
46
46
|
* @memberof Configuration
|
|
47
47
|
*/
|
|
48
48
|
basePath;
|
|
49
|
+
/**
|
|
50
|
+
* override server index
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
serverIndex;
|
|
49
56
|
/**
|
|
50
57
|
* base options for axios calls
|
|
51
58
|
*
|
|
@@ -67,6 +74,7 @@ export class Configuration {
|
|
|
67
74
|
this.password = param.password;
|
|
68
75
|
this.accessToken = param.accessToken;
|
|
69
76
|
this.basePath = param.basePath;
|
|
77
|
+
this.serverIndex = param.serverIndex;
|
|
70
78
|
this.baseOptions = param.baseOptions;
|
|
71
79
|
this.formDataCtor = param.formDataCtor;
|
|
72
80
|
}
|