Update schema

This commit is contained in:
Ramon Wenger 2022-06-14 14:38:41 +02:00
parent 0d7b948e44
commit 9f86b3c685
1 changed files with 51 additions and 4 deletions

View File

@ -301,6 +301,16 @@ type ContentBlockNode implements Node & ContentBlockInterface {
originalCreator: PublicUserNode originalCreator: PublicUserNode
} }
type ContentBlockNodeConnection {
pageInfo: PageInfo!
edges: [ContentBlockNodeEdge]!
}
type ContentBlockNodeEdge {
node: ContentBlockNode
cursor: String!
}
input ContentElementInput { input ContentElementInput {
id: String id: String
type: InputTypes! type: InputTypes!
@ -434,6 +444,18 @@ type DeleteRoomPayload {
clientMutationId: String clientMutationId: String
} }
input DeleteSnapshotInput {
id: ID!
clientMutationId: String
}
type DeleteSnapshotPayload {
result: DeleteSnapshotResult
clientMutationId: String
}
union DeleteSnapshotResult = Success | NotOwner
type DjangoDebug { type DjangoDebug {
sql: [DjangoDebugSQL] sql: [DjangoDebugSQL]
} }
@ -678,6 +700,7 @@ type Mutation {
applySnapshot(input: ApplySnapshotInput!): ApplySnapshotPayload applySnapshot(input: ApplySnapshotInput!): ApplySnapshotPayload
shareSnapshot(input: ShareSnapshotInput!): ShareSnapshotPayload shareSnapshot(input: ShareSnapshotInput!): ShareSnapshotPayload
updateSnapshot(input: UpdateSnapshotInput!): UpdateSnapshotPayload updateSnapshot(input: UpdateSnapshotInput!): UpdateSnapshotPayload
deleteSnapshot(input: DeleteSnapshotInput!): DeleteSnapshotPayload
_debug: DjangoDebug _debug: DjangoDebug
} }
@ -755,6 +778,16 @@ type ObjectiveNode implements Node {
mine: Boolean mine: Boolean
} }
type ObjectiveNodeConnection {
pageInfo: PageInfo!
edges: [ObjectiveNodeEdge]!
}
type ObjectiveNodeEdge {
node: ObjectiveNode
cursor: String!
}
type PageInfo { type PageInfo {
hasNextPage: Boolean! hasNextPage: Boolean!
hasPreviousPage: Boolean! hasPreviousPage: Boolean!
@ -954,14 +987,20 @@ type SnapshotContentBlockNode implements Node & ContentBlockInterface {
} }
type SnapshotNode implements Node { type SnapshotNode implements Node {
title: String
id: ID! id: ID!
module: ModuleNode!
chapters: [SnapshotChapterNode] chapters: [SnapshotChapterNode]
hiddenContentBlocks(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, title: String): ContentBlockNodeConnection!
created: DateTime!
creator: String!
shared: Boolean!
objectiveGroups: [SnapshotObjectiveGroupNode]
hiddenObjectives(offset: Int, before: String, after: String, first: Int, last: Int, text: String): ObjectiveNodeConnection!
title: String
metaTitle: String
heroImage: String
changes: SnapshotChangesNode changes: SnapshotChangesNode
mine: Boolean mine: Boolean
shared: Boolean!
creator: String!
objectiveGroups: [SnapshotObjectiveGroupNode]
} }
type SnapshotNodeConnection { type SnapshotNodeConnection {
@ -1048,6 +1087,14 @@ type SubmissionFeedbackNode implements Node {
id: ID! id: ID!
} }
type Success implements SuccessNode {
message: String
}
interface SuccessNode {
message: String
}
type SurveyNode implements Node { type SurveyNode implements Node {
id: ID! id: ID!
title: String! title: String!