@chrt-inc/typescript-sdk 0.0.174 → 0.0.179

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 (310) hide show
  1. package/dist/cjs/Client.d.ts +24 -24
  2. package/dist/cjs/Client.js +48 -48
  3. package/dist/cjs/api/index.d.ts +1 -1
  4. package/dist/cjs/api/index.js +1 -1
  5. package/dist/cjs/api/resources/connections/client/Client.d.ts +8 -8
  6. package/dist/cjs/api/resources/connections/client/Client.js +14 -14
  7. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +1 -1
  8. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +1 -1
  9. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.d.ts +26 -26
  10. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.js +79 -79
  11. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.ts +1 -1
  12. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.ts +1 -1
  13. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.js +1 -1
  14. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.ts +1 -1
  15. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.js +1 -1
  16. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +16 -12
  17. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +27 -23
  18. package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.ts +3 -3
  19. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +39 -26
  20. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +112 -67
  21. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +24 -24
  22. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +12 -12
  23. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/index.d.ts +0 -1
  24. package/dist/cjs/api/resources/courierPayDriverRateSheets/index.d.ts +0 -1
  25. package/dist/cjs/api/resources/courierPayDriverRateSheets/index.js +0 -1
  26. package/dist/cjs/api/resources/dev/client/Client.d.ts +18 -10
  27. package/dist/cjs/api/resources/dev/client/Client.js +58 -50
  28. package/dist/cjs/api/resources/drivers/client/Client.d.ts +52 -50
  29. package/dist/cjs/api/resources/drivers/client/Client.js +109 -107
  30. package/dist/cjs/api/resources/drivers/client/requests/SetDriverActivationReq.d.ts +3 -3
  31. package/dist/cjs/api/resources/drivers/client/requests/index.d.ts +1 -1
  32. package/dist/cjs/api/resources/index.d.ts +14 -15
  33. package/dist/cjs/api/resources/index.js +15 -16
  34. package/dist/cjs/api/resources/milestoneNotifications/client/Client.d.ts +2 -2
  35. package/dist/cjs/api/resources/milestoneNotifications/client/Client.js +2 -2
  36. package/dist/cjs/api/resources/milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts +3 -3
  37. package/dist/cjs/api/resources/milestones/client/Client.d.ts +16 -16
  38. package/dist/cjs/api/resources/milestones/client/Client.js +25 -25
  39. package/dist/cjs/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
  40. package/dist/cjs/api/resources/milestones/client/requests/MilestoneUpdateReq.d.ts +1 -1
  41. package/dist/cjs/api/resources/milestones/client/requests/index.d.ts +1 -1
  42. package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +1 -5
  43. package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +1 -5
  44. package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +14 -14
  45. package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +35 -35
  46. package/dist/cjs/api/resources/milestones/resources/index.d.ts +1 -1
  47. package/dist/cjs/api/resources/milestones/resources/index.js +2 -2
  48. package/dist/cjs/api/resources/notifications/client/Client.d.ts +3 -3
  49. package/dist/cjs/api/resources/notifications/client/Client.js +6 -6
  50. package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/Client.d.ts +2 -2
  51. package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/Client.js +2 -2
  52. package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +3 -3
  53. package/dist/cjs/api/resources/notifications/resources/index.d.ts +2 -2
  54. package/dist/cjs/api/resources/notifications/resources/index.js +3 -3
  55. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +2 -2
  56. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +2 -2
  57. package/dist/cjs/api/resources/notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.d.ts +3 -3
  58. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.ts +6 -6
  59. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/Client.js +6 -6
  60. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +8 -8
  61. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
  62. package/dist/cjs/api/resources/orders/client/Client.d.ts +30 -26
  63. package/dist/cjs/api/resources/orders/client/Client.js +74 -70
  64. package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +16 -16
  65. package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +12 -12
  66. package/dist/cjs/api/resources/orders/resources/full/client/Client.js +33 -33
  67. package/dist/cjs/api/resources/orgConnectionInfos/client/Client.d.ts +3 -3
  68. package/dist/cjs/api/resources/orgConnectionInfos/client/Client.js +6 -6
  69. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +5 -5
  70. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +5 -5
  71. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +7 -7
  72. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +4 -4
  73. package/dist/cjs/api/resources/orgConnectionInfos/resources/index.d.ts +2 -2
  74. package/dist/cjs/api/resources/orgConnectionInfos/resources/index.js +3 -3
  75. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +5 -5
  76. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +5 -5
  77. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +7 -7
  78. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
  79. package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +15 -17
  80. package/dist/cjs/api/resources/orgProfiles/client/Client.js +43 -49
  81. package/dist/cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +3 -3
  82. package/dist/cjs/api/resources/orgProfiles/client/requests/index.d.ts +0 -1
  83. package/dist/cjs/api/resources/orgs/client/Client.d.ts +41 -37
  84. package/dist/cjs/api/resources/orgs/client/Client.js +90 -86
  85. package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +3 -3
  86. package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +1 -1
  87. package/dist/cjs/api/resources/payments/client/Client.d.ts +3 -7
  88. package/dist/cjs/api/resources/payments/client/Client.js +3 -7
  89. package/dist/cjs/api/resources/root/client/Client.d.ts +19 -13
  90. package/dist/cjs/api/resources/root/client/Client.js +31 -25
  91. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +42 -42
  92. package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +90 -90
  93. package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +4 -4
  94. package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +24 -18
  95. package/dist/cjs/api/resources/taskGroups/client/Client.js +43 -37
  96. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.ts +2 -2
  97. package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +2 -2
  98. package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +2 -2
  99. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +4 -2
  100. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +4 -2
  101. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.d.ts +3 -3
  102. package/dist/cjs/api/resources/users/client/Client.d.ts +2 -0
  103. package/dist/cjs/api/resources/users/client/Client.js +2 -0
  104. package/dist/cjs/api/types/Cargo1.d.ts +6 -6
  105. package/dist/cjs/api/types/CargoClientCreate1.d.ts +3 -3
  106. package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +9 -9
  107. package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
  108. package/dist/cjs/api/types/CourierOrgProfile3.d.ts +3 -3
  109. package/dist/cjs/api/types/CourierPayDriverLineItemGroup1.d.ts +5 -5
  110. package/dist/cjs/api/types/CourierPayDriverLineItemGroupClientCreate1.d.ts +1 -1
  111. package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +16 -16
  112. package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +8 -8
  113. package/dist/cjs/api/types/Driver1.d.ts +6 -6
  114. package/dist/cjs/api/types/Expense1.d.ts +3 -3
  115. package/dist/cjs/api/types/Feature.d.ts +3 -3
  116. package/dist/cjs/api/types/GetOrderFullRes.d.ts +2 -2
  117. package/dist/cjs/api/types/Incident1.d.ts +1 -1
  118. package/dist/cjs/api/types/Insurance1.d.ts +1 -1
  119. package/dist/cjs/api/types/LineItem1.d.ts +1 -1
  120. package/dist/cjs/api/types/Milestone1.d.ts +13 -13
  121. package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
  122. package/dist/cjs/api/types/MilestoneNotificationPreferences1.d.ts +9 -9
  123. package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +11 -11
  124. package/dist/cjs/api/types/Order1.d.ts +11 -11
  125. package/dist/cjs/api/types/OrgMemberDetails.d.ts +2 -2
  126. package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
  127. package/dist/cjs/api/types/OrgPublicData2.d.ts +4 -4
  128. package/dist/cjs/api/types/PayablesInvoice1.d.ts +11 -11
  129. package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
  130. package/dist/cjs/api/types/ShipperContactInfo1.d.ts +11 -11
  131. package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +6 -6
  132. package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +4 -4
  133. package/dist/cjs/api/types/ShipperNotificationPreferences1.d.ts +9 -9
  134. package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +6 -6
  135. package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +5 -5
  136. package/dist/cjs/api/types/Task1.d.ts +13 -13
  137. package/dist/cjs/api/types/TaskClientCreate1.d.ts +4 -4
  138. package/dist/cjs/api/types/TaskCreateBundle.d.ts +2 -2
  139. package/dist/cjs/api/types/TaskGroup1.d.ts +11 -11
  140. package/dist/cjs/api/types/TaskWithDetails.d.ts +2 -2
  141. package/dist/cjs/api/types/Tracker1.d.ts +1 -1
  142. package/dist/cjs/api/types/TrackerSession1.d.ts +1 -1
  143. package/dist/cjs/api/types/UserPublicData6.d.ts +6 -6
  144. package/dist/cjs/api/types/Vehicle1.d.ts +1 -1
  145. package/dist/cjs/version.d.ts +1 -1
  146. package/dist/cjs/version.js +1 -1
  147. package/dist/esm/Client.d.mts +24 -24
  148. package/dist/esm/Client.mjs +36 -36
  149. package/dist/esm/api/index.d.mts +1 -1
  150. package/dist/esm/api/index.mjs +1 -1
  151. package/dist/esm/api/resources/connections/client/Client.d.mts +8 -8
  152. package/dist/esm/api/resources/connections/client/Client.mjs +14 -14
  153. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +1 -1
  154. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +1 -1
  155. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.d.mts +26 -26
  156. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.mjs +79 -79
  157. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.mts +1 -1
  158. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.mts +1 -1
  159. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.mjs +1 -1
  160. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.mts +1 -1
  161. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.mjs +1 -1
  162. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +16 -12
  163. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +27 -23
  164. package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.mts +3 -3
  165. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +39 -26
  166. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +112 -67
  167. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +24 -24
  168. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +12 -12
  169. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/index.d.mts +0 -1
  170. package/dist/esm/api/resources/courierPayDriverRateSheets/index.d.mts +0 -1
  171. package/dist/esm/api/resources/courierPayDriverRateSheets/index.mjs +0 -1
  172. package/dist/esm/api/resources/dev/client/Client.d.mts +18 -10
  173. package/dist/esm/api/resources/dev/client/Client.mjs +58 -50
  174. package/dist/esm/api/resources/drivers/client/Client.d.mts +52 -50
  175. package/dist/esm/api/resources/drivers/client/Client.mjs +109 -107
  176. package/dist/esm/api/resources/drivers/client/requests/SetDriverActivationReq.d.mts +3 -3
  177. package/dist/esm/api/resources/drivers/client/requests/index.d.mts +1 -1
  178. package/dist/esm/api/resources/index.d.mts +14 -15
  179. package/dist/esm/api/resources/index.mjs +14 -15
  180. package/dist/esm/api/resources/milestoneNotifications/client/Client.d.mts +2 -2
  181. package/dist/esm/api/resources/milestoneNotifications/client/Client.mjs +2 -2
  182. package/dist/esm/api/resources/milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts +3 -3
  183. package/dist/esm/api/resources/milestones/client/Client.d.mts +16 -16
  184. package/dist/esm/api/resources/milestones/client/Client.mjs +24 -24
  185. package/dist/esm/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
  186. package/dist/esm/api/resources/milestones/client/requests/MilestoneUpdateReq.d.mts +1 -1
  187. package/dist/esm/api/resources/milestones/client/requests/index.d.mts +1 -1
  188. package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +1 -5
  189. package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +1 -5
  190. package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +14 -14
  191. package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +35 -35
  192. package/dist/esm/api/resources/milestones/resources/index.d.mts +1 -1
  193. package/dist/esm/api/resources/milestones/resources/index.mjs +1 -1
  194. package/dist/esm/api/resources/notifications/client/Client.d.mts +3 -3
  195. package/dist/esm/api/resources/notifications/client/Client.mjs +5 -5
  196. package/dist/esm/api/resources/notifications/resources/courierPreferences/client/Client.d.mts +2 -2
  197. package/dist/esm/api/resources/notifications/resources/courierPreferences/client/Client.mjs +2 -2
  198. package/dist/esm/api/resources/notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +3 -3
  199. package/dist/esm/api/resources/notifications/resources/index.d.mts +2 -2
  200. package/dist/esm/api/resources/notifications/resources/index.mjs +2 -2
  201. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +2 -2
  202. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +2 -2
  203. package/dist/esm/api/resources/notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.d.mts +3 -3
  204. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.mts +6 -6
  205. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/Client.mjs +6 -6
  206. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +8 -8
  207. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
  208. package/dist/esm/api/resources/orders/client/Client.d.mts +30 -26
  209. package/dist/esm/api/resources/orders/client/Client.mjs +74 -70
  210. package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +16 -16
  211. package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +12 -12
  212. package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +33 -33
  213. package/dist/esm/api/resources/orgConnectionInfos/client/Client.d.mts +3 -3
  214. package/dist/esm/api/resources/orgConnectionInfos/client/Client.mjs +5 -5
  215. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +5 -5
  216. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +5 -5
  217. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +7 -7
  218. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +4 -4
  219. package/dist/esm/api/resources/orgConnectionInfos/resources/index.d.mts +2 -2
  220. package/dist/esm/api/resources/orgConnectionInfos/resources/index.mjs +2 -2
  221. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +5 -5
  222. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +5 -5
  223. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +7 -7
  224. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
  225. package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +15 -17
  226. package/dist/esm/api/resources/orgProfiles/client/Client.mjs +43 -49
  227. package/dist/esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.mts +3 -3
  228. package/dist/esm/api/resources/orgProfiles/client/requests/index.d.mts +0 -1
  229. package/dist/esm/api/resources/orgs/client/Client.d.mts +41 -37
  230. package/dist/esm/api/resources/orgs/client/Client.mjs +90 -86
  231. package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +3 -3
  232. package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +1 -1
  233. package/dist/esm/api/resources/payments/client/Client.d.mts +3 -7
  234. package/dist/esm/api/resources/payments/client/Client.mjs +3 -7
  235. package/dist/esm/api/resources/root/client/Client.d.mts +19 -13
  236. package/dist/esm/api/resources/root/client/Client.mjs +31 -25
  237. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +42 -42
  238. package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +90 -90
  239. package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +4 -4
  240. package/dist/esm/api/resources/taskGroups/client/Client.d.mts +24 -18
  241. package/dist/esm/api/resources/taskGroups/client/Client.mjs +43 -37
  242. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.mts +2 -2
  243. package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +2 -2
  244. package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +2 -2
  245. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +4 -2
  246. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +4 -2
  247. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.d.mts +3 -3
  248. package/dist/esm/api/resources/users/client/Client.d.mts +2 -0
  249. package/dist/esm/api/resources/users/client/Client.mjs +2 -0
  250. package/dist/esm/api/types/Cargo1.d.mts +6 -6
  251. package/dist/esm/api/types/CargoClientCreate1.d.mts +3 -3
  252. package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +9 -9
  253. package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
  254. package/dist/esm/api/types/CourierOrgProfile3.d.mts +3 -3
  255. package/dist/esm/api/types/CourierPayDriverLineItemGroup1.d.mts +5 -5
  256. package/dist/esm/api/types/CourierPayDriverLineItemGroupClientCreate1.d.mts +1 -1
  257. package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +16 -16
  258. package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +8 -8
  259. package/dist/esm/api/types/Driver1.d.mts +6 -6
  260. package/dist/esm/api/types/Expense1.d.mts +3 -3
  261. package/dist/esm/api/types/Feature.d.mts +3 -3
  262. package/dist/esm/api/types/GetOrderFullRes.d.mts +2 -2
  263. package/dist/esm/api/types/Incident1.d.mts +1 -1
  264. package/dist/esm/api/types/Insurance1.d.mts +1 -1
  265. package/dist/esm/api/types/LineItem1.d.mts +1 -1
  266. package/dist/esm/api/types/Milestone1.d.mts +13 -13
  267. package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
  268. package/dist/esm/api/types/MilestoneNotificationPreferences1.d.mts +9 -9
  269. package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +11 -11
  270. package/dist/esm/api/types/Order1.d.mts +11 -11
  271. package/dist/esm/api/types/OrgMemberDetails.d.mts +2 -2
  272. package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
  273. package/dist/esm/api/types/OrgPublicData2.d.mts +4 -4
  274. package/dist/esm/api/types/PayablesInvoice1.d.mts +11 -11
  275. package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
  276. package/dist/esm/api/types/ShipperContactInfo1.d.mts +11 -11
  277. package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +6 -6
  278. package/dist/esm/api/types/ShipperCourierConnection1.d.mts +4 -4
  279. package/dist/esm/api/types/ShipperNotificationPreferences1.d.mts +9 -9
  280. package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +6 -6
  281. package/dist/esm/api/types/StripeConnectInvoice1.d.mts +5 -5
  282. package/dist/esm/api/types/Task1.d.mts +13 -13
  283. package/dist/esm/api/types/TaskClientCreate1.d.mts +4 -4
  284. package/dist/esm/api/types/TaskCreateBundle.d.mts +2 -2
  285. package/dist/esm/api/types/TaskGroup1.d.mts +11 -11
  286. package/dist/esm/api/types/TaskWithDetails.d.mts +2 -2
  287. package/dist/esm/api/types/Tracker1.d.mts +1 -1
  288. package/dist/esm/api/types/TrackerSession1.d.mts +1 -1
  289. package/dist/esm/api/types/UserPublicData6.d.mts +6 -6
  290. package/dist/esm/api/types/Vehicle1.d.mts +1 -1
  291. package/dist/esm/version.d.mts +1 -1
  292. package/dist/esm/version.mjs +1 -1
  293. package/package.json +1 -1
  294. package/reference.md +1156 -779
  295. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.ts +0 -11
  296. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.js +0 -5
  297. package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.ts +0 -5
  298. package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.js +0 -5
  299. package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.d.ts +0 -1
  300. package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.js +0 -17
  301. package/dist/cjs/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.ts +0 -12
  302. package/dist/cjs/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.js +0 -5
  303. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.mts +0 -11
  304. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.mjs +0 -4
  305. package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.mts +0 -5
  306. package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.mjs +0 -4
  307. package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.d.mts +0 -1
  308. package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.mjs +0 -1
  309. package/dist/esm/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.mts +0 -12
  310. package/dist/esm/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.mjs +0 -4
@@ -29,7 +29,7 @@ export declare class CourierPreferences {
29
29
  protected readonly _options: CourierPreferences.Options;
30
30
  constructor(_options?: CourierPreferences.Options);
31
31
  /**
32
- * Get notification preferences by org id from jwt
32
+ * Retrieves notification preferences for the authenticated courier organization.
33
33
  *
34
34
  * @param {CourierPreferences.RequestOptions} requestOptions - Request-specific configuration.
35
35
  *
@@ -39,7 +39,7 @@ export declare class CourierPreferences {
39
39
  get(requestOptions?: CourierPreferences.RequestOptions): core.HttpResponsePromise<Chrt.CourierNotificationPreferences1>;
40
40
  private __get;
41
41
  /**
42
- * Upsert notification preferences for org in jwt
42
+ * Creates or updates notification preferences for the authenticated courier organization.
43
43
  *
44
44
  * @param {Chrt.notifications.CourierNotificationPreferencesClientCreate1} request
45
45
  * @param {CourierPreferences.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class CourierPreferences {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Get notification preferences by org id from jwt
23
+ * Retrieves notification preferences for the authenticated courier organization.
24
24
  *
25
25
  * @param {CourierPreferences.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -69,7 +69,7 @@ export class CourierPreferences {
69
69
  });
70
70
  }
71
71
  /**
72
- * Upsert notification preferences for org in jwt
72
+ * Creates or updates notification preferences for the authenticated courier organization.
73
73
  *
74
74
  * @param {Chrt.notifications.CourierNotificationPreferencesClientCreate1} request
75
75
  * @param {CourierPreferences.RequestOptions} requestOptions - Request-specific configuration.
@@ -9,10 +9,10 @@ import * as Chrt from "../../../../../../index.mjs";
9
9
  * }
10
10
  */
11
11
  export interface CourierNotificationPreferencesClientCreate1 {
12
- email_addresses?: string[];
13
- /** For each CourierNotificationEventEnum, which channels (email/sms/push/phone_call) are enabled */
14
- preferences?: Record<string, Chrt.NotificationChannelEnum[]>;
15
12
  schema_version: number;
13
+ email_addresses?: string[];
16
14
  sms_phone_numbers?: string[];
17
15
  voice_phone_numbers?: string[];
16
+ /** For each CourierNotificationEventEnum, which channels (email/sms/push/phone_call) are enabled */
17
+ preferences?: Record<string, Chrt.NotificationChannelEnum[]>;
18
18
  }
@@ -1,4 +1,4 @@
1
- export * as courierPreferences from "./courierPreferences/index.mjs";
2
1
  export * as shipper from "./shipper/index.mjs";
3
- export * from "./courierPreferences/client/requests/index.mjs";
2
+ export * as courierPreferences from "./courierPreferences/index.mjs";
4
3
  export * from "./shipper/client/requests/index.mjs";
4
+ export * from "./courierPreferences/client/requests/index.mjs";
@@ -1,4 +1,4 @@
1
- export * as courierPreferences from "./courierPreferences/index.mjs";
2
1
  export * as shipper from "./shipper/index.mjs";
3
- export * from "./courierPreferences/client/requests/index.mjs";
2
+ export * as courierPreferences from "./courierPreferences/index.mjs";
4
3
  export * from "./shipper/client/requests/index.mjs";
4
+ export * from "./courierPreferences/client/requests/index.mjs";
@@ -29,7 +29,7 @@ export declare class Shipper {
29
29
  protected readonly _options: Shipper.Options;
30
30
  constructor(_options?: Shipper.Options);
31
31
  /**
32
- * Get notification preferences by org id from jwt
32
+ * Retrieves notification preferences for the authenticated shipper organization.
33
33
  *
34
34
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
35
35
  *
@@ -39,7 +39,7 @@ export declare class Shipper {
39
39
  getPreferences(requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperNotificationPreferences1>;
40
40
  private __getPreferences;
41
41
  /**
42
- * Upsert notification preferences for org in jwt
42
+ * Creates or updates notification preferences for the authenticated shipper organization.
43
43
  *
44
44
  * @param {Chrt.notifications.ShipperNotificationPreferencesClientCreate1} request
45
45
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class Shipper {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Get notification preferences by org id from jwt
23
+ * Retrieves notification preferences for the authenticated shipper organization.
24
24
  *
25
25
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -69,7 +69,7 @@ export class Shipper {
69
69
  });
70
70
  }
71
71
  /**
72
- * Upsert notification preferences for org in jwt
72
+ * Creates or updates notification preferences for the authenticated shipper organization.
73
73
  *
74
74
  * @param {Chrt.notifications.ShipperNotificationPreferencesClientCreate1} request
75
75
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -9,10 +9,10 @@ import * as Chrt from "../../../../../../index.mjs";
9
9
  * }
10
10
  */
11
11
  export interface ShipperNotificationPreferencesClientCreate1 {
12
- email_addresses?: string[];
13
- /** For each ShipperNotificationEventEnum, which channels (email/sms/push/phone_call) are enabled */
14
- preferences?: Record<string, Chrt.NotificationChannelEnum[]>;
15
12
  schema_version: number;
13
+ email_addresses?: string[];
16
14
  sms_phone_numbers?: string[];
17
15
  voice_phone_numbers?: string[];
16
+ /** For each ShipperNotificationEventEnum, which channels (email/sms/push/phone_call) are enabled */
17
+ preferences?: Record<string, Chrt.NotificationChannelEnum[]>;
18
18
  }
@@ -29,7 +29,7 @@ export declare class OffChrtShipperOrgConnectionInfo {
29
29
  protected readonly _options: OffChrtShipperOrgConnectionInfo.Options;
30
30
  constructor(_options?: OffChrtShipperOrgConnectionInfo.Options);
31
31
  /**
32
- * Create a new off-CHRT shipper org connection info record.
32
+ * Creates connection information for working with off-platform shipper organizations.
33
33
  *
34
34
  * @param {Chrt.OffChrtShipperOrgConnectionInfoClientCreate1} request
35
35
  * @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
@@ -38,14 +38,14 @@ export declare class OffChrtShipperOrgConnectionInfo {
38
38
  *
39
39
  * @example
40
40
  * await client.offChrtShipperOrgConnectionInfo.create({
41
- * email_address_primary: "email_address_primary",
42
- * schema_version: 1
41
+ * schema_version: 1,
42
+ * email_address_primary: "email_address_primary"
43
43
  * })
44
44
  */
45
45
  create(request: Chrt.OffChrtShipperOrgConnectionInfoClientCreate1, requestOptions?: OffChrtShipperOrgConnectionInfo.RequestOptions): core.HttpResponsePromise<string>;
46
46
  private __create;
47
47
  /**
48
- * Get a list of all off-CHRT shipper connections created by the authenticated user's organization (Courier org).
48
+ * Lists all off-platform shipper connections created by the authenticated organization.
49
49
  *
50
50
  * @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
51
51
  *
@@ -55,7 +55,7 @@ export declare class OffChrtShipperOrgConnectionInfo {
55
55
  list(requestOptions?: OffChrtShipperOrgConnectionInfo.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrgConnectionInfo1[]>;
56
56
  private __list;
57
57
  /**
58
- * Get an off-CHRT shipper org connection info record by ID.
58
+ * Retrieves specific off-platform shipper connection information by ID.
59
59
  *
60
60
  * @param {string} id
61
61
  * @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
@@ -68,7 +68,7 @@ export declare class OffChrtShipperOrgConnectionInfo {
68
68
  getById(id: string, requestOptions?: OffChrtShipperOrgConnectionInfo.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrgConnectionInfo1>;
69
69
  private __getById;
70
70
  /**
71
- * Update an off-CHRT shipper org connection info record by ID.
71
+ * Updates existing off-platform shipper connection information owned by the authenticated organization.
72
72
  *
73
73
  * @param {string} id
74
74
  * @param {Chrt.OffChrtShipperOrgConnectionInfoClientUpdate1} request
@@ -20,7 +20,7 @@ export class OffChrtShipperOrgConnectionInfo {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Create a new off-CHRT shipper org connection info record.
23
+ * Creates connection information for working with off-platform shipper organizations.
24
24
  *
25
25
  * @param {Chrt.OffChrtShipperOrgConnectionInfoClientCreate1} request
26
26
  * @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
@@ -29,8 +29,8 @@ export class OffChrtShipperOrgConnectionInfo {
29
29
  *
30
30
  * @example
31
31
  * await client.offChrtShipperOrgConnectionInfo.create({
32
- * email_address_primary: "email_address_primary",
33
- * schema_version: 1
32
+ * schema_version: 1,
33
+ * email_address_primary: "email_address_primary"
34
34
  * })
35
35
  */
36
36
  create(request, requestOptions) {
@@ -83,7 +83,7 @@ export class OffChrtShipperOrgConnectionInfo {
83
83
  });
84
84
  }
85
85
  /**
86
- * Get a list of all off-CHRT shipper connections created by the authenticated user's organization (Courier org).
86
+ * Lists all off-platform shipper connections created by the authenticated organization.
87
87
  *
88
88
  * @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
89
89
  *
@@ -135,7 +135,7 @@ export class OffChrtShipperOrgConnectionInfo {
135
135
  });
136
136
  }
137
137
  /**
138
- * Get an off-CHRT shipper org connection info record by ID.
138
+ * Retrieves specific off-platform shipper connection information by ID.
139
139
  *
140
140
  * @param {string} id
141
141
  * @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
@@ -195,7 +195,7 @@ export class OffChrtShipperOrgConnectionInfo {
195
195
  });
196
196
  }
197
197
  /**
198
- * Update an off-CHRT shipper org connection info record by ID.
198
+ * Updates existing off-platform shipper connection information owned by the authenticated organization.
199
199
  *
200
200
  * @param {string} id
201
201
  * @param {Chrt.OffChrtShipperOrgConnectionInfoClientUpdate1} request
@@ -5,21 +5,21 @@ import * as Chrt from "../../../../index.mjs";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * email_address_primary: "email_address_primary",
9
- * schema_version: 1
8
+ * schema_version: 1,
9
+ * email_address_primary: "email_address_primary"
10
10
  * }
11
11
  */
12
12
  export interface OffChrtShipperOrgConnectionInfoClientCreate1 {
13
- company_name?: string;
13
+ schema_version: number;
14
+ industry?: string;
15
+ street_address?: Chrt.Feature;
14
16
  contact_first_name?: string;
15
17
  contact_last_name?: string;
18
+ phone_number_primary?: string;
19
+ phone_number_secondary?: string;
16
20
  email_address_primary: string;
17
21
  email_address_secondary?: string;
18
- industry?: string;
19
22
  job_title?: string;
20
23
  notes?: string;
21
- phone_number_primary?: string;
22
- phone_number_secondary?: string;
23
- schema_version: number;
24
- street_address?: Chrt.Feature;
24
+ company_name?: string;
25
25
  }
@@ -7,14 +7,14 @@ import * as Chrt from "../../../../index.mjs";
7
7
  * {}
8
8
  */
9
9
  export interface OffChrtShipperOrgConnectionInfoClientUpdate1 {
10
+ industry?: string;
11
+ street_address?: Chrt.Feature;
10
12
  contact_first_name?: string;
11
13
  contact_last_name?: string;
14
+ phone_number_primary?: string;
15
+ phone_number_secondary?: string;
12
16
  email_address_primary?: string;
13
17
  email_address_secondary?: string;
14
- industry?: string;
15
18
  job_title?: string;
16
19
  notes?: string;
17
- phone_number_primary?: string;
18
- phone_number_secondary?: string;
19
- street_address?: Chrt.Feature;
20
20
  }
@@ -32,6 +32,21 @@ export declare class Orders {
32
32
  constructor(_options?: Orders.Options);
33
33
  get full(): Full;
34
34
  /**
35
+ * Retrieves an order by its full ID or short ID.
36
+ *
37
+ * @param {string} orderIdOrShortId
38
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link Chrt.UnprocessableEntityError}
41
+ *
42
+ * @example
43
+ * await client.orders.getByOrderIdOrShortId("order_id_or_short_id")
44
+ */
45
+ getByOrderIdOrShortId(orderIdOrShortId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.GetOrderRes>;
46
+ private __getByOrderIdOrShortId;
47
+ /**
48
+ * Cancels an order and all associated task groups and line item groups.
49
+ *
35
50
  * @param {string} orderIdOrShortId
36
51
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
37
52
  *
@@ -43,6 +58,8 @@ export declare class Orders {
43
58
  cancelByOrderIdOrShortId(orderIdOrShortId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
44
59
  private __cancelByOrderIdOrShortId;
45
60
  /**
61
+ * Creates a comprehensive order with task groups, tasks, milestones, and cargo.
62
+ *
46
63
  * @param {Chrt.CreateOrderReq} request
47
64
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
48
65
  *
@@ -50,39 +67,29 @@ export declare class Orders {
50
67
  *
51
68
  * @example
52
69
  * await client.orders.create({
53
- * cargo_client_creates_map: {
54
- * "key": {
55
- * cargo_type: "spare_parts",
56
- * schema_version: 1
57
- * }
58
- * },
59
70
  * order_client_create: {
60
71
  * schema_version: 1
61
72
  * },
62
- * order_created_by_type: "chrt",
63
- * order_dispatch_type: "dtc",
64
73
  * task_client_creates_bundle_groupings: [[{
65
74
  * task_client_create: {
66
75
  * schema_version: 1
67
76
  * }
68
77
  * }]],
78
+ * cargo_client_creates_map: {
79
+ * "key": {
80
+ * schema_version: 1,
81
+ * cargo_type: "spare_parts"
82
+ * }
83
+ * },
84
+ * order_created_by_type: "chrt",
85
+ * order_dispatch_type: "dtc",
69
86
  * transport_type: "ground_only"
70
87
  * })
71
88
  */
72
89
  create(request: Chrt.CreateOrderReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CreateOrderRes>;
73
90
  private __create;
74
91
  /**
75
- * Uses the org_id from the JWT
76
- *
77
- * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
78
- *
79
- * @example
80
- * await client.orders.listByCourierOrgId()
81
- */
82
- listByCourierOrgId(requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.Order1[]>;
83
- private __listByCourierOrgId;
84
- /**
85
- * Uses the org_id from the JWT
92
+ * Lists all orders for the authenticated shipper organization.
86
93
  *
87
94
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
88
95
  *
@@ -92,17 +99,14 @@ export declare class Orders {
92
99
  listByShipperOrgId(requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.Order1[]>;
93
100
  private __listByShipperOrgId;
94
101
  /**
95
- * Accepts both order_id and order_short_id values and returns just the Order
102
+ * Lists all orders assigned to the authenticated courier organization.
96
103
  *
97
- * @param {string} orderIdOrShortId
98
104
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
99
105
  *
100
- * @throws {@link Chrt.UnprocessableEntityError}
101
- *
102
106
  * @example
103
- * await client.orders.getByOrderIdOrShortId("order_id_or_short_id")
107
+ * await client.orders.listByCourierOrgId()
104
108
  */
105
- getByOrderIdOrShortId(orderIdOrShortId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.GetOrderRes>;
106
- private __getByOrderIdOrShortId;
109
+ listByCourierOrgId(requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.Order1[]>;
110
+ private __listByCourierOrgId;
107
111
  protected _getAuthorizationHeader(): Promise<string | undefined>;
108
112
  }
@@ -25,23 +25,25 @@ export class Orders {
25
25
  return ((_a = this._full) !== null && _a !== void 0 ? _a : (this._full = new Full(this._options)));
26
26
  }
27
27
  /**
28
+ * Retrieves an order by its full ID or short ID.
29
+ *
28
30
  * @param {string} orderIdOrShortId
29
31
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
30
32
  *
31
33
  * @throws {@link Chrt.UnprocessableEntityError}
32
34
  *
33
35
  * @example
34
- * await client.orders.cancelByOrderIdOrShortId("order_id_or_short_id")
36
+ * await client.orders.getByOrderIdOrShortId("order_id_or_short_id")
35
37
  */
36
- cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
37
- return core.HttpResponsePromise.fromPromise(this.__cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions));
38
+ getByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
39
+ return core.HttpResponsePromise.fromPromise(this.__getByOrderIdOrShortId(orderIdOrShortId, requestOptions));
38
40
  }
39
- __cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
41
+ __getByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
40
42
  return __awaiter(this, void 0, void 0, function* () {
41
43
  var _a, _b, _c, _d;
42
44
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
43
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/orders/cancel/${encodeURIComponent(orderIdOrShortId)}`),
44
- method: "PATCH",
45
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/orders/${encodeURIComponent(orderIdOrShortId)}`),
46
+ method: "GET",
45
47
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
46
48
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
47
49
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -70,7 +72,7 @@ export class Orders {
70
72
  rawResponse: _response.rawResponse,
71
73
  });
72
74
  case "timeout":
73
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/orders/cancel/{order_id_or_short_id}.");
75
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/{order_id_or_short_id}.");
74
76
  case "unknown":
75
77
  throw new errors.ChrtError({
76
78
  message: _response.error.errorMessage,
@@ -80,45 +82,26 @@ export class Orders {
80
82
  });
81
83
  }
82
84
  /**
83
- * @param {Chrt.CreateOrderReq} request
85
+ * Cancels an order and all associated task groups and line item groups.
86
+ *
87
+ * @param {string} orderIdOrShortId
84
88
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
85
89
  *
86
90
  * @throws {@link Chrt.UnprocessableEntityError}
87
91
  *
88
92
  * @example
89
- * await client.orders.create({
90
- * cargo_client_creates_map: {
91
- * "key": {
92
- * cargo_type: "spare_parts",
93
- * schema_version: 1
94
- * }
95
- * },
96
- * order_client_create: {
97
- * schema_version: 1
98
- * },
99
- * order_created_by_type: "chrt",
100
- * order_dispatch_type: "dtc",
101
- * task_client_creates_bundle_groupings: [[{
102
- * task_client_create: {
103
- * schema_version: 1
104
- * }
105
- * }]],
106
- * transport_type: "ground_only"
107
- * })
93
+ * await client.orders.cancelByOrderIdOrShortId("order_id_or_short_id")
108
94
  */
109
- create(request, requestOptions) {
110
- return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
95
+ cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
96
+ return core.HttpResponsePromise.fromPromise(this.__cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions));
111
97
  }
112
- __create(request, requestOptions) {
98
+ __cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
113
99
  return __awaiter(this, void 0, void 0, function* () {
114
100
  var _a, _b, _c, _d;
115
101
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
116
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/orders/create"),
117
- method: "POST",
102
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/orders/cancel/${encodeURIComponent(orderIdOrShortId)}`),
103
+ method: "PATCH",
118
104
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
119
- contentType: "application/json",
120
- requestType: "json",
121
- body: request,
122
105
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
123
106
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
124
107
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -146,7 +129,7 @@ export class Orders {
146
129
  rawResponse: _response.rawResponse,
147
130
  });
148
131
  case "timeout":
149
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/orders/create.");
132
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/orders/cancel/{order_id_or_short_id}.");
150
133
  case "unknown":
151
134
  throw new errors.ChrtError({
152
135
  message: _response.error.errorMessage,
@@ -156,23 +139,47 @@ export class Orders {
156
139
  });
157
140
  }
158
141
  /**
159
- * Uses the org_id from the JWT
142
+ * Creates a comprehensive order with task groups, tasks, milestones, and cargo.
160
143
  *
144
+ * @param {Chrt.CreateOrderReq} request
161
145
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
162
146
  *
147
+ * @throws {@link Chrt.UnprocessableEntityError}
148
+ *
163
149
  * @example
164
- * await client.orders.listByCourierOrgId()
150
+ * await client.orders.create({
151
+ * order_client_create: {
152
+ * schema_version: 1
153
+ * },
154
+ * task_client_creates_bundle_groupings: [[{
155
+ * task_client_create: {
156
+ * schema_version: 1
157
+ * }
158
+ * }]],
159
+ * cargo_client_creates_map: {
160
+ * "key": {
161
+ * schema_version: 1,
162
+ * cargo_type: "spare_parts"
163
+ * }
164
+ * },
165
+ * order_created_by_type: "chrt",
166
+ * order_dispatch_type: "dtc",
167
+ * transport_type: "ground_only"
168
+ * })
165
169
  */
166
- listByCourierOrgId(requestOptions) {
167
- return core.HttpResponsePromise.fromPromise(this.__listByCourierOrgId(requestOptions));
170
+ create(request, requestOptions) {
171
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
168
172
  }
169
- __listByCourierOrgId(requestOptions) {
173
+ __create(request, requestOptions) {
170
174
  return __awaiter(this, void 0, void 0, function* () {
171
175
  var _a, _b, _c, _d;
172
176
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
173
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/orders/list/by_courier_org_id"),
174
- method: "GET",
177
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/orders/create"),
178
+ method: "POST",
175
179
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
+ contentType: "application/json",
181
+ requestType: "json",
182
+ body: request,
176
183
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
177
184
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
178
185
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -181,11 +188,16 @@ export class Orders {
181
188
  return { data: _response.body, rawResponse: _response.rawResponse };
182
189
  }
183
190
  if (_response.error.reason === "status-code") {
184
- throw new errors.ChrtError({
185
- statusCode: _response.error.statusCode,
186
- body: _response.error.body,
187
- rawResponse: _response.rawResponse,
188
- });
191
+ switch (_response.error.statusCode) {
192
+ case 422:
193
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
194
+ default:
195
+ throw new errors.ChrtError({
196
+ statusCode: _response.error.statusCode,
197
+ body: _response.error.body,
198
+ rawResponse: _response.rawResponse,
199
+ });
200
+ }
189
201
  }
190
202
  switch (_response.error.reason) {
191
203
  case "non-json":
@@ -195,7 +207,7 @@ export class Orders {
195
207
  rawResponse: _response.rawResponse,
196
208
  });
197
209
  case "timeout":
198
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/list/by_courier_org_id.");
210
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/orders/create.");
199
211
  case "unknown":
200
212
  throw new errors.ChrtError({
201
213
  message: _response.error.errorMessage,
@@ -205,7 +217,7 @@ export class Orders {
205
217
  });
206
218
  }
207
219
  /**
208
- * Uses the org_id from the JWT
220
+ * Lists all orders for the authenticated shipper organization.
209
221
  *
210
222
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
211
223
  *
@@ -254,24 +266,21 @@ export class Orders {
254
266
  });
255
267
  }
256
268
  /**
257
- * Accepts both order_id and order_short_id values and returns just the Order
269
+ * Lists all orders assigned to the authenticated courier organization.
258
270
  *
259
- * @param {string} orderIdOrShortId
260
271
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
261
272
  *
262
- * @throws {@link Chrt.UnprocessableEntityError}
263
- *
264
273
  * @example
265
- * await client.orders.getByOrderIdOrShortId("order_id_or_short_id")
274
+ * await client.orders.listByCourierOrgId()
266
275
  */
267
- getByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
268
- return core.HttpResponsePromise.fromPromise(this.__getByOrderIdOrShortId(orderIdOrShortId, requestOptions));
276
+ listByCourierOrgId(requestOptions) {
277
+ return core.HttpResponsePromise.fromPromise(this.__listByCourierOrgId(requestOptions));
269
278
  }
270
- __getByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
279
+ __listByCourierOrgId(requestOptions) {
271
280
  return __awaiter(this, void 0, void 0, function* () {
272
281
  var _a, _b, _c, _d;
273
282
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
274
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/orders/${encodeURIComponent(orderIdOrShortId)}`),
283
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/orders/list/by_courier_org_id"),
275
284
  method: "GET",
276
285
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
277
286
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -282,16 +291,11 @@ export class Orders {
282
291
  return { data: _response.body, rawResponse: _response.rawResponse };
283
292
  }
284
293
  if (_response.error.reason === "status-code") {
285
- switch (_response.error.statusCode) {
286
- case 422:
287
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
288
- default:
289
- throw new errors.ChrtError({
290
- statusCode: _response.error.statusCode,
291
- body: _response.error.body,
292
- rawResponse: _response.rawResponse,
293
- });
294
- }
294
+ throw new errors.ChrtError({
295
+ statusCode: _response.error.statusCode,
296
+ body: _response.error.body,
297
+ rawResponse: _response.rawResponse,
298
+ });
295
299
  }
296
300
  switch (_response.error.reason) {
297
301
  case "non-json":
@@ -301,7 +305,7 @@ export class Orders {
301
305
  rawResponse: _response.rawResponse,
302
306
  });
303
307
  case "timeout":
304
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/{order_id_or_short_id}.");
308
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/list/by_courier_org_id.");
305
309
  case "unknown":
306
310
  throw new errors.ChrtError({
307
311
  message: _response.error.errorMessage,