@chrt-inc/typescript-sdk 0.227.1 → 0.252.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 (204) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +7 -2
  3. package/dist/cjs/api/resources/index.d.ts +1 -0
  4. package/dist/cjs/api/resources/index.js +2 -1
  5. package/dist/cjs/api/resources/tracking/client/Client.d.ts +32 -0
  6. package/dist/cjs/api/resources/tracking/client/Client.js +32 -0
  7. package/dist/cjs/api/resources/tracking/client/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/tracking/client/index.js +2 -0
  9. package/dist/cjs/api/resources/tracking/index.d.ts +2 -0
  10. package/dist/cjs/api/resources/tracking/index.js +18 -0
  11. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.d.ts +67 -0
  12. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.js +202 -0
  13. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/index.d.ts +2 -0
  14. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/index.js +17 -0
  15. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/CargoByDriverLastSeenRequest.d.ts +14 -0
  16. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/CargoByDriverUpdateReq.d.ts +19 -0
  17. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.ts +2 -0
  18. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/index.js +2 -0
  19. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/index.js +17 -0
  21. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +103 -0
  22. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +371 -0
  23. package/dist/cjs/api/resources/tracking/resources/devices/client/index.d.ts +2 -0
  24. package/dist/cjs/api/resources/tracking/resources/devices/client/index.js +17 -0
  25. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesGetRequest.d.ts +12 -0
  26. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesGetRequest.js +5 -0
  27. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesLinkToCargoRequest.d.ts +14 -0
  28. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesLinkToCargoRequest.js +5 -0
  29. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesRegisterToOrgRequest.d.ts +12 -0
  30. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesRegisterToOrgRequest.js +5 -0
  31. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoRequest.d.ts +12 -0
  32. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoRequest.js +5 -0
  33. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +4 -0
  34. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.js +2 -0
  35. package/dist/cjs/api/resources/tracking/resources/devices/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/tracking/resources/devices/index.js +17 -0
  37. package/dist/cjs/api/resources/tracking/resources/index.d.ts +8 -0
  38. package/dist/cjs/api/resources/tracking/resources/index.js +47 -0
  39. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +137 -0
  40. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +510 -0
  41. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/index.d.ts +2 -0
  42. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/index.js +17 -0
  43. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.d.ts +13 -0
  44. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.js +5 -0
  45. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceEndSessionRequest.d.ts +12 -0
  46. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceEndSessionRequest.js +5 -0
  47. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenRequest.d.ts +12 -0
  48. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenRequest.js +5 -0
  49. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseSessionRequest.d.ts +12 -0
  50. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseSessionRequest.js +5 -0
  51. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeSessionRequest.d.ts +12 -0
  52. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeSessionRequest.js +5 -0
  53. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartSessionRequest.d.ts +12 -0
  54. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartSessionRequest.js +5 -0
  55. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceUpdateCommentsRequest1.d.ts +14 -0
  56. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceUpdateCommentsRequest1.js +5 -0
  57. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.ts +7 -0
  58. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/index.js +2 -0
  59. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/index.d.ts +1 -0
  60. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/index.js +17 -0
  61. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.ts +66 -0
  62. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.js +200 -0
  63. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/index.d.ts +2 -0
  64. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/index.js +17 -0
  65. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenRequest.d.ts +12 -0
  66. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenRequest.js +5 -0
  67. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.d.ts +19 -0
  68. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.js +5 -0
  69. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.ts +2 -0
  70. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.js +2 -0
  71. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/index.d.ts +1 -0
  72. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/index.js +17 -0
  73. package/dist/cjs/api/types/Cargo1.d.ts +2 -0
  74. package/dist/cjs/api/types/CargoStatusEnum1.d.ts +10 -0
  75. package/dist/cjs/api/types/CargoStatusEnum1.js +12 -0
  76. package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +1 -0
  77. package/dist/cjs/api/types/Device1.d.ts +19 -0
  78. package/dist/cjs/api/types/Device1.js +5 -0
  79. package/dist/cjs/api/types/Driver1.d.ts +2 -2
  80. package/dist/cjs/api/types/TrackingCargoByDriverDataPoint1.d.ts +11 -0
  81. package/dist/cjs/api/types/TrackingCargoByDriverDataPoint1.js +5 -0
  82. package/dist/cjs/api/types/TrackingCargoByDriverDataPointMetadata1.d.ts +8 -0
  83. package/dist/cjs/api/types/TrackingCargoByDriverDataPointMetadata1.js +5 -0
  84. package/dist/cjs/api/types/TrackingDeviceTypeEnum1.d.ts +9 -0
  85. package/dist/cjs/api/types/TrackingDeviceTypeEnum1.js +11 -0
  86. package/dist/cjs/api/types/TrackingSessionByDeviceDataPoint1.d.ts +12 -0
  87. package/dist/cjs/api/types/TrackingSessionByDeviceDataPoint1.js +5 -0
  88. package/dist/cjs/api/types/TrackingSessionByDeviceDataPointMetadata1.d.ts +6 -0
  89. package/dist/cjs/api/types/TrackingSessionByDeviceDataPointMetadata1.js +5 -0
  90. package/dist/cjs/api/types/TrackingTaskGroupByDriverDataPoint1.d.ts +11 -0
  91. package/dist/cjs/api/types/TrackingTaskGroupByDriverDataPoint1.js +5 -0
  92. package/dist/cjs/api/types/TrackingTaskGroupByDriverDataPointMetadata1.d.ts +7 -0
  93. package/dist/cjs/api/types/TrackingTaskGroupByDriverDataPointMetadata1.js +5 -0
  94. package/dist/cjs/api/types/index.d.ts +9 -2
  95. package/dist/cjs/api/types/index.js +9 -2
  96. package/dist/cjs/version.d.ts +1 -1
  97. package/dist/cjs/version.js +1 -1
  98. package/dist/esm/Client.d.mts +3 -0
  99. package/dist/esm/Client.mjs +7 -2
  100. package/dist/esm/api/resources/index.d.mts +1 -0
  101. package/dist/esm/api/resources/index.mjs +1 -0
  102. package/dist/esm/api/resources/tracking/client/Client.d.mts +32 -0
  103. package/dist/esm/api/resources/tracking/client/Client.mjs +28 -0
  104. package/dist/esm/api/resources/tracking/client/index.d.mts +1 -0
  105. package/dist/esm/api/resources/tracking/client/index.mjs +1 -0
  106. package/dist/esm/api/resources/tracking/index.d.mts +2 -0
  107. package/dist/esm/api/resources/tracking/index.mjs +2 -0
  108. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.d.mts +67 -0
  109. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.mjs +165 -0
  110. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/index.d.mts +2 -0
  111. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/index.mjs +1 -0
  112. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/CargoByDriverLastSeenRequest.d.mts +14 -0
  113. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/CargoByDriverUpdateReq.d.mts +19 -0
  114. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.mts +2 -0
  115. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/index.mjs +1 -0
  116. package/dist/esm/api/resources/tracking/resources/cargoByDriver/index.d.mts +1 -0
  117. package/dist/esm/api/resources/tracking/resources/cargoByDriver/index.mjs +1 -0
  118. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +103 -0
  119. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +334 -0
  120. package/dist/esm/api/resources/tracking/resources/devices/client/index.d.mts +2 -0
  121. package/dist/esm/api/resources/tracking/resources/devices/client/index.mjs +1 -0
  122. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesGetRequest.d.mts +12 -0
  123. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesGetRequest.mjs +4 -0
  124. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesLinkToCargoRequest.d.mts +14 -0
  125. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesLinkToCargoRequest.mjs +4 -0
  126. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesRegisterToOrgRequest.d.mts +12 -0
  127. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesRegisterToOrgRequest.mjs +4 -0
  128. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoRequest.d.mts +12 -0
  129. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoRequest.mjs +4 -0
  130. package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +4 -0
  131. package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.mjs +1 -0
  132. package/dist/esm/api/resources/tracking/resources/devices/index.d.mts +1 -0
  133. package/dist/esm/api/resources/tracking/resources/devices/index.mjs +1 -0
  134. package/dist/esm/api/resources/tracking/resources/index.d.mts +8 -0
  135. package/dist/esm/api/resources/tracking/resources/index.mjs +8 -0
  136. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +137 -0
  137. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +473 -0
  138. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/index.d.mts +2 -0
  139. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/index.mjs +1 -0
  140. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.d.mts +13 -0
  141. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.mjs +4 -0
  142. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceEndSessionRequest.d.mts +12 -0
  143. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceEndSessionRequest.mjs +4 -0
  144. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenRequest.d.mts +12 -0
  145. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenRequest.mjs +4 -0
  146. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseSessionRequest.d.mts +12 -0
  147. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseSessionRequest.mjs +4 -0
  148. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeSessionRequest.d.mts +12 -0
  149. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeSessionRequest.mjs +4 -0
  150. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartSessionRequest.d.mts +12 -0
  151. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartSessionRequest.mjs +4 -0
  152. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceUpdateCommentsRequest1.d.mts +14 -0
  153. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceUpdateCommentsRequest1.mjs +4 -0
  154. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.mts +7 -0
  155. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/index.mjs +1 -0
  156. package/dist/esm/api/resources/tracking/resources/sessionByDevice/index.d.mts +1 -0
  157. package/dist/esm/api/resources/tracking/resources/sessionByDevice/index.mjs +1 -0
  158. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.mts +66 -0
  159. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.mjs +163 -0
  160. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/index.d.mts +2 -0
  161. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/index.mjs +1 -0
  162. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenRequest.d.mts +12 -0
  163. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenRequest.mjs +4 -0
  164. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.d.mts +19 -0
  165. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.mjs +4 -0
  166. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.mts +2 -0
  167. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.mjs +1 -0
  168. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/index.d.mts +1 -0
  169. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/index.mjs +1 -0
  170. package/dist/esm/api/types/Cargo1.d.mts +2 -0
  171. package/dist/esm/api/types/CargoStatusEnum1.d.mts +10 -0
  172. package/dist/esm/api/types/CargoStatusEnum1.mjs +9 -0
  173. package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +1 -0
  174. package/dist/esm/api/types/Device1.d.mts +19 -0
  175. package/dist/esm/api/types/Device1.mjs +4 -0
  176. package/dist/esm/api/types/Driver1.d.mts +2 -2
  177. package/dist/esm/api/types/TrackingCargoByDriverDataPoint1.d.mts +11 -0
  178. package/dist/esm/api/types/TrackingCargoByDriverDataPoint1.mjs +4 -0
  179. package/dist/esm/api/types/TrackingCargoByDriverDataPointMetadata1.d.mts +8 -0
  180. package/dist/esm/api/types/TrackingCargoByDriverDataPointMetadata1.mjs +4 -0
  181. package/dist/esm/api/types/TrackingDeviceTypeEnum1.d.mts +9 -0
  182. package/dist/esm/api/types/TrackingDeviceTypeEnum1.mjs +8 -0
  183. package/dist/esm/api/types/TrackingSessionByDeviceDataPoint1.d.mts +12 -0
  184. package/dist/esm/api/types/TrackingSessionByDeviceDataPoint1.mjs +4 -0
  185. package/dist/esm/api/types/TrackingSessionByDeviceDataPointMetadata1.d.mts +6 -0
  186. package/dist/esm/api/types/TrackingSessionByDeviceDataPointMetadata1.mjs +4 -0
  187. package/dist/esm/api/types/TrackingTaskGroupByDriverDataPoint1.d.mts +11 -0
  188. package/dist/esm/api/types/TrackingTaskGroupByDriverDataPoint1.mjs +4 -0
  189. package/dist/esm/api/types/TrackingTaskGroupByDriverDataPointMetadata1.d.mts +7 -0
  190. package/dist/esm/api/types/TrackingTaskGroupByDriverDataPointMetadata1.mjs +4 -0
  191. package/dist/esm/api/types/index.d.mts +9 -2
  192. package/dist/esm/api/types/index.mjs +9 -2
  193. package/dist/esm/version.d.mts +1 -1
  194. package/dist/esm/version.mjs +1 -1
  195. package/package.json +1 -1
  196. package/reference.md +1048 -0
  197. package/dist/cjs/api/types/Tracker1.d.ts +0 -7
  198. package/dist/cjs/api/types/TrackerSession1.d.ts +0 -7
  199. package/dist/esm/api/types/Tracker1.d.mts +0 -7
  200. package/dist/esm/api/types/TrackerSession1.d.mts +0 -7
  201. /package/dist/cjs/api/{types/Tracker1.js → resources/tracking/resources/cargoByDriver/client/requests/CargoByDriverLastSeenRequest.js} +0 -0
  202. /package/dist/cjs/api/{types/TrackerSession1.js → resources/tracking/resources/cargoByDriver/client/requests/CargoByDriverUpdateReq.js} +0 -0
  203. /package/dist/esm/api/{types/Tracker1.mjs → resources/tracking/resources/cargoByDriver/client/requests/CargoByDriverLastSeenRequest.mjs} +0 -0
  204. /package/dist/esm/api/{types/TrackerSession1.mjs → resources/tracking/resources/cargoByDriver/client/requests/CargoByDriverUpdateReq.mjs} +0 -0
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * device_mac_address: "device_mac_address"
8
+ * }
9
+ */
10
+ export interface SessionByDeviceCreateSessionRequest1 {
11
+ device_mac_address: string;
12
+ comments?: string | null;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * session_id: "session_id"
8
+ * }
9
+ */
10
+ export interface SessionByDeviceEndSessionRequest {
11
+ session_id: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * session_id: "session_id"
8
+ * }
9
+ */
10
+ export interface SessionByDeviceLastSeenRequest {
11
+ session_id: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * session_id: "session_id"
8
+ * }
9
+ */
10
+ export interface SessionByDevicePauseSessionRequest {
11
+ session_id: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * session_id: "session_id"
8
+ * }
9
+ */
10
+ export interface SessionByDeviceResumeSessionRequest {
11
+ session_id: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * session_id: "session_id"
8
+ * }
9
+ */
10
+ export interface SessionByDeviceStartSessionRequest {
11
+ session_id: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * session_id: "session_id"
8
+ * }
9
+ */
10
+ export interface SessionByDeviceUpdateCommentsRequest1 {
11
+ session_id: string;
12
+ comments?: string | null;
13
+ delete_comments?: boolean;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export { type SessionByDeviceLastSeenRequest } from "./SessionByDeviceLastSeenRequest.js";
2
+ export { type SessionByDeviceCreateSessionRequest1 } from "./SessionByDeviceCreateSessionRequest1.js";
3
+ export { type SessionByDeviceUpdateCommentsRequest1 } from "./SessionByDeviceUpdateCommentsRequest1.js";
4
+ export { type SessionByDeviceStartSessionRequest } from "./SessionByDeviceStartSessionRequest.js";
5
+ export { type SessionByDevicePauseSessionRequest } from "./SessionByDevicePauseSessionRequest.js";
6
+ export { type SessionByDeviceResumeSessionRequest } from "./SessionByDeviceResumeSessionRequest.js";
7
+ export { type SessionByDeviceEndSessionRequest } from "./SessionByDeviceEndSessionRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,66 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.js";
5
+ import * as core from "../../../../../../core/index.js";
6
+ import * as Chrt from "../../../../../index.js";
7
+ export declare namespace TaskGroupByDriver {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional headers to include in the request. */
25
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ }
27
+ }
28
+ export declare class TaskGroupByDriver {
29
+ protected readonly _options: TaskGroupByDriver.Options;
30
+ constructor(_options?: TaskGroupByDriver.Options);
31
+ /**
32
+ * Returns the most recent data point in tracking.task_group_by_driver for the given task_group_id.
33
+ *
34
+ * @param {Chrt.tracking.TaskGroupByDriverLastSeenRequest} request
35
+ * @param {TaskGroupByDriver.RequestOptions} requestOptions - Request-specific configuration.
36
+ *
37
+ * @throws {@link Chrt.UnprocessableEntityError}
38
+ *
39
+ * @example
40
+ * await client.tracking.taskGroupByDriver.lastSeen({
41
+ * task_group_id: "task_group_id"
42
+ * })
43
+ */
44
+ lastSeen(request: Chrt.tracking.TaskGroupByDriverLastSeenRequest, requestOptions?: TaskGroupByDriver.RequestOptions): core.HttpResponsePromise<(Chrt.TrackingTaskGroupByDriverDataPoint1 | null) | undefined>;
45
+ private __lastSeen;
46
+ /**
47
+ * Writes a data point to tracking.task_group_by_driver when the task group is in progress.
48
+ *
49
+ * @param {Chrt.tracking.TaskGroupByDriverUpdateReq} request
50
+ * @param {TaskGroupByDriver.RequestOptions} requestOptions - Request-specific configuration.
51
+ *
52
+ * @throws {@link Chrt.UnprocessableEntityError}
53
+ *
54
+ * @example
55
+ * await client.tracking.taskGroupByDriver.update({
56
+ * task_group_id: "task_group_id",
57
+ * timestamp: "2024-01-15T09:30:00Z",
58
+ * location: {
59
+ * type: "Feature"
60
+ * }
61
+ * })
62
+ */
63
+ update(request: Chrt.tracking.TaskGroupByDriverUpdateReq, requestOptions?: TaskGroupByDriver.RequestOptions): core.HttpResponsePromise<boolean>;
64
+ private __update;
65
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
66
+ }
@@ -0,0 +1,200 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.TaskGroupByDriver = void 0;
49
+ const environments = __importStar(require("../../../../../../environments.js"));
50
+ const core = __importStar(require("../../../../../../core/index.js"));
51
+ const Chrt = __importStar(require("../../../../../index.js"));
52
+ const headers_js_1 = require("../../../../../../core/headers.js");
53
+ const errors = __importStar(require("../../../../../../errors/index.js"));
54
+ class TaskGroupByDriver {
55
+ constructor(_options = {}) {
56
+ this._options = _options;
57
+ }
58
+ /**
59
+ * Returns the most recent data point in tracking.task_group_by_driver for the given task_group_id.
60
+ *
61
+ * @param {Chrt.tracking.TaskGroupByDriverLastSeenRequest} request
62
+ * @param {TaskGroupByDriver.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @throws {@link Chrt.UnprocessableEntityError}
65
+ *
66
+ * @example
67
+ * await client.tracking.taskGroupByDriver.lastSeen({
68
+ * task_group_id: "task_group_id"
69
+ * })
70
+ */
71
+ lastSeen(request, requestOptions) {
72
+ return core.HttpResponsePromise.fromPromise(this.__lastSeen(request, requestOptions));
73
+ }
74
+ __lastSeen(request, requestOptions) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ var _a, _b, _c, _d;
77
+ const { task_group_id: taskGroupId } = request;
78
+ const _queryParams = {};
79
+ _queryParams["task_group_id"] = taskGroupId;
80
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "tracking/task_group_by_driver/last_seen"),
82
+ method: "GET",
83
+ headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ queryParameters: _queryParams,
85
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
86
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
87
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
88
+ });
89
+ if (_response.ok) {
90
+ return {
91
+ data: _response.body,
92
+ rawResponse: _response.rawResponse,
93
+ };
94
+ }
95
+ if (_response.error.reason === "status-code") {
96
+ switch (_response.error.statusCode) {
97
+ case 422:
98
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
99
+ default:
100
+ throw new errors.ChrtError({
101
+ statusCode: _response.error.statusCode,
102
+ body: _response.error.body,
103
+ rawResponse: _response.rawResponse,
104
+ });
105
+ }
106
+ }
107
+ switch (_response.error.reason) {
108
+ case "non-json":
109
+ throw new errors.ChrtError({
110
+ statusCode: _response.error.statusCode,
111
+ body: _response.error.rawBody,
112
+ rawResponse: _response.rawResponse,
113
+ });
114
+ case "timeout":
115
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/task_group_by_driver/last_seen.");
116
+ case "unknown":
117
+ throw new errors.ChrtError({
118
+ message: _response.error.errorMessage,
119
+ rawResponse: _response.rawResponse,
120
+ });
121
+ }
122
+ });
123
+ }
124
+ /**
125
+ * Writes a data point to tracking.task_group_by_driver when the task group is in progress.
126
+ *
127
+ * @param {Chrt.tracking.TaskGroupByDriverUpdateReq} request
128
+ * @param {TaskGroupByDriver.RequestOptions} requestOptions - Request-specific configuration.
129
+ *
130
+ * @throws {@link Chrt.UnprocessableEntityError}
131
+ *
132
+ * @example
133
+ * await client.tracking.taskGroupByDriver.update({
134
+ * task_group_id: "task_group_id",
135
+ * timestamp: "2024-01-15T09:30:00Z",
136
+ * location: {
137
+ * type: "Feature"
138
+ * }
139
+ * })
140
+ */
141
+ update(request, requestOptions) {
142
+ return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
143
+ }
144
+ __update(request, requestOptions) {
145
+ return __awaiter(this, void 0, void 0, function* () {
146
+ var _a, _b, _c, _d;
147
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
148
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "tracking/task_group_by_driver/update"),
149
+ method: "POST",
150
+ headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
151
+ contentType: "application/json",
152
+ requestType: "json",
153
+ body: request,
154
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
155
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
156
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
157
+ });
158
+ if (_response.ok) {
159
+ return { data: _response.body, rawResponse: _response.rawResponse };
160
+ }
161
+ if (_response.error.reason === "status-code") {
162
+ switch (_response.error.statusCode) {
163
+ case 422:
164
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
165
+ default:
166
+ throw new errors.ChrtError({
167
+ statusCode: _response.error.statusCode,
168
+ body: _response.error.body,
169
+ rawResponse: _response.rawResponse,
170
+ });
171
+ }
172
+ }
173
+ switch (_response.error.reason) {
174
+ case "non-json":
175
+ throw new errors.ChrtError({
176
+ statusCode: _response.error.statusCode,
177
+ body: _response.error.rawBody,
178
+ rawResponse: _response.rawResponse,
179
+ });
180
+ case "timeout":
181
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/task_group_by_driver/update.");
182
+ case "unknown":
183
+ throw new errors.ChrtError({
184
+ message: _response.error.errorMessage,
185
+ rawResponse: _response.rawResponse,
186
+ });
187
+ }
188
+ });
189
+ }
190
+ _getAuthorizationHeader() {
191
+ return __awaiter(this, void 0, void 0, function* () {
192
+ const bearer = yield core.Supplier.get(this._options.token);
193
+ if (bearer != null) {
194
+ return `Bearer ${bearer}`;
195
+ }
196
+ return undefined;
197
+ });
198
+ }
199
+ }
200
+ exports.TaskGroupByDriver = TaskGroupByDriver;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * task_group_id: "task_group_id"
8
+ * }
9
+ */
10
+ export interface TaskGroupByDriverLastSeenRequest {
11
+ task_group_id: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * task_group_id: "task_group_id",
9
+ * timestamp: "2024-01-15T09:30:00Z",
10
+ * location: {
11
+ * type: "Feature"
12
+ * }
13
+ * }
14
+ */
15
+ export interface TaskGroupByDriverUpdateReq {
16
+ task_group_id: string;
17
+ timestamp: string;
18
+ location: Chrt.LocationFeature;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { type TaskGroupByDriverLastSeenRequest } from "./TaskGroupByDriverLastSeenRequest.js";
2
+ export { type TaskGroupByDriverUpdateReq } from "./TaskGroupByDriverUpdateReq.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -13,4 +13,6 @@ export interface Cargo1 {
13
13
  _id: string;
14
14
  order_id: string;
15
15
  order_short_id: string;
16
+ device_ids?: string[] | null;
17
+ status?: Chrt.CargoStatusEnum1;
16
18
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type CargoStatusEnum1 = "awaiting_pickup" | "in_transit" | "delivered" | "exception";
5
+ export declare const CargoStatusEnum1: {
6
+ readonly AwaitingPickup: "awaiting_pickup";
7
+ readonly InTransit: "in_transit";
8
+ readonly Delivered: "delivered";
9
+ readonly Exception: "exception";
10
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CargoStatusEnum1 = void 0;
7
+ exports.CargoStatusEnum1 = {
8
+ AwaitingPickup: "awaiting_pickup",
9
+ InTransit: "in_transit",
10
+ Delivered: "delivered",
11
+ Exception: "exception",
12
+ };
@@ -13,6 +13,7 @@ export interface DecodedJwtWithOrgAndUserId {
13
13
  sid?: string | null;
14
14
  /** Must be a string starting with `user_` */
15
15
  sub?: string | null;
16
+ sts?: string | null;
16
17
  v?: number | null;
17
18
  o?: Chrt.ClerkOrgData | null;
18
19
  org_public_metadata?: Record<string, unknown> | null;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface Device1 {
6
+ schema_version: number;
7
+ /** Must be a string starting with `org_` */
8
+ org_id: string;
9
+ device_mac_address: string;
10
+ device_token?: string | null;
11
+ type?: Chrt.TrackingDeviceTypeEnum1 | null;
12
+ registered_at_timestamp?: string | null;
13
+ last_seen_at_location?: Chrt.LocationFeature | null;
14
+ last_seen_at_timestamp?: string | null;
15
+ last_seen_battery_level?: string | null;
16
+ session_id?: string | null;
17
+ cargo_id?: string | null;
18
+ _id: string;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,7 +17,7 @@ export interface Driver1 {
17
17
  last_seen_at_timestamp?: string | null;
18
18
  _id: string;
19
19
  /** Must be a string starting with `org_` */
20
- org_id?: string | null;
20
+ org_id: string;
21
21
  /** Must be a string starting with `user_` */
22
- user_id?: string | null;
22
+ user_id: string;
23
23
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface TrackingCargoByDriverDataPoint1 {
6
+ schema_version: number;
7
+ timestamp: string;
8
+ metadata: Chrt.TrackingCargoByDriverDataPointMetadata1;
9
+ location: Chrt.LocationFeature;
10
+ _id: string;
11
+ }