2024-06-24 22:38:01 +00:00
|
|
|
import { gql } from "@apollo/client";
|
2024-01-23 11:47:02 +00:00
|
|
|
|
2024-01-31 11:39:29 +00:00
|
|
|
export const removeProjectMember = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation ($projectMemberId: String!) {
|
|
|
|
removeProjectMember(projectMemberId: $projectMemberId)
|
|
|
|
}
|
2024-01-31 11:39:29 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const updateProjectMember = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation ($projectMemberId: String!, $data: UpdateProjectMemberInput) {
|
|
|
|
updateProjectMember(projectMemberId: $projectMemberId, data: $data)
|
|
|
|
}
|
2024-01-23 11:47:02 +00:00
|
|
|
`;
|
2024-01-25 05:14:51 +00:00
|
|
|
|
2024-02-01 10:04:17 +00:00
|
|
|
export const addProjectMember = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation ($projectId: String!, $data: AddProjectMemberInput) {
|
|
|
|
addProjectMember(projectId: $projectId, data: $data)
|
|
|
|
}
|
2024-02-01 10:04:17 +00:00
|
|
|
`;
|
|
|
|
|
2024-01-25 05:14:51 +00:00
|
|
|
export const addEnvironmentVariables = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation ($projectId: String!, $data: [AddEnvironmentVariableInput!]) {
|
|
|
|
addEnvironmentVariables(projectId: $projectId, data: $data)
|
|
|
|
}
|
2024-01-25 05:14:51 +00:00
|
|
|
`;
|
2024-01-25 05:47:44 +00:00
|
|
|
|
2024-01-31 05:06:22 +00:00
|
|
|
export const updateEnvironmentVariable = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation (
|
|
|
|
$environmentVariableId: String!
|
|
|
|
$data: UpdateEnvironmentVariableInput!
|
|
|
|
) {
|
|
|
|
updateEnvironmentVariable(
|
|
|
|
environmentVariableId: $environmentVariableId
|
|
|
|
data: $data
|
|
|
|
)
|
|
|
|
}
|
2024-01-31 05:06:22 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const removeEnvironmentVariable = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation ($environmentVariableId: String!) {
|
|
|
|
removeEnvironmentVariable(environmentVariableId: $environmentVariableId)
|
|
|
|
}
|
2024-01-31 05:06:22 +00:00
|
|
|
`;
|
|
|
|
|
2024-01-25 05:47:44 +00:00
|
|
|
export const updateDeploymentToProd = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation ($deploymentId: String!) {
|
|
|
|
updateDeploymentToProd(deploymentId: $deploymentId)
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const addProjectFromTemplate = gql`
|
2024-10-21 11:05:35 +00:00
|
|
|
mutation ($organizationSlug: String!, $data: AddProjectFromTemplateInput, $lrn: String, $auctionParams: AuctionParams, $environmentVariables: [AddEnvironmentVariableInput!]) {
|
|
|
|
addProjectFromTemplate(organizationSlug: $organizationSlug, data: $data, lrn: $lrn, auctionParams: $auctionParams, environmentVariables: $environmentVariables) {
|
2024-06-24 22:38:01 +00:00
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
2024-01-25 05:47:44 +00:00
|
|
|
`;
|
2024-01-25 11:08:40 +00:00
|
|
|
|
2024-02-01 12:40:15 +00:00
|
|
|
export const addProject = gql`
|
2024-10-21 11:05:35 +00:00
|
|
|
mutation ($organizationSlug: String!, $data: AddProjectInput!, $lrn: String, $auctionParams: AuctionParams, $environmentVariables: [AddEnvironmentVariableInput!]) {
|
|
|
|
addProject(organizationSlug: $organizationSlug, data: $data, lrn: $lrn, auctionParams: $auctionParams, environmentVariables: $environmentVariables) {
|
2024-06-24 22:38:01 +00:00
|
|
|
id
|
|
|
|
}
|
2024-02-06 10:48:29 +00:00
|
|
|
}
|
2024-06-24 22:38:01 +00:00
|
|
|
`;
|
2024-02-01 12:40:15 +00:00
|
|
|
|
2024-01-25 11:08:40 +00:00
|
|
|
export const updateProjectMutation = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation ($projectId: String!, $data: UpdateProjectInput) {
|
|
|
|
updateProject(projectId: $projectId, data: $data)
|
|
|
|
}
|
|
|
|
`;
|
2024-01-30 08:31:09 +00:00
|
|
|
|
|
|
|
export const updateDomainMutation = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation ($domainId: String!, $data: UpdateDomainInput!) {
|
|
|
|
updateDomain(domainId: $domainId, data: $data)
|
|
|
|
}
|
|
|
|
`;
|
2024-01-25 12:04:13 +00:00
|
|
|
|
|
|
|
export const redeployToProd = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
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`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation ($projectId: String!) {
|
|
|
|
deleteProject(projectId: $projectId)
|
|
|
|
}
|
2024-01-29 11:01:03 +00:00
|
|
|
`;
|
2024-01-29 12:09:51 +00:00
|
|
|
|
2024-02-01 03:34:24 +00:00
|
|
|
export const deleteDomain = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation ($domainId: String!) {
|
|
|
|
deleteDomain(domainId: $domainId)
|
|
|
|
}
|
|
|
|
`;
|
2024-02-01 03:34:24 +00:00
|
|
|
|
2024-01-29 12:09:51 +00:00
|
|
|
export const rollbackDeployment = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation ($projectId: String!, $deploymentId: String!) {
|
|
|
|
rollbackDeployment(projectId: $projectId, deploymentId: $deploymentId)
|
|
|
|
}
|
2024-01-29 12:09:51 +00:00
|
|
|
`;
|
2024-01-29 12:48:43 +00:00
|
|
|
|
2024-03-27 16:58:56 +00:00
|
|
|
export const deleteDeployment = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation ($deploymentId: String!) {
|
|
|
|
deleteDeployment(deploymentId: $deploymentId)
|
|
|
|
}
|
2024-03-27 16:58:56 +00:00
|
|
|
`;
|
|
|
|
|
2024-01-29 12:48:43 +00:00
|
|
|
export const addDomain = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation ($projectId: String!, $data: AddDomainInput!) {
|
|
|
|
addDomain(projectId: $projectId, data: $data)
|
|
|
|
}
|
2024-01-29 12:48:43 +00:00
|
|
|
`;
|
2024-01-30 14:20:53 +00:00
|
|
|
|
2024-01-31 13:21:53 +00:00
|
|
|
export const authenticateGitHub = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation ($code: String!) {
|
|
|
|
authenticateGitHub(code: $code) {
|
|
|
|
token
|
|
|
|
}
|
2024-01-30 14:20:53 +00:00
|
|
|
}
|
2024-06-24 22:38:01 +00:00
|
|
|
`;
|
2024-01-31 13:21:53 +00:00
|
|
|
|
|
|
|
export const unauthenticateGitHub = gql`
|
2024-06-24 22:38:01 +00:00
|
|
|
mutation {
|
|
|
|
unauthenticateGitHub
|
|
|
|
}
|
|
|
|
`;
|