feat(gql-client): deployment removal request
This commit is contained in:
parent
953c3fc10b
commit
a8d93732ce
@ -276,6 +276,17 @@ export class GQLClient {
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async deleteDeployment (deploymentId: string): Promise<types.DeleteDeploymentResponse> {
|
||||||
|
const { data } = await this.client.mutate({
|
||||||
|
mutation: mutations.deleteDeployment,
|
||||||
|
variables: {
|
||||||
|
deploymentId
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
async addDomain (projectId: string, data: types.AddDomainInput): Promise<types.AddDomainResponse> {
|
async addDomain (projectId: string, data: types.AddDomainInput): Promise<types.AddDomainResponse> {
|
||||||
const result = await this.client.mutate({
|
const result = await this.client.mutate({
|
||||||
mutation: mutations.addDomain,
|
mutation: mutations.addDomain,
|
||||||
|
@ -82,6 +82,12 @@ mutation ($projectId: String! ,$deploymentId: String!) {
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
export const deleteDeployment = gql`
|
||||||
|
mutation ($deploymentId: String!) {
|
||||||
|
deleteDeployment(deploymentId: $deploymentId)
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
export const addDomain = gql`
|
export const addDomain = gql`
|
||||||
mutation ($projectId: String!, $data: AddDomainInput!) {
|
mutation ($projectId: String!, $data: AddDomainInput!) {
|
||||||
addDomain(projectId: $projectId, data: $data)
|
addDomain(projectId: $projectId, data: $data)
|
||||||
|
@ -269,6 +269,10 @@ export type RollbackDeploymentResponse = {
|
|||||||
rollbackDeployment: boolean
|
rollbackDeployment: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type DeleteDeploymentResponse = {
|
||||||
|
deleteDeployment: boolean
|
||||||
|
}
|
||||||
|
|
||||||
export type AddDomainInput = {
|
export type AddDomainInput = {
|
||||||
name: string
|
name: string
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user