@chrt-inc/typescript-sdk 1.925.0 → 1.930.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 (333) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +1 -1
  4. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +3 -1
  5. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +11 -3
  6. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.ts +3 -0
  7. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +3 -0
  8. package/dist/cjs/api/resources/shipping/client/Client.d.ts +0 -3
  9. package/dist/cjs/api/resources/shipping/client/Client.js +10 -15
  10. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +6 -3
  11. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +19 -11
  12. package/dist/cjs/api/resources/shipping/resources/flights/client/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/shipping/resources/flights/client/index.js +15 -0
  14. package/dist/cjs/api/resources/shipping/resources/flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.d.ts +13 -0
  15. package/dist/cjs/api/resources/shipping/resources/flights/client/requests/index.d.ts +1 -0
  16. package/dist/cjs/api/resources/shipping/resources/index.d.ts +1 -2
  17. package/dist/cjs/api/resources/shipping/resources/index.js +2 -3
  18. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +6 -1
  19. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +30 -2
  20. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +17 -0
  21. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/tasks/client/requests/OrderTemplateNewTaskClientUpdate1.d.ts +1 -0
  22. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +103 -0
  23. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +442 -0
  24. package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts} +1 -1
  25. package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersDeleteManyDraftsReq.d.ts} +1 -1
  26. package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersTaskGroupOrderingReq.d.ts} +2 -2
  27. package/dist/cjs/api/resources/shipping/resources/orders/{resources/drafts/client/requests/OrdersDraftUpdateReq.d.ts → client/requests/OrdersUpdateDraftReq.d.ts} +2 -2
  28. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +4 -0
  29. package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.ts +13 -0
  30. package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.js +59 -0
  31. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.ts +0 -109
  32. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.js +0 -452
  33. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +0 -2
  34. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/index.d.ts +0 -4
  35. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/index.d.ts +0 -1
  36. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/index.js +0 -1
  37. package/dist/cjs/api/resources/shipping/resources/orders/resources/task/client/requests/TaskClientUpdate1.d.ts +1 -0
  38. package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.ts +13 -0
  39. package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.js +59 -0
  40. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +19 -2
  41. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +74 -5
  42. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskCompleteReq.d.ts +10 -0
  43. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.d.ts +12 -0
  44. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/index.d.ts +2 -0
  45. package/dist/cjs/api/resources/tracking/client/Client.d.ts +6 -0
  46. package/dist/cjs/api/resources/tracking/client/Client.js +16 -6
  47. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/Client.d.ts +140 -0
  48. package/dist/cjs/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/client/Client.js +65 -291
  49. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.d.ts +45 -0
  50. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.d.ts +28 -0
  51. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.d.ts +14 -0
  52. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/index.d.ts +3 -0
  53. package/dist/cjs/api/resources/tracking/resources/index.d.ts +4 -0
  54. package/dist/cjs/api/resources/tracking/resources/index.js +5 -1
  55. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/Client.d.ts +117 -0
  56. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/Client.js +393 -0
  57. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/index.d.ts +2 -0
  58. package/dist/cjs/api/resources/{shipping/resources/orders/resources/drafts/resources/taskGroup → tracking/resources/sessionGeofences/client}/index.js +1 -1
  59. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.d.ts +12 -0
  60. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.d.ts +13 -0
  61. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.d.ts +10 -0
  62. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/index.d.ts +3 -0
  63. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +11 -10
  64. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +16 -12
  65. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionClientUpdate1.d.ts → SessionClientUpdate2.d.ts} +1 -5
  66. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionClientCreate1.d.ts → SessionsCreateV1Req.d.ts} +3 -3
  67. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.ts +4 -1
  68. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +2 -2
  69. package/dist/cjs/api/types/BillingInvoiceApprovedWebhookPayload.d.ts +10 -0
  70. package/dist/cjs/api/types/DeviceExpandedRes.d.ts +2 -2
  71. package/dist/cjs/api/types/GeofencePointLocationFeature1.d.ts +14 -0
  72. package/dist/cjs/api/types/{OrderTemplateListRes.d.ts → GeofenceTemplateListRes.d.ts} +2 -2
  73. package/dist/cjs/api/types/{OrderTemplateSortByEnum.d.ts → GeofenceTemplateSortByEnum.d.ts} +2 -3
  74. package/dist/cjs/api/types/{OrderTemplateSortByEnum.js → GeofenceTemplateSortByEnum.js} +2 -3
  75. package/dist/cjs/api/types/InvoiceExpandedRes.d.ts +1 -1
  76. package/dist/cjs/api/types/InvoiceLineItemExpandedRes.d.ts +12 -0
  77. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +2 -2
  78. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +1 -1
  79. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +3 -2
  80. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +2 -1
  81. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +3 -2
  82. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +2 -1
  83. package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +1 -0
  84. package/dist/cjs/api/types/OrderExpandedForProvider.d.ts +1 -0
  85. package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +0 -1
  86. package/dist/cjs/api/types/OrderLimitedForShipper1.d.ts +0 -1
  87. package/dist/cjs/api/types/{OrderTemplate1.d.ts → OrderTemplateNewExpanded1.d.ts} +11 -9
  88. package/dist/cjs/api/types/OrderTemplateNewExpanded1.js +5 -0
  89. package/dist/cjs/api/types/OrderTemplateNewListRes.d.ts +1 -1
  90. package/dist/cjs/api/types/OrderTemplateNewTaskGroupExpanded1.d.ts +10 -0
  91. package/dist/cjs/api/types/OrderTemplateNewTaskGroupExpanded1.js +5 -0
  92. package/dist/cjs/api/types/{OrdersDraftDeleteManyRes.d.ts → OrdersDeleteManyDraftsRes.d.ts} +1 -1
  93. package/dist/cjs/api/types/OrdersDeleteManyDraftsRes.js +5 -0
  94. package/dist/cjs/api/types/{OrdersDraftUpdateRes.d.ts → OrdersUpdateDraftRes.d.ts} +1 -1
  95. package/dist/cjs/api/types/OrdersUpdateDraftRes.js +5 -0
  96. package/dist/cjs/api/types/Point.d.ts +1 -0
  97. package/dist/cjs/api/types/{Session1.d.ts → Session2.d.ts} +2 -4
  98. package/dist/cjs/api/types/Session2.js +5 -0
  99. package/dist/cjs/api/types/SessionGeofence1.d.ts +12 -0
  100. package/dist/cjs/api/types/SessionGeofence1.js +5 -0
  101. package/dist/cjs/api/types/SessionGeofenceBase1.d.ts +9 -0
  102. package/dist/cjs/api/types/SessionGeofenceBase1.js +5 -0
  103. package/dist/cjs/api/types/SessionGeofenceClientCreate1.d.ts +9 -0
  104. package/dist/cjs/api/types/SessionGeofenceClientCreate1.js +5 -0
  105. package/dist/cjs/api/types/SessionGeofenceTemplate1.d.ts +19 -0
  106. package/dist/cjs/api/types/SessionGeofenceTemplate1.js +5 -0
  107. package/dist/cjs/api/types/SessionListRes.d.ts +1 -1
  108. package/dist/cjs/api/types/Task1.d.ts +1 -0
  109. package/dist/cjs/api/types/TaskListToApplyToOrderExpanded.d.ts +8 -0
  110. package/dist/cjs/api/types/TaskListToApplyToOrderExpanded.js +5 -0
  111. package/dist/cjs/api/types/TrackingSessionGeofenceEnteredWebhookPayload.d.ts +14 -0
  112. package/dist/cjs/api/types/TrackingSessionGeofenceEnteredWebhookPayload.js +5 -0
  113. package/dist/cjs/api/types/index.d.ts +16 -11
  114. package/dist/cjs/api/types/index.js +16 -11
  115. package/dist/cjs/version.d.ts +1 -1
  116. package/dist/cjs/version.js +1 -1
  117. package/dist/esm/Client.mjs +2 -2
  118. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +1 -1
  119. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +1 -1
  120. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +3 -1
  121. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +11 -3
  122. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.mts +3 -0
  123. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +3 -0
  124. package/dist/esm/api/resources/shipping/client/Client.d.mts +0 -3
  125. package/dist/esm/api/resources/shipping/client/Client.mjs +0 -5
  126. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +6 -3
  127. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +19 -11
  128. package/dist/esm/api/resources/shipping/resources/flights/client/index.d.mts +1 -0
  129. package/dist/esm/api/resources/shipping/resources/flights/client/index.mjs +1 -1
  130. package/dist/esm/api/resources/shipping/resources/flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.d.mts +13 -0
  131. package/dist/esm/api/resources/shipping/resources/flights/client/requests/index.d.mts +1 -0
  132. package/dist/esm/api/resources/shipping/resources/index.d.mts +1 -2
  133. package/dist/esm/api/resources/shipping/resources/index.mjs +1 -2
  134. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +6 -1
  135. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +30 -2
  136. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +17 -0
  137. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/tasks/client/requests/OrderTemplateNewTaskClientUpdate1.d.mts +1 -0
  138. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +103 -0
  139. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +442 -0
  140. package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts} +1 -1
  141. package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersDeleteManyDraftsReq.d.mts} +1 -1
  142. package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersTaskGroupOrderingReq.d.mts} +2 -2
  143. package/dist/esm/api/resources/shipping/resources/orders/{resources/drafts/client/requests/OrdersDraftUpdateReq.d.mts → client/requests/OrdersUpdateDraftReq.d.mts} +2 -2
  144. package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +4 -0
  145. package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.mts +13 -0
  146. package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.mjs +59 -0
  147. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.mts +0 -109
  148. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.mjs +0 -452
  149. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +0 -2
  150. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/index.d.mts +0 -4
  151. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/index.d.mts +0 -1
  152. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/index.mjs +0 -1
  153. package/dist/esm/api/resources/shipping/resources/orders/resources/task/client/requests/TaskClientUpdate1.d.mts +1 -0
  154. package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.mts +13 -0
  155. package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.mjs +59 -0
  156. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +19 -2
  157. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +74 -5
  158. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskCompleteReq.d.mts +10 -0
  159. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.d.mts +12 -0
  160. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/index.d.mts +2 -0
  161. package/dist/esm/api/resources/tracking/client/Client.d.mts +6 -0
  162. package/dist/esm/api/resources/tracking/client/Client.mjs +10 -0
  163. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/Client.d.mts +140 -0
  164. package/dist/esm/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/client/Client.mjs +63 -289
  165. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.d.mts +45 -0
  166. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.d.mts +28 -0
  167. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.d.mts +14 -0
  168. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/index.d.mts +3 -0
  169. package/dist/esm/api/resources/tracking/resources/index.d.mts +4 -0
  170. package/dist/esm/api/resources/tracking/resources/index.mjs +4 -0
  171. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/Client.d.mts +117 -0
  172. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/Client.mjs +356 -0
  173. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/index.d.mts +2 -0
  174. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/index.mjs +1 -0
  175. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.d.mts +12 -0
  176. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.d.mts +13 -0
  177. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.d.mts +10 -0
  178. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/index.d.mts +3 -0
  179. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +11 -10
  180. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +16 -12
  181. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionClientUpdate1.d.mts → SessionClientUpdate2.d.mts} +1 -5
  182. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionClientCreate1.d.mts → SessionsCreateV1Req.d.mts} +3 -3
  183. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.mts +4 -1
  184. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +2 -2
  185. package/dist/esm/api/types/BillingInvoiceApprovedWebhookPayload.d.mts +10 -0
  186. package/dist/esm/api/types/DeviceExpandedRes.d.mts +2 -2
  187. package/dist/esm/api/types/GeofencePointLocationFeature1.d.mts +14 -0
  188. package/dist/esm/api/types/{OrderTemplateListRes.d.mts → GeofenceTemplateListRes.d.mts} +2 -2
  189. package/dist/esm/api/types/{OrderTemplateSortByEnum.d.mts → GeofenceTemplateSortByEnum.d.mts} +2 -3
  190. package/dist/esm/api/types/{OrderTemplateSortByEnum.mjs → GeofenceTemplateSortByEnum.mjs} +1 -2
  191. package/dist/esm/api/types/InvoiceExpandedRes.d.mts +1 -1
  192. package/dist/esm/api/types/InvoiceLineItemExpandedRes.d.mts +12 -0
  193. package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +2 -2
  194. package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +1 -1
  195. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +3 -2
  196. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +2 -1
  197. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +3 -2
  198. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +2 -1
  199. package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +1 -0
  200. package/dist/esm/api/types/OrderExpandedForProvider.d.mts +1 -0
  201. package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +0 -1
  202. package/dist/esm/api/types/OrderLimitedForShipper1.d.mts +0 -1
  203. package/dist/esm/api/types/{OrderTemplate1.d.mts → OrderTemplateNewExpanded1.d.mts} +11 -9
  204. package/dist/esm/api/types/OrderTemplateNewExpanded1.mjs +4 -0
  205. package/dist/esm/api/types/OrderTemplateNewListRes.d.mts +1 -1
  206. package/dist/esm/api/types/OrderTemplateNewTaskGroupExpanded1.d.mts +10 -0
  207. package/dist/esm/api/types/OrderTemplateNewTaskGroupExpanded1.mjs +4 -0
  208. package/dist/esm/api/types/{OrdersDraftDeleteManyRes.d.mts → OrdersDeleteManyDraftsRes.d.mts} +1 -1
  209. package/dist/esm/api/types/OrdersDeleteManyDraftsRes.mjs +4 -0
  210. package/dist/esm/api/types/{OrdersDraftUpdateRes.d.mts → OrdersUpdateDraftRes.d.mts} +1 -1
  211. package/dist/esm/api/types/OrdersUpdateDraftRes.mjs +4 -0
  212. package/dist/esm/api/types/Point.d.mts +1 -0
  213. package/dist/esm/api/types/{Session1.d.mts → Session2.d.mts} +2 -4
  214. package/dist/esm/api/types/Session2.mjs +4 -0
  215. package/dist/esm/api/types/SessionGeofence1.d.mts +12 -0
  216. package/dist/esm/api/types/SessionGeofence1.mjs +4 -0
  217. package/dist/esm/api/types/SessionGeofenceBase1.d.mts +9 -0
  218. package/dist/esm/api/types/SessionGeofenceBase1.mjs +4 -0
  219. package/dist/esm/api/types/SessionGeofenceClientCreate1.d.mts +9 -0
  220. package/dist/esm/api/types/SessionGeofenceClientCreate1.mjs +4 -0
  221. package/dist/esm/api/types/SessionGeofenceTemplate1.d.mts +19 -0
  222. package/dist/esm/api/types/SessionGeofenceTemplate1.mjs +4 -0
  223. package/dist/esm/api/types/SessionListRes.d.mts +1 -1
  224. package/dist/esm/api/types/Task1.d.mts +1 -0
  225. package/dist/esm/api/types/TaskListToApplyToOrderExpanded.d.mts +8 -0
  226. package/dist/esm/api/types/TaskListToApplyToOrderExpanded.mjs +4 -0
  227. package/dist/esm/api/types/TrackingSessionGeofenceEnteredWebhookPayload.d.mts +14 -0
  228. package/dist/esm/api/types/TrackingSessionGeofenceEnteredWebhookPayload.mjs +4 -0
  229. package/dist/esm/api/types/index.d.mts +16 -11
  230. package/dist/esm/api/types/index.mjs +16 -11
  231. package/dist/esm/version.d.mts +1 -1
  232. package/dist/esm/version.mjs +1 -1
  233. package/package.json +1 -1
  234. package/reference.md +1350 -1077
  235. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +0 -182
  236. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +0 -33
  237. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +0 -37
  238. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.d.ts +0 -14
  239. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +0 -80
  240. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/index.d.ts +0 -4
  241. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.d.ts +0 -46
  242. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.js +0 -127
  243. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.d.ts +0 -1
  244. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/index.d.ts +0 -2
  245. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/index.js +0 -38
  246. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.ts +0 -46
  247. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.js +0 -127
  248. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.d.ts +0 -1
  249. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.d.ts +0 -1
  250. package/dist/cjs/api/types/Order1.d.ts +0 -43
  251. package/dist/cjs/api/types/OrderTemplateExpanded1.d.ts +0 -16
  252. package/dist/cjs/api/types/OrderTemplateOrgInfo1.d.ts +0 -10
  253. package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.d.ts +0 -13
  254. package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.js +0 -15
  255. package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.ts +0 -10
  256. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +0 -182
  257. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +0 -33
  258. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +0 -37
  259. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.d.mts +0 -14
  260. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +0 -80
  261. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/index.d.mts +0 -4
  262. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.d.mts +0 -46
  263. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.mjs +0 -90
  264. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.d.mts +0 -1
  265. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/index.d.mts +0 -2
  266. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/index.mjs +0 -2
  267. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.mts +0 -46
  268. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.mjs +0 -90
  269. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.d.mts +0 -1
  270. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.d.mts +0 -1
  271. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.mjs +0 -1
  272. package/dist/esm/api/types/Order1.d.mts +0 -43
  273. package/dist/esm/api/types/OrderTemplateExpanded1.d.mts +0 -16
  274. package/dist/esm/api/types/OrderTemplateOrgInfo1.d.mts +0 -10
  275. package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.d.mts +0 -13
  276. package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.mjs +0 -12
  277. package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.mts +0 -10
  278. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientCreate1.js → flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.js} +0 -0
  279. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates → flights}/client/requests/index.js +0 -0
  280. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientUpdate1.js → orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.js} +0 -0
  281. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.js → orders/client/requests/OrdersDeleteManyDraftsReq.js} +0 -0
  282. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplatesListV1Request.js → orders/client/requests/OrdersTaskGroupOrderingReq.js} +0 -0
  283. /package/dist/cjs/api/resources/shipping/resources/orders/{resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.js → client/requests/OrdersUpdateDraftReq.js} +0 -0
  284. /package/dist/cjs/api/resources/shipping/resources/{orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.js → tasks/client/requests/TaskCompleteReq.js} +0 -0
  285. /package/dist/cjs/api/resources/shipping/resources/{orders/resources/drafts/client/requests/OrdersDraftUpdateReq.js → tasks/client/requests/TaskCompletionTimestampUpdateReq.js} +0 -0
  286. /package/dist/cjs/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/client/index.d.ts +0 -0
  287. /package/dist/cjs/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/client/index.js +0 -0
  288. /package/dist/cjs/api/resources/{shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.js → tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.js} +0 -0
  289. /package/dist/cjs/api/resources/tracking/resources/{sessions/client/requests/SessionClientCreate1.js → geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.js} +0 -0
  290. /package/dist/cjs/api/resources/tracking/resources/{sessions/client/requests/SessionClientUpdate1.js → geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.js} +0 -0
  291. /package/dist/cjs/api/resources/{shipping/resources/orders/resources/drafts/resources/cargo/client → tracking/resources/geofenceTemplates/client/requests}/index.js +0 -0
  292. /package/dist/cjs/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/index.d.ts +0 -0
  293. /package/dist/cjs/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/index.js +0 -0
  294. /package/dist/cjs/api/{types/Order1.js → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.js} +0 -0
  295. /package/dist/cjs/api/{types/OrderTemplate1.js → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.js} +0 -0
  296. /package/dist/cjs/api/{types/OrderTemplateExpanded1.js → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.js} +0 -0
  297. /package/dist/cjs/api/resources/{shipping/resources/orders/resources/drafts/resources/taskGroup/client → tracking/resources/sessionGeofences/client/requests}/index.js +0 -0
  298. /package/dist/cjs/api/resources/{shipping/resources/orders/resources/drafts/resources/cargo → tracking/resources/sessionGeofences}/index.d.ts +0 -0
  299. /package/dist/cjs/api/resources/{shipping/resources/orders/resources/drafts/resources/cargo → tracking/resources/sessionGeofences}/index.js +0 -0
  300. /package/dist/cjs/api/{types/OrderTemplateListRes.js → resources/tracking/resources/sessions/client/requests/SessionClientUpdate2.js} +0 -0
  301. /package/dist/cjs/api/{types/OrderTemplateOrgInfo1.js → resources/tracking/resources/sessions/client/requests/SessionsCreateV1Req.js} +0 -0
  302. /package/dist/cjs/api/types/{OrdersDraftDeleteManyRes.js → BillingInvoiceApprovedWebhookPayload.js} +0 -0
  303. /package/dist/cjs/api/types/{OrdersDraftUpdateRes.js → GeofencePointLocationFeature1.js} +0 -0
  304. /package/dist/cjs/api/types/{Session1.js → GeofenceTemplateListRes.js} +0 -0
  305. /package/dist/cjs/api/types/{TrackingSessionDestinationGeofenceEnteredWebhookPayload.js → InvoiceLineItemExpandedRes.js} +0 -0
  306. /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientCreate1.mjs → flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.mjs} +0 -0
  307. /package/dist/esm/api/resources/shipping/resources/{orderTemplates → flights}/client/requests/index.mjs +0 -0
  308. /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientUpdate1.mjs → orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.mjs} +0 -0
  309. /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.mjs → orders/client/requests/OrdersDeleteManyDraftsReq.mjs} +0 -0
  310. /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplatesListV1Request.mjs → orders/client/requests/OrdersTaskGroupOrderingReq.mjs} +0 -0
  311. /package/dist/esm/api/resources/shipping/resources/orders/{resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.mjs → client/requests/OrdersUpdateDraftReq.mjs} +0 -0
  312. /package/dist/esm/api/resources/shipping/resources/{orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.mjs → tasks/client/requests/TaskCompleteReq.mjs} +0 -0
  313. /package/dist/esm/api/resources/shipping/resources/{orders/resources/drafts/client/requests/OrdersDraftUpdateReq.mjs → tasks/client/requests/TaskCompletionTimestampUpdateReq.mjs} +0 -0
  314. /package/dist/esm/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/client/index.d.mts +0 -0
  315. /package/dist/esm/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/client/index.mjs +0 -0
  316. /package/dist/esm/api/resources/{shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.mjs → tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.mjs} +0 -0
  317. /package/dist/esm/api/resources/tracking/resources/{sessions/client/requests/SessionClientCreate1.mjs → geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.mjs} +0 -0
  318. /package/dist/esm/api/resources/tracking/resources/{sessions/client/requests/SessionClientUpdate1.mjs → geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.mjs} +0 -0
  319. /package/dist/esm/api/resources/{shipping/resources/orders/resources/drafts/resources/cargo/client → tracking/resources/geofenceTemplates/client/requests}/index.mjs +0 -0
  320. /package/dist/esm/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/index.d.mts +0 -0
  321. /package/dist/esm/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/index.mjs +0 -0
  322. /package/dist/esm/api/{types/Order1.mjs → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.mjs} +0 -0
  323. /package/dist/esm/api/{types/OrderTemplate1.mjs → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.mjs} +0 -0
  324. /package/dist/esm/api/{types/OrderTemplateExpanded1.mjs → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.mjs} +0 -0
  325. /package/dist/esm/api/resources/{shipping/resources/orders/resources/drafts/resources/taskGroup/client → tracking/resources/sessionGeofences/client/requests}/index.mjs +0 -0
  326. /package/dist/esm/api/resources/{shipping/resources/orders/resources/drafts/resources/cargo → tracking/resources/sessionGeofences}/index.d.mts +0 -0
  327. /package/dist/esm/api/resources/{shipping/resources/orders/resources/drafts/resources/cargo → tracking/resources/sessionGeofences}/index.mjs +0 -0
  328. /package/dist/esm/api/{types/OrderTemplateListRes.mjs → resources/tracking/resources/sessions/client/requests/SessionClientUpdate2.mjs} +0 -0
  329. /package/dist/esm/api/{types/OrderTemplateOrgInfo1.mjs → resources/tracking/resources/sessions/client/requests/SessionsCreateV1Req.mjs} +0 -0
  330. /package/dist/esm/api/types/{OrdersDraftDeleteManyRes.mjs → BillingInvoiceApprovedWebhookPayload.mjs} +0 -0
  331. /package/dist/esm/api/types/{OrdersDraftUpdateRes.mjs → GeofencePointLocationFeature1.mjs} +0 -0
  332. /package/dist/esm/api/types/{Session1.mjs → GeofenceTemplateListRes.mjs} +0 -0
  333. /package/dist/esm/api/types/{TrackingSessionDestinationGeofenceEnteredWebhookPayload.mjs → InvoiceLineItemExpandedRes.mjs} +0 -0
@@ -1,182 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../../../environments.js";
5
- import * as core from "../../../../../../core/index.js";
6
- import * as Chrt from "../../../../../index.js";
7
- export declare namespace OrderTemplates {
8
- interface Options {
9
- environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
- /** Specify a custom URL to connect the client to. */
11
- baseUrl?: core.Supplier<string>;
12
- token?: core.Supplier<core.BearerToken | undefined>;
13
- /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
- fetcher?: core.FetchFunction;
16
- }
17
- interface RequestOptions {
18
- /** The maximum time to wait for a response in seconds. */
19
- timeoutInSeconds?: number;
20
- /** The number of times to retry the request. Defaults to 2. */
21
- maxRetries?: number;
22
- /** A hook to abort the request. */
23
- abortSignal?: AbortSignal;
24
- /** Additional query string parameters to include in the request. */
25
- queryParams?: Record<string, unknown>;
26
- /** Additional headers to include in the request. */
27
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
- }
29
- }
30
- export declare class OrderTemplates {
31
- protected readonly _options: OrderTemplates.Options;
32
- constructor(_options?: OrderTemplates.Options);
33
- /**
34
- * Archives an order template by setting archived_at_timestamp. | authz: min_org_role=operator | () -> (bool)
35
- *
36
- * @param {string} orderTemplateId
37
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
38
- *
39
- * @throws {@link Chrt.UnprocessableEntityError}
40
- *
41
- * @example
42
- * await client.shipping.orderTemplates.archiveV1("order_template_id")
43
- */
44
- archiveV1(orderTemplateId: string, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<boolean>;
45
- private __archiveV1;
46
- /**
47
- * Retrieves an order template with resolved references, recent orders, and total order count. Unresolvable list references are omitted so the caller can detect dangling ids. | authz: min_org_role=operator | () -> (OrderTemplateExpanded1)
48
- *
49
- * @param {string} orderTemplateId
50
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
51
- *
52
- * @throws {@link Chrt.UnprocessableEntityError}
53
- *
54
- * @example
55
- * await client.shipping.orderTemplates.getExpandedByIdV1("order_template_id")
56
- */
57
- getExpandedByIdV1(orderTemplateId: string, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplateExpanded1>;
58
- private __getExpandedByIdV1;
59
- /**
60
- * Lists order templates for the caller's organization with filtering, sorting, pagination, and optional full-text search (name, description, text, off_chrt_reference_id_str). | authz: min_org_role=operator | () -> (OrderTemplateListRes)
61
- *
62
- * @param {Chrt.shipping.OrderTemplatesListV1Request} request
63
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
64
- *
65
- * @throws {@link Chrt.UnprocessableEntityError}
66
- *
67
- * @example
68
- * await client.shipping.orderTemplates.listV1({
69
- * sort_by: "created_at_timestamp",
70
- * sort_order: "asc",
71
- * page: 1,
72
- * page_size: 1,
73
- * search: "search",
74
- * filter_archived: true,
75
- * filter_owned_by_user_id: "filter_owned_by_user_id",
76
- * filter_off_chrt_reference_id_str: "filter_off_chrt_reference_id_str",
77
- * filter_shipper_org_id: "filter_shipper_org_id",
78
- * filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
79
- * filter_coordinator_org_id: "filter_coordinator_org_id",
80
- * filter_department_id: "filter_department_id",
81
- * filter_coordinator_label: "filter_coordinator_label",
82
- * filter_driver_id: "filter_driver_id",
83
- * filter_contact_id: "filter_contact_id",
84
- * filter_task_lists_to_apply_at_order_creation_task_list_id: "filter_task_lists_to_apply_at_order_creation_task_list_id",
85
- * filter_task_lists_to_apply_at_order_staging_task_list_id: "filter_task_lists_to_apply_at_order_staging_task_list_id",
86
- * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
87
- * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
88
- * filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
89
- * filter_last_edited_at_timestamp_lte: "2024-01-15T09:30:00Z",
90
- * filter_last_used_at_timestamp_gte: "2024-01-15T09:30:00Z",
91
- * filter_last_used_at_timestamp_lte: "2024-01-15T09:30:00Z"
92
- * })
93
- */
94
- listV1(request?: Chrt.shipping.OrderTemplatesListV1Request, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplateListRes>;
95
- private __listV1;
96
- /**
97
- * Removes a (possibly dangling) reference id from a template column. | authz: min_org_role=operator | (OrderTemplateRemoveReferenceReq) -> (bool)
98
- *
99
- * @param {string} orderTemplateId
100
- * @param {Chrt.shipping.OrderTemplateRemoveReferenceReq} request
101
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
102
- *
103
- * @throws {@link Chrt.UnprocessableEntityError}
104
- *
105
- * @example
106
- * await client.shipping.orderTemplates.referencesRemoveV1("order_template_id", {
107
- * column: "shipper_org_id"
108
- * })
109
- */
110
- referencesRemoveV1(orderTemplateId: string, request: Chrt.shipping.OrderTemplateRemoveReferenceReq, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<boolean>;
111
- private __referencesRemoveV1;
112
- /**
113
- * Restores an archived order template by clearing archived_at_timestamp. | authz: min_org_role=operator | () -> (bool)
114
- *
115
- * @param {string} orderTemplateId
116
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
117
- *
118
- * @throws {@link Chrt.UnprocessableEntityError}
119
- *
120
- * @example
121
- * await client.shipping.orderTemplates.unarchiveV1("order_template_id")
122
- */
123
- unarchiveV1(orderTemplateId: string, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<boolean>;
124
- private __unarchiveV1;
125
- /**
126
- * Updates an order template. | authz: min_org_role=operator | (OrderTemplateClientUpdate1) -> (bool)
127
- *
128
- * @param {string} orderTemplateId
129
- * @param {Chrt.shipping.OrderTemplateClientUpdate1} request
130
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
131
- *
132
- * @throws {@link Chrt.UnprocessableEntityError}
133
- *
134
- * @example
135
- * await client.shipping.orderTemplates.updateV1("order_template_id")
136
- */
137
- updateV1(orderTemplateId: string, request?: Chrt.shipping.OrderTemplateClientUpdate1, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<boolean>;
138
- private __updateV1;
139
- /**
140
- * Creates a new order template. | authz: min_org_role=operator | (OrderTemplateClientCreate1) -> (PydanticObjectId)
141
- *
142
- * @param {Chrt.shipping.OrderTemplateClientCreate1} request
143
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
144
- *
145
- * @throws {@link Chrt.UnprocessableEntityError}
146
- *
147
- * @example
148
- * await client.shipping.orderTemplates.createV1({
149
- * name: "name",
150
- * schema_version: 1
151
- * })
152
- */
153
- createV1(request: Chrt.shipping.OrderTemplateClientCreate1, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<string>;
154
- private __createV1;
155
- /**
156
- * Retrieves an order template by ID. | authz: min_org_role=operator | () -> (OrderTemplate1)
157
- *
158
- * @param {string} orderTemplateId
159
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
160
- *
161
- * @throws {@link Chrt.UnprocessableEntityError}
162
- *
163
- * @example
164
- * await client.shipping.orderTemplates.getByIdV1("order_template_id")
165
- */
166
- getByIdV1(orderTemplateId: string, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplate1>;
167
- private __getByIdV1;
168
- /**
169
- * Deletes an order template, but only when no orders were built from it (otherwise archive instead). | authz: min_org_role=operator | () -> (bool)
170
- *
171
- * @param {string} orderTemplateId
172
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
173
- *
174
- * @throws {@link Chrt.UnprocessableEntityError}
175
- *
176
- * @example
177
- * await client.shipping.orderTemplates.deleteV1("order_template_id")
178
- */
179
- deleteV1(orderTemplateId: string, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<boolean>;
180
- private __deleteV1;
181
- protected _getAuthorizationHeader(): Promise<string | undefined>;
182
- }
@@ -1,33 +0,0 @@
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
- * name: "name",
9
- * schema_version: 1
10
- * }
11
- */
12
- export interface OrderTemplateClientCreate1 {
13
- contact_ids?: string[];
14
- coordinator_label?: string | null;
15
- /** Must be a string starting with `org_` */
16
- coordinator_org_id?: string | null;
17
- coordinator_shipper_account_ids?: string[];
18
- department_id?: string | null;
19
- description?: string | null;
20
- driver_ids?: string[];
21
- executor_org_ids?: string[];
22
- name: string;
23
- off_chrt_executor_org_data_ids?: string[];
24
- off_chrt_reference_id_str?: string | null;
25
- off_chrt_shipper_org_data_id?: string | null;
26
- schema_version: number;
27
- service_line?: Chrt.ServiceLineEnum;
28
- /** Must be a string starting with `org_` */
29
- shipper_org_id?: string | null;
30
- task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToOrder1[];
31
- task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToOrder1[];
32
- text?: string | null;
33
- }
@@ -1,37 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Chrt from "../../../../../../index.js";
5
- /**
6
- * @example
7
- * {}
8
- */
9
- export interface OrderTemplateClientUpdate1 {
10
- contact_ids?: string[];
11
- coordinator_label?: string | null;
12
- coordinator_label__set_to_None?: boolean;
13
- /** Must be a string starting with `org_` */
14
- coordinator_org_id?: string | null;
15
- coordinator_org_id__set_to_None?: boolean;
16
- coordinator_shipper_account_ids?: string[];
17
- department_id?: string | null;
18
- department_id__set_to_None?: boolean;
19
- description?: string | null;
20
- description__set_to_None?: boolean;
21
- driver_ids?: string[];
22
- executor_org_ids?: string[];
23
- name?: string | null;
24
- off_chrt_executor_org_data_ids?: string[];
25
- off_chrt_reference_id_str?: string | null;
26
- off_chrt_reference_id_str__set_to_None?: boolean;
27
- off_chrt_shipper_org_data_id?: string | null;
28
- off_chrt_shipper_org_data_id__set_to_None?: boolean;
29
- service_line?: Chrt.ServiceLineEnum | null;
30
- /** Must be a string starting with `org_` */
31
- shipper_org_id?: string | null;
32
- shipper_org_id__set_to_None?: boolean;
33
- task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToOrder1[];
34
- task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToOrder1[];
35
- text?: string | null;
36
- text__set_to_None?: boolean;
37
- }
@@ -1,14 +0,0 @@
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
- * column: "shipper_org_id"
9
- * }
10
- */
11
- export interface OrderTemplateRemoveReferenceReq {
12
- column: Chrt.OrderTemplateReferenceColumnEnum1;
13
- object_id?: string | null;
14
- }
@@ -1,80 +0,0 @@
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
- * sort_by: "created_at_timestamp",
9
- * sort_order: "asc",
10
- * page: 1,
11
- * page_size: 1,
12
- * search: "search",
13
- * filter_archived: true,
14
- * filter_owned_by_user_id: "filter_owned_by_user_id",
15
- * filter_off_chrt_reference_id_str: "filter_off_chrt_reference_id_str",
16
- * filter_shipper_org_id: "filter_shipper_org_id",
17
- * filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
18
- * filter_coordinator_org_id: "filter_coordinator_org_id",
19
- * filter_department_id: "filter_department_id",
20
- * filter_coordinator_label: "filter_coordinator_label",
21
- * filter_driver_id: "filter_driver_id",
22
- * filter_contact_id: "filter_contact_id",
23
- * filter_task_lists_to_apply_at_order_creation_task_list_id: "filter_task_lists_to_apply_at_order_creation_task_list_id",
24
- * filter_task_lists_to_apply_at_order_staging_task_list_id: "filter_task_lists_to_apply_at_order_staging_task_list_id",
25
- * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
26
- * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
27
- * filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
28
- * filter_last_edited_at_timestamp_lte: "2024-01-15T09:30:00Z",
29
- * filter_last_used_at_timestamp_gte: "2024-01-15T09:30:00Z",
30
- * filter_last_used_at_timestamp_lte: "2024-01-15T09:30:00Z"
31
- * }
32
- */
33
- export interface OrderTemplatesListV1Request {
34
- /** Field to sort by. */
35
- sort_by?: Chrt.OrderTemplateSortByEnum | null;
36
- /** Sort order (asc or desc). */
37
- sort_order?: Chrt.SortOrderEnum | null;
38
- page?: number | null;
39
- page_size?: number | null;
40
- /** Full-text search query */
41
- search?: string | null;
42
- /** Filter by archived (True) vs active (False) templates. */
43
- filter_archived?: boolean | null;
44
- /** Filter by the user who owns the order template. */
45
- filter_owned_by_user_id?: string | null;
46
- /** Filter by service line. */
47
- filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
48
- /** Filter by the off-CHRT reference ID string. */
49
- filter_off_chrt_reference_id_str?: string | null;
50
- /** Filter by on-CHRT shipper org ID. */
51
- filter_shipper_org_id?: string | null;
52
- /** Filter by off-CHRT shipper organization data ID. */
53
- filter_off_chrt_shipper_org_data_id?: string | null;
54
- /** Filter by coordinator org ID. */
55
- filter_coordinator_org_id?: string | null;
56
- /** Filter by coordinator department ID. */
57
- filter_department_id?: string | null;
58
- /** Filter by coordinator label. */
59
- filter_coordinator_label?: string | null;
60
- /** Filter by driver ID included in the template. */
61
- filter_driver_id?: string | null;
62
- /** Filter by contact ID included in the template. */
63
- filter_contact_id?: string | null;
64
- /** Filter by task list ID included in order-creation applications. */
65
- filter_task_lists_to_apply_at_order_creation_task_list_id?: string | null;
66
- /** Filter by task list ID included in staging applications. */
67
- filter_task_lists_to_apply_at_order_staging_task_list_id?: string | null;
68
- /** Filter created_at_timestamp >= value (inclusive). */
69
- filter_created_at_timestamp_gte?: string | null;
70
- /** Filter created_at_timestamp <= value (inclusive). */
71
- filter_created_at_timestamp_lte?: string | null;
72
- /** Filter last_edited_at_timestamp >= value (inclusive). */
73
- filter_last_edited_at_timestamp_gte?: string | null;
74
- /** Filter last_edited_at_timestamp <= value (inclusive). */
75
- filter_last_edited_at_timestamp_lte?: string | null;
76
- /** Filter last_used_at_timestamp >= value (inclusive). */
77
- filter_last_used_at_timestamp_gte?: string | null;
78
- /** Filter last_used_at_timestamp <= value (inclusive). */
79
- filter_last_used_at_timestamp_lte?: string | null;
80
- }
@@ -1,4 +0,0 @@
1
- export { type OrderTemplatesListV1Request } from "./OrderTemplatesListV1Request.js";
2
- export { type OrderTemplateRemoveReferenceReq } from "./OrderTemplateRemoveReferenceReq.js";
3
- export { type OrderTemplateClientUpdate1 } from "./OrderTemplateClientUpdate1.js";
4
- export { type OrderTemplateClientCreate1 } from "./OrderTemplateClientCreate1.js";
@@ -1,46 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../../../../../../../environments.js";
5
- import * as core from "../../../../../../../../../../core/index.js";
6
- export declare namespace Cargo {
7
- interface Options {
8
- environment?: core.Supplier<environments.ChrtEnvironment | string>;
9
- /** Specify a custom URL to connect the client to. */
10
- baseUrl?: core.Supplier<string>;
11
- token?: core.Supplier<core.BearerToken | undefined>;
12
- /** Additional headers to include in requests. */
13
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
14
- fetcher?: core.FetchFunction;
15
- }
16
- interface RequestOptions {
17
- /** The maximum time to wait for a response in seconds. */
18
- timeoutInSeconds?: number;
19
- /** The number of times to retry the request. Defaults to 2. */
20
- maxRetries?: number;
21
- /** A hook to abort the request. */
22
- abortSignal?: AbortSignal;
23
- /** Additional query string parameters to include in the request. */
24
- queryParams?: Record<string, unknown>;
25
- /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
- }
28
- }
29
- export declare class Cargo {
30
- protected readonly _options: Cargo.Options;
31
- constructor(_options?: Cargo.Options);
32
- /**
33
- * Deletes a cargo item from a draft order and removes references from associated tasks. | () -> (bool)
34
- *
35
- * @param {string} cargoId
36
- * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
37
- *
38
- * @throws {@link Chrt.UnprocessableEntityError}
39
- *
40
- * @example
41
- * await client.shipping.orders.drafts.cargo.deleteV1("cargo_id")
42
- */
43
- deleteV1(cargoId: string, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<boolean>;
44
- private __deleteV1;
45
- protected _getAuthorizationHeader(): Promise<string | undefined>;
46
- }
@@ -1,127 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
- return new (P || (P = Promise))(function (resolve, reject) {
41
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
- step((generator = generator.apply(thisArg, _arguments || [])).next());
45
- });
46
- };
47
- Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.Cargo = void 0;
49
- const environments = __importStar(require("../../../../../../../../../../environments.js"));
50
- const core = __importStar(require("../../../../../../../../../../core/index.js"));
51
- const Chrt = __importStar(require("../../../../../../../../../index.js"));
52
- const headers_js_1 = require("../../../../../../../../../../core/headers.js");
53
- const errors = __importStar(require("../../../../../../../../../../errors/index.js"));
54
- class Cargo {
55
- constructor(_options = {}) {
56
- this._options = _options;
57
- }
58
- /**
59
- * Deletes a cargo item from a draft order and removes references from associated tasks. | () -> (bool)
60
- *
61
- * @param {string} cargoId
62
- * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
63
- *
64
- * @throws {@link Chrt.UnprocessableEntityError}
65
- *
66
- * @example
67
- * await client.shipping.orders.drafts.cargo.deleteV1("cargo_id")
68
- */
69
- deleteV1(cargoId, requestOptions) {
70
- return core.HttpResponsePromise.fromPromise(this.__deleteV1(cargoId, requestOptions));
71
- }
72
- __deleteV1(cargoId, requestOptions) {
73
- return __awaiter(this, void 0, void 0, function* () {
74
- var _a, _b, _c, _d;
75
- 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);
76
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
77
- 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, `shipping/orders/drafts/cargo/delete/v1/${encodeURIComponent(cargoId)}`),
78
- method: "DELETE",
79
- headers: _headers,
80
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
81
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
82
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
83
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
- });
85
- if (_response.ok) {
86
- return { data: _response.body, rawResponse: _response.rawResponse };
87
- }
88
- if (_response.error.reason === "status-code") {
89
- switch (_response.error.statusCode) {
90
- case 422:
91
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
92
- default:
93
- throw new errors.ChrtError({
94
- statusCode: _response.error.statusCode,
95
- body: _response.error.body,
96
- rawResponse: _response.rawResponse,
97
- });
98
- }
99
- }
100
- switch (_response.error.reason) {
101
- case "non-json":
102
- throw new errors.ChrtError({
103
- statusCode: _response.error.statusCode,
104
- body: _response.error.rawBody,
105
- rawResponse: _response.rawResponse,
106
- });
107
- case "timeout":
108
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping/orders/drafts/cargo/delete/v1/{cargo_id}.");
109
- case "unknown":
110
- throw new errors.ChrtError({
111
- message: _response.error.errorMessage,
112
- rawResponse: _response.rawResponse,
113
- });
114
- }
115
- });
116
- }
117
- _getAuthorizationHeader() {
118
- return __awaiter(this, void 0, void 0, function* () {
119
- const bearer = yield core.Supplier.get(this._options.token);
120
- if (bearer != null) {
121
- return `Bearer ${bearer}`;
122
- }
123
- return undefined;
124
- });
125
- }
126
- }
127
- exports.Cargo = Cargo;
@@ -1,2 +0,0 @@
1
- export * as cargo from "./cargo/index.js";
2
- export * as taskGroup from "./taskGroup/index.js";
@@ -1,38 +0,0 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.taskGroup = exports.cargo = void 0;
37
- exports.cargo = __importStar(require("./cargo/index.js"));
38
- exports.taskGroup = __importStar(require("./taskGroup/index.js"));
@@ -1,46 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../../../../../../../environments.js";
5
- import * as core from "../../../../../../../../../../core/index.js";
6
- export declare namespace TaskGroup {
7
- interface Options {
8
- environment?: core.Supplier<environments.ChrtEnvironment | string>;
9
- /** Specify a custom URL to connect the client to. */
10
- baseUrl?: core.Supplier<string>;
11
- token?: core.Supplier<core.BearerToken | undefined>;
12
- /** Additional headers to include in requests. */
13
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
14
- fetcher?: core.FetchFunction;
15
- }
16
- interface RequestOptions {
17
- /** The maximum time to wait for a response in seconds. */
18
- timeoutInSeconds?: number;
19
- /** The number of times to retry the request. Defaults to 2. */
20
- maxRetries?: number;
21
- /** A hook to abort the request. */
22
- abortSignal?: AbortSignal;
23
- /** Additional query string parameters to include in the request. */
24
- queryParams?: Record<string, unknown>;
25
- /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
- }
28
- }
29
- export declare class TaskGroup {
30
- protected readonly _options: TaskGroup.Options;
31
- constructor(_options?: TaskGroup.Options);
32
- /**
33
- * Deletes a task group and all associated entities (tasks, task artifacts, S3 metadata). The task group must belong to a DRAFT order. | () -> (bool)
34
- *
35
- * @param {string} taskGroupId
36
- * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
37
- *
38
- * @throws {@link Chrt.UnprocessableEntityError}
39
- *
40
- * @example
41
- * await client.shipping.orders.drafts.taskGroup.deleteV1("task_group_id")
42
- */
43
- deleteV1(taskGroupId: string, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
44
- private __deleteV1;
45
- protected _getAuthorizationHeader(): Promise<string | undefined>;
46
- }