diff --git a/client/codegen.ts b/client/codegen.ts index acc81198..6497aec4 100644 --- a/client/codegen.ts +++ b/client/codegen.ts @@ -2,16 +2,16 @@ import { CodegenConfig } from '@graphql-codegen/cli'; const config: CodegenConfig = { schema: ['../server/schema.graphql', './local.graphql'], - documents: ['src/**/*.vue'], + documents: ['src/**/*.vue', 'src/**/*.ts'], generates: { 'src/__generated__/': { preset: 'client', plugins: [], presetConfig: { - useTypeImports: true + useTypeImports: true, }, }, }, - ignoreNoDocuments: true + ignoreNoDocuments: true, }; export default config; diff --git a/client/src/__generated__/gql.ts b/client/src/__generated__/gql.ts index fbf5b8e1..7fc5bc70 100644 --- a/client/src/__generated__/gql.ts +++ b/client/src/__generated__/gql.ts @@ -24,6 +24,8 @@ const documents = { "\n fragment SnapshotTitleFragment on SnapshotNode {\n title\n }\n": types.SnapshotTitleFragmentFragmentDoc, "\n fragment SnapshotDetailsFragment on SnapshotNode {\n id\n title\n shared\n created\n creator\n mine\n }\n": types.SnapshotDetailsFragmentFragmentDoc, "\n query ModuleEditModeQuery($slug: String) {\n module(slug: $slug) {\n inEditMode @client\n slug\n }\n }\n": types.ModuleEditModeQueryDocument, + "\n mutation UpdateInstrumentBookmark($input: UpdateInstrumentBookmarkInput!) {\n updateInstrumentBookmark(input: $input) {\n success\n }\n }\n ": types.UpdateInstrumentBookmarkDocument, + "\n mutation UpdateContentBookmark($input: UpdateContentBookmarkInput!) {\n updateContentBookmark(input: $input) {\n success\n }\n }\n ": types.UpdateContentBookmarkDocument, "\n query ChapterQuery($id: ID!) {\n chapter(id: $id) {\n path\n }\n }\n ": types.ChapterQueryDocument, "\n query ContentBlockQuery($id: ID!) {\n contentBlock(id: $id) {\n path\n }\n }\n ": types.ContentBlockQueryDocument, "\n query MeLanguage {\n me {\n language @client\n }\n }\n ": types.MeLanguageDocument, @@ -89,6 +91,14 @@ export function graphql(source: "\n fragment SnapshotDetailsFragment on Snapsho * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function graphql(source: "\n query ModuleEditModeQuery($slug: String) {\n module(slug: $slug) {\n inEditMode @client\n slug\n }\n }\n"): (typeof documents)["\n query ModuleEditModeQuery($slug: String) {\n module(slug: $slug) {\n inEditMode @client\n slug\n }\n }\n"]; +/** + * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function graphql(source: "\n mutation UpdateInstrumentBookmark($input: UpdateInstrumentBookmarkInput!) {\n updateInstrumentBookmark(input: $input) {\n success\n }\n }\n "): (typeof documents)["\n mutation UpdateInstrumentBookmark($input: UpdateInstrumentBookmarkInput!) {\n updateInstrumentBookmark(input: $input) {\n success\n }\n }\n "]; +/** + * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function graphql(source: "\n mutation UpdateContentBookmark($input: UpdateContentBookmarkInput!) {\n updateContentBookmark(input: $input) {\n success\n }\n }\n "): (typeof documents)["\n mutation UpdateContentBookmark($input: UpdateContentBookmarkInput!) {\n updateContentBookmark(input: $input) {\n success\n }\n }\n "]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/client/src/__generated__/graphql.ts b/client/src/__generated__/graphql.ts index 3e13c9b4..db2c9688 100644 --- a/client/src/__generated__/graphql.ts +++ b/client/src/__generated__/graphql.ts @@ -9,36 +9,36 @@ export type MakeEmpty = export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: { input: string; output: string }; - String: { input: string; output: string }; - Boolean: { input: boolean; output: boolean }; - Int: { input: number; output: number }; - Float: { input: number; output: number }; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } /** * The `Date` scalar type represents a Date * value as specified by * [iso8601](https://en.wikipedia.org/wiki/ISO_8601). */ - Date: { input: any; output: any }; + Date: { input: any; output: any; } /** * The `DateTime` scalar type represents a DateTime * value as specified by * [iso8601](https://en.wikipedia.org/wiki/ISO_8601). */ - DateTime: { input: any; output: any }; - GenericStreamFieldType: { input: any; output: any }; + DateTime: { input: any; output: any; } + GenericStreamFieldType: { input: any; output: any; } /** * Allows use of a JSON String for input / output from the GraphQL schema. * * Use of this type is *not recommended* as you lose the benefits of having a defined, static * schema (one of the key benefits of GraphQL). */ - JSONString: { input: any; output: any }; + JSONString: { input: any; output: any; } /** * Leverages the internal Python implementation of UUID (uuid.UUID) to provide native UUID objects * in fields, resolvers and input. */ - UUID: { input: any; output: any }; + UUID: { input: any; output: any; } }; export type AddCommentInput = { @@ -279,7 +279,7 @@ export enum BooksModuleCategoryFilterAttributeTypeChoices { /** All */ All = 'ALL', /** Exact */ - Exact = 'EXACT', + Exact = 'EXACT' } /** An enumeration. */ @@ -287,7 +287,7 @@ export enum BooksModuleLevelFilterAttributeTypeChoices { /** All */ All = 'ALL', /** Exact */ - Exact = 'EXACT', + Exact = 'EXACT' } export type ChapterBookmarkNode = Node & { @@ -321,21 +321,20 @@ export type ChapterInterface = { title?: Maybe; }; -export type ChapterNode = ChapterInterface & - Node & { - __typename?: 'ChapterNode'; - bookmark?: Maybe; - contentBlocks?: Maybe>>; - description?: Maybe; - descriptionHiddenFor?: Maybe>>; - /** The ID of the object */ - id: Scalars['ID']['output']; - path?: Maybe; - /** Der Name der Seite, wie er in URLs angezeigt werden soll, z.B. http://domain.com/blog/[my-slug]/ */ - slug: Scalars['String']['output']; - title?: Maybe; - titleHiddenFor?: Maybe>>; - }; +export type ChapterNode = ChapterInterface & Node & { + __typename?: 'ChapterNode'; + bookmark?: Maybe; + contentBlocks?: Maybe>>; + description?: Maybe; + descriptionHiddenFor?: Maybe>>; + /** The ID of the object */ + id: Scalars['ID']['output']; + path?: Maybe; + /** Der Name der Seite, wie er in URLs angezeigt werden soll, z.B. http://domain.com/blog/[my-slug]/ */ + slug: Scalars['String']['output']; + title?: Maybe; + titleHiddenFor?: Maybe>>; +}; export type ChapterNodeConnection = { __typename?: 'ChapterNodeConnection'; @@ -418,25 +417,25 @@ export type ContentBlockInterface = { type: Scalars['String']['output']; }; -export type ContentBlockNode = ContentBlockInterface & - Node & { - __typename?: 'ContentBlockNode'; - bookmarks?: Maybe>>; - contents?: Maybe; - hiddenFor?: Maybe>>; - /** The ID of the object */ - id: Scalars['ID']['output']; - instrumentCategory?: Maybe; - mine?: Maybe; - originalCreator?: Maybe; - path?: Maybe; - /** Der Name der Seite, wie er in URLs angezeigt werden soll, z.B. http://domain.com/blog/[my-slug]/ */ - slug: Scalars['String']['output']; - title?: Maybe; - type: Scalars['String']['output']; - userCreated: Scalars['Boolean']['output']; - visibleFor?: Maybe>>; - }; +export type ContentBlockNode = ContentBlockInterface & Node & { + __typename?: 'ContentBlockNode'; + bookmarks?: Maybe>>; + contents?: Maybe; + hiddenFor?: Maybe>>; + highlights?: Maybe>>; + /** The ID of the object */ + id: Scalars['ID']['output']; + instrumentCategory?: Maybe; + mine?: Maybe; + originalCreator?: Maybe; + path?: Maybe; + /** Der Name der Seite, wie er in URLs angezeigt werden soll, z.B. http://domain.com/blog/[my-slug]/ */ + slug: Scalars['String']['output']; + title?: Maybe; + type: Scalars['String']['output']; + userCreated: Scalars['Boolean']['output']; + visibleFor?: Maybe>>; +}; export type ContentBlockNodeConnection = { __typename?: 'ContentBlockNodeConnection'; @@ -691,6 +690,21 @@ export type FieldError = { code?: Maybe; }; +export type HighlightNode = Node & { + __typename?: 'HighlightNode'; + color: Scalars['String']['output']; + contentBlock: ContentBlockNode; + contentIndex: Scalars['Int']['output']; + contentUuid: Scalars['UUID']['output']; + /** The ID of the object */ + id: Scalars['ID']['output']; + paragraphIndex: Scalars['Int']['output']; + selectionLength: Scalars['Int']['output']; + startPosition: Scalars['Int']['output']; + text: Scalars['String']['output']; + user: PrivateUserNode; +}; + export enum InputTypes { Assignment = 'assignment', ContentListItem = 'content_list_item', @@ -701,7 +715,7 @@ export enum InputTypes { Readonly = 'readonly', Subtitle = 'subtitle', TextBlock = 'text_block', - VideoBlock = 'video_block', + VideoBlock = 'video_block' } export type InstrumentBookmarkNode = Node & { @@ -823,6 +837,7 @@ export type ModuleCategoryNode = Node & { order: Scalars['Int']['output']; }; + export type ModuleCategoryNodeModuleSetArgs = { after?: InputMaybe; before?: InputMaybe; @@ -874,6 +889,7 @@ export type ModuleLevelNode = Node & { order: Scalars['Int']['output']; }; + export type ModuleLevelNodeModuleSetArgs = { after?: InputMaybe; before?: InputMaybe; @@ -921,6 +937,7 @@ export type ModuleNode = ModuleInterface & { topic?: Maybe; }; + export type ModuleNodeMyAnswersArgs = { after?: InputMaybe; before?: InputMaybe; @@ -929,6 +946,7 @@ export type ModuleNodeMyAnswersArgs = { offset?: InputMaybe; }; + export type ModuleNodeMyChapterBookmarksArgs = { after?: InputMaybe; before?: InputMaybe; @@ -937,6 +955,7 @@ export type ModuleNodeMyChapterBookmarksArgs = { offset?: InputMaybe; }; + export type ModuleNodeMyContentBookmarksArgs = { after?: InputMaybe; before?: InputMaybe; @@ -945,6 +964,7 @@ export type ModuleNodeMyContentBookmarksArgs = { offset?: InputMaybe; }; + export type ModuleNodeMySubmissionsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1047,230 +1067,287 @@ export type Mutation = { updateTeam?: Maybe; }; + export type MutationAddCommentArgs = { input: AddCommentInput; }; + export type MutationAddContentBlockArgs = { input: AddContentBlockInput; }; + export type MutationAddModuleRoomEntryArgs = { input: AddModuleRoomEntryInput; }; + export type MutationAddNoteArgs = { input: AddNoteInput; }; + export type MutationAddObjectiveArgs = { input: AddObjectiveInput; }; + export type MutationAddProjectArgs = { input: AddProjectInput; }; + export type MutationAddProjectEntryArgs = { input: AddProjectEntryInput; }; + export type MutationAddRemoveMemberArgs = { input: AddRemoveMemberInput; }; + export type MutationAddRoomArgs = { input: AddRoomInput; }; + export type MutationAddRoomEntryArgs = { input: AddRoomEntryInput; }; + export type MutationApplySnapshotArgs = { input: ApplySnapshotInput; }; + export type MutationCouponArgs = { input: CouponInput; }; + export type MutationCreateSchoolClassArgs = { input: CreateSchoolClassInput; }; + export type MutationCreateSnapshotArgs = { input: CreateSnapshotInput; }; + export type MutationCreateTeamArgs = { input: CreateTeamInput; }; + export type MutationDeleteContentBlockArgs = { input: DeleteContentBlockInput; }; + export type MutationDeleteObjectiveArgs = { input: DeleteObjectiveInput; }; + export type MutationDeleteProjectArgs = { input: DeleteProjectInput; }; + export type MutationDeleteProjectEntryArgs = { input: DeleteProjectEntryInput; }; + export type MutationDeleteRoomArgs = { input: DeleteRoomInput; }; + export type MutationDeleteRoomEntryArgs = { input: DeleteRoomEntryInput; }; + export type MutationDeleteSnapshotArgs = { input: DeleteSnapshotInput; }; + export type MutationDuplicateContentBlockArgs = { input: DuplicateContentBlockInput; }; + export type MutationJoinClassArgs = { input: JoinClassInput; }; + export type MutationJoinTeamArgs = { input: JoinTeamInput; }; + export type MutationMutateContentBlockArgs = { input: MutateContentBlockInput; }; + export type MutationSetLanguageArgs = { language: Scalars['String']['input']; }; + export type MutationShareSnapshotArgs = { input: ShareSnapshotInput; }; + export type MutationSpellCheckArgs = { input: SpellCheckInput; }; + export type MutationSyncModuleVisibilityArgs = { input: SyncModuleVisibilityInput; }; + export type MutationUpdateAnswerArgs = { input: UpdateAnswerInput; }; + export type MutationUpdateAssignmentArgs = { input: UpdateAssignmentInput; }; + export type MutationUpdateAvatarArgs = { input: UpdateAvatarInput; }; + export type MutationUpdateChapterBookmarkArgs = { input: UpdateChapterBookmarkInput; }; + export type MutationUpdateChapterVisibilityArgs = { input: UpdateChapterVisibilityInput; }; + export type MutationUpdateContentBookmarkArgs = { input: UpdateContentBookmarkInput; }; + export type MutationUpdateInstrumentBookmarkArgs = { input: UpdateInstrumentBookmarkInput; }; + export type MutationUpdateLastModuleArgs = { input: UpdateLastModuleInput; }; + export type MutationUpdateLastModuleLevelArgs = { input: UpdateLastModuleLevelInput; }; + export type MutationUpdateLastTopicArgs = { input: UpdateLastTopicInput; }; + export type MutationUpdateModuleBookmarkArgs = { input: UpdateModuleBookmarkInput; }; + export type MutationUpdateNoteArgs = { input: UpdateNoteInput; }; + export type MutationUpdateObjectiveGroupVisibilityArgs = { input: UpdateObjectiveGroupVisibilityInput; }; + export type MutationUpdateObjectiveVisibilityArgs = { input: UpdateObjectiveVisibilityInput; }; + export type MutationUpdatePasswordArgs = { input: UpdatePasswordInput; }; + export type MutationUpdateProjectArgs = { input: UpdateProjectInput; }; + export type MutationUpdateProjectEntryArgs = { input: UpdateProjectEntryInput; }; + export type MutationUpdateProjectSharedStateArgs = { input: UpdateProjectSharedStateInput; }; + export type MutationUpdateRoomArgs = { input: UpdateRoomInput; }; + export type MutationUpdateRoomEntryArgs = { input: UpdateRoomEntryInput; }; + export type MutationUpdateRoomVisibilityArgs = { input: UpdateRoomVisibilityInput; }; + export type MutationUpdateSchoolClassArgs = { input: UpdateSchoolClassInput; }; + export type MutationUpdateSettingArgs = { input: UpdateSettingInput; }; + export type MutationUpdateSnapshotArgs = { input: UpdateSnapshotInput; }; + export type MutationUpdateSolutionVisibilityArgs = { input: UpdateSolutionVisibilityInput; }; + export type MutationUpdateSubmissionFeedbackArgs = { input: UpdateSubmissionFeedbackInput; }; + export type MutationUpdateTeamArgs = { input: UpdateTeamInput; }; @@ -1362,6 +1439,7 @@ export type ObjectiveNode = Node & { visibleFor?: Maybe>>; }; + export type ObjectiveNodeHiddenForSnapshotsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1394,7 +1472,7 @@ export enum ObjectivesObjectiveGroupTitleChoices { /** Sprache & Kommunikation */ LanguageCommunication = 'LANGUAGE_COMMUNICATION', /** Gesellschaft */ - Society = 'SOCIETY', + Society = 'SOCIETY' } /** The Relay compliant `PageInfo` type, containing data necessary to paginate this connection. */ @@ -1442,6 +1520,7 @@ export type PrivateUserNode = Node & { username: Scalars['String']['output']; }; + export type PrivateUserNodeRecentModulesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1549,6 +1628,7 @@ export type Query = { topics?: Maybe; }; + export type QueryAllRoomEntriesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1558,6 +1638,7 @@ export type QueryAllRoomEntriesArgs = { slug?: InputMaybe; }; + export type QueryAllUsersArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1568,14 +1649,17 @@ export type QueryAllUsersArgs = { username?: InputMaybe; }; + export type QueryAssignmentArgs = { id: Scalars['ID']['input']; }; + export type QueryChapterArgs = { id: Scalars['ID']['input']; }; + export type QueryChaptersArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1586,33 +1670,40 @@ export type QueryChaptersArgs = { title?: InputMaybe; }; + export type QueryContentBlockArgs = { id: Scalars['ID']['input']; }; + export type QueryInstrumentArgs = { id?: InputMaybe; slug?: InputMaybe; }; + export type QueryModuleArgs = { id?: InputMaybe; slug?: InputMaybe; }; + export type QueryModuleCategoryArgs = { id: Scalars['ID']['input']; }; + export type QueryModuleLevelArgs = { id: Scalars['ID']['input']; }; + export type QueryModuleRoomArgs = { classId?: InputMaybe; slug?: InputMaybe; }; + export type QueryModulesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1620,6 +1711,7 @@ export type QueryModulesArgs = { last?: InputMaybe; }; + export type QueryMyActivityArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1634,6 +1726,7 @@ export type QueryMyActivityArgs = { title_In?: InputMaybe>>; }; + export type QueryMyInstrumentActivityArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1643,14 +1736,17 @@ export type QueryMyInstrumentActivityArgs = { slug?: InputMaybe; }; + export type QueryNodeArgs = { id: Scalars['ID']['input']; }; + export type QueryObjectiveGroupArgs = { id: Scalars['ID']['input']; }; + export type QueryObjectiveGroupsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1661,34 +1757,41 @@ export type QueryObjectiveGroupsArgs = { title?: InputMaybe; }; + export type QueryProjectArgs = { id?: InputMaybe; slug?: InputMaybe; }; + export type QueryRoomArgs = { appearance?: InputMaybe; id?: InputMaybe; slug?: InputMaybe; }; + export type QueryRoomEntryArgs = { id?: InputMaybe; slug?: InputMaybe; }; + export type QuerySnapshotArgs = { id: Scalars['ID']['input']; }; + export type QueryStudentSubmissionArgs = { id: Scalars['ID']['input']; }; + export type QuerySurveyArgs = { id?: InputMaybe; }; + export type QuerySurveysArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1697,10 +1800,12 @@ export type QuerySurveysArgs = { offset?: InputMaybe; }; + export type QueryTopicArgs = { slug?: InputMaybe; }; + export type QueryTopicsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1757,6 +1862,7 @@ export type RoomNode = Node & { userCreated: Scalars['Boolean']['output']; }; + export type RoomNodeRoomEntriesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1803,28 +1909,26 @@ export type SnapshotChangesNode = { newObjectives: Scalars['Int']['output']; }; -export type SnapshotChapterNode = ChapterInterface & - Node & { - __typename?: 'SnapshotChapterNode'; - contentBlocks?: Maybe>>; - description?: Maybe; - descriptionHidden?: Maybe; - /** The ID of the object */ - id: Scalars['ID']['output']; - title?: Maybe; - titleHidden?: Maybe; - }; +export type SnapshotChapterNode = ChapterInterface & Node & { + __typename?: 'SnapshotChapterNode'; + contentBlocks?: Maybe>>; + description?: Maybe; + descriptionHidden?: Maybe; + /** The ID of the object */ + id: Scalars['ID']['output']; + title?: Maybe; + titleHidden?: Maybe; +}; -export type SnapshotContentBlockNode = ContentBlockInterface & - Node & { - __typename?: 'SnapshotContentBlockNode'; - contents?: Maybe; - hidden?: Maybe; - /** The ID of the object */ - id: Scalars['ID']['output']; - title?: Maybe; - type: Scalars['String']['output']; - }; +export type SnapshotContentBlockNode = ContentBlockInterface & Node & { + __typename?: 'SnapshotContentBlockNode'; + contents?: Maybe; + hidden?: Maybe; + /** The ID of the object */ + id: Scalars['ID']['output']; + title?: Maybe; + type: Scalars['String']['output']; +}; export type SnapshotNode = Node & { __typename?: 'SnapshotNode'; @@ -1845,6 +1949,7 @@ export type SnapshotNode = Node & { title?: Maybe; }; + export type SnapshotNodeHiddenContentBlocksArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1855,6 +1960,7 @@ export type SnapshotNodeHiddenContentBlocksArgs = { title?: InputMaybe; }; + export type SnapshotNodeHiddenObjectivesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1993,6 +2099,7 @@ export type SurveyNode = Node & { title: Scalars['String']['output']; }; + export type SurveyNodeAnswersArgs = { after?: InputMaybe; before?: InputMaybe; @@ -2079,6 +2186,7 @@ export type TopicNode = Node & { vimeoId?: Maybe; }; + export type TopicNodeModulesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -2487,767 +2595,128 @@ export type UserGroupBlockVisibility = { schoolClassId: Scalars['ID']['input']; }; -export type LanguageQueryQueryVariables = Exact<{ [key: string]: never }>; +export type LanguageQueryQueryVariables = Exact<{ [key: string]: never; }>; -export type LanguageQueryQuery = { - __typename?: 'Query'; - me?: { __typename?: 'PrivateUserNode'; language?: string | null } | null; -}; + +export type LanguageQueryQuery = { __typename?: 'Query', me?: { __typename?: 'PrivateUserNode', language?: string | null } | null }; export type SetLanguageMutationVariables = Exact<{ language: Scalars['String']['input']; }>; -export type SetLanguageMutation = { - __typename?: 'Mutation'; - setLanguage?: { __typename?: 'PrivateUserNode'; language?: string | null } | null; -}; -export type ReadOnlyQueryQueryVariables = Exact<{ [key: string]: never }>; +export type SetLanguageMutation = { __typename?: 'Mutation', setLanguage?: { __typename?: 'PrivateUserNode', language?: string | null } | null }; -export type ReadOnlyQueryQuery = { - __typename?: 'Query'; - me?: { - __typename?: 'PrivateUserNode'; - readOnly?: boolean | null; - selectedClass?: { __typename?: 'SchoolClassNode'; readOnly?: boolean | null } | null; - } | null; -}; +export type ReadOnlyQueryQueryVariables = Exact<{ [key: string]: never; }>; -export type ModuleLevelFragmentFragment = { - __typename?: 'ModuleLevelNode'; - name: string; - id: string; - filterAttributeType: BooksModuleLevelFilterAttributeTypeChoices; -} & { ' $fragmentName'?: 'ModuleLevelFragmentFragment' }; -export type ModuleFilterQueryQueryVariables = Exact<{ [key: string]: never }>; +export type ReadOnlyQueryQuery = { __typename?: 'Query', me?: { __typename?: 'PrivateUserNode', readOnly?: boolean | null, selectedClass?: { __typename?: 'SchoolClassNode', readOnly?: boolean | null } | null } | null }; -export type ModuleFilterQueryQuery = { - __typename?: 'Query'; - moduleLevels?: Array< - | ({ __typename?: 'ModuleLevelNode' } & { - ' $fragmentRefs'?: { ModuleLevelFragmentFragment: ModuleLevelFragmentFragment }; - }) - | null - > | null; - moduleCategories?: Array<{ - __typename?: 'ModuleCategoryNode'; - name: string; - id: string; - filterAttributeType: BooksModuleCategoryFilterAttributeTypeChoices; - } | null> | null; - me?: { __typename?: 'PrivateUserNode'; language?: string | null } | null; -}; +export type ModuleLevelFragmentFragment = { __typename?: 'ModuleLevelNode', name: string, id: string, filterAttributeType: BooksModuleLevelFilterAttributeTypeChoices } & { ' $fragmentName'?: 'ModuleLevelFragmentFragment' }; + +export type ModuleFilterQueryQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ModuleFilterQueryQuery = { __typename?: 'Query', moduleLevels?: Array<( + { __typename?: 'ModuleLevelNode' } + & { ' $fragmentRefs'?: { 'ModuleLevelFragmentFragment': ModuleLevelFragmentFragment } } + ) | null> | null, moduleCategories?: Array<{ __typename?: 'ModuleCategoryNode', name: string, id: string, filterAttributeType: BooksModuleCategoryFilterAttributeTypeChoices } | null> | null, me?: { __typename?: 'PrivateUserNode', language?: string | null } | null }; export type UpdateLastModuleLevelMutationMutationVariables = Exact<{ input: UpdateLastModuleLevelInput; }>; -export type UpdateLastModuleLevelMutationMutation = { - __typename?: 'Mutation'; - updateLastModuleLevel?: { - __typename?: 'UpdateLastModuleLevelPayload'; - clientMutationId?: string | null; - user?: { - __typename?: 'PrivateUserNode'; - username: string; - id: string; - lastModuleLevel?: - | ({ __typename?: 'ModuleLevelNode' } & { - ' $fragmentRefs'?: { ModuleLevelFragmentFragment: ModuleLevelFragmentFragment }; - }) - | null; - } | null; - } | null; -}; + +export type UpdateLastModuleLevelMutationMutation = { __typename?: 'Mutation', updateLastModuleLevel?: { __typename?: 'UpdateLastModuleLevelPayload', clientMutationId?: string | null, user?: { __typename?: 'PrivateUserNode', username: string, id: string, lastModuleLevel?: ( + { __typename?: 'ModuleLevelNode' } + & { ' $fragmentRefs'?: { 'ModuleLevelFragmentFragment': ModuleLevelFragmentFragment } } + ) | null } | null } | null }; export type ModuleTitleQueryQueryVariables = Exact<{ slug?: InputMaybe; }>; -export type ModuleTitleQueryQuery = { - __typename?: 'Query'; - module?: { __typename?: 'ModuleNode'; title: string } | null; -}; -export type SnapshotListItemFragment = { __typename?: 'SnapshotNode'; shared: boolean } & { - ' $fragmentName'?: 'SnapshotListItemFragment'; -}; +export type ModuleTitleQueryQuery = { __typename?: 'Query', module?: { __typename?: 'ModuleNode', title: string } | null }; -export type SnapshotTitleFragmentFragment = { __typename?: 'SnapshotNode'; title?: string | null } & { - ' $fragmentName'?: 'SnapshotTitleFragmentFragment'; -}; +export type SnapshotListItemFragment = { __typename?: 'SnapshotNode', shared: boolean } & { ' $fragmentName'?: 'SnapshotListItemFragment' }; -export type SnapshotDetailsFragmentFragment = { - __typename?: 'SnapshotNode'; - id: string; - title?: string | null; - shared: boolean; - created: any; - creator: string; - mine?: boolean | null; -} & { ' $fragmentName'?: 'SnapshotDetailsFragmentFragment' }; +export type SnapshotTitleFragmentFragment = { __typename?: 'SnapshotNode', title?: string | null } & { ' $fragmentName'?: 'SnapshotTitleFragmentFragment' }; + +export type SnapshotDetailsFragmentFragment = { __typename?: 'SnapshotNode', id: string, title?: string | null, shared: boolean, created: any, creator: string, mine?: boolean | null } & { ' $fragmentName'?: 'SnapshotDetailsFragmentFragment' }; export type ModuleEditModeQueryQueryVariables = Exact<{ slug?: InputMaybe; }>; -export type ModuleEditModeQueryQuery = { - __typename?: 'Query'; - module?: { __typename?: 'ModuleNode'; inEditMode: boolean; slug: string } | null; -}; + +export type ModuleEditModeQueryQuery = { __typename?: 'Query', module?: { __typename?: 'ModuleNode', inEditMode: boolean, slug: string } | null }; + +export type UpdateInstrumentBookmarkMutationVariables = Exact<{ + input: UpdateInstrumentBookmarkInput; +}>; + + +export type UpdateInstrumentBookmarkMutation = { __typename?: 'Mutation', updateInstrumentBookmark?: { __typename?: 'UpdateInstrumentBookmarkPayload', success?: boolean | null } | null }; + +export type UpdateContentBookmarkMutationVariables = Exact<{ + input: UpdateContentBookmarkInput; +}>; + + +export type UpdateContentBookmarkMutation = { __typename?: 'Mutation', updateContentBookmark?: { __typename?: 'UpdateContentBookmarkPayload', success?: boolean | null } | null }; export type ChapterQueryQueryVariables = Exact<{ id: Scalars['ID']['input']; }>; -export type ChapterQueryQuery = { - __typename?: 'Query'; - chapter?: { __typename?: 'ChapterNode'; path?: string | null } | null; -}; + +export type ChapterQueryQuery = { __typename?: 'Query', chapter?: { __typename?: 'ChapterNode', path?: string | null } | null }; export type ContentBlockQueryQueryVariables = Exact<{ id: Scalars['ID']['input']; }>; -export type ContentBlockQueryQuery = { - __typename?: 'Query'; - contentBlock?: { __typename?: 'ContentBlockNode'; path?: string | null } | null; -}; -export type MeLanguageQueryVariables = Exact<{ [key: string]: never }>; +export type ContentBlockQueryQuery = { __typename?: 'Query', contentBlock?: { __typename?: 'ContentBlockNode', path?: string | null } | null }; -export type MeLanguageQuery = { - __typename?: 'Query'; - me?: { __typename?: 'PrivateUserNode'; language?: string | null } | null; -}; +export type MeLanguageQueryVariables = Exact<{ [key: string]: never; }>; + + +export type MeLanguageQuery = { __typename?: 'Query', me?: { __typename?: 'PrivateUserNode', language?: string | null } | null }; export type ModuleSnapshotsQueryQueryVariables = Exact<{ slug: Scalars['String']['input']; }>; -export type ModuleSnapshotsQueryQuery = { - __typename?: 'Query'; - module?: { - __typename?: 'ModuleNode'; - id: string; - title: string; - metaTitle: string; - slug: string; - topic?: { __typename?: 'TopicNode'; title: string } | null; - snapshots?: Array< - | ({ __typename?: 'SnapshotNode' } & { - ' $fragmentRefs'?: { SnapshotDetailsFragmentFragment: SnapshotDetailsFragmentFragment }; - }) - | null - > | null; - } | null; -}; + +export type ModuleSnapshotsQueryQuery = { __typename?: 'Query', module?: { __typename?: 'ModuleNode', id: string, title: string, metaTitle: string, slug: string, topic?: { __typename?: 'TopicNode', title: string } | null, snapshots?: Array<( + { __typename?: 'SnapshotNode' } + & { ' $fragmentRefs'?: { 'SnapshotDetailsFragmentFragment': SnapshotDetailsFragmentFragment } } + ) | null> | null } | null }; export type ModuleSolutionsQueryVariables = Exact<{ slug?: InputMaybe; }>; -export type ModuleSolutionsQuery = { - __typename?: 'Query'; - module?: { __typename?: 'ModuleNode'; solutionsEnabled?: boolean | null; slug: string } | null; -}; -export const ModuleLevelFragmentFragmentDoc = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ModuleLevelFragment' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ModuleLevelNode' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'filterAttributeType' } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const SnapshotListItemFragmentDoc = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'SnapshotListItem' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'SnapshotNode' } }, - selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'shared' } }] }, - }, - ], -} as unknown as DocumentNode; -export const SnapshotTitleFragmentFragmentDoc = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'SnapshotTitleFragment' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'SnapshotNode' } }, - selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'title' } }] }, - }, - ], -} as unknown as DocumentNode; -export const SnapshotDetailsFragmentFragmentDoc = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'SnapshotDetailsFragment' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'SnapshotNode' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'title' } }, - { kind: 'Field', name: { kind: 'Name', value: 'shared' } }, - { kind: 'Field', name: { kind: 'Name', value: 'created' } }, - { kind: 'Field', name: { kind: 'Name', value: 'creator' } }, - { kind: 'Field', name: { kind: 'Name', value: 'mine' } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const LanguageQueryDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'LanguageQuery' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'me' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'language' }, - directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const SetLanguageDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'SetLanguage' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'language' } }, - type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'setLanguage' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'language' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'language' } }, - }, - ], - directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'Field', name: { kind: 'Name', value: 'language' } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ReadOnlyQueryDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ReadOnlyQuery' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'me' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'readOnly' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'selectedClass' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'Field', name: { kind: 'Name', value: 'readOnly' } }], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ModuleFilterQueryDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ModuleFilterQuery' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'moduleLevels' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'ModuleLevelFragment' } }], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'moduleCategories' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'filterAttributeType' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'me' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'language' }, - directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ModuleLevelFragment' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ModuleLevelNode' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'filterAttributeType' } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UpdateLastModuleLevelMutationDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'UpdateLastModuleLevelMutation' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'input' } }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'UpdateLastModuleLevelInput' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'updateLastModuleLevel' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'input' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'input' } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'clientMutationId' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'user' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'username' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'lastModuleLevel' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ModuleLevelFragment' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ModuleLevelFragment' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ModuleLevelNode' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'filterAttributeType' } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ModuleTitleQueryDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ModuleTitleQuery' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'slug' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'module' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'slug' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'slug' } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'Field', name: { kind: 'Name', value: 'title' } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ModuleEditModeQueryDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ModuleEditModeQuery' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'slug' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'module' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'slug' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'slug' } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'inEditMode' }, - directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], - }, - { kind: 'Field', name: { kind: 'Name', value: 'slug' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ChapterQueryDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ChapterQuery' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, - type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'chapter' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'id' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'Field', name: { kind: 'Name', value: 'path' } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ContentBlockQueryDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ContentBlockQuery' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, - type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'contentBlock' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'id' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'Field', name: { kind: 'Name', value: 'path' } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const MeLanguageDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'MeLanguage' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'me' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'language' }, - directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ModuleSnapshotsQueryDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ModuleSnapshotsQuery' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'slug' } }, - type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'module' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'slug' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'slug' } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'title' } }, - { kind: 'Field', name: { kind: 'Name', value: 'metaTitle' } }, - { kind: 'Field', name: { kind: 'Name', value: 'slug' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'topic' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'Field', name: { kind: 'Name', value: 'title' } }], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'snapshots' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'SnapshotDetailsFragment' } }], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'SnapshotDetailsFragment' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'SnapshotNode' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'title' } }, - { kind: 'Field', name: { kind: 'Name', value: 'shared' } }, - { kind: 'Field', name: { kind: 'Name', value: 'created' } }, - { kind: 'Field', name: { kind: 'Name', value: 'creator' } }, - { kind: 'Field', name: { kind: 'Name', value: 'mine' } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ModuleSolutionsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ModuleSolutions' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'slug' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'module' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'slug' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'slug' } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'solutionsEnabled' } }, - { kind: 'Field', name: { kind: 'Name', value: 'slug' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; +export type ModuleSolutionsQuery = { __typename?: 'Query', module?: { __typename?: 'ModuleNode', solutionsEnabled?: boolean | null, slug: string } | null }; + +export const ModuleLevelFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ModuleLevelFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ModuleLevelNode"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"filterAttributeType"}}]}}]} as unknown as DocumentNode; +export const SnapshotListItemFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SnapshotListItem"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SnapshotNode"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shared"}}]}}]} as unknown as DocumentNode; +export const SnapshotTitleFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SnapshotTitleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SnapshotNode"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"title"}}]}}]} as unknown as DocumentNode; +export const SnapshotDetailsFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SnapshotDetailsFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SnapshotNode"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"shared"}},{"kind":"Field","name":{"kind":"Name","value":"created"}},{"kind":"Field","name":{"kind":"Name","value":"creator"}},{"kind":"Field","name":{"kind":"Name","value":"mine"}}]}}]} as unknown as DocumentNode; +export const LanguageQueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"LanguageQuery"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"language"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"client"}}]}]}}]}}]} as unknown as DocumentNode; +export const SetLanguageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetLanguage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"language"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"setLanguage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"language"},"value":{"kind":"Variable","name":{"kind":"Name","value":"language"}}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"client"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"language"}}]}}]}}]} as unknown as DocumentNode; +export const ReadOnlyQueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ReadOnlyQuery"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"readOnly"}},{"kind":"Field","name":{"kind":"Name","value":"selectedClass"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"readOnly"}}]}}]}}]}}]} as unknown as DocumentNode; +export const ModuleFilterQueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ModuleFilterQuery"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"moduleLevels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ModuleLevelFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"moduleCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"filterAttributeType"}}]}},{"kind":"Field","name":{"kind":"Name","value":"me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"language"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"client"}}]}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ModuleLevelFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ModuleLevelNode"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"filterAttributeType"}}]}}]} as unknown as DocumentNode; +export const UpdateLastModuleLevelMutationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateLastModuleLevelMutation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateLastModuleLevelInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateLastModuleLevel"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"clientMutationId"}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"lastModuleLevel"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ModuleLevelFragment"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ModuleLevelFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ModuleLevelNode"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"filterAttributeType"}}]}}]} as unknown as DocumentNode; +export const ModuleTitleQueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ModuleTitleQuery"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"slug"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"module"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"slug"},"value":{"kind":"Variable","name":{"kind":"Name","value":"slug"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"title"}}]}}]}}]} as unknown as DocumentNode; +export const ModuleEditModeQueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ModuleEditModeQuery"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"slug"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"module"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"slug"},"value":{"kind":"Variable","name":{"kind":"Name","value":"slug"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"inEditMode"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"client"}}]},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}}]}}]} as unknown as DocumentNode; +export const UpdateInstrumentBookmarkDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateInstrumentBookmark"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateInstrumentBookmarkInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateInstrumentBookmark"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode; +export const UpdateContentBookmarkDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateContentBookmark"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateContentBookmarkInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateContentBookmark"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode; +export const ChapterQueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ChapterQuery"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chapter"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"path"}}]}}]}}]} as unknown as DocumentNode; +export const ContentBlockQueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ContentBlockQuery"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contentBlock"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"path"}}]}}]}}]} as unknown as DocumentNode; +export const MeLanguageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MeLanguage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"language"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"client"}}]}]}}]}}]} as unknown as DocumentNode; +export const ModuleSnapshotsQueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ModuleSnapshotsQuery"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"slug"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"module"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"slug"},"value":{"kind":"Variable","name":{"kind":"Name","value":"slug"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"metaTitle"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"topic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"title"}}]}},{"kind":"Field","name":{"kind":"Name","value":"snapshots"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SnapshotDetailsFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SnapshotDetailsFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SnapshotNode"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"shared"}},{"kind":"Field","name":{"kind":"Name","value":"created"}},{"kind":"Field","name":{"kind":"Name","value":"creator"}},{"kind":"Field","name":{"kind":"Name","value":"mine"}}]}}]} as unknown as DocumentNode; +export const ModuleSolutionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ModuleSolutions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"slug"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"module"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"slug"},"value":{"kind":"Variable","name":{"kind":"Name","value":"slug"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"solutionsEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/client/src/components/content-blocks/ContentComponent.vue b/client/src/components/content-blocks/ContentComponent.vue index 6f3d9bcf..f36ea3db 100644 --- a/client/src/components/content-blocks/ContentComponent.vue +++ b/client/src/components/content-blocks/ContentComponent.vue @@ -12,143 +12,223 @@ v-if="showBookmarkActions" @add-note="addNote(component.id)" @edit-note="editNote" - @bookmark="bookmarkContent(component.id, !bookmarked)" - /> - + -