feat(pipelines): edit view.
This commit is contained in:
43
src/pipelines/mutations.ts
Normal file
43
src/pipelines/mutations.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import { gql } from "@apollo/client";
|
||||
|
||||
export const CREATE_PIPELINE = gql`
|
||||
mutation CreatePipeline($pipeline: CreatePipelineInput!) {
|
||||
createPipeline(pipeline: $pipeline) {
|
||||
id
|
||||
projectId
|
||||
branch
|
||||
name
|
||||
workUnitMetadata {
|
||||
version
|
||||
units {
|
||||
type
|
||||
scripts
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_PIPELINE = gql`
|
||||
mutation UpdatePipeline($pipeline: UpdatePipelineInput!) {
|
||||
updatePipeline(pipeline: $pipeline) {
|
||||
id
|
||||
projectId
|
||||
branch
|
||||
name
|
||||
workUnitMetadata {
|
||||
version
|
||||
units {
|
||||
type
|
||||
scripts
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const DELETE_PIPELINE = gql`
|
||||
mutation DeletePipeline($id: String!) {
|
||||
deletePipeline(id: $id)
|
||||
}
|
||||
`;
|
Reference in New Issue
Block a user