@chrt-inc/typescript-sdk 1.258.0 → 1.259.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 (257) hide show
  1. package/README.md +13 -2
  2. package/dist/cjs/Client.d.ts +4 -2
  3. package/dist/cjs/Client.js +2 -2
  4. package/dist/cjs/api/resources/connections/client/Client.d.ts +4 -2
  5. package/dist/cjs/api/resources/connections/client/Client.js +10 -6
  6. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +4 -2
  7. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +5 -3
  8. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.d.ts +4 -2
  9. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.js +20 -12
  10. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.ts +4 -2
  11. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.js +5 -3
  12. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.ts +4 -2
  13. package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.js +5 -3
  14. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +4 -2
  15. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +20 -12
  16. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +4 -2
  17. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +30 -18
  18. package/dist/cjs/api/resources/dev/client/Client.d.ts +4 -2
  19. package/dist/cjs/api/resources/dev/client/Client.js +30 -18
  20. package/dist/cjs/api/resources/drivers/client/Client.d.ts +4 -2
  21. package/dist/cjs/api/resources/drivers/client/Client.js +50 -30
  22. package/dist/cjs/api/resources/milestoneNotifications/client/Client.d.ts +4 -2
  23. package/dist/cjs/api/resources/milestoneNotifications/client/Client.js +10 -6
  24. package/dist/cjs/api/resources/milestones/client/Client.d.ts +4 -2
  25. package/dist/cjs/api/resources/milestones/client/Client.js +10 -6
  26. package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +4 -2
  27. package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +5 -3
  28. package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +5 -2
  29. package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +16 -10
  30. package/dist/cjs/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts +1 -1
  31. package/dist/cjs/api/resources/notifications/client/Client.d.ts +1 -1
  32. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +4 -2
  33. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +10 -6
  34. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +4 -2
  35. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +10 -6
  36. package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.d.ts +4 -2
  37. package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.js +25 -15
  38. package/dist/cjs/api/resources/orders/client/Client.d.ts +4 -2
  39. package/dist/cjs/api/resources/orders/client/Client.js +25 -15
  40. package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +4 -2
  41. package/dist/cjs/api/resources/orders/resources/full/client/Client.js +15 -9
  42. package/dist/cjs/api/resources/orgConnectionInfos/client/Client.d.ts +1 -1
  43. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +4 -2
  44. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +15 -9
  45. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +4 -2
  46. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +15 -9
  47. package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +4 -2
  48. package/dist/cjs/api/resources/orgProfiles/client/Client.js +25 -15
  49. package/dist/cjs/api/resources/orgs/client/Client.d.ts +4 -2
  50. package/dist/cjs/api/resources/orgs/client/Client.js +40 -24
  51. package/dist/cjs/api/resources/payments/client/Client.d.ts +4 -2
  52. package/dist/cjs/api/resources/payments/client/Client.js +25 -15
  53. package/dist/cjs/api/resources/root/client/Client.d.ts +4 -2
  54. package/dist/cjs/api/resources/root/client/Client.js +25 -15
  55. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +4 -2
  56. package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +45 -27
  57. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +4 -2
  58. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +25 -15
  59. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.ts +4 -2
  60. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.js +5 -3
  61. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +4 -2
  62. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +5 -3
  63. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.ts +4 -2
  64. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.js +5 -3
  65. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +4 -2
  66. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +15 -9
  67. package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +4 -2
  68. package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.js +35 -21
  69. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.d.ts +4 -2
  70. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.js +25 -15
  71. package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +4 -2
  72. package/dist/cjs/api/resources/taskGroups/client/Client.js +30 -18
  73. package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +4 -2
  74. package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +10 -6
  75. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +4 -2
  76. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +5 -3
  77. package/dist/cjs/api/resources/tracking/client/Client.d.ts +1 -1
  78. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.d.ts +4 -2
  79. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.js +5 -4
  80. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.d.ts +4 -2
  81. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.js +5 -4
  82. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +4 -2
  83. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +25 -19
  84. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +4 -2
  85. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +5 -3
  86. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +14 -2
  87. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +96 -34
  88. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.ts +4 -2
  89. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.js +5 -4
  90. package/dist/cjs/api/resources/users/client/Client.d.ts +4 -2
  91. package/dist/cjs/api/resources/users/client/Client.js +5 -3
  92. package/dist/cjs/api/resources/utils/client/Client.d.ts +4 -2
  93. package/dist/cjs/api/resources/utils/client/Client.js +5 -4
  94. package/dist/cjs/api/resources/utils/client/requests/UtilsGetTimezoneRequest.d.ts +2 -6
  95. package/dist/cjs/api/types/Session1.d.ts +14 -0
  96. package/dist/cjs/api/types/Session1.js +5 -0
  97. package/dist/cjs/api/types/index.d.ts +1 -0
  98. package/dist/cjs/api/types/index.js +1 -0
  99. package/dist/cjs/core/auth/AuthProvider.d.ts +4 -0
  100. package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
  101. package/dist/cjs/core/auth/AuthRequest.js +2 -0
  102. package/dist/cjs/core/auth/index.d.ts +2 -0
  103. package/dist/cjs/core/exports.d.ts +1 -0
  104. package/dist/cjs/core/exports.js +17 -0
  105. package/dist/cjs/core/fetcher/Fetcher.d.ts +2 -2
  106. package/dist/cjs/core/fetcher/Fetcher.js +2 -2
  107. package/dist/cjs/core/fetcher/index.d.ts +5 -5
  108. package/dist/cjs/core/fetcher/index.js +5 -5
  109. package/dist/cjs/core/fetcher/requestWithRetries.js +44 -8
  110. package/dist/cjs/core/file/exports.d.ts +1 -0
  111. package/dist/cjs/core/file/exports.js +2 -0
  112. package/dist/cjs/core/file/file.d.ts +5 -0
  113. package/dist/cjs/core/file/file.js +203 -0
  114. package/dist/cjs/core/file/index.d.ts +2 -0
  115. package/dist/cjs/core/file/index.js +18 -0
  116. package/dist/cjs/core/file/types.d.ts +66 -0
  117. package/dist/cjs/core/file/types.js +2 -0
  118. package/dist/cjs/core/headers.d.ts +2 -2
  119. package/dist/cjs/core/index.d.ts +1 -1
  120. package/dist/cjs/core/index.js +2 -2
  121. package/dist/cjs/exports.d.ts +1 -0
  122. package/dist/cjs/exports.js +17 -0
  123. package/dist/cjs/index.d.ts +1 -0
  124. package/dist/cjs/index.js +4 -0
  125. package/dist/cjs/version.d.ts +1 -1
  126. package/dist/cjs/version.js +1 -1
  127. package/dist/esm/Client.d.mts +4 -2
  128. package/dist/esm/Client.mjs +2 -2
  129. package/dist/esm/api/resources/connections/client/Client.d.mts +4 -2
  130. package/dist/esm/api/resources/connections/client/Client.mjs +10 -6
  131. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +4 -2
  132. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +5 -3
  133. package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.d.mts +4 -2
  134. package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.mjs +20 -12
  135. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.mts +4 -2
  136. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.mjs +5 -3
  137. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.mts +4 -2
  138. package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.mjs +5 -3
  139. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +4 -2
  140. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +20 -12
  141. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +4 -2
  142. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +30 -18
  143. package/dist/esm/api/resources/dev/client/Client.d.mts +4 -2
  144. package/dist/esm/api/resources/dev/client/Client.mjs +30 -18
  145. package/dist/esm/api/resources/drivers/client/Client.d.mts +4 -2
  146. package/dist/esm/api/resources/drivers/client/Client.mjs +50 -30
  147. package/dist/esm/api/resources/milestoneNotifications/client/Client.d.mts +4 -2
  148. package/dist/esm/api/resources/milestoneNotifications/client/Client.mjs +10 -6
  149. package/dist/esm/api/resources/milestones/client/Client.d.mts +4 -2
  150. package/dist/esm/api/resources/milestones/client/Client.mjs +10 -6
  151. package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +4 -2
  152. package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +5 -3
  153. package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +5 -2
  154. package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +16 -10
  155. package/dist/esm/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts +1 -1
  156. package/dist/esm/api/resources/notifications/client/Client.d.mts +1 -1
  157. package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +4 -2
  158. package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +10 -6
  159. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +4 -2
  160. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +10 -6
  161. package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.d.mts +4 -2
  162. package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.mjs +25 -15
  163. package/dist/esm/api/resources/orders/client/Client.d.mts +4 -2
  164. package/dist/esm/api/resources/orders/client/Client.mjs +25 -15
  165. package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +4 -2
  166. package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +15 -9
  167. package/dist/esm/api/resources/orgConnectionInfos/client/Client.d.mts +1 -1
  168. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +4 -2
  169. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +15 -9
  170. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +4 -2
  171. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +15 -9
  172. package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +4 -2
  173. package/dist/esm/api/resources/orgProfiles/client/Client.mjs +25 -15
  174. package/dist/esm/api/resources/orgs/client/Client.d.mts +4 -2
  175. package/dist/esm/api/resources/orgs/client/Client.mjs +40 -24
  176. package/dist/esm/api/resources/payments/client/Client.d.mts +4 -2
  177. package/dist/esm/api/resources/payments/client/Client.mjs +25 -15
  178. package/dist/esm/api/resources/root/client/Client.d.mts +4 -2
  179. package/dist/esm/api/resources/root/client/Client.mjs +25 -15
  180. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +4 -2
  181. package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +45 -27
  182. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +4 -2
  183. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +25 -15
  184. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.mts +4 -2
  185. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.mjs +5 -3
  186. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +4 -2
  187. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +5 -3
  188. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.mts +4 -2
  189. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.mjs +5 -3
  190. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +4 -2
  191. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +15 -9
  192. package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +4 -2
  193. package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.mjs +35 -21
  194. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.d.mts +4 -2
  195. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.mjs +25 -15
  196. package/dist/esm/api/resources/taskGroups/client/Client.d.mts +4 -2
  197. package/dist/esm/api/resources/taskGroups/client/Client.mjs +30 -18
  198. package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +4 -2
  199. package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +10 -6
  200. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +4 -2
  201. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +5 -3
  202. package/dist/esm/api/resources/tracking/client/Client.d.mts +1 -1
  203. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.d.mts +4 -2
  204. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.mjs +5 -4
  205. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.d.mts +4 -2
  206. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.mjs +5 -4
  207. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +4 -2
  208. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +25 -19
  209. package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +4 -2
  210. package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +5 -3
  211. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +14 -2
  212. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +96 -34
  213. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.mts +4 -2
  214. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.mjs +5 -4
  215. package/dist/esm/api/resources/users/client/Client.d.mts +4 -2
  216. package/dist/esm/api/resources/users/client/Client.mjs +5 -3
  217. package/dist/esm/api/resources/utils/client/Client.d.mts +4 -2
  218. package/dist/esm/api/resources/utils/client/Client.mjs +5 -4
  219. package/dist/esm/api/resources/utils/client/requests/UtilsGetTimezoneRequest.d.mts +2 -6
  220. package/dist/esm/api/types/Session1.d.mts +14 -0
  221. package/dist/esm/api/types/Session1.mjs +4 -0
  222. package/dist/esm/api/types/index.d.mts +1 -0
  223. package/dist/esm/api/types/index.mjs +1 -0
  224. package/dist/esm/core/auth/AuthProvider.d.mts +4 -0
  225. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  226. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  227. package/dist/esm/core/auth/index.d.mts +2 -0
  228. package/dist/esm/core/exports.d.mts +1 -0
  229. package/dist/esm/core/exports.mjs +1 -0
  230. package/dist/esm/core/fetcher/Fetcher.d.mts +2 -2
  231. package/dist/esm/core/fetcher/Fetcher.mjs +2 -2
  232. package/dist/esm/core/fetcher/index.d.mts +5 -5
  233. package/dist/esm/core/fetcher/index.mjs +2 -2
  234. package/dist/esm/core/fetcher/requestWithRetries.mjs +44 -8
  235. package/dist/esm/core/file/exports.d.mts +1 -0
  236. package/dist/esm/core/file/exports.mjs +1 -0
  237. package/dist/esm/core/file/file.d.mts +5 -0
  238. package/dist/esm/core/file/file.mjs +167 -0
  239. package/dist/esm/core/file/index.d.mts +2 -0
  240. package/dist/esm/core/file/index.mjs +2 -0
  241. package/dist/esm/core/file/types.d.mts +66 -0
  242. package/dist/esm/core/file/types.mjs +1 -0
  243. package/dist/esm/core/headers.d.mts +2 -2
  244. package/dist/esm/core/index.d.mts +1 -1
  245. package/dist/esm/core/index.mjs +1 -1
  246. package/dist/esm/exports.d.mts +1 -0
  247. package/dist/esm/exports.mjs +1 -0
  248. package/dist/esm/index.d.mts +1 -0
  249. package/dist/esm/index.mjs +1 -0
  250. package/dist/esm/version.d.mts +1 -1
  251. package/dist/esm/version.mjs +1 -1
  252. package/package.json +1 -1
  253. package/reference.md +118 -0
  254. package/dist/cjs/core/file.d.ts +0 -1
  255. package/dist/esm/core/file.d.mts +0 -1
  256. /package/dist/cjs/core/{file.js → auth/AuthProvider.js} +0 -0
  257. /package/dist/esm/core/{file.mjs → auth/AuthProvider.mjs} +0 -0
@@ -72,10 +72,12 @@ class ShipperPayCourierPayments {
72
72
  __getById(shipperPayCourierPaymentId, requestOptions) {
73
73
  return __awaiter(this, void 0, void 0, function* () {
74
74
  var _a, _b, _c, _d;
75
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_pay_courier_payments/${encodeURIComponent(shipperPayCourierPaymentId)}`),
75
+ 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);
76
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
77
+ 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/shipper_pay_courier_payments/${encodeURIComponent(shipperPayCourierPaymentId)}`),
77
78
  method: "GET",
78
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: _headers,
80
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
79
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
80
82
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
81
83
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -129,10 +131,12 @@ class ShipperPayCourierPayments {
129
131
  __delete(shipperPayCourierPaymentId, requestOptions) {
130
132
  return __awaiter(this, void 0, void 0, function* () {
131
133
  var _a, _b, _c, _d;
132
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
133
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_pay_courier_payments/${encodeURIComponent(shipperPayCourierPaymentId)}`),
134
+ 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);
135
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
136
+ 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/shipper_pay_courier_payments/${encodeURIComponent(shipperPayCourierPaymentId)}`),
134
137
  method: "DELETE",
135
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
138
+ headers: _headers,
139
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
136
140
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
137
141
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
138
142
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -186,10 +190,12 @@ class ShipperPayCourierPayments {
186
190
  __getByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
187
191
  return __awaiter(this, void 0, void 0, function* () {
188
192
  var _a, _b, _c, _d;
189
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
190
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_pay_courier_payments/by_order/${encodeURIComponent(orderIdOrShortId)}`),
193
+ 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);
194
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
195
+ 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/shipper_pay_courier_payments/by_order/${encodeURIComponent(orderIdOrShortId)}`),
191
196
  method: "GET",
192
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
197
+ headers: _headers,
198
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
193
199
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
194
200
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
195
201
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -245,11 +251,13 @@ class ShipperPayCourierPayments {
245
251
  __listByShipperOrgId(request, requestOptions) {
246
252
  return __awaiter(this, void 0, void 0, function* () {
247
253
  var _a, _b, _c, _d;
248
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
249
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/shipper_pay_courier_payments/list/by_shipper_org_id"),
254
+ 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);
255
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
256
+ 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/shipper_pay_courier_payments/list/by_shipper_org_id"),
250
257
  method: "POST",
251
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
258
+ headers: _headers,
252
259
  contentType: "application/json",
260
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
253
261
  requestType: "json",
254
262
  body: request,
255
263
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -310,11 +318,13 @@ class ShipperPayCourierPayments {
310
318
  __listByCourierOrgId(request, requestOptions) {
311
319
  return __awaiter(this, void 0, void 0, function* () {
312
320
  var _a, _b, _c, _d;
313
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
314
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/shipper_pay_courier_payments/list/by_courier_org_id"),
321
+ 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);
322
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
323
+ 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/shipper_pay_courier_payments/list/by_courier_org_id"),
315
324
  method: "POST",
316
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
325
+ headers: _headers,
317
326
  contentType: "application/json",
327
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
318
328
  requestType: "json",
319
329
  body: request,
320
330
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -375,11 +385,13 @@ class ShipperPayCourierPayments {
375
385
  __create(request, requestOptions) {
376
386
  return __awaiter(this, void 0, void 0, function* () {
377
387
  var _a, _b, _c, _d;
378
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
379
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/shipper_pay_courier_payments/create"),
388
+ 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);
389
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
390
+ 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/shipper_pay_courier_payments/create"),
380
391
  method: "POST",
381
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
392
+ headers: _headers,
382
393
  contentType: "application/json",
394
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
383
395
  requestType: "json",
384
396
  body: request,
385
397
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -437,11 +449,13 @@ class ShipperPayCourierPayments {
437
449
  __preview(request, requestOptions) {
438
450
  return __awaiter(this, void 0, void 0, function* () {
439
451
  var _a, _b, _c, _d;
440
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
441
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/shipper_pay_courier_payments/preview"),
452
+ 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);
453
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
454
+ 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/shipper_pay_courier_payments/preview"),
442
455
  method: "POST",
443
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
456
+ headers: _headers,
444
457
  contentType: "application/json",
458
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
445
459
  requestType: "json",
446
460
  body: request,
447
461
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -11,7 +11,7 @@ export declare namespace ShipperPayCourierRateSheets {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  fetcher?: core.FetchFunction;
16
16
  }
17
17
  interface RequestOptions {
@@ -21,8 +21,10 @@ export declare namespace ShipperPayCourierRateSheets {
21
21
  maxRetries?: number;
22
22
  /** A hook to abort the request. */
23
23
  abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
24
26
  /** Additional headers to include in the request. */
25
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
26
28
  }
27
29
  }
28
30
  export declare class ShipperPayCourierRateSheets {
@@ -69,10 +69,12 @@ class ShipperPayCourierRateSheets {
69
69
  __listByCourierOrgId(requestOptions) {
70
70
  return __awaiter(this, void 0, void 0, function* () {
71
71
  var _a, _b, _c, _d;
72
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/shipper_pay_courier_rate_sheets/list"),
72
+ 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);
73
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
74
+ 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/shipper_pay_courier_rate_sheets/list"),
74
75
  method: "GET",
75
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: _headers,
77
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
76
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
77
79
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
78
80
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -136,11 +138,13 @@ class ShipperPayCourierRateSheets {
136
138
  __create(request, requestOptions) {
137
139
  return __awaiter(this, void 0, void 0, function* () {
138
140
  var _a, _b, _c, _d;
139
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
140
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/shipper_pay_courier_rate_sheets/create"),
141
+ 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);
142
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
143
+ 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/shipper_pay_courier_rate_sheets/create"),
141
144
  method: "POST",
142
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
+ headers: _headers,
143
146
  contentType: "application/json",
147
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
144
148
  requestType: "json",
145
149
  body: request,
146
150
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -196,10 +200,12 @@ class ShipperPayCourierRateSheets {
196
200
  __get(id, requestOptions) {
197
201
  return __awaiter(this, void 0, void 0, function* () {
198
202
  var _a, _b, _c, _d;
199
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
200
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_pay_courier_rate_sheets/${encodeURIComponent(id)}`),
203
+ 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);
204
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
205
+ 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/shipper_pay_courier_rate_sheets/${encodeURIComponent(id)}`),
201
206
  method: "GET",
202
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
207
+ headers: _headers,
208
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
203
209
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
204
210
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
205
211
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -253,10 +259,12 @@ class ShipperPayCourierRateSheets {
253
259
  __deleteById(id, requestOptions) {
254
260
  return __awaiter(this, void 0, void 0, function* () {
255
261
  var _a, _b, _c, _d;
256
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
257
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_pay_courier_rate_sheets/${encodeURIComponent(id)}`),
262
+ 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);
263
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
264
+ 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/shipper_pay_courier_rate_sheets/${encodeURIComponent(id)}`),
258
265
  method: "DELETE",
259
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
266
+ headers: _headers,
267
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
260
268
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
261
269
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
262
270
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -311,11 +319,13 @@ class ShipperPayCourierRateSheets {
311
319
  __updateById(id_1) {
312
320
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
313
321
  var _a, _b, _c, _d;
314
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
315
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_pay_courier_rate_sheets/${encodeURIComponent(id)}`),
322
+ 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);
323
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
324
+ 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/shipper_pay_courier_rate_sheets/${encodeURIComponent(id)}`),
316
325
  method: "PATCH",
317
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
326
+ headers: _headers,
318
327
  contentType: "application/json",
328
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
319
329
  requestType: "json",
320
330
  body: request,
321
331
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -13,7 +13,7 @@ export declare namespace TaskGroups {
13
13
  baseUrl?: core.Supplier<string>;
14
14
  token?: core.Supplier<core.BearerToken | undefined>;
15
15
  /** Additional headers to include in requests. */
16
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
16
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
17
17
  fetcher?: core.FetchFunction;
18
18
  }
19
19
  interface RequestOptions {
@@ -23,8 +23,10 @@ export declare namespace TaskGroups {
23
23
  maxRetries?: number;
24
24
  /** A hook to abort the request. */
25
25
  abortSignal?: AbortSignal;
26
+ /** Additional query string parameters to include in the request. */
27
+ queryParams?: Record<string, unknown>;
26
28
  /** Additional headers to include in the request. */
27
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
29
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
30
  }
29
31
  }
30
32
  export declare class TaskGroups {
@@ -79,10 +79,12 @@ class TaskGroups {
79
79
  __listByCourierOrgId(requestOptions) {
80
80
  return __awaiter(this, void 0, void 0, function* () {
81
81
  var _a, _b, _c, _d;
82
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
83
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/task_groups/by_courier_org_id/list"),
82
+ 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);
83
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
84
+ 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/task_groups/by_courier_org_id/list"),
84
85
  method: "GET",
85
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
+ headers: _headers,
87
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
86
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
87
89
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
88
90
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -131,10 +133,12 @@ class TaskGroups {
131
133
  __getById(id, requestOptions) {
132
134
  return __awaiter(this, void 0, void 0, function* () {
133
135
  var _a, _b, _c, _d;
134
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
135
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/task_groups/${encodeURIComponent(id)}`),
136
+ 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);
137
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
138
+ 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/task_groups/${encodeURIComponent(id)}`),
136
139
  method: "GET",
137
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
140
+ headers: _headers,
141
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
138
142
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
139
143
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
140
144
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -190,11 +194,13 @@ class TaskGroups {
190
194
  __update(request, requestOptions) {
191
195
  return __awaiter(this, void 0, void 0, function* () {
192
196
  var _a, _b, _c, _d;
193
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
194
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/task_groups/update"),
197
+ 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);
198
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
199
+ 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/task_groups/update"),
195
200
  method: "POST",
196
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
201
+ headers: _headers,
197
202
  contentType: "application/json",
203
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
198
204
  requestType: "json",
199
205
  body: request,
200
206
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -250,10 +256,12 @@ class TaskGroups {
250
256
  __listByDriverId(driverId, requestOptions) {
251
257
  return __awaiter(this, void 0, void 0, function* () {
252
258
  var _a, _b, _c, _d;
253
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
254
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/task_groups/list/${encodeURIComponent(driverId)}`),
259
+ 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);
260
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
261
+ 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/task_groups/list/${encodeURIComponent(driverId)}`),
255
262
  method: "GET",
256
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
263
+ headers: _headers,
264
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
257
265
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
258
266
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
259
267
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -307,10 +315,12 @@ class TaskGroups {
307
315
  __start(id, requestOptions) {
308
316
  return __awaiter(this, void 0, void 0, function* () {
309
317
  var _a, _b, _c, _d;
310
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
311
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/task_groups/start/${encodeURIComponent(id)}`),
318
+ 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);
319
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
320
+ 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/task_groups/start/${encodeURIComponent(id)}`),
312
321
  method: "PUT",
313
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
322
+ headers: _headers,
323
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
314
324
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
315
325
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
316
326
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -366,11 +376,13 @@ class TaskGroups {
366
376
  __getByDriverExpanded(request, requestOptions) {
367
377
  return __awaiter(this, void 0, void 0, function* () {
368
378
  var _a, _b, _c, _d;
369
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
370
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/task_groups/by_driver/expanded"),
379
+ 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);
380
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
381
+ 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/task_groups/by_driver/expanded"),
371
382
  method: "POST",
372
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
383
+ headers: _headers,
373
384
  contentType: "application/json",
385
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
374
386
  requestType: "json",
375
387
  body: request,
376
388
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -11,7 +11,7 @@ export declare namespace Full {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  fetcher?: core.FetchFunction;
16
16
  }
17
17
  interface RequestOptions {
@@ -21,8 +21,10 @@ export declare namespace Full {
21
21
  maxRetries?: number;
22
22
  /** A hook to abort the request. */
23
23
  abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
24
26
  /** Additional headers to include in the request. */
25
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
26
28
  }
27
29
  }
28
30
  export declare class Full {
@@ -69,10 +69,12 @@ class Full {
69
69
  __listByCourierOrgId(requestOptions) {
70
70
  return __awaiter(this, void 0, void 0, function* () {
71
71
  var _a, _b, _c, _d;
72
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/task_groups/by_courier_org_id/list/full"),
72
+ 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);
73
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
74
+ 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/task_groups/by_courier_org_id/list/full"),
74
75
  method: "GET",
75
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: _headers,
77
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
76
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
77
79
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
78
80
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -124,10 +126,12 @@ class Full {
124
126
  __getByTaskGroupId(id, requestOptions) {
125
127
  return __awaiter(this, void 0, void 0, function* () {
126
128
  var _a, _b, _c, _d;
127
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
128
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/task_groups/${encodeURIComponent(id)}/full`),
129
+ 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);
130
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
131
+ 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/task_groups/${encodeURIComponent(id)}/full`),
129
132
  method: "GET",
130
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
133
+ headers: _headers,
134
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
131
135
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
132
136
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
133
137
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -11,7 +11,7 @@ export declare namespace TogglePause {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  fetcher?: core.FetchFunction;
16
16
  }
17
17
  interface RequestOptions {
@@ -21,8 +21,10 @@ export declare namespace TogglePause {
21
21
  maxRetries?: number;
22
22
  /** A hook to abort the request. */
23
23
  abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
24
26
  /** Additional headers to include in the request. */
25
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
26
28
  }
27
29
  }
28
30
  export declare class TogglePause {
@@ -76,11 +76,13 @@ class TogglePause {
76
76
  __byId(id, request, requestOptions) {
77
77
  return __awaiter(this, void 0, void 0, function* () {
78
78
  var _a, _b, _c, _d;
79
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
80
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/task_groups/toggle_pause/${encodeURIComponent(id)}`),
79
+ 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);
80
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
81
+ 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/task_groups/toggle_pause/${encodeURIComponent(id)}`),
81
82
  method: "PUT",
82
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ headers: _headers,
83
84
  contentType: "application/json",
85
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
84
86
  requestType: "json",
85
87
  body: request,
86
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -16,7 +16,7 @@ export declare namespace Tracking {
16
16
  baseUrl?: core.Supplier<string>;
17
17
  token?: core.Supplier<core.BearerToken | undefined>;
18
18
  /** Additional headers to include in requests. */
19
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
19
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
20
20
  fetcher?: core.FetchFunction;
21
21
  }
22
22
  }
@@ -11,7 +11,7 @@ export declare namespace CargoByDevice {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  fetcher?: core.FetchFunction;
16
16
  }
17
17
  interface RequestOptions {
@@ -21,8 +21,10 @@ export declare namespace CargoByDevice {
21
21
  maxRetries?: number;
22
22
  /** A hook to abort the request. */
23
23
  abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
24
26
  /** Additional headers to include in the request. */
25
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
26
28
  }
27
29
  }
28
30
  export declare class CargoByDevice {
@@ -79,11 +79,12 @@ class CargoByDevice {
79
79
  const _queryParams = {};
80
80
  _queryParams["cargo_id"] = cargoId;
81
81
  _queryParams["task_group_id"] = taskGroupId;
82
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
83
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "tracking/cargo_by_device/last_seen"),
82
+ 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);
83
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
84
+ 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, "tracking/cargo_by_device/last_seen"),
84
85
  method: "GET",
85
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
- queryParameters: _queryParams,
86
+ headers: _headers,
87
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
87
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
88
89
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
89
90
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -11,7 +11,7 @@ export declare namespace CargoByDriver {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  fetcher?: core.FetchFunction;
16
16
  }
17
17
  interface RequestOptions {
@@ -21,8 +21,10 @@ export declare namespace CargoByDriver {
21
21
  maxRetries?: number;
22
22
  /** A hook to abort the request. */
23
23
  abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
24
26
  /** Additional headers to include in the request. */
25
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
26
28
  }
27
29
  }
28
30
  export declare class CargoByDriver {
@@ -79,11 +79,12 @@ class CargoByDriver {
79
79
  const _queryParams = {};
80
80
  _queryParams["cargo_id"] = cargoId;
81
81
  _queryParams["task_group_id"] = taskGroupId;
82
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
83
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "tracking/cargo_by_driver/last_seen"),
82
+ 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);
83
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
84
+ 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, "tracking/cargo_by_driver/last_seen"),
84
85
  method: "GET",
85
- headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
- queryParameters: _queryParams,
86
+ headers: _headers,
87
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
87
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
88
89
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
89
90
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,