2022-05-18 07:26:57 +00:00
|
|
|
import { gql } from 'graphql-modules';
|
|
|
|
|
|
|
|
|
|
export default gql`
|
|
|
|
|
extend type Mutation {
|
|
|
|
|
addSlackIntegration(input: AddSlackIntegrationInput!): Boolean!
|
2023-07-24 08:28:59 +00:00
|
|
|
deleteSlackIntegration(input: OrganizationSelectorInput!): DeleteSlackIntegrationResult!
|
2022-05-18 07:26:57 +00:00
|
|
|
addGitHubIntegration(input: AddGitHubIntegrationInput!): Boolean!
|
2023-07-24 08:28:59 +00:00
|
|
|
deleteGitHubIntegration(input: OrganizationSelectorInput!): DeleteGitHubIntegrationResult!
|
2023-10-04 18:45:04 +00:00
|
|
|
enableProjectNameInGithubCheck(input: ProjectSelectorInput!): Project!
|
2023-07-24 08:28:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DeleteSlackIntegrationResult {
|
|
|
|
|
organization: Organization!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DeleteGitHubIntegrationResult {
|
|
|
|
|
organization: Organization!
|
2022-05-18 07:26:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
extend type Query {
|
|
|
|
|
organizationByGitHubInstallationId(installation: ID!): Organization
|
2022-10-04 12:30:21 +00:00
|
|
|
isGitHubIntegrationFeatureEnabled: Boolean!
|
2022-05-18 07:26:57 +00:00
|
|
|
}
|
|
|
|
|
|
2023-07-24 08:28:59 +00:00
|
|
|
extend type Organization {
|
|
|
|
|
hasSlackIntegration: Boolean!
|
|
|
|
|
hasGitHubIntegration: Boolean!
|
|
|
|
|
gitHubIntegration: GitHubIntegration
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-18 07:26:57 +00:00
|
|
|
input AddSlackIntegrationInput {
|
|
|
|
|
organization: ID!
|
|
|
|
|
token: String!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input AddGitHubIntegrationInput {
|
|
|
|
|
organization: ID!
|
|
|
|
|
installationId: ID!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GitHubIntegration {
|
|
|
|
|
repositories: [GitHubRepository!]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GitHubRepository {
|
|
|
|
|
nameWithOwner: String!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
extend type Project {
|
2023-10-04 18:45:04 +00:00
|
|
|
isProjectNameInGitHubCheckEnabled: Boolean!
|
2022-05-18 07:26:57 +00:00
|
|
|
}
|
|
|
|
|
`;
|