@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.js";
|
|
2
|
+
export { type ConnectionsListCoordinatorsForShipperV1Request } from "./ConnectionsListCoordinatorsForShipperV1Request.js";
|
|
3
|
+
export { type ConnectionsListExecutorsGeoSearchForCoordinatorV1Request } from "./ConnectionsListExecutorsGeoSearchForCoordinatorV1Request.js";
|
|
4
|
+
export { type ConnectionsListExecutorsForCoordinatorV1Request } from "./ConnectionsListExecutorsForCoordinatorV1Request.js";
|
|
5
|
+
export { type CoordinatorExecutorUpdateAutoAssignReq } from "./CoordinatorExecutorUpdateAutoAssignReq.js";
|
|
6
|
+
export { type ShipperCoordinatorConnectionClientUpdate1 } from "./ShipperCoordinatorConnectionClientUpdate1.js";
|
|
7
|
+
export { type ConnectionsListShippersForCoordinatorV1Request } from "./ConnectionsListShippersForCoordinatorV1Request.js";
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./types/index.js"), exports);
|
|
18
18
|
__exportStar(require("./client/index.js"), exports);
|
|
19
|
+
__exportStar(require("./resources/index.js"), exports);
|
package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/Client.d.ts
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.js";
|
|
5
|
+
import * as core from "../../../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../../../index.js";
|
|
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/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/Client.js
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Coordinators = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../../../../../core/index.js"));
|
|
51
|
+
const Chrt = __importStar(require("../../../../../../../index.js"));
|
|
52
|
+
const headers_js_1 = require("../../../../../../../../core/headers.js");
|
|
53
|
+
const errors = __importStar(require("../../../../../../../../errors/index.js"));
|
|
54
|
+
class Coordinators {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 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])
|
|
60
|
+
*
|
|
61
|
+
* @param {Chrt.orgs.connections.CoordinatorsTypeaheadV1Request} request
|
|
62
|
+
* @param {Coordinators.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.orgs.connections.coordinators.typeaheadV1({
|
|
68
|
+
* query: "query",
|
|
69
|
+
* limit: 1
|
|
70
|
+
* })
|
|
71
|
+
*/
|
|
72
|
+
typeaheadV1(request, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
74
|
+
}
|
|
75
|
+
__typeaheadV1(request, requestOptions) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
var _a, _b, _c, _d, _e;
|
|
78
|
+
const { query, limit } = request;
|
|
79
|
+
const _queryParams = {};
|
|
80
|
+
_queryParams["query"] = query;
|
|
81
|
+
if (limit !== undefined) {
|
|
82
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
83
|
+
}
|
|
84
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
85
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
86
|
+
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"),
|
|
87
|
+
method: "GET",
|
|
88
|
+
headers: _headers,
|
|
89
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
90
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
91
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
92
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
93
|
+
});
|
|
94
|
+
if (_response.ok) {
|
|
95
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
96
|
+
}
|
|
97
|
+
if (_response.error.reason === "status-code") {
|
|
98
|
+
switch (_response.error.statusCode) {
|
|
99
|
+
case 422:
|
|
100
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
101
|
+
default:
|
|
102
|
+
throw new errors.ChrtError({
|
|
103
|
+
statusCode: _response.error.statusCode,
|
|
104
|
+
body: _response.error.body,
|
|
105
|
+
rawResponse: _response.rawResponse,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
switch (_response.error.reason) {
|
|
110
|
+
case "non-json":
|
|
111
|
+
throw new errors.ChrtError({
|
|
112
|
+
statusCode: _response.error.statusCode,
|
|
113
|
+
body: _response.error.rawBody,
|
|
114
|
+
rawResponse: _response.rawResponse,
|
|
115
|
+
});
|
|
116
|
+
case "timeout":
|
|
117
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/connections/coordinators/typeahead/v1.");
|
|
118
|
+
case "unknown":
|
|
119
|
+
throw new errors.ChrtError({
|
|
120
|
+
message: _response.error.errorMessage,
|
|
121
|
+
rawResponse: _response.rawResponse,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
_getAuthorizationHeader() {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
129
|
+
if (bearer != null) {
|
|
130
|
+
return `Bearer ${bearer}`;
|
|
131
|
+
}
|
|
132
|
+
return undefined;
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
exports.Coordinators = Coordinators;
|
package/dist/cjs/api/resources/orgs/resources/connections/resources/coordinators/client/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -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.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
package/dist/cjs/api/resources/orgs/resources/connections/resources/executors/client/Client.d.ts
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.js";
|
|
5
|
+
import * as core from "../../../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../../../index.js";
|
|
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/cjs/api/resources/orgs/resources/connections/resources/executors/client/Client.js
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Executors = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../../../../../core/index.js"));
|
|
51
|
+
const Chrt = __importStar(require("../../../../../../../index.js"));
|
|
52
|
+
const headers_js_1 = require("../../../../../../../../core/headers.js");
|
|
53
|
+
const errors = __importStar(require("../../../../../../../../errors/index.js"));
|
|
54
|
+
class Executors {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Returns distinct connected-executor names matching the query, with the matching connection IDs. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[ConnectionTypeaheadResult])
|
|
60
|
+
*
|
|
61
|
+
* @param {Chrt.orgs.connections.ExecutorsTypeaheadV1Request} request
|
|
62
|
+
* @param {Executors.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.orgs.connections.executors.typeaheadV1({
|
|
68
|
+
* query: "query",
|
|
69
|
+
* limit: 1
|
|
70
|
+
* })
|
|
71
|
+
*/
|
|
72
|
+
typeaheadV1(request, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
74
|
+
}
|
|
75
|
+
__typeaheadV1(request, requestOptions) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
var _a, _b, _c, _d, _e;
|
|
78
|
+
const { query, limit } = request;
|
|
79
|
+
const _queryParams = {};
|
|
80
|
+
_queryParams["query"] = query;
|
|
81
|
+
if (limit !== undefined) {
|
|
82
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
83
|
+
}
|
|
84
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
85
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
86
|
+
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"),
|
|
87
|
+
method: "GET",
|
|
88
|
+
headers: _headers,
|
|
89
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
90
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
91
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
92
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
93
|
+
});
|
|
94
|
+
if (_response.ok) {
|
|
95
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
96
|
+
}
|
|
97
|
+
if (_response.error.reason === "status-code") {
|
|
98
|
+
switch (_response.error.statusCode) {
|
|
99
|
+
case 422:
|
|
100
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
101
|
+
default:
|
|
102
|
+
throw new errors.ChrtError({
|
|
103
|
+
statusCode: _response.error.statusCode,
|
|
104
|
+
body: _response.error.body,
|
|
105
|
+
rawResponse: _response.rawResponse,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
switch (_response.error.reason) {
|
|
110
|
+
case "non-json":
|
|
111
|
+
throw new errors.ChrtError({
|
|
112
|
+
statusCode: _response.error.statusCode,
|
|
113
|
+
body: _response.error.rawBody,
|
|
114
|
+
rawResponse: _response.rawResponse,
|
|
115
|
+
});
|
|
116
|
+
case "timeout":
|
|
117
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/connections/executors/typeahead/v1.");
|
|
118
|
+
case "unknown":
|
|
119
|
+
throw new errors.ChrtError({
|
|
120
|
+
message: _response.error.errorMessage,
|
|
121
|
+
rawResponse: _response.rawResponse,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
_getAuthorizationHeader() {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
129
|
+
if (bearer != null) {
|
|
130
|
+
return `Bearer ${bearer}`;
|
|
131
|
+
}
|
|
132
|
+
return undefined;
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
exports.Executors = Executors;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -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.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * as coordinators from "./coordinators/index.js";
|
|
2
|
+
export * as executors from "./executors/index.js";
|
|
3
|
+
export * as shippers from "./shippers/index.js";
|
|
4
|
+
export * from "./coordinators/client/requests/index.js";
|
|
5
|
+
export * from "./executors/client/requests/index.js";
|
|
6
|
+
export * from "./shippers/client/requests/index.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.shippers = exports.executors = exports.coordinators = void 0;
|
|
40
|
+
exports.coordinators = __importStar(require("./coordinators/index.js"));
|
|
41
|
+
exports.executors = __importStar(require("./executors/index.js"));
|
|
42
|
+
exports.shippers = __importStar(require("./shippers/index.js"));
|
|
43
|
+
__exportStar(require("./coordinators/client/requests/index.js"), exports);
|
|
44
|
+
__exportStar(require("./executors/client/requests/index.js"), exports);
|
|
45
|
+
__exportStar(require("./shippers/client/requests/index.js"), exports);
|