@chrt-inc/typescript-sdk 1.876.0 → 1.880.0

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 (238) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +83 -36
  3. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +260 -79
  4. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCoordinatorsForExecutorV1Request.d.ts +23 -0
  5. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCoordinatorsForShipperV1Request.d.ts +20 -0
  6. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListExecutorsForCoordinatorV1Request.d.ts +23 -0
  7. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListExecutorsGeoSearchForCoordinatorV1Request.d.ts +26 -0
  8. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersForCoordinatorV1Request.d.ts +20 -0
  9. package/dist/{esm/api/resources/orgs/resources/connections/client/requests/ProviderProviderUpdateAutoAssignReq.d.mts → cjs/api/resources/orgs/resources/connections/client/requests/CoordinatorExecutorUpdateAutoAssignReq.d.ts} +1 -1
  10. package/dist/{esm/api/resources/orgs/resources/connections/client/requests/ShipperProviderConnectionClientUpdate1.d.mts → cjs/api/resources/orgs/resources/connections/client/requests/ShipperCoordinatorConnectionClientUpdate1.d.ts} +1 -1
  11. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.d.ts +7 -5
  12. package/dist/cjs/api/resources/orgs/resources/connections/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/orgs/resources/connections/index.js +1 -0
  14. package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/Client.d.ts +50 -0
  15. package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/Client.js +136 -0
  16. package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/index.d.ts +2 -0
  17. package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/index.js +17 -0
  18. package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/requests/CoordinatorsTypeaheadV1Request.d.ts +16 -0
  19. package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/requests/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/requests/index.js +2 -0
  21. package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/index.js +17 -0
  23. package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/Client.d.ts +50 -0
  24. package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/Client.js +136 -0
  25. package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/index.d.ts +2 -0
  26. package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/index.js +17 -0
  27. package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/requests/ExecutorsTypeaheadV1Request.d.ts +16 -0
  28. package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/requests/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/requests/index.js +2 -0
  30. package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/index.js +17 -0
  32. package/dist/cjs/api/resources/orgs/resources/connections/resources/index.d.ts +6 -0
  33. package/dist/cjs/api/resources/orgs/resources/connections/resources/index.js +45 -0
  34. package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/client/Client.d.ts +50 -0
  35. package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/client/Client.js +136 -0
  36. package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/client/index.d.ts +2 -0
  37. package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/client/index.js +17 -0
  38. package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/client/requests/ShippersTypeaheadV1Request.d.ts +16 -0
  39. package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/client/requests/index.d.ts +1 -0
  40. package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/client/requests/index.js +2 -0
  41. package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/index.d.ts +1 -0
  42. package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/index.js +17 -0
  43. package/dist/cjs/api/resources/orgs/resources/connections/types/ConnectionsGetByHandleV1Response.d.ts +1 -1
  44. package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/Client.d.ts +2 -2
  45. package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/Client.js +2 -2
  46. package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/requests/OffChrtOrgDataListV1Request.d.ts +1 -1
  47. package/dist/cjs/api/resources/shipping/resources/cargos/client/Client.d.ts +1 -1
  48. package/dist/cjs/api/resources/shipping/resources/cargos/client/Client.js +1 -1
  49. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +1 -1
  50. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +1 -1
  51. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.ts +1 -1
  52. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.js +1 -1
  53. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +44 -4
  54. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +3 -1
  55. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +3 -1
  56. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -1
  57. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +3 -1
  58. package/dist/cjs/api/types/ConnectionTypeaheadFieldEnum.d.ts +4 -0
  59. package/dist/cjs/api/types/ConnectionTypeaheadResult.d.ts +8 -0
  60. package/dist/cjs/api/types/ConnectionTypeaheadValue.d.ts +7 -0
  61. package/dist/{esm/api/types/ProviderProviderConnection1.d.mts → cjs/api/types/CoordinatorExecutorConnection1.d.ts} +1 -1
  62. package/dist/cjs/api/types/CoordinatorExecutorConnection1.js +5 -0
  63. package/dist/cjs/api/types/CoordinatorExecutorConnectionForCoordinatorGeoSearchListItem.d.ts +10 -0
  64. package/dist/cjs/api/types/CoordinatorExecutorConnectionForCoordinatorGeoSearchListItem.js +5 -0
  65. package/dist/cjs/api/types/CoordinatorExecutorConnectionForCoordinatorListItem.d.ts +9 -0
  66. package/dist/cjs/api/types/CoordinatorExecutorConnectionForCoordinatorListItem.js +5 -0
  67. package/dist/cjs/api/types/CoordinatorExecutorConnectionForExecutorListItem.d.ts +8 -0
  68. package/dist/cjs/api/types/CoordinatorExecutorConnectionForExecutorListItem.js +5 -0
  69. package/dist/cjs/api/types/CoordinatorExecutorConnectionsForCoordinatorGeoSearchListRes.d.ts +8 -0
  70. package/dist/cjs/api/types/CoordinatorExecutorConnectionsForCoordinatorGeoSearchListRes.js +5 -0
  71. package/dist/cjs/api/types/CoordinatorExecutorConnectionsForCoordinatorListRes.d.ts +8 -0
  72. package/dist/cjs/api/types/CoordinatorExecutorConnectionsForCoordinatorListRes.js +5 -0
  73. package/dist/cjs/api/types/{ShipperProviderConnectionsForCoordinatorListRes.d.ts → CoordinatorExecutorConnectionsForExecutorListRes.d.ts} +2 -2
  74. package/dist/cjs/api/types/CoordinatorExecutorConnectionsForExecutorListRes.js +5 -0
  75. package/dist/cjs/api/types/Order1.d.ts +2 -0
  76. package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +2 -0
  77. package/dist/cjs/api/types/OrderLimitedForExecutor1.d.ts +2 -0
  78. package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +2 -0
  79. package/dist/cjs/api/types/OrderLimitedForShipper1.d.ts +2 -0
  80. package/dist/cjs/api/types/OrderTaskGroupExecutorDetails1.d.ts +2 -0
  81. package/dist/cjs/api/types/OrderTaskGroupSharedDetails1.d.ts +2 -0
  82. package/dist/cjs/api/types/OrderTypeaheadFieldEnum.d.ts +2 -1
  83. package/dist/cjs/api/types/OrderTypeaheadFieldEnum.js +1 -0
  84. package/dist/cjs/api/types/{ShipperProviderConnection1.d.ts → ShipperCoordinatorConnection1.d.ts} +1 -1
  85. package/dist/cjs/api/types/ShipperCoordinatorConnection1.js +5 -0
  86. package/dist/cjs/api/types/{ShipperProviderConnectionForCoordinatorListItem.d.ts → ShipperCoordinatorConnectionForCoordinatorListItem.d.ts} +2 -2
  87. package/dist/cjs/api/types/ShipperCoordinatorConnectionForCoordinatorListItem.js +5 -0
  88. package/dist/cjs/api/types/ShipperCoordinatorConnectionForShipperListItem.d.ts +8 -0
  89. package/dist/cjs/api/types/ShipperCoordinatorConnectionForShipperListItem.js +5 -0
  90. package/dist/cjs/api/types/ShipperCoordinatorConnectionsForCoordinatorListRes.d.ts +8 -0
  91. package/dist/cjs/api/types/ShipperCoordinatorConnectionsForCoordinatorListRes.js +5 -0
  92. package/dist/cjs/api/types/{ProviderProviderConnectionListRes.d.ts → ShipperCoordinatorConnectionsForShipperListRes.d.ts} +2 -2
  93. package/dist/cjs/api/types/ShipperCoordinatorConnectionsForShipperListRes.js +5 -0
  94. package/dist/cjs/api/types/index.d.ts +15 -9
  95. package/dist/cjs/api/types/index.js +15 -9
  96. package/dist/cjs/version.d.ts +1 -1
  97. package/dist/cjs/version.js +1 -1
  98. package/dist/esm/Client.mjs +2 -2
  99. package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +83 -36
  100. package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +260 -79
  101. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCoordinatorsForExecutorV1Request.d.mts +23 -0
  102. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCoordinatorsForShipperV1Request.d.mts +20 -0
  103. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListExecutorsForCoordinatorV1Request.d.mts +23 -0
  104. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListExecutorsGeoSearchForCoordinatorV1Request.d.mts +26 -0
  105. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersForCoordinatorV1Request.d.mts +20 -0
  106. package/dist/{cjs/api/resources/orgs/resources/connections/client/requests/ProviderProviderUpdateAutoAssignReq.d.ts → esm/api/resources/orgs/resources/connections/client/requests/CoordinatorExecutorUpdateAutoAssignReq.d.mts} +1 -1
  107. package/dist/{cjs/api/resources/orgs/resources/connections/client/requests/ShipperProviderConnectionClientUpdate1.d.ts → esm/api/resources/orgs/resources/connections/client/requests/ShipperCoordinatorConnectionClientUpdate1.d.mts} +1 -1
  108. package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.d.mts +7 -5
  109. package/dist/esm/api/resources/orgs/resources/connections/index.d.mts +1 -0
  110. package/dist/esm/api/resources/orgs/resources/connections/index.mjs +1 -0
  111. package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/Client.d.mts +50 -0
  112. package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/Client.mjs +99 -0
  113. package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/index.d.mts +2 -0
  114. package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/index.mjs +1 -0
  115. package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/requests/CoordinatorsTypeaheadV1Request.d.mts +16 -0
  116. package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/requests/index.d.mts +1 -0
  117. package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/requests/index.mjs +1 -0
  118. package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/index.d.mts +1 -0
  119. package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/index.mjs +1 -0
  120. package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/Client.d.mts +50 -0
  121. package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/Client.mjs +99 -0
  122. package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/index.d.mts +2 -0
  123. package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/index.mjs +1 -0
  124. package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/requests/ExecutorsTypeaheadV1Request.d.mts +16 -0
  125. package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/requests/index.d.mts +1 -0
  126. package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/requests/index.mjs +1 -0
  127. package/dist/esm/api/resources/orgs/resources/connections/resources/executors/index.d.mts +1 -0
  128. package/dist/esm/api/resources/orgs/resources/connections/resources/executors/index.mjs +1 -0
  129. package/dist/esm/api/resources/orgs/resources/connections/resources/index.d.mts +6 -0
  130. package/dist/esm/api/resources/orgs/resources/connections/resources/index.mjs +6 -0
  131. package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/Client.d.mts +50 -0
  132. package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/Client.mjs +99 -0
  133. package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/index.d.mts +2 -0
  134. package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/index.mjs +1 -0
  135. package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/requests/ShippersTypeaheadV1Request.d.mts +16 -0
  136. package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/requests/index.d.mts +1 -0
  137. package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/requests/index.mjs +1 -0
  138. package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/index.d.mts +1 -0
  139. package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/index.mjs +1 -0
  140. package/dist/esm/api/resources/orgs/resources/connections/types/ConnectionsGetByHandleV1Response.d.mts +1 -1
  141. package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/Client.d.mts +2 -2
  142. package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/Client.mjs +2 -2
  143. package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/requests/OffChrtOrgDataListV1Request.d.mts +1 -1
  144. package/dist/esm/api/resources/shipping/resources/cargos/client/Client.d.mts +1 -1
  145. package/dist/esm/api/resources/shipping/resources/cargos/client/Client.mjs +1 -1
  146. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +1 -1
  147. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +1 -1
  148. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.mts +1 -1
  149. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.mjs +1 -1
  150. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +44 -4
  151. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +3 -1
  152. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +3 -1
  153. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -1
  154. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +3 -1
  155. package/dist/esm/api/types/ConnectionTypeaheadFieldEnum.d.mts +4 -0
  156. package/dist/esm/api/types/ConnectionTypeaheadResult.d.mts +8 -0
  157. package/dist/esm/api/types/ConnectionTypeaheadValue.d.mts +7 -0
  158. package/dist/{cjs/api/types/ProviderProviderConnection1.d.ts → esm/api/types/CoordinatorExecutorConnection1.d.mts} +1 -1
  159. package/dist/esm/api/types/CoordinatorExecutorConnection1.mjs +4 -0
  160. package/dist/esm/api/types/CoordinatorExecutorConnectionForCoordinatorGeoSearchListItem.d.mts +10 -0
  161. package/dist/esm/api/types/CoordinatorExecutorConnectionForCoordinatorGeoSearchListItem.mjs +4 -0
  162. package/dist/esm/api/types/CoordinatorExecutorConnectionForCoordinatorListItem.d.mts +9 -0
  163. package/dist/esm/api/types/CoordinatorExecutorConnectionForCoordinatorListItem.mjs +4 -0
  164. package/dist/esm/api/types/CoordinatorExecutorConnectionForExecutorListItem.d.mts +8 -0
  165. package/dist/esm/api/types/CoordinatorExecutorConnectionForExecutorListItem.mjs +4 -0
  166. package/dist/esm/api/types/CoordinatorExecutorConnectionsForCoordinatorGeoSearchListRes.d.mts +8 -0
  167. package/dist/esm/api/types/CoordinatorExecutorConnectionsForCoordinatorGeoSearchListRes.mjs +4 -0
  168. package/dist/esm/api/types/CoordinatorExecutorConnectionsForCoordinatorListRes.d.mts +8 -0
  169. package/dist/esm/api/types/CoordinatorExecutorConnectionsForCoordinatorListRes.mjs +4 -0
  170. package/dist/esm/api/types/{ShipperProviderConnectionsForCoordinatorListRes.d.mts → CoordinatorExecutorConnectionsForExecutorListRes.d.mts} +2 -2
  171. package/dist/esm/api/types/CoordinatorExecutorConnectionsForExecutorListRes.mjs +4 -0
  172. package/dist/esm/api/types/Order1.d.mts +2 -0
  173. package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +2 -0
  174. package/dist/esm/api/types/OrderLimitedForExecutor1.d.mts +2 -0
  175. package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +2 -0
  176. package/dist/esm/api/types/OrderLimitedForShipper1.d.mts +2 -0
  177. package/dist/esm/api/types/OrderTaskGroupExecutorDetails1.d.mts +2 -0
  178. package/dist/esm/api/types/OrderTaskGroupSharedDetails1.d.mts +2 -0
  179. package/dist/esm/api/types/OrderTypeaheadFieldEnum.d.mts +2 -1
  180. package/dist/esm/api/types/OrderTypeaheadFieldEnum.mjs +1 -0
  181. package/dist/esm/api/types/{ShipperProviderConnection1.d.mts → ShipperCoordinatorConnection1.d.mts} +1 -1
  182. package/dist/esm/api/types/ShipperCoordinatorConnection1.mjs +4 -0
  183. package/dist/esm/api/types/{ShipperProviderConnectionForCoordinatorListItem.d.mts → ShipperCoordinatorConnectionForCoordinatorListItem.d.mts} +2 -2
  184. package/dist/esm/api/types/ShipperCoordinatorConnectionForCoordinatorListItem.mjs +4 -0
  185. package/dist/esm/api/types/ShipperCoordinatorConnectionForShipperListItem.d.mts +8 -0
  186. package/dist/esm/api/types/ShipperCoordinatorConnectionForShipperListItem.mjs +4 -0
  187. package/dist/esm/api/types/ShipperCoordinatorConnectionsForCoordinatorListRes.d.mts +8 -0
  188. package/dist/esm/api/types/ShipperCoordinatorConnectionsForCoordinatorListRes.mjs +4 -0
  189. package/dist/esm/api/types/{ProviderProviderConnectionListRes.d.mts → ShipperCoordinatorConnectionsForShipperListRes.d.mts} +2 -2
  190. package/dist/esm/api/types/ShipperCoordinatorConnectionsForShipperListRes.mjs +4 -0
  191. package/dist/esm/api/types/index.d.mts +15 -9
  192. package/dist/esm/api/types/index.mjs +15 -9
  193. package/dist/esm/version.d.mts +1 -1
  194. package/dist/esm/version.mjs +1 -1
  195. package/package.json +1 -1
  196. package/reference.md +375 -33
  197. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListProviderProviderV1Request.d.ts +0 -33
  198. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListProvidersV1Request.d.ts +0 -17
  199. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.d.ts +0 -17
  200. package/dist/cjs/api/types/ProviderProviderConnectionCallerRoleEnum.d.ts +0 -8
  201. package/dist/cjs/api/types/ProviderProviderConnectionCallerRoleEnum.js +0 -10
  202. package/dist/cjs/api/types/ProviderProviderConnectionListItem.d.ts +0 -11
  203. package/dist/cjs/api/types/ShipperProviderConnectionForShipperListItem.d.ts +0 -8
  204. package/dist/cjs/api/types/ShipperProviderConnectionsForShipperListRes.d.ts +0 -8
  205. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListProviderProviderV1Request.d.mts +0 -33
  206. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListProvidersV1Request.d.mts +0 -17
  207. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.d.mts +0 -17
  208. package/dist/esm/api/types/ProviderProviderConnectionCallerRoleEnum.d.mts +0 -8
  209. package/dist/esm/api/types/ProviderProviderConnectionCallerRoleEnum.mjs +0 -7
  210. package/dist/esm/api/types/ProviderProviderConnectionListItem.d.mts +0 -11
  211. package/dist/esm/api/types/ShipperProviderConnectionForShipperListItem.d.mts +0 -8
  212. package/dist/esm/api/types/ShipperProviderConnectionsForShipperListRes.d.mts +0 -8
  213. /package/dist/cjs/api/resources/orgs/resources/connections/client/requests/{ConnectionsListProviderProviderV1Request.js → ConnectionsListCoordinatorsForExecutorV1Request.js} +0 -0
  214. /package/dist/cjs/api/resources/orgs/resources/connections/client/requests/{ConnectionsListProvidersV1Request.js → ConnectionsListCoordinatorsForShipperV1Request.js} +0 -0
  215. /package/dist/cjs/api/resources/orgs/resources/connections/client/requests/{ConnectionsListShippersV1Request.js → ConnectionsListExecutorsForCoordinatorV1Request.js} +0 -0
  216. /package/dist/cjs/api/resources/orgs/resources/connections/client/requests/{ProviderProviderUpdateAutoAssignReq.js → ConnectionsListExecutorsGeoSearchForCoordinatorV1Request.js} +0 -0
  217. /package/dist/cjs/api/resources/orgs/resources/connections/client/requests/{ShipperProviderConnectionClientUpdate1.js → ConnectionsListShippersForCoordinatorV1Request.js} +0 -0
  218. /package/dist/cjs/api/{types/ProviderProviderConnection1.js → resources/orgs/resources/connections/client/requests/CoordinatorExecutorUpdateAutoAssignReq.js} +0 -0
  219. /package/dist/cjs/api/{types/ProviderProviderConnectionListItem.js → resources/orgs/resources/connections/client/requests/ShipperCoordinatorConnectionClientUpdate1.js} +0 -0
  220. /package/dist/cjs/api/{types/ProviderProviderConnectionListRes.js → resources/orgs/resources/connections/resources/coordinators/client/requests/CoordinatorsTypeaheadV1Request.js} +0 -0
  221. /package/dist/cjs/api/{types/ShipperProviderConnection1.js → resources/orgs/resources/connections/resources/executors/client/requests/ExecutorsTypeaheadV1Request.js} +0 -0
  222. /package/dist/cjs/api/{types/ShipperProviderConnectionForCoordinatorListItem.js → resources/orgs/resources/connections/resources/shippers/client/requests/ShippersTypeaheadV1Request.js} +0 -0
  223. /package/dist/cjs/api/types/{ShipperProviderConnectionForShipperListItem.js → ConnectionTypeaheadFieldEnum.js} +0 -0
  224. /package/dist/cjs/api/types/{ShipperProviderConnectionsForCoordinatorListRes.js → ConnectionTypeaheadResult.js} +0 -0
  225. /package/dist/cjs/api/types/{ShipperProviderConnectionsForShipperListRes.js → ConnectionTypeaheadValue.js} +0 -0
  226. /package/dist/esm/api/resources/orgs/resources/connections/client/requests/{ConnectionsListProviderProviderV1Request.mjs → ConnectionsListCoordinatorsForExecutorV1Request.mjs} +0 -0
  227. /package/dist/esm/api/resources/orgs/resources/connections/client/requests/{ConnectionsListProvidersV1Request.mjs → ConnectionsListCoordinatorsForShipperV1Request.mjs} +0 -0
  228. /package/dist/esm/api/resources/orgs/resources/connections/client/requests/{ConnectionsListShippersV1Request.mjs → ConnectionsListExecutorsForCoordinatorV1Request.mjs} +0 -0
  229. /package/dist/esm/api/resources/orgs/resources/connections/client/requests/{ProviderProviderUpdateAutoAssignReq.mjs → ConnectionsListExecutorsGeoSearchForCoordinatorV1Request.mjs} +0 -0
  230. /package/dist/esm/api/resources/orgs/resources/connections/client/requests/{ShipperProviderConnectionClientUpdate1.mjs → ConnectionsListShippersForCoordinatorV1Request.mjs} +0 -0
  231. /package/dist/esm/api/{types/ProviderProviderConnection1.mjs → resources/orgs/resources/connections/client/requests/CoordinatorExecutorUpdateAutoAssignReq.mjs} +0 -0
  232. /package/dist/esm/api/{types/ProviderProviderConnectionListItem.mjs → resources/orgs/resources/connections/client/requests/ShipperCoordinatorConnectionClientUpdate1.mjs} +0 -0
  233. /package/dist/esm/api/{types/ProviderProviderConnectionListRes.mjs → resources/orgs/resources/connections/resources/coordinators/client/requests/CoordinatorsTypeaheadV1Request.mjs} +0 -0
  234. /package/dist/esm/api/{types/ShipperProviderConnection1.mjs → resources/orgs/resources/connections/resources/executors/client/requests/ExecutorsTypeaheadV1Request.mjs} +0 -0
  235. /package/dist/esm/api/{types/ShipperProviderConnectionForCoordinatorListItem.mjs → resources/orgs/resources/connections/resources/shippers/client/requests/ShippersTypeaheadV1Request.mjs} +0 -0
  236. /package/dist/esm/api/types/{ShipperProviderConnectionForShipperListItem.mjs → ConnectionTypeaheadFieldEnum.mjs} +0 -0
  237. /package/dist/esm/api/types/{ShipperProviderConnectionsForCoordinatorListRes.mjs → ConnectionTypeaheadResult.mjs} +0 -0
  238. /package/dist/esm/api/types/{ShipperProviderConnectionsForShipperListRes.mjs → ConnectionTypeaheadValue.mjs} +0 -0
@@ -51,12 +51,27 @@ const core = __importStar(require("../../../../../../core/index.js"));
51
51
  const Chrt = __importStar(require("../../../../../index.js"));
52
52
  const headers_js_1 = require("../../../../../../core/headers.js");
53
53
  const errors = __importStar(require("../../../../../../errors/index.js"));
54
+ const Client_js_1 = require("../resources/coordinators/client/Client.js");
55
+ const Client_js_2 = require("../resources/executors/client/Client.js");
56
+ const Client_js_3 = require("../resources/shippers/client/Client.js");
54
57
  class Connections {
55
58
  constructor(_options = {}) {
56
59
  this._options = _options;
57
60
  }
61
+ get coordinators() {
62
+ var _a;
63
+ return ((_a = this._coordinators) !== null && _a !== void 0 ? _a : (this._coordinators = new Client_js_1.Coordinators(this._options)));
64
+ }
65
+ get executors() {
66
+ var _a;
67
+ return ((_a = this._executors) !== null && _a !== void 0 ? _a : (this._executors = new Client_js_2.Executors(this._options)));
68
+ }
69
+ get shippers() {
70
+ var _a;
71
+ return ((_a = this._shippers) !== null && _a !== void 0 ? _a : (this._shippers = new Client_js_3.Shippers(this._options)));
72
+ }
58
73
  /**
59
- * Gets the connection between caller's org and the org with the specified handle. | () -> (ShipperProviderConnection1 | ProviderProviderConnection1 | None)
74
+ * Gets the connection between caller's org and the org with the specified handle. | () -> (ShipperCoordinatorConnection1 | CoordinatorExecutorConnection1 | None)
60
75
  *
61
76
  * @param {string} handle
62
77
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
@@ -118,7 +133,173 @@ class Connections {
118
133
  });
119
134
  }
120
135
  /**
121
- * Creates a connection to an on-CHRT provider; provider callers become the paying coordinator. | (CreateConnectionReq) -> (PydanticObjectId)
136
+ * Lists the caller's coordinator connections with filtering, pagination, and identity search. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (CoordinatorExecutorConnectionsForExecutorListRes)
137
+ *
138
+ * @param {Chrt.orgs.ConnectionsListCoordinatorsForExecutorV1Request} request
139
+ * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
140
+ *
141
+ * @throws {@link Chrt.UnprocessableEntityError}
142
+ *
143
+ * @example
144
+ * await client.orgs.connections.listCoordinatorsForExecutorV1({
145
+ * search: "search",
146
+ * page: 1,
147
+ * page_size: 1,
148
+ * filter_auto_assign_enabled: true,
149
+ * filter_connected: true
150
+ * })
151
+ */
152
+ listCoordinatorsForExecutorV1(request = {}, requestOptions) {
153
+ return core.HttpResponsePromise.fromPromise(this.__listCoordinatorsForExecutorV1(request, requestOptions));
154
+ }
155
+ __listCoordinatorsForExecutorV1() {
156
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
157
+ var _a, _b, _c, _d, _e, _f, _g, _h;
158
+ const { search, page, page_size: pageSize, filter_auto_assign_enabled: filterAutoAssignEnabled, filter_connected: filterConnected, } = request;
159
+ const _queryParams = {};
160
+ if (search !== undefined) {
161
+ _queryParams["search"] = search;
162
+ }
163
+ if (page !== undefined) {
164
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
165
+ }
166
+ if (pageSize !== undefined) {
167
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
168
+ }
169
+ if (filterAutoAssignEnabled !== undefined) {
170
+ _queryParams["filter_auto_assign_enabled"] = (_c = filterAutoAssignEnabled === null || filterAutoAssignEnabled === void 0 ? void 0 : filterAutoAssignEnabled.toString()) !== null && _c !== void 0 ? _c : null;
171
+ }
172
+ if (filterConnected !== undefined) {
173
+ _queryParams["filter_connected"] = (_d = filterConnected === null || filterConnected === void 0 ? void 0 : filterConnected.toString()) !== null && _d !== void 0 ? _d : null;
174
+ }
175
+ let _headers = (0, headers_js_1.mergeHeaders)((_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
176
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
177
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.ChrtEnvironment.Local, "orgs/connections/coordinators/list/for_executor/v1"),
178
+ method: "GET",
179
+ headers: _headers,
180
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
181
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
182
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
183
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
184
+ });
185
+ if (_response.ok) {
186
+ return {
187
+ data: _response.body,
188
+ rawResponse: _response.rawResponse,
189
+ };
190
+ }
191
+ if (_response.error.reason === "status-code") {
192
+ switch (_response.error.statusCode) {
193
+ case 422:
194
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
195
+ default:
196
+ throw new errors.ChrtError({
197
+ statusCode: _response.error.statusCode,
198
+ body: _response.error.body,
199
+ rawResponse: _response.rawResponse,
200
+ });
201
+ }
202
+ }
203
+ switch (_response.error.reason) {
204
+ case "non-json":
205
+ throw new errors.ChrtError({
206
+ statusCode: _response.error.statusCode,
207
+ body: _response.error.rawBody,
208
+ rawResponse: _response.rawResponse,
209
+ });
210
+ case "timeout":
211
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/connections/coordinators/list/for_executor/v1.");
212
+ case "unknown":
213
+ throw new errors.ChrtError({
214
+ message: _response.error.errorMessage,
215
+ rawResponse: _response.rawResponse,
216
+ });
217
+ }
218
+ });
219
+ }
220
+ /**
221
+ * Lists the caller's coordinator connections with filtering, pagination, and identity search. | authz: allowed_org_types=[shipper] | () -> (ShipperCoordinatorConnectionsForShipperListRes)
222
+ *
223
+ * @param {Chrt.orgs.ConnectionsListCoordinatorsForShipperV1Request} request
224
+ * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
225
+ *
226
+ * @throws {@link Chrt.UnprocessableEntityError}
227
+ *
228
+ * @example
229
+ * await client.orgs.connections.listCoordinatorsForShipperV1({
230
+ * search: "search",
231
+ * page: 1,
232
+ * page_size: 1,
233
+ * filter_connected: true
234
+ * })
235
+ */
236
+ listCoordinatorsForShipperV1(request = {}, requestOptions) {
237
+ return core.HttpResponsePromise.fromPromise(this.__listCoordinatorsForShipperV1(request, requestOptions));
238
+ }
239
+ __listCoordinatorsForShipperV1() {
240
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
241
+ var _a, _b, _c, _d, _e, _f, _g;
242
+ const { search, page, page_size: pageSize, filter_connected: filterConnected } = request;
243
+ const _queryParams = {};
244
+ if (search !== undefined) {
245
+ _queryParams["search"] = search;
246
+ }
247
+ if (page !== undefined) {
248
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
249
+ }
250
+ if (pageSize !== undefined) {
251
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
252
+ }
253
+ if (filterConnected !== undefined) {
254
+ _queryParams["filter_connected"] = (_c = filterConnected === null || filterConnected === void 0 ? void 0 : filterConnected.toString()) !== null && _c !== void 0 ? _c : null;
255
+ }
256
+ let _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);
257
+ const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
258
+ url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "orgs/connections/coordinators/list/for_shipper/v1"),
259
+ method: "GET",
260
+ headers: _headers,
261
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
262
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
263
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
264
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
265
+ });
266
+ if (_response.ok) {
267
+ return {
268
+ data: _response.body,
269
+ rawResponse: _response.rawResponse,
270
+ };
271
+ }
272
+ if (_response.error.reason === "status-code") {
273
+ switch (_response.error.statusCode) {
274
+ case 422:
275
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
276
+ default:
277
+ throw new errors.ChrtError({
278
+ statusCode: _response.error.statusCode,
279
+ body: _response.error.body,
280
+ rawResponse: _response.rawResponse,
281
+ });
282
+ }
283
+ }
284
+ switch (_response.error.reason) {
285
+ case "non-json":
286
+ throw new errors.ChrtError({
287
+ statusCode: _response.error.statusCode,
288
+ body: _response.error.rawBody,
289
+ rawResponse: _response.rawResponse,
290
+ });
291
+ case "timeout":
292
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/connections/coordinators/list/for_shipper/v1.");
293
+ case "unknown":
294
+ throw new errors.ChrtError({
295
+ message: _response.error.errorMessage,
296
+ rawResponse: _response.rawResponse,
297
+ });
298
+ }
299
+ });
300
+ }
301
+ /**
302
+ * Creates a shipper-coordinator or coordinator-executor connection to an on-CHRT provider. | (CreateConnectionReq) -> (PydanticObjectId)
122
303
  *
123
304
  * @param {Chrt.CreateConnectionReq} request
124
305
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
@@ -182,7 +363,7 @@ class Connections {
182
363
  });
183
364
  }
184
365
  /**
185
- * Creates a connection to an on-CHRT shipper. | authz: allowed_org_types=[provider] | (CreateConnectionReq) -> (PydanticObjectId)
366
+ * Creates a shipper-coordinator connection to an on-CHRT shipper. | authz: allowed_org_types=[provider] | (CreateConnectionReq) -> (PydanticObjectId)
186
367
  *
187
368
  * @param {Chrt.CreateConnectionReq} request
188
369
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
@@ -246,60 +427,48 @@ class Connections {
246
427
  });
247
428
  }
248
429
  /**
249
- * Lists provider-provider connections with the caller's coordinator or executor role, optionally sorted by counterparty proximity. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ProviderProviderConnectionListRes)
430
+ * Lists the caller's executor connections nearest to a location, with filtering and pagination. Executors without registered addresses follow geocoded results. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (CoordinatorExecutorConnectionsForCoordinatorGeoSearchListRes)
250
431
  *
251
- * @param {Chrt.orgs.ConnectionsListProviderProviderV1Request} request
432
+ * @param {Chrt.orgs.ConnectionsListExecutorsGeoSearchForCoordinatorV1Request} request
252
433
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
253
434
  *
254
435
  * @throws {@link Chrt.UnprocessableEntityError}
255
436
  *
256
437
  * @example
257
- * await client.orgs.connections.listProviderProviderV1({
258
- * search: "search",
438
+ * await client.orgs.connections.listExecutorsGeoSearchForCoordinatorV1({
439
+ * near_latitude: 1.1,
440
+ * near_longitude: 1.1,
259
441
  * page: 1,
260
442
  * page_size: 1,
261
- * latitude: 1.1,
262
- * longitude: 1.1,
263
- * filter_caller_connection_role: "coordinator",
264
- * filter_connected: true,
265
- * filter_auto_assign_enabled: true
443
+ * filter_auto_assign_enabled: true,
444
+ * filter_connected: true
266
445
  * })
267
446
  */
268
- listProviderProviderV1(request = {}, requestOptions) {
269
- return core.HttpResponsePromise.fromPromise(this.__listProviderProviderV1(request, requestOptions));
447
+ listExecutorsGeoSearchForCoordinatorV1(request, requestOptions) {
448
+ return core.HttpResponsePromise.fromPromise(this.__listExecutorsGeoSearchForCoordinatorV1(request, requestOptions));
270
449
  }
271
- __listProviderProviderV1() {
272
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
273
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
274
- const { search, page, page_size: pageSize, latitude, longitude, filter_caller_connection_role: filterCallerConnectionRole, filter_connected: filterConnected, filter_auto_assign_enabled: filterAutoAssignEnabled, } = request;
450
+ __listExecutorsGeoSearchForCoordinatorV1(request, requestOptions) {
451
+ return __awaiter(this, void 0, void 0, function* () {
452
+ var _a, _b, _c, _d, _e, _f, _g, _h;
453
+ const { near_latitude: nearLatitude, near_longitude: nearLongitude, page, page_size: pageSize, filter_auto_assign_enabled: filterAutoAssignEnabled, filter_connected: filterConnected, } = request;
275
454
  const _queryParams = {};
276
- if (search !== undefined) {
277
- _queryParams["search"] = search;
278
- }
455
+ _queryParams["near_latitude"] = nearLatitude.toString();
456
+ _queryParams["near_longitude"] = nearLongitude.toString();
279
457
  if (page !== undefined) {
280
458
  _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
281
459
  }
282
460
  if (pageSize !== undefined) {
283
461
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
284
462
  }
285
- if (latitude !== undefined) {
286
- _queryParams["latitude"] = (_c = latitude === null || latitude === void 0 ? void 0 : latitude.toString()) !== null && _c !== void 0 ? _c : null;
287
- }
288
- if (longitude !== undefined) {
289
- _queryParams["longitude"] = (_d = longitude === null || longitude === void 0 ? void 0 : longitude.toString()) !== null && _d !== void 0 ? _d : null;
290
- }
291
- if (filterCallerConnectionRole !== undefined) {
292
- _queryParams["filter_caller_connection_role"] = filterCallerConnectionRole;
463
+ if (filterAutoAssignEnabled !== undefined) {
464
+ _queryParams["filter_auto_assign_enabled"] = (_c = filterAutoAssignEnabled === null || filterAutoAssignEnabled === void 0 ? void 0 : filterAutoAssignEnabled.toString()) !== null && _c !== void 0 ? _c : null;
293
465
  }
294
466
  if (filterConnected !== undefined) {
295
- _queryParams["filter_connected"] = (_e = filterConnected === null || filterConnected === void 0 ? void 0 : filterConnected.toString()) !== null && _e !== void 0 ? _e : null;
467
+ _queryParams["filter_connected"] = (_d = filterConnected === null || filterConnected === void 0 ? void 0 : filterConnected.toString()) !== null && _d !== void 0 ? _d : null;
296
468
  }
297
- if (filterAutoAssignEnabled !== undefined) {
298
- _queryParams["filter_auto_assign_enabled"] = (_f = filterAutoAssignEnabled === null || filterAutoAssignEnabled === void 0 ? void 0 : filterAutoAssignEnabled.toString()) !== null && _f !== void 0 ? _f : null;
299
- }
300
- let _headers = (0, headers_js_1.mergeHeaders)((_g = this._options) === null || _g === void 0 ? void 0 : _g.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
301
- const _response = yield ((_h = this._options.fetcher) !== null && _h !== void 0 ? _h : core.fetcher)({
302
- url: core.url.join((_k = (_j = (yield core.Supplier.get(this._options.baseUrl))) !== null && _j !== void 0 ? _j : (yield core.Supplier.get(this._options.environment))) !== null && _k !== void 0 ? _k : environments.ChrtEnvironment.Local, "orgs/connections/provider_provider/list/v1"),
469
+ let _headers = (0, headers_js_1.mergeHeaders)((_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
470
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
471
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.ChrtEnvironment.Local, "orgs/connections/executors/geo_search/list/for_coordinator/v1"),
303
472
  method: "GET",
304
473
  headers: _headers,
305
474
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -333,7 +502,7 @@ class Connections {
333
502
  rawResponse: _response.rawResponse,
334
503
  });
335
504
  case "timeout":
336
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/connections/provider_provider/list/v1.");
505
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/connections/executors/geo_search/list/for_coordinator/v1.");
337
506
  case "unknown":
338
507
  throw new errors.ChrtError({
339
508
  message: _response.error.errorMessage,
@@ -343,27 +512,29 @@ class Connections {
343
512
  });
344
513
  }
345
514
  /**
346
- * Lists coordinator connections for the calling shipper. | authz: allowed_org_types=[shipper] | () -> (ShipperProviderConnectionsForShipperListRes)
515
+ * Lists the caller's executor connections with filtering, pagination, and identity search. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (CoordinatorExecutorConnectionsForCoordinatorListRes)
347
516
  *
348
- * @param {Chrt.orgs.ConnectionsListProvidersV1Request} request
517
+ * @param {Chrt.orgs.ConnectionsListExecutorsForCoordinatorV1Request} request
349
518
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
350
519
  *
351
520
  * @throws {@link Chrt.UnprocessableEntityError}
352
521
  *
353
522
  * @example
354
- * await client.orgs.connections.listProvidersV1({
523
+ * await client.orgs.connections.listExecutorsForCoordinatorV1({
355
524
  * search: "search",
356
525
  * page: 1,
357
- * page_size: 1
526
+ * page_size: 1,
527
+ * filter_auto_assign_enabled: true,
528
+ * filter_connected: true
358
529
  * })
359
530
  */
360
- listProvidersV1(request = {}, requestOptions) {
361
- return core.HttpResponsePromise.fromPromise(this.__listProvidersV1(request, requestOptions));
531
+ listExecutorsForCoordinatorV1(request = {}, requestOptions) {
532
+ return core.HttpResponsePromise.fromPromise(this.__listExecutorsForCoordinatorV1(request, requestOptions));
362
533
  }
363
- __listProvidersV1() {
534
+ __listExecutorsForCoordinatorV1() {
364
535
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
365
- var _a, _b, _c, _d, _e, _f;
366
- const { search, page, page_size: pageSize } = request;
536
+ var _a, _b, _c, _d, _e, _f, _g, _h;
537
+ const { search, page, page_size: pageSize, filter_auto_assign_enabled: filterAutoAssignEnabled, filter_connected: filterConnected, } = request;
367
538
  const _queryParams = {};
368
539
  if (search !== undefined) {
369
540
  _queryParams["search"] = search;
@@ -374,9 +545,15 @@ class Connections {
374
545
  if (pageSize !== undefined) {
375
546
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
376
547
  }
377
- 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);
378
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
379
- 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/providers/list/v1"),
548
+ if (filterAutoAssignEnabled !== undefined) {
549
+ _queryParams["filter_auto_assign_enabled"] = (_c = filterAutoAssignEnabled === null || filterAutoAssignEnabled === void 0 ? void 0 : filterAutoAssignEnabled.toString()) !== null && _c !== void 0 ? _c : null;
550
+ }
551
+ if (filterConnected !== undefined) {
552
+ _queryParams["filter_connected"] = (_d = filterConnected === null || filterConnected === void 0 ? void 0 : filterConnected.toString()) !== null && _d !== void 0 ? _d : null;
553
+ }
554
+ let _headers = (0, headers_js_1.mergeHeaders)((_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
555
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
556
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.ChrtEnvironment.Local, "orgs/connections/executors/list/for_coordinator/v1"),
380
557
  method: "GET",
381
558
  headers: _headers,
382
559
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -410,7 +587,7 @@ class Connections {
410
587
  rawResponse: _response.rawResponse,
411
588
  });
412
589
  case "timeout":
413
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/connections/providers/list/v1.");
590
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/connections/executors/list/for_coordinator/v1.");
414
591
  case "unknown":
415
592
  throw new errors.ChrtError({
416
593
  message: _response.error.errorMessage,
@@ -420,28 +597,28 @@ class Connections {
420
597
  });
421
598
  }
422
599
  /**
423
- * Sets an executor's consent to direct task-group assignment. | authz: allowed_org_types=[provider], min_org_role=administrator | (ProviderProviderUpdateAutoAssignReq) -> (bool)
600
+ * Sets an executor's consent to direct task-group assignment. | authz: allowed_org_types=[provider], min_org_role=administrator | (CoordinatorExecutorUpdateAutoAssignReq) -> (bool)
424
601
  *
425
602
  * @param {string} connectionId
426
- * @param {Chrt.orgs.ProviderProviderUpdateAutoAssignReq} request
603
+ * @param {Chrt.orgs.CoordinatorExecutorUpdateAutoAssignReq} request
427
604
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
428
605
  *
429
606
  * @throws {@link Chrt.UnprocessableEntityError}
430
607
  *
431
608
  * @example
432
- * await client.orgs.connections.setProviderProviderAutoAssignV1("connection_id", {
609
+ * await client.orgs.connections.setCoordinatorExecutorAutoAssignV1("connection_id", {
433
610
  * auto_assign_enabled: true
434
611
  * })
435
612
  */
436
- setProviderProviderAutoAssignV1(connectionId, request, requestOptions) {
437
- return core.HttpResponsePromise.fromPromise(this.__setProviderProviderAutoAssignV1(connectionId, request, requestOptions));
613
+ setCoordinatorExecutorAutoAssignV1(connectionId, request, requestOptions) {
614
+ return core.HttpResponsePromise.fromPromise(this.__setCoordinatorExecutorAutoAssignV1(connectionId, request, requestOptions));
438
615
  }
439
- __setProviderProviderAutoAssignV1(connectionId, request, requestOptions) {
616
+ __setCoordinatorExecutorAutoAssignV1(connectionId, request, requestOptions) {
440
617
  return __awaiter(this, void 0, void 0, function* () {
441
618
  var _a, _b, _c, _d;
442
619
  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);
443
620
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
444
- 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/set_provider_provider_auto_assign/v1/${encodeURIComponent(connectionId)}`),
621
+ 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/set_coordinator_executor_auto_assign/v1/${encodeURIComponent(connectionId)}`),
445
622
  method: "PATCH",
446
623
  headers: _headers,
447
624
  contentType: "application/json",
@@ -475,7 +652,7 @@ class Connections {
475
652
  rawResponse: _response.rawResponse,
476
653
  });
477
654
  case "timeout":
478
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/connections/set_provider_provider_auto_assign/v1/{connection_id}.");
655
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/connections/set_coordinator_executor_auto_assign/v1/{connection_id}.");
479
656
  case "unknown":
480
657
  throw new errors.ChrtError({
481
658
  message: _response.error.errorMessage,
@@ -485,26 +662,26 @@ class Connections {
485
662
  });
486
663
  }
487
664
  /**
488
- * Sets or clears the coordinator's default department for a shipper connection. | authz: allowed_org_types=[provider], min_org_role=operator | (ShipperProviderConnectionClientUpdate1) -> (bool)
665
+ * Sets or clears the coordinator's default department for a shipper-coordinator connection. | authz: allowed_org_types=[provider], min_org_role=operator | (ShipperCoordinatorConnectionClientUpdate1) -> (bool)
489
666
  *
490
667
  * @param {string} connectionId
491
- * @param {Chrt.orgs.ShipperProviderConnectionClientUpdate1} request
668
+ * @param {Chrt.orgs.ShipperCoordinatorConnectionClientUpdate1} request
492
669
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
493
670
  *
494
671
  * @throws {@link Chrt.UnprocessableEntityError}
495
672
  *
496
673
  * @example
497
- * await client.orgs.connections.setShipperProviderDefaultDepartmentV1("connection_id")
674
+ * await client.orgs.connections.setShipperCoordinatorDefaultDepartmentV1("connection_id")
498
675
  */
499
- setShipperProviderDefaultDepartmentV1(connectionId, request = {}, requestOptions) {
500
- return core.HttpResponsePromise.fromPromise(this.__setShipperProviderDefaultDepartmentV1(connectionId, request, requestOptions));
676
+ setShipperCoordinatorDefaultDepartmentV1(connectionId, request = {}, requestOptions) {
677
+ return core.HttpResponsePromise.fromPromise(this.__setShipperCoordinatorDefaultDepartmentV1(connectionId, request, requestOptions));
501
678
  }
502
- __setShipperProviderDefaultDepartmentV1(connectionId_1) {
679
+ __setShipperCoordinatorDefaultDepartmentV1(connectionId_1) {
503
680
  return __awaiter(this, arguments, void 0, function* (connectionId, request = {}, requestOptions) {
504
681
  var _a, _b, _c, _d;
505
682
  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);
506
683
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
507
- 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/set_shipper_provider_default_department/v1/${encodeURIComponent(connectionId)}`),
684
+ 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/set_shipper_coordinator_default_department/v1/${encodeURIComponent(connectionId)}`),
508
685
  method: "PATCH",
509
686
  headers: _headers,
510
687
  contentType: "application/json",
@@ -538,7 +715,7 @@ class Connections {
538
715
  rawResponse: _response.rawResponse,
539
716
  });
540
717
  case "timeout":
541
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/connections/set_shipper_provider_default_department/v1/{connection_id}.");
718
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/connections/set_shipper_coordinator_default_department/v1/{connection_id}.");
542
719
  case "unknown":
543
720
  throw new errors.ChrtError({
544
721
  message: _response.error.errorMessage,
@@ -548,27 +725,28 @@ class Connections {
548
725
  });
549
726
  }
550
727
  /**
551
- * Lists on- and off-CHRT shipper connections owned by the caller. | authz: allowed_org_types=[provider] | () -> (ShipperProviderConnectionsForCoordinatorListRes)
728
+ * Lists the caller's shipper connections with filtering, pagination, and identity search. | authz: allowed_org_types=[provider] | () -> (ShipperCoordinatorConnectionsForCoordinatorListRes)
552
729
  *
553
- * @param {Chrt.orgs.ConnectionsListShippersV1Request} request
730
+ * @param {Chrt.orgs.ConnectionsListShippersForCoordinatorV1Request} request
554
731
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
555
732
  *
556
733
  * @throws {@link Chrt.UnprocessableEntityError}
557
734
  *
558
735
  * @example
559
- * await client.orgs.connections.listShippersV1({
736
+ * await client.orgs.connections.listShippersForCoordinatorV1({
560
737
  * search: "search",
561
738
  * page: 1,
562
- * page_size: 1
739
+ * page_size: 1,
740
+ * filter_connected: true
563
741
  * })
564
742
  */
565
- listShippersV1(request = {}, requestOptions) {
566
- return core.HttpResponsePromise.fromPromise(this.__listShippersV1(request, requestOptions));
743
+ listShippersForCoordinatorV1(request = {}, requestOptions) {
744
+ return core.HttpResponsePromise.fromPromise(this.__listShippersForCoordinatorV1(request, requestOptions));
567
745
  }
568
- __listShippersV1() {
746
+ __listShippersForCoordinatorV1() {
569
747
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
570
- var _a, _b, _c, _d, _e, _f;
571
- const { search, page, page_size: pageSize } = request;
748
+ var _a, _b, _c, _d, _e, _f, _g;
749
+ const { search, page, page_size: pageSize, filter_connected: filterConnected } = request;
572
750
  const _queryParams = {};
573
751
  if (search !== undefined) {
574
752
  _queryParams["search"] = search;
@@ -579,9 +757,12 @@ class Connections {
579
757
  if (pageSize !== undefined) {
580
758
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
581
759
  }
582
- 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);
583
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
584
- 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"),
760
+ if (filterConnected !== undefined) {
761
+ _queryParams["filter_connected"] = (_c = filterConnected === null || filterConnected === void 0 ? void 0 : filterConnected.toString()) !== null && _c !== void 0 ? _c : null;
762
+ }
763
+ let _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);
764
+ const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
765
+ url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "orgs/connections/shippers/list/for_coordinator/v1"),
585
766
  method: "GET",
586
767
  headers: _headers,
587
768
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -615,7 +796,7 @@ class Connections {
615
796
  rawResponse: _response.rawResponse,
616
797
  });
617
798
  case "timeout":
618
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/connections/shippers/list/v1.");
799
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/connections/shippers/list/for_coordinator/v1.");
619
800
  case "unknown":
620
801
  throw new errors.ChrtError({
621
802
  message: _response.error.errorMessage,
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * search: "search",
8
+ * page: 1,
9
+ * page_size: 1,
10
+ * filter_auto_assign_enabled: true,
11
+ * filter_connected: true
12
+ * }
13
+ */
14
+ export interface ConnectionsListCoordinatorsForExecutorV1Request {
15
+ /** Search by organization identity details */
16
+ search?: string | null;
17
+ page?: number | null;
18
+ page_size?: number | null;
19
+ /** Filter by executor auto-assign consent */
20
+ filter_auto_assign_enabled?: boolean | null;
21
+ /** Filter by connection status */
22
+ filter_connected?: boolean | null;
23
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * search: "search",
8
+ * page: 1,
9
+ * page_size: 1,
10
+ * filter_connected: true
11
+ * }
12
+ */
13
+ export interface ConnectionsListCoordinatorsForShipperV1Request {
14
+ /** Search by organization identity details */
15
+ search?: string | null;
16
+ page?: number | null;
17
+ page_size?: number | null;
18
+ /** Filter by connection status */
19
+ filter_connected?: boolean | null;
20
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * search: "search",
8
+ * page: 1,
9
+ * page_size: 1,
10
+ * filter_auto_assign_enabled: true,
11
+ * filter_connected: true
12
+ * }
13
+ */
14
+ export interface ConnectionsListExecutorsForCoordinatorV1Request {
15
+ /** Search by organization identity details */
16
+ search?: string | null;
17
+ page?: number | null;
18
+ page_size?: number | null;
19
+ /** Filter by executor auto-assign consent */
20
+ filter_auto_assign_enabled?: boolean | null;
21
+ /** Filter by connection status */
22
+ filter_connected?: boolean | null;
23
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * near_latitude: 1.1,
8
+ * near_longitude: 1.1,
9
+ * page: 1,
10
+ * page_size: 1,
11
+ * filter_auto_assign_enabled: true,
12
+ * filter_connected: true
13
+ * }
14
+ */
15
+ export interface ConnectionsListExecutorsGeoSearchForCoordinatorV1Request {
16
+ /** Geo-search latitude */
17
+ near_latitude: number;
18
+ /** Geo-search longitude */
19
+ near_longitude: number;
20
+ page?: number | null;
21
+ page_size?: number | null;
22
+ /** Filter by executor auto-assign consent */
23
+ filter_auto_assign_enabled?: boolean | null;
24
+ /** Filter by connection status */
25
+ filter_connected?: boolean | null;
26
+ }