/* eslint-disable @typescript-eslint/array-type */ import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; export type Maybe = T | undefined; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; const defaultOptions = {}; /** All built-in and custom scalars, mapped to their actual values */ export interface Scalars { ID: string; String: string; Boolean: boolean; Int: number; Float: number; InstantTime: string; JSON: any; } export interface MdAction { __typename?: 'MdAction'; id: Scalars['String']; actionId: Scalars['String']; type: Scalars['String']; status: MdActionStatus; startedAt?: Maybe; completedAt?: Maybe; link?: Maybe; actionType: MdActionType; } export type MdActionStatus = 'NOT_EVALUATED' | 'PENDING' | 'PASS' | 'FAIL' | 'FORCE_PASS'; export type MdActionType = 'VERIFICATION' | 'POST_DEPLOY'; export interface MdApplication { __typename?: 'MdApplication'; id: Scalars['String']; name: Scalars['String']; account: Scalars['String']; isPaused?: Maybe; pausedInfo?: Maybe; environments: Array; notifications?: Maybe>; gitIntegration?: Maybe; config?: Maybe; } export interface MdArtifact { __typename?: 'MdArtifact'; id: Scalars['String']; environment: Scalars['String']; name: Scalars['String']; type: Scalars['String']; reference: Scalars['String']; versions?: Maybe>; pinnedVersion?: Maybe; latestApprovedVersion?: Maybe; resources?: Maybe>; } export interface MdArtifactVersionsArgs { statuses?: Maybe>; versions?: Maybe>; limit?: Maybe; } export type MdArtifactStatusInEnvironment = | 'PENDING' | 'APPROVED' | 'DEPLOYING' | 'CURRENT' | 'PREVIOUS' | 'VETOED' | 'SKIPPED'; export interface MdArtifactVersionActionPayload { application: Scalars['String']; environment: Scalars['String']; reference: Scalars['String']; comment: Scalars['String']; version: Scalars['String']; } export interface MdArtifactVersionInEnvironment { __typename?: 'MdArtifactVersionInEnvironment'; id: Scalars['String']; version: Scalars['String']; buildNumber?: Maybe; createdAt?: Maybe; deployedAt?: Maybe; gitMetadata?: Maybe; packageDiff?: Maybe; environment?: Maybe; reference: Scalars['String']; status?: Maybe; lifecycleSteps?: Maybe>; constraints?: Maybe>; verifications?: Maybe>; postDeploy?: Maybe>; veto?: Maybe; isCurrent?: Maybe; } export interface MdCommitInfo { __typename?: 'MdCommitInfo'; sha?: Maybe; link?: Maybe; message?: Maybe; } export interface MdComparisonLinks { __typename?: 'MdComparisonLinks'; toPreviousVersion?: Maybe; toCurrentVersion?: Maybe; } export interface MdConfig { __typename?: 'MdConfig'; id: Scalars['ID']; updatedAt?: Maybe; rawConfig?: Maybe; processedConfig?: Maybe; previewEnvironmentsConfigured?: Maybe; } export interface MdConstraint { __typename?: 'MdConstraint'; type: Scalars['String']; status: MdConstraintStatus; startedAt?: Maybe; judgedAt?: Maybe; judgedBy?: Maybe; comment?: Maybe; attributes?: Maybe; } export type MdConstraintStatus = 'BLOCKED' | 'PENDING' | 'PASS' | 'FAIL' | 'FORCE_PASS'; export interface MdConstraintStatusPayload { application: Scalars['String']; environment: Scalars['String']; type: Scalars['String']; version: Scalars['String']; reference: Scalars['String']; status: MdConstraintStatus; } export interface MdDeployLocation { __typename?: 'MdDeployLocation'; account?: Maybe; region?: Maybe; sublocations?: Maybe>; } export interface MdDeployTarget { __typename?: 'MdDeployTarget'; cloudProvider?: Maybe; location?: Maybe; status?: Maybe; } export interface MdDismissNotificationPayload { application: Scalars['String']; id: Scalars['String']; } export interface MdEnvironment { __typename?: 'MdEnvironment'; id: Scalars['ID']; name: Scalars['String']; state: MdEnvironmentState; isPreview?: Maybe; isDeleting?: Maybe; gitMetadata?: Maybe; basedOn?: Maybe; } export interface MdEnvironmentState { __typename?: 'MdEnvironmentState'; id: Scalars['String']; resources?: Maybe>; artifacts?: Maybe>; } export type MdEventLevel = 'SUCCESS' | 'INFO' | 'WARNING' | 'ERROR'; export interface MdExecutionSummary { __typename?: 'MdExecutionSummary'; status: MdTaskStatus; currentStage?: Maybe; stages?: Maybe>; deployTargets?: Maybe>; completedDeployTargets?: Maybe>; error?: Maybe; } export interface MdGitIntegration { __typename?: 'MdGitIntegration'; id: Scalars['String']; repository?: Maybe; branch?: Maybe; isEnabled?: Maybe; manifestPath?: Maybe; link?: Maybe; } export interface MdGitMetadata { __typename?: 'MdGitMetadata'; commit?: Maybe; author?: Maybe; project?: Maybe; branch?: Maybe; repoName?: Maybe; pullRequest?: Maybe; commitInfo?: Maybe; comparisonLinks?: Maybe; } export type MdLifecycleEventScope = 'PRE_DEPLOYMENT'; export type MdLifecycleEventStatus = 'NOT_STARTED' | 'RUNNING' | 'SUCCEEDED' | 'FAILED' | 'ABORTED' | 'UNKNOWN'; export type MdLifecycleEventType = 'BAKE' | 'BUILD'; export interface MdLifecycleStep { __typename?: 'MdLifecycleStep'; scope?: Maybe; type: MdLifecycleEventType; id?: Maybe; status: MdLifecycleEventStatus; text?: Maybe; link?: Maybe; startedAt?: Maybe; completedAt?: Maybe; artifactVersion?: Maybe; } export interface MdLocation { __typename?: 'MdLocation'; account?: Maybe; regions?: Maybe>; } export interface MdMarkArtifactVersionAsGoodPayload { application: Scalars['String']; environment: Scalars['String']; reference: Scalars['String']; version: Scalars['String']; } export interface MdMoniker { __typename?: 'MdMoniker'; app?: Maybe; stack?: Maybe; detail?: Maybe; } export interface MdNotification { __typename?: 'MdNotification'; id: Scalars['String']; level: MdEventLevel; message: Scalars['String']; triggeredAt?: Maybe; triggeredBy?: Maybe; environment?: Maybe; link?: Maybe; isActive?: Maybe; dismissedAt?: Maybe; dismissedBy?: Maybe; } export interface MdPackageAndVersion { __typename?: 'MdPackageAndVersion'; package: Scalars['String']; version: Scalars['String']; } export interface MdPackageAndVersionChange { __typename?: 'MdPackageAndVersionChange'; package: Scalars['String']; oldVersion: Scalars['String']; newVersion: Scalars['String']; } export interface MdPackageDiff { __typename?: 'MdPackageDiff'; added?: Maybe>; removed?: Maybe>; changed?: Maybe>; } export interface MdPausedInfo { __typename?: 'MdPausedInfo'; id: Scalars['String']; by?: Maybe; at?: Maybe; comment?: Maybe; } export interface MdPinnedVersion { __typename?: 'MdPinnedVersion'; id: Scalars['String']; name: Scalars['String']; reference: Scalars['String']; version: Scalars['String']; gitMetadata?: Maybe; buildNumber?: Maybe; pinnedAt?: Maybe; pinnedBy?: Maybe; comment?: Maybe; } export interface MdPullRequest { __typename?: 'MdPullRequest'; number?: Maybe; link?: Maybe; } export interface MdResource { __typename?: 'MdResource'; id: Scalars['String']; kind: Scalars['String']; moniker?: Maybe; state?: Maybe; artifact?: Maybe; displayName?: Maybe; location?: Maybe; rawDefinition?: Maybe; } export interface MdResourceActuationState { __typename?: 'MdResourceActuationState'; resourceId: Scalars['String']; status: MdResourceActuationStatus; reason?: Maybe; event?: Maybe; tasks?: Maybe>; } export type MdResourceActuationStatus = 'PROCESSING' | 'UP_TO_DATE' | 'ERROR' | 'WAITING' | 'NOT_MANAGED' | 'DELETING'; export interface MdResourceTask { __typename?: 'MdResourceTask'; id: Scalars['String']; name: Scalars['String']; running: Scalars['Boolean']; summary?: Maybe; } export interface MdRestartConstraintEvaluationPayload { application: Scalars['String']; environment: Scalars['String']; type: Scalars['String']; reference: Scalars['String']; version: Scalars['String']; } export interface MdRetryArtifactActionPayload { application: Scalars['String']; environment: Scalars['String']; reference: Scalars['String']; version: Scalars['String']; actionId: Scalars['String']; actionType: MdActionType; } export type MdRolloutTargetStatus = 'NOT_STARTED' | 'RUNNING' | 'SUCCEEDED' | 'FAILED'; export interface MdStageDetail { __typename?: 'MdStageDetail'; id?: Maybe; type?: Maybe; name?: Maybe; startTime?: Maybe; endTime?: Maybe; status?: Maybe; refId?: Maybe; requisiteStageRefIds?: Maybe>; } export type MdTaskStatus = | 'NOT_STARTED' | 'RUNNING' | 'PAUSED' | 'SUSPENDED' | 'SUCCEEDED' | 'FAILED_CONTINUE' | 'TERMINAL' | 'CANCELED' | 'REDIRECT' | 'STOPPED' | 'BUFFERED' | 'SKIPPED'; export interface MdToggleResourceManagementPayload { id: Scalars['ID']; isPaused: Scalars['Boolean']; } export interface MdUnpinArtifactVersionPayload { application: Scalars['String']; environment: Scalars['String']; reference: Scalars['String']; } export interface MdUpdateGitIntegrationPayload { application: Scalars['String']; isEnabled?: Maybe; manifestPath?: Maybe; } export interface MdVersionVeto { __typename?: 'MdVersionVeto'; vetoedBy?: Maybe; vetoedAt?: Maybe; comment?: Maybe; } export interface Mutation { __typename?: 'Mutation'; updateConstraintStatus?: Maybe; restartConstraintEvaluation?: Maybe; toggleManagement?: Maybe; pinArtifactVersion?: Maybe; markArtifactVersionAsBad?: Maybe; unpinArtifactVersion?: Maybe; markArtifactVersionAsGood?: Maybe; retryArtifactVersionAction?: Maybe; dismissNotification?: Maybe; updateGitIntegration?: Maybe; toggleResourceManagement?: Maybe; importDeliveryConfig?: Maybe; } export interface MutationUpdateConstraintStatusArgs { payload: MdConstraintStatusPayload; } export interface MutationRestartConstraintEvaluationArgs { payload: MdRestartConstraintEvaluationPayload; } export interface MutationToggleManagementArgs { application: Scalars['ID']; isPaused: Scalars['Boolean']; comment?: Maybe; } export interface MutationPinArtifactVersionArgs { payload: MdArtifactVersionActionPayload; } export interface MutationMarkArtifactVersionAsBadArgs { payload: MdArtifactVersionActionPayload; } export interface MutationUnpinArtifactVersionArgs { payload: MdUnpinArtifactVersionPayload; } export interface MutationMarkArtifactVersionAsGoodArgs { payload: MdMarkArtifactVersionAsGoodPayload; } export interface MutationRetryArtifactVersionActionArgs { payload?: Maybe; } export interface MutationDismissNotificationArgs { payload: MdDismissNotificationPayload; } export interface MutationUpdateGitIntegrationArgs { payload?: Maybe; } export interface MutationToggleResourceManagementArgs { payload?: Maybe; } export interface MutationImportDeliveryConfigArgs { application: Scalars['String']; } export interface Query { __typename?: 'Query'; application?: Maybe; } export interface QueryApplicationArgs { appName: Scalars['String']; } export type ActionDetailsFragment = { __typename?: 'MdAction' } & Pick< MdAction, 'id' | 'actionId' | 'actionType' | 'status' | 'startedAt' | 'completedAt' | 'link' >; export type DetailedVersionFieldsFragment = { __typename?: 'MdArtifactVersionInEnvironment' } & Pick< MdArtifactVersionInEnvironment, 'id' | 'buildNumber' | 'version' | 'createdAt' | 'status' | 'isCurrent' | 'deployedAt' > & { gitMetadata?: Maybe< { __typename?: 'MdGitMetadata' } & Pick & { commitInfo?: Maybe<{ __typename?: 'MdCommitInfo' } & Pick>; pullRequest?: Maybe<{ __typename?: 'MdPullRequest' } & Pick>; comparisonLinks?: Maybe< { __typename?: 'MdComparisonLinks' } & Pick >; } >; lifecycleSteps?: Maybe< Array< { __typename?: 'MdLifecycleStep' } & Pick< MdLifecycleStep, 'startedAt' | 'completedAt' | 'type' | 'status' | 'link' > > >; constraints?: Maybe< Array< { __typename?: 'MdConstraint' } & Pick > >; verifications?: Maybe>; postDeploy?: Maybe>; veto?: Maybe<{ __typename?: 'MdVersionVeto' } & Pick>; }; export type ArtifactPinnedVersionFieldsFragment = { __typename?: 'MdArtifact' } & { pinnedVersion?: Maybe< { __typename?: 'MdPinnedVersion' } & Pick< MdPinnedVersion, 'id' | 'version' | 'buildNumber' | 'pinnedAt' | 'pinnedBy' | 'comment' > & { gitMetadata?: Maybe< { __typename?: 'MdGitMetadata' } & { commitInfo?: Maybe<{ __typename?: 'MdCommitInfo' } & Pick>; } >; } >; }; export type BaseEnvironmentFieldsFragment = { __typename?: 'MdEnvironment' } & Pick< MdEnvironment, 'id' | 'name' | 'isPreview' | 'basedOn' > & { gitMetadata?: Maybe< { __typename?: 'MdGitMetadata' } & Pick & { pullRequest?: Maybe<{ __typename?: 'MdPullRequest' } & Pick>; } >; }; export type BaesResourceFieldsFragment = { __typename?: 'MdResource' } & Pick< MdResource, 'id' | 'kind' | 'displayName' | 'rawDefinition' > & { moniker?: Maybe<{ __typename?: 'MdMoniker' } & Pick>; location?: Maybe<{ __typename?: 'MdLocation' } & Pick>; }; export type FetchApplicationQueryVariables = Exact<{ appName: Scalars['String']; statuses?: Maybe | MdArtifactStatusInEnvironment>; }>; export type FetchApplicationQuery = { __typename?: 'Query' } & { application?: Maybe< { __typename?: 'MdApplication' } & Pick & { config?: Maybe<{ __typename?: 'MdConfig' } & Pick>; environments: Array< { __typename?: 'MdEnvironment' } & Pick & { state: { __typename?: 'MdEnvironmentState' } & Pick & { artifacts?: Maybe< Array< { __typename?: 'MdArtifact' } & Pick< MdArtifact, 'id' | 'name' | 'environment' | 'type' | 'reference' > & { versions?: Maybe< Array<{ __typename?: 'MdArtifactVersionInEnvironment' } & DetailedVersionFieldsFragment> >; resources?: Maybe>; } & ArtifactPinnedVersionFieldsFragment > >; resources?: Maybe>; }; } & BaseEnvironmentFieldsFragment >; } >; }; export type FetchCurrentVersionQueryVariables = Exact<{ appName: Scalars['String']; }>; export type FetchCurrentVersionQuery = { __typename?: 'Query' } & { application?: Maybe< { __typename?: 'MdApplication' } & Pick & { environments: Array< { __typename?: 'MdEnvironment' } & Pick & { state: { __typename?: 'MdEnvironmentState' } & { artifacts?: Maybe< Array< { __typename?: 'MdArtifact' } & Pick & { versions?: Maybe< Array< { __typename?: 'MdArtifactVersionInEnvironment' } & Pick< MdArtifactVersionInEnvironment, 'id' | 'version' | 'buildNumber' | 'createdAt' > & { gitMetadata?: Maybe< { __typename?: 'MdGitMetadata' } & Pick & { commitInfo?: Maybe< { __typename?: 'MdCommitInfo' } & Pick >; } >; } > >; } > >; }; } >; } >; }; export type FetchVersionsHistoryQueryVariables = Exact<{ appName: Scalars['String']; limit?: Maybe; }>; export type FetchVersionsHistoryQuery = { __typename?: 'Query' } & { application?: Maybe< { __typename?: 'MdApplication' } & Pick & { environments: Array< { __typename?: 'MdEnvironment' } & { state: { __typename?: 'MdEnvironmentState' } & Pick & { artifacts?: Maybe< Array< { __typename?: 'MdArtifact' } & Pick< MdArtifact, 'id' | 'name' | 'environment' | 'type' | 'reference' > & { versions?: Maybe< Array< { __typename?: 'MdArtifactVersionInEnvironment' } & Pick< MdArtifactVersionInEnvironment, 'id' | 'buildNumber' | 'version' | 'createdAt' | 'status' | 'isCurrent' > & { gitMetadata?: Maybe< { __typename?: 'MdGitMetadata' } & Pick< MdGitMetadata, 'commit' | 'author' | 'branch' > & { commitInfo?: Maybe< { __typename?: 'MdCommitInfo' } & Pick >; pullRequest?: Maybe< { __typename?: 'MdPullRequest' } & Pick >; } >; } > >; } & ArtifactPinnedVersionFieldsFragment > >; }; } & BaseEnvironmentFieldsFragment >; } >; }; export type FetchPinnedVersionsQueryVariables = Exact<{ appName: Scalars['String']; }>; export type FetchPinnedVersionsQuery = { __typename?: 'Query' } & { application?: Maybe< { __typename?: 'MdApplication' } & Pick & { environments: Array< { __typename?: 'MdEnvironment' } & Pick & { state: { __typename?: 'MdEnvironmentState' } & Pick & { artifacts?: Maybe< Array< { __typename?: 'MdArtifact' } & Pick< MdArtifact, 'id' | 'name' | 'environment' | 'type' | 'reference' > & ArtifactPinnedVersionFieldsFragment > >; }; } >; } >; }; export type FetchVersionQueryVariables = Exact<{ appName: Scalars['String']; versions?: Maybe | Scalars['String']>; }>; export type FetchVersionQuery = { __typename?: 'Query' } & { application?: Maybe< { __typename?: 'MdApplication' } & Pick & { environments: Array< { __typename?: 'MdEnvironment' } & Pick & { state: { __typename?: 'MdEnvironmentState' } & Pick & { artifacts?: Maybe< Array< { __typename?: 'MdArtifact' } & Pick< MdArtifact, 'id' | 'name' | 'environment' | 'type' | 'reference' > & { versions?: Maybe< Array<{ __typename?: 'MdArtifactVersionInEnvironment' } & DetailedVersionFieldsFragment> >; } > >; }; } >; } >; }; export type FetchResourceStatusQueryVariables = Exact<{ appName: Scalars['String']; }>; export type FetchResourceStatusQuery = { __typename?: 'Query' } & { application?: Maybe< { __typename?: 'MdApplication' } & Pick & { environments: Array< { __typename?: 'MdEnvironment' } & Pick & { state: { __typename?: 'MdEnvironmentState' } & Pick & { resources?: Maybe< Array< { __typename?: 'MdResource' } & Pick & { state?: Maybe< { __typename?: 'MdResourceActuationState' } & Pick< MdResourceActuationState, 'status' | 'reason' | 'event' > & { tasks?: Maybe< Array<{ __typename?: 'MdResourceTask' } & Pick> >; } >; } > >; }; } >; } >; }; export type FetchNotificationsQueryVariables = Exact<{ appName: Scalars['String']; }>; export type FetchNotificationsQuery = { __typename?: 'Query' } & { application?: Maybe< { __typename?: 'MdApplication' } & Pick & { notifications?: Maybe< Array< { __typename?: 'MdNotification' } & Pick< MdNotification, 'id' | 'level' | 'message' | 'triggeredAt' | 'link' > > >; } >; }; export type FetchApplicationManagementDataQueryVariables = Exact<{ appName: Scalars['String']; }>; export type FetchApplicationManagementDataQuery = { __typename?: 'Query' } & { application?: Maybe< { __typename?: 'MdApplication' } & Pick & { config?: Maybe< { __typename?: 'MdConfig' } & Pick >; gitIntegration?: Maybe< { __typename?: 'MdGitIntegration' } & Pick< MdGitIntegration, 'id' | 'repository' | 'branch' | 'isEnabled' | 'link' | 'manifestPath' > >; } >; }; export type FetchApplicationManagementStatusQueryVariables = Exact<{ appName: Scalars['String']; }>; export type FetchApplicationManagementStatusQuery = { __typename?: 'Query' } & { application?: Maybe<{ __typename?: 'MdApplication' } & Pick>; }; export type UpdateConstraintMutationVariables = Exact<{ payload: MdConstraintStatusPayload; }>; export type UpdateConstraintMutation = { __typename?: 'Mutation' } & Pick; export type ToggleManagementMutationVariables = Exact<{ application: Scalars['ID']; isPaused: Scalars['Boolean']; }>; export type ToggleManagementMutation = { __typename?: 'Mutation' } & Pick; export type PinVersionMutationVariables = Exact<{ payload: MdArtifactVersionActionPayload; }>; export type PinVersionMutation = { __typename?: 'Mutation' } & Pick; export type UnpinVersionMutationVariables = Exact<{ payload: MdUnpinArtifactVersionPayload; }>; export type UnpinVersionMutation = { __typename?: 'Mutation' } & Pick; export type MarkVersionAsBadMutationVariables = Exact<{ payload: MdArtifactVersionActionPayload; }>; export type MarkVersionAsBadMutation = { __typename?: 'Mutation' } & Pick; export type MarkVersionAsGoodMutationVariables = Exact<{ payload: MdMarkArtifactVersionAsGoodPayload; }>; export type MarkVersionAsGoodMutation = { __typename?: 'Mutation' } & Pick; export type RetryVersionActionMutationVariables = Exact<{ payload: MdRetryArtifactActionPayload; }>; export type RetryVersionActionMutation = { __typename?: 'Mutation' } & { retryArtifactVersionAction?: Maybe<{ __typename?: 'MdAction' } & ActionDetailsFragment>; }; export type UpdateGitIntegrationMutationVariables = Exact<{ payload: MdUpdateGitIntegrationPayload; }>; export type UpdateGitIntegrationMutation = { __typename?: 'Mutation' } & { updateGitIntegration?: Maybe<{ __typename?: 'MdGitIntegration' } & Pick>; }; export type DismissNotificationMutationVariables = Exact<{ payload: MdDismissNotificationPayload; }>; export type DismissNotificationMutation = { __typename?: 'Mutation' } & Pick; export type ImportDeliveryConfigMutationVariables = Exact<{ application: Scalars['String']; }>; export type ImportDeliveryConfigMutation = { __typename?: 'Mutation' } & Pick; export type ToggleResourceManagementMutationVariables = Exact<{ payload?: Maybe; }>; export type ToggleResourceManagementMutation = { __typename?: 'Mutation' } & Pick; export type RestartConstraintEvaluationMutationVariables = Exact<{ payload: MdRestartConstraintEvaluationPayload; }>; export type RestartConstraintEvaluationMutation = { __typename?: 'Mutation' } & Pick< Mutation, 'restartConstraintEvaluation' >; export const ActionDetailsFragmentDoc = gql` fragment actionDetails on MdAction { id actionId actionType status startedAt completedAt link } `; export const DetailedVersionFieldsFragmentDoc = gql` fragment detailedVersionFields on MdArtifactVersionInEnvironment { id buildNumber version createdAt status isCurrent gitMetadata { commit author branch commitInfo { sha link message } pullRequest { number link } comparisonLinks { toPreviousVersion toCurrentVersion } } deployedAt lifecycleSteps { startedAt completedAt type status link } constraints { type status judgedBy judgedAt attributes } verifications { ...actionDetails } postDeploy { ...actionDetails } veto { vetoedBy vetoedAt comment } } ${ActionDetailsFragmentDoc} `; export const ArtifactPinnedVersionFieldsFragmentDoc = gql` fragment artifactPinnedVersionFields on MdArtifact { pinnedVersion { id version buildNumber pinnedAt pinnedBy comment gitMetadata { commitInfo { message } } } } `; export const BaseEnvironmentFieldsFragmentDoc = gql` fragment baseEnvironmentFields on MdEnvironment { id name isPreview gitMetadata { branch pullRequest { link } } basedOn } `; export const BaesResourceFieldsFragmentDoc = gql` fragment baesResourceFields on MdResource { id kind displayName moniker { app stack detail } location { account regions } rawDefinition } `; export const FetchApplicationDocument = gql` query fetchApplication($appName: String!, $statuses: [MdArtifactStatusInEnvironment!]) { application(appName: $appName) { id name config { id previewEnvironmentsConfigured } environments { ...baseEnvironmentFields isDeleting state { id artifacts { id name environment type reference versions(statuses: $statuses) { ...detailedVersionFields } ...artifactPinnedVersionFields resources { ...baesResourceFields } } resources { ...baesResourceFields } } } } } ${BaseEnvironmentFieldsFragmentDoc} ${DetailedVersionFieldsFragmentDoc} ${ArtifactPinnedVersionFieldsFragmentDoc} ${BaesResourceFieldsFragmentDoc} `; /** * __useFetchApplicationQuery__ * * To run a query within a React component, call `useFetchApplicationQuery` and pass it any options that fit your needs. * When your component renders, `useFetchApplicationQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useFetchApplicationQuery({ * variables: { * appName: // value for 'appName' * statuses: // value for 'statuses' * }, * }); */ export function useFetchApplicationQuery( baseOptions: Apollo.QueryHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useQuery(FetchApplicationDocument, options); } export function useFetchApplicationLazyQuery( baseOptions?: Apollo.LazyQueryHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useLazyQuery(FetchApplicationDocument, options); } export type FetchApplicationQueryHookResult = ReturnType; export type FetchApplicationLazyQueryHookResult = ReturnType; export type FetchApplicationQueryResult = Apollo.QueryResult; export const FetchCurrentVersionDocument = gql` query fetchCurrentVersion($appName: String!) { application(appName: $appName) { id name environments { id name state { artifacts { id name reference environment versions(statuses: [CURRENT]) { id version buildNumber createdAt gitMetadata { commit commitInfo { sha message } } } } } } } } `; /** * __useFetchCurrentVersionQuery__ * * To run a query within a React component, call `useFetchCurrentVersionQuery` and pass it any options that fit your needs. * When your component renders, `useFetchCurrentVersionQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useFetchCurrentVersionQuery({ * variables: { * appName: // value for 'appName' * }, * }); */ export function useFetchCurrentVersionQuery( baseOptions: Apollo.QueryHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useQuery( FetchCurrentVersionDocument, options, ); } export function useFetchCurrentVersionLazyQuery( baseOptions?: Apollo.LazyQueryHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useLazyQuery( FetchCurrentVersionDocument, options, ); } export type FetchCurrentVersionQueryHookResult = ReturnType; export type FetchCurrentVersionLazyQueryHookResult = ReturnType; export type FetchCurrentVersionQueryResult = Apollo.QueryResult< FetchCurrentVersionQuery, FetchCurrentVersionQueryVariables >; export const FetchVersionsHistoryDocument = gql` query fetchVersionsHistory($appName: String!, $limit: Int) { application(appName: $appName) { id name environments { ...baseEnvironmentFields state { id artifacts { id name environment type reference versions(limit: $limit) { id buildNumber version createdAt status isCurrent gitMetadata { commit author branch commitInfo { sha link message } pullRequest { number link } } } ...artifactPinnedVersionFields } } } } } ${BaseEnvironmentFieldsFragmentDoc} ${ArtifactPinnedVersionFieldsFragmentDoc} `; /** * __useFetchVersionsHistoryQuery__ * * To run a query within a React component, call `useFetchVersionsHistoryQuery` and pass it any options that fit your needs. * When your component renders, `useFetchVersionsHistoryQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useFetchVersionsHistoryQuery({ * variables: { * appName: // value for 'appName' * limit: // value for 'limit' * }, * }); */ export function useFetchVersionsHistoryQuery( baseOptions: Apollo.QueryHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useQuery( FetchVersionsHistoryDocument, options, ); } export function useFetchVersionsHistoryLazyQuery( baseOptions?: Apollo.LazyQueryHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useLazyQuery( FetchVersionsHistoryDocument, options, ); } export type FetchVersionsHistoryQueryHookResult = ReturnType; export type FetchVersionsHistoryLazyQueryHookResult = ReturnType; export type FetchVersionsHistoryQueryResult = Apollo.QueryResult< FetchVersionsHistoryQuery, FetchVersionsHistoryQueryVariables >; export const FetchPinnedVersionsDocument = gql` query fetchPinnedVersions($appName: String!) { application(appName: $appName) { id name account environments { id name state { id artifacts { id name environment type reference ...artifactPinnedVersionFields } } } } } ${ArtifactPinnedVersionFieldsFragmentDoc} `; /** * __useFetchPinnedVersionsQuery__ * * To run a query within a React component, call `useFetchPinnedVersionsQuery` and pass it any options that fit your needs. * When your component renders, `useFetchPinnedVersionsQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useFetchPinnedVersionsQuery({ * variables: { * appName: // value for 'appName' * }, * }); */ export function useFetchPinnedVersionsQuery( baseOptions: Apollo.QueryHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useQuery( FetchPinnedVersionsDocument, options, ); } export function useFetchPinnedVersionsLazyQuery( baseOptions?: Apollo.LazyQueryHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useLazyQuery( FetchPinnedVersionsDocument, options, ); } export type FetchPinnedVersionsQueryHookResult = ReturnType; export type FetchPinnedVersionsLazyQueryHookResult = ReturnType; export type FetchPinnedVersionsQueryResult = Apollo.QueryResult< FetchPinnedVersionsQuery, FetchPinnedVersionsQueryVariables >; export const FetchVersionDocument = gql` query fetchVersion($appName: String!, $versions: [String!]) { application(appName: $appName) { id name account environments { id name state { id artifacts { id name environment type reference versions(versions: $versions) { ...detailedVersionFields } } } } } } ${DetailedVersionFieldsFragmentDoc} `; /** * __useFetchVersionQuery__ * * To run a query within a React component, call `useFetchVersionQuery` and pass it any options that fit your needs. * When your component renders, `useFetchVersionQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useFetchVersionQuery({ * variables: { * appName: // value for 'appName' * versions: // value for 'versions' * }, * }); */ export function useFetchVersionQuery( baseOptions: Apollo.QueryHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useQuery(FetchVersionDocument, options); } export function useFetchVersionLazyQuery( baseOptions?: Apollo.LazyQueryHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useLazyQuery(FetchVersionDocument, options); } export type FetchVersionQueryHookResult = ReturnType; export type FetchVersionLazyQueryHookResult = ReturnType; export type FetchVersionQueryResult = Apollo.QueryResult; export const FetchResourceStatusDocument = gql` query fetchResourceStatus($appName: String!) { application(appName: $appName) { id name environments { id name state { id resources { id kind state { status reason event tasks { id name } } } } } } } `; /** * __useFetchResourceStatusQuery__ * * To run a query within a React component, call `useFetchResourceStatusQuery` and pass it any options that fit your needs. * When your component renders, `useFetchResourceStatusQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useFetchResourceStatusQuery({ * variables: { * appName: // value for 'appName' * }, * }); */ export function useFetchResourceStatusQuery( baseOptions: Apollo.QueryHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useQuery( FetchResourceStatusDocument, options, ); } export function useFetchResourceStatusLazyQuery( baseOptions?: Apollo.LazyQueryHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useLazyQuery( FetchResourceStatusDocument, options, ); } export type FetchResourceStatusQueryHookResult = ReturnType; export type FetchResourceStatusLazyQueryHookResult = ReturnType; export type FetchResourceStatusQueryResult = Apollo.QueryResult< FetchResourceStatusQuery, FetchResourceStatusQueryVariables >; export const FetchNotificationsDocument = gql` query fetchNotifications($appName: String!) { application(appName: $appName) { id name notifications { id level message triggeredAt link id } } } `; /** * __useFetchNotificationsQuery__ * * To run a query within a React component, call `useFetchNotificationsQuery` and pass it any options that fit your needs. * When your component renders, `useFetchNotificationsQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useFetchNotificationsQuery({ * variables: { * appName: // value for 'appName' * }, * }); */ export function useFetchNotificationsQuery( baseOptions: Apollo.QueryHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useQuery( FetchNotificationsDocument, options, ); } export function useFetchNotificationsLazyQuery( baseOptions?: Apollo.LazyQueryHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useLazyQuery( FetchNotificationsDocument, options, ); } export type FetchNotificationsQueryHookResult = ReturnType; export type FetchNotificationsLazyQueryHookResult = ReturnType; export type FetchNotificationsQueryResult = Apollo.QueryResult< FetchNotificationsQuery, FetchNotificationsQueryVariables >; export const FetchApplicationManagementDataDocument = gql` query fetchApplicationManagementData($appName: String!) { application(appName: $appName) { id name isPaused config { id updatedAt rawConfig processedConfig } gitIntegration { id repository branch isEnabled link manifestPath } } } `; /** * __useFetchApplicationManagementDataQuery__ * * To run a query within a React component, call `useFetchApplicationManagementDataQuery` and pass it any options that fit your needs. * When your component renders, `useFetchApplicationManagementDataQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useFetchApplicationManagementDataQuery({ * variables: { * appName: // value for 'appName' * }, * }); */ export function useFetchApplicationManagementDataQuery( baseOptions: Apollo.QueryHookOptions< FetchApplicationManagementDataQuery, FetchApplicationManagementDataQueryVariables >, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useQuery( FetchApplicationManagementDataDocument, options, ); } export function useFetchApplicationManagementDataLazyQuery( baseOptions?: Apollo.LazyQueryHookOptions< FetchApplicationManagementDataQuery, FetchApplicationManagementDataQueryVariables >, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useLazyQuery( FetchApplicationManagementDataDocument, options, ); } export type FetchApplicationManagementDataQueryHookResult = ReturnType; export type FetchApplicationManagementDataLazyQueryHookResult = ReturnType< typeof useFetchApplicationManagementDataLazyQuery >; export type FetchApplicationManagementDataQueryResult = Apollo.QueryResult< FetchApplicationManagementDataQuery, FetchApplicationManagementDataQueryVariables >; export const FetchApplicationManagementStatusDocument = gql` query fetchApplicationManagementStatus($appName: String!) { application(appName: $appName) { id name isPaused } } `; /** * __useFetchApplicationManagementStatusQuery__ * * To run a query within a React component, call `useFetchApplicationManagementStatusQuery` and pass it any options that fit your needs. * When your component renders, `useFetchApplicationManagementStatusQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useFetchApplicationManagementStatusQuery({ * variables: { * appName: // value for 'appName' * }, * }); */ export function useFetchApplicationManagementStatusQuery( baseOptions: Apollo.QueryHookOptions< FetchApplicationManagementStatusQuery, FetchApplicationManagementStatusQueryVariables >, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useQuery( FetchApplicationManagementStatusDocument, options, ); } export function useFetchApplicationManagementStatusLazyQuery( baseOptions?: Apollo.LazyQueryHookOptions< FetchApplicationManagementStatusQuery, FetchApplicationManagementStatusQueryVariables >, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useLazyQuery( FetchApplicationManagementStatusDocument, options, ); } export type FetchApplicationManagementStatusQueryHookResult = ReturnType< typeof useFetchApplicationManagementStatusQuery >; export type FetchApplicationManagementStatusLazyQueryHookResult = ReturnType< typeof useFetchApplicationManagementStatusLazyQuery >; export type FetchApplicationManagementStatusQueryResult = Apollo.QueryResult< FetchApplicationManagementStatusQuery, FetchApplicationManagementStatusQueryVariables >; export const UpdateConstraintDocument = gql` mutation UpdateConstraint($payload: MdConstraintStatusPayload!) { updateConstraintStatus(payload: $payload) } `; export type UpdateConstraintMutationFn = Apollo.MutationFunction< UpdateConstraintMutation, UpdateConstraintMutationVariables >; /** * __useUpdateConstraintMutation__ * * To run a mutation, you first call `useUpdateConstraintMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateConstraintMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [updateConstraintMutation, { data, loading, error }] = useUpdateConstraintMutation({ * variables: { * payload: // value for 'payload' * }, * }); */ export function useUpdateConstraintMutation( baseOptions?: Apollo.MutationHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useMutation( UpdateConstraintDocument, options, ); } export type UpdateConstraintMutationHookResult = ReturnType; export type UpdateConstraintMutationResult = Apollo.MutationResult; export type UpdateConstraintMutationOptions = Apollo.BaseMutationOptions< UpdateConstraintMutation, UpdateConstraintMutationVariables >; export const ToggleManagementDocument = gql` mutation ToggleManagement($application: ID!, $isPaused: Boolean!) { toggleManagement(application: $application, isPaused: $isPaused) } `; export type ToggleManagementMutationFn = Apollo.MutationFunction< ToggleManagementMutation, ToggleManagementMutationVariables >; /** * __useToggleManagementMutation__ * * To run a mutation, you first call `useToggleManagementMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useToggleManagementMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [toggleManagementMutation, { data, loading, error }] = useToggleManagementMutation({ * variables: { * application: // value for 'application' * isPaused: // value for 'isPaused' * }, * }); */ export function useToggleManagementMutation( baseOptions?: Apollo.MutationHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useMutation( ToggleManagementDocument, options, ); } export type ToggleManagementMutationHookResult = ReturnType; export type ToggleManagementMutationResult = Apollo.MutationResult; export type ToggleManagementMutationOptions = Apollo.BaseMutationOptions< ToggleManagementMutation, ToggleManagementMutationVariables >; export const PinVersionDocument = gql` mutation PinVersion($payload: MdArtifactVersionActionPayload!) { pinArtifactVersion(payload: $payload) } `; export type PinVersionMutationFn = Apollo.MutationFunction; /** * __usePinVersionMutation__ * * To run a mutation, you first call `usePinVersionMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePinVersionMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [pinVersionMutation, { data, loading, error }] = usePinVersionMutation({ * variables: { * payload: // value for 'payload' * }, * }); */ export function usePinVersionMutation( baseOptions?: Apollo.MutationHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useMutation(PinVersionDocument, options); } export type PinVersionMutationHookResult = ReturnType; export type PinVersionMutationResult = Apollo.MutationResult; export type PinVersionMutationOptions = Apollo.BaseMutationOptions; export const UnpinVersionDocument = gql` mutation UnpinVersion($payload: MdUnpinArtifactVersionPayload!) { unpinArtifactVersion(payload: $payload) } `; export type UnpinVersionMutationFn = Apollo.MutationFunction; /** * __useUnpinVersionMutation__ * * To run a mutation, you first call `useUnpinVersionMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUnpinVersionMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [unpinVersionMutation, { data, loading, error }] = useUnpinVersionMutation({ * variables: { * payload: // value for 'payload' * }, * }); */ export function useUnpinVersionMutation( baseOptions?: Apollo.MutationHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useMutation(UnpinVersionDocument, options); } export type UnpinVersionMutationHookResult = ReturnType; export type UnpinVersionMutationResult = Apollo.MutationResult; export type UnpinVersionMutationOptions = Apollo.BaseMutationOptions< UnpinVersionMutation, UnpinVersionMutationVariables >; export const MarkVersionAsBadDocument = gql` mutation MarkVersionAsBad($payload: MdArtifactVersionActionPayload!) { markArtifactVersionAsBad(payload: $payload) } `; export type MarkVersionAsBadMutationFn = Apollo.MutationFunction< MarkVersionAsBadMutation, MarkVersionAsBadMutationVariables >; /** * __useMarkVersionAsBadMutation__ * * To run a mutation, you first call `useMarkVersionAsBadMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useMarkVersionAsBadMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [markVersionAsBadMutation, { data, loading, error }] = useMarkVersionAsBadMutation({ * variables: { * payload: // value for 'payload' * }, * }); */ export function useMarkVersionAsBadMutation( baseOptions?: Apollo.MutationHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useMutation( MarkVersionAsBadDocument, options, ); } export type MarkVersionAsBadMutationHookResult = ReturnType; export type MarkVersionAsBadMutationResult = Apollo.MutationResult; export type MarkVersionAsBadMutationOptions = Apollo.BaseMutationOptions< MarkVersionAsBadMutation, MarkVersionAsBadMutationVariables >; export const MarkVersionAsGoodDocument = gql` mutation MarkVersionAsGood($payload: MdMarkArtifactVersionAsGoodPayload!) { markArtifactVersionAsGood(payload: $payload) } `; export type MarkVersionAsGoodMutationFn = Apollo.MutationFunction< MarkVersionAsGoodMutation, MarkVersionAsGoodMutationVariables >; /** * __useMarkVersionAsGoodMutation__ * * To run a mutation, you first call `useMarkVersionAsGoodMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useMarkVersionAsGoodMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [markVersionAsGoodMutation, { data, loading, error }] = useMarkVersionAsGoodMutation({ * variables: { * payload: // value for 'payload' * }, * }); */ export function useMarkVersionAsGoodMutation( baseOptions?: Apollo.MutationHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useMutation( MarkVersionAsGoodDocument, options, ); } export type MarkVersionAsGoodMutationHookResult = ReturnType; export type MarkVersionAsGoodMutationResult = Apollo.MutationResult; export type MarkVersionAsGoodMutationOptions = Apollo.BaseMutationOptions< MarkVersionAsGoodMutation, MarkVersionAsGoodMutationVariables >; export const RetryVersionActionDocument = gql` mutation RetryVersionAction($payload: MdRetryArtifactActionPayload!) { retryArtifactVersionAction(payload: $payload) { ...actionDetails } } ${ActionDetailsFragmentDoc} `; export type RetryVersionActionMutationFn = Apollo.MutationFunction< RetryVersionActionMutation, RetryVersionActionMutationVariables >; /** * __useRetryVersionActionMutation__ * * To run a mutation, you first call `useRetryVersionActionMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRetryVersionActionMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [retryVersionActionMutation, { data, loading, error }] = useRetryVersionActionMutation({ * variables: { * payload: // value for 'payload' * }, * }); */ export function useRetryVersionActionMutation( baseOptions?: Apollo.MutationHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useMutation( RetryVersionActionDocument, options, ); } export type RetryVersionActionMutationHookResult = ReturnType; export type RetryVersionActionMutationResult = Apollo.MutationResult; export type RetryVersionActionMutationOptions = Apollo.BaseMutationOptions< RetryVersionActionMutation, RetryVersionActionMutationVariables >; export const UpdateGitIntegrationDocument = gql` mutation UpdateGitIntegration($payload: MdUpdateGitIntegrationPayload!) { updateGitIntegration(payload: $payload) { id isEnabled } } `; export type UpdateGitIntegrationMutationFn = Apollo.MutationFunction< UpdateGitIntegrationMutation, UpdateGitIntegrationMutationVariables >; /** * __useUpdateGitIntegrationMutation__ * * To run a mutation, you first call `useUpdateGitIntegrationMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateGitIntegrationMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [updateGitIntegrationMutation, { data, loading, error }] = useUpdateGitIntegrationMutation({ * variables: { * payload: // value for 'payload' * }, * }); */ export function useUpdateGitIntegrationMutation( baseOptions?: Apollo.MutationHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useMutation( UpdateGitIntegrationDocument, options, ); } export type UpdateGitIntegrationMutationHookResult = ReturnType; export type UpdateGitIntegrationMutationResult = Apollo.MutationResult; export type UpdateGitIntegrationMutationOptions = Apollo.BaseMutationOptions< UpdateGitIntegrationMutation, UpdateGitIntegrationMutationVariables >; export const DismissNotificationDocument = gql` mutation DismissNotification($payload: MdDismissNotificationPayload!) { dismissNotification(payload: $payload) } `; export type DismissNotificationMutationFn = Apollo.MutationFunction< DismissNotificationMutation, DismissNotificationMutationVariables >; /** * __useDismissNotificationMutation__ * * To run a mutation, you first call `useDismissNotificationMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDismissNotificationMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [dismissNotificationMutation, { data, loading, error }] = useDismissNotificationMutation({ * variables: { * payload: // value for 'payload' * }, * }); */ export function useDismissNotificationMutation( baseOptions?: Apollo.MutationHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useMutation( DismissNotificationDocument, options, ); } export type DismissNotificationMutationHookResult = ReturnType; export type DismissNotificationMutationResult = Apollo.MutationResult; export type DismissNotificationMutationOptions = Apollo.BaseMutationOptions< DismissNotificationMutation, DismissNotificationMutationVariables >; export const ImportDeliveryConfigDocument = gql` mutation ImportDeliveryConfig($application: String!) { importDeliveryConfig(application: $application) } `; export type ImportDeliveryConfigMutationFn = Apollo.MutationFunction< ImportDeliveryConfigMutation, ImportDeliveryConfigMutationVariables >; /** * __useImportDeliveryConfigMutation__ * * To run a mutation, you first call `useImportDeliveryConfigMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useImportDeliveryConfigMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [importDeliveryConfigMutation, { data, loading, error }] = useImportDeliveryConfigMutation({ * variables: { * application: // value for 'application' * }, * }); */ export function useImportDeliveryConfigMutation( baseOptions?: Apollo.MutationHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useMutation( ImportDeliveryConfigDocument, options, ); } export type ImportDeliveryConfigMutationHookResult = ReturnType; export type ImportDeliveryConfigMutationResult = Apollo.MutationResult; export type ImportDeliveryConfigMutationOptions = Apollo.BaseMutationOptions< ImportDeliveryConfigMutation, ImportDeliveryConfigMutationVariables >; export const ToggleResourceManagementDocument = gql` mutation ToggleResourceManagement($payload: MdToggleResourceManagementPayload) { toggleResourceManagement(payload: $payload) } `; export type ToggleResourceManagementMutationFn = Apollo.MutationFunction< ToggleResourceManagementMutation, ToggleResourceManagementMutationVariables >; /** * __useToggleResourceManagementMutation__ * * To run a mutation, you first call `useToggleResourceManagementMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useToggleResourceManagementMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [toggleResourceManagementMutation, { data, loading, error }] = useToggleResourceManagementMutation({ * variables: { * payload: // value for 'payload' * }, * }); */ export function useToggleResourceManagementMutation( baseOptions?: Apollo.MutationHookOptions, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useMutation( ToggleResourceManagementDocument, options, ); } export type ToggleResourceManagementMutationHookResult = ReturnType; export type ToggleResourceManagementMutationResult = Apollo.MutationResult; export type ToggleResourceManagementMutationOptions = Apollo.BaseMutationOptions< ToggleResourceManagementMutation, ToggleResourceManagementMutationVariables >; export const RestartConstraintEvaluationDocument = gql` mutation RestartConstraintEvaluation($payload: MdRestartConstraintEvaluationPayload!) { restartConstraintEvaluation(payload: $payload) } `; export type RestartConstraintEvaluationMutationFn = Apollo.MutationFunction< RestartConstraintEvaluationMutation, RestartConstraintEvaluationMutationVariables >; /** * __useRestartConstraintEvaluationMutation__ * * To run a mutation, you first call `useRestartConstraintEvaluationMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRestartConstraintEvaluationMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [restartConstraintEvaluationMutation, { data, loading, error }] = useRestartConstraintEvaluationMutation({ * variables: { * payload: // value for 'payload' * }, * }); */ export function useRestartConstraintEvaluationMutation( baseOptions?: Apollo.MutationHookOptions< RestartConstraintEvaluationMutation, RestartConstraintEvaluationMutationVariables >, ) { const options = { ...defaultOptions, ...baseOptions }; return Apollo.useMutation( RestartConstraintEvaluationDocument, options, ); } export type RestartConstraintEvaluationMutationHookResult = ReturnType; export type RestartConstraintEvaluationMutationResult = Apollo.MutationResult; export type RestartConstraintEvaluationMutationOptions = Apollo.BaseMutationOptions< RestartConstraintEvaluationMutation, RestartConstraintEvaluationMutationVariables >;