@chrt-inc/typescript-sdk 1.448.0 → 1.449.2

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 (624) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.d.ts +2 -2
  3. package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.js +2 -2
  4. package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/AnalyticsTimePeriodRequest.d.ts +4 -4
  5. package/dist/cjs/api/resources/billing/client/Client.d.ts +6 -6
  6. package/dist/cjs/api/resources/billing/client/Client.js +12 -12
  7. package/dist/cjs/api/resources/billing/resources/index.d.ts +3 -3
  8. package/dist/cjs/api/resources/billing/resources/index.js +4 -4
  9. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +43 -43
  10. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +112 -112
  11. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/AdjustLineItemReq.d.ts +4 -4
  12. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.d.ts +2 -2
  13. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.d.ts +22 -22
  14. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.js +44 -44
  15. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/CreateAdHocLineItemGroupReq.d.ts +8 -8
  16. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/LineItemClientCreate1.d.ts +4 -4
  17. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/index.d.ts +1 -1
  18. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.d.ts +20 -20
  19. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.js +52 -52
  20. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/requests/BodyLineItemGroupsS3ObjectPostAddV1BillingLineItemGroupsS3ObjectsAddV1LineItemGroupIdPost.d.ts +3 -2
  21. package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.d.ts +59 -59
  22. package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.js +159 -159
  23. package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientCreate1.d.ts +13 -13
  24. package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientUpdate1.d.ts +2 -2
  25. package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/index.d.ts +4 -4
  26. package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +46 -46
  27. package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +120 -120
  28. package/dist/cjs/api/resources/billing/resources/statements/client/requests/CreateStatementReq.d.ts +8 -8
  29. package/dist/cjs/api/resources/billing/resources/statements/client/requests/index.d.ts +3 -3
  30. package/dist/cjs/api/resources/billing/resources/stripeConnect/client/Client.d.ts +8 -8
  31. package/dist/cjs/api/resources/billing/resources/stripeConnect/client/Client.js +19 -19
  32. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +15 -15
  33. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +33 -33
  34. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.d.ts +3 -3
  35. package/dist/cjs/api/resources/notifications/resources/groups/client/Client.d.ts +57 -57
  36. package/dist/cjs/api/resources/notifications/resources/groups/client/Client.js +146 -146
  37. package/dist/cjs/api/resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.d.ts +3 -3
  38. package/dist/cjs/api/resources/notifications/resources/userPreferences/client/Client.d.ts +8 -8
  39. package/dist/cjs/api/resources/notifications/resources/userPreferences/client/Client.js +16 -16
  40. package/dist/cjs/api/resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.d.ts +2 -2
  41. package/dist/cjs/api/resources/notifications/resources/webhookSetup/client/Client.d.ts +14 -14
  42. package/dist/cjs/api/resources/notifications/resources/webhookSetup/client/Client.js +28 -28
  43. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +31 -31
  44. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +98 -98
  45. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.ts +2 -2
  46. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.js +2 -2
  47. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.ts +9 -9
  48. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.ts +4 -4
  49. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/client/Client.d.ts +3 -3
  50. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/client/Client.js +9 -9
  51. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.d.ts +19 -19
  52. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.js +51 -51
  53. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.ts +7 -7
  54. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.ts +4 -4
  55. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +12 -12
  56. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.js +51 -51
  57. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.d.ts +7 -7
  58. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.d.ts +4 -4
  59. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/index.d.ts +2 -2
  60. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/index.js +3 -3
  61. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.d.ts +12 -12
  62. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.js +51 -51
  63. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.ts +7 -7
  64. package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.ts +4 -4
  65. package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/Client.d.ts +32 -32
  66. package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/Client.js +66 -66
  67. package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.d.ts +3 -3
  68. package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.d.ts +3 -3
  69. package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/requests/index.d.ts +1 -1
  70. package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.d.ts +13 -13
  71. package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.js +59 -59
  72. package/dist/cjs/api/resources/orgs/resources/publicData/client/requests/CreateOrgPublicDataReq.d.ts +1 -1
  73. package/dist/cjs/api/resources/orgs/resources/publicData/client/requests/UpdateOrgPublicDataReq.d.ts +1 -1
  74. package/dist/cjs/api/resources/shipping/client/Client.d.ts +9 -9
  75. package/dist/cjs/api/resources/shipping/client/Client.js +12 -12
  76. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +38 -38
  77. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +126 -126
  78. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverClientCreate1.d.ts +3 -3
  79. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverClientUpdate1.d.ts +7 -7
  80. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/index.d.ts +2 -2
  81. package/dist/cjs/api/resources/shipping/resources/index.d.ts +2 -2
  82. package/dist/cjs/api/resources/shipping/resources/index.js +3 -3
  83. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +22 -22
  84. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +49 -49
  85. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.ts +2 -2
  86. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +1 -1
  87. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.ts +19 -19
  88. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.js +30 -30
  89. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.ts +5 -5
  90. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.d.ts +3 -3
  91. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.ts +14 -14
  92. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.js +55 -55
  93. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.d.ts +5 -5
  94. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.js +6 -6
  95. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.d.ts +15 -15
  96. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.js +26 -26
  97. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.ts +4 -4
  98. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.d.ts +2 -2
  99. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.js +2 -2
  100. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.ts +3 -3
  101. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +34 -34
  102. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +73 -73
  103. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +4 -4
  104. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/SetRateSheetsReq.d.ts +2 -2
  105. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +2 -2
  106. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +8 -8
  107. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +16 -16
  108. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +8 -8
  109. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +14 -14
  110. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.d.ts +10 -10
  111. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.js +18 -18
  112. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.ts +3 -3
  113. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +20 -20
  114. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +52 -52
  115. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/requests/BodyPostTaskArtifactsS3ObjectAddV1ShippingTaskArtifactsS3ObjectAddV1TaskArtifactIdPost.d.ts +3 -2
  116. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +50 -50
  117. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +85 -85
  118. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/index.d.ts +2 -2
  119. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +26 -26
  120. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +44 -44
  121. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +1 -1
  122. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.ts +1 -1
  123. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.js +1 -1
  124. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.d.ts +2 -2
  125. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.js +3 -3
  126. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.ts +20 -20
  127. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.js +52 -52
  128. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/requests/BodyPostTaskGroupsS3ObjectAddV1ShippingTaskGroupsS3ObjectAddV1TaskGroupIdPost.d.ts +3 -2
  129. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.ts +8 -8
  130. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.js +14 -14
  131. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +16 -16
  132. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +31 -31
  133. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/AddTaskToGroupReq.d.ts +6 -6
  134. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +54 -54
  135. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +191 -191
  136. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DeviceClientCreate1.d.ts +5 -5
  137. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DeviceClientUpdate1.d.ts +3 -3
  138. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUpdateSharedOrgsReq1.d.ts +1 -1
  139. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +4 -4
  140. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +2 -2
  141. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +2 -2
  142. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +80 -80
  143. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +237 -237
  144. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.ts +4 -4
  145. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +5 -5
  146. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts +3 -3
  147. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.ts +4 -4
  148. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsUpdateSharedOrgsReq1.d.ts +1 -1
  149. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +7 -7
  150. package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.d.ts +30 -30
  151. package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.js +52 -52
  152. package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.ts +3 -3
  153. package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDriverSharingSettingsUpdateReq.d.ts +3 -3
  154. package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.ts +3 -3
  155. package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/index.d.ts +2 -2
  156. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.d.ts +26 -26
  157. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.js +64 -64
  158. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.d.ts +3 -3
  159. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/index.d.ts +3 -3
  160. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.d.ts +23 -23
  161. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.js +51 -51
  162. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.d.ts +2 -2
  163. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.ts +25 -25
  164. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.js +62 -62
  165. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.d.ts +3 -3
  166. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.d.ts +3 -3
  167. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.ts +23 -23
  168. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.js +51 -51
  169. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.d.ts +2 -2
  170. package/dist/cjs/api/resources/users/client/Client.d.ts +6 -6
  171. package/dist/cjs/api/resources/users/client/Client.js +6 -6
  172. package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.d.ts +22 -22
  173. package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.js +56 -56
  174. package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientCreate1.d.ts +8 -8
  175. package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.ts +4 -4
  176. package/dist/cjs/api/resources/users/resources/index.d.ts +3 -3
  177. package/dist/cjs/api/resources/users/resources/index.js +4 -4
  178. package/dist/cjs/api/resources/users/resources/privateData/client/Client.d.ts +15 -15
  179. package/dist/cjs/api/resources/users/resources/privateData/client/Client.js +59 -59
  180. package/dist/cjs/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientCreate1.d.ts +2 -2
  181. package/dist/cjs/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientUpdate1.d.ts +1 -1
  182. package/dist/cjs/api/resources/users/resources/privateData/client/requests/index.d.ts +1 -1
  183. package/dist/cjs/api/resources/utils/client/Client.d.ts +3 -3
  184. package/dist/cjs/api/resources/utils/client/Client.js +6 -6
  185. package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +24 -24
  186. package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +75 -75
  187. package/dist/cjs/api/resources/utils/resources/index.d.ts +1 -1
  188. package/dist/cjs/api/resources/utils/resources/index.js +2 -2
  189. package/dist/cjs/api/resources/utils/resources/root/client/Client.d.ts +16 -16
  190. package/dist/cjs/api/resources/utils/resources/root/client/Client.js +28 -28
  191. package/dist/cjs/api/types/AgentRes.d.ts +1 -1
  192. package/dist/cjs/api/types/BillingLineItemGroupMessageWebhookPayload.d.ts +1 -1
  193. package/dist/cjs/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.ts +1 -1
  194. package/dist/cjs/api/types/BillingStatementOpenedWebhookPayload.d.ts +1 -1
  195. package/dist/cjs/api/types/BillingStatementPaidWebhookPayload.d.ts +1 -1
  196. package/dist/cjs/api/types/Cargo1.d.ts +16 -16
  197. package/dist/cjs/api/types/CargoByDeviceDataPoint1.d.ts +4 -4
  198. package/dist/cjs/api/types/CargoByDeviceDataPointMetadata1.d.ts +1 -1
  199. package/dist/cjs/api/types/CargoByDeviceMarkOutliersResponse1.d.ts +1 -1
  200. package/dist/cjs/api/types/CargoByDeviceSharingSettings1.d.ts +6 -6
  201. package/dist/cjs/api/types/CargoByDriverDataPoint1.d.ts +3 -3
  202. package/dist/cjs/api/types/CargoByDriverDataPointMetadata1.d.ts +1 -1
  203. package/dist/cjs/api/types/CargoByDriverSharingSettings1.d.ts +6 -6
  204. package/dist/cjs/api/types/CargoClientCreate1.d.ts +6 -6
  205. package/dist/cjs/api/types/CargoClientUpdate1.d.ts +5 -5
  206. package/dist/cjs/api/types/CourierConnectionRes.d.ts +1 -1
  207. package/dist/cjs/api/types/CourierOrgInfoForConnections1.d.ts +10 -10
  208. package/dist/cjs/api/types/CourierOrgProfile1.d.ts +3 -3
  209. package/dist/cjs/api/types/CreateOrgPublicDataRes.d.ts +1 -1
  210. package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +7 -7
  211. package/dist/cjs/api/types/DeviceExpandedRes.d.ts +3 -3
  212. package/dist/cjs/api/types/DeviceLimitedForList1.d.ts +11 -11
  213. package/dist/cjs/api/types/DirectoryEntry1.d.ts +13 -13
  214. package/dist/cjs/api/types/Driver1.d.ts +13 -13
  215. package/dist/cjs/api/types/DriverUpdateRes.d.ts +1 -1
  216. package/dist/cjs/api/types/FirebaseCloudMessagingTokenData1.d.ts +1 -1
  217. package/dist/cjs/api/types/FlightAwareAlertFlight.d.ts +3 -3
  218. package/dist/cjs/api/types/FlightAwareAlertPayload.d.ts +3 -3
  219. package/dist/cjs/api/types/FlightAwareWebhookResponse.d.ts +1 -1
  220. package/dist/cjs/api/types/FlightInfoForTaskRes.d.ts +1 -1
  221. package/dist/cjs/api/types/ForwarderConnectionRes.d.ts +1 -1
  222. package/dist/cjs/api/types/ForwarderCourierConnection1.d.ts +7 -7
  223. package/dist/cjs/api/types/ForwarderOrgInfoForConnections1.d.ts +8 -8
  224. package/dist/cjs/api/types/ForwarderOrgProfile1.d.ts +3 -3
  225. package/dist/cjs/api/types/LineItem1.d.ts +6 -6
  226. package/dist/cjs/api/types/LineItemGroup1.d.ts +11 -11
  227. package/dist/cjs/api/types/LineItemGroupMessage1.d.ts +2 -2
  228. package/dist/cjs/api/types/LineItemGroupS3ObjectMetadata1.d.ts +8 -8
  229. package/dist/cjs/api/types/LocationFeature.d.ts +2 -2
  230. package/dist/cjs/api/types/NotificationGroup1.d.ts +7 -7
  231. package/dist/cjs/api/types/NotificationGroupLimitedForDriver1.d.ts +5 -5
  232. package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +3 -3
  233. package/dist/cjs/api/types/NotificationUserPreferences1.d.ts +5 -5
  234. package/dist/cjs/api/types/OffChrtShipperOrg1.d.ts +12 -12
  235. package/dist/cjs/api/types/Order1.d.ts +12 -12
  236. package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +8 -8
  237. package/dist/cjs/api/types/OrderDraftExpanded.d.ts +4 -4
  238. package/dist/cjs/api/types/OrderExpanded.d.ts +3 -3
  239. package/dist/cjs/api/types/OrdersDraftUpdateRes.d.ts +3 -3
  240. package/dist/cjs/api/types/OrgInfoResponse.d.ts +6 -6
  241. package/dist/cjs/api/types/OrgMemberDetails.d.ts +2 -2
  242. package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
  243. package/dist/cjs/api/types/OrgPrivateData1.d.ts +12 -12
  244. package/dist/cjs/api/types/OrgPublicData1.d.ts +5 -5
  245. package/dist/cjs/api/types/Quote.d.ts +2 -2
  246. package/dist/cjs/api/types/RateSheet1.d.ts +17 -17
  247. package/dist/cjs/api/types/Session1.d.ts +14 -14
  248. package/dist/cjs/api/types/SessionByDeviceDataPoint1.d.ts +4 -4
  249. package/dist/cjs/api/types/SessionByDeviceDataPointMetadata1.d.ts +1 -1
  250. package/dist/cjs/api/types/SessionByDeviceMarkOutliersResponse1.d.ts +1 -1
  251. package/dist/cjs/api/types/SetFlightInfoReq.d.ts +2 -2
  252. package/dist/cjs/api/types/ShipperConnectionRes.d.ts +1 -1
  253. package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +7 -7
  254. package/dist/cjs/api/types/ShipperForwarderConnection1.d.ts +7 -7
  255. package/dist/cjs/api/types/ShipperOrgInfoForConnections1.d.ts +6 -6
  256. package/dist/cjs/api/types/ShippingOrderCancelledWebhookPayload.d.ts +1 -1
  257. package/dist/cjs/api/types/ShippingOrderCompletedWebhookPayload.d.ts +1 -1
  258. package/dist/cjs/api/types/ShippingOrderStagedWebhookPayload.d.ts +1 -1
  259. package/dist/cjs/api/types/ShippingTaskAddedWebhookPayload.d.ts +5 -5
  260. package/dist/cjs/api/types/ShippingTaskCompletedWebhookPayload.d.ts +5 -5
  261. package/dist/cjs/api/types/ShippingTaskDeletedWebhookPayload.d.ts +5 -5
  262. package/dist/cjs/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.ts +3 -3
  263. package/dist/cjs/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.ts +3 -3
  264. package/dist/cjs/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.ts +5 -5
  265. package/dist/cjs/api/types/ShippingTaskGroupInProgressWebhookPayload.d.ts +1 -1
  266. package/dist/cjs/api/types/ShippingTaskGroupMessageWebhookPayload.d.ts +3 -3
  267. package/dist/cjs/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.ts +1 -1
  268. package/dist/cjs/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.d.ts +1 -1
  269. package/dist/cjs/api/types/ShippingTaskSkippedWebhookPayload.d.ts +5 -5
  270. package/dist/cjs/api/types/ShippingTaskTaskArtifactCompletedWebhookPayload.d.ts +5 -5
  271. package/dist/cjs/api/types/Statement1.d.ts +20 -20
  272. package/dist/cjs/api/types/StatementExpandedRes.d.ts +1 -1
  273. package/dist/cjs/api/types/Task1.d.ts +19 -19
  274. package/dist/cjs/api/types/TaskArtifact1.d.ts +16 -16
  275. package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.d.ts +8 -8
  276. package/dist/cjs/api/types/TaskClientCreate1.d.ts +4 -4
  277. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +2 -2
  278. package/dist/cjs/api/types/TaskExpanded.d.ts +2 -2
  279. package/dist/cjs/api/types/TaskGroup1.d.ts +25 -25
  280. package/dist/cjs/api/types/TaskGroupByDriverDataPoint1.d.ts +3 -3
  281. package/dist/cjs/api/types/TaskGroupByDriverDataPointMetadata1.d.ts +1 -1
  282. package/dist/cjs/api/types/TaskGroupByDriverSharingSettings1.d.ts +6 -6
  283. package/dist/cjs/api/types/TaskGroupExpanded.d.ts +4 -4
  284. package/dist/cjs/api/types/TaskGroupMessage1.d.ts +2 -2
  285. package/dist/cjs/api/types/TaskGroupS3ObjectMetadata1.d.ts +8 -8
  286. package/dist/cjs/api/types/TimezoneResponse.d.ts +1 -1
  287. package/dist/cjs/api/types/TrackingSharingSettingsRes.d.ts +1 -1
  288. package/dist/cjs/api/types/TrackingWebhookResponse.d.ts +1 -1
  289. package/dist/cjs/api/types/UserPrivateData1.d.ts +6 -6
  290. package/dist/cjs/api/types/UserPublicData1.d.ts +2 -2
  291. package/dist/cjs/api/types/ValidationError.d.ts +2 -2
  292. package/dist/cjs/api/types/Vehicle1.d.ts +1 -1
  293. package/dist/cjs/api/types/WebhookAppPortalAccessRes.d.ts +1 -1
  294. package/dist/cjs/core/exports.d.ts +1 -0
  295. package/dist/cjs/core/exports.js +17 -0
  296. package/dist/cjs/core/file/exports.d.ts +1 -0
  297. package/dist/cjs/core/file/exports.js +2 -0
  298. package/dist/cjs/core/file/file.d.ts +5 -0
  299. package/dist/cjs/core/file/file.js +203 -0
  300. package/dist/cjs/core/file/index.d.ts +2 -0
  301. package/dist/cjs/core/file/index.js +18 -0
  302. package/dist/cjs/core/file/types.d.ts +66 -0
  303. package/dist/cjs/core/file/types.js +2 -0
  304. package/dist/cjs/core/index.d.ts +1 -0
  305. package/dist/cjs/core/index.js +2 -1
  306. package/dist/cjs/exports.d.ts +1 -0
  307. package/dist/cjs/exports.js +17 -0
  308. package/dist/cjs/index.d.ts +1 -0
  309. package/dist/cjs/index.js +4 -0
  310. package/dist/cjs/version.d.ts +1 -1
  311. package/dist/cjs/version.js +1 -1
  312. package/dist/esm/Client.mjs +2 -2
  313. package/dist/esm/api/resources/analytics/resources/shipping/client/Client.d.mts +2 -2
  314. package/dist/esm/api/resources/analytics/resources/shipping/client/Client.mjs +2 -2
  315. package/dist/esm/api/resources/analytics/resources/shipping/client/requests/AnalyticsTimePeriodRequest.d.mts +4 -4
  316. package/dist/esm/api/resources/billing/client/Client.d.mts +6 -6
  317. package/dist/esm/api/resources/billing/client/Client.mjs +10 -10
  318. package/dist/esm/api/resources/billing/resources/index.d.mts +3 -3
  319. package/dist/esm/api/resources/billing/resources/index.mjs +3 -3
  320. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +43 -43
  321. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +112 -112
  322. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/AdjustLineItemReq.d.mts +4 -4
  323. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +2 -2
  324. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.d.mts +22 -22
  325. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.mjs +44 -44
  326. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/CreateAdHocLineItemGroupReq.d.mts +8 -8
  327. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/LineItemClientCreate1.d.mts +4 -4
  328. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/index.d.mts +1 -1
  329. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.d.mts +20 -20
  330. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.mjs +52 -52
  331. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/requests/BodyLineItemGroupsS3ObjectPostAddV1BillingLineItemGroupsS3ObjectsAddV1LineItemGroupIdPost.d.mts +3 -2
  332. package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.d.mts +59 -59
  333. package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.mjs +159 -159
  334. package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientCreate1.d.mts +13 -13
  335. package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientUpdate1.d.mts +2 -2
  336. package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/index.d.mts +4 -4
  337. package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +46 -46
  338. package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +120 -120
  339. package/dist/esm/api/resources/billing/resources/statements/client/requests/CreateStatementReq.d.mts +8 -8
  340. package/dist/esm/api/resources/billing/resources/statements/client/requests/index.d.mts +3 -3
  341. package/dist/esm/api/resources/billing/resources/stripeConnect/client/Client.d.mts +8 -8
  342. package/dist/esm/api/resources/billing/resources/stripeConnect/client/Client.mjs +19 -19
  343. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +15 -15
  344. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +33 -33
  345. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.d.mts +3 -3
  346. package/dist/esm/api/resources/notifications/resources/groups/client/Client.d.mts +57 -57
  347. package/dist/esm/api/resources/notifications/resources/groups/client/Client.mjs +146 -146
  348. package/dist/esm/api/resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.d.mts +3 -3
  349. package/dist/esm/api/resources/notifications/resources/userPreferences/client/Client.d.mts +8 -8
  350. package/dist/esm/api/resources/notifications/resources/userPreferences/client/Client.mjs +16 -16
  351. package/dist/esm/api/resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.d.mts +2 -2
  352. package/dist/esm/api/resources/notifications/resources/webhookSetup/client/Client.d.mts +14 -14
  353. package/dist/esm/api/resources/notifications/resources/webhookSetup/client/Client.mjs +28 -28
  354. package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +31 -31
  355. package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +98 -98
  356. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.mts +2 -2
  357. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.mjs +2 -2
  358. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.mts +9 -9
  359. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.mts +4 -4
  360. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/client/Client.d.mts +3 -3
  361. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/client/Client.mjs +5 -5
  362. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.d.mts +19 -19
  363. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.mjs +51 -51
  364. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.mts +7 -7
  365. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.mts +4 -4
  366. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +12 -12
  367. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.mjs +51 -51
  368. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.d.mts +7 -7
  369. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.d.mts +4 -4
  370. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/index.d.mts +2 -2
  371. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/index.mjs +2 -2
  372. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.d.mts +12 -12
  373. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.mjs +51 -51
  374. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.mts +7 -7
  375. package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.mts +4 -4
  376. package/dist/esm/api/resources/orgs/resources/orgProfiles/client/Client.d.mts +32 -32
  377. package/dist/esm/api/resources/orgs/resources/orgProfiles/client/Client.mjs +66 -66
  378. package/dist/esm/api/resources/orgs/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.d.mts +3 -3
  379. package/dist/esm/api/resources/orgs/resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.d.mts +3 -3
  380. package/dist/esm/api/resources/orgs/resources/orgProfiles/client/requests/index.d.mts +1 -1
  381. package/dist/esm/api/resources/orgs/resources/publicData/client/Client.d.mts +13 -13
  382. package/dist/esm/api/resources/orgs/resources/publicData/client/Client.mjs +59 -59
  383. package/dist/esm/api/resources/orgs/resources/publicData/client/requests/CreateOrgPublicDataReq.d.mts +1 -1
  384. package/dist/esm/api/resources/orgs/resources/publicData/client/requests/UpdateOrgPublicDataReq.d.mts +1 -1
  385. package/dist/esm/api/resources/shipping/client/Client.d.mts +9 -9
  386. package/dist/esm/api/resources/shipping/client/Client.mjs +11 -11
  387. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +38 -38
  388. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +126 -126
  389. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverClientCreate1.d.mts +3 -3
  390. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverClientUpdate1.d.mts +7 -7
  391. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/index.d.mts +2 -2
  392. package/dist/esm/api/resources/shipping/resources/index.d.mts +2 -2
  393. package/dist/esm/api/resources/shipping/resources/index.mjs +2 -2
  394. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +22 -22
  395. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +45 -45
  396. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.mts +2 -2
  397. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +1 -1
  398. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.mts +19 -19
  399. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.mjs +30 -30
  400. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.mts +5 -5
  401. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.d.mts +3 -3
  402. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.mts +14 -14
  403. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.mjs +55 -55
  404. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.d.mts +5 -5
  405. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.mjs +5 -5
  406. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.d.mts +15 -15
  407. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.mjs +26 -26
  408. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.mts +4 -4
  409. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.d.mts +2 -2
  410. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.mjs +2 -2
  411. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.mts +3 -3
  412. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +34 -34
  413. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +73 -73
  414. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +4 -4
  415. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/SetRateSheetsReq.d.mts +2 -2
  416. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +2 -2
  417. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +8 -8
  418. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +16 -16
  419. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +8 -8
  420. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +14 -14
  421. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.d.mts +10 -10
  422. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.mjs +18 -18
  423. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.mts +3 -3
  424. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +20 -20
  425. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +52 -52
  426. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/requests/BodyPostTaskArtifactsS3ObjectAddV1ShippingTaskArtifactsS3ObjectAddV1TaskArtifactIdPost.d.mts +3 -2
  427. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +50 -50
  428. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +85 -85
  429. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/index.d.mts +2 -2
  430. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +26 -26
  431. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +44 -44
  432. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +1 -1
  433. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.mts +1 -1
  434. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.mjs +1 -1
  435. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.d.mts +2 -2
  436. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.mjs +2 -2
  437. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.mts +20 -20
  438. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.mjs +52 -52
  439. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/requests/BodyPostTaskGroupsS3ObjectAddV1ShippingTaskGroupsS3ObjectAddV1TaskGroupIdPost.d.mts +3 -2
  440. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.mts +8 -8
  441. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.mjs +14 -14
  442. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +16 -16
  443. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +31 -31
  444. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/AddTaskToGroupReq.d.mts +6 -6
  445. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +54 -54
  446. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +191 -191
  447. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DeviceClientCreate1.d.mts +5 -5
  448. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DeviceClientUpdate1.d.mts +3 -3
  449. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUpdateSharedOrgsReq1.d.mts +1 -1
  450. package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +4 -4
  451. package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +2 -2
  452. package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +2 -2
  453. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +80 -80
  454. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +237 -237
  455. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.mts +4 -4
  456. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +5 -5
  457. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.mts +3 -3
  458. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.mts +4 -4
  459. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsUpdateSharedOrgsReq1.d.mts +1 -1
  460. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +7 -7
  461. package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.d.mts +30 -30
  462. package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.mjs +52 -52
  463. package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.mts +3 -3
  464. package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDriverSharingSettingsUpdateReq.d.mts +3 -3
  465. package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.mts +3 -3
  466. package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/index.d.mts +2 -2
  467. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.d.mts +26 -26
  468. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.mjs +64 -64
  469. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.d.mts +3 -3
  470. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/index.d.mts +3 -3
  471. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.d.mts +23 -23
  472. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.mjs +51 -51
  473. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.d.mts +2 -2
  474. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.mts +25 -25
  475. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +62 -62
  476. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.d.mts +3 -3
  477. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.d.mts +3 -3
  478. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.mts +23 -23
  479. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.mjs +51 -51
  480. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.d.mts +2 -2
  481. package/dist/esm/api/resources/users/client/Client.d.mts +6 -6
  482. package/dist/esm/api/resources/users/client/Client.mjs +6 -6
  483. package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.d.mts +22 -22
  484. package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.mjs +56 -56
  485. package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientCreate1.d.mts +8 -8
  486. package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.mts +4 -4
  487. package/dist/esm/api/resources/users/resources/index.d.mts +3 -3
  488. package/dist/esm/api/resources/users/resources/index.mjs +3 -3
  489. package/dist/esm/api/resources/users/resources/privateData/client/Client.d.mts +15 -15
  490. package/dist/esm/api/resources/users/resources/privateData/client/Client.mjs +59 -59
  491. package/dist/esm/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientCreate1.d.mts +2 -2
  492. package/dist/esm/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientUpdate1.d.mts +1 -1
  493. package/dist/esm/api/resources/users/resources/privateData/client/requests/index.d.mts +1 -1
  494. package/dist/esm/api/resources/utils/client/Client.d.mts +3 -3
  495. package/dist/esm/api/resources/utils/client/Client.mjs +5 -5
  496. package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +24 -24
  497. package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +75 -75
  498. package/dist/esm/api/resources/utils/resources/index.d.mts +1 -1
  499. package/dist/esm/api/resources/utils/resources/index.mjs +1 -1
  500. package/dist/esm/api/resources/utils/resources/root/client/Client.d.mts +16 -16
  501. package/dist/esm/api/resources/utils/resources/root/client/Client.mjs +28 -28
  502. package/dist/esm/api/types/AgentRes.d.mts +1 -1
  503. package/dist/esm/api/types/BillingLineItemGroupMessageWebhookPayload.d.mts +1 -1
  504. package/dist/esm/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.mts +1 -1
  505. package/dist/esm/api/types/BillingStatementOpenedWebhookPayload.d.mts +1 -1
  506. package/dist/esm/api/types/BillingStatementPaidWebhookPayload.d.mts +1 -1
  507. package/dist/esm/api/types/Cargo1.d.mts +16 -16
  508. package/dist/esm/api/types/CargoByDeviceDataPoint1.d.mts +4 -4
  509. package/dist/esm/api/types/CargoByDeviceDataPointMetadata1.d.mts +1 -1
  510. package/dist/esm/api/types/CargoByDeviceMarkOutliersResponse1.d.mts +1 -1
  511. package/dist/esm/api/types/CargoByDeviceSharingSettings1.d.mts +6 -6
  512. package/dist/esm/api/types/CargoByDriverDataPoint1.d.mts +3 -3
  513. package/dist/esm/api/types/CargoByDriverDataPointMetadata1.d.mts +1 -1
  514. package/dist/esm/api/types/CargoByDriverSharingSettings1.d.mts +6 -6
  515. package/dist/esm/api/types/CargoClientCreate1.d.mts +6 -6
  516. package/dist/esm/api/types/CargoClientUpdate1.d.mts +5 -5
  517. package/dist/esm/api/types/CourierConnectionRes.d.mts +1 -1
  518. package/dist/esm/api/types/CourierOrgInfoForConnections1.d.mts +10 -10
  519. package/dist/esm/api/types/CourierOrgProfile1.d.mts +3 -3
  520. package/dist/esm/api/types/CreateOrgPublicDataRes.d.mts +1 -1
  521. package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +7 -7
  522. package/dist/esm/api/types/DeviceExpandedRes.d.mts +3 -3
  523. package/dist/esm/api/types/DeviceLimitedForList1.d.mts +11 -11
  524. package/dist/esm/api/types/DirectoryEntry1.d.mts +13 -13
  525. package/dist/esm/api/types/Driver1.d.mts +13 -13
  526. package/dist/esm/api/types/DriverUpdateRes.d.mts +1 -1
  527. package/dist/esm/api/types/FirebaseCloudMessagingTokenData1.d.mts +1 -1
  528. package/dist/esm/api/types/FlightAwareAlertFlight.d.mts +3 -3
  529. package/dist/esm/api/types/FlightAwareAlertPayload.d.mts +3 -3
  530. package/dist/esm/api/types/FlightAwareWebhookResponse.d.mts +1 -1
  531. package/dist/esm/api/types/FlightInfoForTaskRes.d.mts +1 -1
  532. package/dist/esm/api/types/ForwarderConnectionRes.d.mts +1 -1
  533. package/dist/esm/api/types/ForwarderCourierConnection1.d.mts +7 -7
  534. package/dist/esm/api/types/ForwarderOrgInfoForConnections1.d.mts +8 -8
  535. package/dist/esm/api/types/ForwarderOrgProfile1.d.mts +3 -3
  536. package/dist/esm/api/types/LineItem1.d.mts +6 -6
  537. package/dist/esm/api/types/LineItemGroup1.d.mts +11 -11
  538. package/dist/esm/api/types/LineItemGroupMessage1.d.mts +2 -2
  539. package/dist/esm/api/types/LineItemGroupS3ObjectMetadata1.d.mts +8 -8
  540. package/dist/esm/api/types/LocationFeature.d.mts +2 -2
  541. package/dist/esm/api/types/NotificationGroup1.d.mts +7 -7
  542. package/dist/esm/api/types/NotificationGroupLimitedForDriver1.d.mts +5 -5
  543. package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +3 -3
  544. package/dist/esm/api/types/NotificationUserPreferences1.d.mts +5 -5
  545. package/dist/esm/api/types/OffChrtShipperOrg1.d.mts +12 -12
  546. package/dist/esm/api/types/Order1.d.mts +12 -12
  547. package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +8 -8
  548. package/dist/esm/api/types/OrderDraftExpanded.d.mts +4 -4
  549. package/dist/esm/api/types/OrderExpanded.d.mts +3 -3
  550. package/dist/esm/api/types/OrdersDraftUpdateRes.d.mts +3 -3
  551. package/dist/esm/api/types/OrgInfoResponse.d.mts +6 -6
  552. package/dist/esm/api/types/OrgMemberDetails.d.mts +2 -2
  553. package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
  554. package/dist/esm/api/types/OrgPrivateData1.d.mts +12 -12
  555. package/dist/esm/api/types/OrgPublicData1.d.mts +5 -5
  556. package/dist/esm/api/types/Quote.d.mts +2 -2
  557. package/dist/esm/api/types/RateSheet1.d.mts +17 -17
  558. package/dist/esm/api/types/Session1.d.mts +14 -14
  559. package/dist/esm/api/types/SessionByDeviceDataPoint1.d.mts +4 -4
  560. package/dist/esm/api/types/SessionByDeviceDataPointMetadata1.d.mts +1 -1
  561. package/dist/esm/api/types/SessionByDeviceMarkOutliersResponse1.d.mts +1 -1
  562. package/dist/esm/api/types/SetFlightInfoReq.d.mts +2 -2
  563. package/dist/esm/api/types/ShipperConnectionRes.d.mts +1 -1
  564. package/dist/esm/api/types/ShipperCourierConnection1.d.mts +7 -7
  565. package/dist/esm/api/types/ShipperForwarderConnection1.d.mts +7 -7
  566. package/dist/esm/api/types/ShipperOrgInfoForConnections1.d.mts +6 -6
  567. package/dist/esm/api/types/ShippingOrderCancelledWebhookPayload.d.mts +1 -1
  568. package/dist/esm/api/types/ShippingOrderCompletedWebhookPayload.d.mts +1 -1
  569. package/dist/esm/api/types/ShippingOrderStagedWebhookPayload.d.mts +1 -1
  570. package/dist/esm/api/types/ShippingTaskAddedWebhookPayload.d.mts +5 -5
  571. package/dist/esm/api/types/ShippingTaskCompletedWebhookPayload.d.mts +5 -5
  572. package/dist/esm/api/types/ShippingTaskDeletedWebhookPayload.d.mts +5 -5
  573. package/dist/esm/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.mts +3 -3
  574. package/dist/esm/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.mts +3 -3
  575. package/dist/esm/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.mts +5 -5
  576. package/dist/esm/api/types/ShippingTaskGroupInProgressWebhookPayload.d.mts +1 -1
  577. package/dist/esm/api/types/ShippingTaskGroupMessageWebhookPayload.d.mts +3 -3
  578. package/dist/esm/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.mts +1 -1
  579. package/dist/esm/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.d.mts +1 -1
  580. package/dist/esm/api/types/ShippingTaskSkippedWebhookPayload.d.mts +5 -5
  581. package/dist/esm/api/types/ShippingTaskTaskArtifactCompletedWebhookPayload.d.mts +5 -5
  582. package/dist/esm/api/types/Statement1.d.mts +20 -20
  583. package/dist/esm/api/types/StatementExpandedRes.d.mts +1 -1
  584. package/dist/esm/api/types/Task1.d.mts +19 -19
  585. package/dist/esm/api/types/TaskArtifact1.d.mts +16 -16
  586. package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.d.mts +8 -8
  587. package/dist/esm/api/types/TaskClientCreate1.d.mts +4 -4
  588. package/dist/esm/api/types/TaskClientUpdate1.d.mts +2 -2
  589. package/dist/esm/api/types/TaskExpanded.d.mts +2 -2
  590. package/dist/esm/api/types/TaskGroup1.d.mts +25 -25
  591. package/dist/esm/api/types/TaskGroupByDriverDataPoint1.d.mts +3 -3
  592. package/dist/esm/api/types/TaskGroupByDriverDataPointMetadata1.d.mts +1 -1
  593. package/dist/esm/api/types/TaskGroupByDriverSharingSettings1.d.mts +6 -6
  594. package/dist/esm/api/types/TaskGroupExpanded.d.mts +4 -4
  595. package/dist/esm/api/types/TaskGroupMessage1.d.mts +2 -2
  596. package/dist/esm/api/types/TaskGroupS3ObjectMetadata1.d.mts +8 -8
  597. package/dist/esm/api/types/TimezoneResponse.d.mts +1 -1
  598. package/dist/esm/api/types/TrackingSharingSettingsRes.d.mts +1 -1
  599. package/dist/esm/api/types/TrackingWebhookResponse.d.mts +1 -1
  600. package/dist/esm/api/types/UserPrivateData1.d.mts +6 -6
  601. package/dist/esm/api/types/UserPublicData1.d.mts +2 -2
  602. package/dist/esm/api/types/ValidationError.d.mts +2 -2
  603. package/dist/esm/api/types/Vehicle1.d.mts +1 -1
  604. package/dist/esm/api/types/WebhookAppPortalAccessRes.d.mts +1 -1
  605. package/dist/esm/core/exports.d.mts +1 -0
  606. package/dist/esm/core/exports.mjs +1 -0
  607. package/dist/esm/core/file/exports.d.mts +1 -0
  608. package/dist/esm/core/file/exports.mjs +1 -0
  609. package/dist/esm/core/file/file.d.mts +5 -0
  610. package/dist/esm/core/file/file.mjs +167 -0
  611. package/dist/esm/core/file/index.d.mts +2 -0
  612. package/dist/esm/core/file/index.mjs +2 -0
  613. package/dist/esm/core/file/types.d.mts +66 -0
  614. package/dist/esm/core/file/types.mjs +1 -0
  615. package/dist/esm/core/index.d.mts +1 -0
  616. package/dist/esm/core/index.mjs +1 -0
  617. package/dist/esm/exports.d.mts +1 -0
  618. package/dist/esm/exports.mjs +1 -0
  619. package/dist/esm/index.d.mts +1 -0
  620. package/dist/esm/index.mjs +1 -0
  621. package/dist/esm/version.d.mts +1 -1
  622. package/dist/esm/version.mjs +1 -1
  623. package/package.json +1 -1
  624. package/reference.md +1577 -1577
@@ -67,91 +67,34 @@ class RateSheets {
67
67
  this._options = _options;
68
68
  }
69
69
  /**
70
- * Retrieves a rate sheet by ID. Only the owning org can fetch. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (RateSheet1)
70
+ * Archives or unarchives a rate sheet. When archiving, automatically removes the rate sheet from all default assignments (OrgPrivateData, Connections, Drivers). | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
71
71
  *
72
72
  * @param {string} rateSheetId
73
+ * @param {Chrt.billing.RateSheetsArchiveV1Request} request
73
74
  * @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
74
75
  *
75
76
  * @throws {@link Chrt.UnprocessableEntityError}
76
77
  *
77
78
  * @example
78
- * await client.billing.rateSheets.getV1("rate_sheet_id")
79
+ * await client.billing.rateSheets.archiveV1("rate_sheet_id", {
80
+ * archive: true
81
+ * })
79
82
  */
80
- getV1(rateSheetId, requestOptions) {
81
- return core.HttpResponsePromise.fromPromise(this.__getV1(rateSheetId, requestOptions));
83
+ archiveV1(rateSheetId, request, requestOptions) {
84
+ return core.HttpResponsePromise.fromPromise(this.__archiveV1(rateSheetId, request, requestOptions));
82
85
  }
83
- __getV1(rateSheetId, requestOptions) {
86
+ __archiveV1(rateSheetId, request, requestOptions) {
84
87
  return __awaiter(this, void 0, void 0, function* () {
85
88
  var _a, _b, _c, _d;
89
+ const { archive } = request;
90
+ const _queryParams = {};
91
+ _queryParams["archive"] = archive.toString();
86
92
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
87
93
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
88
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/rate_sheets/v1/${encodeURIComponent(rateSheetId)}`),
89
- method: "GET",
90
- headers: _headers,
91
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
92
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
93
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
94
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
95
- });
96
- if (_response.ok) {
97
- return { data: _response.body, rawResponse: _response.rawResponse };
98
- }
99
- if (_response.error.reason === "status-code") {
100
- switch (_response.error.statusCode) {
101
- case 422:
102
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
103
- default:
104
- throw new errors.ChrtError({
105
- statusCode: _response.error.statusCode,
106
- body: _response.error.body,
107
- rawResponse: _response.rawResponse,
108
- });
109
- }
110
- }
111
- switch (_response.error.reason) {
112
- case "non-json":
113
- throw new errors.ChrtError({
114
- statusCode: _response.error.statusCode,
115
- body: _response.error.rawBody,
116
- rawResponse: _response.rawResponse,
117
- });
118
- case "timeout":
119
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /billing/rate_sheets/v1/{rate_sheet_id}.");
120
- case "unknown":
121
- throw new errors.ChrtError({
122
- message: _response.error.errorMessage,
123
- rawResponse: _response.rawResponse,
124
- });
125
- }
126
- });
127
- }
128
- /**
129
- * Updates a rate sheet. Only name, comments, cargo_types, and vehicle_types can be changed. Use the archive endpoint for archiving. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | (RateSheetClientUpdate1) -> (RateSheet1)
130
- *
131
- * @param {string} rateSheetId
132
- * @param {Chrt.billing.RateSheetClientUpdate1} request
133
- * @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
134
- *
135
- * @throws {@link Chrt.UnprocessableEntityError}
136
- *
137
- * @example
138
- * await client.billing.rateSheets.updateV1("rate_sheet_id")
139
- */
140
- updateV1(rateSheetId, request = {}, requestOptions) {
141
- return core.HttpResponsePromise.fromPromise(this.__updateV1(rateSheetId, request, requestOptions));
142
- }
143
- __updateV1(rateSheetId_1) {
144
- return __awaiter(this, arguments, void 0, function* (rateSheetId, request = {}, requestOptions) {
145
- var _a, _b, _c, _d;
146
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
147
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
148
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/rate_sheets/v1/${encodeURIComponent(rateSheetId)}`),
94
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/rate_sheets/archive/v1/${encodeURIComponent(rateSheetId)}`),
149
95
  method: "PATCH",
150
96
  headers: _headers,
151
- contentType: "application/json",
152
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
153
- requestType: "json",
154
- body: request,
97
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
155
98
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
156
99
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
157
100
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -179,7 +122,7 @@ class RateSheets {
179
122
  rawResponse: _response.rawResponse,
180
123
  });
181
124
  case "timeout":
182
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/v1/{rate_sheet_id}.");
125
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/archive/v1/{rate_sheet_id}.");
183
126
  case "unknown":
184
127
  throw new errors.ChrtError({
185
128
  message: _response.error.errorMessage,
@@ -287,38 +230,39 @@ class RateSheets {
287
230
  });
288
231
  }
289
232
  /**
290
- * Creates a rate sheet. Couriers and forwarders only. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | (RateSheetClientCreate1) -> (PydanticObjectId)
233
+ * Sets or clears a rate sheet as the default for a connection. Pass rate_sheet_id to set a default, or omit it to clear the default. One default per service type per connection. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
291
234
  *
292
- * @param {Chrt.billing.RateSheetClientCreate1} request
235
+ * @param {Chrt.billing.RateSheetsUpdateDefaultForConnectionV1Request} request
293
236
  * @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
294
237
  *
295
238
  * @throws {@link Chrt.UnprocessableEntityError}
296
239
  *
297
240
  * @example
298
- * await client.billing.rateSheets.createV1({
299
- * payment_vector_type: "shipper_pay_forwarder",
300
- * schema_version: 1,
301
- * service_type: "on_demand"
241
+ * await client.billing.rateSheets.updateDefaultForConnectionV1({
242
+ * connection_id: "connection_id",
243
+ * service_type: "on_demand",
244
+ * rate_sheet_id: "rate_sheet_id"
302
245
  * })
303
246
  */
304
- createV1(request, requestOptions) {
305
- return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
247
+ updateDefaultForConnectionV1(request, requestOptions) {
248
+ return core.HttpResponsePromise.fromPromise(this.__updateDefaultForConnectionV1(request, requestOptions));
306
249
  }
307
- __createV1(request, requestOptions) {
250
+ __updateDefaultForConnectionV1(request, requestOptions) {
308
251
  return __awaiter(this, void 0, void 0, function* () {
309
252
  var _a, _b, _c, _d;
310
- const { payment_vector_type: paymentVectorType } = request, _body = __rest(request, ["payment_vector_type"]);
253
+ const { connection_id: connectionId, service_type: serviceType, rate_sheet_id: rateSheetId } = request;
311
254
  const _queryParams = {};
312
- _queryParams["payment_vector_type"] = paymentVectorType;
255
+ _queryParams["connection_id"] = connectionId;
256
+ _queryParams["service_type"] = serviceType;
257
+ if (rateSheetId !== undefined) {
258
+ _queryParams["rate_sheet_id"] = rateSheetId;
259
+ }
313
260
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
314
261
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
315
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/rate_sheets/v1"),
316
- method: "POST",
262
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/rate_sheets/update_default_for_connection/v1"),
263
+ method: "PATCH",
317
264
  headers: _headers,
318
- contentType: "application/json",
319
265
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
320
- requestType: "json",
321
- body: _body,
322
266
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
323
267
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
324
268
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -346,7 +290,7 @@ class RateSheets {
346
290
  rawResponse: _response.rawResponse,
347
291
  });
348
292
  case "timeout":
349
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/rate_sheets/v1.");
293
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/update_default_for_connection/v1.");
350
294
  case "unknown":
351
295
  throw new errors.ChrtError({
352
296
  message: _response.error.errorMessage,
@@ -356,31 +300,36 @@ class RateSheets {
356
300
  });
357
301
  }
358
302
  /**
359
- * Archives or unarchives a rate sheet. When archiving, automatically removes the rate sheet from all default assignments (OrgPrivateData, Connections, Drivers). | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
303
+ * Sets or clears a rate sheet as the default for a driver. Pass rate_sheet_id to set a default, or omit it to clear the default. One default per service type per driver. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
360
304
  *
361
- * @param {string} rateSheetId
362
- * @param {Chrt.billing.RateSheetsArchiveV1Request} request
305
+ * @param {Chrt.billing.RateSheetsUpdateDefaultForDriverV1Request} request
363
306
  * @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
364
307
  *
365
308
  * @throws {@link Chrt.UnprocessableEntityError}
366
309
  *
367
310
  * @example
368
- * await client.billing.rateSheets.archiveV1("rate_sheet_id", {
369
- * archive: true
311
+ * await client.billing.rateSheets.updateDefaultForDriverV1({
312
+ * driver_id: "driver_id",
313
+ * service_type: "on_demand",
314
+ * rate_sheet_id: "rate_sheet_id"
370
315
  * })
371
316
  */
372
- archiveV1(rateSheetId, request, requestOptions) {
373
- return core.HttpResponsePromise.fromPromise(this.__archiveV1(rateSheetId, request, requestOptions));
317
+ updateDefaultForDriverV1(request, requestOptions) {
318
+ return core.HttpResponsePromise.fromPromise(this.__updateDefaultForDriverV1(request, requestOptions));
374
319
  }
375
- __archiveV1(rateSheetId, request, requestOptions) {
320
+ __updateDefaultForDriverV1(request, requestOptions) {
376
321
  return __awaiter(this, void 0, void 0, function* () {
377
322
  var _a, _b, _c, _d;
378
- const { archive } = request;
323
+ const { driver_id: driverId, service_type: serviceType, rate_sheet_id: rateSheetId } = request;
379
324
  const _queryParams = {};
380
- _queryParams["archive"] = archive.toString();
325
+ _queryParams["driver_id"] = driverId;
326
+ _queryParams["service_type"] = serviceType;
327
+ if (rateSheetId !== undefined) {
328
+ _queryParams["rate_sheet_id"] = rateSheetId;
329
+ }
381
330
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
382
331
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
383
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/rate_sheets/archive/v1/${encodeURIComponent(rateSheetId)}`),
332
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/rate_sheets/update_default_for_driver/v1"),
384
333
  method: "PATCH",
385
334
  headers: _headers,
386
335
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -411,7 +360,7 @@ class RateSheets {
411
360
  rawResponse: _response.rawResponse,
412
361
  });
413
362
  case "timeout":
414
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/archive/v1/{rate_sheet_id}.");
363
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/update_default_for_driver/v1.");
415
364
  case "unknown":
416
365
  throw new errors.ChrtError({
417
366
  message: _response.error.errorMessage,
@@ -421,36 +370,36 @@ class RateSheets {
421
370
  });
422
371
  }
423
372
  /**
424
- * Sets or clears the org's default rate sheet for a payment vector type and service type. Pass rate_sheet_id to set a default, or omit it to clear the default. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
373
+ * Sets or clears a rate sheet as the default for an off-chrt shipper. Pass rate_sheet_id to set a default, or omit it to clear the default. One default per service type per off-chrt shipper. | authz: allowed_org_types=[courier], min_org_role=operator | () -> (bool)
425
374
  *
426
- * @param {Chrt.billing.RateSheetsUpdateOrgDefaultForServiceTypeV1Request} request
375
+ * @param {Chrt.billing.RateSheetsUpdateDefaultForOffChrtShipperV1Request} request
427
376
  * @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
428
377
  *
429
378
  * @throws {@link Chrt.UnprocessableEntityError}
430
379
  *
431
380
  * @example
432
- * await client.billing.rateSheets.updateOrgDefaultForServiceTypeV1({
433
- * payment_vector_type: "shipper_pay_forwarder",
381
+ * await client.billing.rateSheets.updateDefaultForOffChrtShipperV1({
382
+ * off_chrt_shipper_org_id: "off_chrt_shipper_org_id",
434
383
  * service_type: "on_demand",
435
384
  * rate_sheet_id: "rate_sheet_id"
436
385
  * })
437
386
  */
438
- updateOrgDefaultForServiceTypeV1(request, requestOptions) {
439
- return core.HttpResponsePromise.fromPromise(this.__updateOrgDefaultForServiceTypeV1(request, requestOptions));
387
+ updateDefaultForOffChrtShipperV1(request, requestOptions) {
388
+ return core.HttpResponsePromise.fromPromise(this.__updateDefaultForOffChrtShipperV1(request, requestOptions));
440
389
  }
441
- __updateOrgDefaultForServiceTypeV1(request, requestOptions) {
390
+ __updateDefaultForOffChrtShipperV1(request, requestOptions) {
442
391
  return __awaiter(this, void 0, void 0, function* () {
443
392
  var _a, _b, _c, _d;
444
- const { payment_vector_type: paymentVectorType, service_type: serviceType, rate_sheet_id: rateSheetId, } = request;
393
+ const { off_chrt_shipper_org_id: offChrtShipperOrgId, service_type: serviceType, rate_sheet_id: rateSheetId, } = request;
445
394
  const _queryParams = {};
446
- _queryParams["payment_vector_type"] = paymentVectorType;
395
+ _queryParams["off_chrt_shipper_org_id"] = offChrtShipperOrgId;
447
396
  _queryParams["service_type"] = serviceType;
448
397
  if (rateSheetId !== undefined) {
449
398
  _queryParams["rate_sheet_id"] = rateSheetId;
450
399
  }
451
400
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
452
401
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
453
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/rate_sheets/update_org_default_for_service_type/v1"),
402
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/rate_sheets/update_default_for_off_chrt_shipper/v1"),
454
403
  method: "PATCH",
455
404
  headers: _headers,
456
405
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -481,7 +430,7 @@ class RateSheets {
481
430
  rawResponse: _response.rawResponse,
482
431
  });
483
432
  case "timeout":
484
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/update_org_default_for_service_type/v1.");
433
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/update_default_for_off_chrt_shipper/v1.");
485
434
  case "unknown":
486
435
  throw new errors.ChrtError({
487
436
  message: _response.error.errorMessage,
@@ -491,36 +440,36 @@ class RateSheets {
491
440
  });
492
441
  }
493
442
  /**
494
- * Sets or clears a rate sheet as the default for a connection. Pass rate_sheet_id to set a default, or omit it to clear the default. One default per service type per connection. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
443
+ * Sets or clears the org's default rate sheet for a payment vector type and service type. Pass rate_sheet_id to set a default, or omit it to clear the default. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
495
444
  *
496
- * @param {Chrt.billing.RateSheetsUpdateDefaultForConnectionV1Request} request
445
+ * @param {Chrt.billing.RateSheetsUpdateOrgDefaultForServiceTypeV1Request} request
497
446
  * @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
498
447
  *
499
448
  * @throws {@link Chrt.UnprocessableEntityError}
500
449
  *
501
450
  * @example
502
- * await client.billing.rateSheets.updateDefaultForConnectionV1({
503
- * connection_id: "connection_id",
451
+ * await client.billing.rateSheets.updateOrgDefaultForServiceTypeV1({
452
+ * payment_vector_type: "shipper_pay_forwarder",
504
453
  * service_type: "on_demand",
505
454
  * rate_sheet_id: "rate_sheet_id"
506
455
  * })
507
456
  */
508
- updateDefaultForConnectionV1(request, requestOptions) {
509
- return core.HttpResponsePromise.fromPromise(this.__updateDefaultForConnectionV1(request, requestOptions));
457
+ updateOrgDefaultForServiceTypeV1(request, requestOptions) {
458
+ return core.HttpResponsePromise.fromPromise(this.__updateOrgDefaultForServiceTypeV1(request, requestOptions));
510
459
  }
511
- __updateDefaultForConnectionV1(request, requestOptions) {
460
+ __updateOrgDefaultForServiceTypeV1(request, requestOptions) {
512
461
  return __awaiter(this, void 0, void 0, function* () {
513
462
  var _a, _b, _c, _d;
514
- const { connection_id: connectionId, service_type: serviceType, rate_sheet_id: rateSheetId } = request;
463
+ const { payment_vector_type: paymentVectorType, service_type: serviceType, rate_sheet_id: rateSheetId, } = request;
515
464
  const _queryParams = {};
516
- _queryParams["connection_id"] = connectionId;
465
+ _queryParams["payment_vector_type"] = paymentVectorType;
517
466
  _queryParams["service_type"] = serviceType;
518
467
  if (rateSheetId !== undefined) {
519
468
  _queryParams["rate_sheet_id"] = rateSheetId;
520
469
  }
521
470
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
522
471
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
523
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/rate_sheets/update_default_for_connection/v1"),
472
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/rate_sheets/update_org_default_for_service_type/v1"),
524
473
  method: "PATCH",
525
474
  headers: _headers,
526
475
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -551,7 +500,7 @@ class RateSheets {
551
500
  rawResponse: _response.rawResponse,
552
501
  });
553
502
  case "timeout":
554
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/update_default_for_connection/v1.");
503
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/update_org_default_for_service_type/v1.");
555
504
  case "unknown":
556
505
  throw new errors.ChrtError({
557
506
  message: _response.error.errorMessage,
@@ -561,39 +510,38 @@ class RateSheets {
561
510
  });
562
511
  }
563
512
  /**
564
- * Sets or clears a rate sheet as the default for a driver. Pass rate_sheet_id to set a default, or omit it to clear the default. One default per service type per driver. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
513
+ * Creates a rate sheet. Couriers and forwarders only. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | (RateSheetClientCreate1) -> (PydanticObjectId)
565
514
  *
566
- * @param {Chrt.billing.RateSheetsUpdateDefaultForDriverV1Request} request
515
+ * @param {Chrt.billing.RateSheetClientCreate1} request
567
516
  * @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
568
517
  *
569
518
  * @throws {@link Chrt.UnprocessableEntityError}
570
519
  *
571
520
  * @example
572
- * await client.billing.rateSheets.updateDefaultForDriverV1({
573
- * driver_id: "driver_id",
574
- * service_type: "on_demand",
575
- * rate_sheet_id: "rate_sheet_id"
521
+ * await client.billing.rateSheets.createV1({
522
+ * payment_vector_type: "shipper_pay_forwarder",
523
+ * schema_version: 1,
524
+ * service_type: "on_demand"
576
525
  * })
577
526
  */
578
- updateDefaultForDriverV1(request, requestOptions) {
579
- return core.HttpResponsePromise.fromPromise(this.__updateDefaultForDriverV1(request, requestOptions));
527
+ createV1(request, requestOptions) {
528
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
580
529
  }
581
- __updateDefaultForDriverV1(request, requestOptions) {
530
+ __createV1(request, requestOptions) {
582
531
  return __awaiter(this, void 0, void 0, function* () {
583
532
  var _a, _b, _c, _d;
584
- const { driver_id: driverId, service_type: serviceType, rate_sheet_id: rateSheetId } = request;
533
+ const { payment_vector_type: paymentVectorType } = request, _body = __rest(request, ["payment_vector_type"]);
585
534
  const _queryParams = {};
586
- _queryParams["driver_id"] = driverId;
587
- _queryParams["service_type"] = serviceType;
588
- if (rateSheetId !== undefined) {
589
- _queryParams["rate_sheet_id"] = rateSheetId;
590
- }
535
+ _queryParams["payment_vector_type"] = paymentVectorType;
591
536
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
592
537
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
593
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/rate_sheets/update_default_for_driver/v1"),
594
- method: "PATCH",
538
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/rate_sheets/v1"),
539
+ method: "POST",
595
540
  headers: _headers,
541
+ contentType: "application/json",
596
542
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
543
+ requestType: "json",
544
+ body: _body,
597
545
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
598
546
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
599
547
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -621,7 +569,7 @@ class RateSheets {
621
569
  rawResponse: _response.rawResponse,
622
570
  });
623
571
  case "timeout":
624
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/update_default_for_driver/v1.");
572
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/rate_sheets/v1.");
625
573
  case "unknown":
626
574
  throw new errors.ChrtError({
627
575
  message: _response.error.errorMessage,
@@ -631,39 +579,91 @@ class RateSheets {
631
579
  });
632
580
  }
633
581
  /**
634
- * Sets or clears a rate sheet as the default for an off-chrt shipper. Pass rate_sheet_id to set a default, or omit it to clear the default. One default per service type per off-chrt shipper. | authz: allowed_org_types=[courier], min_org_role=operator | () -> (bool)
582
+ * Retrieves a rate sheet by ID. Only the owning org can fetch. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (RateSheet1)
635
583
  *
636
- * @param {Chrt.billing.RateSheetsUpdateDefaultForOffChrtShipperV1Request} request
584
+ * @param {string} rateSheetId
637
585
  * @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
638
586
  *
639
587
  * @throws {@link Chrt.UnprocessableEntityError}
640
588
  *
641
589
  * @example
642
- * await client.billing.rateSheets.updateDefaultForOffChrtShipperV1({
643
- * off_chrt_shipper_org_id: "off_chrt_shipper_org_id",
644
- * service_type: "on_demand",
645
- * rate_sheet_id: "rate_sheet_id"
646
- * })
590
+ * await client.billing.rateSheets.getV1("rate_sheet_id")
647
591
  */
648
- updateDefaultForOffChrtShipperV1(request, requestOptions) {
649
- return core.HttpResponsePromise.fromPromise(this.__updateDefaultForOffChrtShipperV1(request, requestOptions));
592
+ getV1(rateSheetId, requestOptions) {
593
+ return core.HttpResponsePromise.fromPromise(this.__getV1(rateSheetId, requestOptions));
650
594
  }
651
- __updateDefaultForOffChrtShipperV1(request, requestOptions) {
595
+ __getV1(rateSheetId, requestOptions) {
652
596
  return __awaiter(this, void 0, void 0, function* () {
653
597
  var _a, _b, _c, _d;
654
- const { off_chrt_shipper_org_id: offChrtShipperOrgId, service_type: serviceType, rate_sheet_id: rateSheetId, } = request;
655
- const _queryParams = {};
656
- _queryParams["off_chrt_shipper_org_id"] = offChrtShipperOrgId;
657
- _queryParams["service_type"] = serviceType;
658
- if (rateSheetId !== undefined) {
659
- _queryParams["rate_sheet_id"] = rateSheetId;
598
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
599
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
600
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/rate_sheets/v1/${encodeURIComponent(rateSheetId)}`),
601
+ method: "GET",
602
+ headers: _headers,
603
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
604
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
605
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
606
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
607
+ });
608
+ if (_response.ok) {
609
+ return { data: _response.body, rawResponse: _response.rawResponse };
610
+ }
611
+ if (_response.error.reason === "status-code") {
612
+ switch (_response.error.statusCode) {
613
+ case 422:
614
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
615
+ default:
616
+ throw new errors.ChrtError({
617
+ statusCode: _response.error.statusCode,
618
+ body: _response.error.body,
619
+ rawResponse: _response.rawResponse,
620
+ });
621
+ }
660
622
  }
623
+ switch (_response.error.reason) {
624
+ case "non-json":
625
+ throw new errors.ChrtError({
626
+ statusCode: _response.error.statusCode,
627
+ body: _response.error.rawBody,
628
+ rawResponse: _response.rawResponse,
629
+ });
630
+ case "timeout":
631
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /billing/rate_sheets/v1/{rate_sheet_id}.");
632
+ case "unknown":
633
+ throw new errors.ChrtError({
634
+ message: _response.error.errorMessage,
635
+ rawResponse: _response.rawResponse,
636
+ });
637
+ }
638
+ });
639
+ }
640
+ /**
641
+ * Updates a rate sheet. Only name, comments, cargo_types, and vehicle_types can be changed. Use the archive endpoint for archiving. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | (RateSheetClientUpdate1) -> (RateSheet1)
642
+ *
643
+ * @param {string} rateSheetId
644
+ * @param {Chrt.billing.RateSheetClientUpdate1} request
645
+ * @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
646
+ *
647
+ * @throws {@link Chrt.UnprocessableEntityError}
648
+ *
649
+ * @example
650
+ * await client.billing.rateSheets.updateV1("rate_sheet_id")
651
+ */
652
+ updateV1(rateSheetId, request = {}, requestOptions) {
653
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(rateSheetId, request, requestOptions));
654
+ }
655
+ __updateV1(rateSheetId_1) {
656
+ return __awaiter(this, arguments, void 0, function* (rateSheetId, request = {}, requestOptions) {
657
+ var _a, _b, _c, _d;
661
658
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
662
659
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
663
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing/rate_sheets/update_default_for_off_chrt_shipper/v1"),
660
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing/rate_sheets/v1/${encodeURIComponent(rateSheetId)}`),
664
661
  method: "PATCH",
665
662
  headers: _headers,
666
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
663
+ contentType: "application/json",
664
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
665
+ requestType: "json",
666
+ body: request,
667
667
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
668
668
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
669
669
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -691,7 +691,7 @@ class RateSheets {
691
691
  rawResponse: _response.rawResponse,
692
692
  });
693
693
  case "timeout":
694
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/update_default_for_off_chrt_shipper/v1.");
694
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing/rate_sheets/v1/{rate_sheet_id}.");
695
695
  case "unknown":
696
696
  throw new errors.ChrtError({
697
697
  message: _response.error.errorMessage,
@@ -12,26 +12,26 @@ import * as Chrt from "../../../../../../index.js";
12
12
  */
13
13
  export interface RateSheetClientCreate1 {
14
14
  payment_vector_type: Chrt.PaymentVectorTypeEnum1;
15
- schema_version: number;
15
+ /** applies only to the additional/incremental miles */
16
+ additional_mileage_rate_usd_per_mile?: number | null;
17
+ after_hours_rate_usd_per_instance?: number | null;
16
18
  archived?: boolean;
17
- name?: string | null;
18
- comments?: string | null;
19
- cargo_types?: Chrt.CargoTypeEnum1[];
20
- vehicle_types?: Chrt.VehicleTypeEnum[];
21
- service_type: Chrt.ServiceTypeEnum1;
22
19
  base_mileage_distance_miles?: number | null;
23
20
  base_mileage_rate_usd_per_instance?: number | null;
24
- /** applies only to the additional/incremental miles */
25
- additional_mileage_rate_usd_per_mile?: number | null;
21
+ cargo_types?: Chrt.CargoTypeEnum1[];
22
+ comments?: string | null;
23
+ dangerous_goods_rate_usd_per_instance?: number | null;
24
+ extra_stop_rate_usd?: number | null;
25
+ fuel_surcharge_rate_usd_per_mile?: number | null;
26
+ holiday_rate_usd_per_instance?: number | null;
26
27
  long_distance_surcharge_miles_before_surcharge?: number | null;
27
28
  /** applies only to the additional/incremental miles */
28
29
  long_distance_surcharge_rate_usd_per_mile?: number | null;
29
- fuel_surcharge_rate_usd_per_mile?: number | null;
30
+ name?: string | null;
31
+ schema_version: number;
32
+ service_type: Chrt.ServiceTypeEnum1;
33
+ vehicle_types?: Chrt.VehicleTypeEnum[];
30
34
  wait_time_before_charge_minutes?: number | null;
31
35
  wait_time_rate_usd_per_minute?: number | null;
32
- extra_stop_rate_usd?: number | null;
33
- dangerous_goods_rate_usd_per_instance?: number | null;
34
- after_hours_rate_usd_per_instance?: number | null;
35
36
  weekend_rate_usd_per_instance?: number | null;
36
- holiday_rate_usd_per_instance?: number | null;
37
37
  }
@@ -7,8 +7,8 @@ import * as Chrt from "../../../../../../index.js";
7
7
  * {}
8
8
  */
9
9
  export interface RateSheetClientUpdate1 {
10
- name?: string | null;
11
- comments?: string | null;
12
10
  cargo_types?: Chrt.CargoTypeEnum1[] | null;
11
+ comments?: string | null;
12
+ name?: string | null;
13
13
  vehicle_types?: Chrt.VehicleTypeEnum[] | null;
14
14
  }
@@ -1,8 +1,8 @@
1
- export { type RateSheetClientUpdate1 } from "./RateSheetClientUpdate1.js";
2
- export { type RateSheetsListByOrgV1Request } from "./RateSheetsListByOrgV1Request.js";
3
- export { type RateSheetClientCreate1 } from "./RateSheetClientCreate1.js";
4
1
  export { type RateSheetsArchiveV1Request } from "./RateSheetsArchiveV1Request.js";
5
- export { type RateSheetsUpdateOrgDefaultForServiceTypeV1Request } from "./RateSheetsUpdateOrgDefaultForServiceTypeV1Request.js";
2
+ export { type RateSheetsListByOrgV1Request } from "./RateSheetsListByOrgV1Request.js";
6
3
  export { type RateSheetsUpdateDefaultForConnectionV1Request } from "./RateSheetsUpdateDefaultForConnectionV1Request.js";
7
4
  export { type RateSheetsUpdateDefaultForDriverV1Request } from "./RateSheetsUpdateDefaultForDriverV1Request.js";
8
5
  export { type RateSheetsUpdateDefaultForOffChrtShipperV1Request } from "./RateSheetsUpdateDefaultForOffChrtShipperV1Request.js";
6
+ export { type RateSheetsUpdateOrgDefaultForServiceTypeV1Request } from "./RateSheetsUpdateOrgDefaultForServiceTypeV1Request.js";
7
+ export { type RateSheetClientCreate1 } from "./RateSheetClientCreate1.js";
8
+ export { type RateSheetClientUpdate1 } from "./RateSheetClientUpdate1.js";