@sp-api-sdk/services-api-v1 3.1.1 → 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/api-model/models/date-time-range.js +15 -0
- package/dist/cjs/api-model/models/index.js +1 -0
- 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/api-model/models/date-time-range.js +14 -0
- package/dist/es/api-model/models/index.js +1 -0
- 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/api-model/models/date-time-range.d.ts +30 -0
- package/dist/types/api-model/models/index.d.ts +1 -0
- package/dist/types/api-model/models/set-appointment-fulfillment-data-request.d.ts +7 -0
- package/dist/types/client.d.ts +2 -2
- 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.GetServiceJobsSortOrderEnum = exports.GetServiceJobsSortFieldEnum = exports.GetServiceJobsServiceJobStatusEnum = exports.
|
|
19
|
+
exports.GetServiceJobsSortOrderEnum = exports.GetServiceJobsSortFieldEnum = exports.GetServiceJobsServiceJobStatusEnum = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -24,10 +24,10 @@ const common_1 = require("../common");
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
const base_1 = require("../base");
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* ServicesApi - axios parameter creator
|
|
28
28
|
* @export
|
|
29
29
|
*/
|
|
30
|
-
const
|
|
30
|
+
const ServicesApiAxiosParamCreator = function (configuration) {
|
|
31
31
|
return {
|
|
32
32
|
/**
|
|
33
33
|
* 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).
|
|
@@ -709,13 +709,13 @@ const ServiceApiAxiosParamCreator = function (configuration) {
|
|
|
709
709
|
},
|
|
710
710
|
};
|
|
711
711
|
};
|
|
712
|
-
exports.
|
|
712
|
+
exports.ServicesApiAxiosParamCreator = ServicesApiAxiosParamCreator;
|
|
713
713
|
/**
|
|
714
|
-
*
|
|
714
|
+
* ServicesApi - functional programming interface
|
|
715
715
|
* @export
|
|
716
716
|
*/
|
|
717
|
-
const
|
|
718
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
717
|
+
const ServicesApiFp = function (configuration) {
|
|
718
|
+
const localVarAxiosParamCreator = (0, exports.ServicesApiAxiosParamCreator)(configuration);
|
|
719
719
|
return {
|
|
720
720
|
/**
|
|
721
721
|
* 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).
|
|
@@ -727,7 +727,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
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['
|
|
730
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.addAppointmentForServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
731
731
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
732
732
|
},
|
|
733
733
|
/**
|
|
@@ -741,7 +741,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
741
741
|
async assignAppointmentResources(serviceJobId, appointmentId, body, options) {
|
|
742
742
|
const localVarAxiosArgs = await localVarAxiosParamCreator.assignAppointmentResources(serviceJobId, appointmentId, body, options);
|
|
743
743
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
744
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
744
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.assignAppointmentResources']?.[localVarOperationServerIndex]?.url;
|
|
745
745
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
746
746
|
},
|
|
747
747
|
/**
|
|
@@ -754,7 +754,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
754
754
|
async cancelReservation(reservationId, marketplaceIds, options) {
|
|
755
755
|
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelReservation(reservationId, marketplaceIds, options);
|
|
756
756
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
757
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
757
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.cancelReservation']?.[localVarOperationServerIndex]?.url;
|
|
758
758
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
759
759
|
},
|
|
760
760
|
/**
|
|
@@ -767,7 +767,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
767
767
|
async cancelServiceJobByServiceJobId(serviceJobId, cancellationReasonCode, options) {
|
|
768
768
|
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelServiceJobByServiceJobId(serviceJobId, cancellationReasonCode, options);
|
|
769
769
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
770
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
770
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.cancelServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
771
771
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
772
772
|
},
|
|
773
773
|
/**
|
|
@@ -779,7 +779,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
779
779
|
async completeServiceJobByServiceJobId(serviceJobId, options) {
|
|
780
780
|
const localVarAxiosArgs = await localVarAxiosParamCreator.completeServiceJobByServiceJobId(serviceJobId, options);
|
|
781
781
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
782
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
782
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.completeServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
783
783
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
784
784
|
},
|
|
785
785
|
/**
|
|
@@ -792,7 +792,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
792
792
|
async createReservation(marketplaceIds, body, options) {
|
|
793
793
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReservation(marketplaceIds, body, options);
|
|
794
794
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
795
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
795
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.createReservation']?.[localVarOperationServerIndex]?.url;
|
|
796
796
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
797
797
|
},
|
|
798
798
|
/**
|
|
@@ -804,7 +804,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
804
804
|
async createServiceDocumentUploadDestination(body, options) {
|
|
805
805
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createServiceDocumentUploadDestination(body, options);
|
|
806
806
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
807
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
807
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.createServiceDocumentUploadDestination']?.[localVarOperationServerIndex]?.url;
|
|
808
808
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
809
809
|
},
|
|
810
810
|
/**
|
|
@@ -820,7 +820,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
820
820
|
async getAppointmentSlots(asin, storeId, marketplaceIds, startTime, endTime, options) {
|
|
821
821
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAppointmentSlots(asin, storeId, marketplaceIds, startTime, endTime, options);
|
|
822
822
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
823
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
823
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.getAppointmentSlots']?.[localVarOperationServerIndex]?.url;
|
|
824
824
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
825
825
|
},
|
|
826
826
|
/**
|
|
@@ -835,7 +835,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
835
835
|
async getAppointmmentSlotsByJobId(serviceJobId, marketplaceIds, startTime, endTime, options) {
|
|
836
836
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAppointmmentSlotsByJobId(serviceJobId, marketplaceIds, startTime, endTime, options);
|
|
837
837
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
838
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
838
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.getAppointmmentSlotsByJobId']?.[localVarOperationServerIndex]?.url;
|
|
839
839
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
840
840
|
},
|
|
841
841
|
/**
|
|
@@ -850,7 +850,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
850
850
|
async getFixedSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options) {
|
|
851
851
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFixedSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options);
|
|
852
852
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
853
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
853
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.getFixedSlotCapacity']?.[localVarOperationServerIndex]?.url;
|
|
854
854
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
855
855
|
},
|
|
856
856
|
/**
|
|
@@ -865,7 +865,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
865
865
|
async getRangeSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options) {
|
|
866
866
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRangeSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options);
|
|
867
867
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
868
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
868
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.getRangeSlotCapacity']?.[localVarOperationServerIndex]?.url;
|
|
869
869
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
870
870
|
},
|
|
871
871
|
/**
|
|
@@ -877,7 +877,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
877
877
|
async getServiceJobByServiceJobId(serviceJobId, options) {
|
|
878
878
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceJobByServiceJobId(serviceJobId, options);
|
|
879
879
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
880
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
880
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.getServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
881
881
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
882
882
|
},
|
|
883
883
|
/**
|
|
@@ -904,7 +904,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
904
904
|
async getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, asins, requiredSkills, storeIds, options) {
|
|
905
905
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, asins, requiredSkills, storeIds, options);
|
|
906
906
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
907
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
907
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.getServiceJobs']?.[localVarOperationServerIndex]?.url;
|
|
908
908
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
909
909
|
},
|
|
910
910
|
/**
|
|
@@ -918,7 +918,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
918
918
|
async rescheduleAppointmentForServiceJobByServiceJobId(serviceJobId, appointmentId, body, options) {
|
|
919
919
|
const localVarAxiosArgs = await localVarAxiosParamCreator.rescheduleAppointmentForServiceJobByServiceJobId(serviceJobId, appointmentId, body, options);
|
|
920
920
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
921
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
921
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.rescheduleAppointmentForServiceJobByServiceJobId']?.[localVarOperationServerIndex]?.url;
|
|
922
922
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
923
923
|
},
|
|
924
924
|
/**
|
|
@@ -932,7 +932,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
932
932
|
async setAppointmentFulfillmentData(serviceJobId, appointmentId, body, options) {
|
|
933
933
|
const localVarAxiosArgs = await localVarAxiosParamCreator.setAppointmentFulfillmentData(serviceJobId, appointmentId, body, options);
|
|
934
934
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
935
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
935
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.setAppointmentFulfillmentData']?.[localVarOperationServerIndex]?.url;
|
|
936
936
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
937
937
|
},
|
|
938
938
|
/**
|
|
@@ -946,7 +946,7 @@ const ServiceApiFp = function (configuration) {
|
|
|
946
946
|
async updateReservation(reservationId, marketplaceIds, body, options) {
|
|
947
947
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateReservation(reservationId, marketplaceIds, body, options);
|
|
948
948
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
949
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
949
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.updateReservation']?.[localVarOperationServerIndex]?.url;
|
|
950
950
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
951
951
|
},
|
|
952
952
|
/**
|
|
@@ -960,22 +960,22 @@ const ServiceApiFp = function (configuration) {
|
|
|
960
960
|
async updateSchedule(resourceId, marketplaceIds, body, options) {
|
|
961
961
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSchedule(resourceId, marketplaceIds, body, options);
|
|
962
962
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
963
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
963
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.updateSchedule']?.[localVarOperationServerIndex]?.url;
|
|
964
964
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
965
965
|
},
|
|
966
966
|
};
|
|
967
967
|
};
|
|
968
|
-
exports.
|
|
968
|
+
exports.ServicesApiFp = ServicesApiFp;
|
|
969
969
|
/**
|
|
970
|
-
*
|
|
970
|
+
* ServicesApi - factory interface
|
|
971
971
|
* @export
|
|
972
972
|
*/
|
|
973
|
-
const
|
|
974
|
-
const localVarFp = (0, exports.
|
|
973
|
+
const ServicesApiFactory = function (configuration, basePath, axios) {
|
|
974
|
+
const localVarFp = (0, exports.ServicesApiFp)(configuration);
|
|
975
975
|
return {
|
|
976
976
|
/**
|
|
977
977
|
* 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).
|
|
978
|
-
* @param {
|
|
978
|
+
* @param {ServicesApiAddAppointmentForServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
979
979
|
* @param {*} [options] Override http request option.
|
|
980
980
|
* @throws {RequiredError}
|
|
981
981
|
*/
|
|
@@ -984,7 +984,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
984
984
|
},
|
|
985
985
|
/**
|
|
986
986
|
* 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).
|
|
987
|
-
* @param {
|
|
987
|
+
* @param {ServicesApiAssignAppointmentResourcesRequest} requestParameters Request parameters.
|
|
988
988
|
* @param {*} [options] Override http request option.
|
|
989
989
|
* @throws {RequiredError}
|
|
990
990
|
*/
|
|
@@ -993,7 +993,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
993
993
|
},
|
|
994
994
|
/**
|
|
995
995
|
* 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).
|
|
996
|
-
* @param {
|
|
996
|
+
* @param {ServicesApiCancelReservationRequest} requestParameters Request parameters.
|
|
997
997
|
* @param {*} [options] Override http request option.
|
|
998
998
|
* @throws {RequiredError}
|
|
999
999
|
*/
|
|
@@ -1002,7 +1002,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1002
1002
|
},
|
|
1003
1003
|
/**
|
|
1004
1004
|
* 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).
|
|
1005
|
-
* @param {
|
|
1005
|
+
* @param {ServicesApiCancelServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1006
1006
|
* @param {*} [options] Override http request option.
|
|
1007
1007
|
* @throws {RequiredError}
|
|
1008
1008
|
*/
|
|
@@ -1011,7 +1011,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1011
1011
|
},
|
|
1012
1012
|
/**
|
|
1013
1013
|
* 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).
|
|
1014
|
-
* @param {
|
|
1014
|
+
* @param {ServicesApiCompleteServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1015
1015
|
* @param {*} [options] Override http request option.
|
|
1016
1016
|
* @throws {RequiredError}
|
|
1017
1017
|
*/
|
|
@@ -1020,7 +1020,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1020
1020
|
},
|
|
1021
1021
|
/**
|
|
1022
1022
|
* 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).
|
|
1023
|
-
* @param {
|
|
1023
|
+
* @param {ServicesApiCreateReservationRequest} requestParameters Request parameters.
|
|
1024
1024
|
* @param {*} [options] Override http request option.
|
|
1025
1025
|
* @throws {RequiredError}
|
|
1026
1026
|
*/
|
|
@@ -1029,7 +1029,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1029
1029
|
},
|
|
1030
1030
|
/**
|
|
1031
1031
|
* 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).
|
|
1032
|
-
* @param {
|
|
1032
|
+
* @param {ServicesApiCreateServiceDocumentUploadDestinationRequest} requestParameters Request parameters.
|
|
1033
1033
|
* @param {*} [options] Override http request option.
|
|
1034
1034
|
* @throws {RequiredError}
|
|
1035
1035
|
*/
|
|
@@ -1038,7 +1038,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1038
1038
|
},
|
|
1039
1039
|
/**
|
|
1040
1040
|
* 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).
|
|
1041
|
-
* @param {
|
|
1041
|
+
* @param {ServicesApiGetAppointmentSlotsRequest} requestParameters Request parameters.
|
|
1042
1042
|
* @param {*} [options] Override http request option.
|
|
1043
1043
|
* @throws {RequiredError}
|
|
1044
1044
|
*/
|
|
@@ -1047,7 +1047,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1047
1047
|
},
|
|
1048
1048
|
/**
|
|
1049
1049
|
* 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).
|
|
1050
|
-
* @param {
|
|
1050
|
+
* @param {ServicesApiGetAppointmmentSlotsByJobIdRequest} requestParameters Request parameters.
|
|
1051
1051
|
* @param {*} [options] Override http request option.
|
|
1052
1052
|
* @throws {RequiredError}
|
|
1053
1053
|
*/
|
|
@@ -1056,7 +1056,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1056
1056
|
},
|
|
1057
1057
|
/**
|
|
1058
1058
|
* 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).
|
|
1059
|
-
* @param {
|
|
1059
|
+
* @param {ServicesApiGetFixedSlotCapacityRequest} requestParameters Request parameters.
|
|
1060
1060
|
* @param {*} [options] Override http request option.
|
|
1061
1061
|
* @throws {RequiredError}
|
|
1062
1062
|
*/
|
|
@@ -1065,7 +1065,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1065
1065
|
},
|
|
1066
1066
|
/**
|
|
1067
1067
|
* 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).
|
|
1068
|
-
* @param {
|
|
1068
|
+
* @param {ServicesApiGetRangeSlotCapacityRequest} requestParameters Request parameters.
|
|
1069
1069
|
* @param {*} [options] Override http request option.
|
|
1070
1070
|
* @throws {RequiredError}
|
|
1071
1071
|
*/
|
|
@@ -1074,7 +1074,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1074
1074
|
},
|
|
1075
1075
|
/**
|
|
1076
1076
|
* 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).
|
|
1077
|
-
* @param {
|
|
1077
|
+
* @param {ServicesApiGetServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1078
1078
|
* @param {*} [options] Override http request option.
|
|
1079
1079
|
* @throws {RequiredError}
|
|
1080
1080
|
*/
|
|
@@ -1083,7 +1083,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1083
1083
|
},
|
|
1084
1084
|
/**
|
|
1085
1085
|
* 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).
|
|
1086
|
-
* @param {
|
|
1086
|
+
* @param {ServicesApiGetServiceJobsRequest} requestParameters Request parameters.
|
|
1087
1087
|
* @param {*} [options] Override http request option.
|
|
1088
1088
|
* @throws {RequiredError}
|
|
1089
1089
|
*/
|
|
@@ -1092,7 +1092,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1092
1092
|
},
|
|
1093
1093
|
/**
|
|
1094
1094
|
* 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).
|
|
1095
|
-
* @param {
|
|
1095
|
+
* @param {ServicesApiRescheduleAppointmentForServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1096
1096
|
* @param {*} [options] Override http request option.
|
|
1097
1097
|
* @throws {RequiredError}
|
|
1098
1098
|
*/
|
|
@@ -1101,7 +1101,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1101
1101
|
},
|
|
1102
1102
|
/**
|
|
1103
1103
|
* 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).
|
|
1104
|
-
* @param {
|
|
1104
|
+
* @param {ServicesApiSetAppointmentFulfillmentDataRequest} requestParameters Request parameters.
|
|
1105
1105
|
* @param {*} [options] Override http request option.
|
|
1106
1106
|
* @throws {RequiredError}
|
|
1107
1107
|
*/
|
|
@@ -1110,7 +1110,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1110
1110
|
},
|
|
1111
1111
|
/**
|
|
1112
1112
|
* 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).
|
|
1113
|
-
* @param {
|
|
1113
|
+
* @param {ServicesApiUpdateReservationRequest} requestParameters Request parameters.
|
|
1114
1114
|
* @param {*} [options] Override http request option.
|
|
1115
1115
|
* @throws {RequiredError}
|
|
1116
1116
|
*/
|
|
@@ -1119,7 +1119,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1119
1119
|
},
|
|
1120
1120
|
/**
|
|
1121
1121
|
* 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).
|
|
1122
|
-
* @param {
|
|
1122
|
+
* @param {ServicesApiUpdateScheduleRequest} requestParameters Request parameters.
|
|
1123
1123
|
* @param {*} [options] Override http request option.
|
|
1124
1124
|
* @throws {RequiredError}
|
|
1125
1125
|
*/
|
|
@@ -1128,186 +1128,186 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
1128
1128
|
},
|
|
1129
1129
|
};
|
|
1130
1130
|
};
|
|
1131
|
-
exports.
|
|
1131
|
+
exports.ServicesApiFactory = ServicesApiFactory;
|
|
1132
1132
|
/**
|
|
1133
|
-
*
|
|
1133
|
+
* ServicesApi - object-oriented interface
|
|
1134
1134
|
* @export
|
|
1135
|
-
* @class
|
|
1135
|
+
* @class ServicesApi
|
|
1136
1136
|
* @extends {BaseAPI}
|
|
1137
1137
|
*/
|
|
1138
|
-
class
|
|
1138
|
+
class ServicesApi extends base_1.BaseAPI {
|
|
1139
1139
|
/**
|
|
1140
1140
|
* 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).
|
|
1141
|
-
* @param {
|
|
1141
|
+
* @param {ServicesApiAddAppointmentForServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1142
1142
|
* @param {*} [options] Override http request option.
|
|
1143
1143
|
* @throws {RequiredError}
|
|
1144
|
-
* @memberof
|
|
1144
|
+
* @memberof ServicesApi
|
|
1145
1145
|
*/
|
|
1146
1146
|
addAppointmentForServiceJobByServiceJobId(requestParameters, options) {
|
|
1147
|
-
return (0, exports.
|
|
1147
|
+
return (0, exports.ServicesApiFp)(this.configuration).addAppointmentForServiceJobByServiceJobId(requestParameters.serviceJobId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1148
1148
|
}
|
|
1149
1149
|
/**
|
|
1150
1150
|
* 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).
|
|
1151
|
-
* @param {
|
|
1151
|
+
* @param {ServicesApiAssignAppointmentResourcesRequest} requestParameters Request parameters.
|
|
1152
1152
|
* @param {*} [options] Override http request option.
|
|
1153
1153
|
* @throws {RequiredError}
|
|
1154
|
-
* @memberof
|
|
1154
|
+
* @memberof ServicesApi
|
|
1155
1155
|
*/
|
|
1156
1156
|
assignAppointmentResources(requestParameters, options) {
|
|
1157
|
-
return (0, exports.
|
|
1157
|
+
return (0, exports.ServicesApiFp)(this.configuration).assignAppointmentResources(requestParameters.serviceJobId, requestParameters.appointmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1158
1158
|
}
|
|
1159
1159
|
/**
|
|
1160
1160
|
* 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).
|
|
1161
|
-
* @param {
|
|
1161
|
+
* @param {ServicesApiCancelReservationRequest} requestParameters Request parameters.
|
|
1162
1162
|
* @param {*} [options] Override http request option.
|
|
1163
1163
|
* @throws {RequiredError}
|
|
1164
|
-
* @memberof
|
|
1164
|
+
* @memberof ServicesApi
|
|
1165
1165
|
*/
|
|
1166
1166
|
cancelReservation(requestParameters, options) {
|
|
1167
|
-
return (0, exports.
|
|
1167
|
+
return (0, exports.ServicesApiFp)(this.configuration).cancelReservation(requestParameters.reservationId, requestParameters.marketplaceIds, options).then((request) => request(this.axios, this.basePath));
|
|
1168
1168
|
}
|
|
1169
1169
|
/**
|
|
1170
1170
|
* 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).
|
|
1171
|
-
* @param {
|
|
1171
|
+
* @param {ServicesApiCancelServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1172
1172
|
* @param {*} [options] Override http request option.
|
|
1173
1173
|
* @throws {RequiredError}
|
|
1174
|
-
* @memberof
|
|
1174
|
+
* @memberof ServicesApi
|
|
1175
1175
|
*/
|
|
1176
1176
|
cancelServiceJobByServiceJobId(requestParameters, options) {
|
|
1177
|
-
return (0, exports.
|
|
1177
|
+
return (0, exports.ServicesApiFp)(this.configuration).cancelServiceJobByServiceJobId(requestParameters.serviceJobId, requestParameters.cancellationReasonCode, options).then((request) => request(this.axios, this.basePath));
|
|
1178
1178
|
}
|
|
1179
1179
|
/**
|
|
1180
1180
|
* 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).
|
|
1181
|
-
* @param {
|
|
1181
|
+
* @param {ServicesApiCompleteServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1182
1182
|
* @param {*} [options] Override http request option.
|
|
1183
1183
|
* @throws {RequiredError}
|
|
1184
|
-
* @memberof
|
|
1184
|
+
* @memberof ServicesApi
|
|
1185
1185
|
*/
|
|
1186
1186
|
completeServiceJobByServiceJobId(requestParameters, options) {
|
|
1187
|
-
return (0, exports.
|
|
1187
|
+
return (0, exports.ServicesApiFp)(this.configuration).completeServiceJobByServiceJobId(requestParameters.serviceJobId, options).then((request) => request(this.axios, this.basePath));
|
|
1188
1188
|
}
|
|
1189
1189
|
/**
|
|
1190
1190
|
* 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).
|
|
1191
|
-
* @param {
|
|
1191
|
+
* @param {ServicesApiCreateReservationRequest} requestParameters Request parameters.
|
|
1192
1192
|
* @param {*} [options] Override http request option.
|
|
1193
1193
|
* @throws {RequiredError}
|
|
1194
|
-
* @memberof
|
|
1194
|
+
* @memberof ServicesApi
|
|
1195
1195
|
*/
|
|
1196
1196
|
createReservation(requestParameters, options) {
|
|
1197
|
-
return (0, exports.
|
|
1197
|
+
return (0, exports.ServicesApiFp)(this.configuration).createReservation(requestParameters.marketplaceIds, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1198
1198
|
}
|
|
1199
1199
|
/**
|
|
1200
1200
|
* 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).
|
|
1201
|
-
* @param {
|
|
1201
|
+
* @param {ServicesApiCreateServiceDocumentUploadDestinationRequest} requestParameters Request parameters.
|
|
1202
1202
|
* @param {*} [options] Override http request option.
|
|
1203
1203
|
* @throws {RequiredError}
|
|
1204
|
-
* @memberof
|
|
1204
|
+
* @memberof ServicesApi
|
|
1205
1205
|
*/
|
|
1206
1206
|
createServiceDocumentUploadDestination(requestParameters, options) {
|
|
1207
|
-
return (0, exports.
|
|
1207
|
+
return (0, exports.ServicesApiFp)(this.configuration).createServiceDocumentUploadDestination(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1208
1208
|
}
|
|
1209
1209
|
/**
|
|
1210
1210
|
* 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).
|
|
1211
|
-
* @param {
|
|
1211
|
+
* @param {ServicesApiGetAppointmentSlotsRequest} requestParameters Request parameters.
|
|
1212
1212
|
* @param {*} [options] Override http request option.
|
|
1213
1213
|
* @throws {RequiredError}
|
|
1214
|
-
* @memberof
|
|
1214
|
+
* @memberof ServicesApi
|
|
1215
1215
|
*/
|
|
1216
1216
|
getAppointmentSlots(requestParameters, options) {
|
|
1217
|
-
return (0, exports.
|
|
1217
|
+
return (0, exports.ServicesApiFp)(this.configuration).getAppointmentSlots(requestParameters.asin, requestParameters.storeId, requestParameters.marketplaceIds, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
|
|
1218
1218
|
}
|
|
1219
1219
|
/**
|
|
1220
1220
|
* 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).
|
|
1221
|
-
* @param {
|
|
1221
|
+
* @param {ServicesApiGetAppointmmentSlotsByJobIdRequest} requestParameters Request parameters.
|
|
1222
1222
|
* @param {*} [options] Override http request option.
|
|
1223
1223
|
* @throws {RequiredError}
|
|
1224
|
-
* @memberof
|
|
1224
|
+
* @memberof ServicesApi
|
|
1225
1225
|
*/
|
|
1226
1226
|
getAppointmmentSlotsByJobId(requestParameters, options) {
|
|
1227
|
-
return (0, exports.
|
|
1227
|
+
return (0, exports.ServicesApiFp)(this.configuration).getAppointmmentSlotsByJobId(requestParameters.serviceJobId, requestParameters.marketplaceIds, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
|
|
1228
1228
|
}
|
|
1229
1229
|
/**
|
|
1230
1230
|
* 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).
|
|
1231
|
-
* @param {
|
|
1231
|
+
* @param {ServicesApiGetFixedSlotCapacityRequest} requestParameters Request parameters.
|
|
1232
1232
|
* @param {*} [options] Override http request option.
|
|
1233
1233
|
* @throws {RequiredError}
|
|
1234
|
-
* @memberof
|
|
1234
|
+
* @memberof ServicesApi
|
|
1235
1235
|
*/
|
|
1236
1236
|
getFixedSlotCapacity(requestParameters, options) {
|
|
1237
|
-
return (0, exports.
|
|
1237
|
+
return (0, exports.ServicesApiFp)(this.configuration).getFixedSlotCapacity(requestParameters.resourceId, requestParameters.marketplaceIds, requestParameters.body, requestParameters.nextPageToken, options).then((request) => request(this.axios, this.basePath));
|
|
1238
1238
|
}
|
|
1239
1239
|
/**
|
|
1240
1240
|
* 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).
|
|
1241
|
-
* @param {
|
|
1241
|
+
* @param {ServicesApiGetRangeSlotCapacityRequest} requestParameters Request parameters.
|
|
1242
1242
|
* @param {*} [options] Override http request option.
|
|
1243
1243
|
* @throws {RequiredError}
|
|
1244
|
-
* @memberof
|
|
1244
|
+
* @memberof ServicesApi
|
|
1245
1245
|
*/
|
|
1246
1246
|
getRangeSlotCapacity(requestParameters, options) {
|
|
1247
|
-
return (0, exports.
|
|
1247
|
+
return (0, exports.ServicesApiFp)(this.configuration).getRangeSlotCapacity(requestParameters.resourceId, requestParameters.marketplaceIds, requestParameters.body, requestParameters.nextPageToken, options).then((request) => request(this.axios, this.basePath));
|
|
1248
1248
|
}
|
|
1249
1249
|
/**
|
|
1250
1250
|
* 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).
|
|
1251
|
-
* @param {
|
|
1251
|
+
* @param {ServicesApiGetServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1252
1252
|
* @param {*} [options] Override http request option.
|
|
1253
1253
|
* @throws {RequiredError}
|
|
1254
|
-
* @memberof
|
|
1254
|
+
* @memberof ServicesApi
|
|
1255
1255
|
*/
|
|
1256
1256
|
getServiceJobByServiceJobId(requestParameters, options) {
|
|
1257
|
-
return (0, exports.
|
|
1257
|
+
return (0, exports.ServicesApiFp)(this.configuration).getServiceJobByServiceJobId(requestParameters.serviceJobId, options).then((request) => request(this.axios, this.basePath));
|
|
1258
1258
|
}
|
|
1259
1259
|
/**
|
|
1260
1260
|
* 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).
|
|
1261
|
-
* @param {
|
|
1261
|
+
* @param {ServicesApiGetServiceJobsRequest} requestParameters Request parameters.
|
|
1262
1262
|
* @param {*} [options] Override http request option.
|
|
1263
1263
|
* @throws {RequiredError}
|
|
1264
|
-
* @memberof
|
|
1264
|
+
* @memberof ServicesApi
|
|
1265
1265
|
*/
|
|
1266
1266
|
getServiceJobs(requestParameters, options) {
|
|
1267
|
-
return (0, exports.
|
|
1267
|
+
return (0, exports.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));
|
|
1268
1268
|
}
|
|
1269
1269
|
/**
|
|
1270
1270
|
* 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).
|
|
1271
|
-
* @param {
|
|
1271
|
+
* @param {ServicesApiRescheduleAppointmentForServiceJobByServiceJobIdRequest} requestParameters Request parameters.
|
|
1272
1272
|
* @param {*} [options] Override http request option.
|
|
1273
1273
|
* @throws {RequiredError}
|
|
1274
|
-
* @memberof
|
|
1274
|
+
* @memberof ServicesApi
|
|
1275
1275
|
*/
|
|
1276
1276
|
rescheduleAppointmentForServiceJobByServiceJobId(requestParameters, options) {
|
|
1277
|
-
return (0, exports.
|
|
1277
|
+
return (0, exports.ServicesApiFp)(this.configuration).rescheduleAppointmentForServiceJobByServiceJobId(requestParameters.serviceJobId, requestParameters.appointmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1278
1278
|
}
|
|
1279
1279
|
/**
|
|
1280
1280
|
* 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).
|
|
1281
|
-
* @param {
|
|
1281
|
+
* @param {ServicesApiSetAppointmentFulfillmentDataRequest} requestParameters Request parameters.
|
|
1282
1282
|
* @param {*} [options] Override http request option.
|
|
1283
1283
|
* @throws {RequiredError}
|
|
1284
|
-
* @memberof
|
|
1284
|
+
* @memberof ServicesApi
|
|
1285
1285
|
*/
|
|
1286
1286
|
setAppointmentFulfillmentData(requestParameters, options) {
|
|
1287
|
-
return (0, exports.
|
|
1287
|
+
return (0, exports.ServicesApiFp)(this.configuration).setAppointmentFulfillmentData(requestParameters.serviceJobId, requestParameters.appointmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1288
1288
|
}
|
|
1289
1289
|
/**
|
|
1290
1290
|
* 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).
|
|
1291
|
-
* @param {
|
|
1291
|
+
* @param {ServicesApiUpdateReservationRequest} requestParameters Request parameters.
|
|
1292
1292
|
* @param {*} [options] Override http request option.
|
|
1293
1293
|
* @throws {RequiredError}
|
|
1294
|
-
* @memberof
|
|
1294
|
+
* @memberof ServicesApi
|
|
1295
1295
|
*/
|
|
1296
1296
|
updateReservation(requestParameters, options) {
|
|
1297
|
-
return (0, exports.
|
|
1297
|
+
return (0, exports.ServicesApiFp)(this.configuration).updateReservation(requestParameters.reservationId, requestParameters.marketplaceIds, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1298
1298
|
}
|
|
1299
1299
|
/**
|
|
1300
1300
|
* 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).
|
|
1301
|
-
* @param {
|
|
1301
|
+
* @param {ServicesApiUpdateScheduleRequest} requestParameters Request parameters.
|
|
1302
1302
|
* @param {*} [options] Override http request option.
|
|
1303
1303
|
* @throws {RequiredError}
|
|
1304
|
-
* @memberof
|
|
1304
|
+
* @memberof ServicesApi
|
|
1305
1305
|
*/
|
|
1306
1306
|
updateSchedule(requestParameters, options) {
|
|
1307
|
-
return (0, exports.
|
|
1307
|
+
return (0, exports.ServicesApiFp)(this.configuration).updateSchedule(requestParameters.resourceId, requestParameters.marketplaceIds, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
|
-
exports.
|
|
1310
|
+
exports.ServicesApi = ServicesApi;
|
|
1311
1311
|
/**
|
|
1312
1312
|
* @export
|
|
1313
1313
|
*/
|