@chrt-inc/typescript-sdk 0.0.170-h → 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 (522) hide show
  1. package/dist/cjs/Client.d.ts +30 -30
  2. package/dist/cjs/Client.js +42 -42
  3. package/dist/cjs/api/index.d.ts +1 -1
  4. package/dist/cjs/api/index.js +1 -1
  5. package/dist/cjs/api/resources/connections/client/Client.d.ts +4 -0
  6. package/dist/cjs/api/resources/connections/client/Client.js +4 -0
  7. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.d.ts +11 -49
  8. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.js +19 -166
  9. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.ts +0 -2
  10. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/index.js +1 -0
  12. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.ts +53 -0
  13. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.js +136 -0
  14. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/{client → resources/addLineItems/client}/requests/AddLineItemsReq.d.ts +1 -3
  15. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/index.d.ts +1 -0
  16. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/index.d.ts +4 -0
  17. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/index.js +43 -0
  18. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.ts +53 -0
  19. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.js +136 -0
  20. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/{client → resources/removeLineItems/client}/requests/RemoveLineItemsReq.d.ts +1 -3
  21. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +6 -6
  23. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +10 -10
  24. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +111 -0
  25. package/dist/cjs/api/resources/{oortOrgConnectionInfos → courierPayDriverRateSheets}/client/Client.js +81 -113
  26. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.ts +11 -0
  27. package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/courierPayDriverRateSheets/index.d.ts +2 -0
  29. package/dist/cjs/api/resources/courierPayDriverRateSheets/index.js +18 -0
  30. package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.ts +5 -0
  31. package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.d.ts +1 -0
  32. package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.js +17 -0
  33. package/dist/cjs/api/resources/dev/client/Client.d.ts +2 -0
  34. package/dist/cjs/api/resources/dev/client/Client.js +2 -0
  35. package/dist/cjs/api/resources/drivers/client/Client.d.ts +152 -0
  36. package/dist/cjs/api/resources/{oortDrivers → drivers}/client/Client.js +118 -113
  37. package/dist/cjs/api/resources/index.d.ts +20 -20
  38. package/dist/cjs/api/resources/index.js +21 -21
  39. package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/Client.d.ts +16 -12
  40. package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/Client.js +21 -17
  41. package/dist/cjs/api/resources/milestones/client/Client.d.ts +69 -0
  42. package/dist/cjs/api/resources/milestones/client/Client.js +203 -0
  43. package/dist/cjs/api/resources/milestones/client/requests/index.d.ts +2 -0
  44. package/dist/cjs/api/resources/milestones/index.d.ts +2 -0
  45. package/dist/cjs/api/resources/milestones/index.js +18 -0
  46. package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +48 -0
  47. package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +129 -0
  48. package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +74 -0
  49. package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +253 -0
  50. package/dist/{esm/api/resources/oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.d.mts → cjs/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts} +2 -2
  51. package/dist/cjs/api/resources/milestones/resources/images/client/requests/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/milestones/resources/index.d.ts +3 -0
  53. package/dist/cjs/api/resources/milestones/resources/index.js +42 -0
  54. package/dist/cjs/api/resources/notifications/client/Client.d.ts +3 -3
  55. package/dist/cjs/api/resources/notifications/client/Client.js +3 -3
  56. package/dist/cjs/api/resources/notifications/resources/{courier → courierPreferences}/client/Client.d.ts +13 -13
  57. package/dist/cjs/api/resources/notifications/resources/{courier → courierPreferences}/client/Client.js +18 -18
  58. package/dist/cjs/api/resources/notifications/resources/index.d.ts +2 -2
  59. package/dist/cjs/api/resources/notifications/resources/index.js +3 -3
  60. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +7 -7
  61. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +13 -13
  62. package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/Client.d.ts +20 -20
  63. package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/Client.js +25 -25
  64. package/dist/cjs/api/resources/orders/client/Client.d.ts +108 -0
  65. package/dist/cjs/api/resources/orders/client/Client.js +359 -0
  66. package/dist/cjs/api/resources/orders/index.d.ts +2 -0
  67. package/dist/cjs/api/resources/orders/index.js +18 -0
  68. package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +65 -0
  69. package/dist/cjs/api/resources/orders/resources/full/client/Client.js +223 -0
  70. package/dist/cjs/api/resources/orders/resources/full/client/index.js +2 -0
  71. package/dist/cjs/api/resources/orders/resources/index.d.ts +1 -0
  72. package/dist/cjs/api/resources/orders/resources/index.js +37 -0
  73. package/dist/cjs/api/resources/orgConnectionInfos/client/Client.d.ts +26 -0
  74. package/dist/cjs/api/resources/orgConnectionInfos/client/Client.js +22 -0
  75. package/dist/cjs/api/resources/orgConnectionInfos/client/index.js +2 -0
  76. package/dist/cjs/api/resources/orgConnectionInfos/index.d.ts +2 -0
  77. package/dist/cjs/api/resources/orgConnectionInfos/index.js +18 -0
  78. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +71 -0
  79. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +240 -0
  80. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +1 -1
  81. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +1 -1
  82. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/index.d.ts +0 -2
  83. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/index.js +2 -0
  84. package/dist/cjs/api/resources/orgConnectionInfos/resources/index.d.ts +4 -0
  85. package/dist/cjs/api/resources/orgConnectionInfos/resources/index.js +43 -0
  86. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +71 -0
  87. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +240 -0
  88. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/index.d.ts +2 -0
  89. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/index.js +17 -0
  90. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +1 -1
  91. package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +1 -1
  92. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.d.ts +2 -0
  93. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.js +2 -0
  94. package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +101 -0
  95. package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/Client.js +85 -79
  96. package/dist/cjs/api/resources/orgProfiles/client/index.d.ts +2 -0
  97. package/dist/cjs/api/resources/orgProfiles/client/index.js +17 -0
  98. package/dist/{esm/api/resources/oortOrgProfiles/client/requests/GetAvatarRequest.d.mts → cjs/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.ts} +1 -1
  99. package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/index.d.ts +1 -1
  100. package/dist/cjs/api/resources/orgProfiles/client/requests/index.js +2 -0
  101. package/dist/cjs/api/resources/orgProfiles/index.d.ts +1 -0
  102. package/dist/cjs/api/resources/orgProfiles/index.js +17 -0
  103. package/dist/cjs/api/resources/orgs/client/Client.d.ts +8 -0
  104. package/dist/cjs/api/resources/orgs/client/Client.js +47 -0
  105. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +148 -0
  106. package/dist/cjs/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/Client.js +112 -112
  107. package/dist/cjs/api/resources/shipperContactInfo/client/index.d.ts +2 -0
  108. package/dist/cjs/api/resources/shipperContactInfo/client/index.js +17 -0
  109. package/dist/cjs/api/resources/shipperContactInfo/client/requests/index.js +2 -0
  110. package/dist/cjs/api/resources/shipperContactInfo/index.d.ts +1 -0
  111. package/dist/cjs/api/resources/shipperContactInfo/index.js +17 -0
  112. package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +96 -0
  113. package/dist/cjs/api/resources/taskGroups/client/Client.js +354 -0
  114. package/dist/cjs/api/resources/taskGroups/client/index.d.ts +2 -0
  115. package/dist/cjs/api/resources/taskGroups/client/index.js +17 -0
  116. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.js +5 -0
  117. package/dist/cjs/api/resources/taskGroups/client/requests/index.d.ts +1 -0
  118. package/dist/cjs/api/resources/taskGroups/client/requests/index.js +2 -0
  119. package/dist/cjs/api/resources/taskGroups/index.d.ts +2 -0
  120. package/dist/cjs/api/resources/taskGroups/index.js +18 -0
  121. package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +55 -0
  122. package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +177 -0
  123. package/dist/cjs/api/resources/taskGroups/resources/full/client/index.js +2 -0
  124. package/dist/cjs/api/resources/taskGroups/resources/full/index.d.ts +1 -0
  125. package/dist/cjs/api/resources/taskGroups/resources/full/index.js +17 -0
  126. package/dist/cjs/api/resources/taskGroups/resources/index.d.ts +3 -0
  127. package/dist/cjs/api/resources/taskGroups/resources/index.js +42 -0
  128. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +47 -0
  129. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +130 -0
  130. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/index.d.ts +2 -0
  131. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/index.js +17 -0
  132. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.js +5 -0
  133. package/dist/cjs/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/index.d.ts +0 -1
  134. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/requests/index.js +2 -0
  135. package/dist/cjs/api/resources/taskGroups/resources/togglePause/index.d.ts +1 -0
  136. package/dist/cjs/api/resources/taskGroups/resources/togglePause/index.js +17 -0
  137. package/dist/cjs/version.d.ts +1 -1
  138. package/dist/cjs/version.js +1 -1
  139. package/dist/esm/Client.d.mts +30 -30
  140. package/dist/esm/Client.mjs +34 -34
  141. package/dist/esm/api/index.d.mts +1 -1
  142. package/dist/esm/api/index.mjs +1 -1
  143. package/dist/esm/api/resources/connections/client/Client.d.mts +4 -0
  144. package/dist/esm/api/resources/connections/client/Client.mjs +4 -0
  145. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.d.mts +11 -49
  146. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.mjs +19 -166
  147. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.mts +0 -2
  148. package/dist/esm/api/resources/courierPayDriverLineItemGroup/index.d.mts +1 -0
  149. package/dist/esm/api/resources/courierPayDriverLineItemGroup/index.mjs +1 -0
  150. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.mts +53 -0
  151. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.mjs +99 -0
  152. package/dist/esm/api/resources/courierPayDriverLineItemGroup/{client → resources/addLineItems/client}/requests/AddLineItemsReq.d.mts +1 -3
  153. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/index.d.mts +1 -0
  154. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/index.d.mts +4 -0
  155. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/index.mjs +4 -0
  156. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.mts +53 -0
  157. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.mjs +99 -0
  158. package/dist/esm/api/resources/courierPayDriverLineItemGroup/{client → resources/removeLineItems/client}/requests/RemoveLineItemsReq.d.mts +1 -3
  159. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/index.d.mts +1 -0
  160. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +6 -6
  161. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +10 -10
  162. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +111 -0
  163. package/dist/esm/api/resources/{oortOrgConnectionInfos → courierPayDriverRateSheets}/client/Client.mjs +79 -111
  164. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.mts +11 -0
  165. package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/index.d.mts +1 -0
  166. package/dist/esm/api/resources/courierPayDriverRateSheets/index.d.mts +2 -0
  167. package/dist/esm/api/resources/courierPayDriverRateSheets/index.mjs +2 -0
  168. package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.mts +5 -0
  169. package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.d.mts +1 -0
  170. package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.mjs +1 -0
  171. package/dist/esm/api/resources/dev/client/Client.d.mts +2 -0
  172. package/dist/esm/api/resources/dev/client/Client.mjs +2 -0
  173. package/dist/esm/api/resources/drivers/client/Client.d.mts +152 -0
  174. package/dist/esm/api/resources/{oortDrivers → drivers}/client/Client.mjs +116 -111
  175. package/dist/esm/api/resources/index.d.mts +20 -20
  176. package/dist/esm/api/resources/index.mjs +20 -20
  177. package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/Client.d.mts +16 -12
  178. package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/Client.mjs +19 -15
  179. package/dist/esm/api/resources/milestones/client/Client.d.mts +69 -0
  180. package/dist/esm/api/resources/milestones/client/Client.mjs +166 -0
  181. package/dist/esm/api/resources/milestones/client/requests/index.d.mts +2 -0
  182. package/dist/esm/api/resources/milestones/index.d.mts +2 -0
  183. package/dist/esm/api/resources/milestones/index.mjs +2 -0
  184. package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +48 -0
  185. package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +92 -0
  186. package/dist/esm/api/resources/milestones/resources/blurhash/client/index.mjs +1 -0
  187. package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +74 -0
  188. package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +216 -0
  189. package/dist/{cjs/api/resources/oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.d.ts → esm/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts} +2 -2
  190. package/dist/esm/api/resources/milestones/resources/images/client/requests/index.d.mts +1 -0
  191. package/dist/esm/api/resources/milestones/resources/images/client/requests/index.mjs +1 -0
  192. package/dist/esm/api/resources/milestones/resources/index.d.mts +3 -0
  193. package/dist/esm/api/resources/milestones/resources/index.mjs +3 -0
  194. package/dist/esm/api/resources/notifications/client/Client.d.mts +3 -3
  195. package/dist/esm/api/resources/notifications/client/Client.mjs +3 -3
  196. package/dist/esm/api/resources/notifications/resources/{courier → courierPreferences}/client/Client.d.mts +13 -13
  197. package/dist/esm/api/resources/notifications/resources/{courier → courierPreferences}/client/Client.mjs +16 -16
  198. package/dist/esm/api/resources/notifications/resources/courierPreferences/client/requests/index.mjs +1 -0
  199. package/dist/esm/api/resources/notifications/resources/index.d.mts +2 -2
  200. package/dist/esm/api/resources/notifications/resources/index.mjs +2 -2
  201. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +7 -7
  202. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +13 -13
  203. package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/Client.d.mts +20 -20
  204. package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/Client.mjs +23 -23
  205. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/index.mjs +1 -0
  206. package/dist/esm/api/resources/orders/client/Client.d.mts +108 -0
  207. package/dist/esm/api/resources/orders/client/Client.mjs +322 -0
  208. package/dist/esm/api/resources/orders/client/requests/index.mjs +1 -0
  209. package/dist/esm/api/resources/orders/index.d.mts +2 -0
  210. package/dist/esm/api/resources/orders/index.mjs +2 -0
  211. package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +65 -0
  212. package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +186 -0
  213. package/dist/esm/api/resources/orders/resources/full/client/index.d.mts +1 -0
  214. package/dist/esm/api/resources/orders/resources/full/client/index.mjs +1 -0
  215. package/dist/esm/api/resources/orders/resources/index.d.mts +1 -0
  216. package/dist/esm/api/resources/orders/resources/index.mjs +1 -0
  217. package/dist/esm/api/resources/orgConnectionInfos/client/Client.d.mts +26 -0
  218. package/dist/esm/api/resources/orgConnectionInfos/client/Client.mjs +18 -0
  219. package/dist/esm/api/resources/orgConnectionInfos/client/index.d.mts +1 -0
  220. package/dist/esm/api/resources/orgConnectionInfos/client/index.mjs +1 -0
  221. package/dist/esm/api/resources/orgConnectionInfos/index.d.mts +2 -0
  222. package/dist/esm/api/resources/orgConnectionInfos/index.mjs +2 -0
  223. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +71 -0
  224. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +203 -0
  225. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +1 -1
  226. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +1 -1
  227. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/index.d.mts +0 -2
  228. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/index.mjs +1 -0
  229. package/dist/esm/api/resources/orgConnectionInfos/resources/index.d.mts +4 -0
  230. package/dist/esm/api/resources/orgConnectionInfos/resources/index.mjs +4 -0
  231. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +71 -0
  232. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +203 -0
  233. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/index.d.mts +2 -0
  234. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/index.mjs +1 -0
  235. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +1 -1
  236. package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +1 -1
  237. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.d.mts +2 -0
  238. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.mjs +1 -0
  239. package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +101 -0
  240. package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/Client.mjs +83 -77
  241. package/dist/esm/api/resources/orgProfiles/client/index.d.mts +2 -0
  242. package/dist/esm/api/resources/orgProfiles/client/index.mjs +1 -0
  243. package/dist/{cjs/api/resources/oortOrgProfiles/client/requests/GetAvatarRequest.d.ts → esm/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.mts} +1 -1
  244. package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/index.d.mts +1 -1
  245. package/dist/esm/api/resources/orgProfiles/client/requests/index.mjs +1 -0
  246. package/dist/esm/api/resources/orgProfiles/index.d.mts +1 -0
  247. package/dist/esm/api/resources/orgProfiles/index.mjs +1 -0
  248. package/dist/esm/api/resources/orgs/client/Client.d.mts +8 -0
  249. package/dist/esm/api/resources/orgs/client/Client.mjs +47 -0
  250. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +148 -0
  251. package/dist/esm/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/Client.mjs +110 -110
  252. package/dist/esm/api/resources/shipperContactInfo/client/index.d.mts +2 -0
  253. package/dist/esm/api/resources/shipperContactInfo/client/index.mjs +1 -0
  254. package/dist/esm/api/resources/shipperContactInfo/client/requests/index.mjs +1 -0
  255. package/dist/esm/api/resources/shipperContactInfo/index.d.mts +1 -0
  256. package/dist/esm/api/resources/shipperContactInfo/index.mjs +1 -0
  257. package/dist/esm/api/resources/taskGroups/client/Client.d.mts +96 -0
  258. package/dist/esm/api/resources/taskGroups/client/Client.mjs +317 -0
  259. package/dist/esm/api/resources/taskGroups/client/index.d.mts +2 -0
  260. package/dist/esm/api/resources/taskGroups/client/index.mjs +1 -0
  261. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.mjs +4 -0
  262. package/dist/esm/api/resources/taskGroups/client/requests/index.d.mts +1 -0
  263. package/dist/esm/api/resources/taskGroups/client/requests/index.mjs +1 -0
  264. package/dist/esm/api/resources/taskGroups/index.d.mts +2 -0
  265. package/dist/esm/api/resources/taskGroups/index.mjs +2 -0
  266. package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +55 -0
  267. package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +140 -0
  268. package/dist/esm/api/resources/taskGroups/resources/full/client/index.d.mts +1 -0
  269. package/dist/esm/api/resources/taskGroups/resources/full/client/index.mjs +1 -0
  270. package/dist/esm/api/resources/taskGroups/resources/full/index.d.mts +1 -0
  271. package/dist/esm/api/resources/taskGroups/resources/full/index.mjs +1 -0
  272. package/dist/esm/api/resources/taskGroups/resources/index.d.mts +3 -0
  273. package/dist/esm/api/resources/taskGroups/resources/index.mjs +3 -0
  274. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +47 -0
  275. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +93 -0
  276. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/index.d.mts +2 -0
  277. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/index.mjs +1 -0
  278. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.mjs +4 -0
  279. package/dist/esm/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/index.d.mts +0 -1
  280. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/requests/index.mjs +1 -0
  281. package/dist/esm/api/resources/taskGroups/resources/togglePause/index.d.mts +1 -0
  282. package/dist/esm/api/resources/taskGroups/resources/togglePause/index.mjs +1 -0
  283. package/dist/esm/version.d.mts +1 -1
  284. package/dist/esm/version.mjs +1 -1
  285. package/package.json +1 -1
  286. package/reference.md +965 -805
  287. package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/Client.d.ts +0 -134
  288. package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/Client.js +0 -474
  289. package/dist/cjs/api/resources/oortDrivers/client/Client.d.ts +0 -147
  290. package/dist/cjs/api/resources/oortMilestones/client/Client.d.ts +0 -114
  291. package/dist/cjs/api/resources/oortMilestones/client/Client.js +0 -431
  292. package/dist/cjs/api/resources/oortMilestones/client/requests/index.d.ts +0 -3
  293. package/dist/cjs/api/resources/oortOrders/client/Client.d.ts +0 -138
  294. package/dist/cjs/api/resources/oortOrders/client/Client.js +0 -509
  295. package/dist/cjs/api/resources/oortOrgConnectionInfos/client/Client.d.ts +0 -110
  296. package/dist/cjs/api/resources/oortOrgProfiles/client/Client.d.ts +0 -95
  297. package/dist/cjs/api/resources/oortShipperContactInfo/client/Client.d.ts +0 -148
  298. package/dist/cjs/api/resources/oortTaskGroups/client/Client.d.ts +0 -128
  299. package/dist/cjs/api/resources/oortTaskGroups/client/Client.js +0 -515
  300. package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/Client.d.mts +0 -134
  301. package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/Client.mjs +0 -437
  302. package/dist/esm/api/resources/oortDrivers/client/Client.d.mts +0 -147
  303. package/dist/esm/api/resources/oortMilestones/client/Client.d.mts +0 -114
  304. package/dist/esm/api/resources/oortMilestones/client/Client.mjs +0 -394
  305. package/dist/esm/api/resources/oortMilestones/client/requests/index.d.mts +0 -3
  306. package/dist/esm/api/resources/oortOrders/client/Client.d.mts +0 -138
  307. package/dist/esm/api/resources/oortOrders/client/Client.mjs +0 -472
  308. package/dist/esm/api/resources/oortOrgConnectionInfos/client/Client.d.mts +0 -110
  309. package/dist/esm/api/resources/oortOrgProfiles/client/Client.d.mts +0 -95
  310. package/dist/esm/api/resources/oortShipperContactInfo/client/Client.d.mts +0 -148
  311. package/dist/esm/api/resources/oortTaskGroups/client/Client.d.mts +0 -128
  312. package/dist/esm/api/resources/oortTaskGroups/client/Client.mjs +0 -478
  313. /package/dist/cjs/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.d.ts +0 -0
  314. /package/dist/cjs/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.js +0 -0
  315. /package/dist/cjs/api/resources/courierPayDriverLineItemGroup/{client → resources/addLineItems/client}/requests/AddLineItemsReq.js +0 -0
  316. /package/dist/cjs/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/index.js +0 -0
  317. /package/dist/cjs/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/index.d.ts +0 -0
  318. /package/dist/cjs/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/index.js +0 -0
  319. /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.d.ts +0 -0
  320. /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.js +0 -0
  321. /package/dist/cjs/api/resources/courierPayDriverLineItemGroup/{client → resources/removeLineItems/client}/requests/RemoveLineItemsReq.js +0 -0
  322. /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/index.js +0 -0
  323. /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/index.d.ts +0 -0
  324. /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/index.js +0 -0
  325. /package/dist/cjs/api/resources/{oortDrivers → courierPayDriverRateSheets}/client/index.d.ts +0 -0
  326. /package/dist/cjs/api/resources/{oortDrivers → courierPayDriverRateSheets}/client/index.js +0 -0
  327. /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +0 -0
  328. /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.js +0 -0
  329. /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +0 -0
  330. /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.js +0 -0
  331. /package/dist/cjs/api/resources/{notifications/resources/courier/client/requests/CourierNotificationPreferencesClientCreate1.js → courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.js} +0 -0
  332. /package/dist/cjs/api/resources/{oortDrivers → courierPayDriverRateSheets}/client/requests/index.js +0 -0
  333. /package/dist/cjs/api/resources/{oortDrivers/client/requests/DriverCreateReq.js → courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.js} +0 -0
  334. /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → drivers}/client/index.d.ts +0 -0
  335. /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → drivers}/client/index.js +0 -0
  336. /package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/DriverCreateReq.d.ts +0 -0
  337. /package/dist/cjs/api/resources/{oortDrivers/client/requests/DriverLastSeenReq.js → drivers/client/requests/DriverCreateReq.js} +0 -0
  338. /package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/DriverLastSeenReq.d.ts +0 -0
  339. /package/dist/cjs/api/resources/{oortDrivers/client/requests/SetDriverActivationReq.js → drivers/client/requests/DriverLastSeenReq.js} +0 -0
  340. /package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/SetDriverActivationReq.d.ts +0 -0
  341. /package/dist/cjs/api/resources/{oortDrivers/client/requests/UpdateDriverDetailsReq.js → drivers/client/requests/SetDriverActivationReq.js} +0 -0
  342. /package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/UpdateDriverDetailsReq.d.ts +0 -0
  343. /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences/client/requests/MilestoneNotificationPreferencesClientCreate1.js → drivers/client/requests/UpdateDriverDetailsReq.js} +0 -0
  344. /package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/index.d.ts +0 -0
  345. /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → drivers}/client/requests/index.js +0 -0
  346. /package/dist/cjs/api/resources/{oortDrivers → drivers}/index.d.ts +0 -0
  347. /package/dist/cjs/api/resources/{oortDrivers → drivers}/index.js +0 -0
  348. /package/dist/cjs/api/resources/{oortMilestones → milestoneNotifications}/client/index.d.ts +0 -0
  349. /package/dist/cjs/api/resources/{oortMilestones → milestoneNotifications}/client/index.js +0 -0
  350. /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts +0 -0
  351. /package/dist/cjs/api/resources/{oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.js → milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.js} +0 -0
  352. /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/index.d.ts +0 -0
  353. /package/dist/cjs/api/resources/{oortMilestones → milestoneNotifications}/client/requests/index.js +0 -0
  354. /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/index.d.ts +0 -0
  355. /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/index.js +0 -0
  356. /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones}/client/index.d.ts +0 -0
  357. /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones}/client/index.js +0 -0
  358. /package/dist/cjs/api/resources/{oortMilestones → milestones}/client/requests/MilestoneAddToTaskReq.d.ts +0 -0
  359. /package/dist/cjs/api/resources/{oortMilestones → milestones}/client/requests/MilestoneAddToTaskReq.js +0 -0
  360. /package/dist/cjs/api/resources/{oortMilestones → milestones}/client/requests/MilestoneUpdateReq.d.ts +0 -0
  361. /package/dist/cjs/api/resources/{oortMilestones → milestones}/client/requests/MilestoneUpdateReq.js +0 -0
  362. /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones}/client/requests/index.js +0 -0
  363. /package/dist/{esm/api/resources/notifications/resources/courier/client/requests/index.mjs → cjs/api/resources/milestones/resources/blurhash/client/index.d.ts} +0 -0
  364. /package/dist/cjs/api/resources/{oortOrders/client/requests → milestones/resources/blurhash/client}/index.js +0 -0
  365. /package/dist/cjs/api/resources/{oortMilestones → milestones/resources/blurhash}/index.d.ts +0 -0
  366. /package/dist/cjs/api/resources/{oortMilestones → milestones/resources/blurhash}/index.js +0 -0
  367. /package/dist/cjs/api/resources/{oortOrders → milestones/resources/images}/client/index.d.ts +0 -0
  368. /package/dist/cjs/api/resources/{oortOrders → milestones/resources/images}/client/index.js +0 -0
  369. /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.js → milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.js} +0 -0
  370. /package/dist/cjs/api/resources/{oortOrgConnectionInfos → milestones/resources/images}/client/requests/index.js +0 -0
  371. /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones/resources/images}/index.d.ts +0 -0
  372. /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones/resources/images}/index.js +0 -0
  373. /package/dist/cjs/api/resources/{oortOrgConnectionInfos → notifications/resources/courierPreferences}/client/index.d.ts +0 -0
  374. /package/dist/cjs/api/resources/{oortOrgConnectionInfos → notifications/resources/courierPreferences}/client/index.js +0 -0
  375. /package/dist/cjs/api/resources/notifications/resources/{courier → courierPreferences}/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +0 -0
  376. /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.js → notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.js} +0 -0
  377. /package/dist/cjs/api/resources/notifications/resources/{courier → courierPreferences}/client/requests/index.d.ts +0 -0
  378. /package/dist/cjs/api/resources/{oortOrgProfiles → notifications/resources/courierPreferences}/client/requests/index.js +0 -0
  379. /package/dist/cjs/api/resources/{oortOrders → notifications/resources/courierPreferences}/index.d.ts +0 -0
  380. /package/dist/cjs/api/resources/{oortOrders → notifications/resources/courierPreferences}/index.js +0 -0
  381. /package/dist/cjs/api/resources/{oortOrgProfiles → offChrtShipperOrgConnectionInfo}/client/index.d.ts +0 -0
  382. /package/dist/cjs/api/resources/{oortOrgProfiles → offChrtShipperOrgConnectionInfo}/client/index.js +0 -0
  383. /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +0 -0
  384. /package/dist/cjs/api/resources/{oortOrders/client/requests/CreateOrderReq.js → offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.js} +0 -0
  385. /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +0 -0
  386. /package/dist/cjs/api/resources/{oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.js → offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.js} +0 -0
  387. /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/index.d.ts +0 -0
  388. /package/dist/cjs/api/resources/{oortShipperContactInfo → offChrtShipperOrgConnectionInfo}/client/requests/index.js +0 -0
  389. /package/dist/cjs/api/resources/{oortOrgConnectionInfos → offChrtShipperOrgConnectionInfo}/index.d.ts +0 -0
  390. /package/dist/cjs/api/resources/{oortOrgConnectionInfos → offChrtShipperOrgConnectionInfo}/index.js +0 -0
  391. /package/dist/cjs/api/resources/{oortShipperContactInfo → orders}/client/index.d.ts +0 -0
  392. /package/dist/cjs/api/resources/{oortShipperContactInfo → orders}/client/index.js +0 -0
  393. /package/dist/cjs/api/resources/{oortOrders → orders}/client/requests/CreateOrderReq.d.ts +0 -0
  394. /package/dist/cjs/api/resources/{oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientUpdate1.js → orders/client/requests/CreateOrderReq.js} +0 -0
  395. /package/dist/cjs/api/resources/{oortOrders → orders}/client/requests/index.d.ts +0 -0
  396. /package/dist/cjs/api/resources/{oortTaskGroups → orders}/client/requests/index.js +0 -0
  397. /package/dist/{esm/api/resources/oortCourierPayDriverRateSheets/client/requests/index.mjs → cjs/api/resources/orders/resources/full/client/index.d.ts} +0 -0
  398. /package/dist/cjs/api/resources/{oortOrgProfiles → orders/resources/full}/index.d.ts +0 -0
  399. /package/dist/cjs/api/resources/{oortOrgProfiles → orders/resources/full}/index.js +0 -0
  400. /package/dist/{esm/api/resources/oortDrivers/client/requests/index.mjs → cjs/api/resources/orgConnectionInfos/client/index.d.ts} +0 -0
  401. /package/dist/cjs/api/resources/{oortTaskGroups → orgConnectionInfos/resources/courier}/client/index.d.ts +0 -0
  402. /package/dist/cjs/api/resources/{oortTaskGroups → orgConnectionInfos/resources/courier}/client/index.js +0 -0
  403. /package/dist/cjs/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.js → orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.js} +0 -0
  404. /package/dist/cjs/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.js → orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.js} +0 -0
  405. /package/dist/cjs/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/courier}/index.d.ts +0 -0
  406. /package/dist/cjs/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/courier}/index.js +0 -0
  407. /package/dist/cjs/api/resources/{oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.js → orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.js} +0 -0
  408. /package/dist/cjs/api/resources/{oortOrgProfiles/client/requests/CourierOrgProfileClientUpdate3.js → orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.js} +0 -0
  409. /package/dist/cjs/api/resources/{oortTaskGroups → orgConnectionInfos/resources/shipper}/index.d.ts +0 -0
  410. /package/dist/cjs/api/resources/{oortTaskGroups → orgConnectionInfos/resources/shipper}/index.js +0 -0
  411. /package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientCreate3.d.ts +0 -0
  412. /package/dist/cjs/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.js → orgProfiles/client/requests/CourierOrgProfileClientCreate3.js} +0 -0
  413. /package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientUpdate3.d.ts +0 -0
  414. /package/dist/cjs/api/resources/{oortShipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.js → orgProfiles/client/requests/CourierOrgProfileClientUpdate3.js} +0 -0
  415. /package/dist/cjs/api/resources/{oortTaskGroups/client/requests/SetTaskGroupPauseReq.js → orgProfiles/client/requests/OrgProfilesGetAvatarRequest.js} +0 -0
  416. /package/dist/cjs/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/ShipperContactInfoClientUpdate1.d.ts +0 -0
  417. /package/dist/cjs/api/resources/{oortTaskGroups/client/requests/UpdateTaskGroupReq.js → shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.js} +0 -0
  418. /package/dist/cjs/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/index.d.ts +0 -0
  419. /package/dist/cjs/api/resources/{oortTaskGroups → taskGroups}/client/requests/UpdateTaskGroupReq.d.ts +0 -0
  420. /package/dist/{esm/api/resources/oortMilestoneNotificationPreferences/client/requests/index.mjs → cjs/api/resources/taskGroups/resources/full/client/index.d.ts} +0 -0
  421. /package/dist/cjs/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/SetTaskGroupPauseReq.d.ts +0 -0
  422. /package/dist/esm/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.d.mts +0 -0
  423. /package/dist/esm/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.mjs +0 -0
  424. /package/dist/esm/api/resources/courierPayDriverLineItemGroup/{client → resources/addLineItems/client}/requests/AddLineItemsReq.mjs +0 -0
  425. /package/dist/esm/api/resources/{oortMilestones → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/index.mjs +0 -0
  426. /package/dist/esm/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/index.d.mts +0 -0
  427. /package/dist/esm/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/index.mjs +0 -0
  428. /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.d.mts +0 -0
  429. /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.mjs +0 -0
  430. /package/dist/esm/api/resources/courierPayDriverLineItemGroup/{client → resources/removeLineItems/client}/requests/RemoveLineItemsReq.mjs +0 -0
  431. /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/index.mjs +0 -0
  432. /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/index.d.mts +0 -0
  433. /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/index.mjs +0 -0
  434. /package/dist/esm/api/resources/{oortDrivers → courierPayDriverRateSheets}/client/index.d.mts +0 -0
  435. /package/dist/esm/api/resources/{oortDrivers → courierPayDriverRateSheets}/client/index.mjs +0 -0
  436. /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +0 -0
  437. /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.mjs +0 -0
  438. /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +0 -0
  439. /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.mjs +0 -0
  440. /package/dist/esm/api/resources/{notifications/resources/courier/client/requests/CourierNotificationPreferencesClientCreate1.mjs → courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.mjs} +0 -0
  441. /package/dist/esm/api/resources/{oortOrders → courierPayDriverRateSheets}/client/requests/index.mjs +0 -0
  442. /package/dist/esm/api/resources/{oortDrivers/client/requests/DriverCreateReq.mjs → courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.mjs} +0 -0
  443. /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → drivers}/client/index.d.mts +0 -0
  444. /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → drivers}/client/index.mjs +0 -0
  445. /package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/DriverCreateReq.d.mts +0 -0
  446. /package/dist/esm/api/resources/{oortDrivers/client/requests/DriverLastSeenReq.mjs → drivers/client/requests/DriverCreateReq.mjs} +0 -0
  447. /package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/DriverLastSeenReq.d.mts +0 -0
  448. /package/dist/esm/api/resources/{oortDrivers/client/requests/SetDriverActivationReq.mjs → drivers/client/requests/DriverLastSeenReq.mjs} +0 -0
  449. /package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/SetDriverActivationReq.d.mts +0 -0
  450. /package/dist/esm/api/resources/{oortDrivers/client/requests/UpdateDriverDetailsReq.mjs → drivers/client/requests/SetDriverActivationReq.mjs} +0 -0
  451. /package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/UpdateDriverDetailsReq.d.mts +0 -0
  452. /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences/client/requests/MilestoneNotificationPreferencesClientCreate1.mjs → drivers/client/requests/UpdateDriverDetailsReq.mjs} +0 -0
  453. /package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/index.d.mts +0 -0
  454. /package/dist/esm/api/resources/{oortOrgConnectionInfos → drivers}/client/requests/index.mjs +0 -0
  455. /package/dist/esm/api/resources/{oortDrivers → drivers}/index.d.mts +0 -0
  456. /package/dist/esm/api/resources/{oortDrivers → drivers}/index.mjs +0 -0
  457. /package/dist/esm/api/resources/{oortMilestones → milestoneNotifications}/client/index.d.mts +0 -0
  458. /package/dist/esm/api/resources/{oortMilestones → milestoneNotifications}/client/index.mjs +0 -0
  459. /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts +0 -0
  460. /package/dist/esm/api/resources/{oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.mjs → milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.mjs} +0 -0
  461. /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/index.d.mts +0 -0
  462. /package/dist/esm/api/resources/{oortOrgProfiles → milestoneNotifications}/client/requests/index.mjs +0 -0
  463. /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/index.d.mts +0 -0
  464. /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/index.mjs +0 -0
  465. /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones}/client/index.d.mts +0 -0
  466. /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones}/client/index.mjs +0 -0
  467. /package/dist/esm/api/resources/{oortMilestones → milestones}/client/requests/MilestoneAddToTaskReq.d.mts +0 -0
  468. /package/dist/esm/api/resources/{oortMilestones → milestones}/client/requests/MilestoneAddToTaskReq.mjs +0 -0
  469. /package/dist/esm/api/resources/{oortMilestones → milestones}/client/requests/MilestoneUpdateReq.d.mts +0 -0
  470. /package/dist/esm/api/resources/{oortMilestones → milestones}/client/requests/MilestoneUpdateReq.mjs +0 -0
  471. /package/dist/esm/api/resources/{oortShipperContactInfo → milestones}/client/requests/index.mjs +0 -0
  472. /package/dist/esm/api/resources/{oortTaskGroups/client/requests/index.mjs → milestones/resources/blurhash/client/index.d.mts} +0 -0
  473. /package/dist/esm/api/resources/{oortMilestones → milestones/resources/blurhash}/index.d.mts +0 -0
  474. /package/dist/esm/api/resources/{oortMilestones → milestones/resources/blurhash}/index.mjs +0 -0
  475. /package/dist/esm/api/resources/{oortOrders → milestones/resources/images}/client/index.d.mts +0 -0
  476. /package/dist/esm/api/resources/{oortOrders → milestones/resources/images}/client/index.mjs +0 -0
  477. /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.mjs → milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.mjs} +0 -0
  478. /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones/resources/images}/index.d.mts +0 -0
  479. /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones/resources/images}/index.mjs +0 -0
  480. /package/dist/esm/api/resources/{oortOrgConnectionInfos → notifications/resources/courierPreferences}/client/index.d.mts +0 -0
  481. /package/dist/esm/api/resources/{oortOrgConnectionInfos → notifications/resources/courierPreferences}/client/index.mjs +0 -0
  482. /package/dist/esm/api/resources/notifications/resources/{courier → courierPreferences}/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +0 -0
  483. /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.mjs → notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.mjs} +0 -0
  484. /package/dist/esm/api/resources/notifications/resources/{courier → courierPreferences}/client/requests/index.d.mts +0 -0
  485. /package/dist/esm/api/resources/{oortOrders → notifications/resources/courierPreferences}/index.d.mts +0 -0
  486. /package/dist/esm/api/resources/{oortOrders → notifications/resources/courierPreferences}/index.mjs +0 -0
  487. /package/dist/esm/api/resources/{oortOrgProfiles → offChrtShipperOrgConnectionInfo}/client/index.d.mts +0 -0
  488. /package/dist/esm/api/resources/{oortOrgProfiles → offChrtShipperOrgConnectionInfo}/client/index.mjs +0 -0
  489. /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +0 -0
  490. /package/dist/esm/api/resources/{oortOrders/client/requests/CreateOrderReq.mjs → offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.mjs} +0 -0
  491. /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +0 -0
  492. /package/dist/esm/api/resources/{oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.mjs → offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.mjs} +0 -0
  493. /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/index.d.mts +0 -0
  494. /package/dist/esm/api/resources/{oortOrgConnectionInfos → offChrtShipperOrgConnectionInfo}/index.d.mts +0 -0
  495. /package/dist/esm/api/resources/{oortOrgConnectionInfos → offChrtShipperOrgConnectionInfo}/index.mjs +0 -0
  496. /package/dist/esm/api/resources/{oortShipperContactInfo → orders}/client/index.d.mts +0 -0
  497. /package/dist/esm/api/resources/{oortShipperContactInfo → orders}/client/index.mjs +0 -0
  498. /package/dist/esm/api/resources/{oortOrders → orders}/client/requests/CreateOrderReq.d.mts +0 -0
  499. /package/dist/esm/api/resources/{oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientUpdate1.mjs → orders/client/requests/CreateOrderReq.mjs} +0 -0
  500. /package/dist/esm/api/resources/{oortOrders → orders}/client/requests/index.d.mts +0 -0
  501. /package/dist/esm/api/resources/{oortOrgProfiles → orders/resources/full}/index.d.mts +0 -0
  502. /package/dist/esm/api/resources/{oortOrgProfiles → orders/resources/full}/index.mjs +0 -0
  503. /package/dist/esm/api/resources/{oortTaskGroups → orgConnectionInfos/resources/courier}/client/index.d.mts +0 -0
  504. /package/dist/esm/api/resources/{oortTaskGroups → orgConnectionInfos/resources/courier}/client/index.mjs +0 -0
  505. /package/dist/esm/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.mjs → orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.mjs} +0 -0
  506. /package/dist/esm/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.mjs → orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.mjs} +0 -0
  507. /package/dist/esm/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/courier}/index.d.mts +0 -0
  508. /package/dist/esm/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/courier}/index.mjs +0 -0
  509. /package/dist/esm/api/resources/{oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.mjs → orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.mjs} +0 -0
  510. /package/dist/esm/api/resources/{oortOrgProfiles/client/requests/CourierOrgProfileClientUpdate3.mjs → orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.mjs} +0 -0
  511. /package/dist/esm/api/resources/{oortTaskGroups → orgConnectionInfos/resources/shipper}/index.d.mts +0 -0
  512. /package/dist/esm/api/resources/{oortTaskGroups → orgConnectionInfos/resources/shipper}/index.mjs +0 -0
  513. /package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientCreate3.d.mts +0 -0
  514. /package/dist/esm/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.mjs → orgProfiles/client/requests/CourierOrgProfileClientCreate3.mjs} +0 -0
  515. /package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientUpdate3.d.mts +0 -0
  516. /package/dist/esm/api/resources/{oortShipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.mjs → orgProfiles/client/requests/CourierOrgProfileClientUpdate3.mjs} +0 -0
  517. /package/dist/esm/api/resources/{oortTaskGroups/client/requests/SetTaskGroupPauseReq.mjs → orgProfiles/client/requests/OrgProfilesGetAvatarRequest.mjs} +0 -0
  518. /package/dist/esm/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/ShipperContactInfoClientUpdate1.d.mts +0 -0
  519. /package/dist/esm/api/resources/{oortTaskGroups/client/requests/UpdateTaskGroupReq.mjs → shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.mjs} +0 -0
  520. /package/dist/esm/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/index.d.mts +0 -0
  521. /package/dist/esm/api/resources/{oortTaskGroups → taskGroups}/client/requests/UpdateTaskGroupReq.d.mts +0 -0
  522. /package/dist/esm/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/SetTaskGroupPauseReq.d.mts +0 -0
@@ -0,0 +1,359 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.Orders = 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
+ const Client_js_1 = require("../resources/full/client/Client.js");
55
+ class Orders {
56
+ constructor(_options = {}) {
57
+ this._options = _options;
58
+ }
59
+ get full() {
60
+ var _a;
61
+ return ((_a = this._full) !== null && _a !== void 0 ? _a : (this._full = new Client_js_1.Full(this._options)));
62
+ }
63
+ /**
64
+ * @param {string} orderIdOrShortId
65
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
66
+ *
67
+ * @throws {@link Chrt.UnprocessableEntityError}
68
+ *
69
+ * @example
70
+ * await client.orders.cancelByOrderIdOrShortId("order_id_or_short_id")
71
+ */
72
+ cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
73
+ return core.HttpResponsePromise.fromPromise(this.__cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions));
74
+ }
75
+ __cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ var _a, _b, _c, _d;
78
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/orders/cancel/${encodeURIComponent(orderIdOrShortId)}`),
80
+ method: "PATCH",
81
+ headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
83
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
84
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
85
+ });
86
+ if (_response.ok) {
87
+ return { data: _response.body, rawResponse: _response.rawResponse };
88
+ }
89
+ if (_response.error.reason === "status-code") {
90
+ switch (_response.error.statusCode) {
91
+ case 422:
92
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
93
+ default:
94
+ throw new errors.ChrtError({
95
+ statusCode: _response.error.statusCode,
96
+ body: _response.error.body,
97
+ rawResponse: _response.rawResponse,
98
+ });
99
+ }
100
+ }
101
+ switch (_response.error.reason) {
102
+ case "non-json":
103
+ throw new errors.ChrtError({
104
+ statusCode: _response.error.statusCode,
105
+ body: _response.error.rawBody,
106
+ rawResponse: _response.rawResponse,
107
+ });
108
+ case "timeout":
109
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/orders/cancel/{order_id_or_short_id}.");
110
+ case "unknown":
111
+ throw new errors.ChrtError({
112
+ message: _response.error.errorMessage,
113
+ rawResponse: _response.rawResponse,
114
+ });
115
+ }
116
+ });
117
+ }
118
+ /**
119
+ * @param {Chrt.CreateOrderReq} request
120
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
121
+ *
122
+ * @throws {@link Chrt.UnprocessableEntityError}
123
+ *
124
+ * @example
125
+ * await client.orders.create({
126
+ * cargo_client_creates_map: {
127
+ * "key": {
128
+ * cargo_type: "spare_parts",
129
+ * schema_version: 1
130
+ * }
131
+ * },
132
+ * order_client_create: {
133
+ * schema_version: 1
134
+ * },
135
+ * order_created_by_type: "chrt",
136
+ * order_dispatch_type: "dtc",
137
+ * task_client_creates_bundle_groupings: [[{
138
+ * task_client_create: {
139
+ * schema_version: 1
140
+ * }
141
+ * }]],
142
+ * transport_type: "ground_only"
143
+ * })
144
+ */
145
+ create(request, requestOptions) {
146
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
147
+ }
148
+ __create(request, requestOptions) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ var _a, _b, _c, _d;
151
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
152
+ 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/orders/create"),
153
+ method: "POST",
154
+ 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),
155
+ contentType: "application/json",
156
+ requestType: "json",
157
+ body: request,
158
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
159
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
160
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
161
+ });
162
+ if (_response.ok) {
163
+ return { data: _response.body, rawResponse: _response.rawResponse };
164
+ }
165
+ if (_response.error.reason === "status-code") {
166
+ switch (_response.error.statusCode) {
167
+ case 422:
168
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
169
+ default:
170
+ throw new errors.ChrtError({
171
+ statusCode: _response.error.statusCode,
172
+ body: _response.error.body,
173
+ rawResponse: _response.rawResponse,
174
+ });
175
+ }
176
+ }
177
+ switch (_response.error.reason) {
178
+ case "non-json":
179
+ throw new errors.ChrtError({
180
+ statusCode: _response.error.statusCode,
181
+ body: _response.error.rawBody,
182
+ rawResponse: _response.rawResponse,
183
+ });
184
+ case "timeout":
185
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/orders/create.");
186
+ case "unknown":
187
+ throw new errors.ChrtError({
188
+ message: _response.error.errorMessage,
189
+ rawResponse: _response.rawResponse,
190
+ });
191
+ }
192
+ });
193
+ }
194
+ /**
195
+ * Uses the org_id from the JWT
196
+ *
197
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
198
+ *
199
+ * @example
200
+ * await client.orders.listByCourierOrgId()
201
+ */
202
+ listByCourierOrgId(requestOptions) {
203
+ return core.HttpResponsePromise.fromPromise(this.__listByCourierOrgId(requestOptions));
204
+ }
205
+ __listByCourierOrgId(requestOptions) {
206
+ return __awaiter(this, void 0, void 0, function* () {
207
+ var _a, _b, _c, _d;
208
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
209
+ 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/orders/list/by_courier_org_id"),
210
+ method: "GET",
211
+ 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),
212
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
213
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
214
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
215
+ });
216
+ if (_response.ok) {
217
+ return { data: _response.body, rawResponse: _response.rawResponse };
218
+ }
219
+ if (_response.error.reason === "status-code") {
220
+ throw new errors.ChrtError({
221
+ statusCode: _response.error.statusCode,
222
+ body: _response.error.body,
223
+ rawResponse: _response.rawResponse,
224
+ });
225
+ }
226
+ switch (_response.error.reason) {
227
+ case "non-json":
228
+ throw new errors.ChrtError({
229
+ statusCode: _response.error.statusCode,
230
+ body: _response.error.rawBody,
231
+ rawResponse: _response.rawResponse,
232
+ });
233
+ case "timeout":
234
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/list/by_courier_org_id.");
235
+ case "unknown":
236
+ throw new errors.ChrtError({
237
+ message: _response.error.errorMessage,
238
+ rawResponse: _response.rawResponse,
239
+ });
240
+ }
241
+ });
242
+ }
243
+ /**
244
+ * Uses the org_id from the JWT
245
+ *
246
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
247
+ *
248
+ * @example
249
+ * await client.orders.listByShipperOrgId()
250
+ */
251
+ listByShipperOrgId(requestOptions) {
252
+ return core.HttpResponsePromise.fromPromise(this.__listByShipperOrgId(requestOptions));
253
+ }
254
+ __listByShipperOrgId(requestOptions) {
255
+ return __awaiter(this, void 0, void 0, function* () {
256
+ var _a, _b, _c, _d;
257
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
258
+ 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/orders/list/by_shipper_org_id"),
259
+ method: "GET",
260
+ 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),
261
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
262
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
263
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
264
+ });
265
+ if (_response.ok) {
266
+ return { data: _response.body, rawResponse: _response.rawResponse };
267
+ }
268
+ if (_response.error.reason === "status-code") {
269
+ throw new errors.ChrtError({
270
+ statusCode: _response.error.statusCode,
271
+ body: _response.error.body,
272
+ rawResponse: _response.rawResponse,
273
+ });
274
+ }
275
+ switch (_response.error.reason) {
276
+ case "non-json":
277
+ throw new errors.ChrtError({
278
+ statusCode: _response.error.statusCode,
279
+ body: _response.error.rawBody,
280
+ rawResponse: _response.rawResponse,
281
+ });
282
+ case "timeout":
283
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/list/by_shipper_org_id.");
284
+ case "unknown":
285
+ throw new errors.ChrtError({
286
+ message: _response.error.errorMessage,
287
+ rawResponse: _response.rawResponse,
288
+ });
289
+ }
290
+ });
291
+ }
292
+ /**
293
+ * Accepts both order_id and order_short_id values and returns just the Order
294
+ *
295
+ * @param {string} orderIdOrShortId
296
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
297
+ *
298
+ * @throws {@link Chrt.UnprocessableEntityError}
299
+ *
300
+ * @example
301
+ * await client.orders.getByOrderIdOrShortId("order_id_or_short_id")
302
+ */
303
+ getByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
304
+ return core.HttpResponsePromise.fromPromise(this.__getByOrderIdOrShortId(orderIdOrShortId, requestOptions));
305
+ }
306
+ __getByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
307
+ return __awaiter(this, void 0, void 0, function* () {
308
+ var _a, _b, _c, _d;
309
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
310
+ 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/orders/${encodeURIComponent(orderIdOrShortId)}`),
311
+ method: "GET",
312
+ 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),
313
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
314
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
315
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
316
+ });
317
+ if (_response.ok) {
318
+ return { data: _response.body, rawResponse: _response.rawResponse };
319
+ }
320
+ if (_response.error.reason === "status-code") {
321
+ switch (_response.error.statusCode) {
322
+ case 422:
323
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
324
+ default:
325
+ throw new errors.ChrtError({
326
+ statusCode: _response.error.statusCode,
327
+ body: _response.error.body,
328
+ rawResponse: _response.rawResponse,
329
+ });
330
+ }
331
+ }
332
+ switch (_response.error.reason) {
333
+ case "non-json":
334
+ throw new errors.ChrtError({
335
+ statusCode: _response.error.statusCode,
336
+ body: _response.error.rawBody,
337
+ rawResponse: _response.rawResponse,
338
+ });
339
+ case "timeout":
340
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/{order_id_or_short_id}.");
341
+ case "unknown":
342
+ throw new errors.ChrtError({
343
+ message: _response.error.errorMessage,
344
+ rawResponse: _response.rawResponse,
345
+ });
346
+ }
347
+ });
348
+ }
349
+ _getAuthorizationHeader() {
350
+ return __awaiter(this, void 0, void 0, function* () {
351
+ const bearer = yield core.Supplier.get(this._options.token);
352
+ if (bearer != null) {
353
+ return `Bearer ${bearer}`;
354
+ }
355
+ return undefined;
356
+ });
357
+ }
358
+ }
359
+ exports.Orders = Orders;
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./resources/index.js";
@@ -0,0 +1,18 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./resources/index.js"), exports);
@@ -0,0 +1,65 @@
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 Full {
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 Full {
29
+ protected readonly _options: Full.Options;
30
+ constructor(_options?: Full.Options);
31
+ /**
32
+ * Uses the org_id from the JWT
33
+ *
34
+ * @param {Full.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @example
37
+ * await client.orders.full.listByCourierOrgId()
38
+ */
39
+ listByCourierOrgId(requestOptions?: Full.RequestOptions): core.HttpResponsePromise<Chrt.GetOrderFullRes[]>;
40
+ private __listByCourierOrgId;
41
+ /**
42
+ * Uses the org_id from the JWT
43
+ *
44
+ * @param {Full.RequestOptions} requestOptions - Request-specific configuration.
45
+ *
46
+ * @example
47
+ * await client.orders.full.listByShipperOrgId()
48
+ */
49
+ listByShipperOrgId(requestOptions?: Full.RequestOptions): core.HttpResponsePromise<Chrt.GetOrderFullRes[]>;
50
+ private __listByShipperOrgId;
51
+ /**
52
+ * Accepts both order_id and order_short_id values and returns the Order with all its Task Groups, Tasks, Milestones, and Cargos
53
+ *
54
+ * @param {string} orderIdOrShortId
55
+ * @param {Full.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @throws {@link Chrt.UnprocessableEntityError}
58
+ *
59
+ * @example
60
+ * await client.orders.full.getByOrderIdOrShortId("order_id_or_short_id")
61
+ */
62
+ getByOrderIdOrShortId(orderIdOrShortId: string, requestOptions?: Full.RequestOptions): core.HttpResponsePromise<Chrt.GetOrderFullRes>;
63
+ private __getByOrderIdOrShortId;
64
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
65
+ }
@@ -0,0 +1,223 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.Full = 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 Full {
55
+ constructor(_options = {}) {
56
+ this._options = _options;
57
+ }
58
+ /**
59
+ * Uses the org_id from the JWT
60
+ *
61
+ * @param {Full.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @example
64
+ * await client.orders.full.listByCourierOrgId()
65
+ */
66
+ listByCourierOrgId(requestOptions) {
67
+ return core.HttpResponsePromise.fromPromise(this.__listByCourierOrgId(requestOptions));
68
+ }
69
+ __listByCourierOrgId(requestOptions) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ var _a, _b, _c, _d;
72
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/orders/list/by_courier_org_id/full"),
74
+ method: "GET",
75
+ headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
77
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
78
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
79
+ });
80
+ if (_response.ok) {
81
+ return { data: _response.body, rawResponse: _response.rawResponse };
82
+ }
83
+ if (_response.error.reason === "status-code") {
84
+ throw new errors.ChrtError({
85
+ statusCode: _response.error.statusCode,
86
+ body: _response.error.body,
87
+ rawResponse: _response.rawResponse,
88
+ });
89
+ }
90
+ switch (_response.error.reason) {
91
+ case "non-json":
92
+ throw new errors.ChrtError({
93
+ statusCode: _response.error.statusCode,
94
+ body: _response.error.rawBody,
95
+ rawResponse: _response.rawResponse,
96
+ });
97
+ case "timeout":
98
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/list/by_courier_org_id/full.");
99
+ case "unknown":
100
+ throw new errors.ChrtError({
101
+ message: _response.error.errorMessage,
102
+ rawResponse: _response.rawResponse,
103
+ });
104
+ }
105
+ });
106
+ }
107
+ /**
108
+ * Uses the org_id from the JWT
109
+ *
110
+ * @param {Full.RequestOptions} requestOptions - Request-specific configuration.
111
+ *
112
+ * @example
113
+ * await client.orders.full.listByShipperOrgId()
114
+ */
115
+ listByShipperOrgId(requestOptions) {
116
+ return core.HttpResponsePromise.fromPromise(this.__listByShipperOrgId(requestOptions));
117
+ }
118
+ __listByShipperOrgId(requestOptions) {
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ var _a, _b, _c, _d;
121
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
122
+ 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/orders/list/by_shipper_org_id/full"),
123
+ method: "GET",
124
+ 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),
125
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
126
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
127
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
128
+ });
129
+ if (_response.ok) {
130
+ return { data: _response.body, rawResponse: _response.rawResponse };
131
+ }
132
+ if (_response.error.reason === "status-code") {
133
+ throw new errors.ChrtError({
134
+ statusCode: _response.error.statusCode,
135
+ body: _response.error.body,
136
+ rawResponse: _response.rawResponse,
137
+ });
138
+ }
139
+ switch (_response.error.reason) {
140
+ case "non-json":
141
+ throw new errors.ChrtError({
142
+ statusCode: _response.error.statusCode,
143
+ body: _response.error.rawBody,
144
+ rawResponse: _response.rawResponse,
145
+ });
146
+ case "timeout":
147
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/list/by_shipper_org_id/full.");
148
+ case "unknown":
149
+ throw new errors.ChrtError({
150
+ message: _response.error.errorMessage,
151
+ rawResponse: _response.rawResponse,
152
+ });
153
+ }
154
+ });
155
+ }
156
+ /**
157
+ * Accepts both order_id and order_short_id values and returns the Order with all its Task Groups, Tasks, Milestones, and Cargos
158
+ *
159
+ * @param {string} orderIdOrShortId
160
+ * @param {Full.RequestOptions} requestOptions - Request-specific configuration.
161
+ *
162
+ * @throws {@link Chrt.UnprocessableEntityError}
163
+ *
164
+ * @example
165
+ * await client.orders.full.getByOrderIdOrShortId("order_id_or_short_id")
166
+ */
167
+ getByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
168
+ return core.HttpResponsePromise.fromPromise(this.__getByOrderIdOrShortId(orderIdOrShortId, requestOptions));
169
+ }
170
+ __getByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ var _a, _b, _c, _d;
173
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
174
+ 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/orders/${encodeURIComponent(orderIdOrShortId)}/full`),
175
+ method: "GET",
176
+ 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),
177
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
178
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
179
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
180
+ });
181
+ if (_response.ok) {
182
+ return { data: _response.body, rawResponse: _response.rawResponse };
183
+ }
184
+ if (_response.error.reason === "status-code") {
185
+ switch (_response.error.statusCode) {
186
+ case 422:
187
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
188
+ default:
189
+ throw new errors.ChrtError({
190
+ statusCode: _response.error.statusCode,
191
+ body: _response.error.body,
192
+ rawResponse: _response.rawResponse,
193
+ });
194
+ }
195
+ }
196
+ switch (_response.error.reason) {
197
+ case "non-json":
198
+ throw new errors.ChrtError({
199
+ statusCode: _response.error.statusCode,
200
+ body: _response.error.rawBody,
201
+ rawResponse: _response.rawResponse,
202
+ });
203
+ case "timeout":
204
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/{order_id_or_short_id}/full.");
205
+ case "unknown":
206
+ throw new errors.ChrtError({
207
+ message: _response.error.errorMessage,
208
+ rawResponse: _response.rawResponse,
209
+ });
210
+ }
211
+ });
212
+ }
213
+ _getAuthorizationHeader() {
214
+ return __awaiter(this, void 0, void 0, function* () {
215
+ const bearer = yield core.Supplier.get(this._options.token);
216
+ if (bearer != null) {
217
+ return `Bearer ${bearer}`;
218
+ }
219
+ return undefined;
220
+ });
221
+ }
222
+ }
223
+ exports.Full = Full;