2024-01-23 11:47:02 +00:00
|
|
|
import { gql } from '@apollo/client';
|
|
|
|
|
|
|
|
export const removeMember = gql`
|
|
|
|
mutation ($memberId: String!) {
|
|
|
|
removeMember(memberId: $memberId)
|
|
|
|
}
|
|
|
|
`;
|
2024-01-25 05:14:51 +00:00
|
|
|
|
|
|
|
export const addEnvironmentVariables = gql`
|
|
|
|
mutation ($projectId: String!, $environmentVariables: [AddEnvironmentVariableInput!]) {
|
|
|
|
addEnvironmentVariables(projectId: $projectId, environmentVariables: $environmentVariables)
|
|
|
|
}
|
|
|
|
`;
|
2024-01-25 05:47:44 +00:00
|
|
|
|
2024-01-31 05:06:22 +00:00
|
|
|
export const updateEnvironmentVariable = gql`
|
|
|
|
mutation ($environmentVariableId: String!, $environmentVariable: UpdateEnvironmentVariableInput!) {
|
|
|
|
updateEnvironmentVariable(environmentVariableId: $environmentVariableId, environmentVariable: $environmentVariable)
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const removeEnvironmentVariable = gql`
|
|
|
|
mutation ($environmentVariableId: String!) {
|
|
|
|
removeEnvironmentVariable(environmentVariableId: $environmentVariableId)
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2024-01-25 05:47:44 +00:00
|
|
|
export const updateDeploymentToProd = gql`
|
|
|
|
mutation ($deploymentId: String!) {
|
|
|
|
updateDeploymentToProd(deploymentId: $deploymentId)
|
|
|
|
}
|
|
|
|
`;
|
2024-01-25 11:08:40 +00:00
|
|
|
|
|
|
|
export const updateProjectMutation = gql`
|
2024-01-30 08:31:09 +00:00
|
|
|
mutation ($projectId: String!, $projectDetails: UpdateProjectInput) {
|
|
|
|
updateProject(projectId: $projectId, projectDetails: $projectDetails)
|
|
|
|
}`;
|
|
|
|
|
|
|
|
export const updateDomainMutation = gql`
|
|
|
|
mutation ($domainId: String!, $domainDetails: UpdateDomainInput!) {
|
|
|
|
updateDomain(domainId: $domainId, domainDetails: $domainDetails)
|
2024-01-25 12:04:13 +00:00
|
|
|
}`;
|
|
|
|
|
|
|
|
export const redeployToProd = gql`
|
|
|
|
mutation ($deploymentId: String!) {
|
|
|
|
redeployToProd(deploymentId: $deploymentId)
|
2024-01-25 11:08:40 +00:00
|
|
|
}
|
|
|
|
`;
|
2024-01-29 11:01:03 +00:00
|
|
|
|
|
|
|
export const deleteProject = gql`
|
|
|
|
mutation ($projectId: String!) {
|
|
|
|
deleteProject(projectId: $projectId)
|
|
|
|
}
|
|
|
|
`;
|
2024-01-29 12:09:51 +00:00
|
|
|
|
|
|
|
export const rollbackDeployment = gql`
|
|
|
|
mutation ($projectId: String! ,$deploymentId: String!) {
|
2024-01-30 09:10:04 +00:00
|
|
|
rollbackDeployment(projectId: $projectId, deploymentId: $deploymentId)
|
2024-01-29 12:09:51 +00:00
|
|
|
}
|
|
|
|
`;
|
2024-01-29 12:48:43 +00:00
|
|
|
|
|
|
|
export const addDomain = gql`
|
|
|
|
mutation ($projectId: String!, $domainDetails: AddDomainInput!) {
|
|
|
|
addDomain(projectId: $projectId, domainDetails: $domainDetails)
|
|
|
|
}
|
|
|
|
`;
|
2024-01-30 14:20:53 +00:00
|
|
|
|
|
|
|
export const authenticateGithub = gql`
|
|
|
|
mutation ($code: String!) {
|
|
|
|
authenticateGithub(code: $code) {
|
|
|
|
token
|
|
|
|
}
|
|
|
|
}`;
|