@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
@@ -3,22 +3,22 @@
3
3
  */
4
4
  import * as environments from "./environments.mjs";
5
5
  import * as core from "./core/index.mjs";
6
- import { Root } from "./api/resources/root/client/Client.mjs";
7
6
  import { Dev } from "./api/resources/dev/client/Client.mjs";
8
- import { Connections } from "./api/resources/connections/client/Client.mjs";
9
- import { CourierPayDriverLineItemGroup } from "./api/resources/courierPayDriverLineItemGroup/client/Client.mjs";
10
- import { CourierPayDriverPayouts } from "./api/resources/courierPayDriverPayouts/client/Client.mjs";
11
- import { CourierPayDriverRateSheets } from "./api/resources/courierPayDriverRateSheets/client/Client.mjs";
12
7
  import { Drivers } from "./api/resources/drivers/client/Client.mjs";
13
- import { MilestoneNotifications } from "./api/resources/milestoneNotifications/client/Client.mjs";
14
8
  import { Milestones } from "./api/resources/milestones/client/Client.mjs";
15
9
  import { OffChrtShipperOrgConnectionInfo } from "./api/resources/offChrtShipperOrgConnectionInfo/client/Client.mjs";
16
- import { Orders } from "./api/resources/orders/client/Client.mjs";
17
10
  import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.mjs";
18
- import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.mjs";
11
+ import { Orders } from "./api/resources/orders/client/Client.mjs";
12
+ import { CourierPayDriverRateSheets } from "./api/resources/courierPayDriverRateSheets/client/Client.mjs";
13
+ import { CourierPayDriverLineItemGroup } from "./api/resources/courierPayDriverLineItemGroup/client/Client.mjs";
14
+ import { CourierPayDriverPayouts } from "./api/resources/courierPayDriverPayouts/client/Client.mjs";
15
+ import { Connections } from "./api/resources/connections/client/Client.mjs";
19
16
  import { TaskGroups } from "./api/resources/taskGroups/client/Client.mjs";
17
+ import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.mjs";
18
+ import { MilestoneNotifications } from "./api/resources/milestoneNotifications/client/Client.mjs";
20
19
  import { Orgs } from "./api/resources/orgs/client/Client.mjs";
21
20
  import { Payments } from "./api/resources/payments/client/Client.mjs";
21
+ import { Root } from "./api/resources/root/client/Client.mjs";
22
22
  import { Users } from "./api/resources/users/client/Client.mjs";
23
23
  import { Notifications } from "./api/resources/notifications/client/Client.mjs";
24
24
  import { OrgConnectionInfos } from "./api/resources/orgConnectionInfos/client/Client.mjs";
@@ -45,42 +45,42 @@ export declare namespace ChrtClient {
45
45
  }
46
46
  export declare class ChrtClient {
47
47
  protected readonly _options: ChrtClient.Options;
48
- protected _root: Root | undefined;
49
48
  protected _dev: Dev | undefined;
50
- protected _connections: Connections | undefined;
51
- protected _courierPayDriverLineItemGroup: CourierPayDriverLineItemGroup | undefined;
52
- protected _courierPayDriverPayouts: CourierPayDriverPayouts | undefined;
53
- protected _courierPayDriverRateSheets: CourierPayDriverRateSheets | undefined;
54
49
  protected _drivers: Drivers | undefined;
55
- protected _milestoneNotifications: MilestoneNotifications | undefined;
56
50
  protected _milestones: Milestones | undefined;
57
51
  protected _offChrtShipperOrgConnectionInfo: OffChrtShipperOrgConnectionInfo | undefined;
58
- protected _orders: Orders | undefined;
59
52
  protected _orgProfiles: OrgProfiles | undefined;
60
- protected _shipperContactInfo: ShipperContactInfo | undefined;
53
+ protected _orders: Orders | undefined;
54
+ protected _courierPayDriverRateSheets: CourierPayDriverRateSheets | undefined;
55
+ protected _courierPayDriverLineItemGroup: CourierPayDriverLineItemGroup | undefined;
56
+ protected _courierPayDriverPayouts: CourierPayDriverPayouts | undefined;
57
+ protected _connections: Connections | undefined;
61
58
  protected _taskGroups: TaskGroups | undefined;
59
+ protected _shipperContactInfo: ShipperContactInfo | undefined;
60
+ protected _milestoneNotifications: MilestoneNotifications | undefined;
62
61
  protected _orgs: Orgs | undefined;
63
62
  protected _payments: Payments | undefined;
63
+ protected _root: Root | undefined;
64
64
  protected _users: Users | undefined;
65
65
  protected _notifications: Notifications | undefined;
66
66
  protected _orgConnectionInfos: OrgConnectionInfos | undefined;
67
67
  constructor(_options?: ChrtClient.Options);
68
- get root(): Root;
69
68
  get dev(): Dev;
70
- get connections(): Connections;
71
- get courierPayDriverLineItemGroup(): CourierPayDriverLineItemGroup;
72
- get courierPayDriverPayouts(): CourierPayDriverPayouts;
73
- get courierPayDriverRateSheets(): CourierPayDriverRateSheets;
74
69
  get drivers(): Drivers;
75
- get milestoneNotifications(): MilestoneNotifications;
76
70
  get milestones(): Milestones;
77
71
  get offChrtShipperOrgConnectionInfo(): OffChrtShipperOrgConnectionInfo;
78
- get orders(): Orders;
79
72
  get orgProfiles(): OrgProfiles;
80
- get shipperContactInfo(): ShipperContactInfo;
73
+ get orders(): Orders;
74
+ get courierPayDriverRateSheets(): CourierPayDriverRateSheets;
75
+ get courierPayDriverLineItemGroup(): CourierPayDriverLineItemGroup;
76
+ get courierPayDriverPayouts(): CourierPayDriverPayouts;
77
+ get connections(): Connections;
81
78
  get taskGroups(): TaskGroups;
79
+ get shipperContactInfo(): ShipperContactInfo;
80
+ get milestoneNotifications(): MilestoneNotifications;
82
81
  get orgs(): Orgs;
83
82
  get payments(): Payments;
83
+ get root(): Root;
84
84
  get users(): Users;
85
85
  get notifications(): Notifications;
86
86
  get orgConnectionInfos(): OrgConnectionInfos;
@@ -3,22 +3,22 @@
3
3
  */
4
4
  import * as core from "./core/index.mjs";
5
5
  import { mergeHeaders } from "./core/headers.mjs";
6
- import { Root } from "./api/resources/root/client/Client.mjs";
7
6
  import { Dev } from "./api/resources/dev/client/Client.mjs";
8
- import { Connections } from "./api/resources/connections/client/Client.mjs";
9
- import { CourierPayDriverLineItemGroup } from "./api/resources/courierPayDriverLineItemGroup/client/Client.mjs";
10
- import { CourierPayDriverPayouts } from "./api/resources/courierPayDriverPayouts/client/Client.mjs";
11
- import { CourierPayDriverRateSheets } from "./api/resources/courierPayDriverRateSheets/client/Client.mjs";
12
7
  import { Drivers } from "./api/resources/drivers/client/Client.mjs";
13
- import { MilestoneNotifications } from "./api/resources/milestoneNotifications/client/Client.mjs";
14
8
  import { Milestones } from "./api/resources/milestones/client/Client.mjs";
15
9
  import { OffChrtShipperOrgConnectionInfo } from "./api/resources/offChrtShipperOrgConnectionInfo/client/Client.mjs";
16
- import { Orders } from "./api/resources/orders/client/Client.mjs";
17
10
  import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.mjs";
18
- import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.mjs";
11
+ import { Orders } from "./api/resources/orders/client/Client.mjs";
12
+ import { CourierPayDriverRateSheets } from "./api/resources/courierPayDriverRateSheets/client/Client.mjs";
13
+ import { CourierPayDriverLineItemGroup } from "./api/resources/courierPayDriverLineItemGroup/client/Client.mjs";
14
+ import { CourierPayDriverPayouts } from "./api/resources/courierPayDriverPayouts/client/Client.mjs";
15
+ import { Connections } from "./api/resources/connections/client/Client.mjs";
19
16
  import { TaskGroups } from "./api/resources/taskGroups/client/Client.mjs";
17
+ import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.mjs";
18
+ import { MilestoneNotifications } from "./api/resources/milestoneNotifications/client/Client.mjs";
20
19
  import { Orgs } from "./api/resources/orgs/client/Client.mjs";
21
20
  import { Payments } from "./api/resources/payments/client/Client.mjs";
21
+ import { Root } from "./api/resources/root/client/Client.mjs";
22
22
  import { Users } from "./api/resources/users/client/Client.mjs";
23
23
  import { Notifications } from "./api/resources/notifications/client/Client.mjs";
24
24
  import { OrgConnectionInfos } from "./api/resources/orgConnectionInfos/client/Client.mjs";
@@ -27,67 +27,63 @@ export class ChrtClient {
27
27
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
28
28
  "X-Fern-Language": "JavaScript",
29
29
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
30
- "X-Fern-SDK-Version": "0.0.174",
31
- "User-Agent": "@chrt-inc/typescript-sdk/0.0.174",
30
+ "X-Fern-SDK-Version": "0.0.179",
31
+ "User-Agent": "@chrt-inc/typescript-sdk/0.0.179",
32
32
  "X-Fern-Runtime": core.RUNTIME.type,
33
33
  "X-Fern-Runtime-Version": core.RUNTIME.version,
34
34
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
35
35
  }
36
- get root() {
37
- var _a;
38
- return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new Root(this._options)));
39
- }
40
36
  get dev() {
41
37
  var _a;
42
38
  return ((_a = this._dev) !== null && _a !== void 0 ? _a : (this._dev = new Dev(this._options)));
43
39
  }
44
- get connections() {
40
+ get drivers() {
45
41
  var _a;
46
- return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Connections(this._options)));
42
+ return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Drivers(this._options)));
47
43
  }
48
- get courierPayDriverLineItemGroup() {
44
+ get milestones() {
49
45
  var _a;
50
- return ((_a = this._courierPayDriverLineItemGroup) !== null && _a !== void 0 ? _a : (this._courierPayDriverLineItemGroup = new CourierPayDriverLineItemGroup(this._options)));
46
+ return ((_a = this._milestones) !== null && _a !== void 0 ? _a : (this._milestones = new Milestones(this._options)));
51
47
  }
52
- get courierPayDriverPayouts() {
48
+ get offChrtShipperOrgConnectionInfo() {
53
49
  var _a;
54
- return ((_a = this._courierPayDriverPayouts) !== null && _a !== void 0 ? _a : (this._courierPayDriverPayouts = new CourierPayDriverPayouts(this._options)));
50
+ return ((_a = this._offChrtShipperOrgConnectionInfo) !== null && _a !== void 0 ? _a : (this._offChrtShipperOrgConnectionInfo = new OffChrtShipperOrgConnectionInfo(this._options)));
55
51
  }
56
- get courierPayDriverRateSheets() {
52
+ get orgProfiles() {
57
53
  var _a;
58
- return ((_a = this._courierPayDriverRateSheets) !== null && _a !== void 0 ? _a : (this._courierPayDriverRateSheets = new CourierPayDriverRateSheets(this._options)));
54
+ return ((_a = this._orgProfiles) !== null && _a !== void 0 ? _a : (this._orgProfiles = new OrgProfiles(this._options)));
59
55
  }
60
- get drivers() {
56
+ get orders() {
61
57
  var _a;
62
- return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Drivers(this._options)));
58
+ return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Orders(this._options)));
63
59
  }
64
- get milestoneNotifications() {
60
+ get courierPayDriverRateSheets() {
65
61
  var _a;
66
- return ((_a = this._milestoneNotifications) !== null && _a !== void 0 ? _a : (this._milestoneNotifications = new MilestoneNotifications(this._options)));
62
+ return ((_a = this._courierPayDriverRateSheets) !== null && _a !== void 0 ? _a : (this._courierPayDriverRateSheets = new CourierPayDriverRateSheets(this._options)));
67
63
  }
68
- get milestones() {
64
+ get courierPayDriverLineItemGroup() {
69
65
  var _a;
70
- return ((_a = this._milestones) !== null && _a !== void 0 ? _a : (this._milestones = new Milestones(this._options)));
66
+ return ((_a = this._courierPayDriverLineItemGroup) !== null && _a !== void 0 ? _a : (this._courierPayDriverLineItemGroup = new CourierPayDriverLineItemGroup(this._options)));
71
67
  }
72
- get offChrtShipperOrgConnectionInfo() {
68
+ get courierPayDriverPayouts() {
73
69
  var _a;
74
- return ((_a = this._offChrtShipperOrgConnectionInfo) !== null && _a !== void 0 ? _a : (this._offChrtShipperOrgConnectionInfo = new OffChrtShipperOrgConnectionInfo(this._options)));
70
+ return ((_a = this._courierPayDriverPayouts) !== null && _a !== void 0 ? _a : (this._courierPayDriverPayouts = new CourierPayDriverPayouts(this._options)));
75
71
  }
76
- get orders() {
72
+ get connections() {
77
73
  var _a;
78
- return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Orders(this._options)));
74
+ return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Connections(this._options)));
79
75
  }
80
- get orgProfiles() {
76
+ get taskGroups() {
81
77
  var _a;
82
- return ((_a = this._orgProfiles) !== null && _a !== void 0 ? _a : (this._orgProfiles = new OrgProfiles(this._options)));
78
+ return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new TaskGroups(this._options)));
83
79
  }
84
80
  get shipperContactInfo() {
85
81
  var _a;
86
82
  return ((_a = this._shipperContactInfo) !== null && _a !== void 0 ? _a : (this._shipperContactInfo = new ShipperContactInfo(this._options)));
87
83
  }
88
- get taskGroups() {
84
+ get milestoneNotifications() {
89
85
  var _a;
90
- return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new TaskGroups(this._options)));
86
+ return ((_a = this._milestoneNotifications) !== null && _a !== void 0 ? _a : (this._milestoneNotifications = new MilestoneNotifications(this._options)));
91
87
  }
92
88
  get orgs() {
93
89
  var _a;
@@ -97,6 +93,10 @@ export class ChrtClient {
97
93
  var _a;
98
94
  return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new Payments(this._options)));
99
95
  }
96
+ get root() {
97
+ var _a;
98
+ return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new Root(this._options)));
99
+ }
100
100
  get users() {
101
101
  var _a;
102
102
  return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Users(this._options)));
@@ -1,3 +1,3 @@
1
- export * from "./resources/index.mjs";
2
1
  export * from "./types/index.mjs";
3
2
  export * from "./errors/index.mjs";
3
+ export * from "./resources/index.mjs";
@@ -1,3 +1,3 @@
1
- export * from "./resources/index.mjs";
2
1
  export * from "./types/index.mjs";
3
2
  export * from "./errors/index.mjs";
3
+ export * from "./resources/index.mjs";
@@ -32,24 +32,24 @@ export declare class Connections {
32
32
  constructor(_options?: Connections.Options);
33
33
  get connectionToCourier(): ConnectionToCourier;
34
34
  /**
35
- * List all couriers connected to the current org
35
+ * Lists all shipper organizations connected to the authenticated courier organization.
36
36
  *
37
37
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
38
38
  *
39
39
  * @example
40
- * await client.connections.listCouriers()
40
+ * await client.connections.listShippers()
41
41
  */
42
- listCouriers(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.CourierOrgConnectionInfo1[]>;
43
- private __listCouriers;
42
+ listShippers(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ShipperOrgConnectionInfo1[]>;
43
+ private __listShippers;
44
44
  /**
45
- * List all shippers connected to the current org
45
+ * Lists all courier organizations connected to the authenticated shipper organization.
46
46
  *
47
47
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
48
48
  *
49
49
  * @example
50
- * await client.connections.listShippers()
50
+ * await client.connections.listCouriers()
51
51
  */
52
- listShippers(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ShipperOrgConnectionInfo1[]>;
53
- private __listShippers;
52
+ listCouriers(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.CourierOrgConnectionInfo1[]>;
53
+ private __listCouriers;
54
54
  protected _getAuthorizationHeader(): Promise<string | undefined>;
55
55
  }
@@ -24,21 +24,21 @@ export class Connections {
24
24
  return ((_a = this._connectionToCourier) !== null && _a !== void 0 ? _a : (this._connectionToCourier = new ConnectionToCourier(this._options)));
25
25
  }
26
26
  /**
27
- * List all couriers connected to the current org
27
+ * Lists all shipper organizations connected to the authenticated courier organization.
28
28
  *
29
29
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
30
30
  *
31
31
  * @example
32
- * await client.connections.listCouriers()
32
+ * await client.connections.listShippers()
33
33
  */
34
- listCouriers(requestOptions) {
35
- return core.HttpResponsePromise.fromPromise(this.__listCouriers(requestOptions));
34
+ listShippers(requestOptions) {
35
+ return core.HttpResponsePromise.fromPromise(this.__listShippers(requestOptions));
36
36
  }
37
- __listCouriers(requestOptions) {
37
+ __listShippers(requestOptions) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
39
  var _a, _b, _c, _d;
40
40
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
41
- 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/connections/couriers/list"),
41
+ 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/connections/shippers/list"),
42
42
  method: "GET",
43
43
  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),
44
44
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -63,7 +63,7 @@ export class Connections {
63
63
  rawResponse: _response.rawResponse,
64
64
  });
65
65
  case "timeout":
66
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/connections/couriers/list.");
66
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/connections/shippers/list.");
67
67
  case "unknown":
68
68
  throw new errors.ChrtError({
69
69
  message: _response.error.errorMessage,
@@ -73,21 +73,21 @@ export class Connections {
73
73
  });
74
74
  }
75
75
  /**
76
- * List all shippers connected to the current org
76
+ * Lists all courier organizations connected to the authenticated shipper organization.
77
77
  *
78
78
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
79
79
  *
80
80
  * @example
81
- * await client.connections.listShippers()
81
+ * await client.connections.listCouriers()
82
82
  */
83
- listShippers(requestOptions) {
84
- return core.HttpResponsePromise.fromPromise(this.__listShippers(requestOptions));
83
+ listCouriers(requestOptions) {
84
+ return core.HttpResponsePromise.fromPromise(this.__listCouriers(requestOptions));
85
85
  }
86
- __listShippers(requestOptions) {
86
+ __listCouriers(requestOptions) {
87
87
  return __awaiter(this, void 0, void 0, function* () {
88
88
  var _a, _b, _c, _d;
89
89
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
90
- 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/connections/shippers/list"),
90
+ 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/connections/couriers/list"),
91
91
  method: "GET",
92
92
  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),
93
93
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -112,7 +112,7 @@ export class Connections {
112
112
  rawResponse: _response.rawResponse,
113
113
  });
114
114
  case "timeout":
115
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/connections/shippers/list.");
115
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/connections/couriers/list.");
116
116
  case "unknown":
117
117
  throw new errors.ChrtError({
118
118
  message: _response.error.errorMessage,
@@ -29,7 +29,7 @@ export declare class ConnectionToCourier {
29
29
  protected readonly _options: ConnectionToCourier.Options;
30
30
  constructor(_options?: ConnectionToCourier.Options);
31
31
  /**
32
- * Body: Courier Handle, Shipper Org Id from JWT
32
+ * Creates a new connection between a shipper and courier organization using the courier's handle.
33
33
  *
34
34
  * @param {Chrt.connections.CreateConnectionReq} request
35
35
  * @param {ConnectionToCourier.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class ConnectionToCourier {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Body: Courier Handle, Shipper Org Id from JWT
23
+ * Creates a new connection between a shipper and courier organization using the courier's handle.
24
24
  *
25
25
  * @param {Chrt.connections.CreateConnectionReq} request
26
26
  * @param {ConnectionToCourier.RequestOptions} requestOptions - Request-specific configuration.
@@ -35,62 +35,62 @@ export declare class CourierPayDriverLineItemGroup {
35
35
  get addLineItems(): AddLineItems;
36
36
  get removeLineItems(): RemoveLineItems;
37
37
  /**
38
- * Get a courier pay driver line item group by task group ID
38
+ * Previews calculated line items for a driver based on rate sheet and task group without creating the group.
39
39
  *
40
- * @param {string} taskGroupId
40
+ * @param {Chrt.CourierPayDriverLineItemGroupPreviewRequest} request
41
41
  * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
42
42
  *
43
43
  * @throws {@link Chrt.UnprocessableEntityError}
44
44
  *
45
45
  * @example
46
- * await client.courierPayDriverLineItemGroup.byTaskGroupId("task_group_id")
46
+ * await client.courierPayDriverLineItemGroup.preview({
47
+ * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
48
+ * task_group_id: "task_group_id"
49
+ * })
47
50
  */
48
- byTaskGroupId(taskGroupId: string, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
49
- private __byTaskGroupId;
51
+ preview(request: Chrt.CourierPayDriverLineItemGroupPreviewRequest, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroupClientCreate1>;
52
+ private __preview;
50
53
  /**
51
- * Create a courier pay driver line item group by calculating line items from rate sheet and task group
54
+ * Retrieves a courier driver line item group by its ID.
52
55
  *
53
- * @param {Chrt.CourierPayDriverLineItemGroupCreateRequest} request
56
+ * @param {string} id
54
57
  * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
55
58
  *
56
59
  * @throws {@link Chrt.UnprocessableEntityError}
57
60
  *
58
61
  * @example
59
- * await client.courierPayDriverLineItemGroup.create({
60
- * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
61
- * task_group_id: "task_group_id"
62
- * })
62
+ * await client.courierPayDriverLineItemGroup.getById("id")
63
63
  */
64
- create(request: Chrt.CourierPayDriverLineItemGroupCreateRequest, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<string>;
65
- private __create;
64
+ getById(id: string, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
65
+ private __getById;
66
66
  /**
67
- * Calculate a courier pay driver line item group
67
+ * Retrieves a courier driver line item group by its associated task group ID.
68
68
  *
69
- * @param {Chrt.CourierPayDriverLineItemGroupPreviewRequest} request
69
+ * @param {string} taskGroupId
70
70
  * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
71
71
  *
72
72
  * @throws {@link Chrt.UnprocessableEntityError}
73
73
  *
74
74
  * @example
75
- * await client.courierPayDriverLineItemGroup.preview({
76
- * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
77
- * task_group_id: "task_group_id"
78
- * })
75
+ * await client.courierPayDriverLineItemGroup.byTaskGroupId("task_group_id")
79
76
  */
80
- preview(request: Chrt.CourierPayDriverLineItemGroupPreviewRequest, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroupClientCreate1>;
81
- private __preview;
77
+ byTaskGroupId(taskGroupId: string, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
78
+ private __byTaskGroupId;
82
79
  /**
83
- * Get a courier pay driver line item group by ID
80
+ * Creates a courier driver line item group by calculating items from rate sheet and task group.
84
81
  *
85
- * @param {string} id
82
+ * @param {Chrt.CourierPayDriverLineItemGroupCreateRequest} request
86
83
  * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
87
84
  *
88
85
  * @throws {@link Chrt.UnprocessableEntityError}
89
86
  *
90
87
  * @example
91
- * await client.courierPayDriverLineItemGroup.getById("id")
88
+ * await client.courierPayDriverLineItemGroup.create({
89
+ * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
90
+ * task_group_id: "task_group_id"
91
+ * })
92
92
  */
93
- getById(id: string, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
94
- private __getById;
93
+ create(request: Chrt.CourierPayDriverLineItemGroupCreateRequest, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<string>;
94
+ private __create;
95
95
  protected _getAuthorizationHeader(): Promise<string | undefined>;
96
96
  }