@sp-api-sdk/services-api-v1 2.0.7 → 2.1.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/service-api.js +84 -24
- 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/service-api.js +84 -24
- 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/service-api.d.ts +132 -103
- 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/add-appointment-request.d.ts +1 -1
- package/dist/types/src/api-model/models/appointment-slot-report.d.ts +1 -1
- package/dist/types/src/api-model/models/appointment.d.ts +3 -3
- package/dist/types/src/api-model/models/assign-appointment-resources-request.d.ts +1 -1
- package/dist/types/src/api-model/models/assign-appointment-resources-response-payload.d.ts +1 -1
- package/dist/types/src/api-model/models/assign-appointment-resources-response.d.ts +1 -1
- package/dist/types/src/api-model/models/associated-item.d.ts +1 -1
- package/dist/types/src/api-model/models/availability-record.d.ts +1 -1
- package/dist/types/src/api-model/models/create-reservation-record.d.ts +2 -2
- package/dist/types/src/api-model/models/create-reservation-request.d.ts +1 -1
- package/dist/types/src/api-model/models/create-reservation-response.d.ts +1 -1
- package/dist/types/src/api-model/models/create-service-document-upload-destination.d.ts +1 -1
- package/dist/types/src/api-model/models/fixed-slot-capacity-query.d.ts +1 -1
- package/dist/types/src/api-model/models/fixed-slot-capacity.d.ts +1 -1
- package/dist/types/src/api-model/models/get-appointment-slots-response.d.ts +1 -1
- package/dist/types/src/api-model/models/get-service-job-by-service-job-id-response.d.ts +1 -1
- package/dist/types/src/api-model/models/get-service-jobs-response.d.ts +1 -1
- package/dist/types/src/api-model/models/item-delivery.d.ts +1 -1
- package/dist/types/src/api-model/models/job-listing.d.ts +1 -1
- package/dist/types/src/api-model/models/poa.d.ts +2 -2
- package/dist/types/src/api-model/models/range-capacity.d.ts +2 -2
- package/dist/types/src/api-model/models/range-slot-capacity-query.d.ts +1 -1
- package/dist/types/src/api-model/models/range-slot-capacity.d.ts +1 -1
- package/dist/types/src/api-model/models/recurrence.d.ts +1 -1
- package/dist/types/src/api-model/models/reschedule-appointment-request.d.ts +1 -1
- package/dist/types/src/api-model/models/reservation.d.ts +1 -1
- package/dist/types/src/api-model/models/service-document-upload-destination.d.ts +1 -1
- package/dist/types/src/api-model/models/service-job.d.ts +8 -8
- package/dist/types/src/api-model/models/service-location.d.ts +1 -1
- package/dist/types/src/api-model/models/set-appointment-fulfillment-data-request.d.ts +3 -3
- package/dist/types/src/api-model/models/set-appointment-response.d.ts +1 -1
- package/dist/types/src/api-model/models/update-reservation-record.d.ts +2 -2
- package/dist/types/src/api-model/models/update-reservation-request.d.ts +1 -1
- package/dist/types/src/api-model/models/update-reservation-response.d.ts +1 -1
- package/dist/types/src/api-model/models/update-schedule-record.d.ts +2 -2
- package/dist/types/src/api-model/models/update-schedule-request.d.ts +1 -1
- package/dist/types/src/api-model/models/update-schedule-response.d.ts +1 -1
- package/package.json +4 -4
|
@@ -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.ServiceApi = exports.ServiceApiFactory = exports.ServiceApiFp = exports.ServiceApiAxiosParamCreator = void 0;
|
|
19
|
+
exports.GetServiceJobsSortOrderEnum = exports.GetServiceJobsSortFieldEnum = exports.GetServiceJobsServiceJobStatusEnum = exports.ServiceApi = exports.ServiceApiFactory = exports.ServiceApiFp = exports.ServiceApiAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -469,11 +469,11 @@ const ServiceApiAxiosParamCreator = function (configuration) {
|
|
|
469
469
|
* Gets service job details for the specified filter query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 40 | 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, see [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).
|
|
470
470
|
* @param {Array<string>} marketplaceIds Used to select jobs that were placed in the specified marketplaces.
|
|
471
471
|
* @param {Array<string>} [serviceOrderIds] List of service order ids for the query you want to perform.Max values supported 20.
|
|
472
|
-
* @param {Array<
|
|
472
|
+
* @param {Array<GetServiceJobsServiceJobStatusEnum>} [serviceJobStatus] A list of one or more job status by which to filter the list of jobs.
|
|
473
473
|
* @param {string} [pageToken] String returned in the response of your previous request.
|
|
474
474
|
* @param {number} [pageSize] A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20.
|
|
475
|
-
* @param {
|
|
476
|
-
* @param {
|
|
475
|
+
* @param {GetServiceJobsSortFieldEnum} [sortField] Sort fields on which you want to sort the output.
|
|
476
|
+
* @param {GetServiceJobsSortOrderEnum} [sortOrder] Sort order for the query you want to perform.
|
|
477
477
|
* @param {string} [createdAfter] A date used for selecting jobs created at or after a specified time. Must be in ISO 8601 format. Required if `LastUpdatedAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error.
|
|
478
478
|
* @param {string} [createdBefore] A date used for selecting jobs created at or before a specified time. Must be in ISO 8601 format.
|
|
479
479
|
* @param {string} [lastUpdatedAfter] A date used for selecting jobs updated at or after a specified time. Must be in ISO 8601 format. Required if `createdAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error.
|
|
@@ -726,7 +726,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
726
726
|
*/
|
|
727
727
|
async addAppointmentForServiceJobByServiceJobId(serviceJobId, body, options) {
|
|
728
728
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addAppointmentForServiceJobByServiceJobId(serviceJobId, body, options);
|
|
729
|
-
|
|
729
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
730
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.addAppointmentForServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
731
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
730
732
|
},
|
|
731
733
|
/**
|
|
732
734
|
* Assigns new resource(s) or overwrite/update the existing one(s) to a service job appointment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | 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, see [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).
|
|
@@ -738,7 +740,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
738
740
|
*/
|
|
739
741
|
async assignAppointmentResources(serviceJobId, appointmentId, body, options) {
|
|
740
742
|
const localVarAxiosArgs = await localVarAxiosParamCreator.assignAppointmentResources(serviceJobId, appointmentId, body, options);
|
|
741
|
-
|
|
743
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
744
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.assignAppointmentResources']?.[localVarOperationServerIndex]?.url;
|
|
745
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
742
746
|
},
|
|
743
747
|
/**
|
|
744
748
|
* Cancel a reservation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -749,7 +753,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
749
753
|
*/
|
|
750
754
|
async cancelReservation(reservationId, marketplaceIds, options) {
|
|
751
755
|
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelReservation(reservationId, marketplaceIds, options);
|
|
752
|
-
|
|
756
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
757
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.cancelReservation']?.[localVarOperationServerIndex]?.url;
|
|
758
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
753
759
|
},
|
|
754
760
|
/**
|
|
755
761
|
* Cancels the service job indicated by the service job identifier specified. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -760,7 +766,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
760
766
|
*/
|
|
761
767
|
async cancelServiceJobByServiceJobId(serviceJobId, cancellationReasonCode, options) {
|
|
762
768
|
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelServiceJobByServiceJobId(serviceJobId, cancellationReasonCode, options);
|
|
763
|
-
|
|
769
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
770
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.cancelServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
771
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
764
772
|
},
|
|
765
773
|
/**
|
|
766
774
|
* Completes the service job indicated by the service job identifier specified. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -770,7 +778,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
770
778
|
*/
|
|
771
779
|
async completeServiceJobByServiceJobId(serviceJobId, options) {
|
|
772
780
|
const localVarAxiosArgs = await localVarAxiosParamCreator.completeServiceJobByServiceJobId(serviceJobId, options);
|
|
773
|
-
|
|
781
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
782
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.completeServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
783
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
774
784
|
},
|
|
775
785
|
/**
|
|
776
786
|
* Create a reservation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -781,7 +791,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
781
791
|
*/
|
|
782
792
|
async createReservation(marketplaceIds, body, options) {
|
|
783
793
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReservation(marketplaceIds, body, options);
|
|
784
|
-
|
|
794
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
795
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.createReservation']?.[localVarOperationServerIndex]?.url;
|
|
796
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
785
797
|
},
|
|
786
798
|
/**
|
|
787
799
|
* Creates an upload destination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -791,7 +803,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
791
803
|
*/
|
|
792
804
|
async createServiceDocumentUploadDestination(body, options) {
|
|
793
805
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createServiceDocumentUploadDestination(body, options);
|
|
794
|
-
|
|
806
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
807
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.createServiceDocumentUploadDestination']?.[localVarOperationServerIndex]?.url;
|
|
808
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
795
809
|
},
|
|
796
810
|
/**
|
|
797
811
|
* Gets appointment slots as per the service context specified. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 20 | 40 | 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, see [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).
|
|
@@ -805,7 +819,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
805
819
|
*/
|
|
806
820
|
async getAppointmentSlots(asin, storeId, marketplaceIds, startTime, endTime, options) {
|
|
807
821
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAppointmentSlots(asin, storeId, marketplaceIds, startTime, endTime, options);
|
|
808
|
-
|
|
822
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
823
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.getAppointmentSlots']?.[localVarOperationServerIndex]?.url;
|
|
824
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
809
825
|
},
|
|
810
826
|
/**
|
|
811
827
|
* Gets appointment slots for the service associated with the service job id specified. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -818,7 +834,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
818
834
|
*/
|
|
819
835
|
async getAppointmmentSlotsByJobId(serviceJobId, marketplaceIds, startTime, endTime, options) {
|
|
820
836
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAppointmmentSlotsByJobId(serviceJobId, marketplaceIds, startTime, endTime, options);
|
|
821
|
-
|
|
837
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
838
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.getAppointmmentSlotsByJobId']?.[localVarOperationServerIndex]?.url;
|
|
839
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
822
840
|
},
|
|
823
841
|
/**
|
|
824
842
|
* Provides capacity in fixed-size slots. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -831,7 +849,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
831
849
|
*/
|
|
832
850
|
async getFixedSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options) {
|
|
833
851
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFixedSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options);
|
|
834
|
-
|
|
852
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
853
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.getFixedSlotCapacity']?.[localVarOperationServerIndex]?.url;
|
|
854
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
835
855
|
},
|
|
836
856
|
/**
|
|
837
857
|
* Provides capacity slots in a format similar to availability records. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -844,7 +864,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
844
864
|
*/
|
|
845
865
|
async getRangeSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options) {
|
|
846
866
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRangeSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options);
|
|
847
|
-
|
|
867
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
868
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.getRangeSlotCapacity']?.[localVarOperationServerIndex]?.url;
|
|
869
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
848
870
|
},
|
|
849
871
|
/**
|
|
850
872
|
* Gets details of service job indicated by the provided `serviceJobID`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 20 | 40 | 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, see [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).
|
|
@@ -854,17 +876,19 @@ const ServiceApiFp = function (configuration) {
|
|
|
854
876
|
*/
|
|
855
877
|
async getServiceJobByServiceJobId(serviceJobId, options) {
|
|
856
878
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceJobByServiceJobId(serviceJobId, options);
|
|
857
|
-
|
|
879
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
880
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.getServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
881
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
858
882
|
},
|
|
859
883
|
/**
|
|
860
884
|
* Gets service job details for the specified filter query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 40 | 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, see [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).
|
|
861
885
|
* @param {Array<string>} marketplaceIds Used to select jobs that were placed in the specified marketplaces.
|
|
862
886
|
* @param {Array<string>} [serviceOrderIds] List of service order ids for the query you want to perform.Max values supported 20.
|
|
863
|
-
* @param {Array<
|
|
887
|
+
* @param {Array<GetServiceJobsServiceJobStatusEnum>} [serviceJobStatus] A list of one or more job status by which to filter the list of jobs.
|
|
864
888
|
* @param {string} [pageToken] String returned in the response of your previous request.
|
|
865
889
|
* @param {number} [pageSize] A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20.
|
|
866
|
-
* @param {
|
|
867
|
-
* @param {
|
|
890
|
+
* @param {GetServiceJobsSortFieldEnum} [sortField] Sort fields on which you want to sort the output.
|
|
891
|
+
* @param {GetServiceJobsSortOrderEnum} [sortOrder] Sort order for the query you want to perform.
|
|
868
892
|
* @param {string} [createdAfter] A date used for selecting jobs created at or after a specified time. Must be in ISO 8601 format. Required if `LastUpdatedAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error.
|
|
869
893
|
* @param {string} [createdBefore] A date used for selecting jobs created at or before a specified time. Must be in ISO 8601 format.
|
|
870
894
|
* @param {string} [lastUpdatedAfter] A date used for selecting jobs updated at or after a specified time. Must be in ISO 8601 format. Required if `createdAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error.
|
|
@@ -879,7 +903,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
879
903
|
*/
|
|
880
904
|
async getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, asins, requiredSkills, storeIds, options) {
|
|
881
905
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, asins, requiredSkills, storeIds, options);
|
|
882
|
-
|
|
906
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
907
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.getServiceJobs']?.[localVarOperationServerIndex]?.url;
|
|
908
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
883
909
|
},
|
|
884
910
|
/**
|
|
885
911
|
* Reschedules an appointment for the service job indicated by the service job identifier specified. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -891,7 +917,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
891
917
|
*/
|
|
892
918
|
async rescheduleAppointmentForServiceJobByServiceJobId(serviceJobId, appointmentId, body, options) {
|
|
893
919
|
const localVarAxiosArgs = await localVarAxiosParamCreator.rescheduleAppointmentForServiceJobByServiceJobId(serviceJobId, appointmentId, body, options);
|
|
894
|
-
|
|
920
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
921
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.rescheduleAppointmentForServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
922
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
895
923
|
},
|
|
896
924
|
/**
|
|
897
925
|
* Updates the appointment fulfillment data related to a given `jobID` and `appointmentID`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -903,7 +931,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
903
931
|
*/
|
|
904
932
|
async setAppointmentFulfillmentData(serviceJobId, appointmentId, body, options) {
|
|
905
933
|
const localVarAxiosArgs = await localVarAxiosParamCreator.setAppointmentFulfillmentData(serviceJobId, appointmentId, body, options);
|
|
906
|
-
|
|
934
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
935
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.setAppointmentFulfillmentData']?.[localVarOperationServerIndex]?.url;
|
|
936
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
907
937
|
},
|
|
908
938
|
/**
|
|
909
939
|
* Update a reservation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -915,7 +945,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
915
945
|
*/
|
|
916
946
|
async updateReservation(reservationId, marketplaceIds, body, options) {
|
|
917
947
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateReservation(reservationId, marketplaceIds, body, options);
|
|
918
|
-
|
|
948
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
949
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.updateReservation']?.[localVarOperationServerIndex]?.url;
|
|
950
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
919
951
|
},
|
|
920
952
|
/**
|
|
921
953
|
* Update the schedule of the given resource. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -927,7 +959,9 @@ const ServiceApiFp = function (configuration) {
|
|
|
927
959
|
*/
|
|
928
960
|
async updateSchedule(resourceId, marketplaceIds, body, options) {
|
|
929
961
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSchedule(resourceId, marketplaceIds, body, options);
|
|
930
|
-
|
|
962
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
963
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServiceApi.updateSchedule']?.[localVarOperationServerIndex]?.url;
|
|
964
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
931
965
|
},
|
|
932
966
|
};
|
|
933
967
|
};
|
|
@@ -1274,3 +1308,29 @@ class ServiceApi extends base_1.BaseAPI {
|
|
|
1274
1308
|
}
|
|
1275
1309
|
}
|
|
1276
1310
|
exports.ServiceApi = ServiceApi;
|
|
1311
|
+
/**
|
|
1312
|
+
* @export
|
|
1313
|
+
*/
|
|
1314
|
+
exports.GetServiceJobsServiceJobStatusEnum = {
|
|
1315
|
+
NotServiced: 'NOT_SERVICED',
|
|
1316
|
+
Cancelled: 'CANCELLED',
|
|
1317
|
+
Completed: 'COMPLETED',
|
|
1318
|
+
PendingSchedule: 'PENDING_SCHEDULE',
|
|
1319
|
+
NotFulfillable: 'NOT_FULFILLABLE',
|
|
1320
|
+
Hold: 'HOLD',
|
|
1321
|
+
PaymentDeclined: 'PAYMENT_DECLINED'
|
|
1322
|
+
};
|
|
1323
|
+
/**
|
|
1324
|
+
* @export
|
|
1325
|
+
*/
|
|
1326
|
+
exports.GetServiceJobsSortFieldEnum = {
|
|
1327
|
+
Date: 'JOB_DATE',
|
|
1328
|
+
Status: 'JOB_STATUS'
|
|
1329
|
+
};
|
|
1330
|
+
/**
|
|
1331
|
+
* @export
|
|
1332
|
+
*/
|
|
1333
|
+
exports.GetServiceJobsSortOrderEnum = {
|
|
1334
|
+
Asc: 'ASC',
|
|
1335
|
+
Desc: 'DESC'
|
|
1336
|
+
};
|
|
@@ -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, COLLECTION_FORMATS, BaseAPI } from '../base';
|
|
19
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
21
|
* ServiceApi - axios parameter creator
|
|
22
22
|
* @export
|
|
@@ -463,11 +463,11 @@ export const ServiceApiAxiosParamCreator = function (configuration) {
|
|
|
463
463
|
* Gets service job details for the specified filter query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 40 | 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, see [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).
|
|
464
464
|
* @param {Array<string>} marketplaceIds Used to select jobs that were placed in the specified marketplaces.
|
|
465
465
|
* @param {Array<string>} [serviceOrderIds] List of service order ids for the query you want to perform.Max values supported 20.
|
|
466
|
-
* @param {Array<
|
|
466
|
+
* @param {Array<GetServiceJobsServiceJobStatusEnum>} [serviceJobStatus] A list of one or more job status by which to filter the list of jobs.
|
|
467
467
|
* @param {string} [pageToken] String returned in the response of your previous request.
|
|
468
468
|
* @param {number} [pageSize] A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20.
|
|
469
|
-
* @param {
|
|
470
|
-
* @param {
|
|
469
|
+
* @param {GetServiceJobsSortFieldEnum} [sortField] Sort fields on which you want to sort the output.
|
|
470
|
+
* @param {GetServiceJobsSortOrderEnum} [sortOrder] Sort order for the query you want to perform.
|
|
471
471
|
* @param {string} [createdAfter] A date used for selecting jobs created at or after a specified time. Must be in ISO 8601 format. Required if `LastUpdatedAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error.
|
|
472
472
|
* @param {string} [createdBefore] A date used for selecting jobs created at or before a specified time. Must be in ISO 8601 format.
|
|
473
473
|
* @param {string} [lastUpdatedAfter] A date used for selecting jobs updated at or after a specified time. Must be in ISO 8601 format. Required if `createdAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error.
|
|
@@ -719,7 +719,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
719
719
|
*/
|
|
720
720
|
async addAppointmentForServiceJobByServiceJobId(serviceJobId, body, options) {
|
|
721
721
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addAppointmentForServiceJobByServiceJobId(serviceJobId, body, options);
|
|
722
|
-
|
|
722
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
723
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.addAppointmentForServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
724
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
723
725
|
},
|
|
724
726
|
/**
|
|
725
727
|
* Assigns new resource(s) or overwrite/update the existing one(s) to a service job appointment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | 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, see [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).
|
|
@@ -731,7 +733,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
731
733
|
*/
|
|
732
734
|
async assignAppointmentResources(serviceJobId, appointmentId, body, options) {
|
|
733
735
|
const localVarAxiosArgs = await localVarAxiosParamCreator.assignAppointmentResources(serviceJobId, appointmentId, body, options);
|
|
734
|
-
|
|
736
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
737
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.assignAppointmentResources']?.[localVarOperationServerIndex]?.url;
|
|
738
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
735
739
|
},
|
|
736
740
|
/**
|
|
737
741
|
* Cancel a reservation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -742,7 +746,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
742
746
|
*/
|
|
743
747
|
async cancelReservation(reservationId, marketplaceIds, options) {
|
|
744
748
|
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelReservation(reservationId, marketplaceIds, options);
|
|
745
|
-
|
|
749
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
750
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.cancelReservation']?.[localVarOperationServerIndex]?.url;
|
|
751
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
746
752
|
},
|
|
747
753
|
/**
|
|
748
754
|
* Cancels the service job indicated by the service job identifier specified. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -753,7 +759,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
753
759
|
*/
|
|
754
760
|
async cancelServiceJobByServiceJobId(serviceJobId, cancellationReasonCode, options) {
|
|
755
761
|
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelServiceJobByServiceJobId(serviceJobId, cancellationReasonCode, options);
|
|
756
|
-
|
|
762
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
763
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.cancelServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
764
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
757
765
|
},
|
|
758
766
|
/**
|
|
759
767
|
* Completes the service job indicated by the service job identifier specified. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -763,7 +771,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
763
771
|
*/
|
|
764
772
|
async completeServiceJobByServiceJobId(serviceJobId, options) {
|
|
765
773
|
const localVarAxiosArgs = await localVarAxiosParamCreator.completeServiceJobByServiceJobId(serviceJobId, options);
|
|
766
|
-
|
|
774
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
775
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.completeServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
776
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
767
777
|
},
|
|
768
778
|
/**
|
|
769
779
|
* Create a reservation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -774,7 +784,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
774
784
|
*/
|
|
775
785
|
async createReservation(marketplaceIds, body, options) {
|
|
776
786
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReservation(marketplaceIds, body, options);
|
|
777
|
-
|
|
787
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
788
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.createReservation']?.[localVarOperationServerIndex]?.url;
|
|
789
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
778
790
|
},
|
|
779
791
|
/**
|
|
780
792
|
* Creates an upload destination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -784,7 +796,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
784
796
|
*/
|
|
785
797
|
async createServiceDocumentUploadDestination(body, options) {
|
|
786
798
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createServiceDocumentUploadDestination(body, options);
|
|
787
|
-
|
|
799
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
800
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.createServiceDocumentUploadDestination']?.[localVarOperationServerIndex]?.url;
|
|
801
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
788
802
|
},
|
|
789
803
|
/**
|
|
790
804
|
* Gets appointment slots as per the service context specified. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 20 | 40 | 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, see [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).
|
|
@@ -798,7 +812,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
798
812
|
*/
|
|
799
813
|
async getAppointmentSlots(asin, storeId, marketplaceIds, startTime, endTime, options) {
|
|
800
814
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAppointmentSlots(asin, storeId, marketplaceIds, startTime, endTime, options);
|
|
801
|
-
|
|
815
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
816
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.getAppointmentSlots']?.[localVarOperationServerIndex]?.url;
|
|
817
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
802
818
|
},
|
|
803
819
|
/**
|
|
804
820
|
* Gets appointment slots for the service associated with the service job id specified. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -811,7 +827,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
811
827
|
*/
|
|
812
828
|
async getAppointmmentSlotsByJobId(serviceJobId, marketplaceIds, startTime, endTime, options) {
|
|
813
829
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAppointmmentSlotsByJobId(serviceJobId, marketplaceIds, startTime, endTime, options);
|
|
814
|
-
|
|
830
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
831
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.getAppointmmentSlotsByJobId']?.[localVarOperationServerIndex]?.url;
|
|
832
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
815
833
|
},
|
|
816
834
|
/**
|
|
817
835
|
* Provides capacity in fixed-size slots. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -824,7 +842,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
824
842
|
*/
|
|
825
843
|
async getFixedSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options) {
|
|
826
844
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFixedSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options);
|
|
827
|
-
|
|
845
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
846
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.getFixedSlotCapacity']?.[localVarOperationServerIndex]?.url;
|
|
847
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
828
848
|
},
|
|
829
849
|
/**
|
|
830
850
|
* Provides capacity slots in a format similar to availability records. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -837,7 +857,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
837
857
|
*/
|
|
838
858
|
async getRangeSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options) {
|
|
839
859
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRangeSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options);
|
|
840
|
-
|
|
860
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
861
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.getRangeSlotCapacity']?.[localVarOperationServerIndex]?.url;
|
|
862
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
841
863
|
},
|
|
842
864
|
/**
|
|
843
865
|
* Gets details of service job indicated by the provided `serviceJobID`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 20 | 40 | 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, see [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).
|
|
@@ -847,17 +869,19 @@ export const ServiceApiFp = function (configuration) {
|
|
|
847
869
|
*/
|
|
848
870
|
async getServiceJobByServiceJobId(serviceJobId, options) {
|
|
849
871
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceJobByServiceJobId(serviceJobId, options);
|
|
850
|
-
|
|
872
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
873
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.getServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
874
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
851
875
|
},
|
|
852
876
|
/**
|
|
853
877
|
* Gets service job details for the specified filter query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 40 | 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, see [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).
|
|
854
878
|
* @param {Array<string>} marketplaceIds Used to select jobs that were placed in the specified marketplaces.
|
|
855
879
|
* @param {Array<string>} [serviceOrderIds] List of service order ids for the query you want to perform.Max values supported 20.
|
|
856
|
-
* @param {Array<
|
|
880
|
+
* @param {Array<GetServiceJobsServiceJobStatusEnum>} [serviceJobStatus] A list of one or more job status by which to filter the list of jobs.
|
|
857
881
|
* @param {string} [pageToken] String returned in the response of your previous request.
|
|
858
882
|
* @param {number} [pageSize] A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20.
|
|
859
|
-
* @param {
|
|
860
|
-
* @param {
|
|
883
|
+
* @param {GetServiceJobsSortFieldEnum} [sortField] Sort fields on which you want to sort the output.
|
|
884
|
+
* @param {GetServiceJobsSortOrderEnum} [sortOrder] Sort order for the query you want to perform.
|
|
861
885
|
* @param {string} [createdAfter] A date used for selecting jobs created at or after a specified time. Must be in ISO 8601 format. Required if `LastUpdatedAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error.
|
|
862
886
|
* @param {string} [createdBefore] A date used for selecting jobs created at or before a specified time. Must be in ISO 8601 format.
|
|
863
887
|
* @param {string} [lastUpdatedAfter] A date used for selecting jobs updated at or after a specified time. Must be in ISO 8601 format. Required if `createdAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error.
|
|
@@ -872,7 +896,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
872
896
|
*/
|
|
873
897
|
async getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, asins, requiredSkills, storeIds, options) {
|
|
874
898
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, asins, requiredSkills, storeIds, options);
|
|
875
|
-
|
|
899
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
900
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.getServiceJobs']?.[localVarOperationServerIndex]?.url;
|
|
901
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
876
902
|
},
|
|
877
903
|
/**
|
|
878
904
|
* Reschedules an appointment for the service job indicated by the service job identifier specified. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -884,7 +910,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
884
910
|
*/
|
|
885
911
|
async rescheduleAppointmentForServiceJobByServiceJobId(serviceJobId, appointmentId, body, options) {
|
|
886
912
|
const localVarAxiosArgs = await localVarAxiosParamCreator.rescheduleAppointmentForServiceJobByServiceJobId(serviceJobId, appointmentId, body, options);
|
|
887
|
-
|
|
913
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
914
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.rescheduleAppointmentForServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
915
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
888
916
|
},
|
|
889
917
|
/**
|
|
890
918
|
* Updates the appointment fulfillment data related to a given `jobID` and `appointmentID`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -896,7 +924,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
896
924
|
*/
|
|
897
925
|
async setAppointmentFulfillmentData(serviceJobId, appointmentId, body, options) {
|
|
898
926
|
const localVarAxiosArgs = await localVarAxiosParamCreator.setAppointmentFulfillmentData(serviceJobId, appointmentId, body, options);
|
|
899
|
-
|
|
927
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
928
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.setAppointmentFulfillmentData']?.[localVarOperationServerIndex]?.url;
|
|
929
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
900
930
|
},
|
|
901
931
|
/**
|
|
902
932
|
* Update a reservation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -908,7 +938,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
908
938
|
*/
|
|
909
939
|
async updateReservation(reservationId, marketplaceIds, body, options) {
|
|
910
940
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateReservation(reservationId, marketplaceIds, body, options);
|
|
911
|
-
|
|
941
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
942
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.updateReservation']?.[localVarOperationServerIndex]?.url;
|
|
943
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
912
944
|
},
|
|
913
945
|
/**
|
|
914
946
|
* Update the schedule of the given resource. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | 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, see [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).
|
|
@@ -920,7 +952,9 @@ export const ServiceApiFp = function (configuration) {
|
|
|
920
952
|
*/
|
|
921
953
|
async updateSchedule(resourceId, marketplaceIds, body, options) {
|
|
922
954
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSchedule(resourceId, marketplaceIds, body, options);
|
|
923
|
-
|
|
955
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
956
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceApi.updateSchedule']?.[localVarOperationServerIndex]?.url;
|
|
957
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
924
958
|
},
|
|
925
959
|
};
|
|
926
960
|
};
|
|
@@ -1264,3 +1298,29 @@ export class ServiceApi extends BaseAPI {
|
|
|
1264
1298
|
return ServiceApiFp(this.configuration).updateSchedule(requestParameters.resourceId, requestParameters.marketplaceIds, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1265
1299
|
}
|
|
1266
1300
|
}
|
|
1301
|
+
/**
|
|
1302
|
+
* @export
|
|
1303
|
+
*/
|
|
1304
|
+
export const GetServiceJobsServiceJobStatusEnum = {
|
|
1305
|
+
NotServiced: 'NOT_SERVICED',
|
|
1306
|
+
Cancelled: 'CANCELLED',
|
|
1307
|
+
Completed: 'COMPLETED',
|
|
1308
|
+
PendingSchedule: 'PENDING_SCHEDULE',
|
|
1309
|
+
NotFulfillable: 'NOT_FULFILLABLE',
|
|
1310
|
+
Hold: 'HOLD',
|
|
1311
|
+
PaymentDeclined: 'PAYMENT_DECLINED'
|
|
1312
|
+
};
|
|
1313
|
+
/**
|
|
1314
|
+
* @export
|
|
1315
|
+
*/
|
|
1316
|
+
export const GetServiceJobsSortFieldEnum = {
|
|
1317
|
+
Date: 'JOB_DATE',
|
|
1318
|
+
Status: 'JOB_STATUS'
|
|
1319
|
+
};
|
|
1320
|
+
/**
|
|
1321
|
+
* @export
|
|
1322
|
+
*/
|
|
1323
|
+
export const GetServiceJobsSortOrderEnum = {
|
|
1324
|
+
Asc: 'ASC',
|
|
1325
|
+
Desc: 'DESC'
|
|
1326
|
+
};
|