@chrt-inc/typescript-sdk 0.0.174 → 0.0.183

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 +28 -10
  27. package/dist/cjs/api/resources/dev/client/Client.js +103 -46
  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 +28 -10
  173. package/dist/esm/api/resources/dev/client/Client.mjs +103 -46
  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 +1196 -764
  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
@@ -20,7 +20,7 @@ export class ShipperContactInfo {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Get my own shipper contact info (for authenticated shippers users)
23
+ * Retrieves the authenticated user's own shipper contact information.
24
24
  *
25
25
  * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -69,27 +69,21 @@ export class ShipperContactInfo {
69
69
  });
70
70
  }
71
71
  /**
72
- * Get all contacts accessible to courier org for a specific on-platform shipper.
73
- * Returns:
74
- * 1. Contacts created by the courier org that are linked to the shipper org
75
- * 2. Contacts created by the shipper org themselves (if courier and shipper are connected)
72
+ * Lists all shipper contacts created by the authenticated organization.
76
73
  *
77
- * @param {string} shipperOrgId
78
74
  * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
79
75
  *
80
- * @throws {@link Chrt.UnprocessableEntityError}
81
- *
82
76
  * @example
83
- * await client.shipperContactInfo.listCourierContactsByShipperOrgId("shipper_org_id")
77
+ * await client.shipperContactInfo.listByJwtOrgId()
84
78
  */
85
- listCourierContactsByShipperOrgId(shipperOrgId, requestOptions) {
86
- return core.HttpResponsePromise.fromPromise(this.__listCourierContactsByShipperOrgId(shipperOrgId, requestOptions));
79
+ listByJwtOrgId(requestOptions) {
80
+ return core.HttpResponsePromise.fromPromise(this.__listByJwtOrgId(requestOptions));
87
81
  }
88
- __listCourierContactsByShipperOrgId(shipperOrgId, requestOptions) {
82
+ __listByJwtOrgId(requestOptions) {
89
83
  return __awaiter(this, void 0, void 0, function* () {
90
84
  var _a, _b, _c, _d;
91
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
92
- 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/shipper_contact_info/courier_contacts/list/${encodeURIComponent(shipperOrgId)}`),
86
+ 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/shipper_contact_info/list/by_jwt_org_id"),
93
87
  method: "GET",
94
88
  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),
95
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -100,16 +94,11 @@ export class ShipperContactInfo {
100
94
  return { data: _response.body, rawResponse: _response.rawResponse };
101
95
  }
102
96
  if (_response.error.reason === "status-code") {
103
- switch (_response.error.statusCode) {
104
- case 422:
105
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
106
- default:
107
- throw new errors.ChrtError({
108
- statusCode: _response.error.statusCode,
109
- body: _response.error.body,
110
- rawResponse: _response.rawResponse,
111
- });
112
- }
97
+ throw new errors.ChrtError({
98
+ statusCode: _response.error.statusCode,
99
+ body: _response.error.body,
100
+ rawResponse: _response.rawResponse,
101
+ });
113
102
  }
114
103
  switch (_response.error.reason) {
115
104
  case "non-json":
@@ -119,7 +108,7 @@ export class ShipperContactInfo {
119
108
  rawResponse: _response.rawResponse,
120
109
  });
121
110
  case "timeout":
122
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/courier_contacts/list/{shipper_org_id}.");
111
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/by_jwt_org_id.");
123
112
  case "unknown":
124
113
  throw new errors.ChrtError({
125
114
  message: _response.error.errorMessage,
@@ -129,31 +118,26 @@ export class ShipperContactInfo {
129
118
  });
130
119
  }
131
120
  /**
132
- * Create shipper contact info for off-platform shipper (scenario 3)
121
+ * Lists all shipper contacts accessible to the courier organization for a specific on-platform shipper.
133
122
  *
134
- * @param {Chrt.ShipperContactInfoClientCreate1} request
123
+ * @param {string} shipperOrgId
135
124
  * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
136
125
  *
137
126
  * @throws {@link Chrt.UnprocessableEntityError}
138
127
  *
139
128
  * @example
140
- * await client.shipperContactInfo.createOffPlatform({
141
- * schema_version: 1
142
- * })
129
+ * await client.shipperContactInfo.listCourierContactsByShipperOrgId("shipper_org_id")
143
130
  */
144
- createOffPlatform(request, requestOptions) {
145
- return core.HttpResponsePromise.fromPromise(this.__createOffPlatform(request, requestOptions));
131
+ listCourierContactsByShipperOrgId(shipperOrgId, requestOptions) {
132
+ return core.HttpResponsePromise.fromPromise(this.__listCourierContactsByShipperOrgId(shipperOrgId, requestOptions));
146
133
  }
147
- __createOffPlatform(request, requestOptions) {
134
+ __listCourierContactsByShipperOrgId(shipperOrgId, requestOptions) {
148
135
  return __awaiter(this, void 0, void 0, function* () {
149
136
  var _a, _b, _c, _d;
150
137
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
151
- 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/shipper_contact_info/create/off_platform"),
152
- 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/shipper_contact_info/courier_contacts/list/${encodeURIComponent(shipperOrgId)}`),
139
+ method: "GET",
153
140
  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),
154
- contentType: "application/json",
155
- requestType: "json",
156
- body: request,
157
141
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
158
142
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
159
143
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -181,7 +165,7 @@ export class ShipperContactInfo {
181
165
  rawResponse: _response.rawResponse,
182
166
  });
183
167
  case "timeout":
184
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/off_platform.");
168
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/courier_contacts/list/{shipper_org_id}.");
185
169
  case "unknown":
186
170
  throw new errors.ChrtError({
187
171
  message: _response.error.errorMessage,
@@ -191,31 +175,26 @@ export class ShipperContactInfo {
191
175
  });
192
176
  }
193
177
  /**
194
- * Create shipper contact info for on-platform shipper (scenarios 1 & 2)
178
+ * Lists all shipper contacts for a specific off-platform shipper connection.
195
179
  *
196
- * @param {Chrt.ShipperContactInfoClientCreate1} request
180
+ * @param {string} offChrtShipperOrgConnectionInfoId
197
181
  * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
198
182
  *
199
183
  * @throws {@link Chrt.UnprocessableEntityError}
200
184
  *
201
185
  * @example
202
- * await client.shipperContactInfo.createOnPlatform({
203
- * schema_version: 1
204
- * })
186
+ * await client.shipperContactInfo.listByOffChrtShipperOrgConnectionInfoId("off_chrt_shipper_org_connection_info_id")
205
187
  */
206
- createOnPlatform(request, requestOptions) {
207
- return core.HttpResponsePromise.fromPromise(this.__createOnPlatform(request, requestOptions));
188
+ listByOffChrtShipperOrgConnectionInfoId(offChrtShipperOrgConnectionInfoId, requestOptions) {
189
+ return core.HttpResponsePromise.fromPromise(this.__listByOffChrtShipperOrgConnectionInfoId(offChrtShipperOrgConnectionInfoId, requestOptions));
208
190
  }
209
- __createOnPlatform(request, requestOptions) {
191
+ __listByOffChrtShipperOrgConnectionInfoId(offChrtShipperOrgConnectionInfoId, requestOptions) {
210
192
  return __awaiter(this, void 0, void 0, function* () {
211
193
  var _a, _b, _c, _d;
212
194
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
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/shipper_contact_info/create/on_platform"),
214
- method: "POST",
195
+ 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/shipper_contact_info/list/${encodeURIComponent(offChrtShipperOrgConnectionInfoId)}`),
196
+ method: "GET",
215
197
  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),
216
- contentType: "application/json",
217
- requestType: "json",
218
- body: request,
219
198
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
220
199
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
221
200
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -243,7 +222,7 @@ export class ShipperContactInfo {
243
222
  rawResponse: _response.rawResponse,
244
223
  });
245
224
  case "timeout":
246
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/on_platform.");
225
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/{off_chrt_shipper_org_connection_info_id}.");
247
226
  case "unknown":
248
227
  throw new errors.ChrtError({
249
228
  message: _response.error.errorMessage,
@@ -253,23 +232,25 @@ export class ShipperContactInfo {
253
232
  });
254
233
  }
255
234
  /**
235
+ * Retrieves a specific shipper contact by ID if authorized to access it.
236
+ *
256
237
  * @param {string} id
257
238
  * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
258
239
  *
259
240
  * @throws {@link Chrt.UnprocessableEntityError}
260
241
  *
261
242
  * @example
262
- * await client.shipperContactInfo.deleteById("id")
243
+ * await client.shipperContactInfo.getById("id")
263
244
  */
264
- deleteById(id, requestOptions) {
265
- return core.HttpResponsePromise.fromPromise(this.__deleteById(id, requestOptions));
245
+ getById(id, requestOptions) {
246
+ return core.HttpResponsePromise.fromPromise(this.__getById(id, requestOptions));
266
247
  }
267
- __deleteById(id, requestOptions) {
248
+ __getById(id, requestOptions) {
268
249
  return __awaiter(this, void 0, void 0, function* () {
269
250
  var _a, _b, _c, _d;
270
251
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
271
- 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/shipper_contact_info/delete/${encodeURIComponent(id)}`),
272
- method: "DELETE",
252
+ 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/shipper_contact_info/${encodeURIComponent(id)}`),
253
+ method: "GET",
273
254
  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),
274
255
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
275
256
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -298,7 +279,7 @@ export class ShipperContactInfo {
298
279
  rawResponse: _response.rawResponse,
299
280
  });
300
281
  case "timeout":
301
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/shipper_contact_info/delete/{id}.");
282
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/{id}.");
302
283
  case "unknown":
303
284
  throw new errors.ChrtError({
304
285
  message: _response.error.errorMessage,
@@ -308,23 +289,31 @@ export class ShipperContactInfo {
308
289
  });
309
290
  }
310
291
  /**
311
- * Get all contacts for my organization which were created by the shipper org (for authenticated shipper orgs)
292
+ * Creates contact information for an on-platform shipper organization or user.
312
293
  *
294
+ * @param {Chrt.ShipperContactInfoClientCreate1} request
313
295
  * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
314
296
  *
297
+ * @throws {@link Chrt.UnprocessableEntityError}
298
+ *
315
299
  * @example
316
- * await client.shipperContactInfo.listByJwtOrgId()
300
+ * await client.shipperContactInfo.createOnPlatform({
301
+ * schema_version: 1
302
+ * })
317
303
  */
318
- listByJwtOrgId(requestOptions) {
319
- return core.HttpResponsePromise.fromPromise(this.__listByJwtOrgId(requestOptions));
304
+ createOnPlatform(request, requestOptions) {
305
+ return core.HttpResponsePromise.fromPromise(this.__createOnPlatform(request, requestOptions));
320
306
  }
321
- __listByJwtOrgId(requestOptions) {
307
+ __createOnPlatform(request, requestOptions) {
322
308
  return __awaiter(this, void 0, void 0, function* () {
323
309
  var _a, _b, _c, _d;
324
310
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
325
- 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/shipper_contact_info/list/by_jwt_org_id"),
326
- method: "GET",
311
+ 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/shipper_contact_info/create/on_platform"),
312
+ method: "POST",
327
313
  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),
314
+ contentType: "application/json",
315
+ requestType: "json",
316
+ body: request,
328
317
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
329
318
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
330
319
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -333,11 +322,16 @@ export class ShipperContactInfo {
333
322
  return { data: _response.body, rawResponse: _response.rawResponse };
334
323
  }
335
324
  if (_response.error.reason === "status-code") {
336
- throw new errors.ChrtError({
337
- statusCode: _response.error.statusCode,
338
- body: _response.error.body,
339
- rawResponse: _response.rawResponse,
340
- });
325
+ switch (_response.error.statusCode) {
326
+ case 422:
327
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
328
+ default:
329
+ throw new errors.ChrtError({
330
+ statusCode: _response.error.statusCode,
331
+ body: _response.error.body,
332
+ rawResponse: _response.rawResponse,
333
+ });
334
+ }
341
335
  }
342
336
  switch (_response.error.reason) {
343
337
  case "non-json":
@@ -347,7 +341,7 @@ export class ShipperContactInfo {
347
341
  rawResponse: _response.rawResponse,
348
342
  });
349
343
  case "timeout":
350
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/by_jwt_org_id.");
344
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/on_platform.");
351
345
  case "unknown":
352
346
  throw new errors.ChrtError({
353
347
  message: _response.error.errorMessage,
@@ -357,27 +351,31 @@ export class ShipperContactInfo {
357
351
  });
358
352
  }
359
353
  /**
360
- * Get all contacts accessible to courier org for a specific off-platform shipper.
361
- * Returns only contacts created by the courier org since off-platform shippers cannot create their own contacts.
354
+ * Creates contact information for an off-platform shipper using connection info.
362
355
  *
363
- * @param {string} offChrtShipperOrgConnectionInfoId
356
+ * @param {Chrt.ShipperContactInfoClientCreate1} request
364
357
  * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
365
358
  *
366
359
  * @throws {@link Chrt.UnprocessableEntityError}
367
360
  *
368
361
  * @example
369
- * await client.shipperContactInfo.listByOffChrtShipperOrgConnectionInfoId("off_chrt_shipper_org_connection_info_id")
362
+ * await client.shipperContactInfo.createOffPlatform({
363
+ * schema_version: 1
364
+ * })
370
365
  */
371
- listByOffChrtShipperOrgConnectionInfoId(offChrtShipperOrgConnectionInfoId, requestOptions) {
372
- return core.HttpResponsePromise.fromPromise(this.__listByOffChrtShipperOrgConnectionInfoId(offChrtShipperOrgConnectionInfoId, requestOptions));
366
+ createOffPlatform(request, requestOptions) {
367
+ return core.HttpResponsePromise.fromPromise(this.__createOffPlatform(request, requestOptions));
373
368
  }
374
- __listByOffChrtShipperOrgConnectionInfoId(offChrtShipperOrgConnectionInfoId, requestOptions) {
369
+ __createOffPlatform(request, requestOptions) {
375
370
  return __awaiter(this, void 0, void 0, function* () {
376
371
  var _a, _b, _c, _d;
377
372
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
378
- 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/shipper_contact_info/list/${encodeURIComponent(offChrtShipperOrgConnectionInfoId)}`),
379
- method: "GET",
373
+ 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/shipper_contact_info/create/off_platform"),
374
+ method: "POST",
380
375
  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),
376
+ contentType: "application/json",
377
+ requestType: "json",
378
+ body: request,
381
379
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
382
380
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
383
381
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -405,7 +403,7 @@ export class ShipperContactInfo {
405
403
  rawResponse: _response.rawResponse,
406
404
  });
407
405
  case "timeout":
408
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/{off_chrt_shipper_org_connection_info_id}.");
406
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/off_platform.");
409
407
  case "unknown":
410
408
  throw new errors.ChrtError({
411
409
  message: _response.error.errorMessage,
@@ -415,6 +413,8 @@ export class ShipperContactInfo {
415
413
  });
416
414
  }
417
415
  /**
416
+ * Updates existing shipper contact information owned by the authenticated organization.
417
+ *
418
418
  * @param {string} shipperContactInfoId
419
419
  * @param {Chrt.ShipperContactInfoClientUpdate1} request
420
420
  * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
@@ -474,7 +474,7 @@ export class ShipperContactInfo {
474
474
  });
475
475
  }
476
476
  /**
477
- * Get a specific shipper contact info by ID
477
+ * Deletes shipper contact information owned by the authenticated organization.
478
478
  *
479
479
  * @param {string} id
480
480
  * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
@@ -482,17 +482,17 @@ export class ShipperContactInfo {
482
482
  * @throws {@link Chrt.UnprocessableEntityError}
483
483
  *
484
484
  * @example
485
- * await client.shipperContactInfo.getById("id")
485
+ * await client.shipperContactInfo.deleteById("id")
486
486
  */
487
- getById(id, requestOptions) {
488
- return core.HttpResponsePromise.fromPromise(this.__getById(id, requestOptions));
487
+ deleteById(id, requestOptions) {
488
+ return core.HttpResponsePromise.fromPromise(this.__deleteById(id, requestOptions));
489
489
  }
490
- __getById(id, requestOptions) {
490
+ __deleteById(id, requestOptions) {
491
491
  return __awaiter(this, void 0, void 0, function* () {
492
492
  var _a, _b, _c, _d;
493
493
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
494
- 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/shipper_contact_info/${encodeURIComponent(id)}`),
495
- method: "GET",
494
+ 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/shipper_contact_info/delete/${encodeURIComponent(id)}`),
495
+ method: "DELETE",
496
496
  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),
497
497
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
498
498
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -521,7 +521,7 @@ export class ShipperContactInfo {
521
521
  rawResponse: _response.rawResponse,
522
522
  });
523
523
  case "timeout":
524
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/{id}.");
524
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/shipper_contact_info/delete/{id}.");
525
525
  case "unknown":
526
526
  throw new errors.ChrtError({
527
527
  message: _response.error.errorMessage,
@@ -8,14 +8,14 @@ import * as Chrt from "../../../../index.mjs";
8
8
  */
9
9
  export interface ShipperContactInfoClientUpdate1 {
10
10
  company_name?: string;
11
+ industry?: string;
12
+ street_address?: Chrt.Feature;
11
13
  contact_first_name?: string;
12
14
  contact_last_name?: string;
15
+ phone_number_primary?: string;
16
+ phone_number_secondary?: string;
13
17
  email_address_primary?: string;
14
18
  email_address_secondary?: string;
15
- industry?: string;
16
19
  job_title?: string;
17
20
  notes?: string;
18
- phone_number_primary?: string;
19
- phone_number_secondary?: string;
20
- street_address?: Chrt.Feature;
21
21
  }
@@ -35,7 +35,7 @@ export declare class TaskGroups {
35
35
  get full(): Full;
36
36
  get togglePause(): TogglePause;
37
37
  /**
38
- * Uses the org_id from the JWT - returns task groups and with their list of tasks for the courier org
38
+ * Lists all task groups assigned to the authenticated courier organization with their associated tasks.
39
39
  *
40
40
  * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
41
41
  *
@@ -45,28 +45,21 @@ export declare class TaskGroups {
45
45
  listByCourierOrgId(requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.MultipleTaskGroupsWithTasks>;
46
46
  private __listByCourierOrgId;
47
47
  /**
48
- * @param {string} driverId
49
- * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
48
+ * Retrieves a specific task group by ID with its associated tasks.
50
49
  *
51
- * @throws {@link Chrt.UnprocessableEntityError}
52
- *
53
- * @example
54
- * await client.taskGroups.listByDriverId("driver_id")
55
- */
56
- listByDriverId(driverId: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroup1[]>;
57
- private __listByDriverId;
58
- /**
59
50
  * @param {string} id
60
51
  * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
61
52
  *
62
53
  * @throws {@link Chrt.UnprocessableEntityError}
63
54
  *
64
55
  * @example
65
- * await client.taskGroups.start("id")
56
+ * await client.taskGroups.getById("id")
66
57
  */
67
- start(id: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
68
- private __start;
58
+ getById(id: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupWithTasks>;
59
+ private __getById;
69
60
  /**
61
+ * Updates task group driver assignments by adding or removing drivers.
62
+ *
70
63
  * @param {Chrt.UpdateTaskGroupReq} request
71
64
  * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
72
65
  *
@@ -80,7 +73,20 @@ export declare class TaskGroups {
80
73
  update(request: Chrt.UpdateTaskGroupReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.UpdateTaskGroupRes>;
81
74
  private __update;
82
75
  /**
83
- * Returns a single task group and its tasks
76
+ * Lists all task groups assigned to a specific driver.
77
+ *
78
+ * @param {string} driverId
79
+ * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
80
+ *
81
+ * @throws {@link Chrt.UnprocessableEntityError}
82
+ *
83
+ * @example
84
+ * await client.taskGroups.listByDriverId("driver_id")
85
+ */
86
+ listByDriverId(driverId: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroup1[]>;
87
+ private __listByDriverId;
88
+ /**
89
+ * Starts a task group by changing its status to in-progress and updating the order status.
84
90
  *
85
91
  * @param {string} id
86
92
  * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
@@ -88,9 +94,9 @@ export declare class TaskGroups {
88
94
  * @throws {@link Chrt.UnprocessableEntityError}
89
95
  *
90
96
  * @example
91
- * await client.taskGroups.getById("id")
97
+ * await client.taskGroups.start("id")
92
98
  */
93
- getById(id: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupWithTasks>;
94
- private __getById;
99
+ start(id: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
100
+ private __start;
95
101
  protected _getAuthorizationHeader(): Promise<string | undefined>;
96
102
  }