2024-01-17 04:32:06 +00:00
|
|
|
enum Role {
|
|
|
|
Owner
|
|
|
|
Maintainer
|
|
|
|
Reader
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Permission {
|
|
|
|
View
|
|
|
|
Edit
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Environment {
|
|
|
|
Production
|
|
|
|
Preview
|
|
|
|
Development
|
|
|
|
}
|
|
|
|
|
|
|
|
enum DeploymentStatus {
|
|
|
|
Building
|
|
|
|
Ready
|
|
|
|
Error
|
|
|
|
}
|
|
|
|
|
|
|
|
enum DomainStatus {
|
|
|
|
Live
|
|
|
|
Pending
|
|
|
|
}
|
|
|
|
|
|
|
|
type User {
|
|
|
|
id: String!
|
2024-02-01 10:04:17 +00:00
|
|
|
name: String
|
2024-01-17 04:32:06 +00:00
|
|
|
email: String!
|
|
|
|
organizations: [Organization!]
|
|
|
|
projects: [Project!]
|
2024-02-01 10:04:17 +00:00
|
|
|
isVerified: Boolean!
|
2024-01-17 04:32:06 +00:00
|
|
|
createdAt: String!
|
|
|
|
updatedAt: String!
|
2024-01-31 13:21:53 +00:00
|
|
|
gitHubToken: String
|
2024-01-17 04:32:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Organization {
|
|
|
|
id: String!
|
|
|
|
name: String!
|
|
|
|
projects: [Project!]
|
|
|
|
createdAt: String!
|
|
|
|
updatedAt: String!
|
|
|
|
members: [OrganizationMember!]
|
|
|
|
}
|
|
|
|
|
|
|
|
type OrganizationMember {
|
|
|
|
id: String!
|
|
|
|
member: User!
|
|
|
|
role: Role!
|
|
|
|
createdAt: String!
|
|
|
|
updatedAt: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Project {
|
|
|
|
id: String!
|
|
|
|
owner: User!
|
|
|
|
deployments: [Deployment!]
|
|
|
|
name: String!
|
|
|
|
repository: String!
|
|
|
|
prodBranch: String!
|
|
|
|
description: String
|
|
|
|
template: String
|
2024-02-01 12:40:15 +00:00
|
|
|
framework: String
|
2024-01-17 04:32:06 +00:00
|
|
|
webhooks: [String!]
|
|
|
|
members: [ProjectMember!]
|
|
|
|
environmentVariables: [EnvironmentVariable!]
|
|
|
|
createdAt: String!
|
|
|
|
updatedAt: String!
|
2024-01-24 14:47:43 +00:00
|
|
|
organization: Organization!
|
2024-01-29 11:01:03 +00:00
|
|
|
icon: String
|
2024-02-05 09:26:28 +00:00
|
|
|
subDomain: String
|
2024-01-17 04:32:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ProjectMember {
|
|
|
|
id: String!
|
|
|
|
member: User!
|
|
|
|
permissions: [Permission!]!
|
2024-02-01 10:04:17 +00:00
|
|
|
isPending: Boolean!
|
2024-01-17 04:32:06 +00:00
|
|
|
createdAt: String!
|
|
|
|
updatedAt: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Deployment {
|
|
|
|
id: String!
|
|
|
|
domain: Domain
|
|
|
|
branch: String!
|
|
|
|
commitHash: String!
|
|
|
|
title: String!
|
2024-02-05 09:26:28 +00:00
|
|
|
url: String!
|
2024-01-17 04:32:06 +00:00
|
|
|
environment: Environment!
|
|
|
|
isCurrent: Boolean!
|
|
|
|
status: DeploymentStatus!
|
|
|
|
createdAt: String!
|
|
|
|
updatedAt: String!
|
2024-01-30 10:18:50 +00:00
|
|
|
createdBy: User!
|
2024-01-17 04:32:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Domain {
|
|
|
|
id: String!
|
|
|
|
branch: String!
|
|
|
|
name: String!
|
2024-01-31 12:25:19 +00:00
|
|
|
redirectTo: Domain
|
2024-01-17 04:32:06 +00:00
|
|
|
status: DomainStatus!
|
|
|
|
createdAt: String!
|
|
|
|
updatedAt: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type EnvironmentVariable {
|
|
|
|
id: String!
|
2024-01-30 13:47:55 +00:00
|
|
|
environment: Environment!
|
2024-01-17 04:32:06 +00:00
|
|
|
key: String!
|
|
|
|
value: String!
|
|
|
|
createdAt: String!
|
|
|
|
updatedAt: String!
|
|
|
|
}
|
|
|
|
|
2024-01-30 14:20:53 +00:00
|
|
|
type AuthResult {
|
|
|
|
token: String!
|
|
|
|
}
|
|
|
|
|
2024-01-23 09:31:33 +00:00
|
|
|
input AddEnvironmentVariableInput {
|
|
|
|
environments: [Environment!]!
|
|
|
|
key: String!
|
|
|
|
value: String!
|
2024-01-17 04:32:06 +00:00
|
|
|
}
|
2024-01-25 06:28:38 +00:00
|
|
|
|
2024-02-01 12:40:15 +00:00
|
|
|
input AddProjectInput {
|
|
|
|
organizationId: String!
|
|
|
|
name: String!
|
|
|
|
repository: String!
|
|
|
|
prodBranch: String!
|
|
|
|
}
|
|
|
|
|
2024-01-25 06:28:38 +00:00
|
|
|
input UpdateProjectInput {
|
|
|
|
name: String
|
|
|
|
description: String
|
2024-02-01 08:34:07 +00:00
|
|
|
prodBranch: String
|
2024-02-02 08:34:26 +00:00
|
|
|
organizationId: String
|
2024-02-01 08:34:07 +00:00
|
|
|
webhooks: [String!]
|
2024-01-25 06:28:38 +00:00
|
|
|
}
|
2024-01-29 12:48:43 +00:00
|
|
|
|
|
|
|
input AddDomainInput {
|
|
|
|
name: String!
|
|
|
|
}
|
2024-01-30 08:31:09 +00:00
|
|
|
|
|
|
|
input UpdateDomainInput {
|
|
|
|
name: String
|
|
|
|
branch: String
|
2024-01-31 12:25:19 +00:00
|
|
|
redirectToId: String
|
2024-01-30 08:31:09 +00:00
|
|
|
}
|
2024-01-31 05:06:22 +00:00
|
|
|
|
|
|
|
input UpdateEnvironmentVariableInput {
|
|
|
|
key: String
|
|
|
|
value: String
|
|
|
|
}
|
2024-01-31 11:39:29 +00:00
|
|
|
|
2024-02-01 10:04:17 +00:00
|
|
|
input AddProjectMemberInput {
|
|
|
|
email: String!
|
|
|
|
permissions: [Permission!]
|
|
|
|
}
|
|
|
|
|
2024-01-31 11:39:29 +00:00
|
|
|
input UpdateProjectMemberInput {
|
|
|
|
permissions: [Permission]
|
|
|
|
}
|
2024-02-01 12:40:15 +00:00
|
|
|
|
|
|
|
type Query {
|
|
|
|
user: User!
|
|
|
|
organizations: [Organization!]
|
|
|
|
projects: [Project!]
|
|
|
|
projectsInOrganization(organizationId: String!): [Project!]
|
|
|
|
project(projectId: String!): Project
|
|
|
|
deployments(projectId: String!): [Deployment!]
|
|
|
|
environmentVariables(projectId: String!): [EnvironmentVariable!]
|
|
|
|
projectMembers(projectId: String!): [ProjectMember!]
|
|
|
|
searchProjects(searchText: String!): [Project!]
|
|
|
|
domains(projectId: String!): [Domain!]
|
|
|
|
}
|
|
|
|
|
|
|
|
type Mutation {
|
|
|
|
addProjectMember(projectId: String!, data: AddProjectMemberInput): Boolean!
|
|
|
|
updateProjectMember(projectMemberId: String!, data: UpdateProjectMemberInput): Boolean!
|
|
|
|
removeProjectMember(projectMemberId: String!): Boolean!
|
2024-02-05 10:51:55 +00:00
|
|
|
addEnvironmentVariables(projectId: String!, data: [AddEnvironmentVariableInput!]): Boolean!
|
|
|
|
updateEnvironmentVariable(environmentVariableId: String!, data: UpdateEnvironmentVariableInput!): Boolean!
|
2024-02-01 12:40:15 +00:00
|
|
|
removeEnvironmentVariable(environmentVariableId: String!): Boolean!
|
|
|
|
updateDeploymentToProd(deploymentId: String!): Boolean!
|
|
|
|
addProject(projectDetails: AddProjectInput): Boolean!
|
|
|
|
updateProject(projectId: String!, projectDetails: UpdateProjectInput): Boolean!
|
|
|
|
redeployToProd(deploymentId: String!): Boolean!
|
|
|
|
deleteProject(projectId: String!): Boolean!
|
|
|
|
deleteDomain(domainId: String!): Boolean!
|
|
|
|
rollbackDeployment(projectId: String!, deploymentId: String!): Boolean!
|
|
|
|
addDomain(projectId: String!, domainDetails: AddDomainInput!): Boolean!
|
|
|
|
updateDomain(domainId: String!, domainDetails: UpdateDomainInput!): Boolean!
|
|
|
|
authenticateGitHub(code: String!): AuthResult!
|
|
|
|
unauthenticateGitHub: Boolean!
|
|
|
|
}
|