@chrt-inc/typescript-sdk 1.282.0 → 1.285.0

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 (300) hide show
  1. package/README.md +29 -29
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/connections/client/Client.d.ts +6 -6
  4. package/dist/cjs/api/resources/connections/client/Client.js +12 -12
  5. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +4 -4
  6. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +7 -7
  7. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.d.ts +12 -12
  8. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.js +24 -24
  9. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.ts +3 -3
  10. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.js +6 -6
  11. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.ts +4 -4
  12. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.js +7 -7
  13. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +14 -14
  14. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +26 -26
  15. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +18 -18
  16. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +36 -36
  17. package/dist/cjs/api/resources/dev/client/Client.d.ts +34 -27
  18. package/dist/cjs/api/resources/dev/client/Client.js +96 -50
  19. package/dist/cjs/api/resources/dev/index.d.ts +0 -1
  20. package/dist/cjs/api/resources/dev/index.js +0 -1
  21. package/dist/cjs/api/resources/drivers/client/Client.d.ts +30 -30
  22. package/dist/cjs/api/resources/drivers/client/Client.js +60 -60
  23. package/dist/cjs/api/resources/milestoneNotifications/client/Client.d.ts +6 -6
  24. package/dist/cjs/api/resources/milestoneNotifications/client/Client.js +12 -12
  25. package/dist/cjs/api/resources/milestones/client/Client.d.ts +6 -6
  26. package/dist/cjs/api/resources/milestones/client/Client.js +12 -12
  27. package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +3 -3
  28. package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +6 -6
  29. package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +9 -9
  30. package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +18 -18
  31. package/dist/cjs/api/resources/milestones/resources/images/client/requests/{BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts → BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.d.ts} +1 -1
  32. package/dist/cjs/api/resources/milestones/resources/images/client/requests/index.d.ts +1 -1
  33. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +6 -6
  34. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +12 -12
  35. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +6 -6
  36. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +12 -12
  37. package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.d.ts +15 -15
  38. package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.js +30 -30
  39. package/dist/cjs/api/resources/orders/client/Client.d.ts +12 -12
  40. package/dist/cjs/api/resources/orders/client/Client.js +24 -24
  41. package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +9 -9
  42. package/dist/cjs/api/resources/orders/resources/full/client/Client.js +18 -18
  43. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +9 -9
  44. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +18 -18
  45. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +9 -9
  46. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +18 -18
  47. package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +20 -20
  48. package/dist/cjs/api/resources/orgProfiles/client/Client.js +35 -35
  49. package/dist/cjs/api/resources/orgs/client/Client.d.ts +24 -24
  50. package/dist/cjs/api/resources/orgs/client/Client.js +48 -48
  51. package/dist/cjs/api/resources/payments/client/Client.d.ts +19 -19
  52. package/dist/cjs/api/resources/payments/client/Client.js +34 -34
  53. package/dist/cjs/api/resources/root/client/Client.d.ts +14 -14
  54. package/dist/cjs/api/resources/root/client/Client.js +26 -26
  55. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +27 -27
  56. package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +54 -54
  57. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +16 -16
  58. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +31 -31
  59. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.ts +3 -3
  60. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.js +6 -6
  61. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +3 -3
  62. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +6 -6
  63. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.ts +4 -4
  64. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.js +7 -7
  65. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +9 -9
  66. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +18 -18
  67. package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +28 -28
  68. package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.js +49 -49
  69. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.d.ts +15 -15
  70. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.js +30 -30
  71. package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +19 -19
  72. package/dist/cjs/api/resources/taskGroups/client/Client.js +37 -37
  73. package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +6 -6
  74. package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +12 -12
  75. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +3 -3
  76. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +6 -6
  77. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.d.ts +5 -5
  78. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.js +8 -8
  79. package/dist/{esm/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.d.mts → cjs/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenV1Request.d.ts} +1 -1
  80. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.ts +1 -1
  81. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.d.ts +5 -5
  82. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.js +8 -8
  83. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/{CargoByDriverLastSeenRequest.d.ts → CargoByDriverLastSeenV1Request.d.ts} +1 -1
  84. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.ts +1 -1
  85. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +32 -32
  86. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +53 -53
  87. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesDeleteRequest.d.ts → DevicesDeleteV1Request.d.ts} +1 -1
  88. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesGetRequest.d.ts → DevicesGetV1Request.d.ts} +1 -1
  89. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesLinkToCargoRequest.d.ts → DevicesLinkToCargoV1Request.d.ts} +1 -1
  90. package/dist/{esm/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoRequest.d.mts → cjs/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoV1Request.d.ts} +1 -1
  91. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +4 -4
  92. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +4 -4
  93. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +7 -7
  94. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +66 -66
  95. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +108 -108
  96. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsPublicRequest.d.ts → SessionByDeviceDataPointsPublicV1Request.d.ts} +1 -1
  97. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsRequest.d.ts → SessionByDeviceDataPointsV1Request.d.ts} +1 -1
  98. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenRequest.d.ts → SessionByDeviceDeleteV1Request.d.ts} +1 -1
  99. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceGetRequest.d.ts → SessionByDeviceGetV1Request.d.ts} +1 -1
  100. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenPublicRequest.d.ts → SessionByDeviceLastSeenPublicV1Request.d.ts} +1 -1
  101. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenV1Request.d.ts +12 -0
  102. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingV1Request.d.ts +12 -0
  103. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingV1Request.d.ts +12 -0
  104. package/dist/{esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteRequest.d.mts → cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartV1Request.d.ts} +1 -1
  105. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateV1Request.d.ts +12 -0
  106. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.ts +10 -10
  107. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.ts +5 -5
  108. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.js +8 -8
  109. package/dist/{esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenRequest.d.mts → cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenV1Request.d.ts} +1 -1
  110. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.ts +1 -1
  111. package/dist/cjs/api/resources/users/client/Client.d.ts +4 -4
  112. package/dist/cjs/api/resources/users/client/Client.js +7 -7
  113. package/dist/cjs/api/resources/utils/client/Client.d.ts +4 -4
  114. package/dist/cjs/api/resources/utils/client/Client.js +7 -7
  115. package/dist/cjs/api/resources/utils/client/requests/{UtilsGetTimezoneRequest.d.ts → UtilsGetTimezoneV1Request.d.ts} +1 -1
  116. package/dist/cjs/api/resources/utils/client/requests/index.d.ts +1 -1
  117. package/dist/cjs/version.d.ts +1 -1
  118. package/dist/cjs/version.js +1 -1
  119. package/dist/esm/Client.mjs +2 -2
  120. package/dist/esm/api/resources/connections/client/Client.d.mts +6 -6
  121. package/dist/esm/api/resources/connections/client/Client.mjs +12 -12
  122. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +4 -4
  123. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +7 -7
  124. package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.d.mts +12 -12
  125. package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.mjs +24 -24
  126. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.mts +3 -3
  127. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.mjs +6 -6
  128. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.mts +4 -4
  129. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.mjs +7 -7
  130. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +14 -14
  131. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +26 -26
  132. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +18 -18
  133. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +36 -36
  134. package/dist/esm/api/resources/dev/client/Client.d.mts +34 -27
  135. package/dist/esm/api/resources/dev/client/Client.mjs +96 -50
  136. package/dist/esm/api/resources/dev/index.d.mts +0 -1
  137. package/dist/esm/api/resources/dev/index.mjs +0 -1
  138. package/dist/esm/api/resources/drivers/client/Client.d.mts +30 -30
  139. package/dist/esm/api/resources/drivers/client/Client.mjs +60 -60
  140. package/dist/esm/api/resources/milestoneNotifications/client/Client.d.mts +6 -6
  141. package/dist/esm/api/resources/milestoneNotifications/client/Client.mjs +12 -12
  142. package/dist/esm/api/resources/milestones/client/Client.d.mts +6 -6
  143. package/dist/esm/api/resources/milestones/client/Client.mjs +12 -12
  144. package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +3 -3
  145. package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +6 -6
  146. package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +9 -9
  147. package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +18 -18
  148. package/dist/esm/api/resources/milestones/resources/images/client/requests/{BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts → BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.d.mts} +1 -1
  149. package/dist/esm/api/resources/milestones/resources/images/client/requests/index.d.mts +1 -1
  150. package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +6 -6
  151. package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +12 -12
  152. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +6 -6
  153. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +12 -12
  154. package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.d.mts +15 -15
  155. package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.mjs +30 -30
  156. package/dist/esm/api/resources/orders/client/Client.d.mts +12 -12
  157. package/dist/esm/api/resources/orders/client/Client.mjs +24 -24
  158. package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +9 -9
  159. package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +18 -18
  160. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +9 -9
  161. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +18 -18
  162. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +9 -9
  163. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +18 -18
  164. package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +20 -20
  165. package/dist/esm/api/resources/orgProfiles/client/Client.mjs +35 -35
  166. package/dist/esm/api/resources/orgs/client/Client.d.mts +24 -24
  167. package/dist/esm/api/resources/orgs/client/Client.mjs +48 -48
  168. package/dist/esm/api/resources/payments/client/Client.d.mts +19 -19
  169. package/dist/esm/api/resources/payments/client/Client.mjs +34 -34
  170. package/dist/esm/api/resources/root/client/Client.d.mts +14 -14
  171. package/dist/esm/api/resources/root/client/Client.mjs +26 -26
  172. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +27 -27
  173. package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +54 -54
  174. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +16 -16
  175. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +31 -31
  176. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.mts +3 -3
  177. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.mjs +6 -6
  178. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +3 -3
  179. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +6 -6
  180. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.mts +4 -4
  181. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.mjs +7 -7
  182. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +9 -9
  183. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +18 -18
  184. package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +28 -28
  185. package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.mjs +49 -49
  186. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.d.mts +15 -15
  187. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.mjs +30 -30
  188. package/dist/esm/api/resources/taskGroups/client/Client.d.mts +19 -19
  189. package/dist/esm/api/resources/taskGroups/client/Client.mjs +37 -37
  190. package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +6 -6
  191. package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +12 -12
  192. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +3 -3
  193. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +6 -6
  194. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.d.mts +5 -5
  195. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.mjs +8 -8
  196. package/dist/{cjs/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.d.ts → esm/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenV1Request.d.mts} +1 -1
  197. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.mts +1 -1
  198. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.d.mts +5 -5
  199. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.mjs +8 -8
  200. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/{CargoByDriverLastSeenRequest.d.mts → CargoByDriverLastSeenV1Request.d.mts} +1 -1
  201. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.mts +1 -1
  202. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +32 -32
  203. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +53 -53
  204. package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesDeleteRequest.d.mts → DevicesDeleteV1Request.d.mts} +1 -1
  205. package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesGetRequest.d.mts → DevicesGetV1Request.d.mts} +1 -1
  206. package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesLinkToCargoRequest.d.mts → DevicesLinkToCargoV1Request.d.mts} +1 -1
  207. package/dist/{cjs/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoRequest.d.ts → esm/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoV1Request.d.mts} +1 -1
  208. package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +4 -4
  209. package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +4 -4
  210. package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +7 -7
  211. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +66 -66
  212. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +108 -108
  213. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsPublicRequest.d.mts → SessionByDeviceDataPointsPublicV1Request.d.mts} +1 -1
  214. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsRequest.d.mts → SessionByDeviceDataPointsV1Request.d.mts} +1 -1
  215. package/dist/{cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteRequest.d.ts → esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteV1Request.d.mts} +1 -1
  216. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceGetRequest.d.mts → SessionByDeviceGetV1Request.d.mts} +1 -1
  217. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicV1Request.d.mts +12 -0
  218. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenV1Request.d.mts +12 -0
  219. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingV1Request.d.mts +12 -0
  220. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingV1Request.d.mts +12 -0
  221. package/dist/{cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartRequest.d.ts → esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartV1Request.d.mts} +1 -1
  222. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateV1Request.d.mts +12 -0
  223. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.mts +10 -10
  224. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.mts +5 -5
  225. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.mjs +8 -8
  226. package/dist/{cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenRequest.d.ts → esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenV1Request.d.mts} +1 -1
  227. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.mts +1 -1
  228. package/dist/esm/api/resources/users/client/Client.d.mts +4 -4
  229. package/dist/esm/api/resources/users/client/Client.mjs +7 -7
  230. package/dist/esm/api/resources/utils/client/Client.d.mts +4 -4
  231. package/dist/esm/api/resources/utils/client/Client.mjs +7 -7
  232. package/dist/esm/api/resources/utils/client/requests/{UtilsGetTimezoneRequest.d.mts → UtilsGetTimezoneV1Request.d.mts} +1 -1
  233. package/dist/esm/api/resources/utils/client/requests/index.d.mts +1 -1
  234. package/dist/esm/version.d.mts +1 -1
  235. package/dist/esm/version.mjs +1 -1
  236. package/package.json +1 -1
  237. package/reference.md +440 -442
  238. package/dist/cjs/api/resources/dev/resources/getUserId/client/Client.d.ts +0 -43
  239. package/dist/cjs/api/resources/dev/resources/getUserId/client/Client.js +0 -118
  240. package/dist/cjs/api/resources/dev/resources/getUserId/client/index.d.ts +0 -1
  241. package/dist/cjs/api/resources/dev/resources/getUserId/client/index.js +0 -2
  242. package/dist/cjs/api/resources/dev/resources/getUserId/index.d.ts +0 -1
  243. package/dist/cjs/api/resources/dev/resources/getUserId/index.js +0 -17
  244. package/dist/cjs/api/resources/dev/resources/index.d.ts +0 -1
  245. package/dist/cjs/api/resources/dev/resources/index.js +0 -37
  246. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingRequest.d.ts +0 -12
  247. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingRequest.d.ts +0 -12
  248. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateRequest.d.ts +0 -12
  249. package/dist/esm/api/resources/dev/resources/getUserId/client/Client.d.mts +0 -43
  250. package/dist/esm/api/resources/dev/resources/getUserId/client/Client.mjs +0 -81
  251. package/dist/esm/api/resources/dev/resources/getUserId/client/index.d.mts +0 -1
  252. package/dist/esm/api/resources/dev/resources/getUserId/client/index.mjs +0 -1
  253. package/dist/esm/api/resources/dev/resources/getUserId/index.d.mts +0 -1
  254. package/dist/esm/api/resources/dev/resources/getUserId/index.mjs +0 -1
  255. package/dist/esm/api/resources/dev/resources/index.d.mts +0 -1
  256. package/dist/esm/api/resources/dev/resources/index.mjs +0 -1
  257. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicRequest.d.mts +0 -12
  258. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenRequest.d.mts +0 -12
  259. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingRequest.d.mts +0 -12
  260. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingRequest.d.mts +0 -12
  261. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartRequest.d.mts +0 -12
  262. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateRequest.d.mts +0 -12
  263. /package/dist/cjs/api/resources/milestones/resources/images/client/requests/{BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.js → BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.js} +0 -0
  264. /package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/{CargoByDeviceLastSeenRequest.js → CargoByDeviceLastSeenV1Request.js} +0 -0
  265. /package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/{CargoByDriverLastSeenRequest.js → CargoByDriverLastSeenV1Request.js} +0 -0
  266. /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesDeleteRequest.js → DevicesDeleteV1Request.js} +0 -0
  267. /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesGetRequest.js → DevicesGetV1Request.js} +0 -0
  268. /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesLinkToCargoRequest.js → DevicesLinkToCargoV1Request.js} +0 -0
  269. /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesUnlinkFromCargoRequest.js → DevicesUnlinkFromCargoV1Request.js} +0 -0
  270. /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsPublicRequest.js → SessionByDeviceDataPointsPublicV1Request.js} +0 -0
  271. /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsRequest.js → SessionByDeviceDataPointsV1Request.js} +0 -0
  272. /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDeleteRequest.js → SessionByDeviceDeleteV1Request.js} +0 -0
  273. /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceGetRequest.js → SessionByDeviceGetV1Request.js} +0 -0
  274. /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenPublicRequest.js → SessionByDeviceLastSeenPublicV1Request.js} +0 -0
  275. /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenRequest.js → SessionByDeviceLastSeenV1Request.js} +0 -0
  276. /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDevicePauseRecordingRequest.js → SessionByDevicePauseRecordingV1Request.js} +0 -0
  277. /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceResumeRecordingRequest.js → SessionByDeviceResumeRecordingV1Request.js} +0 -0
  278. /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceStartRequest.js → SessionByDeviceStartV1Request.js} +0 -0
  279. /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceTerminateRequest.js → SessionByDeviceTerminateV1Request.js} +0 -0
  280. /package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/{TaskGroupByDriverLastSeenRequest.js → TaskGroupByDriverLastSeenV1Request.js} +0 -0
  281. /package/dist/cjs/api/resources/utils/client/requests/{UtilsGetTimezoneRequest.js → UtilsGetTimezoneV1Request.js} +0 -0
  282. /package/dist/esm/api/resources/milestones/resources/images/client/requests/{BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.mjs → BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.mjs} +0 -0
  283. /package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/{CargoByDeviceLastSeenRequest.mjs → CargoByDeviceLastSeenV1Request.mjs} +0 -0
  284. /package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/{CargoByDriverLastSeenRequest.mjs → CargoByDriverLastSeenV1Request.mjs} +0 -0
  285. /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesDeleteRequest.mjs → DevicesDeleteV1Request.mjs} +0 -0
  286. /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesGetRequest.mjs → DevicesGetV1Request.mjs} +0 -0
  287. /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesLinkToCargoRequest.mjs → DevicesLinkToCargoV1Request.mjs} +0 -0
  288. /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesUnlinkFromCargoRequest.mjs → DevicesUnlinkFromCargoV1Request.mjs} +0 -0
  289. /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsPublicRequest.mjs → SessionByDeviceDataPointsPublicV1Request.mjs} +0 -0
  290. /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsRequest.mjs → SessionByDeviceDataPointsV1Request.mjs} +0 -0
  291. /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDeleteRequest.mjs → SessionByDeviceDeleteV1Request.mjs} +0 -0
  292. /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceGetRequest.mjs → SessionByDeviceGetV1Request.mjs} +0 -0
  293. /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenPublicRequest.mjs → SessionByDeviceLastSeenPublicV1Request.mjs} +0 -0
  294. /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenRequest.mjs → SessionByDeviceLastSeenV1Request.mjs} +0 -0
  295. /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDevicePauseRecordingRequest.mjs → SessionByDevicePauseRecordingV1Request.mjs} +0 -0
  296. /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceResumeRecordingRequest.mjs → SessionByDeviceResumeRecordingV1Request.mjs} +0 -0
  297. /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceStartRequest.mjs → SessionByDeviceStartV1Request.mjs} +0 -0
  298. /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceTerminateRequest.mjs → SessionByDeviceTerminateV1Request.mjs} +0 -0
  299. /package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/{TaskGroupByDriverLastSeenRequest.mjs → TaskGroupByDriverLastSeenV1Request.mjs} +0 -0
  300. /package/dist/esm/api/resources/utils/client/requests/{UtilsGetTimezoneRequest.mjs → UtilsGetTimezoneV1Request.mjs} +0 -0
@@ -38,17 +38,17 @@ export class CourierPayDriverLineItemGroups {
38
38
  * @throws {@link Chrt.UnprocessableEntityError}
39
39
  *
40
40
  * @example
41
- * await client.courierPayDriverLineItemGroups.getById("id")
41
+ * await client.courierPayDriverLineItemGroups.getByIdV1("id")
42
42
  */
43
- getById(id, requestOptions) {
44
- return core.HttpResponsePromise.fromPromise(this.__getById(id, requestOptions));
43
+ getByIdV1(id, requestOptions) {
44
+ return core.HttpResponsePromise.fromPromise(this.__getByIdV1(id, requestOptions));
45
45
  }
46
- __getById(id, requestOptions) {
46
+ __getByIdV1(id, requestOptions) {
47
47
  return __awaiter(this, void 0, void 0, function* () {
48
48
  var _a, _b, _c, _d;
49
49
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
50
50
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
51
- 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, `oort/courier_pay_driver_line_item_groups/${encodeURIComponent(id)}`),
51
+ 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, `oort/courier_pay_driver_line_item_groups/v1/${encodeURIComponent(id)}`),
52
52
  method: "GET",
53
53
  headers: _headers,
54
54
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -79,7 +79,7 @@ export class CourierPayDriverLineItemGroups {
79
79
  rawResponse: _response.rawResponse,
80
80
  });
81
81
  case "timeout":
82
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/{id}.");
82
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/v1/{id}.");
83
83
  case "unknown":
84
84
  throw new errors.ChrtError({
85
85
  message: _response.error.errorMessage,
@@ -97,17 +97,17 @@ export class CourierPayDriverLineItemGroups {
97
97
  * @throws {@link Chrt.UnprocessableEntityError}
98
98
  *
99
99
  * @example
100
- * await client.courierPayDriverLineItemGroups.byTaskGroupId("task_group_id")
100
+ * await client.courierPayDriverLineItemGroups.byTaskGroupIdV1("task_group_id")
101
101
  */
102
- byTaskGroupId(taskGroupId, requestOptions) {
103
- return core.HttpResponsePromise.fromPromise(this.__byTaskGroupId(taskGroupId, requestOptions));
102
+ byTaskGroupIdV1(taskGroupId, requestOptions) {
103
+ return core.HttpResponsePromise.fromPromise(this.__byTaskGroupIdV1(taskGroupId, requestOptions));
104
104
  }
105
- __byTaskGroupId(taskGroupId, requestOptions) {
105
+ __byTaskGroupIdV1(taskGroupId, requestOptions) {
106
106
  return __awaiter(this, void 0, void 0, function* () {
107
107
  var _a, _b, _c, _d;
108
108
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
109
109
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
110
- 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, `oort/courier_pay_driver_line_item_groups/by_task_group/${encodeURIComponent(taskGroupId)}`),
110
+ 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, `oort/courier_pay_driver_line_item_groups/by_task_group/v1/${encodeURIComponent(taskGroupId)}`),
111
111
  method: "GET",
112
112
  headers: _headers,
113
113
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -138,7 +138,7 @@ export class CourierPayDriverLineItemGroups {
138
138
  rawResponse: _response.rawResponse,
139
139
  });
140
140
  case "timeout":
141
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/by_task_group/{task_group_id}.");
141
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/by_task_group/v1/{task_group_id}.");
142
142
  case "unknown":
143
143
  throw new errors.ChrtError({
144
144
  message: _response.error.errorMessage,
@@ -157,20 +157,20 @@ export class CourierPayDriverLineItemGroups {
157
157
  * @throws {@link Chrt.UnprocessableEntityError}
158
158
  *
159
159
  * @example
160
- * await client.courierPayDriverLineItemGroups.preview("driver_id", {
160
+ * await client.courierPayDriverLineItemGroups.previewV1("driver_id", {
161
161
  * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
162
162
  * task_group_id: "task_group_id"
163
163
  * })
164
164
  */
165
- preview(driverId, request, requestOptions) {
166
- return core.HttpResponsePromise.fromPromise(this.__preview(driverId, request, requestOptions));
165
+ previewV1(driverId, request, requestOptions) {
166
+ return core.HttpResponsePromise.fromPromise(this.__previewV1(driverId, request, requestOptions));
167
167
  }
168
- __preview(driverId, request, requestOptions) {
168
+ __previewV1(driverId, request, requestOptions) {
169
169
  return __awaiter(this, void 0, void 0, function* () {
170
170
  var _a, _b, _c, _d;
171
171
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
172
172
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
173
- 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, `oort/courier_pay_driver_line_item_groups/preview/${encodeURIComponent(driverId)}`),
173
+ 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, `oort/courier_pay_driver_line_item_groups/preview/v1/${encodeURIComponent(driverId)}`),
174
174
  method: "POST",
175
175
  headers: _headers,
176
176
  contentType: "application/json",
@@ -207,7 +207,7 @@ export class CourierPayDriverLineItemGroups {
207
207
  rawResponse: _response.rawResponse,
208
208
  });
209
209
  case "timeout":
210
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_line_item_groups/preview/{driver_id}.");
210
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_line_item_groups/preview/v1/{driver_id}.");
211
211
  case "unknown":
212
212
  throw new errors.ChrtError({
213
213
  message: _response.error.errorMessage,
@@ -225,20 +225,20 @@ export class CourierPayDriverLineItemGroups {
225
225
  * @throws {@link Chrt.UnprocessableEntityError}
226
226
  *
227
227
  * @example
228
- * await client.courierPayDriverLineItemGroups.create({
228
+ * await client.courierPayDriverLineItemGroups.createV1({
229
229
  * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
230
230
  * task_group_id: "task_group_id"
231
231
  * })
232
232
  */
233
- create(request, requestOptions) {
234
- return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
233
+ createV1(request, requestOptions) {
234
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
235
235
  }
236
- __create(request, requestOptions) {
236
+ __createV1(request, requestOptions) {
237
237
  return __awaiter(this, void 0, void 0, function* () {
238
238
  var _a, _b, _c, _d;
239
239
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
240
240
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
241
- 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, "oort/courier_pay_driver_line_item_groups/create"),
241
+ 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, "oort/courier_pay_driver_line_item_groups/create/v1"),
242
242
  method: "POST",
243
243
  headers: _headers,
244
244
  contentType: "application/json",
@@ -272,7 +272,7 @@ export class CourierPayDriverLineItemGroups {
272
272
  rawResponse: _response.rawResponse,
273
273
  });
274
274
  case "timeout":
275
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_line_item_groups/create.");
275
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_line_item_groups/create/v1.");
276
276
  case "unknown":
277
277
  throw new errors.ChrtError({
278
278
  message: _response.error.errorMessage,
@@ -40,7 +40,7 @@ export declare class AddLineItems {
40
40
  * @throws {@link Chrt.UnprocessableEntityError}
41
41
  *
42
42
  * @example
43
- * await client.courierPayDriverLineItemGroups.addLineItems.byId("id", {
43
+ * await client.courierPayDriverLineItemGroups.addLineItems.byIdV1("id", {
44
44
  * line_items: [{
45
45
  * schema_version: 1,
46
46
  * item: "base_rate",
@@ -49,7 +49,7 @@ export declare class AddLineItems {
49
49
  * }]
50
50
  * })
51
51
  */
52
- byId(id: string, request: Chrt.courierPayDriverLineItemGroups.CourierPayDriverLineItemGroupAddLineItemsReq, requestOptions?: AddLineItems.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
53
- private __byId;
52
+ byIdV1(id: string, request: Chrt.courierPayDriverLineItemGroups.CourierPayDriverLineItemGroupAddLineItemsReq, requestOptions?: AddLineItems.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
53
+ private __byIdV1;
54
54
  protected _getAuthorizationHeader(): Promise<string | undefined>;
55
55
  }
@@ -29,7 +29,7 @@ export class AddLineItems {
29
29
  * @throws {@link Chrt.UnprocessableEntityError}
30
30
  *
31
31
  * @example
32
- * await client.courierPayDriverLineItemGroups.addLineItems.byId("id", {
32
+ * await client.courierPayDriverLineItemGroups.addLineItems.byIdV1("id", {
33
33
  * line_items: [{
34
34
  * schema_version: 1,
35
35
  * item: "base_rate",
@@ -38,15 +38,15 @@ export class AddLineItems {
38
38
  * }]
39
39
  * })
40
40
  */
41
- byId(id, request, requestOptions) {
42
- return core.HttpResponsePromise.fromPromise(this.__byId(id, request, requestOptions));
41
+ byIdV1(id, request, requestOptions) {
42
+ return core.HttpResponsePromise.fromPromise(this.__byIdV1(id, request, requestOptions));
43
43
  }
44
- __byId(id, request, requestOptions) {
44
+ __byIdV1(id, request, requestOptions) {
45
45
  return __awaiter(this, void 0, void 0, function* () {
46
46
  var _a, _b, _c, _d;
47
47
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
48
48
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
49
- 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, `oort/courier_pay_driver_line_item_groups/add_line_items/${encodeURIComponent(id)}`),
49
+ 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, `oort/courier_pay_driver_line_item_groups/add_line_items/v1/${encodeURIComponent(id)}`),
50
50
  method: "PATCH",
51
51
  headers: _headers,
52
52
  contentType: "application/json",
@@ -80,7 +80,7 @@ export class AddLineItems {
80
80
  rawResponse: _response.rawResponse,
81
81
  });
82
82
  case "timeout":
83
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_line_item_groups/add_line_items/{id}.");
83
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_line_item_groups/add_line_items/v1/{id}.");
84
84
  case "unknown":
85
85
  throw new errors.ChrtError({
86
86
  message: _response.error.errorMessage,
@@ -31,7 +31,7 @@ export declare class RemoveLineItems {
31
31
  protected readonly _options: RemoveLineItems.Options;
32
32
  constructor(_options?: RemoveLineItems.Options);
33
33
  /**
34
- * Removes specific line items from a courier driver line item group by exact match.
34
+ * Removes specific line items from a courier driver line item group by their UUID identifiers.
35
35
  *
36
36
  * @param {string} id
37
37
  * @param {Chrt.courierPayDriverLineItemGroups.CourierPayDriverLineItemGroupRemoveLineItemsReq} request
@@ -40,11 +40,11 @@ export declare class RemoveLineItems {
40
40
  * @throws {@link Chrt.UnprocessableEntityError}
41
41
  *
42
42
  * @example
43
- * await client.courierPayDriverLineItemGroups.removeLineItems.byId("id", {
43
+ * await client.courierPayDriverLineItemGroups.removeLineItems.byIdV1("id", {
44
44
  * line_item_uuid_strs: ["line_item_uuid_strs"]
45
45
  * })
46
46
  */
47
- byId(id: string, request: Chrt.courierPayDriverLineItemGroups.CourierPayDriverLineItemGroupRemoveLineItemsReq, requestOptions?: RemoveLineItems.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
48
- private __byId;
47
+ byIdV1(id: string, request: Chrt.courierPayDriverLineItemGroups.CourierPayDriverLineItemGroupRemoveLineItemsReq, requestOptions?: RemoveLineItems.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
48
+ private __byIdV1;
49
49
  protected _getAuthorizationHeader(): Promise<string | undefined>;
50
50
  }
@@ -20,7 +20,7 @@ export class RemoveLineItems {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Removes specific line items from a courier driver line item group by exact match.
23
+ * Removes specific line items from a courier driver line item group by their UUID identifiers.
24
24
  *
25
25
  * @param {string} id
26
26
  * @param {Chrt.courierPayDriverLineItemGroups.CourierPayDriverLineItemGroupRemoveLineItemsReq} request
@@ -29,19 +29,19 @@ export class RemoveLineItems {
29
29
  * @throws {@link Chrt.UnprocessableEntityError}
30
30
  *
31
31
  * @example
32
- * await client.courierPayDriverLineItemGroups.removeLineItems.byId("id", {
32
+ * await client.courierPayDriverLineItemGroups.removeLineItems.byIdV1("id", {
33
33
  * line_item_uuid_strs: ["line_item_uuid_strs"]
34
34
  * })
35
35
  */
36
- byId(id, request, requestOptions) {
37
- return core.HttpResponsePromise.fromPromise(this.__byId(id, request, requestOptions));
36
+ byIdV1(id, request, requestOptions) {
37
+ return core.HttpResponsePromise.fromPromise(this.__byIdV1(id, request, requestOptions));
38
38
  }
39
- __byId(id, request, requestOptions) {
39
+ __byIdV1(id, request, requestOptions) {
40
40
  return __awaiter(this, void 0, void 0, function* () {
41
41
  var _a, _b, _c, _d;
42
42
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
43
43
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
44
- 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, `oort/courier_pay_driver_line_item_groups/remove_line_items/${encodeURIComponent(id)}`),
44
+ 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, `oort/courier_pay_driver_line_item_groups/remove_line_items/v1/${encodeURIComponent(id)}`),
45
45
  method: "PATCH",
46
46
  headers: _headers,
47
47
  contentType: "application/json",
@@ -75,7 +75,7 @@ export class RemoveLineItems {
75
75
  rawResponse: _response.rawResponse,
76
76
  });
77
77
  case "timeout":
78
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_line_item_groups/remove_line_items/{id}.");
78
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_line_item_groups/remove_line_items/v1/{id}.");
79
79
  case "unknown":
80
80
  throw new errors.ChrtError({
81
81
  message: _response.error.errorMessage,
@@ -39,10 +39,10 @@ export declare class CourierPayDriverPayouts {
39
39
  * @throws {@link Chrt.UnprocessableEntityError}
40
40
  *
41
41
  * @example
42
- * await client.courierPayDriverPayouts.getById("id")
42
+ * await client.courierPayDriverPayouts.getByIdV1("id")
43
43
  */
44
- getById(id: string, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverPayout1>;
45
- private __getById;
44
+ getByIdV1(id: string, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverPayout1>;
45
+ private __getByIdV1;
46
46
  /**
47
47
  * Lists all payouts for a specific driver within the authenticated organization.
48
48
  *
@@ -52,12 +52,12 @@ export declare class CourierPayDriverPayouts {
52
52
  * @throws {@link Chrt.UnprocessableEntityError}
53
53
  *
54
54
  * @example
55
- * await client.courierPayDriverPayouts.listByDriverId("driver_id")
55
+ * await client.courierPayDriverPayouts.listByDriverIdV1("driver_id")
56
56
  */
57
- listByDriverId(driverId: string, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverPayout1[]>;
58
- private __listByDriverId;
57
+ listByDriverIdV1(driverId: string, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverPayout1[]>;
58
+ private __listByDriverIdV1;
59
59
  /**
60
- * Creates a new driver payout from selected line item groups.
60
+ * Creates a new driver payout from selected line item groups and calculates the total amount.
61
61
  *
62
62
  * @param {Chrt.CourierPayDriverPayoutClientCreate1} request
63
63
  * @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
@@ -65,15 +65,15 @@ export declare class CourierPayDriverPayouts {
65
65
  * @throws {@link Chrt.UnprocessableEntityError}
66
66
  *
67
67
  * @example
68
- * await client.courierPayDriverPayouts.create({
68
+ * await client.courierPayDriverPayouts.createV1({
69
69
  * schema_version: 1,
70
70
  * courier_pay_driver_line_item_group_ids: ["courier_pay_driver_line_item_group_ids"]
71
71
  * })
72
72
  */
73
- create(request: Chrt.CourierPayDriverPayoutClientCreate1, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<string>;
74
- private __create;
73
+ createV1(request: Chrt.CourierPayDriverPayoutClientCreate1, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<string>;
74
+ private __createV1;
75
75
  /**
76
- * Updates the status of a courier driver payout with proper validation.
76
+ * Updates the status of a courier driver payout with validation of allowed state transitions.
77
77
  *
78
78
  * @param {string} id
79
79
  * @param {Chrt.CourierPayDriverPayoutClientUpdate1} request
@@ -82,9 +82,9 @@ export declare class CourierPayDriverPayouts {
82
82
  * @throws {@link Chrt.UnprocessableEntityError}
83
83
  *
84
84
  * @example
85
- * await client.courierPayDriverPayouts.updateStatus("id")
85
+ * await client.courierPayDriverPayouts.updateStatusV1("id")
86
86
  */
87
- updateStatus(id: string, request?: Chrt.CourierPayDriverPayoutClientUpdate1, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverPayout1>;
88
- private __updateStatus;
87
+ updateStatusV1(id: string, request?: Chrt.CourierPayDriverPayoutClientUpdate1, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverPayout1>;
88
+ private __updateStatusV1;
89
89
  protected _getAuthorizationHeader(): Promise<string | undefined>;
90
90
  }
@@ -28,17 +28,17 @@ export class CourierPayDriverPayouts {
28
28
  * @throws {@link Chrt.UnprocessableEntityError}
29
29
  *
30
30
  * @example
31
- * await client.courierPayDriverPayouts.getById("id")
31
+ * await client.courierPayDriverPayouts.getByIdV1("id")
32
32
  */
33
- getById(id, requestOptions) {
34
- return core.HttpResponsePromise.fromPromise(this.__getById(id, requestOptions));
33
+ getByIdV1(id, requestOptions) {
34
+ return core.HttpResponsePromise.fromPromise(this.__getByIdV1(id, requestOptions));
35
35
  }
36
- __getById(id, requestOptions) {
36
+ __getByIdV1(id, requestOptions) {
37
37
  return __awaiter(this, void 0, void 0, function* () {
38
38
  var _a, _b, _c, _d;
39
39
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
40
40
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
41
- 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, `oort/courier_pay_driver_payouts/${encodeURIComponent(id)}`),
41
+ 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, `oort/courier_pay_driver_payouts/v1/${encodeURIComponent(id)}`),
42
42
  method: "GET",
43
43
  headers: _headers,
44
44
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -69,7 +69,7 @@ export class CourierPayDriverPayouts {
69
69
  rawResponse: _response.rawResponse,
70
70
  });
71
71
  case "timeout":
72
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_payouts/{id}.");
72
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_payouts/v1/{id}.");
73
73
  case "unknown":
74
74
  throw new errors.ChrtError({
75
75
  message: _response.error.errorMessage,
@@ -87,17 +87,17 @@ export class CourierPayDriverPayouts {
87
87
  * @throws {@link Chrt.UnprocessableEntityError}
88
88
  *
89
89
  * @example
90
- * await client.courierPayDriverPayouts.listByDriverId("driver_id")
90
+ * await client.courierPayDriverPayouts.listByDriverIdV1("driver_id")
91
91
  */
92
- listByDriverId(driverId, requestOptions) {
93
- return core.HttpResponsePromise.fromPromise(this.__listByDriverId(driverId, requestOptions));
92
+ listByDriverIdV1(driverId, requestOptions) {
93
+ return core.HttpResponsePromise.fromPromise(this.__listByDriverIdV1(driverId, requestOptions));
94
94
  }
95
- __listByDriverId(driverId, requestOptions) {
95
+ __listByDriverIdV1(driverId, requestOptions) {
96
96
  return __awaiter(this, void 0, void 0, function* () {
97
97
  var _a, _b, _c, _d;
98
98
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
99
99
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
100
- 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, `oort/courier_pay_driver_payouts/list/${encodeURIComponent(driverId)}`),
100
+ 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, `oort/courier_pay_driver_payouts/list/v1/${encodeURIComponent(driverId)}`),
101
101
  method: "GET",
102
102
  headers: _headers,
103
103
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -128,7 +128,7 @@ export class CourierPayDriverPayouts {
128
128
  rawResponse: _response.rawResponse,
129
129
  });
130
130
  case "timeout":
131
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_payouts/list/{driver_id}.");
131
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_payouts/list/v1/{driver_id}.");
132
132
  case "unknown":
133
133
  throw new errors.ChrtError({
134
134
  message: _response.error.errorMessage,
@@ -138,7 +138,7 @@ export class CourierPayDriverPayouts {
138
138
  });
139
139
  }
140
140
  /**
141
- * Creates a new driver payout from selected line item groups.
141
+ * Creates a new driver payout from selected line item groups and calculates the total amount.
142
142
  *
143
143
  * @param {Chrt.CourierPayDriverPayoutClientCreate1} request
144
144
  * @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
@@ -146,20 +146,20 @@ export class CourierPayDriverPayouts {
146
146
  * @throws {@link Chrt.UnprocessableEntityError}
147
147
  *
148
148
  * @example
149
- * await client.courierPayDriverPayouts.create({
149
+ * await client.courierPayDriverPayouts.createV1({
150
150
  * schema_version: 1,
151
151
  * courier_pay_driver_line_item_group_ids: ["courier_pay_driver_line_item_group_ids"]
152
152
  * })
153
153
  */
154
- create(request, requestOptions) {
155
- return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
154
+ createV1(request, requestOptions) {
155
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
156
156
  }
157
- __create(request, requestOptions) {
157
+ __createV1(request, requestOptions) {
158
158
  return __awaiter(this, void 0, void 0, function* () {
159
159
  var _a, _b, _c, _d;
160
160
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
161
161
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
162
- 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, "oort/courier_pay_driver_payouts/create"),
162
+ 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, "oort/courier_pay_driver_payouts/create/v1"),
163
163
  method: "POST",
164
164
  headers: _headers,
165
165
  contentType: "application/json",
@@ -193,7 +193,7 @@ export class CourierPayDriverPayouts {
193
193
  rawResponse: _response.rawResponse,
194
194
  });
195
195
  case "timeout":
196
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_payouts/create.");
196
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_payouts/create/v1.");
197
197
  case "unknown":
198
198
  throw new errors.ChrtError({
199
199
  message: _response.error.errorMessage,
@@ -203,7 +203,7 @@ export class CourierPayDriverPayouts {
203
203
  });
204
204
  }
205
205
  /**
206
- * Updates the status of a courier driver payout with proper validation.
206
+ * Updates the status of a courier driver payout with validation of allowed state transitions.
207
207
  *
208
208
  * @param {string} id
209
209
  * @param {Chrt.CourierPayDriverPayoutClientUpdate1} request
@@ -212,17 +212,17 @@ export class CourierPayDriverPayouts {
212
212
  * @throws {@link Chrt.UnprocessableEntityError}
213
213
  *
214
214
  * @example
215
- * await client.courierPayDriverPayouts.updateStatus("id")
215
+ * await client.courierPayDriverPayouts.updateStatusV1("id")
216
216
  */
217
- updateStatus(id, request = {}, requestOptions) {
218
- return core.HttpResponsePromise.fromPromise(this.__updateStatus(id, request, requestOptions));
217
+ updateStatusV1(id, request = {}, requestOptions) {
218
+ return core.HttpResponsePromise.fromPromise(this.__updateStatusV1(id, request, requestOptions));
219
219
  }
220
- __updateStatus(id_1) {
220
+ __updateStatusV1(id_1) {
221
221
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
222
222
  var _a, _b, _c, _d;
223
223
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
224
224
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
225
- 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, `oort/courier_pay_driver_payouts/${encodeURIComponent(id)}/status`),
225
+ 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, `oort/courier_pay_driver_payouts/v1/${encodeURIComponent(id)}/status`),
226
226
  method: "PATCH",
227
227
  headers: _headers,
228
228
  contentType: "application/json",
@@ -256,7 +256,7 @@ export class CourierPayDriverPayouts {
256
256
  rawResponse: _response.rawResponse,
257
257
  });
258
258
  case "timeout":
259
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_payouts/{id}/status.");
259
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_payouts/v1/{id}/status.");
260
260
  case "unknown":
261
261
  throw new errors.ChrtError({
262
262
  message: _response.error.errorMessage,
@@ -36,10 +36,10 @@ export declare class CourierPayDriverRateSheets {
36
36
  * @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
38
38
  * @example
39
- * await client.courierPayDriverRateSheets.listByCourierOrgId()
39
+ * await client.courierPayDriverRateSheets.listByCourierOrgIdV1()
40
40
  */
41
- listByCourierOrgId(requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1[]>;
42
- private __listByCourierOrgId;
41
+ listByCourierOrgIdV1(requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1[]>;
42
+ private __listByCourierOrgIdV1;
43
43
  /**
44
44
  * Retrieves all rate sheets assigned to a specific driver.
45
45
  *
@@ -49,10 +49,10 @@ export declare class CourierPayDriverRateSheets {
49
49
  * @throws {@link Chrt.UnprocessableEntityError}
50
50
  *
51
51
  * @example
52
- * await client.courierPayDriverRateSheets.listByDriverId("driver_id")
52
+ * await client.courierPayDriverRateSheets.listByDriverIdV1("driver_id")
53
53
  */
54
- listByDriverId(driverId: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1[]>;
55
- private __listByDriverId;
54
+ listByDriverIdV1(driverId: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1[]>;
55
+ private __listByDriverIdV1;
56
56
  /**
57
57
  * Creates a new driver rate sheet for calculating courier payments.
58
58
  *
@@ -62,7 +62,7 @@ export declare class CourierPayDriverRateSheets {
62
62
  * @throws {@link Chrt.UnprocessableEntityError}
63
63
  *
64
64
  * @example
65
- * await client.courierPayDriverRateSheets.create({
65
+ * await client.courierPayDriverRateSheets.createV1({
66
66
  * schema_version: 1,
67
67
  * courier_org_id: "courier_org_id",
68
68
  * base_mileage_distance_miles: 1.1,
@@ -80,8 +80,8 @@ export declare class CourierPayDriverRateSheets {
80
80
  * holiday: 1.1
81
81
  * })
82
82
  */
83
- create(request: Chrt.CourierPayDriverRateSheetClientCreate1, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<string>;
84
- private __create;
83
+ createV1(request: Chrt.CourierPayDriverRateSheetClientCreate1, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<string>;
84
+ private __createV1;
85
85
  /**
86
86
  * Retrieves a single rate sheet by its ID.
87
87
  *
@@ -91,10 +91,10 @@ export declare class CourierPayDriverRateSheets {
91
91
  * @throws {@link Chrt.UnprocessableEntityError}
92
92
  *
93
93
  * @example
94
- * await client.courierPayDriverRateSheets.get("id")
94
+ * await client.courierPayDriverRateSheets.getV1("id")
95
95
  */
96
- get(id: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1>;
97
- private __get;
96
+ getV1(id: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1>;
97
+ private __getV1;
98
98
  /**
99
99
  * Deletes a driver rate sheet owned by the authenticated organization.
100
100
  *
@@ -104,10 +104,10 @@ export declare class CourierPayDriverRateSheets {
104
104
  * @throws {@link Chrt.UnprocessableEntityError}
105
105
  *
106
106
  * @example
107
- * await client.courierPayDriverRateSheets.deleteById("id")
107
+ * await client.courierPayDriverRateSheets.deleteByIdV1("id")
108
108
  */
109
- deleteById(id: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<boolean>;
110
- private __deleteById;
109
+ deleteByIdV1(id: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<boolean>;
110
+ private __deleteByIdV1;
111
111
  /**
112
112
  * Updates an existing driver rate sheet owned by the authenticated organization.
113
113
  *
@@ -118,9 +118,9 @@ export declare class CourierPayDriverRateSheets {
118
118
  * @throws {@link Chrt.UnprocessableEntityError}
119
119
  *
120
120
  * @example
121
- * await client.courierPayDriverRateSheets.updateById("id")
121
+ * await client.courierPayDriverRateSheets.updateByIdV1("id")
122
122
  */
123
- updateById(id: string, request?: Chrt.CourierPayDriverRateSheetClientUpdate1, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1>;
124
- private __updateById;
123
+ updateByIdV1(id: string, request?: Chrt.CourierPayDriverRateSheetClientUpdate1, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1>;
124
+ private __updateByIdV1;
125
125
  protected _getAuthorizationHeader(): Promise<string | undefined>;
126
126
  }