@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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +83 -36
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +260 -79
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCoordinatorsForExecutorV1Request.d.ts +23 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCoordinatorsForShipperV1Request.d.ts +20 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListExecutorsForCoordinatorV1Request.d.ts +23 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListExecutorsGeoSearchForCoordinatorV1Request.d.ts +26 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersForCoordinatorV1Request.d.ts +20 -0
- 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
- 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
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.d.ts +7 -5
- package/dist/cjs/api/resources/orgs/resources/connections/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/connections/index.js +1 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/Client.d.ts +50 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/Client.js +136 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/requests/CoordinatorsTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/Client.d.ts +50 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/Client.js +136 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/requests/ExecutorsTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/index.js +45 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/client/Client.d.ts +50 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/client/Client.js +136 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/client/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/client/requests/ShippersTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/connections/resources/shippers/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/connections/types/ConnectionsGetByHandleV1Response.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/Client.js +2 -2
- package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/requests/OffChrtOrgDataListV1Request.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/cargos/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/cargos/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +44 -4
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +3 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +3 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +3 -1
- package/dist/cjs/api/types/ConnectionTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/ConnectionTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/ConnectionTypeaheadValue.d.ts +7 -0
- package/dist/{esm/api/types/ProviderProviderConnection1.d.mts → cjs/api/types/CoordinatorExecutorConnection1.d.ts} +1 -1
- package/dist/cjs/api/types/CoordinatorExecutorConnection1.js +5 -0
- package/dist/cjs/api/types/CoordinatorExecutorConnectionForCoordinatorGeoSearchListItem.d.ts +10 -0
- package/dist/cjs/api/types/CoordinatorExecutorConnectionForCoordinatorGeoSearchListItem.js +5 -0
- package/dist/cjs/api/types/CoordinatorExecutorConnectionForCoordinatorListItem.d.ts +9 -0
- package/dist/cjs/api/types/CoordinatorExecutorConnectionForCoordinatorListItem.js +5 -0
- package/dist/cjs/api/types/CoordinatorExecutorConnectionForExecutorListItem.d.ts +8 -0
- package/dist/cjs/api/types/CoordinatorExecutorConnectionForExecutorListItem.js +5 -0
- package/dist/cjs/api/types/CoordinatorExecutorConnectionsForCoordinatorGeoSearchListRes.d.ts +8 -0
- package/dist/cjs/api/types/CoordinatorExecutorConnectionsForCoordinatorGeoSearchListRes.js +5 -0
- package/dist/cjs/api/types/CoordinatorExecutorConnectionsForCoordinatorListRes.d.ts +8 -0
- package/dist/cjs/api/types/CoordinatorExecutorConnectionsForCoordinatorListRes.js +5 -0
- package/dist/cjs/api/types/{ShipperProviderConnectionsForCoordinatorListRes.d.ts → CoordinatorExecutorConnectionsForExecutorListRes.d.ts} +2 -2
- package/dist/cjs/api/types/CoordinatorExecutorConnectionsForExecutorListRes.js +5 -0
- package/dist/cjs/api/types/Order1.d.ts +2 -0
- package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +2 -0
- package/dist/cjs/api/types/OrderLimitedForExecutor1.d.ts +2 -0
- package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +2 -0
- package/dist/cjs/api/types/OrderLimitedForShipper1.d.ts +2 -0
- package/dist/cjs/api/types/OrderTaskGroupExecutorDetails1.d.ts +2 -0
- package/dist/cjs/api/types/OrderTaskGroupSharedDetails1.d.ts +2 -0
- package/dist/cjs/api/types/OrderTypeaheadFieldEnum.d.ts +2 -1
- package/dist/cjs/api/types/OrderTypeaheadFieldEnum.js +1 -0
- package/dist/cjs/api/types/{ShipperProviderConnection1.d.ts → ShipperCoordinatorConnection1.d.ts} +1 -1
- package/dist/cjs/api/types/ShipperCoordinatorConnection1.js +5 -0
- package/dist/cjs/api/types/{ShipperProviderConnectionForCoordinatorListItem.d.ts → ShipperCoordinatorConnectionForCoordinatorListItem.d.ts} +2 -2
- package/dist/cjs/api/types/ShipperCoordinatorConnectionForCoordinatorListItem.js +5 -0
- package/dist/cjs/api/types/ShipperCoordinatorConnectionForShipperListItem.d.ts +8 -0
- package/dist/cjs/api/types/ShipperCoordinatorConnectionForShipperListItem.js +5 -0
- package/dist/cjs/api/types/ShipperCoordinatorConnectionsForCoordinatorListRes.d.ts +8 -0
- package/dist/cjs/api/types/ShipperCoordinatorConnectionsForCoordinatorListRes.js +5 -0
- package/dist/cjs/api/types/{ProviderProviderConnectionListRes.d.ts → ShipperCoordinatorConnectionsForShipperListRes.d.ts} +2 -2
- package/dist/cjs/api/types/ShipperCoordinatorConnectionsForShipperListRes.js +5 -0
- package/dist/cjs/api/types/index.d.ts +15 -9
- package/dist/cjs/api/types/index.js +15 -9
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +83 -36
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +260 -79
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCoordinatorsForExecutorV1Request.d.mts +23 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCoordinatorsForShipperV1Request.d.mts +20 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListExecutorsForCoordinatorV1Request.d.mts +23 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListExecutorsGeoSearchForCoordinatorV1Request.d.mts +26 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersForCoordinatorV1Request.d.mts +20 -0
- 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
- 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
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.d.mts +7 -5
- package/dist/esm/api/resources/orgs/resources/connections/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/Client.d.mts +50 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/Client.mjs +99 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/requests/CoordinatorsTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/Client.d.mts +50 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/Client.mjs +99 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/requests/ExecutorsTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/executors/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/executors/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/index.mjs +6 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/Client.d.mts +50 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/Client.mjs +99 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/requests/ShippersTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/types/ConnectionsGetByHandleV1Response.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/Client.mjs +2 -2
- package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/requests/OffChrtOrgDataListV1Request.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/cargos/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/cargos/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +44 -4
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +3 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +3 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +3 -1
- package/dist/esm/api/types/ConnectionTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/ConnectionTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/ConnectionTypeaheadValue.d.mts +7 -0
- package/dist/{cjs/api/types/ProviderProviderConnection1.d.ts → esm/api/types/CoordinatorExecutorConnection1.d.mts} +1 -1
- package/dist/esm/api/types/CoordinatorExecutorConnection1.mjs +4 -0
- package/dist/esm/api/types/CoordinatorExecutorConnectionForCoordinatorGeoSearchListItem.d.mts +10 -0
- package/dist/esm/api/types/CoordinatorExecutorConnectionForCoordinatorGeoSearchListItem.mjs +4 -0
- package/dist/esm/api/types/CoordinatorExecutorConnectionForCoordinatorListItem.d.mts +9 -0
- package/dist/esm/api/types/CoordinatorExecutorConnectionForCoordinatorListItem.mjs +4 -0
- package/dist/esm/api/types/CoordinatorExecutorConnectionForExecutorListItem.d.mts +8 -0
- package/dist/esm/api/types/CoordinatorExecutorConnectionForExecutorListItem.mjs +4 -0
- package/dist/esm/api/types/CoordinatorExecutorConnectionsForCoordinatorGeoSearchListRes.d.mts +8 -0
- package/dist/esm/api/types/CoordinatorExecutorConnectionsForCoordinatorGeoSearchListRes.mjs +4 -0
- package/dist/esm/api/types/CoordinatorExecutorConnectionsForCoordinatorListRes.d.mts +8 -0
- package/dist/esm/api/types/CoordinatorExecutorConnectionsForCoordinatorListRes.mjs +4 -0
- package/dist/esm/api/types/{ShipperProviderConnectionsForCoordinatorListRes.d.mts → CoordinatorExecutorConnectionsForExecutorListRes.d.mts} +2 -2
- package/dist/esm/api/types/CoordinatorExecutorConnectionsForExecutorListRes.mjs +4 -0
- package/dist/esm/api/types/Order1.d.mts +2 -0
- package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +2 -0
- package/dist/esm/api/types/OrderLimitedForExecutor1.d.mts +2 -0
- package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +2 -0
- package/dist/esm/api/types/OrderLimitedForShipper1.d.mts +2 -0
- package/dist/esm/api/types/OrderTaskGroupExecutorDetails1.d.mts +2 -0
- package/dist/esm/api/types/OrderTaskGroupSharedDetails1.d.mts +2 -0
- package/dist/esm/api/types/OrderTypeaheadFieldEnum.d.mts +2 -1
- package/dist/esm/api/types/OrderTypeaheadFieldEnum.mjs +1 -0
- package/dist/esm/api/types/{ShipperProviderConnection1.d.mts → ShipperCoordinatorConnection1.d.mts} +1 -1
- package/dist/esm/api/types/ShipperCoordinatorConnection1.mjs +4 -0
- package/dist/esm/api/types/{ShipperProviderConnectionForCoordinatorListItem.d.mts → ShipperCoordinatorConnectionForCoordinatorListItem.d.mts} +2 -2
- package/dist/esm/api/types/ShipperCoordinatorConnectionForCoordinatorListItem.mjs +4 -0
- package/dist/esm/api/types/ShipperCoordinatorConnectionForShipperListItem.d.mts +8 -0
- package/dist/esm/api/types/ShipperCoordinatorConnectionForShipperListItem.mjs +4 -0
- package/dist/esm/api/types/ShipperCoordinatorConnectionsForCoordinatorListRes.d.mts +8 -0
- package/dist/esm/api/types/ShipperCoordinatorConnectionsForCoordinatorListRes.mjs +4 -0
- package/dist/esm/api/types/{ProviderProviderConnectionListRes.d.mts → ShipperCoordinatorConnectionsForShipperListRes.d.mts} +2 -2
- package/dist/esm/api/types/ShipperCoordinatorConnectionsForShipperListRes.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +15 -9
- package/dist/esm/api/types/index.mjs +15 -9
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +375 -33
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListProviderProviderV1Request.d.ts +0 -33
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListProvidersV1Request.d.ts +0 -17
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.d.ts +0 -17
- package/dist/cjs/api/types/ProviderProviderConnectionCallerRoleEnum.d.ts +0 -8
- package/dist/cjs/api/types/ProviderProviderConnectionCallerRoleEnum.js +0 -10
- package/dist/cjs/api/types/ProviderProviderConnectionListItem.d.ts +0 -11
- package/dist/cjs/api/types/ShipperProviderConnectionForShipperListItem.d.ts +0 -8
- package/dist/cjs/api/types/ShipperProviderConnectionsForShipperListRes.d.ts +0 -8
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListProviderProviderV1Request.d.mts +0 -33
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListProvidersV1Request.d.mts +0 -17
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.d.mts +0 -17
- package/dist/esm/api/types/ProviderProviderConnectionCallerRoleEnum.d.mts +0 -8
- package/dist/esm/api/types/ProviderProviderConnectionCallerRoleEnum.mjs +0 -7
- package/dist/esm/api/types/ProviderProviderConnectionListItem.d.mts +0 -11
- package/dist/esm/api/types/ShipperProviderConnectionForShipperListItem.d.mts +0 -8
- package/dist/esm/api/types/ShipperProviderConnectionsForShipperListRes.d.mts +0 -8
- /package/dist/cjs/api/resources/orgs/resources/connections/client/requests/{ConnectionsListProviderProviderV1Request.js → ConnectionsListCoordinatorsForExecutorV1Request.js} +0 -0
- /package/dist/cjs/api/resources/orgs/resources/connections/client/requests/{ConnectionsListProvidersV1Request.js → ConnectionsListCoordinatorsForShipperV1Request.js} +0 -0
- /package/dist/cjs/api/resources/orgs/resources/connections/client/requests/{ConnectionsListShippersV1Request.js → ConnectionsListExecutorsForCoordinatorV1Request.js} +0 -0
- /package/dist/cjs/api/resources/orgs/resources/connections/client/requests/{ProviderProviderUpdateAutoAssignReq.js → ConnectionsListExecutorsGeoSearchForCoordinatorV1Request.js} +0 -0
- /package/dist/cjs/api/resources/orgs/resources/connections/client/requests/{ShipperProviderConnectionClientUpdate1.js → ConnectionsListShippersForCoordinatorV1Request.js} +0 -0
- /package/dist/cjs/api/{types/ProviderProviderConnection1.js → resources/orgs/resources/connections/client/requests/CoordinatorExecutorUpdateAutoAssignReq.js} +0 -0
- /package/dist/cjs/api/{types/ProviderProviderConnectionListItem.js → resources/orgs/resources/connections/client/requests/ShipperCoordinatorConnectionClientUpdate1.js} +0 -0
- /package/dist/cjs/api/{types/ProviderProviderConnectionListRes.js → resources/orgs/resources/connections/resources/coordinators/client/requests/CoordinatorsTypeaheadV1Request.js} +0 -0
- /package/dist/cjs/api/{types/ShipperProviderConnection1.js → resources/orgs/resources/connections/resources/executors/client/requests/ExecutorsTypeaheadV1Request.js} +0 -0
- /package/dist/cjs/api/{types/ShipperProviderConnectionForCoordinatorListItem.js → resources/orgs/resources/connections/resources/shippers/client/requests/ShippersTypeaheadV1Request.js} +0 -0
- /package/dist/cjs/api/types/{ShipperProviderConnectionForShipperListItem.js → ConnectionTypeaheadFieldEnum.js} +0 -0
- /package/dist/cjs/api/types/{ShipperProviderConnectionsForCoordinatorListRes.js → ConnectionTypeaheadResult.js} +0 -0
- /package/dist/cjs/api/types/{ShipperProviderConnectionsForShipperListRes.js → ConnectionTypeaheadValue.js} +0 -0
- /package/dist/esm/api/resources/orgs/resources/connections/client/requests/{ConnectionsListProviderProviderV1Request.mjs → ConnectionsListCoordinatorsForExecutorV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/orgs/resources/connections/client/requests/{ConnectionsListProvidersV1Request.mjs → ConnectionsListCoordinatorsForShipperV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/orgs/resources/connections/client/requests/{ConnectionsListShippersV1Request.mjs → ConnectionsListExecutorsForCoordinatorV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/orgs/resources/connections/client/requests/{ProviderProviderUpdateAutoAssignReq.mjs → ConnectionsListExecutorsGeoSearchForCoordinatorV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/orgs/resources/connections/client/requests/{ShipperProviderConnectionClientUpdate1.mjs → ConnectionsListShippersForCoordinatorV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/ProviderProviderConnection1.mjs → resources/orgs/resources/connections/client/requests/CoordinatorExecutorUpdateAutoAssignReq.mjs} +0 -0
- /package/dist/esm/api/{types/ProviderProviderConnectionListItem.mjs → resources/orgs/resources/connections/client/requests/ShipperCoordinatorConnectionClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/{types/ProviderProviderConnectionListRes.mjs → resources/orgs/resources/connections/resources/coordinators/client/requests/CoordinatorsTypeaheadV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/ShipperProviderConnection1.mjs → resources/orgs/resources/connections/resources/executors/client/requests/ExecutorsTypeaheadV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/ShipperProviderConnectionForCoordinatorListItem.mjs → resources/orgs/resources/connections/resources/shippers/client/requests/ShippersTypeaheadV1Request.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperProviderConnectionForShipperListItem.mjs → ConnectionTypeaheadFieldEnum.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperProviderConnectionsForCoordinatorListRes.mjs → ConnectionTypeaheadResult.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperProviderConnectionsForShipperListRes.mjs → ConnectionTypeaheadValue.mjs} +0 -0
|
@@ -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 ConnectionsListShippersForCoordinatorV1Request {
|
|
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
|
+
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @example
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface ShipperCoordinatorConnectionClientUpdate1 {
|
|
9
9
|
coordinator_default_department_id?: string | null;
|
|
10
10
|
coordinator_default_department_id__set_to_None?: boolean;
|
|
11
11
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export { type
|
|
2
|
-
export { type
|
|
3
|
-
export { type
|
|
4
|
-
export { type
|
|
5
|
-
export { type
|
|
1
|
+
export { type ConnectionsListCoordinatorsForExecutorV1Request } from "./ConnectionsListCoordinatorsForExecutorV1Request.mjs";
|
|
2
|
+
export { type ConnectionsListCoordinatorsForShipperV1Request } from "./ConnectionsListCoordinatorsForShipperV1Request.mjs";
|
|
3
|
+
export { type ConnectionsListExecutorsGeoSearchForCoordinatorV1Request } from "./ConnectionsListExecutorsGeoSearchForCoordinatorV1Request.mjs";
|
|
4
|
+
export { type ConnectionsListExecutorsForCoordinatorV1Request } from "./ConnectionsListExecutorsForCoordinatorV1Request.mjs";
|
|
5
|
+
export { type CoordinatorExecutorUpdateAutoAssignReq } from "./CoordinatorExecutorUpdateAutoAssignReq.mjs";
|
|
6
|
+
export { type ShipperCoordinatorConnectionClientUpdate1 } from "./ShipperCoordinatorConnectionClientUpdate1.mjs";
|
|
7
|
+
export { type ConnectionsListShippersForCoordinatorV1Request } from "./ConnectionsListShippersForCoordinatorV1Request.mjs";
|
package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/Client.d.mts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../../../../../core/index.mjs";
|
|
6
|
+
import * as Chrt from "../../../../../../../index.mjs";
|
|
7
|
+
export declare namespace Coordinators {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Coordinators {
|
|
31
|
+
protected readonly _options: Coordinators.Options;
|
|
32
|
+
constructor(_options?: Coordinators.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Returns distinct connected-coordinator names matching the query, with the matching connection IDs. Shippers see their coordinators; providers see coordinators for which they are executors. | authz: allowed_org_types=[provider, shipper], min_org_role=operator | () -> (list[ConnectionTypeaheadResult])
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.orgs.connections.CoordinatorsTypeaheadV1Request} request
|
|
37
|
+
* @param {Coordinators.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.orgs.connections.coordinators.typeaheadV1({
|
|
43
|
+
* query: "query",
|
|
44
|
+
* limit: 1
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
typeaheadV1(request: Chrt.orgs.connections.CoordinatorsTypeaheadV1Request, requestOptions?: Coordinators.RequestOptions): core.HttpResponsePromise<Chrt.ConnectionTypeaheadResult[]>;
|
|
48
|
+
private __typeaheadV1;
|
|
49
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
50
|
+
}
|
package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/Client.mjs
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../../../../../core/index.mjs";
|
|
15
|
+
import * as Chrt from "../../../../../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../../../../../errors/index.mjs";
|
|
18
|
+
export class Coordinators {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns distinct connected-coordinator names matching the query, with the matching connection IDs. Shippers see their coordinators; providers see coordinators for which they are executors. | authz: allowed_org_types=[provider, shipper], min_org_role=operator | () -> (list[ConnectionTypeaheadResult])
|
|
24
|
+
*
|
|
25
|
+
* @param {Chrt.orgs.connections.CoordinatorsTypeaheadV1Request} request
|
|
26
|
+
* @param {Coordinators.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.orgs.connections.coordinators.typeaheadV1({
|
|
32
|
+
* query: "query",
|
|
33
|
+
* limit: 1
|
|
34
|
+
* })
|
|
35
|
+
*/
|
|
36
|
+
typeaheadV1(request, requestOptions) {
|
|
37
|
+
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
38
|
+
}
|
|
39
|
+
__typeaheadV1(request, requestOptions) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
var _a, _b, _c, _d, _e;
|
|
42
|
+
const { query, limit } = request;
|
|
43
|
+
const _queryParams = {};
|
|
44
|
+
_queryParams["query"] = query;
|
|
45
|
+
if (limit !== undefined) {
|
|
46
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
47
|
+
}
|
|
48
|
+
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
49
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
50
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "orgs/connections/coordinators/typeahead/v1"),
|
|
51
|
+
method: "GET",
|
|
52
|
+
headers: _headers,
|
|
53
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
54
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
55
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
56
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
57
|
+
});
|
|
58
|
+
if (_response.ok) {
|
|
59
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
60
|
+
}
|
|
61
|
+
if (_response.error.reason === "status-code") {
|
|
62
|
+
switch (_response.error.statusCode) {
|
|
63
|
+
case 422:
|
|
64
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
65
|
+
default:
|
|
66
|
+
throw new errors.ChrtError({
|
|
67
|
+
statusCode: _response.error.statusCode,
|
|
68
|
+
body: _response.error.body,
|
|
69
|
+
rawResponse: _response.rawResponse,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
switch (_response.error.reason) {
|
|
74
|
+
case "non-json":
|
|
75
|
+
throw new errors.ChrtError({
|
|
76
|
+
statusCode: _response.error.statusCode,
|
|
77
|
+
body: _response.error.rawBody,
|
|
78
|
+
rawResponse: _response.rawResponse,
|
|
79
|
+
});
|
|
80
|
+
case "timeout":
|
|
81
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/connections/coordinators/typeahead/v1.");
|
|
82
|
+
case "unknown":
|
|
83
|
+
throw new errors.ChrtError({
|
|
84
|
+
message: _response.error.errorMessage,
|
|
85
|
+
rawResponse: _response.rawResponse,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
_getAuthorizationHeader() {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
93
|
+
if (bearer != null) {
|
|
94
|
+
return `Bearer ${bearer}`;
|
|
95
|
+
}
|
|
96
|
+
return undefined;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
package/dist/esm/api/resources/orgs/resources/connections/resources/coordinators/client/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* query: "query",
|
|
8
|
+
* limit: 1
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface CoordinatorsTypeaheadV1Request {
|
|
12
|
+
/** Typeahead search query */
|
|
13
|
+
query: string;
|
|
14
|
+
/** Max results per field */
|
|
15
|
+
limit?: number | null;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type CoordinatorsTypeaheadV1Request } from "./CoordinatorsTypeaheadV1Request.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/Client.d.mts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../../../../../core/index.mjs";
|
|
6
|
+
import * as Chrt from "../../../../../../../index.mjs";
|
|
7
|
+
export declare namespace Executors {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Executors {
|
|
31
|
+
protected readonly _options: Executors.Options;
|
|
32
|
+
constructor(_options?: Executors.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Returns distinct connected-executor names matching the query, with the matching connection IDs. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[ConnectionTypeaheadResult])
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.orgs.connections.ExecutorsTypeaheadV1Request} request
|
|
37
|
+
* @param {Executors.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.orgs.connections.executors.typeaheadV1({
|
|
43
|
+
* query: "query",
|
|
44
|
+
* limit: 1
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
typeaheadV1(request: Chrt.orgs.connections.ExecutorsTypeaheadV1Request, requestOptions?: Executors.RequestOptions): core.HttpResponsePromise<Chrt.ConnectionTypeaheadResult[]>;
|
|
48
|
+
private __typeaheadV1;
|
|
49
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
50
|
+
}
|
package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/Client.mjs
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../../../../../core/index.mjs";
|
|
15
|
+
import * as Chrt from "../../../../../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../../../../../errors/index.mjs";
|
|
18
|
+
export class Executors {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns distinct connected-executor names matching the query, with the matching connection IDs. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[ConnectionTypeaheadResult])
|
|
24
|
+
*
|
|
25
|
+
* @param {Chrt.orgs.connections.ExecutorsTypeaheadV1Request} request
|
|
26
|
+
* @param {Executors.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.orgs.connections.executors.typeaheadV1({
|
|
32
|
+
* query: "query",
|
|
33
|
+
* limit: 1
|
|
34
|
+
* })
|
|
35
|
+
*/
|
|
36
|
+
typeaheadV1(request, requestOptions) {
|
|
37
|
+
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
38
|
+
}
|
|
39
|
+
__typeaheadV1(request, requestOptions) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
var _a, _b, _c, _d, _e;
|
|
42
|
+
const { query, limit } = request;
|
|
43
|
+
const _queryParams = {};
|
|
44
|
+
_queryParams["query"] = query;
|
|
45
|
+
if (limit !== undefined) {
|
|
46
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
47
|
+
}
|
|
48
|
+
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
49
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
50
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "orgs/connections/executors/typeahead/v1"),
|
|
51
|
+
method: "GET",
|
|
52
|
+
headers: _headers,
|
|
53
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
54
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
55
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
56
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
57
|
+
});
|
|
58
|
+
if (_response.ok) {
|
|
59
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
60
|
+
}
|
|
61
|
+
if (_response.error.reason === "status-code") {
|
|
62
|
+
switch (_response.error.statusCode) {
|
|
63
|
+
case 422:
|
|
64
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
65
|
+
default:
|
|
66
|
+
throw new errors.ChrtError({
|
|
67
|
+
statusCode: _response.error.statusCode,
|
|
68
|
+
body: _response.error.body,
|
|
69
|
+
rawResponse: _response.rawResponse,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
switch (_response.error.reason) {
|
|
74
|
+
case "non-json":
|
|
75
|
+
throw new errors.ChrtError({
|
|
76
|
+
statusCode: _response.error.statusCode,
|
|
77
|
+
body: _response.error.rawBody,
|
|
78
|
+
rawResponse: _response.rawResponse,
|
|
79
|
+
});
|
|
80
|
+
case "timeout":
|
|
81
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/connections/executors/typeahead/v1.");
|
|
82
|
+
case "unknown":
|
|
83
|
+
throw new errors.ChrtError({
|
|
84
|
+
message: _response.error.errorMessage,
|
|
85
|
+
rawResponse: _response.rawResponse,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
_getAuthorizationHeader() {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
93
|
+
if (bearer != null) {
|
|
94
|
+
return `Bearer ${bearer}`;
|
|
95
|
+
}
|
|
96
|
+
return undefined;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
package/dist/esm/api/resources/orgs/resources/connections/resources/executors/client/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* query: "query",
|
|
8
|
+
* limit: 1
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface ExecutorsTypeaheadV1Request {
|
|
12
|
+
/** Typeahead search query */
|
|
13
|
+
query: string;
|
|
14
|
+
/** Max results per field */
|
|
15
|
+
limit?: number | null;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type ExecutorsTypeaheadV1Request } from "./ExecutorsTypeaheadV1Request.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * as coordinators from "./coordinators/index.mjs";
|
|
2
|
+
export * as executors from "./executors/index.mjs";
|
|
3
|
+
export * as shippers from "./shippers/index.mjs";
|
|
4
|
+
export * from "./coordinators/client/requests/index.mjs";
|
|
5
|
+
export * from "./executors/client/requests/index.mjs";
|
|
6
|
+
export * from "./shippers/client/requests/index.mjs";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * as coordinators from "./coordinators/index.mjs";
|
|
2
|
+
export * as executors from "./executors/index.mjs";
|
|
3
|
+
export * as shippers from "./shippers/index.mjs";
|
|
4
|
+
export * from "./coordinators/client/requests/index.mjs";
|
|
5
|
+
export * from "./executors/client/requests/index.mjs";
|
|
6
|
+
export * from "./shippers/client/requests/index.mjs";
|
package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/Client.d.mts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../../../../../core/index.mjs";
|
|
6
|
+
import * as Chrt from "../../../../../../../index.mjs";
|
|
7
|
+
export declare namespace Shippers {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Shippers {
|
|
31
|
+
protected readonly _options: Shippers.Options;
|
|
32
|
+
constructor(_options?: Shippers.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Returns distinct connected-shipper names matching the query, with the matching connection IDs. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[ConnectionTypeaheadResult])
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.orgs.connections.ShippersTypeaheadV1Request} request
|
|
37
|
+
* @param {Shippers.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.orgs.connections.shippers.typeaheadV1({
|
|
43
|
+
* query: "query",
|
|
44
|
+
* limit: 1
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
typeaheadV1(request: Chrt.orgs.connections.ShippersTypeaheadV1Request, requestOptions?: Shippers.RequestOptions): core.HttpResponsePromise<Chrt.ConnectionTypeaheadResult[]>;
|
|
48
|
+
private __typeaheadV1;
|
|
49
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
50
|
+
}
|
package/dist/esm/api/resources/orgs/resources/connections/resources/shippers/client/Client.mjs
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../../../../../core/index.mjs";
|
|
15
|
+
import * as Chrt from "../../../../../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../../../../../errors/index.mjs";
|
|
18
|
+
export class Shippers {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns distinct connected-shipper names matching the query, with the matching connection IDs. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[ConnectionTypeaheadResult])
|
|
24
|
+
*
|
|
25
|
+
* @param {Chrt.orgs.connections.ShippersTypeaheadV1Request} request
|
|
26
|
+
* @param {Shippers.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.orgs.connections.shippers.typeaheadV1({
|
|
32
|
+
* query: "query",
|
|
33
|
+
* limit: 1
|
|
34
|
+
* })
|
|
35
|
+
*/
|
|
36
|
+
typeaheadV1(request, requestOptions) {
|
|
37
|
+
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
38
|
+
}
|
|
39
|
+
__typeaheadV1(request, requestOptions) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
var _a, _b, _c, _d, _e;
|
|
42
|
+
const { query, limit } = request;
|
|
43
|
+
const _queryParams = {};
|
|
44
|
+
_queryParams["query"] = query;
|
|
45
|
+
if (limit !== undefined) {
|
|
46
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
47
|
+
}
|
|
48
|
+
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
49
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
50
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "orgs/connections/shippers/typeahead/v1"),
|
|
51
|
+
method: "GET",
|
|
52
|
+
headers: _headers,
|
|
53
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
54
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
55
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
56
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
57
|
+
});
|
|
58
|
+
if (_response.ok) {
|
|
59
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
60
|
+
}
|
|
61
|
+
if (_response.error.reason === "status-code") {
|
|
62
|
+
switch (_response.error.statusCode) {
|
|
63
|
+
case 422:
|
|
64
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
65
|
+
default:
|
|
66
|
+
throw new errors.ChrtError({
|
|
67
|
+
statusCode: _response.error.statusCode,
|
|
68
|
+
body: _response.error.body,
|
|
69
|
+
rawResponse: _response.rawResponse,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
switch (_response.error.reason) {
|
|
74
|
+
case "non-json":
|
|
75
|
+
throw new errors.ChrtError({
|
|
76
|
+
statusCode: _response.error.statusCode,
|
|
77
|
+
body: _response.error.rawBody,
|
|
78
|
+
rawResponse: _response.rawResponse,
|
|
79
|
+
});
|
|
80
|
+
case "timeout":
|
|
81
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/connections/shippers/typeahead/v1.");
|
|
82
|
+
case "unknown":
|
|
83
|
+
throw new errors.ChrtError({
|
|
84
|
+
message: _response.error.errorMessage,
|
|
85
|
+
rawResponse: _response.rawResponse,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
_getAuthorizationHeader() {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
93
|
+
if (bearer != null) {
|
|
94
|
+
return `Bearer ${bearer}`;
|
|
95
|
+
}
|
|
96
|
+
return undefined;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* query: "query",
|
|
8
|
+
* limit: 1
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface ShippersTypeaheadV1Request {
|
|
12
|
+
/** Typeahead search query */
|
|
13
|
+
query: string;
|
|
14
|
+
/** Max results per field */
|
|
15
|
+
limit?: number | null;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type ShippersTypeaheadV1Request } from "./ShippersTypeaheadV1Request.mjs";
|