diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e11de7244..c1cd120a9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -12,18 +12,10 @@ updates: directory: 'packages/authorization' schedule: interval: 'weekly' - - package-ecosystem: 'npm' - directory: 'packages/graphql-modules' - schedule: - interval: 'weekly' - package-ecosystem: 'npm' directory: 'packages/server' schedule: interval: 'weekly' - - package-ecosystem: 'npm' - directory: 'packages/types' - schedule: - interval: 'weekly' - package-ecosystem: 'docker' directory: 'packages/server/docker/server' diff --git a/__tests__/schema/entity/checkout-revision.ts b/__tests__/schema/entity/checkout-revision.ts index 7617893da..88097caeb 100644 --- a/__tests__/schema/entity/checkout-revision.ts +++ b/__tests__/schema/entity/checkout-revision.ts @@ -1,4 +1,3 @@ -import { Instance } from '@serlo/api' import gql from 'graphql-tag' import { HttpResponse } from 'msw' @@ -10,6 +9,7 @@ import { } from '../../../__fixtures__' import { getTypenameAndId, nextUuid, given, Client } from '../../__utils__' import { encodeSubjectId } from '~/schema/subject/utils' +import { Instance } from '~/types' const user = { ...baseUser, roles: ['de_reviewer'] } const article = { diff --git a/__tests__/schema/entity/reject-revision.ts b/__tests__/schema/entity/reject-revision.ts index f577f9bb6..748e0395f 100644 --- a/__tests__/schema/entity/reject-revision.ts +++ b/__tests__/schema/entity/reject-revision.ts @@ -1,4 +1,3 @@ -import { Instance } from '@serlo/api' import gql from 'graphql-tag' import { HttpResponse } from 'msw' @@ -10,6 +9,7 @@ import { } from '../../../__fixtures__' import { given, getTypenameAndId, nextUuid, Client } from '../../__utils__' import { encodeSubjectId } from '~/schema/subject/utils' +import { Instance } from '~/types' const user = { ...baseUser, roles: ['de_reviewer'] } const article = { diff --git a/__tests__/schema/metadata.ts b/__tests__/schema/metadata.ts index c3f4560f7..26d7f1442 100644 --- a/__tests__/schema/metadata.ts +++ b/__tests__/schema/metadata.ts @@ -1,7 +1,7 @@ -import { Instance } from '@serlo/api' import gql from 'graphql-tag' import { Client, given } from '../__utils__' +import { Instance } from '~/types' test('endpoint `publisher` returns publisher', async () => { await new Client() diff --git a/__tests__/schema/page/checkout-revision.ts b/__tests__/schema/page/checkout-revision.ts index 85563c446..caa5fddb6 100644 --- a/__tests__/schema/page/checkout-revision.ts +++ b/__tests__/schema/page/checkout-revision.ts @@ -1,4 +1,3 @@ -import { Instance } from '@serlo/api' import gql from 'graphql-tag' import { HttpResponse } from 'msw' @@ -8,6 +7,7 @@ import { user as baseUser, } from '../../../__fixtures__' import { given, nextUuid, Client } from '../../__utils__' +import { Instance } from '~/types' const user = { ...baseUser, roles: ['de_static_pages_builder'] } const page = { diff --git a/__tests__/schema/page/reject-revision.ts b/__tests__/schema/page/reject-revision.ts index fec05ecf3..19f796d53 100644 --- a/__tests__/schema/page/reject-revision.ts +++ b/__tests__/schema/page/reject-revision.ts @@ -1,4 +1,3 @@ -import { Instance } from '@serlo/api' import gql from 'graphql-tag' import { HttpResponse } from 'msw' @@ -8,6 +7,7 @@ import { user as baseUser, } from '../../../__fixtures__' import { given, nextUuid, Client } from '../../__utils__' +import { Instance } from '~/types' const user = { ...baseUser, roles: ['de_static_pages_builder'] } const page = { diff --git a/packages/graphql-modules/index.d.ts b/packages/graphql-modules/index.d.ts deleted file mode 100644 index d43dc0a55..000000000 --- a/packages/graphql-modules/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -declare module '*.graphql' { - import { DocumentNode } from 'graphql' - - const node: DocumentNode - // eslint-disable-next-line import/no-default-export - export default node -} diff --git a/packages/graphql-modules/package.json b/packages/graphql-modules/package.json deleted file mode 100644 index 54cb0a827..000000000 --- a/packages/graphql-modules/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "@types/graphql-modules", - "version": "0.59.0", - "private": true, - "repository": "serlo/api.serlo.org", - "license": "Apache-2.0", - "author": "Serlo Education e.V.", - "typings": "index.d.ts" -} diff --git a/packages/server/docker/server/Dockerfile b/packages/server/docker/server/Dockerfile index 546da9cc1..df831a22f 100644 --- a/packages/server/docker/server/Dockerfile +++ b/packages/server/docker/server/Dockerfile @@ -6,9 +6,7 @@ COPY scripts/build.ts scripts/build.ts COPY tsconfig.json . COPY tsconfig.prod.json . COPY packages/authorization/package.json packages/authorization/package.json -COPY packages/graphql-modules/package.json packages/graphql-modules/package.json COPY packages/server/package.json packages/server/package.json -COPY packages/types/package.json packages/types/package.json COPY package.json . COPY lerna.json . COPY yarn.lock . @@ -17,8 +15,6 @@ FROM base as build_dist RUN yarn --immutable --immutable-cache --silent COPY packages/authorization packages/authorization COPY packages/server packages/server -COPY packages/graphql-modules packages/graphql-modules -COPY packages/types packages/types RUN yarn build:server FROM base as build_node_modules diff --git a/packages/server/docker/swr-queue-worker/Dockerfile b/packages/server/docker/swr-queue-worker/Dockerfile index 0d933f094..35ee7e64b 100644 --- a/packages/server/docker/swr-queue-worker/Dockerfile +++ b/packages/server/docker/swr-queue-worker/Dockerfile @@ -6,9 +6,7 @@ COPY scripts/build.ts scripts/build.ts COPY tsconfig.json . COPY tsconfig.prod.json . COPY packages/authorization/package.json packages/authorization/package.json -COPY packages/graphql-modules/package.json packages/graphql-modules/package.json COPY packages/server/package.json packages/server/package.json -COPY packages/types/package.json packages/types/package.json COPY package.json . COPY lerna.json . COPY yarn.lock . @@ -17,8 +15,6 @@ FROM base as build_dist RUN yarn --immutable --immutable-cache --silent COPY packages/authorization packages/authorization COPY packages/server packages/server -COPY packages/graphql-modules packages/graphql-modules -COPY packages/types packages/types RUN yarn build:swr-queue-worker FROM base as build_node_modules diff --git a/packages/server/package.json b/packages/server/package.json index 80587771c..3b8040b38 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -35,7 +35,6 @@ "@serlo/authorization": "^0.59.1", "@types/basic-auth": "^1.1.6", "@types/bull-arena": "^3.0.10", - "@types/graphql-modules": "^0.59.0", "@types/jsonwebtoken": "^9.0.5", "@types/pg": "^8.10.9", "@types/ramda": "^0.29.9", diff --git a/packages/server/src/typings.d.ts b/packages/server/src/typings.d.ts index 7377861da..732b16ef6 100644 --- a/packages/server/src/typings.d.ts +++ b/packages/server/src/typings.d.ts @@ -8,3 +8,11 @@ declare module '*.json' { export const version: string } + +declare module '*.graphql' { + import { DocumentNode } from 'graphql' + + const node: DocumentNode + // eslint-disable-next-line import/no-default-export + export default node +} diff --git a/packages/types/codegen.yml b/packages/types/codegen.yml deleted file mode 100644 index 484d8b512..000000000 --- a/packages/types/codegen.yml +++ /dev/null @@ -1,11 +0,0 @@ -overwrite: true -schema: ../server/src/**/*.graphql -generates: - src/index.ts: - plugins: - - typescript - config: - scalars: - DateTime: string - JSON: unknown - JSONObject: 'Record' diff --git a/packages/types/package.json b/packages/types/package.json deleted file mode 100644 index f3af999ac..000000000 --- a/packages/types/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "@serlo/api", - "version": "0.59.0", - "repository": "serlo/api.serlo.org", - "license": "Apache-2.0", - "author": "Serlo Education e.V.", - "main": "dist/index.js", - "module": "dist/api.esm.js", - "typings": "dist/index.d.ts", - "scripts": { - "build": "tsdx build --tsconfig tsconfig.prod.json", - "codegen": "graphql-codegen --config codegen.yml" - }, - "devDependencies": { - "@graphql-codegen/add": "^5.0.0", - "@graphql-codegen/cli": "^5.0.0", - "@graphql-codegen/typescript": "^4.0.1", - "graphql": "^16.8.1" - }, - "publishConfig": { - "access": "public" - } -} diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts deleted file mode 100644 index 4f4e2201f..000000000 --- a/packages/types/src/index.ts +++ /dev/null @@ -1,2813 +0,0 @@ -export type Maybe = T | null; -export type InputMaybe = Maybe; -export type Exact = { [K in keyof T]: T[K] }; -export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; -export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; -export type MakeEmpty = { [_ in K]?: never }; -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; } - DateTime: { input: string; output: string; } - JSON: { input: unknown; output: unknown; } - JSONObject: { input: Record; output: Record; } -}; - -export type AbstractEntity = { - alias: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - instance: Instance; - license: License; - subject?: Maybe; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type AbstractEntityEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - -export type AbstractEntityConnection = { - __typename?: 'AbstractEntityConnection'; - edges: Array; - nodes: Array; - pageInfo: HasNextPageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type AbstractEntityCursor = { - __typename?: 'AbstractEntityCursor'; - cursor: Scalars['String']['output']; - node: AbstractEntity; -}; - -export type AbstractEntityRevision = { - author: User; - changes: Scalars['String']['output']; - content: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type AbstractEntityRevisionEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - -export type AbstractExercise = { - alias: Scalars['String']['output']; - currentRevision?: Maybe; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - instance: Instance; - license: License; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type AbstractExerciseEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - -export type AbstractExerciseRevision = { - alias: Scalars['String']['output']; - author: User; - changes: Scalars['String']['output']; - content: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type AbstractExerciseRevisionEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - -export type AbstractNotificationEvent = { - actor: User; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; -}; - -export type AbstractNotificationEventConnection = { - __typename?: 'AbstractNotificationEventConnection'; - edges: Array; - nodes: Array; - pageInfo: HasNextPageInfo; -}; - -export type AbstractNotificationEventEdge = { - __typename?: 'AbstractNotificationEventEdge'; - cursor: Scalars['String']['output']; - node: AbstractNotificationEvent; -}; - -export type AbstractRepository = { - alias: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - instance: Instance; - license: License; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type AbstractRepositoryEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type AbstractRepositoryThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type AbstractRevision = { - alias: Scalars['String']['output']; - author: User; - content: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type AbstractRevisionEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type AbstractRevisionThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type AbstractTaxonomyTermChild = { - alias: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - instance: Instance; - license: License; - taxonomyTerms: TaxonomyTermConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type AbstractTaxonomyTermChildEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type AbstractTaxonomyTermChildTaxonomyTermsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - -export type AbstractUuid = { - alias: Scalars['String']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type AbstractUuidEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - -export type AbstractUuidConnection = { - __typename?: 'AbstractUuidConnection'; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type AddRevisionResponse = { - __typename?: 'AddRevisionResponse'; - query: Query; - revisionId?: Maybe; - success: Scalars['Boolean']['output']; -}; - -export type AiQuery = { - __typename?: 'AiQuery'; - executePrompt: ExecutePromptResponse; -}; - - -export type AiQueryExecutePromptArgs = { - messages: Array; -}; - -export type AliasInput = { - instance: Instance; - path: Scalars['String']['input']; -}; - -export type AllThreadsConnection = { - __typename?: 'AllThreadsConnection'; - edges: Array; - nodes: Array; - pageInfo: HasNextPageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type Applet = AbstractEntity & AbstractRepository & AbstractTaxonomyTermChild & AbstractUuid & InstanceAware & ThreadAware & { - __typename?: 'Applet'; - alias: Scalars['String']['output']; - currentRevision?: Maybe; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - instance: Instance; - license: License; - revisions: AppletRevisionConnection; - subject?: Maybe; - taxonomyTerms: TaxonomyTermConnection; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type AppletEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type AppletRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - unrevised?: InputMaybe; -}; - - -export type AppletTaxonomyTermsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -export type AppletThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type AppletRevision = AbstractEntityRevision & AbstractRevision & AbstractUuid & ThreadAware & { - __typename?: 'AppletRevision'; - alias: Scalars['String']['output']; - author: User; - changes: Scalars['String']['output']; - content: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - metaDescription: Scalars['String']['output']; - metaTitle: Scalars['String']['output']; - repository: Applet; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; - url: Scalars['String']['output']; -}; - - -export type AppletRevisionEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type AppletRevisionThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type AppletRevisionConnection = { - __typename?: 'AppletRevisionConnection'; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type Article = AbstractEntity & AbstractRepository & AbstractTaxonomyTermChild & AbstractUuid & InstanceAware & ThreadAware & { - __typename?: 'Article'; - alias: Scalars['String']['output']; - currentRevision?: Maybe; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - instance: Instance; - license: License; - revisions: ArticleRevisionConnection; - subject?: Maybe; - taxonomyTerms: TaxonomyTermConnection; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type ArticleEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type ArticleRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - unrevised?: InputMaybe; -}; - - -export type ArticleTaxonomyTermsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -export type ArticleThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type ArticleRevision = AbstractEntityRevision & AbstractRevision & AbstractUuid & ThreadAware & { - __typename?: 'ArticleRevision'; - alias: Scalars['String']['output']; - author: User; - changes: Scalars['String']['output']; - content: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - metaDescription: Scalars['String']['output']; - metaTitle: Scalars['String']['output']; - repository: Article; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type ArticleRevisionEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type ArticleRevisionThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type ArticleRevisionConnection = { - __typename?: 'ArticleRevisionConnection'; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type CacheRemoveInput = { - keys: Array; -}; - -export type CacheRemoveResponse = { - __typename?: 'CacheRemoveResponse'; - query: Query; - success: Scalars['Boolean']['output']; -}; - -export type CacheSetInput = { - key: Scalars['String']['input']; - value: Scalars['JSON']['input']; -}; - -export type CacheSetResponse = { - __typename?: 'CacheSetResponse'; - query: Query; - success: Scalars['Boolean']['output']; -}; - -export type CacheUpdateInput = { - keys: Array; -}; - -export type CacheUpdateResponse = { - __typename?: 'CacheUpdateResponse'; - success: Scalars['Boolean']['output']; -}; - -export type ChatCompletionMessageParam = { - content: Scalars['String']['input']; - role: Scalars['String']['input']; -}; - -export type CheckoutRevisionInput = { - reason: Scalars['String']['input']; - revisionId: Scalars['Int']['input']; -}; - -export type CheckoutRevisionNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'CheckoutRevisionNotificationEvent'; - actor: User; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; - reason: Scalars['String']['output']; - repository: AbstractRepository; - revision: AbstractRevision; -}; - -export type CheckoutRevisionResponse = { - __typename?: 'CheckoutRevisionResponse'; - query: Query; - success: Scalars['Boolean']['output']; -}; - -export type Comment = AbstractUuid & { - __typename?: 'Comment'; - alias: Scalars['String']['output']; - archived: Scalars['Boolean']['output']; - author: User; - content: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - legacyObject: AbstractUuid; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type CommentEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - -export type CommentConnection = { - __typename?: 'CommentConnection'; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export enum CommentStatus { - Done = 'done', - NoStatus = 'noStatus', - Open = 'open' -} - -export type Course = AbstractEntity & AbstractRepository & AbstractTaxonomyTermChild & AbstractUuid & InstanceAware & ThreadAware & { - __typename?: 'Course'; - alias: Scalars['String']['output']; - currentRevision?: Maybe; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - instance: Instance; - license: License; - pages: Array; - revisions: CourseRevisionConnection; - subject?: Maybe; - taxonomyTerms: TaxonomyTermConnection; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type CourseEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type CoursePagesArgs = { - hasCurrentRevision?: InputMaybe; - trashed?: InputMaybe; -}; - - -export type CourseRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - unrevised?: InputMaybe; -}; - - -export type CourseTaxonomyTermsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -export type CourseThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type CoursePage = AbstractEntity & AbstractRepository & AbstractUuid & InstanceAware & ThreadAware & { - __typename?: 'CoursePage'; - alias: Scalars['String']['output']; - course: Course; - currentRevision?: Maybe; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - instance: Instance; - license: License; - revisions: CoursePageRevisionConnection; - subject?: Maybe; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type CoursePageEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type CoursePageRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - unrevised?: InputMaybe; -}; - - -export type CoursePageThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type CoursePageRevision = AbstractEntityRevision & AbstractRevision & AbstractUuid & ThreadAware & { - __typename?: 'CoursePageRevision'; - alias: Scalars['String']['output']; - author: User; - changes: Scalars['String']['output']; - content: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - repository: CoursePage; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type CoursePageRevisionEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type CoursePageRevisionThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type CoursePageRevisionConnection = { - __typename?: 'CoursePageRevisionConnection'; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type CourseRevision = AbstractEntityRevision & AbstractRevision & AbstractUuid & ThreadAware & { - __typename?: 'CourseRevision'; - alias: Scalars['String']['output']; - author: User; - changes: Scalars['String']['output']; - content: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - metaDescription: Scalars['String']['output']; - repository: Course; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type CourseRevisionEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type CourseRevisionThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type CourseRevisionConnection = { - __typename?: 'CourseRevisionConnection'; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type CreateCommentNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'CreateCommentNotificationEvent'; - actor: User; - comment: Comment; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; - thread: Thread; -}; - -export type CreateEntityLinkNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'CreateEntityLinkNotificationEvent'; - actor: User; - child: AbstractEntity; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; - parent: AbstractEntity; -}; - -export type CreateEntityNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'CreateEntityNotificationEvent'; - actor: User; - date: Scalars['DateTime']['output']; - entity: AbstractEntity; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; -}; - -export type CreateEntityRevisionNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'CreateEntityRevisionNotificationEvent'; - actor: User; - date: Scalars['DateTime']['output']; - entity: AbstractRepository; - entityRevision: AbstractRevision; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; -}; - -export type CreatePageInput = { - content: Scalars['String']['input']; - discussionsEnabled: Scalars['Boolean']['input']; - forumId?: InputMaybe; - instance: Instance; - licenseId: Scalars['Int']['input']; - title: Scalars['String']['input']; -}; - -export type CreateTaxonomyLinkNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'CreateTaxonomyLinkNotificationEvent'; - actor: User; - child: AbstractUuid; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; - parent: TaxonomyTerm; -}; - -export type CreateTaxonomyTermNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'CreateTaxonomyTermNotificationEvent'; - actor: User; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; - taxonomyTerm: TaxonomyTerm; -}; - -export type CreateThreadNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'CreateThreadNotificationEvent'; - actor: User; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - object: AbstractUuid; - objectId: Scalars['Int']['output']; - thread: Thread; -}; - -export type DefaultResponse = { - __typename?: 'DefaultResponse'; - query: Query; - success: Scalars['Boolean']['output']; -}; - -export type DeletedEntitiesConnection = { - __typename?: 'DeletedEntitiesConnection'; - edges: Array; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type DeletedEntity = { - __typename?: 'DeletedEntity'; - dateOfDeletion?: Maybe; - entity?: Maybe; -}; - -export type DeletedEntityCursor = { - __typename?: 'DeletedEntityCursor'; - cursor: Scalars['String']['output']; - node: DeletedEntity; -}; - -export type EntityMetadataConnection = { - __typename?: 'EntityMetadataConnection'; - edges: Array; - nodes: Array; - pageInfo: HasNextPageInfo; -}; - -export type EntityMetadataCursor = { - __typename?: 'EntityMetadataCursor'; - cursor: Scalars['String']['output']; - node: Scalars['JSONObject']['output']; -}; - -export type EntityMutation = { - __typename?: 'EntityMutation'; - checkoutRevision: CheckoutRevisionResponse; - rejectRevision: RejectRevisionResponse; - setApplet: SetEntityResponse; - setArticle: SetEntityResponse; - setCourse: SetEntityResponse; - setCoursePage: SetEntityResponse; - setEvent: SetEntityResponse; - setExercise: SetEntityResponse; - setExerciseGroup: SetEntityResponse; - setGroupedExercise: SetEntityResponse; - setVideo: SetEntityResponse; - sort: EntitySortResponse; - updateLicense: EntityUpdateLicenseResponse; -}; - - -export type EntityMutationCheckoutRevisionArgs = { - input: CheckoutRevisionInput; -}; - - -export type EntityMutationRejectRevisionArgs = { - input: RejectRevisionInput; -}; - - -export type EntityMutationSetAppletArgs = { - input: SetAppletInput; -}; - - -export type EntityMutationSetArticleArgs = { - input: SetArticleInput; -}; - - -export type EntityMutationSetCourseArgs = { - input: SetCourseInput; -}; - - -export type EntityMutationSetCoursePageArgs = { - input: SetCoursePageInput; -}; - - -export type EntityMutationSetEventArgs = { - input: SetEventInput; -}; - - -export type EntityMutationSetExerciseArgs = { - input: SetGenericEntityInput; -}; - - -export type EntityMutationSetExerciseGroupArgs = { - input: SetExerciseGroupInput; -}; - - -export type EntityMutationSetGroupedExerciseArgs = { - input: SetGenericEntityInput; -}; - - -export type EntityMutationSetVideoArgs = { - input: SetVideoInput; -}; - - -export type EntityMutationSortArgs = { - input: EntitySortInput; -}; - - -export type EntityMutationUpdateLicenseArgs = { - input: EntityUpdateLicenseInput; -}; - -export type EntityQuery = { - __typename?: 'EntityQuery'; - deletedEntities: DeletedEntitiesConnection; -}; - - -export type EntityQueryDeletedEntitiesArgs = { - after?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; -}; - -export type EntitySortInput = { - childrenIds: Array; - entityId: Scalars['Int']['input']; -}; - -export type EntitySortResponse = { - __typename?: 'EntitySortResponse'; - query: Query; - success: Scalars['Boolean']['output']; -}; - -export type EntityUpdateLicenseInput = { - entityId: Scalars['Int']['input']; - licenseId: Scalars['Int']['input']; -}; - -export type EntityUpdateLicenseResponse = { - __typename?: 'EntityUpdateLicenseResponse'; - query: Query; - success: Scalars['Boolean']['output']; -}; - -export type Event = AbstractEntity & AbstractRepository & AbstractTaxonomyTermChild & AbstractUuid & InstanceAware & ThreadAware & { - __typename?: 'Event'; - alias: Scalars['String']['output']; - currentRevision?: Maybe; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - instance: Instance; - license: License; - revisions: EventRevisionConnection; - subject?: Maybe; - taxonomyTerms: TaxonomyTermConnection; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type EventEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type EventRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - unrevised?: InputMaybe; -}; - - -export type EventTaxonomyTermsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -export type EventThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type EventRevision = AbstractEntityRevision & AbstractRevision & AbstractUuid & ThreadAware & { - __typename?: 'EventRevision'; - alias: Scalars['String']['output']; - author: User; - changes: Scalars['String']['output']; - content: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - metaDescription: Scalars['String']['output']; - metaTitle: Scalars['String']['output']; - repository: Event; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type EventRevisionEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type EventRevisionThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type EventRevisionConnection = { - __typename?: 'EventRevisionConnection'; - edges: Array; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type EventRevisionCursor = { - __typename?: 'EventRevisionCursor'; - cursor: Scalars['String']['output']; - node: EventRevision; -}; - -export type ExecutePromptResponse = { - __typename?: 'ExecutePromptResponse'; - record: Scalars['JSONObject']['output']; - success: Scalars['Boolean']['output']; -}; - -export type Exercise = AbstractEntity & AbstractExercise & AbstractRepository & AbstractTaxonomyTermChild & AbstractUuid & InstanceAware & ThreadAware & { - __typename?: 'Exercise'; - alias: Scalars['String']['output']; - currentRevision?: Maybe; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - instance: Instance; - license: License; - revisions: ExerciseRevisionConnection; - subject?: Maybe; - taxonomyTerms: TaxonomyTermConnection; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type ExerciseEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type ExerciseRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - unrevised?: InputMaybe; -}; - - -export type ExerciseTaxonomyTermsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -export type ExerciseThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type ExerciseGroup = AbstractEntity & AbstractRepository & AbstractTaxonomyTermChild & AbstractUuid & InstanceAware & ThreadAware & { - __typename?: 'ExerciseGroup'; - alias: Scalars['String']['output']; - currentRevision?: Maybe; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - exercises: Array; - id: Scalars['Int']['output']; - instance: Instance; - license: License; - revisions: ExerciseGroupRevisionConnection; - subject?: Maybe; - taxonomyTerms: TaxonomyTermConnection; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type ExerciseGroupEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type ExerciseGroupRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - unrevised?: InputMaybe; -}; - - -export type ExerciseGroupTaxonomyTermsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -export type ExerciseGroupThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type ExerciseGroupRevision = AbstractEntityRevision & AbstractRevision & AbstractUuid & ThreadAware & { - __typename?: 'ExerciseGroupRevision'; - alias: Scalars['String']['output']; - author: User; - changes: Scalars['String']['output']; - cohesive: Scalars['Boolean']['output']; - content: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - repository: ExerciseGroup; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type ExerciseGroupRevisionEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type ExerciseGroupRevisionThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type ExerciseGroupRevisionConnection = { - __typename?: 'ExerciseGroupRevisionConnection'; - edges: Array; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type ExerciseGroupRevisionCursor = { - __typename?: 'ExerciseGroupRevisionCursor'; - cursor: Scalars['String']['output']; - node: ExerciseGroupRevision; -}; - -export type ExerciseRevision = AbstractEntityRevision & AbstractExerciseRevision & AbstractRevision & AbstractUuid & ThreadAware & { - __typename?: 'ExerciseRevision'; - alias: Scalars['String']['output']; - author: User; - changes: Scalars['String']['output']; - content: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - repository: Exercise; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type ExerciseRevisionEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type ExerciseRevisionThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type ExerciseRevisionConnection = { - __typename?: 'ExerciseRevisionConnection'; - edges: Array; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type ExerciseRevisionCursor = { - __typename?: 'ExerciseRevisionCursor'; - cursor: Scalars['String']['output']; - node: ExerciseRevision; -}; - -export type GroupedExercise = AbstractEntity & AbstractExercise & AbstractRepository & AbstractUuid & InstanceAware & ThreadAware & { - __typename?: 'GroupedExercise'; - alias: Scalars['String']['output']; - currentRevision?: Maybe; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - exerciseGroup: ExerciseGroup; - id: Scalars['Int']['output']; - instance: Instance; - license: License; - revisions: GroupedExerciseRevisionConnection; - subject?: Maybe; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type GroupedExerciseEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type GroupedExerciseRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - unrevised?: InputMaybe; -}; - - -export type GroupedExerciseThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type GroupedExerciseRevision = AbstractEntityRevision & AbstractExerciseRevision & AbstractRevision & AbstractUuid & ThreadAware & { - __typename?: 'GroupedExerciseRevision'; - alias: Scalars['String']['output']; - author: User; - changes: Scalars['String']['output']; - content: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - repository: GroupedExercise; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type GroupedExerciseRevisionEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type GroupedExerciseRevisionThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type GroupedExerciseRevisionConnection = { - __typename?: 'GroupedExerciseRevisionConnection'; - edges: Array; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type GroupedExerciseRevisionCursor = { - __typename?: 'GroupedExerciseRevisionCursor'; - cursor: Scalars['String']['output']; - node: GroupedExerciseRevision; -}; - -export type HasNextPageInfo = { - __typename?: 'HasNextPageInfo'; - endCursor?: Maybe; - hasNextPage: Scalars['Boolean']['output']; -}; - -export enum Instance { - De = 'de', - En = 'en', - Es = 'es', - Fr = 'fr', - Hi = 'hi', - Ta = 'ta' -} - -export type InstanceAware = { - instance: Instance; -}; - -export type License = { - __typename?: 'License'; - id: Scalars['Int']['output']; -}; - -export type MediaQuery = { - __typename?: 'MediaQuery'; - newUpload: MediaUpload; -}; - - -export type MediaQueryNewUploadArgs = { - mediaType: MediaType; -}; - -export enum MediaType { - ImageGif = 'IMAGE_GIF', - ImageJpeg = 'IMAGE_JPEG', - ImagePng = 'IMAGE_PNG', - ImageSvgXml = 'IMAGE_SVG_XML', - ImageWebp = 'IMAGE_WEBP' -} - -export type MediaUpload = { - __typename?: 'MediaUpload'; - uploadUrl: Scalars['String']['output']; - urlAfterUpload: Scalars['String']['output']; -}; - -export type MetadataQuery = { - __typename?: 'MetadataQuery'; - /** @deprecated Please use the `resources` field instead. This property will be deleted. */ - entities: EntityMetadataConnection; - publisher: Scalars['JSONObject']['output']; - resources: EntityMetadataConnection; - version: Scalars['String']['output']; -}; - - -export type MetadataQueryEntitiesArgs = { - after?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - modifiedAfter?: InputMaybe; -}; - - -export type MetadataQueryResourcesArgs = { - after?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - modifiedAfter?: InputMaybe; -}; - -export type Mutation = { - __typename?: 'Mutation'; - _cache: _CacheMutation; - entity: EntityMutation; - notification: NotificationMutation; - oauth: OauthMutation; - page: PageMutation; - subscription: SubscriptionMutation; - taxonomyTerm: TaxonomyTermMutation; - thread: ThreadMutation; - user: UserMutation; - uuid: UuidMutation; -}; - -export type Notification = { - __typename?: 'Notification'; - email: Scalars['Boolean']['output']; - emailSent: Scalars['Boolean']['output']; - event?: Maybe; - id: Scalars['Int']['output']; - unread: Scalars['Boolean']['output']; -}; - -export type NotificationConnection = { - __typename?: 'NotificationConnection'; - edges: Array; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type NotificationEdge = { - __typename?: 'NotificationEdge'; - cursor: Scalars['String']['output']; - node: Notification; -}; - -export type NotificationMutation = { - __typename?: 'NotificationMutation'; - setState?: Maybe; -}; - - -export type NotificationMutationSetStateArgs = { - input: NotificationSetStateInput; -}; - -export type NotificationSetStateInput = { - id: Array; - unread: Scalars['Boolean']['input']; -}; - -export type NotificationSetStateResponse = { - __typename?: 'NotificationSetStateResponse'; - query: Query; - success: Scalars['Boolean']['output']; -}; - -export type OauthAcceptInput = { - challenge: Scalars['String']['input']; - session: Scalars['JSON']['input']; -}; - -export type OauthAcceptResponse = { - __typename?: 'OauthAcceptResponse'; - redirectUri: Scalars['String']['output']; - success: Scalars['Boolean']['output']; -}; - -export type OauthMutation = { - __typename?: 'OauthMutation'; - acceptConsent: OauthAcceptResponse; - acceptLogin: OauthAcceptResponse; - acceptLogout: OauthAcceptResponse; -}; - - -export type OauthMutationAcceptConsentArgs = { - input: OauthAcceptInput; -}; - - -export type OauthMutationAcceptLoginArgs = { - input: OauthAcceptInput; -}; - - -export type OauthMutationAcceptLogoutArgs = { - challenge: Scalars['String']['input']; -}; - -export type Page = AbstractRepository & AbstractUuid & InstanceAware & ThreadAware & { - __typename?: 'Page'; - alias: Scalars['String']['output']; - currentRevision?: Maybe; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - instance: Instance; - license: License; - revisions: PageRevisionConnection; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type PageEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type PageRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - unrevised?: InputMaybe; -}; - - -export type PageThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type PageAddRevisionInput = { - content: Scalars['String']['input']; - pageId: Scalars['Int']['input']; - title: Scalars['String']['input']; -}; - -export type PageCreateResponse = { - __typename?: 'PageCreateResponse'; - query: Query; - record?: Maybe; - success: Scalars['Boolean']['output']; -}; - -export type PageInfo = { - __typename?: 'PageInfo'; - endCursor?: Maybe; - hasNextPage: Scalars['Boolean']['output']; - hasPreviousPage: Scalars['Boolean']['output']; - startCursor?: Maybe; -}; - -export type PageMutation = { - __typename?: 'PageMutation'; - addRevision: AddRevisionResponse; - checkoutRevision: CheckoutRevisionResponse; - create: PageCreateResponse; - rejectRevision: RejectRevisionResponse; -}; - - -export type PageMutationAddRevisionArgs = { - input: PageAddRevisionInput; -}; - - -export type PageMutationCheckoutRevisionArgs = { - input: CheckoutRevisionInput; -}; - - -export type PageMutationCreateArgs = { - input: CreatePageInput; -}; - - -export type PageMutationRejectRevisionArgs = { - input: RejectRevisionInput; -}; - -export type PageQuery = { - __typename?: 'PageQuery'; - pages: Array; -}; - - -export type PageQueryPagesArgs = { - instance?: InputMaybe; -}; - -export type PageRevision = AbstractRevision & AbstractUuid & ThreadAware & { - __typename?: 'PageRevision'; - alias: Scalars['String']['output']; - author: User; - content: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - repository: Page; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type PageRevisionEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type PageRevisionThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type PageRevisionConnection = { - __typename?: 'PageRevisionConnection'; - edges: Array; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type PageRevisionCursor = { - __typename?: 'PageRevisionCursor'; - cursor: Scalars['String']['output']; - node: PageRevision; -}; - -export type Query = { - __typename?: 'Query'; - ai: AiQuery; - authorization: Scalars['JSON']['output']; - entity?: Maybe; - events: AbstractNotificationEventConnection; - media: MediaQuery; - metadata: MetadataQuery; - notificationEvent?: Maybe; - notifications: NotificationConnection; - page: PageQuery; - subject: SubjectQuery; - subscription: SubscriptionQuery; - thread: ThreadQuery; - user: UserQuery; - uuid?: Maybe; - version: Scalars['String']['output']; -}; - - -export type QueryEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; - objectId?: InputMaybe; -}; - - -export type QueryNotificationEventArgs = { - id: Scalars['Int']['input']; -}; - - -export type QueryNotificationsArgs = { - after?: InputMaybe; - before?: InputMaybe; - email?: InputMaybe; - emailSent?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - unread?: InputMaybe; - userId?: InputMaybe; -}; - - -export type QueryUuidArgs = { - alias?: InputMaybe; - id?: InputMaybe; -}; - -export type RejectRevisionInput = { - reason: Scalars['String']['input']; - revisionId: Scalars['Int']['input']; -}; - -export type RejectRevisionNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'RejectRevisionNotificationEvent'; - actor: User; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; - reason: Scalars['String']['output']; - repository: AbstractRepository; - revision: AbstractRevision; -}; - -export type RejectRevisionResponse = { - __typename?: 'RejectRevisionResponse'; - query: Query; - success: Scalars['Boolean']['output']; -}; - -export type RemoveEntityLinkNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'RemoveEntityLinkNotificationEvent'; - actor: User; - child: AbstractEntity; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; - parent: AbstractEntity; -}; - -export type RemoveTaxonomyLinkNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'RemoveTaxonomyLinkNotificationEvent'; - actor: User; - child: AbstractUuid; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; - parent: TaxonomyTerm; -}; - -export enum Role { - Admin = 'admin', - Architect = 'architect', - Guest = 'guest', - Login = 'login', - Moderator = 'moderator', - Reviewer = 'reviewer', - StaticPagesBuilder = 'static_pages_builder', - Sysadmin = 'sysadmin' -} - -export enum Scope { - Serlo = 'Serlo', - SerloDe = 'Serlo_De', - SerloEn = 'Serlo_En', - SerloEs = 'Serlo_Es', - SerloFr = 'Serlo_Fr', - SerloHi = 'Serlo_Hi', - SerloTa = 'Serlo_Ta' -} - -export type ScopedRole = { - __typename?: 'ScopedRole'; - role: Role; - scope?: Maybe; -}; - -export type ScopedRoleConnection = { - __typename?: 'ScopedRoleConnection'; - edges: Array; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type ScopedRoleCursor = { - __typename?: 'ScopedRoleCursor'; - cursor: Scalars['String']['output']; - node: ScopedRole; -}; - -export type SetAppletInput = { - changes: Scalars['String']['input']; - content: Scalars['String']['input']; - entityId?: InputMaybe; - metaDescription?: InputMaybe; - metaTitle?: InputMaybe; - needsReview: Scalars['Boolean']['input']; - parentId?: InputMaybe; - subscribeThis: Scalars['Boolean']['input']; - subscribeThisByEmail: Scalars['Boolean']['input']; - title: Scalars['String']['input']; - url: Scalars['String']['input']; -}; - -export type SetArticleInput = { - changes: Scalars['String']['input']; - content: Scalars['String']['input']; - entityId?: InputMaybe; - metaDescription?: InputMaybe; - metaTitle?: InputMaybe; - needsReview: Scalars['Boolean']['input']; - parentId?: InputMaybe; - subscribeThis: Scalars['Boolean']['input']; - subscribeThisByEmail: Scalars['Boolean']['input']; - title: Scalars['String']['input']; -}; - -export type SetCourseInput = { - changes: Scalars['String']['input']; - content?: InputMaybe; - entityId?: InputMaybe; - metaDescription?: InputMaybe; - needsReview: Scalars['Boolean']['input']; - parentId?: InputMaybe; - subscribeThis: Scalars['Boolean']['input']; - subscribeThisByEmail: Scalars['Boolean']['input']; - title: Scalars['String']['input']; -}; - -export type SetCoursePageInput = { - changes: Scalars['String']['input']; - content: Scalars['String']['input']; - entityId?: InputMaybe; - needsReview: Scalars['Boolean']['input']; - parentId?: InputMaybe; - subscribeThis: Scalars['Boolean']['input']; - subscribeThisByEmail: Scalars['Boolean']['input']; - title: Scalars['String']['input']; -}; - -export type SetEntityResponse = { - __typename?: 'SetEntityResponse'; - query: Query; - record?: Maybe; - success: Scalars['Boolean']['output']; -}; - -export type SetEventInput = { - changes: Scalars['String']['input']; - content: Scalars['String']['input']; - entityId?: InputMaybe; - metaDescription?: InputMaybe; - metaTitle?: InputMaybe; - needsReview: Scalars['Boolean']['input']; - parentId?: InputMaybe; - subscribeThis: Scalars['Boolean']['input']; - subscribeThisByEmail: Scalars['Boolean']['input']; - title: Scalars['String']['input']; -}; - -export type SetExerciseGroupInput = { - changes: Scalars['String']['input']; - cohesive: Scalars['Boolean']['input']; - content: Scalars['String']['input']; - entityId?: InputMaybe; - needsReview: Scalars['Boolean']['input']; - parentId?: InputMaybe; - subscribeThis: Scalars['Boolean']['input']; - subscribeThisByEmail: Scalars['Boolean']['input']; -}; - -export type SetGenericEntityInput = { - changes: Scalars['String']['input']; - content: Scalars['String']['input']; - entityId?: InputMaybe; - needsReview: Scalars['Boolean']['input']; - parentId?: InputMaybe; - subscribeThis: Scalars['Boolean']['input']; - subscribeThisByEmail: Scalars['Boolean']['input']; -}; - -export type SetLicenseNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'SetLicenseNotificationEvent'; - actor: User; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; - repository: AbstractRepository; -}; - -export type SetTaxonomyParentNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'SetTaxonomyParentNotificationEvent'; - actor: User; - child: TaxonomyTerm; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; - parent?: Maybe; - previousParent?: Maybe; -}; - -export type SetTaxonomyTermNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'SetTaxonomyTermNotificationEvent'; - actor: User; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; - taxonomyTerm: TaxonomyTerm; -}; - -export type SetThreadStateNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'SetThreadStateNotificationEvent'; - actor: User; - archived: Scalars['Boolean']['output']; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - objectId: Scalars['Int']['output']; - thread: Thread; -}; - -export type SetUuidStateNotificationEvent = AbstractNotificationEvent & InstanceAware & { - __typename?: 'SetUuidStateNotificationEvent'; - actor: User; - date: Scalars['DateTime']['output']; - id: Scalars['Int']['output']; - instance: Instance; - object: AbstractUuid; - objectId: Scalars['Int']['output']; - trashed: Scalars['Boolean']['output']; -}; - -export type SetVideoInput = { - changes: Scalars['String']['input']; - content: Scalars['String']['input']; - entityId?: InputMaybe; - needsReview: Scalars['Boolean']['input']; - parentId?: InputMaybe; - subscribeThis: Scalars['Boolean']['input']; - subscribeThisByEmail: Scalars['Boolean']['input']; - title: Scalars['String']['input']; - url: Scalars['String']['input']; -}; - -export type Subject = { - __typename?: 'Subject'; - id: Scalars['String']['output']; - taxonomyTerm: TaxonomyTerm; - unrevisedEntities: AbstractEntityConnection; -}; - - -export type SubjectUnrevisedEntitiesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - -export type SubjectQuery = { - __typename?: 'SubjectQuery'; - subject?: Maybe; - subjects: Array; -}; - - -export type SubjectQuerySubjectArgs = { - id: Scalars['String']['input']; -}; - - -export type SubjectQuerySubjectsArgs = { - instance: Instance; -}; - -export type SubscriptionConnection = { - __typename?: 'SubscriptionConnection'; - edges: Array; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type SubscriptionCursor = { - __typename?: 'SubscriptionCursor'; - cursor: Scalars['String']['output']; - node: SubscriptionInfo; -}; - -export type SubscriptionInfo = { - __typename?: 'SubscriptionInfo'; - object: AbstractUuid; - sendEmail: Scalars['Boolean']['output']; -}; - -export type SubscriptionMutation = { - __typename?: 'SubscriptionMutation'; - set?: Maybe; -}; - - -export type SubscriptionMutationSetArgs = { - input: SubscriptionSetInput; -}; - -export type SubscriptionQuery = { - __typename?: 'SubscriptionQuery'; - currentUserHasSubscribed: Scalars['Boolean']['output']; - getSubscriptions: SubscriptionConnection; -}; - - -export type SubscriptionQueryCurrentUserHasSubscribedArgs = { - id: Scalars['Int']['input']; -}; - - -export type SubscriptionQueryGetSubscriptionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - -export type SubscriptionSetInput = { - id: Array; - sendEmail: Scalars['Boolean']['input']; - subscribe: Scalars['Boolean']['input']; -}; - -export type SubscriptionSetResponse = { - __typename?: 'SubscriptionSetResponse'; - query: Query; - success: Scalars['Boolean']['output']; -}; - -export type TaxonomyEntityLinksInput = { - entityIds: Array; - taxonomyTermId: Scalars['Int']['input']; -}; - -export type TaxonomyEntityLinksResponse = { - __typename?: 'TaxonomyEntityLinksResponse'; - query: Query; - success: Scalars['Boolean']['output']; -}; - -export type TaxonomyTerm = AbstractUuid & InstanceAware & ThreadAware & { - __typename?: 'TaxonomyTerm'; - alias: Scalars['String']['output']; - children: AbstractUuidConnection; - description?: Maybe; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - instance: Instance; - name: Scalars['String']['output']; - parent?: Maybe; - taxonomyId: Scalars['Int']['output']; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; - type: TaxonomyTermType; - weight: Scalars['Int']['output']; -}; - - -export type TaxonomyTermChildrenArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -export type TaxonomyTermEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type TaxonomyTermThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type TaxonomyTermConnection = { - __typename?: 'TaxonomyTermConnection'; - edges?: Maybe>>; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type TaxonomyTermCreateInput = { - description?: InputMaybe; - name: Scalars['String']['input']; - parentId: Scalars['Int']['input']; - taxonomyType: TaxonomyTypeCreateOptions; -}; - -export type TaxonomyTermCreateResponse = { - __typename?: 'TaxonomyTermCreateResponse'; - query: Query; - record?: Maybe; - success: Scalars['Boolean']['output']; -}; - -export type TaxonomyTermEdge = { - __typename?: 'TaxonomyTermEdge'; - cursor: Scalars['String']['output']; - node: TaxonomyTerm; -}; - -export type TaxonomyTermMutation = { - __typename?: 'TaxonomyTermMutation'; - create: TaxonomyTermCreateResponse; - createEntityLinks: TaxonomyEntityLinksResponse; - deleteEntityLinks: TaxonomyEntityLinksResponse; - setNameAndDescription: TaxonomyTermSetNameAndDescriptionResponse; - sort: TaxonomyTermSortResponse; -}; - - -export type TaxonomyTermMutationCreateArgs = { - input: TaxonomyTermCreateInput; -}; - - -export type TaxonomyTermMutationCreateEntityLinksArgs = { - input: TaxonomyEntityLinksInput; -}; - - -export type TaxonomyTermMutationDeleteEntityLinksArgs = { - input: TaxonomyEntityLinksInput; -}; - - -export type TaxonomyTermMutationSetNameAndDescriptionArgs = { - input: TaxonomyTermSetNameAndDescriptionInput; -}; - - -export type TaxonomyTermMutationSortArgs = { - input: TaxonomyTermSortInput; -}; - -export type TaxonomyTermSetNameAndDescriptionInput = { - description?: InputMaybe; - id: Scalars['Int']['input']; - name: Scalars['String']['input']; -}; - -export type TaxonomyTermSetNameAndDescriptionResponse = { - __typename?: 'TaxonomyTermSetNameAndDescriptionResponse'; - query: Query; - success: Scalars['Boolean']['output']; -}; - -export type TaxonomyTermSortInput = { - childrenIds: Array; - taxonomyTermId: Scalars['Int']['input']; -}; - -export type TaxonomyTermSortResponse = { - __typename?: 'TaxonomyTermSortResponse'; - query: Query; - success: Scalars['Boolean']['output']; -}; - -export enum TaxonomyTermType { - ExerciseFolder = 'exerciseFolder', - Root = 'root', - Subject = 'subject', - Topic = 'topic' -} - -export enum TaxonomyTypeCreateOptions { - ExerciseFolder = 'exerciseFolder', - Topic = 'topic' -} - -export type Thread = { - __typename?: 'Thread'; - archived: Scalars['Boolean']['output']; - comments: CommentConnection; - createdAt: Scalars['DateTime']['output']; - id: Scalars['String']['output']; - object: AbstractUuid; - status: CommentStatus; - title?: Maybe; - trashed: Scalars['Boolean']['output']; -}; - - -export type ThreadCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - -export type ThreadAware = { - threads: ThreadsConnection; -}; - - -export type ThreadAwareThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type ThreadCreateCommentInput = { - content: Scalars['String']['input']; - sendEmail: Scalars['Boolean']['input']; - subscribe: Scalars['Boolean']['input']; - threadId: Scalars['String']['input']; -}; - -export type ThreadCreateCommentResponse = { - __typename?: 'ThreadCreateCommentResponse'; - query: Query; - record?: Maybe; - success: Scalars['Boolean']['output']; -}; - -export type ThreadCreateThreadInput = { - content: Scalars['String']['input']; - objectId: Scalars['Int']['input']; - sendEmail: Scalars['Boolean']['input']; - subscribe: Scalars['Boolean']['input']; - title: Scalars['String']['input']; -}; - -export type ThreadCreateThreadResponse = { - __typename?: 'ThreadCreateThreadResponse'; - query: Query; - record?: Maybe; - success: Scalars['Boolean']['output']; -}; - -export type ThreadEditCommentInput = { - commentId: Scalars['Int']['input']; - content: Scalars['String']['input']; -}; - -export type ThreadMutation = { - __typename?: 'ThreadMutation'; - createComment: ThreadCreateCommentResponse; - createThread: ThreadCreateThreadResponse; - editComment: DefaultResponse; - setCommentState: DefaultResponse; - setThreadArchived: DefaultResponse; - setThreadState: DefaultResponse; - setThreadStatus: DefaultResponse; -}; - - -export type ThreadMutationCreateCommentArgs = { - input: ThreadCreateCommentInput; -}; - - -export type ThreadMutationCreateThreadArgs = { - input: ThreadCreateThreadInput; -}; - - -export type ThreadMutationEditCommentArgs = { - input: ThreadEditCommentInput; -}; - - -export type ThreadMutationSetCommentStateArgs = { - input: ThreadSetCommentStateInput; -}; - - -export type ThreadMutationSetThreadArchivedArgs = { - input: ThreadSetThreadArchivedInput; -}; - - -export type ThreadMutationSetThreadStateArgs = { - input: ThreadSetThreadStateInput; -}; - - -export type ThreadMutationSetThreadStatusArgs = { - input: ThreadSetThreadStatusInput; -}; - -export type ThreadQuery = { - __typename?: 'ThreadQuery'; - allThreads: AllThreadsConnection; -}; - - -export type ThreadQueryAllThreadsArgs = { - after?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - status?: InputMaybe; - subjectId?: InputMaybe; -}; - -export type ThreadSetCommentStateInput = { - id: Array; - trashed: Scalars['Boolean']['input']; -}; - -export type ThreadSetThreadArchivedInput = { - archived: Scalars['Boolean']['input']; - id: Array; -}; - -export type ThreadSetThreadStateInput = { - id: Array; - trashed: Scalars['Boolean']['input']; -}; - -export type ThreadSetThreadStatusInput = { - id: Array; - status: CommentStatus; -}; - -export type ThreadsConnection = { - __typename?: 'ThreadsConnection'; - edges: Array; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type ThreadsCursor = { - __typename?: 'ThreadsCursor'; - cursor: Scalars['String']['output']; - node: Thread; -}; - -export type User = AbstractUuid & ThreadAware & { - __typename?: 'User'; - activityByType: UserActivityByType; - alias: Scalars['String']['output']; - chatUrl?: Maybe; - date: Scalars['DateTime']['output']; - description?: Maybe; - events: AbstractNotificationEventConnection; - eventsByUser: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - imageUrl: Scalars['String']['output']; - isActiveAuthor: Scalars['Boolean']['output']; - isActiveDonor: Scalars['Boolean']['output']; - isActiveReviewer: Scalars['Boolean']['output']; - isNewAuthor: Scalars['Boolean']['output']; - language?: Maybe; - lastLogin?: Maybe; - motivation?: Maybe; - roles: ScopedRoleConnection; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; - unrevisedEntities: AbstractEntityConnection; - username: Scalars['String']['output']; -}; - - -export type UserEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type UserEventsByUserArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; - objectId?: InputMaybe; -}; - - -export type UserRolesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -export type UserThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - - -export type UserUnrevisedEntitiesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - -export type UserActivityByType = { - __typename?: 'UserActivityByType'; - comments: Scalars['Int']['output']; - edits: Scalars['Int']['output']; - reviews: Scalars['Int']['output']; - taxonomy: Scalars['Int']['output']; -}; - -export type UserConnection = { - __typename?: 'UserConnection'; - edges: Array; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type UserDeleteBotsInput = { - botIds: Array; -}; - -export type UserDeleteBotsResponse = { - __typename?: 'UserDeleteBotsResponse'; - success: Scalars['Boolean']['output']; -}; - -export type UserDeleteRegularUsersInput = { - users: Array; -}; - -export type UserDeleteRegularUsersResponse = { - __typename?: 'UserDeleteRegularUsersResponse'; - reason?: Maybe; - success: Scalars['Boolean']['output']; - username?: Maybe; -}; - -export type UserDescriptionInput = { - id: Scalars['Int']['input']; - username: Scalars['String']['input']; -}; - -export type UserEdge = { - __typename?: 'UserEdge'; - cursor: Scalars['String']['output']; - node: User; -}; - -export type UserMutation = { - __typename?: 'UserMutation'; - addRole: UserRoleResponse; - deleteBots: UserDeleteBotsResponse; - deleteRegularUsers: Array; - removeRole: UserRoleResponse; - setDescription: UserSetDescriptionResponse; - setEmail: UserSetEmailResponse; -}; - - -export type UserMutationAddRoleArgs = { - input: UserRoleInput; -}; - - -export type UserMutationDeleteBotsArgs = { - input: UserDeleteBotsInput; -}; - - -export type UserMutationDeleteRegularUsersArgs = { - input: UserDeleteRegularUsersInput; -}; - - -export type UserMutationRemoveRoleArgs = { - input: UserRoleInput; -}; - - -export type UserMutationSetDescriptionArgs = { - input: UserSetDescriptionInput; -}; - - -export type UserMutationSetEmailArgs = { - input: UserSetEmailInput; -}; - -export type UserQuery = { - __typename?: 'UserQuery'; - potentialSpamUsers: UserConnection; - usersByRole: UserWithPermissionsConnection; -}; - - -export type UserQueryPotentialSpamUsersArgs = { - after?: InputMaybe; - first?: InputMaybe; -}; - - -export type UserQueryUsersByRoleArgs = { - after?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - role: Role; -}; - -export type UserRoleInput = { - instance?: InputMaybe; - role: Role; - username: Scalars['String']['input']; -}; - -export type UserRoleResponse = { - __typename?: 'UserRoleResponse'; - success: Scalars['Boolean']['output']; -}; - -export type UserSetDescriptionInput = { - description: Scalars['String']['input']; -}; - -export type UserSetDescriptionResponse = { - __typename?: 'UserSetDescriptionResponse'; - success: Scalars['Boolean']['output']; -}; - -export type UserSetEmailInput = { - email: Scalars['String']['input']; - userId: Scalars['Int']['input']; -}; - -export type UserSetEmailResponse = { - __typename?: 'UserSetEmailResponse'; - email: Scalars['String']['output']; - success: Scalars['Boolean']['output']; - username: Scalars['String']['output']; -}; - -export type UserWithPermissionsConnection = { - __typename?: 'UserWithPermissionsConnection'; - edges: Array; - inheritance?: Maybe>; - nodes: Array; - pageInfo: PageInfo; - permissions: Array; - totalCount: Scalars['Int']['output']; -}; - -export type UuidMutation = { - __typename?: 'UuidMutation'; - setState?: Maybe; -}; - - -export type UuidMutationSetStateArgs = { - input: UuidSetStateInput; -}; - -export type UuidSetStateInput = { - id: Array; - trashed: Scalars['Boolean']['input']; -}; - -export type UuidSetStateResponse = { - __typename?: 'UuidSetStateResponse'; - query: Query; - success: Scalars['Boolean']['output']; -}; - -export type Video = AbstractEntity & AbstractRepository & AbstractTaxonomyTermChild & AbstractUuid & InstanceAware & ThreadAware & { - __typename?: 'Video'; - alias: Scalars['String']['output']; - currentRevision?: Maybe; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - instance: Instance; - license: License; - revisions: VideoRevisionConnection; - subject?: Maybe; - taxonomyTerms: TaxonomyTermConnection; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; -}; - - -export type VideoEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type VideoRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - unrevised?: InputMaybe; -}; - - -export type VideoTaxonomyTermsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -export type VideoThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type VideoRevision = AbstractEntityRevision & AbstractRevision & AbstractUuid & ThreadAware & { - __typename?: 'VideoRevision'; - alias: Scalars['String']['output']; - author: User; - changes: Scalars['String']['output']; - content: Scalars['String']['output']; - date: Scalars['DateTime']['output']; - events: AbstractNotificationEventConnection; - id: Scalars['Int']['output']; - repository: Video; - threads: ThreadsConnection; - title: Scalars['String']['output']; - trashed: Scalars['Boolean']['output']; - url: Scalars['String']['output']; -}; - - -export type VideoRevisionEventsArgs = { - actorId?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - instance?: InputMaybe; - last?: InputMaybe; -}; - - -export type VideoRevisionThreadsArgs = { - after?: InputMaybe; - archived?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - trashed?: InputMaybe; -}; - -export type VideoRevisionConnection = { - __typename?: 'VideoRevisionConnection'; - edges: Array; - nodes: Array; - pageInfo: PageInfo; - totalCount: Scalars['Int']['output']; -}; - -export type VideoRevisionCursor = { - __typename?: 'VideoRevisionCursor'; - cursor: Scalars['String']['output']; - node: VideoRevision; -}; - -export type _CacheMutation = { - __typename?: '_cacheMutation'; - remove: CacheRemoveResponse; - set: CacheSetResponse; - update: CacheUpdateResponse; -}; - - -export type _CacheMutationRemoveArgs = { - input: CacheRemoveInput; -}; - - -export type _CacheMutationSetArgs = { - input: CacheSetInput; -}; - - -export type _CacheMutationUpdateArgs = { - input: CacheUpdateInput; -}; diff --git a/packages/types/src/tsconfig.json b/packages/types/src/tsconfig.json deleted file mode 100644 index 7520f383c..000000000 --- a/packages/types/src/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../../../tsconfig", - "compilerOptions": { - "emitDeclarationOnly": true, - "outDir": "../dist" - } -} diff --git a/packages/types/tsconfig.prod.json b/packages/types/tsconfig.prod.json deleted file mode 100644 index 5a4ee54f5..000000000 --- a/packages/types/tsconfig.prod.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "include": ["src"], - "extends": "../../tsconfig.prod.json" -} diff --git a/yarn.lock b/yarn.lock index 8b51389b3..4596e4bf1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4099,7 +4099,6 @@ __metadata: "@serlo/authorization": ^0.59.1 "@types/basic-auth": ^1.1.6 "@types/bull-arena": ^3.0.10 - "@types/graphql-modules": ^0.59.0 "@types/jsonwebtoken": ^9.0.5 "@types/pg": ^8.10.9 "@types/ramda": ^0.29.9 @@ -4138,17 +4137,6 @@ __metadata: languageName: unknown linkType: soft -"@serlo/api@workspace:packages/types": - version: 0.0.0-use.local - resolution: "@serlo/api@workspace:packages/types" - dependencies: - "@graphql-codegen/add": ^5.0.0 - "@graphql-codegen/cli": ^5.0.0 - "@graphql-codegen/typescript": ^4.0.1 - graphql: ^16.8.1 - languageName: unknown - linkType: soft - "@serlo/authorization@^0.59.1, @serlo/authorization@workspace:packages/authorization": version: 0.0.0-use.local resolution: "@serlo/authorization@workspace:packages/authorization" @@ -4431,12 +4419,6 @@ __metadata: languageName: node linkType: hard -"@types/graphql-modules@^0.59.0, @types/graphql-modules@workspace:packages/graphql-modules": - version: 0.0.0-use.local - resolution: "@types/graphql-modules@workspace:packages/graphql-modules" - languageName: unknown - linkType: soft - "@types/ioredis@npm:^4.28.10": version: 4.28.10 resolution: "@types/ioredis@npm:4.28.10"