@chrt-inc/typescript-sdk 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (897) hide show
  1. package/Client.d.ts +79 -0
  2. package/Client.js +97 -0
  3. package/README.md +151 -0
  4. package/api/errors/UnprocessableEntityError.d.ts +8 -0
  5. package/api/errors/UnprocessableEntityError.js +51 -0
  6. package/api/errors/index.d.ts +1 -0
  7. package/api/errors/index.js +17 -0
  8. package/api/index.d.ts +3 -0
  9. package/api/index.js +19 -0
  10. package/api/resources/dev/client/Client.d.ts +72 -0
  11. package/api/resources/dev/client/Client.js +299 -0
  12. package/api/resources/dev/client/index.d.ts +1 -0
  13. package/api/resources/dev/client/index.js +17 -0
  14. package/api/resources/dev/client/requests/TemplateReq.d.ts +16 -0
  15. package/api/resources/dev/client/requests/TemplateReq.js +5 -0
  16. package/api/resources/dev/client/requests/index.d.ts +1 -0
  17. package/api/resources/dev/client/requests/index.js +2 -0
  18. package/api/resources/dev/index.d.ts +1 -0
  19. package/api/resources/dev/index.js +17 -0
  20. package/api/resources/directory/client/Client.d.ts +42 -0
  21. package/api/resources/directory/client/Client.js +125 -0
  22. package/api/resources/directory/client/index.d.ts +1 -0
  23. package/api/resources/directory/client/index.js +17 -0
  24. package/api/resources/directory/client/requests/DbQueryParams.d.ts +12 -0
  25. package/api/resources/directory/client/requests/DbQueryParams.js +5 -0
  26. package/api/resources/directory/client/requests/index.d.ts +1 -0
  27. package/api/resources/directory/client/requests/index.js +2 -0
  28. package/api/resources/directory/index.d.ts +1 -0
  29. package/api/resources/directory/index.js +17 -0
  30. package/api/resources/index.d.ts +32 -0
  31. package/api/resources/index.js +71 -0
  32. package/api/resources/mirror/client/Client.d.ts +124 -0
  33. package/api/resources/mirror/client/Client.js +609 -0
  34. package/api/resources/mirror/client/index.d.ts +1 -0
  35. package/api/resources/mirror/client/index.js +2 -0
  36. package/api/resources/mirror/index.d.ts +1 -0
  37. package/api/resources/mirror/index.js +17 -0
  38. package/api/resources/oortConnections/client/Client.d.ts +58 -0
  39. package/api/resources/oortConnections/client/Client.js +213 -0
  40. package/api/resources/oortConnections/client/index.d.ts +1 -0
  41. package/api/resources/oortConnections/client/index.js +17 -0
  42. package/api/resources/oortConnections/client/requests/CreateConnectionReq.d.ts +12 -0
  43. package/api/resources/oortConnections/client/requests/CreateConnectionReq.js +5 -0
  44. package/api/resources/oortConnections/client/requests/index.d.ts +1 -0
  45. package/api/resources/oortConnections/client/requests/index.js +2 -0
  46. package/api/resources/oortConnections/index.d.ts +1 -0
  47. package/api/resources/oortConnections/index.js +17 -0
  48. package/api/resources/oortCourierPayDriverRateSheets/client/Client.d.ts +88 -0
  49. package/api/resources/oortCourierPayDriverRateSheets/client/Client.js +284 -0
  50. package/api/resources/oortCourierPayDriverRateSheets/client/index.d.ts +1 -0
  51. package/api/resources/oortCourierPayDriverRateSheets/client/index.js +17 -0
  52. package/api/resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +50 -0
  53. package/api/resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.js +5 -0
  54. package/api/resources/oortCourierPayDriverRateSheets/client/requests/index.d.ts +1 -0
  55. package/api/resources/oortCourierPayDriverRateSheets/client/requests/index.js +2 -0
  56. package/api/resources/oortCourierPayDriverRateSheets/index.d.ts +1 -0
  57. package/api/resources/oortCourierPayDriverRateSheets/index.js +17 -0
  58. package/api/resources/oortDrivers/client/Client.d.ts +136 -0
  59. package/api/resources/oortDrivers/client/Client.js +535 -0
  60. package/api/resources/oortDrivers/client/index.d.ts +1 -0
  61. package/api/resources/oortDrivers/client/index.js +17 -0
  62. package/api/resources/oortDrivers/client/requests/DriverCreateReq.d.ts +17 -0
  63. package/api/resources/oortDrivers/client/requests/DriverCreateReq.js +5 -0
  64. package/api/resources/oortDrivers/client/requests/DriverLastSeenReq.d.ts +15 -0
  65. package/api/resources/oortDrivers/client/requests/DriverLastSeenReq.js +5 -0
  66. package/api/resources/oortDrivers/client/requests/SetDriverActivationReq.d.ts +14 -0
  67. package/api/resources/oortDrivers/client/requests/SetDriverActivationReq.js +5 -0
  68. package/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.d.ts +18 -0
  69. package/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.js +5 -0
  70. package/api/resources/oortDrivers/client/requests/index.d.ts +4 -0
  71. package/api/resources/oortDrivers/client/requests/index.js +2 -0
  72. package/api/resources/oortDrivers/index.d.ts +1 -0
  73. package/api/resources/oortDrivers/index.js +17 -0
  74. package/api/resources/oortMilestones/client/Client.d.ts +91 -0
  75. package/api/resources/oortMilestones/client/Client.js +346 -0
  76. package/api/resources/oortMilestones/client/index.d.ts +1 -0
  77. package/api/resources/oortMilestones/client/index.js +17 -0
  78. package/api/resources/oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.d.ts +10 -0
  79. package/api/resources/oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.js +5 -0
  80. package/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.d.ts +16 -0
  81. package/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.js +5 -0
  82. package/api/resources/oortMilestones/client/requests/MilestoneUpdateReq.d.ts +14 -0
  83. package/api/resources/oortMilestones/client/requests/MilestoneUpdateReq.js +5 -0
  84. package/api/resources/oortMilestones/client/requests/index.d.ts +3 -0
  85. package/api/resources/oortMilestones/client/requests/index.js +2 -0
  86. package/api/resources/oortMilestones/index.d.ts +1 -0
  87. package/api/resources/oortMilestones/index.js +17 -0
  88. package/api/resources/oortNotificationPreferences/client/Client.d.ts +49 -0
  89. package/api/resources/oortNotificationPreferences/client/Client.js +168 -0
  90. package/api/resources/oortNotificationPreferences/client/index.d.ts +1 -0
  91. package/api/resources/oortNotificationPreferences/client/index.js +17 -0
  92. package/api/resources/oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.d.ts +18 -0
  93. package/api/resources/oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.js +5 -0
  94. package/api/resources/oortNotificationPreferences/client/requests/index.d.ts +1 -0
  95. package/api/resources/oortNotificationPreferences/client/requests/index.js +2 -0
  96. package/api/resources/oortNotificationPreferences/index.d.ts +1 -0
  97. package/api/resources/oortNotificationPreferences/index.js +17 -0
  98. package/api/resources/oortOrders/client/Client.d.ts +119 -0
  99. package/api/resources/oortOrders/client/Client.js +433 -0
  100. package/api/resources/oortOrders/client/index.d.ts +1 -0
  101. package/api/resources/oortOrders/client/index.js +17 -0
  102. package/api/resources/oortOrders/client/requests/CreateOrderReq.d.ts +43 -0
  103. package/api/resources/oortOrders/client/requests/CreateOrderReq.js +5 -0
  104. package/api/resources/oortOrders/client/requests/index.d.ts +1 -0
  105. package/api/resources/oortOrders/client/requests/index.js +2 -0
  106. package/api/resources/oortOrders/index.d.ts +1 -0
  107. package/api/resources/oortOrders/index.js +17 -0
  108. package/api/resources/oortOrgConnectionInfos/client/Client.d.ts +102 -0
  109. package/api/resources/oortOrgConnectionInfos/client/Client.js +383 -0
  110. package/api/resources/oortOrgConnectionInfos/client/index.d.ts +1 -0
  111. package/api/resources/oortOrgConnectionInfos/client/index.js +17 -0
  112. package/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +24 -0
  113. package/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.js +5 -0
  114. package/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.d.ts +18 -0
  115. package/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.js +5 -0
  116. package/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +24 -0
  117. package/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.js +5 -0
  118. package/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +20 -0
  119. package/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.js +5 -0
  120. package/api/resources/oortOrgConnectionInfos/client/requests/index.d.ts +4 -0
  121. package/api/resources/oortOrgConnectionInfos/client/requests/index.js +2 -0
  122. package/api/resources/oortOrgConnectionInfos/index.d.ts +1 -0
  123. package/api/resources/oortOrgConnectionInfos/index.js +17 -0
  124. package/api/resources/oortOrgProfiles/client/Client.d.ts +74 -0
  125. package/api/resources/oortOrgProfiles/client/Client.js +279 -0
  126. package/api/resources/oortOrgProfiles/client/index.d.ts +1 -0
  127. package/api/resources/oortOrgProfiles/client/index.js +17 -0
  128. package/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +18 -0
  129. package/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.js +5 -0
  130. package/api/resources/oortOrgProfiles/client/requests/GetAvatarRequest.d.ts +12 -0
  131. package/api/resources/oortOrgProfiles/client/requests/GetAvatarRequest.js +5 -0
  132. package/api/resources/oortOrgProfiles/client/requests/index.d.ts +2 -0
  133. package/api/resources/oortOrgProfiles/client/requests/index.js +2 -0
  134. package/api/resources/oortOrgProfiles/index.d.ts +1 -0
  135. package/api/resources/oortOrgProfiles/index.js +17 -0
  136. package/api/resources/oortShipperUserInfo/client/Client.d.ts +73 -0
  137. package/api/resources/oortShipperUserInfo/client/Client.js +275 -0
  138. package/api/resources/oortShipperUserInfo/client/index.d.ts +1 -0
  139. package/api/resources/oortShipperUserInfo/client/index.js +17 -0
  140. package/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.d.ts +24 -0
  141. package/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.js +5 -0
  142. package/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.d.ts +21 -0
  143. package/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.js +5 -0
  144. package/api/resources/oortShipperUserInfo/client/requests/index.d.ts +2 -0
  145. package/api/resources/oortShipperUserInfo/client/requests/index.js +2 -0
  146. package/api/resources/oortShipperUserInfo/index.d.ts +1 -0
  147. package/api/resources/oortShipperUserInfo/index.js +17 -0
  148. package/api/resources/oortTaskGroups/client/Client.d.ts +118 -0
  149. package/api/resources/oortTaskGroups/client/Client.js +479 -0
  150. package/api/resources/oortTaskGroups/client/index.d.ts +1 -0
  151. package/api/resources/oortTaskGroups/client/index.js +17 -0
  152. package/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.d.ts +14 -0
  153. package/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.js +5 -0
  154. package/api/resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.d.ts +14 -0
  155. package/api/resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.js +5 -0
  156. package/api/resources/oortTaskGroups/client/requests/index.d.ts +2 -0
  157. package/api/resources/oortTaskGroups/client/requests/index.js +2 -0
  158. package/api/resources/oortTaskGroups/index.d.ts +1 -0
  159. package/api/resources/oortTaskGroups/index.js +17 -0
  160. package/api/resources/orgs/client/Client.d.ts +106 -0
  161. package/api/resources/orgs/client/Client.js +421 -0
  162. package/api/resources/orgs/client/index.d.ts +1 -0
  163. package/api/resources/orgs/client/index.js +17 -0
  164. package/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +14 -0
  165. package/api/resources/orgs/client/requests/CreateOrgPublicDataReq.js +5 -0
  166. package/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +11 -0
  167. package/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.js +5 -0
  168. package/api/resources/orgs/client/requests/index.d.ts +2 -0
  169. package/api/resources/orgs/client/requests/index.js +2 -0
  170. package/api/resources/orgs/index.d.ts +1 -0
  171. package/api/resources/orgs/index.js +17 -0
  172. package/api/resources/payments/client/Client.d.ts +64 -0
  173. package/api/resources/payments/client/Client.js +219 -0
  174. package/api/resources/payments/client/index.d.ts +1 -0
  175. package/api/resources/payments/client/index.js +17 -0
  176. package/api/resources/payments/client/requests/CreateCheckoutSessionReq2.d.ts +13 -0
  177. package/api/resources/payments/client/requests/CreateCheckoutSessionReq2.js +5 -0
  178. package/api/resources/payments/client/requests/index.d.ts +1 -0
  179. package/api/resources/payments/client/requests/index.js +2 -0
  180. package/api/resources/payments/index.d.ts +1 -0
  181. package/api/resources/payments/index.js +17 -0
  182. package/api/resources/root/client/Client.d.ts +85 -0
  183. package/api/resources/root/client/Client.js +377 -0
  184. package/api/resources/root/client/index.d.ts +1 -0
  185. package/api/resources/root/client/index.js +2 -0
  186. package/api/resources/root/index.d.ts +2 -0
  187. package/api/resources/root/index.js +18 -0
  188. package/api/resources/root/types/PydanticResponse.d.ts +8 -0
  189. package/api/resources/root/types/PydanticResponse.js +5 -0
  190. package/api/resources/root/types/index.d.ts +1 -0
  191. package/api/resources/root/types/index.js +17 -0
  192. package/api/resources/users/client/Client.d.ts +37 -0
  193. package/api/resources/users/client/Client.js +113 -0
  194. package/api/resources/users/client/index.d.ts +1 -0
  195. package/api/resources/users/client/index.js +2 -0
  196. package/api/resources/users/index.d.ts +1 -0
  197. package/api/resources/users/index.js +17 -0
  198. package/api/types/Action.d.ts +5 -0
  199. package/api/types/Action.js +5 -0
  200. package/api/types/BaseModel.d.ts +5 -0
  201. package/api/types/BaseModel.js +5 -0
  202. package/api/types/Cargo1.d.ts +16 -0
  203. package/api/types/Cargo1.js +5 -0
  204. package/api/types/CargoClientCreate1.d.ts +13 -0
  205. package/api/types/CargoClientCreate1.js +5 -0
  206. package/api/types/CargoTypeEnum1.d.ts +25 -0
  207. package/api/types/CargoTypeEnum1.js +27 -0
  208. package/api/types/Coordinates.d.ts +5 -0
  209. package/api/types/Coordinates.js +5 -0
  210. package/api/types/CourierOrgConnectionInfo1.d.ts +22 -0
  211. package/api/types/CourierOrgConnectionInfo1.js +5 -0
  212. package/api/types/CourierOrgProfile3.d.ts +12 -0
  213. package/api/types/CourierOrgProfile3.js +5 -0
  214. package/api/types/CourierPayDriverRateSheet1.d.ts +31 -0
  215. package/api/types/CourierPayDriverRateSheet1.js +5 -0
  216. package/api/types/CreateCheckoutSessionRes2.d.ts +6 -0
  217. package/api/types/CreateCheckoutSessionRes2.js +5 -0
  218. package/api/types/CreateOrderRes.d.ts +7 -0
  219. package/api/types/CreateOrderRes.js +5 -0
  220. package/api/types/DecodedJwtWithOrgAndUserId.d.ts +28 -0
  221. package/api/types/DecodedJwtWithOrgAndUserId.js +5 -0
  222. package/api/types/Driver1.d.ts +23 -0
  223. package/api/types/Driver1.js +5 -0
  224. package/api/types/DriverStatusEnum.d.ts +9 -0
  225. package/api/types/DriverStatusEnum.js +11 -0
  226. package/api/types/EmailReq.d.ts +6 -0
  227. package/api/types/EmailReq.js +5 -0
  228. package/api/types/EmailRes.d.ts +7 -0
  229. package/api/types/EmailRes.js +5 -0
  230. package/api/types/Expense1.d.ts +13 -0
  231. package/api/types/Expense1.js +5 -0
  232. package/api/types/Feature.d.ts +14 -0
  233. package/api/types/Feature.js +5 -0
  234. package/api/types/FeatureInputGeometry.d.ts +28 -0
  235. package/api/types/FeatureInputGeometry.js +5 -0
  236. package/api/types/FeatureOutputGeometry.d.ts +28 -0
  237. package/api/types/FeatureOutputGeometry.js +5 -0
  238. package/api/types/GeometryCollection.d.ts +11 -0
  239. package/api/types/GeometryCollection.js +5 -0
  240. package/api/types/GeometryCollectionInputGeometriesItem.d.ts +28 -0
  241. package/api/types/GeometryCollectionInputGeometriesItem.js +5 -0
  242. package/api/types/GeometryCollectionOutputGeometriesItem.d.ts +28 -0
  243. package/api/types/GeometryCollectionOutputGeometriesItem.js +5 -0
  244. package/api/types/GetOrderFullRes.d.ts +11 -0
  245. package/api/types/GetOrderFullRes.js +5 -0
  246. package/api/types/GetOrderRes.d.ts +7 -0
  247. package/api/types/GetOrderRes.js +5 -0
  248. package/api/types/HttpValidationError.d.ts +7 -0
  249. package/api/types/HttpValidationError.js +5 -0
  250. package/api/types/Id.d.ts +4 -0
  251. package/api/types/Id.js +5 -0
  252. package/api/types/Incident1.d.ts +7 -0
  253. package/api/types/Incident1.js +5 -0
  254. package/api/types/IncidentEnum1.d.ts +12 -0
  255. package/api/types/IncidentEnum1.js +14 -0
  256. package/api/types/Insurance1.d.ts +7 -0
  257. package/api/types/Insurance1.js +5 -0
  258. package/api/types/LineItem1.d.ts +11 -0
  259. package/api/types/LineItem1.js +5 -0
  260. package/api/types/LineItemEnum1.d.ts +28 -0
  261. package/api/types/LineItemEnum1.js +30 -0
  262. package/api/types/LineString.d.ts +11 -0
  263. package/api/types/LineString.js +5 -0
  264. package/api/types/LineStringCoordinatesItem.d.ts +5 -0
  265. package/api/types/LineStringCoordinatesItem.js +5 -0
  266. package/api/types/Milestone1.d.ts +27 -0
  267. package/api/types/Milestone1.js +5 -0
  268. package/api/types/MilestoneClientCreate1.d.ts +9 -0
  269. package/api/types/MilestoneClientCreate1.js +5 -0
  270. package/api/types/MilestoneTypeEnum1.d.ts +14 -0
  271. package/api/types/MilestoneTypeEnum1.js +16 -0
  272. package/api/types/MultiLineString.d.ts +11 -0
  273. package/api/types/MultiLineString.js +5 -0
  274. package/api/types/MultiLineStringCoordinatesItemItem.d.ts +5 -0
  275. package/api/types/MultiLineStringCoordinatesItemItem.js +5 -0
  276. package/api/types/MultiPoint.d.ts +11 -0
  277. package/api/types/MultiPoint.js +5 -0
  278. package/api/types/MultiPointCoordinatesItem.d.ts +5 -0
  279. package/api/types/MultiPointCoordinatesItem.js +5 -0
  280. package/api/types/MultiPolygon.d.ts +11 -0
  281. package/api/types/MultiPolygon.js +5 -0
  282. package/api/types/MultiPolygonCoordinatesItemItemItem.d.ts +5 -0
  283. package/api/types/MultiPolygonCoordinatesItemItemItem.js +5 -0
  284. package/api/types/MultipleTaskGroupsDetailsResponse.d.ts +7 -0
  285. package/api/types/MultipleTaskGroupsDetailsResponse.js +5 -0
  286. package/api/types/MultipleTaskGroupsWithTasks.d.ts +7 -0
  287. package/api/types/MultipleTaskGroupsWithTasks.js +5 -0
  288. package/api/types/NotificationChannelEnum.d.ts +10 -0
  289. package/api/types/NotificationChannelEnum.js +12 -0
  290. package/api/types/NotificationPreferences1.d.ts +18 -0
  291. package/api/types/NotificationPreferences1.js +5 -0
  292. package/api/types/ObcNfoTaskActionEnum.d.ts +38 -0
  293. package/api/types/ObcNfoTaskActionEnum.js +40 -0
  294. package/api/types/Order1.d.ts +28 -0
  295. package/api/types/Order1.js +5 -0
  296. package/api/types/OrderClientCreate1.d.ts +6 -0
  297. package/api/types/OrderClientCreate1.js +5 -0
  298. package/api/types/OrderCreatedByTypeEnum.d.ts +9 -0
  299. package/api/types/OrderCreatedByTypeEnum.js +11 -0
  300. package/api/types/OrderDispatchTypeEnum.d.ts +9 -0
  301. package/api/types/OrderDispatchTypeEnum.js +11 -0
  302. package/api/types/OrderStatusEnum1.d.ts +10 -0
  303. package/api/types/OrderStatusEnum1.js +12 -0
  304. package/api/types/OrgMemberDetails.d.ts +11 -0
  305. package/api/types/OrgMemberDetails.js +5 -0
  306. package/api/types/OrgMembersAndDrivers.d.ts +8 -0
  307. package/api/types/OrgMembersAndDrivers.js +5 -0
  308. package/api/types/OrgPublicData2.d.ts +11 -0
  309. package/api/types/OrgPublicData2.js +5 -0
  310. package/api/types/PayablesInvoice1.d.ts +22 -0
  311. package/api/types/PayablesInvoice1.js +5 -0
  312. package/api/types/Point.d.ts +11 -0
  313. package/api/types/Point.js +5 -0
  314. package/api/types/Polygon.d.ts +11 -0
  315. package/api/types/Polygon.js +5 -0
  316. package/api/types/PolygonCoordinatesItemItem.d.ts +5 -0
  317. package/api/types/PolygonCoordinatesItemItem.js +5 -0
  318. package/api/types/Position2D.d.ts +4 -0
  319. package/api/types/Position2D.js +5 -0
  320. package/api/types/Position3D.d.ts +4 -0
  321. package/api/types/Position3D.js +5 -0
  322. package/api/types/PriceNameEnum.d.ts +9 -0
  323. package/api/types/PriceNameEnum.js +11 -0
  324. package/api/types/Properties.d.ts +5 -0
  325. package/api/types/Properties.js +5 -0
  326. package/api/types/ReceivablesInvoice1.d.ts +22 -0
  327. package/api/types/ReceivablesInvoice1.js +5 -0
  328. package/api/types/RouteTypeEnum1.d.ts +8 -0
  329. package/api/types/RouteTypeEnum1.js +10 -0
  330. package/api/types/Shipper2.d.ts +20 -0
  331. package/api/types/Shipper2.js +5 -0
  332. package/api/types/ShipperCourierConnection1.d.ts +13 -0
  333. package/api/types/ShipperCourierConnection1.js +5 -0
  334. package/api/types/ShipperOrgConnectionInfo1.d.ts +22 -0
  335. package/api/types/ShipperOrgConnectionInfo1.js +5 -0
  336. package/api/types/ShipperUserInfo1.d.ts +23 -0
  337. package/api/types/ShipperUserInfo1.js +5 -0
  338. package/api/types/Status.d.ts +13 -0
  339. package/api/types/Status.js +15 -0
  340. package/api/types/StreetAddress1.d.ts +18 -0
  341. package/api/types/StreetAddress1.js +5 -0
  342. package/api/types/StripeConnectInvoice1.d.ts +20 -0
  343. package/api/types/StripeConnectInvoice1.js +5 -0
  344. package/api/types/Task1.d.ts +29 -0
  345. package/api/types/Task1.js +5 -0
  346. package/api/types/TaskActionEnum1.d.ts +14 -0
  347. package/api/types/TaskActionEnum1.js +16 -0
  348. package/api/types/TaskClientCreate1.d.ts +15 -0
  349. package/api/types/TaskClientCreate1.js +5 -0
  350. package/api/types/TaskCreateBundle.d.ts +13 -0
  351. package/api/types/TaskCreateBundle.js +5 -0
  352. package/api/types/TaskGroup1.d.ts +24 -0
  353. package/api/types/TaskGroup1.js +5 -0
  354. package/api/types/TaskGroupDetailsResponse.d.ts +8 -0
  355. package/api/types/TaskGroupDetailsResponse.js +5 -0
  356. package/api/types/TaskGroupStatusEnum1.d.ts +9 -0
  357. package/api/types/TaskGroupStatusEnum1.js +11 -0
  358. package/api/types/TaskGroupWithDetails.d.ts +8 -0
  359. package/api/types/TaskGroupWithDetails.js +5 -0
  360. package/api/types/TaskGroupWithTasks.d.ts +8 -0
  361. package/api/types/TaskGroupWithTasks.js +5 -0
  362. package/api/types/TaskWithDetails.d.ts +9 -0
  363. package/api/types/TaskWithDetails.js +5 -0
  364. package/api/types/TemplateRes.d.ts +8 -0
  365. package/api/types/TemplateRes.js +5 -0
  366. package/api/types/Tracker1.d.ts +7 -0
  367. package/api/types/Tracker1.js +5 -0
  368. package/api/types/TrackerSession1.d.ts +7 -0
  369. package/api/types/TrackerSession1.js +5 -0
  370. package/api/types/TransportTypeEnum.d.ts +11 -0
  371. package/api/types/TransportTypeEnum.js +13 -0
  372. package/api/types/UpdateTaskGroupRes.d.ts +6 -0
  373. package/api/types/UpdateTaskGroupRes.js +5 -0
  374. package/api/types/UserPublicData5.d.ts +15 -0
  375. package/api/types/UserPublicData5.js +5 -0
  376. package/api/types/ValidationError.d.ts +9 -0
  377. package/api/types/ValidationError.js +5 -0
  378. package/api/types/ValidationErrorLocItem.d.ts +4 -0
  379. package/api/types/ValidationErrorLocItem.js +5 -0
  380. package/api/types/Vehicle1.d.ts +7 -0
  381. package/api/types/Vehicle1.js +5 -0
  382. package/api/types/VehicleTypeEnum.d.ts +12 -0
  383. package/api/types/VehicleTypeEnum.js +14 -0
  384. package/api/types/index.d.ts +93 -0
  385. package/api/types/index.js +109 -0
  386. package/core/auth/BasicAuth.d.ts +8 -0
  387. package/core/auth/BasicAuth.js +26 -0
  388. package/core/auth/BearerToken.d.ts +5 -0
  389. package/core/auth/BearerToken.js +15 -0
  390. package/core/auth/index.d.ts +2 -0
  391. package/core/auth/index.js +7 -0
  392. package/core/fetcher/APIResponse.d.ts +10 -0
  393. package/core/fetcher/APIResponse.js +2 -0
  394. package/core/fetcher/Fetcher.d.ts +39 -0
  395. package/core/fetcher/Fetcher.js +100 -0
  396. package/core/fetcher/Supplier.d.ts +4 -0
  397. package/core/fetcher/Supplier.js +22 -0
  398. package/core/fetcher/createRequestUrl.d.ts +1 -0
  399. package/core/fetcher/createRequestUrl.js +12 -0
  400. package/core/fetcher/getFetchFn.d.ts +4 -0
  401. package/core/fetcher/getFetchFn.js +68 -0
  402. package/core/fetcher/getHeader.d.ts +1 -0
  403. package/core/fetcher/getHeader.js +11 -0
  404. package/core/fetcher/getRequestBody.d.ts +7 -0
  405. package/core/fetcher/getRequestBody.js +23 -0
  406. package/core/fetcher/getResponseBody.d.ts +1 -0
  407. package/core/fetcher/getResponseBody.js +54 -0
  408. package/core/fetcher/index.d.ts +5 -0
  409. package/core/fetcher/index.js +9 -0
  410. package/core/fetcher/makeRequest.d.ts +1 -0
  411. package/core/fetcher/makeRequest.js +42 -0
  412. package/core/fetcher/requestWithRetries.d.ts +1 -0
  413. package/core/fetcher/requestWithRetries.js +40 -0
  414. package/core/fetcher/signals.d.ts +11 -0
  415. package/core/fetcher/signals.js +36 -0
  416. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  417. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  418. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
  419. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
  420. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  421. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  422. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  423. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
  424. package/core/form-data-utils/FormDataWrapper.d.ts +60 -0
  425. package/core/form-data-utils/FormDataWrapper.js +188 -0
  426. package/core/form-data-utils/index.d.ts +1 -0
  427. package/core/form-data-utils/index.js +17 -0
  428. package/core/index.d.ts +4 -0
  429. package/core/index.js +20 -0
  430. package/core/json.d.ts +15 -0
  431. package/core/json.js +24 -0
  432. package/core/runtime/index.d.ts +1 -0
  433. package/core/runtime/index.js +5 -0
  434. package/core/runtime/runtime.d.ts +9 -0
  435. package/core/runtime/runtime.js +103 -0
  436. package/dist/Client.d.ts +79 -0
  437. package/dist/Client.js +97 -0
  438. package/dist/api/errors/UnprocessableEntityError.d.ts +8 -0
  439. package/dist/api/errors/UnprocessableEntityError.js +51 -0
  440. package/dist/api/errors/index.d.ts +1 -0
  441. package/dist/api/errors/index.js +17 -0
  442. package/dist/api/index.d.ts +3 -0
  443. package/dist/api/index.js +19 -0
  444. package/dist/api/resources/dev/client/Client.d.ts +72 -0
  445. package/dist/api/resources/dev/client/Client.js +299 -0
  446. package/dist/api/resources/dev/client/index.d.ts +1 -0
  447. package/dist/api/resources/dev/client/index.js +17 -0
  448. package/dist/api/resources/dev/client/requests/TemplateReq.d.ts +16 -0
  449. package/dist/api/resources/dev/client/requests/TemplateReq.js +5 -0
  450. package/dist/api/resources/dev/client/requests/index.d.ts +1 -0
  451. package/dist/api/resources/dev/client/requests/index.js +2 -0
  452. package/dist/api/resources/dev/index.d.ts +1 -0
  453. package/dist/api/resources/dev/index.js +17 -0
  454. package/dist/api/resources/directory/client/Client.d.ts +42 -0
  455. package/dist/api/resources/directory/client/Client.js +125 -0
  456. package/dist/api/resources/directory/client/index.d.ts +1 -0
  457. package/dist/api/resources/directory/client/index.js +17 -0
  458. package/dist/api/resources/directory/client/requests/DbQueryParams.d.ts +12 -0
  459. package/dist/api/resources/directory/client/requests/DbQueryParams.js +5 -0
  460. package/dist/api/resources/directory/client/requests/index.d.ts +1 -0
  461. package/dist/api/resources/directory/client/requests/index.js +2 -0
  462. package/dist/api/resources/directory/index.d.ts +1 -0
  463. package/dist/api/resources/directory/index.js +17 -0
  464. package/dist/api/resources/index.d.ts +32 -0
  465. package/dist/api/resources/index.js +71 -0
  466. package/dist/api/resources/mirror/client/Client.d.ts +124 -0
  467. package/dist/api/resources/mirror/client/Client.js +609 -0
  468. package/dist/api/resources/mirror/client/index.d.ts +1 -0
  469. package/dist/api/resources/mirror/client/index.js +2 -0
  470. package/dist/api/resources/mirror/index.d.ts +1 -0
  471. package/dist/api/resources/mirror/index.js +17 -0
  472. package/dist/api/resources/oortConnections/client/Client.d.ts +58 -0
  473. package/dist/api/resources/oortConnections/client/Client.js +213 -0
  474. package/dist/api/resources/oortConnections/client/index.d.ts +1 -0
  475. package/dist/api/resources/oortConnections/client/index.js +17 -0
  476. package/dist/api/resources/oortConnections/client/requests/CreateConnectionReq.d.ts +12 -0
  477. package/dist/api/resources/oortConnections/client/requests/CreateConnectionReq.js +5 -0
  478. package/dist/api/resources/oortConnections/client/requests/index.d.ts +1 -0
  479. package/dist/api/resources/oortConnections/client/requests/index.js +2 -0
  480. package/dist/api/resources/oortConnections/index.d.ts +1 -0
  481. package/dist/api/resources/oortConnections/index.js +17 -0
  482. package/dist/api/resources/oortCourierPayDriverRateSheets/client/Client.d.ts +88 -0
  483. package/dist/api/resources/oortCourierPayDriverRateSheets/client/Client.js +284 -0
  484. package/dist/api/resources/oortCourierPayDriverRateSheets/client/index.d.ts +1 -0
  485. package/dist/api/resources/oortCourierPayDriverRateSheets/client/index.js +17 -0
  486. package/dist/api/resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +50 -0
  487. package/dist/api/resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.js +5 -0
  488. package/dist/api/resources/oortCourierPayDriverRateSheets/client/requests/index.d.ts +1 -0
  489. package/dist/api/resources/oortCourierPayDriverRateSheets/client/requests/index.js +2 -0
  490. package/dist/api/resources/oortCourierPayDriverRateSheets/index.d.ts +1 -0
  491. package/dist/api/resources/oortCourierPayDriverRateSheets/index.js +17 -0
  492. package/dist/api/resources/oortDrivers/client/Client.d.ts +136 -0
  493. package/dist/api/resources/oortDrivers/client/Client.js +535 -0
  494. package/dist/api/resources/oortDrivers/client/index.d.ts +1 -0
  495. package/dist/api/resources/oortDrivers/client/index.js +17 -0
  496. package/dist/api/resources/oortDrivers/client/requests/DriverCreateReq.d.ts +17 -0
  497. package/dist/api/resources/oortDrivers/client/requests/DriverCreateReq.js +5 -0
  498. package/dist/api/resources/oortDrivers/client/requests/DriverLastSeenReq.d.ts +15 -0
  499. package/dist/api/resources/oortDrivers/client/requests/DriverLastSeenReq.js +5 -0
  500. package/dist/api/resources/oortDrivers/client/requests/SetDriverActivationReq.d.ts +14 -0
  501. package/dist/api/resources/oortDrivers/client/requests/SetDriverActivationReq.js +5 -0
  502. package/dist/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.d.ts +18 -0
  503. package/dist/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.js +5 -0
  504. package/dist/api/resources/oortDrivers/client/requests/index.d.ts +4 -0
  505. package/dist/api/resources/oortDrivers/client/requests/index.js +2 -0
  506. package/dist/api/resources/oortDrivers/index.d.ts +1 -0
  507. package/dist/api/resources/oortDrivers/index.js +17 -0
  508. package/dist/api/resources/oortMilestones/client/Client.d.ts +91 -0
  509. package/dist/api/resources/oortMilestones/client/Client.js +346 -0
  510. package/dist/api/resources/oortMilestones/client/index.d.ts +1 -0
  511. package/dist/api/resources/oortMilestones/client/index.js +17 -0
  512. package/dist/api/resources/oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.d.ts +10 -0
  513. package/dist/api/resources/oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.js +5 -0
  514. package/dist/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.d.ts +16 -0
  515. package/dist/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.js +5 -0
  516. package/dist/api/resources/oortMilestones/client/requests/MilestoneUpdateReq.d.ts +14 -0
  517. package/dist/api/resources/oortMilestones/client/requests/MilestoneUpdateReq.js +5 -0
  518. package/dist/api/resources/oortMilestones/client/requests/index.d.ts +3 -0
  519. package/dist/api/resources/oortMilestones/client/requests/index.js +2 -0
  520. package/dist/api/resources/oortMilestones/index.d.ts +1 -0
  521. package/dist/api/resources/oortMilestones/index.js +17 -0
  522. package/dist/api/resources/oortNotificationPreferences/client/Client.d.ts +49 -0
  523. package/dist/api/resources/oortNotificationPreferences/client/Client.js +168 -0
  524. package/dist/api/resources/oortNotificationPreferences/client/index.d.ts +1 -0
  525. package/dist/api/resources/oortNotificationPreferences/client/index.js +17 -0
  526. package/dist/api/resources/oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.d.ts +18 -0
  527. package/dist/api/resources/oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.js +5 -0
  528. package/dist/api/resources/oortNotificationPreferences/client/requests/index.d.ts +1 -0
  529. package/dist/api/resources/oortNotificationPreferences/client/requests/index.js +2 -0
  530. package/dist/api/resources/oortNotificationPreferences/index.d.ts +1 -0
  531. package/dist/api/resources/oortNotificationPreferences/index.js +17 -0
  532. package/dist/api/resources/oortOrders/client/Client.d.ts +119 -0
  533. package/dist/api/resources/oortOrders/client/Client.js +433 -0
  534. package/dist/api/resources/oortOrders/client/index.d.ts +1 -0
  535. package/dist/api/resources/oortOrders/client/index.js +17 -0
  536. package/dist/api/resources/oortOrders/client/requests/CreateOrderReq.d.ts +43 -0
  537. package/dist/api/resources/oortOrders/client/requests/CreateOrderReq.js +5 -0
  538. package/dist/api/resources/oortOrders/client/requests/index.d.ts +1 -0
  539. package/dist/api/resources/oortOrders/client/requests/index.js +2 -0
  540. package/dist/api/resources/oortOrders/index.d.ts +1 -0
  541. package/dist/api/resources/oortOrders/index.js +17 -0
  542. package/dist/api/resources/oortOrgConnectionInfos/client/Client.d.ts +102 -0
  543. package/dist/api/resources/oortOrgConnectionInfos/client/Client.js +383 -0
  544. package/dist/api/resources/oortOrgConnectionInfos/client/index.d.ts +1 -0
  545. package/dist/api/resources/oortOrgConnectionInfos/client/index.js +17 -0
  546. package/dist/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +24 -0
  547. package/dist/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.js +5 -0
  548. package/dist/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.d.ts +18 -0
  549. package/dist/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.js +5 -0
  550. package/dist/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +24 -0
  551. package/dist/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.js +5 -0
  552. package/dist/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +20 -0
  553. package/dist/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.js +5 -0
  554. package/dist/api/resources/oortOrgConnectionInfos/client/requests/index.d.ts +4 -0
  555. package/dist/api/resources/oortOrgConnectionInfos/client/requests/index.js +2 -0
  556. package/dist/api/resources/oortOrgConnectionInfos/index.d.ts +1 -0
  557. package/dist/api/resources/oortOrgConnectionInfos/index.js +17 -0
  558. package/dist/api/resources/oortOrgProfiles/client/Client.d.ts +74 -0
  559. package/dist/api/resources/oortOrgProfiles/client/Client.js +279 -0
  560. package/dist/api/resources/oortOrgProfiles/client/index.d.ts +1 -0
  561. package/dist/api/resources/oortOrgProfiles/client/index.js +17 -0
  562. package/dist/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +18 -0
  563. package/dist/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.js +5 -0
  564. package/dist/api/resources/oortOrgProfiles/client/requests/GetAvatarRequest.d.ts +12 -0
  565. package/dist/api/resources/oortOrgProfiles/client/requests/GetAvatarRequest.js +5 -0
  566. package/dist/api/resources/oortOrgProfiles/client/requests/index.d.ts +2 -0
  567. package/dist/api/resources/oortOrgProfiles/client/requests/index.js +2 -0
  568. package/dist/api/resources/oortOrgProfiles/index.d.ts +1 -0
  569. package/dist/api/resources/oortOrgProfiles/index.js +17 -0
  570. package/dist/api/resources/oortShipperUserInfo/client/Client.d.ts +73 -0
  571. package/dist/api/resources/oortShipperUserInfo/client/Client.js +275 -0
  572. package/dist/api/resources/oortShipperUserInfo/client/index.d.ts +1 -0
  573. package/dist/api/resources/oortShipperUserInfo/client/index.js +17 -0
  574. package/dist/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.d.ts +24 -0
  575. package/dist/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.js +5 -0
  576. package/dist/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.d.ts +21 -0
  577. package/dist/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.js +5 -0
  578. package/dist/api/resources/oortShipperUserInfo/client/requests/index.d.ts +2 -0
  579. package/dist/api/resources/oortShipperUserInfo/client/requests/index.js +2 -0
  580. package/dist/api/resources/oortShipperUserInfo/index.d.ts +1 -0
  581. package/dist/api/resources/oortShipperUserInfo/index.js +17 -0
  582. package/dist/api/resources/oortTaskGroups/client/Client.d.ts +118 -0
  583. package/dist/api/resources/oortTaskGroups/client/Client.js +479 -0
  584. package/dist/api/resources/oortTaskGroups/client/index.d.ts +1 -0
  585. package/dist/api/resources/oortTaskGroups/client/index.js +17 -0
  586. package/dist/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.d.ts +14 -0
  587. package/dist/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.js +5 -0
  588. package/dist/api/resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.d.ts +14 -0
  589. package/dist/api/resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.js +5 -0
  590. package/dist/api/resources/oortTaskGroups/client/requests/index.d.ts +2 -0
  591. package/dist/api/resources/oortTaskGroups/client/requests/index.js +2 -0
  592. package/dist/api/resources/oortTaskGroups/index.d.ts +1 -0
  593. package/dist/api/resources/oortTaskGroups/index.js +17 -0
  594. package/dist/api/resources/orgs/client/Client.d.ts +106 -0
  595. package/dist/api/resources/orgs/client/Client.js +421 -0
  596. package/dist/api/resources/orgs/client/index.d.ts +1 -0
  597. package/dist/api/resources/orgs/client/index.js +17 -0
  598. package/dist/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +14 -0
  599. package/dist/api/resources/orgs/client/requests/CreateOrgPublicDataReq.js +5 -0
  600. package/dist/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +11 -0
  601. package/dist/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.js +5 -0
  602. package/dist/api/resources/orgs/client/requests/index.d.ts +2 -0
  603. package/dist/api/resources/orgs/client/requests/index.js +2 -0
  604. package/dist/api/resources/orgs/index.d.ts +1 -0
  605. package/dist/api/resources/orgs/index.js +17 -0
  606. package/dist/api/resources/payments/client/Client.d.ts +64 -0
  607. package/dist/api/resources/payments/client/Client.js +219 -0
  608. package/dist/api/resources/payments/client/index.d.ts +1 -0
  609. package/dist/api/resources/payments/client/index.js +17 -0
  610. package/dist/api/resources/payments/client/requests/CreateCheckoutSessionReq2.d.ts +13 -0
  611. package/dist/api/resources/payments/client/requests/CreateCheckoutSessionReq2.js +5 -0
  612. package/dist/api/resources/payments/client/requests/index.d.ts +1 -0
  613. package/dist/api/resources/payments/client/requests/index.js +2 -0
  614. package/dist/api/resources/payments/index.d.ts +1 -0
  615. package/dist/api/resources/payments/index.js +17 -0
  616. package/dist/api/resources/root/client/Client.d.ts +85 -0
  617. package/dist/api/resources/root/client/Client.js +377 -0
  618. package/dist/api/resources/root/client/index.d.ts +1 -0
  619. package/dist/api/resources/root/client/index.js +2 -0
  620. package/dist/api/resources/root/index.d.ts +2 -0
  621. package/dist/api/resources/root/index.js +18 -0
  622. package/dist/api/resources/root/types/PydanticResponse.d.ts +8 -0
  623. package/dist/api/resources/root/types/PydanticResponse.js +5 -0
  624. package/dist/api/resources/root/types/index.d.ts +1 -0
  625. package/dist/api/resources/root/types/index.js +17 -0
  626. package/dist/api/resources/users/client/Client.d.ts +37 -0
  627. package/dist/api/resources/users/client/Client.js +113 -0
  628. package/dist/api/resources/users/client/index.d.ts +1 -0
  629. package/dist/api/resources/users/client/index.js +2 -0
  630. package/dist/api/resources/users/index.d.ts +1 -0
  631. package/dist/api/resources/users/index.js +17 -0
  632. package/dist/api/types/Action.d.ts +5 -0
  633. package/dist/api/types/Action.js +5 -0
  634. package/dist/api/types/BaseModel.d.ts +5 -0
  635. package/dist/api/types/BaseModel.js +5 -0
  636. package/dist/api/types/Cargo1.d.ts +16 -0
  637. package/dist/api/types/Cargo1.js +5 -0
  638. package/dist/api/types/CargoClientCreate1.d.ts +13 -0
  639. package/dist/api/types/CargoClientCreate1.js +5 -0
  640. package/dist/api/types/CargoTypeEnum1.d.ts +25 -0
  641. package/dist/api/types/CargoTypeEnum1.js +27 -0
  642. package/dist/api/types/Coordinates.d.ts +5 -0
  643. package/dist/api/types/Coordinates.js +5 -0
  644. package/dist/api/types/CourierOrgConnectionInfo1.d.ts +22 -0
  645. package/dist/api/types/CourierOrgConnectionInfo1.js +5 -0
  646. package/dist/api/types/CourierOrgProfile3.d.ts +12 -0
  647. package/dist/api/types/CourierOrgProfile3.js +5 -0
  648. package/dist/api/types/CourierPayDriverRateSheet1.d.ts +31 -0
  649. package/dist/api/types/CourierPayDriverRateSheet1.js +5 -0
  650. package/dist/api/types/CreateCheckoutSessionRes2.d.ts +6 -0
  651. package/dist/api/types/CreateCheckoutSessionRes2.js +5 -0
  652. package/dist/api/types/CreateOrderRes.d.ts +7 -0
  653. package/dist/api/types/CreateOrderRes.js +5 -0
  654. package/dist/api/types/DecodedJwtWithOrgAndUserId.d.ts +28 -0
  655. package/dist/api/types/DecodedJwtWithOrgAndUserId.js +5 -0
  656. package/dist/api/types/Driver1.d.ts +23 -0
  657. package/dist/api/types/Driver1.js +5 -0
  658. package/dist/api/types/DriverStatusEnum.d.ts +9 -0
  659. package/dist/api/types/DriverStatusEnum.js +11 -0
  660. package/dist/api/types/EmailReq.d.ts +6 -0
  661. package/dist/api/types/EmailReq.js +5 -0
  662. package/dist/api/types/EmailRes.d.ts +7 -0
  663. package/dist/api/types/EmailRes.js +5 -0
  664. package/dist/api/types/Expense1.d.ts +13 -0
  665. package/dist/api/types/Expense1.js +5 -0
  666. package/dist/api/types/Feature.d.ts +14 -0
  667. package/dist/api/types/Feature.js +5 -0
  668. package/dist/api/types/FeatureInputGeometry.d.ts +28 -0
  669. package/dist/api/types/FeatureInputGeometry.js +5 -0
  670. package/dist/api/types/FeatureOutputGeometry.d.ts +28 -0
  671. package/dist/api/types/FeatureOutputGeometry.js +5 -0
  672. package/dist/api/types/GeometryCollection.d.ts +11 -0
  673. package/dist/api/types/GeometryCollection.js +5 -0
  674. package/dist/api/types/GeometryCollectionInputGeometriesItem.d.ts +28 -0
  675. package/dist/api/types/GeometryCollectionInputGeometriesItem.js +5 -0
  676. package/dist/api/types/GeometryCollectionOutputGeometriesItem.d.ts +28 -0
  677. package/dist/api/types/GeometryCollectionOutputGeometriesItem.js +5 -0
  678. package/dist/api/types/GetOrderFullRes.d.ts +11 -0
  679. package/dist/api/types/GetOrderFullRes.js +5 -0
  680. package/dist/api/types/GetOrderRes.d.ts +7 -0
  681. package/dist/api/types/GetOrderRes.js +5 -0
  682. package/dist/api/types/HttpValidationError.d.ts +7 -0
  683. package/dist/api/types/HttpValidationError.js +5 -0
  684. package/dist/api/types/Id.d.ts +4 -0
  685. package/dist/api/types/Id.js +5 -0
  686. package/dist/api/types/Incident1.d.ts +7 -0
  687. package/dist/api/types/Incident1.js +5 -0
  688. package/dist/api/types/IncidentEnum1.d.ts +12 -0
  689. package/dist/api/types/IncidentEnum1.js +14 -0
  690. package/dist/api/types/Insurance1.d.ts +7 -0
  691. package/dist/api/types/Insurance1.js +5 -0
  692. package/dist/api/types/LineItem1.d.ts +11 -0
  693. package/dist/api/types/LineItem1.js +5 -0
  694. package/dist/api/types/LineItemEnum1.d.ts +28 -0
  695. package/dist/api/types/LineItemEnum1.js +30 -0
  696. package/dist/api/types/LineString.d.ts +11 -0
  697. package/dist/api/types/LineString.js +5 -0
  698. package/dist/api/types/LineStringCoordinatesItem.d.ts +5 -0
  699. package/dist/api/types/LineStringCoordinatesItem.js +5 -0
  700. package/dist/api/types/Milestone1.d.ts +27 -0
  701. package/dist/api/types/Milestone1.js +5 -0
  702. package/dist/api/types/MilestoneClientCreate1.d.ts +9 -0
  703. package/dist/api/types/MilestoneClientCreate1.js +5 -0
  704. package/dist/api/types/MilestoneTypeEnum1.d.ts +14 -0
  705. package/dist/api/types/MilestoneTypeEnum1.js +16 -0
  706. package/dist/api/types/MultiLineString.d.ts +11 -0
  707. package/dist/api/types/MultiLineString.js +5 -0
  708. package/dist/api/types/MultiLineStringCoordinatesItemItem.d.ts +5 -0
  709. package/dist/api/types/MultiLineStringCoordinatesItemItem.js +5 -0
  710. package/dist/api/types/MultiPoint.d.ts +11 -0
  711. package/dist/api/types/MultiPoint.js +5 -0
  712. package/dist/api/types/MultiPointCoordinatesItem.d.ts +5 -0
  713. package/dist/api/types/MultiPointCoordinatesItem.js +5 -0
  714. package/dist/api/types/MultiPolygon.d.ts +11 -0
  715. package/dist/api/types/MultiPolygon.js +5 -0
  716. package/dist/api/types/MultiPolygonCoordinatesItemItemItem.d.ts +5 -0
  717. package/dist/api/types/MultiPolygonCoordinatesItemItemItem.js +5 -0
  718. package/dist/api/types/MultipleTaskGroupsDetailsResponse.d.ts +7 -0
  719. package/dist/api/types/MultipleTaskGroupsDetailsResponse.js +5 -0
  720. package/dist/api/types/MultipleTaskGroupsWithTasks.d.ts +7 -0
  721. package/dist/api/types/MultipleTaskGroupsWithTasks.js +5 -0
  722. package/dist/api/types/NotificationChannelEnum.d.ts +10 -0
  723. package/dist/api/types/NotificationChannelEnum.js +12 -0
  724. package/dist/api/types/NotificationPreferences1.d.ts +18 -0
  725. package/dist/api/types/NotificationPreferences1.js +5 -0
  726. package/dist/api/types/ObcNfoTaskActionEnum.d.ts +38 -0
  727. package/dist/api/types/ObcNfoTaskActionEnum.js +40 -0
  728. package/dist/api/types/Order1.d.ts +28 -0
  729. package/dist/api/types/Order1.js +5 -0
  730. package/dist/api/types/OrderClientCreate1.d.ts +6 -0
  731. package/dist/api/types/OrderClientCreate1.js +5 -0
  732. package/dist/api/types/OrderCreatedByTypeEnum.d.ts +9 -0
  733. package/dist/api/types/OrderCreatedByTypeEnum.js +11 -0
  734. package/dist/api/types/OrderDispatchTypeEnum.d.ts +9 -0
  735. package/dist/api/types/OrderDispatchTypeEnum.js +11 -0
  736. package/dist/api/types/OrderStatusEnum1.d.ts +10 -0
  737. package/dist/api/types/OrderStatusEnum1.js +12 -0
  738. package/dist/api/types/OrgMemberDetails.d.ts +11 -0
  739. package/dist/api/types/OrgMemberDetails.js +5 -0
  740. package/dist/api/types/OrgMembersAndDrivers.d.ts +8 -0
  741. package/dist/api/types/OrgMembersAndDrivers.js +5 -0
  742. package/dist/api/types/OrgPublicData2.d.ts +11 -0
  743. package/dist/api/types/OrgPublicData2.js +5 -0
  744. package/dist/api/types/PayablesInvoice1.d.ts +22 -0
  745. package/dist/api/types/PayablesInvoice1.js +5 -0
  746. package/dist/api/types/Point.d.ts +11 -0
  747. package/dist/api/types/Point.js +5 -0
  748. package/dist/api/types/Polygon.d.ts +11 -0
  749. package/dist/api/types/Polygon.js +5 -0
  750. package/dist/api/types/PolygonCoordinatesItemItem.d.ts +5 -0
  751. package/dist/api/types/PolygonCoordinatesItemItem.js +5 -0
  752. package/dist/api/types/Position2D.d.ts +4 -0
  753. package/dist/api/types/Position2D.js +5 -0
  754. package/dist/api/types/Position3D.d.ts +4 -0
  755. package/dist/api/types/Position3D.js +5 -0
  756. package/dist/api/types/PriceNameEnum.d.ts +9 -0
  757. package/dist/api/types/PriceNameEnum.js +11 -0
  758. package/dist/api/types/Properties.d.ts +5 -0
  759. package/dist/api/types/Properties.js +5 -0
  760. package/dist/api/types/ReceivablesInvoice1.d.ts +22 -0
  761. package/dist/api/types/ReceivablesInvoice1.js +5 -0
  762. package/dist/api/types/RouteTypeEnum1.d.ts +8 -0
  763. package/dist/api/types/RouteTypeEnum1.js +10 -0
  764. package/dist/api/types/Shipper2.d.ts +20 -0
  765. package/dist/api/types/Shipper2.js +5 -0
  766. package/dist/api/types/ShipperCourierConnection1.d.ts +13 -0
  767. package/dist/api/types/ShipperCourierConnection1.js +5 -0
  768. package/dist/api/types/ShipperOrgConnectionInfo1.d.ts +22 -0
  769. package/dist/api/types/ShipperOrgConnectionInfo1.js +5 -0
  770. package/dist/api/types/ShipperUserInfo1.d.ts +23 -0
  771. package/dist/api/types/ShipperUserInfo1.js +5 -0
  772. package/dist/api/types/Status.d.ts +13 -0
  773. package/dist/api/types/Status.js +15 -0
  774. package/dist/api/types/StreetAddress1.d.ts +18 -0
  775. package/dist/api/types/StreetAddress1.js +5 -0
  776. package/dist/api/types/StripeConnectInvoice1.d.ts +20 -0
  777. package/dist/api/types/StripeConnectInvoice1.js +5 -0
  778. package/dist/api/types/Task1.d.ts +29 -0
  779. package/dist/api/types/Task1.js +5 -0
  780. package/dist/api/types/TaskActionEnum1.d.ts +14 -0
  781. package/dist/api/types/TaskActionEnum1.js +16 -0
  782. package/dist/api/types/TaskClientCreate1.d.ts +15 -0
  783. package/dist/api/types/TaskClientCreate1.js +5 -0
  784. package/dist/api/types/TaskCreateBundle.d.ts +13 -0
  785. package/dist/api/types/TaskCreateBundle.js +5 -0
  786. package/dist/api/types/TaskGroup1.d.ts +24 -0
  787. package/dist/api/types/TaskGroup1.js +5 -0
  788. package/dist/api/types/TaskGroupDetailsResponse.d.ts +8 -0
  789. package/dist/api/types/TaskGroupDetailsResponse.js +5 -0
  790. package/dist/api/types/TaskGroupStatusEnum1.d.ts +9 -0
  791. package/dist/api/types/TaskGroupStatusEnum1.js +11 -0
  792. package/dist/api/types/TaskGroupWithDetails.d.ts +8 -0
  793. package/dist/api/types/TaskGroupWithDetails.js +5 -0
  794. package/dist/api/types/TaskGroupWithTasks.d.ts +8 -0
  795. package/dist/api/types/TaskGroupWithTasks.js +5 -0
  796. package/dist/api/types/TaskWithDetails.d.ts +9 -0
  797. package/dist/api/types/TaskWithDetails.js +5 -0
  798. package/dist/api/types/TemplateRes.d.ts +8 -0
  799. package/dist/api/types/TemplateRes.js +5 -0
  800. package/dist/api/types/Tracker1.d.ts +7 -0
  801. package/dist/api/types/Tracker1.js +5 -0
  802. package/dist/api/types/TrackerSession1.d.ts +7 -0
  803. package/dist/api/types/TrackerSession1.js +5 -0
  804. package/dist/api/types/TransportTypeEnum.d.ts +11 -0
  805. package/dist/api/types/TransportTypeEnum.js +13 -0
  806. package/dist/api/types/UpdateTaskGroupRes.d.ts +6 -0
  807. package/dist/api/types/UpdateTaskGroupRes.js +5 -0
  808. package/dist/api/types/UserPublicData5.d.ts +15 -0
  809. package/dist/api/types/UserPublicData5.js +5 -0
  810. package/dist/api/types/ValidationError.d.ts +9 -0
  811. package/dist/api/types/ValidationError.js +5 -0
  812. package/dist/api/types/ValidationErrorLocItem.d.ts +4 -0
  813. package/dist/api/types/ValidationErrorLocItem.js +5 -0
  814. package/dist/api/types/Vehicle1.d.ts +7 -0
  815. package/dist/api/types/Vehicle1.js +5 -0
  816. package/dist/api/types/VehicleTypeEnum.d.ts +12 -0
  817. package/dist/api/types/VehicleTypeEnum.js +14 -0
  818. package/dist/api/types/index.d.ts +93 -0
  819. package/dist/api/types/index.js +109 -0
  820. package/dist/core/auth/BasicAuth.d.ts +8 -0
  821. package/dist/core/auth/BasicAuth.js +26 -0
  822. package/dist/core/auth/BearerToken.d.ts +5 -0
  823. package/dist/core/auth/BearerToken.js +15 -0
  824. package/dist/core/auth/index.d.ts +2 -0
  825. package/dist/core/auth/index.js +7 -0
  826. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  827. package/dist/core/fetcher/APIResponse.js +2 -0
  828. package/dist/core/fetcher/Fetcher.d.ts +39 -0
  829. package/dist/core/fetcher/Fetcher.js +100 -0
  830. package/dist/core/fetcher/Supplier.d.ts +4 -0
  831. package/dist/core/fetcher/Supplier.js +22 -0
  832. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  833. package/dist/core/fetcher/createRequestUrl.js +12 -0
  834. package/dist/core/fetcher/getFetchFn.d.ts +4 -0
  835. package/dist/core/fetcher/getFetchFn.js +68 -0
  836. package/dist/core/fetcher/getHeader.d.ts +1 -0
  837. package/dist/core/fetcher/getHeader.js +11 -0
  838. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  839. package/dist/core/fetcher/getRequestBody.js +23 -0
  840. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  841. package/dist/core/fetcher/getResponseBody.js +54 -0
  842. package/dist/core/fetcher/index.d.ts +5 -0
  843. package/dist/core/fetcher/index.js +9 -0
  844. package/dist/core/fetcher/makeRequest.d.ts +1 -0
  845. package/dist/core/fetcher/makeRequest.js +42 -0
  846. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  847. package/dist/core/fetcher/requestWithRetries.js +40 -0
  848. package/dist/core/fetcher/signals.d.ts +11 -0
  849. package/dist/core/fetcher/signals.js +36 -0
  850. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  851. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  852. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
  853. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
  854. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  855. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  856. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  857. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
  858. package/dist/core/form-data-utils/FormDataWrapper.d.ts +60 -0
  859. package/dist/core/form-data-utils/FormDataWrapper.js +188 -0
  860. package/dist/core/form-data-utils/index.d.ts +1 -0
  861. package/dist/core/form-data-utils/index.js +17 -0
  862. package/dist/core/index.d.ts +4 -0
  863. package/dist/core/index.js +20 -0
  864. package/dist/core/json.d.ts +15 -0
  865. package/dist/core/json.js +24 -0
  866. package/dist/core/runtime/index.d.ts +1 -0
  867. package/dist/core/runtime/index.js +5 -0
  868. package/dist/core/runtime/runtime.d.ts +9 -0
  869. package/dist/core/runtime/runtime.js +103 -0
  870. package/dist/environments.d.ts +7 -0
  871. package/dist/environments.js +9 -0
  872. package/dist/errors/ChrtError.d.ts +12 -0
  873. package/dist/errors/ChrtError.js +33 -0
  874. package/dist/errors/ChrtTimeoutError.d.ts +6 -0
  875. package/dist/errors/ChrtTimeoutError.js +13 -0
  876. package/dist/errors/index.d.ts +2 -0
  877. package/dist/errors/index.js +7 -0
  878. package/dist/index.d.ts +4 -0
  879. package/dist/index.js +44 -0
  880. package/dist/version.d.ts +1 -0
  881. package/dist/version.js +4 -0
  882. package/environments.d.ts +7 -0
  883. package/environments.js +9 -0
  884. package/errors/ChrtError.d.ts +12 -0
  885. package/errors/ChrtError.js +33 -0
  886. package/errors/ChrtTimeoutError.d.ts +6 -0
  887. package/errors/ChrtTimeoutError.js +13 -0
  888. package/errors/index.d.ts +2 -0
  889. package/errors/index.js +7 -0
  890. package/index.d.ts +4 -0
  891. package/index.js +44 -0
  892. package/jest.config.mjs +8 -0
  893. package/package.json +44 -0
  894. package/reference.md +4621 -0
  895. package/scripts/rename-to-esm-files.js +115 -0
  896. package/version.d.ts +1 -0
  897. package/version.js +4 -0
@@ -0,0 +1,377 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Root = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const errors = __importStar(require("../../../../errors/index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
+ class Root {
57
+ constructor(_options = {}) {
58
+ this._options = _options;
59
+ }
60
+ /**
61
+ * Returns a greeting message
62
+ *
63
+ * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @example
66
+ * await client.root.getRoot()
67
+ */
68
+ getRoot(requestOptions) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ var _a, _b, _c;
71
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
72
+ url: (_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.Default,
73
+ method: "GET",
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.2", "User-Agent": "@chrt-inc/typescript-sdk/0.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
+ contentType: "application/json",
76
+ requestType: "json",
77
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
78
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
79
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
80
+ });
81
+ if (_response.ok) {
82
+ return _response.body;
83
+ }
84
+ if (_response.error.reason === "status-code") {
85
+ throw new errors.ChrtError({
86
+ statusCode: _response.error.statusCode,
87
+ body: _response.error.body,
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
+ });
96
+ case "timeout":
97
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /.");
98
+ case "unknown":
99
+ throw new errors.ChrtError({
100
+ message: _response.error.errorMessage,
101
+ });
102
+ }
103
+ });
104
+ }
105
+ /**
106
+ * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
107
+ *
108
+ * @example
109
+ * await client.root.getAuthd()
110
+ */
111
+ getAuthd(requestOptions) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ var _a, _b, _c;
114
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
115
+ url: (0, url_join_1.default)((_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.Default, "authd"),
116
+ method: "GET",
117
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.2", "User-Agent": "@chrt-inc/typescript-sdk/0.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
118
+ contentType: "application/json",
119
+ requestType: "json",
120
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
121
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
122
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
123
+ });
124
+ if (_response.ok) {
125
+ return _response.body;
126
+ }
127
+ if (_response.error.reason === "status-code") {
128
+ throw new errors.ChrtError({
129
+ statusCode: _response.error.statusCode,
130
+ body: _response.error.body,
131
+ });
132
+ }
133
+ switch (_response.error.reason) {
134
+ case "non-json":
135
+ throw new errors.ChrtError({
136
+ statusCode: _response.error.statusCode,
137
+ body: _response.error.rawBody,
138
+ });
139
+ case "timeout":
140
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /authd.");
141
+ case "unknown":
142
+ throw new errors.ChrtError({
143
+ message: _response.error.errorMessage,
144
+ });
145
+ }
146
+ });
147
+ }
148
+ /**
149
+ * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
150
+ *
151
+ * @example
152
+ * await client.root.postAuthd()
153
+ */
154
+ postAuthd(requestOptions) {
155
+ return __awaiter(this, void 0, void 0, function* () {
156
+ var _a, _b, _c;
157
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
158
+ url: (0, url_join_1.default)((_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.Default, "authd"),
159
+ method: "POST",
160
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.2", "User-Agent": "@chrt-inc/typescript-sdk/0.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
+ contentType: "application/json",
162
+ requestType: "json",
163
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
164
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
165
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
166
+ });
167
+ if (_response.ok) {
168
+ return _response.body;
169
+ }
170
+ if (_response.error.reason === "status-code") {
171
+ throw new errors.ChrtError({
172
+ statusCode: _response.error.statusCode,
173
+ body: _response.error.body,
174
+ });
175
+ }
176
+ switch (_response.error.reason) {
177
+ case "non-json":
178
+ throw new errors.ChrtError({
179
+ statusCode: _response.error.statusCode,
180
+ body: _response.error.rawBody,
181
+ });
182
+ case "timeout":
183
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /authd.");
184
+ case "unknown":
185
+ throw new errors.ChrtError({
186
+ message: _response.error.errorMessage,
187
+ });
188
+ }
189
+ });
190
+ }
191
+ /**
192
+ * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
193
+ *
194
+ * @example
195
+ * await client.root.getFailure()
196
+ */
197
+ getFailure(requestOptions) {
198
+ return __awaiter(this, void 0, void 0, function* () {
199
+ var _a, _b, _c;
200
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
201
+ url: (0, url_join_1.default)((_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.Default, "failure"),
202
+ method: "GET",
203
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.2", "User-Agent": "@chrt-inc/typescript-sdk/0.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
204
+ contentType: "application/json",
205
+ requestType: "json",
206
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
207
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
208
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
209
+ });
210
+ if (_response.ok) {
211
+ return _response.body;
212
+ }
213
+ if (_response.error.reason === "status-code") {
214
+ throw new errors.ChrtError({
215
+ statusCode: _response.error.statusCode,
216
+ body: _response.error.body,
217
+ });
218
+ }
219
+ switch (_response.error.reason) {
220
+ case "non-json":
221
+ throw new errors.ChrtError({
222
+ statusCode: _response.error.statusCode,
223
+ body: _response.error.rawBody,
224
+ });
225
+ case "timeout":
226
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /failure.");
227
+ case "unknown":
228
+ throw new errors.ChrtError({
229
+ message: _response.error.errorMessage,
230
+ });
231
+ }
232
+ });
233
+ }
234
+ /**
235
+ * Used for monitoring system health
236
+ *
237
+ * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
238
+ *
239
+ * @example
240
+ * await client.root.getHealth()
241
+ */
242
+ getHealth(requestOptions) {
243
+ return __awaiter(this, void 0, void 0, function* () {
244
+ var _a, _b, _c;
245
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
246
+ url: (0, url_join_1.default)((_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.Default, "health"),
247
+ method: "GET",
248
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.2", "User-Agent": "@chrt-inc/typescript-sdk/0.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
+ contentType: "application/json",
250
+ requestType: "json",
251
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
252
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
253
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
254
+ });
255
+ if (_response.ok) {
256
+ return _response.body;
257
+ }
258
+ if (_response.error.reason === "status-code") {
259
+ throw new errors.ChrtError({
260
+ statusCode: _response.error.statusCode,
261
+ body: _response.error.body,
262
+ });
263
+ }
264
+ switch (_response.error.reason) {
265
+ case "non-json":
266
+ throw new errors.ChrtError({
267
+ statusCode: _response.error.statusCode,
268
+ body: _response.error.rawBody,
269
+ });
270
+ case "timeout":
271
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /health.");
272
+ case "unknown":
273
+ throw new errors.ChrtError({
274
+ message: _response.error.errorMessage,
275
+ });
276
+ }
277
+ });
278
+ }
279
+ /**
280
+ * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
281
+ *
282
+ * @example
283
+ * await client.root.getOptionallyAuthd()
284
+ */
285
+ getOptionallyAuthd(requestOptions) {
286
+ return __awaiter(this, void 0, void 0, function* () {
287
+ var _a, _b, _c;
288
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
289
+ url: (0, url_join_1.default)((_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.Default, "optionally_authd"),
290
+ method: "GET",
291
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.2", "User-Agent": "@chrt-inc/typescript-sdk/0.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
292
+ contentType: "application/json",
293
+ requestType: "json",
294
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
295
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
296
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
297
+ });
298
+ if (_response.ok) {
299
+ return _response.body;
300
+ }
301
+ if (_response.error.reason === "status-code") {
302
+ throw new errors.ChrtError({
303
+ statusCode: _response.error.statusCode,
304
+ body: _response.error.body,
305
+ });
306
+ }
307
+ switch (_response.error.reason) {
308
+ case "non-json":
309
+ throw new errors.ChrtError({
310
+ statusCode: _response.error.statusCode,
311
+ body: _response.error.rawBody,
312
+ });
313
+ case "timeout":
314
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /optionally_authd.");
315
+ case "unknown":
316
+ throw new errors.ChrtError({
317
+ message: _response.error.errorMessage,
318
+ });
319
+ }
320
+ });
321
+ }
322
+ /**
323
+ * This route exposes pydantic models - which are not returned by any other route - to the OpenAPI spec to ensure they get included during sdk codegen
324
+ *
325
+ * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
326
+ *
327
+ * @example
328
+ * await client.root.pydantic()
329
+ */
330
+ pydantic(requestOptions) {
331
+ return __awaiter(this, void 0, void 0, function* () {
332
+ var _a, _b, _c;
333
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
334
+ url: (0, url_join_1.default)((_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.Default, "pydantic"),
335
+ method: "GET",
336
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.2", "User-Agent": "@chrt-inc/typescript-sdk/0.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
337
+ contentType: "application/json",
338
+ requestType: "json",
339
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
340
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
341
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
342
+ });
343
+ if (_response.ok) {
344
+ return _response.body;
345
+ }
346
+ if (_response.error.reason === "status-code") {
347
+ throw new errors.ChrtError({
348
+ statusCode: _response.error.statusCode,
349
+ body: _response.error.body,
350
+ });
351
+ }
352
+ switch (_response.error.reason) {
353
+ case "non-json":
354
+ throw new errors.ChrtError({
355
+ statusCode: _response.error.statusCode,
356
+ body: _response.error.rawBody,
357
+ });
358
+ case "timeout":
359
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /pydantic.");
360
+ case "unknown":
361
+ throw new errors.ChrtError({
362
+ message: _response.error.errorMessage,
363
+ });
364
+ }
365
+ });
366
+ }
367
+ _getAuthorizationHeader() {
368
+ return __awaiter(this, void 0, void 0, function* () {
369
+ const bearer = yield core.Supplier.get(this._options.token);
370
+ if (bearer != null) {
371
+ return `Bearer ${bearer}`;
372
+ }
373
+ return undefined;
374
+ });
375
+ }
376
+ }
377
+ exports.Root = Root;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -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("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../index";
5
+ export type PydanticResponse = Chrt.LineItem1 | Chrt.Cargo1 | Chrt.CargoTypeEnum1 | Chrt.Driver1 | Chrt.Expense1 | Chrt.Incident1 | Chrt.IncidentEnum1 | Chrt.Insurance1 | Chrt.Milestone1 | Chrt.MilestoneTypeEnum1 | Chrt.Order1 | Chrt.PriceNameEnum | Chrt.PayablesInvoice1 | Chrt.CourierPayDriverRateSheet1 | Chrt.RouteTypeEnum1 | Chrt.ReceivablesInvoice1 | Chrt.StripeConnectInvoice1 | Chrt.Task1 | Chrt.TaskActionEnum1 | Chrt.TaskGroup1 | Chrt.Tracker1 | Chrt.TrackerSession1 | Chrt.Vehicle1 | Chrt.ShipperCourierConnection1 | Chrt.ShipperOrgConnectionInfo1 | Chrt.ShipperUserInfo1
6
+ /**
7
+ * Must be a string starting with `org_` */
8
+ | string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./PydanticResponse";
@@ -0,0 +1,17 @@
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("./PydanticResponse"), exports);
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Chrt from "../../../index";
7
+ export declare namespace Users {
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
+ fetcher?: core.FetchFunction;
14
+ }
15
+ interface RequestOptions {
16
+ /** The maximum time to wait for a response in seconds. */
17
+ timeoutInSeconds?: number;
18
+ /** The number of times to retry the request. Defaults to 2. */
19
+ maxRetries?: number;
20
+ /** A hook to abort the request. */
21
+ abortSignal?: AbortSignal;
22
+ /** Additional headers to include in the request. */
23
+ headers?: Record<string, string>;
24
+ }
25
+ }
26
+ export declare class Users {
27
+ protected readonly _options: Users.Options;
28
+ constructor(_options?: Users.Options);
29
+ /**
30
+ * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
31
+ *
32
+ * @example
33
+ * await client.users.getUserPublicData()
34
+ */
35
+ getUserPublicData(requestOptions?: Users.RequestOptions): Promise<Chrt.UserPublicData5>;
36
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
37
+ }
@@ -0,0 +1,113 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Users = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const url_join_1 = __importDefault(require("url-join"));
55
+ const errors = __importStar(require("../../../../errors/index"));
56
+ class Users {
57
+ constructor(_options = {}) {
58
+ this._options = _options;
59
+ }
60
+ /**
61
+ * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @example
64
+ * await client.users.getUserPublicData()
65
+ */
66
+ getUserPublicData(requestOptions) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ var _a, _b, _c;
69
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
70
+ url: (0, url_join_1.default)((_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.Default, "users/user_public_data"),
71
+ method: "GET",
72
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.2", "User-Agent": "@chrt-inc/typescript-sdk/0.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
+ contentType: "application/json",
74
+ requestType: "json",
75
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
76
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
77
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
78
+ });
79
+ if (_response.ok) {
80
+ return _response.body;
81
+ }
82
+ if (_response.error.reason === "status-code") {
83
+ throw new errors.ChrtError({
84
+ statusCode: _response.error.statusCode,
85
+ body: _response.error.body,
86
+ });
87
+ }
88
+ switch (_response.error.reason) {
89
+ case "non-json":
90
+ throw new errors.ChrtError({
91
+ statusCode: _response.error.statusCode,
92
+ body: _response.error.rawBody,
93
+ });
94
+ case "timeout":
95
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /users/user_public_data.");
96
+ case "unknown":
97
+ throw new errors.ChrtError({
98
+ message: _response.error.errorMessage,
99
+ });
100
+ }
101
+ });
102
+ }
103
+ _getAuthorizationHeader() {
104
+ return __awaiter(this, void 0, void 0, function* () {
105
+ const bearer = yield core.Supplier.get(this._options.token);
106
+ if (bearer != null) {
107
+ return `Bearer ${bearer}`;
108
+ }
109
+ return undefined;
110
+ });
111
+ }
112
+ }
113
+ exports.Users = Users;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
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"), exports);
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index";
5
+ export type Action = Chrt.TaskActionEnum1 | Chrt.ObcNfoTaskActionEnum;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface BaseModel {
5
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });