@sp-api-sdk/services-api-v1 3.2.0 → 4.0.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/api-model/api/{service-api.js → services-api.js} +101 -101
- package/dist/cjs/api-model/api.js +1 -1
- package/dist/cjs/client.js +1 -1
- package/dist/es/api-model/api/{service-api.js → services-api.js} +96 -96
- package/dist/es/api-model/api.js +1 -1
- package/dist/es/client.js +2 -2
- package/dist/types/api-model/api/{service-api.d.ts → services-api.d.ts} +204 -204
- package/dist/types/api-model/api.d.ts +1 -1
- package/dist/types/client.d.ts +2 -2
- package/package.json +4 -4
|
@@ -18,10 +18,10 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeed
|
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* ServicesApi - axios parameter creator
|
|
22
22
|
* @export
|
|
23
23
|
*/
|
|
24
|
-
export const
|
|
24
|
+
export const ServicesApiAxiosParamCreator = function (configuration) {
|
|
25
25
|
return {
|
|
26
26
|
/**
|
|
27
27
|
* Adds an appointment to 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).
|
|
@@ -704,11 +704,11 @@ export const ServiceApiAxiosParamCreator = function (configuration) {
|
|
|
704
704
|
};
|
|
705
705
|
};
|
|
706
706
|
/**
|
|
707
|
-
*
|
|
707
|
+
* ServicesApi - functional programming interface
|
|
708
708
|
* @export
|
|
709
709
|
*/
|
|
710
|
-
export const
|
|
711
|
-
const localVarAxiosParamCreator =
|
|
710
|
+
export const ServicesApiFp = function (configuration) {
|
|
711
|
+
const localVarAxiosParamCreator = ServicesApiAxiosParamCreator(configuration);
|
|
712
712
|
return {
|
|
713
713
|
/**
|
|
714
714
|
* Adds an appointment to 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).
|
|
@@ -720,7 +720,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
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['
|
|
723
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.addAppointmentForServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
724
724
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
725
725
|
},
|
|
726
726
|
/**
|
|
@@ -734,7 +734,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
734
734
|
async assignAppointmentResources(serviceJobId, appointmentId, body, options) {
|
|
735
735
|
const localVarAxiosArgs = await localVarAxiosParamCreator.assignAppointmentResources(serviceJobId, appointmentId, body, options);
|
|
736
736
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
737
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
737
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.assignAppointmentResources']?.[localVarOperationServerIndex]?.url;
|
|
738
738
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
739
739
|
},
|
|
740
740
|
/**
|
|
@@ -747,7 +747,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
747
747
|
async cancelReservation(reservationId, marketplaceIds, options) {
|
|
748
748
|
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelReservation(reservationId, marketplaceIds, options);
|
|
749
749
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
750
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
750
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.cancelReservation']?.[localVarOperationServerIndex]?.url;
|
|
751
751
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
752
752
|
},
|
|
753
753
|
/**
|
|
@@ -760,7 +760,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
760
760
|
async cancelServiceJobByServiceJobId(serviceJobId, cancellationReasonCode, options) {
|
|
761
761
|
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelServiceJobByServiceJobId(serviceJobId, cancellationReasonCode, options);
|
|
762
762
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
763
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
763
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.cancelServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
764
764
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
765
765
|
},
|
|
766
766
|
/**
|
|
@@ -772,7 +772,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
772
772
|
async completeServiceJobByServiceJobId(serviceJobId, options) {
|
|
773
773
|
const localVarAxiosArgs = await localVarAxiosParamCreator.completeServiceJobByServiceJobId(serviceJobId, options);
|
|
774
774
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
775
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
775
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.completeServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
776
776
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
777
777
|
},
|
|
778
778
|
/**
|
|
@@ -785,7 +785,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
785
785
|
async createReservation(marketplaceIds, body, options) {
|
|
786
786
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReservation(marketplaceIds, body, options);
|
|
787
787
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
788
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
788
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.createReservation']?.[localVarOperationServerIndex]?.url;
|
|
789
789
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
790
790
|
},
|
|
791
791
|
/**
|
|
@@ -797,7 +797,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
797
797
|
async createServiceDocumentUploadDestination(body, options) {
|
|
798
798
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createServiceDocumentUploadDestination(body, options);
|
|
799
799
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
800
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
800
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.createServiceDocumentUploadDestination']?.[localVarOperationServerIndex]?.url;
|
|
801
801
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
802
802
|
},
|
|
803
803
|
/**
|
|
@@ -813,7 +813,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
813
813
|
async getAppointmentSlots(asin, storeId, marketplaceIds, startTime, endTime, options) {
|
|
814
814
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAppointmentSlots(asin, storeId, marketplaceIds, startTime, endTime, options);
|
|
815
815
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
816
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
816
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.getAppointmentSlots']?.[localVarOperationServerIndex]?.url;
|
|
817
817
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
818
818
|
},
|
|
819
819
|
/**
|
|
@@ -828,7 +828,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
828
828
|
async getAppointmmentSlotsByJobId(serviceJobId, marketplaceIds, startTime, endTime, options) {
|
|
829
829
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAppointmmentSlotsByJobId(serviceJobId, marketplaceIds, startTime, endTime, options);
|
|
830
830
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
831
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
831
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.getAppointmmentSlotsByJobId']?.[localVarOperationServerIndex]?.url;
|
|
832
832
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
833
833
|
},
|
|
834
834
|
/**
|
|
@@ -843,7 +843,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
843
843
|
async getFixedSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options) {
|
|
844
844
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFixedSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options);
|
|
845
845
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
846
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
846
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.getFixedSlotCapacity']?.[localVarOperationServerIndex]?.url;
|
|
847
847
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
848
848
|
},
|
|
849
849
|
/**
|
|
@@ -858,7 +858,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
858
858
|
async getRangeSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options) {
|
|
859
859
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRangeSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options);
|
|
860
860
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
861
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
861
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.getRangeSlotCapacity']?.[localVarOperationServerIndex]?.url;
|
|
862
862
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
863
863
|
},
|
|
864
864
|
/**
|
|
@@ -870,7 +870,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
870
870
|
async getServiceJobByServiceJobId(serviceJobId, options) {
|
|
871
871
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceJobByServiceJobId(serviceJobId, options);
|
|
872
872
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
873
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
873
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.getServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
874
874
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
875
875
|
},
|
|
876
876
|
/**
|
|
@@ -897,7 +897,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
897
897
|
async getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, asins, requiredSkills, storeIds, options) {
|
|
898
898
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, asins, requiredSkills, storeIds, options);
|
|
899
899
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
900
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
900
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.getServiceJobs']?.[localVarOperationServerIndex]?.url;
|
|
901
901
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
902
902
|
},
|
|
903
903
|
/**
|
|
@@ -911,7 +911,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
911
911
|
async rescheduleAppointmentForServiceJobByServiceJobId(serviceJobId, appointmentId, body, options) {
|
|
912
912
|
const localVarAxiosArgs = await localVarAxiosParamCreator.rescheduleAppointmentForServiceJobByServiceJobId(serviceJobId, appointmentId, body, options);
|
|
913
913
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
914
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
914
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.rescheduleAppointmentForServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
915
915
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
916
916
|
},
|
|
917
917
|
/**
|
|
@@ -925,7 +925,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
925
925
|
async setAppointmentFulfillmentData(serviceJobId, appointmentId, body, options) {
|
|
926
926
|
const localVarAxiosArgs = await localVarAxiosParamCreator.setAppointmentFulfillmentData(serviceJobId, appointmentId, body, options);
|
|
927
927
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
928
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
928
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.setAppointmentFulfillmentData']?.[localVarOperationServerIndex]?.url;
|
|
929
929
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
930
930
|
},
|
|
931
931
|
/**
|
|
@@ -939,7 +939,7 @@ export const ServiceApiFp = function (configuration) {
|
|
|
939
939
|
async updateReservation(reservationId, marketplaceIds, body, options) {
|
|
940
940
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateReservation(reservationId, marketplaceIds, body, options);
|
|
941
941
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
942
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
942
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.updateReservation']?.[localVarOperationServerIndex]?.url;
|
|
943
943
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
944
944
|
},
|
|
945
945
|
/**
|
|
@@ -953,21 +953,21 @@ export const ServiceApiFp = function (configuration) {
|
|
|
953
953
|
async updateSchedule(resourceId, marketplaceIds, body, options) {
|
|
954
954
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSchedule(resourceId, marketplaceIds, body, options);
|
|
955
955
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
956
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
956
|
+
const localVarOperationServerBasePath = operationServerMap['ServicesApi.updateSchedule']?.[localVarOperationServerIndex]?.url;
|
|
957
957
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
958
958
|
},
|
|
959
959
|
};
|
|
960
960
|
};
|
|
961
961
|
/**
|
|
962
|
-
*
|
|
962
|
+
* ServicesApi - factory interface
|
|
963
963
|
* @export
|
|
964
964
|
*/
|
|
965
|
-
export const
|
|
966
|
-
const localVarFp =
|
|
965
|
+
export const ServicesApiFactory = function (configuration, basePath, axios) {
|
|
966
|
+
const localVarFp = ServicesApiFp(configuration);
|
|
967
967
|
return {
|
|
968
968
|
/**
|
|
969
969
|
* Adds an appointment to 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).
|
|
970
|
-
* @param {
|
|
970
|
+
* @param {ServicesApiAddAppointmentForServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
971
971
|
* @param {*} [options] Override http request option.
|
|
972
972
|
* @throws {RequiredError}
|
|
973
973
|
*/
|
|
@@ -976,7 +976,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
976
976
|
},
|
|
977
977
|
/**
|
|
978
978
|
* 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).
|
|
979
|
-
* @param {
|
|
979
|
+
* @param {ServicesApiAssignAppointmentResourcesRequest} requestParameters Request parameters.
|
|
980
980
|
* @param {*} [options] Override http request option.
|
|
981
981
|
* @throws {RequiredError}
|
|
982
982
|
*/
|
|
@@ -985,7 +985,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
985
985
|
},
|
|
986
986
|
/**
|
|
987
987
|
* 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).
|
|
988
|
-
* @param {
|
|
988
|
+
* @param {ServicesApiCancelReservationRequest} requestParameters Request parameters.
|
|
989
989
|
* @param {*} [options] Override http request option.
|
|
990
990
|
* @throws {RequiredError}
|
|
991
991
|
*/
|
|
@@ -994,7 +994,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
994
994
|
},
|
|
995
995
|
/**
|
|
996
996
|
* 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).
|
|
997
|
-
* @param {
|
|
997
|
+
* @param {ServicesApiCancelServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
998
998
|
* @param {*} [options] Override http request option.
|
|
999
999
|
* @throws {RequiredError}
|
|
1000
1000
|
*/
|
|
@@ -1003,7 +1003,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1003
1003
|
},
|
|
1004
1004
|
/**
|
|
1005
1005
|
* 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).
|
|
1006
|
-
* @param {
|
|
1006
|
+
* @param {ServicesApiCompleteServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1007
1007
|
* @param {*} [options] Override http request option.
|
|
1008
1008
|
* @throws {RequiredError}
|
|
1009
1009
|
*/
|
|
@@ -1012,7 +1012,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1012
1012
|
},
|
|
1013
1013
|
/**
|
|
1014
1014
|
* 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).
|
|
1015
|
-
* @param {
|
|
1015
|
+
* @param {ServicesApiCreateReservationRequest} requestParameters Request parameters.
|
|
1016
1016
|
* @param {*} [options] Override http request option.
|
|
1017
1017
|
* @throws {RequiredError}
|
|
1018
1018
|
*/
|
|
@@ -1021,7 +1021,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1021
1021
|
},
|
|
1022
1022
|
/**
|
|
1023
1023
|
* 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).
|
|
1024
|
-
* @param {
|
|
1024
|
+
* @param {ServicesApiCreateServiceDocumentUploadDestinationRequest} requestParameters Request parameters.
|
|
1025
1025
|
* @param {*} [options] Override http request option.
|
|
1026
1026
|
* @throws {RequiredError}
|
|
1027
1027
|
*/
|
|
@@ -1030,7 +1030,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1030
1030
|
},
|
|
1031
1031
|
/**
|
|
1032
1032
|
* 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).
|
|
1033
|
-
* @param {
|
|
1033
|
+
* @param {ServicesApiGetAppointmentSlotsRequest} requestParameters Request parameters.
|
|
1034
1034
|
* @param {*} [options] Override http request option.
|
|
1035
1035
|
* @throws {RequiredError}
|
|
1036
1036
|
*/
|
|
@@ -1039,7 +1039,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1039
1039
|
},
|
|
1040
1040
|
/**
|
|
1041
1041
|
* 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).
|
|
1042
|
-
* @param {
|
|
1042
|
+
* @param {ServicesApiGetAppointmmentSlotsByJobIdRequest} requestParameters Request parameters.
|
|
1043
1043
|
* @param {*} [options] Override http request option.
|
|
1044
1044
|
* @throws {RequiredError}
|
|
1045
1045
|
*/
|
|
@@ -1048,7 +1048,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1048
1048
|
},
|
|
1049
1049
|
/**
|
|
1050
1050
|
* 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).
|
|
1051
|
-
* @param {
|
|
1051
|
+
* @param {ServicesApiGetFixedSlotCapacityRequest} requestParameters Request parameters.
|
|
1052
1052
|
* @param {*} [options] Override http request option.
|
|
1053
1053
|
* @throws {RequiredError}
|
|
1054
1054
|
*/
|
|
@@ -1057,7 +1057,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1057
1057
|
},
|
|
1058
1058
|
/**
|
|
1059
1059
|
* 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).
|
|
1060
|
-
* @param {
|
|
1060
|
+
* @param {ServicesApiGetRangeSlotCapacityRequest} requestParameters Request parameters.
|
|
1061
1061
|
* @param {*} [options] Override http request option.
|
|
1062
1062
|
* @throws {RequiredError}
|
|
1063
1063
|
*/
|
|
@@ -1066,7 +1066,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1066
1066
|
},
|
|
1067
1067
|
/**
|
|
1068
1068
|
* 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).
|
|
1069
|
-
* @param {
|
|
1069
|
+
* @param {ServicesApiGetServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1070
1070
|
* @param {*} [options] Override http request option.
|
|
1071
1071
|
* @throws {RequiredError}
|
|
1072
1072
|
*/
|
|
@@ -1075,7 +1075,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1075
1075
|
},
|
|
1076
1076
|
/**
|
|
1077
1077
|
* 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).
|
|
1078
|
-
* @param {
|
|
1078
|
+
* @param {ServicesApiGetServiceJobsRequest} requestParameters Request parameters.
|
|
1079
1079
|
* @param {*} [options] Override http request option.
|
|
1080
1080
|
* @throws {RequiredError}
|
|
1081
1081
|
*/
|
|
@@ -1084,7 +1084,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1084
1084
|
},
|
|
1085
1085
|
/**
|
|
1086
1086
|
* 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).
|
|
1087
|
-
* @param {
|
|
1087
|
+
* @param {ServicesApiRescheduleAppointmentForServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1088
1088
|
* @param {*} [options] Override http request option.
|
|
1089
1089
|
* @throws {RequiredError}
|
|
1090
1090
|
*/
|
|
@@ -1093,7 +1093,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1093
1093
|
},
|
|
1094
1094
|
/**
|
|
1095
1095
|
* 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).
|
|
1096
|
-
* @param {
|
|
1096
|
+
* @param {ServicesApiSetAppointmentFulfillmentDataRequest} requestParameters Request parameters.
|
|
1097
1097
|
* @param {*} [options] Override http request option.
|
|
1098
1098
|
* @throws {RequiredError}
|
|
1099
1099
|
*/
|
|
@@ -1102,7 +1102,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1102
1102
|
},
|
|
1103
1103
|
/**
|
|
1104
1104
|
* 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).
|
|
1105
|
-
* @param {
|
|
1105
|
+
* @param {ServicesApiUpdateReservationRequest} requestParameters Request parameters.
|
|
1106
1106
|
* @param {*} [options] Override http request option.
|
|
1107
1107
|
* @throws {RequiredError}
|
|
1108
1108
|
*/
|
|
@@ -1111,7 +1111,7 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1111
1111
|
},
|
|
1112
1112
|
/**
|
|
1113
1113
|
* 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).
|
|
1114
|
-
* @param {
|
|
1114
|
+
* @param {ServicesApiUpdateScheduleRequest} requestParameters Request parameters.
|
|
1115
1115
|
* @param {*} [options] Override http request option.
|
|
1116
1116
|
* @throws {RequiredError}
|
|
1117
1117
|
*/
|
|
@@ -1121,181 +1121,181 @@ export const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1121
1121
|
};
|
|
1122
1122
|
};
|
|
1123
1123
|
/**
|
|
1124
|
-
*
|
|
1124
|
+
* ServicesApi - object-oriented interface
|
|
1125
1125
|
* @export
|
|
1126
|
-
* @class
|
|
1126
|
+
* @class ServicesApi
|
|
1127
1127
|
* @extends {BaseAPI}
|
|
1128
1128
|
*/
|
|
1129
|
-
export class
|
|
1129
|
+
export class ServicesApi extends BaseAPI {
|
|
1130
1130
|
/**
|
|
1131
1131
|
* Adds an appointment to 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).
|
|
1132
|
-
* @param {
|
|
1132
|
+
* @param {ServicesApiAddAppointmentForServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1133
1133
|
* @param {*} [options] Override http request option.
|
|
1134
1134
|
* @throws {RequiredError}
|
|
1135
|
-
* @memberof
|
|
1135
|
+
* @memberof ServicesApi
|
|
1136
1136
|
*/
|
|
1137
1137
|
addAppointmentForServiceJobByServiceJobId(requestParameters, options) {
|
|
1138
|
-
return
|
|
1138
|
+
return ServicesApiFp(this.configuration).addAppointmentForServiceJobByServiceJobId(requestParameters.serviceJobId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1139
1139
|
}
|
|
1140
1140
|
/**
|
|
1141
1141
|
* 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).
|
|
1142
|
-
* @param {
|
|
1142
|
+
* @param {ServicesApiAssignAppointmentResourcesRequest} requestParameters Request parameters.
|
|
1143
1143
|
* @param {*} [options] Override http request option.
|
|
1144
1144
|
* @throws {RequiredError}
|
|
1145
|
-
* @memberof
|
|
1145
|
+
* @memberof ServicesApi
|
|
1146
1146
|
*/
|
|
1147
1147
|
assignAppointmentResources(requestParameters, options) {
|
|
1148
|
-
return
|
|
1148
|
+
return ServicesApiFp(this.configuration).assignAppointmentResources(requestParameters.serviceJobId, requestParameters.appointmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1149
1149
|
}
|
|
1150
1150
|
/**
|
|
1151
1151
|
* 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).
|
|
1152
|
-
* @param {
|
|
1152
|
+
* @param {ServicesApiCancelReservationRequest} requestParameters Request parameters.
|
|
1153
1153
|
* @param {*} [options] Override http request option.
|
|
1154
1154
|
* @throws {RequiredError}
|
|
1155
|
-
* @memberof
|
|
1155
|
+
* @memberof ServicesApi
|
|
1156
1156
|
*/
|
|
1157
1157
|
cancelReservation(requestParameters, options) {
|
|
1158
|
-
return
|
|
1158
|
+
return ServicesApiFp(this.configuration).cancelReservation(requestParameters.reservationId, requestParameters.marketplaceIds, options).then((request) => request(this.axios, this.basePath));
|
|
1159
1159
|
}
|
|
1160
1160
|
/**
|
|
1161
1161
|
* 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).
|
|
1162
|
-
* @param {
|
|
1162
|
+
* @param {ServicesApiCancelServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1163
1163
|
* @param {*} [options] Override http request option.
|
|
1164
1164
|
* @throws {RequiredError}
|
|
1165
|
-
* @memberof
|
|
1165
|
+
* @memberof ServicesApi
|
|
1166
1166
|
*/
|
|
1167
1167
|
cancelServiceJobByServiceJobId(requestParameters, options) {
|
|
1168
|
-
return
|
|
1168
|
+
return ServicesApiFp(this.configuration).cancelServiceJobByServiceJobId(requestParameters.serviceJobId, requestParameters.cancellationReasonCode, options).then((request) => request(this.axios, this.basePath));
|
|
1169
1169
|
}
|
|
1170
1170
|
/**
|
|
1171
1171
|
* 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).
|
|
1172
|
-
* @param {
|
|
1172
|
+
* @param {ServicesApiCompleteServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1173
1173
|
* @param {*} [options] Override http request option.
|
|
1174
1174
|
* @throws {RequiredError}
|
|
1175
|
-
* @memberof
|
|
1175
|
+
* @memberof ServicesApi
|
|
1176
1176
|
*/
|
|
1177
1177
|
completeServiceJobByServiceJobId(requestParameters, options) {
|
|
1178
|
-
return
|
|
1178
|
+
return ServicesApiFp(this.configuration).completeServiceJobByServiceJobId(requestParameters.serviceJobId, options).then((request) => request(this.axios, this.basePath));
|
|
1179
1179
|
}
|
|
1180
1180
|
/**
|
|
1181
1181
|
* 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).
|
|
1182
|
-
* @param {
|
|
1182
|
+
* @param {ServicesApiCreateReservationRequest} requestParameters Request parameters.
|
|
1183
1183
|
* @param {*} [options] Override http request option.
|
|
1184
1184
|
* @throws {RequiredError}
|
|
1185
|
-
* @memberof
|
|
1185
|
+
* @memberof ServicesApi
|
|
1186
1186
|
*/
|
|
1187
1187
|
createReservation(requestParameters, options) {
|
|
1188
|
-
return
|
|
1188
|
+
return ServicesApiFp(this.configuration).createReservation(requestParameters.marketplaceIds, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1189
1189
|
}
|
|
1190
1190
|
/**
|
|
1191
1191
|
* 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).
|
|
1192
|
-
* @param {
|
|
1192
|
+
* @param {ServicesApiCreateServiceDocumentUploadDestinationRequest} requestParameters Request parameters.
|
|
1193
1193
|
* @param {*} [options] Override http request option.
|
|
1194
1194
|
* @throws {RequiredError}
|
|
1195
|
-
* @memberof
|
|
1195
|
+
* @memberof ServicesApi
|
|
1196
1196
|
*/
|
|
1197
1197
|
createServiceDocumentUploadDestination(requestParameters, options) {
|
|
1198
|
-
return
|
|
1198
|
+
return ServicesApiFp(this.configuration).createServiceDocumentUploadDestination(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1199
1199
|
}
|
|
1200
1200
|
/**
|
|
1201
1201
|
* 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).
|
|
1202
|
-
* @param {
|
|
1202
|
+
* @param {ServicesApiGetAppointmentSlotsRequest} requestParameters Request parameters.
|
|
1203
1203
|
* @param {*} [options] Override http request option.
|
|
1204
1204
|
* @throws {RequiredError}
|
|
1205
|
-
* @memberof
|
|
1205
|
+
* @memberof ServicesApi
|
|
1206
1206
|
*/
|
|
1207
1207
|
getAppointmentSlots(requestParameters, options) {
|
|
1208
|
-
return
|
|
1208
|
+
return ServicesApiFp(this.configuration).getAppointmentSlots(requestParameters.asin, requestParameters.storeId, requestParameters.marketplaceIds, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
|
|
1209
1209
|
}
|
|
1210
1210
|
/**
|
|
1211
1211
|
* 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).
|
|
1212
|
-
* @param {
|
|
1212
|
+
* @param {ServicesApiGetAppointmmentSlotsByJobIdRequest} requestParameters Request parameters.
|
|
1213
1213
|
* @param {*} [options] Override http request option.
|
|
1214
1214
|
* @throws {RequiredError}
|
|
1215
|
-
* @memberof
|
|
1215
|
+
* @memberof ServicesApi
|
|
1216
1216
|
*/
|
|
1217
1217
|
getAppointmmentSlotsByJobId(requestParameters, options) {
|
|
1218
|
-
return
|
|
1218
|
+
return ServicesApiFp(this.configuration).getAppointmmentSlotsByJobId(requestParameters.serviceJobId, requestParameters.marketplaceIds, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
|
|
1219
1219
|
}
|
|
1220
1220
|
/**
|
|
1221
1221
|
* 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).
|
|
1222
|
-
* @param {
|
|
1222
|
+
* @param {ServicesApiGetFixedSlotCapacityRequest} requestParameters Request parameters.
|
|
1223
1223
|
* @param {*} [options] Override http request option.
|
|
1224
1224
|
* @throws {RequiredError}
|
|
1225
|
-
* @memberof
|
|
1225
|
+
* @memberof ServicesApi
|
|
1226
1226
|
*/
|
|
1227
1227
|
getFixedSlotCapacity(requestParameters, options) {
|
|
1228
|
-
return
|
|
1228
|
+
return ServicesApiFp(this.configuration).getFixedSlotCapacity(requestParameters.resourceId, requestParameters.marketplaceIds, requestParameters.body, requestParameters.nextPageToken, options).then((request) => request(this.axios, this.basePath));
|
|
1229
1229
|
}
|
|
1230
1230
|
/**
|
|
1231
1231
|
* 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).
|
|
1232
|
-
* @param {
|
|
1232
|
+
* @param {ServicesApiGetRangeSlotCapacityRequest} requestParameters Request parameters.
|
|
1233
1233
|
* @param {*} [options] Override http request option.
|
|
1234
1234
|
* @throws {RequiredError}
|
|
1235
|
-
* @memberof
|
|
1235
|
+
* @memberof ServicesApi
|
|
1236
1236
|
*/
|
|
1237
1237
|
getRangeSlotCapacity(requestParameters, options) {
|
|
1238
|
-
return
|
|
1238
|
+
return ServicesApiFp(this.configuration).getRangeSlotCapacity(requestParameters.resourceId, requestParameters.marketplaceIds, requestParameters.body, requestParameters.nextPageToken, options).then((request) => request(this.axios, this.basePath));
|
|
1239
1239
|
}
|
|
1240
1240
|
/**
|
|
1241
1241
|
* 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).
|
|
1242
|
-
* @param {
|
|
1242
|
+
* @param {ServicesApiGetServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1243
1243
|
* @param {*} [options] Override http request option.
|
|
1244
1244
|
* @throws {RequiredError}
|
|
1245
|
-
* @memberof
|
|
1245
|
+
* @memberof ServicesApi
|
|
1246
1246
|
*/
|
|
1247
1247
|
getServiceJobByServiceJobId(requestParameters, options) {
|
|
1248
|
-
return
|
|
1248
|
+
return ServicesApiFp(this.configuration).getServiceJobByServiceJobId(requestParameters.serviceJobId, options).then((request) => request(this.axios, this.basePath));
|
|
1249
1249
|
}
|
|
1250
1250
|
/**
|
|
1251
1251
|
* 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).
|
|
1252
|
-
* @param {
|
|
1252
|
+
* @param {ServicesApiGetServiceJobsRequest} requestParameters Request parameters.
|
|
1253
1253
|
* @param {*} [options] Override http request option.
|
|
1254
1254
|
* @throws {RequiredError}
|
|
1255
|
-
* @memberof
|
|
1255
|
+
* @memberof ServicesApi
|
|
1256
1256
|
*/
|
|
1257
1257
|
getServiceJobs(requestParameters, options) {
|
|
1258
|
-
return
|
|
1258
|
+
return ServicesApiFp(this.configuration).getServiceJobs(requestParameters.marketplaceIds, requestParameters.serviceOrderIds, requestParameters.serviceJobStatus, requestParameters.pageToken, requestParameters.pageSize, requestParameters.sortField, requestParameters.sortOrder, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.scheduleStartDate, requestParameters.scheduleEndDate, requestParameters.asins, requestParameters.requiredSkills, requestParameters.storeIds, options).then((request) => request(this.axios, this.basePath));
|
|
1259
1259
|
}
|
|
1260
1260
|
/**
|
|
1261
1261
|
* 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).
|
|
1262
|
-
* @param {
|
|
1262
|
+
* @param {ServicesApiRescheduleAppointmentForServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1263
1263
|
* @param {*} [options] Override http request option.
|
|
1264
1264
|
* @throws {RequiredError}
|
|
1265
|
-
* @memberof
|
|
1265
|
+
* @memberof ServicesApi
|
|
1266
1266
|
*/
|
|
1267
1267
|
rescheduleAppointmentForServiceJobByServiceJobId(requestParameters, options) {
|
|
1268
|
-
return
|
|
1268
|
+
return ServicesApiFp(this.configuration).rescheduleAppointmentForServiceJobByServiceJobId(requestParameters.serviceJobId, requestParameters.appointmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1269
1269
|
}
|
|
1270
1270
|
/**
|
|
1271
1271
|
* 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).
|
|
1272
|
-
* @param {
|
|
1272
|
+
* @param {ServicesApiSetAppointmentFulfillmentDataRequest} requestParameters Request parameters.
|
|
1273
1273
|
* @param {*} [options] Override http request option.
|
|
1274
1274
|
* @throws {RequiredError}
|
|
1275
|
-
* @memberof
|
|
1275
|
+
* @memberof ServicesApi
|
|
1276
1276
|
*/
|
|
1277
1277
|
setAppointmentFulfillmentData(requestParameters, options) {
|
|
1278
|
-
return
|
|
1278
|
+
return ServicesApiFp(this.configuration).setAppointmentFulfillmentData(requestParameters.serviceJobId, requestParameters.appointmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1279
1279
|
}
|
|
1280
1280
|
/**
|
|
1281
1281
|
* 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).
|
|
1282
|
-
* @param {
|
|
1282
|
+
* @param {ServicesApiUpdateReservationRequest} requestParameters Request parameters.
|
|
1283
1283
|
* @param {*} [options] Override http request option.
|
|
1284
1284
|
* @throws {RequiredError}
|
|
1285
|
-
* @memberof
|
|
1285
|
+
* @memberof ServicesApi
|
|
1286
1286
|
*/
|
|
1287
1287
|
updateReservation(requestParameters, options) {
|
|
1288
|
-
return
|
|
1288
|
+
return ServicesApiFp(this.configuration).updateReservation(requestParameters.reservationId, requestParameters.marketplaceIds, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1289
1289
|
}
|
|
1290
1290
|
/**
|
|
1291
1291
|
* 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).
|
|
1292
|
-
* @param {
|
|
1292
|
+
* @param {ServicesApiUpdateScheduleRequest} requestParameters Request parameters.
|
|
1293
1293
|
* @param {*} [options] Override http request option.
|
|
1294
1294
|
* @throws {RequiredError}
|
|
1295
|
-
* @memberof
|
|
1295
|
+
* @memberof ServicesApi
|
|
1296
1296
|
*/
|
|
1297
1297
|
updateSchedule(requestParameters, options) {
|
|
1298
|
-
return
|
|
1298
|
+
return ServicesApiFp(this.configuration).updateSchedule(requestParameters.resourceId, requestParameters.marketplaceIds, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1299
1299
|
}
|
|
1300
1300
|
}
|
|
1301
1301
|
/**
|