Skip to content

Commit

Permalink
Merge pull request #13 from ONSdigital/sync-latest-schema-changes
Browse files Browse the repository at this point in the history
Pull latest schema changes from upstream.
  • Loading branch information
samiwel authored Nov 16, 2018
2 parents 4aa62da + 0d48ec6 commit 5b67988
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@ typings/
# Yarn Integrity file
.yarn-integrity

.vscode
.vscode

fragmentTypes.json
1 change: 0 additions & 1 deletion eq-author-graphql-schema/fragmentTypes.json

This file was deleted.

53 changes: 53 additions & 0 deletions eq-author-graphql-schema/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ type Section {
introductionTitle: String
introductionContent: String
introductionEnabled: Boolean!
availablePipingAnswers: [Answer!]!
availablePipingMetadata: [Metadata!]!
}
interface Page {
Expand All @@ -66,6 +68,23 @@ type QuestionPage implements Page {
section: Section
position: Int!
routingRuleSet: RoutingRuleSet
availablePipingAnswers: [Answer!]!
availablePipingMetadata: [Metadata!]!
confirmation: QuestionConfirmation
}
type ConfirmationOption {
label: String
description: String
}
type QuestionConfirmation {
id: ID!
displayName: String!
title: String
page: QuestionPage!
positive: ConfirmationOption!
negative: ConfirmationOption!
}
interface Answer {
Expand Down Expand Up @@ -237,6 +256,7 @@ type MaxValueValidationRule implements ValidationRule {
custom: Int
previousAnswer: BasicAnswer
entityType: ValidationRuleEntityType
availablePreviousAnswers: [Answer!]!
}
type EarliestDateValidationRule implements ValidationRule {
Expand All @@ -248,6 +268,8 @@ type EarliestDateValidationRule implements ValidationRule {
previousAnswer: BasicAnswer
metadata: Metadata
entityType: ValidationRuleEntityType
availablePreviousAnswers: [Answer!]!
availableMetadata: [Metadata!]!
}
type LatestDateValidationRule implements ValidationRule {
Expand All @@ -259,6 +281,8 @@ type LatestDateValidationRule implements ValidationRule {
previousAnswer: BasicAnswer
metadata: Metadata
entityType: ValidationRuleEntityType
availablePreviousAnswers: [Answer!]!
availableMetadata: [Metadata!]!
}
type Duration {
Expand Down Expand Up @@ -363,6 +387,7 @@ type Query {
option(id: ID!): Option
pagesAffectedByDeletion(pageId: ID!): [Page]!
availableRoutingDestinations(pageId: ID!): AvailableRoutingDestinations!
questionConfirmation(id: ID!): QuestionConfirmation
}
type Mutation {
Expand Down Expand Up @@ -417,6 +442,10 @@ type Mutation {
createMetadata(input: CreateMetadataInput!): Metadata!
updateMetadata(input: UpdateMetadataInput!): Metadata!
deleteMetadata(input: DeleteMetadataInput!): Metadata!
createQuestionConfirmation(input: CreateQuestionConfirmationInput): QuestionConfirmation!
updateQuestionConfirmation(input: UpdateQuestionConfirmationInput): QuestionConfirmation!
deleteQuestionConfirmation(input: DeleteQuestionConfirmationInput): QuestionConfirmation!
undeleteQuestionConfirmation(input: UndeleteQuestionConfirmationInput): QuestionConfirmation!
}
input CreateQuestionnaireInput {
Expand Down Expand Up @@ -764,4 +793,28 @@ input UpdateMetadataInput {
languageValue: Language
textValue: String
}
input ConfirmationOptionInput {
label: String
description: String
}
input UpdateQuestionConfirmationInput {
id: ID!
title: String
positive: ConfirmationOptionInput!
negative: ConfirmationOptionInput!
}
input CreateQuestionConfirmationInput {
pageId: ID!
}
input DeleteQuestionConfirmationInput {
id: ID!
}
input UndeleteQuestionConfirmationInput {
id: ID!
}
`;
2 changes: 1 addition & 1 deletion eq-author-graphql-schema/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eq-author-graphql-schema",
"version": "0.40.0",
"version": "0.42.0",
"files": [
"index.js",
"fragmentTypes.json"
Expand Down

0 comments on commit 5b67988

Please sign in to comment.