@odigos/ui-kit 0.0.299 → 0.0.300
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/CHANGELOG.md +13 -0
- package/lib/chunks/{helpers-lW-r7stw.js → helpers-BwRnPdlh.js} +1 -1
- package/lib/chunks/index-nYW7_cdJ.js +364 -0
- package/lib/chunks/source-instrument-form-context-Rz3TBYRM.js +5 -0
- package/lib/chunks/ui-components-DObOt6F8.js +2273 -0
- package/lib/components/button-tab/index.d.ts +2 -1
- package/lib/components/code/index.d.ts +2 -2
- package/lib/components/drop-data/index.d.ts +7 -7
- package/lib/components/index.d.ts +2 -0
- package/lib/components/morph-icon/index.d.ts +74 -0
- package/lib/components/morph-icon/path-morph.d.ts +16 -0
- package/lib/components/morph-icon/registry.d.ts +34 -0
- package/lib/components/table/types.d.ts +2 -0
- package/lib/components/terminal/context.d.ts +17 -0
- package/lib/components/terminal/index.d.ts +10 -0
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/create-cloud-connector-drawer/index.d.ts +0 -4
- package/lib/containers/_drawers/create-cloud-connector-drawer/is-done-modal/index.d.ts +7 -0
- package/lib/containers/_modals/create-k8s-connection-modal/index.d.ts +5 -0
- package/lib/containers/central-connections/helpers.d.ts +3 -6
- package/lib/containers/central-connections/index.d.ts +1 -8
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-trace-compare/helpers.d.ts +6 -4
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-trace-compare/index.d.ts +2 -0
- package/lib/containers.js +539 -536
- package/lib/contexts/cloud-connector-form-context.d.ts +0 -1
- package/lib/contexts/odigos-api/hooks/use-connections-api.d.ts +58 -0
- package/lib/contexts/odigos-api/index.d.ts +2 -1
- package/lib/contexts/odigos-api/types.d.ts +20 -1
- package/lib/contexts/odigos-api/use-odigos-api.d.ts +2 -0
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons.js +1 -1
- package/lib/snippets/index.d.ts +1 -1
- package/lib/snippets/intro-modal/index.d.ts +10 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +2 -1
- package/lib/types.js +1 -1
- package/lib/visuals/index.d.ts +2 -0
- package/lib/visuals/visual-connection-morph/index.d.ts +12 -0
- package/lib/visuals/visual-odigos-logo/index.d.ts +1 -1
- package/lib/visuals/visual-terminal/index.d.ts +5 -0
- package/lib/visuals.js +1 -1
- package/package.json +3 -1
- package/lib/chunks/index-DH7pdkVR.js +0 -358
- package/lib/chunks/source-instrument-form-context-D3jXhnvh.js +0 -5
- package/lib/chunks/ui-components-BnY4B3Vq.js +0 -2163
- package/lib/snippets/connector-created-modal/index.d.ts +0 -7
- /package/lib/{containers/_modals/onboarding-done → snippets/intro-modal}/background.d.ts +0 -0
|
@@ -28,7 +28,6 @@ interface CloudConnectorFormContextValue {
|
|
|
28
28
|
}
|
|
29
29
|
export interface CloudConnectorFormContextProviderProps {
|
|
30
30
|
children: ReactNode;
|
|
31
|
-
providers?: CloudConnectorProvider[];
|
|
32
31
|
}
|
|
33
32
|
export declare const CloudConnectorFormContextProvider: FC<CloudConnectorFormContextProviderProps>;
|
|
34
33
|
export declare const useCloudConnectorFormContext: () => CloudConnectorFormContextValue;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `useConnectionsApi` — central-ui's out-of-proxy connection registry.
|
|
3
|
+
*
|
|
4
|
+
* Owns the list of connected proxy clusters / cloud connectors
|
|
5
|
+
* (`GET_COMPUTE_PLATFORMS`), the static cloud-connector provider catalog,
|
|
6
|
+
* create-connector, and delete (proxy vs connector routed by platform type).
|
|
7
|
+
*
|
|
8
|
+
* These are bare central-backend ops (NOT REMOTE_FETCH) — they operate on
|
|
9
|
+
* the connection registry itself, not on a selected proxy's resources.
|
|
10
|
+
* Hosts without central (odigos webapp) simply omit the slots; every method
|
|
11
|
+
* below is optional and the CentralConnections container no-ops gracefully.
|
|
12
|
+
*/
|
|
13
|
+
import type { OperationContext, OdigosApiOperations } from '../types';
|
|
14
|
+
import { PlatformType, type CloudConnectorCreateInput, type CloudConnectorCreateResult, type CloudConnectorProvider, type Connection } from '../../../types';
|
|
15
|
+
export interface UseConnectionsResult {
|
|
16
|
+
items: Connection[];
|
|
17
|
+
loading: boolean;
|
|
18
|
+
/** True when the host adapter doesn't expose `GET_COMPUTE_PLATFORMS`. */
|
|
19
|
+
unsupported: boolean;
|
|
20
|
+
refetch: () => Promise<Connection[]>;
|
|
21
|
+
}
|
|
22
|
+
export interface UseCloudConnectorProvidersResult {
|
|
23
|
+
items: CloudConnectorProvider[];
|
|
24
|
+
loading: boolean;
|
|
25
|
+
/** True when the host adapter doesn't expose `GET_CLOUD_CONNECTOR_PROVIDERS`. */
|
|
26
|
+
unsupported: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface ConnectionsApi {
|
|
29
|
+
/**
|
|
30
|
+
* Subscribe to the connections list. Owns a
|
|
31
|
+
* `useApiQuery('GET_COMPUTE_PLATFORMS')` — call at the top level of a
|
|
32
|
+
* container. Returns the reactive `{ items, loading, unsupported, refetch }`.
|
|
33
|
+
*/
|
|
34
|
+
useConnections: () => UseConnectionsResult;
|
|
35
|
+
/**
|
|
36
|
+
* Subscribe to the static cloud-connector provider catalog. Owns a
|
|
37
|
+
* `useApiQuery('GET_CLOUD_CONNECTOR_PROVIDERS')` — call at the top level
|
|
38
|
+
* of a container.
|
|
39
|
+
*/
|
|
40
|
+
useCloudConnectorProviders: () => UseCloudConnectorProvidersResult;
|
|
41
|
+
/**
|
|
42
|
+
* Verifies and creates a cloud connector in one server call (creation
|
|
43
|
+
* gated on verification). Returns the create result so the drawer can
|
|
44
|
+
* render the shared success/failure UI. Throws when the op is missing
|
|
45
|
+
* or the server returns no payload.
|
|
46
|
+
*/
|
|
47
|
+
createCloudConnector?: (input: CloudConnectorCreateInput) => Promise<CloudConnectorCreateResult>;
|
|
48
|
+
/**
|
|
49
|
+
* Tear down a connection. Routes by `type`: cloud connectors hit
|
|
50
|
+
* `DELETE_CLOUD_CONNECTOR`; k8s/vm/ecs proxies hit `DELETE_PROXY_CONNECTION`
|
|
51
|
+
* with `{ proxyID }` (PLAT-1316 — never `{ id }`).
|
|
52
|
+
*/
|
|
53
|
+
deleteConnection?: (id: string, type?: PlatformType) => Promise<{
|
|
54
|
+
success: boolean;
|
|
55
|
+
error?: string;
|
|
56
|
+
} | undefined>;
|
|
57
|
+
}
|
|
58
|
+
export declare const useConnectionsApi: (operations: OdigosApiOperations, ctx: OperationContext) => ConnectionsApi;
|
|
@@ -15,7 +15,7 @@ export { useApiQuery, useApiLazyQuery, useApiMutation } from './use-api-query';
|
|
|
15
15
|
export { useApiForConnections, type ApiForConnections } from './use-api-for-connections';
|
|
16
16
|
export type { UseApiQueryOptions, UseApiQueryResult, UseApiLazyQueryResult, UseApiMutationOptions, UseApiMutationResult, UseApiMutationTuple } from './use-api-query';
|
|
17
17
|
export { pickByPlatform, versionedDocument, vmDialectMap, type VersionedDocumentMap } from './platform-helpers';
|
|
18
|
-
export type { ApolloConfig, ApplyRecommendationRemediationResult, ApplyRecommendationRemediationVars, CreateActionResult, CreateActionVars, CreateCostReductionRuleResult, CreateDataStreamResult, CreateDataStreamVars, CreateDestinationResult, CreateDestinationVars, CreateHighlyRelevantOperationRuleResult, CreateInstrumentationRuleResult, CreateInstrumentationRuleVars, CreateNoisyOperationRuleResult, DeleteActionResult, DeleteActionVars, DeleteCostReductionRuleResult, DeleteDataStreamResult, DeleteDataStreamVars, DeleteDestinationResult, DeleteDestinationVars, DeleteHighlyRelevantOperationRuleResult, DeleteInstrumentationRuleResult, DeleteInstrumentationRuleVars, DeleteNoisyOperationRuleResult, DescribeOdigosData, DescribeSourceData, DestinationWireInput, DiagnoseResult, DiagnoseVars, GetActionsData, GetAllClusterSnapshotsData, GetClusterSnapshotData, GetClusterSnapshotVars, GetCollectorPodInfoData, GetCollectorPodInfoVars, GetConfigYamlsData, GetDataStreamsData, GetDestinationsData, GetEffectiveConfigVars, GetGatewayInfoData, GetGatewayPodsData, GetInstrumentationInstructionsData, GetInstrumentationInstructionsVars, GetInstrumentationRulesData, GetK8sManifestData, GetK8sManifestVars, GetMetricsData, GetNamespacesWithWorkloadsData, GetNodeCollectorInfoData, GetNodeCollectorPodsData, GetPeerSourcesVars, GetProfilingSlotsData, GetRecommendationsData, GetSamplingRulesData, GetServiceMapData, GetSourceLibrariesData, GetSourceLibrariesVars, GetSourceProfilingData, GetTokensData, GetWorkloadsByIdsData, GetWorkloadsByIdsVars, GetWorkloadsData, GetWorkloadsVars, GetInsightsTransactionsVars, GetInsightsTransactionVars, GetInsightsBaselineVars, GetInsightsObservationsVars, GetInsightsObservationVars, GetInsightsFindingsVars, GetInsightsAnomaliesVars, GetInsightsAnomalyVars, GetInsightsGuardrailViolationsVars, GetInsightsGuardrailViolationVars, GetInsightsServiceProfileVars, GetInsightsBlastRadiusVars, PromoteInsightsBaselineClassVars, ResetInsightsBaselineClassVars, ResetInsightsTransactionBaselinesVars, PromoteInsightsTransactionBaselinesVars, BulkPromoteInsightsTransactionsVars, ForcePromoteInsightsServiceVars, EnableInsightsTransactionGuardrailVars, DisableInsightsTransactionGuardrailVars, DeleteInsightsTransactionVars, BulkDeleteInsightsTransactionsVars, UpsertInsightsPolicyVars, DeleteInsightsPolicyVars, UpsertInsightsLearningPolicyVars, DeleteInsightsLearningPolicyVars, ResolveInsightsAnomalyVars, BulkResolveInsightsAnomaliesVars, UpsertInsightsGuardrailVars, DeleteInsightsGuardrailVars, SeedInsightsGuardrailVars, InsightsViolationActionVars, UpdateInsightsSystemSettingsVars, MultiFetchGroup, MultiFetchResponse, MultiFetchResult, OdigosApiOperations, OdigosApiProviderProps, Operation, OperationContext, PersistNamespacesResult, PersistNamespacesVars, PersistSourcesResult, PersistSourcesVars, RecoverFromRollbackVars, ResetLocalUiConfigResult, RestartPodVars, RestartWorkloadsVars, SamplingConfigInputWire, SamplingK8sHealthConfigInput, SamplingK8sHealthConfigVars, SamplingRuleCreateVars, SamplingRuleDeleteVars, SamplingRuleUpdateVars, SetRecommendationDismissedResult, TestDestinationConnectionVars, UpdateActionResult, UpdateActionVars, UpdateCostReductionRuleResult, UpdateDataStreamResult, UpdateDataStreamVars, UpdateDestinationData, UpdateDestinationVars, UpdateHighlyRelevantOperationRuleResult, UpdateInstrumentationRuleResult, UpdateInstrumentationRuleVars, UpdateLocalUiConfigResult, UpdateLocalUiConfigVars, UpdateLocalUiSamplingConfigResult, UpdateLocalUiSamplingConfigVars, UpdateNoisyOperationRuleResult, UpdateRemoteConfigResult, UpdateRemoteConfigVars, UpdateSourceVars, UpdateTokenResult, UpdateTokenVars, } from './types';
|
|
18
|
+
export type { ApolloConfig, ApplyRecommendationRemediationResult, ApplyRecommendationRemediationVars, CreateActionResult, CreateActionVars, ConnectionCrudResult, CreateCloudConnectorVars, CreateCostReductionRuleResult, CreateDataStreamResult, CreateDataStreamVars, CreateDestinationResult, CreateDestinationVars, CreateHighlyRelevantOperationRuleResult, CreateInstrumentationRuleResult, CreateInstrumentationRuleVars, CreateNoisyOperationRuleResult, DeleteActionResult, DeleteActionVars, DeleteCloudConnectorVars, DeleteCostReductionRuleResult, DeleteDataStreamResult, DeleteDataStreamVars, DeleteDestinationResult, DeleteDestinationVars, DeleteHighlyRelevantOperationRuleResult, DeleteInstrumentationRuleResult, DeleteInstrumentationRuleVars, DeleteNoisyOperationRuleResult, DeleteProxyConnectionVars, DescribeOdigosData, DescribeSourceData, DestinationWireInput, DiagnoseResult, DiagnoseVars, GetActionsData, GetAllClusterSnapshotsData, GetClusterSnapshotData, GetClusterSnapshotVars, GetCollectorPodInfoData, GetCollectorPodInfoVars, GetConfigYamlsData, GetDataStreamsData, GetDestinationsData, GetEffectiveConfigVars, GetGatewayInfoData, GetGatewayPodsData, GetInstrumentationInstructionsData, GetInstrumentationInstructionsVars, GetInstrumentationRulesData, GetK8sManifestData, GetK8sManifestVars, GetMetricsData, GetNamespacesWithWorkloadsData, GetNodeCollectorInfoData, GetNodeCollectorPodsData, GetPeerSourcesVars, GetProfilingSlotsData, GetRecommendationsData, GetSamplingRulesData, GetServiceMapData, GetSourceLibrariesData, GetSourceLibrariesVars, GetSourceProfilingData, GetTokensData, GetWorkloadsByIdsData, GetWorkloadsByIdsVars, GetWorkloadsData, GetWorkloadsVars, GetInsightsTransactionsVars, GetInsightsTransactionVars, GetInsightsBaselineVars, GetInsightsObservationsVars, GetInsightsObservationVars, GetInsightsFindingsVars, GetInsightsAnomaliesVars, GetInsightsAnomalyVars, GetInsightsGuardrailViolationsVars, GetInsightsGuardrailViolationVars, GetInsightsServiceProfileVars, GetInsightsBlastRadiusVars, PromoteInsightsBaselineClassVars, ResetInsightsBaselineClassVars, ResetInsightsTransactionBaselinesVars, PromoteInsightsTransactionBaselinesVars, BulkPromoteInsightsTransactionsVars, ForcePromoteInsightsServiceVars, EnableInsightsTransactionGuardrailVars, DisableInsightsTransactionGuardrailVars, DeleteInsightsTransactionVars, BulkDeleteInsightsTransactionsVars, UpsertInsightsPolicyVars, DeleteInsightsPolicyVars, UpsertInsightsLearningPolicyVars, DeleteInsightsLearningPolicyVars, ResolveInsightsAnomalyVars, BulkResolveInsightsAnomaliesVars, UpsertInsightsGuardrailVars, DeleteInsightsGuardrailVars, SeedInsightsGuardrailVars, InsightsViolationActionVars, UpdateInsightsSystemSettingsVars, MultiFetchGroup, MultiFetchResponse, MultiFetchResult, OdigosApiOperations, OdigosApiProviderProps, Operation, OperationContext, PersistNamespacesResult, PersistNamespacesVars, PersistSourcesResult, PersistSourcesVars, RecoverFromRollbackVars, ResetLocalUiConfigResult, RestartPodVars, RestartWorkloadsVars, SamplingConfigInputWire, SamplingK8sHealthConfigInput, SamplingK8sHealthConfigVars, SamplingRuleCreateVars, SamplingRuleDeleteVars, SamplingRuleUpdateVars, SetRecommendationDismissedResult, TestDestinationConnectionVars, UpdateActionResult, UpdateActionVars, UpdateCostReductionRuleResult, UpdateDataStreamResult, UpdateDataStreamVars, UpdateDestinationData, UpdateDestinationVars, UpdateHighlyRelevantOperationRuleResult, UpdateInstrumentationRuleResult, UpdateInstrumentationRuleVars, UpdateLocalUiConfigResult, UpdateLocalUiConfigVars, UpdateLocalUiSamplingConfigResult, UpdateLocalUiSamplingConfigVars, UpdateNoisyOperationRuleResult, UpdateRemoteConfigResult, UpdateRemoteConfigVars, UpdateSourceVars, UpdateTokenResult, UpdateTokenVars, } from './types';
|
|
19
19
|
export type { Capabilities } from './capabilities';
|
|
20
20
|
export type { ConfigApi } from './hooks/use-config-api';
|
|
21
21
|
export type { TokensApi } from './hooks/use-tokens-api';
|
|
@@ -27,6 +27,7 @@ export type { RecommendationsApi } from './hooks/use-recommendations-api';
|
|
|
27
27
|
export type { NamespaceApi } from './hooks/use-namespace-api';
|
|
28
28
|
export type { ProfilingApi } from './hooks/use-profiling-api';
|
|
29
29
|
export type { SnapshotsApi } from './hooks/use-snapshots-api';
|
|
30
|
+
export type { ConnectionsApi } from './hooks/use-connections-api';
|
|
30
31
|
export type { CollectorsApi } from './hooks/use-collectors-api';
|
|
31
32
|
export type { ServiceMapApi } from './hooks/use-service-map-api';
|
|
32
33
|
export type { DataStreamsApi } from './hooks/use-data-streams-api';
|
|
@@ -18,7 +18,7 @@ import type { ReactNode } from 'react';
|
|
|
18
18
|
import type { DocumentNode } from '@apollo/client';
|
|
19
19
|
import type { InstrumentationRuleInputWire } from '../../functions/instrumentation-rule-source-scopes';
|
|
20
20
|
import type { ApolloClient, ApolloLink, FetchPolicy, MutationFetchPolicy, TypePolicies, WatchQueryFetchPolicy } from '@apollo/client';
|
|
21
|
-
import type { Action, ActionFormData, AllClusterSnapshots, ClusterSnapshot, ConfigYaml, CostReductionRule, CostReductionRuleInput, DataStream, DescribeOdigos, DescribeSource, Destination, DestinationFormData, DiagnoseFormData, EffectiveConfig, EffectiveConfigInput, EnableProfilingResult, ExtendedPodInfo, FetchedConfig, GatewayInfo, GetActionTypesResult, GetInstrumentationRuleTypesResult, GetDestinationCategoriesResult, GetPotentialDestinationsResult, GetProfileHotFunctionsVars, HighlyRelevantOperationRule, HighlyRelevantOperationRuleInput, HotFunctionsResult, InsightsAnomalyIssue, InsightsAnomalyRefInput, InsightsAnomalyResolution, InsightsAnomalySummary, InsightsBaselineClass, InsightsBulkDeleteResult, InsightsBulkPromoteResult, InsightsBulkResolution, InsightsBulkResolveResult, InsightsCatalog, InsightsDeviationClass, InsightsFinding, InsightsFindingKind, InsightsGuardrail, InsightsGuardrailInput, InsightsGuardrailSeedInput, InsightsGuardrailViolation, InsightsGuardrailViolationDetail, InsightsLearningPolicy, InsightsLearningPolicyInput, InsightsObservation, InsightsObservationSummary, InsightsPolicy, InsightsPolicyInput, InsightsPolicyScope, InsightsPromoteResult, InsightsSampleReason, InsightsServiceStat, InsightsServiceProfile, InsightsBlastRadiusSubgraph, InsightsStorageHealth, InsightsSystemSettings, InsightsSystemSettingsInput, InsightsTransaction, InsightsTransactionKind, InsightsTransactionStat, InsightsViolationActionInput, InstrumentationInstructions, InstrumentationRule, K8sResourceKind, LocalUiConfigInput, Metrics, Namespace, NoisyOperationRule, NoisyOperationRuleInput, NodeCollectoInfo, PlatformType, PodInfo, ProfilingSlots, SourceProfilingVars, Recommendation, SamplingRules, SamplingRulesK8sHealthConfig, ServiceMapSources, SourceFormData, SourceProfilingResult, TestConnectionResponse, Tier, TokenPayload, Workload, WorkloadId, PeerSources } from '../../types';
|
|
21
|
+
import type { Action, ActionFormData, AllClusterSnapshots, ClusterSnapshot, CloudConnectorCreateInput, CloudConnectorCreateResult, CloudConnectorProvider, ConfigYaml, Connection, CostReductionRule, CostReductionRuleInput, DataStream, DescribeOdigos, DescribeSource, Destination, DestinationFormData, DiagnoseFormData, EffectiveConfig, EffectiveConfigInput, EnableProfilingResult, ExtendedPodInfo, FetchedConfig, GatewayInfo, GetActionTypesResult, GetInstrumentationRuleTypesResult, GetDestinationCategoriesResult, GetPotentialDestinationsResult, GetProfileHotFunctionsVars, HighlyRelevantOperationRule, HighlyRelevantOperationRuleInput, HotFunctionsResult, InsightsAnomalyIssue, InsightsAnomalyRefInput, InsightsAnomalyResolution, InsightsAnomalySummary, InsightsBaselineClass, InsightsBulkDeleteResult, InsightsBulkPromoteResult, InsightsBulkResolution, InsightsBulkResolveResult, InsightsCatalog, InsightsDeviationClass, InsightsFinding, InsightsFindingKind, InsightsGuardrail, InsightsGuardrailInput, InsightsGuardrailSeedInput, InsightsGuardrailViolation, InsightsGuardrailViolationDetail, InsightsLearningPolicy, InsightsLearningPolicyInput, InsightsObservation, InsightsObservationSummary, InsightsPolicy, InsightsPolicyInput, InsightsPolicyScope, InsightsPromoteResult, InsightsSampleReason, InsightsServiceStat, InsightsServiceProfile, InsightsBlastRadiusSubgraph, InsightsStorageHealth, InsightsSystemSettings, InsightsSystemSettingsInput, InsightsTransaction, InsightsTransactionKind, InsightsTransactionStat, InsightsViolationActionInput, InstrumentationInstructions, InstrumentationRule, K8sResourceKind, LocalUiConfigInput, Metrics, Namespace, NoisyOperationRule, NoisyOperationRuleInput, NodeCollectoInfo, PlatformType, PodInfo, ProfilingSlots, SourceProfilingVars, Recommendation, SamplingRules, SamplingRulesK8sHealthConfig, ServiceMapSources, SourceFormData, SourceProfilingResult, TestConnectionResponse, Tier, TokenPayload, Workload, WorkloadId, PeerSources } from '../../types';
|
|
22
22
|
/**
|
|
23
23
|
* The execution context for a given operation, propagated through every
|
|
24
24
|
* `Operation.document(ctx)` / `transformVariables(vars, ctx)` /
|
|
@@ -617,6 +617,20 @@ export interface GetAllClusterSnapshotsData {
|
|
|
617
617
|
export interface GetClusterSnapshotData {
|
|
618
618
|
clusterSnapshot?: ClusterSnapshot;
|
|
619
619
|
}
|
|
620
|
+
/** Shared `{ success, error }` shape for connection delete mutations. */
|
|
621
|
+
export interface ConnectionCrudResult {
|
|
622
|
+
success: boolean;
|
|
623
|
+
error?: string;
|
|
624
|
+
}
|
|
625
|
+
export interface DeleteProxyConnectionVars {
|
|
626
|
+
proxyID: string;
|
|
627
|
+
}
|
|
628
|
+
export interface DeleteCloudConnectorVars {
|
|
629
|
+
connectorId: string;
|
|
630
|
+
}
|
|
631
|
+
export interface CreateCloudConnectorVars {
|
|
632
|
+
input: CloudConnectorCreateInput;
|
|
633
|
+
}
|
|
620
634
|
export interface GetInsightsTransactionsVars {
|
|
621
635
|
namespace?: string | null;
|
|
622
636
|
service?: string | null;
|
|
@@ -996,6 +1010,11 @@ export interface OdigosApiOperations {
|
|
|
996
1010
|
APPLY_RECOMMENDATION_REMEDIATION?: Operation<ApplyRecommendationRemediationResult, ApplyRecommendationRemediationVars>;
|
|
997
1011
|
GET_ALL_CLUSTER_SNAPSHOTS?: Operation<AllClusterSnapshots, undefined>;
|
|
998
1012
|
GET_CLUSTER_SNAPSHOT?: Operation<ClusterSnapshot, GetClusterSnapshotVars>;
|
|
1013
|
+
GET_COMPUTE_PLATFORMS?: Operation<Connection[], undefined>;
|
|
1014
|
+
GET_CLOUD_CONNECTOR_PROVIDERS?: Operation<CloudConnectorProvider[], undefined>;
|
|
1015
|
+
CREATE_CLOUD_CONNECTOR?: Operation<CloudConnectorCreateResult, CreateCloudConnectorVars>;
|
|
1016
|
+
DELETE_PROXY_CONNECTION?: Operation<ConnectionCrudResult, DeleteProxyConnectionVars>;
|
|
1017
|
+
DELETE_CLOUD_CONNECTOR?: Operation<ConnectionCrudResult, DeleteCloudConnectorVars>;
|
|
999
1018
|
GET_INSIGHTS_SERVICES?: Operation<InsightsServiceStat[], undefined>;
|
|
1000
1019
|
GET_INSIGHTS_SERVICE_NAMES?: Operation<string[], undefined>;
|
|
1001
1020
|
GET_INSIGHTS_SERVICE_PROFILE?: Operation<InsightsServiceProfile | undefined, GetInsightsServiceProfileVars>;
|
|
@@ -58,6 +58,7 @@ import { type SnapshotsApi } from './hooks/use-snapshots-api';
|
|
|
58
58
|
import { type ProfilingApi } from './hooks/use-profiling-api';
|
|
59
59
|
import { type CollectorsApi } from './hooks/use-collectors-api';
|
|
60
60
|
import { type ServiceMapApi } from './hooks/use-service-map-api';
|
|
61
|
+
import { type ConnectionsApi } from './hooks/use-connections-api';
|
|
61
62
|
import { type DataStreamsApi } from './hooks/use-data-streams-api';
|
|
62
63
|
import { type K8sManifestApi } from './hooks/use-k8s-manifest-api';
|
|
63
64
|
import { type DestinationsApi } from './hooks/use-destinations-api';
|
|
@@ -81,6 +82,7 @@ export interface UseOdigosApiReturn {
|
|
|
81
82
|
samplingApi: SamplingApi;
|
|
82
83
|
recommendationsApi: RecommendationsApi;
|
|
83
84
|
snapshotsApi: SnapshotsApi;
|
|
85
|
+
connectionsApi: ConnectionsApi;
|
|
84
86
|
insightsApi: InsightsApi;
|
|
85
87
|
capabilities: Capabilities;
|
|
86
88
|
/**
|
package/lib/contexts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as a,r as P,a as T}from"./chunks/source-instrument-form-context-
|
|
1
|
+
import{u as a,r as P,a as T}from"./chunks/source-instrument-form-context-Rz3TBYRM.js";export{A as ActionFormContextProvider,C as CloudConnectorFormContextProvider,D as DataStreamFormContextProvider,b as DestinationFormContextProvider,c as DetectionOverrideFormContextProvider,d as DetectionPolicyFormContextProvider,G as GuardrailFormContextProvider,L as LearningOverrideFormContextProvider,e as LearningPolicyFormContextProvider,O as OdigosApiConnectionsScope,f as OdigosApiProvider,R as RuleFormContextProvider,S as SamplingRuleFormType,g as SamplingRulesFormProvider,h as SourceEditFormContextProvider,i as SourceInstrumentFormContextProvider,j as SystemSettingsFormContextProvider,p as prepareNamespacePayloads,k as prepareSourcePayloads,l as useActionFormContext,m as useApiLazyQuery,n as useApiMutation,o as useApiQuery,q as useCloudConnectorFormContext,s as useDataStreamFormContext,t as useDestinationFormContext,v as useDetectionOverrideFormContext,w as useDetectionPolicyFormContext,x as useGuardrailFormContext,y as useLearningOverrideFormContext,z as useLearningPolicyFormContext,B as useOdigosApi,E as useRuleFormContext,F as useSamplingRulesFormContext,H as useSourceEditFormContext,I as useSourceInstrumentFormContext,J as useSystemSettingsFormContext}from"./chunks/source-instrument-form-context-Rz3TBYRM.js";export{O as OdigosProvider,c as checkVersionSupport,r as resolveMinSupportedVersion,u as useOdigos}from"./chunks/helpers-BwRnPdlh.js";import{jsx as _}from"react/jsx-runtime";import{useMemo as M,useContext as N,createContext as V}from"react";import{P as U,t as $}from"./chunks/ui-components-DObOt6F8.js";import{useApolloClient as K}from"@apollo/client/react";import"@apollo/client/link/error";import"@apollo/client/link/context";import"@apollo/client/utilities";import"@apollo/client/errors";import"@apollo/client";import"styled-components";import"./icons.js";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"flubber";import"prism-react-renderer";import"react-error-boundary";import"virtua";const Q=()=>{const o=K(),{operations:r,context:e}=a();return{multiFetch:async(t,n,s)=>{const i=r[t];return i?T(o,i,n,s,e):{results:[],allSucceeded:!1,anySucceeded:!1,successCount:0,failureCount:n.length,error:`Operation ${String(t)} not configured`}},bulkPersistSources:async(t,n)=>{const s=[];for(const i of t){const t={...e,proxyID:i},{error:a}=await P(o,r.PERSIST_SOURCES,n,t);a&&s.push(`${i}: ${a}`)}return s.length?{error:s.join(", ")}:void 0},applyConfigurations:async(t,n)=>{if(!r.UPDATE_REMOTE_CONFIG)return{error:"UPDATE_REMOTE_CONFIG not configured"};if(!t.length)return{error:"No connections selected"};const s={formData:n,connectionIds:t},i=r.UPDATE_REMOTE_CONFIG;let a;return 1===t.length?({error:a}=await P(o,i,s,e)):({error:a}=await T(o,i,t,s,e)),a?{error:a}:void 0}}},W=(o,r)=>o.platformType===U.K8s?r.K8s:[U.Vm,U.Connector,U.AwsEcs].includes(o.platformType)?r.Vm:void 0,X=o=>r=>{const e=o[r.platformType];if(!e)return;const t=Object.keys(e);if(0===t.length)return;const n=$(r.schemaVersion??r.version),s=[...t].sort((o,r)=>$(r)-$(o)).find(o=>n>=$(o));return s?e[s]:void 0},Y=(o,r)=>{const e={};for(const t of Object.keys(o))e[t]=r(o[t]);return e},Z=V({formType:void 0}),oo=({children:o,formType:r})=>{const e=M(()=>({formType:r}),[r]);return _(Z.Provider,{value:e,children:o})},ro=()=>N(Z);export{oo as StorybookProvider,W as pickByPlatform,Q as useApiForConnections,ro as useStorybook,X as versionedDocument,Y as vmDialectMap};
|
package/lib/functions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{by as adaptInstrumentationRuleFromWire,bw as adaptInstrumentationRuleInputForWire,eL as buildBadgeForDesiredStatus,lD as buildCatalogFieldsDataCard,eB as buildCatalogFieldsSegments,lE as capitalizeFirstLetter,lF as cleanObjectEmptyStringsValues,a6 as compareCondition,lG as decimalsOnly,b1 as deepClone,jP as entityIdKey,jU as filterActions,jT as filterDestinations,eF as filterDestinationsByStream,jS as filterSources,jF as filterSourcesByStream,iW as findSourceByService,lH as flattenObjectKeys,eZ as formatBytes,j5 as formatDuration,ba as generateId,jM as getActionConditions,eD as getActionIcon,jN as getConditionsBooleans,ff as getContainersIcons,lI as getContainersInstrumentedCount,lJ as getDeepValue,es as getDestinationIcon,lK as getDetectedLanguageIcons,eQ as getEffectiveLanguage,f5 as getEffectiveRuntimeVersion,jQ as getEntityIcon,br as getEntityId,jL as getEntityIdKey,jO as getEntityLabel,lL as getHealthBadgeLabel,bm as getIdFromSseTarget,eH as getInstrumentationRuleIcon,lM as getMainContainerLanguage,lN as getMetricForEntity,lO as getMonitorIcon,lP as getNearestTypographySize,fe as getPlatformIcon,iN as getPlatformLabel,Y as getProgrammingLanguageIcon,lQ as getRecursiveValues,eY as getSourceKindLabel,eV as getSourceLanguageIcons,bf as getSseTargetFromId,f3 as getStatusColor,jW as getStatusFromPodStatus,f4 as getStatusIcon,e_ as getStatusTypeFromOdigosHealth,lR as getValueForRange,eU as getVirtualServiceIcon,eT as getWorkloadId,eG as getYamlFieldsForDestination,lS as hasUnhealthyInstances,lT as instrumentationRuleSourceScopesFromWire,lU as instrumentationRuleSourceScopesToWire,bD as isEmpty,bE as isLegalK8sLabel,hx as isOverTime,lV as isStringABoolean,lW as isTimeElapsed,f2 as isValidVersion,lX as mapConditions,eN as mapDesiredStatusToConditionStatus,ez as mapDesiredStatusesToConditions,eE as mapDestinationFieldsForDisplay,bI as mapExportedSignals,bG as mapSupportedSignals,lY as numbersOnly,lZ as parseBooleanFromString,l_ as parseJsonStringToPrettyString,j7 as parseRawOtlp,cg as prepareDestinationFormData,l$ as removeEmptyValuesFromObject,y as safeJsonParse,m0 as safeJsonStringify,m1 as setDeepValue,m2 as sleep,ak as splitCamelString,m3 as stringifyNonStringValues,t as trimVersion}from"./chunks/ui-components-DObOt6F8.js";import"react/jsx-runtime";import"react";import"styled-components";import"./icons.js";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"flubber";import"prism-react-renderer";import"react-error-boundary";import"virtua";
|
package/lib/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{nS as IGNORE_OUTSIDE_CLICK_ATTR,df as PopupAlignX,hy as PopupAlignY,j1 as formatDurationMinutes,nT as formatDurationMs,nU as isInsideIgnoredPortal,nV as useActionFormData,nW as useAnchoredPopup,nX as useBodyScroll,jR as useContainerSize,b8 as useCopy,nY as useDataStreamFormData,nZ as useDestinationFormData,u as useFullscreen,bz as useGenericForm,n_ as useInstrumentationRuleFormData,hw as useKeyDown,e$ as useOnClickOutside,n$ as useOverflow,o0 as usePopup,eK as useScrollIntoViewWhen,kc as useScrollTo,jI as useSessionStorage,o1 as useSourceFormData,eI as useTimeAgo}from"./chunks/ui-components-DObOt6F8.js";import"react/jsx-runtime";import"react";import"styled-components";import"./icons.js";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"flubber";import"prism-react-renderer";import"react-error-boundary";import"virtua";
|