forked from cerc-io/snowballtools-base
d4b0659307
* Update root readme and setup depcheck * Use fetched domain data in edit domain dialog box * Use fetched project data in general tab * Rename files in gql-client package --------- Co-authored-by: neeraj <neeraj.rtly@gmail.com>
84 lines
1.1 KiB
TypeScript
84 lines
1.1 KiB
TypeScript
import { gql } from '@apollo/client';
|
|
|
|
export const getUser = gql`
|
|
query {
|
|
user {
|
|
id
|
|
name
|
|
email
|
|
createdAt
|
|
updatedAt
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const getOrganizations = gql`
|
|
query {
|
|
organizations {
|
|
id
|
|
name
|
|
projects {
|
|
id
|
|
owner {
|
|
id
|
|
name
|
|
}
|
|
deployments {
|
|
id
|
|
}
|
|
name
|
|
repository
|
|
prodBranch
|
|
description
|
|
template
|
|
framework
|
|
webhooks
|
|
members {
|
|
id
|
|
permissions
|
|
member{
|
|
id
|
|
name
|
|
email
|
|
}
|
|
}
|
|
environmentVariables {
|
|
id
|
|
environments
|
|
key
|
|
value
|
|
createdAt
|
|
updatedAt
|
|
}
|
|
createdAt
|
|
updatedAt
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
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
|
|
}
|
|
}
|
|
`;
|