@chrt-inc/typescript-sdk 0.0.162 → 0.1.0-beta0

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 (491) hide show
  1. package/Client.d.ts +30 -24
  2. package/Client.js +55 -45
  3. package/README.md +10 -6
  4. package/api/resources/dev/client/Client.d.ts +7 -7
  5. package/api/resources/dev/client/Client.js +48 -48
  6. package/api/resources/directory/client/Client.js +1 -1
  7. package/api/resources/directory/client/requests/DbQueryParams.d.ts +2 -2
  8. package/api/resources/index.d.ts +16 -14
  9. package/api/resources/index.js +17 -15
  10. package/api/resources/{oortNotificationPreferences → messages}/client/Client.d.ts +20 -12
  11. package/api/resources/messages/client/Client.js +191 -0
  12. package/api/resources/messages/client/requests/ShipperToCourierCreate1.d.ts +27 -0
  13. package/api/resources/messages/client/requests/index.d.ts +1 -0
  14. package/api/resources/mirror/client/Client.d.ts +0 -25
  15. package/api/resources/mirror/client/Client.js +10 -119
  16. package/api/resources/oortCourierPayDriverRate/client/Client.d.ts +8 -38
  17. package/api/resources/oortCourierPayDriverRate/client/Client.js +24 -65
  18. package/api/resources/oortCourierPayDriverRate/client/index.d.ts +1 -1
  19. package/api/resources/oortCourierPayDriverRate/client/index.js +0 -15
  20. package/api/resources/oortDrivers/client/Client.d.ts +36 -48
  21. package/api/resources/oortDrivers/client/Client.js +93 -146
  22. package/api/resources/oortDrivers/client/requests/SetDriverActivationReq.d.ts +3 -3
  23. package/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.d.ts +0 -2
  24. package/api/resources/oortDrivers/client/requests/index.d.ts +1 -2
  25. package/api/resources/{oortConnections → oortHandles}/client/Client.d.ts +22 -15
  26. package/api/resources/{oortConnections → oortHandles}/client/Client.js +40 -28
  27. package/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.d.ts → oortHandles/client/requests/HandlesReq.d.ts} +1 -1
  28. package/api/resources/oortHandles/client/requests/index.d.ts +1 -0
  29. package/api/resources/oortMilestones/client/Client.d.ts +15 -28
  30. package/api/resources/oortMilestones/client/Client.js +41 -96
  31. package/api/resources/oortMilestones/client/requests/MilestoneUpdateReq.d.ts +1 -1
  32. package/api/resources/oortMilestones/client/requests/index.d.ts +0 -1
  33. package/api/resources/oortOrders/client/Client.d.ts +35 -45
  34. package/api/resources/oortOrders/client/Client.js +89 -140
  35. package/api/resources/oortOrders/client/requests/CreateOrderReq.d.ts +14 -14
  36. package/api/resources/oortOrgProfiles/client/Client.d.ts +3 -15
  37. package/api/resources/oortOrgProfiles/client/Client.js +8 -65
  38. package/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +7 -6
  39. package/api/resources/oortOrgProfiles/client/requests/index.d.ts +0 -1
  40. package/api/resources/oortRateSheets/client/Client.d.ts +66 -0
  41. package/api/resources/{oortNotificationPreferences → oortRateSheets}/client/Client.js +52 -35
  42. package/{dist/api/resources/oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts → api/resources/oortRateSheets/client/requests/RateSheetClientCreate1.d.ts} +25 -26
  43. package/api/resources/oortRateSheets/client/requests/index.d.ts +1 -0
  44. package/api/resources/oortRoutes/client/Client.d.ts +103 -0
  45. package/{dist/api/resources/oortOrgConnectionInfos → api/resources/oortRoutes}/client/Client.js +134 -71
  46. package/api/resources/oortRoutes/client/requests/GetOortRoutesByIdRequest.d.ts +29 -0
  47. package/api/resources/{orgs/client/requests/UpdateOrgPublicDataReq.d.ts → oortRoutes/client/requests/RouteCreateReq.d.ts} +3 -3
  48. package/{dist/api/resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.d.ts → api/resources/oortRoutes/client/requests/UpdateRouteReq.d.ts} +6 -4
  49. package/api/resources/oortRoutes/client/requests/index.d.ts +3 -0
  50. package/api/resources/oortShippers/client/Client.d.ts +44 -0
  51. package/api/resources/oortShippers/client/Client.js +156 -0
  52. package/api/resources/oortShippers/client/index.d.ts +1 -0
  53. package/api/resources/oortTaskGroups/client/Client.d.ts +6 -56
  54. package/api/resources/oortTaskGroups/client/Client.js +6 -222
  55. package/api/resources/oortTaskGroups/client/index.d.ts +1 -1
  56. package/api/resources/oortTaskGroups/client/index.js +0 -15
  57. package/api/resources/orgs/client/Client.d.ts +2 -52
  58. package/api/resources/orgs/client/Client.js +5 -215
  59. package/api/resources/{oortConnections/client/requests/CreateConnectionReq.d.ts → orgs/client/requests/PostOrgPublicDataReq.d.ts} +1 -1
  60. package/api/resources/orgs/client/requests/index.d.ts +1 -2
  61. package/api/resources/payments/client/Client.js +3 -3
  62. package/api/resources/profiles/client/Client.d.ts +67 -0
  63. package/{dist/api/resources/oortShipperUserInfo → api/resources/profiles}/client/Client.js +49 -79
  64. package/api/resources/profiles/client/requests/CourierProfileCreate2.d.ts +32 -0
  65. package/api/resources/profiles/client/requests/GetCourierProfileRequest.d.ts +12 -0
  66. package/api/resources/profiles/client/requests/GetHandleIsAvailableRequest.d.ts +15 -0
  67. package/api/resources/profiles/client/requests/index.d.ts +3 -0
  68. package/api/resources/profiles/index.d.ts +2 -0
  69. package/api/resources/profiles/index.js +18 -0
  70. package/api/resources/profiles/types/Type.d.ts +8 -0
  71. package/api/resources/profiles/types/Type.js +10 -0
  72. package/api/resources/profiles/types/index.d.ts +1 -0
  73. package/api/resources/profiles/types/index.js +17 -0
  74. package/api/resources/root/client/Client.d.ts +12 -12
  75. package/api/resources/root/client/Client.js +31 -31
  76. package/api/resources/root/types/PydanticResponse.d.ts +1 -1
  77. package/api/resources/users/client/Client.js +1 -1
  78. package/api/types/Action.d.ts +1 -1
  79. package/{dist/api/types/Vehicle1.d.ts → api/types/AppModelsDbOortVehicle1Vehicle1.d.ts} +2 -2
  80. package/api/types/AppModelsDbProfilesCourierOrgProfile2Vehicle1.d.ts +10 -0
  81. package/api/types/Cargo1.d.ts +6 -6
  82. package/api/types/CargoClientCreate1.d.ts +3 -3
  83. package/api/types/CourierAvailabilityEnum.d.ts +9 -0
  84. package/api/types/CourierAvailabilityEnum.js +11 -0
  85. package/api/types/CourierCity.d.ts +9 -0
  86. package/{dist/api/types/CourierOrgConnectionInfo1.d.ts → api/types/CourierOrgInfo1.d.ts} +12 -11
  87. package/api/types/CourierOrgProfile3.d.ts +3 -4
  88. package/api/types/CourierProfile2.d.ts +28 -0
  89. package/{dist/api/types/MultipleTaskGroupsWithTasks.d.ts → api/types/CourierProfileRes2.d.ts} +3 -2
  90. package/api/types/CourierServiceEnum.d.ts +20 -0
  91. package/api/types/CourierServiceEnum.js +22 -0
  92. package/api/types/CourierState.d.ts +8 -0
  93. package/api/types/DecodedJwtWithOrgAndUserId.d.ts +8 -8
  94. package/api/types/Driver1.d.ts +8 -10
  95. package/api/types/EmailAddress1.d.ts +8 -0
  96. package/api/types/Expense1.d.ts +3 -3
  97. package/api/types/Feature.d.ts +2 -2
  98. package/api/types/GetOrderFullRes.d.ts +2 -2
  99. package/{dist/api/types/TaskGroupWithDetails.d.ts → api/types/GetTaskGroupWithFullTaskInfoRes.d.ts} +2 -2
  100. package/api/types/{TaskGroupWithTasks.d.ts → GetTaskGroupWithTasksRes.d.ts} +1 -1
  101. package/api/types/GetTaskGroupsWithFullTaskInfoListRes.d.ts +7 -0
  102. package/api/types/GetTaskGroupsWithTasksListRes.d.ts +7 -0
  103. package/api/types/{TaskGroupWithDetails.d.ts → GetTaskInfoListRes.d.ts} +2 -2
  104. package/api/types/Incident1.d.ts +1 -1
  105. package/api/types/IndustryEnum.d.ts +21 -0
  106. package/api/types/IndustryEnum.js +23 -0
  107. package/api/types/Insurance1.d.ts +1 -1
  108. package/api/types/LineItem1.d.ts +1 -1
  109. package/api/types/Milestone1.d.ts +12 -16
  110. package/api/types/MilestoneClientCreate1.d.ts +1 -1
  111. package/api/types/MilestoneTypeEnum1.d.ts +2 -3
  112. package/api/types/MilestoneTypeEnum1.js +1 -2
  113. package/api/types/Order1.d.ts +9 -11
  114. package/api/types/OrgMemberDetails.d.ts +2 -2
  115. package/api/types/OrgMembersAndDrivers.d.ts +1 -1
  116. package/api/types/OrgPublicData2.d.ts +3 -4
  117. package/api/types/PayablesInvoice1.d.ts +11 -11
  118. package/api/types/PhoneNumber1.d.ts +8 -0
  119. package/api/types/{CourierPayDriverRateSheet1.d.ts → RateSheet1.d.ts} +18 -18
  120. package/api/types/ReceivablesInvoice1.d.ts +7 -7
  121. package/api/types/Route1.d.ts +13 -0
  122. package/api/types/RouteByIdEnum.d.ts +8 -0
  123. package/api/types/RouteByIdEnum.js +10 -0
  124. package/api/types/RouteDetailRes.d.ts +9 -0
  125. package/api/types/Shipper2.d.ts +8 -8
  126. package/api/types/ShipperCourierConnection1.d.ts +4 -4
  127. package/api/types/{ShipperOrgConnectionInfo1.d.ts → ShipperOrgInfo1.d.ts} +8 -7
  128. package/api/types/ShipperToCourier1.d.ts +16 -0
  129. package/api/types/ShipperUserInfo1.d.ts +7 -7
  130. package/api/types/SocialLinks.d.ts +8 -0
  131. package/api/types/StreetAddress1.d.ts +3 -3
  132. package/api/types/StripeConnectInvoice1.d.ts +5 -5
  133. package/api/types/Task1.d.ts +13 -14
  134. package/api/types/TaskClientCreate1.d.ts +5 -6
  135. package/api/types/TaskCreateBundle.d.ts +2 -4
  136. package/api/types/TaskDetailRes.d.ts +9 -0
  137. package/api/types/TaskGroup1.d.ts +6 -12
  138. package/api/types/TaskGroupDetailRes.d.ts +8 -0
  139. package/{dist/api/types/TaskWithDetails.d.ts → api/types/TaskInfo.d.ts} +3 -3
  140. package/api/types/Tracker1.d.ts +1 -1
  141. package/api/types/TrackerSession1.d.ts +1 -1
  142. package/api/types/{UpdateTaskGroupRes.d.ts → UpdateRouteRes.d.ts} +1 -1
  143. package/api/types/UsStatesEnum.d.ts +58 -0
  144. package/api/types/UsStatesEnum.js +60 -0
  145. package/api/types/UserPublicData5.d.ts +6 -6
  146. package/api/types/Vehicle1Input.d.ts +10 -0
  147. package/api/types/VehicleRate1.d.ts +9 -0
  148. package/api/types/index.d.ts +32 -19
  149. package/api/types/index.js +32 -19
  150. package/dist/Client.d.ts +30 -24
  151. package/dist/Client.js +55 -45
  152. package/dist/api/resources/dev/client/Client.d.ts +7 -7
  153. package/dist/api/resources/dev/client/Client.js +48 -48
  154. package/dist/api/resources/directory/client/Client.js +1 -1
  155. package/dist/api/resources/directory/client/requests/DbQueryParams.d.ts +2 -2
  156. package/dist/api/resources/index.d.ts +16 -14
  157. package/dist/api/resources/index.js +17 -15
  158. package/dist/api/resources/{oortNotificationPreferences → messages}/client/Client.d.ts +20 -12
  159. package/dist/api/resources/messages/client/Client.js +191 -0
  160. package/dist/api/resources/messages/client/requests/ShipperToCourierCreate1.d.ts +27 -0
  161. package/dist/api/resources/messages/client/requests/index.d.ts +1 -0
  162. package/dist/api/resources/mirror/client/Client.d.ts +0 -25
  163. package/dist/api/resources/mirror/client/Client.js +10 -119
  164. package/dist/api/resources/oortCourierPayDriverRate/client/Client.d.ts +8 -38
  165. package/dist/api/resources/oortCourierPayDriverRate/client/Client.js +24 -65
  166. package/dist/api/resources/oortCourierPayDriverRate/client/index.d.ts +1 -1
  167. package/dist/api/resources/oortCourierPayDriverRate/client/index.js +0 -15
  168. package/dist/api/resources/oortDrivers/client/Client.d.ts +36 -48
  169. package/dist/api/resources/oortDrivers/client/Client.js +93 -146
  170. package/dist/api/resources/oortDrivers/client/requests/SetDriverActivationReq.d.ts +3 -3
  171. package/dist/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.d.ts +0 -2
  172. package/dist/api/resources/oortDrivers/client/requests/index.d.ts +1 -2
  173. package/dist/api/resources/{oortConnections → oortHandles}/client/Client.d.ts +22 -15
  174. package/dist/api/resources/{oortConnections → oortHandles}/client/Client.js +40 -28
  175. package/dist/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.d.ts → oortHandles/client/requests/HandlesReq.d.ts} +1 -1
  176. package/dist/api/resources/oortHandles/client/requests/index.d.ts +1 -0
  177. package/dist/api/resources/oortMilestones/client/Client.d.ts +15 -28
  178. package/dist/api/resources/oortMilestones/client/Client.js +41 -96
  179. package/dist/api/resources/oortMilestones/client/requests/MilestoneUpdateReq.d.ts +1 -1
  180. package/dist/api/resources/oortMilestones/client/requests/index.d.ts +0 -1
  181. package/dist/api/resources/oortOrders/client/Client.d.ts +35 -45
  182. package/dist/api/resources/oortOrders/client/Client.js +89 -140
  183. package/dist/api/resources/oortOrders/client/requests/CreateOrderReq.d.ts +14 -14
  184. package/dist/api/resources/oortOrgProfiles/client/Client.d.ts +3 -15
  185. package/dist/api/resources/oortOrgProfiles/client/Client.js +8 -65
  186. package/dist/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +7 -6
  187. package/dist/api/resources/oortOrgProfiles/client/requests/index.d.ts +0 -1
  188. package/dist/api/resources/oortRateSheets/client/Client.d.ts +66 -0
  189. package/dist/api/resources/{oortNotificationPreferences → oortRateSheets}/client/Client.js +52 -35
  190. package/{api/resources/oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts → dist/api/resources/oortRateSheets/client/requests/RateSheetClientCreate1.d.ts} +25 -26
  191. package/dist/api/resources/oortRateSheets/client/requests/index.d.ts +1 -0
  192. package/dist/api/resources/oortRoutes/client/Client.d.ts +103 -0
  193. package/{api/resources/oortOrgConnectionInfos → dist/api/resources/oortRoutes}/client/Client.js +134 -71
  194. package/dist/api/resources/oortRoutes/client/index.d.ts +1 -0
  195. package/dist/api/resources/oortRoutes/client/index.js +17 -0
  196. package/dist/api/resources/oortRoutes/client/requests/GetOortRoutesByIdRequest.d.ts +29 -0
  197. package/dist/api/resources/{orgs/client/requests/UpdateOrgPublicDataReq.d.ts → oortRoutes/client/requests/RouteCreateReq.d.ts} +3 -3
  198. package/{api/resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.d.ts → dist/api/resources/oortRoutes/client/requests/UpdateRouteReq.d.ts} +6 -4
  199. package/dist/api/resources/oortRoutes/client/requests/index.d.ts +3 -0
  200. package/dist/api/resources/oortRoutes/index.d.ts +1 -0
  201. package/dist/api/resources/oortRoutes/index.js +17 -0
  202. package/dist/api/resources/oortShippers/client/Client.d.ts +44 -0
  203. package/dist/api/resources/oortShippers/client/Client.js +156 -0
  204. package/dist/api/resources/oortShippers/client/index.d.ts +1 -0
  205. package/dist/api/resources/oortShippers/index.d.ts +1 -0
  206. package/dist/api/resources/oortShippers/index.js +17 -0
  207. package/dist/api/resources/oortTaskGroups/client/Client.d.ts +6 -56
  208. package/dist/api/resources/oortTaskGroups/client/Client.js +6 -222
  209. package/dist/api/resources/oortTaskGroups/client/index.d.ts +1 -1
  210. package/dist/api/resources/oortTaskGroups/client/index.js +0 -15
  211. package/dist/api/resources/orgs/client/Client.d.ts +2 -52
  212. package/dist/api/resources/orgs/client/Client.js +5 -215
  213. package/dist/api/resources/{oortConnections/client/requests/CreateConnectionReq.d.ts → orgs/client/requests/PostOrgPublicDataReq.d.ts} +1 -1
  214. package/dist/api/resources/orgs/client/requests/index.d.ts +1 -2
  215. package/dist/api/resources/payments/client/Client.js +3 -3
  216. package/dist/api/resources/profiles/client/Client.d.ts +67 -0
  217. package/{api/resources/oortShipperUserInfo → dist/api/resources/profiles}/client/Client.js +49 -79
  218. package/dist/api/resources/profiles/client/index.d.ts +1 -0
  219. package/dist/api/resources/profiles/client/index.js +17 -0
  220. package/dist/api/resources/profiles/client/requests/CourierProfileCreate2.d.ts +32 -0
  221. package/dist/api/resources/profiles/client/requests/GetCourierProfileRequest.d.ts +12 -0
  222. package/dist/api/resources/profiles/client/requests/GetHandleIsAvailableRequest.d.ts +15 -0
  223. package/dist/api/resources/profiles/client/requests/index.d.ts +3 -0
  224. package/dist/api/resources/profiles/index.d.ts +2 -0
  225. package/dist/api/resources/profiles/index.js +18 -0
  226. package/dist/api/resources/profiles/types/Type.d.ts +8 -0
  227. package/dist/api/resources/profiles/types/Type.js +10 -0
  228. package/dist/api/resources/profiles/types/index.d.ts +1 -0
  229. package/dist/api/resources/profiles/types/index.js +17 -0
  230. package/dist/api/resources/root/client/Client.d.ts +12 -12
  231. package/dist/api/resources/root/client/Client.js +31 -31
  232. package/dist/api/resources/root/types/PydanticResponse.d.ts +1 -1
  233. package/dist/api/resources/users/client/Client.js +1 -1
  234. package/dist/api/types/Action.d.ts +1 -1
  235. package/{api/types/Vehicle1.d.ts → dist/api/types/AppModelsDbOortVehicle1Vehicle1.d.ts} +2 -2
  236. package/dist/api/types/AppModelsDbProfilesCourierOrgProfile2Vehicle1.d.ts +10 -0
  237. package/dist/api/types/Cargo1.d.ts +6 -6
  238. package/dist/api/types/CargoClientCreate1.d.ts +3 -3
  239. package/dist/api/types/CourierAvailabilityEnum.d.ts +9 -0
  240. package/dist/api/types/CourierAvailabilityEnum.js +11 -0
  241. package/dist/api/types/CourierCity.d.ts +9 -0
  242. package/{api/types/CourierOrgConnectionInfo1.d.ts → dist/api/types/CourierOrgInfo1.d.ts} +12 -11
  243. package/dist/api/types/CourierOrgProfile3.d.ts +3 -4
  244. package/dist/api/types/CourierProfile2.d.ts +28 -0
  245. package/{api/types/MultipleTaskGroupsWithTasks.d.ts → dist/api/types/CourierProfileRes2.d.ts} +3 -2
  246. package/dist/api/types/CourierServiceEnum.d.ts +20 -0
  247. package/dist/api/types/CourierServiceEnum.js +22 -0
  248. package/dist/api/types/CourierState.d.ts +8 -0
  249. package/dist/api/types/DecodedJwtWithOrgAndUserId.d.ts +8 -8
  250. package/dist/api/types/Driver1.d.ts +8 -10
  251. package/dist/api/types/EmailAddress1.d.ts +8 -0
  252. package/dist/api/types/Expense1.d.ts +3 -3
  253. package/dist/api/types/Feature.d.ts +2 -2
  254. package/dist/api/types/GetOrderFullRes.d.ts +2 -2
  255. package/dist/api/types/GetTaskGroupWithFullTaskInfoRes.d.ts +8 -0
  256. package/dist/api/types/{TaskGroupWithTasks.d.ts → GetTaskGroupWithTasksRes.d.ts} +1 -1
  257. package/dist/api/types/GetTaskGroupsWithFullTaskInfoListRes.d.ts +7 -0
  258. package/dist/api/types/GetTaskGroupsWithTasksListRes.d.ts +7 -0
  259. package/dist/api/types/GetTaskInfoListRes.d.ts +8 -0
  260. package/dist/api/types/Incident1.d.ts +1 -1
  261. package/dist/api/types/IndustryEnum.d.ts +21 -0
  262. package/dist/api/types/IndustryEnum.js +23 -0
  263. package/dist/api/types/Insurance1.d.ts +1 -1
  264. package/dist/api/types/LineItem1.d.ts +1 -1
  265. package/dist/api/types/Milestone1.d.ts +12 -16
  266. package/dist/api/types/MilestoneClientCreate1.d.ts +1 -1
  267. package/dist/api/types/MilestoneTypeEnum1.d.ts +2 -3
  268. package/dist/api/types/MilestoneTypeEnum1.js +1 -2
  269. package/dist/api/types/Order1.d.ts +9 -11
  270. package/dist/api/types/OrgMemberDetails.d.ts +2 -2
  271. package/dist/api/types/OrgMembersAndDrivers.d.ts +1 -1
  272. package/dist/api/types/OrgPublicData2.d.ts +3 -4
  273. package/dist/api/types/PayablesInvoice1.d.ts +11 -11
  274. package/dist/api/types/PhoneNumber1.d.ts +8 -0
  275. package/dist/api/types/{CourierPayDriverRateSheet1.d.ts → RateSheet1.d.ts} +18 -18
  276. package/dist/api/types/RateSheet1.js +5 -0
  277. package/dist/api/types/ReceivablesInvoice1.d.ts +7 -7
  278. package/dist/api/types/Route1.d.ts +13 -0
  279. package/dist/api/types/Route1.js +5 -0
  280. package/dist/api/types/RouteByIdEnum.d.ts +8 -0
  281. package/dist/api/types/RouteByIdEnum.js +10 -0
  282. package/dist/api/types/RouteDetailRes.d.ts +9 -0
  283. package/dist/api/types/RouteDetailRes.js +5 -0
  284. package/dist/api/types/Shipper2.d.ts +8 -8
  285. package/dist/api/types/ShipperCourierConnection1.d.ts +4 -4
  286. package/dist/api/types/{ShipperOrgConnectionInfo1.d.ts → ShipperOrgInfo1.d.ts} +8 -7
  287. package/dist/api/types/ShipperOrgInfo1.js +5 -0
  288. package/dist/api/types/ShipperToCourier1.d.ts +16 -0
  289. package/dist/api/types/ShipperToCourier1.js +5 -0
  290. package/dist/api/types/ShipperUserInfo1.d.ts +7 -7
  291. package/dist/api/types/SocialLinks.d.ts +8 -0
  292. package/dist/api/types/SocialLinks.js +5 -0
  293. package/dist/api/types/StreetAddress1.d.ts +3 -3
  294. package/dist/api/types/StripeConnectInvoice1.d.ts +5 -5
  295. package/dist/api/types/Task1.d.ts +13 -14
  296. package/dist/api/types/TaskClientCreate1.d.ts +5 -6
  297. package/dist/api/types/TaskCreateBundle.d.ts +2 -4
  298. package/dist/api/types/TaskDetailRes.d.ts +9 -0
  299. package/dist/api/types/TaskDetailRes.js +5 -0
  300. package/dist/api/types/TaskGroup1.d.ts +6 -12
  301. package/dist/api/types/TaskGroupDetailRes.d.ts +8 -0
  302. package/dist/api/types/TaskGroupDetailRes.js +5 -0
  303. package/{api/types/TaskWithDetails.d.ts → dist/api/types/TaskInfo.d.ts} +3 -3
  304. package/dist/api/types/TaskInfo.js +5 -0
  305. package/dist/api/types/Tracker1.d.ts +1 -1
  306. package/dist/api/types/TrackerSession1.d.ts +1 -1
  307. package/dist/api/types/{UpdateTaskGroupRes.d.ts → UpdateRouteRes.d.ts} +1 -1
  308. package/dist/api/types/UpdateRouteRes.js +5 -0
  309. package/dist/api/types/UsStatesEnum.d.ts +58 -0
  310. package/dist/api/types/UsStatesEnum.js +60 -0
  311. package/dist/api/types/UserPublicData5.d.ts +6 -6
  312. package/dist/api/types/Vehicle1Input.d.ts +10 -0
  313. package/dist/api/types/Vehicle1Input.js +5 -0
  314. package/dist/api/types/VehicleRate1.d.ts +9 -0
  315. package/dist/api/types/VehicleRate1.js +5 -0
  316. package/dist/api/types/index.d.ts +32 -19
  317. package/dist/api/types/index.js +32 -19
  318. package/dist/version.d.ts +1 -1
  319. package/dist/version.js +1 -1
  320. package/package.json +1 -1
  321. package/reference.md +759 -1435
  322. package/version.d.ts +1 -1
  323. package/version.js +1 -1
  324. package/api/resources/oortConnections/client/requests/index.d.ts +0 -1
  325. package/api/resources/oortCourierPayDriverRate/client/requests/index.d.ts +0 -1
  326. package/api/resources/oortDrivers/client/requests/DriverCreateReq.d.ts +0 -17
  327. package/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.d.ts +0 -16
  328. package/api/resources/oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.d.ts +0 -18
  329. package/api/resources/oortNotificationPreferences/client/requests/index.d.ts +0 -1
  330. package/api/resources/oortOrgConnectionInfos/client/Client.d.ts +0 -102
  331. package/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +0 -24
  332. package/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.d.ts +0 -18
  333. package/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +0 -24
  334. package/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +0 -20
  335. package/api/resources/oortOrgConnectionInfos/client/requests/index.d.ts +0 -4
  336. package/api/resources/oortShipperUserInfo/client/Client.d.ts +0 -73
  337. package/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.d.ts +0 -24
  338. package/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.d.ts +0 -21
  339. package/api/resources/oortShipperUserInfo/client/requests/index.d.ts +0 -2
  340. package/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.d.ts +0 -14
  341. package/api/resources/oortTaskGroups/client/requests/index.d.ts +0 -2
  342. package/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +0 -14
  343. package/api/types/DriverStatusEnum.d.ts +0 -9
  344. package/api/types/DriverStatusEnum.js +0 -11
  345. package/api/types/EmailReq.d.ts +0 -6
  346. package/api/types/EmailRes.d.ts +0 -7
  347. package/api/types/MultipleTaskGroupsDetailsResponse.d.ts +0 -7
  348. package/api/types/NotificationChannelEnum.d.ts +0 -10
  349. package/api/types/NotificationChannelEnum.js +0 -12
  350. package/api/types/NotificationPreferences1.d.ts +0 -18
  351. package/api/types/OrderStatusEnum1.d.ts +0 -10
  352. package/api/types/OrderStatusEnum1.js +0 -12
  353. package/api/types/TaskGroupDetailsResponse.d.ts +0 -8
  354. package/api/types/TaskGroupStatusEnum1.d.ts +0 -9
  355. package/api/types/TaskGroupStatusEnum1.js +0 -11
  356. package/dist/api/resources/oortConnections/client/requests/index.d.ts +0 -1
  357. package/dist/api/resources/oortCourierPayDriverRate/client/requests/index.d.ts +0 -1
  358. package/dist/api/resources/oortDrivers/client/requests/DriverCreateReq.d.ts +0 -17
  359. package/dist/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.d.ts +0 -16
  360. package/dist/api/resources/oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.d.ts +0 -18
  361. package/dist/api/resources/oortNotificationPreferences/client/requests/index.d.ts +0 -1
  362. package/dist/api/resources/oortOrgConnectionInfos/client/Client.d.ts +0 -102
  363. package/dist/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +0 -24
  364. package/dist/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.d.ts +0 -18
  365. package/dist/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +0 -24
  366. package/dist/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +0 -20
  367. package/dist/api/resources/oortOrgConnectionInfos/client/requests/index.d.ts +0 -4
  368. package/dist/api/resources/oortShipperUserInfo/client/Client.d.ts +0 -73
  369. package/dist/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.d.ts +0 -24
  370. package/dist/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.d.ts +0 -21
  371. package/dist/api/resources/oortShipperUserInfo/client/requests/index.d.ts +0 -2
  372. package/dist/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.d.ts +0 -14
  373. package/dist/api/resources/oortTaskGroups/client/requests/index.d.ts +0 -2
  374. package/dist/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +0 -14
  375. package/dist/api/types/DriverStatusEnum.d.ts +0 -9
  376. package/dist/api/types/DriverStatusEnum.js +0 -11
  377. package/dist/api/types/EmailReq.d.ts +0 -6
  378. package/dist/api/types/EmailRes.d.ts +0 -7
  379. package/dist/api/types/MultipleTaskGroupsDetailsResponse.d.ts +0 -7
  380. package/dist/api/types/NotificationChannelEnum.d.ts +0 -10
  381. package/dist/api/types/NotificationChannelEnum.js +0 -12
  382. package/dist/api/types/NotificationPreferences1.d.ts +0 -18
  383. package/dist/api/types/OrderStatusEnum1.d.ts +0 -10
  384. package/dist/api/types/OrderStatusEnum1.js +0 -12
  385. package/dist/api/types/TaskGroupDetailsResponse.d.ts +0 -8
  386. package/dist/api/types/TaskGroupStatusEnum1.d.ts +0 -9
  387. package/dist/api/types/TaskGroupStatusEnum1.js +0 -11
  388. /package/api/resources/{oortConnections → messages}/client/index.d.ts +0 -0
  389. /package/api/resources/{oortConnections → messages}/client/index.js +0 -0
  390. /package/api/resources/{oortConnections/client/requests/CreateConnectionReq.js → messages/client/requests/ShipperToCourierCreate1.js} +0 -0
  391. /package/api/resources/{oortConnections → messages}/client/requests/index.js +0 -0
  392. /package/api/resources/{oortConnections → messages}/index.d.ts +0 -0
  393. /package/api/resources/{oortConnections → messages}/index.js +0 -0
  394. /package/api/resources/{oortNotificationPreferences → oortHandles}/client/index.d.ts +0 -0
  395. /package/api/resources/{oortNotificationPreferences → oortHandles}/client/index.js +0 -0
  396. /package/api/resources/{oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.js → oortHandles/client/requests/HandlesReq.js} +0 -0
  397. /package/api/resources/{oortCourierPayDriverRate → oortHandles}/client/requests/index.js +0 -0
  398. /package/api/resources/{oortNotificationPreferences → oortHandles}/index.d.ts +0 -0
  399. /package/api/resources/{oortNotificationPreferences → oortHandles}/index.js +0 -0
  400. /package/api/resources/{oortOrgConnectionInfos → oortRateSheets}/client/index.d.ts +0 -0
  401. /package/api/resources/{oortOrgConnectionInfos → oortRateSheets}/client/index.js +0 -0
  402. /package/api/resources/{oortDrivers/client/requests/DriverCreateReq.js → oortRateSheets/client/requests/RateSheetClientCreate1.js} +0 -0
  403. /package/api/resources/{oortNotificationPreferences → oortRateSheets}/client/requests/index.js +0 -0
  404. /package/api/resources/{oortOrgConnectionInfos → oortRateSheets}/index.d.ts +0 -0
  405. /package/api/resources/{oortOrgConnectionInfos → oortRateSheets}/index.js +0 -0
  406. /package/api/resources/{oortShipperUserInfo → oortRoutes}/client/index.d.ts +0 -0
  407. /package/api/resources/{oortShipperUserInfo → oortRoutes}/client/index.js +0 -0
  408. /package/api/resources/{oortMilestones/client/requests/MilestoneAddToTaskReq.js → oortRoutes/client/requests/GetOortRoutesByIdRequest.js} +0 -0
  409. /package/api/resources/{oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.js → oortRoutes/client/requests/RouteCreateReq.js} +0 -0
  410. /package/api/resources/{oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.js → oortRoutes/client/requests/UpdateRouteReq.js} +0 -0
  411. /package/api/resources/{oortOrgConnectionInfos → oortRoutes}/client/requests/index.js +0 -0
  412. /package/api/resources/{oortShipperUserInfo → oortRoutes}/index.d.ts +0 -0
  413. /package/api/resources/{oortShipperUserInfo → oortRoutes}/index.js +0 -0
  414. /package/api/resources/{oortShipperUserInfo/client/requests → oortShippers/client}/index.js +0 -0
  415. /package/{dist/api/resources/oortConnections → api/resources/oortShippers}/index.d.ts +0 -0
  416. /package/{dist/api/resources/oortConnections → api/resources/oortShippers}/index.js +0 -0
  417. /package/api/resources/{oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.js → orgs/client/requests/PostOrgPublicDataReq.js} +0 -0
  418. /package/{dist/api/resources/oortConnections → api/resources/profiles}/client/index.d.ts +0 -0
  419. /package/{dist/api/resources/oortConnections → api/resources/profiles}/client/index.js +0 -0
  420. /package/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.js → profiles/client/requests/CourierProfileCreate2.js} +0 -0
  421. /package/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.js → profiles/client/requests/GetCourierProfileRequest.js} +0 -0
  422. /package/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.js → profiles/client/requests/GetHandleIsAvailableRequest.js} +0 -0
  423. /package/api/resources/{oortTaskGroups → profiles}/client/requests/index.js +0 -0
  424. /package/api/{resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.js → types/AppModelsDbOortVehicle1Vehicle1.js} +0 -0
  425. /package/api/{resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.js → types/AppModelsDbProfilesCourierOrgProfile2Vehicle1.js} +0 -0
  426. /package/api/{resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.js → types/CourierCity.js} +0 -0
  427. /package/api/{resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.js → types/CourierOrgInfo1.js} +0 -0
  428. /package/api/{resources/orgs/client/requests/CreateOrgPublicDataReq.js → types/CourierProfile2.js} +0 -0
  429. /package/api/{resources/orgs/client/requests/UpdateOrgPublicDataReq.js → types/CourierProfileRes2.js} +0 -0
  430. /package/api/types/{CourierOrgConnectionInfo1.js → CourierState.js} +0 -0
  431. /package/api/types/{CourierPayDriverRateSheet1.js → EmailAddress1.js} +0 -0
  432. /package/api/types/{EmailReq.js → GetTaskGroupWithFullTaskInfoRes.js} +0 -0
  433. /package/api/types/{EmailRes.js → GetTaskGroupWithTasksRes.js} +0 -0
  434. /package/api/types/{MultipleTaskGroupsDetailsResponse.js → GetTaskGroupsWithFullTaskInfoListRes.js} +0 -0
  435. /package/api/types/{MultipleTaskGroupsWithTasks.js → GetTaskGroupsWithTasksListRes.js} +0 -0
  436. /package/api/types/{NotificationPreferences1.js → GetTaskInfoListRes.js} +0 -0
  437. /package/api/types/{ShipperOrgConnectionInfo1.js → PhoneNumber1.js} +0 -0
  438. /package/api/types/{TaskGroupDetailsResponse.js → RateSheet1.js} +0 -0
  439. /package/api/types/{TaskGroupWithDetails.js → Route1.js} +0 -0
  440. /package/api/types/{TaskGroupWithTasks.js → RouteDetailRes.js} +0 -0
  441. /package/api/types/{TaskWithDetails.js → ShipperOrgInfo1.js} +0 -0
  442. /package/api/types/{UpdateTaskGroupRes.js → ShipperToCourier1.js} +0 -0
  443. /package/api/types/{Vehicle1.js → SocialLinks.js} +0 -0
  444. /package/{dist/api/resources/oortConnections/client/requests/CreateConnectionReq.js → api/types/TaskDetailRes.js} +0 -0
  445. /package/{dist/api/resources/oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.js → api/types/TaskGroupDetailRes.js} +0 -0
  446. /package/{dist/api/resources/oortDrivers/client/requests/DriverCreateReq.js → api/types/TaskInfo.js} +0 -0
  447. /package/{dist/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.js → api/types/UpdateRouteRes.js} +0 -0
  448. /package/{dist/api/resources/oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.js → api/types/Vehicle1Input.js} +0 -0
  449. /package/{dist/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.js → api/types/VehicleRate1.js} +0 -0
  450. /package/dist/api/resources/{oortNotificationPreferences → messages}/client/index.d.ts +0 -0
  451. /package/dist/api/resources/{oortNotificationPreferences → messages}/client/index.js +0 -0
  452. /package/dist/api/resources/{oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.js → messages/client/requests/ShipperToCourierCreate1.js} +0 -0
  453. /package/dist/api/resources/{oortConnections → messages}/client/requests/index.js +0 -0
  454. /package/dist/api/resources/{oortNotificationPreferences → messages}/index.d.ts +0 -0
  455. /package/dist/api/resources/{oortNotificationPreferences → messages}/index.js +0 -0
  456. /package/dist/api/resources/{oortOrgConnectionInfos → oortHandles}/client/index.d.ts +0 -0
  457. /package/dist/api/resources/{oortOrgConnectionInfos → oortHandles}/client/index.js +0 -0
  458. /package/dist/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.js → oortHandles/client/requests/HandlesReq.js} +0 -0
  459. /package/dist/api/resources/{oortCourierPayDriverRate → oortHandles}/client/requests/index.js +0 -0
  460. /package/dist/api/resources/{oortOrgConnectionInfos → oortHandles}/index.d.ts +0 -0
  461. /package/dist/api/resources/{oortOrgConnectionInfos → oortHandles}/index.js +0 -0
  462. /package/dist/api/resources/{oortShipperUserInfo → oortRateSheets}/client/index.d.ts +0 -0
  463. /package/dist/api/resources/{oortShipperUserInfo → oortRateSheets}/client/index.js +0 -0
  464. /package/dist/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.js → oortRateSheets/client/requests/RateSheetClientCreate1.js} +0 -0
  465. /package/dist/api/resources/{oortNotificationPreferences → oortRateSheets}/client/requests/index.js +0 -0
  466. /package/dist/api/resources/{oortShipperUserInfo → oortRateSheets}/index.d.ts +0 -0
  467. /package/dist/api/resources/{oortShipperUserInfo → oortRateSheets}/index.js +0 -0
  468. /package/dist/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.js → oortRoutes/client/requests/GetOortRoutesByIdRequest.js} +0 -0
  469. /package/dist/api/resources/{oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.js → oortRoutes/client/requests/RouteCreateReq.js} +0 -0
  470. /package/dist/api/resources/{oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.js → oortRoutes/client/requests/UpdateRouteReq.js} +0 -0
  471. /package/dist/api/resources/{oortOrgConnectionInfos → oortRoutes}/client/requests/index.js +0 -0
  472. /package/dist/api/resources/{oortShipperUserInfo/client/requests → oortShippers/client}/index.js +0 -0
  473. /package/dist/api/resources/{oortTaskGroups/client/requests/SetTaskGroupPauseReq.js → orgs/client/requests/PostOrgPublicDataReq.js} +0 -0
  474. /package/dist/api/resources/{oortTaskGroups/client/requests/UpdateTaskGroupReq.js → profiles/client/requests/CourierProfileCreate2.js} +0 -0
  475. /package/dist/api/resources/{orgs/client/requests/CreateOrgPublicDataReq.js → profiles/client/requests/GetCourierProfileRequest.js} +0 -0
  476. /package/dist/api/resources/{orgs/client/requests/UpdateOrgPublicDataReq.js → profiles/client/requests/GetHandleIsAvailableRequest.js} +0 -0
  477. /package/dist/api/resources/{oortTaskGroups → profiles}/client/requests/index.js +0 -0
  478. /package/dist/api/types/{CourierOrgConnectionInfo1.js → AppModelsDbOortVehicle1Vehicle1.js} +0 -0
  479. /package/dist/api/types/{CourierPayDriverRateSheet1.js → AppModelsDbProfilesCourierOrgProfile2Vehicle1.js} +0 -0
  480. /package/dist/api/types/{EmailReq.js → CourierCity.js} +0 -0
  481. /package/dist/api/types/{EmailRes.js → CourierOrgInfo1.js} +0 -0
  482. /package/dist/api/types/{MultipleTaskGroupsDetailsResponse.js → CourierProfile2.js} +0 -0
  483. /package/dist/api/types/{MultipleTaskGroupsWithTasks.js → CourierProfileRes2.js} +0 -0
  484. /package/dist/api/types/{NotificationPreferences1.js → CourierState.js} +0 -0
  485. /package/dist/api/types/{ShipperOrgConnectionInfo1.js → EmailAddress1.js} +0 -0
  486. /package/dist/api/types/{TaskGroupDetailsResponse.js → GetTaskGroupWithFullTaskInfoRes.js} +0 -0
  487. /package/dist/api/types/{TaskGroupWithDetails.js → GetTaskGroupWithTasksRes.js} +0 -0
  488. /package/dist/api/types/{TaskGroupWithTasks.js → GetTaskGroupsWithFullTaskInfoListRes.js} +0 -0
  489. /package/dist/api/types/{TaskWithDetails.js → GetTaskGroupsWithTasksListRes.js} +0 -0
  490. /package/dist/api/types/{UpdateTaskGroupRes.js → GetTaskInfoListRes.js} +0 -0
  491. /package/dist/api/types/{Vehicle1.js → PhoneNumber1.js} +0 -0
@@ -0,0 +1,22 @@
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.CourierServiceEnum = void 0;
7
+ exports.CourierServiceEnum = {
8
+ OnDemand: "on_demand",
9
+ Routed: "routed",
10
+ OnboardCourier: "onboard_courier",
11
+ Warehousing: "warehousing",
12
+ NextFlightOut: "next_flight_out",
13
+ CharteredAircraft: "chartered_aircraft",
14
+ TemperatureControlled: "temperature_controlled",
15
+ DangerousGoods: "dangerous_goods",
16
+ AirFreight: "air_freight",
17
+ DroneDelivery: "drone_delivery",
18
+ SecureTransport: "secure_transport",
19
+ Helicopter: "helicopter",
20
+ SubOrbitalSpaceflight: "sub_orbital_spaceflight",
21
+ Vactrain: "vactrain",
22
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index";
5
+ export interface CourierState {
6
+ state: Chrt.UsStatesEnum;
7
+ courier_availability: Chrt.CourierAvailabilityEnum;
8
+ }
@@ -3,26 +3,26 @@
3
3
  */
4
4
  export interface DecodedJwtWithOrgAndUserId {
5
5
  azp?: string;
6
- email_verified?: boolean;
7
6
  exp?: number;
8
7
  fva?: number[];
9
8
  iat?: number;
10
9
  iss?: string;
11
10
  jti?: string;
12
11
  nbf?: number;
13
- /** Must be a string starting with `org_` */
14
- org_id: string;
12
+ sid?: string;
13
+ /** Must be a string starting with `user_` */
14
+ sub?: string;
15
15
  org_permissions?: unknown[];
16
- org_public_metadata?: Record<string, unknown>;
17
16
  org_role?: string;
18
17
  org_slug?: string;
18
+ email_verified?: boolean;
19
+ org_public_metadata?: Record<string, unknown>;
20
+ user_public_metadata?: Record<string, unknown>;
19
21
  primary_email_address?: string;
20
- sid?: string;
21
- /** Must be a string starting with `user_` */
22
- sub?: string;
22
+ /** Must be a string starting with `org_` */
23
+ org_id: string;
23
24
  /** Must be a string starting with `user_` */
24
25
  user_id: string;
25
- user_public_metadata?: Record<string, unknown>;
26
26
  /** Accepts any additional properties */
27
27
  [key: string]: any;
28
28
  }
@@ -3,21 +3,19 @@
3
3
  */
4
4
  import * as Chrt from "../index";
5
5
  export interface Driver1 {
6
- _id: string;
6
+ schema_version: number;
7
7
  active: boolean;
8
8
  email_address_primary?: string;
9
9
  email_address_secondary?: string;
10
- first_name?: string;
11
- last_name?: string;
12
- last_seen_at_location?: Chrt.Feature;
13
- last_seen_at_timestamp?: string;
14
- /** Must be a string starting with `org_` */
15
- org_id?: string;
16
10
  phone_number_primary?: string;
17
11
  phone_number_secondary?: string;
18
- schema_version: number;
19
- status?: Chrt.DriverStatusEnum;
20
12
  /** Must be a string starting with `user_` */
21
13
  user_id?: string;
22
- vehicle_types?: Chrt.VehicleTypeEnum[];
14
+ first_name?: string;
15
+ last_name?: string;
16
+ _id: string;
17
+ /** Must be a string starting with `org_` */
18
+ org_id?: string;
19
+ last_seen_at_location?: Chrt.Feature;
20
+ last_seen_at_timestamp?: string;
23
21
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface EmailAddress1 {
5
+ type?: string;
6
+ email_address: string;
7
+ notes?: string;
8
+ }
@@ -3,11 +3,11 @@
3
3
  */
4
4
  import * as Chrt from "../index";
5
5
  export interface Expense1 {
6
+ schema_version: number;
6
7
  _id: string;
7
8
  amount_usd: number;
8
- comments?: string;
9
9
  docs_s3_short_key?: string[];
10
- line_item_type: Chrt.LineItemEnum1;
11
- schema_version: number;
12
10
  vendor: string;
11
+ line_item_type: Chrt.LineItemEnum1;
12
+ comments?: string;
13
13
  }
@@ -7,8 +7,8 @@ import * as Chrt from "../index";
7
7
  */
8
8
  export interface Feature {
9
9
  bbox?: unknown[];
10
+ type: "Feature";
10
11
  geometry?: Chrt.FeatureOutputGeometry;
11
- id?: Chrt.Id;
12
12
  properties?: Chrt.Properties;
13
- type: "Feature";
13
+ id?: Chrt.Id;
14
14
  }
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import * as Chrt from "../index";
5
5
  export interface GetOrderFullRes {
6
- cargos: Chrt.Cargo1[];
7
- milestones: Chrt.Milestone1[];
8
6
  order: Chrt.Order1;
9
7
  task_groups: Chrt.TaskGroup1[];
10
8
  tasks: Chrt.Task1[];
9
+ milestones: Chrt.Milestone1[];
10
+ cargos: Chrt.Cargo1[];
11
11
  }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index";
5
- export interface TaskGroupWithDetails {
5
+ export interface GetTaskGroupWithFullTaskInfoRes {
6
6
  task_group: Chrt.TaskGroup1;
7
- tasks_with_details: Chrt.TaskWithDetails[];
7
+ task_info_list: Chrt.TaskInfo[];
8
8
  }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index";
5
- export interface TaskGroupWithTasks {
5
+ export interface GetTaskGroupWithTasksRes {
6
6
  task_group: Chrt.TaskGroup1;
7
7
  tasks: Chrt.Task1[];
8
8
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index";
5
+ export interface GetTaskGroupsWithFullTaskInfoListRes {
6
+ task_groups_with_full_info: Chrt.GetTaskGroupWithFullTaskInfoRes[];
7
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index";
5
+ export interface GetTaskGroupsWithTasksListRes {
6
+ task_groups_with_tasks: Chrt.GetTaskGroupWithTasksRes[];
7
+ }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index";
5
- export interface TaskGroupWithDetails {
5
+ export interface GetTaskInfoListRes {
6
6
  task_group: Chrt.TaskGroup1;
7
- tasks_with_details: Chrt.TaskWithDetails[];
7
+ task_info_list: Chrt.TaskInfo[];
8
8
  }
@@ -2,6 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface Incident1 {
5
- _id: string;
6
5
  schema_version: number;
6
+ _id: string;
7
7
  }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type IndustryEnum = "medical" | "prescription_medication" | "pharmaceutical" | "life_sciences" | "health_systems_and_labs" | "med_device" | "cold_chain" | "radiopharma" | "industrials" | "aerospace" | "auto" | "hi_tech" | "manufacturing" | "documents" | "ecommerce";
5
+ export declare const IndustryEnum: {
6
+ readonly Medical: "medical";
7
+ readonly PrescriptionMedication: "prescription_medication";
8
+ readonly Pharmaceutical: "pharmaceutical";
9
+ readonly LifeSciences: "life_sciences";
10
+ readonly HealthSystemsAndLabs: "health_systems_and_labs";
11
+ readonly MedDevice: "med_device";
12
+ readonly ColdChain: "cold_chain";
13
+ readonly Radiopharma: "radiopharma";
14
+ readonly Industrials: "industrials";
15
+ readonly Aerospace: "aerospace";
16
+ readonly Auto: "auto";
17
+ readonly HiTech: "hi_tech";
18
+ readonly Manufacturing: "manufacturing";
19
+ readonly Documents: "documents";
20
+ readonly Ecommerce: "ecommerce";
21
+ };
@@ -0,0 +1,23 @@
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.IndustryEnum = void 0;
7
+ exports.IndustryEnum = {
8
+ Medical: "medical",
9
+ PrescriptionMedication: "prescription_medication",
10
+ Pharmaceutical: "pharmaceutical",
11
+ LifeSciences: "life_sciences",
12
+ HealthSystemsAndLabs: "health_systems_and_labs",
13
+ MedDevice: "med_device",
14
+ ColdChain: "cold_chain",
15
+ Radiopharma: "radiopharma",
16
+ Industrials: "industrials",
17
+ Aerospace: "aerospace",
18
+ Auto: "auto",
19
+ HiTech: "hi_tech",
20
+ Manufacturing: "manufacturing",
21
+ Documents: "documents",
22
+ Ecommerce: "ecommerce",
23
+ };
@@ -2,6 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface Insurance1 {
5
- _id: string;
6
5
  schema_version: number;
6
+ _id: string;
7
7
  }
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import * as Chrt from "../index";
5
5
  export interface LineItem1 {
6
- comment?: string;
7
6
  created_at: string;
8
7
  item: Chrt.LineItemEnum1;
9
8
  quantity: number;
10
9
  rate: number;
10
+ comment?: string;
11
11
  }
@@ -3,25 +3,21 @@
3
3
  */
4
4
  import * as Chrt from "../index";
5
5
  export interface Milestone1 {
6
+ schema_version: number;
7
+ type: Chrt.MilestoneTypeEnum1;
8
+ requestor_comments?: string;
6
9
  _id: string;
7
- chrt_comments?: string;
8
- completed: boolean;
9
- completed_at_geojson_feature?: Chrt.Feature;
10
+ order_id: string;
11
+ order_short_id: string;
12
+ task_id: string;
10
13
  completed_at_timestamp?: string;
14
+ completed_at_geojson_feature?: Chrt.Feature;
11
15
  /** Must be a string starting with `user_` */
12
16
  completed_by_user_id?: string;
13
- completor_comments?: string;
14
- decoded_scans?: string[];
15
- notification_email_ids?: string[];
16
- notification_push_ids?: string[];
17
- notification_sms_ids?: string[];
18
- notification_voice_ids?: string[];
19
- order_id: string;
20
- order_short_id: string;
21
- requested_by_shipper: boolean;
22
- requestor_comments?: string;
17
+ completed: boolean;
23
18
  s3_milestone_file_metadata_ids?: string[];
24
- schema_version: number;
25
- task_id: string;
26
- type: Chrt.MilestoneTypeEnum1;
19
+ decoded_scans?: string[];
20
+ requested: boolean;
21
+ completor_comments?: string;
22
+ chrt_comments?: string;
27
23
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as Chrt from "../index";
5
5
  export interface MilestoneClientCreate1 {
6
- requestor_comments?: string;
7
6
  schema_version: number;
8
7
  type: Chrt.MilestoneTypeEnum1;
8
+ requestor_comments?: string;
9
9
  }
@@ -1,14 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type MilestoneTypeEnum1 = "image" | "signature" | "barcode_scan" | "qr_code_scan" | "user_action" | "detected_by_app" | "other" | "order_in_progress";
4
+ export type MilestoneTypeEnum1 = "image" | "signature" | "barcode_scan" | "qr_code_scan" | "user_action_in_app" | "detected_by_app" | "other";
5
5
  export declare const MilestoneTypeEnum1: {
6
6
  readonly Image: "image";
7
7
  readonly Signature: "signature";
8
8
  readonly BarcodeScan: "barcode_scan";
9
9
  readonly QrCodeScan: "qr_code_scan";
10
- readonly UserAction: "user_action";
10
+ readonly UserActionInApp: "user_action_in_app";
11
11
  readonly DetectedByApp: "detected_by_app";
12
12
  readonly Other: "other";
13
- readonly OrderInProgress: "order_in_progress";
14
13
  };
@@ -9,8 +9,7 @@ exports.MilestoneTypeEnum1 = {
9
9
  Signature: "signature",
10
10
  BarcodeScan: "barcode_scan",
11
11
  QrCodeScan: "qr_code_scan",
12
- UserAction: "user_action",
12
+ UserActionInApp: "user_action_in_app",
13
13
  DetectedByApp: "detected_by_app",
14
14
  Other: "other",
15
- OrderInProgress: "order_in_progress",
16
15
  };
@@ -3,26 +3,24 @@
3
3
  */
4
4
  import * as Chrt from "../index";
5
5
  export interface Order1 {
6
+ schema_version: number;
6
7
  _id: string;
8
+ order_short_id: string;
9
+ order_created_by_type: Chrt.OrderCreatedByTypeEnum;
10
+ order_dispatch_type: Chrt.OrderDispatchTypeEnum;
11
+ transport_type: Chrt.TransportTypeEnum;
7
12
  /** Must be a string starting with `org_` */
8
13
  created_by_org_id: string;
9
14
  /** Must be a string starting with `user_` */
10
15
  created_by_user_id: string;
11
16
  draft_started_at: string;
12
- order_cancelled?: boolean;
13
- order_created_by_type: Chrt.OrderCreatedByTypeEnum;
14
- order_dispatch_type: Chrt.OrderDispatchTypeEnum;
15
- order_level_expenses_ids?: string[];
16
- order_level_receivables_line_items?: Chrt.LineItem1[];
17
+ task_group_ids?: string[];
18
+ stripe_connect_invoice_id?: string;
17
19
  receivables_invoice_id?: string;
18
- schema_version: number;
19
20
  /** Must be a string starting with `org_` */
20
21
  shipper_org_id?: string;
21
22
  /** Must be a string starting with `user_` */
22
23
  shipper_user_id?: string;
23
- short_id: string;
24
- status?: Chrt.OrderStatusEnum1;
25
- stripe_connect_invoice_id?: string;
26
- task_group_ids?: string[];
27
- transport_type: Chrt.TransportTypeEnum;
24
+ order_level_expenses_ids?: string[];
25
+ order_level_receivables_line_items?: Chrt.LineItem1[];
28
26
  }
@@ -2,10 +2,10 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface OrgMemberDetails {
5
- first_name?: string;
6
- last_name?: string;
7
5
  role: string;
8
6
  role_name?: string;
9
7
  /** Must be a string starting with `user_` */
10
8
  user_id: string;
9
+ first_name?: string;
10
+ last_name?: string;
11
11
  }
@@ -3,6 +3,6 @@
3
3
  */
4
4
  import * as Chrt from "../index";
5
5
  export interface OrgMembersAndDrivers {
6
- driver?: Chrt.Driver1;
7
6
  org_member: Chrt.OrgMemberDetails;
7
+ driver?: Chrt.Driver1;
8
8
  }
@@ -2,10 +2,9 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface OrgPublicData2 {
5
- _id: string;
6
- company_name?: string;
7
- handle: string;
5
+ schema_version: number;
8
6
  /** Must be a string starting with `org_` */
9
7
  org_id: string;
10
- schema_version: number;
8
+ handle: string;
9
+ _id: string;
11
10
  }
@@ -3,20 +3,20 @@
3
3
  */
4
4
  import * as Chrt from "../index";
5
5
  export interface PayablesInvoice1 {
6
+ schema_version: number;
6
7
  _id: string;
7
- chrt_approved?: boolean;
8
- chrt_approved_at?: string;
9
- chrt_approved_by_automation?: string;
10
- /** Must be a string starting with `user_` */
11
- chrt_approved_by_user_id?: string;
8
+ order_id: string;
9
+ order_short_id: string;
10
+ task_group_id?: string;
11
+ line_items?: Chrt.LineItem1[];
12
+ status: Chrt.Status;
12
13
  courier_approved?: boolean;
13
14
  courier_approved_at?: string;
14
15
  /** Must be a string starting with `user_` */
15
16
  courier_approved_by_user_id?: string;
16
- line_items?: Chrt.LineItem1[];
17
- order_id: string;
18
- order_short_id: string;
19
- schema_version: number;
20
- status: Chrt.Status;
21
- task_group_id?: string;
17
+ chrt_approved?: boolean;
18
+ chrt_approved_at?: string;
19
+ /** Must be a string starting with `user_` */
20
+ chrt_approved_by_user_id?: string;
21
+ chrt_approved_by_automation?: string;
22
22
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface PhoneNumber1 {
5
+ type?: string;
6
+ phone_number: string;
7
+ notes?: string;
8
+ }
@@ -2,30 +2,30 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index";
5
- export interface CourierPayDriverRateSheet1 {
6
- _id: string;
7
- /** applies only to the additional miles */
8
- additional_mileage_rate_usd_per_mile: number;
9
- after_hours: number;
5
+ export interface RateSheet1 {
6
+ schema_version: number;
7
+ name?: string;
8
+ shipper_org_id?: string[];
9
+ shipper_contact_id?: string[];
10
+ cargo_type?: Chrt.CargoTypeEnum1[];
11
+ vehicle_type?: string[];
12
+ route_type?: Chrt.RouteTypeEnum1[];
13
+ driver_id?: string[];
14
+ comments?: string;
10
15
  base_mileage_distance_miles: number;
11
16
  base_mileage_rate_usd_per_instance: number;
12
- cargo_types?: Chrt.CargoTypeEnum1[];
13
- comments?: string;
14
- /** Must be a string starting with `org_` */
15
- courier_org_id: string;
16
- dangerous_goods_rate_usd_per_instance: number;
17
- driver_ids?: string[];
18
- extra_stop_rate_usd: number;
19
- fuel_surchage_rate_usd_per_mile: number;
20
- holiday: number;
17
+ /** applies only to the additional miles */
18
+ additional_mileage_rate_usd_per_mile: number;
21
19
  long_distance_surcharge_miles_before_surcharge: number;
22
20
  /** applies only to the additional miles */
23
21
  long_distance_surcharge_rate_usd_per_mile: number;
24
- name?: string;
25
- route_types?: Chrt.RouteTypeEnum1[];
26
- schema_version: number;
27
- vehicle_types?: Chrt.VehicleTypeEnum[];
22
+ fuel_surchage_rate_usd_per_mile: number;
28
23
  wait_time_before_charge_minutes: number;
29
24
  wait_time_rate_usd_per_minute: number;
25
+ extra_stop_rate_usd: number;
26
+ dangerous_goods_rate_usd_per_instance: number;
27
+ after_hours: number;
30
28
  weekend: number;
29
+ holiday: number;
30
+ _id: string;
31
31
  }
@@ -3,20 +3,20 @@
3
3
  */
4
4
  import * as Chrt from "../index";
5
5
  export interface ReceivablesInvoice1 {
6
+ schema_version: number;
6
7
  _id: string;
8
+ order_id: string;
9
+ order_short_id: string;
10
+ task_group_ids?: string[];
11
+ line_items?: Chrt.LineItem1[];
12
+ status: Chrt.Status;
7
13
  chrt_approved?: boolean;
8
14
  chrt_approved_at?: string;
9
- chrt_approved_by_automation?: string;
10
15
  /** Must be a string starting with `user_` */
11
16
  chrt_approved_by_user_id?: string;
12
- line_items?: Chrt.LineItem1[];
13
- order_id: string;
14
- order_short_id: string;
15
- schema_version: number;
17
+ chrt_approved_by_automation?: string;
16
18
  shipper_approved?: boolean;
17
19
  shipper_approved_at?: string;
18
20
  /** Must be a string starting with `user_` */
19
21
  shipper_approved_by_user_id?: string;
20
- status: Chrt.Status;
21
- task_group_ids?: string[];
22
22
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface Route1 {
5
+ schema_version: number;
6
+ task_group_ids?: string[];
7
+ driver_id?: string;
8
+ completed?: boolean;
9
+ completed_at?: string;
10
+ _id: string;
11
+ /** Must be a string starting with `org_` */
12
+ org_id: string;
13
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type RouteByIdEnum = "route_id" | "task_group_id";
5
+ export declare const RouteByIdEnum: {
6
+ readonly RouteId: "route_id";
7
+ readonly TaskGroupId: "task_group_id";
8
+ };
@@ -0,0 +1,10 @@
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.RouteByIdEnum = void 0;
7
+ exports.RouteByIdEnum = {
8
+ RouteId: "route_id",
9
+ TaskGroupId: "task_group_id",
10
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index";
5
+ export interface RouteDetailRes {
6
+ route: Chrt.Route1;
7
+ driver?: Chrt.Driver1;
8
+ task_groups?: Chrt.TaskGroupDetailRes[];
9
+ }
@@ -3,18 +3,18 @@
3
3
  */
4
4
  import * as Chrt from "../index";
5
5
  export interface Shipper2 {
6
- _id: string;
7
- chrt_notes?: string;
6
+ schema_version: number;
7
+ created_at: string;
8
+ last_edited: string;
8
9
  company_name?: string;
10
+ industry?: string;
11
+ street_address?: Chrt.StreetAddress1;
9
12
  contact_name?: string;
10
- created_at: string;
13
+ phone_number?: string;
11
14
  email_address?: string;
12
- industry?: string;
13
15
  job_title?: string;
14
- last_edited: string;
15
16
  linkedin_url?: string;
16
- phone_number?: string;
17
- schema_version: number;
18
- street_address?: Chrt.StreetAddress1;
19
17
  website_url?: string;
18
+ chrt_notes?: string;
19
+ _id: string;
20
20
  }
@@ -2,12 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface ShipperCourierConnection1 {
5
- _id: string;
5
+ schema_version: number;
6
+ /** Must be a string starting with `org_` */
7
+ shipper_org_id: string;
6
8
  /** Must be a string starting with `org_` */
7
9
  courier_org_id: string;
8
10
  /** Must be a string starting with `user_` */
9
11
  created_by_user_id: string;
10
- schema_version: number;
11
- /** Must be a string starting with `org_` */
12
- shipper_org_id: string;
12
+ _id: string;
13
13
  }