493 lines
14 KiB
TypeScript
493 lines
14 KiB
TypeScript
export type Maybe<T> = T | null;
|
|
export type InputMaybe<T> = Maybe<T>;
|
|
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
|
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
export type Scalars = {
|
|
ID: string;
|
|
String: string;
|
|
Boolean: boolean;
|
|
Int: number;
|
|
Float: number;
|
|
/** An ISO 8601-encoded date */
|
|
ISO8601Date: any;
|
|
/** An ISO 8601-encoded datetime */
|
|
ISO8601DateTime: any;
|
|
};
|
|
|
|
export type Axis = {
|
|
__typename?: 'Axis';
|
|
id: Scalars['ID'];
|
|
name: Scalars['String'];
|
|
subjects: Array<Subject>;
|
|
};
|
|
|
|
export type Category = {
|
|
__typename?: 'Category';
|
|
id: Scalars['ID'];
|
|
name: Scalars['String'];
|
|
subjects: Array<Subject>;
|
|
};
|
|
|
|
/** Autogenerated input type of CreateQuestion */
|
|
export type CreateQuestionInput = {
|
|
/** A unique identifier for the client performing the mutation. */
|
|
clientMutationId?: InputMaybe<Scalars['String']>;
|
|
question: QuestionCreateInput;
|
|
};
|
|
|
|
/** Autogenerated return type of CreateQuestion */
|
|
export type CreateQuestionPayload = {
|
|
__typename?: 'CreateQuestionPayload';
|
|
/** A unique identifier for the client performing the mutation. */
|
|
clientMutationId?: Maybe<Scalars['String']>;
|
|
/** Errors encountered during execution of the mutation. */
|
|
errors: Array<Scalars['String']>;
|
|
question?: Maybe<Question>;
|
|
};
|
|
|
|
/** Autogenerated input type of CreateReviewMessage */
|
|
export type CreateReviewMessageInput = {
|
|
/** A unique identifier for the client performing the mutation. */
|
|
clientMutationId?: InputMaybe<Scalars['String']>;
|
|
message: ReviewMessageInput;
|
|
};
|
|
|
|
/** Autogenerated return type of CreateReviewMessage */
|
|
export type CreateReviewMessagePayload = {
|
|
__typename?: 'CreateReviewMessagePayload';
|
|
/** A unique identifier for the client performing the mutation. */
|
|
clientMutationId?: Maybe<Scalars['String']>;
|
|
/** Errors encountered during execution of the mutation. */
|
|
errors: Array<Scalars['String']>;
|
|
reviewMessage?: Maybe<ReviewMessage>;
|
|
};
|
|
|
|
export type DateRangeInput = {
|
|
endAt: Scalars['ISO8601Date'];
|
|
startAt: Scalars['ISO8601Date'];
|
|
};
|
|
|
|
/** Autogenerated input type of DestroyQuestion */
|
|
export type DestroyQuestionInput = {
|
|
/** A unique identifier for the client performing the mutation. */
|
|
clientMutationId?: InputMaybe<Scalars['String']>;
|
|
questionId: Scalars['ID'];
|
|
};
|
|
|
|
/** Autogenerated return type of DestroyQuestion */
|
|
export type DestroyQuestionPayload = {
|
|
__typename?: 'DestroyQuestionPayload';
|
|
/** A unique identifier for the client performing the mutation. */
|
|
clientMutationId?: Maybe<Scalars['String']>;
|
|
deletedQuestionId?: Maybe<Scalars['ID']>;
|
|
/** Errors encountered during execution of the mutation. */
|
|
errors: Array<Scalars['String']>;
|
|
};
|
|
|
|
/** Autogenerated input type of FinishQuestion */
|
|
export type FinishQuestionInput = {
|
|
/** A unique identifier for the client performing the mutation. */
|
|
clientMutationId?: InputMaybe<Scalars['String']>;
|
|
questionId: Scalars['ID'];
|
|
};
|
|
|
|
/** Autogenerated return type of FinishQuestion */
|
|
export type FinishQuestionPayload = {
|
|
__typename?: 'FinishQuestionPayload';
|
|
/** A unique identifier for the client performing the mutation. */
|
|
clientMutationId?: Maybe<Scalars['String']>;
|
|
/** Errors encountered during execution of the mutation. */
|
|
errors: Array<Scalars['String']>;
|
|
question?: Maybe<Question>;
|
|
};
|
|
|
|
export type Mutation = {
|
|
__typename?: 'Mutation';
|
|
createQuestion?: Maybe<CreateQuestionPayload>;
|
|
createReviewMessage?: Maybe<CreateReviewMessagePayload>;
|
|
destroyQuestion?: Maybe<DestroyQuestionPayload>;
|
|
finishQuestion?: Maybe<FinishQuestionPayload>;
|
|
updateQuestion?: Maybe<UpdateQuestionPayload>;
|
|
};
|
|
|
|
|
|
export type MutationCreateQuestionArgs = {
|
|
input: CreateQuestionInput;
|
|
};
|
|
|
|
|
|
export type MutationCreateReviewMessageArgs = {
|
|
input: CreateReviewMessageInput;
|
|
};
|
|
|
|
|
|
export type MutationDestroyQuestionArgs = {
|
|
input: DestroyQuestionInput;
|
|
};
|
|
|
|
|
|
export type MutationFinishQuestionArgs = {
|
|
input: FinishQuestionInput;
|
|
};
|
|
|
|
|
|
export type MutationUpdateQuestionArgs = {
|
|
input: UpdateQuestionInput;
|
|
};
|
|
|
|
/** An object with an ID. */
|
|
export type Node = {
|
|
/** ID of the object. */
|
|
id: Scalars['ID'];
|
|
};
|
|
|
|
/** Information about pagination in a connection. */
|
|
export type PageInfo = {
|
|
__typename?: 'PageInfo';
|
|
/** When paginating forwards, the cursor to continue. */
|
|
endCursor?: Maybe<Scalars['String']>;
|
|
/** When paginating forwards, are there more items? */
|
|
hasNextPage: Scalars['Boolean'];
|
|
/** When paginating backwards, are there more items? */
|
|
hasPreviousPage: Scalars['Boolean'];
|
|
/** When paginating backwards, the cursor to continue. */
|
|
startCursor?: Maybe<Scalars['String']>;
|
|
};
|
|
|
|
export type Query = {
|
|
__typename?: 'Query';
|
|
currentUser?: Maybe<User>;
|
|
/** Fetches an object given its ID. */
|
|
node?: Maybe<Node>;
|
|
/** Fetches a list of objects given a list of IDs. */
|
|
nodes: Array<Maybe<Node>>;
|
|
questions: QuestionConnection;
|
|
reviewers: UserConnection;
|
|
subjects: SubjectConnection;
|
|
};
|
|
|
|
|
|
export type QueryNodeArgs = {
|
|
id: Scalars['ID'];
|
|
};
|
|
|
|
|
|
export type QueryNodesArgs = {
|
|
ids: Array<Scalars['ID']>;
|
|
};
|
|
|
|
|
|
export type QueryQuestionsArgs = {
|
|
after?: InputMaybe<Scalars['String']>;
|
|
before?: InputMaybe<Scalars['String']>;
|
|
first?: InputMaybe<Scalars['Int']>;
|
|
last?: InputMaybe<Scalars['Int']>;
|
|
where?: InputMaybe<QuestionWhereInput>;
|
|
};
|
|
|
|
|
|
export type QueryReviewersArgs = {
|
|
after?: InputMaybe<Scalars['String']>;
|
|
before?: InputMaybe<Scalars['String']>;
|
|
first?: InputMaybe<Scalars['Int']>;
|
|
last?: InputMaybe<Scalars['Int']>;
|
|
};
|
|
|
|
|
|
export type QuerySubjectsArgs = {
|
|
after?: InputMaybe<Scalars['String']>;
|
|
before?: InputMaybe<Scalars['String']>;
|
|
first?: InputMaybe<Scalars['Int']>;
|
|
last?: InputMaybe<Scalars['Int']>;
|
|
};
|
|
|
|
export type Question = Node & {
|
|
__typename?: 'Question';
|
|
alternatives: Array<QuestionAlternative>;
|
|
authorship?: Maybe<Scalars['String']>;
|
|
authorshipYear?: Maybe<Scalars['String']>;
|
|
bloomTaxonomy?: Maybe<QuestionBloomTaxonomy>;
|
|
body?: Maybe<Scalars['String']>;
|
|
checkType?: Maybe<QuestionCheckType>;
|
|
createdAt: Scalars['ISO8601DateTime'];
|
|
difficulty?: Maybe<QuestionDifficulty>;
|
|
explanation?: Maybe<Scalars['String']>;
|
|
id: Scalars['ID'];
|
|
instruction?: Maybe<Scalars['String']>;
|
|
intention?: Maybe<Scalars['String']>;
|
|
references?: Maybe<Scalars['String']>;
|
|
reviewMessages: ReviewMessageConnection;
|
|
reviewer?: Maybe<User>;
|
|
status: QuestionStatus;
|
|
subject?: Maybe<Subject>;
|
|
support?: Maybe<Scalars['String']>;
|
|
updatedAt: Scalars['ISO8601DateTime'];
|
|
user: User;
|
|
};
|
|
|
|
|
|
export type QuestionReviewMessagesArgs = {
|
|
after?: InputMaybe<Scalars['String']>;
|
|
before?: InputMaybe<Scalars['String']>;
|
|
first?: InputMaybe<Scalars['Int']>;
|
|
last?: InputMaybe<Scalars['Int']>;
|
|
};
|
|
|
|
export type QuestionAlternative = {
|
|
__typename?: 'QuestionAlternative';
|
|
correct: Scalars['Boolean'];
|
|
text?: Maybe<Scalars['String']>;
|
|
};
|
|
|
|
export type QuestionAlternativeInput = {
|
|
correct?: InputMaybe<Scalars['Boolean']>;
|
|
text?: InputMaybe<Scalars['String']>;
|
|
};
|
|
|
|
export enum QuestionBloomTaxonomy {
|
|
Analyze = 'ANALYZE',
|
|
Apply = 'APPLY',
|
|
Create = 'CREATE',
|
|
Evaluate = 'EVALUATE',
|
|
Remember = 'REMEMBER',
|
|
Understand = 'UNDERSTAND'
|
|
}
|
|
|
|
export enum QuestionCheckType {
|
|
AssertionAndReason = 'ASSERTION_AND_REASON',
|
|
Association = 'ASSOCIATION',
|
|
ConstantAlternatives = 'CONSTANT_ALTERNATIVES',
|
|
Gap = 'GAP',
|
|
IncompleteAffirmation = 'INCOMPLETE_AFFIRMATION',
|
|
Interpretation = 'INTERPRETATION',
|
|
MultipleAnswer = 'MULTIPLE_ANSWER',
|
|
NegativeFocus = 'NEGATIVE_FOCUS',
|
|
OrderingOrRanking = 'ORDERING_OR_RANKING',
|
|
UniqueAnswer = 'UNIQUE_ANSWER'
|
|
}
|
|
|
|
/** The connection type for Question. */
|
|
export type QuestionConnection = {
|
|
__typename?: 'QuestionConnection';
|
|
/** A list of edges. */
|
|
edges: Array<QuestionEdge>;
|
|
/** A list of nodes. */
|
|
nodes: Array<Question>;
|
|
/** Information to aid in pagination. */
|
|
pageInfo: PageInfo;
|
|
totalCount: Scalars['Int'];
|
|
};
|
|
|
|
export type QuestionCreateInput = {
|
|
alternatives: Array<QuestionAlternativeInput>;
|
|
authorship: Scalars['String'];
|
|
authorshipYear: Scalars['String'];
|
|
bloomTaxonomy?: InputMaybe<QuestionBloomTaxonomy>;
|
|
body: Scalars['String'];
|
|
checkType?: InputMaybe<QuestionCheckType>;
|
|
difficulty?: InputMaybe<QuestionDifficulty>;
|
|
explanation: Scalars['String'];
|
|
instruction: Scalars['String'];
|
|
intention?: InputMaybe<Scalars['String']>;
|
|
references: Scalars['String'];
|
|
reviewerUserId?: InputMaybe<Scalars['ID']>;
|
|
status: QuestionStatus;
|
|
subjectId?: InputMaybe<Scalars['ID']>;
|
|
support: Scalars['String'];
|
|
};
|
|
|
|
export enum QuestionDifficulty {
|
|
Easy = 'EASY',
|
|
Hard = 'HARD',
|
|
Medium = 'MEDIUM'
|
|
}
|
|
|
|
/** An edge in a connection. */
|
|
export type QuestionEdge = {
|
|
__typename?: 'QuestionEdge';
|
|
/** A cursor for use in pagination. */
|
|
cursor: Scalars['String'];
|
|
/** The item at the end of the edge. */
|
|
node?: Maybe<Question>;
|
|
};
|
|
|
|
export enum QuestionStatus {
|
|
Approved = 'APPROVED',
|
|
Draft = 'DRAFT',
|
|
Registered = 'REGISTERED',
|
|
WaitingReview = 'WAITING_REVIEW',
|
|
WithRequestedChanges = 'WITH_REQUESTED_CHANGES'
|
|
}
|
|
|
|
export type QuestionUpdateInput = {
|
|
alternatives: Array<QuestionAlternativeInput>;
|
|
authorship: Scalars['String'];
|
|
authorshipYear: Scalars['String'];
|
|
bloomTaxonomy?: InputMaybe<QuestionBloomTaxonomy>;
|
|
body: Scalars['String'];
|
|
checkType?: InputMaybe<QuestionCheckType>;
|
|
difficulty?: InputMaybe<QuestionDifficulty>;
|
|
explanation: Scalars['String'];
|
|
id: Scalars['ID'];
|
|
instruction: Scalars['String'];
|
|
intention?: InputMaybe<Scalars['String']>;
|
|
references: Scalars['String'];
|
|
reviewerUserId?: InputMaybe<Scalars['ID']>;
|
|
status: QuestionStatus;
|
|
subjectId?: InputMaybe<Scalars['ID']>;
|
|
support: Scalars['String'];
|
|
};
|
|
|
|
export type QuestionWhereInput = {
|
|
authorshipYear?: InputMaybe<Array<Scalars['String']>>;
|
|
bloomTaxonomy?: InputMaybe<Array<QuestionBloomTaxonomy>>;
|
|
checkType?: InputMaybe<Array<QuestionCheckType>>;
|
|
createDate?: InputMaybe<DateRangeInput>;
|
|
difficulty?: InputMaybe<Array<QuestionDifficulty>>;
|
|
status?: InputMaybe<Array<QuestionStatus>>;
|
|
subjectId?: InputMaybe<Scalars['ID']>;
|
|
unifesoAuthorship?: InputMaybe<Scalars['Boolean']>;
|
|
userId?: InputMaybe<Scalars['ID']>;
|
|
};
|
|
|
|
export type ReviewMessage = {
|
|
__typename?: 'ReviewMessage';
|
|
createdAt: Scalars['ISO8601DateTime'];
|
|
feedbackType: ReviewMessageFeedbackType;
|
|
id: Scalars['ID'];
|
|
question: Question;
|
|
text: Scalars['String'];
|
|
updatedAt: Scalars['ISO8601DateTime'];
|
|
user: User;
|
|
};
|
|
|
|
/** The connection type for ReviewMessage. */
|
|
export type ReviewMessageConnection = {
|
|
__typename?: 'ReviewMessageConnection';
|
|
/** A list of edges. */
|
|
edges: Array<ReviewMessageEdge>;
|
|
/** A list of nodes. */
|
|
nodes: Array<ReviewMessage>;
|
|
/** Information to aid in pagination. */
|
|
pageInfo: PageInfo;
|
|
totalCount: Scalars['Int'];
|
|
};
|
|
|
|
/** An edge in a connection. */
|
|
export type ReviewMessageEdge = {
|
|
__typename?: 'ReviewMessageEdge';
|
|
/** A cursor for use in pagination. */
|
|
cursor: Scalars['String'];
|
|
/** The item at the end of the edge. */
|
|
node?: Maybe<ReviewMessage>;
|
|
};
|
|
|
|
export enum ReviewMessageFeedbackType {
|
|
Answer = 'ANSWER',
|
|
Approve = 'APPROVE',
|
|
RequestChanges = 'REQUEST_CHANGES'
|
|
}
|
|
|
|
export type ReviewMessageInput = {
|
|
feedbackType: ReviewMessageFeedbackType;
|
|
questionId: Scalars['ID'];
|
|
text: Scalars['String'];
|
|
};
|
|
|
|
export type Subject = {
|
|
__typename?: 'Subject';
|
|
axis: Axis;
|
|
category: Category;
|
|
id: Scalars['ID'];
|
|
name: Scalars['String'];
|
|
questions: QuestionConnection;
|
|
};
|
|
|
|
|
|
export type SubjectQuestionsArgs = {
|
|
after?: InputMaybe<Scalars['String']>;
|
|
before?: InputMaybe<Scalars['String']>;
|
|
first?: InputMaybe<Scalars['Int']>;
|
|
last?: InputMaybe<Scalars['Int']>;
|
|
where?: InputMaybe<QuestionWhereInput>;
|
|
};
|
|
|
|
/** The connection type for Subject. */
|
|
export type SubjectConnection = {
|
|
__typename?: 'SubjectConnection';
|
|
/** A list of edges. */
|
|
edges: Array<SubjectEdge>;
|
|
/** A list of nodes. */
|
|
nodes: Array<Subject>;
|
|
/** Information to aid in pagination. */
|
|
pageInfo: PageInfo;
|
|
totalCount: Scalars['Int'];
|
|
};
|
|
|
|
/** An edge in a connection. */
|
|
export type SubjectEdge = {
|
|
__typename?: 'SubjectEdge';
|
|
/** A cursor for use in pagination. */
|
|
cursor: Scalars['String'];
|
|
/** The item at the end of the edge. */
|
|
node?: Maybe<Subject>;
|
|
};
|
|
|
|
/** Autogenerated input type of UpdateQuestion */
|
|
export type UpdateQuestionInput = {
|
|
/** A unique identifier for the client performing the mutation. */
|
|
clientMutationId?: InputMaybe<Scalars['String']>;
|
|
question: QuestionUpdateInput;
|
|
};
|
|
|
|
/** Autogenerated return type of UpdateQuestion */
|
|
export type UpdateQuestionPayload = {
|
|
__typename?: 'UpdateQuestionPayload';
|
|
/** A unique identifier for the client performing the mutation. */
|
|
clientMutationId?: Maybe<Scalars['String']>;
|
|
/** Errors encountered during execution of the mutation. */
|
|
errors: Array<Scalars['String']>;
|
|
question?: Maybe<Question>;
|
|
};
|
|
|
|
export type User = {
|
|
__typename?: 'User';
|
|
avatarUrl?: Maybe<Scalars['String']>;
|
|
email: Scalars['String'];
|
|
id: Scalars['ID'];
|
|
name: Scalars['String'];
|
|
roles: Array<UserRole>;
|
|
};
|
|
|
|
/** The connection type for User. */
|
|
export type UserConnection = {
|
|
__typename?: 'UserConnection';
|
|
/** A list of edges. */
|
|
edges: Array<UserEdge>;
|
|
/** A list of nodes. */
|
|
nodes: Array<User>;
|
|
/** Information to aid in pagination. */
|
|
pageInfo: PageInfo;
|
|
totalCount: Scalars['Int'];
|
|
};
|
|
|
|
/** An edge in a connection. */
|
|
export type UserEdge = {
|
|
__typename?: 'UserEdge';
|
|
/** A cursor for use in pagination. */
|
|
cursor: Scalars['String'];
|
|
/** The item at the end of the edge. */
|
|
node?: Maybe<User>;
|
|
};
|
|
|
|
export enum UserRole {
|
|
Admin = 'ADMIN',
|
|
CenterDirector = 'CENTER_DIRECTOR',
|
|
Coordinator = 'COORDINATOR',
|
|
Nde = 'NDE',
|
|
ProRector = 'PRO_RECTOR',
|
|
Teacher = 'TEACHER'
|
|
}
|