@chrt-inc/typescript-sdk 0.231.0 → 0.271.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (461) hide show
  1. package/README.md +13 -2
  2. package/dist/cjs/Client.d.ts +4 -2
  3. package/dist/cjs/Client.js +2 -2
  4. package/dist/cjs/api/resources/connections/client/Client.d.ts +4 -2
  5. package/dist/cjs/api/resources/connections/client/Client.js +10 -6
  6. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +4 -2
  7. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +5 -3
  8. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.d.ts +4 -2
  9. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.js +20 -12
  10. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.ts +4 -2
  11. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.js +5 -3
  12. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.ts +4 -2
  13. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.js +5 -3
  14. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +4 -2
  15. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +20 -12
  16. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +4 -2
  17. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +30 -18
  18. package/dist/cjs/api/resources/dev/client/Client.d.ts +4 -2
  19. package/dist/cjs/api/resources/dev/client/Client.js +30 -18
  20. package/dist/cjs/api/resources/drivers/client/Client.d.ts +12 -3
  21. package/dist/cjs/api/resources/drivers/client/Client.js +58 -31
  22. package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +8 -1
  23. package/dist/cjs/api/resources/milestoneNotifications/client/Client.d.ts +4 -2
  24. package/dist/cjs/api/resources/milestoneNotifications/client/Client.js +10 -6
  25. package/dist/cjs/api/resources/milestones/client/Client.d.ts +4 -2
  26. package/dist/cjs/api/resources/milestones/client/Client.js +10 -6
  27. package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +4 -2
  28. package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +5 -3
  29. package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +5 -2
  30. package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +16 -10
  31. package/dist/cjs/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts +1 -1
  32. package/dist/cjs/api/resources/notifications/client/Client.d.ts +1 -1
  33. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +4 -2
  34. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +10 -6
  35. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +4 -2
  36. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +10 -6
  37. package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.d.ts +4 -2
  38. package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.js +25 -15
  39. package/dist/cjs/api/resources/orders/client/Client.d.ts +4 -2
  40. package/dist/cjs/api/resources/orders/client/Client.js +25 -15
  41. package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +4 -2
  42. package/dist/cjs/api/resources/orders/resources/full/client/Client.js +15 -9
  43. package/dist/cjs/api/resources/orgConnectionInfos/client/Client.d.ts +1 -1
  44. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +4 -2
  45. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +15 -9
  46. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +4 -2
  47. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +15 -9
  48. package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +4 -2
  49. package/dist/cjs/api/resources/orgProfiles/client/Client.js +25 -15
  50. package/dist/cjs/api/resources/orgs/client/Client.d.ts +4 -2
  51. package/dist/cjs/api/resources/orgs/client/Client.js +40 -24
  52. package/dist/cjs/api/resources/payments/client/Client.d.ts +4 -2
  53. package/dist/cjs/api/resources/payments/client/Client.js +25 -15
  54. package/dist/cjs/api/resources/root/client/Client.d.ts +4 -2
  55. package/dist/cjs/api/resources/root/client/Client.js +25 -15
  56. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +4 -2
  57. package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +45 -27
  58. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +4 -2
  59. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +25 -15
  60. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.ts +4 -2
  61. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.js +5 -3
  62. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +4 -2
  63. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +5 -3
  64. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.ts +4 -2
  65. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.js +5 -3
  66. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +4 -2
  67. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +15 -9
  68. package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +4 -2
  69. package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.js +35 -21
  70. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.d.ts +4 -2
  71. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.js +25 -15
  72. package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +4 -2
  73. package/dist/cjs/api/resources/taskGroups/client/Client.js +30 -18
  74. package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +4 -2
  75. package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +10 -6
  76. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +4 -2
  77. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +5 -3
  78. package/dist/cjs/api/resources/tracking/client/Client.d.ts +13 -1
  79. package/dist/cjs/api/resources/tracking/client/Client.js +24 -4
  80. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.d.ts +50 -0
  81. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.js +137 -0
  82. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/index.d.ts +2 -0
  83. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/index.js +17 -0
  84. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.d.ts +14 -0
  85. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.ts +1 -0
  86. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/index.d.ts +1 -0
  87. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/index.js +17 -0
  88. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.d.ts +5 -22
  89. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.js +6 -71
  90. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.ts +0 -1
  91. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +129 -0
  92. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +509 -0
  93. package/dist/cjs/api/resources/tracking/resources/devices/client/index.d.ts +2 -0
  94. package/dist/cjs/api/resources/tracking/resources/devices/client/index.js +17 -0
  95. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesDeleteRequest.d.ts +11 -0
  96. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesGetRequest.d.ts +11 -0
  97. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesLinkToCargoRequest.d.ts +14 -0
  98. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesRegisterToOrgReq1.d.ts +15 -0
  99. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesRegisterToOrgReq1.js +5 -0
  100. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoRequest.d.ts +12 -0
  101. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoRequest.js +5 -0
  102. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUpdateRequest1.d.ts +16 -0
  103. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUpdateRequest1.js +5 -0
  104. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +6 -0
  105. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.js +2 -0
  106. package/dist/cjs/api/resources/tracking/resources/devices/index.d.ts +1 -0
  107. package/dist/cjs/api/resources/tracking/resources/devices/index.js +17 -0
  108. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +60 -0
  109. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +143 -0
  110. package/dist/cjs/api/resources/tracking/resources/driver/client/index.d.ts +2 -0
  111. package/dist/cjs/api/resources/tracking/resources/driver/client/index.js +17 -0
  112. package/dist/cjs/api/resources/tracking/resources/{cargoByDriver/client/requests/CargoByDriverUpdateReq.d.ts → driver/client/requests/DriverUpdateReq.d.ts} +9 -2
  113. package/dist/cjs/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.js +5 -0
  114. package/dist/cjs/api/resources/tracking/resources/driver/client/requests/index.d.ts +1 -0
  115. package/dist/cjs/api/resources/tracking/resources/driver/client/requests/index.js +2 -0
  116. package/dist/cjs/api/resources/tracking/resources/driver/index.d.ts +1 -0
  117. package/dist/cjs/api/resources/tracking/resources/driver/index.js +17 -0
  118. package/dist/cjs/api/resources/tracking/resources/index.d.ts +8 -0
  119. package/dist/cjs/api/resources/tracking/resources/index.js +9 -1
  120. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +240 -0
  121. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +973 -0
  122. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/index.d.ts +2 -0
  123. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/index.js +17 -0
  124. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.d.ts +13 -0
  125. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.js +5 -0
  126. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicRequest.d.ts +13 -0
  127. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicRequest.js +5 -0
  128. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsRequest.d.ts +13 -0
  129. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsRequest.js +5 -0
  130. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteRequest.d.ts +12 -0
  131. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteRequest.js +5 -0
  132. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceGetRequest.d.ts +12 -0
  133. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceGetRequest.js +5 -0
  134. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicRequest.d.ts +12 -0
  135. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicRequest.js +5 -0
  136. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenRequest.d.ts +12 -0
  137. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenRequest.js +5 -0
  138. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.d.ts +14 -0
  139. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.js +5 -0
  140. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingRequest.d.ts +12 -0
  141. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingRequest.js +5 -0
  142. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingRequest.d.ts +12 -0
  143. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingRequest.js +5 -0
  144. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartRequest.d.ts +12 -0
  145. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartRequest.js +5 -0
  146. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateRequest.d.ts +12 -0
  147. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateRequest.js +5 -0
  148. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceUpdateRequest1.d.ts +15 -0
  149. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceUpdateRequest1.js +5 -0
  150. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.ts +13 -0
  151. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/index.js +2 -0
  152. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/index.d.ts +1 -0
  153. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/index.js +17 -0
  154. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.ts +5 -22
  155. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.js +6 -71
  156. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.ts +0 -1
  157. package/dist/cjs/api/resources/users/client/Client.d.ts +4 -2
  158. package/dist/cjs/api/resources/users/client/Client.js +5 -3
  159. package/dist/cjs/api/resources/utils/client/Client.d.ts +4 -2
  160. package/dist/cjs/api/resources/utils/client/Client.js +5 -4
  161. package/dist/cjs/api/resources/utils/client/requests/UtilsGetTimezoneRequest.d.ts +2 -6
  162. package/dist/cjs/api/types/Cargo1.d.ts +1 -1
  163. package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +1 -1
  164. package/dist/cjs/api/types/Device1.d.ts +21 -0
  165. package/dist/cjs/api/types/Device1.js +5 -0
  166. package/dist/cjs/api/types/DriverUpdateResp.d.ts +11 -0
  167. package/dist/cjs/api/types/DriverUpdateResp.js +5 -0
  168. package/dist/cjs/api/types/{LocationFeatureInputGeometry.d.ts → Geometry.d.ts} +2 -2
  169. package/dist/cjs/api/types/Geometry.js +5 -0
  170. package/dist/cjs/api/types/LocationFeature.d.ts +5 -1
  171. package/dist/cjs/api/types/LocationProperties.d.ts +2 -0
  172. package/dist/cjs/api/types/OutlierLabellerEnum.d.ts +8 -0
  173. package/dist/cjs/api/types/OutlierLabellerEnum.js +10 -0
  174. package/dist/cjs/api/types/Session1.d.ts +17 -0
  175. package/dist/cjs/api/types/Session1.js +5 -0
  176. package/dist/cjs/api/types/SessionByDeviceDeleteResponse1.d.ts +7 -0
  177. package/dist/cjs/api/types/SessionByDeviceDeleteResponse1.js +5 -0
  178. package/dist/cjs/api/types/SessionByDeviceMarkOutliersResponse1.d.ts +7 -0
  179. package/dist/cjs/api/types/SessionByDeviceMarkOutliersResponse1.js +5 -0
  180. package/dist/cjs/api/types/TrackingCargoByDeviceDataPoint1.d.ts +12 -0
  181. package/dist/cjs/api/types/TrackingCargoByDeviceDataPoint1.js +5 -0
  182. package/dist/cjs/api/types/TrackingCargoByDeviceDataPointMetadata1.d.ts +11 -0
  183. package/dist/cjs/api/types/TrackingCargoByDeviceDataPointMetadata1.js +5 -0
  184. package/dist/cjs/api/types/TrackingCargoByDriverDataPointMetadata1.d.ts +3 -0
  185. package/dist/cjs/api/types/TrackingDeviceTypeEnum1.d.ts +9 -0
  186. package/dist/cjs/api/types/TrackingDeviceTypeEnum1.js +11 -0
  187. package/dist/cjs/api/types/TrackingSessionByDeviceDataPoint1.d.ts +12 -0
  188. package/dist/cjs/api/types/TrackingSessionByDeviceDataPoint1.js +5 -0
  189. package/dist/cjs/api/types/TrackingSessionByDeviceDataPointMetadata1.d.ts +9 -0
  190. package/dist/cjs/api/types/TrackingSessionByDeviceDataPointMetadata1.js +5 -0
  191. package/dist/cjs/api/types/TrackingTaskGroupByDriverDataPointMetadata1.d.ts +3 -0
  192. package/dist/cjs/api/types/index.d.ts +12 -2
  193. package/dist/cjs/api/types/index.js +12 -2
  194. package/dist/cjs/core/auth/AuthProvider.d.ts +4 -0
  195. package/dist/cjs/core/auth/AuthProvider.js +2 -0
  196. package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
  197. package/dist/cjs/core/auth/AuthRequest.js +2 -0
  198. package/dist/cjs/core/auth/index.d.ts +2 -0
  199. package/dist/cjs/core/exports.d.ts +1 -0
  200. package/dist/cjs/core/exports.js +17 -0
  201. package/dist/cjs/core/fetcher/Fetcher.d.ts +2 -2
  202. package/dist/cjs/core/fetcher/Fetcher.js +2 -2
  203. package/dist/cjs/core/fetcher/index.d.ts +5 -5
  204. package/dist/cjs/core/fetcher/index.js +5 -5
  205. package/dist/cjs/core/fetcher/requestWithRetries.js +44 -8
  206. package/dist/cjs/core/file/exports.d.ts +1 -0
  207. package/dist/cjs/core/file/exports.js +2 -0
  208. package/dist/cjs/core/file/file.d.ts +5 -0
  209. package/dist/cjs/core/file/file.js +203 -0
  210. package/dist/cjs/core/file/index.d.ts +2 -0
  211. package/dist/cjs/core/file/index.js +18 -0
  212. package/dist/cjs/core/file/types.d.ts +66 -0
  213. package/dist/cjs/core/file/types.js +2 -0
  214. package/dist/cjs/core/headers.d.ts +2 -2
  215. package/dist/cjs/core/index.d.ts +1 -1
  216. package/dist/cjs/core/index.js +2 -2
  217. package/dist/cjs/exports.d.ts +1 -0
  218. package/dist/cjs/exports.js +17 -0
  219. package/dist/cjs/index.d.ts +1 -0
  220. package/dist/cjs/index.js +4 -0
  221. package/dist/cjs/version.d.ts +1 -1
  222. package/dist/cjs/version.js +1 -1
  223. package/dist/esm/Client.d.mts +4 -2
  224. package/dist/esm/Client.mjs +2 -2
  225. package/dist/esm/api/resources/connections/client/Client.d.mts +4 -2
  226. package/dist/esm/api/resources/connections/client/Client.mjs +10 -6
  227. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +4 -2
  228. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +5 -3
  229. package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.d.mts +4 -2
  230. package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.mjs +20 -12
  231. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.mts +4 -2
  232. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.mjs +5 -3
  233. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.mts +4 -2
  234. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.mjs +5 -3
  235. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +4 -2
  236. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +20 -12
  237. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +4 -2
  238. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +30 -18
  239. package/dist/esm/api/resources/dev/client/Client.d.mts +4 -2
  240. package/dist/esm/api/resources/dev/client/Client.mjs +30 -18
  241. package/dist/esm/api/resources/drivers/client/Client.d.mts +12 -3
  242. package/dist/esm/api/resources/drivers/client/Client.mjs +58 -31
  243. package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +8 -1
  244. package/dist/esm/api/resources/milestoneNotifications/client/Client.d.mts +4 -2
  245. package/dist/esm/api/resources/milestoneNotifications/client/Client.mjs +10 -6
  246. package/dist/esm/api/resources/milestones/client/Client.d.mts +4 -2
  247. package/dist/esm/api/resources/milestones/client/Client.mjs +10 -6
  248. package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +4 -2
  249. package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +5 -3
  250. package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +5 -2
  251. package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +16 -10
  252. package/dist/esm/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts +1 -1
  253. package/dist/esm/api/resources/notifications/client/Client.d.mts +1 -1
  254. package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +4 -2
  255. package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +10 -6
  256. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +4 -2
  257. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +10 -6
  258. package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.d.mts +4 -2
  259. package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.mjs +25 -15
  260. package/dist/esm/api/resources/orders/client/Client.d.mts +4 -2
  261. package/dist/esm/api/resources/orders/client/Client.mjs +25 -15
  262. package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +4 -2
  263. package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +15 -9
  264. package/dist/esm/api/resources/orgConnectionInfos/client/Client.d.mts +1 -1
  265. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +4 -2
  266. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +15 -9
  267. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +4 -2
  268. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +15 -9
  269. package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +4 -2
  270. package/dist/esm/api/resources/orgProfiles/client/Client.mjs +25 -15
  271. package/dist/esm/api/resources/orgs/client/Client.d.mts +4 -2
  272. package/dist/esm/api/resources/orgs/client/Client.mjs +40 -24
  273. package/dist/esm/api/resources/payments/client/Client.d.mts +4 -2
  274. package/dist/esm/api/resources/payments/client/Client.mjs +25 -15
  275. package/dist/esm/api/resources/root/client/Client.d.mts +4 -2
  276. package/dist/esm/api/resources/root/client/Client.mjs +25 -15
  277. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +4 -2
  278. package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +45 -27
  279. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +4 -2
  280. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +25 -15
  281. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.mts +4 -2
  282. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.mjs +5 -3
  283. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +4 -2
  284. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +5 -3
  285. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.mts +4 -2
  286. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.mjs +5 -3
  287. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +4 -2
  288. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +15 -9
  289. package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +4 -2
  290. package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.mjs +35 -21
  291. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.d.mts +4 -2
  292. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.mjs +25 -15
  293. package/dist/esm/api/resources/taskGroups/client/Client.d.mts +4 -2
  294. package/dist/esm/api/resources/taskGroups/client/Client.mjs +30 -18
  295. package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +4 -2
  296. package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +10 -6
  297. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +4 -2
  298. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +5 -3
  299. package/dist/esm/api/resources/tracking/client/Client.d.mts +13 -1
  300. package/dist/esm/api/resources/tracking/client/Client.mjs +20 -0
  301. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.d.mts +50 -0
  302. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.mjs +100 -0
  303. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/index.d.mts +2 -0
  304. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/index.mjs +1 -0
  305. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.d.mts +14 -0
  306. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.mts +1 -0
  307. package/dist/esm/api/resources/tracking/resources/cargoByDevice/index.d.mts +1 -0
  308. package/dist/esm/api/resources/tracking/resources/cargoByDevice/index.mjs +1 -0
  309. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.d.mts +5 -22
  310. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.mjs +6 -71
  311. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.mts +0 -1
  312. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +129 -0
  313. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +472 -0
  314. package/dist/esm/api/resources/tracking/resources/devices/client/index.d.mts +2 -0
  315. package/dist/esm/api/resources/tracking/resources/devices/client/index.mjs +1 -0
  316. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesDeleteRequest.d.mts +11 -0
  317. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesGetRequest.d.mts +11 -0
  318. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesLinkToCargoRequest.d.mts +14 -0
  319. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesRegisterToOrgReq1.d.mts +15 -0
  320. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesRegisterToOrgReq1.mjs +4 -0
  321. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoRequest.d.mts +12 -0
  322. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoRequest.mjs +4 -0
  323. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUpdateRequest1.d.mts +16 -0
  324. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUpdateRequest1.mjs +4 -0
  325. package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +6 -0
  326. package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.mjs +1 -0
  327. package/dist/esm/api/resources/tracking/resources/devices/index.d.mts +1 -0
  328. package/dist/esm/api/resources/tracking/resources/devices/index.mjs +1 -0
  329. package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +60 -0
  330. package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +106 -0
  331. package/dist/esm/api/resources/tracking/resources/driver/client/index.d.mts +2 -0
  332. package/dist/esm/api/resources/tracking/resources/driver/client/index.mjs +1 -0
  333. package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.d.mts → driver/client/requests/DriverUpdateReq.d.mts} +9 -2
  334. package/dist/esm/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.mjs +4 -0
  335. package/dist/esm/api/resources/tracking/resources/driver/client/requests/index.d.mts +1 -0
  336. package/dist/esm/api/resources/tracking/resources/driver/client/requests/index.mjs +1 -0
  337. package/dist/esm/api/resources/tracking/resources/driver/index.d.mts +1 -0
  338. package/dist/esm/api/resources/tracking/resources/driver/index.mjs +1 -0
  339. package/dist/esm/api/resources/tracking/resources/index.d.mts +8 -0
  340. package/dist/esm/api/resources/tracking/resources/index.mjs +8 -0
  341. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +240 -0
  342. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +936 -0
  343. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/index.d.mts +2 -0
  344. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/index.mjs +1 -0
  345. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.d.mts +13 -0
  346. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.mjs +4 -0
  347. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicRequest.d.mts +13 -0
  348. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicRequest.mjs +4 -0
  349. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsRequest.d.mts +13 -0
  350. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsRequest.mjs +4 -0
  351. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteRequest.d.mts +12 -0
  352. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteRequest.mjs +4 -0
  353. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceGetRequest.d.mts +12 -0
  354. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceGetRequest.mjs +4 -0
  355. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicRequest.d.mts +12 -0
  356. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicRequest.mjs +4 -0
  357. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenRequest.d.mts +12 -0
  358. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenRequest.mjs +4 -0
  359. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.d.mts +14 -0
  360. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.mjs +4 -0
  361. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingRequest.d.mts +12 -0
  362. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingRequest.mjs +4 -0
  363. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingRequest.d.mts +12 -0
  364. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingRequest.mjs +4 -0
  365. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartRequest.d.mts +12 -0
  366. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartRequest.mjs +4 -0
  367. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateRequest.d.mts +12 -0
  368. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateRequest.mjs +4 -0
  369. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceUpdateRequest1.d.mts +15 -0
  370. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceUpdateRequest1.mjs +4 -0
  371. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.mts +13 -0
  372. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/index.mjs +1 -0
  373. package/dist/esm/api/resources/tracking/resources/sessionByDevice/index.d.mts +1 -0
  374. package/dist/esm/api/resources/tracking/resources/sessionByDevice/index.mjs +1 -0
  375. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.mts +5 -22
  376. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.mjs +6 -71
  377. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.mts +0 -1
  378. package/dist/esm/api/resources/users/client/Client.d.mts +4 -2
  379. package/dist/esm/api/resources/users/client/Client.mjs +5 -3
  380. package/dist/esm/api/resources/utils/client/Client.d.mts +4 -2
  381. package/dist/esm/api/resources/utils/client/Client.mjs +5 -4
  382. package/dist/esm/api/resources/utils/client/requests/UtilsGetTimezoneRequest.d.mts +2 -6
  383. package/dist/esm/api/types/Cargo1.d.mts +1 -1
  384. package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +1 -1
  385. package/dist/esm/api/types/Device1.d.mts +21 -0
  386. package/dist/esm/api/types/Device1.mjs +4 -0
  387. package/dist/esm/api/types/DriverUpdateResp.d.mts +11 -0
  388. package/dist/esm/api/types/DriverUpdateResp.mjs +4 -0
  389. package/dist/esm/api/types/{LocationFeatureInputGeometry.d.mts → Geometry.d.mts} +2 -2
  390. package/dist/esm/api/types/Geometry.mjs +4 -0
  391. package/dist/esm/api/types/LocationFeature.d.mts +5 -1
  392. package/dist/esm/api/types/LocationProperties.d.mts +2 -0
  393. package/dist/esm/api/types/OutlierLabellerEnum.d.mts +8 -0
  394. package/dist/esm/api/types/OutlierLabellerEnum.mjs +7 -0
  395. package/dist/esm/api/types/Session1.d.mts +17 -0
  396. package/dist/esm/api/types/Session1.mjs +4 -0
  397. package/dist/esm/api/types/SessionByDeviceDeleteResponse1.d.mts +7 -0
  398. package/dist/esm/api/types/SessionByDeviceDeleteResponse1.mjs +4 -0
  399. package/dist/esm/api/types/SessionByDeviceMarkOutliersResponse1.d.mts +7 -0
  400. package/dist/esm/api/types/SessionByDeviceMarkOutliersResponse1.mjs +4 -0
  401. package/dist/esm/api/types/TrackingCargoByDeviceDataPoint1.d.mts +12 -0
  402. package/dist/esm/api/types/TrackingCargoByDeviceDataPoint1.mjs +4 -0
  403. package/dist/esm/api/types/TrackingCargoByDeviceDataPointMetadata1.d.mts +11 -0
  404. package/dist/esm/api/types/TrackingCargoByDeviceDataPointMetadata1.mjs +4 -0
  405. package/dist/esm/api/types/TrackingCargoByDriverDataPointMetadata1.d.mts +3 -0
  406. package/dist/esm/api/types/TrackingDeviceTypeEnum1.d.mts +9 -0
  407. package/dist/esm/api/types/TrackingDeviceTypeEnum1.mjs +8 -0
  408. package/dist/esm/api/types/TrackingSessionByDeviceDataPoint1.d.mts +12 -0
  409. package/dist/esm/api/types/TrackingSessionByDeviceDataPoint1.mjs +4 -0
  410. package/dist/esm/api/types/TrackingSessionByDeviceDataPointMetadata1.d.mts +9 -0
  411. package/dist/esm/api/types/TrackingSessionByDeviceDataPointMetadata1.mjs +4 -0
  412. package/dist/esm/api/types/TrackingTaskGroupByDriverDataPointMetadata1.d.mts +3 -0
  413. package/dist/esm/api/types/index.d.mts +12 -2
  414. package/dist/esm/api/types/index.mjs +12 -2
  415. package/dist/esm/core/auth/AuthProvider.d.mts +4 -0
  416. package/dist/esm/core/auth/AuthProvider.mjs +1 -0
  417. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  418. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  419. package/dist/esm/core/auth/index.d.mts +2 -0
  420. package/dist/esm/core/exports.d.mts +1 -0
  421. package/dist/esm/core/exports.mjs +1 -0
  422. package/dist/esm/core/fetcher/Fetcher.d.mts +2 -2
  423. package/dist/esm/core/fetcher/Fetcher.mjs +2 -2
  424. package/dist/esm/core/fetcher/index.d.mts +5 -5
  425. package/dist/esm/core/fetcher/index.mjs +2 -2
  426. package/dist/esm/core/fetcher/requestWithRetries.mjs +44 -8
  427. package/dist/esm/core/file/exports.d.mts +1 -0
  428. package/dist/esm/core/file/exports.mjs +1 -0
  429. package/dist/esm/core/file/file.d.mts +5 -0
  430. package/dist/esm/core/file/file.mjs +167 -0
  431. package/dist/esm/core/file/index.d.mts +2 -0
  432. package/dist/esm/core/file/index.mjs +2 -0
  433. package/dist/esm/core/file/types.d.mts +66 -0
  434. package/dist/esm/core/file/types.mjs +1 -0
  435. package/dist/esm/core/headers.d.mts +2 -2
  436. package/dist/esm/core/index.d.mts +1 -1
  437. package/dist/esm/core/index.mjs +1 -1
  438. package/dist/esm/exports.d.mts +1 -0
  439. package/dist/esm/exports.mjs +1 -0
  440. package/dist/esm/index.d.mts +1 -0
  441. package/dist/esm/index.mjs +1 -0
  442. package/dist/esm/version.d.mts +1 -1
  443. package/dist/esm/version.mjs +1 -1
  444. package/package.json +1 -1
  445. package/reference.md +1456 -29
  446. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.d.ts +0 -19
  447. package/dist/cjs/api/types/LocationFeatureOutputGeometry.d.ts +0 -28
  448. package/dist/cjs/core/file.d.ts +0 -1
  449. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/CargoByDriverUpdateReq.d.mts +0 -19
  450. package/dist/esm/api/types/LocationFeatureOutputGeometry.d.mts +0 -28
  451. package/dist/esm/core/file.d.mts +0 -1
  452. /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver/client/requests/CargoByDriverUpdateReq.js → cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.js} +0 -0
  453. /package/dist/cjs/{core/file.js → api/resources/tracking/resources/cargoByDevice/client/requests/index.js} +0 -0
  454. /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.js → devices/client/requests/DevicesDeleteRequest.js} +0 -0
  455. /package/dist/cjs/api/{types/LocationFeatureInputGeometry.js → resources/tracking/resources/devices/client/requests/DevicesGetRequest.js} +0 -0
  456. /package/dist/cjs/api/{types/LocationFeatureOutputGeometry.js → resources/tracking/resources/devices/client/requests/DevicesLinkToCargoRequest.js} +0 -0
  457. /package/dist/esm/api/resources/tracking/resources/{cargoByDriver/client/requests/CargoByDriverUpdateReq.mjs → cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.mjs} +0 -0
  458. /package/dist/esm/{core/file.mjs → api/resources/tracking/resources/cargoByDevice/client/requests/index.mjs} +0 -0
  459. /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.mjs → devices/client/requests/DevicesDeleteRequest.mjs} +0 -0
  460. /package/dist/esm/api/{types/LocationFeatureInputGeometry.mjs → resources/tracking/resources/devices/client/requests/DevicesGetRequest.mjs} +0 -0
  461. /package/dist/esm/api/{types/LocationFeatureOutputGeometry.mjs → resources/tracking/resources/devices/client/requests/DevicesLinkToCargoRequest.mjs} +0 -0
@@ -69,10 +69,12 @@ class Dev {
69
69
  __getUserId(requestOptions) {
70
70
  return __awaiter(this, void 0, void 0, function* () {
71
71
  var _a, _b, _c, _d;
72
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/user_id"),
72
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
73
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
74
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/user_id"),
74
75
  method: "GET",
75
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: _headers,
77
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
76
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
77
79
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
78
80
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -118,10 +120,12 @@ class Dev {
118
120
  __getDecodedJwt(requestOptions) {
119
121
  return __awaiter(this, void 0, void 0, function* () {
120
122
  var _a, _b, _c, _d;
121
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
122
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/decoded_jwt"),
123
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
124
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
125
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/decoded_jwt"),
123
126
  method: "GET",
124
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
127
+ headers: _headers,
128
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
125
129
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
126
130
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
127
131
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -167,10 +171,12 @@ class Dev {
167
171
  __getEmail(requestOptions) {
168
172
  return __awaiter(this, void 0, void 0, function* () {
169
173
  var _a, _b, _c, _d;
170
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
171
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/email"),
174
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
175
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
176
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/email"),
172
177
  method: "GET",
173
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
+ headers: _headers,
179
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
174
180
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
175
181
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
176
182
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -216,10 +222,12 @@ class Dev {
216
222
  __getTemplate(requestOptions) {
217
223
  return __awaiter(this, void 0, void 0, function* () {
218
224
  var _a, _b, _c, _d;
219
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
220
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/template"),
225
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
226
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
227
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/template"),
221
228
  method: "GET",
222
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
+ headers: _headers,
230
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
223
231
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
224
232
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
225
233
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -272,11 +280,13 @@ class Dev {
272
280
  __createTemplate(request, requestOptions) {
273
281
  return __awaiter(this, void 0, void 0, function* () {
274
282
  var _a, _b, _c, _d;
275
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
276
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/template"),
283
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
284
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
285
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/template"),
277
286
  method: "POST",
278
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
287
+ headers: _headers,
279
288
  contentType: "application/json",
289
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
280
290
  requestType: "json",
281
291
  body: request,
282
292
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -329,10 +339,12 @@ class Dev {
329
339
  __getGitInfo(requestOptions) {
330
340
  return __awaiter(this, void 0, void 0, function* () {
331
341
  var _a, _b, _c, _d;
332
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
333
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/git_info"),
342
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
343
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
344
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/git_info"),
334
345
  method: "GET",
335
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
346
+ headers: _headers,
347
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
336
348
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
337
349
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
338
350
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -11,7 +11,7 @@ export declare namespace Drivers {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  fetcher?: core.FetchFunction;
16
16
  }
17
17
  interface RequestOptions {
@@ -21,8 +21,10 @@ export declare namespace Drivers {
21
21
  maxRetries?: number;
22
22
  /** A hook to abort the request. */
23
23
  abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
24
26
  /** Additional headers to include in the request. */
25
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
26
28
  }
27
29
  }
28
30
  export declare class Drivers {
@@ -129,7 +131,14 @@ export declare class Drivers {
129
131
  * @example
130
132
  * await client.drivers.lastSeen({
131
133
  * location: {
132
- * type: "Feature"
134
+ * type: "Feature",
135
+ * geometry: {
136
+ * type: "GeometryCollection",
137
+ * geometries: [{
138
+ * type: "LineString",
139
+ * coordinates: [[]]
140
+ * }]
141
+ * }
133
142
  * }
134
143
  * })
135
144
  */
@@ -69,10 +69,12 @@ class Drivers {
69
69
  __listOrgMembersAndDrivers(requestOptions) {
70
70
  return __awaiter(this, void 0, void 0, function* () {
71
71
  var _a, _b, _c, _d;
72
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/drivers/org_members_and_drivers/list"),
72
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
73
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
74
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/org_members_and_drivers/list"),
74
75
  method: "GET",
75
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: _headers,
77
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
76
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
77
79
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
78
80
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -118,10 +120,12 @@ class Drivers {
118
120
  __list(requestOptions) {
119
121
  return __awaiter(this, void 0, void 0, function* () {
120
122
  var _a, _b, _c, _d;
121
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
122
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/drivers/list"),
123
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
124
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
125
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/list"),
123
126
  method: "GET",
124
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
127
+ headers: _headers,
128
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
125
129
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
126
130
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
127
131
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -175,11 +179,13 @@ class Drivers {
175
179
  __create(request, requestOptions) {
176
180
  return __awaiter(this, void 0, void 0, function* () {
177
181
  var _a, _b, _c, _d;
178
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
179
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/drivers/create"),
182
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
183
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
184
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/create"),
180
185
  method: "POST",
181
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
186
+ headers: _headers,
182
187
  contentType: "application/json",
188
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
183
189
  requestType: "json",
184
190
  body: request,
185
191
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -232,10 +238,12 @@ class Drivers {
232
238
  __get(requestOptions) {
233
239
  return __awaiter(this, void 0, void 0, function* () {
234
240
  var _a, _b, _c, _d;
235
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
236
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/drivers/by_jwt_user_id"),
241
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
242
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
243
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/by_jwt_user_id"),
237
244
  method: "GET",
238
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
245
+ headers: _headers,
246
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
239
247
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
240
248
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
241
249
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -284,10 +292,12 @@ class Drivers {
284
292
  __getByDriverId(driverId, requestOptions) {
285
293
  return __awaiter(this, void 0, void 0, function* () {
286
294
  var _a, _b, _c, _d;
287
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
288
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/drivers/${encodeURIComponent(driverId)}`),
295
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
296
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
297
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/drivers/${encodeURIComponent(driverId)}`),
289
298
  method: "GET",
290
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
299
+ headers: _headers,
300
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
291
301
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
292
302
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
293
303
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -341,10 +351,12 @@ class Drivers {
341
351
  __delete(driverId, requestOptions) {
342
352
  return __awaiter(this, void 0, void 0, function* () {
343
353
  var _a, _b, _c, _d;
344
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
345
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/drivers/${encodeURIComponent(driverId)}`),
354
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
355
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
356
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/drivers/${encodeURIComponent(driverId)}`),
346
357
  method: "DELETE",
347
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
358
+ headers: _headers,
359
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
348
360
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
349
361
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
350
362
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -401,11 +413,13 @@ class Drivers {
401
413
  __setActivation(request, requestOptions) {
402
414
  return __awaiter(this, void 0, void 0, function* () {
403
415
  var _a, _b, _c, _d;
404
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
405
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/drivers/set_activation"),
416
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
417
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
418
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/set_activation"),
406
419
  method: "POST",
407
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
420
+ headers: _headers,
408
421
  contentType: "application/json",
422
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
409
423
  requestType: "json",
410
424
  body: request,
411
425
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -455,7 +469,14 @@ class Drivers {
455
469
  * @example
456
470
  * await client.drivers.lastSeen({
457
471
  * location: {
458
- * type: "Feature"
472
+ * type: "Feature",
473
+ * geometry: {
474
+ * type: "GeometryCollection",
475
+ * geometries: [{
476
+ * type: "LineString",
477
+ * coordinates: [[]]
478
+ * }]
479
+ * }
459
480
  * }
460
481
  * })
461
482
  */
@@ -465,11 +486,13 @@ class Drivers {
465
486
  __lastSeen(request, requestOptions) {
466
487
  return __awaiter(this, void 0, void 0, function* () {
467
488
  var _a, _b, _c, _d;
468
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
469
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/drivers/last_seen"),
489
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
490
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
491
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/last_seen"),
470
492
  method: "POST",
471
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
493
+ headers: _headers,
472
494
  contentType: "application/json",
495
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
473
496
  requestType: "json",
474
497
  body: request,
475
498
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -522,10 +545,12 @@ class Drivers {
522
545
  __lastSeenClear(requestOptions) {
523
546
  return __awaiter(this, void 0, void 0, function* () {
524
547
  var _a, _b, _c, _d;
525
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
526
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/drivers/last_seen/clear"),
548
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
549
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
550
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/last_seen/clear"),
527
551
  method: "POST",
528
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
552
+ headers: _headers,
553
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
529
554
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
530
555
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
531
556
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -576,11 +601,13 @@ class Drivers {
576
601
  __updateDriver(request, requestOptions) {
577
602
  return __awaiter(this, void 0, void 0, function* () {
578
603
  var _a, _b, _c, _d;
579
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
580
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/drivers/update"),
604
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
605
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
606
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/update"),
581
607
  method: "PATCH",
582
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
608
+ headers: _headers,
583
609
  contentType: "application/json",
610
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
584
611
  requestType: "json",
585
612
  body: request,
586
613
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -6,7 +6,14 @@ import * as Chrt from "../../../../index.js";
6
6
  * @example
7
7
  * {
8
8
  * location: {
9
- * type: "Feature"
9
+ * type: "Feature",
10
+ * geometry: {
11
+ * type: "GeometryCollection",
12
+ * geometries: [{
13
+ * type: "LineString",
14
+ * coordinates: [[]]
15
+ * }]
16
+ * }
10
17
  * }
11
18
  * }
12
19
  */
@@ -11,7 +11,7 @@ export declare namespace MilestoneNotifications {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  fetcher?: core.FetchFunction;
16
16
  }
17
17
  interface RequestOptions {
@@ -21,8 +21,10 @@ export declare namespace MilestoneNotifications {
21
21
  maxRetries?: number;
22
22
  /** A hook to abort the request. */
23
23
  abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
24
26
  /** Additional headers to include in the request. */
25
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
26
28
  }
27
29
  }
28
30
  export declare class MilestoneNotifications {
@@ -69,10 +69,12 @@ class MilestoneNotifications {
69
69
  __getPreferences(requestOptions) {
70
70
  return __awaiter(this, void 0, void 0, function* () {
71
71
  var _a, _b, _c, _d;
72
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/milestone_notification_preferences/"),
72
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
73
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
74
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/milestone_notification_preferences/"),
74
75
  method: "GET",
75
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: _headers,
77
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
76
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
77
79
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
78
80
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -126,11 +128,13 @@ class MilestoneNotifications {
126
128
  __upsertPreferences(request, requestOptions) {
127
129
  return __awaiter(this, void 0, void 0, function* () {
128
130
  var _a, _b, _c, _d;
129
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
130
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/milestone_notification_preferences/upsert"),
131
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
132
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
133
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/milestone_notification_preferences/upsert"),
131
134
  method: "POST",
132
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
135
+ headers: _headers,
133
136
  contentType: "application/json",
137
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
134
138
  requestType: "json",
135
139
  body: request,
136
140
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -13,7 +13,7 @@ export declare namespace Milestones {
13
13
  baseUrl?: core.Supplier<string>;
14
14
  token?: core.Supplier<core.BearerToken | undefined>;
15
15
  /** Additional headers to include in requests. */
16
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
16
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
17
17
  fetcher?: core.FetchFunction;
18
18
  }
19
19
  interface RequestOptions {
@@ -23,8 +23,10 @@ export declare namespace Milestones {
23
23
  maxRetries?: number;
24
24
  /** A hook to abort the request. */
25
25
  abortSignal?: AbortSignal;
26
+ /** Additional query string parameters to include in the request. */
27
+ queryParams?: Record<string, unknown>;
26
28
  /** Additional headers to include in the request. */
27
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
29
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
30
  }
29
31
  }
30
32
  export declare class Milestones {
@@ -84,11 +84,13 @@ class Milestones {
84
84
  __update(request, requestOptions) {
85
85
  return __awaiter(this, void 0, void 0, function* () {
86
86
  var _a, _b, _c, _d;
87
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
88
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/milestones/update"),
87
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
88
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
89
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/milestones/update"),
89
90
  method: "POST",
90
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
+ headers: _headers,
91
92
  contentType: "application/json",
93
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
92
94
  requestType: "json",
93
95
  body: request,
94
96
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -147,11 +149,13 @@ class Milestones {
147
149
  __addToTask(request, requestOptions) {
148
150
  return __awaiter(this, void 0, void 0, function* () {
149
151
  var _a, _b, _c, _d;
150
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
151
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/milestones/add_to_task"),
152
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
153
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
154
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/milestones/add_to_task"),
152
155
  method: "POST",
153
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
+ headers: _headers,
154
157
  contentType: "application/json",
158
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
155
159
  requestType: "json",
156
160
  body: request,
157
161
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -10,7 +10,7 @@ export declare namespace Blurhash {
10
10
  baseUrl?: core.Supplier<string>;
11
11
  token?: core.Supplier<core.BearerToken | undefined>;
12
12
  /** Additional headers to include in requests. */
13
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
13
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
14
14
  fetcher?: core.FetchFunction;
15
15
  }
16
16
  interface RequestOptions {
@@ -20,8 +20,10 @@ export declare namespace Blurhash {
20
20
  maxRetries?: number;
21
21
  /** A hook to abort the request. */
22
22
  abortSignal?: AbortSignal;
23
+ /** Additional query string parameters to include in the request. */
24
+ queryParams?: Record<string, unknown>;
23
25
  /** Additional headers to include in the request. */
24
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
25
27
  }
26
28
  }
27
29
  export declare class Blurhash {
@@ -72,10 +72,12 @@ class Blurhash {
72
72
  __getByMetadataId(milestoneS3ObjectMetadataId, requestOptions) {
73
73
  return __awaiter(this, void 0, void 0, function* () {
74
74
  var _a, _b, _c, _d;
75
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/milestones/blurhash/${encodeURIComponent(milestoneS3ObjectMetadataId)}`),
75
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
76
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
77
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/milestones/blurhash/${encodeURIComponent(milestoneS3ObjectMetadataId)}`),
77
78
  method: "GET",
78
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: _headers,
80
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
79
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
80
82
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
81
83
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -11,7 +11,7 @@ export declare namespace Images {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  fetcher?: core.FetchFunction;
16
16
  }
17
17
  interface RequestOptions {
@@ -21,8 +21,10 @@ export declare namespace Images {
21
21
  maxRetries?: number;
22
22
  /** A hook to abort the request. */
23
23
  abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
24
26
  /** Additional headers to include in the request. */
25
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
26
28
  }
27
29
  }
28
30
  export declare class Images {
@@ -38,6 +40,7 @@ export declare class Images {
38
40
  * @throws {@link Chrt.UnprocessableEntityError}
39
41
  *
40
42
  * @example
43
+ * import { createReadStream } from "fs";
41
44
  * await client.milestones.images.uploadByMilestoneId("milestone_id", {
42
45
  * image: fs.createReadStream("/path/to/your/file")
43
46
  * })