@chrt-inc/typescript-sdk 0.0.170-b → 0.0.170-d

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 (293) hide show
  1. package/README.md +7 -11
  2. package/dist/cjs/Client.d.ts +30 -36
  3. package/dist/cjs/Client.js +61 -71
  4. package/dist/cjs/api/resources/dev/client/Client.d.ts +8 -8
  5. package/dist/cjs/api/resources/dev/client/Client.js +48 -48
  6. package/dist/cjs/api/resources/directory/client/requests/DbQueryParams.d.ts +2 -2
  7. package/dist/cjs/api/resources/index.d.ts +18 -21
  8. package/dist/cjs/api/resources/index.js +19 -22
  9. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notifications}/client/Client.d.ts +12 -12
  10. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notifications}/client/Client.js +13 -13
  11. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/Client.d.ts +12 -12
  12. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/Client.js +13 -13
  13. package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/Client.d.ts +16 -16
  14. package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/Client.js +50 -50
  15. package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/index.d.ts +1 -1
  16. package/dist/cjs/api/resources/oortCourierPayDriverPayouts/client/Client.d.ts +13 -13
  17. package/dist/cjs/api/resources/oortCourierPayDriverPayouts/client/Client.js +31 -31
  18. package/dist/cjs/api/resources/oortCourierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.ts +3 -3
  19. package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/Client.d.ts +62 -0
  20. package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/Client.js +231 -0
  21. package/dist/cjs/api/resources/{oortCourierPayDriverRate → oortCourierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +24 -24
  22. package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +12 -12
  23. package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/requests/index.d.ts +1 -0
  24. package/dist/cjs/api/resources/oortDrivers/client/Client.d.ts +52 -52
  25. package/dist/cjs/api/resources/oortDrivers/client/Client.js +128 -128
  26. package/dist/cjs/api/resources/oortDrivers/client/requests/SetDriverActivationReq.d.ts +3 -3
  27. package/dist/cjs/api/resources/oortDrivers/client/requests/index.d.ts +2 -2
  28. package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts +3 -3
  29. package/dist/cjs/api/resources/oortMilestones/client/Client.d.ts +28 -28
  30. package/dist/cjs/api/resources/oortMilestones/client/Client.js +76 -76
  31. package/dist/cjs/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
  32. package/dist/cjs/api/resources/oortMilestones/client/requests/MilestoneUpdateReq.d.ts +1 -1
  33. package/dist/cjs/api/resources/oortMilestones/client/requests/index.d.ts +1 -1
  34. package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.d.ts +2 -2
  35. package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.js +2 -2
  36. package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +8 -8
  37. package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
  38. package/dist/cjs/api/resources/oortOrders/client/Client.d.ts +53 -53
  39. package/dist/cjs/api/resources/oortOrders/client/Client.js +135 -135
  40. package/dist/cjs/api/resources/oortOrders/client/requests/CreateOrderReq.d.ts +16 -16
  41. package/dist/cjs/api/resources/oortOrgConnectionInfos/client/Client.d.ts +29 -29
  42. package/dist/cjs/api/resources/oortOrgConnectionInfos/client/Client.js +68 -68
  43. package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +7 -7
  44. package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +4 -4
  45. package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +7 -7
  46. package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
  47. package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/index.d.ts +2 -2
  48. package/dist/cjs/api/resources/oortOrgProfiles/client/Client.d.ts +26 -26
  49. package/dist/cjs/api/resources/oortOrgProfiles/client/Client.js +78 -78
  50. package/dist/cjs/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +3 -3
  51. package/dist/cjs/api/resources/oortOrgProfiles/client/requests/index.d.ts +1 -1
  52. package/dist/cjs/api/resources/oortShipperContactInfo/client/Client.d.ts +43 -43
  53. package/dist/cjs/api/resources/oortShipperContactInfo/client/Client.js +106 -106
  54. package/dist/cjs/api/resources/oortShipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +4 -4
  55. package/dist/cjs/api/resources/oortTaskGroups/client/Client.d.ts +24 -24
  56. package/dist/cjs/api/resources/oortTaskGroups/client/Client.js +41 -41
  57. package/dist/cjs/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.d.ts +3 -3
  58. package/dist/cjs/api/resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.d.ts +2 -2
  59. package/dist/cjs/api/resources/orgs/client/Client.d.ts +25 -25
  60. package/dist/cjs/api/resources/orgs/client/Client.js +102 -102
  61. package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +3 -3
  62. package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +1 -1
  63. package/dist/cjs/api/resources/root/client/Client.d.ts +16 -16
  64. package/dist/cjs/api/resources/root/client/Client.js +33 -33
  65. package/dist/cjs/api/types/Cargo1.d.ts +6 -6
  66. package/dist/cjs/api/types/CargoClientCreate1.d.ts +3 -3
  67. package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +9 -9
  68. package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
  69. package/dist/cjs/api/types/CourierOrgProfile3.d.ts +3 -3
  70. package/dist/cjs/api/types/CourierPayDriverLineItemGroup1.d.ts +5 -5
  71. package/dist/cjs/api/types/CourierPayDriverLineItemGroupClientCreate1.d.ts +1 -1
  72. package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +16 -16
  73. package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +8 -8
  74. package/dist/cjs/api/types/Driver1.d.ts +6 -6
  75. package/dist/cjs/api/types/Expense1.d.ts +3 -3
  76. package/dist/cjs/api/types/Feature.d.ts +3 -3
  77. package/dist/cjs/api/types/GetOrderFullRes.d.ts +2 -2
  78. package/dist/cjs/api/types/Incident1.d.ts +1 -1
  79. package/dist/cjs/api/types/Insurance1.d.ts +1 -1
  80. package/dist/cjs/api/types/LineItem1.d.ts +1 -1
  81. package/dist/cjs/api/types/Milestone1.d.ts +13 -13
  82. package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
  83. package/dist/cjs/api/types/MilestoneNotificationPreferences1.d.ts +9 -9
  84. package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +11 -11
  85. package/dist/cjs/api/types/Order1.d.ts +11 -11
  86. package/dist/cjs/api/types/OrgMemberDetails.d.ts +2 -2
  87. package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
  88. package/dist/cjs/api/types/OrgPublicData2.d.ts +4 -4
  89. package/dist/cjs/api/types/PayablesInvoice1.d.ts +11 -11
  90. package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
  91. package/dist/cjs/api/types/Shipper2.d.ts +8 -8
  92. package/dist/cjs/api/types/ShipperContactInfo1.d.ts +11 -11
  93. package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +6 -6
  94. package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +4 -4
  95. package/dist/cjs/api/types/ShipperNotificationPreferences1.d.ts +9 -9
  96. package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +6 -6
  97. package/dist/cjs/api/types/StreetAddress1.d.ts +3 -3
  98. package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +5 -5
  99. package/dist/cjs/api/types/Task1.d.ts +13 -13
  100. package/dist/cjs/api/types/TaskClientCreate1.d.ts +4 -4
  101. package/dist/cjs/api/types/TaskCreateBundle.d.ts +2 -2
  102. package/dist/cjs/api/types/TaskGroup1.d.ts +11 -11
  103. package/dist/cjs/api/types/TaskWithDetails.d.ts +2 -2
  104. package/dist/cjs/api/types/Tracker1.d.ts +1 -1
  105. package/dist/cjs/api/types/TrackerSession1.d.ts +1 -1
  106. package/dist/cjs/api/types/UserPublicData6.d.ts +6 -6
  107. package/dist/cjs/api/types/Vehicle1.d.ts +1 -1
  108. package/dist/cjs/api/types/index.d.ts +0 -2
  109. package/dist/cjs/api/types/index.js +0 -2
  110. package/dist/cjs/version.d.ts +1 -1
  111. package/dist/cjs/version.js +1 -1
  112. package/dist/esm/Client.d.mts +30 -36
  113. package/dist/esm/Client.mjs +44 -54
  114. package/dist/esm/api/resources/dev/client/Client.d.mts +8 -8
  115. package/dist/esm/api/resources/dev/client/Client.mjs +48 -48
  116. package/dist/esm/api/resources/directory/client/requests/DbQueryParams.d.mts +2 -2
  117. package/dist/esm/api/resources/index.d.mts +18 -21
  118. package/dist/esm/api/resources/index.mjs +18 -21
  119. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notifications}/client/Client.d.mts +12 -12
  120. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notifications}/client/Client.mjs +11 -11
  121. package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/Client.d.mts +12 -12
  122. package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/Client.mjs +11 -11
  123. package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/Client.d.mts +16 -16
  124. package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/Client.mjs +50 -50
  125. package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/index.d.mts +1 -1
  126. package/dist/esm/api/resources/oortCourierPayDriverPayouts/client/Client.d.mts +13 -13
  127. package/dist/esm/api/resources/oortCourierPayDriverPayouts/client/Client.mjs +31 -31
  128. package/dist/esm/api/resources/oortCourierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.mts +3 -3
  129. package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/Client.d.mts +62 -0
  130. package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/Client.mjs +231 -0
  131. package/dist/esm/api/resources/{oortCourierPayDriverRate → oortCourierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +24 -24
  132. package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +12 -12
  133. package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/requests/index.d.mts +1 -0
  134. package/dist/esm/api/resources/oortDrivers/client/Client.d.mts +52 -52
  135. package/dist/esm/api/resources/oortDrivers/client/Client.mjs +128 -128
  136. package/dist/esm/api/resources/oortDrivers/client/requests/SetDriverActivationReq.d.mts +3 -3
  137. package/dist/esm/api/resources/oortDrivers/client/requests/index.d.mts +2 -2
  138. package/dist/esm/api/resources/oortMilestoneNotificationPreferences/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts +3 -3
  139. package/dist/esm/api/resources/oortMilestones/client/Client.d.mts +28 -28
  140. package/dist/esm/api/resources/oortMilestones/client/Client.mjs +76 -76
  141. package/dist/esm/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
  142. package/dist/esm/api/resources/oortMilestones/client/requests/MilestoneUpdateReq.d.mts +1 -1
  143. package/dist/esm/api/resources/oortMilestones/client/requests/index.d.mts +1 -1
  144. package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.d.mts +2 -2
  145. package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.mjs +2 -2
  146. package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +8 -8
  147. package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
  148. package/dist/esm/api/resources/oortOrders/client/Client.d.mts +53 -53
  149. package/dist/esm/api/resources/oortOrders/client/Client.mjs +135 -135
  150. package/dist/esm/api/resources/oortOrders/client/requests/CreateOrderReq.d.mts +16 -16
  151. package/dist/esm/api/resources/oortOrgConnectionInfos/client/Client.d.mts +29 -29
  152. package/dist/esm/api/resources/oortOrgConnectionInfos/client/Client.mjs +68 -68
  153. package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +7 -7
  154. package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +4 -4
  155. package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +7 -7
  156. package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
  157. package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/index.d.mts +2 -2
  158. package/dist/esm/api/resources/oortOrgProfiles/client/Client.d.mts +26 -26
  159. package/dist/esm/api/resources/oortOrgProfiles/client/Client.mjs +78 -78
  160. package/dist/esm/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.d.mts +3 -3
  161. package/dist/esm/api/resources/oortOrgProfiles/client/requests/index.d.mts +1 -1
  162. package/dist/esm/api/resources/oortShipperContactInfo/client/Client.d.mts +43 -43
  163. package/dist/esm/api/resources/oortShipperContactInfo/client/Client.mjs +106 -106
  164. package/dist/esm/api/resources/oortShipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +4 -4
  165. package/dist/esm/api/resources/oortTaskGroups/client/Client.d.mts +24 -24
  166. package/dist/esm/api/resources/oortTaskGroups/client/Client.mjs +41 -41
  167. package/dist/esm/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.d.mts +3 -3
  168. package/dist/esm/api/resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.d.mts +2 -2
  169. package/dist/esm/api/resources/orgs/client/Client.d.mts +25 -25
  170. package/dist/esm/api/resources/orgs/client/Client.mjs +102 -102
  171. package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +3 -3
  172. package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +1 -1
  173. package/dist/esm/api/resources/root/client/Client.d.mts +16 -16
  174. package/dist/esm/api/resources/root/client/Client.mjs +33 -33
  175. package/dist/esm/api/types/Cargo1.d.mts +6 -6
  176. package/dist/esm/api/types/CargoClientCreate1.d.mts +3 -3
  177. package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +9 -9
  178. package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
  179. package/dist/esm/api/types/CourierOrgProfile3.d.mts +3 -3
  180. package/dist/esm/api/types/CourierPayDriverLineItemGroup1.d.mts +5 -5
  181. package/dist/esm/api/types/CourierPayDriverLineItemGroupClientCreate1.d.mts +1 -1
  182. package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +16 -16
  183. package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +8 -8
  184. package/dist/esm/api/types/Driver1.d.mts +6 -6
  185. package/dist/esm/api/types/Expense1.d.mts +3 -3
  186. package/dist/esm/api/types/Feature.d.mts +3 -3
  187. package/dist/esm/api/types/GetOrderFullRes.d.mts +2 -2
  188. package/dist/esm/api/types/Incident1.d.mts +1 -1
  189. package/dist/esm/api/types/Insurance1.d.mts +1 -1
  190. package/dist/esm/api/types/LineItem1.d.mts +1 -1
  191. package/dist/esm/api/types/Milestone1.d.mts +13 -13
  192. package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
  193. package/dist/esm/api/types/MilestoneNotificationPreferences1.d.mts +9 -9
  194. package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +11 -11
  195. package/dist/esm/api/types/Order1.d.mts +11 -11
  196. package/dist/esm/api/types/OrgMemberDetails.d.mts +2 -2
  197. package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
  198. package/dist/esm/api/types/OrgPublicData2.d.mts +4 -4
  199. package/dist/esm/api/types/PayablesInvoice1.d.mts +11 -11
  200. package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
  201. package/dist/esm/api/types/Shipper2.d.mts +8 -8
  202. package/dist/esm/api/types/ShipperContactInfo1.d.mts +11 -11
  203. package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +6 -6
  204. package/dist/esm/api/types/ShipperCourierConnection1.d.mts +4 -4
  205. package/dist/esm/api/types/ShipperNotificationPreferences1.d.mts +9 -9
  206. package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +6 -6
  207. package/dist/esm/api/types/StreetAddress1.d.mts +3 -3
  208. package/dist/esm/api/types/StripeConnectInvoice1.d.mts +5 -5
  209. package/dist/esm/api/types/Task1.d.mts +13 -13
  210. package/dist/esm/api/types/TaskClientCreate1.d.mts +4 -4
  211. package/dist/esm/api/types/TaskCreateBundle.d.mts +2 -2
  212. package/dist/esm/api/types/TaskGroup1.d.mts +11 -11
  213. package/dist/esm/api/types/TaskWithDetails.d.mts +2 -2
  214. package/dist/esm/api/types/Tracker1.d.mts +1 -1
  215. package/dist/esm/api/types/TrackerSession1.d.mts +1 -1
  216. package/dist/esm/api/types/UserPublicData6.d.mts +6 -6
  217. package/dist/esm/api/types/Vehicle1.d.mts +1 -1
  218. package/dist/esm/api/types/index.d.mts +0 -2
  219. package/dist/esm/api/types/index.mjs +0 -2
  220. package/dist/esm/version.d.mts +1 -1
  221. package/dist/esm/version.mjs +1 -1
  222. package/package.json +1 -1
  223. package/reference.md +931 -1435
  224. package/dist/cjs/api/resources/mirror/client/Client.d.ts +0 -138
  225. package/dist/cjs/api/resources/mirror/client/Client.js +0 -658
  226. package/dist/cjs/api/resources/mirror/client/index.d.ts +0 -1
  227. package/dist/cjs/api/resources/notificationsShipperNotificationPreferences/client/requests/index.js +0 -2
  228. package/dist/cjs/api/resources/notificationsShipperNotificationPreferences/index.d.ts +0 -1
  229. package/dist/cjs/api/resources/notificationsShipperNotificationPreferences/index.js +0 -17
  230. package/dist/cjs/api/resources/oortCourierPayDriverRate/client/Client.d.ts +0 -94
  231. package/dist/cjs/api/resources/oortCourierPayDriverRate/client/Client.js +0 -299
  232. package/dist/cjs/api/resources/oortCourierPayDriverRate/client/index.d.ts +0 -2
  233. package/dist/cjs/api/resources/oortCourierPayDriverRate/client/index.js +0 -17
  234. package/dist/cjs/api/resources/oortCourierPayDriverRate/client/requests/index.d.ts +0 -1
  235. package/dist/cjs/api/resources/oortCourierPayDriverRate/client/requests/index.js +0 -2
  236. package/dist/cjs/api/resources/oortCourierPayDriverRate/index.d.ts +0 -1
  237. package/dist/cjs/api/resources/oortCourierPayDriverRate/index.js +0 -17
  238. package/dist/cjs/api/types/EmailReq.d.ts +0 -6
  239. package/dist/cjs/api/types/EmailReq.js +0 -5
  240. package/dist/cjs/api/types/EmailRes.d.ts +0 -7
  241. package/dist/cjs/api/types/EmailRes.js +0 -5
  242. package/dist/esm/api/resources/mirror/client/Client.d.mts +0 -138
  243. package/dist/esm/api/resources/mirror/client/Client.mjs +0 -621
  244. package/dist/esm/api/resources/mirror/client/index.d.mts +0 -1
  245. package/dist/esm/api/resources/notificationsShipperNotificationPreferences/client/requests/index.mjs +0 -1
  246. package/dist/esm/api/resources/notificationsShipperNotificationPreferences/index.d.mts +0 -1
  247. package/dist/esm/api/resources/notificationsShipperNotificationPreferences/index.mjs +0 -1
  248. package/dist/esm/api/resources/oortCourierPayDriverRate/client/Client.d.mts +0 -94
  249. package/dist/esm/api/resources/oortCourierPayDriverRate/client/Client.mjs +0 -262
  250. package/dist/esm/api/resources/oortCourierPayDriverRate/client/index.d.mts +0 -2
  251. package/dist/esm/api/resources/oortCourierPayDriverRate/client/index.mjs +0 -1
  252. package/dist/esm/api/resources/oortCourierPayDriverRate/client/requests/index.d.mts +0 -1
  253. package/dist/esm/api/resources/oortCourierPayDriverRate/client/requests/index.mjs +0 -1
  254. package/dist/esm/api/resources/oortCourierPayDriverRate/index.d.mts +0 -1
  255. package/dist/esm/api/resources/oortCourierPayDriverRate/index.mjs +0 -1
  256. package/dist/esm/api/types/EmailReq.d.mts +0 -6
  257. package/dist/esm/api/types/EmailReq.mjs +0 -4
  258. package/dist/esm/api/types/EmailRes.d.mts +0 -7
  259. package/dist/esm/api/types/EmailRes.mjs +0 -4
  260. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notifications}/client/index.d.ts +0 -0
  261. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notifications}/client/index.js +0 -0
  262. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notifications}/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +3 -3
  263. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notifications}/client/requests/CourierNotificationPreferencesClientCreate1.js +0 -0
  264. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notifications}/client/requests/index.d.ts +0 -0
  265. package/dist/cjs/api/resources/{mirror/client → notifications/client/requests}/index.js +0 -0
  266. package/dist/cjs/api/resources/{mirror → notifications}/index.d.ts +0 -0
  267. package/dist/cjs/api/resources/{mirror → notifications}/index.js +0 -0
  268. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/index.d.ts +0 -0
  269. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/index.js +0 -0
  270. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/requests/ShipperNotificationPreferencesClientCreate1.d.ts +3 -3
  271. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/requests/ShipperNotificationPreferencesClientCreate1.js +0 -0
  272. package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/requests/index.d.ts +0 -0
  273. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notificationsShipper}/client/requests/index.js +0 -0
  274. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notificationsShipper}/index.d.ts +0 -0
  275. package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notificationsShipper}/index.js +0 -0
  276. package/dist/cjs/api/resources/{oortCourierPayDriverRate → oortCourierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.js +0 -0
  277. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notifications}/client/index.d.mts +0 -0
  278. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notifications}/client/index.mjs +0 -0
  279. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notifications}/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +3 -3
  280. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notifications}/client/requests/CourierNotificationPreferencesClientCreate1.mjs +0 -0
  281. package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notifications}/client/requests/index.d.mts +0 -0
  282. package/dist/esm/api/resources/{mirror/client → notifications/client/requests}/index.mjs +0 -0
  283. package/dist/esm/api/resources/{mirror → notifications}/index.d.mts +0 -0
  284. package/dist/esm/api/resources/{mirror → notifications}/index.mjs +0 -0
  285. package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/index.d.mts +0 -0
  286. package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/index.mjs +0 -0
  287. package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/requests/ShipperNotificationPreferencesClientCreate1.d.mts +3 -3
  288. /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/requests/ShipperNotificationPreferencesClientCreate1.mjs +0 -0
  289. /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notificationsShipper}/client/requests/index.d.mts +0 -0
  290. /package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notificationsShipper}/client/requests/index.mjs +0 -0
  291. /package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notificationsShipper}/index.d.mts +0 -0
  292. /package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notificationsShipper}/index.mjs +0 -0
  293. /package/dist/esm/api/resources/{oortCourierPayDriverRate → oortCourierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.mjs +0 -0
package/README.md CHANGED
@@ -23,11 +23,7 @@ Instantiate and use the client with the following:
23
23
  import { ChrtClient } from "@chrt-inc/typescript-sdk";
24
24
 
25
25
  const client = new ChrtClient({ token: "YOUR_TOKEN" });
26
- await client.dev.postTemplate({
27
- message: "message",
28
- number: 1,
29
- timestamp: "2024-01-15T09:30:00Z",
30
- });
26
+ await client.root.postAuthd();
31
27
  ```
32
28
 
33
29
  ## Request And Response Types
@@ -52,7 +48,7 @@ will be thrown.
52
48
  import { ChrtError } from "@chrt-inc/typescript-sdk";
53
49
 
54
50
  try {
55
- await client.dev.postTemplate(...);
51
+ await client.root.postAuthd(...);
56
52
  } catch (err) {
57
53
  if (err instanceof ChrtError) {
58
54
  console.log(err.statusCode);
@@ -70,7 +66,7 @@ try {
70
66
  If you would like to send additional headers as part of the request, use the `headers` request option.
71
67
 
72
68
  ```typescript
73
- const response = await client.dev.postTemplate(..., {
69
+ const response = await client.root.postAuthd(..., {
74
70
  headers: {
75
71
  'X-Custom-Header': 'custom value'
76
72
  }
@@ -92,7 +88,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
92
88
  Use the `maxRetries` request option to configure this behavior.
93
89
 
94
90
  ```typescript
95
- const response = await client.dev.postTemplate(..., {
91
+ const response = await client.root.postAuthd(..., {
96
92
  maxRetries: 0 // override maxRetries at the request level
97
93
  });
98
94
  ```
@@ -102,7 +98,7 @@ const response = await client.dev.postTemplate(..., {
102
98
  The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
103
99
 
104
100
  ```typescript
105
- const response = await client.dev.postTemplate(..., {
101
+ const response = await client.root.postAuthd(..., {
106
102
  timeoutInSeconds: 30 // override timeout to 30s
107
103
  });
108
104
  ```
@@ -113,7 +109,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
113
109
 
114
110
  ```typescript
115
111
  const controller = new AbortController();
116
- const response = await client.dev.postTemplate(..., {
112
+ const response = await client.root.postAuthd(..., {
117
113
  abortSignal: controller.signal
118
114
  });
119
115
  controller.abort(); // aborts the request
@@ -125,7 +121,7 @@ The SDK provides access to raw response data, including headers, through the `.w
125
121
  The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
126
122
 
127
123
  ```typescript
128
- const { data, rawResponse } = await client.dev.postTemplate(...).withRawResponse();
124
+ const { data, rawResponse } = await client.root.postAuthd(...).withRawResponse();
129
125
 
130
126
  console.log(data);
131
127
  console.log(rawResponse.headers['X-My-Header']);
@@ -3,28 +3,26 @@
3
3
  */
4
4
  import * as environments from "./environments.js";
5
5
  import * as core from "./core/index.js";
6
+ import { Root } from "./api/resources/root/client/Client.js";
6
7
  import { Dev } from "./api/resources/dev/client/Client.js";
7
8
  import { Directory } from "./api/resources/directory/client/Client.js";
8
- import { Mirror } from "./api/resources/mirror/client/Client.js";
9
- import { NotificationsShipperNotificationPreferences } from "./api/resources/notificationsShipperNotificationPreferences/client/Client.js";
10
- import { NotificationsCourierNotificationPreferences } from "./api/resources/notificationsCourierNotificationPreferences/client/Client.js";
9
+ import { Notifications } from "./api/resources/notifications/client/Client.js";
10
+ import { NotificationsShipper } from "./api/resources/notificationsShipper/client/Client.js";
11
+ import { OortConnections } from "./api/resources/oortConnections/client/Client.js";
12
+ import { OortCourierPayDriverLineItemGroups } from "./api/resources/oortCourierPayDriverLineItemGroups/client/Client.js";
13
+ import { OortCourierPayDriverPayouts } from "./api/resources/oortCourierPayDriverPayouts/client/Client.js";
14
+ import { OortCourierPayDriverRateSheets } from "./api/resources/oortCourierPayDriverRateSheets/client/Client.js";
11
15
  import { OortDrivers } from "./api/resources/oortDrivers/client/Client.js";
16
+ import { OortMilestoneNotificationPreferences } from "./api/resources/oortMilestoneNotificationPreferences/client/Client.js";
12
17
  import { OortMilestones } from "./api/resources/oortMilestones/client/Client.js";
13
18
  import { OortOffChrtShipperOrgConnectionInfo } from "./api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.js";
19
+ import { OortOrders } from "./api/resources/oortOrders/client/Client.js";
14
20
  import { OortOrgConnectionInfos } from "./api/resources/oortOrgConnectionInfos/client/Client.js";
15
21
  import { OortOrgProfiles } from "./api/resources/oortOrgProfiles/client/Client.js";
16
- import { OortOrders } from "./api/resources/oortOrders/client/Client.js";
17
- import { OortCourierPayDriverRate } from "./api/resources/oortCourierPayDriverRate/client/Client.js";
18
- import { OortCourierPayDriverRateSheets } from "./api/resources/oortCourierPayDriverRateSheets/client/Client.js";
19
- import { OortCourierPayDriverLineItemGroups } from "./api/resources/oortCourierPayDriverLineItemGroups/client/Client.js";
20
- import { OortCourierPayDriverPayouts } from "./api/resources/oortCourierPayDriverPayouts/client/Client.js";
21
- import { OortConnections } from "./api/resources/oortConnections/client/Client.js";
22
- import { OortTaskGroups } from "./api/resources/oortTaskGroups/client/Client.js";
23
22
  import { OortShipperContactInfo } from "./api/resources/oortShipperContactInfo/client/Client.js";
24
- import { OortMilestoneNotificationPreferences } from "./api/resources/oortMilestoneNotificationPreferences/client/Client.js";
23
+ import { OortTaskGroups } from "./api/resources/oortTaskGroups/client/Client.js";
25
24
  import { Orgs } from "./api/resources/orgs/client/Client.js";
26
25
  import { Payments } from "./api/resources/payments/client/Client.js";
27
- import { Root } from "./api/resources/root/client/Client.js";
28
26
  import { Users } from "./api/resources/users/client/Client.js";
29
27
  export declare namespace ChrtClient {
30
28
  interface Options {
@@ -49,51 +47,47 @@ export declare namespace ChrtClient {
49
47
  }
50
48
  export declare class ChrtClient {
51
49
  protected readonly _options: ChrtClient.Options;
50
+ protected _root: Root | undefined;
52
51
  protected _dev: Dev | undefined;
53
52
  protected _directory: Directory | undefined;
54
- protected _mirror: Mirror | undefined;
55
- protected _notificationsShipperNotificationPreferences: NotificationsShipperNotificationPreferences | undefined;
56
- protected _notificationsCourierNotificationPreferences: NotificationsCourierNotificationPreferences | undefined;
53
+ protected _notifications: Notifications | undefined;
54
+ protected _notificationsShipper: NotificationsShipper | undefined;
55
+ protected _oortConnections: OortConnections | undefined;
56
+ protected _oortCourierPayDriverLineItemGroups: OortCourierPayDriverLineItemGroups | undefined;
57
+ protected _oortCourierPayDriverPayouts: OortCourierPayDriverPayouts | undefined;
58
+ protected _oortCourierPayDriverRateSheets: OortCourierPayDriverRateSheets | undefined;
57
59
  protected _oortDrivers: OortDrivers | undefined;
60
+ protected _oortMilestoneNotificationPreferences: OortMilestoneNotificationPreferences | undefined;
58
61
  protected _oortMilestones: OortMilestones | undefined;
59
62
  protected _oortOffChrtShipperOrgConnectionInfo: OortOffChrtShipperOrgConnectionInfo | undefined;
63
+ protected _oortOrders: OortOrders | undefined;
60
64
  protected _oortOrgConnectionInfos: OortOrgConnectionInfos | undefined;
61
65
  protected _oortOrgProfiles: OortOrgProfiles | undefined;
62
- protected _oortOrders: OortOrders | undefined;
63
- protected _oortCourierPayDriverRate: OortCourierPayDriverRate | undefined;
64
- protected _oortCourierPayDriverRateSheets: OortCourierPayDriverRateSheets | undefined;
65
- protected _oortCourierPayDriverLineItemGroups: OortCourierPayDriverLineItemGroups | undefined;
66
- protected _oortCourierPayDriverPayouts: OortCourierPayDriverPayouts | undefined;
67
- protected _oortConnections: OortConnections | undefined;
68
- protected _oortTaskGroups: OortTaskGroups | undefined;
69
66
  protected _oortShipperContactInfo: OortShipperContactInfo | undefined;
70
- protected _oortMilestoneNotificationPreferences: OortMilestoneNotificationPreferences | undefined;
67
+ protected _oortTaskGroups: OortTaskGroups | undefined;
71
68
  protected _orgs: Orgs | undefined;
72
69
  protected _payments: Payments | undefined;
73
- protected _root: Root | undefined;
74
70
  protected _users: Users | undefined;
75
71
  constructor(_options?: ChrtClient.Options);
72
+ get root(): Root;
76
73
  get dev(): Dev;
77
74
  get directory(): Directory;
78
- get mirror(): Mirror;
79
- get notificationsShipperNotificationPreferences(): NotificationsShipperNotificationPreferences;
80
- get notificationsCourierNotificationPreferences(): NotificationsCourierNotificationPreferences;
75
+ get notifications(): Notifications;
76
+ get notificationsShipper(): NotificationsShipper;
77
+ get oortConnections(): OortConnections;
78
+ get oortCourierPayDriverLineItemGroups(): OortCourierPayDriverLineItemGroups;
79
+ get oortCourierPayDriverPayouts(): OortCourierPayDriverPayouts;
80
+ get oortCourierPayDriverRateSheets(): OortCourierPayDriverRateSheets;
81
81
  get oortDrivers(): OortDrivers;
82
+ get oortMilestoneNotificationPreferences(): OortMilestoneNotificationPreferences;
82
83
  get oortMilestones(): OortMilestones;
83
84
  get oortOffChrtShipperOrgConnectionInfo(): OortOffChrtShipperOrgConnectionInfo;
85
+ get oortOrders(): OortOrders;
84
86
  get oortOrgConnectionInfos(): OortOrgConnectionInfos;
85
87
  get oortOrgProfiles(): OortOrgProfiles;
86
- get oortOrders(): OortOrders;
87
- get oortCourierPayDriverRate(): OortCourierPayDriverRate;
88
- get oortCourierPayDriverRateSheets(): OortCourierPayDriverRateSheets;
89
- get oortCourierPayDriverLineItemGroups(): OortCourierPayDriverLineItemGroups;
90
- get oortCourierPayDriverPayouts(): OortCourierPayDriverPayouts;
91
- get oortConnections(): OortConnections;
92
- get oortTaskGroups(): OortTaskGroups;
93
88
  get oortShipperContactInfo(): OortShipperContactInfo;
94
- get oortMilestoneNotificationPreferences(): OortMilestoneNotificationPreferences;
89
+ get oortTaskGroups(): OortTaskGroups;
95
90
  get orgs(): Orgs;
96
91
  get payments(): Payments;
97
- get root(): Root;
98
92
  get users(): Users;
99
93
  }
@@ -39,131 +39,121 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ChrtClient = void 0;
40
40
  const core = __importStar(require("./core/index.js"));
41
41
  const headers_js_1 = require("./core/headers.js");
42
- const Client_js_1 = require("./api/resources/dev/client/Client.js");
43
- const Client_js_2 = require("./api/resources/directory/client/Client.js");
44
- const Client_js_3 = require("./api/resources/mirror/client/Client.js");
45
- const Client_js_4 = require("./api/resources/notificationsShipperNotificationPreferences/client/Client.js");
46
- const Client_js_5 = require("./api/resources/notificationsCourierNotificationPreferences/client/Client.js");
47
- const Client_js_6 = require("./api/resources/oortDrivers/client/Client.js");
48
- const Client_js_7 = require("./api/resources/oortMilestones/client/Client.js");
49
- const Client_js_8 = require("./api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.js");
50
- const Client_js_9 = require("./api/resources/oortOrgConnectionInfos/client/Client.js");
51
- const Client_js_10 = require("./api/resources/oortOrgProfiles/client/Client.js");
52
- const Client_js_11 = require("./api/resources/oortOrders/client/Client.js");
53
- const Client_js_12 = require("./api/resources/oortCourierPayDriverRate/client/Client.js");
54
- const Client_js_13 = require("./api/resources/oortCourierPayDriverRateSheets/client/Client.js");
55
- const Client_js_14 = require("./api/resources/oortCourierPayDriverLineItemGroups/client/Client.js");
56
- const Client_js_15 = require("./api/resources/oortCourierPayDriverPayouts/client/Client.js");
57
- const Client_js_16 = require("./api/resources/oortConnections/client/Client.js");
58
- const Client_js_17 = require("./api/resources/oortTaskGroups/client/Client.js");
59
- const Client_js_18 = require("./api/resources/oortShipperContactInfo/client/Client.js");
60
- const Client_js_19 = require("./api/resources/oortMilestoneNotificationPreferences/client/Client.js");
61
- const Client_js_20 = require("./api/resources/orgs/client/Client.js");
62
- const Client_js_21 = require("./api/resources/payments/client/Client.js");
63
- const Client_js_22 = require("./api/resources/root/client/Client.js");
64
- const Client_js_23 = require("./api/resources/users/client/Client.js");
42
+ const Client_js_1 = require("./api/resources/root/client/Client.js");
43
+ const Client_js_2 = require("./api/resources/dev/client/Client.js");
44
+ const Client_js_3 = require("./api/resources/directory/client/Client.js");
45
+ const Client_js_4 = require("./api/resources/notifications/client/Client.js");
46
+ const Client_js_5 = require("./api/resources/notificationsShipper/client/Client.js");
47
+ const Client_js_6 = require("./api/resources/oortConnections/client/Client.js");
48
+ const Client_js_7 = require("./api/resources/oortCourierPayDriverLineItemGroups/client/Client.js");
49
+ const Client_js_8 = require("./api/resources/oortCourierPayDriverPayouts/client/Client.js");
50
+ const Client_js_9 = require("./api/resources/oortCourierPayDriverRateSheets/client/Client.js");
51
+ const Client_js_10 = require("./api/resources/oortDrivers/client/Client.js");
52
+ const Client_js_11 = require("./api/resources/oortMilestoneNotificationPreferences/client/Client.js");
53
+ const Client_js_12 = require("./api/resources/oortMilestones/client/Client.js");
54
+ const Client_js_13 = require("./api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.js");
55
+ const Client_js_14 = require("./api/resources/oortOrders/client/Client.js");
56
+ const Client_js_15 = require("./api/resources/oortOrgConnectionInfos/client/Client.js");
57
+ const Client_js_16 = require("./api/resources/oortOrgProfiles/client/Client.js");
58
+ const Client_js_17 = require("./api/resources/oortShipperContactInfo/client/Client.js");
59
+ const Client_js_18 = require("./api/resources/oortTaskGroups/client/Client.js");
60
+ const Client_js_19 = require("./api/resources/orgs/client/Client.js");
61
+ const Client_js_20 = require("./api/resources/payments/client/Client.js");
62
+ const Client_js_21 = require("./api/resources/users/client/Client.js");
65
63
  class ChrtClient {
66
64
  constructor(_options = {}) {
67
65
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
68
66
  "X-Fern-Language": "JavaScript",
69
67
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
70
- "X-Fern-SDK-Version": "0.0.170-b",
71
- "User-Agent": "@chrt-inc/typescript-sdk/0.0.170-b",
68
+ "X-Fern-SDK-Version": "0.0.170-d",
69
+ "User-Agent": "@chrt-inc/typescript-sdk/0.0.170-d",
72
70
  "X-Fern-Runtime": core.RUNTIME.type,
73
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
74
72
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
75
73
  }
76
- get dev() {
77
- var _a;
78
- return ((_a = this._dev) !== null && _a !== void 0 ? _a : (this._dev = new Client_js_1.Dev(this._options)));
79
- }
80
- get directory() {
74
+ get root() {
81
75
  var _a;
82
- return ((_a = this._directory) !== null && _a !== void 0 ? _a : (this._directory = new Client_js_2.Directory(this._options)));
76
+ return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new Client_js_1.Root(this._options)));
83
77
  }
84
- get mirror() {
78
+ get dev() {
85
79
  var _a;
86
- return ((_a = this._mirror) !== null && _a !== void 0 ? _a : (this._mirror = new Client_js_3.Mirror(this._options)));
80
+ return ((_a = this._dev) !== null && _a !== void 0 ? _a : (this._dev = new Client_js_2.Dev(this._options)));
87
81
  }
88
- get notificationsShipperNotificationPreferences() {
82
+ get directory() {
89
83
  var _a;
90
- return ((_a = this._notificationsShipperNotificationPreferences) !== null && _a !== void 0 ? _a : (this._notificationsShipperNotificationPreferences = new Client_js_4.NotificationsShipperNotificationPreferences(this._options)));
84
+ return ((_a = this._directory) !== null && _a !== void 0 ? _a : (this._directory = new Client_js_3.Directory(this._options)));
91
85
  }
92
- get notificationsCourierNotificationPreferences() {
86
+ get notifications() {
93
87
  var _a;
94
- return ((_a = this._notificationsCourierNotificationPreferences) !== null && _a !== void 0 ? _a : (this._notificationsCourierNotificationPreferences = new Client_js_5.NotificationsCourierNotificationPreferences(this._options)));
88
+ return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_4.Notifications(this._options)));
95
89
  }
96
- get oortDrivers() {
90
+ get notificationsShipper() {
97
91
  var _a;
98
- return ((_a = this._oortDrivers) !== null && _a !== void 0 ? _a : (this._oortDrivers = new Client_js_6.OortDrivers(this._options)));
92
+ return ((_a = this._notificationsShipper) !== null && _a !== void 0 ? _a : (this._notificationsShipper = new Client_js_5.NotificationsShipper(this._options)));
99
93
  }
100
- get oortMilestones() {
94
+ get oortConnections() {
101
95
  var _a;
102
- return ((_a = this._oortMilestones) !== null && _a !== void 0 ? _a : (this._oortMilestones = new Client_js_7.OortMilestones(this._options)));
96
+ return ((_a = this._oortConnections) !== null && _a !== void 0 ? _a : (this._oortConnections = new Client_js_6.OortConnections(this._options)));
103
97
  }
104
- get oortOffChrtShipperOrgConnectionInfo() {
98
+ get oortCourierPayDriverLineItemGroups() {
105
99
  var _a;
106
- return ((_a = this._oortOffChrtShipperOrgConnectionInfo) !== null && _a !== void 0 ? _a : (this._oortOffChrtShipperOrgConnectionInfo = new Client_js_8.OortOffChrtShipperOrgConnectionInfo(this._options)));
100
+ return ((_a = this._oortCourierPayDriverLineItemGroups) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverLineItemGroups = new Client_js_7.OortCourierPayDriverLineItemGroups(this._options)));
107
101
  }
108
- get oortOrgConnectionInfos() {
102
+ get oortCourierPayDriverPayouts() {
109
103
  var _a;
110
- return ((_a = this._oortOrgConnectionInfos) !== null && _a !== void 0 ? _a : (this._oortOrgConnectionInfos = new Client_js_9.OortOrgConnectionInfos(this._options)));
104
+ return ((_a = this._oortCourierPayDriverPayouts) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverPayouts = new Client_js_8.OortCourierPayDriverPayouts(this._options)));
111
105
  }
112
- get oortOrgProfiles() {
106
+ get oortCourierPayDriverRateSheets() {
113
107
  var _a;
114
- return ((_a = this._oortOrgProfiles) !== null && _a !== void 0 ? _a : (this._oortOrgProfiles = new Client_js_10.OortOrgProfiles(this._options)));
108
+ return ((_a = this._oortCourierPayDriverRateSheets) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverRateSheets = new Client_js_9.OortCourierPayDriverRateSheets(this._options)));
115
109
  }
116
- get oortOrders() {
110
+ get oortDrivers() {
117
111
  var _a;
118
- return ((_a = this._oortOrders) !== null && _a !== void 0 ? _a : (this._oortOrders = new Client_js_11.OortOrders(this._options)));
112
+ return ((_a = this._oortDrivers) !== null && _a !== void 0 ? _a : (this._oortDrivers = new Client_js_10.OortDrivers(this._options)));
119
113
  }
120
- get oortCourierPayDriverRate() {
114
+ get oortMilestoneNotificationPreferences() {
121
115
  var _a;
122
- return ((_a = this._oortCourierPayDriverRate) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverRate = new Client_js_12.OortCourierPayDriverRate(this._options)));
116
+ return ((_a = this._oortMilestoneNotificationPreferences) !== null && _a !== void 0 ? _a : (this._oortMilestoneNotificationPreferences = new Client_js_11.OortMilestoneNotificationPreferences(this._options)));
123
117
  }
124
- get oortCourierPayDriverRateSheets() {
118
+ get oortMilestones() {
125
119
  var _a;
126
- return ((_a = this._oortCourierPayDriverRateSheets) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverRateSheets = new Client_js_13.OortCourierPayDriverRateSheets(this._options)));
120
+ return ((_a = this._oortMilestones) !== null && _a !== void 0 ? _a : (this._oortMilestones = new Client_js_12.OortMilestones(this._options)));
127
121
  }
128
- get oortCourierPayDriverLineItemGroups() {
122
+ get oortOffChrtShipperOrgConnectionInfo() {
129
123
  var _a;
130
- return ((_a = this._oortCourierPayDriverLineItemGroups) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverLineItemGroups = new Client_js_14.OortCourierPayDriverLineItemGroups(this._options)));
124
+ return ((_a = this._oortOffChrtShipperOrgConnectionInfo) !== null && _a !== void 0 ? _a : (this._oortOffChrtShipperOrgConnectionInfo = new Client_js_13.OortOffChrtShipperOrgConnectionInfo(this._options)));
131
125
  }
132
- get oortCourierPayDriverPayouts() {
126
+ get oortOrders() {
133
127
  var _a;
134
- return ((_a = this._oortCourierPayDriverPayouts) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverPayouts = new Client_js_15.OortCourierPayDriverPayouts(this._options)));
128
+ return ((_a = this._oortOrders) !== null && _a !== void 0 ? _a : (this._oortOrders = new Client_js_14.OortOrders(this._options)));
135
129
  }
136
- get oortConnections() {
130
+ get oortOrgConnectionInfos() {
137
131
  var _a;
138
- return ((_a = this._oortConnections) !== null && _a !== void 0 ? _a : (this._oortConnections = new Client_js_16.OortConnections(this._options)));
132
+ return ((_a = this._oortOrgConnectionInfos) !== null && _a !== void 0 ? _a : (this._oortOrgConnectionInfos = new Client_js_15.OortOrgConnectionInfos(this._options)));
139
133
  }
140
- get oortTaskGroups() {
134
+ get oortOrgProfiles() {
141
135
  var _a;
142
- return ((_a = this._oortTaskGroups) !== null && _a !== void 0 ? _a : (this._oortTaskGroups = new Client_js_17.OortTaskGroups(this._options)));
136
+ return ((_a = this._oortOrgProfiles) !== null && _a !== void 0 ? _a : (this._oortOrgProfiles = new Client_js_16.OortOrgProfiles(this._options)));
143
137
  }
144
138
  get oortShipperContactInfo() {
145
139
  var _a;
146
- return ((_a = this._oortShipperContactInfo) !== null && _a !== void 0 ? _a : (this._oortShipperContactInfo = new Client_js_18.OortShipperContactInfo(this._options)));
140
+ return ((_a = this._oortShipperContactInfo) !== null && _a !== void 0 ? _a : (this._oortShipperContactInfo = new Client_js_17.OortShipperContactInfo(this._options)));
147
141
  }
148
- get oortMilestoneNotificationPreferences() {
142
+ get oortTaskGroups() {
149
143
  var _a;
150
- return ((_a = this._oortMilestoneNotificationPreferences) !== null && _a !== void 0 ? _a : (this._oortMilestoneNotificationPreferences = new Client_js_19.OortMilestoneNotificationPreferences(this._options)));
144
+ return ((_a = this._oortTaskGroups) !== null && _a !== void 0 ? _a : (this._oortTaskGroups = new Client_js_18.OortTaskGroups(this._options)));
151
145
  }
152
146
  get orgs() {
153
147
  var _a;
154
- return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_js_20.Orgs(this._options)));
148
+ return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_js_19.Orgs(this._options)));
155
149
  }
156
150
  get payments() {
157
151
  var _a;
158
- return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new Client_js_21.Payments(this._options)));
159
- }
160
- get root() {
161
- var _a;
162
- return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new Client_js_22.Root(this._options)));
152
+ return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new Client_js_20.Payments(this._options)));
163
153
  }
164
154
  get users() {
165
155
  var _a;
166
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_23.Users(this._options)));
156
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_21.Users(this._options)));
167
157
  }
168
158
  }
169
159
  exports.ChrtClient = ChrtClient;
@@ -28,14 +28,6 @@ export declare namespace Dev {
28
28
  export declare class Dev {
29
29
  protected readonly _options: Dev.Options;
30
30
  constructor(_options?: Dev.Options);
31
- /**
32
- * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
33
- *
34
- * @example
35
- * await client.dev.getUserId()
36
- */
37
- getUserId(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<string>;
38
- private __getUserId;
39
31
  /**
40
32
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
41
33
  *
@@ -75,5 +67,13 @@ export declare class Dev {
75
67
  */
76
68
  postTemplate(request: Chrt.TemplateReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.TemplateRes>;
77
69
  private __postTemplate;
70
+ /**
71
+ * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
72
+ *
73
+ * @example
74
+ * await client.dev.getUserId()
75
+ */
76
+ getUserId(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<string>;
77
+ private __getUserId;
78
78
  protected _getAuthorizationHeader(): Promise<string | undefined>;
79
79
  }
@@ -48,60 +48,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
48
48
  exports.Dev = void 0;
49
49
  const environments = __importStar(require("../../../../environments.js"));
50
50
  const core = __importStar(require("../../../../core/index.js"));
51
+ const Chrt = __importStar(require("../../../index.js"));
51
52
  const headers_js_1 = require("../../../../core/headers.js");
52
53
  const errors = __importStar(require("../../../../errors/index.js"));
53
- const Chrt = __importStar(require("../../../index.js"));
54
54
  class Dev {
55
55
  constructor(_options = {}) {
56
56
  this._options = _options;
57
57
  }
58
- /**
59
- * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
60
- *
61
- * @example
62
- * await client.dev.getUserId()
63
- */
64
- getUserId(requestOptions) {
65
- return core.HttpResponsePromise.fromPromise(this.__getUserId(requestOptions));
66
- }
67
- __getUserId(requestOptions) {
68
- return __awaiter(this, void 0, void 0, function* () {
69
- var _a, _b, _c, _d;
70
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
71
- 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, "dev/user_id"),
72
- method: "GET",
73
- 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),
74
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
75
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
76
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
77
- });
78
- if (_response.ok) {
79
- return { data: _response.body, rawResponse: _response.rawResponse };
80
- }
81
- if (_response.error.reason === "status-code") {
82
- throw new errors.ChrtError({
83
- statusCode: _response.error.statusCode,
84
- body: _response.error.body,
85
- rawResponse: _response.rawResponse,
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
- rawResponse: _response.rawResponse,
94
- });
95
- case "timeout":
96
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/user_id.");
97
- case "unknown":
98
- throw new errors.ChrtError({
99
- message: _response.error.errorMessage,
100
- rawResponse: _response.rawResponse,
101
- });
102
- }
103
- });
104
- }
105
58
  /**
106
59
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
107
60
  *
@@ -305,6 +258,53 @@ class Dev {
305
258
  }
306
259
  });
307
260
  }
261
+ /**
262
+ * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
263
+ *
264
+ * @example
265
+ * await client.dev.getUserId()
266
+ */
267
+ getUserId(requestOptions) {
268
+ return core.HttpResponsePromise.fromPromise(this.__getUserId(requestOptions));
269
+ }
270
+ __getUserId(requestOptions) {
271
+ return __awaiter(this, void 0, void 0, function* () {
272
+ var _a, _b, _c, _d;
273
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
274
+ 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, "dev/user_id"),
275
+ method: "GET",
276
+ 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),
277
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
278
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
279
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
280
+ });
281
+ if (_response.ok) {
282
+ return { data: _response.body, rawResponse: _response.rawResponse };
283
+ }
284
+ if (_response.error.reason === "status-code") {
285
+ throw new errors.ChrtError({
286
+ statusCode: _response.error.statusCode,
287
+ body: _response.error.body,
288
+ rawResponse: _response.rawResponse,
289
+ });
290
+ }
291
+ switch (_response.error.reason) {
292
+ case "non-json":
293
+ throw new errors.ChrtError({
294
+ statusCode: _response.error.statusCode,
295
+ body: _response.error.rawBody,
296
+ rawResponse: _response.rawResponse,
297
+ });
298
+ case "timeout":
299
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/user_id.");
300
+ case "unknown":
301
+ throw new errors.ChrtError({
302
+ message: _response.error.errorMessage,
303
+ rawResponse: _response.rawResponse,
304
+ });
305
+ }
306
+ });
307
+ }
308
308
  _getAuthorizationHeader() {
309
309
  return __awaiter(this, void 0, void 0, function* () {
310
310
  const bearer = yield core.Supplier.get(this._options.token);
@@ -6,7 +6,7 @@
6
6
  * {}
7
7
  */
8
8
  export interface DbQueryParams {
9
- sort?: Record<string, number | undefined>;
10
- skip?: number;
11
9
  limit?: number;
10
+ skip?: number;
11
+ sort?: Record<string, number | undefined>;
12
12
  }
@@ -2,43 +2,40 @@ export * as root from "./root/index.js";
2
2
  export * from "./root/types/index.js";
3
3
  export * as dev from "./dev/index.js";
4
4
  export * as directory from "./directory/index.js";
5
- export * as mirror from "./mirror/index.js";
6
- export * as notificationsShipperNotificationPreferences from "./notificationsShipperNotificationPreferences/index.js";
7
- export * as notificationsCourierNotificationPreferences from "./notificationsCourierNotificationPreferences/index.js";
5
+ export * as notifications from "./notifications/index.js";
6
+ export * as notificationsShipper from "./notificationsShipper/index.js";
7
+ export * as oortConnections from "./oortConnections/index.js";
8
+ export * as oortCourierPayDriverLineItemGroups from "./oortCourierPayDriverLineItemGroups/index.js";
9
+ export * as oortCourierPayDriverPayouts from "./oortCourierPayDriverPayouts/index.js";
10
+ export * as oortCourierPayDriverRateSheets from "./oortCourierPayDriverRateSheets/index.js";
8
11
  export * as oortDrivers from "./oortDrivers/index.js";
12
+ export * as oortMilestoneNotificationPreferences from "./oortMilestoneNotificationPreferences/index.js";
9
13
  export * as oortMilestones from "./oortMilestones/index.js";
10
14
  export * as oortOffChrtShipperOrgConnectionInfo from "./oortOffChrtShipperOrgConnectionInfo/index.js";
15
+ export * as oortOrders from "./oortOrders/index.js";
11
16
  export * as oortOrgConnectionInfos from "./oortOrgConnectionInfos/index.js";
12
17
  export * as oortOrgProfiles from "./oortOrgProfiles/index.js";
13
- export * as oortOrders from "./oortOrders/index.js";
14
- export * as oortCourierPayDriverRate from "./oortCourierPayDriverRate/index.js";
15
- export * as oortCourierPayDriverRateSheets from "./oortCourierPayDriverRateSheets/index.js";
16
- export * as oortCourierPayDriverLineItemGroups from "./oortCourierPayDriverLineItemGroups/index.js";
17
- export * as oortCourierPayDriverPayouts from "./oortCourierPayDriverPayouts/index.js";
18
- export * as oortConnections from "./oortConnections/index.js";
19
- export * as oortTaskGroups from "./oortTaskGroups/index.js";
20
18
  export * as oortShipperContactInfo from "./oortShipperContactInfo/index.js";
21
- export * as oortMilestoneNotificationPreferences from "./oortMilestoneNotificationPreferences/index.js";
19
+ export * as oortTaskGroups from "./oortTaskGroups/index.js";
22
20
  export * as orgs from "./orgs/index.js";
23
21
  export * as payments from "./payments/index.js";
24
22
  export * as users from "./users/index.js";
25
23
  export * from "./dev/client/requests/index.js";
26
24
  export * from "./directory/client/requests/index.js";
27
- export * from "./notificationsShipperNotificationPreferences/client/requests/index.js";
28
- export * from "./notificationsCourierNotificationPreferences/client/requests/index.js";
25
+ export * from "./notifications/client/requests/index.js";
26
+ export * from "./notificationsShipper/client/requests/index.js";
27
+ export * from "./oortConnections/client/requests/index.js";
28
+ export * from "./oortCourierPayDriverLineItemGroups/client/requests/index.js";
29
+ export * from "./oortCourierPayDriverPayouts/client/requests/index.js";
30
+ export * from "./oortCourierPayDriverRateSheets/client/requests/index.js";
29
31
  export * from "./oortDrivers/client/requests/index.js";
32
+ export * from "./oortMilestoneNotificationPreferences/client/requests/index.js";
30
33
  export * from "./oortMilestones/client/requests/index.js";
31
34
  export * from "./oortOffChrtShipperOrgConnectionInfo/client/requests/index.js";
35
+ export * from "./oortOrders/client/requests/index.js";
32
36
  export * from "./oortOrgConnectionInfos/client/requests/index.js";
33
37
  export * from "./oortOrgProfiles/client/requests/index.js";
34
- export * from "./oortOrders/client/requests/index.js";
35
- export * from "./oortCourierPayDriverRate/client/requests/index.js";
36
- export * from "./oortCourierPayDriverRateSheets/client/requests/index.js";
37
- export * from "./oortCourierPayDriverLineItemGroups/client/requests/index.js";
38
- export * from "./oortCourierPayDriverPayouts/client/requests/index.js";
39
- export * from "./oortConnections/client/requests/index.js";
40
- export * from "./oortTaskGroups/client/requests/index.js";
41
38
  export * from "./oortShipperContactInfo/client/requests/index.js";
42
- export * from "./oortMilestoneNotificationPreferences/client/requests/index.js";
39
+ export * from "./oortTaskGroups/client/requests/index.js";
43
40
  export * from "./orgs/client/requests/index.js";
44
41
  export * from "./payments/client/requests/index.js";