2024-01-17 08:52:15 +00:00
|
|
|
import { gql } from '@apollo/client';
|
|
|
|
|
|
|
|
export const getUser = gql`
|
|
|
|
query {
|
|
|
|
user {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
email
|
|
|
|
createdAt
|
|
|
|
updatedAt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2024-01-18 04:34:02 +00:00
|
|
|
|
|
|
|
export const getOrganizations = gql`
|
|
|
|
query {
|
|
|
|
organizations {
|
2024-01-18 12:20:50 +00:00
|
|
|
id
|
|
|
|
name
|
2024-01-18 04:34:02 +00:00
|
|
|
projects {
|
|
|
|
id
|
|
|
|
owner {
|
|
|
|
id
|
2024-01-18 12:20:50 +00:00
|
|
|
name
|
2024-01-18 04:34:02 +00:00
|
|
|
}
|
|
|
|
deployments {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
name
|
|
|
|
repository
|
|
|
|
prodBranch
|
|
|
|
description
|
|
|
|
template
|
|
|
|
framework
|
|
|
|
webhooks
|
|
|
|
members {
|
|
|
|
id
|
2024-01-19 05:24:52 +00:00
|
|
|
permissions
|
|
|
|
member{
|
|
|
|
id
|
|
|
|
name
|
|
|
|
email
|
|
|
|
}
|
2024-01-18 04:34:02 +00:00
|
|
|
}
|
|
|
|
environmentVariables {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
createdAt
|
|
|
|
updatedAt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2024-01-18 12:20:50 +00:00
|
|
|
|
|
|
|
export const getDeployments = gql`
|
|
|
|
query ($projectId: String!) {
|
|
|
|
deployments(projectId: $projectId) {
|
|
|
|
id
|
|
|
|
domain{
|
|
|
|
branch
|
|
|
|
createdAt
|
|
|
|
isRedirected
|
|
|
|
id
|
|
|
|
name
|
|
|
|
status
|
|
|
|
updatedAt
|
|
|
|
}
|
|
|
|
branch
|
|
|
|
commitHash
|
|
|
|
title
|
|
|
|
environment
|
|
|
|
isCurrent
|
|
|
|
status
|
|
|
|
createdAt
|
|
|
|
updatedAt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|