mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
107 lines
1.8 KiB
TypeScript
107 lines
1.8 KiB
TypeScript
import gql from 'graphql-tag';
|
|
|
|
export const GET_PROTOTYPE_BY_ID = gql`
|
|
query GetPrototypeById($id: String!) {
|
|
getPrototypeById(id: $id) {
|
|
id
|
|
template
|
|
prototype {
|
|
feature {
|
|
id
|
|
name
|
|
description
|
|
featureType
|
|
image {
|
|
name
|
|
src
|
|
}
|
|
wireframes {
|
|
id
|
|
name
|
|
src
|
|
}
|
|
price
|
|
repo
|
|
}
|
|
connections {
|
|
to
|
|
releations {
|
|
back
|
|
forword
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const ADD_PROTOTYPE = gql`
|
|
mutation AddPrototype($prototype: TemplateProtoTypeInput!) {
|
|
addPrototype(prototype: $prototype) {
|
|
id
|
|
template
|
|
prototype {
|
|
feature {
|
|
id
|
|
name
|
|
description
|
|
featureType
|
|
image {
|
|
name
|
|
src
|
|
}
|
|
wireframes {
|
|
id
|
|
name
|
|
src
|
|
}
|
|
price
|
|
repo
|
|
}
|
|
connections {
|
|
to
|
|
releations {
|
|
back
|
|
forword
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const UPDATE_PROTOTYPE = gql`
|
|
mutation UpdatePrototype($prototype: TemplateProtoTypeInput!) {
|
|
updatePrototype(prototype: $prototype) {
|
|
id
|
|
template
|
|
prototype {
|
|
feature {
|
|
id
|
|
name
|
|
description
|
|
featureType
|
|
image {
|
|
name
|
|
src
|
|
}
|
|
wireframes {
|
|
id
|
|
name
|
|
src
|
|
}
|
|
price
|
|
repo
|
|
}
|
|
connections {
|
|
to
|
|
releations {
|
|
back
|
|
forword
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|