From 07a347d6a477a3865dbc0f755883f4aeacbb8e63 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Fri, 21 May 2021 14:54:58 +0100 Subject: [PATCH] Update gql types and mutations --- src/graphql/category.api.ts | 71 ++ src/graphql/feature.api.ts | 155 +++++ src/graphql/project.api.ts | 841 +++++++++++++++++++++++ src/graphql/prototype.api.ts | 106 +++ src/graphql/template.api.ts | 460 +++++++++++++ src/graphql/types.ts | 1224 +++++++++++++++++++++++++++++++++- 6 files changed, 2856 insertions(+), 1 deletion(-) create mode 100644 src/graphql/category.api.ts create mode 100644 src/graphql/feature.api.ts create mode 100644 src/graphql/project.api.ts create mode 100644 src/graphql/prototype.api.ts create mode 100644 src/graphql/template.api.ts diff --git a/src/graphql/category.api.ts b/src/graphql/category.api.ts new file mode 100644 index 0000000..c4b6862 --- /dev/null +++ b/src/graphql/category.api.ts @@ -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 + } + } + } +`; diff --git a/src/graphql/feature.api.ts b/src/graphql/feature.api.ts new file mode 100644 index 0000000..14ade39 --- /dev/null +++ b/src/graphql/feature.api.ts @@ -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 + } + } +`; diff --git a/src/graphql/project.api.ts b/src/graphql/project.api.ts new file mode 100644 index 0000000..a606bf3 --- /dev/null +++ b/src/graphql/project.api.ts @@ -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 + } + } +`; diff --git a/src/graphql/prototype.api.ts b/src/graphql/prototype.api.ts new file mode 100644 index 0000000..33dea31 --- /dev/null +++ b/src/graphql/prototype.api.ts @@ -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 + } + } + } + } + } +`; diff --git a/src/graphql/template.api.ts b/src/graphql/template.api.ts new file mode 100644 index 0000000..3a98f0b --- /dev/null +++ b/src/graphql/template.api.ts @@ -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 + } + } + } +`; diff --git a/src/graphql/types.ts b/src/graphql/types.ts index 8c23771..e8f2d99 100644 --- a/src/graphql/types.ts +++ b/src/graphql/types.ts @@ -450,6 +450,7 @@ export type QueryRoot = { getTemplateById: TemplateOutput; getProjectById: ProjectOutput; getAllProjectsByClientId: Array; + getAllProjects: Array; getAllCategories: Array; getAllFeatures: Array; getAllTemplates: Array; @@ -494,7 +495,7 @@ export type QueryRootGetAllProjectsByClientIdArgs = { export type QueryRootGetAllTemplatesByCategoriesIdArgs = { - categoires: Array; + categories: Array; }; export type RelationsInput = { @@ -854,3 +855,1224 @@ export type GetCountryCodesQuery = ( & Pick )> } ); + +export type GetAllCategoriesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetAllCategoriesQuery = ( + { __typename?: 'QueryRoot' } + & { getAllCategories: Array<( + { __typename?: 'CategoryOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ) } + )> } +); + +export type GetCategoryByIdQueryVariables = Exact<{ + id: Scalars['String']; +}>; + + +export type GetCategoryByIdQuery = ( + { __typename?: 'QueryRoot' } + & { getCategoryById: ( + { __typename?: 'CategoryOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ) } + ) } +); + +export type AddCategoryMutationVariables = Exact<{ + category: CategoryInput; +}>; + + +export type AddCategoryMutation = ( + { __typename?: 'MutationRoot' } + & { addCategory: ( + { __typename?: 'CategoryOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ) } + ) } +); + +export type UpdateCategoryMutationVariables = Exact<{ + id: Scalars['String']; + category: CategoryInput; +}>; + + +export type UpdateCategoryMutation = ( + { __typename?: 'MutationRoot' } + & { updateCategory: ( + { __typename?: 'CategoryOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ) } + ) } +); + +export type DeleteCategoryMutationVariables = Exact<{ + id: Scalars['String']; +}>; + + +export type DeleteCategoryMutation = ( + { __typename?: 'MutationRoot' } + & { deleteCategory: ( + { __typename?: 'CategoryOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ) } + ) } +); + +export type GetAllFeaturesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetAllFeaturesQuery = ( + { __typename?: 'QueryRoot' } + & { getAllFeatures: Array<( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )> } +); + +export type GetFeatureByIdQueryVariables = Exact<{ + id: Scalars['String']; +}>; + + +export type GetFeatureByIdQuery = ( + { __typename?: 'QueryRoot' } + & { getFeatureById: ( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + ) } +); + +export type AddFeatureMutationVariables = Exact<{ + feature: FeatureInput; +}>; + + +export type AddFeatureMutation = ( + { __typename?: 'MutationRoot' } + & { addFeature: ( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + ) } +); + +export type UpdateFeatureMutationVariables = Exact<{ + id: Scalars['String']; + feature: FeatureInput; +}>; + + +export type UpdateFeatureMutation = ( + { __typename?: 'MutationRoot' } + & { updateFeature: ( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + ) } +); + +export type DeleteFeatureMutationVariables = Exact<{ + id: Scalars['String']; +}>; + + +export type DeleteFeatureMutation = ( + { __typename?: 'MutationRoot' } + & { deleteFeature: ( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + ) } +); + +export type AddFeatureWireframesMutationVariables = Exact<{ + id: Scalars['String']; + wireframes: Array | InputFile; +}>; + + +export type AddFeatureWireframesMutation = ( + { __typename?: 'MutationRoot' } + & { addFeatureWireframes: ( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + ) } +); + +export type DeleteFeatureWireframeMutationVariables = Exact<{ + id: Scalars['String']; +}>; + + +export type DeleteFeatureWireframeMutation = ( + { __typename?: 'MutationRoot' } + & { deleteFeatureWireframe: ( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + ) } +); + +export type GetAllProjectsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetAllProjectsQuery = ( + { __typename?: 'QueryRoot' } + & { getAllProjects: Array<( + { __typename?: 'ProjectOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), template: ( + { __typename?: 'TemplateOutput' } + & Pick + & { features?: Maybe + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>>, image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + ), features: Array<( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>, proposal?: Maybe<( + { __typename?: 'ProposalOutput' } + & Pick + & { devtime: ( + { __typename?: 'DevtimeOutput' } + & Pick + ), resources: Array<( + { __typename?: 'ResourceOutput' } + & Pick + )> } + )>, paymentOption: ( + { __typename?: 'PaymentOptionOutput' } + & Pick + ), delivrable?: Maybe<( + { __typename?: 'DelivrableOutput' } + & Pick + & { specification: ( + { __typename?: 'File' } + & Pick + ), mvp: ( + { __typename?: 'File' } + & Pick + ), design: ( + { __typename?: 'File' } + & Pick + ) } + )> } + )> } +); + +export type GetAllProjectsByClientIdQueryVariables = Exact<{ + id: Scalars['String']; +}>; + + +export type GetAllProjectsByClientIdQuery = ( + { __typename?: 'QueryRoot' } + & { getAllProjectsByClientId: Array<( + { __typename?: 'ProjectOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), template: ( + { __typename?: 'TemplateOutput' } + & Pick + & { features?: Maybe + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>>, image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + ), features: Array<( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>, proposal?: Maybe<( + { __typename?: 'ProposalOutput' } + & Pick + & { devtime: ( + { __typename?: 'DevtimeOutput' } + & Pick + ), resources: Array<( + { __typename?: 'ResourceOutput' } + & Pick + )> } + )>, paymentOption: ( + { __typename?: 'PaymentOptionOutput' } + & Pick + ), delivrable?: Maybe<( + { __typename?: 'DelivrableOutput' } + & Pick + & { specification: ( + { __typename?: 'File' } + & Pick + ), mvp: ( + { __typename?: 'File' } + & Pick + ), design: ( + { __typename?: 'File' } + & Pick + ) } + )> } + )> } +); + +export type GetProjectByIdQueryVariables = Exact<{ + id: Scalars['String']; +}>; + + +export type GetProjectByIdQuery = ( + { __typename?: 'QueryRoot' } + & { getProjectById: ( + { __typename?: 'ProjectOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), template: ( + { __typename?: 'TemplateOutput' } + & Pick + & { features?: Maybe + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>>, image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + ), features: Array<( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>, proposal?: Maybe<( + { __typename?: 'ProposalOutput' } + & Pick + & { devtime: ( + { __typename?: 'DevtimeOutput' } + & Pick + ), resources: Array<( + { __typename?: 'ResourceOutput' } + & Pick + )> } + )>, paymentOption: ( + { __typename?: 'PaymentOptionOutput' } + & Pick + ), delivrable?: Maybe<( + { __typename?: 'DelivrableOutput' } + & Pick + & { specification: ( + { __typename?: 'File' } + & Pick + ), mvp: ( + { __typename?: 'File' } + & Pick + ), design: ( + { __typename?: 'File' } + & Pick + ) } + )> } + ) } +); + +export type AddProjectMutationVariables = Exact<{ + project: ProjectInput; +}>; + + +export type AddProjectMutation = ( + { __typename?: 'MutationRoot' } + & { addProject: ( + { __typename?: 'ProjectOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), template: ( + { __typename?: 'TemplateOutput' } + & Pick + & { features?: Maybe + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>>, image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + ), features: Array<( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>, proposal?: Maybe<( + { __typename?: 'ProposalOutput' } + & Pick + & { devtime: ( + { __typename?: 'DevtimeOutput' } + & Pick + ), resources: Array<( + { __typename?: 'ResourceOutput' } + & Pick + )> } + )>, paymentOption: ( + { __typename?: 'PaymentOptionOutput' } + & Pick + ), delivrable?: Maybe<( + { __typename?: 'DelivrableOutput' } + & Pick + & { specification: ( + { __typename?: 'File' } + & Pick + ), mvp: ( + { __typename?: 'File' } + & Pick + ), design: ( + { __typename?: 'File' } + & Pick + ) } + )> } + ) } +); + +export type ChangeProjectStateMutationVariables = Exact<{ + id: Scalars['String']; + state: State; +}>; + + +export type ChangeProjectStateMutation = ( + { __typename?: 'MutationRoot' } + & { changeProjectState: ( + { __typename?: 'ProjectOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), template: ( + { __typename?: 'TemplateOutput' } + & Pick + & { features?: Maybe + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>>, image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + ), features: Array<( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>, proposal?: Maybe<( + { __typename?: 'ProposalOutput' } + & Pick + & { devtime: ( + { __typename?: 'DevtimeOutput' } + & Pick + ), resources: Array<( + { __typename?: 'ResourceOutput' } + & Pick + )> } + )>, paymentOption: ( + { __typename?: 'PaymentOptionOutput' } + & Pick + ), delivrable?: Maybe<( + { __typename?: 'DelivrableOutput' } + & Pick + & { specification: ( + { __typename?: 'File' } + & Pick + ), mvp: ( + { __typename?: 'File' } + & Pick + ), design: ( + { __typename?: 'File' } + & Pick + ) } + )> } + ) } +); + +export type UpdateProjectMutationVariables = Exact<{ + id: Scalars['String']; + name: Scalars['String']; + image: InputFile; +}>; + + +export type UpdateProjectMutation = ( + { __typename?: 'MutationRoot' } + & { updateProject: ( + { __typename?: 'ProjectOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), template: ( + { __typename?: 'TemplateOutput' } + & Pick + & { features?: Maybe + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>>, image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + ), features: Array<( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>, proposal?: Maybe<( + { __typename?: 'ProposalOutput' } + & Pick + & { devtime: ( + { __typename?: 'DevtimeOutput' } + & Pick + ), resources: Array<( + { __typename?: 'ResourceOutput' } + & Pick + )> } + )>, paymentOption: ( + { __typename?: 'PaymentOptionOutput' } + & Pick + ), delivrable?: Maybe<( + { __typename?: 'DelivrableOutput' } + & Pick + & { specification: ( + { __typename?: 'File' } + & Pick + ), mvp: ( + { __typename?: 'File' } + & Pick + ), design: ( + { __typename?: 'File' } + & Pick + ) } + )> } + ) } +); + +export type AddProjectProposalMutationVariables = Exact<{ + id: Scalars['String']; + proposal: ProposalInput; +}>; + + +export type AddProjectProposalMutation = ( + { __typename?: 'MutationRoot' } + & { addProjectProposal: ( + { __typename?: 'ProjectOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), template: ( + { __typename?: 'TemplateOutput' } + & Pick + & { features?: Maybe + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>>, image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + ), features: Array<( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>, proposal?: Maybe<( + { __typename?: 'ProposalOutput' } + & Pick + & { devtime: ( + { __typename?: 'DevtimeOutput' } + & Pick + ), resources: Array<( + { __typename?: 'ResourceOutput' } + & Pick + )> } + )>, paymentOption: ( + { __typename?: 'PaymentOptionOutput' } + & Pick + ), delivrable?: Maybe<( + { __typename?: 'DelivrableOutput' } + & Pick + & { specification: ( + { __typename?: 'File' } + & Pick + ), mvp: ( + { __typename?: 'File' } + & Pick + ), design: ( + { __typename?: 'File' } + & Pick + ) } + )> } + ) } +); + +export type GetPrototypeByIdQueryVariables = Exact<{ + id: Scalars['String']; +}>; + + +export type GetPrototypeByIdQuery = ( + { __typename?: 'QueryRoot' } + & { getPrototypeById: ( + { __typename?: 'TemplateProtoTypeOutput' } + & Pick + & { prototype: Array<( + { __typename?: 'ProtoTypeOutput' } + & { feature: ( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + ), connections: Array<( + { __typename?: 'ConnectionsOutput' } + & Pick + & { releations: ( + { __typename?: 'RelationsOutput' } + & Pick + ) } + )> } + )> } + ) } +); + +export type AddPrototypeMutationVariables = Exact<{ + prototype: TemplateProtoTypeInput; +}>; + + +export type AddPrototypeMutation = ( + { __typename?: 'MutationRoot' } + & { addPrototype: ( + { __typename?: 'TemplateProtoTypeOutput' } + & Pick + & { prototype: Array<( + { __typename?: 'ProtoTypeOutput' } + & { feature: ( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + ), connections: Array<( + { __typename?: 'ConnectionsOutput' } + & Pick + & { releations: ( + { __typename?: 'RelationsOutput' } + & Pick + ) } + )> } + )> } + ) } +); + +export type UpdatePrototypeMutationVariables = Exact<{ + prototype: TemplateProtoTypeInput; +}>; + + +export type UpdatePrototypeMutation = ( + { __typename?: 'MutationRoot' } + & { updatePrototype: ( + { __typename?: 'TemplateProtoTypeOutput' } + & Pick + & { prototype: Array<( + { __typename?: 'ProtoTypeOutput' } + & { feature: ( + { __typename?: 'FeatureOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + ), connections: Array<( + { __typename?: 'ConnectionsOutput' } + & Pick + & { releations: ( + { __typename?: 'RelationsOutput' } + & Pick + ) } + )> } + )> } + ) } +); + +export type GetAllTemplatesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetAllTemplatesQuery = ( + { __typename?: 'QueryRoot' } + & { getAllTemplates: Array<( + { __typename?: 'TemplateOutput' } + & Pick + & { features?: Maybe + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>>, image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + )> } +); + +export type GetTemplateByIdQueryVariables = Exact<{ + id: Scalars['String']; +}>; + + +export type GetTemplateByIdQuery = ( + { __typename?: 'QueryRoot' } + & { getTemplateById: ( + { __typename?: 'TemplateOutput' } + & Pick + & { features?: Maybe + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>>, image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + ) } +); + +export type GetAllTemplatesByCategoriesIdQueryVariables = Exact<{ + categories: Array | Scalars['String']; +}>; + + +export type GetAllTemplatesByCategoriesIdQuery = ( + { __typename?: 'QueryRoot' } + & { getAllTemplatesByCategoriesId: Array<( + { __typename?: 'TemplateOutput' } + & Pick + & { features?: Maybe + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>>, image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + )> } +); + +export type AddTemplateMutationVariables = Exact<{ + template: TemplateInput; +}>; + + +export type AddTemplateMutation = ( + { __typename?: 'MutationRoot' } + & { addTemplate: ( + { __typename?: 'TemplateOutput' } + & Pick + & { features?: Maybe + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>>, image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + ) } +); + +export type UpdateTemplateMutationVariables = Exact<{ + id: Scalars['String']; + template: TemplateUpdateInput; + specification: SpecificationInput; +}>; + + +export type UpdateTemplateMutation = ( + { __typename?: 'MutationRoot' } + & { updateTemplate: ( + { __typename?: 'TemplateOutput' } + & Pick + & { features?: Maybe + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>>, image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + ) } +); + +export type UpdateTemplateFeatureMutationVariables = Exact<{ + id: Scalars['String']; + featuresId: Array | Scalars['String']; +}>; + + +export type UpdateTemplateFeatureMutation = ( + { __typename?: 'MutationRoot' } + & { updateTemplateFeature: ( + { __typename?: 'TemplateOutput' } + & Pick + & { features?: Maybe + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>>, image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + ) } +); + +export type AddTemplateSpecificationMutationVariables = Exact<{ + id: Scalars['String']; + specification: SpecificationInput; +}>; + + +export type AddTemplateSpecificationMutation = ( + { __typename?: 'MutationRoot' } + & { addTemplateSpecification: ( + { __typename?: 'TemplateOutput' } + & Pick + & { features?: Maybe + & { image: ( + { __typename?: 'File' } + & Pick + ), wireframes?: Maybe + )>> } + )>>, image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + ) } +); + +export type DeleteTemplateMutationVariables = Exact<{ + id: Scalars['String']; +}>; + + +export type DeleteTemplateMutation = ( + { __typename?: 'MutationRoot' } + & { deleteTemplate: ( + { __typename?: 'TemplateDefactoredOutput' } + & Pick + & { image: ( + { __typename?: 'File' } + & Pick + ), specification?: Maybe<( + { __typename?: 'SpecificationOutput' } + & Pick + & { introduction: ( + { __typename?: 'IntroductionOutput' } + & Pick + ), overallDescription: ( + { __typename?: 'OverallDescriptionOutput' } + & Pick + ), nonFunctionalRequirements: ( + { __typename?: 'NonFunctionalRequirementsOutput' } + & Pick + ) } + )> } + ) } +);