Add constants and update schema

This commit is contained in:
Ramon Wenger 2021-05-06 23:19:47 +02:00
parent 96ba04d1d1
commit 885d321c96
2 changed files with 13 additions and 3 deletions

View File

@ -0,0 +1 @@
export const LAYOUT_SIMPLE = 'simple';

View File

@ -159,6 +159,7 @@ input ApplySnapshotInput {
type ApplySnapshotPayload { type ApplySnapshotPayload {
success: Boolean success: Boolean
module: ModuleNode
clientMutationId: String clientMutationId: String
} }
@ -649,11 +650,11 @@ type ModuleNode implements ModuleInterface {
teaser: String! teaser: String!
intro: String! intro: String!
assignments(offset: Int, before: String, after: String, first: Int, last: Int): AssignmentNodeConnection! assignments(offset: Int, before: String, after: String, first: Int, last: Int): AssignmentNodeConnection!
objectiveGroups(offset: Int, before: String, after: String, first: Int, last: Int, title: String, module_Slug: String): ObjectiveGroupNodeConnection! objectiveGroups: [ObjectiveGroupNode]
id: ID! id: ID!
pk: Int pk: Int
topic: TopicNode topic: TopicNode
chapters(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, title: String): ChapterNodeConnection chapters: [ChapterNode]
solutionsEnabled: Boolean solutionsEnabled: Boolean
bookmark: ModuleBookmarkNode bookmark: ModuleBookmarkNode
mySubmissions(offset: Int, before: String, after: String, first: Int, last: Int): StudentSubmissionNodeConnection mySubmissions(offset: Int, before: String, after: String, first: Int, last: Int): StudentSubmissionNodeConnection
@ -703,7 +704,7 @@ type ObjectiveGroupNode implements Node {
title: ObjectiveGroupTitle title: ObjectiveGroupTitle
module: ModuleNode! module: ModuleNode!
hiddenFor: [SchoolClassNode] hiddenFor: [SchoolClassNode]
objectives(offset: Int, before: String, after: String, first: Int, last: Int, text: String): ObjectiveNodeConnection! objectives: [ObjectiveNode]
pk: Int pk: Int
displayTitle: String displayTitle: String
} }
@ -881,6 +882,13 @@ type SchoolClassNodeEdge {
cursor: String! cursor: String!
} }
type SnapshotChangesNode {
hiddenObjectives: Int!
newObjectives: Int!
hiddenContentBlocks: Int!
newContentBlocks: Int!
}
type SnapshotChapterNode implements Node & ChapterInterface { type SnapshotChapterNode implements Node & ChapterInterface {
id: ID! id: ID!
description: String description: String
@ -908,6 +916,7 @@ type SnapshotNode implements Node {
title: String title: String
metaTitle: String metaTitle: String
heroImage: String heroImage: String
changes: SnapshotChangesNode
} }
input SpellCheckInput { input SpellCheckInput {