import * as Types from '../graphql-types'; //============================================================== /* tslint:disable */ /* eslint-disable */ /* prettier-ignore */ // @generated // This file was automatically generated and should not be edited. //============================================================== 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 const GetEventSource = ` query getEventSource($cloudId: ID!, $eventType: CompassEventType!, $externalEventSourceId: ID!, $includeEvents: Boolean!, $eventsQuery: CompassEventsInEventSourceQuery) { compass { eventSource( cloudId: $cloudId eventType: $eventType externalEventSourceId: $externalEventSourceId ) { __typename ... on EventSource { id externalEventSourceId forgeAppId events(query: $eventsQuery) @include(if: $includeEvents) { __typename ... on CompassEventConnection { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } nodes { __typename description displayName eventType lastUpdated updateSequenceNumber url ... on CompassDeploymentEvent { deploymentProperties { sequenceNumber state pipeline { displayName pipelineId url } environment { category displayName environmentId } startedAt completedAt } } ... on CompassAlertEvent { alertProperties { id } } ... on CompassBuildEvent { buildProperties { state pipeline { pipelineId displayName url } startedAt completedAt } } ... on CompassFlagEvent { flagProperties { id status } } ... on CompassIncidentEvent { incidentProperties { id state } } ... on CompassLifecycleEvent { lifecycleProperties { id stage } } ... on CompassCustomEvent { customEventProperties { id icon } } } } ... on QueryError { message extensions { statusCode errorType } } } } ... on QueryError { message extensions { statusCode errorType } } } } } `;