@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
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Selling Partner API for Services
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The error response schema for the `getFixedSlotCapacity` operation.
14
+ * @export
15
+ * @interface FixedSlotCapacityErrors
16
+ */
17
+ export interface FixedSlotCapacityErrors {
18
+ /**
19
+ * A list of error responses returned when a request is unsuccessful.
20
+ * @type {Array<Error>}
21
+ * @memberof FixedSlotCapacityErrors
22
+ */
23
+ 'errors'?: Array<Error>;
24
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Selling Partner API for Services
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CapacityType } from './capacity-type';
13
+ /**
14
+ * Request schema for the `getFixedSlotCapacity` operation. This schema is used to define the time range, capacity types and slot duration which are being queried.
15
+ * @export
16
+ * @interface FixedSlotCapacityQuery
17
+ */
18
+ export interface FixedSlotCapacityQuery {
19
+ /**
20
+ * An array of capacity types which are being requested. Default value is `[SCHEDULED_CAPACITY]`.
21
+ * @type {Array<CapacityType>}
22
+ * @memberof FixedSlotCapacityQuery
23
+ */
24
+ 'capacityTypes'?: Array<CapacityType>;
25
+ /**
26
+ * Size in which slots are being requested. This value should be a multiple of 5 and fall in the range: 5 <= `slotDuration` <= 360.
27
+ * @type {number}
28
+ * @memberof FixedSlotCapacityQuery
29
+ */
30
+ 'slotDuration'?: number;
31
+ /**
32
+ * Start date time from which the capacity slots are being requested in ISO 8601 format.
33
+ * @type {string}
34
+ * @memberof FixedSlotCapacityQuery
35
+ */
36
+ 'startDateTime': string;
37
+ /**
38
+ * End date time up to which the capacity slots are being requested in ISO 8601 format.
39
+ * @type {string}
40
+ * @memberof FixedSlotCapacityQuery
41
+ */
42
+ 'endDateTime': string;
43
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Selling Partner API for Services
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { FixedSlot } from './fixed-slot';
13
+ /**
14
+ * Response schema for the `getFixedSlotCapacity` operation.
15
+ * @export
16
+ * @interface FixedSlotCapacity
17
+ */
18
+ export interface FixedSlotCapacity {
19
+ /**
20
+ * Resource Identifier.
21
+ * @type {string}
22
+ * @memberof FixedSlotCapacity
23
+ */
24
+ 'resourceId'?: string;
25
+ /**
26
+ * The duration of each slot which is returned. This value will be a multiple of 5 and fall in the following range: 5 <= `slotDuration` <= 360.
27
+ * @type {number}
28
+ * @memberof FixedSlotCapacity
29
+ */
30
+ 'slotDuration'?: number;
31
+ /**
32
+ * Array of capacity slots in fixed slot format.
33
+ * @type {Array<FixedSlot>}
34
+ * @memberof FixedSlotCapacity
35
+ */
36
+ 'capacities'?: Array<FixedSlot>;
37
+ /**
38
+ * Next page token, if there are more pages.
39
+ * @type {string}
40
+ * @memberof FixedSlotCapacity
41
+ */
42
+ 'nextPageToken'?: string;
43
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Selling Partner API for Services
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * In this slot format each slot only has the requested capacity types. This slot size is as specified by slot duration.
14
+ * @export
15
+ * @interface FixedSlot
16
+ */
17
+ export interface FixedSlot {
18
+ /**
19
+ * Start date time of slot in ISO 8601 format with precision of seconds.
20
+ * @type {string}
21
+ * @memberof FixedSlot
22
+ */
23
+ 'startDateTime'?: string;
24
+ /**
25
+ * Scheduled capacity corresponding to the slot. This capacity represents the originally allocated capacity as per resource schedule.
26
+ * @type {number}
27
+ * @memberof FixedSlot
28
+ */
29
+ 'scheduledCapacity'?: number;
30
+ /**
31
+ * Available capacity corresponding to the slot. This capacity represents the capacity available for allocation to reservations.
32
+ * @type {number}
33
+ * @memberof FixedSlot
34
+ */
35
+ 'availableCapacity'?: number;
36
+ /**
37
+ * Encumbered capacity corresponding to the slot. This capacity represents the capacity allocated for Amazon Jobs/Appointments/Orders.
38
+ * @type {number}
39
+ * @memberof FixedSlot
40
+ */
41
+ 'encumberedCapacity'?: number;
42
+ /**
43
+ * Reserved capacity corresponding to the slot. This capacity represents the capacity made unavailable due to events like Breaks/Leaves/Lunch.
44
+ * @type {number}
45
+ * @memberof FixedSlot
46
+ */
47
+ 'reservedCapacity'?: number;
48
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Selling Partner API for Services
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Document that captured during service appointment fulfillment that portrays proof of completion
14
+ * @export
15
+ * @interface FulfillmentDocument
16
+ */
17
+ export interface FulfillmentDocument {
18
+ /**
19
+ * The identifier of the upload destination. Get this value by calling the `createServiceDocumentUploadDestination` operation of the Services API.
20
+ * @type {string}
21
+ * @memberof FulfillmentDocument
22
+ */
23
+ 'uploadDestinationId'?: string;
24
+ /**
25
+ * Sha256 hash of the file content. This value is used to determine if the file has been corrupted or tampered with during transit.
26
+ * @type {string}
27
+ * @memberof FulfillmentDocument
28
+ */
29
+ 'contentSha256'?: string;
30
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Selling Partner API for Services
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Input for fulfillment time details
14
+ * @export
15
+ * @interface FulfillmentTime
16
+ */
17
+ export interface FulfillmentTime {
18
+ /**
19
+ * The date, time in UTC of the fulfillment start time in ISO 8601 format.
20
+ * @type {string}
21
+ * @memberof FulfillmentTime
22
+ */
23
+ 'startTime'?: string;
24
+ /**
25
+ * The date, time in UTC of the fulfillment end time in ISO 8601 format.
26
+ * @type {string}
27
+ * @memberof FulfillmentTime
28
+ */
29
+ 'endTime'?: string;
30
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Selling Partner API for Services
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AppointmentSlotReport } from './appointment-slot-report';
13
+ /**
14
+ * The response of fetching appointment slots based on service context.
15
+ * @export
16
+ * @interface GetAppointmentSlotsResponse
17
+ */
18
+ export interface GetAppointmentSlotsResponse {
19
+ /**
20
+ *
21
+ * @type {AppointmentSlotReport}
22
+ * @memberof GetAppointmentSlotsResponse
23
+ */
24
+ 'payload'?: AppointmentSlotReport;
25
+ /**
26
+ * A list of error responses returned when a request is unsuccessful.
27
+ * @type {Array<Error>}
28
+ * @memberof GetAppointmentSlotsResponse
29
+ */
30
+ 'errors'?: Array<Error>;
31
+ }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Services
3
- * With the Services API, you can build applications that help service providers get and modify their service orders.
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { ServiceJob } from './service-job';
13
13
  /**
14
- * The response schema for the GetServiceJobByServiceJobId operation.
14
+ * The response schema for the `getServiceJobByServiceJobId` operation.
15
15
  * @export
16
16
  * @interface GetServiceJobByServiceJobIdResponse
17
17
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Services
3
- * With the Services API, you can build applications that help service providers get and modify their service orders.
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { JobListing } from './job-listing';
13
13
  /**
14
- * Response schema for GetJobs operation.
14
+ * Response schema for the `getServiceJobs` operation.
15
15
  * @export
16
16
  * @interface GetServiceJobsResponse
17
17
  */
@@ -1,12 +1,34 @@
1
1
  export * from './add-appointment-request';
2
2
  export * from './address';
3
3
  export * from './appointment';
4
+ export * from './appointment-resource';
5
+ export * from './appointment-slot';
6
+ export * from './appointment-slot-report';
4
7
  export * from './appointment-time';
5
8
  export * from './appointment-time-input';
9
+ export * from './assign-appointment-resources-request';
10
+ export * from './assign-appointment-resources-response';
11
+ export * from './assign-appointment-resources-response-payload';
6
12
  export * from './associated-item';
13
+ export * from './availability-record';
7
14
  export * from './buyer';
15
+ export * from './cancel-reservation-response';
8
16
  export * from './cancel-service-job-by-service-job-id-response';
17
+ export * from './capacity-type';
9
18
  export * from './complete-service-job-by-service-job-id-response';
19
+ export * from './create-reservation-record';
20
+ export * from './create-reservation-request';
21
+ export * from './create-reservation-response';
22
+ export * from './create-service-document-upload-destination';
23
+ export * from './day-of-week';
24
+ export * from './encryption-details';
25
+ export * from './fixed-slot';
26
+ export * from './fixed-slot-capacity';
27
+ export * from './fixed-slot-capacity-errors';
28
+ export * from './fixed-slot-capacity-query';
29
+ export * from './fulfillment-document';
30
+ export * from './fulfillment-time';
31
+ export * from './get-appointment-slots-response';
10
32
  export * from './get-service-job-by-service-job-id-response';
11
33
  export * from './get-service-jobs-response';
12
34
  export * from './item-delivery';
@@ -14,12 +36,28 @@ export * from './item-delivery-promise';
14
36
  export * from './job-listing';
15
37
  export * from './model-error';
16
38
  export * from './poa';
39
+ export * from './range-capacity';
40
+ export * from './range-slot';
41
+ export * from './range-slot-capacity';
42
+ export * from './range-slot-capacity-errors';
43
+ export * from './range-slot-capacity-query';
44
+ export * from './recurrence';
17
45
  export * from './reschedule-appointment-request';
46
+ export * from './reservation';
18
47
  export * from './scope-of-work';
19
48
  export * from './seller';
49
+ export * from './service-document-upload-destination';
20
50
  export * from './service-job';
21
51
  export * from './service-job-provider';
22
52
  export * from './service-location';
53
+ export * from './service-upload-document';
54
+ export * from './set-appointment-fulfillment-data-request';
23
55
  export * from './set-appointment-response';
24
56
  export * from './technician';
57
+ export * from './update-reservation-record';
58
+ export * from './update-reservation-request';
59
+ export * from './update-reservation-response';
60
+ export * from './update-schedule-record';
61
+ export * from './update-schedule-request';
62
+ export * from './update-schedule-response';
25
63
  export * from './warning';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Services
3
- * With the Services API, you can build applications that help service providers get and modify their service orders.
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -16,13 +16,13 @@
16
16
  */
17
17
  export interface ItemDeliveryPromise {
18
18
  /**
19
- * The date and time of the start of the promised delivery window, in ISO 8601 format.
19
+ * The date and time of the start of the promised delivery window in ISO 8601 format.
20
20
  * @type {string}
21
21
  * @memberof ItemDeliveryPromise
22
22
  */
23
23
  'startTime'?: string;
24
24
  /**
25
- * The date and time of the end of the promised delivery window, in ISO 8601 format.
25
+ * The date and time of the end of the promised delivery window in ISO 8601 format.
26
26
  * @type {string}
27
27
  * @memberof ItemDeliveryPromise
28
28
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Services
3
- * With the Services API, you can build applications that help service providers get and modify their service orders.
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Services
3
- * With the Services API, you can build applications that help service providers get and modify their service orders.
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { ServiceJob } from './service-job';
13
13
  /**
14
- * The payload for the GetJobs operation.
14
+ * The payload for the `getServiceJobs` operation.
15
15
  * @export
16
16
  * @interface JobListing
17
17
  */
@@ -23,13 +23,13 @@ export interface JobListing {
23
23
  */
24
24
  'totalResultSize'?: number;
25
25
  /**
26
- * A generated string used to pass information to your next request.If nextPageToken is returned, pass the value of nextPageToken to the pageToken to get next results.
26
+ * A generated string used to pass information to your next request. If `nextPageToken` is returned, pass the value of `nextPageToken` to the `pageToken` to get next results.
27
27
  * @type {string}
28
28
  * @memberof JobListing
29
29
  */
30
30
  'nextPageToken'?: string;
31
31
  /**
32
- * A generated string used to pass information to your next request.If previousPageToken is returned, pass the value of previousPageToken to the pageToken to get previous page results.
32
+ * A generated string used to pass information to your next request. If `previousPageToken` is returned, pass the value of `previousPageToken` to the `pageToken` to get previous page results.
33
33
  * @type {string}
34
34
  * @memberof JobListing
35
35
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Services
3
- * With the Services API, you can build applications that help service providers get and modify their service orders.
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Services
3
- * With the Services API, you can build applications that help service providers get and modify their service orders.
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -36,7 +36,7 @@ export interface Poa {
36
36
  */
37
37
  'uploadingTechnician'?: string;
38
38
  /**
39
- * The date and time when the POA was uploaded, in ISO 8601 format.
39
+ * The date and time when the POA was uploaded in ISO 8601 format.
40
40
  * @type {string}
41
41
  * @memberof Poa
42
42
  */
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Selling Partner API for Services
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CapacityType } from './capacity-type';
13
+ import { RangeSlot } from './range-slot';
14
+ /**
15
+ * Range capacity entity where each entry has a capacity type and corresponding slots.
16
+ * @export
17
+ * @interface RangeCapacity
18
+ */
19
+ export interface RangeCapacity {
20
+ /**
21
+ *
22
+ * @type {CapacityType}
23
+ * @memberof RangeCapacity
24
+ */
25
+ 'capacityType'?: CapacityType;
26
+ /**
27
+ * Array of capacity slots in range slot format.
28
+ * @type {Array<RangeSlot>}
29
+ * @memberof RangeCapacity
30
+ */
31
+ 'slots'?: Array<RangeSlot>;
32
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Selling Partner API for Services
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The error response schema for the `getRangeSlotCapacity` operation.
14
+ * @export
15
+ * @interface RangeSlotCapacityErrors
16
+ */
17
+ export interface RangeSlotCapacityErrors {
18
+ /**
19
+ * A list of error responses returned when a request is unsuccessful.
20
+ * @type {Array<Error>}
21
+ * @memberof RangeSlotCapacityErrors
22
+ */
23
+ 'errors'?: Array<Error>;
24
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Selling Partner API for Services
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CapacityType } from './capacity-type';
13
+ /**
14
+ * Request schema for the `getRangeSlotCapacity` operation. This schema is used to define the time range and capacity types that are being queried.
15
+ * @export
16
+ * @interface RangeSlotCapacityQuery
17
+ */
18
+ export interface RangeSlotCapacityQuery {
19
+ /**
20
+ * An array of capacity types which are being requested. Default value is `[SCHEDULED_CAPACITY]`.
21
+ * @type {Array<CapacityType>}
22
+ * @memberof RangeSlotCapacityQuery
23
+ */
24
+ 'capacityTypes'?: Array<CapacityType>;
25
+ /**
26
+ * Start date time from which the capacity slots are being requested in ISO 8601 format.
27
+ * @type {string}
28
+ * @memberof RangeSlotCapacityQuery
29
+ */
30
+ 'startDateTime': string;
31
+ /**
32
+ * End date time up to which the capacity slots are being requested in ISO 8601 format.
33
+ * @type {string}
34
+ * @memberof RangeSlotCapacityQuery
35
+ */
36
+ 'endDateTime': string;
37
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Selling Partner API for Services
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { RangeCapacity } from './range-capacity';
13
+ /**
14
+ * Response schema for the `getRangeSlotCapacity` operation.
15
+ * @export
16
+ * @interface RangeSlotCapacity
17
+ */
18
+ export interface RangeSlotCapacity {
19
+ /**
20
+ * Resource Identifier.
21
+ * @type {string}
22
+ * @memberof RangeSlotCapacity
23
+ */
24
+ 'resourceId'?: string;
25
+ /**
26
+ * Array of range capacities where each entry is for a specific capacity type.
27
+ * @type {Array<RangeCapacity>}
28
+ * @memberof RangeSlotCapacity
29
+ */
30
+ 'capacities'?: Array<RangeCapacity>;
31
+ /**
32
+ * Next page token, if there are more pages.
33
+ * @type {string}
34
+ * @memberof RangeSlotCapacity
35
+ */
36
+ 'nextPageToken'?: string;
37
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Selling Partner API for Services
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Capacity slots represented in a format similar to availability rules.
14
+ * @export
15
+ * @interface RangeSlot
16
+ */
17
+ export interface RangeSlot {
18
+ /**
19
+ * Start date time of slot in ISO 8601 format with precision of seconds.
20
+ * @type {string}
21
+ * @memberof RangeSlot
22
+ */
23
+ 'startDateTime'?: string;
24
+ /**
25
+ * End date time of slot in ISO 8601 format with precision of seconds.
26
+ * @type {string}
27
+ * @memberof RangeSlot
28
+ */
29
+ 'endDateTime'?: string;
30
+ /**
31
+ * Capacity of the slot.
32
+ * @type {number}
33
+ * @memberof RangeSlot
34
+ */
35
+ 'capacity'?: number;
36
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Selling Partner API for Services
3
+ * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { DayOfWeek } from './day-of-week';
13
+ /**
14
+ * Repeated occurrence of an event in a time range.
15
+ * @export
16
+ * @interface Recurrence
17
+ */
18
+ export interface Recurrence {
19
+ /**
20
+ * End time of the recurrence.
21
+ * @type {string}
22
+ * @memberof Recurrence
23
+ */
24
+ 'endTime': string;
25
+ /**
26
+ * Days of the week when recurrence is valid. If the schedule is valid every Monday, input will only contain `MONDAY` in the list.
27
+ * @type {Array<DayOfWeek>}
28
+ * @memberof Recurrence
29
+ */
30
+ 'daysOfWeek'?: Array<DayOfWeek>;
31
+ /**
32
+ * Days of the month when recurrence is valid.
33
+ * @type {Array<number>}
34
+ * @memberof Recurrence
35
+ */
36
+ 'daysOfMonth'?: Array<number>;
37
+ }