@chrt-inc/typescript-sdk 0.0.170 → 0.0.174

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 (765) hide show
  1. package/README.md +7 -7
  2. package/dist/cjs/Client.d.ts +45 -57
  3. package/dist/cjs/Client.js +59 -79
  4. package/dist/cjs/api/resources/connections/client/Client.d.ts +55 -0
  5. package/dist/cjs/api/resources/connections/client/Client.js +170 -0
  6. package/dist/cjs/api/resources/connections/index.d.ts +2 -0
  7. package/dist/cjs/api/resources/connections/index.js +18 -0
  8. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +47 -0
  9. package/dist/cjs/api/resources/{directory → connections/resources/connectionToCourier}/client/Client.js +20 -18
  10. package/dist/cjs/api/resources/connections/resources/index.d.ts +2 -0
  11. package/dist/cjs/api/resources/connections/resources/index.js +41 -0
  12. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.d.ts +96 -0
  13. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup}/client/Client.js +68 -206
  14. package/dist/{esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.d.mts → cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.d.ts} +1 -1
  15. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.d.ts → courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.ts} +1 -1
  16. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.ts +2 -0
  17. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/index.d.ts +2 -0
  18. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/index.js +18 -0
  19. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.ts +53 -0
  20. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.js +136 -0
  21. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/AddLineItemsReq.d.ts +1 -1
  22. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/index.d.ts +4 -0
  24. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/index.js +43 -0
  25. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.ts +53 -0
  26. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.js +136 -0
  27. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/RemoveLineItemsReq.d.ts +1 -1
  28. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/Client.d.ts +23 -23
  30. package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/Client.js +36 -36
  31. package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/requests/CourierPayDriverPayoutClientCreate1.d.ts +3 -3
  32. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +111 -0
  33. package/dist/cjs/api/resources/{oortOrgConnectionInfos → courierPayDriverRateSheets}/client/Client.js +78 -110
  34. package/dist/cjs/api/resources/{oortCourierPayDriverRate → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +24 -24
  35. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.ts +11 -0
  36. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/index.d.ts +3 -0
  37. package/dist/cjs/api/resources/courierPayDriverRateSheets/index.d.ts +2 -0
  38. package/dist/cjs/api/resources/courierPayDriverRateSheets/index.js +18 -0
  39. package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.ts +5 -0
  40. package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.d.ts +1 -0
  41. package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.js +17 -0
  42. package/dist/cjs/api/resources/dev/client/Client.d.ts +13 -11
  43. package/dist/cjs/api/resources/dev/client/Client.js +54 -52
  44. package/dist/cjs/api/resources/drivers/client/Client.d.ts +152 -0
  45. package/dist/cjs/api/resources/{oortDrivers → drivers}/client/Client.js +139 -134
  46. package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/SetDriverActivationReq.d.ts +3 -3
  47. package/dist/cjs/api/resources/index.d.ts +26 -36
  48. package/dist/cjs/api/resources/index.js +27 -37
  49. package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/Client.d.ts +16 -12
  50. package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/Client.js +21 -17
  51. package/dist/cjs/api/resources/milestones/client/Client.d.ts +69 -0
  52. package/dist/cjs/api/resources/milestones/client/Client.js +203 -0
  53. package/dist/cjs/api/resources/milestones/client/requests/index.d.ts +2 -0
  54. package/dist/cjs/api/resources/milestones/index.d.ts +2 -0
  55. package/dist/cjs/api/resources/milestones/index.js +18 -0
  56. package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +48 -0
  57. package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +129 -0
  58. package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +74 -0
  59. package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → milestones/resources/images}/client/Client.js +54 -44
  60. package/dist/cjs/api/resources/{oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.d.ts → milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts} +2 -2
  61. package/dist/cjs/api/resources/milestones/resources/images/client/requests/index.d.ts +1 -0
  62. package/dist/cjs/api/resources/milestones/resources/index.d.ts +3 -0
  63. package/dist/cjs/api/resources/milestones/resources/index.js +42 -0
  64. package/dist/cjs/api/resources/notifications/client/Client.d.ts +26 -0
  65. package/dist/cjs/api/resources/notifications/client/Client.js +22 -0
  66. package/dist/cjs/api/resources/notifications/index.d.ts +2 -0
  67. package/dist/cjs/api/resources/notifications/index.js +18 -0
  68. package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/Client.d.ts +57 -0
  69. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notifications/resources/courierPreferences}/client/Client.js +24 -24
  70. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notifications/resources/courierPreferences}/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +4 -4
  71. package/dist/cjs/api/resources/notifications/resources/index.d.ts +4 -0
  72. package/dist/cjs/api/resources/notifications/resources/index.js +43 -0
  73. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +57 -0
  74. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notifications/resources/shipper}/client/Client.js +24 -24
  75. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notifications/resources/shipper}/client/requests/ShipperNotificationPreferencesClientCreate1.d.ts +4 -4
  76. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.ts +85 -0
  77. package/dist/cjs/api/resources/{oortCourierPayDriverRate → offChrtShipperOrgConnectionInfo}/client/Client.js +83 -78
  78. package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +8 -8
  79. package/dist/cjs/api/resources/orders/client/Client.d.ts +108 -0
  80. package/dist/cjs/api/resources/orders/client/Client.js +359 -0
  81. package/dist/cjs/api/resources/{oortOrders → orders}/client/requests/CreateOrderReq.d.ts +16 -16
  82. package/dist/cjs/api/resources/orders/index.d.ts +2 -0
  83. package/dist/cjs/api/resources/orders/index.js +18 -0
  84. package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +65 -0
  85. package/dist/cjs/api/resources/{oortConnections → orders/resources/full}/client/Client.js +36 -37
  86. package/dist/cjs/api/resources/orders/resources/index.d.ts +1 -0
  87. package/dist/cjs/api/resources/orders/resources/index.js +37 -0
  88. package/dist/cjs/api/resources/orgConnectionInfos/client/Client.d.ts +26 -0
  89. package/dist/cjs/api/resources/orgConnectionInfos/client/Client.js +22 -0
  90. package/dist/cjs/api/resources/orgConnectionInfos/client/index.js +2 -0
  91. package/dist/cjs/api/resources/orgConnectionInfos/index.d.ts +2 -0
  92. package/dist/cjs/api/resources/orgConnectionInfos/index.js +18 -0
  93. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +71 -0
  94. package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → orgConnectionInfos/resources/courier}/client/Client.js +49 -61
  95. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +8 -8
  96. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +5 -5
  97. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/index.d.ts +0 -2
  98. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/index.js +2 -0
  99. package/dist/cjs/api/resources/orgConnectionInfos/resources/index.d.ts +4 -0
  100. package/dist/cjs/api/resources/orgConnectionInfos/resources/index.js +43 -0
  101. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +71 -0
  102. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +240 -0
  103. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +8 -8
  104. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +5 -5
  105. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.d.ts +2 -0
  106. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.js +2 -0
  107. package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +101 -0
  108. package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/Client.js +68 -62
  109. package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientCreate3.d.ts +3 -3
  110. package/dist/cjs/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.d.ts → orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.ts} +1 -1
  111. package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/index.d.ts +1 -1
  112. package/dist/cjs/api/resources/orgProfiles/client/requests/index.js +2 -0
  113. package/dist/cjs/api/resources/orgs/client/Client.d.ts +46 -38
  114. package/dist/cjs/api/resources/orgs/client/Client.js +144 -97
  115. package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +3 -3
  116. package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +1 -1
  117. package/dist/cjs/api/resources/payments/client/Client.d.ts +0 -8
  118. package/dist/cjs/api/resources/payments/client/Client.js +0 -47
  119. package/dist/cjs/api/resources/root/client/Client.d.ts +16 -35
  120. package/dist/cjs/api/resources/root/client/Client.js +29 -125
  121. package/dist/cjs/api/resources/root/index.d.ts +0 -1
  122. package/dist/cjs/api/resources/root/index.js +0 -1
  123. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +148 -0
  124. package/dist/cjs/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/Client.js +114 -114
  125. package/dist/cjs/api/resources/shipperContactInfo/client/index.d.ts +2 -0
  126. package/dist/cjs/api/resources/shipperContactInfo/client/index.js +17 -0
  127. package/dist/cjs/api/resources/shipperContactInfo/client/requests/index.js +2 -0
  128. package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +96 -0
  129. package/dist/cjs/api/resources/taskGroups/client/Client.js +354 -0
  130. package/dist/cjs/api/resources/taskGroups/client/index.d.ts +2 -0
  131. package/dist/cjs/api/resources/taskGroups/client/index.js +17 -0
  132. package/dist/cjs/api/resources/taskGroups/client/requests/index.d.ts +1 -0
  133. package/dist/cjs/api/resources/taskGroups/client/requests/index.js +2 -0
  134. package/dist/cjs/api/resources/taskGroups/index.d.ts +2 -0
  135. package/dist/cjs/api/resources/taskGroups/index.js +18 -0
  136. package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +55 -0
  137. package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +177 -0
  138. package/dist/cjs/api/resources/taskGroups/resources/full/client/index.js +2 -0
  139. package/dist/cjs/api/resources/taskGroups/resources/index.d.ts +3 -0
  140. package/dist/cjs/api/resources/taskGroups/resources/index.js +42 -0
  141. package/dist/cjs/api/resources/{directory → taskGroups/resources/togglePause}/client/Client.d.ts +16 -14
  142. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +130 -0
  143. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/index.d.ts +2 -0
  144. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/index.js +17 -0
  145. package/dist/cjs/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/SetTaskGroupPauseReq.d.ts +3 -3
  146. package/dist/cjs/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/index.d.ts +0 -1
  147. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/requests/index.js +2 -0
  148. package/dist/cjs/api/resources/users/client/Client.d.ts +3 -3
  149. package/dist/cjs/api/resources/users/client/Client.js +4 -4
  150. package/dist/cjs/api/types/Cargo1.d.ts +6 -6
  151. package/dist/cjs/api/types/CargoClientCreate1.d.ts +3 -3
  152. package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +9 -9
  153. package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
  154. package/dist/cjs/api/types/CourierOrgProfile3.d.ts +3 -3
  155. package/dist/cjs/api/types/CourierPayDriverLineItemGroup1.d.ts +5 -5
  156. package/dist/cjs/api/types/CourierPayDriverLineItemGroupClientCreate1.d.ts +1 -1
  157. package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +16 -16
  158. package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +8 -8
  159. package/dist/cjs/api/types/Driver1.d.ts +6 -6
  160. package/dist/cjs/api/types/Expense1.d.ts +3 -3
  161. package/dist/cjs/api/types/Feature.d.ts +3 -3
  162. package/dist/cjs/api/types/GetOrderFullRes.d.ts +2 -2
  163. package/dist/cjs/api/types/Incident1.d.ts +1 -1
  164. package/dist/cjs/api/types/Insurance1.d.ts +1 -1
  165. package/dist/cjs/api/types/LineItem1.d.ts +1 -1
  166. package/dist/cjs/api/types/Milestone1.d.ts +13 -13
  167. package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
  168. package/dist/cjs/api/types/MilestoneNotificationPreferences1.d.ts +9 -9
  169. package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +11 -11
  170. package/dist/cjs/api/types/Order1.d.ts +11 -11
  171. package/dist/cjs/api/types/OrgMemberDetails.d.ts +2 -2
  172. package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
  173. package/dist/cjs/api/types/OrgPublicData2.d.ts +4 -4
  174. package/dist/cjs/api/types/PayablesInvoice1.d.ts +11 -11
  175. package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
  176. package/dist/cjs/api/types/ShipperContactInfo1.d.ts +11 -11
  177. package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +6 -6
  178. package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +4 -4
  179. package/dist/cjs/api/types/ShipperNotificationPreferences1.d.ts +9 -9
  180. package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +6 -6
  181. package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +5 -5
  182. package/dist/cjs/api/types/Task1.d.ts +13 -13
  183. package/dist/cjs/api/types/TaskClientCreate1.d.ts +4 -4
  184. package/dist/cjs/api/types/TaskCreateBundle.d.ts +2 -2
  185. package/dist/cjs/api/types/TaskGroup1.d.ts +11 -11
  186. package/dist/cjs/api/types/TaskWithDetails.d.ts +2 -2
  187. package/dist/cjs/api/types/Tracker1.d.ts +1 -1
  188. package/dist/cjs/api/types/TrackerSession1.d.ts +1 -1
  189. package/dist/cjs/api/types/UserPublicData6.d.ts +6 -6
  190. package/dist/cjs/api/types/Vehicle1.d.ts +1 -1
  191. package/dist/cjs/api/types/index.d.ts +0 -4
  192. package/dist/cjs/api/types/index.js +0 -4
  193. package/dist/cjs/version.d.ts +1 -1
  194. package/dist/cjs/version.js +1 -1
  195. package/dist/esm/Client.d.mts +45 -57
  196. package/dist/esm/Client.mjs +53 -73
  197. package/dist/esm/api/resources/connections/client/Client.d.mts +55 -0
  198. package/dist/esm/api/resources/connections/client/Client.mjs +133 -0
  199. package/dist/esm/api/resources/connections/index.d.mts +2 -0
  200. package/dist/esm/api/resources/connections/index.mjs +2 -0
  201. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +47 -0
  202. package/dist/esm/api/resources/{directory → connections/resources/connectionToCourier}/client/Client.mjs +18 -16
  203. package/dist/esm/api/resources/connections/resources/index.d.mts +2 -0
  204. package/dist/esm/api/resources/connections/resources/index.mjs +2 -0
  205. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.d.mts +96 -0
  206. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup}/client/Client.mjs +66 -204
  207. package/dist/{cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.d.ts → esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.d.mts} +1 -1
  208. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.d.mts → courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.mts} +1 -1
  209. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.mts +2 -0
  210. package/dist/esm/api/resources/courierPayDriverLineItemGroup/index.d.mts +2 -0
  211. package/dist/esm/api/resources/courierPayDriverLineItemGroup/index.mjs +2 -0
  212. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.mts +53 -0
  213. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.mjs +99 -0
  214. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/AddLineItemsReq.d.mts +1 -1
  215. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/index.d.mts +1 -0
  216. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/index.d.mts +4 -0
  217. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/index.mjs +4 -0
  218. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.mts +53 -0
  219. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.mjs +99 -0
  220. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/RemoveLineItemsReq.d.mts +1 -1
  221. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/index.d.mts +1 -0
  222. package/dist/esm/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/Client.d.mts +23 -23
  223. package/dist/esm/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/Client.mjs +34 -34
  224. package/dist/esm/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/requests/CourierPayDriverPayoutClientCreate1.d.mts +3 -3
  225. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +111 -0
  226. package/dist/esm/api/resources/{oortOrgConnectionInfos → courierPayDriverRateSheets}/client/Client.mjs +76 -108
  227. package/dist/esm/api/resources/{oortCourierPayDriverRate → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +24 -24
  228. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.mts +11 -0
  229. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/index.d.mts +3 -0
  230. package/dist/esm/api/resources/courierPayDriverRateSheets/index.d.mts +2 -0
  231. package/dist/esm/api/resources/courierPayDriverRateSheets/index.mjs +2 -0
  232. package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.mts +5 -0
  233. package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.d.mts +1 -0
  234. package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.mjs +1 -0
  235. package/dist/esm/api/resources/dev/client/Client.d.mts +13 -11
  236. package/dist/esm/api/resources/dev/client/Client.mjs +54 -52
  237. package/dist/esm/api/resources/drivers/client/Client.d.mts +152 -0
  238. package/dist/esm/api/resources/{oortDrivers → drivers}/client/Client.mjs +137 -132
  239. package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/SetDriverActivationReq.d.mts +3 -3
  240. package/dist/esm/api/resources/index.d.mts +26 -36
  241. package/dist/esm/api/resources/index.mjs +26 -36
  242. package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/Client.d.mts +16 -12
  243. package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/Client.mjs +19 -15
  244. package/dist/esm/api/resources/milestones/client/Client.d.mts +69 -0
  245. package/dist/esm/api/resources/milestones/client/Client.mjs +166 -0
  246. package/dist/esm/api/resources/milestones/client/requests/index.d.mts +2 -0
  247. package/dist/esm/api/resources/milestones/index.d.mts +2 -0
  248. package/dist/esm/api/resources/milestones/index.mjs +2 -0
  249. package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +48 -0
  250. package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +92 -0
  251. package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +74 -0
  252. package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → milestones/resources/images}/client/Client.mjs +52 -42
  253. package/dist/esm/api/resources/{oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.d.mts → milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts} +2 -2
  254. package/dist/esm/api/resources/milestones/resources/images/client/requests/index.d.mts +1 -0
  255. package/dist/esm/api/resources/milestones/resources/index.d.mts +3 -0
  256. package/dist/esm/api/resources/milestones/resources/index.mjs +3 -0
  257. package/dist/esm/api/resources/notifications/client/Client.d.mts +26 -0
  258. package/dist/esm/api/resources/notifications/client/Client.mjs +18 -0
  259. package/dist/esm/api/resources/notifications/client/index.d.mts +1 -0
  260. package/dist/esm/api/resources/notifications/client/index.mjs +1 -0
  261. package/dist/esm/api/resources/notifications/index.d.mts +2 -0
  262. package/dist/esm/api/resources/notifications/index.mjs +2 -0
  263. package/dist/esm/api/resources/notifications/resources/courierPreferences/client/Client.d.mts +57 -0
  264. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notifications/resources/courierPreferences}/client/Client.mjs +22 -22
  265. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notifications/resources/courierPreferences}/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +4 -4
  266. package/dist/esm/api/resources/notifications/resources/courierPreferences/client/requests/index.mjs +1 -0
  267. package/dist/esm/api/resources/notifications/resources/index.d.mts +4 -0
  268. package/dist/esm/api/resources/notifications/resources/index.mjs +4 -0
  269. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +57 -0
  270. package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notifications/resources/shipper}/client/Client.mjs +22 -22
  271. package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notifications/resources/shipper}/client/requests/ShipperNotificationPreferencesClientCreate1.d.mts +4 -4
  272. package/dist/esm/api/resources/notifications/resources/shipper/client/requests/index.mjs +1 -0
  273. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.mts +85 -0
  274. package/dist/esm/api/resources/{oortCourierPayDriverRate → offChrtShipperOrgConnectionInfo}/client/Client.mjs +81 -76
  275. package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +8 -8
  276. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/index.mjs +1 -0
  277. package/dist/esm/api/resources/orders/client/Client.d.mts +108 -0
  278. package/dist/esm/api/resources/orders/client/Client.mjs +322 -0
  279. package/dist/esm/api/resources/{oortOrders → orders}/client/requests/CreateOrderReq.d.mts +16 -16
  280. package/dist/esm/api/resources/orders/client/requests/index.mjs +1 -0
  281. package/dist/esm/api/resources/orders/index.d.mts +2 -0
  282. package/dist/esm/api/resources/orders/index.mjs +2 -0
  283. package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +65 -0
  284. package/dist/esm/api/resources/{oortConnections → orders/resources/full}/client/Client.mjs +34 -35
  285. package/dist/esm/api/resources/orders/resources/full/client/index.d.mts +1 -0
  286. package/dist/esm/api/resources/orders/resources/full/client/index.mjs +1 -0
  287. package/dist/esm/api/resources/orders/resources/index.d.mts +1 -0
  288. package/dist/esm/api/resources/orders/resources/index.mjs +1 -0
  289. package/dist/esm/api/resources/orgConnectionInfos/client/Client.d.mts +26 -0
  290. package/dist/esm/api/resources/orgConnectionInfos/client/Client.mjs +18 -0
  291. package/dist/esm/api/resources/orgConnectionInfos/client/index.d.mts +1 -0
  292. package/dist/esm/api/resources/orgConnectionInfos/client/index.mjs +1 -0
  293. package/dist/esm/api/resources/orgConnectionInfos/index.d.mts +2 -0
  294. package/dist/esm/api/resources/orgConnectionInfos/index.mjs +2 -0
  295. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +71 -0
  296. package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → orgConnectionInfos/resources/courier}/client/Client.mjs +47 -59
  297. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +8 -8
  298. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +5 -5
  299. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/index.d.mts +0 -2
  300. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/index.mjs +1 -0
  301. package/dist/esm/api/resources/orgConnectionInfos/resources/index.d.mts +4 -0
  302. package/dist/esm/api/resources/orgConnectionInfos/resources/index.mjs +4 -0
  303. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +71 -0
  304. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +203 -0
  305. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +8 -8
  306. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +5 -5
  307. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.d.mts +2 -0
  308. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.mjs +1 -0
  309. package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +101 -0
  310. package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/Client.mjs +66 -60
  311. package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientCreate3.d.mts +3 -3
  312. package/dist/esm/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.d.mts → orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.mts} +1 -1
  313. package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/index.d.mts +1 -1
  314. package/dist/esm/api/resources/orgProfiles/client/requests/index.mjs +1 -0
  315. package/dist/esm/api/resources/orgs/client/Client.d.mts +46 -38
  316. package/dist/esm/api/resources/orgs/client/Client.mjs +144 -97
  317. package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +3 -3
  318. package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +1 -1
  319. package/dist/esm/api/resources/payments/client/Client.d.mts +0 -8
  320. package/dist/esm/api/resources/payments/client/Client.mjs +0 -47
  321. package/dist/esm/api/resources/root/client/Client.d.mts +16 -35
  322. package/dist/esm/api/resources/root/client/Client.mjs +29 -125
  323. package/dist/esm/api/resources/root/index.d.mts +0 -1
  324. package/dist/esm/api/resources/root/index.mjs +0 -1
  325. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +148 -0
  326. package/dist/esm/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/Client.mjs +112 -112
  327. package/dist/esm/api/resources/shipperContactInfo/client/index.d.mts +2 -0
  328. package/dist/esm/api/resources/shipperContactInfo/client/index.mjs +1 -0
  329. package/dist/esm/api/resources/shipperContactInfo/client/requests/index.mjs +1 -0
  330. package/dist/esm/api/resources/taskGroups/client/Client.d.mts +96 -0
  331. package/dist/esm/api/resources/taskGroups/client/Client.mjs +317 -0
  332. package/dist/esm/api/resources/taskGroups/client/index.d.mts +2 -0
  333. package/dist/esm/api/resources/taskGroups/client/index.mjs +1 -0
  334. package/dist/esm/api/resources/taskGroups/client/requests/index.d.mts +1 -0
  335. package/dist/esm/api/resources/taskGroups/client/requests/index.mjs +1 -0
  336. package/dist/esm/api/resources/taskGroups/index.d.mts +2 -0
  337. package/dist/esm/api/resources/taskGroups/index.mjs +2 -0
  338. package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +55 -0
  339. package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +140 -0
  340. package/dist/esm/api/resources/taskGroups/resources/full/client/index.d.mts +1 -0
  341. package/dist/esm/api/resources/taskGroups/resources/full/client/index.mjs +1 -0
  342. package/dist/esm/api/resources/taskGroups/resources/index.d.mts +3 -0
  343. package/dist/esm/api/resources/taskGroups/resources/index.mjs +3 -0
  344. package/dist/esm/api/resources/{directory → taskGroups/resources/togglePause}/client/Client.d.mts +16 -14
  345. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +93 -0
  346. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/index.d.mts +2 -0
  347. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/index.mjs +1 -0
  348. package/dist/esm/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/SetTaskGroupPauseReq.d.mts +3 -3
  349. package/dist/esm/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/index.d.mts +0 -1
  350. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/requests/index.mjs +1 -0
  351. package/dist/esm/api/resources/users/client/Client.d.mts +3 -3
  352. package/dist/esm/api/resources/users/client/Client.mjs +4 -4
  353. package/dist/esm/api/types/Cargo1.d.mts +6 -6
  354. package/dist/esm/api/types/CargoClientCreate1.d.mts +3 -3
  355. package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +9 -9
  356. package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
  357. package/dist/esm/api/types/CourierOrgProfile3.d.mts +3 -3
  358. package/dist/esm/api/types/CourierPayDriverLineItemGroup1.d.mts +5 -5
  359. package/dist/esm/api/types/CourierPayDriverLineItemGroupClientCreate1.d.mts +1 -1
  360. package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +16 -16
  361. package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +8 -8
  362. package/dist/esm/api/types/Driver1.d.mts +6 -6
  363. package/dist/esm/api/types/Expense1.d.mts +3 -3
  364. package/dist/esm/api/types/Feature.d.mts +3 -3
  365. package/dist/esm/api/types/GetOrderFullRes.d.mts +2 -2
  366. package/dist/esm/api/types/Incident1.d.mts +1 -1
  367. package/dist/esm/api/types/Insurance1.d.mts +1 -1
  368. package/dist/esm/api/types/LineItem1.d.mts +1 -1
  369. package/dist/esm/api/types/Milestone1.d.mts +13 -13
  370. package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
  371. package/dist/esm/api/types/MilestoneNotificationPreferences1.d.mts +9 -9
  372. package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +11 -11
  373. package/dist/esm/api/types/Order1.d.mts +11 -11
  374. package/dist/esm/api/types/OrgMemberDetails.d.mts +2 -2
  375. package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
  376. package/dist/esm/api/types/OrgPublicData2.d.mts +4 -4
  377. package/dist/esm/api/types/PayablesInvoice1.d.mts +11 -11
  378. package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
  379. package/dist/esm/api/types/ShipperContactInfo1.d.mts +11 -11
  380. package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +6 -6
  381. package/dist/esm/api/types/ShipperCourierConnection1.d.mts +4 -4
  382. package/dist/esm/api/types/ShipperNotificationPreferences1.d.mts +9 -9
  383. package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +6 -6
  384. package/dist/esm/api/types/StripeConnectInvoice1.d.mts +5 -5
  385. package/dist/esm/api/types/Task1.d.mts +13 -13
  386. package/dist/esm/api/types/TaskClientCreate1.d.mts +4 -4
  387. package/dist/esm/api/types/TaskCreateBundle.d.mts +2 -2
  388. package/dist/esm/api/types/TaskGroup1.d.mts +11 -11
  389. package/dist/esm/api/types/TaskWithDetails.d.mts +2 -2
  390. package/dist/esm/api/types/Tracker1.d.mts +1 -1
  391. package/dist/esm/api/types/TrackerSession1.d.mts +1 -1
  392. package/dist/esm/api/types/UserPublicData6.d.mts +6 -6
  393. package/dist/esm/api/types/Vehicle1.d.mts +1 -1
  394. package/dist/esm/api/types/index.d.mts +0 -4
  395. package/dist/esm/api/types/index.mjs +0 -4
  396. package/dist/esm/version.d.mts +1 -1
  397. package/dist/esm/version.mjs +1 -1
  398. package/package.json +1 -1
  399. package/reference.md +1190 -1679
  400. package/dist/cjs/api/resources/directory/client/requests/DbQueryParams.d.ts +0 -12
  401. package/dist/cjs/api/resources/directory/client/requests/index.d.ts +0 -1
  402. package/dist/cjs/api/resources/mirror/client/Client.d.ts +0 -138
  403. package/dist/cjs/api/resources/mirror/client/Client.js +0 -658
  404. package/dist/cjs/api/resources/notificationsCourierNotificationPreferences/client/Client.d.ts +0 -57
  405. package/dist/cjs/api/resources/notificationsShipperNotificationPreferences/client/Client.d.ts +0 -57
  406. package/dist/cjs/api/resources/oortConnections/client/Client.d.ts +0 -63
  407. package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/Client.d.ts +0 -136
  408. package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByIdRequest.d.ts +0 -12
  409. package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByTaskGroupIdRequest.d.ts +0 -12
  410. package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/index.d.ts +0 -6
  411. package/dist/cjs/api/resources/oortCourierPayDriverRate/client/Client.d.ts +0 -94
  412. package/dist/cjs/api/resources/oortCourierPayDriverRate/client/requests/index.d.ts +0 -1
  413. package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/Client.d.ts +0 -72
  414. package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/requests/index.d.ts +0 -1
  415. package/dist/cjs/api/resources/oortDrivers/client/Client.d.ts +0 -147
  416. package/dist/cjs/api/resources/oortMilestones/client/Client.d.ts +0 -114
  417. package/dist/cjs/api/resources/oortMilestones/client/Client.js +0 -431
  418. package/dist/cjs/api/resources/oortMilestones/client/requests/index.d.ts +0 -3
  419. package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.d.ts +0 -75
  420. package/dist/cjs/api/resources/oortOrders/client/Client.d.ts +0 -138
  421. package/dist/cjs/api/resources/oortOrders/client/Client.js +0 -509
  422. package/dist/cjs/api/resources/oortOrgConnectionInfos/client/Client.d.ts +0 -110
  423. package/dist/cjs/api/resources/oortOrgProfiles/client/Client.d.ts +0 -95
  424. package/dist/cjs/api/resources/oortOrgProfiles/client/requests/GetAvatarRequest.js +0 -5
  425. package/dist/cjs/api/resources/oortShipperContactInfo/client/Client.d.ts +0 -148
  426. package/dist/cjs/api/resources/oortTaskGroups/client/Client.d.ts +0 -128
  427. package/dist/cjs/api/resources/oortTaskGroups/client/Client.js +0 -515
  428. package/dist/cjs/api/resources/root/types/PydanticResponse.d.ts +0 -8
  429. package/dist/cjs/api/resources/root/types/PydanticResponse.js +0 -5
  430. package/dist/cjs/api/resources/root/types/index.d.ts +0 -1
  431. package/dist/cjs/api/resources/root/types/index.js +0 -17
  432. package/dist/cjs/api/types/EmailReq.d.ts +0 -6
  433. package/dist/cjs/api/types/EmailReq.js +0 -5
  434. package/dist/cjs/api/types/EmailRes.d.ts +0 -7
  435. package/dist/cjs/api/types/EmailRes.js +0 -5
  436. package/dist/cjs/api/types/Shipper2.d.ts +0 -20
  437. package/dist/cjs/api/types/Shipper2.js +0 -5
  438. package/dist/cjs/api/types/StreetAddress1.d.ts +0 -18
  439. package/dist/cjs/api/types/StreetAddress1.js +0 -5
  440. package/dist/esm/api/resources/directory/client/requests/DbQueryParams.d.mts +0 -12
  441. package/dist/esm/api/resources/directory/client/requests/index.d.mts +0 -1
  442. package/dist/esm/api/resources/mirror/client/Client.d.mts +0 -138
  443. package/dist/esm/api/resources/mirror/client/Client.mjs +0 -621
  444. package/dist/esm/api/resources/notificationsCourierNotificationPreferences/client/Client.d.mts +0 -57
  445. package/dist/esm/api/resources/notificationsShipperNotificationPreferences/client/Client.d.mts +0 -57
  446. package/dist/esm/api/resources/oortConnections/client/Client.d.mts +0 -63
  447. package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/Client.d.mts +0 -136
  448. package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByIdRequest.d.mts +0 -12
  449. package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByTaskGroupIdRequest.d.mts +0 -12
  450. package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/index.d.mts +0 -6
  451. package/dist/esm/api/resources/oortCourierPayDriverRate/client/Client.d.mts +0 -94
  452. package/dist/esm/api/resources/oortCourierPayDriverRate/client/requests/index.d.mts +0 -1
  453. package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/Client.d.mts +0 -72
  454. package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/requests/index.d.mts +0 -1
  455. package/dist/esm/api/resources/oortDrivers/client/Client.d.mts +0 -147
  456. package/dist/esm/api/resources/oortMilestones/client/Client.d.mts +0 -114
  457. package/dist/esm/api/resources/oortMilestones/client/Client.mjs +0 -394
  458. package/dist/esm/api/resources/oortMilestones/client/requests/index.d.mts +0 -3
  459. package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.d.mts +0 -75
  460. package/dist/esm/api/resources/oortOrders/client/Client.d.mts +0 -138
  461. package/dist/esm/api/resources/oortOrders/client/Client.mjs +0 -472
  462. package/dist/esm/api/resources/oortOrgConnectionInfos/client/Client.d.mts +0 -110
  463. package/dist/esm/api/resources/oortOrgProfiles/client/Client.d.mts +0 -95
  464. package/dist/esm/api/resources/oortOrgProfiles/client/requests/GetAvatarRequest.mjs +0 -4
  465. package/dist/esm/api/resources/oortShipperContactInfo/client/Client.d.mts +0 -148
  466. package/dist/esm/api/resources/oortTaskGroups/client/Client.d.mts +0 -128
  467. package/dist/esm/api/resources/oortTaskGroups/client/Client.mjs +0 -478
  468. package/dist/esm/api/resources/root/types/PydanticResponse.d.mts +0 -8
  469. package/dist/esm/api/resources/root/types/PydanticResponse.mjs +0 -4
  470. package/dist/esm/api/resources/root/types/index.d.mts +0 -1
  471. package/dist/esm/api/resources/root/types/index.mjs +0 -1
  472. package/dist/esm/api/types/EmailReq.d.mts +0 -6
  473. package/dist/esm/api/types/EmailReq.mjs +0 -4
  474. package/dist/esm/api/types/EmailRes.d.mts +0 -7
  475. package/dist/esm/api/types/EmailRes.mjs +0 -4
  476. package/dist/esm/api/types/Shipper2.d.mts +0 -20
  477. package/dist/esm/api/types/Shipper2.mjs +0 -4
  478. package/dist/esm/api/types/StreetAddress1.d.mts +0 -18
  479. package/dist/esm/api/types/StreetAddress1.mjs +0 -4
  480. package/dist/cjs/api/resources/{mirror → connections}/client/index.d.ts +0 -0
  481. package/dist/cjs/api/resources/{directory/client/requests → connections/client}/index.js +0 -0
  482. package/dist/cjs/api/resources/{directory → connections/resources/connectionToCourier}/client/index.d.ts +0 -0
  483. package/dist/cjs/api/resources/{directory → connections/resources/connectionToCourier}/client/index.js +0 -0
  484. package/dist/cjs/api/resources/{oortConnections → connections/resources/connectionToCourier}/client/requests/CreateConnectionReq.d.ts +0 -0
  485. package/dist/cjs/api/resources/{oortConnections → connections/resources/connectionToCourier}/client/requests/CreateConnectionReq.js +0 -0
  486. package/dist/cjs/api/resources/{oortConnections → connections/resources/connectionToCourier}/client/requests/index.d.ts +0 -0
  487. package/dist/cjs/api/resources/{mirror/client → connections/resources/connectionToCourier/client/requests}/index.js +0 -0
  488. package/dist/cjs/api/resources/{directory → connections/resources/connectionToCourier}/index.d.ts +0 -0
  489. package/dist/cjs/api/resources/{directory → connections/resources/connectionToCourier}/index.js +0 -0
  490. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup}/client/index.d.ts +0 -0
  491. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup}/client/index.js +0 -0
  492. package/dist/cjs/api/resources/{directory/client/requests/DbQueryParams.js → courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.js} +0 -0
  493. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences/client/requests/CourierNotificationPreferencesClientCreate1.js → courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.js} +0 -0
  494. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup}/client/requests/index.js +0 -0
  495. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.d.ts +0 -0
  496. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.js +0 -0
  497. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/AddLineItemsReq.js +0 -0
  498. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/index.js +0 -0
  499. package/dist/cjs/api/resources/{mirror → courierPayDriverLineItemGroup/resources/addLineItems}/index.d.ts +0 -0
  500. package/dist/cjs/api/resources/{mirror → courierPayDriverLineItemGroup/resources/addLineItems}/index.js +0 -0
  501. package/dist/cjs/api/resources/{oortConnections → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.d.ts +0 -0
  502. package/dist/cjs/api/resources/{oortConnections → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.js +0 -0
  503. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/RemoveLineItemsReq.js +0 -0
  504. package/dist/cjs/api/resources/{oortConnections → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/index.js +0 -0
  505. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup/resources/removeLineItems}/index.d.ts +0 -0
  506. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup/resources/removeLineItems}/index.js +0 -0
  507. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverPayouts}/client/index.d.ts +0 -0
  508. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverPayouts}/client/index.js +0 -0
  509. package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/requests/CourierPayDriverPayoutClientCreate1.js +0 -0
  510. package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/requests/index.d.ts +0 -0
  511. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverPayouts}/client/requests/index.js +0 -0
  512. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverPayouts}/index.d.ts +0 -0
  513. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverPayouts}/index.js +0 -0
  514. package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverRateSheets}/client/index.d.ts +0 -0
  515. package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverRateSheets}/client/index.js +0 -0
  516. package/dist/cjs/api/resources/{oortCourierPayDriverRate → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.js +0 -0
  517. package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +12 -12
  518. package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.js +0 -0
  519. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences/client/requests/ShipperNotificationPreferencesClientCreate1.js → courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.js} +0 -0
  520. package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverRateSheets}/client/requests/index.js +0 -0
  521. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.js → courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.js} +0 -0
  522. package/dist/cjs/api/resources/{oortCourierPayDriverRate → drivers}/client/index.d.ts +0 -0
  523. package/dist/cjs/api/resources/{oortCourierPayDriverRate → drivers}/client/index.js +0 -0
  524. package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/DriverCreateReq.d.ts +0 -0
  525. package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/DriverCreateReq.js +0 -0
  526. package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/DriverLastSeenReq.d.ts +0 -0
  527. package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/DriverLastSeenReq.js +0 -0
  528. package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/SetDriverActivationReq.js +0 -0
  529. package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/UpdateDriverDetailsReq.d.ts +0 -0
  530. package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/UpdateDriverDetailsReq.js +0 -0
  531. package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/index.d.ts +2 -2
  532. package/dist/cjs/api/resources/{oortCourierPayDriverRate → drivers}/client/requests/index.js +0 -0
  533. package/dist/cjs/api/resources/{oortConnections → drivers}/index.d.ts +0 -0
  534. package/dist/cjs/api/resources/{oortConnections → drivers}/index.js +0 -0
  535. package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → milestoneNotifications}/client/index.d.ts +0 -0
  536. package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → milestoneNotifications}/client/index.js +0 -0
  537. package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts +3 -3
  538. package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/MilestoneNotificationPreferencesClientCreate1.js +0 -0
  539. package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/index.d.ts +0 -0
  540. package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → milestoneNotifications}/client/requests/index.js +0 -0
  541. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → milestoneNotifications}/index.d.ts +0 -0
  542. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → milestoneNotifications}/index.js +0 -0
  543. package/dist/cjs/api/resources/{oortDrivers → milestones}/client/index.d.ts +0 -0
  544. package/dist/cjs/api/resources/{oortDrivers → milestones}/client/index.js +0 -0
  545. package/dist/cjs/api/resources/{oortMilestones → milestones}/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
  546. package/dist/cjs/api/resources/{oortMilestones → milestones}/client/requests/MilestoneAddToTaskReq.js +0 -0
  547. package/dist/cjs/api/resources/{oortMilestones → milestones}/client/requests/MilestoneUpdateReq.d.ts +1 -1
  548. package/dist/cjs/api/resources/{oortMilestones → milestones}/client/requests/MilestoneUpdateReq.js +0 -0
  549. package/dist/cjs/api/resources/{oortDrivers → milestones}/client/requests/index.js +0 -0
  550. package/dist/{esm/api/resources/directory/client/requests/index.mjs → cjs/api/resources/milestones/resources/blurhash/client/index.d.ts} +0 -0
  551. package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences/client/requests → milestones/resources/blurhash/client}/index.js +0 -0
  552. package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → milestones/resources/blurhash}/index.d.ts +0 -0
  553. package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → milestones/resources/blurhash}/index.js +0 -0
  554. package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestones/resources/images}/client/index.d.ts +0 -0
  555. package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestones/resources/images}/client/index.js +0 -0
  556. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.js → milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.js} +0 -0
  557. package/dist/cjs/api/resources/{oortMilestones → milestones/resources/images}/client/requests/index.js +0 -0
  558. package/dist/cjs/api/resources/{oortCourierPayDriverRate → milestones/resources/images}/index.d.ts +0 -0
  559. package/dist/cjs/api/resources/{oortCourierPayDriverRate → milestones/resources/images}/index.js +0 -0
  560. package/dist/{esm/api/resources/mirror/client/index.d.mts → cjs/api/resources/notifications/client/index.d.ts} +0 -0
  561. package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo/client/requests → notifications/client}/index.js +0 -0
  562. package/dist/cjs/api/resources/{oortMilestones → notifications/resources/courierPreferences}/client/index.d.ts +0 -0
  563. package/dist/cjs/api/resources/{oortMilestones → notifications/resources/courierPreferences}/client/index.js +0 -0
  564. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByIdRequest.js → notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.js} +0 -0
  565. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notifications/resources/courierPreferences}/client/requests/index.d.ts +0 -0
  566. package/dist/cjs/api/resources/{oortOrders → notifications/resources/courierPreferences}/client/requests/index.js +0 -0
  567. package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → notifications/resources/courierPreferences}/index.d.ts +0 -0
  568. package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → notifications/resources/courierPreferences}/index.js +0 -0
  569. package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → notifications/resources/shipper}/client/index.d.ts +0 -0
  570. package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → notifications/resources/shipper}/client/index.js +0 -0
  571. package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByTaskGroupIdRequest.js → notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.js} +0 -0
  572. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notifications/resources/shipper}/client/requests/index.d.ts +0 -0
  573. package/dist/cjs/api/resources/{oortOrgConnectionInfos → notifications/resources/shipper}/client/requests/index.js +0 -0
  574. package/dist/cjs/api/resources/{oortDrivers → notifications/resources/shipper}/index.d.ts +0 -0
  575. package/dist/cjs/api/resources/{oortDrivers → notifications/resources/shipper}/index.js +0 -0
  576. package/dist/cjs/api/resources/{oortOrders → offChrtShipperOrgConnectionInfo}/client/index.d.ts +0 -0
  577. package/dist/cjs/api/resources/{oortOrders → offChrtShipperOrgConnectionInfo}/client/index.js +0 -0
  578. package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.js +0 -0
  579. package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
  580. package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.js +0 -0
  581. package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/index.d.ts +0 -0
  582. package/dist/cjs/api/resources/{oortOrgProfiles → offChrtShipperOrgConnectionInfo}/client/requests/index.js +0 -0
  583. package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → offChrtShipperOrgConnectionInfo}/index.d.ts +0 -0
  584. package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → offChrtShipperOrgConnectionInfo}/index.js +0 -0
  585. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orders}/client/index.d.ts +0 -0
  586. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orders}/client/index.js +0 -0
  587. package/dist/cjs/api/resources/{oortOrders → orders}/client/requests/CreateOrderReq.js +0 -0
  588. package/dist/cjs/api/resources/{oortOrders → orders}/client/requests/index.d.ts +0 -0
  589. package/dist/cjs/api/resources/{oortShipperContactInfo → orders}/client/requests/index.js +0 -0
  590. package/dist/{esm/api/resources/mirror/client/index.mjs → cjs/api/resources/orders/resources/full/client/index.d.ts} +0 -0
  591. package/dist/cjs/api/resources/{oortTaskGroups/client/requests → orders/resources/full/client}/index.js +0 -0
  592. package/dist/cjs/api/resources/{oortMilestones → orders/resources/full}/index.d.ts +0 -0
  593. package/dist/cjs/api/resources/{oortMilestones → orders/resources/full}/index.js +0 -0
  594. package/dist/{esm/api/resources/notificationsCourierNotificationPreferences/client/requests/index.mjs → cjs/api/resources/orgConnectionInfos/client/index.d.ts} +0 -0
  595. package/dist/cjs/api/resources/{oortOrgProfiles → orgConnectionInfos/resources/courier}/client/index.d.ts +0 -0
  596. package/dist/cjs/api/resources/{oortOrgProfiles → orgConnectionInfos/resources/courier}/client/index.js +0 -0
  597. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientCreate1.js +0 -0
  598. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientUpdate1.js +0 -0
  599. package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → orgConnectionInfos/resources/courier}/index.d.ts +0 -0
  600. package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → orgConnectionInfos/resources/courier}/index.js +0 -0
  601. package/dist/cjs/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/shipper}/client/index.d.ts +0 -0
  602. package/dist/cjs/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/shipper}/client/index.js +0 -0
  603. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientCreate1.js +0 -0
  604. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientUpdate1.js +0 -0
  605. package/dist/cjs/api/resources/{oortOrders → orgConnectionInfos/resources/shipper}/index.d.ts +0 -0
  606. package/dist/cjs/api/resources/{oortOrders → orgConnectionInfos/resources/shipper}/index.js +0 -0
  607. package/dist/cjs/api/resources/{oortTaskGroups → orgProfiles}/client/index.d.ts +0 -0
  608. package/dist/cjs/api/resources/{oortTaskGroups → orgProfiles}/client/index.js +0 -0
  609. package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientCreate3.js +0 -0
  610. package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientUpdate3.d.ts +0 -0
  611. package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientUpdate3.js +0 -0
  612. package/dist/cjs/api/resources/{oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.js → orgProfiles/client/requests/OrgProfilesGetAvatarRequest.js} +0 -0
  613. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgProfiles}/index.d.ts +0 -0
  614. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgProfiles}/index.js +0 -0
  615. package/dist/cjs/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/ShipperContactInfoClientUpdate1.d.ts +4 -4
  616. package/dist/cjs/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/ShipperContactInfoClientUpdate1.js +0 -0
  617. package/dist/cjs/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/index.d.ts +0 -0
  618. package/dist/cjs/api/resources/{oortOrgProfiles → shipperContactInfo}/index.d.ts +0 -0
  619. package/dist/cjs/api/resources/{oortOrgProfiles → shipperContactInfo}/index.js +0 -0
  620. package/dist/cjs/api/resources/{oortTaskGroups → taskGroups}/client/requests/UpdateTaskGroupReq.d.ts +2 -2
  621. package/dist/cjs/api/resources/{oortTaskGroups → taskGroups}/client/requests/UpdateTaskGroupReq.js +0 -0
  622. package/dist/{esm/api/resources/notificationsShipperNotificationPreferences/client/requests/index.mjs → cjs/api/resources/taskGroups/resources/full/client/index.d.ts} +0 -0
  623. package/dist/cjs/api/resources/{oortShipperContactInfo → taskGroups/resources/full}/index.d.ts +0 -0
  624. package/dist/cjs/api/resources/{oortShipperContactInfo → taskGroups/resources/full}/index.js +0 -0
  625. package/dist/cjs/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/SetTaskGroupPauseReq.js +0 -0
  626. package/dist/cjs/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/index.d.ts +0 -0
  627. package/dist/cjs/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/index.js +0 -0
  628. package/dist/esm/api/resources/{oortConnections/client/requests/index.mjs → connections/client/index.d.mts} +0 -0
  629. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests → connections/client}/index.mjs +0 -0
  630. package/dist/esm/api/resources/{directory → connections/resources/connectionToCourier}/client/index.d.mts +0 -0
  631. package/dist/esm/api/resources/{directory → connections/resources/connectionToCourier}/client/index.mjs +0 -0
  632. package/dist/esm/api/resources/{oortConnections → connections/resources/connectionToCourier}/client/requests/CreateConnectionReq.d.mts +0 -0
  633. package/dist/esm/api/resources/{oortConnections → connections/resources/connectionToCourier}/client/requests/CreateConnectionReq.mjs +0 -0
  634. package/dist/esm/api/resources/{oortConnections → connections/resources/connectionToCourier}/client/requests/index.d.mts +0 -0
  635. package/dist/esm/api/resources/{oortCourierPayDriverPayouts → connections/resources/connectionToCourier}/client/requests/index.mjs +0 -0
  636. package/dist/esm/api/resources/{directory → connections/resources/connectionToCourier}/index.d.mts +0 -0
  637. package/dist/esm/api/resources/{directory → connections/resources/connectionToCourier}/index.mjs +0 -0
  638. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup}/client/index.d.mts +0 -0
  639. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup}/client/index.mjs +0 -0
  640. package/dist/esm/api/resources/{directory/client/requests/DbQueryParams.mjs → courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.mjs} +0 -0
  641. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences/client/requests/CourierNotificationPreferencesClientCreate1.mjs → courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.mjs} +0 -0
  642. package/dist/esm/api/resources/{oortCourierPayDriverRate → courierPayDriverLineItemGroup}/client/requests/index.mjs +0 -0
  643. package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.d.mts +0 -0
  644. package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.mjs +0 -0
  645. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/AddLineItemsReq.mjs +0 -0
  646. package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/index.mjs +0 -0
  647. package/dist/esm/api/resources/{mirror → courierPayDriverLineItemGroup/resources/addLineItems}/index.d.mts +0 -0
  648. package/dist/esm/api/resources/{mirror → courierPayDriverLineItemGroup/resources/addLineItems}/index.mjs +0 -0
  649. package/dist/esm/api/resources/{oortConnections → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.d.mts +0 -0
  650. package/dist/esm/api/resources/{oortConnections → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.mjs +0 -0
  651. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/RemoveLineItemsReq.mjs +0 -0
  652. package/dist/esm/api/resources/{oortDrivers → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/index.mjs +0 -0
  653. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup/resources/removeLineItems}/index.d.mts +0 -0
  654. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup/resources/removeLineItems}/index.mjs +0 -0
  655. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverPayouts}/client/index.d.mts +0 -0
  656. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverPayouts}/client/index.mjs +0 -0
  657. package/dist/esm/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/requests/CourierPayDriverPayoutClientCreate1.mjs +0 -0
  658. package/dist/esm/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/requests/index.d.mts +0 -0
  659. package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → courierPayDriverPayouts}/client/requests/index.mjs +0 -0
  660. package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverPayouts}/index.d.mts +0 -0
  661. package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverPayouts}/index.mjs +0 -0
  662. package/dist/esm/api/resources/{oortCourierPayDriverPayouts → courierPayDriverRateSheets}/client/index.d.mts +0 -0
  663. package/dist/esm/api/resources/{oortCourierPayDriverPayouts → courierPayDriverRateSheets}/client/index.mjs +0 -0
  664. package/dist/esm/api/resources/{oortCourierPayDriverRate → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.mjs +0 -0
  665. package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +12 -12
  666. package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.mjs +0 -0
  667. package/dist/esm/api/resources/{notificationsShipperNotificationPreferences/client/requests/ShipperNotificationPreferencesClientCreate1.mjs → courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.mjs} +0 -0
  668. package/dist/esm/api/resources/{oortMilestones → courierPayDriverRateSheets}/client/requests/index.mjs +0 -0
  669. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.mjs → courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.mjs} +0 -0
  670. package/dist/esm/api/resources/{oortCourierPayDriverRate → drivers}/client/index.d.mts +0 -0
  671. package/dist/esm/api/resources/{oortCourierPayDriverRate → drivers}/client/index.mjs +0 -0
  672. package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/DriverCreateReq.d.mts +0 -0
  673. package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/DriverCreateReq.mjs +0 -0
  674. package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/DriverLastSeenReq.d.mts +0 -0
  675. package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/DriverLastSeenReq.mjs +0 -0
  676. package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/SetDriverActivationReq.mjs +0 -0
  677. package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/UpdateDriverDetailsReq.d.mts +0 -0
  678. package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/UpdateDriverDetailsReq.mjs +0 -0
  679. package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/index.d.mts +2 -2
  680. package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → drivers}/client/requests/index.mjs +0 -0
  681. package/dist/esm/api/resources/{oortConnections → drivers}/index.d.mts +0 -0
  682. package/dist/esm/api/resources/{oortConnections → drivers}/index.mjs +0 -0
  683. package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → milestoneNotifications}/client/index.d.mts +0 -0
  684. package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → milestoneNotifications}/client/index.mjs +0 -0
  685. package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts +3 -3
  686. package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/MilestoneNotificationPreferencesClientCreate1.mjs +0 -0
  687. package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/index.d.mts +0 -0
  688. package/dist/esm/api/resources/{oortOrders → milestoneNotifications}/client/requests/index.mjs +0 -0
  689. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → milestoneNotifications}/index.d.mts +0 -0
  690. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → milestoneNotifications}/index.mjs +0 -0
  691. package/dist/esm/api/resources/{oortDrivers → milestones}/client/index.d.mts +0 -0
  692. package/dist/esm/api/resources/{oortDrivers → milestones}/client/index.mjs +0 -0
  693. package/dist/esm/api/resources/{oortMilestones → milestones}/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
  694. package/dist/esm/api/resources/{oortMilestones → milestones}/client/requests/MilestoneAddToTaskReq.mjs +0 -0
  695. package/dist/esm/api/resources/{oortMilestones → milestones}/client/requests/MilestoneUpdateReq.d.mts +1 -1
  696. package/dist/esm/api/resources/{oortMilestones → milestones}/client/requests/MilestoneUpdateReq.mjs +0 -0
  697. package/dist/esm/api/resources/{oortOrgConnectionInfos → milestones}/client/requests/index.mjs +0 -0
  698. package/dist/esm/api/resources/{oortOrgProfiles/client/requests/index.mjs → milestones/resources/blurhash/client/index.d.mts} +0 -0
  699. package/dist/esm/api/resources/{oortShipperContactInfo/client/requests → milestones/resources/blurhash/client}/index.mjs +0 -0
  700. package/dist/esm/api/resources/{oortCourierPayDriverPayouts → milestones/resources/blurhash}/index.d.mts +0 -0
  701. package/dist/esm/api/resources/{oortCourierPayDriverPayouts → milestones/resources/blurhash}/index.mjs +0 -0
  702. package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestones/resources/images}/client/index.d.mts +0 -0
  703. package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestones/resources/images}/client/index.mjs +0 -0
  704. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.mjs → milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.mjs} +0 -0
  705. package/dist/esm/api/resources/{oortTaskGroups → milestones/resources/images}/client/requests/index.mjs +0 -0
  706. package/dist/esm/api/resources/{oortCourierPayDriverRate → milestones/resources/images}/index.d.mts +0 -0
  707. package/dist/esm/api/resources/{oortCourierPayDriverRate → milestones/resources/images}/index.mjs +0 -0
  708. package/dist/esm/api/resources/{oortMilestones → notifications/resources/courierPreferences}/client/index.d.mts +0 -0
  709. package/dist/esm/api/resources/{oortMilestones → notifications/resources/courierPreferences}/client/index.mjs +0 -0
  710. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByIdRequest.mjs → notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.mjs} +0 -0
  711. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notifications/resources/courierPreferences}/client/requests/index.d.mts +0 -0
  712. package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → notifications/resources/courierPreferences}/index.d.mts +0 -0
  713. package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → notifications/resources/courierPreferences}/index.mjs +0 -0
  714. package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → notifications/resources/shipper}/client/index.d.mts +0 -0
  715. package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → notifications/resources/shipper}/client/index.mjs +0 -0
  716. package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByTaskGroupIdRequest.mjs → notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.mjs} +0 -0
  717. package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notifications/resources/shipper}/client/requests/index.d.mts +0 -0
  718. package/dist/esm/api/resources/{oortDrivers → notifications/resources/shipper}/index.d.mts +0 -0
  719. package/dist/esm/api/resources/{oortDrivers → notifications/resources/shipper}/index.mjs +0 -0
  720. package/dist/esm/api/resources/{oortOrders → offChrtShipperOrgConnectionInfo}/client/index.d.mts +0 -0
  721. package/dist/esm/api/resources/{oortOrders → offChrtShipperOrgConnectionInfo}/client/index.mjs +0 -0
  722. package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.mjs +0 -0
  723. package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
  724. package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.mjs +0 -0
  725. package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/index.d.mts +0 -0
  726. package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → offChrtShipperOrgConnectionInfo}/index.d.mts +0 -0
  727. package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → offChrtShipperOrgConnectionInfo}/index.mjs +0 -0
  728. package/dist/esm/api/resources/{oortOrgConnectionInfos → orders}/client/index.d.mts +0 -0
  729. package/dist/esm/api/resources/{oortOrgConnectionInfos → orders}/client/index.mjs +0 -0
  730. package/dist/esm/api/resources/{oortOrders → orders}/client/requests/CreateOrderReq.mjs +0 -0
  731. package/dist/esm/api/resources/{oortOrders → orders}/client/requests/index.d.mts +0 -0
  732. package/dist/esm/api/resources/{oortMilestones → orders/resources/full}/index.d.mts +0 -0
  733. package/dist/esm/api/resources/{oortMilestones → orders/resources/full}/index.mjs +0 -0
  734. package/dist/esm/api/resources/{oortOrgProfiles → orgConnectionInfos/resources/courier}/client/index.d.mts +0 -0
  735. package/dist/esm/api/resources/{oortOrgProfiles → orgConnectionInfos/resources/courier}/client/index.mjs +0 -0
  736. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientCreate1.mjs +0 -0
  737. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientUpdate1.mjs +0 -0
  738. package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → orgConnectionInfos/resources/courier}/index.d.mts +0 -0
  739. package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → orgConnectionInfos/resources/courier}/index.mjs +0 -0
  740. package/dist/esm/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/shipper}/client/index.d.mts +0 -0
  741. package/dist/esm/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/shipper}/client/index.mjs +0 -0
  742. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientCreate1.mjs +0 -0
  743. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientUpdate1.mjs +0 -0
  744. package/dist/esm/api/resources/{oortOrders → orgConnectionInfos/resources/shipper}/index.d.mts +0 -0
  745. package/dist/esm/api/resources/{oortOrders → orgConnectionInfos/resources/shipper}/index.mjs +0 -0
  746. package/dist/esm/api/resources/{oortTaskGroups → orgProfiles}/client/index.d.mts +0 -0
  747. package/dist/esm/api/resources/{oortTaskGroups → orgProfiles}/client/index.mjs +0 -0
  748. package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientCreate3.mjs +0 -0
  749. package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientUpdate3.d.mts +0 -0
  750. package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientUpdate3.mjs +0 -0
  751. package/dist/esm/api/resources/{oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.mjs → orgProfiles/client/requests/OrgProfilesGetAvatarRequest.mjs} +0 -0
  752. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgProfiles}/index.d.mts +0 -0
  753. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgProfiles}/index.mjs +0 -0
  754. package/dist/esm/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/ShipperContactInfoClientUpdate1.d.mts +4 -4
  755. package/dist/esm/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/ShipperContactInfoClientUpdate1.mjs +0 -0
  756. package/dist/esm/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/index.d.mts +0 -0
  757. package/dist/esm/api/resources/{oortOrgProfiles → shipperContactInfo}/index.d.mts +0 -0
  758. package/dist/esm/api/resources/{oortOrgProfiles → shipperContactInfo}/index.mjs +0 -0
  759. package/dist/esm/api/resources/{oortTaskGroups → taskGroups}/client/requests/UpdateTaskGroupReq.d.mts +2 -2
  760. /package/dist/esm/api/resources/{oortTaskGroups → taskGroups}/client/requests/UpdateTaskGroupReq.mjs +0 -0
  761. /package/dist/esm/api/resources/{oortShipperContactInfo → taskGroups/resources/full}/index.d.mts +0 -0
  762. /package/dist/esm/api/resources/{oortShipperContactInfo → taskGroups/resources/full}/index.mjs +0 -0
  763. /package/dist/esm/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/SetTaskGroupPauseReq.mjs +0 -0
  764. /package/dist/esm/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/index.d.mts +0 -0
  765. /package/dist/esm/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/index.mjs +0 -0
@@ -0,0 +1,47 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.js";
5
+ import * as core from "../../../../../../core/index.js";
6
+ import * as Chrt from "../../../../../index.js";
7
+ export declare namespace ConnectionToCourier {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional headers to include in the request. */
25
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ }
27
+ }
28
+ export declare class ConnectionToCourier {
29
+ protected readonly _options: ConnectionToCourier.Options;
30
+ constructor(_options?: ConnectionToCourier.Options);
31
+ /**
32
+ * Body: Courier Handle, Shipper Org Id from JWT
33
+ *
34
+ * @param {Chrt.connections.CreateConnectionReq} request
35
+ * @param {ConnectionToCourier.RequestOptions} requestOptions - Request-specific configuration.
36
+ *
37
+ * @throws {@link Chrt.UnprocessableEntityError}
38
+ *
39
+ * @example
40
+ * await client.connections.connectionToCourier.create({
41
+ * handle: "handle"
42
+ * })
43
+ */
44
+ create(request: Chrt.connections.CreateConnectionReq, requestOptions?: ConnectionToCourier.RequestOptions): core.HttpResponsePromise<string>;
45
+ private __create;
46
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
47
+ }
@@ -45,35 +45,37 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
45
45
  });
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.Directory = void 0;
49
- const environments = __importStar(require("../../../../environments.js"));
50
- const core = __importStar(require("../../../../core/index.js"));
51
- const Chrt = __importStar(require("../../../index.js"));
52
- const headers_js_1 = require("../../../../core/headers.js");
53
- const errors = __importStar(require("../../../../errors/index.js"));
54
- class Directory {
48
+ exports.ConnectionToCourier = void 0;
49
+ const environments = __importStar(require("../../../../../../environments.js"));
50
+ const core = __importStar(require("../../../../../../core/index.js"));
51
+ const Chrt = __importStar(require("../../../../../index.js"));
52
+ const headers_js_1 = require("../../../../../../core/headers.js");
53
+ const errors = __importStar(require("../../../../../../errors/index.js"));
54
+ class ConnectionToCourier {
55
55
  constructor(_options = {}) {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Retrieve the full list of shippers with optional pagination and sorting
59
+ * Body: Courier Handle, Shipper Org Id from JWT
60
60
  *
61
- * @param {Chrt.DbQueryParams} request
62
- * @param {Directory.RequestOptions} requestOptions - Request-specific configuration.
61
+ * @param {Chrt.connections.CreateConnectionReq} request
62
+ * @param {ConnectionToCourier.RequestOptions} requestOptions - Request-specific configuration.
63
63
  *
64
64
  * @throws {@link Chrt.UnprocessableEntityError}
65
65
  *
66
66
  * @example
67
- * await client.directory.postShippers()
67
+ * await client.connections.connectionToCourier.create({
68
+ * handle: "handle"
69
+ * })
68
70
  */
69
- postShippers(request = {}, requestOptions) {
70
- return core.HttpResponsePromise.fromPromise(this.__postShippers(request, requestOptions));
71
+ create(request, requestOptions) {
72
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
71
73
  }
72
- __postShippers() {
73
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
74
+ __create(request, requestOptions) {
75
+ return __awaiter(this, void 0, void 0, function* () {
74
76
  var _a, _b, _c, _d;
75
77
  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, "directory/shippers"),
78
+ 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/connections/connection_to_courier/create"),
77
79
  method: "POST",
78
80
  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
81
  contentType: "application/json",
@@ -106,7 +108,7 @@ class Directory {
106
108
  rawResponse: _response.rawResponse,
107
109
  });
108
110
  case "timeout":
109
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /directory/shippers.");
111
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/connections/connection_to_courier/create.");
110
112
  case "unknown":
111
113
  throw new errors.ChrtError({
112
114
  message: _response.error.errorMessage,
@@ -125,4 +127,4 @@ class Directory {
125
127
  });
126
128
  }
127
129
  }
128
- exports.Directory = Directory;
130
+ exports.ConnectionToCourier = ConnectionToCourier;
@@ -0,0 +1,2 @@
1
+ export * as connectionToCourier from "./connectionToCourier/index.js";
2
+ export * from "./connectionToCourier/client/requests/index.js";
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.connectionToCourier = void 0;
40
+ exports.connectionToCourier = __importStar(require("./connectionToCourier/index.js"));
41
+ __exportStar(require("./connectionToCourier/client/requests/index.js"), exports);
@@ -0,0 +1,96 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments.js";
5
+ import * as core from "../../../../core/index.js";
6
+ import * as Chrt from "../../../index.js";
7
+ import { AddLineItems } from "../resources/addLineItems/client/Client.js";
8
+ import { RemoveLineItems } from "../resources/removeLineItems/client/Client.js";
9
+ export declare namespace CourierPayDriverLineItemGroup {
10
+ interface Options {
11
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
12
+ /** Specify a custom URL to connect the client to. */
13
+ baseUrl?: core.Supplier<string>;
14
+ token?: core.Supplier<core.BearerToken | undefined>;
15
+ /** Additional headers to include in requests. */
16
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
17
+ fetcher?: core.FetchFunction;
18
+ }
19
+ interface RequestOptions {
20
+ /** The maximum time to wait for a response in seconds. */
21
+ timeoutInSeconds?: number;
22
+ /** The number of times to retry the request. Defaults to 2. */
23
+ maxRetries?: number;
24
+ /** A hook to abort the request. */
25
+ abortSignal?: AbortSignal;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
28
+ }
29
+ }
30
+ export declare class CourierPayDriverLineItemGroup {
31
+ protected readonly _options: CourierPayDriverLineItemGroup.Options;
32
+ protected _addLineItems: AddLineItems | undefined;
33
+ protected _removeLineItems: RemoveLineItems | undefined;
34
+ constructor(_options?: CourierPayDriverLineItemGroup.Options);
35
+ get addLineItems(): AddLineItems;
36
+ get removeLineItems(): RemoveLineItems;
37
+ /**
38
+ * Get a courier pay driver line item group by task group ID
39
+ *
40
+ * @param {string} taskGroupId
41
+ * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
42
+ *
43
+ * @throws {@link Chrt.UnprocessableEntityError}
44
+ *
45
+ * @example
46
+ * await client.courierPayDriverLineItemGroup.byTaskGroupId("task_group_id")
47
+ */
48
+ byTaskGroupId(taskGroupId: string, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
49
+ private __byTaskGroupId;
50
+ /**
51
+ * Create a courier pay driver line item group by calculating line items from rate sheet and task group
52
+ *
53
+ * @param {Chrt.CourierPayDriverLineItemGroupCreateRequest} request
54
+ * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
55
+ *
56
+ * @throws {@link Chrt.UnprocessableEntityError}
57
+ *
58
+ * @example
59
+ * await client.courierPayDriverLineItemGroup.create({
60
+ * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
61
+ * task_group_id: "task_group_id"
62
+ * })
63
+ */
64
+ create(request: Chrt.CourierPayDriverLineItemGroupCreateRequest, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<string>;
65
+ private __create;
66
+ /**
67
+ * Calculate a courier pay driver line item group
68
+ *
69
+ * @param {Chrt.CourierPayDriverLineItemGroupPreviewRequest} request
70
+ * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
71
+ *
72
+ * @throws {@link Chrt.UnprocessableEntityError}
73
+ *
74
+ * @example
75
+ * await client.courierPayDriverLineItemGroup.preview({
76
+ * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
77
+ * task_group_id: "task_group_id"
78
+ * })
79
+ */
80
+ preview(request: Chrt.CourierPayDriverLineItemGroupPreviewRequest, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroupClientCreate1>;
81
+ private __preview;
82
+ /**
83
+ * Get a courier pay driver line item group by ID
84
+ *
85
+ * @param {string} id
86
+ * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
87
+ *
88
+ * @throws {@link Chrt.UnprocessableEntityError}
89
+ *
90
+ * @example
91
+ * await client.courierPayDriverLineItemGroup.getById("id")
92
+ */
93
+ getById(id: string, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
94
+ private __getById;
95
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
96
+ }
@@ -45,186 +45,47 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
45
45
  });
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.OortCourierPayDriverLineItemGroups = void 0;
48
+ exports.CourierPayDriverLineItemGroup = void 0;
49
49
  const environments = __importStar(require("../../../../environments.js"));
50
50
  const core = __importStar(require("../../../../core/index.js"));
51
51
  const Chrt = __importStar(require("../../../index.js"));
52
52
  const headers_js_1 = require("../../../../core/headers.js");
53
53
  const errors = __importStar(require("../../../../errors/index.js"));
54
- class OortCourierPayDriverLineItemGroups {
54
+ const Client_js_1 = require("../resources/addLineItems/client/Client.js");
55
+ const Client_js_2 = require("../resources/removeLineItems/client/Client.js");
56
+ class CourierPayDriverLineItemGroup {
55
57
  constructor(_options = {}) {
56
58
  this._options = _options;
57
59
  }
58
- /**
59
- * Calculate a courier pay driver line item group
60
- *
61
- * @param {Chrt.GetCalculateCourierPayDriverLineItemGroupRequest} request
62
- * @param {OortCourierPayDriverLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
63
- *
64
- * @throws {@link Chrt.UnprocessableEntityError}
65
- *
66
- * @example
67
- * await client.oortCourierPayDriverLineItemGroups.getCalculateCourierPayDriverLineItemGroup({
68
- * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
69
- * task_group_id: "task_group_id"
70
- * })
71
- */
72
- getCalculateCourierPayDriverLineItemGroup(request, requestOptions) {
73
- return core.HttpResponsePromise.fromPromise(this.__getCalculateCourierPayDriverLineItemGroup(request, requestOptions));
74
- }
75
- __getCalculateCourierPayDriverLineItemGroup(request, requestOptions) {
76
- return __awaiter(this, void 0, void 0, function* () {
77
- var _a, _b, _c, _d;
78
- const { courier_pay_driver_rate_sheet_id: courierPayDriverRateSheetId, task_group_id: taskGroupId, dangerous_goods: dangerousGoods, holiday, weekend, after_hours: afterHours, } = request;
79
- const _queryParams = {};
80
- _queryParams["courier_pay_driver_rate_sheet_id"] = courierPayDriverRateSheetId;
81
- _queryParams["task_group_id"] = taskGroupId;
82
- if (dangerousGoods != null) {
83
- _queryParams["dangerous_goods"] = dangerousGoods.toString();
84
- }
85
- if (holiday != null) {
86
- _queryParams["holiday"] = holiday.toString();
87
- }
88
- if (weekend != null) {
89
- _queryParams["weekend"] = weekend.toString();
90
- }
91
- if (afterHours != null) {
92
- _queryParams["after_hours"] = afterHours.toString();
93
- }
94
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
95
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/courier_pay_driver_line_item_groups/calculate"),
96
- method: "GET",
97
- 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),
98
- queryParameters: _queryParams,
99
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
100
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
101
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
102
- });
103
- if (_response.ok) {
104
- return {
105
- data: _response.body,
106
- rawResponse: _response.rawResponse,
107
- };
108
- }
109
- if (_response.error.reason === "status-code") {
110
- switch (_response.error.statusCode) {
111
- case 422:
112
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
113
- default:
114
- throw new errors.ChrtError({
115
- statusCode: _response.error.statusCode,
116
- body: _response.error.body,
117
- rawResponse: _response.rawResponse,
118
- });
119
- }
120
- }
121
- switch (_response.error.reason) {
122
- case "non-json":
123
- throw new errors.ChrtError({
124
- statusCode: _response.error.statusCode,
125
- body: _response.error.rawBody,
126
- rawResponse: _response.rawResponse,
127
- });
128
- case "timeout":
129
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/calculate.");
130
- case "unknown":
131
- throw new errors.ChrtError({
132
- message: _response.error.errorMessage,
133
- rawResponse: _response.rawResponse,
134
- });
135
- }
136
- });
137
- }
138
- /**
139
- * Get a courier pay driver line item group by ID
140
- *
141
- * @param {Chrt.GetCourierPayDriverLineItemGroupByIdRequest} request
142
- * @param {OortCourierPayDriverLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
143
- *
144
- * @throws {@link Chrt.UnprocessableEntityError}
145
- *
146
- * @example
147
- * await client.oortCourierPayDriverLineItemGroups.getCourierPayDriverLineItemGroupById({
148
- * courier_pay_driver_line_item_group_id: "courier_pay_driver_line_item_group_id"
149
- * })
150
- */
151
- getCourierPayDriverLineItemGroupById(request, requestOptions) {
152
- return core.HttpResponsePromise.fromPromise(this.__getCourierPayDriverLineItemGroupById(request, requestOptions));
60
+ get addLineItems() {
61
+ var _a;
62
+ return ((_a = this._addLineItems) !== null && _a !== void 0 ? _a : (this._addLineItems = new Client_js_1.AddLineItems(this._options)));
153
63
  }
154
- __getCourierPayDriverLineItemGroupById(request, requestOptions) {
155
- return __awaiter(this, void 0, void 0, function* () {
156
- var _a, _b, _c, _d;
157
- const { courier_pay_driver_line_item_group_id: courierPayDriverLineItemGroupId } = request;
158
- const _queryParams = {};
159
- _queryParams["courier_pay_driver_line_item_group_id"] = courierPayDriverLineItemGroupId;
160
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
161
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/courier_pay_driver_line_item_groups/by_id"),
162
- method: "GET",
163
- 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),
164
- queryParameters: _queryParams,
165
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
166
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
167
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
168
- });
169
- if (_response.ok) {
170
- return { data: _response.body, rawResponse: _response.rawResponse };
171
- }
172
- if (_response.error.reason === "status-code") {
173
- switch (_response.error.statusCode) {
174
- case 422:
175
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
176
- default:
177
- throw new errors.ChrtError({
178
- statusCode: _response.error.statusCode,
179
- body: _response.error.body,
180
- rawResponse: _response.rawResponse,
181
- });
182
- }
183
- }
184
- switch (_response.error.reason) {
185
- case "non-json":
186
- throw new errors.ChrtError({
187
- statusCode: _response.error.statusCode,
188
- body: _response.error.rawBody,
189
- rawResponse: _response.rawResponse,
190
- });
191
- case "timeout":
192
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/by_id.");
193
- case "unknown":
194
- throw new errors.ChrtError({
195
- message: _response.error.errorMessage,
196
- rawResponse: _response.rawResponse,
197
- });
198
- }
199
- });
64
+ get removeLineItems() {
65
+ var _a;
66
+ return ((_a = this._removeLineItems) !== null && _a !== void 0 ? _a : (this._removeLineItems = new Client_js_2.RemoveLineItems(this._options)));
200
67
  }
201
68
  /**
202
69
  * Get a courier pay driver line item group by task group ID
203
70
  *
204
- * @param {Chrt.GetCourierPayDriverLineItemGroupByTaskGroupIdRequest} request
205
- * @param {OortCourierPayDriverLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
71
+ * @param {string} taskGroupId
72
+ * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
206
73
  *
207
74
  * @throws {@link Chrt.UnprocessableEntityError}
208
75
  *
209
76
  * @example
210
- * await client.oortCourierPayDriverLineItemGroups.getCourierPayDriverLineItemGroupByTaskGroupId({
211
- * task_group_id: "task_group_id"
212
- * })
77
+ * await client.courierPayDriverLineItemGroup.byTaskGroupId("task_group_id")
213
78
  */
214
- getCourierPayDriverLineItemGroupByTaskGroupId(request, requestOptions) {
215
- return core.HttpResponsePromise.fromPromise(this.__getCourierPayDriverLineItemGroupByTaskGroupId(request, requestOptions));
79
+ byTaskGroupId(taskGroupId, requestOptions) {
80
+ return core.HttpResponsePromise.fromPromise(this.__byTaskGroupId(taskGroupId, requestOptions));
216
81
  }
217
- __getCourierPayDriverLineItemGroupByTaskGroupId(request, requestOptions) {
82
+ __byTaskGroupId(taskGroupId, requestOptions) {
218
83
  return __awaiter(this, void 0, void 0, function* () {
219
84
  var _a, _b, _c, _d;
220
- const { task_group_id: taskGroupId } = request;
221
- const _queryParams = {};
222
- _queryParams["task_group_id"] = taskGroupId;
223
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
224
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/courier_pay_driver_line_item_groups/by_task_group_id"),
86
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/courier_pay_driver_line_item_groups/by_task_group/${encodeURIComponent(taskGroupId)}`),
225
87
  method: "GET",
226
88
  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),
227
- queryParameters: _queryParams,
228
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
229
90
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
230
91
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -252,7 +113,7 @@ class OortCourierPayDriverLineItemGroups {
252
113
  rawResponse: _response.rawResponse,
253
114
  });
254
115
  case "timeout":
255
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/by_task_group_id.");
116
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/by_task_group/{task_group_id}.");
256
117
  case "unknown":
257
118
  throw new errors.ChrtError({
258
119
  message: _response.error.errorMessage,
@@ -264,21 +125,21 @@ class OortCourierPayDriverLineItemGroups {
264
125
  /**
265
126
  * Create a courier pay driver line item group by calculating line items from rate sheet and task group
266
127
  *
267
- * @param {Chrt.CreateCourierPayDriverLineItemGroupRequest} request
268
- * @param {OortCourierPayDriverLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
128
+ * @param {Chrt.CourierPayDriverLineItemGroupCreateRequest} request
129
+ * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
269
130
  *
270
131
  * @throws {@link Chrt.UnprocessableEntityError}
271
132
  *
272
133
  * @example
273
- * await client.oortCourierPayDriverLineItemGroups.createCourierPayDriverLineItemGroup({
134
+ * await client.courierPayDriverLineItemGroup.create({
274
135
  * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
275
136
  * task_group_id: "task_group_id"
276
137
  * })
277
138
  */
278
- createCourierPayDriverLineItemGroup(request, requestOptions) {
279
- return core.HttpResponsePromise.fromPromise(this.__createCourierPayDriverLineItemGroup(request, requestOptions));
139
+ create(request, requestOptions) {
140
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
280
141
  }
281
- __createCourierPayDriverLineItemGroup(request, requestOptions) {
142
+ __create(request, requestOptions) {
282
143
  return __awaiter(this, void 0, void 0, function* () {
283
144
  var _a, _b, _c, _d;
284
145
  const { courier_pay_driver_rate_sheet_id: courierPayDriverRateSheetId, task_group_id: taskGroupId, dangerous_goods: dangerousGoods, holiday, weekend, after_hours: afterHours, } = request;
@@ -339,43 +200,55 @@ class OortCourierPayDriverLineItemGroups {
339
200
  });
340
201
  }
341
202
  /**
342
- * Add line items to a courier pay driver line item group
203
+ * Calculate a courier pay driver line item group
343
204
  *
344
- * @param {string} courierPayDriverLineItemGroupId
345
- * @param {Chrt.AddLineItemsReq} request
346
- * @param {OortCourierPayDriverLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
205
+ * @param {Chrt.CourierPayDriverLineItemGroupPreviewRequest} request
206
+ * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
347
207
  *
348
208
  * @throws {@link Chrt.UnprocessableEntityError}
349
209
  *
350
210
  * @example
351
- * await client.oortCourierPayDriverLineItemGroups.patchAddLineItems("courier_pay_driver_line_item_group_id", {
352
- * line_items: [{
353
- * created_at: "2024-01-15T09:30:00Z",
354
- * item: "base_rate",
355
- * quantity: 1.1,
356
- * rate: 1.1
357
- * }]
211
+ * await client.courierPayDriverLineItemGroup.preview({
212
+ * courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
213
+ * task_group_id: "task_group_id"
358
214
  * })
359
215
  */
360
- patchAddLineItems(courierPayDriverLineItemGroupId, request, requestOptions) {
361
- return core.HttpResponsePromise.fromPromise(this.__patchAddLineItems(courierPayDriverLineItemGroupId, request, requestOptions));
216
+ preview(request, requestOptions) {
217
+ return core.HttpResponsePromise.fromPromise(this.__preview(request, requestOptions));
362
218
  }
363
- __patchAddLineItems(courierPayDriverLineItemGroupId, request, requestOptions) {
219
+ __preview(request, requestOptions) {
364
220
  return __awaiter(this, void 0, void 0, function* () {
365
221
  var _a, _b, _c, _d;
222
+ const { courier_pay_driver_rate_sheet_id: courierPayDriverRateSheetId, task_group_id: taskGroupId, dangerous_goods: dangerousGoods, holiday, weekend, after_hours: afterHours, } = request;
223
+ const _queryParams = {};
224
+ _queryParams["courier_pay_driver_rate_sheet_id"] = courierPayDriverRateSheetId;
225
+ _queryParams["task_group_id"] = taskGroupId;
226
+ if (dangerousGoods != null) {
227
+ _queryParams["dangerous_goods"] = dangerousGoods.toString();
228
+ }
229
+ if (holiday != null) {
230
+ _queryParams["holiday"] = holiday.toString();
231
+ }
232
+ if (weekend != null) {
233
+ _queryParams["weekend"] = weekend.toString();
234
+ }
235
+ if (afterHours != null) {
236
+ _queryParams["after_hours"] = afterHours.toString();
237
+ }
366
238
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
367
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/courier_pay_driver_line_item_groups/${encodeURIComponent(courierPayDriverLineItemGroupId)}/add_line_items`),
368
- method: "PATCH",
239
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/courier_pay_driver_line_item_groups/preview"),
240
+ method: "GET",
369
241
  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),
370
- contentType: "application/json",
371
- requestType: "json",
372
- body: request,
242
+ queryParameters: _queryParams,
373
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
374
244
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
375
245
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
376
246
  });
377
247
  if (_response.ok) {
378
- return { data: _response.body, rawResponse: _response.rawResponse };
248
+ return {
249
+ data: _response.body,
250
+ rawResponse: _response.rawResponse,
251
+ };
379
252
  }
380
253
  if (_response.error.reason === "status-code") {
381
254
  switch (_response.error.statusCode) {
@@ -397,7 +270,7 @@ class OortCourierPayDriverLineItemGroups {
397
270
  rawResponse: _response.rawResponse,
398
271
  });
399
272
  case "timeout":
400
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_line_item_groups/{courier_pay_driver_line_item_group_id}/add_line_items.");
273
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/preview.");
401
274
  case "unknown":
402
275
  throw new errors.ChrtError({
403
276
  message: _response.error.errorMessage,
@@ -407,37 +280,26 @@ class OortCourierPayDriverLineItemGroups {
407
280
  });
408
281
  }
409
282
  /**
410
- * Remove line items from a courier pay driver line item group by exact match
283
+ * Get a courier pay driver line item group by ID
411
284
  *
412
- * @param {string} courierPayDriverLineItemGroupId
413
- * @param {Chrt.RemoveLineItemsReq} request
414
- * @param {OortCourierPayDriverLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
285
+ * @param {string} id
286
+ * @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
415
287
  *
416
288
  * @throws {@link Chrt.UnprocessableEntityError}
417
289
  *
418
290
  * @example
419
- * await client.oortCourierPayDriverLineItemGroups.patchRemoveLineItems("courier_pay_driver_line_item_group_id", {
420
- * line_items: [{
421
- * created_at: "2024-01-15T09:30:00Z",
422
- * item: "base_rate",
423
- * quantity: 1.1,
424
- * rate: 1.1
425
- * }]
426
- * })
291
+ * await client.courierPayDriverLineItemGroup.getById("id")
427
292
  */
428
- patchRemoveLineItems(courierPayDriverLineItemGroupId, request, requestOptions) {
429
- return core.HttpResponsePromise.fromPromise(this.__patchRemoveLineItems(courierPayDriverLineItemGroupId, request, requestOptions));
293
+ getById(id, requestOptions) {
294
+ return core.HttpResponsePromise.fromPromise(this.__getById(id, requestOptions));
430
295
  }
431
- __patchRemoveLineItems(courierPayDriverLineItemGroupId, request, requestOptions) {
296
+ __getById(id, requestOptions) {
432
297
  return __awaiter(this, void 0, void 0, function* () {
433
298
  var _a, _b, _c, _d;
434
299
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
435
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/courier_pay_driver_line_item_groups/${encodeURIComponent(courierPayDriverLineItemGroupId)}/remove_line_items`),
436
- method: "PATCH",
300
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/courier_pay_driver_line_item_groups/${encodeURIComponent(id)}`),
301
+ method: "GET",
437
302
  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),
438
- contentType: "application/json",
439
- requestType: "json",
440
- body: request,
441
303
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
442
304
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
443
305
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -465,7 +327,7 @@ class OortCourierPayDriverLineItemGroups {
465
327
  rawResponse: _response.rawResponse,
466
328
  });
467
329
  case "timeout":
468
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_line_item_groups/{courier_pay_driver_line_item_group_id}/remove_line_items.");
330
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/{id}.");
469
331
  case "unknown":
470
332
  throw new errors.ChrtError({
471
333
  message: _response.error.errorMessage,
@@ -484,4 +346,4 @@ class OortCourierPayDriverLineItemGroups {
484
346
  });
485
347
  }
486
348
  }
487
- exports.OortCourierPayDriverLineItemGroups = OortCourierPayDriverLineItemGroups;
349
+ exports.CourierPayDriverLineItemGroup = CourierPayDriverLineItemGroup;