import * as Types from '../graphql-types'; export type GetEventSourceQueryVariables = Types.Exact<{ cloudId: Types.Scalars['ID']; eventType: Types.CompassEventType; externalEventSourceId: Types.Scalars['ID']; includeEvents: Types.Scalars['Boolean']; eventsQuery?: Types.InputMaybe; }>; export type GetEventSourceQuery = { __typename?: 'Query'; compass?: { __typename?: 'CompassCatalogQueryApi'; eventSource?: { __typename: 'EventSource'; id: string; externalEventSourceId: string; forgeAppId?: string | null; events?: { __typename: 'CompassEventConnection'; pageInfo: { __typename?: 'PageInfo'; hasNextPage: boolean; hasPreviousPage: boolean; startCursor?: string | null; endCursor?: string | null; }; nodes?: Array<{ __typename: 'CompassAlertEvent'; description?: string | null; displayName: string; eventType: Types.CompassEventType; lastUpdated: any; updateSequenceNumber: any; url?: any | null; alertProperties: { __typename?: 'CompassAlertEventProperties'; id: string; }; } | { __typename: 'CompassBuildEvent'; description?: string | null; displayName: string; eventType: Types.CompassEventType; lastUpdated: any; updateSequenceNumber: any; url?: any | null; buildProperties: { __typename?: 'CompassBuildEventProperties'; state: Types.CompassBuildEventState; startedAt: any; completedAt?: any | null; pipeline?: { __typename?: 'CompassBuildEventPipeline'; pipelineId: string; displayName?: string | null; url?: string | null; } | null; }; } | { __typename: 'CompassCustomEvent'; description?: string | null; displayName: string; eventType: Types.CompassEventType; lastUpdated: any; updateSequenceNumber: any; url?: any | null; customEventProperties: { __typename?: 'CompassCustomEventProperties'; id: string; icon?: Types.CompassCustomEventIcon | null; }; } | { __typename: 'CompassDeploymentEvent'; description?: string | null; displayName: string; eventType: Types.CompassEventType; lastUpdated: any; updateSequenceNumber: any; url?: any | null; deploymentProperties: { __typename?: 'CompassDeploymentEventProperties'; sequenceNumber?: any | null; state?: Types.CompassDeploymentEventState | null; startedAt?: any | null; completedAt?: any | null; pipeline?: { __typename?: 'CompassDeploymentEventPipeline'; displayName?: string | null; pipelineId?: string | null; url?: string | null; } | null; environment?: { __typename?: 'CompassDeploymentEventEnvironment'; category?: Types.CompassDeploymentEventEnvironmentCategory | null; displayName?: string | null; environmentId?: string | null; } | null; }; } | { __typename: 'CompassFlagEvent'; description?: string | null; displayName: string; eventType: Types.CompassEventType; lastUpdated: any; updateSequenceNumber: any; url?: any | null; flagProperties: { __typename?: 'CompassFlagEventProperties'; id: string; status?: string | null; }; } | { __typename: 'CompassIncidentEvent'; description?: string | null; displayName: string; eventType: Types.CompassEventType; lastUpdated: any; updateSequenceNumber: any; url?: any | null; incidentProperties: { __typename?: 'CompassIncidentEventProperties'; id: string; state?: Types.CompassIncidentEventState | null; }; } | { __typename: 'CompassLifecycleEvent'; description?: string | null; displayName: string; eventType: Types.CompassEventType; lastUpdated: any; updateSequenceNumber: any; url?: any | null; lifecycleProperties: { __typename?: 'CompassLifecycleEventProperties'; id: string; stage?: Types.CompassLifecycleEventStage | null; }; } | { __typename: 'CompassPullRequestEvent'; description?: string | null; displayName: string; eventType: Types.CompassEventType; lastUpdated: any; updateSequenceNumber: any; url?: any | null; } | { __typename: 'CompassPushEvent'; description?: string | null; displayName: string; eventType: Types.CompassEventType; lastUpdated: any; updateSequenceNumber: any; url?: any | null; } | { __typename: 'CompassVulnerabilityEvent'; description?: string | null; displayName: string; eventType: Types.CompassEventType; lastUpdated: any; updateSequenceNumber: any; url?: any | null; }> | null; } | { __typename: 'QueryError'; message?: string | null; extensions?: Array<{ __typename?: 'AdminApplicationErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'CplsQueryErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'GenericQueryErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'HelpLayoutQueryErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'JiraIssueCommandPaletteActionUnsupportedErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'JiraIssueFieldUnsupportedErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'JiraIssueSearchErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'JiraVersionConnectionResultQueryErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'LpConnectionQueryErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'ShepherdGenericQueryErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'ToolchainCheckAuthErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'ToolchainContainerConnectionErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'ToolchainWorkspaceConnectionErrorExtension'; statusCode?: number | null; errorType?: string | null; }> | null; } | null; } | { __typename: 'QueryError'; message?: string | null; extensions?: Array<{ __typename?: 'AdminApplicationErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'CplsQueryErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'GenericQueryErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'HelpLayoutQueryErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'JiraIssueCommandPaletteActionUnsupportedErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'JiraIssueFieldUnsupportedErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'JiraIssueSearchErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'JiraVersionConnectionResultQueryErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'LpConnectionQueryErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'ShepherdGenericQueryErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'ToolchainCheckAuthErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'ToolchainContainerConnectionErrorExtension'; statusCode?: number | null; errorType?: string | null; } | { __typename?: 'ToolchainWorkspaceConnectionErrorExtension'; statusCode?: number | null; errorType?: string | null; }> | null; } | null; } | null; }; export declare const GetEventSource = "\n query getEventSource($cloudId: ID!, $eventType: CompassEventType!, $externalEventSourceId: ID!, $includeEvents: Boolean!, $eventsQuery: CompassEventsInEventSourceQuery) {\n compass {\n eventSource(\n cloudId: $cloudId\n eventType: $eventType\n externalEventSourceId: $externalEventSourceId\n ) {\n __typename\n ... on EventSource {\n id\n externalEventSourceId\n forgeAppId\n events(query: $eventsQuery) @include(if: $includeEvents) {\n __typename\n ... on CompassEventConnection {\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n nodes {\n __typename\n description\n displayName\n eventType\n lastUpdated\n updateSequenceNumber\n url\n ... on CompassDeploymentEvent {\n deploymentProperties {\n sequenceNumber\n state\n pipeline {\n displayName\n pipelineId\n url\n }\n environment {\n category\n displayName\n environmentId\n }\n startedAt\n completedAt\n }\n }\n ... on CompassAlertEvent {\n alertProperties {\n id\n }\n }\n ... on CompassBuildEvent {\n buildProperties {\n state\n pipeline {\n pipelineId\n displayName\n url\n }\n startedAt\n completedAt\n }\n }\n ... on CompassFlagEvent {\n flagProperties {\n id\n status\n }\n }\n ... on CompassIncidentEvent {\n incidentProperties {\n id\n state\n }\n }\n ... on CompassLifecycleEvent {\n lifecycleProperties {\n id\n stage\n }\n }\n ... on CompassCustomEvent {\n customEventProperties {\n id\n icon\n }\n }\n }\n }\n ... on QueryError {\n message\n extensions {\n statusCode\n errorType\n }\n }\n }\n }\n ... on QueryError {\n message\n extensions {\n statusCode\n errorType\n }\n }\n }\n }\n}\n ";