@chrt-inc/typescript-sdk 0.0.174 → 0.0.183-b

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