@chrt-inc/typescript-sdk 1.924.0 → 1.929.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 (468) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +29 -24
  3. package/dist/cjs/api/resources/agent/client/Client.d.ts +23 -0
  4. package/dist/cjs/api/resources/agent/client/Client.js +17 -0
  5. package/dist/cjs/api/resources/agent/client/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/agent/client/index.js +2 -0
  7. package/dist/cjs/api/resources/agent/index.d.ts +2 -0
  8. package/dist/cjs/api/resources/agent/index.js +18 -0
  9. package/dist/cjs/api/resources/agent/resources/index.d.ts +2 -0
  10. package/dist/cjs/api/resources/agent/resources/index.js +41 -0
  11. package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.d.ts +79 -0
  12. package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.js +260 -0
  13. package/dist/cjs/api/resources/agent/resources/orderInformation/client/index.d.ts +2 -0
  14. package/dist/cjs/api/resources/agent/resources/orderInformation/client/index.js +17 -0
  15. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.ts +11 -0
  16. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.ts +12 -0
  17. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.ts +13 -0
  18. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/index.d.ts +3 -0
  19. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/index.js +2 -0
  20. package/dist/cjs/api/resources/agent/resources/orderInformation/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/agent/resources/orderInformation/index.js +17 -0
  22. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.ts +0 -1
  23. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.js +1 -5
  24. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +0 -1
  25. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.ts +0 -3
  26. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +1 -1
  27. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +1 -1
  28. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +20 -3
  29. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +69 -3
  30. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.ts +2 -0
  31. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.d.ts +14 -0
  32. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +3 -0
  34. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +5 -0
  35. package/dist/cjs/api/resources/billingNew/resources/orders/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/billingNew/resources/orders/index.js +1 -0
  37. package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.d.ts +2 -0
  38. package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.js +41 -0
  39. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.ts +49 -0
  40. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.js +135 -0
  41. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.ts +2 -0
  42. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.js +17 -0
  43. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.d.ts +12 -0
  44. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.ts +1 -0
  45. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.js +2 -0
  46. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.js +17 -0
  48. package/dist/cjs/api/resources/index.d.ts +1 -0
  49. package/dist/cjs/api/resources/index.js +2 -1
  50. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +10 -8
  51. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +21 -13
  52. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.ts +3 -0
  53. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +3 -0
  54. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTaskStatusReq.d.ts → OperationsTasksSetStatusReq1.d.ts} +3 -1
  55. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -1
  56. package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.d.ts +1 -1
  57. package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.js +1 -1
  58. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +6 -1
  59. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +30 -2
  60. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +17 -0
  61. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.d.ts +14 -0
  62. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.js +60 -0
  63. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/tasks/client/requests/OrderTemplateNewTaskClientUpdate1.d.ts +1 -0
  64. package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.ts +13 -0
  65. package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.js +59 -0
  66. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +2 -105
  67. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +6 -518
  68. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -0
  69. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.ts +0 -2
  70. package/dist/cjs/api/resources/shipping/resources/orders/resources/task/client/requests/TaskClientUpdate1.d.ts +1 -0
  71. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +1 -1
  72. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +1 -1
  73. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +18 -31
  74. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +34 -93
  75. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForDriverForExecutorV1Request.d.ts → ExpandedListForDriverV1Request.d.ts} +1 -1
  76. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForExecutorOperatorsV1Request.d.ts → ExpandedListForProviderOperatorsV1Request.d.ts} +3 -1
  77. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +2 -2
  78. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.d.ts +1 -0
  79. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.js +1 -0
  80. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.ts +11 -7
  81. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.js +23 -15
  82. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.d.ts +1 -0
  83. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.js +15 -0
  84. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.d.ts +13 -0
  85. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.d.ts +1 -0
  86. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.js +2 -0
  87. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +19 -2
  88. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +74 -5
  89. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskCompleteReq.d.ts +10 -0
  90. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.d.ts +12 -0
  91. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/index.d.ts +2 -0
  92. package/dist/cjs/api/resources/tracking/client/Client.d.ts +6 -0
  93. package/dist/cjs/api/resources/tracking/client/Client.js +16 -6
  94. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/Client.d.ts +140 -0
  95. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/Client.js +494 -0
  96. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/index.d.ts +2 -0
  97. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/index.js +17 -0
  98. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.d.ts +45 -0
  99. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.d.ts +28 -0
  100. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.d.ts +14 -0
  101. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/index.d.ts +3 -0
  102. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/index.js +2 -0
  103. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/index.d.ts +1 -0
  104. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/index.js +17 -0
  105. package/dist/cjs/api/resources/tracking/resources/index.d.ts +4 -0
  106. package/dist/cjs/api/resources/tracking/resources/index.js +5 -1
  107. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/Client.d.ts +117 -0
  108. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/Client.js +393 -0
  109. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/index.d.ts +2 -0
  110. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/index.js +17 -0
  111. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.d.ts +12 -0
  112. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.d.ts +13 -0
  113. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.js +5 -0
  114. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.d.ts +10 -0
  115. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.js +5 -0
  116. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/index.d.ts +3 -0
  117. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/index.js +2 -0
  118. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/index.d.ts +1 -0
  119. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/index.js +17 -0
  120. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +8 -8
  121. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +5 -5
  122. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionClientUpdate1.d.ts → SessionClientUpdate2.d.ts} +1 -5
  123. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate2.js +5 -0
  124. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionClientCreate1.d.ts → SessionsCreateV1Req.d.ts} +3 -3
  125. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsCreateV1Req.js +5 -0
  126. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +2 -2
  127. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.ts +4 -4
  128. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.js +2 -2
  129. package/dist/cjs/api/types/AiImageDescription.d.ts +1 -1
  130. package/dist/{esm/api/types/LlmModelEnum.d.mts → cjs/api/types/ArchivedModel.d.ts} +5 -2
  131. package/dist/cjs/api/types/{LlmModelEnum.js → ArchivedModel.js} +2 -2
  132. package/dist/cjs/api/types/BillingInvoiceApprovedWebhookPayload.d.ts +10 -0
  133. package/dist/cjs/api/types/BillingInvoiceApprovedWebhookPayload.js +5 -0
  134. package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +0 -1
  135. package/dist/cjs/api/types/ContactExpandedListItem.d.ts +10 -0
  136. package/dist/cjs/api/types/ContactExpandedListItem.js +5 -0
  137. package/dist/cjs/api/types/ContactListRes.d.ts +1 -1
  138. package/dist/cjs/api/types/DeviceExpandedRes.d.ts +2 -2
  139. package/dist/cjs/api/types/GeofencePointLocationFeature1.d.ts +14 -0
  140. package/dist/cjs/api/types/GeofencePointLocationFeature1.js +5 -0
  141. package/dist/cjs/api/types/{OrdersExpandedListForExecutorRes.d.ts → GeofenceTemplateListRes.d.ts} +2 -2
  142. package/dist/cjs/api/types/GeofenceTemplateListRes.js +5 -0
  143. package/dist/cjs/api/types/GeofenceTemplateSortByEnum.d.ts +10 -0
  144. package/dist/cjs/api/types/GeofenceTemplateSortByEnum.js +12 -0
  145. package/dist/cjs/api/types/Invoice1.d.ts +2 -0
  146. package/dist/cjs/api/types/InvoiceExpandedListItem.d.ts +11 -0
  147. package/dist/cjs/api/types/InvoiceExpandedListItem.js +5 -0
  148. package/dist/cjs/api/types/InvoiceExpandedRes.d.ts +1 -1
  149. package/dist/cjs/api/types/InvoiceLineItemExpandedListItem.d.ts +8 -0
  150. package/dist/cjs/api/types/InvoiceLineItemExpandedListItem.js +5 -0
  151. package/dist/cjs/api/types/InvoiceLineItemExpandedRes.d.ts +12 -0
  152. package/dist/cjs/api/types/InvoiceLineItemExpandedRes.js +5 -0
  153. package/dist/cjs/api/types/InvoiceLineItemListRes.d.ts +1 -1
  154. package/dist/cjs/api/types/InvoiceListRes.d.ts +1 -1
  155. package/dist/cjs/api/types/Model.d.ts +12 -0
  156. package/dist/cjs/api/types/Model.js +11 -0
  157. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +2 -2
  158. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +1 -1
  159. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +3 -2
  160. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +2 -1
  161. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +3 -2
  162. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +2 -1
  163. package/dist/cjs/api/types/OperationsTaskExpandedListItem.d.ts +1 -0
  164. package/dist/cjs/api/types/OperationsTasksStatusUpdateRes1.d.ts +7 -0
  165. package/dist/cjs/api/types/OperationsTasksStatusUpdateRes1.js +5 -0
  166. package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +2 -0
  167. package/dist/cjs/api/types/OrderExpandedForProvider.d.ts +3 -0
  168. package/dist/cjs/api/types/OrderExpandedForShipper.d.ts +1 -0
  169. package/dist/cjs/api/types/OrderInformationConversationRes.d.ts +7 -0
  170. package/dist/cjs/api/types/OrderInformationConversationRes.js +5 -0
  171. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyRes.d.ts +12 -0
  172. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyRes.js +5 -0
  173. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyResult1.d.ts +11 -0
  174. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyResult1.js +5 -0
  175. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.d.ts +9 -0
  176. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.js +11 -0
  177. package/dist/cjs/api/types/OrderTemplateNewExpanded1.d.ts +37 -0
  178. package/dist/cjs/api/types/OrderTemplateNewExpanded1.js +5 -0
  179. package/dist/cjs/api/types/OrderTemplateNewListRes.d.ts +1 -1
  180. package/dist/cjs/api/types/OrderTemplateNewTaskGroupExpanded1.d.ts +10 -0
  181. package/dist/cjs/api/types/OrderTemplateNewTaskGroupExpanded1.js +5 -0
  182. package/dist/cjs/api/types/Point.d.ts +1 -0
  183. package/dist/cjs/api/types/{Session1.d.ts → Session2.d.ts} +2 -4
  184. package/dist/cjs/api/types/Session2.js +5 -0
  185. package/dist/cjs/api/types/SessionGeofence1.d.ts +12 -0
  186. package/dist/cjs/api/types/SessionGeofence1.js +5 -0
  187. package/dist/cjs/api/types/SessionGeofenceBase1.d.ts +9 -0
  188. package/dist/cjs/api/types/SessionGeofenceBase1.js +5 -0
  189. package/dist/cjs/api/types/SessionGeofenceClientCreate1.d.ts +9 -0
  190. package/dist/cjs/api/types/SessionGeofenceClientCreate1.js +5 -0
  191. package/dist/cjs/api/types/SessionGeofenceTemplate1.d.ts +19 -0
  192. package/dist/cjs/api/types/SessionGeofenceTemplate1.js +5 -0
  193. package/dist/cjs/api/types/SessionListRes.d.ts +1 -1
  194. package/dist/cjs/api/types/StoredModel.d.ts +5 -0
  195. package/dist/cjs/api/types/StoredModel.js +5 -0
  196. package/dist/cjs/api/types/Task1.d.ts +1 -0
  197. package/dist/cjs/api/types/TaskGroupByDriverDataPointsRes.d.ts +8 -0
  198. package/dist/cjs/api/types/TaskGroupByDriverDataPointsRes.js +5 -0
  199. package/dist/cjs/api/types/TaskGroupByDriverLastSeenRes.d.ts +8 -0
  200. package/dist/cjs/api/types/TaskGroupByDriverLastSeenRes.js +5 -0
  201. package/dist/cjs/api/types/TaskGroupProviderRoleFilterEnum.d.ts +9 -0
  202. package/dist/cjs/api/types/TaskGroupProviderRoleFilterEnum.js +11 -0
  203. package/dist/cjs/api/types/TaskListToApplyToOrderExpanded.d.ts +8 -0
  204. package/dist/cjs/api/types/TaskListToApplyToOrderExpanded.js +5 -0
  205. package/dist/cjs/api/types/TrackingSessionGeofenceEnteredWebhookPayload.d.ts +14 -0
  206. package/dist/cjs/api/types/TrackingSessionGeofenceEnteredWebhookPayload.js +5 -0
  207. package/dist/cjs/api/types/index.d.ts +28 -9
  208. package/dist/cjs/api/types/index.js +28 -9
  209. package/dist/cjs/version.d.ts +1 -1
  210. package/dist/cjs/version.js +1 -1
  211. package/dist/esm/Client.d.mts +3 -0
  212. package/dist/esm/Client.mjs +7 -2
  213. package/dist/esm/api/resources/agent/client/Client.d.mts +23 -0
  214. package/dist/esm/api/resources/agent/client/Client.mjs +13 -0
  215. package/dist/esm/api/resources/agent/client/index.d.mts +1 -0
  216. package/dist/esm/api/resources/agent/client/index.mjs +1 -0
  217. package/dist/esm/api/resources/agent/index.d.mts +2 -0
  218. package/dist/esm/api/resources/agent/index.mjs +2 -0
  219. package/dist/esm/api/resources/agent/resources/index.d.mts +2 -0
  220. package/dist/esm/api/resources/agent/resources/index.mjs +2 -0
  221. package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.d.mts +79 -0
  222. package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.mjs +223 -0
  223. package/dist/esm/api/resources/agent/resources/orderInformation/client/index.d.mts +2 -0
  224. package/dist/esm/api/resources/agent/resources/orderInformation/client/index.mjs +1 -0
  225. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.mts +11 -0
  226. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.mts +12 -0
  227. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.mts +13 -0
  228. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/index.d.mts +3 -0
  229. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/index.mjs +1 -0
  230. package/dist/esm/api/resources/agent/resources/orderInformation/index.d.mts +1 -0
  231. package/dist/esm/api/resources/agent/resources/orderInformation/index.mjs +1 -0
  232. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.mts +0 -1
  233. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.mjs +1 -5
  234. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +0 -1
  235. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.mts +0 -3
  236. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +1 -1
  237. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +1 -1
  238. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +20 -3
  239. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +69 -3
  240. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.mts +2 -0
  241. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.d.mts +14 -0
  242. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/index.d.mts +1 -0
  243. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +3 -0
  244. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +5 -0
  245. package/dist/esm/api/resources/billingNew/resources/orders/index.d.mts +1 -0
  246. package/dist/esm/api/resources/billingNew/resources/orders/index.mjs +1 -0
  247. package/dist/esm/api/resources/billingNew/resources/orders/resources/index.d.mts +2 -0
  248. package/dist/esm/api/resources/billingNew/resources/orders/resources/index.mjs +2 -0
  249. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.mts +49 -0
  250. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.mjs +98 -0
  251. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.mts +2 -0
  252. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.mjs +1 -0
  253. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.d.mts +12 -0
  254. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.mts +1 -0
  255. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.mjs +1 -0
  256. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.mts +1 -0
  257. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.mjs +1 -0
  258. package/dist/esm/api/resources/index.d.mts +1 -0
  259. package/dist/esm/api/resources/index.mjs +1 -0
  260. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +10 -8
  261. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +21 -13
  262. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.mts +3 -0
  263. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +3 -0
  264. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTaskStatusReq.d.mts → OperationsTasksSetStatusReq1.d.mts} +3 -1
  265. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -1
  266. package/dist/esm/api/resources/orgs/resources/contacts/client/Client.d.mts +1 -1
  267. package/dist/esm/api/resources/orgs/resources/contacts/client/Client.mjs +1 -1
  268. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +6 -1
  269. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +30 -2
  270. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +17 -0
  271. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.d.mts +14 -0
  272. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.mjs +60 -0
  273. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/tasks/client/requests/OrderTemplateNewTaskClientUpdate1.d.mts +1 -0
  274. package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.mts +13 -0
  275. package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.mjs +59 -0
  276. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +2 -105
  277. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +6 -518
  278. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -0
  279. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.mts +0 -2
  280. package/dist/esm/api/resources/shipping/resources/orders/resources/task/client/requests/TaskClientUpdate1.d.mts +1 -0
  281. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +1 -1
  282. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +1 -1
  283. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +18 -31
  284. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +34 -93
  285. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForDriverForExecutorV1Request.d.mts → ExpandedListForDriverV1Request.d.mts} +1 -1
  286. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForExecutorOperatorsV1Request.d.mts → ExpandedListForProviderOperatorsV1Request.d.mts} +3 -1
  287. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +2 -2
  288. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.d.mts +1 -0
  289. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.mjs +1 -0
  290. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.mts +11 -7
  291. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.mjs +23 -15
  292. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.d.mts +1 -0
  293. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.mjs +1 -1
  294. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.d.mts +13 -0
  295. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.d.mts +1 -0
  296. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.mjs +1 -0
  297. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +19 -2
  298. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +74 -5
  299. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskCompleteReq.d.mts +10 -0
  300. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.d.mts +12 -0
  301. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/index.d.mts +2 -0
  302. package/dist/esm/api/resources/tracking/client/Client.d.mts +6 -0
  303. package/dist/esm/api/resources/tracking/client/Client.mjs +10 -0
  304. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/Client.d.mts +140 -0
  305. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/Client.mjs +457 -0
  306. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/index.d.mts +2 -0
  307. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/index.mjs +1 -0
  308. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.d.mts +45 -0
  309. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.d.mts +28 -0
  310. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.d.mts +14 -0
  311. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/index.d.mts +3 -0
  312. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/index.mjs +1 -0
  313. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/index.d.mts +1 -0
  314. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/index.mjs +1 -0
  315. package/dist/esm/api/resources/tracking/resources/index.d.mts +4 -0
  316. package/dist/esm/api/resources/tracking/resources/index.mjs +4 -0
  317. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/Client.d.mts +117 -0
  318. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/Client.mjs +356 -0
  319. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/index.d.mts +2 -0
  320. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/index.mjs +1 -0
  321. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.d.mts +12 -0
  322. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.d.mts +13 -0
  323. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.mjs +4 -0
  324. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.d.mts +10 -0
  325. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.mjs +4 -0
  326. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/index.d.mts +3 -0
  327. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/index.mjs +1 -0
  328. package/dist/esm/api/resources/tracking/resources/sessionGeofences/index.d.mts +1 -0
  329. package/dist/esm/api/resources/tracking/resources/sessionGeofences/index.mjs +1 -0
  330. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +8 -8
  331. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +5 -5
  332. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionClientUpdate1.d.mts → SessionClientUpdate2.d.mts} +1 -5
  333. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate2.mjs +4 -0
  334. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionClientCreate1.d.mts → SessionsCreateV1Req.d.mts} +3 -3
  335. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsCreateV1Req.mjs +4 -0
  336. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +2 -2
  337. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.mts +4 -4
  338. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.mjs +2 -2
  339. package/dist/esm/api/types/AiImageDescription.d.mts +1 -1
  340. package/dist/{cjs/api/types/LlmModelEnum.d.ts → esm/api/types/ArchivedModel.d.mts} +5 -2
  341. package/dist/esm/api/types/{LlmModelEnum.mjs → ArchivedModel.mjs} +1 -1
  342. package/dist/esm/api/types/BillingInvoiceApprovedWebhookPayload.d.mts +10 -0
  343. package/dist/esm/api/types/BillingInvoiceApprovedWebhookPayload.mjs +4 -0
  344. package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +0 -1
  345. package/dist/esm/api/types/ContactExpandedListItem.d.mts +10 -0
  346. package/dist/esm/api/types/ContactExpandedListItem.mjs +4 -0
  347. package/dist/esm/api/types/ContactListRes.d.mts +1 -1
  348. package/dist/esm/api/types/DeviceExpandedRes.d.mts +2 -2
  349. package/dist/esm/api/types/GeofencePointLocationFeature1.d.mts +14 -0
  350. package/dist/esm/api/types/GeofencePointLocationFeature1.mjs +4 -0
  351. package/dist/esm/api/types/{OrdersExpandedListForExecutorRes.d.mts → GeofenceTemplateListRes.d.mts} +2 -2
  352. package/dist/esm/api/types/GeofenceTemplateListRes.mjs +4 -0
  353. package/dist/esm/api/types/GeofenceTemplateSortByEnum.d.mts +10 -0
  354. package/dist/esm/api/types/GeofenceTemplateSortByEnum.mjs +9 -0
  355. package/dist/esm/api/types/Invoice1.d.mts +2 -0
  356. package/dist/esm/api/types/InvoiceExpandedListItem.d.mts +11 -0
  357. package/dist/esm/api/types/InvoiceExpandedListItem.mjs +4 -0
  358. package/dist/esm/api/types/InvoiceExpandedRes.d.mts +1 -1
  359. package/dist/esm/api/types/InvoiceLineItemExpandedListItem.d.mts +8 -0
  360. package/dist/esm/api/types/InvoiceLineItemExpandedListItem.mjs +4 -0
  361. package/dist/esm/api/types/InvoiceLineItemExpandedRes.d.mts +12 -0
  362. package/dist/esm/api/types/InvoiceLineItemExpandedRes.mjs +4 -0
  363. package/dist/esm/api/types/InvoiceLineItemListRes.d.mts +1 -1
  364. package/dist/esm/api/types/InvoiceListRes.d.mts +1 -1
  365. package/dist/esm/api/types/Model.d.mts +12 -0
  366. package/dist/esm/api/types/Model.mjs +8 -0
  367. package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +2 -2
  368. package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +1 -1
  369. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +3 -2
  370. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +2 -1
  371. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +3 -2
  372. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +2 -1
  373. package/dist/esm/api/types/OperationsTaskExpandedListItem.d.mts +1 -0
  374. package/dist/esm/api/types/OperationsTasksStatusUpdateRes1.d.mts +7 -0
  375. package/dist/esm/api/types/OperationsTasksStatusUpdateRes1.mjs +4 -0
  376. package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +2 -0
  377. package/dist/esm/api/types/OrderExpandedForProvider.d.mts +3 -0
  378. package/dist/esm/api/types/OrderExpandedForShipper.d.mts +1 -0
  379. package/dist/esm/api/types/OrderInformationConversationRes.d.mts +7 -0
  380. package/dist/esm/api/types/OrderInformationConversationRes.mjs +4 -0
  381. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyRes.d.mts +12 -0
  382. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyRes.mjs +4 -0
  383. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyResult1.d.mts +11 -0
  384. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyResult1.mjs +4 -0
  385. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.d.mts +9 -0
  386. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.mjs +8 -0
  387. package/dist/esm/api/types/OrderTemplateNewExpanded1.d.mts +37 -0
  388. package/dist/esm/api/types/OrderTemplateNewExpanded1.mjs +4 -0
  389. package/dist/esm/api/types/OrderTemplateNewListRes.d.mts +1 -1
  390. package/dist/esm/api/types/OrderTemplateNewTaskGroupExpanded1.d.mts +10 -0
  391. package/dist/esm/api/types/OrderTemplateNewTaskGroupExpanded1.mjs +4 -0
  392. package/dist/esm/api/types/Point.d.mts +1 -0
  393. package/dist/esm/api/types/{Session1.d.mts → Session2.d.mts} +2 -4
  394. package/dist/esm/api/types/Session2.mjs +4 -0
  395. package/dist/esm/api/types/SessionGeofence1.d.mts +12 -0
  396. package/dist/esm/api/types/SessionGeofence1.mjs +4 -0
  397. package/dist/esm/api/types/SessionGeofenceBase1.d.mts +9 -0
  398. package/dist/esm/api/types/SessionGeofenceBase1.mjs +4 -0
  399. package/dist/esm/api/types/SessionGeofenceClientCreate1.d.mts +9 -0
  400. package/dist/esm/api/types/SessionGeofenceClientCreate1.mjs +4 -0
  401. package/dist/esm/api/types/SessionGeofenceTemplate1.d.mts +19 -0
  402. package/dist/esm/api/types/SessionGeofenceTemplate1.mjs +4 -0
  403. package/dist/esm/api/types/SessionListRes.d.mts +1 -1
  404. package/dist/esm/api/types/StoredModel.d.mts +5 -0
  405. package/dist/esm/api/types/StoredModel.mjs +4 -0
  406. package/dist/esm/api/types/Task1.d.mts +1 -0
  407. package/dist/esm/api/types/TaskGroupByDriverDataPointsRes.d.mts +8 -0
  408. package/dist/esm/api/types/TaskGroupByDriverDataPointsRes.mjs +4 -0
  409. package/dist/esm/api/types/TaskGroupByDriverLastSeenRes.d.mts +8 -0
  410. package/dist/esm/api/types/TaskGroupByDriverLastSeenRes.mjs +4 -0
  411. package/dist/esm/api/types/TaskGroupProviderRoleFilterEnum.d.mts +9 -0
  412. package/dist/esm/api/types/TaskGroupProviderRoleFilterEnum.mjs +8 -0
  413. package/dist/esm/api/types/TaskListToApplyToOrderExpanded.d.mts +8 -0
  414. package/dist/esm/api/types/TaskListToApplyToOrderExpanded.mjs +4 -0
  415. package/dist/esm/api/types/TrackingSessionGeofenceEnteredWebhookPayload.d.mts +14 -0
  416. package/dist/esm/api/types/TrackingSessionGeofenceEnteredWebhookPayload.mjs +4 -0
  417. package/dist/esm/api/types/index.d.mts +28 -9
  418. package/dist/esm/api/types/index.mjs +28 -9
  419. package/dist/esm/version.d.mts +1 -1
  420. package/dist/esm/version.mjs +1 -1
  421. package/package.json +1 -1
  422. package/reference.md +1785 -802
  423. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +0 -73
  424. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +0 -66
  425. package/dist/cjs/api/types/OrderExpandedForCoordinator.d.ts +0 -15
  426. package/dist/cjs/api/types/OrderExpandedForExecutor.d.ts +0 -14
  427. package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +0 -47
  428. package/dist/cjs/api/types/OrderLimitedForExecutor1.d.ts +0 -27
  429. package/dist/cjs/api/types/OrdersExpandedListForCoordinatorRes.d.ts +0 -8
  430. package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.ts +0 -10
  431. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +0 -73
  432. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +0 -66
  433. package/dist/esm/api/types/OrderExpandedForCoordinator.d.mts +0 -15
  434. package/dist/esm/api/types/OrderExpandedForExecutor.d.mts +0 -14
  435. package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +0 -47
  436. package/dist/esm/api/types/OrderLimitedForExecutor1.d.mts +0 -27
  437. package/dist/esm/api/types/OrdersExpandedListForCoordinatorRes.d.mts +0 -8
  438. package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.mts +0 -10
  439. /package/dist/cjs/api/resources/{operations/resources/operationsTasks/client/requests/OperationsTaskStatusReq.js → agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.js} +0 -0
  440. /package/dist/cjs/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.js → agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.js} +0 -0
  441. /package/dist/cjs/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.js → agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.js} +0 -0
  442. /package/dist/cjs/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.js → billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.js} +0 -0
  443. /package/dist/cjs/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.js → billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.js} +0 -0
  444. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionClientCreate1.js → operations/resources/operationsTasks/client/requests/OperationsTasksSetStatusReq1.js} +0 -0
  445. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionClientUpdate1.js → shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.js} +0 -0
  446. /package/dist/cjs/api/{types/OrderExpandedForCoordinator.js → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.js} +0 -0
  447. /package/dist/cjs/api/{types/OrderExpandedForExecutor.js → resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.js} +0 -0
  448. /package/dist/cjs/api/{types/OrderLimitedForCoordinator1.js → resources/shipping/resources/tasks/client/requests/TaskCompleteReq.js} +0 -0
  449. /package/dist/cjs/api/{types/OrderLimitedForExecutor1.js → resources/shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.js} +0 -0
  450. /package/dist/cjs/api/{types/OrdersExpandedListForCoordinatorRes.js → resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.js} +0 -0
  451. /package/dist/cjs/api/{types/OrdersExpandedListForExecutorRes.js → resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.js} +0 -0
  452. /package/dist/cjs/api/{types/Session1.js → resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.js} +0 -0
  453. /package/dist/cjs/api/{types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.js → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.js} +0 -0
  454. /package/dist/esm/api/resources/{operations/resources/operationsTasks/client/requests/OperationsTaskStatusReq.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.mjs} +0 -0
  455. /package/dist/esm/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.mjs} +0 -0
  456. /package/dist/esm/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.mjs} +0 -0
  457. /package/dist/esm/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.mjs → billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.mjs} +0 -0
  458. /package/dist/esm/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.mjs → billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.mjs} +0 -0
  459. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionClientCreate1.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksSetStatusReq1.mjs} +0 -0
  460. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionClientUpdate1.mjs → shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.mjs} +0 -0
  461. /package/dist/esm/api/{types/OrderExpandedForCoordinator.mjs → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.mjs} +0 -0
  462. /package/dist/esm/api/{types/OrderExpandedForExecutor.mjs → resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.mjs} +0 -0
  463. /package/dist/esm/api/{types/OrderLimitedForCoordinator1.mjs → resources/shipping/resources/tasks/client/requests/TaskCompleteReq.mjs} +0 -0
  464. /package/dist/esm/api/{types/OrderLimitedForExecutor1.mjs → resources/shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.mjs} +0 -0
  465. /package/dist/esm/api/{types/OrdersExpandedListForCoordinatorRes.mjs → resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.mjs} +0 -0
  466. /package/dist/esm/api/{types/OrdersExpandedListForExecutorRes.mjs → resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.mjs} +0 -0
  467. /package/dist/esm/api/{types/Session1.mjs → resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.mjs} +0 -0
  468. /package/dist/esm/api/{types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.mjs → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.mjs} +0 -0
@@ -36,13 +36,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.timeseries = exports.sharingSettings = exports.sessions = exports.driver = exports.devices = void 0;
39
+ exports.timeseries = exports.sharingSettings = exports.sessionGeofences = exports.sessions = exports.geofenceTemplates = exports.driver = exports.devices = void 0;
40
40
  exports.devices = __importStar(require("./devices/index.js"));
41
41
  exports.driver = __importStar(require("./driver/index.js"));
42
+ exports.geofenceTemplates = __importStar(require("./geofenceTemplates/index.js"));
42
43
  exports.sessions = __importStar(require("./sessions/index.js"));
44
+ exports.sessionGeofences = __importStar(require("./sessionGeofences/index.js"));
43
45
  exports.sharingSettings = __importStar(require("./sharingSettings/index.js"));
44
46
  exports.timeseries = __importStar(require("./timeseries/index.js"));
45
47
  __exportStar(require("./devices/client/requests/index.js"), exports);
46
48
  __exportStar(require("./driver/client/requests/index.js"), exports);
49
+ __exportStar(require("./geofenceTemplates/client/requests/index.js"), exports);
47
50
  __exportStar(require("./sessions/client/requests/index.js"), exports);
51
+ __exportStar(require("./sessionGeofences/client/requests/index.js"), exports);
48
52
  __exportStar(require("./sharingSettings/client/requests/index.js"), exports);
@@ -0,0 +1,117 @@
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 SessionGeofences {
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 | null | undefined> | null | 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 query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class SessionGeofences {
31
+ protected readonly _options: SessionGeofences.Options;
32
+ constructor(_options?: SessionGeofences.Options);
33
+ /**
34
+ * Adds a geofence to an active session. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceClientCreate1) -> (Session2)
35
+ *
36
+ * @param {string} sessionId
37
+ * @param {Chrt.SessionGeofenceClientCreate1} request
38
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link Chrt.UnprocessableEntityError}
41
+ *
42
+ * @example
43
+ * await client.tracking.sessionGeofences.addV1("session_id", {
44
+ * display_name: "display_name",
45
+ * location: {
46
+ * geometry: {
47
+ * coordinates: [],
48
+ * type: "Point"
49
+ * },
50
+ * type: "Feature"
51
+ * },
52
+ * radius_miles: 1.1
53
+ * })
54
+ */
55
+ addV1(sessionId: string, request: Chrt.SessionGeofenceClientCreate1, requestOptions?: SessionGeofences.RequestOptions): core.HttpResponsePromise<Chrt.Session2>;
56
+ private __addV1;
57
+ /**
58
+ * Replaces an active session's geofences from an active organization template. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceApplyTemplateReq) -> (Session2)
59
+ *
60
+ * @param {string} sessionId
61
+ * @param {Chrt.tracking.SessionGeofenceApplyTemplateReq} request
62
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @throws {@link Chrt.UnprocessableEntityError}
65
+ *
66
+ * @example
67
+ * await client.tracking.sessionGeofences.applyTemplateV1("session_id", {
68
+ * geofence_template_id: "geofence_template_id"
69
+ * })
70
+ */
71
+ applyTemplateV1(sessionId: string, request: Chrt.tracking.SessionGeofenceApplyTemplateReq, requestOptions?: SessionGeofences.RequestOptions): core.HttpResponsePromise<Chrt.Session2>;
72
+ private __applyTemplateV1;
73
+ /**
74
+ * Reorders an active session's geofences using an exact ID permutation. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceReorderReq) -> (Session2)
75
+ *
76
+ * @param {string} sessionId
77
+ * @param {Chrt.tracking.SessionGeofenceReorderReq} request
78
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
79
+ *
80
+ * @throws {@link Chrt.UnprocessableEntityError}
81
+ *
82
+ * @example
83
+ * await client.tracking.sessionGeofences.reorderV1("session_id")
84
+ */
85
+ reorderV1(sessionId: string, request?: Chrt.tracking.SessionGeofenceReorderReq, requestOptions?: SessionGeofences.RequestOptions): core.HttpResponsePromise<Chrt.Session2>;
86
+ private __reorderV1;
87
+ /**
88
+ * Updates a session geofence, resetting entry state only when location or radius changes. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceClientUpdate1) -> (Session2)
89
+ *
90
+ * @param {string} sessionId
91
+ * @param {string} geofenceId
92
+ * @param {Chrt.tracking.SessionGeofenceClientUpdate1} request
93
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
94
+ *
95
+ * @throws {@link Chrt.UnprocessableEntityError}
96
+ *
97
+ * @example
98
+ * await client.tracking.sessionGeofences.updateV1("session_id", "geofence_id")
99
+ */
100
+ updateV1(sessionId: string, geofenceId: string, request?: Chrt.tracking.SessionGeofenceClientUpdate1, requestOptions?: SessionGeofences.RequestOptions): core.HttpResponsePromise<Chrt.Session2>;
101
+ private __updateV1;
102
+ /**
103
+ * Removes a geofence from an active session. | auth: api_key | authz: min_org_role=operator | () -> (Session2)
104
+ *
105
+ * @param {string} sessionId
106
+ * @param {string} geofenceId
107
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
108
+ *
109
+ * @throws {@link Chrt.UnprocessableEntityError}
110
+ *
111
+ * @example
112
+ * await client.tracking.sessionGeofences.removeV1("session_id", "geofence_id")
113
+ */
114
+ removeV1(sessionId: string, geofenceId: string, requestOptions?: SessionGeofences.RequestOptions): core.HttpResponsePromise<Chrt.Session2>;
115
+ private __removeV1;
116
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
117
+ }
@@ -0,0 +1,393 @@
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.SessionGeofences = 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 SessionGeofences {
55
+ constructor(_options = {}) {
56
+ this._options = _options;
57
+ }
58
+ /**
59
+ * Adds a geofence to an active session. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceClientCreate1) -> (Session2)
60
+ *
61
+ * @param {string} sessionId
62
+ * @param {Chrt.SessionGeofenceClientCreate1} request
63
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link Chrt.UnprocessableEntityError}
66
+ *
67
+ * @example
68
+ * await client.tracking.sessionGeofences.addV1("session_id", {
69
+ * display_name: "display_name",
70
+ * location: {
71
+ * geometry: {
72
+ * coordinates: [],
73
+ * type: "Point"
74
+ * },
75
+ * type: "Feature"
76
+ * },
77
+ * radius_miles: 1.1
78
+ * })
79
+ */
80
+ addV1(sessionId, request, requestOptions) {
81
+ return core.HttpResponsePromise.fromPromise(this.__addV1(sessionId, request, requestOptions));
82
+ }
83
+ __addV1(sessionId, request, requestOptions) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ var _a, _b, _c, _d;
86
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
87
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
88
+ 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/geofences/add/v1/${encodeURIComponent(sessionId)}`),
89
+ method: "POST",
90
+ headers: _headers,
91
+ contentType: "application/json",
92
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
93
+ requestType: "json",
94
+ body: request,
95
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
96
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
97
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
98
+ });
99
+ if (_response.ok) {
100
+ return { data: _response.body, rawResponse: _response.rawResponse };
101
+ }
102
+ if (_response.error.reason === "status-code") {
103
+ switch (_response.error.statusCode) {
104
+ case 422:
105
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
106
+ default:
107
+ throw new errors.ChrtError({
108
+ statusCode: _response.error.statusCode,
109
+ body: _response.error.body,
110
+ rawResponse: _response.rawResponse,
111
+ });
112
+ }
113
+ }
114
+ switch (_response.error.reason) {
115
+ case "non-json":
116
+ throw new errors.ChrtError({
117
+ statusCode: _response.error.statusCode,
118
+ body: _response.error.rawBody,
119
+ rawResponse: _response.rawResponse,
120
+ });
121
+ case "timeout":
122
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/geofences/add/v1/{session_id}.");
123
+ case "unknown":
124
+ throw new errors.ChrtError({
125
+ message: _response.error.errorMessage,
126
+ rawResponse: _response.rawResponse,
127
+ });
128
+ }
129
+ });
130
+ }
131
+ /**
132
+ * Replaces an active session's geofences from an active organization template. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceApplyTemplateReq) -> (Session2)
133
+ *
134
+ * @param {string} sessionId
135
+ * @param {Chrt.tracking.SessionGeofenceApplyTemplateReq} request
136
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
137
+ *
138
+ * @throws {@link Chrt.UnprocessableEntityError}
139
+ *
140
+ * @example
141
+ * await client.tracking.sessionGeofences.applyTemplateV1("session_id", {
142
+ * geofence_template_id: "geofence_template_id"
143
+ * })
144
+ */
145
+ applyTemplateV1(sessionId, request, requestOptions) {
146
+ return core.HttpResponsePromise.fromPromise(this.__applyTemplateV1(sessionId, request, requestOptions));
147
+ }
148
+ __applyTemplateV1(sessionId, request, requestOptions) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ var _a, _b, _c, _d;
151
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
152
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
153
+ 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/geofences/apply_template/v1/${encodeURIComponent(sessionId)}`),
154
+ method: "POST",
155
+ headers: _headers,
156
+ contentType: "application/json",
157
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
158
+ requestType: "json",
159
+ body: request,
160
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
161
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
162
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
163
+ });
164
+ if (_response.ok) {
165
+ return { data: _response.body, rawResponse: _response.rawResponse };
166
+ }
167
+ if (_response.error.reason === "status-code") {
168
+ switch (_response.error.statusCode) {
169
+ case 422:
170
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
171
+ default:
172
+ throw new errors.ChrtError({
173
+ statusCode: _response.error.statusCode,
174
+ body: _response.error.body,
175
+ rawResponse: _response.rawResponse,
176
+ });
177
+ }
178
+ }
179
+ switch (_response.error.reason) {
180
+ case "non-json":
181
+ throw new errors.ChrtError({
182
+ statusCode: _response.error.statusCode,
183
+ body: _response.error.rawBody,
184
+ rawResponse: _response.rawResponse,
185
+ });
186
+ case "timeout":
187
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/geofences/apply_template/v1/{session_id}.");
188
+ case "unknown":
189
+ throw new errors.ChrtError({
190
+ message: _response.error.errorMessage,
191
+ rawResponse: _response.rawResponse,
192
+ });
193
+ }
194
+ });
195
+ }
196
+ /**
197
+ * Reorders an active session's geofences using an exact ID permutation. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceReorderReq) -> (Session2)
198
+ *
199
+ * @param {string} sessionId
200
+ * @param {Chrt.tracking.SessionGeofenceReorderReq} request
201
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
202
+ *
203
+ * @throws {@link Chrt.UnprocessableEntityError}
204
+ *
205
+ * @example
206
+ * await client.tracking.sessionGeofences.reorderV1("session_id")
207
+ */
208
+ reorderV1(sessionId, request = {}, requestOptions) {
209
+ return core.HttpResponsePromise.fromPromise(this.__reorderV1(sessionId, request, requestOptions));
210
+ }
211
+ __reorderV1(sessionId_1) {
212
+ return __awaiter(this, arguments, void 0, function* (sessionId, request = {}, requestOptions) {
213
+ var _a, _b, _c, _d;
214
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
215
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
216
+ 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/geofences/reorder/v1/${encodeURIComponent(sessionId)}`),
217
+ method: "POST",
218
+ headers: _headers,
219
+ contentType: "application/json",
220
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
221
+ requestType: "json",
222
+ body: request,
223
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
224
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
225
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
226
+ });
227
+ if (_response.ok) {
228
+ return { data: _response.body, rawResponse: _response.rawResponse };
229
+ }
230
+ if (_response.error.reason === "status-code") {
231
+ switch (_response.error.statusCode) {
232
+ case 422:
233
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
234
+ default:
235
+ throw new errors.ChrtError({
236
+ statusCode: _response.error.statusCode,
237
+ body: _response.error.body,
238
+ rawResponse: _response.rawResponse,
239
+ });
240
+ }
241
+ }
242
+ switch (_response.error.reason) {
243
+ case "non-json":
244
+ throw new errors.ChrtError({
245
+ statusCode: _response.error.statusCode,
246
+ body: _response.error.rawBody,
247
+ rawResponse: _response.rawResponse,
248
+ });
249
+ case "timeout":
250
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/geofences/reorder/v1/{session_id}.");
251
+ case "unknown":
252
+ throw new errors.ChrtError({
253
+ message: _response.error.errorMessage,
254
+ rawResponse: _response.rawResponse,
255
+ });
256
+ }
257
+ });
258
+ }
259
+ /**
260
+ * Updates a session geofence, resetting entry state only when location or radius changes. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceClientUpdate1) -> (Session2)
261
+ *
262
+ * @param {string} sessionId
263
+ * @param {string} geofenceId
264
+ * @param {Chrt.tracking.SessionGeofenceClientUpdate1} request
265
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
266
+ *
267
+ * @throws {@link Chrt.UnprocessableEntityError}
268
+ *
269
+ * @example
270
+ * await client.tracking.sessionGeofences.updateV1("session_id", "geofence_id")
271
+ */
272
+ updateV1(sessionId, geofenceId, request = {}, requestOptions) {
273
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(sessionId, geofenceId, request, requestOptions));
274
+ }
275
+ __updateV1(sessionId_1, geofenceId_1) {
276
+ return __awaiter(this, arguments, void 0, function* (sessionId, geofenceId, request = {}, requestOptions) {
277
+ var _a, _b, _c, _d;
278
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
279
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
280
+ 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/geofences/update/v1/${encodeURIComponent(sessionId)}/${encodeURIComponent(geofenceId)}`),
281
+ method: "PATCH",
282
+ headers: _headers,
283
+ contentType: "application/json",
284
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
285
+ requestType: "json",
286
+ body: request,
287
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
288
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
289
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
290
+ });
291
+ if (_response.ok) {
292
+ return { data: _response.body, rawResponse: _response.rawResponse };
293
+ }
294
+ if (_response.error.reason === "status-code") {
295
+ switch (_response.error.statusCode) {
296
+ case 422:
297
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
298
+ default:
299
+ throw new errors.ChrtError({
300
+ statusCode: _response.error.statusCode,
301
+ body: _response.error.body,
302
+ rawResponse: _response.rawResponse,
303
+ });
304
+ }
305
+ }
306
+ switch (_response.error.reason) {
307
+ case "non-json":
308
+ throw new errors.ChrtError({
309
+ statusCode: _response.error.statusCode,
310
+ body: _response.error.rawBody,
311
+ rawResponse: _response.rawResponse,
312
+ });
313
+ case "timeout":
314
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /tracking/sessions/geofences/update/v1/{session_id}/{geofence_id}.");
315
+ case "unknown":
316
+ throw new errors.ChrtError({
317
+ message: _response.error.errorMessage,
318
+ rawResponse: _response.rawResponse,
319
+ });
320
+ }
321
+ });
322
+ }
323
+ /**
324
+ * Removes a geofence from an active session. | auth: api_key | authz: min_org_role=operator | () -> (Session2)
325
+ *
326
+ * @param {string} sessionId
327
+ * @param {string} geofenceId
328
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
329
+ *
330
+ * @throws {@link Chrt.UnprocessableEntityError}
331
+ *
332
+ * @example
333
+ * await client.tracking.sessionGeofences.removeV1("session_id", "geofence_id")
334
+ */
335
+ removeV1(sessionId, geofenceId, requestOptions) {
336
+ return core.HttpResponsePromise.fromPromise(this.__removeV1(sessionId, geofenceId, requestOptions));
337
+ }
338
+ __removeV1(sessionId, geofenceId, requestOptions) {
339
+ return __awaiter(this, void 0, void 0, function* () {
340
+ var _a, _b, _c, _d;
341
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
342
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
343
+ 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/geofences/v1/${encodeURIComponent(sessionId)}/${encodeURIComponent(geofenceId)}`),
344
+ method: "DELETE",
345
+ headers: _headers,
346
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
347
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
348
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
349
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
350
+ });
351
+ if (_response.ok) {
352
+ return { data: _response.body, rawResponse: _response.rawResponse };
353
+ }
354
+ if (_response.error.reason === "status-code") {
355
+ switch (_response.error.statusCode) {
356
+ case 422:
357
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
358
+ default:
359
+ throw new errors.ChrtError({
360
+ statusCode: _response.error.statusCode,
361
+ body: _response.error.body,
362
+ rawResponse: _response.rawResponse,
363
+ });
364
+ }
365
+ }
366
+ switch (_response.error.reason) {
367
+ case "non-json":
368
+ throw new errors.ChrtError({
369
+ statusCode: _response.error.statusCode,
370
+ body: _response.error.rawBody,
371
+ rawResponse: _response.rawResponse,
372
+ });
373
+ case "timeout":
374
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /tracking/sessions/geofences/v1/{session_id}/{geofence_id}.");
375
+ case "unknown":
376
+ throw new errors.ChrtError({
377
+ message: _response.error.errorMessage,
378
+ rawResponse: _response.rawResponse,
379
+ });
380
+ }
381
+ });
382
+ }
383
+ _getAuthorizationHeader() {
384
+ return __awaiter(this, void 0, void 0, function* () {
385
+ const bearer = yield core.Supplier.get(this._options.token);
386
+ if (bearer != null) {
387
+ return `Bearer ${bearer}`;
388
+ }
389
+ return undefined;
390
+ });
391
+ }
392
+ }
393
+ exports.SessionGeofences = SessionGeofences;
@@ -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
+ * geofence_template_id: "geofence_template_id"
8
+ * }
9
+ */
10
+ export interface SessionGeofenceApplyTemplateReq {
11
+ geofence_template_id: string;
12
+ }
@@ -0,0 +1,13 @@
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
+ */
9
+ export interface SessionGeofenceClientUpdate1 {
10
+ display_name?: string | null;
11
+ location?: Chrt.GeofencePointLocationFeature1 | null;
12
+ radius_miles?: number | 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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface SessionGeofenceReorderReq {
9
+ ordered_geofence_ids?: string[];
10
+ }
@@ -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,3 @@
1
+ export { type SessionGeofenceApplyTemplateReq } from "./SessionGeofenceApplyTemplateReq.js";
2
+ export { type SessionGeofenceReorderReq } from "./SessionGeofenceReorderReq.js";
3
+ export { type SessionGeofenceClientUpdate1 } from "./SessionGeofenceClientUpdate1.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);