@sp-api-sdk/services-api-v1 1.8.9 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/src/api-model/api/service-api.js +860 -49
  3. package/dist/cjs/src/api-model/api.js +1 -1
  4. package/dist/cjs/src/api-model/base.js +1 -1
  5. package/dist/cjs/src/api-model/common.js +1 -1
  6. package/dist/cjs/src/api-model/configuration.js +1 -1
  7. package/dist/cjs/src/api-model/index.js +1 -1
  8. package/dist/cjs/src/api-model/models/add-appointment-request.js +1 -1
  9. package/dist/cjs/src/api-model/models/address.js +1 -1
  10. package/dist/cjs/src/api-model/models/appointment-resource.js +15 -0
  11. package/dist/cjs/src/api-model/models/appointment-slot-report.js +20 -0
  12. package/dist/cjs/src/api-model/models/appointment-slot.js +15 -0
  13. package/dist/cjs/src/api-model/models/appointment-time-input.js +1 -1
  14. package/dist/cjs/src/api-model/models/appointment-time.js +1 -1
  15. package/dist/cjs/src/api-model/models/appointment.js +1 -1
  16. package/dist/cjs/src/api-model/models/assign-appointment-resources-request.js +15 -0
  17. package/dist/cjs/src/api-model/models/assign-appointment-resources-response-payload.js +15 -0
  18. package/dist/cjs/src/api-model/models/assign-appointment-resources-response.js +15 -0
  19. package/dist/cjs/src/api-model/models/associated-item.js +1 -1
  20. package/dist/cjs/src/api-model/models/availability-record.js +15 -0
  21. package/dist/cjs/src/api-model/models/buyer.js +1 -1
  22. package/dist/cjs/src/api-model/models/cancel-reservation-response.js +15 -0
  23. package/dist/cjs/src/api-model/models/cancel-service-job-by-service-job-id-response.js +1 -1
  24. package/dist/cjs/src/api-model/models/capacity-type.js +27 -0
  25. package/dist/cjs/src/api-model/models/complete-service-job-by-service-job-id-response.js +1 -1
  26. package/dist/cjs/src/api-model/models/create-reservation-record.js +15 -0
  27. package/dist/cjs/src/api-model/models/create-reservation-request.js +15 -0
  28. package/dist/cjs/src/api-model/models/create-reservation-response.js +15 -0
  29. package/dist/cjs/src/api-model/models/create-service-document-upload-destination.js +15 -0
  30. package/dist/cjs/src/api-model/models/day-of-week.js +30 -0
  31. package/dist/cjs/src/api-model/models/encryption-details.js +19 -0
  32. package/dist/cjs/src/api-model/models/fixed-slot-capacity-errors.js +15 -0
  33. package/dist/cjs/src/api-model/models/fixed-slot-capacity-query.js +15 -0
  34. package/dist/cjs/src/api-model/models/fixed-slot-capacity.js +15 -0
  35. package/dist/cjs/src/api-model/models/fixed-slot.js +15 -0
  36. package/dist/cjs/src/api-model/models/fulfillment-document.js +15 -0
  37. package/dist/cjs/src/api-model/models/fulfillment-time.js +15 -0
  38. package/dist/cjs/src/api-model/models/get-appointment-slots-response.js +15 -0
  39. package/dist/cjs/src/api-model/models/get-service-job-by-service-job-id-response.js +1 -1
  40. package/dist/cjs/src/api-model/models/get-service-jobs-response.js +1 -1
  41. package/dist/cjs/src/api-model/models/index.js +38 -0
  42. package/dist/cjs/src/api-model/models/item-delivery-promise.js +1 -1
  43. package/dist/cjs/src/api-model/models/item-delivery.js +1 -1
  44. package/dist/cjs/src/api-model/models/job-listing.js +1 -1
  45. package/dist/cjs/src/api-model/models/model-error.js +1 -1
  46. package/dist/cjs/src/api-model/models/poa.js +1 -1
  47. package/dist/cjs/src/api-model/models/range-capacity.js +15 -0
  48. package/dist/cjs/src/api-model/models/range-slot-capacity-errors.js +15 -0
  49. package/dist/cjs/src/api-model/models/range-slot-capacity-query.js +15 -0
  50. package/dist/cjs/src/api-model/models/range-slot-capacity.js +15 -0
  51. package/dist/cjs/src/api-model/models/range-slot.js +15 -0
  52. package/dist/cjs/src/api-model/models/recurrence.js +15 -0
  53. package/dist/cjs/src/api-model/models/reschedule-appointment-request.js +1 -1
  54. package/dist/cjs/src/api-model/models/reservation.js +23 -0
  55. package/dist/cjs/src/api-model/models/scope-of-work.js +1 -1
  56. package/dist/cjs/src/api-model/models/seller.js +1 -1
  57. package/dist/cjs/src/api-model/models/service-document-upload-destination.js +15 -0
  58. package/dist/cjs/src/api-model/models/service-job-provider.js +1 -1
  59. package/dist/cjs/src/api-model/models/service-job.js +1 -1
  60. package/dist/cjs/src/api-model/models/service-location.js +1 -1
  61. package/dist/cjs/src/api-model/models/service-upload-document.js +24 -0
  62. package/dist/cjs/src/api-model/models/set-appointment-fulfillment-data-request.js +15 -0
  63. package/dist/cjs/src/api-model/models/set-appointment-response.js +1 -1
  64. package/dist/cjs/src/api-model/models/technician.js +1 -1
  65. package/dist/cjs/src/api-model/models/update-reservation-record.js +15 -0
  66. package/dist/cjs/src/api-model/models/update-reservation-request.js +15 -0
  67. package/dist/cjs/src/api-model/models/update-reservation-response.js +15 -0
  68. package/dist/cjs/src/api-model/models/update-schedule-record.js +15 -0
  69. package/dist/cjs/src/api-model/models/update-schedule-request.js +15 -0
  70. package/dist/cjs/src/api-model/models/update-schedule-response.js +15 -0
  71. package/dist/cjs/src/api-model/models/warning.js +1 -1
  72. package/dist/cjs/src/client.js +77 -0
  73. package/dist/es/src/api-model/api/service-api.js +860 -49
  74. package/dist/es/src/api-model/api.js +1 -1
  75. package/dist/es/src/api-model/base.js +1 -1
  76. package/dist/es/src/api-model/common.js +1 -1
  77. package/dist/es/src/api-model/configuration.js +1 -1
  78. package/dist/es/src/api-model/index.js +1 -1
  79. package/dist/es/src/api-model/models/add-appointment-request.js +1 -1
  80. package/dist/es/src/api-model/models/address.js +1 -1
  81. package/dist/es/src/api-model/models/appointment-resource.js +14 -0
  82. package/dist/es/src/api-model/models/appointment-slot-report.js +17 -0
  83. package/dist/es/src/api-model/models/appointment-slot.js +14 -0
  84. package/dist/es/src/api-model/models/appointment-time-input.js +1 -1
  85. package/dist/es/src/api-model/models/appointment-time.js +1 -1
  86. package/dist/es/src/api-model/models/appointment.js +1 -1
  87. package/dist/es/src/api-model/models/assign-appointment-resources-request.js +14 -0
  88. package/dist/es/src/api-model/models/assign-appointment-resources-response-payload.js +14 -0
  89. package/dist/es/src/api-model/models/assign-appointment-resources-response.js +14 -0
  90. package/dist/es/src/api-model/models/associated-item.js +1 -1
  91. package/dist/es/src/api-model/models/availability-record.js +14 -0
  92. package/dist/es/src/api-model/models/buyer.js +1 -1
  93. package/dist/es/src/api-model/models/cancel-reservation-response.js +14 -0
  94. package/dist/es/src/api-model/models/cancel-service-job-by-service-job-id-response.js +1 -1
  95. package/dist/es/src/api-model/models/capacity-type.js +24 -0
  96. package/dist/es/src/api-model/models/complete-service-job-by-service-job-id-response.js +1 -1
  97. package/dist/es/src/api-model/models/create-reservation-record.js +14 -0
  98. package/dist/es/src/api-model/models/create-reservation-request.js +14 -0
  99. package/dist/es/src/api-model/models/create-reservation-response.js +14 -0
  100. package/dist/es/src/api-model/models/create-service-document-upload-destination.js +14 -0
  101. package/dist/es/src/api-model/models/day-of-week.js +27 -0
  102. package/dist/es/src/api-model/models/encryption-details.js +16 -0
  103. package/dist/es/src/api-model/models/fixed-slot-capacity-errors.js +14 -0
  104. package/dist/es/src/api-model/models/fixed-slot-capacity-query.js +14 -0
  105. package/dist/es/src/api-model/models/fixed-slot-capacity.js +14 -0
  106. package/dist/es/src/api-model/models/fixed-slot.js +14 -0
  107. package/dist/es/src/api-model/models/fulfillment-document.js +14 -0
  108. package/dist/es/src/api-model/models/fulfillment-time.js +14 -0
  109. package/dist/es/src/api-model/models/get-appointment-slots-response.js +14 -0
  110. package/dist/es/src/api-model/models/get-service-job-by-service-job-id-response.js +1 -1
  111. package/dist/es/src/api-model/models/get-service-jobs-response.js +1 -1
  112. package/dist/es/src/api-model/models/index.js +38 -0
  113. package/dist/es/src/api-model/models/item-delivery-promise.js +1 -1
  114. package/dist/es/src/api-model/models/item-delivery.js +1 -1
  115. package/dist/es/src/api-model/models/job-listing.js +1 -1
  116. package/dist/es/src/api-model/models/model-error.js +1 -1
  117. package/dist/es/src/api-model/models/poa.js +1 -1
  118. package/dist/es/src/api-model/models/range-capacity.js +14 -0
  119. package/dist/es/src/api-model/models/range-slot-capacity-errors.js +14 -0
  120. package/dist/es/src/api-model/models/range-slot-capacity-query.js +14 -0
  121. package/dist/es/src/api-model/models/range-slot-capacity.js +14 -0
  122. package/dist/es/src/api-model/models/range-slot.js +14 -0
  123. package/dist/es/src/api-model/models/recurrence.js +14 -0
  124. package/dist/es/src/api-model/models/reschedule-appointment-request.js +1 -1
  125. package/dist/es/src/api-model/models/reservation.js +20 -0
  126. package/dist/es/src/api-model/models/scope-of-work.js +1 -1
  127. package/dist/es/src/api-model/models/seller.js +1 -1
  128. package/dist/es/src/api-model/models/service-document-upload-destination.js +14 -0
  129. package/dist/es/src/api-model/models/service-job-provider.js +1 -1
  130. package/dist/es/src/api-model/models/service-job.js +1 -1
  131. package/dist/es/src/api-model/models/service-location.js +1 -1
  132. package/dist/es/src/api-model/models/service-upload-document.js +21 -0
  133. package/dist/es/src/api-model/models/set-appointment-fulfillment-data-request.js +14 -0
  134. package/dist/es/src/api-model/models/set-appointment-response.js +1 -1
  135. package/dist/es/src/api-model/models/technician.js +1 -1
  136. package/dist/es/src/api-model/models/update-reservation-record.js +14 -0
  137. package/dist/es/src/api-model/models/update-reservation-request.js +14 -0
  138. package/dist/es/src/api-model/models/update-reservation-response.js +14 -0
  139. package/dist/es/src/api-model/models/update-schedule-record.js +14 -0
  140. package/dist/es/src/api-model/models/update-schedule-request.js +14 -0
  141. package/dist/es/src/api-model/models/update-schedule-response.js +14 -0
  142. package/dist/es/src/api-model/models/warning.js +1 -1
  143. package/dist/es/src/client.js +77 -0
  144. package/dist/types/src/api-model/api/service-api.d.ts +765 -52
  145. package/dist/types/src/api-model/api.d.ts +1 -1
  146. package/dist/types/src/api-model/base.d.ts +1 -1
  147. package/dist/types/src/api-model/common.d.ts +1 -1
  148. package/dist/types/src/api-model/configuration.d.ts +1 -1
  149. package/dist/types/src/api-model/index.d.ts +1 -1
  150. package/dist/types/src/api-model/models/add-appointment-request.d.ts +1 -1
  151. package/dist/types/src/api-model/models/address.d.ts +1 -1
  152. package/dist/types/src/api-model/models/appointment-resource.d.ts +24 -0
  153. package/dist/types/src/api-model/models/appointment-slot-report.d.ts +48 -0
  154. package/dist/types/src/api-model/models/appointment-slot.d.ts +36 -0
  155. package/dist/types/src/api-model/models/appointment-time-input.d.ts +1 -1
  156. package/dist/types/src/api-model/models/appointment-time.d.ts +2 -2
  157. package/dist/types/src/api-model/models/appointment.d.ts +1 -1
  158. package/dist/types/src/api-model/models/assign-appointment-resources-request.d.ts +25 -0
  159. package/dist/types/src/api-model/models/assign-appointment-resources-response-payload.d.ts +25 -0
  160. package/dist/types/src/api-model/models/assign-appointment-resources-response.d.ts +31 -0
  161. package/dist/types/src/api-model/models/associated-item.d.ts +1 -1
  162. package/dist/types/src/api-model/models/availability-record.d.ts +43 -0
  163. package/dist/types/src/api-model/models/buyer.d.ts +1 -1
  164. package/dist/types/src/api-model/models/cancel-reservation-response.d.ts +24 -0
  165. package/dist/types/src/api-model/models/cancel-service-job-by-service-job-id-response.d.ts +2 -2
  166. package/dist/types/src/api-model/models/capacity-type.d.ts +23 -0
  167. package/dist/types/src/api-model/models/complete-service-job-by-service-job-id-response.d.ts +2 -2
  168. package/dist/types/src/api-model/models/create-reservation-record.d.ts +38 -0
  169. package/dist/types/src/api-model/models/create-reservation-request.d.ts +31 -0
  170. package/dist/types/src/api-model/models/create-reservation-response.d.ts +31 -0
  171. package/dist/types/src/api-model/models/create-service-document-upload-destination.d.ts +31 -0
  172. package/dist/types/src/api-model/models/day-of-week.d.ts +26 -0
  173. package/dist/types/src/api-model/models/encryption-details.d.ts +40 -0
  174. package/dist/types/src/api-model/models/fixed-slot-capacity-errors.d.ts +24 -0
  175. package/dist/types/src/api-model/models/fixed-slot-capacity-query.d.ts +43 -0
  176. package/dist/types/src/api-model/models/fixed-slot-capacity.d.ts +43 -0
  177. package/dist/types/src/api-model/models/fixed-slot.d.ts +48 -0
  178. package/dist/types/src/api-model/models/fulfillment-document.d.ts +30 -0
  179. package/dist/types/src/api-model/models/fulfillment-time.d.ts +30 -0
  180. package/dist/types/src/api-model/models/get-appointment-slots-response.d.ts +31 -0
  181. package/dist/types/src/api-model/models/get-service-job-by-service-job-id-response.d.ts +2 -2
  182. package/dist/types/src/api-model/models/get-service-jobs-response.d.ts +2 -2
  183. package/dist/types/src/api-model/models/index.d.ts +38 -0
  184. package/dist/types/src/api-model/models/item-delivery-promise.d.ts +3 -3
  185. package/dist/types/src/api-model/models/item-delivery.d.ts +1 -1
  186. package/dist/types/src/api-model/models/job-listing.d.ts +4 -4
  187. package/dist/types/src/api-model/models/model-error.d.ts +1 -1
  188. package/dist/types/src/api-model/models/poa.d.ts +2 -2
  189. package/dist/types/src/api-model/models/range-capacity.d.ts +32 -0
  190. package/dist/types/src/api-model/models/range-slot-capacity-errors.d.ts +24 -0
  191. package/dist/types/src/api-model/models/range-slot-capacity-query.d.ts +37 -0
  192. package/dist/types/src/api-model/models/range-slot-capacity.d.ts +37 -0
  193. package/dist/types/src/api-model/models/range-slot.d.ts +36 -0
  194. package/dist/types/src/api-model/models/recurrence.d.ts +37 -0
  195. package/dist/types/src/api-model/models/reschedule-appointment-request.d.ts +2 -2
  196. package/dist/types/src/api-model/models/reservation.d.ts +45 -0
  197. package/dist/types/src/api-model/models/scope-of-work.d.ts +1 -1
  198. package/dist/types/src/api-model/models/seller.d.ts +1 -1
  199. package/dist/types/src/api-model/models/service-document-upload-destination.d.ts +43 -0
  200. package/dist/types/src/api-model/models/service-job-provider.d.ts +1 -1
  201. package/dist/types/src/api-model/models/service-job.d.ts +8 -2
  202. package/dist/types/src/api-model/models/service-location.d.ts +1 -1
  203. package/dist/types/src/api-model/models/service-upload-document.d.ts +45 -0
  204. package/dist/types/src/api-model/models/set-appointment-fulfillment-data-request.d.ts +39 -0
  205. package/dist/types/src/api-model/models/set-appointment-response.d.ts +2 -2
  206. package/dist/types/src/api-model/models/technician.d.ts +1 -1
  207. package/dist/types/src/api-model/models/update-reservation-record.d.ts +38 -0
  208. package/dist/types/src/api-model/models/update-reservation-request.d.ts +31 -0
  209. package/dist/types/src/api-model/models/update-reservation-response.d.ts +31 -0
  210. package/dist/types/src/api-model/models/update-schedule-record.d.ts +38 -0
  211. package/dist/types/src/api-model/models/update-schedule-request.d.ts +25 -0
  212. package/dist/types/src/api-model/models/update-schedule-response.d.ts +31 -0
  213. package/dist/types/src/api-model/models/warning.d.ts +2 -2
  214. package/package.json +5 -5
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Services
6
- * With the Services API, you can build applications that help service providers get and modify their service orders.
6
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -28,7 +28,7 @@ const base_1 = require("../base");
28
28
  const ServiceApiAxiosParamCreator = function (configuration) {
29
29
  return {
30
30
  /**
31
- * Adds an appointment to the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
31
+ * 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).
32
32
  * @param {string} serviceJobId An Amazon defined service job identifier.
33
33
  * @param {AddAppointmentRequest} body Add appointment operation input details.
34
34
  * @param {*} [options] Override http request option.
@@ -61,7 +61,78 @@ const ServiceApiAxiosParamCreator = function (configuration) {
61
61
  };
62
62
  },
63
63
  /**
64
- * Cancels the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
64
+ * 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).
65
+ * @param {string} serviceJobId An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API.
66
+ * @param {string} appointmentId An Amazon-defined identifier of active service job appointment.
67
+ * @param {AssignAppointmentResourcesRequest} body
68
+ * @param {*} [options] Override http request option.
69
+ * @throws {RequiredError}
70
+ */
71
+ assignAppointmentResources: async (serviceJobId, appointmentId, body, options = {}) => {
72
+ // verify required parameter 'serviceJobId' is not null or undefined
73
+ (0, common_1.assertParamExists)('assignAppointmentResources', 'serviceJobId', serviceJobId);
74
+ // verify required parameter 'appointmentId' is not null or undefined
75
+ (0, common_1.assertParamExists)('assignAppointmentResources', 'appointmentId', appointmentId);
76
+ // verify required parameter 'body' is not null or undefined
77
+ (0, common_1.assertParamExists)('assignAppointmentResources', 'body', body);
78
+ const localVarPath = `/service/v1/serviceJobs/{serviceJobId}/appointments/{appointmentId}/resources`
79
+ .replace(`{${"serviceJobId"}}`, encodeURIComponent(String(serviceJobId)))
80
+ .replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
81
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
82
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
83
+ let baseOptions;
84
+ if (configuration) {
85
+ baseOptions = configuration.baseOptions;
86
+ }
87
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
88
+ const localVarHeaderParameter = {};
89
+ const localVarQueryParameter = {};
90
+ localVarHeaderParameter['Content-Type'] = 'application/json';
91
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
92
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
93
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
94
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
95
+ return {
96
+ url: (0, common_1.toPathString)(localVarUrlObj),
97
+ options: localVarRequestOptions,
98
+ };
99
+ },
100
+ /**
101
+ * 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).
102
+ * @param {string} reservationId Reservation Identifier
103
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ cancelReservation: async (reservationId, marketplaceIds, options = {}) => {
108
+ // verify required parameter 'reservationId' is not null or undefined
109
+ (0, common_1.assertParamExists)('cancelReservation', 'reservationId', reservationId);
110
+ // verify required parameter 'marketplaceIds' is not null or undefined
111
+ (0, common_1.assertParamExists)('cancelReservation', 'marketplaceIds', marketplaceIds);
112
+ const localVarPath = `/service/v1/reservation/{reservationId}`
113
+ .replace(`{${"reservationId"}}`, encodeURIComponent(String(reservationId)));
114
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
115
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
116
+ let baseOptions;
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ }
120
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
121
+ const localVarHeaderParameter = {};
122
+ const localVarQueryParameter = {};
123
+ if (marketplaceIds) {
124
+ localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(base_1.COLLECTION_FORMATS.csv);
125
+ }
126
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
128
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
129
+ return {
130
+ url: (0, common_1.toPathString)(localVarUrlObj),
131
+ options: localVarRequestOptions,
132
+ };
133
+ },
134
+ /**
135
+ * 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).
65
136
  * @param {string} serviceJobId An Amazon defined service job identifier.
66
137
  * @param {string} cancellationReasonCode A cancel reason code that specifies the reason for cancelling a service job.
67
138
  * @param {*} [options] Override http request option.
@@ -95,7 +166,7 @@ const ServiceApiAxiosParamCreator = function (configuration) {
95
166
  };
96
167
  },
97
168
  /**
98
- * Completes the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
169
+ * 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).
99
170
  * @param {string} serviceJobId An Amazon defined service job identifier.
100
171
  * @param {*} [options] Override http request option.
101
172
  * @throws {RequiredError}
@@ -123,7 +194,249 @@ const ServiceApiAxiosParamCreator = function (configuration) {
123
194
  };
124
195
  },
125
196
  /**
126
- * Gets service job details for the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 20 | 40 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
197
+ * 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).
198
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
199
+ * @param {CreateReservationRequest} body Reservation details
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ createReservation: async (marketplaceIds, body, options = {}) => {
204
+ // verify required parameter 'marketplaceIds' is not null or undefined
205
+ (0, common_1.assertParamExists)('createReservation', 'marketplaceIds', marketplaceIds);
206
+ // verify required parameter 'body' is not null or undefined
207
+ (0, common_1.assertParamExists)('createReservation', 'body', body);
208
+ const localVarPath = `/service/v1/reservation`;
209
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
210
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
211
+ let baseOptions;
212
+ if (configuration) {
213
+ baseOptions = configuration.baseOptions;
214
+ }
215
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
216
+ const localVarHeaderParameter = {};
217
+ const localVarQueryParameter = {};
218
+ if (marketplaceIds) {
219
+ localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(base_1.COLLECTION_FORMATS.csv);
220
+ }
221
+ localVarHeaderParameter['Content-Type'] = 'application/json';
222
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
223
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
224
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
225
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
226
+ return {
227
+ url: (0, common_1.toPathString)(localVarUrlObj),
228
+ options: localVarRequestOptions,
229
+ };
230
+ },
231
+ /**
232
+ * 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).
233
+ * @param {ServiceUploadDocument} body Upload document operation input details.
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ createServiceDocumentUploadDestination: async (body, options = {}) => {
238
+ // verify required parameter 'body' is not null or undefined
239
+ (0, common_1.assertParamExists)('createServiceDocumentUploadDestination', 'body', body);
240
+ const localVarPath = `/service/v1/documents`;
241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
242
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
243
+ let baseOptions;
244
+ if (configuration) {
245
+ baseOptions = configuration.baseOptions;
246
+ }
247
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
248
+ const localVarHeaderParameter = {};
249
+ const localVarQueryParameter = {};
250
+ localVarHeaderParameter['Content-Type'] = 'application/json';
251
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
253
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
254
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
255
+ return {
256
+ url: (0, common_1.toPathString)(localVarUrlObj),
257
+ options: localVarRequestOptions,
258
+ };
259
+ },
260
+ /**
261
+ * 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).
262
+ * @param {string} asin ASIN associated with the service.
263
+ * @param {string} storeId Store identifier defining the region scope to retrive appointment slots.
264
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace for which appointment slots are queried
265
+ * @param {string} [startTime] A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If &#x60;startTime&#x60; is provided, &#x60;endTime&#x60; should also be provided. Default value is as per business configuration.
266
+ * @param {string} [endTime] A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If &#x60;endTime&#x60; is provided, &#x60;startTime&#x60; should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days.
267
+ * @param {*} [options] Override http request option.
268
+ * @throws {RequiredError}
269
+ */
270
+ getAppointmentSlots: async (asin, storeId, marketplaceIds, startTime, endTime, options = {}) => {
271
+ // verify required parameter 'asin' is not null or undefined
272
+ (0, common_1.assertParamExists)('getAppointmentSlots', 'asin', asin);
273
+ // verify required parameter 'storeId' is not null or undefined
274
+ (0, common_1.assertParamExists)('getAppointmentSlots', 'storeId', storeId);
275
+ // verify required parameter 'marketplaceIds' is not null or undefined
276
+ (0, common_1.assertParamExists)('getAppointmentSlots', 'marketplaceIds', marketplaceIds);
277
+ const localVarPath = `/service/v1/appointmentSlots`;
278
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
280
+ let baseOptions;
281
+ if (configuration) {
282
+ baseOptions = configuration.baseOptions;
283
+ }
284
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
285
+ const localVarHeaderParameter = {};
286
+ const localVarQueryParameter = {};
287
+ if (asin !== undefined) {
288
+ localVarQueryParameter['asin'] = asin;
289
+ }
290
+ if (storeId !== undefined) {
291
+ localVarQueryParameter['storeId'] = storeId;
292
+ }
293
+ if (marketplaceIds) {
294
+ localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(base_1.COLLECTION_FORMATS.csv);
295
+ }
296
+ if (startTime !== undefined) {
297
+ localVarQueryParameter['startTime'] = startTime;
298
+ }
299
+ if (endTime !== undefined) {
300
+ localVarQueryParameter['endTime'] = endTime;
301
+ }
302
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
303
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
304
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
305
+ return {
306
+ url: (0, common_1.toPathString)(localVarUrlObj),
307
+ options: localVarRequestOptions,
308
+ };
309
+ },
310
+ /**
311
+ * 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).
312
+ * @param {string} serviceJobId A service job identifier to retrive appointment slots for associated service.
313
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
314
+ * @param {string} [startTime] A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If &#x60;startTime&#x60; is provided, &#x60;endTime&#x60; should also be provided. Default value is as per business configuration.
315
+ * @param {string} [endTime] A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If &#x60;endTime&#x60; is provided, &#x60;startTime&#x60; should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days.
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ getAppointmmentSlotsByJobId: async (serviceJobId, marketplaceIds, startTime, endTime, options = {}) => {
320
+ // verify required parameter 'serviceJobId' is not null or undefined
321
+ (0, common_1.assertParamExists)('getAppointmmentSlotsByJobId', 'serviceJobId', serviceJobId);
322
+ // verify required parameter 'marketplaceIds' is not null or undefined
323
+ (0, common_1.assertParamExists)('getAppointmmentSlotsByJobId', 'marketplaceIds', marketplaceIds);
324
+ const localVarPath = `/service/v1/serviceJobs/{serviceJobId}/appointmentSlots`
325
+ .replace(`{${"serviceJobId"}}`, encodeURIComponent(String(serviceJobId)));
326
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
327
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
328
+ let baseOptions;
329
+ if (configuration) {
330
+ baseOptions = configuration.baseOptions;
331
+ }
332
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
333
+ const localVarHeaderParameter = {};
334
+ const localVarQueryParameter = {};
335
+ if (marketplaceIds) {
336
+ localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(base_1.COLLECTION_FORMATS.csv);
337
+ }
338
+ if (startTime !== undefined) {
339
+ localVarQueryParameter['startTime'] = startTime;
340
+ }
341
+ if (endTime !== undefined) {
342
+ localVarQueryParameter['endTime'] = endTime;
343
+ }
344
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
345
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
346
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
347
+ return {
348
+ url: (0, common_1.toPathString)(localVarUrlObj),
349
+ options: localVarRequestOptions,
350
+ };
351
+ },
352
+ /**
353
+ * 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).
354
+ * @param {string} resourceId Resource Identifier.
355
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
356
+ * @param {FixedSlotCapacityQuery} body Request body.
357
+ * @param {string} [nextPageToken] Next page token returned in the response of your previous request.
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ getFixedSlotCapacity: async (resourceId, marketplaceIds, body, nextPageToken, options = {}) => {
362
+ // verify required parameter 'resourceId' is not null or undefined
363
+ (0, common_1.assertParamExists)('getFixedSlotCapacity', 'resourceId', resourceId);
364
+ // verify required parameter 'marketplaceIds' is not null or undefined
365
+ (0, common_1.assertParamExists)('getFixedSlotCapacity', 'marketplaceIds', marketplaceIds);
366
+ // verify required parameter 'body' is not null or undefined
367
+ (0, common_1.assertParamExists)('getFixedSlotCapacity', 'body', body);
368
+ const localVarPath = `/service/v1/serviceResources/{resourceId}/capacity/fixed`
369
+ .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
370
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
371
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
372
+ let baseOptions;
373
+ if (configuration) {
374
+ baseOptions = configuration.baseOptions;
375
+ }
376
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
377
+ const localVarHeaderParameter = {};
378
+ const localVarQueryParameter = {};
379
+ if (marketplaceIds) {
380
+ localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(base_1.COLLECTION_FORMATS.csv);
381
+ }
382
+ if (nextPageToken !== undefined) {
383
+ localVarQueryParameter['nextPageToken'] = nextPageToken;
384
+ }
385
+ localVarHeaderParameter['Content-Type'] = 'application/json';
386
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
387
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
388
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
389
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
390
+ return {
391
+ url: (0, common_1.toPathString)(localVarUrlObj),
392
+ options: localVarRequestOptions,
393
+ };
394
+ },
395
+ /**
396
+ * 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).
397
+ * @param {string} resourceId Resource Identifier.
398
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
399
+ * @param {RangeSlotCapacityQuery} body Request body.
400
+ * @param {string} [nextPageToken] Next page token returned in the response of your previous request.
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ getRangeSlotCapacity: async (resourceId, marketplaceIds, body, nextPageToken, options = {}) => {
405
+ // verify required parameter 'resourceId' is not null or undefined
406
+ (0, common_1.assertParamExists)('getRangeSlotCapacity', 'resourceId', resourceId);
407
+ // verify required parameter 'marketplaceIds' is not null or undefined
408
+ (0, common_1.assertParamExists)('getRangeSlotCapacity', 'marketplaceIds', marketplaceIds);
409
+ // verify required parameter 'body' is not null or undefined
410
+ (0, common_1.assertParamExists)('getRangeSlotCapacity', 'body', body);
411
+ const localVarPath = `/service/v1/serviceResources/{resourceId}/capacity/range`
412
+ .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
413
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
414
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
415
+ let baseOptions;
416
+ if (configuration) {
417
+ baseOptions = configuration.baseOptions;
418
+ }
419
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
420
+ const localVarHeaderParameter = {};
421
+ const localVarQueryParameter = {};
422
+ if (marketplaceIds) {
423
+ localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(base_1.COLLECTION_FORMATS.csv);
424
+ }
425
+ if (nextPageToken !== undefined) {
426
+ localVarQueryParameter['nextPageToken'] = nextPageToken;
427
+ }
428
+ localVarHeaderParameter['Content-Type'] = 'application/json';
429
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
430
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
431
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
432
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
433
+ return {
434
+ url: (0, common_1.toPathString)(localVarUrlObj),
435
+ options: localVarRequestOptions,
436
+ };
437
+ },
438
+ /**
439
+ * 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).
127
440
  * @param {string} serviceJobId A service job identifier.
128
441
  * @param {*} [options] Override http request option.
129
442
  * @throws {RequiredError}
@@ -151,7 +464,7 @@ const ServiceApiAxiosParamCreator = function (configuration) {
151
464
  };
152
465
  },
153
466
  /**
154
- * Gets service job details for the specified filter query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 40 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
467
+ * 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).
155
468
  * @param {Array<string>} marketplaceIds Used to select jobs that were placed in the specified marketplaces.
156
469
  * @param {Array<string>} [serviceOrderIds] List of service order ids for the query you want to perform.Max values supported 20.
157
470
  * @param {Array<'NOT_SERVICED' | 'CANCELLED' | 'COMPLETED' | 'PENDING_SCHEDULE' | 'NOT_FULFILLABLE' | 'HOLD' | 'PAYMENT_DECLINED'>} [serviceJobStatus] A list of one or more job status by which to filter the list of jobs.
@@ -159,16 +472,19 @@ const ServiceApiAxiosParamCreator = function (configuration) {
159
472
  * @param {number} [pageSize] A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20.
160
473
  * @param {'JOB_DATE' | 'JOB_STATUS'} [sortField] Sort fields on which you want to sort the output.
161
474
  * @param {'ASC' | 'DESC'} [sortOrder] Sort order for the query you want to perform.
162
- * @param {string} [createdAfter] A date used for selecting jobs created after (or at) a specified time must be in ISO 8601 format. Required if LastUpdatedAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error.
163
- * @param {string} [createdBefore] A date used for selecting jobs created before (or at) a specified time must be in ISO 8601 format.
164
- * @param {string} [lastUpdatedAfter] A date used for selecting jobs updated after (or at) a specified time must be in ISO 8601 format. Required if createdAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error.
165
- * @param {string} [lastUpdatedBefore] A date used for selecting jobs updated before (or at) a specified time must be in ISO 8601 format.
166
- * @param {string} [scheduleStartDate] A date used for filtering jobs schedule after (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date.
167
- * @param {string} [scheduleEndDate] A date used for filtering jobs schedule before (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date.
475
+ * @param {string} [createdAfter] A date used for selecting jobs created at or after a specified time. Must be in ISO 8601 format. Required if &#x60;LastUpdatedAfter&#x60; is not specified. Specifying both &#x60;CreatedAfter&#x60; and &#x60;LastUpdatedAfter&#x60; returns an error.
476
+ * @param {string} [createdBefore] A date used for selecting jobs created at or before a specified time. Must be in ISO 8601 format.
477
+ * @param {string} [lastUpdatedAfter] A date used for selecting jobs updated at or after a specified time. Must be in ISO 8601 format. Required if &#x60;createdAfter&#x60; is not specified. Specifying both &#x60;CreatedAfter&#x60; and &#x60;LastUpdatedAfter&#x60; returns an error.
478
+ * @param {string} [lastUpdatedBefore] A date used for selecting jobs updated at or before a specified time. Must be in ISO 8601 format.
479
+ * @param {string} [scheduleStartDate] A date used for filtering jobs schedules at or after a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date.
480
+ * @param {string} [scheduleEndDate] A date used for filtering jobs schedules at or before a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date.
481
+ * @param {Array<string>} [asins] List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20.
482
+ * @param {Array<string>} [requiredSkills] A defined set of related knowledge, skills, experience, tools, materials, and work processes common to service delivery for a set of products and/or service scenarios. Max values supported is 20.
483
+ * @param {Array<string>} [storeIds] List of Amazon-defined identifiers for the region scope. Max values supported is 50.
168
484
  * @param {*} [options] Override http request option.
169
485
  * @throws {RequiredError}
170
486
  */
171
- getServiceJobs: async (marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, options = {}) => {
487
+ getServiceJobs: async (marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, asins, requiredSkills, storeIds, options = {}) => {
172
488
  // verify required parameter 'marketplaceIds' is not null or undefined
173
489
  (0, common_1.assertParamExists)('getServiceJobs', 'marketplaceIds', marketplaceIds);
174
490
  const localVarPath = `/service/v1/serviceJobs`;
@@ -220,6 +536,15 @@ const ServiceApiAxiosParamCreator = function (configuration) {
220
536
  if (marketplaceIds) {
221
537
  localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(base_1.COLLECTION_FORMATS.csv);
222
538
  }
539
+ if (asins) {
540
+ localVarQueryParameter['asins'] = asins.join(base_1.COLLECTION_FORMATS.csv);
541
+ }
542
+ if (requiredSkills) {
543
+ localVarQueryParameter['requiredSkills'] = requiredSkills.join(base_1.COLLECTION_FORMATS.csv);
544
+ }
545
+ if (storeIds) {
546
+ localVarQueryParameter['storeIds'] = storeIds.join(base_1.COLLECTION_FORMATS.csv);
547
+ }
223
548
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
224
549
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
225
550
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -229,7 +554,7 @@ const ServiceApiAxiosParamCreator = function (configuration) {
229
554
  };
230
555
  },
231
556
  /**
232
- * Reschedules an appointment for the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
557
+ * 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).
233
558
  * @param {string} serviceJobId An Amazon defined service job identifier.
234
559
  * @param {string} appointmentId An existing appointment identifier for the Service Job.
235
560
  * @param {RescheduleAppointmentRequest} body Reschedule appointment operation input details.
@@ -265,6 +590,121 @@ const ServiceApiAxiosParamCreator = function (configuration) {
265
590
  options: localVarRequestOptions,
266
591
  };
267
592
  },
593
+ /**
594
+ * 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).
595
+ * @param {string} serviceJobId An Amazon-defined service job identifier. Get this value by calling the &#x60;getServiceJobs&#x60; operation of the Services API.
596
+ * @param {string} appointmentId An Amazon-defined identifier of active service job appointment.
597
+ * @param {SetAppointmentFulfillmentDataRequest} body Appointment fulfillment data collection details.
598
+ * @param {*} [options] Override http request option.
599
+ * @throws {RequiredError}
600
+ */
601
+ setAppointmentFulfillmentData: async (serviceJobId, appointmentId, body, options = {}) => {
602
+ // verify required parameter 'serviceJobId' is not null or undefined
603
+ (0, common_1.assertParamExists)('setAppointmentFulfillmentData', 'serviceJobId', serviceJobId);
604
+ // verify required parameter 'appointmentId' is not null or undefined
605
+ (0, common_1.assertParamExists)('setAppointmentFulfillmentData', 'appointmentId', appointmentId);
606
+ // verify required parameter 'body' is not null or undefined
607
+ (0, common_1.assertParamExists)('setAppointmentFulfillmentData', 'body', body);
608
+ const localVarPath = `/service/v1/serviceJobs/{serviceJobId}/appointments/{appointmentId}/fulfillment`
609
+ .replace(`{${"serviceJobId"}}`, encodeURIComponent(String(serviceJobId)))
610
+ .replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
611
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
612
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
613
+ let baseOptions;
614
+ if (configuration) {
615
+ baseOptions = configuration.baseOptions;
616
+ }
617
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
618
+ const localVarHeaderParameter = {};
619
+ const localVarQueryParameter = {};
620
+ localVarHeaderParameter['Content-Type'] = 'application/json';
621
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
622
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
623
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
624
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
625
+ return {
626
+ url: (0, common_1.toPathString)(localVarUrlObj),
627
+ options: localVarRequestOptions,
628
+ };
629
+ },
630
+ /**
631
+ * 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).
632
+ * @param {string} reservationId Reservation Identifier
633
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
634
+ * @param {UpdateReservationRequest} body Reservation details
635
+ * @param {*} [options] Override http request option.
636
+ * @throws {RequiredError}
637
+ */
638
+ updateReservation: async (reservationId, marketplaceIds, body, options = {}) => {
639
+ // verify required parameter 'reservationId' is not null or undefined
640
+ (0, common_1.assertParamExists)('updateReservation', 'reservationId', reservationId);
641
+ // verify required parameter 'marketplaceIds' is not null or undefined
642
+ (0, common_1.assertParamExists)('updateReservation', 'marketplaceIds', marketplaceIds);
643
+ // verify required parameter 'body' is not null or undefined
644
+ (0, common_1.assertParamExists)('updateReservation', 'body', body);
645
+ const localVarPath = `/service/v1/reservation/{reservationId}`
646
+ .replace(`{${"reservationId"}}`, encodeURIComponent(String(reservationId)));
647
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
648
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
649
+ let baseOptions;
650
+ if (configuration) {
651
+ baseOptions = configuration.baseOptions;
652
+ }
653
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
654
+ const localVarHeaderParameter = {};
655
+ const localVarQueryParameter = {};
656
+ if (marketplaceIds) {
657
+ localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(base_1.COLLECTION_FORMATS.csv);
658
+ }
659
+ localVarHeaderParameter['Content-Type'] = 'application/json';
660
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
661
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
662
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
663
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
664
+ return {
665
+ url: (0, common_1.toPathString)(localVarUrlObj),
666
+ options: localVarRequestOptions,
667
+ };
668
+ },
669
+ /**
670
+ * 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).
671
+ * @param {string} resourceId Resource (store) Identifier
672
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
673
+ * @param {UpdateScheduleRequest} body Schedule details
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ updateSchedule: async (resourceId, marketplaceIds, body, options = {}) => {
678
+ // verify required parameter 'resourceId' is not null or undefined
679
+ (0, common_1.assertParamExists)('updateSchedule', 'resourceId', resourceId);
680
+ // verify required parameter 'marketplaceIds' is not null or undefined
681
+ (0, common_1.assertParamExists)('updateSchedule', 'marketplaceIds', marketplaceIds);
682
+ // verify required parameter 'body' is not null or undefined
683
+ (0, common_1.assertParamExists)('updateSchedule', 'body', body);
684
+ const localVarPath = `/service/v1/serviceResources/{resourceId}/schedules`
685
+ .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
686
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
687
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
688
+ let baseOptions;
689
+ if (configuration) {
690
+ baseOptions = configuration.baseOptions;
691
+ }
692
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
693
+ const localVarHeaderParameter = {};
694
+ const localVarQueryParameter = {};
695
+ if (marketplaceIds) {
696
+ localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(base_1.COLLECTION_FORMATS.csv);
697
+ }
698
+ localVarHeaderParameter['Content-Type'] = 'application/json';
699
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
700
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
701
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
702
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
703
+ return {
704
+ url: (0, common_1.toPathString)(localVarUrlObj),
705
+ options: localVarRequestOptions,
706
+ };
707
+ },
268
708
  };
269
709
  };
270
710
  exports.ServiceApiAxiosParamCreator = ServiceApiAxiosParamCreator;
@@ -276,7 +716,7 @@ const ServiceApiFp = function (configuration) {
276
716
  const localVarAxiosParamCreator = (0, exports.ServiceApiAxiosParamCreator)(configuration);
277
717
  return {
278
718
  /**
279
- * Adds an appointment to the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
719
+ * 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).
280
720
  * @param {string} serviceJobId An Amazon defined service job identifier.
281
721
  * @param {AddAppointmentRequest} body Add appointment operation input details.
282
722
  * @param {*} [options] Override http request option.
@@ -287,7 +727,30 @@ const ServiceApiFp = function (configuration) {
287
727
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
288
728
  },
289
729
  /**
290
- * Cancels the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
730
+ * Assigns new resource(s) or overwrite/update the existing one(s) to a service job appointment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
731
+ * @param {string} serviceJobId An Amazon-defined service job identifier. Get this value by calling the &#x60;getServiceJobs&#x60; operation of the Services API.
732
+ * @param {string} appointmentId An Amazon-defined identifier of active service job appointment.
733
+ * @param {AssignAppointmentResourcesRequest} body
734
+ * @param {*} [options] Override http request option.
735
+ * @throws {RequiredError}
736
+ */
737
+ async assignAppointmentResources(serviceJobId, appointmentId, body, options) {
738
+ const localVarAxiosArgs = await localVarAxiosParamCreator.assignAppointmentResources(serviceJobId, appointmentId, body, options);
739
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
740
+ },
741
+ /**
742
+ * 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).
743
+ * @param {string} reservationId Reservation Identifier
744
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ */
748
+ async cancelReservation(reservationId, marketplaceIds, options) {
749
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelReservation(reservationId, marketplaceIds, options);
750
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
751
+ },
752
+ /**
753
+ * 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).
291
754
  * @param {string} serviceJobId An Amazon defined service job identifier.
292
755
  * @param {string} cancellationReasonCode A cancel reason code that specifies the reason for cancelling a service job.
293
756
  * @param {*} [options] Override http request option.
@@ -298,7 +761,7 @@ const ServiceApiFp = function (configuration) {
298
761
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
299
762
  },
300
763
  /**
301
- * Completes the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
764
+ * 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).
302
765
  * @param {string} serviceJobId An Amazon defined service job identifier.
303
766
  * @param {*} [options] Override http request option.
304
767
  * @throws {RequiredError}
@@ -308,7 +771,81 @@ const ServiceApiFp = function (configuration) {
308
771
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
309
772
  },
310
773
  /**
311
- * Gets service job details for the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 20 | 40 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
774
+ * 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).
775
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
776
+ * @param {CreateReservationRequest} body Reservation details
777
+ * @param {*} [options] Override http request option.
778
+ * @throws {RequiredError}
779
+ */
780
+ async createReservation(marketplaceIds, body, options) {
781
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createReservation(marketplaceIds, body, options);
782
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
783
+ },
784
+ /**
785
+ * 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).
786
+ * @param {ServiceUploadDocument} body Upload document operation input details.
787
+ * @param {*} [options] Override http request option.
788
+ * @throws {RequiredError}
789
+ */
790
+ async createServiceDocumentUploadDestination(body, options) {
791
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createServiceDocumentUploadDestination(body, options);
792
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
793
+ },
794
+ /**
795
+ * 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).
796
+ * @param {string} asin ASIN associated with the service.
797
+ * @param {string} storeId Store identifier defining the region scope to retrive appointment slots.
798
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace for which appointment slots are queried
799
+ * @param {string} [startTime] A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If &#x60;startTime&#x60; is provided, &#x60;endTime&#x60; should also be provided. Default value is as per business configuration.
800
+ * @param {string} [endTime] A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If &#x60;endTime&#x60; is provided, &#x60;startTime&#x60; should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days.
801
+ * @param {*} [options] Override http request option.
802
+ * @throws {RequiredError}
803
+ */
804
+ async getAppointmentSlots(asin, storeId, marketplaceIds, startTime, endTime, options) {
805
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAppointmentSlots(asin, storeId, marketplaceIds, startTime, endTime, options);
806
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
807
+ },
808
+ /**
809
+ * 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).
810
+ * @param {string} serviceJobId A service job identifier to retrive appointment slots for associated service.
811
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
812
+ * @param {string} [startTime] A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If &#x60;startTime&#x60; is provided, &#x60;endTime&#x60; should also be provided. Default value is as per business configuration.
813
+ * @param {string} [endTime] A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If &#x60;endTime&#x60; is provided, &#x60;startTime&#x60; should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days.
814
+ * @param {*} [options] Override http request option.
815
+ * @throws {RequiredError}
816
+ */
817
+ async getAppointmmentSlotsByJobId(serviceJobId, marketplaceIds, startTime, endTime, options) {
818
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAppointmmentSlotsByJobId(serviceJobId, marketplaceIds, startTime, endTime, options);
819
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
820
+ },
821
+ /**
822
+ * 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).
823
+ * @param {string} resourceId Resource Identifier.
824
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
825
+ * @param {FixedSlotCapacityQuery} body Request body.
826
+ * @param {string} [nextPageToken] Next page token returned in the response of your previous request.
827
+ * @param {*} [options] Override http request option.
828
+ * @throws {RequiredError}
829
+ */
830
+ async getFixedSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options) {
831
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFixedSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options);
832
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
833
+ },
834
+ /**
835
+ * 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).
836
+ * @param {string} resourceId Resource Identifier.
837
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
838
+ * @param {RangeSlotCapacityQuery} body Request body.
839
+ * @param {string} [nextPageToken] Next page token returned in the response of your previous request.
840
+ * @param {*} [options] Override http request option.
841
+ * @throws {RequiredError}
842
+ */
843
+ async getRangeSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options) {
844
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRangeSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options);
845
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
846
+ },
847
+ /**
848
+ * 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).
312
849
  * @param {string} serviceJobId A service job identifier.
313
850
  * @param {*} [options] Override http request option.
314
851
  * @throws {RequiredError}
@@ -318,7 +855,7 @@ const ServiceApiFp = function (configuration) {
318
855
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
319
856
  },
320
857
  /**
321
- * Gets service job details for the specified filter query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 40 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
858
+ * 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).
322
859
  * @param {Array<string>} marketplaceIds Used to select jobs that were placed in the specified marketplaces.
323
860
  * @param {Array<string>} [serviceOrderIds] List of service order ids for the query you want to perform.Max values supported 20.
324
861
  * @param {Array<'NOT_SERVICED' | 'CANCELLED' | 'COMPLETED' | 'PENDING_SCHEDULE' | 'NOT_FULFILLABLE' | 'HOLD' | 'PAYMENT_DECLINED'>} [serviceJobStatus] A list of one or more job status by which to filter the list of jobs.
@@ -326,21 +863,24 @@ const ServiceApiFp = function (configuration) {
326
863
  * @param {number} [pageSize] A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20.
327
864
  * @param {'JOB_DATE' | 'JOB_STATUS'} [sortField] Sort fields on which you want to sort the output.
328
865
  * @param {'ASC' | 'DESC'} [sortOrder] Sort order for the query you want to perform.
329
- * @param {string} [createdAfter] A date used for selecting jobs created after (or at) a specified time must be in ISO 8601 format. Required if LastUpdatedAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error.
330
- * @param {string} [createdBefore] A date used for selecting jobs created before (or at) a specified time must be in ISO 8601 format.
331
- * @param {string} [lastUpdatedAfter] A date used for selecting jobs updated after (or at) a specified time must be in ISO 8601 format. Required if createdAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error.
332
- * @param {string} [lastUpdatedBefore] A date used for selecting jobs updated before (or at) a specified time must be in ISO 8601 format.
333
- * @param {string} [scheduleStartDate] A date used for filtering jobs schedule after (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date.
334
- * @param {string} [scheduleEndDate] A date used for filtering jobs schedule before (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date.
866
+ * @param {string} [createdAfter] A date used for selecting jobs created at or after a specified time. Must be in ISO 8601 format. Required if &#x60;LastUpdatedAfter&#x60; is not specified. Specifying both &#x60;CreatedAfter&#x60; and &#x60;LastUpdatedAfter&#x60; returns an error.
867
+ * @param {string} [createdBefore] A date used for selecting jobs created at or before a specified time. Must be in ISO 8601 format.
868
+ * @param {string} [lastUpdatedAfter] A date used for selecting jobs updated at or after a specified time. Must be in ISO 8601 format. Required if &#x60;createdAfter&#x60; is not specified. Specifying both &#x60;CreatedAfter&#x60; and &#x60;LastUpdatedAfter&#x60; returns an error.
869
+ * @param {string} [lastUpdatedBefore] A date used for selecting jobs updated at or before a specified time. Must be in ISO 8601 format.
870
+ * @param {string} [scheduleStartDate] A date used for filtering jobs schedules at or after a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date.
871
+ * @param {string} [scheduleEndDate] A date used for filtering jobs schedules at or before a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date.
872
+ * @param {Array<string>} [asins] List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20.
873
+ * @param {Array<string>} [requiredSkills] A defined set of related knowledge, skills, experience, tools, materials, and work processes common to service delivery for a set of products and/or service scenarios. Max values supported is 20.
874
+ * @param {Array<string>} [storeIds] List of Amazon-defined identifiers for the region scope. Max values supported is 50.
335
875
  * @param {*} [options] Override http request option.
336
876
  * @throws {RequiredError}
337
877
  */
338
- async getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, options) {
339
- const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, options);
878
+ async getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, asins, requiredSkills, storeIds, options) {
879
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, asins, requiredSkills, storeIds, options);
340
880
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
341
881
  },
342
882
  /**
343
- * Reschedules an appointment for the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
883
+ * 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).
344
884
  * @param {string} serviceJobId An Amazon defined service job identifier.
345
885
  * @param {string} appointmentId An existing appointment identifier for the Service Job.
346
886
  * @param {RescheduleAppointmentRequest} body Reschedule appointment operation input details.
@@ -351,6 +891,42 @@ const ServiceApiFp = function (configuration) {
351
891
  const localVarAxiosArgs = await localVarAxiosParamCreator.rescheduleAppointmentForServiceJobByServiceJobId(serviceJobId, appointmentId, body, options);
352
892
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
353
893
  },
894
+ /**
895
+ * Updates the appointment fulfillment data related to a given `jobID` and `appointmentID`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
896
+ * @param {string} serviceJobId An Amazon-defined service job identifier. Get this value by calling the &#x60;getServiceJobs&#x60; operation of the Services API.
897
+ * @param {string} appointmentId An Amazon-defined identifier of active service job appointment.
898
+ * @param {SetAppointmentFulfillmentDataRequest} body Appointment fulfillment data collection details.
899
+ * @param {*} [options] Override http request option.
900
+ * @throws {RequiredError}
901
+ */
902
+ async setAppointmentFulfillmentData(serviceJobId, appointmentId, body, options) {
903
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setAppointmentFulfillmentData(serviceJobId, appointmentId, body, options);
904
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
905
+ },
906
+ /**
907
+ * Update a reservation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
908
+ * @param {string} reservationId Reservation Identifier
909
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
910
+ * @param {UpdateReservationRequest} body Reservation details
911
+ * @param {*} [options] Override http request option.
912
+ * @throws {RequiredError}
913
+ */
914
+ async updateReservation(reservationId, marketplaceIds, body, options) {
915
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateReservation(reservationId, marketplaceIds, body, options);
916
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
917
+ },
918
+ /**
919
+ * Update the schedule of the given resource. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
920
+ * @param {string} resourceId Resource (store) Identifier
921
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
922
+ * @param {UpdateScheduleRequest} body Schedule details
923
+ * @param {*} [options] Override http request option.
924
+ * @throws {RequiredError}
925
+ */
926
+ async updateSchedule(resourceId, marketplaceIds, body, options) {
927
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSchedule(resourceId, marketplaceIds, body, options);
928
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
929
+ },
354
930
  };
355
931
  };
356
932
  exports.ServiceApiFp = ServiceApiFp;
@@ -362,7 +938,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
362
938
  const localVarFp = (0, exports.ServiceApiFp)(configuration);
363
939
  return {
364
940
  /**
365
- * Adds an appointment to the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
941
+ * 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).
366
942
  * @param {string} serviceJobId An Amazon defined service job identifier.
367
943
  * @param {AddAppointmentRequest} body Add appointment operation input details.
368
944
  * @param {*} [options] Override http request option.
@@ -372,7 +948,28 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
372
948
  return localVarFp.addAppointmentForServiceJobByServiceJobId(serviceJobId, body, options).then((request) => request(axios, basePath));
373
949
  },
374
950
  /**
375
- * Cancels the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
951
+ * 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).
952
+ * @param {string} serviceJobId An Amazon-defined service job identifier. Get this value by calling the &#x60;getServiceJobs&#x60; operation of the Services API.
953
+ * @param {string} appointmentId An Amazon-defined identifier of active service job appointment.
954
+ * @param {AssignAppointmentResourcesRequest} body
955
+ * @param {*} [options] Override http request option.
956
+ * @throws {RequiredError}
957
+ */
958
+ assignAppointmentResources(serviceJobId, appointmentId, body, options) {
959
+ return localVarFp.assignAppointmentResources(serviceJobId, appointmentId, body, options).then((request) => request(axios, basePath));
960
+ },
961
+ /**
962
+ * 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).
963
+ * @param {string} reservationId Reservation Identifier
964
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ */
968
+ cancelReservation(reservationId, marketplaceIds, options) {
969
+ return localVarFp.cancelReservation(reservationId, marketplaceIds, options).then((request) => request(axios, basePath));
970
+ },
971
+ /**
972
+ * 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).
376
973
  * @param {string} serviceJobId An Amazon defined service job identifier.
377
974
  * @param {string} cancellationReasonCode A cancel reason code that specifies the reason for cancelling a service job.
378
975
  * @param {*} [options] Override http request option.
@@ -382,7 +979,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
382
979
  return localVarFp.cancelServiceJobByServiceJobId(serviceJobId, cancellationReasonCode, options).then((request) => request(axios, basePath));
383
980
  },
384
981
  /**
385
- * Completes the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
982
+ * 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).
386
983
  * @param {string} serviceJobId An Amazon defined service job identifier.
387
984
  * @param {*} [options] Override http request option.
388
985
  * @throws {RequiredError}
@@ -391,7 +988,75 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
391
988
  return localVarFp.completeServiceJobByServiceJobId(serviceJobId, options).then((request) => request(axios, basePath));
392
989
  },
393
990
  /**
394
- * Gets service job details for the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 20 | 40 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
991
+ * 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).
992
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
993
+ * @param {CreateReservationRequest} body Reservation details
994
+ * @param {*} [options] Override http request option.
995
+ * @throws {RequiredError}
996
+ */
997
+ createReservation(marketplaceIds, body, options) {
998
+ return localVarFp.createReservation(marketplaceIds, body, options).then((request) => request(axios, basePath));
999
+ },
1000
+ /**
1001
+ * 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).
1002
+ * @param {ServiceUploadDocument} body Upload document operation input details.
1003
+ * @param {*} [options] Override http request option.
1004
+ * @throws {RequiredError}
1005
+ */
1006
+ createServiceDocumentUploadDestination(body, options) {
1007
+ return localVarFp.createServiceDocumentUploadDestination(body, options).then((request) => request(axios, basePath));
1008
+ },
1009
+ /**
1010
+ * 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).
1011
+ * @param {string} asin ASIN associated with the service.
1012
+ * @param {string} storeId Store identifier defining the region scope to retrive appointment slots.
1013
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace for which appointment slots are queried
1014
+ * @param {string} [startTime] A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If &#x60;startTime&#x60; is provided, &#x60;endTime&#x60; should also be provided. Default value is as per business configuration.
1015
+ * @param {string} [endTime] A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If &#x60;endTime&#x60; is provided, &#x60;startTime&#x60; should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days.
1016
+ * @param {*} [options] Override http request option.
1017
+ * @throws {RequiredError}
1018
+ */
1019
+ getAppointmentSlots(asin, storeId, marketplaceIds, startTime, endTime, options) {
1020
+ return localVarFp.getAppointmentSlots(asin, storeId, marketplaceIds, startTime, endTime, options).then((request) => request(axios, basePath));
1021
+ },
1022
+ /**
1023
+ * 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).
1024
+ * @param {string} serviceJobId A service job identifier to retrive appointment slots for associated service.
1025
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
1026
+ * @param {string} [startTime] A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If &#x60;startTime&#x60; is provided, &#x60;endTime&#x60; should also be provided. Default value is as per business configuration.
1027
+ * @param {string} [endTime] A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If &#x60;endTime&#x60; is provided, &#x60;startTime&#x60; should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days.
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ getAppointmmentSlotsByJobId(serviceJobId, marketplaceIds, startTime, endTime, options) {
1032
+ return localVarFp.getAppointmmentSlotsByJobId(serviceJobId, marketplaceIds, startTime, endTime, options).then((request) => request(axios, basePath));
1033
+ },
1034
+ /**
1035
+ * 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).
1036
+ * @param {string} resourceId Resource Identifier.
1037
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
1038
+ * @param {FixedSlotCapacityQuery} body Request body.
1039
+ * @param {string} [nextPageToken] Next page token returned in the response of your previous request.
1040
+ * @param {*} [options] Override http request option.
1041
+ * @throws {RequiredError}
1042
+ */
1043
+ getFixedSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options) {
1044
+ return localVarFp.getFixedSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options).then((request) => request(axios, basePath));
1045
+ },
1046
+ /**
1047
+ * 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).
1048
+ * @param {string} resourceId Resource Identifier.
1049
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
1050
+ * @param {RangeSlotCapacityQuery} body Request body.
1051
+ * @param {string} [nextPageToken] Next page token returned in the response of your previous request.
1052
+ * @param {*} [options] Override http request option.
1053
+ * @throws {RequiredError}
1054
+ */
1055
+ getRangeSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options) {
1056
+ return localVarFp.getRangeSlotCapacity(resourceId, marketplaceIds, body, nextPageToken, options).then((request) => request(axios, basePath));
1057
+ },
1058
+ /**
1059
+ * 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).
395
1060
  * @param {string} serviceJobId A service job identifier.
396
1061
  * @param {*} [options] Override http request option.
397
1062
  * @throws {RequiredError}
@@ -400,7 +1065,7 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
400
1065
  return localVarFp.getServiceJobByServiceJobId(serviceJobId, options).then((request) => request(axios, basePath));
401
1066
  },
402
1067
  /**
403
- * Gets service job details for the specified filter query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 40 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
1068
+ * 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).
404
1069
  * @param {Array<string>} marketplaceIds Used to select jobs that were placed in the specified marketplaces.
405
1070
  * @param {Array<string>} [serviceOrderIds] List of service order ids for the query you want to perform.Max values supported 20.
406
1071
  * @param {Array<'NOT_SERVICED' | 'CANCELLED' | 'COMPLETED' | 'PENDING_SCHEDULE' | 'NOT_FULFILLABLE' | 'HOLD' | 'PAYMENT_DECLINED'>} [serviceJobStatus] A list of one or more job status by which to filter the list of jobs.
@@ -408,20 +1073,23 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
408
1073
  * @param {number} [pageSize] A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20.
409
1074
  * @param {'JOB_DATE' | 'JOB_STATUS'} [sortField] Sort fields on which you want to sort the output.
410
1075
  * @param {'ASC' | 'DESC'} [sortOrder] Sort order for the query you want to perform.
411
- * @param {string} [createdAfter] A date used for selecting jobs created after (or at) a specified time must be in ISO 8601 format. Required if LastUpdatedAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error.
412
- * @param {string} [createdBefore] A date used for selecting jobs created before (or at) a specified time must be in ISO 8601 format.
413
- * @param {string} [lastUpdatedAfter] A date used for selecting jobs updated after (or at) a specified time must be in ISO 8601 format. Required if createdAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error.
414
- * @param {string} [lastUpdatedBefore] A date used for selecting jobs updated before (or at) a specified time must be in ISO 8601 format.
415
- * @param {string} [scheduleStartDate] A date used for filtering jobs schedule after (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date.
416
- * @param {string} [scheduleEndDate] A date used for filtering jobs schedule before (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date.
1076
+ * @param {string} [createdAfter] A date used for selecting jobs created at or after a specified time. Must be in ISO 8601 format. Required if &#x60;LastUpdatedAfter&#x60; is not specified. Specifying both &#x60;CreatedAfter&#x60; and &#x60;LastUpdatedAfter&#x60; returns an error.
1077
+ * @param {string} [createdBefore] A date used for selecting jobs created at or before a specified time. Must be in ISO 8601 format.
1078
+ * @param {string} [lastUpdatedAfter] A date used for selecting jobs updated at or after a specified time. Must be in ISO 8601 format. Required if &#x60;createdAfter&#x60; is not specified. Specifying both &#x60;CreatedAfter&#x60; and &#x60;LastUpdatedAfter&#x60; returns an error.
1079
+ * @param {string} [lastUpdatedBefore] A date used for selecting jobs updated at or before a specified time. Must be in ISO 8601 format.
1080
+ * @param {string} [scheduleStartDate] A date used for filtering jobs schedules at or after a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date.
1081
+ * @param {string} [scheduleEndDate] A date used for filtering jobs schedules at or before a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date.
1082
+ * @param {Array<string>} [asins] List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20.
1083
+ * @param {Array<string>} [requiredSkills] A defined set of related knowledge, skills, experience, tools, materials, and work processes common to service delivery for a set of products and/or service scenarios. Max values supported is 20.
1084
+ * @param {Array<string>} [storeIds] List of Amazon-defined identifiers for the region scope. Max values supported is 50.
417
1085
  * @param {*} [options] Override http request option.
418
1086
  * @throws {RequiredError}
419
1087
  */
420
- getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, options) {
421
- return localVarFp.getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, options).then((request) => request(axios, basePath));
1088
+ getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, asins, requiredSkills, storeIds, options) {
1089
+ return localVarFp.getServiceJobs(marketplaceIds, serviceOrderIds, serviceJobStatus, pageToken, pageSize, sortField, sortOrder, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, scheduleStartDate, scheduleEndDate, asins, requiredSkills, storeIds, options).then((request) => request(axios, basePath));
422
1090
  },
423
1091
  /**
424
- * Reschedules an appointment for the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
1092
+ * 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).
425
1093
  * @param {string} serviceJobId An Amazon defined service job identifier.
426
1094
  * @param {string} appointmentId An existing appointment identifier for the Service Job.
427
1095
  * @param {RescheduleAppointmentRequest} body Reschedule appointment operation input details.
@@ -431,6 +1099,39 @@ const ServiceApiFactory = function (configuration, basePath, axios) {
431
1099
  rescheduleAppointmentForServiceJobByServiceJobId(serviceJobId, appointmentId, body, options) {
432
1100
  return localVarFp.rescheduleAppointmentForServiceJobByServiceJobId(serviceJobId, appointmentId, body, options).then((request) => request(axios, basePath));
433
1101
  },
1102
+ /**
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 {string} serviceJobId An Amazon-defined service job identifier. Get this value by calling the &#x60;getServiceJobs&#x60; operation of the Services API.
1105
+ * @param {string} appointmentId An Amazon-defined identifier of active service job appointment.
1106
+ * @param {SetAppointmentFulfillmentDataRequest} body Appointment fulfillment data collection details.
1107
+ * @param {*} [options] Override http request option.
1108
+ * @throws {RequiredError}
1109
+ */
1110
+ setAppointmentFulfillmentData(serviceJobId, appointmentId, body, options) {
1111
+ return localVarFp.setAppointmentFulfillmentData(serviceJobId, appointmentId, body, options).then((request) => request(axios, basePath));
1112
+ },
1113
+ /**
1114
+ * 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).
1115
+ * @param {string} reservationId Reservation Identifier
1116
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
1117
+ * @param {UpdateReservationRequest} body Reservation details
1118
+ * @param {*} [options] Override http request option.
1119
+ * @throws {RequiredError}
1120
+ */
1121
+ updateReservation(reservationId, marketplaceIds, body, options) {
1122
+ return localVarFp.updateReservation(reservationId, marketplaceIds, body, options).then((request) => request(axios, basePath));
1123
+ },
1124
+ /**
1125
+ * 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).
1126
+ * @param {string} resourceId Resource (store) Identifier
1127
+ * @param {Array<string>} marketplaceIds An identifier for the marketplace in which the resource operates.
1128
+ * @param {UpdateScheduleRequest} body Schedule details
1129
+ * @param {*} [options] Override http request option.
1130
+ * @throws {RequiredError}
1131
+ */
1132
+ updateSchedule(resourceId, marketplaceIds, body, options) {
1133
+ return localVarFp.updateSchedule(resourceId, marketplaceIds, body, options).then((request) => request(axios, basePath));
1134
+ },
434
1135
  };
435
1136
  };
436
1137
  exports.ServiceApiFactory = ServiceApiFactory;
@@ -442,7 +1143,7 @@ exports.ServiceApiFactory = ServiceApiFactory;
442
1143
  */
443
1144
  class ServiceApi extends base_1.BaseAPI {
444
1145
  /**
445
- * Adds an appointment to the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
1146
+ * 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).
446
1147
  * @param {ServiceApiAddAppointmentForServiceJobByServiceJobIdRequest} requestParameters Request parameters.
447
1148
  * @param {*} [options] Override http request option.
448
1149
  * @throws {RequiredError}
@@ -452,7 +1153,27 @@ class ServiceApi extends base_1.BaseAPI {
452
1153
  return (0, exports.ServiceApiFp)(this.configuration).addAppointmentForServiceJobByServiceJobId(requestParameters.serviceJobId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
453
1154
  }
454
1155
  /**
455
- * Cancels the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
1156
+ * 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).
1157
+ * @param {ServiceApiAssignAppointmentResourcesRequest} requestParameters Request parameters.
1158
+ * @param {*} [options] Override http request option.
1159
+ * @throws {RequiredError}
1160
+ * @memberof ServiceApi
1161
+ */
1162
+ assignAppointmentResources(requestParameters, options) {
1163
+ return (0, exports.ServiceApiFp)(this.configuration).assignAppointmentResources(requestParameters.serviceJobId, requestParameters.appointmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1164
+ }
1165
+ /**
1166
+ * 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).
1167
+ * @param {ServiceApiCancelReservationRequest} requestParameters Request parameters.
1168
+ * @param {*} [options] Override http request option.
1169
+ * @throws {RequiredError}
1170
+ * @memberof ServiceApi
1171
+ */
1172
+ cancelReservation(requestParameters, options) {
1173
+ return (0, exports.ServiceApiFp)(this.configuration).cancelReservation(requestParameters.reservationId, requestParameters.marketplaceIds, options).then((request) => request(this.axios, this.basePath));
1174
+ }
1175
+ /**
1176
+ * 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).
456
1177
  * @param {ServiceApiCancelServiceJobByServiceJobIdRequest} requestParameters Request parameters.
457
1178
  * @param {*} [options] Override http request option.
458
1179
  * @throws {RequiredError}
@@ -462,7 +1183,7 @@ class ServiceApi extends base_1.BaseAPI {
462
1183
  return (0, exports.ServiceApiFp)(this.configuration).cancelServiceJobByServiceJobId(requestParameters.serviceJobId, requestParameters.cancellationReasonCode, options).then((request) => request(this.axios, this.basePath));
463
1184
  }
464
1185
  /**
465
- * Completes the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
1186
+ * 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).
466
1187
  * @param {ServiceApiCompleteServiceJobByServiceJobIdRequest} requestParameters Request parameters.
467
1188
  * @param {*} [options] Override http request option.
468
1189
  * @throws {RequiredError}
@@ -472,7 +1193,67 @@ class ServiceApi extends base_1.BaseAPI {
472
1193
  return (0, exports.ServiceApiFp)(this.configuration).completeServiceJobByServiceJobId(requestParameters.serviceJobId, options).then((request) => request(this.axios, this.basePath));
473
1194
  }
474
1195
  /**
475
- * Gets service job details for the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 20 | 40 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
1196
+ * 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).
1197
+ * @param {ServiceApiCreateReservationRequest} requestParameters Request parameters.
1198
+ * @param {*} [options] Override http request option.
1199
+ * @throws {RequiredError}
1200
+ * @memberof ServiceApi
1201
+ */
1202
+ createReservation(requestParameters, options) {
1203
+ return (0, exports.ServiceApiFp)(this.configuration).createReservation(requestParameters.marketplaceIds, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1204
+ }
1205
+ /**
1206
+ * 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).
1207
+ * @param {ServiceApiCreateServiceDocumentUploadDestinationRequest} requestParameters Request parameters.
1208
+ * @param {*} [options] Override http request option.
1209
+ * @throws {RequiredError}
1210
+ * @memberof ServiceApi
1211
+ */
1212
+ createServiceDocumentUploadDestination(requestParameters, options) {
1213
+ return (0, exports.ServiceApiFp)(this.configuration).createServiceDocumentUploadDestination(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1214
+ }
1215
+ /**
1216
+ * 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).
1217
+ * @param {ServiceApiGetAppointmentSlotsRequest} requestParameters Request parameters.
1218
+ * @param {*} [options] Override http request option.
1219
+ * @throws {RequiredError}
1220
+ * @memberof ServiceApi
1221
+ */
1222
+ getAppointmentSlots(requestParameters, options) {
1223
+ return (0, exports.ServiceApiFp)(this.configuration).getAppointmentSlots(requestParameters.asin, requestParameters.storeId, requestParameters.marketplaceIds, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
1224
+ }
1225
+ /**
1226
+ * 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).
1227
+ * @param {ServiceApiGetAppointmmentSlotsByJobIdRequest} requestParameters Request parameters.
1228
+ * @param {*} [options] Override http request option.
1229
+ * @throws {RequiredError}
1230
+ * @memberof ServiceApi
1231
+ */
1232
+ getAppointmmentSlotsByJobId(requestParameters, options) {
1233
+ return (0, exports.ServiceApiFp)(this.configuration).getAppointmmentSlotsByJobId(requestParameters.serviceJobId, requestParameters.marketplaceIds, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
1234
+ }
1235
+ /**
1236
+ * 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).
1237
+ * @param {ServiceApiGetFixedSlotCapacityRequest} requestParameters Request parameters.
1238
+ * @param {*} [options] Override http request option.
1239
+ * @throws {RequiredError}
1240
+ * @memberof ServiceApi
1241
+ */
1242
+ getFixedSlotCapacity(requestParameters, options) {
1243
+ return (0, exports.ServiceApiFp)(this.configuration).getFixedSlotCapacity(requestParameters.resourceId, requestParameters.marketplaceIds, requestParameters.body, requestParameters.nextPageToken, options).then((request) => request(this.axios, this.basePath));
1244
+ }
1245
+ /**
1246
+ * 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).
1247
+ * @param {ServiceApiGetRangeSlotCapacityRequest} requestParameters Request parameters.
1248
+ * @param {*} [options] Override http request option.
1249
+ * @throws {RequiredError}
1250
+ * @memberof ServiceApi
1251
+ */
1252
+ getRangeSlotCapacity(requestParameters, options) {
1253
+ return (0, exports.ServiceApiFp)(this.configuration).getRangeSlotCapacity(requestParameters.resourceId, requestParameters.marketplaceIds, requestParameters.body, requestParameters.nextPageToken, options).then((request) => request(this.axios, this.basePath));
1254
+ }
1255
+ /**
1256
+ * 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).
476
1257
  * @param {ServiceApiGetServiceJobByServiceJobIdRequest} requestParameters Request parameters.
477
1258
  * @param {*} [options] Override http request option.
478
1259
  * @throws {RequiredError}
@@ -482,17 +1263,17 @@ class ServiceApi extends base_1.BaseAPI {
482
1263
  return (0, exports.ServiceApiFp)(this.configuration).getServiceJobByServiceJobId(requestParameters.serviceJobId, options).then((request) => request(this.axios, this.basePath));
483
1264
  }
484
1265
  /**
485
- * Gets service job details for the specified filter query. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 40 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
1266
+ * 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).
486
1267
  * @param {ServiceApiGetServiceJobsRequest} requestParameters Request parameters.
487
1268
  * @param {*} [options] Override http request option.
488
1269
  * @throws {RequiredError}
489
1270
  * @memberof ServiceApi
490
1271
  */
491
1272
  getServiceJobs(requestParameters, options) {
492
- return (0, exports.ServiceApiFp)(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, options).then((request) => request(this.axios, this.basePath));
1273
+ return (0, exports.ServiceApiFp)(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));
493
1274
  }
494
1275
  /**
495
- * Reschedules an appointment for the service job indicated by the service job identifier you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
1276
+ * 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).
496
1277
  * @param {ServiceApiRescheduleAppointmentForServiceJobByServiceJobIdRequest} requestParameters Request parameters.
497
1278
  * @param {*} [options] Override http request option.
498
1279
  * @throws {RequiredError}
@@ -501,5 +1282,35 @@ class ServiceApi extends base_1.BaseAPI {
501
1282
  rescheduleAppointmentForServiceJobByServiceJobId(requestParameters, options) {
502
1283
  return (0, exports.ServiceApiFp)(this.configuration).rescheduleAppointmentForServiceJobByServiceJobId(requestParameters.serviceJobId, requestParameters.appointmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
503
1284
  }
1285
+ /**
1286
+ * 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).
1287
+ * @param {ServiceApiSetAppointmentFulfillmentDataRequest} requestParameters Request parameters.
1288
+ * @param {*} [options] Override http request option.
1289
+ * @throws {RequiredError}
1290
+ * @memberof ServiceApi
1291
+ */
1292
+ setAppointmentFulfillmentData(requestParameters, options) {
1293
+ return (0, exports.ServiceApiFp)(this.configuration).setAppointmentFulfillmentData(requestParameters.serviceJobId, requestParameters.appointmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1294
+ }
1295
+ /**
1296
+ * 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).
1297
+ * @param {ServiceApiUpdateReservationRequest} requestParameters Request parameters.
1298
+ * @param {*} [options] Override http request option.
1299
+ * @throws {RequiredError}
1300
+ * @memberof ServiceApi
1301
+ */
1302
+ updateReservation(requestParameters, options) {
1303
+ return (0, exports.ServiceApiFp)(this.configuration).updateReservation(requestParameters.reservationId, requestParameters.marketplaceIds, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1304
+ }
1305
+ /**
1306
+ * 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).
1307
+ * @param {ServiceApiUpdateScheduleRequest} requestParameters Request parameters.
1308
+ * @param {*} [options] Override http request option.
1309
+ * @throws {RequiredError}
1310
+ * @memberof ServiceApi
1311
+ */
1312
+ updateSchedule(requestParameters, options) {
1313
+ return (0, exports.ServiceApiFp)(this.configuration).updateSchedule(requestParameters.resourceId, requestParameters.marketplaceIds, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1314
+ }
504
1315
  }
505
1316
  exports.ServiceApi = ServiceApi;