@chrt-inc/typescript-sdk 1.756.0 → 1.762.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 (336) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupAdHocCreateClientReq.d.ts +2 -0
  3. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementCreateClientReq.d.ts +2 -0
  4. package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +16 -0
  5. package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +65 -0
  6. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseSetBillingReviewStatusReq.d.ts +13 -0
  7. package/dist/cjs/api/resources/operations/resources/cases/client/requests/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -0
  9. package/dist/cjs/api/resources/orgs/client/Client.js +7 -2
  10. package/dist/cjs/api/resources/orgs/resources/index.d.ts +2 -0
  11. package/dist/cjs/api/resources/orgs/resources/index.js +3 -1
  12. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/Client.d.ts +106 -0
  13. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/Client.js +384 -0
  14. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/index.d.ts +2 -0
  15. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/index.js +17 -0
  16. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientCreate1.d.ts +15 -0
  17. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientUpdate1.d.ts +12 -0
  18. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.d.ts +14 -0
  19. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/index.d.ts +3 -0
  20. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/index.js +2 -0
  21. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/index.js +17 -0
  23. package/dist/cjs/api/resources/shipping/client/Client.d.ts +6 -0
  24. package/dist/cjs/api/resources/shipping/client/Client.js +18 -8
  25. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +102 -1
  26. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +439 -1
  27. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverSelfReportedHoursAndMileageClientCreate1.d.ts +18 -0
  28. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverSelfReportedHoursAndMileageClientUpdate1.d.ts +13 -0
  29. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListSelfReportedHoursAndMileageV1Request.d.ts +21 -0
  30. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversOrgListSelfReportedHoursAndMileageV1Request.d.ts +25 -0
  31. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/index.d.ts +4 -0
  32. package/dist/cjs/api/resources/shipping/resources/drivers/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/shipping/resources/drivers/index.js +1 -0
  34. package/dist/cjs/api/resources/shipping/resources/drivers/types/DriversOrgListSelfReportedHoursAndMileageV1RequestSortBy.d.ts +8 -0
  35. package/dist/cjs/api/resources/shipping/resources/drivers/types/DriversOrgListSelfReportedHoursAndMileageV1RequestSortBy.js +10 -0
  36. package/dist/cjs/api/resources/shipping/resources/drivers/types/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/shipping/resources/drivers/types/index.js +17 -0
  38. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +2 -2
  39. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +2 -2
  40. package/dist/cjs/api/resources/shipping/resources/index.d.ts +6 -1
  41. package/dist/cjs/api/resources/shipping/resources/index.js +7 -2
  42. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +1 -1
  43. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +1 -1
  44. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +5 -0
  45. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.d.ts +13 -19
  46. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.js +41 -47
  47. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +2 -1
  48. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +2 -1
  49. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/Client.d.ts +142 -0
  50. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/Client.js +530 -0
  51. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/index.d.ts +2 -0
  52. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/index.js +17 -0
  53. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.d.ts +16 -0
  54. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.js +5 -0
  55. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.d.ts +12 -0
  56. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.js +5 -0
  57. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.d.ts +13 -0
  58. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.js +5 -0
  59. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.d.ts +30 -0
  60. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.js +5 -0
  61. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/index.d.ts +4 -0
  62. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/index.js +2 -0
  63. package/dist/cjs/api/resources/shipping/resources/orderGroups/index.d.ts +1 -0
  64. package/dist/cjs/api/resources/shipping/resources/orderGroups/index.js +17 -0
  65. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +3 -3
  66. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +2 -2
  67. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +7 -4
  68. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +7 -2
  69. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.d.ts +73 -0
  70. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.js +252 -0
  71. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/index.d.ts +2 -0
  72. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/index.js +17 -0
  73. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.d.ts +32 -0
  74. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.js +5 -0
  75. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.ts +23 -0
  76. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.js +5 -0
  77. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.d.ts +2 -0
  78. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.js +2 -0
  79. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/index.d.ts +1 -0
  80. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/index.js +17 -0
  81. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +2 -1
  82. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +2 -1
  83. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +26 -0
  84. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +75 -0
  85. package/dist/cjs/api/resources/tracking/resources/driver/client/index.d.ts +1 -0
  86. package/dist/cjs/api/resources/tracking/resources/driver/client/index.js +15 -0
  87. package/dist/cjs/api/resources/tracking/resources/driver/client/requests/DriverByDriverDataPointClientCreate1.d.ts +26 -0
  88. package/dist/cjs/api/resources/tracking/resources/driver/client/requests/DriverByDriverDataPointClientCreate1.js +5 -0
  89. package/dist/cjs/api/resources/tracking/resources/driver/client/requests/index.d.ts +1 -0
  90. package/dist/cjs/api/resources/tracking/resources/driver/client/requests/index.js +2 -0
  91. package/dist/cjs/api/resources/tracking/resources/index.d.ts +1 -0
  92. package/dist/cjs/api/resources/tracking/resources/index.js +1 -0
  93. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +1 -1
  94. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +1 -1
  95. package/dist/cjs/api/types/BillingReviewStatusEnum.d.ts +15 -0
  96. package/dist/cjs/api/types/BillingReviewStatusEnum.js +12 -0
  97. package/dist/cjs/api/types/Case1.d.ts +1 -0
  98. package/dist/cjs/api/types/DriverSelfReportedHoursAndMileage1.d.ts +17 -0
  99. package/dist/cjs/api/types/DriverSelfReportedHoursAndMileage1.js +5 -0
  100. package/dist/cjs/api/types/DriverSelfReportedHoursAndMileageListRes.d.ts +8 -0
  101. package/dist/cjs/api/types/DriverSelfReportedHoursAndMileageListRes.js +5 -0
  102. package/dist/cjs/api/types/DriverStatsRes.d.ts +8 -3
  103. package/dist/cjs/api/types/DriverUpdateRes.d.ts +1 -0
  104. package/dist/cjs/api/types/FlightLeg1.d.ts +1 -1
  105. package/dist/cjs/api/types/FlightLegClientCreate1.d.ts +1 -1
  106. package/dist/cjs/api/types/{FlightTrackPosition.d.ts → FlightTrackPosition1.d.ts} +1 -4
  107. package/dist/cjs/api/types/FlightTrackPosition1.js +5 -0
  108. package/dist/cjs/api/types/FlightTrackRes.d.ts +2 -2
  109. package/dist/cjs/api/types/{FlightTrackWaypoint.d.ts → FlightTrackWaypoint1.d.ts} +1 -4
  110. package/dist/cjs/api/types/FlightTrackWaypoint1.js +5 -0
  111. package/dist/cjs/api/types/{InternalDelegationTokenReq.d.ts → InternalDelegationJwtReq.d.ts} +2 -2
  112. package/dist/cjs/api/types/InternalDelegationJwtReq.js +5 -0
  113. package/dist/{esm/api/types/InternalDelegationTokenRes.d.mts → cjs/api/types/InternalDelegationJwtRes.d.ts} +1 -1
  114. package/dist/cjs/api/types/InternalDelegationJwtRes.js +5 -0
  115. package/dist/cjs/api/types/LineItemGroup1.d.ts +3 -0
  116. package/dist/cjs/api/types/OffChrtVendor1.d.ts +13 -0
  117. package/dist/cjs/api/types/OffChrtVendor1.js +5 -0
  118. package/dist/cjs/api/types/OffChrtVendorListRes.d.ts +8 -0
  119. package/dist/cjs/api/types/OffChrtVendorListRes.js +5 -0
  120. package/dist/cjs/api/types/Order1.d.ts +2 -0
  121. package/dist/cjs/api/types/OrderBuilderReq.d.ts +3 -2
  122. package/dist/cjs/api/types/OrderBuilderRes.d.ts +2 -2
  123. package/dist/cjs/api/types/OrderGroup1.d.ts +21 -0
  124. package/dist/cjs/api/types/OrderGroup1.js +5 -0
  125. package/dist/cjs/api/types/OrderGroupExpandedListRes.d.ts +8 -0
  126. package/dist/cjs/api/types/OrderGroupExpandedListRes.js +5 -0
  127. package/dist/cjs/api/types/OrderGroupExpandedRow.d.ts +9 -0
  128. package/dist/cjs/api/types/OrderGroupExpandedRow.js +5 -0
  129. package/dist/cjs/api/types/OrderGroupExpandedSortByEnum.d.ts +10 -0
  130. package/dist/cjs/api/types/OrderGroupExpandedSortByEnum.js +12 -0
  131. package/dist/cjs/api/types/OrderGroupListRes.d.ts +8 -0
  132. package/dist/cjs/api/types/OrderGroupListRes.js +5 -0
  133. package/dist/cjs/api/types/OrderGroupSortByEnum.d.ts +9 -0
  134. package/dist/cjs/api/types/OrderGroupSortByEnum.js +11 -0
  135. package/dist/cjs/api/types/OrderTemplate1.d.ts +7 -4
  136. package/dist/cjs/api/types/OrderTemplateCore1.d.ts +21 -0
  137. package/dist/cjs/api/types/OrderTemplateCore1.js +5 -0
  138. package/dist/cjs/api/types/{OrderTemplateExpanded.d.ts → OrderTemplateExpanded1.d.ts} +4 -4
  139. package/dist/cjs/api/types/OrderTemplateExpanded1.js +5 -0
  140. package/dist/{esm/api/types/OrderTemplateOrgRef1.d.mts → cjs/api/types/OrderTemplateOrgInfo1.d.ts} +1 -1
  141. package/dist/cjs/api/types/OrderTemplateOrgInfo1.js +5 -0
  142. package/dist/cjs/api/types/OrderTemplateResolvabilityRes.d.ts +10 -0
  143. package/dist/cjs/api/types/OrderTemplateResolvabilityRes.js +5 -0
  144. package/dist/cjs/api/types/ShippingTurnClientCreate1.d.ts +16 -0
  145. package/dist/cjs/api/types/ShippingTurnClientCreate1.js +5 -0
  146. package/dist/cjs/api/types/Statement1.d.ts +3 -0
  147. package/dist/cjs/api/types/UngroupedOrderListRes.d.ts +8 -0
  148. package/dist/cjs/api/types/UngroupedOrderListRes.js +5 -0
  149. package/dist/cjs/api/types/UngroupedOrderRow.d.ts +8 -0
  150. package/dist/cjs/api/types/UngroupedOrderRow.js +5 -0
  151. package/dist/cjs/api/types/UngroupedOrderSortByEnum.d.ts +11 -0
  152. package/dist/cjs/api/types/UngroupedOrderSortByEnum.js +13 -0
  153. package/dist/cjs/api/types/{WorkflowActorContext.d.ts → WorkflowActor.d.ts} +1 -1
  154. package/dist/cjs/api/types/WorkflowActor.js +5 -0
  155. package/dist/cjs/api/types/index.d.ts +24 -8
  156. package/dist/cjs/api/types/index.js +24 -8
  157. package/dist/cjs/version.d.ts +1 -1
  158. package/dist/cjs/version.js +1 -1
  159. package/dist/esm/Client.mjs +2 -2
  160. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupAdHocCreateClientReq.d.mts +2 -0
  161. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementCreateClientReq.d.mts +2 -0
  162. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +16 -0
  163. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +65 -0
  164. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseSetBillingReviewStatusReq.d.mts +13 -0
  165. package/dist/esm/api/resources/operations/resources/cases/client/requests/index.d.mts +1 -0
  166. package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -0
  167. package/dist/esm/api/resources/orgs/client/Client.mjs +5 -0
  168. package/dist/esm/api/resources/orgs/resources/index.d.mts +2 -0
  169. package/dist/esm/api/resources/orgs/resources/index.mjs +2 -0
  170. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/Client.d.mts +106 -0
  171. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/Client.mjs +347 -0
  172. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/index.d.mts +2 -0
  173. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/index.mjs +1 -0
  174. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientCreate1.d.mts +15 -0
  175. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientUpdate1.d.mts +12 -0
  176. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.d.mts +14 -0
  177. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/index.d.mts +3 -0
  178. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/index.mjs +1 -0
  179. package/dist/esm/api/resources/orgs/resources/offChrtVendor/index.d.mts +1 -0
  180. package/dist/esm/api/resources/orgs/resources/offChrtVendor/index.mjs +1 -0
  181. package/dist/esm/api/resources/shipping/client/Client.d.mts +6 -0
  182. package/dist/esm/api/resources/shipping/client/Client.mjs +10 -0
  183. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +102 -1
  184. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +439 -1
  185. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverSelfReportedHoursAndMileageClientCreate1.d.mts +18 -0
  186. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverSelfReportedHoursAndMileageClientUpdate1.d.mts +13 -0
  187. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListSelfReportedHoursAndMileageV1Request.d.mts +21 -0
  188. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversOrgListSelfReportedHoursAndMileageV1Request.d.mts +25 -0
  189. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/index.d.mts +4 -0
  190. package/dist/esm/api/resources/shipping/resources/drivers/index.d.mts +1 -0
  191. package/dist/esm/api/resources/shipping/resources/drivers/index.mjs +1 -0
  192. package/dist/esm/api/resources/shipping/resources/drivers/types/DriversOrgListSelfReportedHoursAndMileageV1RequestSortBy.d.mts +8 -0
  193. package/dist/esm/api/resources/shipping/resources/drivers/types/DriversOrgListSelfReportedHoursAndMileageV1RequestSortBy.mjs +7 -0
  194. package/dist/esm/api/resources/shipping/resources/drivers/types/index.d.mts +1 -0
  195. package/dist/esm/api/resources/shipping/resources/drivers/types/index.mjs +1 -0
  196. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +2 -2
  197. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +2 -2
  198. package/dist/esm/api/resources/shipping/resources/index.d.mts +6 -1
  199. package/dist/esm/api/resources/shipping/resources/index.mjs +6 -1
  200. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +1 -1
  201. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +1 -1
  202. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +5 -0
  203. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.d.mts +13 -19
  204. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.mjs +41 -47
  205. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +2 -1
  206. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +2 -1
  207. package/dist/esm/api/resources/shipping/resources/orderGroups/client/Client.d.mts +142 -0
  208. package/dist/esm/api/resources/shipping/resources/orderGroups/client/Client.mjs +493 -0
  209. package/dist/esm/api/resources/shipping/resources/orderGroups/client/index.d.mts +2 -0
  210. package/dist/esm/api/resources/shipping/resources/orderGroups/client/index.mjs +1 -0
  211. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.d.mts +16 -0
  212. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.mjs +4 -0
  213. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.d.mts +12 -0
  214. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.mjs +4 -0
  215. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.d.mts +13 -0
  216. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.mjs +4 -0
  217. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.d.mts +30 -0
  218. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.mjs +4 -0
  219. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/index.d.mts +4 -0
  220. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/index.mjs +1 -0
  221. package/dist/esm/api/resources/shipping/resources/orderGroups/index.d.mts +1 -0
  222. package/dist/esm/api/resources/shipping/resources/orderGroups/index.mjs +1 -0
  223. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +3 -3
  224. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +2 -2
  225. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +7 -4
  226. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +7 -2
  227. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.d.mts +73 -0
  228. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.mjs +215 -0
  229. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/index.d.mts +2 -0
  230. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/index.mjs +1 -0
  231. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.d.mts +32 -0
  232. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.mjs +4 -0
  233. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.mts +23 -0
  234. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.mjs +4 -0
  235. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.d.mts +2 -0
  236. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.mjs +1 -0
  237. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/index.d.mts +1 -0
  238. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/index.mjs +1 -0
  239. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +2 -1
  240. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +2 -1
  241. package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +26 -0
  242. package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +75 -0
  243. package/dist/esm/api/resources/tracking/resources/driver/client/index.d.mts +1 -0
  244. package/dist/esm/api/resources/tracking/resources/driver/client/index.mjs +1 -1
  245. package/dist/esm/api/resources/tracking/resources/driver/client/requests/DriverByDriverDataPointClientCreate1.d.mts +26 -0
  246. package/dist/esm/api/resources/tracking/resources/driver/client/requests/DriverByDriverDataPointClientCreate1.mjs +4 -0
  247. package/dist/esm/api/resources/tracking/resources/driver/client/requests/index.d.mts +1 -0
  248. package/dist/esm/api/resources/tracking/resources/driver/client/requests/index.mjs +1 -0
  249. package/dist/esm/api/resources/tracking/resources/index.d.mts +1 -0
  250. package/dist/esm/api/resources/tracking/resources/index.mjs +1 -0
  251. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +1 -1
  252. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +1 -1
  253. package/dist/esm/api/types/BillingReviewStatusEnum.d.mts +15 -0
  254. package/dist/esm/api/types/BillingReviewStatusEnum.mjs +9 -0
  255. package/dist/esm/api/types/Case1.d.mts +1 -0
  256. package/dist/esm/api/types/DriverSelfReportedHoursAndMileage1.d.mts +17 -0
  257. package/dist/esm/api/types/DriverSelfReportedHoursAndMileage1.mjs +4 -0
  258. package/dist/esm/api/types/DriverSelfReportedHoursAndMileageListRes.d.mts +8 -0
  259. package/dist/esm/api/types/DriverSelfReportedHoursAndMileageListRes.mjs +4 -0
  260. package/dist/esm/api/types/DriverStatsRes.d.mts +8 -3
  261. package/dist/esm/api/types/DriverUpdateRes.d.mts +1 -0
  262. package/dist/esm/api/types/FlightLeg1.d.mts +1 -1
  263. package/dist/esm/api/types/FlightLegClientCreate1.d.mts +1 -1
  264. package/dist/esm/api/types/{FlightTrackPosition.d.mts → FlightTrackPosition1.d.mts} +1 -4
  265. package/dist/esm/api/types/FlightTrackPosition1.mjs +4 -0
  266. package/dist/esm/api/types/FlightTrackRes.d.mts +2 -2
  267. package/dist/esm/api/types/{FlightTrackWaypoint.d.mts → FlightTrackWaypoint1.d.mts} +1 -4
  268. package/dist/esm/api/types/FlightTrackWaypoint1.mjs +4 -0
  269. package/dist/esm/api/types/{InternalDelegationTokenReq.d.mts → InternalDelegationJwtReq.d.mts} +2 -2
  270. package/dist/esm/api/types/InternalDelegationJwtReq.mjs +4 -0
  271. package/dist/{cjs/api/types/InternalDelegationTokenRes.d.ts → esm/api/types/InternalDelegationJwtRes.d.mts} +1 -1
  272. package/dist/esm/api/types/InternalDelegationJwtRes.mjs +4 -0
  273. package/dist/esm/api/types/LineItemGroup1.d.mts +3 -0
  274. package/dist/esm/api/types/OffChrtVendor1.d.mts +13 -0
  275. package/dist/esm/api/types/OffChrtVendor1.mjs +4 -0
  276. package/dist/esm/api/types/OffChrtVendorListRes.d.mts +8 -0
  277. package/dist/esm/api/types/OffChrtVendorListRes.mjs +4 -0
  278. package/dist/esm/api/types/Order1.d.mts +2 -0
  279. package/dist/esm/api/types/OrderBuilderReq.d.mts +3 -2
  280. package/dist/esm/api/types/OrderBuilderRes.d.mts +2 -2
  281. package/dist/esm/api/types/OrderGroup1.d.mts +21 -0
  282. package/dist/esm/api/types/OrderGroup1.mjs +4 -0
  283. package/dist/esm/api/types/OrderGroupExpandedListRes.d.mts +8 -0
  284. package/dist/esm/api/types/OrderGroupExpandedListRes.mjs +4 -0
  285. package/dist/esm/api/types/OrderGroupExpandedRow.d.mts +9 -0
  286. package/dist/esm/api/types/OrderGroupExpandedRow.mjs +4 -0
  287. package/dist/esm/api/types/OrderGroupExpandedSortByEnum.d.mts +10 -0
  288. package/dist/esm/api/types/OrderGroupExpandedSortByEnum.mjs +9 -0
  289. package/dist/esm/api/types/OrderGroupListRes.d.mts +8 -0
  290. package/dist/esm/api/types/OrderGroupListRes.mjs +4 -0
  291. package/dist/esm/api/types/OrderGroupSortByEnum.d.mts +9 -0
  292. package/dist/esm/api/types/OrderGroupSortByEnum.mjs +8 -0
  293. package/dist/esm/api/types/OrderTemplate1.d.mts +7 -4
  294. package/dist/esm/api/types/OrderTemplateCore1.d.mts +21 -0
  295. package/dist/esm/api/types/OrderTemplateCore1.mjs +4 -0
  296. package/dist/esm/api/types/{OrderTemplateExpanded.d.mts → OrderTemplateExpanded1.d.mts} +4 -4
  297. package/dist/esm/api/types/OrderTemplateExpanded1.mjs +4 -0
  298. package/dist/{cjs/api/types/OrderTemplateOrgRef1.d.ts → esm/api/types/OrderTemplateOrgInfo1.d.mts} +1 -1
  299. package/dist/esm/api/types/OrderTemplateOrgInfo1.mjs +4 -0
  300. package/dist/esm/api/types/OrderTemplateResolvabilityRes.d.mts +10 -0
  301. package/dist/esm/api/types/OrderTemplateResolvabilityRes.mjs +4 -0
  302. package/dist/esm/api/types/ShippingTurnClientCreate1.d.mts +16 -0
  303. package/dist/esm/api/types/ShippingTurnClientCreate1.mjs +4 -0
  304. package/dist/esm/api/types/Statement1.d.mts +3 -0
  305. package/dist/esm/api/types/UngroupedOrderListRes.d.mts +8 -0
  306. package/dist/esm/api/types/UngroupedOrderListRes.mjs +4 -0
  307. package/dist/esm/api/types/UngroupedOrderRow.d.mts +8 -0
  308. package/dist/esm/api/types/UngroupedOrderRow.mjs +4 -0
  309. package/dist/esm/api/types/UngroupedOrderSortByEnum.d.mts +11 -0
  310. package/dist/esm/api/types/UngroupedOrderSortByEnum.mjs +10 -0
  311. package/dist/esm/api/types/{WorkflowActorContext.d.mts → WorkflowActor.d.mts} +1 -1
  312. package/dist/esm/api/types/WorkflowActor.mjs +4 -0
  313. package/dist/esm/api/types/index.d.mts +24 -8
  314. package/dist/esm/api/types/index.mjs +24 -8
  315. package/dist/esm/version.d.mts +1 -1
  316. package/dist/esm/version.mjs +1 -1
  317. package/package.json +1 -1
  318. package/reference.md +1909 -369
  319. package/dist/cjs/api/types/OrderBuilderPrecheckRes.d.ts +0 -7
  320. package/dist/esm/api/types/OrderBuilderPrecheckRes.d.mts +0 -7
  321. /package/dist/cjs/api/{types/FlightTrackPosition.js → resources/operations/resources/cases/client/requests/CaseSetBillingReviewStatusReq.js} +0 -0
  322. /package/dist/cjs/api/{types/FlightTrackWaypoint.js → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientCreate1.js} +0 -0
  323. /package/dist/cjs/api/{types/InternalDelegationTokenReq.js → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientUpdate1.js} +0 -0
  324. /package/dist/cjs/api/{types/InternalDelegationTokenRes.js → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.js} +0 -0
  325. /package/dist/cjs/api/{types/OrderBuilderPrecheckRes.js → resources/shipping/resources/drivers/client/requests/DriverSelfReportedHoursAndMileageClientCreate1.js} +0 -0
  326. /package/dist/cjs/api/{types/OrderTemplateExpanded.js → resources/shipping/resources/drivers/client/requests/DriverSelfReportedHoursAndMileageClientUpdate1.js} +0 -0
  327. /package/dist/cjs/api/{types/OrderTemplateOrgRef1.js → resources/shipping/resources/drivers/client/requests/DriversListSelfReportedHoursAndMileageV1Request.js} +0 -0
  328. /package/dist/cjs/api/{types/WorkflowActorContext.js → resources/shipping/resources/drivers/client/requests/DriversOrgListSelfReportedHoursAndMileageV1Request.js} +0 -0
  329. /package/dist/esm/api/{types/FlightTrackPosition.mjs → resources/operations/resources/cases/client/requests/CaseSetBillingReviewStatusReq.mjs} +0 -0
  330. /package/dist/esm/api/{types/FlightTrackWaypoint.mjs → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientCreate1.mjs} +0 -0
  331. /package/dist/esm/api/{types/InternalDelegationTokenReq.mjs → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientUpdate1.mjs} +0 -0
  332. /package/dist/esm/api/{types/InternalDelegationTokenRes.mjs → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.mjs} +0 -0
  333. /package/dist/esm/api/{types/OrderBuilderPrecheckRes.mjs → resources/shipping/resources/drivers/client/requests/DriverSelfReportedHoursAndMileageClientCreate1.mjs} +0 -0
  334. /package/dist/esm/api/{types/OrderTemplateExpanded.mjs → resources/shipping/resources/drivers/client/requests/DriverSelfReportedHoursAndMileageClientUpdate1.mjs} +0 -0
  335. /package/dist/esm/api/{types/OrderTemplateOrgRef1.mjs → resources/shipping/resources/drivers/client/requests/DriversListSelfReportedHoursAndMileageV1Request.mjs} +0 -0
  336. /package/dist/esm/api/{types/WorkflowActorContext.mjs → resources/shipping/resources/drivers/client/requests/DriversOrgListSelfReportedHoursAndMileageV1Request.mjs} +0 -0
@@ -126,6 +126,81 @@ class Driver {
126
126
  }
127
127
  });
128
128
  }
129
+ /**
130
+ * Records driver location updates with a client-supplied capture timestamp. Writes a driver_by_driver ping on every call, updates the driver's last seen, and records tracking data for all IN_PROGRESS task groups and their associated IN_TRANSIT cargos. | auth: api_key | (DriverByDriverDataPointClientCreate1) -> (DriverUpdateRes)
131
+ *
132
+ * @param {Chrt.tracking.DriverByDriverDataPointClientCreate1} request
133
+ * @param {Driver.RequestOptions} requestOptions - Request-specific configuration.
134
+ *
135
+ * @throws {@link Chrt.UnprocessableEntityError}
136
+ *
137
+ * @example
138
+ * await client.tracking.driver.updateV2({
139
+ * schema_version: 1,
140
+ * location: {
141
+ * type: "Feature",
142
+ * geometry: {
143
+ * type: "GeometryCollection",
144
+ * geometries: [{
145
+ * type: "LineString",
146
+ * coordinates: [[]]
147
+ * }]
148
+ * }
149
+ * },
150
+ * timestamp: "2024-01-15T09:30:00Z"
151
+ * })
152
+ */
153
+ updateV2(request, requestOptions) {
154
+ return core.HttpResponsePromise.fromPromise(this.__updateV2(request, requestOptions));
155
+ }
156
+ __updateV2(request, requestOptions) {
157
+ return __awaiter(this, void 0, void 0, function* () {
158
+ var _a, _b, _c, _d;
159
+ 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);
160
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
161
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/driver/update/v2"),
162
+ method: "POST",
163
+ headers: _headers,
164
+ contentType: "application/json",
165
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
166
+ requestType: "json",
167
+ body: request,
168
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
169
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
170
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
171
+ });
172
+ if (_response.ok) {
173
+ return { data: _response.body, rawResponse: _response.rawResponse };
174
+ }
175
+ if (_response.error.reason === "status-code") {
176
+ switch (_response.error.statusCode) {
177
+ case 422:
178
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
179
+ default:
180
+ throw new errors.ChrtError({
181
+ statusCode: _response.error.statusCode,
182
+ body: _response.error.body,
183
+ rawResponse: _response.rawResponse,
184
+ });
185
+ }
186
+ }
187
+ switch (_response.error.reason) {
188
+ case "non-json":
189
+ throw new errors.ChrtError({
190
+ statusCode: _response.error.statusCode,
191
+ body: _response.error.rawBody,
192
+ rawResponse: _response.rawResponse,
193
+ });
194
+ case "timeout":
195
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/driver/update/v2.");
196
+ case "unknown":
197
+ throw new errors.ChrtError({
198
+ message: _response.error.errorMessage,
199
+ rawResponse: _response.rawResponse,
200
+ });
201
+ }
202
+ });
203
+ }
129
204
  _getAuthorizationHeader() {
130
205
  return __awaiter(this, void 0, void 0, function* () {
131
206
  const bearer = yield core.Supplier.get(this._options.token);
@@ -1 +1,2 @@
1
1
  export {};
2
+ export * from "./requests/index.js";
@@ -1,2 +1,17 @@
1
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
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,26 @@
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
+ * schema_version: 1,
9
+ * location: {
10
+ * type: "Feature",
11
+ * geometry: {
12
+ * type: "GeometryCollection",
13
+ * geometries: [{
14
+ * type: "LineString",
15
+ * coordinates: [[]]
16
+ * }]
17
+ * }
18
+ * },
19
+ * timestamp: "2024-01-15T09:30:00Z"
20
+ * }
21
+ */
22
+ export interface DriverByDriverDataPointClientCreate1 {
23
+ schema_version: number;
24
+ location: Chrt.LocationFeature;
25
+ timestamp: string;
26
+ }
@@ -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 @@
1
+ export { type DriverByDriverDataPointClientCreate1 } from "./DriverByDriverDataPointClientCreate1.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,5 +4,6 @@ export * as sessions from "./sessions/index.js";
4
4
  export * as sharingSettings from "./sharingSettings/index.js";
5
5
  export * as timeseries from "./timeseries/index.js";
6
6
  export * from "./devices/client/requests/index.js";
7
+ export * from "./driver/client/requests/index.js";
7
8
  export * from "./sessions/client/requests/index.js";
8
9
  export * from "./sharingSettings/client/requests/index.js";
@@ -43,5 +43,6 @@ exports.sessions = __importStar(require("./sessions/index.js"));
43
43
  exports.sharingSettings = __importStar(require("./sharingSettings/index.js"));
44
44
  exports.timeseries = __importStar(require("./timeseries/index.js"));
45
45
  __exportStar(require("./devices/client/requests/index.js"), exports);
46
+ __exportStar(require("./driver/client/requests/index.js"), exports);
46
47
  __exportStar(require("./sessions/client/requests/index.js"), exports);
47
48
  __exportStar(require("./sharingSettings/client/requests/index.js"), exports);
@@ -99,7 +99,7 @@ export declare class Sessions {
99
99
  typeaheadV1(request: Chrt.tracking.SessionsTypeaheadV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.TrackingTypeaheadResult[]>;
100
100
  private __typeaheadV1;
101
101
  /**
102
- * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
102
+ * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
103
103
  *
104
104
  * @param {Chrt.tracking.SessionClientCreate1} request
105
105
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -353,7 +353,7 @@ class Sessions {
353
353
  });
354
354
  }
355
355
  /**
356
- * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
356
+ * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
357
357
  *
358
358
  * @param {Chrt.tracking.SessionClientCreate1} request
359
359
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Operator-driven billing-review flag for an OrderGroup (group-level) or a
6
+ * Case (per-order, per-org). Distinct from the derived billing *settlement*
7
+ * state - this is a manual triage status the operator flips.
8
+ */
9
+ export type BillingReviewStatusEnum = "not_started" | "in_progress" | "disputed" | "completed";
10
+ export declare const BillingReviewStatusEnum: {
11
+ readonly NotStarted: "not_started";
12
+ readonly InProgress: "in_progress";
13
+ readonly Disputed: "disputed";
14
+ readonly Completed: "completed";
15
+ };
@@ -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.BillingReviewStatusEnum = void 0;
7
+ exports.BillingReviewStatusEnum = {
8
+ NotStarted: "not_started",
9
+ InProgress: "in_progress",
10
+ Disputed: "disputed",
11
+ Completed: "completed",
12
+ };
@@ -11,6 +11,7 @@ export interface Case1 {
11
11
  _id: string;
12
12
  /** Must be a string starting with `org_` */
13
13
  org_id: string;
14
+ billing_review_status?: Chrt.BillingReviewStatusEnum;
14
15
  messages?: Chrt.CaseMessage1[];
15
16
  created_at: string;
16
17
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface DriverSelfReportedHoursAndMileage1 {
5
+ schema_version: number;
6
+ driver_id: string;
7
+ date: string;
8
+ hours_worked?: number | null;
9
+ miles_driven?: number | null;
10
+ /** Must be a string starting with `org_` */
11
+ org_id: string;
12
+ created_at_timestamp: string;
13
+ /** Must be a string starting with `user_` */
14
+ created_by_user_id: string;
15
+ updated_at: string;
16
+ _id: string;
17
+ }
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface DriverSelfReportedHoursAndMileageListRes {
6
+ items: Chrt.DriverSelfReportedHoursAndMileage1[];
7
+ total_count: number;
8
+ }
@@ -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 });
@@ -5,7 +5,12 @@ import * as Chrt from "../index.js";
5
5
  export interface DriverStatsRes {
6
6
  task_groups: Chrt.TaskGroup1[];
7
7
  excluded_task_groups: Chrt.TaskGroup1[];
8
- cleaned_task_group_duration_hours: number;
9
- overlap_detected: boolean;
10
- total_mileage_observed?: number | null;
8
+ /** Summed from task group in-progress intervals merged to eliminate double-counting of overlapping task groups. */
9
+ deduped_task_group_driver_hours: number;
10
+ overlapping_task_groups_detected: boolean;
11
+ /** Total mileage recorded for this driver across all tracked pings that fall within the requested query window. Independent of task group filtering or deduplication. i.e. includes pings inside and outside of task group time windows */
12
+ total_driver_mileage_tracked?: number | null;
13
+ /** Total mileage from pings that fall within task group in-progress merged intervals. i.e. excludes pings outside of merged task group time windows */
14
+ deduped_task_group_driver_mileage_tracked?: number | null;
15
+ self_reported_hours_and_mileage?: Chrt.DriverSelfReportedHoursAndMileage1[];
11
16
  }
@@ -5,6 +5,7 @@
5
5
  * Response showing what was updated.
6
6
  */
7
7
  export interface DriverUpdateRes {
8
+ driver_by_driver_ping_recorded: boolean;
8
9
  driver_updated: boolean;
9
10
  task_group_tracking_count: number;
10
11
  cargo_tracking_count: number;
@@ -12,7 +12,7 @@ export interface FlightLeg1 {
12
12
  origin_iata: string;
13
13
  destination_iata: string;
14
14
  scheduled_departure_utc: string;
15
- carrier_iata?: string | null;
15
+ carrier_iata: string;
16
16
  carrier_icao?: string | null;
17
17
  scheduled_arrival_utc?: string | null;
18
18
  cirium_flight_id?: number | null;
@@ -9,7 +9,7 @@ export interface FlightLegClientCreate1 {
9
9
  origin_iata: string;
10
10
  destination_iata: string;
11
11
  scheduled_departure_utc: string;
12
- carrier_iata?: string | null;
12
+ carrier_iata: string;
13
13
  carrier_icao?: string | null;
14
14
  scheduled_arrival_utc?: string | null;
15
15
  }
@@ -1,10 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * A single reported (or derived) aircraft position along the flown trail.
6
- */
7
- export interface FlightTrackPosition {
4
+ export interface FlightTrackPosition1 {
8
5
  lat?: number | null;
9
6
  lon?: number | null;
10
7
  altitude_ft?: number | null;
@@ -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 });
@@ -13,8 +13,8 @@ import * as Chrt from "../index.js";
13
13
  */
14
14
  export interface FlightTrackRes {
15
15
  cirium_flight_id?: number | null;
16
- positions?: Chrt.FlightTrackPosition[];
17
- waypoints?: Chrt.FlightTrackWaypoint[];
16
+ positions?: Chrt.FlightTrackPosition1[];
17
+ waypoints?: Chrt.FlightTrackWaypoint1[];
18
18
  legacy_route?: string | null;
19
19
  bearing?: number | null;
20
20
  heading?: number | null;
@@ -1,10 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * A lat/lon point on the published flight plan (the planned path).
6
- */
7
- export interface FlightTrackWaypoint {
4
+ export interface FlightTrackWaypoint1 {
8
5
  lat?: number | null;
9
6
  lon?: number | null;
10
7
  }
@@ -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 });
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
- export interface InternalDelegationTokenReq {
5
+ export interface InternalDelegationJwtReq {
6
6
  sts_presigned_url: string;
7
- actor: Chrt.WorkflowActorContext;
7
+ workflow_actor: Chrt.WorkflowActor;
8
8
  expires_in_seconds: number;
9
9
  }
@@ -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 });
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface InternalDelegationTokenRes {
4
+ export interface InternalDelegationJwtRes {
5
5
  access_token: string;
6
6
  }
@@ -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 });
@@ -28,6 +28,8 @@ export interface LineItemGroup1 {
28
28
  order_short_id?: string | null;
29
29
  /** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
30
30
  order_off_chrt_reference_id?: string | null;
31
+ order_group_id?: string | null;
32
+ order_group_short_id?: string | null;
31
33
  rate_sheet_id?: string | null;
32
34
  agreement_line_item_ids?: string[];
33
35
  agreement_amount?: number;
@@ -49,6 +51,7 @@ export interface LineItemGroup1 {
49
51
  payment_destination_org_id?: string | null;
50
52
  payment_destination_off_chrt_provider_org_id?: string | null;
51
53
  payment_destination_driver_id?: string | null;
54
+ payment_destination_off_chrt_vendor_id?: string | null;
52
55
  status?: Chrt.LineItemGroupStatusEnum1;
53
56
  finalized_at_timestamp?: string | null;
54
57
  /** Must be a string starting with `user_` */
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface OffChrtVendor1 {
5
+ schema_version: number;
6
+ name: string;
7
+ notes?: string | null;
8
+ _id: string;
9
+ /** Must be a string starting with `org_` */
10
+ created_by_org_id: string;
11
+ /** Must be a string starting with `user_` */
12
+ created_by_user_id: string;
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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface OffChrtVendorListRes {
6
+ items: Chrt.OffChrtVendor1[];
7
+ total_count: number;
8
+ }
@@ -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 });
@@ -12,6 +12,8 @@ export interface Order1 {
12
12
  order_schedule_id?: string | null;
13
13
  order_schedule_run_idempotency_key?: string | null;
14
14
  order_template_id?: string | null;
15
+ /** Client-supplied key for use by agentic order builder */
16
+ creation_idempotency_key?: string | null;
15
17
  /** Must be a string starting with `user_` */
16
18
  created_by_user_id?: string | null;
17
19
  /** Must be a string starting with `org_` */
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../index.js";
4
5
  export interface OrderBuilderReq {
5
- order_short_id: string;
6
- text: string;
6
+ order_template_core?: Chrt.OrderTemplateCore1 | null;
7
+ order_template_id?: string | null;
7
8
  }
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface OrderBuilderRes {
5
- order_id: string;
6
- order_short_id: string;
5
+ order_id?: string | null;
6
+ order_short_id?: string | null;
7
7
  summary: string;
8
8
  validation_passed?: boolean;
9
9
  validation_issues?: string[];
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface OrderGroup1 {
6
+ schema_version: number;
7
+ name: string;
8
+ description?: string | null;
9
+ _id: string;
10
+ short_id: string;
11
+ order_ids?: string[];
12
+ /** Must be a string starting with `org_` */
13
+ owned_by_org_id: string;
14
+ billing_review_status?: Chrt.BillingReviewStatusEnum;
15
+ /** Must be a string starting with `user_` */
16
+ created_by_user_id: string;
17
+ /** Must be a string starting with `org_` */
18
+ created_by_org_id: string;
19
+ created_at_timestamp: string;
20
+ last_edited_at_timestamp: string;
21
+ }
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface OrderGroupExpandedListRes {
6
+ items: Chrt.OrderGroupExpandedRow[];
7
+ total_count: number;
8
+ }
@@ -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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface OrderGroupExpandedRow {
6
+ order_group: Chrt.OrderGroup1;
7
+ orders: Chrt.Order1[];
8
+ shipping_status?: Chrt.OrderStatusEnum1 | null;
9
+ }
@@ -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
+ export type OrderGroupExpandedSortByEnum = "created_at_timestamp" | "last_edited_at_timestamp" | "name" | "billing_review_status";
5
+ export declare const OrderGroupExpandedSortByEnum: {
6
+ readonly CreatedAtTimestamp: "created_at_timestamp";
7
+ readonly LastEditedAtTimestamp: "last_edited_at_timestamp";
8
+ readonly Name: "name";
9
+ readonly BillingReviewStatus: "billing_review_status";
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.OrderGroupExpandedSortByEnum = void 0;
7
+ exports.OrderGroupExpandedSortByEnum = {
8
+ CreatedAtTimestamp: "created_at_timestamp",
9
+ LastEditedAtTimestamp: "last_edited_at_timestamp",
10
+ Name: "name",
11
+ BillingReviewStatus: "billing_review_status",
12
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface OrderGroupListRes {
6
+ items: Chrt.OrderGroup1[];
7
+ total_count: number;
8
+ }
@@ -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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type OrderGroupSortByEnum = "created_at_timestamp" | "last_edited_at_timestamp" | "name";
5
+ export declare const OrderGroupSortByEnum: {
6
+ readonly CreatedAtTimestamp: "created_at_timestamp";
7
+ readonly LastEditedAtTimestamp: "last_edited_at_timestamp";
8
+ readonly Name: "name";
9
+ };
@@ -0,0 +1,11 @@
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.OrderGroupSortByEnum = void 0;
7
+ exports.OrderGroupSortByEnum = {
8
+ CreatedAtTimestamp: "created_at_timestamp",
9
+ LastEditedAtTimestamp: "last_edited_at_timestamp",
10
+ Name: "name",
11
+ };