@chrt-inc/typescript-sdk 1.326.0 → 1.331.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 (418) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.d.ts +4 -4
  3. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.js +4 -4
  4. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.ts +1 -1
  5. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.js +1 -1
  6. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.ts +1 -1
  7. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.js +1 -1
  8. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +4 -4
  9. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +4 -4
  10. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +6 -6
  11. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +6 -6
  12. package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.d.ts +4 -4
  13. package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.js +4 -4
  14. package/dist/cjs/api/resources/drivers/client/Client.d.ts +2 -1
  15. package/dist/cjs/api/resources/drivers/client/Client.js +20 -3
  16. package/dist/cjs/api/resources/drivers/client/requests/DriverClientCreate1.d.ts +2 -0
  17. package/dist/cjs/api/resources/orders/resources/expanded/client/Client.d.ts +2 -2
  18. package/dist/cjs/api/resources/orders/resources/expanded/client/Client.js +2 -2
  19. package/dist/cjs/api/resources/payments/client/Client.d.ts +5 -5
  20. package/dist/cjs/api/resources/payments/client/Client.js +5 -5
  21. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +5 -5
  22. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +5 -5
  23. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.ts +1 -1
  24. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.js +1 -1
  25. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +1 -1
  26. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +1 -1
  27. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.ts +1 -1
  28. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.js +1 -1
  29. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +3 -3
  30. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +3 -3
  31. package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +7 -7
  32. package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.js +7 -7
  33. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.d.ts +5 -5
  34. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.js +5 -5
  35. package/dist/cjs/api/resources/shipperPayCourierStatements/client/Client.d.ts +7 -7
  36. package/dist/cjs/api/resources/shipperPayCourierStatements/client/Client.js +7 -7
  37. package/dist/cjs/api/resources/tracking/client/Client.d.ts +9 -12
  38. package/dist/cjs/api/resources/tracking/client/Client.js +15 -20
  39. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +25 -25
  40. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +73 -73
  41. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +1 -1
  42. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +1 -2
  43. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +1 -2
  44. package/dist/cjs/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.d.ts +0 -2
  45. package/dist/cjs/api/resources/tracking/resources/index.d.ts +5 -8
  46. package/dist/cjs/api/resources/tracking/resources/index.js +6 -9
  47. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +164 -0
  48. package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → sessions}/client/Client.js +50 -394
  49. package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.d.ts → sessions/client/requests/SessionCreateSessionRequest1.d.ts} +1 -1
  50. package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceUpdateRequest1.d.ts → sessions/client/requests/SessionUpdateRequest1.d.ts} +1 -1
  51. package/dist/{esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceGetV1Request.d.mts → cjs/api/resources/tracking/resources/sessions/client/requests/SessionsDeleteV1Request.d.ts} +1 -1
  52. package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceGetV1Request.d.ts → sessions/client/requests/SessionsGetV1Request.d.ts} +1 -1
  53. package/dist/{esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteV1Request.d.mts → cjs/api/resources/tracking/resources/sessions/client/requests/SessionsPauseRecordingV1Request.d.ts} +1 -1
  54. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsResumeRecordingV1Request.d.ts +12 -0
  55. package/dist/{esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartV1Request.d.mts → cjs/api/resources/tracking/resources/sessions/client/requests/SessionsStartV1Request.d.ts} +1 -1
  56. package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceStartV1Request.d.ts → sessions/client/requests/SessionsTerminateV1Request.d.ts} +1 -1
  57. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +8 -0
  58. package/dist/cjs/api/resources/tracking/resources/sharing/client/Client.d.ts +100 -0
  59. package/dist/cjs/api/resources/tracking/resources/sharing/client/Client.js +330 -0
  60. package/dist/cjs/api/resources/tracking/resources/sharing/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.ts +18 -0
  61. package/dist/cjs/api/resources/tracking/resources/sharing/client/requests/CargoByDriverSharingSettingsUpdateReq.d.ts +18 -0
  62. package/dist/cjs/api/resources/tracking/resources/sharing/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.ts +16 -0
  63. package/dist/cjs/api/resources/tracking/resources/sharing/client/requests/index.d.ts +3 -0
  64. package/dist/cjs/api/resources/tracking/resources/timeseries/client/Client.d.ts +32 -0
  65. package/dist/cjs/api/resources/tracking/resources/timeseries/client/Client.js +32 -0
  66. package/dist/cjs/api/resources/tracking/resources/timeseries/index.d.ts +2 -0
  67. package/dist/cjs/api/resources/tracking/resources/timeseries/index.js +18 -0
  68. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.d.ts +116 -0
  69. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.js +414 -0
  70. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsPublicV1Request.d.ts +16 -0
  71. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsV1Request.d.ts +16 -0
  72. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenPublicV1Request.d.ts +14 -0
  73. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.d.ts +14 -0
  74. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/index.d.ts +5 -0
  75. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.d.ts +100 -0
  76. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.js +346 -0
  77. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsPublicV1Request.d.ts +16 -0
  78. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsV1Request.d.ts +16 -0
  79. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverLastSeenPublicV1Request.d.ts +14 -0
  80. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.d.ts +4 -0
  81. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.js +2 -0
  82. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/index.d.ts +8 -0
  83. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/index.js +47 -0
  84. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.ts +112 -0
  85. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.js +406 -0
  86. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/index.d.ts +2 -0
  87. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/index.js +17 -0
  88. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.d.ts +5 -0
  89. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.js +2 -0
  90. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/index.d.ts +1 -0
  91. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/index.js +17 -0
  92. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.ts +96 -0
  93. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.js +338 -0
  94. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/index.d.ts +2 -0
  95. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/index.js +17 -0
  96. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsPublicV1Request.d.ts +14 -0
  97. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsPublicV1Request.js +5 -0
  98. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsV1Request.d.ts +14 -0
  99. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsV1Request.js +5 -0
  100. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenPublicV1Request.d.ts +12 -0
  101. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenPublicV1Request.js +5 -0
  102. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenV1Request.js +5 -0
  103. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.d.ts +4 -0
  104. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.js +2 -0
  105. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/index.d.ts +1 -0
  106. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/index.js +17 -0
  107. package/dist/cjs/api/types/{TrackingCargoByDeviceDataPoint1.d.ts → CargoByDeviceDataPoint1.d.ts} +2 -2
  108. package/dist/cjs/api/types/CargoByDeviceDataPoint1.js +5 -0
  109. package/dist/cjs/api/types/{TrackingCargoByDeviceDataPointMetadata1.d.ts → CargoByDeviceDataPointMetadata1.d.ts} +3 -3
  110. package/dist/cjs/api/types/CargoByDeviceDataPointMetadata1.js +5 -0
  111. package/dist/cjs/api/types/CargoByDeviceMarkOutliersResponse1.d.ts +7 -0
  112. package/dist/cjs/api/types/CargoByDeviceMarkOutliersResponse1.js +5 -0
  113. package/dist/cjs/api/types/CargoByDeviceSharingSettings1.d.ts +16 -0
  114. package/dist/cjs/api/types/CargoByDeviceSharingSettings1.js +5 -0
  115. package/dist/cjs/api/types/{TrackingCargoByDriverDataPoint1.d.ts → CargoByDriverDataPoint1.d.ts} +2 -2
  116. package/dist/cjs/api/types/CargoByDriverDataPoint1.js +5 -0
  117. package/dist/cjs/api/types/{TrackingCargoByDriverDataPointMetadata1.d.ts → CargoByDriverDataPointMetadata1.d.ts} +3 -3
  118. package/dist/cjs/api/types/CargoByDriverDataPointMetadata1.js +5 -0
  119. package/dist/cjs/api/types/CargoByDriverSharingSettings1.d.ts +16 -0
  120. package/dist/cjs/api/types/CargoByDriverSharingSettings1.js +5 -0
  121. package/dist/cjs/api/types/Driver1.d.ts +1 -1
  122. package/dist/cjs/api/types/DriverUpdateRes.d.ts +1 -1
  123. package/dist/cjs/api/types/{TrackingSessionByDeviceDataPoint1.d.ts → SessionByDeviceDataPoint1.d.ts} +2 -2
  124. package/dist/cjs/api/types/SessionByDeviceDataPoint1.js +5 -0
  125. package/dist/cjs/api/types/{TrackingSessionByDeviceDataPointMetadata1.d.ts → SessionByDeviceDataPointMetadata1.d.ts} +1 -1
  126. package/dist/cjs/api/types/SessionByDeviceDataPointMetadata1.js +5 -0
  127. package/dist/cjs/api/types/{SessionByDeviceDeleteResponse1.d.ts → SessionDeleteResponse1.d.ts} +1 -1
  128. package/dist/cjs/api/types/SessionDeleteResponse1.js +5 -0
  129. package/dist/cjs/api/types/{TrackingTaskGroupByDriverDataPoint1.d.ts → TaskGroupByDriverDataPoint1.d.ts} +2 -2
  130. package/dist/cjs/api/types/TaskGroupByDriverDataPoint1.js +5 -0
  131. package/dist/cjs/api/types/{TrackingTaskGroupByDriverDataPointMetadata1.d.ts → TaskGroupByDriverDataPointMetadata1.d.ts} +2 -2
  132. package/dist/cjs/api/types/TaskGroupByDriverDataPointMetadata1.js +5 -0
  133. package/dist/cjs/api/types/TaskGroupByDriverSharingSettings1.d.ts +15 -0
  134. package/dist/cjs/api/types/TaskGroupByDriverSharingSettings1.js +5 -0
  135. package/dist/cjs/api/types/TrackingSharingSettingsRes.d.ts +11 -0
  136. package/dist/cjs/api/types/TrackingSharingSettingsRes.js +5 -0
  137. package/dist/cjs/api/types/index.d.ts +14 -9
  138. package/dist/cjs/api/types/index.js +14 -9
  139. package/dist/cjs/version.d.ts +1 -1
  140. package/dist/cjs/version.js +1 -1
  141. package/dist/esm/Client.mjs +2 -2
  142. package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.d.mts +4 -4
  143. package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.mjs +4 -4
  144. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.mts +1 -1
  145. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.mjs +1 -1
  146. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.mts +1 -1
  147. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.mjs +1 -1
  148. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +4 -4
  149. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +4 -4
  150. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +6 -6
  151. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +6 -6
  152. package/dist/esm/api/resources/courierPayDriverStatements/client/Client.d.mts +4 -4
  153. package/dist/esm/api/resources/courierPayDriverStatements/client/Client.mjs +4 -4
  154. package/dist/esm/api/resources/drivers/client/Client.d.mts +2 -1
  155. package/dist/esm/api/resources/drivers/client/Client.mjs +20 -3
  156. package/dist/esm/api/resources/drivers/client/requests/DriverClientCreate1.d.mts +2 -0
  157. package/dist/esm/api/resources/orders/resources/expanded/client/Client.d.mts +2 -2
  158. package/dist/esm/api/resources/orders/resources/expanded/client/Client.mjs +2 -2
  159. package/dist/esm/api/resources/payments/client/Client.d.mts +5 -5
  160. package/dist/esm/api/resources/payments/client/Client.mjs +5 -5
  161. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +5 -5
  162. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +5 -5
  163. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.mts +1 -1
  164. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.mjs +1 -1
  165. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +1 -1
  166. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +1 -1
  167. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.mts +1 -1
  168. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.mjs +1 -1
  169. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +3 -3
  170. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +3 -3
  171. package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +7 -7
  172. package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.mjs +7 -7
  173. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.d.mts +5 -5
  174. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.mjs +5 -5
  175. package/dist/esm/api/resources/shipperPayCourierStatements/client/Client.d.mts +7 -7
  176. package/dist/esm/api/resources/shipperPayCourierStatements/client/Client.mjs +7 -7
  177. package/dist/esm/api/resources/tracking/client/Client.d.mts +9 -12
  178. package/dist/esm/api/resources/tracking/client/Client.mjs +11 -16
  179. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +25 -25
  180. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +73 -73
  181. package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +1 -1
  182. package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +1 -2
  183. package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +1 -2
  184. package/dist/esm/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.d.mts +0 -2
  185. package/dist/esm/api/resources/tracking/resources/index.d.mts +5 -8
  186. package/dist/esm/api/resources/tracking/resources/index.mjs +5 -8
  187. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +164 -0
  188. package/dist/esm/api/resources/tracking/resources/{sessionByDevice → sessions}/client/Client.mjs +48 -392
  189. package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.d.mts → sessions/client/requests/SessionCreateSessionRequest1.d.mts} +1 -1
  190. package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceUpdateRequest1.d.mts → sessions/client/requests/SessionUpdateRequest1.d.mts} +1 -1
  191. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsDeleteV1Request.d.mts +12 -0
  192. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsGetV1Request.d.mts +12 -0
  193. package/dist/{cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteV1Request.d.ts → esm/api/resources/tracking/resources/sessions/client/requests/SessionsPauseRecordingV1Request.d.mts} +1 -1
  194. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsResumeRecordingV1Request.d.mts +12 -0
  195. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsStartV1Request.d.mts +12 -0
  196. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsTerminateV1Request.d.mts +12 -0
  197. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +8 -0
  198. package/dist/esm/api/resources/tracking/resources/sharing/client/Client.d.mts +100 -0
  199. package/dist/esm/api/resources/tracking/resources/sharing/client/Client.mjs +293 -0
  200. package/dist/esm/api/resources/tracking/resources/sharing/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.mts +18 -0
  201. package/dist/esm/api/resources/tracking/resources/sharing/client/requests/CargoByDriverSharingSettingsUpdateReq.d.mts +18 -0
  202. package/dist/esm/api/resources/tracking/resources/sharing/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.mts +16 -0
  203. package/dist/esm/api/resources/tracking/resources/sharing/client/requests/index.d.mts +3 -0
  204. package/dist/esm/api/resources/tracking/resources/timeseries/client/Client.d.mts +32 -0
  205. package/dist/esm/api/resources/tracking/resources/timeseries/client/Client.mjs +28 -0
  206. package/dist/esm/api/resources/tracking/resources/timeseries/client/index.mjs +1 -0
  207. package/dist/esm/api/resources/tracking/resources/timeseries/index.d.mts +2 -0
  208. package/dist/esm/api/resources/tracking/resources/timeseries/index.mjs +2 -0
  209. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.d.mts +116 -0
  210. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.mjs +377 -0
  211. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsPublicV1Request.d.mts +16 -0
  212. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsV1Request.d.mts +16 -0
  213. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenPublicV1Request.d.mts +14 -0
  214. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.d.mts +14 -0
  215. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/index.d.mts +5 -0
  216. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/index.mjs +1 -0
  217. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.d.mts +100 -0
  218. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.mjs +309 -0
  219. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsPublicV1Request.d.mts +16 -0
  220. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsV1Request.d.mts +16 -0
  221. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverLastSeenPublicV1Request.d.mts +14 -0
  222. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.d.mts +4 -0
  223. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.mjs +1 -0
  224. package/dist/esm/api/resources/tracking/resources/timeseries/resources/index.d.mts +8 -0
  225. package/dist/esm/api/resources/tracking/resources/timeseries/resources/index.mjs +8 -0
  226. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.mts +112 -0
  227. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +369 -0
  228. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/index.d.mts +2 -0
  229. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/index.mjs +1 -0
  230. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.d.mts +5 -0
  231. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.mjs +1 -0
  232. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/index.d.mts +1 -0
  233. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/index.mjs +1 -0
  234. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.mts +96 -0
  235. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.mjs +301 -0
  236. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/index.d.mts +2 -0
  237. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/index.mjs +1 -0
  238. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsPublicV1Request.d.mts +14 -0
  239. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsPublicV1Request.mjs +4 -0
  240. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsV1Request.d.mts +14 -0
  241. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsV1Request.mjs +4 -0
  242. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenPublicV1Request.d.mts +12 -0
  243. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenPublicV1Request.mjs +4 -0
  244. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenV1Request.mjs +4 -0
  245. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.d.mts +4 -0
  246. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.mjs +1 -0
  247. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/index.d.mts +1 -0
  248. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/index.mjs +1 -0
  249. package/dist/esm/api/types/{TrackingCargoByDeviceDataPoint1.d.mts → CargoByDeviceDataPoint1.d.mts} +2 -2
  250. package/dist/esm/api/types/CargoByDeviceDataPoint1.mjs +4 -0
  251. package/dist/esm/api/types/{TrackingCargoByDeviceDataPointMetadata1.d.mts → CargoByDeviceDataPointMetadata1.d.mts} +3 -3
  252. package/dist/esm/api/types/CargoByDeviceDataPointMetadata1.mjs +4 -0
  253. package/dist/esm/api/types/CargoByDeviceMarkOutliersResponse1.d.mts +7 -0
  254. package/dist/esm/api/types/CargoByDeviceMarkOutliersResponse1.mjs +4 -0
  255. package/dist/esm/api/types/CargoByDeviceSharingSettings1.d.mts +16 -0
  256. package/dist/esm/api/types/CargoByDeviceSharingSettings1.mjs +4 -0
  257. package/dist/esm/api/types/{TrackingCargoByDriverDataPoint1.d.mts → CargoByDriverDataPoint1.d.mts} +2 -2
  258. package/dist/esm/api/types/CargoByDriverDataPoint1.mjs +4 -0
  259. package/dist/esm/api/types/{TrackingCargoByDriverDataPointMetadata1.d.mts → CargoByDriverDataPointMetadata1.d.mts} +3 -3
  260. package/dist/esm/api/types/CargoByDriverDataPointMetadata1.mjs +4 -0
  261. package/dist/esm/api/types/CargoByDriverSharingSettings1.d.mts +16 -0
  262. package/dist/esm/api/types/CargoByDriverSharingSettings1.mjs +4 -0
  263. package/dist/esm/api/types/Driver1.d.mts +1 -1
  264. package/dist/esm/api/types/DriverUpdateRes.d.mts +1 -1
  265. package/dist/esm/api/types/{TrackingSessionByDeviceDataPoint1.d.mts → SessionByDeviceDataPoint1.d.mts} +2 -2
  266. package/dist/esm/api/types/SessionByDeviceDataPoint1.mjs +4 -0
  267. package/dist/esm/api/types/{TrackingSessionByDeviceDataPointMetadata1.d.mts → SessionByDeviceDataPointMetadata1.d.mts} +1 -1
  268. package/dist/esm/api/types/SessionByDeviceDataPointMetadata1.mjs +4 -0
  269. package/dist/esm/api/types/{SessionByDeviceDeleteResponse1.d.mts → SessionDeleteResponse1.d.mts} +1 -1
  270. package/dist/esm/api/types/SessionDeleteResponse1.mjs +4 -0
  271. package/dist/esm/api/types/{TrackingTaskGroupByDriverDataPoint1.d.mts → TaskGroupByDriverDataPoint1.d.mts} +2 -2
  272. package/dist/esm/api/types/TaskGroupByDriverDataPoint1.mjs +4 -0
  273. package/dist/esm/api/types/{TrackingTaskGroupByDriverDataPointMetadata1.d.mts → TaskGroupByDriverDataPointMetadata1.d.mts} +2 -2
  274. package/dist/esm/api/types/TaskGroupByDriverDataPointMetadata1.mjs +4 -0
  275. package/dist/esm/api/types/TaskGroupByDriverSharingSettings1.d.mts +15 -0
  276. package/dist/esm/api/types/TaskGroupByDriverSharingSettings1.mjs +4 -0
  277. package/dist/esm/api/types/TrackingSharingSettingsRes.d.mts +11 -0
  278. package/dist/esm/api/types/TrackingSharingSettingsRes.mjs +4 -0
  279. package/dist/esm/api/types/index.d.mts +14 -9
  280. package/dist/esm/api/types/index.mjs +14 -9
  281. package/dist/esm/version.d.mts +1 -1
  282. package/dist/esm/version.mjs +1 -1
  283. package/package.json +1 -1
  284. package/reference.md +1150 -217
  285. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.d.ts +0 -50
  286. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.js +0 -137
  287. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.ts +0 -1
  288. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.d.ts +0 -50
  289. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.js +0 -137
  290. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.ts +0 -1
  291. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +0 -242
  292. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingV1Request.d.ts +0 -12
  293. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingV1Request.d.ts +0 -12
  294. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateV1Request.d.ts +0 -12
  295. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.ts +0 -13
  296. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.ts +0 -49
  297. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.js +0 -135
  298. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.ts +0 -1
  299. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.d.mts +0 -50
  300. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.mjs +0 -100
  301. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.mts +0 -1
  302. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.d.mts +0 -50
  303. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.mjs +0 -100
  304. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.mts +0 -1
  305. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +0 -242
  306. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingV1Request.d.mts +0 -12
  307. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingV1Request.d.mts +0 -12
  308. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateV1Request.d.mts +0 -12
  309. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.mts +0 -13
  310. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.mts +0 -49
  311. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.mjs +0 -98
  312. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.mts +0 -1
  313. /package/dist/cjs/api/resources/tracking/resources/{cargoByDevice → sessions}/client/index.d.ts +0 -0
  314. /package/dist/cjs/api/resources/tracking/resources/{cargoByDevice → sessions}/client/index.js +0 -0
  315. /package/dist/cjs/api/resources/tracking/resources/{cargoByDevice/client/requests/CargoByDeviceLastSeenV1Request.js → sessions/client/requests/SessionCreateSessionRequest1.js} +0 -0
  316. /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver/client/requests/CargoByDriverLastSeenV1Request.js → sessions/client/requests/SessionUpdateRequest1.js} +0 -0
  317. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.js → sessions/client/requests/SessionsDeleteV1Request.js} +0 -0
  318. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceDataPointsPublicV1Request.js → sessions/client/requests/SessionsGetV1Request.js} +0 -0
  319. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceDataPointsV1Request.js → sessions/client/requests/SessionsPauseRecordingV1Request.js} +0 -0
  320. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceDeleteV1Request.js → sessions/client/requests/SessionsResumeRecordingV1Request.js} +0 -0
  321. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceGetV1Request.js → sessions/client/requests/SessionsStartV1Request.js} +0 -0
  322. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceLastSeenPublicV1Request.js → sessions/client/requests/SessionsTerminateV1Request.js} +0 -0
  323. /package/dist/cjs/api/resources/tracking/resources/{cargoByDevice → sessions}/client/requests/index.js +0 -0
  324. /package/dist/cjs/api/resources/tracking/resources/{cargoByDevice → sessions}/index.d.ts +0 -0
  325. /package/dist/cjs/api/resources/tracking/resources/{cargoByDevice → sessions}/index.js +0 -0
  326. /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver → sharing}/client/index.d.ts +0 -0
  327. /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver → sharing}/client/index.js +0 -0
  328. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceLastSeenV1Request.js → sharing/client/requests/CargoByDeviceSharingSettingsUpdateReq.js} +0 -0
  329. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.js → sharing/client/requests/CargoByDriverSharingSettingsUpdateReq.js} +0 -0
  330. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDevicePauseRecordingV1Request.js → sharing/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.js} +0 -0
  331. /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver → sharing}/client/requests/index.js +0 -0
  332. /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver → sharing}/index.d.ts +0 -0
  333. /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver → sharing}/index.js +0 -0
  334. /package/dist/{esm/api/resources/tracking/resources/cargoByDevice/client/requests/index.mjs → cjs/api/resources/tracking/resources/timeseries/client/index.d.ts} +0 -0
  335. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests → timeseries/client}/index.js +0 -0
  336. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/client/index.d.ts +0 -0
  337. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/client/index.js +0 -0
  338. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceResumeRecordingV1Request.js → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsPublicV1Request.js} +0 -0
  339. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceStartV1Request.js → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsV1Request.js} +0 -0
  340. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceTerminateV1Request.js → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenPublicV1Request.js} +0 -0
  341. /package/dist/cjs/api/resources/tracking/resources/{cargoByDevice → timeseries/resources/cargoByDevice}/client/requests/CargoByDeviceLastSeenV1Request.d.ts +0 -0
  342. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceUpdateRequest1.js → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenV1Request.js} +0 -0
  343. /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenV1Request.js → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.js} +0 -0
  344. /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDevice}/client/requests/index.js +0 -0
  345. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/index.d.ts +0 -0
  346. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/index.js +0 -0
  347. /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/client/index.d.ts +0 -0
  348. /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/client/index.js +0 -0
  349. /package/dist/cjs/api/{types/SessionByDeviceDeleteResponse1.js → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsPublicV1Request.js} +0 -0
  350. /package/dist/cjs/api/{types/TrackingCargoByDeviceDataPoint1.js → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsV1Request.js} +0 -0
  351. /package/dist/cjs/api/{types/TrackingCargoByDeviceDataPointMetadata1.js → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverLastSeenPublicV1Request.js} +0 -0
  352. /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver → timeseries/resources/cargoByDriver}/client/requests/CargoByDriverLastSeenV1Request.d.ts +0 -0
  353. /package/dist/cjs/api/{types/TrackingCargoByDriverDataPoint1.js → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverLastSeenV1Request.js} +0 -0
  354. /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/index.d.ts +0 -0
  355. /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/index.js +0 -0
  356. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceDataPointsPublicV1Request.d.ts +0 -0
  357. /package/dist/cjs/api/{types/TrackingCargoByDriverDataPointMetadata1.js → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicV1Request.js} +0 -0
  358. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceDataPointsV1Request.d.ts +0 -0
  359. /package/dist/cjs/api/{types/TrackingSessionByDeviceDataPoint1.js → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsV1Request.js} +0 -0
  360. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceLastSeenPublicV1Request.d.ts +0 -0
  361. /package/dist/cjs/api/{types/TrackingSessionByDeviceDataPointMetadata1.js → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicV1Request.js} +0 -0
  362. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceLastSeenV1Request.d.ts +0 -0
  363. /package/dist/cjs/api/{types/TrackingTaskGroupByDriverDataPoint1.js → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenV1Request.js} +0 -0
  364. /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceMarkOutliersRequest1.d.ts +0 -0
  365. /package/dist/cjs/api/{types/TrackingTaskGroupByDriverDataPointMetadata1.js → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.js} +0 -0
  366. /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/taskGroupByDriver}/client/requests/TaskGroupByDriverLastSeenV1Request.d.ts +0 -0
  367. /package/dist/esm/api/resources/tracking/resources/{cargoByDevice → sessions}/client/index.d.mts +0 -0
  368. /package/dist/esm/api/resources/tracking/resources/{cargoByDevice → sessions}/client/index.mjs +0 -0
  369. /package/dist/esm/api/resources/tracking/resources/{cargoByDevice/client/requests/CargoByDeviceLastSeenV1Request.mjs → sessions/client/requests/SessionCreateSessionRequest1.mjs} +0 -0
  370. /package/dist/esm/api/resources/tracking/resources/{cargoByDriver/client/requests/CargoByDriverLastSeenV1Request.mjs → sessions/client/requests/SessionUpdateRequest1.mjs} +0 -0
  371. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.mjs → sessions/client/requests/SessionsDeleteV1Request.mjs} +0 -0
  372. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceDataPointsPublicV1Request.mjs → sessions/client/requests/SessionsGetV1Request.mjs} +0 -0
  373. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceDataPointsV1Request.mjs → sessions/client/requests/SessionsPauseRecordingV1Request.mjs} +0 -0
  374. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceDeleteV1Request.mjs → sessions/client/requests/SessionsResumeRecordingV1Request.mjs} +0 -0
  375. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceGetV1Request.mjs → sessions/client/requests/SessionsStartV1Request.mjs} +0 -0
  376. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceLastSeenPublicV1Request.mjs → sessions/client/requests/SessionsTerminateV1Request.mjs} +0 -0
  377. /package/dist/esm/api/resources/tracking/resources/{cargoByDriver → sessions}/client/requests/index.mjs +0 -0
  378. /package/dist/esm/api/resources/tracking/resources/{cargoByDevice → sessions}/index.d.mts +0 -0
  379. /package/dist/esm/api/resources/tracking/resources/{cargoByDevice → sessions}/index.mjs +0 -0
  380. /package/dist/esm/api/resources/tracking/resources/{cargoByDriver → sharing}/client/index.d.mts +0 -0
  381. /package/dist/esm/api/resources/tracking/resources/{cargoByDriver → sharing}/client/index.mjs +0 -0
  382. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceLastSeenV1Request.mjs → sharing/client/requests/CargoByDeviceSharingSettingsUpdateReq.mjs} +0 -0
  383. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.mjs → sharing/client/requests/CargoByDriverSharingSettingsUpdateReq.mjs} +0 -0
  384. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDevicePauseRecordingV1Request.mjs → sharing/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.mjs} +0 -0
  385. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → sharing}/client/requests/index.mjs +0 -0
  386. /package/dist/esm/api/resources/tracking/resources/{cargoByDriver → sharing}/index.d.mts +0 -0
  387. /package/dist/esm/api/resources/tracking/resources/{cargoByDriver → sharing}/index.mjs +0 -0
  388. /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver/client/requests/index.mjs → timeseries/client/index.d.mts} +0 -0
  389. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/client/index.d.mts +0 -0
  390. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/client/index.mjs +0 -0
  391. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceResumeRecordingV1Request.mjs → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsPublicV1Request.mjs} +0 -0
  392. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceStartV1Request.mjs → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsV1Request.mjs} +0 -0
  393. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceTerminateV1Request.mjs → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenPublicV1Request.mjs} +0 -0
  394. /package/dist/esm/api/resources/tracking/resources/{cargoByDevice → timeseries/resources/cargoByDevice}/client/requests/CargoByDeviceLastSeenV1Request.d.mts +0 -0
  395. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceUpdateRequest1.mjs → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenV1Request.mjs} +0 -0
  396. /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenV1Request.mjs → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.mjs} +0 -0
  397. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/index.d.mts +0 -0
  398. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/index.mjs +0 -0
  399. /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/client/index.d.mts +0 -0
  400. /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/client/index.mjs +0 -0
  401. /package/dist/esm/api/{types/SessionByDeviceDeleteResponse1.mjs → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsPublicV1Request.mjs} +0 -0
  402. /package/dist/esm/api/{types/TrackingCargoByDeviceDataPoint1.mjs → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsV1Request.mjs} +0 -0
  403. /package/dist/esm/api/{types/TrackingCargoByDeviceDataPointMetadata1.mjs → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverLastSeenPublicV1Request.mjs} +0 -0
  404. /package/dist/esm/api/resources/tracking/resources/{cargoByDriver → timeseries/resources/cargoByDriver}/client/requests/CargoByDriverLastSeenV1Request.d.mts +0 -0
  405. /package/dist/esm/api/{types/TrackingCargoByDriverDataPoint1.mjs → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverLastSeenV1Request.mjs} +0 -0
  406. /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/index.d.mts +0 -0
  407. /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/index.mjs +0 -0
  408. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceDataPointsPublicV1Request.d.mts +0 -0
  409. /package/dist/esm/api/{types/TrackingCargoByDriverDataPointMetadata1.mjs → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicV1Request.mjs} +0 -0
  410. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceDataPointsV1Request.d.mts +0 -0
  411. /package/dist/esm/api/{types/TrackingSessionByDeviceDataPoint1.mjs → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsV1Request.mjs} +0 -0
  412. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceLastSeenPublicV1Request.d.mts +0 -0
  413. /package/dist/esm/api/{types/TrackingSessionByDeviceDataPointMetadata1.mjs → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicV1Request.mjs} +0 -0
  414. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceLastSeenV1Request.d.mts +0 -0
  415. /package/dist/esm/api/{types/TrackingTaskGroupByDriverDataPoint1.mjs → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenV1Request.mjs} +0 -0
  416. /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceMarkOutliersRequest1.d.mts +0 -0
  417. /package/dist/esm/api/{types/TrackingTaskGroupByDriverDataPointMetadata1.mjs → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.mjs} +0 -0
  418. /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/taskGroupByDriver}/client/requests/TaskGroupByDriverLastSeenV1Request.d.mts +0 -0
@@ -15,17 +15,17 @@ import * as core from "../../../../../../core/index.mjs";
15
15
  import * as Chrt from "../../../../../index.mjs";
16
16
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
17
17
  import * as errors from "../../../../../../errors/index.mjs";
18
- export class SessionByDevice {
18
+ export class Sessions {
19
19
  constructor(_options = {}) {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
23
  * Returns all tracking sessions for the caller's organization. | () -> (list[Session1])
24
24
  *
25
- * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
25
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
27
27
  * @example
28
- * await client.tracking.sessionByDevice.listV1()
28
+ * await client.tracking.sessions.listV1()
29
29
  */
30
30
  listV1(requestOptions) {
31
31
  return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
@@ -35,7 +35,7 @@ export class SessionByDevice {
35
35
  var _a, _b, _c, _d;
36
36
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
37
37
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
38
- 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, "tracking/session_by_device/list/v1"),
38
+ 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, "tracking/sessions/list/v1"),
39
39
  method: "GET",
40
40
  headers: _headers,
41
41
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -61,7 +61,7 @@ export class SessionByDevice {
61
61
  rawResponse: _response.rawResponse,
62
62
  });
63
63
  case "timeout":
64
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/session_by_device/list/v1.");
64
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/sessions/list/v1.");
65
65
  case "unknown":
66
66
  throw new errors.ChrtError({
67
67
  message: _response.error.errorMessage,
@@ -73,13 +73,13 @@ export class SessionByDevice {
73
73
  /**
74
74
  * Retrieves a single session by its ID. Access restricted to the caller's organization. | () -> (Session1)
75
75
  *
76
- * @param {Chrt.tracking.SessionByDeviceGetV1Request} request
77
- * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
76
+ * @param {Chrt.tracking.SessionsGetV1Request} request
77
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
78
78
  *
79
79
  * @throws {@link Chrt.UnprocessableEntityError}
80
80
  *
81
81
  * @example
82
- * await client.tracking.sessionByDevice.getV1({
82
+ * await client.tracking.sessions.getV1({
83
83
  * session_id: "session_id"
84
84
  * })
85
85
  */
@@ -94,7 +94,7 @@ export class SessionByDevice {
94
94
  _queryParams["session_id"] = sessionId;
95
95
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
96
96
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
97
- 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, "tracking/session_by_device/get/v1"),
97
+ 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, "tracking/sessions/get/v1"),
98
98
  method: "GET",
99
99
  headers: _headers,
100
100
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -125,7 +125,7 @@ export class SessionByDevice {
125
125
  rawResponse: _response.rawResponse,
126
126
  });
127
127
  case "timeout":
128
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/session_by_device/get/v1.");
128
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/sessions/get/v1.");
129
129
  case "unknown":
130
130
  throw new errors.ChrtError({
131
131
  message: _response.error.errorMessage,
@@ -135,153 +135,15 @@ export class SessionByDevice {
135
135
  });
136
136
  }
137
137
  /**
138
- * Returns the most recent data point for a session, excluding outliers. Access restricted to the caller's organization. | () -> (TrackingSessionByDeviceDataPoint1 | None)
138
+ * Creates a new tracking session for a device and links the device to it. The device must be registered to the caller's organization. | (SessionCreateSessionRequest1) -> (PydanticObjectId)
139
139
  *
140
- * @param {Chrt.tracking.SessionByDeviceLastSeenV1Request} request
141
- * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
140
+ * @param {Chrt.tracking.SessionCreateSessionRequest1} request
141
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
142
142
  *
143
143
  * @throws {@link Chrt.UnprocessableEntityError}
144
144
  *
145
145
  * @example
146
- * await client.tracking.sessionByDevice.lastSeenV1({
147
- * session_id: "session_id"
148
- * })
149
- */
150
- lastSeenV1(request, requestOptions) {
151
- return core.HttpResponsePromise.fromPromise(this.__lastSeenV1(request, requestOptions));
152
- }
153
- __lastSeenV1(request, requestOptions) {
154
- return __awaiter(this, void 0, void 0, function* () {
155
- var _a, _b, _c, _d;
156
- const { session_id: sessionId } = request;
157
- const _queryParams = {};
158
- _queryParams["session_id"] = sessionId;
159
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
160
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
161
- 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, "tracking/session_by_device/last_seen/v1"),
162
- method: "GET",
163
- headers: _headers,
164
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
165
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
166
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
167
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
168
- });
169
- if (_response.ok) {
170
- return {
171
- data: _response.body,
172
- rawResponse: _response.rawResponse,
173
- };
174
- }
175
- if (_response.error.reason === "status-code") {
176
- switch (_response.error.statusCode) {
177
- case 422:
178
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
179
- default:
180
- throw new errors.ChrtError({
181
- statusCode: _response.error.statusCode,
182
- body: _response.error.body,
183
- rawResponse: _response.rawResponse,
184
- });
185
- }
186
- }
187
- switch (_response.error.reason) {
188
- case "non-json":
189
- throw new errors.ChrtError({
190
- statusCode: _response.error.statusCode,
191
- body: _response.error.rawBody,
192
- rawResponse: _response.rawResponse,
193
- });
194
- case "timeout":
195
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/session_by_device/last_seen/v1.");
196
- case "unknown":
197
- throw new errors.ChrtError({
198
- message: _response.error.errorMessage,
199
- rawResponse: _response.rawResponse,
200
- });
201
- }
202
- });
203
- }
204
- /**
205
- * Returns up to the specified number of data points for a session, intelligently sampled across the time range. Excludes outliers. | () -> (list[TrackingSessionByDeviceDataPoint1])
206
- *
207
- * @param {Chrt.tracking.SessionByDeviceDataPointsV1Request} request
208
- * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
209
- *
210
- * @throws {@link Chrt.UnprocessableEntityError}
211
- *
212
- * @example
213
- * await client.tracking.sessionByDevice.dataPointsV1({
214
- * session_id: "session_id",
215
- * limit: 1
216
- * })
217
- */
218
- dataPointsV1(request, requestOptions) {
219
- return core.HttpResponsePromise.fromPromise(this.__dataPointsV1(request, requestOptions));
220
- }
221
- __dataPointsV1(request, requestOptions) {
222
- return __awaiter(this, void 0, void 0, function* () {
223
- var _a, _b, _c, _d, _e;
224
- const { session_id: sessionId, limit } = request;
225
- const _queryParams = {};
226
- _queryParams["session_id"] = sessionId;
227
- if (limit !== undefined) {
228
- _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
229
- }
230
- let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
231
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
232
- url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/session_by_device/data_points/v1"),
233
- method: "GET",
234
- headers: _headers,
235
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
236
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
237
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
238
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
239
- });
240
- if (_response.ok) {
241
- return {
242
- data: _response.body,
243
- rawResponse: _response.rawResponse,
244
- };
245
- }
246
- if (_response.error.reason === "status-code") {
247
- switch (_response.error.statusCode) {
248
- case 422:
249
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
250
- default:
251
- throw new errors.ChrtError({
252
- statusCode: _response.error.statusCode,
253
- body: _response.error.body,
254
- rawResponse: _response.rawResponse,
255
- });
256
- }
257
- }
258
- switch (_response.error.reason) {
259
- case "non-json":
260
- throw new errors.ChrtError({
261
- statusCode: _response.error.statusCode,
262
- body: _response.error.rawBody,
263
- rawResponse: _response.rawResponse,
264
- });
265
- case "timeout":
266
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/session_by_device/data_points/v1.");
267
- case "unknown":
268
- throw new errors.ChrtError({
269
- message: _response.error.errorMessage,
270
- rawResponse: _response.rawResponse,
271
- });
272
- }
273
- });
274
- }
275
- /**
276
- * Creates a new tracking session for a device and links the device to it. The device must be registered to the caller's organization. | (SessionByDeviceCreateSessionRequest1) -> (PydanticObjectId)
277
- *
278
- * @param {Chrt.tracking.SessionByDeviceCreateSessionRequest1} request
279
- * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
280
- *
281
- * @throws {@link Chrt.UnprocessableEntityError}
282
- *
283
- * @example
284
- * await client.tracking.sessionByDevice.createSessionV1({
146
+ * await client.tracking.sessions.createSessionV1({
285
147
  * device_mac_address: "device_mac_address"
286
148
  * })
287
149
  */
@@ -293,7 +155,7 @@ export class SessionByDevice {
293
155
  var _a, _b, _c, _d;
294
156
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
295
157
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
296
- 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, "tracking/session_by_device/create_session/v1"),
158
+ 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, "tracking/sessions/create_session/v1"),
297
159
  method: "POST",
298
160
  headers: _headers,
299
161
  contentType: "application/json",
@@ -327,7 +189,7 @@ export class SessionByDevice {
327
189
  rawResponse: _response.rawResponse,
328
190
  });
329
191
  case "timeout":
330
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/session_by_device/create_session/v1.");
192
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/create_session/v1.");
331
193
  case "unknown":
332
194
  throw new errors.ChrtError({
333
195
  message: _response.error.errorMessage,
@@ -337,15 +199,15 @@ export class SessionByDevice {
337
199
  });
338
200
  }
339
201
  /**
340
- * Updates a session's comments and/or public visibility status. Can update one or both fields. | (SessionByDeviceUpdateRequest1) -> (bool)
202
+ * Updates a session's comments and/or public visibility status. Can update one or both fields. | (SessionUpdateRequest1) -> (bool)
341
203
  *
342
- * @param {Chrt.tracking.SessionByDeviceUpdateRequest1} request
343
- * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
204
+ * @param {Chrt.tracking.SessionUpdateRequest1} request
205
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
344
206
  *
345
207
  * @throws {@link Chrt.UnprocessableEntityError}
346
208
  *
347
209
  * @example
348
- * await client.tracking.sessionByDevice.updateV1({
210
+ * await client.tracking.sessions.updateV1({
349
211
  * session_id: "session_id"
350
212
  * })
351
213
  */
@@ -357,7 +219,7 @@ export class SessionByDevice {
357
219
  var _a, _b, _c, _d;
358
220
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
359
221
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
360
- 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, "tracking/session_by_device/update/v1"),
222
+ 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, "tracking/sessions/update/v1"),
361
223
  method: "POST",
362
224
  headers: _headers,
363
225
  contentType: "application/json",
@@ -391,7 +253,7 @@ export class SessionByDevice {
391
253
  rawResponse: _response.rawResponse,
392
254
  });
393
255
  case "timeout":
394
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/session_by_device/update/v1.");
256
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/update/v1.");
395
257
  case "unknown":
396
258
  throw new errors.ChrtError({
397
259
  message: _response.error.errorMessage,
@@ -403,13 +265,13 @@ export class SessionByDevice {
403
265
  /**
404
266
  * Starts location recording for a session by setting recording status to true. Sets the recording initiated timestamp on first start. | () -> (bool)
405
267
  *
406
- * @param {Chrt.tracking.SessionByDeviceStartV1Request} request
407
- * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
268
+ * @param {Chrt.tracking.SessionsStartV1Request} request
269
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
408
270
  *
409
271
  * @throws {@link Chrt.UnprocessableEntityError}
410
272
  *
411
273
  * @example
412
- * await client.tracking.sessionByDevice.startV1({
274
+ * await client.tracking.sessions.startV1({
413
275
  * session_id: "session_id"
414
276
  * })
415
277
  */
@@ -424,7 +286,7 @@ export class SessionByDevice {
424
286
  _queryParams["session_id"] = sessionId;
425
287
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
426
288
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
427
- 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, "tracking/session_by_device/start/v1"),
289
+ 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, "tracking/sessions/start/v1"),
428
290
  method: "POST",
429
291
  headers: _headers,
430
292
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -455,7 +317,7 @@ export class SessionByDevice {
455
317
  rawResponse: _response.rawResponse,
456
318
  });
457
319
  case "timeout":
458
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/session_by_device/start/v1.");
320
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/start/v1.");
459
321
  case "unknown":
460
322
  throw new errors.ChrtError({
461
323
  message: _response.error.errorMessage,
@@ -467,13 +329,13 @@ export class SessionByDevice {
467
329
  /**
468
330
  * Pauses location recording for a session by setting recording status to false. Device remains linked to the session. | () -> (bool)
469
331
  *
470
- * @param {Chrt.tracking.SessionByDevicePauseRecordingV1Request} request
471
- * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
332
+ * @param {Chrt.tracking.SessionsPauseRecordingV1Request} request
333
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
472
334
  *
473
335
  * @throws {@link Chrt.UnprocessableEntityError}
474
336
  *
475
337
  * @example
476
- * await client.tracking.sessionByDevice.pauseRecordingV1({
338
+ * await client.tracking.sessions.pauseRecordingV1({
477
339
  * session_id: "session_id"
478
340
  * })
479
341
  */
@@ -488,7 +350,7 @@ export class SessionByDevice {
488
350
  _queryParams["session_id"] = sessionId;
489
351
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
490
352
  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, "tracking/session_by_device/pause_recording/v1"),
353
+ 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, "tracking/sessions/pause_recording/v1"),
492
354
  method: "POST",
493
355
  headers: _headers,
494
356
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -519,7 +381,7 @@ export class SessionByDevice {
519
381
  rawResponse: _response.rawResponse,
520
382
  });
521
383
  case "timeout":
522
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/session_by_device/pause_recording/v1.");
384
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/pause_recording/v1.");
523
385
  case "unknown":
524
386
  throw new errors.ChrtError({
525
387
  message: _response.error.errorMessage,
@@ -531,13 +393,13 @@ export class SessionByDevice {
531
393
  /**
532
394
  * Resumes location recording for a session by setting recording status to true. | () -> (bool)
533
395
  *
534
- * @param {Chrt.tracking.SessionByDeviceResumeRecordingV1Request} request
535
- * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
396
+ * @param {Chrt.tracking.SessionsResumeRecordingV1Request} request
397
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
536
398
  *
537
399
  * @throws {@link Chrt.UnprocessableEntityError}
538
400
  *
539
401
  * @example
540
- * await client.tracking.sessionByDevice.resumeRecordingV1({
402
+ * await client.tracking.sessions.resumeRecordingV1({
541
403
  * session_id: "session_id"
542
404
  * })
543
405
  */
@@ -552,7 +414,7 @@ export class SessionByDevice {
552
414
  _queryParams["session_id"] = sessionId;
553
415
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
554
416
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
555
- 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, "tracking/session_by_device/resume_recording/v1"),
417
+ 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, "tracking/sessions/resume_recording/v1"),
556
418
  method: "POST",
557
419
  headers: _headers,
558
420
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -583,7 +445,7 @@ export class SessionByDevice {
583
445
  rawResponse: _response.rawResponse,
584
446
  });
585
447
  case "timeout":
586
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/session_by_device/resume_recording/v1.");
448
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/resume_recording/v1.");
587
449
  case "unknown":
588
450
  throw new errors.ChrtError({
589
451
  message: _response.error.errorMessage,
@@ -595,13 +457,13 @@ export class SessionByDevice {
595
457
  /**
596
458
  * Terminates a session by setting recording to false and marking it as terminated. Unlinks the device from the session. | () -> (bool)
597
459
  *
598
- * @param {Chrt.tracking.SessionByDeviceTerminateV1Request} request
599
- * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
460
+ * @param {Chrt.tracking.SessionsTerminateV1Request} request
461
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
600
462
  *
601
463
  * @throws {@link Chrt.UnprocessableEntityError}
602
464
  *
603
465
  * @example
604
- * await client.tracking.sessionByDevice.terminateV1({
466
+ * await client.tracking.sessions.terminateV1({
605
467
  * session_id: "session_id"
606
468
  * })
607
469
  */
@@ -616,7 +478,7 @@ export class SessionByDevice {
616
478
  _queryParams["session_id"] = sessionId;
617
479
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
618
480
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
619
- 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, "tracking/session_by_device/terminate/v1"),
481
+ 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, "tracking/sessions/terminate/v1"),
620
482
  method: "POST",
621
483
  headers: _headers,
622
484
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -647,75 +509,7 @@ export class SessionByDevice {
647
509
  rawResponse: _response.rawResponse,
648
510
  });
649
511
  case "timeout":
650
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/session_by_device/terminate/v1.");
651
- case "unknown":
652
- throw new errors.ChrtError({
653
- message: _response.error.errorMessage,
654
- rawResponse: _response.rawResponse,
655
- });
656
- }
657
- });
658
- }
659
- /**
660
- * Marks data points as outliers or non-outliers. Uses atomic delete and reinsert strategy for time-series collection updates. | (SessionByDeviceMarkOutliersRequest1) -> (SessionByDeviceMarkOutliersResponse1)
661
- *
662
- * @param {Chrt.tracking.SessionByDeviceMarkOutliersRequest1} request
663
- * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
664
- *
665
- * @throws {@link Chrt.UnprocessableEntityError}
666
- *
667
- * @example
668
- * await client.tracking.sessionByDevice.outlierV1({
669
- * tracking_session_by_device_data_point_ids: ["tracking_session_by_device_data_point_ids"],
670
- * outlier: true
671
- * })
672
- */
673
- outlierV1(request, requestOptions) {
674
- return core.HttpResponsePromise.fromPromise(this.__outlierV1(request, requestOptions));
675
- }
676
- __outlierV1(request, requestOptions) {
677
- return __awaiter(this, void 0, void 0, function* () {
678
- var _a, _b, _c, _d;
679
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
680
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
681
- 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, "tracking/session_by_device/outlier/v1"),
682
- method: "POST",
683
- headers: _headers,
684
- contentType: "application/json",
685
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
686
- requestType: "json",
687
- body: request,
688
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
689
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
690
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
691
- });
692
- if (_response.ok) {
693
- return {
694
- data: _response.body,
695
- rawResponse: _response.rawResponse,
696
- };
697
- }
698
- if (_response.error.reason === "status-code") {
699
- switch (_response.error.statusCode) {
700
- case 422:
701
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
702
- default:
703
- throw new errors.ChrtError({
704
- statusCode: _response.error.statusCode,
705
- body: _response.error.body,
706
- rawResponse: _response.rawResponse,
707
- });
708
- }
709
- }
710
- switch (_response.error.reason) {
711
- case "non-json":
712
- throw new errors.ChrtError({
713
- statusCode: _response.error.statusCode,
714
- body: _response.error.rawBody,
715
- rawResponse: _response.rawResponse,
716
- });
717
- case "timeout":
718
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/session_by_device/outlier/v1.");
512
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/terminate/v1.");
719
513
  case "unknown":
720
514
  throw new errors.ChrtError({
721
515
  message: _response.error.errorMessage,
@@ -725,15 +519,15 @@ export class SessionByDevice {
725
519
  });
726
520
  }
727
521
  /**
728
- * Deletes a terminated session and all its associated timeseries data points. Only sessions marked as terminated can be deleted. | () -> (SessionByDeviceDeleteResponse1)
522
+ * Deletes a terminated session and all its associated timeseries data points. Only sessions marked as terminated can be deleted. | () -> (SessionDeleteResponse1)
729
523
  *
730
- * @param {Chrt.tracking.SessionByDeviceDeleteV1Request} request
731
- * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
524
+ * @param {Chrt.tracking.SessionsDeleteV1Request} request
525
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
732
526
  *
733
527
  * @throws {@link Chrt.UnprocessableEntityError}
734
528
  *
735
529
  * @example
736
- * await client.tracking.sessionByDevice.deleteV1({
530
+ * await client.tracking.sessions.deleteV1({
737
531
  * session_id: "session_id"
738
532
  * })
739
533
  */
@@ -748,7 +542,7 @@ export class SessionByDevice {
748
542
  _queryParams["session_id"] = sessionId;
749
543
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
750
544
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
751
- 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, "tracking/session_by_device/delete/v1"),
545
+ 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, "tracking/sessions/delete/v1"),
752
546
  method: "DELETE",
753
547
  headers: _headers,
754
548
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -779,145 +573,7 @@ export class SessionByDevice {
779
573
  rawResponse: _response.rawResponse,
780
574
  });
781
575
  case "timeout":
782
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /tracking/session_by_device/delete/v1.");
783
- case "unknown":
784
- throw new errors.ChrtError({
785
- message: _response.error.errorMessage,
786
- rawResponse: _response.rawResponse,
787
- });
788
- }
789
- });
790
- }
791
- /**
792
- * Returns the most recent data point for a public session, excluding outliers. No authentication required if session has public visibility enabled. | () -> (TrackingSessionByDeviceDataPoint1 | None)
793
- *
794
- * @param {Chrt.tracking.SessionByDeviceLastSeenPublicV1Request} request
795
- * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
796
- *
797
- * @throws {@link Chrt.UnprocessableEntityError}
798
- *
799
- * @example
800
- * await client.tracking.sessionByDevice.lastSeenPublicV1({
801
- * session_id: "session_id"
802
- * })
803
- */
804
- lastSeenPublicV1(request, requestOptions) {
805
- return core.HttpResponsePromise.fromPromise(this.__lastSeenPublicV1(request, requestOptions));
806
- }
807
- __lastSeenPublicV1(request, requestOptions) {
808
- return __awaiter(this, void 0, void 0, function* () {
809
- var _a, _b, _c, _d;
810
- const { session_id: sessionId } = request;
811
- const _queryParams = {};
812
- _queryParams["session_id"] = sessionId;
813
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
814
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
815
- 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, "tracking/session_by_device/last_seen_public/v1"),
816
- method: "GET",
817
- headers: _headers,
818
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
819
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
820
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
821
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
822
- });
823
- if (_response.ok) {
824
- return {
825
- data: _response.body,
826
- rawResponse: _response.rawResponse,
827
- };
828
- }
829
- if (_response.error.reason === "status-code") {
830
- switch (_response.error.statusCode) {
831
- case 422:
832
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
833
- default:
834
- throw new errors.ChrtError({
835
- statusCode: _response.error.statusCode,
836
- body: _response.error.body,
837
- rawResponse: _response.rawResponse,
838
- });
839
- }
840
- }
841
- switch (_response.error.reason) {
842
- case "non-json":
843
- throw new errors.ChrtError({
844
- statusCode: _response.error.statusCode,
845
- body: _response.error.rawBody,
846
- rawResponse: _response.rawResponse,
847
- });
848
- case "timeout":
849
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/session_by_device/last_seen_public/v1.");
850
- case "unknown":
851
- throw new errors.ChrtError({
852
- message: _response.error.errorMessage,
853
- rawResponse: _response.rawResponse,
854
- });
855
- }
856
- });
857
- }
858
- /**
859
- * Returns up to the specified number of data points for a public session, intelligently sampled across the time range. Excludes outliers. No authentication required if session has public visibility enabled. | () -> (list[TrackingSessionByDeviceDataPoint1])
860
- *
861
- * @param {Chrt.tracking.SessionByDeviceDataPointsPublicV1Request} request
862
- * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
863
- *
864
- * @throws {@link Chrt.UnprocessableEntityError}
865
- *
866
- * @example
867
- * await client.tracking.sessionByDevice.dataPointsPublicV1({
868
- * session_id: "session_id",
869
- * limit: 1
870
- * })
871
- */
872
- dataPointsPublicV1(request, requestOptions) {
873
- return core.HttpResponsePromise.fromPromise(this.__dataPointsPublicV1(request, requestOptions));
874
- }
875
- __dataPointsPublicV1(request, requestOptions) {
876
- return __awaiter(this, void 0, void 0, function* () {
877
- var _a, _b, _c, _d, _e;
878
- const { session_id: sessionId, limit } = request;
879
- const _queryParams = {};
880
- _queryParams["session_id"] = sessionId;
881
- if (limit !== undefined) {
882
- _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
883
- }
884
- let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
885
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
886
- url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/session_by_device/data_points_public/v1"),
887
- method: "GET",
888
- headers: _headers,
889
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
890
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
891
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
892
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
893
- });
894
- if (_response.ok) {
895
- return {
896
- data: _response.body,
897
- rawResponse: _response.rawResponse,
898
- };
899
- }
900
- if (_response.error.reason === "status-code") {
901
- switch (_response.error.statusCode) {
902
- case 422:
903
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
904
- default:
905
- throw new errors.ChrtError({
906
- statusCode: _response.error.statusCode,
907
- body: _response.error.body,
908
- rawResponse: _response.rawResponse,
909
- });
910
- }
911
- }
912
- switch (_response.error.reason) {
913
- case "non-json":
914
- throw new errors.ChrtError({
915
- statusCode: _response.error.statusCode,
916
- body: _response.error.rawBody,
917
- rawResponse: _response.rawResponse,
918
- });
919
- case "timeout":
920
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/session_by_device/data_points_public/v1.");
576
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /tracking/sessions/delete/v1.");
921
577
  case "unknown":
922
578
  throw new errors.ChrtError({
923
579
  message: _response.error.errorMessage,