@chrt-inc/typescript-sdk 1.530.1 → 1.539.1

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 (359) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/billing/index.d.ts +1 -1
  4. package/dist/cjs/api/resources/billing/index.js +1 -1
  5. package/dist/cjs/api/resources/billing/resources/index.d.ts +1 -2
  6. package/dist/cjs/api/resources/billing/resources/index.js +2 -3
  7. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +1 -0
  8. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +5 -1
  9. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListForCourierOrgV1Request.d.ts +3 -0
  10. package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.d.ts +3 -2
  11. package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.js +7 -3
  12. package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/RateSheetsListByOrgV1Request.d.ts +6 -2
  13. package/dist/cjs/api/resources/billing/resources/rateSheets/index.d.ts +0 -1
  14. package/dist/cjs/api/resources/billing/resources/rateSheets/index.js +0 -1
  15. package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +8 -2
  16. package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +28 -4
  17. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.ts +10 -1
  18. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.ts +10 -1
  19. package/dist/cjs/api/resources/index.d.ts +2 -2
  20. package/dist/cjs/api/resources/index.js +3 -3
  21. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +7 -3
  22. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +23 -11
  23. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.d.ts +14 -0
  24. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/notifications/resources/groups/client/Client.d.ts +18 -6
  26. package/dist/cjs/api/resources/notifications/resources/groups/client/Client.js +71 -36
  27. package/dist/cjs/api/resources/notifications/resources/groups/client/requests/GroupsListByOrgV1Request.d.ts +14 -0
  28. package/dist/cjs/api/resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.d.ts +14 -0
  29. package/dist/cjs/api/resources/notifications/resources/groups/client/requests/index.d.ts +2 -0
  30. package/dist/cjs/api/resources/orgs/client/Client.d.ts +11 -3
  31. package/dist/cjs/api/resources/orgs/client/Client.js +51 -16
  32. package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +23 -0
  33. package/dist/cjs/api/resources/orgs/client/requests/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +27 -9
  35. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +105 -48
  36. package/dist/cjs/api/resources/orgs/resources/connections/client/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/orgs/resources/connections/client/index.js +15 -0
  38. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.d.ts +14 -0
  39. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.js +5 -0
  40. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.d.ts +14 -0
  41. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.js +5 -0
  42. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.d.ts +14 -0
  43. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.js +5 -0
  44. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.d.ts +3 -0
  45. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.js +2 -0
  46. package/dist/cjs/api/resources/orgs/resources/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/orgs/resources/index.js +1 -0
  48. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.ts +9 -3
  49. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.js +35 -16
  50. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.d.ts +14 -0
  51. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.js +5 -0
  52. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/index.d.ts +1 -0
  53. package/dist/cjs/api/resources/shipping/index.d.ts +1 -1
  54. package/dist/cjs/api/resources/shipping/index.js +1 -1
  55. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +14 -8
  56. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +58 -24
  57. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +11 -4
  58. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +17 -6
  59. package/dist/cjs/api/resources/shipping/resources/index.d.ts +3 -3
  60. package/dist/cjs/api/resources/shipping/resources/index.js +4 -4
  61. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.ts +3 -0
  62. package/dist/cjs/api/resources/shipping/resources/orderDrafts/index.d.ts +1 -1
  63. package/dist/cjs/api/resources/shipping/resources/orderDrafts/index.js +1 -1
  64. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.ts +1 -1
  65. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.js +1 -1
  66. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.ts +3 -2
  67. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/index.d.ts +0 -1
  68. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/index.js +0 -1
  69. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.d.ts +1 -2
  70. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.js +2 -3
  71. package/dist/cjs/api/resources/shipping/resources/orders/index.d.ts +1 -1
  72. package/dist/cjs/api/resources/shipping/resources/orders/index.js +1 -1
  73. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +22 -4
  74. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +82 -6
  75. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForForwarderOperatorsV1Request.d.ts +6 -2
  76. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +6 -2
  77. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts +16 -0
  78. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.js +5 -0
  79. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.ts +1 -0
  80. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/index.d.ts +0 -1
  81. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/index.js +0 -1
  82. package/dist/cjs/api/resources/shipping/resources/orders/resources/index.d.ts +0 -1
  83. package/dist/cjs/api/resources/shipping/resources/orders/resources/index.js +0 -1
  84. package/dist/cjs/api/resources/shipping/resources/taskGroups/index.d.ts +1 -1
  85. package/dist/cjs/api/resources/shipping/resources/taskGroups/index.js +1 -1
  86. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +22 -4
  87. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +82 -6
  88. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.ts +6 -2
  89. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.ts +6 -2
  90. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts +16 -0
  91. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.js +5 -0
  92. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +1 -0
  93. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/index.d.ts +0 -1
  94. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/index.js +0 -1
  95. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.d.ts +1 -2
  96. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.js +2 -3
  97. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +5 -20
  98. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +15 -79
  99. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.ts +10 -1
  100. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +0 -1
  101. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +4 -21
  102. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +8 -80
  103. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.ts +4 -1
  104. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +0 -1
  105. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.ts +2 -2
  106. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.js +2 -2
  107. package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.d.ts +12 -3
  108. package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.js +47 -16
  109. package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.d.ts +24 -0
  110. package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.js +5 -0
  111. package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/index.d.ts +1 -0
  112. package/dist/cjs/api/types/CourierConnectionListRes.d.ts +8 -0
  113. package/dist/cjs/api/types/CourierConnectionListRes.js +5 -0
  114. package/dist/cjs/api/types/DeviceLimitedForList1.d.ts +1 -0
  115. package/dist/cjs/api/types/DeviceListRes.d.ts +1 -1
  116. package/dist/cjs/api/types/DevicePausedTimeWindow1.d.ts +7 -0
  117. package/dist/cjs/api/types/DevicePausedTimeWindow1.js +5 -0
  118. package/dist/cjs/api/types/{DeviceSearchRes.d.ts → DirectoryEntryListRes.d.ts} +2 -2
  119. package/dist/cjs/api/types/DirectoryEntryListRes.js +5 -0
  120. package/dist/cjs/api/types/DirectoryEntrySortByEnum.d.ts +9 -0
  121. package/dist/cjs/api/types/DirectoryEntrySortByEnum.js +11 -0
  122. package/dist/cjs/api/types/{SessionSearchRes.d.ts → DriverListRes.d.ts} +2 -2
  123. package/dist/cjs/api/types/DriverListRes.js +5 -0
  124. package/dist/cjs/api/types/ForwarderConnectionListRes.d.ts +8 -0
  125. package/dist/cjs/api/types/ForwarderConnectionListRes.js +5 -0
  126. package/dist/cjs/api/types/LineItemGroupListRes.d.ts +1 -1
  127. package/dist/cjs/api/types/NotificationAdHocListRes.d.ts +8 -0
  128. package/dist/cjs/api/types/NotificationAdHocListRes.js +5 -0
  129. package/dist/cjs/api/types/NotificationGroupListRes.d.ts +8 -0
  130. package/dist/cjs/api/types/NotificationGroupListRes.js +5 -0
  131. package/dist/cjs/api/types/NotificationGroupUserListRes.d.ts +8 -0
  132. package/dist/cjs/api/types/NotificationGroupUserListRes.js +5 -0
  133. package/dist/cjs/api/types/OffChrtShipperOrgListRes.d.ts +8 -0
  134. package/dist/cjs/api/types/OffChrtShipperOrgListRes.js +5 -0
  135. package/dist/cjs/api/types/OrderDraftExpandedListRes.d.ts +1 -1
  136. package/dist/cjs/api/types/OrdersExpandedListRes.d.ts +1 -1
  137. package/dist/cjs/api/types/OrgMemberListRes.d.ts +8 -0
  138. package/dist/cjs/api/types/OrgMemberListRes.js +5 -0
  139. package/dist/cjs/api/types/OrgMemberSortByEnum.d.ts +8 -0
  140. package/dist/cjs/api/types/OrgMemberSortByEnum.js +10 -0
  141. package/dist/cjs/api/types/OrgMembersAndDriversListRes.d.ts +8 -0
  142. package/dist/cjs/api/types/OrgMembersAndDriversListRes.js +5 -0
  143. package/dist/cjs/api/types/RateSheetListResponse.d.ts +1 -1
  144. package/dist/cjs/api/types/SessionListRes.d.ts +1 -1
  145. package/dist/cjs/api/types/ShipperConnectionListRes.d.ts +8 -0
  146. package/dist/cjs/api/types/ShipperConnectionListRes.js +5 -0
  147. package/dist/cjs/api/types/StatementsExpandedListRes.d.ts +1 -1
  148. package/dist/cjs/api/types/StatementsListRes.d.ts +1 -1
  149. package/dist/cjs/api/types/TaskGroupExpandedListRes.d.ts +1 -1
  150. package/dist/cjs/api/types/index.d.ts +14 -2
  151. package/dist/cjs/api/types/index.js +14 -2
  152. package/dist/cjs/version.d.ts +1 -1
  153. package/dist/cjs/version.js +1 -1
  154. package/dist/esm/Client.mjs +2 -2
  155. package/dist/esm/api/resources/billing/index.d.mts +1 -1
  156. package/dist/esm/api/resources/billing/index.mjs +1 -1
  157. package/dist/esm/api/resources/billing/resources/index.d.mts +1 -2
  158. package/dist/esm/api/resources/billing/resources/index.mjs +1 -2
  159. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +1 -0
  160. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +5 -1
  161. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListForCourierOrgV1Request.d.mts +3 -0
  162. package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.d.mts +3 -2
  163. package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.mjs +7 -3
  164. package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/RateSheetsListByOrgV1Request.d.mts +6 -2
  165. package/dist/esm/api/resources/billing/resources/rateSheets/index.d.mts +0 -1
  166. package/dist/esm/api/resources/billing/resources/rateSheets/index.mjs +0 -1
  167. package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +8 -2
  168. package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +28 -4
  169. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.mts +10 -1
  170. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.mts +10 -1
  171. package/dist/esm/api/resources/index.d.mts +2 -2
  172. package/dist/esm/api/resources/index.mjs +2 -2
  173. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +7 -3
  174. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +23 -11
  175. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.d.mts +14 -0
  176. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.d.mts +1 -0
  177. package/dist/esm/api/resources/notifications/resources/groups/client/Client.d.mts +18 -6
  178. package/dist/esm/api/resources/notifications/resources/groups/client/Client.mjs +71 -36
  179. package/dist/esm/api/resources/notifications/resources/groups/client/requests/GroupsListByOrgV1Request.d.mts +14 -0
  180. package/dist/esm/api/resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.d.mts +14 -0
  181. package/dist/esm/api/resources/notifications/resources/groups/client/requests/index.d.mts +2 -0
  182. package/dist/esm/api/resources/orgs/client/Client.d.mts +11 -3
  183. package/dist/esm/api/resources/orgs/client/Client.mjs +51 -16
  184. package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +23 -0
  185. package/dist/esm/api/resources/orgs/client/requests/index.d.mts +1 -0
  186. package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +27 -9
  187. package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +105 -48
  188. package/dist/esm/api/resources/orgs/resources/connections/client/index.d.mts +1 -0
  189. package/dist/esm/api/resources/orgs/resources/connections/client/index.mjs +1 -1
  190. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.d.mts +14 -0
  191. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.mjs +4 -0
  192. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.d.mts +14 -0
  193. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.mjs +4 -0
  194. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.d.mts +14 -0
  195. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.mjs +4 -0
  196. package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.d.mts +3 -0
  197. package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.mjs +1 -0
  198. package/dist/esm/api/resources/orgs/resources/index.d.mts +1 -0
  199. package/dist/esm/api/resources/orgs/resources/index.mjs +1 -0
  200. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.mts +9 -3
  201. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.mjs +35 -16
  202. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.d.mts +14 -0
  203. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.mjs +4 -0
  204. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/index.d.mts +1 -0
  205. package/dist/esm/api/resources/shipping/index.d.mts +1 -1
  206. package/dist/esm/api/resources/shipping/index.mjs +1 -1
  207. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +14 -8
  208. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +58 -24
  209. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +11 -4
  210. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +17 -6
  211. package/dist/esm/api/resources/shipping/resources/index.d.mts +3 -3
  212. package/dist/esm/api/resources/shipping/resources/index.mjs +3 -3
  213. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.mts +3 -0
  214. package/dist/esm/api/resources/shipping/resources/orderDrafts/index.d.mts +1 -1
  215. package/dist/esm/api/resources/shipping/resources/orderDrafts/index.mjs +1 -1
  216. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.mts +1 -1
  217. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.mjs +1 -1
  218. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.mts +3 -2
  219. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/index.d.mts +0 -1
  220. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/index.mjs +0 -1
  221. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.d.mts +1 -2
  222. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.mjs +1 -2
  223. package/dist/esm/api/resources/shipping/resources/orders/index.d.mts +1 -1
  224. package/dist/esm/api/resources/shipping/resources/orders/index.mjs +1 -1
  225. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +22 -4
  226. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +82 -6
  227. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForForwarderOperatorsV1Request.d.mts +6 -2
  228. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +6 -2
  229. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts +16 -0
  230. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs +4 -0
  231. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.mts +1 -0
  232. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/index.d.mts +0 -1
  233. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/index.mjs +0 -1
  234. package/dist/esm/api/resources/shipping/resources/orders/resources/index.d.mts +0 -1
  235. package/dist/esm/api/resources/shipping/resources/orders/resources/index.mjs +0 -1
  236. package/dist/esm/api/resources/shipping/resources/taskGroups/index.d.mts +1 -1
  237. package/dist/esm/api/resources/shipping/resources/taskGroups/index.mjs +1 -1
  238. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +22 -4
  239. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +82 -6
  240. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.mts +6 -2
  241. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.mts +6 -2
  242. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts +16 -0
  243. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs +4 -0
  244. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +1 -0
  245. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/index.d.mts +0 -1
  246. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/index.mjs +0 -1
  247. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.d.mts +1 -2
  248. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.mjs +1 -2
  249. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +5 -20
  250. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +15 -79
  251. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.mts +10 -1
  252. package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +0 -1
  253. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +4 -21
  254. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +8 -80
  255. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.mts +4 -1
  256. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +0 -1
  257. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.mts +2 -2
  258. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +2 -2
  259. package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.d.mts +12 -3
  260. package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.mjs +47 -16
  261. package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.d.mts +24 -0
  262. package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.mjs +4 -0
  263. package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/index.d.mts +1 -0
  264. package/dist/esm/api/types/CourierConnectionListRes.d.mts +8 -0
  265. package/dist/esm/api/types/CourierConnectionListRes.mjs +4 -0
  266. package/dist/esm/api/types/DeviceLimitedForList1.d.mts +1 -0
  267. package/dist/esm/api/types/DeviceListRes.d.mts +1 -1
  268. package/dist/esm/api/types/DevicePausedTimeWindow1.d.mts +7 -0
  269. package/dist/esm/api/types/DevicePausedTimeWindow1.mjs +4 -0
  270. package/dist/esm/api/types/{DeviceSearchRes.d.mts → DirectoryEntryListRes.d.mts} +2 -2
  271. package/dist/esm/api/types/DirectoryEntryListRes.mjs +4 -0
  272. package/dist/esm/api/types/DirectoryEntrySortByEnum.d.mts +9 -0
  273. package/dist/esm/api/types/DirectoryEntrySortByEnum.mjs +8 -0
  274. package/dist/esm/api/types/{SessionSearchRes.d.mts → DriverListRes.d.mts} +2 -2
  275. package/dist/esm/api/types/DriverListRes.mjs +4 -0
  276. package/dist/esm/api/types/ForwarderConnectionListRes.d.mts +8 -0
  277. package/dist/esm/api/types/ForwarderConnectionListRes.mjs +4 -0
  278. package/dist/esm/api/types/LineItemGroupListRes.d.mts +1 -1
  279. package/dist/esm/api/types/NotificationAdHocListRes.d.mts +8 -0
  280. package/dist/esm/api/types/NotificationAdHocListRes.mjs +4 -0
  281. package/dist/esm/api/types/NotificationGroupListRes.d.mts +8 -0
  282. package/dist/esm/api/types/NotificationGroupListRes.mjs +4 -0
  283. package/dist/esm/api/types/NotificationGroupUserListRes.d.mts +8 -0
  284. package/dist/esm/api/types/NotificationGroupUserListRes.mjs +4 -0
  285. package/dist/esm/api/types/OffChrtShipperOrgListRes.d.mts +8 -0
  286. package/dist/esm/api/types/OffChrtShipperOrgListRes.mjs +4 -0
  287. package/dist/esm/api/types/OrderDraftExpandedListRes.d.mts +1 -1
  288. package/dist/esm/api/types/OrdersExpandedListRes.d.mts +1 -1
  289. package/dist/esm/api/types/OrgMemberListRes.d.mts +8 -0
  290. package/dist/esm/api/types/OrgMemberListRes.mjs +4 -0
  291. package/dist/esm/api/types/OrgMemberSortByEnum.d.mts +8 -0
  292. package/dist/esm/api/types/OrgMemberSortByEnum.mjs +7 -0
  293. package/dist/esm/api/types/OrgMembersAndDriversListRes.d.mts +8 -0
  294. package/dist/esm/api/types/OrgMembersAndDriversListRes.mjs +4 -0
  295. package/dist/esm/api/types/RateSheetListResponse.d.mts +1 -1
  296. package/dist/esm/api/types/SessionListRes.d.mts +1 -1
  297. package/dist/esm/api/types/ShipperConnectionListRes.d.mts +8 -0
  298. package/dist/esm/api/types/ShipperConnectionListRes.mjs +4 -0
  299. package/dist/esm/api/types/StatementsExpandedListRes.d.mts +1 -1
  300. package/dist/esm/api/types/StatementsListRes.d.mts +1 -1
  301. package/dist/esm/api/types/TaskGroupExpandedListRes.d.mts +1 -1
  302. package/dist/esm/api/types/index.d.mts +14 -2
  303. package/dist/esm/api/types/index.mjs +14 -2
  304. package/dist/esm/version.d.mts +1 -1
  305. package/dist/esm/version.mjs +1 -1
  306. package/package.json +1 -1
  307. package/reference.md +307 -185
  308. package/dist/cjs/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.d.ts +0 -8
  309. package/dist/cjs/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.js +0 -10
  310. package/dist/cjs/api/resources/billing/resources/rateSheets/types/index.d.ts +0 -1
  311. package/dist/cjs/api/resources/billing/resources/rateSheets/types/index.js +0 -17
  312. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.d.ts +0 -8
  313. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.js +0 -10
  314. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.d.ts +0 -1
  315. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.js +0 -17
  316. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.d.ts +0 -8
  317. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.js +0 -10
  318. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.d.ts +0 -8
  319. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.js +0 -10
  320. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/index.d.ts +0 -2
  321. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/index.js +0 -18
  322. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.d.ts +0 -8
  323. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.js +0 -10
  324. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.d.ts +0 -8
  325. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.js +0 -10
  326. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.ts +0 -2
  327. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.js +0 -18
  328. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesSearchV1Request.d.ts +0 -21
  329. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsSearchV1Request.d.ts +0 -21
  330. package/dist/esm/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.d.mts +0 -8
  331. package/dist/esm/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.mjs +0 -7
  332. package/dist/esm/api/resources/billing/resources/rateSheets/types/index.d.mts +0 -1
  333. package/dist/esm/api/resources/billing/resources/rateSheets/types/index.mjs +0 -1
  334. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.d.mts +0 -8
  335. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.mjs +0 -7
  336. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.d.mts +0 -1
  337. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.mjs +0 -1
  338. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.d.mts +0 -8
  339. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.mjs +0 -7
  340. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.d.mts +0 -8
  341. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.mjs +0 -7
  342. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/index.d.mts +0 -2
  343. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/index.mjs +0 -2
  344. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.d.mts +0 -8
  345. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.mjs +0 -7
  346. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.d.mts +0 -8
  347. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.mjs +0 -7
  348. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.mts +0 -2
  349. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.mjs +0 -2
  350. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesSearchV1Request.d.mts +0 -21
  351. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsSearchV1Request.d.mts +0 -21
  352. /package/dist/cjs/api/resources/{tracking/resources/devices/client/requests/DevicesSearchV1Request.js → notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.js} +0 -0
  353. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionsSearchV1Request.js → notifications/resources/groups/client/requests/GroupsListByOrgV1Request.js} +0 -0
  354. /package/dist/cjs/api/{types/DeviceSearchRes.js → resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.js} +0 -0
  355. /package/dist/cjs/api/{types/SessionSearchRes.js → resources/orgs/client/requests/OrgsListMembersV1Request.js} +0 -0
  356. /package/dist/esm/api/resources/{tracking/resources/devices/client/requests/DevicesSearchV1Request.mjs → notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.mjs} +0 -0
  357. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionsSearchV1Request.mjs → notifications/resources/groups/client/requests/GroupsListByOrgV1Request.mjs} +0 -0
  358. /package/dist/esm/api/{types/DeviceSearchRes.mjs → resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.mjs} +0 -0
  359. /package/dist/esm/api/{types/SessionSearchRes.mjs → resources/orgs/client/requests/OrgsListMembersV1Request.mjs} +0 -0
@@ -56,25 +56,39 @@ class Groups {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Lists all notification groups for the caller's organization. | authz: min_org_role=operator | () -> (list[NotificationGroup1])
59
+ * Lists all notification groups for the caller's organization. | authz: min_org_role=operator | () -> (NotificationGroupListRes)
60
60
  *
61
+ * @param {Chrt.notifications.GroupsListByOrgV1Request} request
61
62
  * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
62
63
  *
64
+ * @throws {@link Chrt.UnprocessableEntityError}
65
+ *
63
66
  * @example
64
- * await client.notifications.groups.listByOrgV1()
67
+ * await client.notifications.groups.listByOrgV1({
68
+ * page: 1,
69
+ * page_size: 1
70
+ * })
65
71
  */
66
- listByOrgV1(requestOptions) {
67
- return core.HttpResponsePromise.fromPromise(this.__listByOrgV1(requestOptions));
72
+ listByOrgV1(request = {}, requestOptions) {
73
+ return core.HttpResponsePromise.fromPromise(this.__listByOrgV1(request, requestOptions));
68
74
  }
69
- __listByOrgV1(requestOptions) {
70
- return __awaiter(this, void 0, void 0, function* () {
71
- var _a, _b, _c, _d;
72
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
73
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
74
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "notifications/groups/list_by_org/v1"),
75
+ __listByOrgV1() {
76
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
77
+ var _a, _b, _c, _d, _e, _f;
78
+ const { page, page_size: pageSize } = request;
79
+ const _queryParams = {};
80
+ if (page !== undefined) {
81
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
82
+ }
83
+ if (pageSize !== undefined) {
84
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
85
+ }
86
+ let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
87
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
88
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "notifications/groups/list_by_org/v1"),
75
89
  method: "GET",
76
90
  headers: _headers,
77
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
91
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
78
92
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
79
93
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
80
94
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -83,11 +97,16 @@ class Groups {
83
97
  return { data: _response.body, rawResponse: _response.rawResponse };
84
98
  }
85
99
  if (_response.error.reason === "status-code") {
86
- throw new errors.ChrtError({
87
- statusCode: _response.error.statusCode,
88
- body: _response.error.body,
89
- rawResponse: _response.rawResponse,
90
- });
100
+ switch (_response.error.statusCode) {
101
+ case 422:
102
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
103
+ default:
104
+ throw new errors.ChrtError({
105
+ statusCode: _response.error.statusCode,
106
+ body: _response.error.body,
107
+ rawResponse: _response.rawResponse,
108
+ });
109
+ }
91
110
  }
92
111
  switch (_response.error.reason) {
93
112
  case "non-json":
@@ -166,41 +185,57 @@ class Groups {
166
185
  });
167
186
  }
168
187
  /**
169
- * Lists notification groups the caller is a member of. | () -> (list[NotificationGroupLimitedForDriver1])
188
+ * Lists notification groups the caller is a member of. | () -> (NotificationGroupUserListRes)
170
189
  *
190
+ * @param {Chrt.notifications.GroupsListByUserV1Request} request
171
191
  * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
172
192
  *
193
+ * @throws {@link Chrt.UnprocessableEntityError}
194
+ *
173
195
  * @example
174
- * await client.notifications.groups.listByUserV1()
196
+ * await client.notifications.groups.listByUserV1({
197
+ * page: 1,
198
+ * page_size: 1
199
+ * })
175
200
  */
176
- listByUserV1(requestOptions) {
177
- return core.HttpResponsePromise.fromPromise(this.__listByUserV1(requestOptions));
201
+ listByUserV1(request = {}, requestOptions) {
202
+ return core.HttpResponsePromise.fromPromise(this.__listByUserV1(request, requestOptions));
178
203
  }
179
- __listByUserV1(requestOptions) {
180
- return __awaiter(this, void 0, void 0, function* () {
181
- var _a, _b, _c, _d;
182
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
183
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
184
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "notifications/groups/list_by_user/v1"),
204
+ __listByUserV1() {
205
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
206
+ var _a, _b, _c, _d, _e, _f;
207
+ const { page, page_size: pageSize } = request;
208
+ const _queryParams = {};
209
+ if (page !== undefined) {
210
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
211
+ }
212
+ if (pageSize !== undefined) {
213
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
214
+ }
215
+ let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
216
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
217
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "notifications/groups/list_by_user/v1"),
185
218
  method: "GET",
186
219
  headers: _headers,
187
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
220
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
188
221
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
189
222
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
190
223
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
191
224
  });
192
225
  if (_response.ok) {
193
- return {
194
- data: _response.body,
195
- rawResponse: _response.rawResponse,
196
- };
226
+ return { data: _response.body, rawResponse: _response.rawResponse };
197
227
  }
198
228
  if (_response.error.reason === "status-code") {
199
- throw new errors.ChrtError({
200
- statusCode: _response.error.statusCode,
201
- body: _response.error.body,
202
- rawResponse: _response.rawResponse,
203
- });
229
+ switch (_response.error.statusCode) {
230
+ case 422:
231
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
232
+ default:
233
+ throw new errors.ChrtError({
234
+ statusCode: _response.error.statusCode,
235
+ body: _response.error.body,
236
+ rawResponse: _response.rawResponse,
237
+ });
238
+ }
204
239
  }
205
240
  switch (_response.error.reason) {
206
241
  case "non-json":
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * page: 1,
8
+ * page_size: 1
9
+ * }
10
+ */
11
+ export interface GroupsListByOrgV1Request {
12
+ page?: number | null;
13
+ page_size?: number | null;
14
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * page: 1,
8
+ * page_size: 1
9
+ * }
10
+ */
11
+ export interface GroupsListByUserV1Request {
12
+ page?: number | null;
13
+ page_size?: number | null;
14
+ }
@@ -1,2 +1,4 @@
1
+ export { type GroupsListByOrgV1Request } from "./GroupsListByOrgV1Request.js";
2
+ export { type GroupsListByUserV1Request } from "./GroupsListByUserV1Request.js";
1
3
  export { type NotificationGroupClientCreate1 } from "./NotificationGroupClientCreate1.js";
2
4
  export { type GroupsUpdateNameV1Request } from "./GroupsUpdateNameV1Request.js";
@@ -59,14 +59,22 @@ export declare class Orgs {
59
59
  getInfoV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.OrgInfoResponse>;
60
60
  private __getInfoV1;
61
61
  /**
62
- * Lists all members of the caller's organization with their roles and details. | () -> (list[OrgMemberDetails])
62
+ * Lists all members of the caller's organization with their roles and details. | () -> (OrgMemberListRes)
63
63
  *
64
+ * @param {Chrt.OrgsListMembersV1Request} request
64
65
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
65
66
  *
67
+ * @throws {@link Chrt.UnprocessableEntityError}
68
+ *
66
69
  * @example
67
- * await client.orgs.listMembersV1()
70
+ * await client.orgs.listMembersV1({
71
+ * sort_by: "first_name",
72
+ * sort_order: "asc",
73
+ * page: 1,
74
+ * page_size: 1
75
+ * })
68
76
  */
69
- listMembersV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.OrgMemberDetails[]>;
77
+ listMembersV1(request?: Chrt.OrgsListMembersV1Request, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.OrgMemberListRes>;
70
78
  private __listMembersV1;
71
79
  /**
72
80
  * Sets the org_type in Clerk's JWT public metadata. Returns True if already set and matching, sets it if not present, or raises exception if conflicting. | (SetOrgTypeReq) -> (bool)
@@ -137,25 +137,55 @@ class Orgs {
137
137
  });
138
138
  }
139
139
  /**
140
- * Lists all members of the caller's organization with their roles and details. | () -> (list[OrgMemberDetails])
140
+ * Lists all members of the caller's organization with their roles and details. | () -> (OrgMemberListRes)
141
141
  *
142
+ * @param {Chrt.OrgsListMembersV1Request} request
142
143
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
143
144
  *
145
+ * @throws {@link Chrt.UnprocessableEntityError}
146
+ *
144
147
  * @example
145
- * await client.orgs.listMembersV1()
148
+ * await client.orgs.listMembersV1({
149
+ * sort_by: "first_name",
150
+ * sort_order: "asc",
151
+ * page: 1,
152
+ * page_size: 1
153
+ * })
146
154
  */
147
- listMembersV1(requestOptions) {
148
- return core.HttpResponsePromise.fromPromise(this.__listMembersV1(requestOptions));
155
+ listMembersV1(request = {}, requestOptions) {
156
+ return core.HttpResponsePromise.fromPromise(this.__listMembersV1(request, requestOptions));
149
157
  }
150
- __listMembersV1(requestOptions) {
151
- return __awaiter(this, void 0, void 0, function* () {
152
- var _a, _b, _c, _d;
153
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
154
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
155
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "orgs/members/list/v1"),
158
+ __listMembersV1() {
159
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
160
+ var _a, _b, _c, _d, _e, _f;
161
+ const { filter_role: filterRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize } = request;
162
+ const _queryParams = {};
163
+ if (filterRole !== undefined) {
164
+ if (Array.isArray(filterRole)) {
165
+ _queryParams["filter_role"] = filterRole.map((item) => item);
166
+ }
167
+ else {
168
+ _queryParams["filter_role"] = filterRole;
169
+ }
170
+ }
171
+ if (sortBy !== undefined) {
172
+ _queryParams["sort_by"] = sortBy;
173
+ }
174
+ if (sortOrder !== undefined) {
175
+ _queryParams["sort_order"] = sortOrder;
176
+ }
177
+ if (page !== undefined) {
178
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
179
+ }
180
+ if (pageSize !== undefined) {
181
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
182
+ }
183
+ let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
184
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
185
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "orgs/members/list/v1"),
156
186
  method: "GET",
157
187
  headers: _headers,
158
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
188
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
159
189
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
160
190
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
161
191
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -164,11 +194,16 @@ class Orgs {
164
194
  return { data: _response.body, rawResponse: _response.rawResponse };
165
195
  }
166
196
  if (_response.error.reason === "status-code") {
167
- throw new errors.ChrtError({
168
- statusCode: _response.error.statusCode,
169
- body: _response.error.body,
170
- rawResponse: _response.rawResponse,
171
- });
197
+ switch (_response.error.statusCode) {
198
+ case 422:
199
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
200
+ default:
201
+ throw new errors.ChrtError({
202
+ statusCode: _response.error.statusCode,
203
+ body: _response.error.body,
204
+ rawResponse: _response.rawResponse,
205
+ });
206
+ }
172
207
  }
173
208
  switch (_response.error.reason) {
174
209
  case "non-json":
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * sort_by: "first_name",
9
+ * sort_order: "asc",
10
+ * page: 1,
11
+ * page_size: 1
12
+ * }
13
+ */
14
+ export interface OrgsListMembersV1Request {
15
+ /** Filter by organization role(s) */
16
+ filter_role?: (Chrt.OrgRoleEnum | null) | (Chrt.OrgRoleEnum | null)[];
17
+ /** Field to sort by */
18
+ sort_by?: Chrt.OrgMemberSortByEnum | null;
19
+ /** Sort order (asc or desc) */
20
+ sort_order?: Chrt.SortOrderEnum | null;
21
+ page?: number | null;
22
+ page_size?: number | null;
23
+ }
@@ -1 +1,2 @@
1
+ export { type OrgsListMembersV1Request } from "./OrgsListMembersV1Request.js";
1
2
  export { type SetOrgTypeReq } from "./SetOrgTypeReq.js";
@@ -31,34 +31,52 @@ export declare class Connections {
31
31
  protected readonly _options: Connections.Options;
32
32
  constructor(_options?: Connections.Options);
33
33
  /**
34
- * Lists shipper organizations based on the caller's organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (list[ShipperConnectionRes])
34
+ * Lists shipper organizations based on the caller's organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (ShipperConnectionListRes)
35
35
  *
36
+ * @param {Chrt.orgs.ConnectionsListShippersV1Request} request
36
37
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
37
38
  *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
38
41
  * @example
39
- * await client.orgs.connections.listShippersV1()
42
+ * await client.orgs.connections.listShippersV1({
43
+ * page: 1,
44
+ * page_size: 1
45
+ * })
40
46
  */
41
- listShippersV1(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ShipperConnectionRes[]>;
47
+ listShippersV1(request?: Chrt.orgs.ConnectionsListShippersV1Request, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ShipperConnectionListRes>;
42
48
  private __listShippersV1;
43
49
  /**
44
- * Lists courier organizations based on the caller's organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (list[CourierConnectionRes])
50
+ * Lists courier organizations based on the caller's organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (CourierConnectionListRes)
45
51
  *
52
+ * @param {Chrt.orgs.ConnectionsListCouriersV1Request} request
46
53
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
47
54
  *
55
+ * @throws {@link Chrt.UnprocessableEntityError}
56
+ *
48
57
  * @example
49
- * await client.orgs.connections.listCouriersV1()
58
+ * await client.orgs.connections.listCouriersV1({
59
+ * page: 1,
60
+ * page_size: 1
61
+ * })
50
62
  */
51
- listCouriersV1(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.CourierConnectionRes[]>;
63
+ listCouriersV1(request?: Chrt.orgs.ConnectionsListCouriersV1Request, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.CourierConnectionListRes>;
52
64
  private __listCouriersV1;
53
65
  /**
54
- * Lists forwarder organizations based on the caller's organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (list[ForwarderConnectionRes])
66
+ * Lists forwarder organizations based on the caller's organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (ForwarderConnectionListRes)
55
67
  *
68
+ * @param {Chrt.orgs.ConnectionsListForwardersV1Request} request
56
69
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
57
70
  *
71
+ * @throws {@link Chrt.UnprocessableEntityError}
72
+ *
58
73
  * @example
59
- * await client.orgs.connections.listForwardersV1()
74
+ * await client.orgs.connections.listForwardersV1({
75
+ * page: 1,
76
+ * page_size: 1
77
+ * })
60
78
  */
61
- listForwardersV1(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ForwarderConnectionRes[]>;
79
+ listForwardersV1(request?: Chrt.orgs.ConnectionsListForwardersV1Request, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ForwarderConnectionListRes>;
62
80
  private __listForwardersV1;
63
81
  /**
64
82
  * Gets connection between caller's org and org with specified handle. | () -> (ShipperCourierConnection1 | ShipperForwarderConnection1 | ForwarderCourierConnection1 | None)
@@ -56,25 +56,39 @@ class Connections {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Lists shipper organizations based on the caller's organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (list[ShipperConnectionRes])
59
+ * Lists shipper organizations based on the caller's organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (ShipperConnectionListRes)
60
60
  *
61
+ * @param {Chrt.orgs.ConnectionsListShippersV1Request} request
61
62
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
62
63
  *
64
+ * @throws {@link Chrt.UnprocessableEntityError}
65
+ *
63
66
  * @example
64
- * await client.orgs.connections.listShippersV1()
67
+ * await client.orgs.connections.listShippersV1({
68
+ * page: 1,
69
+ * page_size: 1
70
+ * })
65
71
  */
66
- listShippersV1(requestOptions) {
67
- return core.HttpResponsePromise.fromPromise(this.__listShippersV1(requestOptions));
72
+ listShippersV1(request = {}, requestOptions) {
73
+ return core.HttpResponsePromise.fromPromise(this.__listShippersV1(request, requestOptions));
68
74
  }
69
- __listShippersV1(requestOptions) {
70
- return __awaiter(this, void 0, void 0, function* () {
71
- var _a, _b, _c, _d;
72
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
73
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
74
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "orgs/connections/shippers/list/v1"),
75
+ __listShippersV1() {
76
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
77
+ var _a, _b, _c, _d, _e, _f;
78
+ const { page, page_size: pageSize } = request;
79
+ const _queryParams = {};
80
+ if (page !== undefined) {
81
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
82
+ }
83
+ if (pageSize !== undefined) {
84
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
85
+ }
86
+ let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
87
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
88
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "orgs/connections/shippers/list/v1"),
75
89
  method: "GET",
76
90
  headers: _headers,
77
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
91
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
78
92
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
79
93
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
80
94
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -83,11 +97,16 @@ class Connections {
83
97
  return { data: _response.body, rawResponse: _response.rawResponse };
84
98
  }
85
99
  if (_response.error.reason === "status-code") {
86
- throw new errors.ChrtError({
87
- statusCode: _response.error.statusCode,
88
- body: _response.error.body,
89
- rawResponse: _response.rawResponse,
90
- });
100
+ switch (_response.error.statusCode) {
101
+ case 422:
102
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
103
+ default:
104
+ throw new errors.ChrtError({
105
+ statusCode: _response.error.statusCode,
106
+ body: _response.error.body,
107
+ rawResponse: _response.rawResponse,
108
+ });
109
+ }
91
110
  }
92
111
  switch (_response.error.reason) {
93
112
  case "non-json":
@@ -107,25 +126,39 @@ class Connections {
107
126
  });
108
127
  }
109
128
  /**
110
- * Lists courier organizations based on the caller's organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (list[CourierConnectionRes])
129
+ * Lists courier organizations based on the caller's organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (CourierConnectionListRes)
111
130
  *
131
+ * @param {Chrt.orgs.ConnectionsListCouriersV1Request} request
112
132
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
113
133
  *
134
+ * @throws {@link Chrt.UnprocessableEntityError}
135
+ *
114
136
  * @example
115
- * await client.orgs.connections.listCouriersV1()
137
+ * await client.orgs.connections.listCouriersV1({
138
+ * page: 1,
139
+ * page_size: 1
140
+ * })
116
141
  */
117
- listCouriersV1(requestOptions) {
118
- return core.HttpResponsePromise.fromPromise(this.__listCouriersV1(requestOptions));
142
+ listCouriersV1(request = {}, requestOptions) {
143
+ return core.HttpResponsePromise.fromPromise(this.__listCouriersV1(request, requestOptions));
119
144
  }
120
- __listCouriersV1(requestOptions) {
121
- return __awaiter(this, void 0, void 0, function* () {
122
- var _a, _b, _c, _d;
123
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
124
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
125
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "orgs/connections/couriers/list/v1"),
145
+ __listCouriersV1() {
146
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
147
+ var _a, _b, _c, _d, _e, _f;
148
+ const { page, page_size: pageSize } = request;
149
+ const _queryParams = {};
150
+ if (page !== undefined) {
151
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
152
+ }
153
+ if (pageSize !== undefined) {
154
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
155
+ }
156
+ let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
157
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
158
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "orgs/connections/couriers/list/v1"),
126
159
  method: "GET",
127
160
  headers: _headers,
128
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
161
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
129
162
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
130
163
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
131
164
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -134,11 +167,16 @@ class Connections {
134
167
  return { data: _response.body, rawResponse: _response.rawResponse };
135
168
  }
136
169
  if (_response.error.reason === "status-code") {
137
- throw new errors.ChrtError({
138
- statusCode: _response.error.statusCode,
139
- body: _response.error.body,
140
- rawResponse: _response.rawResponse,
141
- });
170
+ switch (_response.error.statusCode) {
171
+ case 422:
172
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
173
+ default:
174
+ throw new errors.ChrtError({
175
+ statusCode: _response.error.statusCode,
176
+ body: _response.error.body,
177
+ rawResponse: _response.rawResponse,
178
+ });
179
+ }
142
180
  }
143
181
  switch (_response.error.reason) {
144
182
  case "non-json":
@@ -158,25 +196,39 @@ class Connections {
158
196
  });
159
197
  }
160
198
  /**
161
- * Lists forwarder organizations based on the caller's organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (list[ForwarderConnectionRes])
199
+ * Lists forwarder organizations based on the caller's organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (ForwarderConnectionListRes)
162
200
  *
201
+ * @param {Chrt.orgs.ConnectionsListForwardersV1Request} request
163
202
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
164
203
  *
204
+ * @throws {@link Chrt.UnprocessableEntityError}
205
+ *
165
206
  * @example
166
- * await client.orgs.connections.listForwardersV1()
207
+ * await client.orgs.connections.listForwardersV1({
208
+ * page: 1,
209
+ * page_size: 1
210
+ * })
167
211
  */
168
- listForwardersV1(requestOptions) {
169
- return core.HttpResponsePromise.fromPromise(this.__listForwardersV1(requestOptions));
212
+ listForwardersV1(request = {}, requestOptions) {
213
+ return core.HttpResponsePromise.fromPromise(this.__listForwardersV1(request, requestOptions));
170
214
  }
171
- __listForwardersV1(requestOptions) {
172
- return __awaiter(this, void 0, void 0, function* () {
173
- var _a, _b, _c, _d;
174
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
175
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
176
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "orgs/connections/forwarders/list/v1"),
215
+ __listForwardersV1() {
216
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
217
+ var _a, _b, _c, _d, _e, _f;
218
+ const { page, page_size: pageSize } = request;
219
+ const _queryParams = {};
220
+ if (page !== undefined) {
221
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
222
+ }
223
+ if (pageSize !== undefined) {
224
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
225
+ }
226
+ let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
227
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
228
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "orgs/connections/forwarders/list/v1"),
177
229
  method: "GET",
178
230
  headers: _headers,
179
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
231
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
180
232
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
181
233
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
182
234
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -185,11 +237,16 @@ class Connections {
185
237
  return { data: _response.body, rawResponse: _response.rawResponse };
186
238
  }
187
239
  if (_response.error.reason === "status-code") {
188
- throw new errors.ChrtError({
189
- statusCode: _response.error.statusCode,
190
- body: _response.error.body,
191
- rawResponse: _response.rawResponse,
192
- });
240
+ switch (_response.error.statusCode) {
241
+ case 422:
242
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
243
+ default:
244
+ throw new errors.ChrtError({
245
+ statusCode: _response.error.statusCode,
246
+ body: _response.error.body,
247
+ rawResponse: _response.rawResponse,
248
+ });
249
+ }
193
250
  }
194
251
  switch (_response.error.reason) {
195
252
  case "non-json":
@@ -1 +1,2 @@
1
1
  export {};
2
+ export * from "./requests/index.js";