mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-02 02:30:29 +00:00
Update gql types and mutations
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
export const GET_ALL_CATEGORIES = gql`
|
||||
query GetAllCategories {
|
||||
getAllCategories {
|
||||
id
|
||||
name
|
||||
description
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const GET_CATEGORY_BY_ID = gql`
|
||||
query GetCategoryById($id: String!) {
|
||||
getCategoryById(id: $id) {
|
||||
id
|
||||
name
|
||||
description
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const ADD_CATEGORY = gql`
|
||||
mutation AddCategory($category: CategoryInput!) {
|
||||
addCategory(category: $category) {
|
||||
id
|
||||
name
|
||||
description
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_CATEGORY = gql`
|
||||
mutation UpdateCategory($id: String!, $category: CategoryInput!) {
|
||||
updateCategory(id: $id, category: $category) {
|
||||
id
|
||||
name
|
||||
description
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const DELETE_CATEGORY = gql`
|
||||
mutation DeleteCategory($id: String!) {
|
||||
deleteCategory(id: $id) {
|
||||
id
|
||||
name
|
||||
description
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -0,0 +1,155 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
export const GET_ALL_FEATURES = gql`
|
||||
query GetAllFeatures {
|
||||
getAllFeatures {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const GET_FEATURE_BY_ID = gql`
|
||||
query GetFeatureById($id: String!) {
|
||||
getFeatureById(id: $id) {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const ADD_FEATURE = gql`
|
||||
mutation AddFeature($feature: FeatureInput!) {
|
||||
addFeature(feature: $feature) {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_FEATURE = gql`
|
||||
mutation UpdateFeature($id: String!, $feature: FeatureInput!) {
|
||||
updateFeature(id: $id, feature: $feature) {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const DELETE_FEATURE = gql`
|
||||
mutation DeleteFeature($id: String!) {
|
||||
deleteFeature(id: $id) {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const ADD_FEATURE_WIREFRAMES = gql`
|
||||
mutation AddFeatureWireframes($id: String!, $wireframes: [InputFile!]!) {
|
||||
addFeatureWireframes(id: $id, wireframes: $wireframes) {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const DELETE_FEATURE_WIREFRAME = gql`
|
||||
mutation DeleteFeatureWireframe($id: String!) {
|
||||
deleteFeatureWireframe(id: $id) {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -0,0 +1,841 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
export const GET_ALL_PROJECTS = gql`
|
||||
query GetAllProjects {
|
||||
getAllProjects {
|
||||
id
|
||||
clientId
|
||||
name
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
platforms
|
||||
template {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
state
|
||||
proposal {
|
||||
devtime {
|
||||
months
|
||||
days
|
||||
hours
|
||||
}
|
||||
summary
|
||||
purpose
|
||||
resources {
|
||||
resourceType
|
||||
developers
|
||||
}
|
||||
}
|
||||
paymentOption {
|
||||
optOne
|
||||
optTwo
|
||||
optThree
|
||||
}
|
||||
delivrable {
|
||||
specification {
|
||||
name
|
||||
src
|
||||
}
|
||||
fullBuild
|
||||
mvp {
|
||||
name
|
||||
src
|
||||
}
|
||||
design {
|
||||
name
|
||||
src
|
||||
}
|
||||
}
|
||||
totalPrice
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const GET_ALL_PROJECTS_BY_CLIENT_ID = gql`
|
||||
query GetAllProjectsByClientId($id: String!) {
|
||||
getAllProjectsByClientId(id: $id) {
|
||||
id
|
||||
clientId
|
||||
name
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
platforms
|
||||
template {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
state
|
||||
proposal {
|
||||
devtime {
|
||||
months
|
||||
days
|
||||
hours
|
||||
}
|
||||
summary
|
||||
purpose
|
||||
resources {
|
||||
resourceType
|
||||
developers
|
||||
}
|
||||
}
|
||||
paymentOption {
|
||||
optOne
|
||||
optTwo
|
||||
optThree
|
||||
}
|
||||
delivrable {
|
||||
specification {
|
||||
name
|
||||
src
|
||||
}
|
||||
fullBuild
|
||||
mvp {
|
||||
name
|
||||
src
|
||||
}
|
||||
design {
|
||||
name
|
||||
src
|
||||
}
|
||||
}
|
||||
totalPrice
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const GET_PROJECT_BY_ID = gql`
|
||||
query GetProjectById($id: String!) {
|
||||
getProjectById(id: $id) {
|
||||
id
|
||||
clientId
|
||||
name
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
platforms
|
||||
template {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
state
|
||||
proposal {
|
||||
devtime {
|
||||
months
|
||||
days
|
||||
hours
|
||||
}
|
||||
summary
|
||||
purpose
|
||||
resources {
|
||||
resourceType
|
||||
developers
|
||||
}
|
||||
}
|
||||
paymentOption {
|
||||
optOne
|
||||
optTwo
|
||||
optThree
|
||||
}
|
||||
delivrable {
|
||||
specification {
|
||||
name
|
||||
src
|
||||
}
|
||||
fullBuild
|
||||
mvp {
|
||||
name
|
||||
src
|
||||
}
|
||||
design {
|
||||
name
|
||||
src
|
||||
}
|
||||
}
|
||||
totalPrice
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const ADD_PROJECT = gql`
|
||||
mutation AddProject($project: ProjectInput!) {
|
||||
addProject(project: $project) {
|
||||
id
|
||||
clientId
|
||||
name
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
platforms
|
||||
template {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
state
|
||||
proposal {
|
||||
devtime {
|
||||
months
|
||||
days
|
||||
hours
|
||||
}
|
||||
summary
|
||||
purpose
|
||||
resources {
|
||||
resourceType
|
||||
developers
|
||||
}
|
||||
}
|
||||
paymentOption {
|
||||
optOne
|
||||
optTwo
|
||||
optThree
|
||||
}
|
||||
delivrable {
|
||||
specification {
|
||||
name
|
||||
src
|
||||
}
|
||||
fullBuild
|
||||
mvp {
|
||||
name
|
||||
src
|
||||
}
|
||||
design {
|
||||
name
|
||||
src
|
||||
}
|
||||
}
|
||||
totalPrice
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const CHANGE_PROJECT_STATE = gql`
|
||||
mutation ChangeProjectState($id: String!, $state: State!) {
|
||||
changeProjectState(id: $id, state: $state) {
|
||||
id
|
||||
clientId
|
||||
name
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
platforms
|
||||
template {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
state
|
||||
proposal {
|
||||
devtime {
|
||||
months
|
||||
days
|
||||
hours
|
||||
}
|
||||
summary
|
||||
purpose
|
||||
resources {
|
||||
resourceType
|
||||
developers
|
||||
}
|
||||
}
|
||||
paymentOption {
|
||||
optOne
|
||||
optTwo
|
||||
optThree
|
||||
}
|
||||
delivrable {
|
||||
specification {
|
||||
name
|
||||
src
|
||||
}
|
||||
fullBuild
|
||||
mvp {
|
||||
name
|
||||
src
|
||||
}
|
||||
design {
|
||||
name
|
||||
src
|
||||
}
|
||||
}
|
||||
totalPrice
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_PROJECT = gql`
|
||||
mutation UpdateProject($id: String!, $name: String!, $image: InputFile!) {
|
||||
updateProject(id: $id, name: $name, image: $image) {
|
||||
id
|
||||
clientId
|
||||
name
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
platforms
|
||||
template {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
state
|
||||
proposal {
|
||||
devtime {
|
||||
months
|
||||
days
|
||||
hours
|
||||
}
|
||||
summary
|
||||
purpose
|
||||
resources {
|
||||
resourceType
|
||||
developers
|
||||
}
|
||||
}
|
||||
paymentOption {
|
||||
optOne
|
||||
optTwo
|
||||
optThree
|
||||
}
|
||||
delivrable {
|
||||
specification {
|
||||
name
|
||||
src
|
||||
}
|
||||
fullBuild
|
||||
mvp {
|
||||
name
|
||||
src
|
||||
}
|
||||
design {
|
||||
name
|
||||
src
|
||||
}
|
||||
}
|
||||
totalPrice
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const ADD_PROJECT_PROPOSAL = gql`
|
||||
mutation AddProjectProposal($id: String!, $proposal: ProposalInput!) {
|
||||
addProjectProposal(id: $id, proposal: $proposal) {
|
||||
id
|
||||
clientId
|
||||
name
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
platforms
|
||||
template {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
state
|
||||
proposal {
|
||||
devtime {
|
||||
months
|
||||
days
|
||||
hours
|
||||
}
|
||||
summary
|
||||
purpose
|
||||
resources {
|
||||
resourceType
|
||||
developers
|
||||
}
|
||||
}
|
||||
paymentOption {
|
||||
optOne
|
||||
optTwo
|
||||
optThree
|
||||
}
|
||||
delivrable {
|
||||
specification {
|
||||
name
|
||||
src
|
||||
}
|
||||
fullBuild
|
||||
mvp {
|
||||
name
|
||||
src
|
||||
}
|
||||
design {
|
||||
name
|
||||
src
|
||||
}
|
||||
}
|
||||
totalPrice
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -0,0 +1,106 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -0,0 +1,460 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
export const GET_ALL_TEMPLATES = gql`
|
||||
query GetAllTemplates {
|
||||
getAllTemplates {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const GET_TEMPLATE_BY_ID = gql`
|
||||
query GetTemplateById($id: String!) {
|
||||
getTemplateById(id: $id) {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const GET_ALL_TEMPLATES_BY_CATEGORIES_ID = gql`
|
||||
query GetAllTemplatesByCategoriesId($categories: [String!]!) {
|
||||
getAllTemplatesByCategoriesId(categories: $categories) {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const ADD_TEMPALTE = gql`
|
||||
mutation AddTemplate($template: TemplateInput!) {
|
||||
addTemplate(template: $template) {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_TEMPALTE = gql`
|
||||
mutation UpdateTemplate(
|
||||
$id: String!
|
||||
$template: TemplateUpdateInput!
|
||||
$specification: SpecificationInput!
|
||||
) {
|
||||
updateTemplate(
|
||||
id: $id
|
||||
template: $template
|
||||
specification: $specification
|
||||
) {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_TEMPALTE_FEATURE = gql`
|
||||
mutation UpdateTemplateFeature($id: String!, $featuresId: [String!]!) {
|
||||
updateTemplateFeature(id: $id, featuresId: $featuresId) {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const ADD_TEMPLATE_SPECIFICATION = gql`
|
||||
mutation AddTemplateSpecification(
|
||||
$id: String!
|
||||
$specification: SpecificationInput!
|
||||
) {
|
||||
addTemplateSpecification(id: $id, specification: $specification) {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features {
|
||||
id
|
||||
name
|
||||
description
|
||||
featureType
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
wireframes {
|
||||
id
|
||||
name
|
||||
src
|
||||
}
|
||||
price
|
||||
repo
|
||||
}
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const DELETE_TEMPLATE = gql`
|
||||
mutation DeleteTemplate($id: String!) {
|
||||
deleteTemplate(id: $id) {
|
||||
id
|
||||
name
|
||||
description
|
||||
category
|
||||
features
|
||||
image {
|
||||
name
|
||||
src
|
||||
}
|
||||
specification {
|
||||
introduction {
|
||||
purpose
|
||||
documentConventions
|
||||
intendedAudience
|
||||
projectScope
|
||||
}
|
||||
overallDescription {
|
||||
perspective
|
||||
userCharacteristics
|
||||
operatingEnvironment
|
||||
designImplementationConstraints
|
||||
userDocumentation
|
||||
assemptionsDependencies
|
||||
}
|
||||
nonFunctionalRequirements {
|
||||
performanceRequirements
|
||||
safetyRequirements
|
||||
securityRequirements
|
||||
softwareQualityAttributes
|
||||
}
|
||||
otherRequirements
|
||||
glossary
|
||||
analysisModels
|
||||
issuesList
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
+1223
-1
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user