@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
@@ -66,32 +66,55 @@ class CourierPayDriverLineItemGroup {
66
66
  return ((_a = this._removeLineItems) !== null && _a !== void 0 ? _a : (this._removeLineItems = new Client_js_2.RemoveLineItems(this._options)));
67
67
  }
68
68
  /**
69
- * Get a courier pay driver line item group by task group ID
69
+ * Previews calculated line items for a driver based on rate sheet and task group without creating the group.
70
70
  *
71
- * @param {string} taskGroupId
71
+ * @param {Chrt.CourierPayDriverLineItemGroupPreviewRequest} request
72
72
  * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
73
73
  *
74
74
  * @throws {@link Chrt.UnprocessableEntityError}
75
75
  *
76
76
  * @example
77
- * await client.courierPayDriverLineItemGroup.byTaskGroupId("task_group_id")
77
+ * await client.courierPayDriverLineItemGroup.preview({
78
+ * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
79
+ * task_group_id: "task_group_id"
80
+ * })
78
81
  */
79
- byTaskGroupId(taskGroupId, requestOptions) {
80
- return core.HttpResponsePromise.fromPromise(this.__byTaskGroupId(taskGroupId, requestOptions));
82
+ preview(request, requestOptions) {
83
+ return core.HttpResponsePromise.fromPromise(this.__preview(request, requestOptions));
81
84
  }
82
- __byTaskGroupId(taskGroupId, requestOptions) {
85
+ __preview(request, requestOptions) {
83
86
  return __awaiter(this, void 0, void 0, function* () {
84
87
  var _a, _b, _c, _d;
88
+ const { courier_pay_driver_rate_sheet_id: courierPayDriverRateSheetId, task_group_id: taskGroupId, dangerous_goods: dangerousGoods, holiday, weekend, after_hours: afterHours, } = request;
89
+ const _queryParams = {};
90
+ _queryParams["courier_pay_driver_rate_sheet_id"] = courierPayDriverRateSheetId;
91
+ _queryParams["task_group_id"] = taskGroupId;
92
+ if (dangerousGoods != null) {
93
+ _queryParams["dangerous_goods"] = dangerousGoods.toString();
94
+ }
95
+ if (holiday != null) {
96
+ _queryParams["holiday"] = holiday.toString();
97
+ }
98
+ if (weekend != null) {
99
+ _queryParams["weekend"] = weekend.toString();
100
+ }
101
+ if (afterHours != null) {
102
+ _queryParams["after_hours"] = afterHours.toString();
103
+ }
85
104
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
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/courier_pay_driver_line_item_groups/by_task_group/${encodeURIComponent(taskGroupId)}`),
105
+ 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/courier_pay_driver_line_item_groups/preview"),
87
106
  method: "GET",
88
107
  headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
108
+ queryParameters: _queryParams,
89
109
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
90
110
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
91
111
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
92
112
  });
93
113
  if (_response.ok) {
94
- return { data: _response.body, rawResponse: _response.rawResponse };
114
+ return {
115
+ data: _response.body,
116
+ rawResponse: _response.rawResponse,
117
+ };
95
118
  }
96
119
  if (_response.error.reason === "status-code") {
97
120
  switch (_response.error.statusCode) {
@@ -113,7 +136,7 @@ class CourierPayDriverLineItemGroup {
113
136
  rawResponse: _response.rawResponse,
114
137
  });
115
138
  case "timeout":
116
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/by_task_group/{task_group_id}.");
139
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/preview.");
117
140
  case "unknown":
118
141
  throw new errors.ChrtError({
119
142
  message: _response.error.errorMessage,
@@ -123,46 +146,26 @@ class CourierPayDriverLineItemGroup {
123
146
  });
124
147
  }
125
148
  /**
126
- * Create a courier pay driver line item group by calculating line items from rate sheet and task group
149
+ * Retrieves a courier driver line item group by its ID.
127
150
  *
128
- * @param {Chrt.CourierPayDriverLineItemGroupCreateRequest} request
151
+ * @param {string} id
129
152
  * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
130
153
  *
131
154
  * @throws {@link Chrt.UnprocessableEntityError}
132
155
  *
133
156
  * @example
134
- * await client.courierPayDriverLineItemGroup.create({
135
- * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
136
- * task_group_id: "task_group_id"
137
- * })
157
+ * await client.courierPayDriverLineItemGroup.getById("id")
138
158
  */
139
- create(request, requestOptions) {
140
- return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
159
+ getById(id, requestOptions) {
160
+ return core.HttpResponsePromise.fromPromise(this.__getById(id, requestOptions));
141
161
  }
142
- __create(request, requestOptions) {
162
+ __getById(id, requestOptions) {
143
163
  return __awaiter(this, void 0, void 0, function* () {
144
164
  var _a, _b, _c, _d;
145
- const { courier_pay_driver_rate_sheet_id: courierPayDriverRateSheetId, task_group_id: taskGroupId, dangerous_goods: dangerousGoods, holiday, weekend, after_hours: afterHours, } = request;
146
- const _queryParams = {};
147
- _queryParams["courier_pay_driver_rate_sheet_id"] = courierPayDriverRateSheetId;
148
- _queryParams["task_group_id"] = taskGroupId;
149
- if (dangerousGoods != null) {
150
- _queryParams["dangerous_goods"] = dangerousGoods.toString();
151
- }
152
- if (holiday != null) {
153
- _queryParams["holiday"] = holiday.toString();
154
- }
155
- if (weekend != null) {
156
- _queryParams["weekend"] = weekend.toString();
157
- }
158
- if (afterHours != null) {
159
- _queryParams["after_hours"] = afterHours.toString();
160
- }
161
165
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
162
- 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/courier_pay_driver_line_item_groups/create"),
163
- method: "POST",
166
+ 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/courier_pay_driver_line_item_groups/${encodeURIComponent(id)}`),
167
+ method: "GET",
164
168
  headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
165
- queryParameters: _queryParams,
166
169
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
167
170
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
168
171
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -190,7 +193,7 @@ class CourierPayDriverLineItemGroup {
190
193
  rawResponse: _response.rawResponse,
191
194
  });
192
195
  case "timeout":
193
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_line_item_groups/create.");
196
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/{id}.");
194
197
  case "unknown":
195
198
  throw new errors.ChrtError({
196
199
  message: _response.error.errorMessage,
@@ -200,55 +203,32 @@ class CourierPayDriverLineItemGroup {
200
203
  });
201
204
  }
202
205
  /**
203
- * Calculate a courier pay driver line item group
206
+ * Retrieves a courier driver line item group by its associated task group ID.
204
207
  *
205
- * @param {Chrt.CourierPayDriverLineItemGroupPreviewRequest} request
208
+ * @param {string} taskGroupId
206
209
  * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
207
210
  *
208
211
  * @throws {@link Chrt.UnprocessableEntityError}
209
212
  *
210
213
  * @example
211
- * await client.courierPayDriverLineItemGroup.preview({
212
- * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
213
- * task_group_id: "task_group_id"
214
- * })
214
+ * await client.courierPayDriverLineItemGroup.byTaskGroupId("task_group_id")
215
215
  */
216
- preview(request, requestOptions) {
217
- return core.HttpResponsePromise.fromPromise(this.__preview(request, requestOptions));
216
+ byTaskGroupId(taskGroupId, requestOptions) {
217
+ return core.HttpResponsePromise.fromPromise(this.__byTaskGroupId(taskGroupId, requestOptions));
218
218
  }
219
- __preview(request, requestOptions) {
219
+ __byTaskGroupId(taskGroupId, requestOptions) {
220
220
  return __awaiter(this, void 0, void 0, function* () {
221
221
  var _a, _b, _c, _d;
222
- const { courier_pay_driver_rate_sheet_id: courierPayDriverRateSheetId, task_group_id: taskGroupId, dangerous_goods: dangerousGoods, holiday, weekend, after_hours: afterHours, } = request;
223
- const _queryParams = {};
224
- _queryParams["courier_pay_driver_rate_sheet_id"] = courierPayDriverRateSheetId;
225
- _queryParams["task_group_id"] = taskGroupId;
226
- if (dangerousGoods != null) {
227
- _queryParams["dangerous_goods"] = dangerousGoods.toString();
228
- }
229
- if (holiday != null) {
230
- _queryParams["holiday"] = holiday.toString();
231
- }
232
- if (weekend != null) {
233
- _queryParams["weekend"] = weekend.toString();
234
- }
235
- if (afterHours != null) {
236
- _queryParams["after_hours"] = afterHours.toString();
237
- }
238
222
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
239
- 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/courier_pay_driver_line_item_groups/preview"),
223
+ 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/courier_pay_driver_line_item_groups/by_task_group/${encodeURIComponent(taskGroupId)}`),
240
224
  method: "GET",
241
225
  headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
242
- queryParameters: _queryParams,
243
226
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
244
227
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
245
228
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
246
229
  });
247
230
  if (_response.ok) {
248
- return {
249
- data: _response.body,
250
- rawResponse: _response.rawResponse,
251
- };
231
+ return { data: _response.body, rawResponse: _response.rawResponse };
252
232
  }
253
233
  if (_response.error.reason === "status-code") {
254
234
  switch (_response.error.statusCode) {
@@ -270,7 +250,7 @@ class CourierPayDriverLineItemGroup {
270
250
  rawResponse: _response.rawResponse,
271
251
  });
272
252
  case "timeout":
273
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/preview.");
253
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/by_task_group/{task_group_id}.");
274
254
  case "unknown":
275
255
  throw new errors.ChrtError({
276
256
  message: _response.error.errorMessage,
@@ -280,26 +260,46 @@ class CourierPayDriverLineItemGroup {
280
260
  });
281
261
  }
282
262
  /**
283
- * Get a courier pay driver line item group by ID
263
+ * Creates a courier driver line item group by calculating items from rate sheet and task group.
284
264
  *
285
- * @param {string} id
265
+ * @param {Chrt.CourierPayDriverLineItemGroupCreateRequest} request
286
266
  * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
287
267
  *
288
268
  * @throws {@link Chrt.UnprocessableEntityError}
289
269
  *
290
270
  * @example
291
- * await client.courierPayDriverLineItemGroup.getById("id")
271
+ * await client.courierPayDriverLineItemGroup.create({
272
+ * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
273
+ * task_group_id: "task_group_id"
274
+ * })
292
275
  */
293
- getById(id, requestOptions) {
294
- return core.HttpResponsePromise.fromPromise(this.__getById(id, requestOptions));
276
+ create(request, requestOptions) {
277
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
295
278
  }
296
- __getById(id, requestOptions) {
279
+ __create(request, requestOptions) {
297
280
  return __awaiter(this, void 0, void 0, function* () {
298
281
  var _a, _b, _c, _d;
282
+ const { courier_pay_driver_rate_sheet_id: courierPayDriverRateSheetId, task_group_id: taskGroupId, dangerous_goods: dangerousGoods, holiday, weekend, after_hours: afterHours, } = request;
283
+ const _queryParams = {};
284
+ _queryParams["courier_pay_driver_rate_sheet_id"] = courierPayDriverRateSheetId;
285
+ _queryParams["task_group_id"] = taskGroupId;
286
+ if (dangerousGoods != null) {
287
+ _queryParams["dangerous_goods"] = dangerousGoods.toString();
288
+ }
289
+ if (holiday != null) {
290
+ _queryParams["holiday"] = holiday.toString();
291
+ }
292
+ if (weekend != null) {
293
+ _queryParams["weekend"] = weekend.toString();
294
+ }
295
+ if (afterHours != null) {
296
+ _queryParams["after_hours"] = afterHours.toString();
297
+ }
299
298
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
300
- 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/courier_pay_driver_line_item_groups/${encodeURIComponent(id)}`),
301
- method: "GET",
299
+ 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/courier_pay_driver_line_item_groups/create"),
300
+ method: "POST",
302
301
  headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
302
+ queryParameters: _queryParams,
303
303
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
304
304
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
305
305
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -327,7 +327,7 @@ class CourierPayDriverLineItemGroup {
327
327
  rawResponse: _response.rawResponse,
328
328
  });
329
329
  case "timeout":
330
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/{id}.");
330
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_line_item_groups/create.");
331
331
  case "unknown":
332
332
  throw new errors.ChrtError({
333
333
  message: _response.error.errorMessage,
@@ -1,2 +1,2 @@
1
- export { type CourierPayDriverLineItemGroupCreateRequest } from "./CourierPayDriverLineItemGroupCreateRequest.js";
2
1
  export { type CourierPayDriverLineItemGroupPreviewRequest } from "./CourierPayDriverLineItemGroupPreviewRequest.js";
2
+ export { type CourierPayDriverLineItemGroupCreateRequest } from "./CourierPayDriverLineItemGroupCreateRequest.js";
@@ -29,7 +29,7 @@ export declare class AddLineItems {
29
29
  protected readonly _options: AddLineItems.Options;
30
30
  constructor(_options?: AddLineItems.Options);
31
31
  /**
32
- * Add line items to a courier pay driver line item group
32
+ * Adds additional line items to an existing courier driver line item group.
33
33
  *
34
34
  * @param {string} id
35
35
  * @param {Chrt.courierPayDriverLineItemGroup.AddLineItemsReq} request
@@ -56,7 +56,7 @@ class AddLineItems {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Add line items to a courier pay driver line item group
59
+ * Adds additional line items to an existing courier driver line item group.
60
60
  *
61
61
  * @param {string} id
62
62
  * @param {Chrt.courierPayDriverLineItemGroup.AddLineItemsReq} request
@@ -29,7 +29,7 @@ export declare class RemoveLineItems {
29
29
  protected readonly _options: RemoveLineItems.Options;
30
30
  constructor(_options?: RemoveLineItems.Options);
31
31
  /**
32
- * Remove line items from a courier pay driver line item group by exact match
32
+ * Removes specific line items from a courier driver line item group by exact match.
33
33
  *
34
34
  * @param {string} id
35
35
  * @param {Chrt.courierPayDriverLineItemGroup.RemoveLineItemsReq} request
@@ -56,7 +56,7 @@ class RemoveLineItems {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Remove line items from a courier pay driver line item group by exact match
59
+ * Removes specific line items from a courier driver line item group by exact match.
60
60
  *
61
61
  * @param {string} id
62
62
  * @param {Chrt.courierPayDriverLineItemGroup.RemoveLineItemsReq} request
@@ -29,22 +29,21 @@ export declare class CourierPayDriverPayouts {
29
29
  protected readonly _options: CourierPayDriverPayouts.Options;
30
30
  constructor(_options?: CourierPayDriverPayouts.Options);
31
31
  /**
32
- * Create a new courier pay driver payout from selected line item groups
32
+ * Retrieves a specific courier driver payout by ID for the authenticated organization.
33
33
  *
34
- * @param {Chrt.CourierPayDriverPayoutClientCreate1} request
34
+ * @param {string} id
35
35
  * @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
36
36
  *
37
37
  * @throws {@link Chrt.UnprocessableEntityError}
38
38
  *
39
39
  * @example
40
- * await client.courierPayDriverPayouts.create({
41
- * line_item_group_ids: ["line_item_group_ids"],
42
- * schema_version: 1
43
- * })
40
+ * await client.courierPayDriverPayouts.getById("id")
44
41
  */
45
- create(request: Chrt.CourierPayDriverPayoutClientCreate1, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<string>;
46
- private __create;
42
+ getById(id: string, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<unknown>;
43
+ private __getById;
47
44
  /**
45
+ * Lists all payouts for a specific driver within the authenticated organization.
46
+ *
48
47
  * @param {string} driverId
49
48
  * @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
50
49
  *
@@ -56,15 +55,20 @@ export declare class CourierPayDriverPayouts {
56
55
  listByDriverId(driverId: string, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<unknown>;
57
56
  private __listByDriverId;
58
57
  /**
59
- * @param {string} id
58
+ * Creates a new driver payout from selected line item groups.
59
+ *
60
+ * @param {Chrt.CourierPayDriverPayoutClientCreate1} request
60
61
  * @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
61
62
  *
62
63
  * @throws {@link Chrt.UnprocessableEntityError}
63
64
  *
64
65
  * @example
65
- * await client.courierPayDriverPayouts.getById("id")
66
+ * await client.courierPayDriverPayouts.create({
67
+ * schema_version: 1,
68
+ * line_item_group_ids: ["line_item_group_ids"]
69
+ * })
66
70
  */
67
- getById(id: string, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<unknown>;
68
- private __getById;
71
+ create(request: Chrt.CourierPayDriverPayoutClientCreate1, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<string>;
72
+ private __create;
69
73
  protected _getAuthorizationHeader(): Promise<string | undefined>;
70
74
  }
@@ -56,32 +56,26 @@ class CourierPayDriverPayouts {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Create a new courier pay driver payout from selected line item groups
59
+ * Retrieves a specific courier driver payout by ID for the authenticated organization.
60
60
  *
61
- * @param {Chrt.CourierPayDriverPayoutClientCreate1} request
61
+ * @param {string} id
62
62
  * @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
63
63
  *
64
64
  * @throws {@link Chrt.UnprocessableEntityError}
65
65
  *
66
66
  * @example
67
- * await client.courierPayDriverPayouts.create({
68
- * line_item_group_ids: ["line_item_group_ids"],
69
- * schema_version: 1
70
- * })
67
+ * await client.courierPayDriverPayouts.getById("id")
71
68
  */
72
- create(request, requestOptions) {
73
- return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
69
+ getById(id, requestOptions) {
70
+ return core.HttpResponsePromise.fromPromise(this.__getById(id, requestOptions));
74
71
  }
75
- __create(request, requestOptions) {
72
+ __getById(id, requestOptions) {
76
73
  return __awaiter(this, void 0, void 0, function* () {
77
74
  var _a, _b, _c, _d;
78
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/courier_pay_driver_payouts/create"),
80
- method: "POST",
76
+ 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/courier_pay_driver_payouts/${encodeURIComponent(id)}`),
77
+ method: "GET",
81
78
  headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
- contentType: "application/json",
83
- requestType: "json",
84
- body: request,
85
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
86
80
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
87
81
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -109,7 +103,7 @@ class CourierPayDriverPayouts {
109
103
  rawResponse: _response.rawResponse,
110
104
  });
111
105
  case "timeout":
112
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_payouts/create.");
106
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_payouts/{id}.");
113
107
  case "unknown":
114
108
  throw new errors.ChrtError({
115
109
  message: _response.error.errorMessage,
@@ -119,6 +113,8 @@ class CourierPayDriverPayouts {
119
113
  });
120
114
  }
121
115
  /**
116
+ * Lists all payouts for a specific driver within the authenticated organization.
117
+ *
122
118
  * @param {string} driverId
123
119
  * @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
124
120
  *
@@ -174,24 +170,32 @@ class CourierPayDriverPayouts {
174
170
  });
175
171
  }
176
172
  /**
177
- * @param {string} id
173
+ * Creates a new driver payout from selected line item groups.
174
+ *
175
+ * @param {Chrt.CourierPayDriverPayoutClientCreate1} request
178
176
  * @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
179
177
  *
180
178
  * @throws {@link Chrt.UnprocessableEntityError}
181
179
  *
182
180
  * @example
183
- * await client.courierPayDriverPayouts.getById("id")
181
+ * await client.courierPayDriverPayouts.create({
182
+ * schema_version: 1,
183
+ * line_item_group_ids: ["line_item_group_ids"]
184
+ * })
184
185
  */
185
- getById(id, requestOptions) {
186
- return core.HttpResponsePromise.fromPromise(this.__getById(id, requestOptions));
186
+ create(request, requestOptions) {
187
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
187
188
  }
188
- __getById(id, requestOptions) {
189
+ __create(request, requestOptions) {
189
190
  return __awaiter(this, void 0, void 0, function* () {
190
191
  var _a, _b, _c, _d;
191
192
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
192
- 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/courier_pay_driver_payouts/${encodeURIComponent(id)}`),
193
- method: "GET",
193
+ 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/courier_pay_driver_payouts/create"),
194
+ method: "POST",
194
195
  headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
196
+ contentType: "application/json",
197
+ requestType: "json",
198
+ body: request,
195
199
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
196
200
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
197
201
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -219,7 +223,7 @@ class CourierPayDriverPayouts {
219
223
  rawResponse: _response.rawResponse,
220
224
  });
221
225
  case "timeout":
222
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_payouts/{id}.");
226
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_payouts/create.");
223
227
  case "unknown":
224
228
  throw new errors.ChrtError({
225
229
  message: _response.error.errorMessage,
@@ -4,11 +4,11 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * line_item_group_ids: ["line_item_group_ids"],
8
- * schema_version: 1
7
+ * schema_version: 1,
8
+ * line_item_group_ids: ["line_item_group_ids"]
9
9
  * }
10
10
  */
11
11
  export interface CourierPayDriverPayoutClientCreate1 {
12
- line_item_group_ids: string[];
13
12
  schema_version: number;
13
+ line_item_group_ids: string[];
14
14
  }
@@ -29,7 +29,17 @@ export declare class CourierPayDriverRateSheets {
29
29
  protected readonly _options: CourierPayDriverRateSheets.Options;
30
30
  constructor(_options?: CourierPayDriverRateSheets.Options);
31
31
  /**
32
- * This is for creating a rate sheet
32
+ * Lists all driver rate sheets for the authenticated courier organization.
33
+ *
34
+ * @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @example
37
+ * await client.courierPayDriverRateSheets.listByCourierOrgId()
38
+ */
39
+ listByCourierOrgId(requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1[]>;
40
+ private __listByCourierOrgId;
41
+ /**
42
+ * Creates a new driver rate sheet for calculating courier payments.
33
43
  *
34
44
  * @param {Chrt.CourierPayDriverRateSheetClientCreate1} request
35
45
  * @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
@@ -38,50 +48,40 @@ export declare class CourierPayDriverRateSheets {
38
48
  *
39
49
  * @example
40
50
  * await client.courierPayDriverRateSheets.create({
41
- * additional_mileage_rate_usd_per_mile: 1.1,
42
- * after_hours: 1.1,
51
+ * schema_version: 1,
52
+ * courier_org_id: "courier_org_id",
43
53
  * base_mileage_distance_miles: 1.1,
44
54
  * base_mileage_rate_usd_per_instance: 1.1,
45
- * courier_org_id: "courier_org_id",
46
- * dangerous_goods_rate_usd_per_instance: 1.1,
47
- * extra_stop_rate_usd: 1.1,
48
- * fuel_surchage_rate_usd_per_mile: 1.1,
49
- * holiday: 1.1,
55
+ * additional_mileage_rate_usd_per_mile: 1.1,
50
56
  * long_distance_surcharge_miles_before_surcharge: 1.1,
51
57
  * long_distance_surcharge_rate_usd_per_mile: 1.1,
52
- * schema_version: 1,
58
+ * fuel_surchage_rate_usd_per_mile: 1.1,
53
59
  * wait_time_before_charge_minutes: 1.1,
54
60
  * wait_time_rate_usd_per_minute: 1.1,
55
- * weekend: 1.1
61
+ * extra_stop_rate_usd: 1.1,
62
+ * dangerous_goods_rate_usd_per_instance: 1.1,
63
+ * after_hours: 1.1,
64
+ * weekend: 1.1,
65
+ * holiday: 1.1
56
66
  * })
57
67
  */
58
68
  create(request: Chrt.CourierPayDriverRateSheetClientCreate1, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<string>;
59
69
  private __create;
60
70
  /**
61
- * Get rate sheet(s) by rate sheet ID or driver ID
71
+ * Retrieves a single rate sheet by its ID.
62
72
  *
63
- * @param {Chrt.CourierPayDriverRateSheetsGetRequest} request
73
+ * @param {string} id
64
74
  * @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
65
75
  *
66
76
  * @throws {@link Chrt.UnprocessableEntityError}
67
77
  *
68
78
  * @example
69
- * await client.courierPayDriverRateSheets.get()
79
+ * await client.courierPayDriverRateSheets.get("id")
70
80
  */
71
- get(request?: Chrt.CourierPayDriverRateSheetsGetRequest, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheetsGetResponse>;
81
+ get(id: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1>;
72
82
  private __get;
73
83
  /**
74
- * This is for getting a list of all rate sheets by courier org id from the JWT
75
- *
76
- * @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
77
- *
78
- * @example
79
- * await client.courierPayDriverRateSheets.listByCourierOrgId()
80
- */
81
- listByCourierOrgId(requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1[]>;
82
- private __listByCourierOrgId;
83
- /**
84
- * Delete a rate sheet scoped to the caller's org
84
+ * Deletes a driver rate sheet owned by the authenticated organization.
85
85
  *
86
86
  * @param {string} id
87
87
  * @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
@@ -94,7 +94,7 @@ export declare class CourierPayDriverRateSheets {
94
94
  deleteById(id: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<boolean>;
95
95
  private __deleteById;
96
96
  /**
97
- * Update a rate sheet
97
+ * Updates an existing driver rate sheet owned by the authenticated organization.
98
98
  *
99
99
  * @param {string} id
100
100
  * @param {Chrt.CourierPayDriverRateSheetClientUpdate1} request
@@ -107,5 +107,18 @@ export declare class CourierPayDriverRateSheets {
107
107
  */
108
108
  updateById(id: string, request?: Chrt.CourierPayDriverRateSheetClientUpdate1, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1>;
109
109
  private __updateById;
110
+ /**
111
+ * Retrieves all rate sheets assigned to a specific driver.
112
+ *
113
+ * @param {string} driverId
114
+ * @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
115
+ *
116
+ * @throws {@link Chrt.UnprocessableEntityError}
117
+ *
118
+ * @example
119
+ * await client.courierPayDriverRateSheets.listByDriverId("driver_id")
120
+ */
121
+ listByDriverId(driverId: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1[]>;
122
+ private __listByDriverId;
110
123
  protected _getAuthorizationHeader(): Promise<string | undefined>;
111
124
  }