@quesmed/types 1.6.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/models/Card.d.ts +2 -2
- package/dist/cjs/models/Chapter.d.ts +5 -3
- package/dist/cjs/models/Concept.d.ts +2 -10
- package/dist/cjs/models/File.d.ts +2 -2
- package/dist/cjs/models/Marksheet.d.ts +17 -28
- package/dist/cjs/models/Marksheet.js +0 -7
- package/dist/cjs/models/MockTest.d.ts +1 -0
- package/dist/cjs/models/OsceMarksheet.d.ts +2 -2
- package/dist/cjs/models/OsceStation.d.ts +11 -9
- package/dist/cjs/models/Picture.d.ts +0 -33
- package/dist/cjs/models/Question.d.ts +27 -2
- package/dist/cjs/models/Question.js +7 -1
- package/dist/cjs/models/Todo.d.ts +10 -1
- package/dist/cjs/models/Token.d.ts +2 -0
- package/dist/cjs/models/Topic.d.ts +16 -1
- package/dist/cjs/models/User.d.ts +34 -20
- package/dist/cjs/models/Video.d.ts +1 -0
- package/dist/cjs/resolvers/fragments/chapter.d.ts +0 -1
- package/dist/cjs/resolvers/fragments/chapter.js +8 -14
- package/dist/cjs/resolvers/fragments/osce.js +5 -6
- package/dist/cjs/resolvers/fragments/picture.d.ts +0 -2
- package/dist/cjs/resolvers/fragments/picture.js +1 -23
- package/dist/cjs/resolvers/fragments/user.js +13 -0
- package/dist/cjs/resolvers/fragments/video.js +3 -2
- package/dist/cjs/resolvers/mutation/admin/algoliaSync.d.ts +5 -6
- package/dist/cjs/resolvers/mutation/admin/token.d.ts +3 -2
- package/dist/cjs/resolvers/mutation/restricted/contactUs.d.ts +6 -5
- package/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +9 -11
- package/dist/cjs/resolvers/mutation/restricted/mockTest.d.ts +5 -4
- package/dist/cjs/resolvers/mutation/restricted/questionDiscussion.d.ts +6 -10
- package/dist/cjs/resolvers/mutation/restricted/todo.d.ts +6 -22
- package/dist/cjs/resolvers/mutation/restricted/todo.js +0 -26
- package/dist/cjs/resolvers/mutation/restricted/token.d.ts +5 -5
- package/dist/cjs/resolvers/mutation/restricted/users.d.ts +5 -8
- package/dist/cjs/resolvers/mutation/restricted/video.d.ts +3 -5
- package/dist/cjs/resolvers/mutation/stripe.d.ts +3 -2
- package/dist/cjs/resolvers/mutation/users.d.ts +5 -4
- package/dist/cjs/resolvers/mutation/validUserToken/user.d.ts +11 -5
- package/dist/cjs/resolvers/query/admin/getUserToken.d.ts +2 -1
- package/dist/cjs/resolvers/query/author.d.ts +2 -2
- package/dist/cjs/resolvers/query/book.d.ts +4 -2
- package/dist/cjs/resolvers/query/feedback.d.ts +2 -2
- package/dist/cjs/resolvers/query/restricted/index.d.ts +0 -1
- package/dist/cjs/resolvers/query/restricted/index.js +0 -1
- package/dist/cjs/resolvers/query/restricted/marksheet.d.ts +8 -8
- package/dist/cjs/resolvers/query/restricted/mockTests.d.ts +4 -4
- package/dist/cjs/resolvers/query/restricted/osce.d.ts +3 -3
- package/dist/cjs/resolvers/query/restricted/quesBook.d.ts +1 -1
- package/dist/cjs/resolvers/query/restricted/replication.d.ts +2 -3
- package/dist/cjs/resolvers/query/restricted/todos.d.ts +6 -5
- package/dist/cjs/resolvers/query/restricted/topics.d.ts +3 -13
- package/dist/cjs/resolvers/query/restricted/university.d.ts +2 -2
- package/dist/cjs/resolvers/query/restricted/user.d.ts +5 -17
- package/dist/cjs/resolvers/query/restricted/video.d.ts +3 -2
- package/dist/cjs/resolvers/query/subscription.d.ts +2 -2
- package/dist/cjs/resolvers/query/university.d.ts +2 -1
- package/dist/cjs/resolvers/query/user.d.ts +4 -3
- package/dist/cjs/resolvers/query/video.d.ts +4 -3
- package/dist/cjs/utils/lightgallery.js +1 -1
- package/dist/mjs/models/Card.d.ts +2 -2
- package/dist/mjs/models/Chapter.d.ts +5 -3
- package/dist/mjs/models/Concept.d.ts +2 -10
- package/dist/mjs/models/File.d.ts +2 -2
- package/dist/mjs/models/Marksheet.d.ts +17 -28
- package/dist/mjs/models/Marksheet.js +1 -6
- package/dist/mjs/models/MockTest.d.ts +1 -0
- package/dist/mjs/models/OsceMarksheet.d.ts +2 -2
- package/dist/mjs/models/OsceStation.d.ts +11 -9
- package/dist/mjs/models/Picture.d.ts +0 -33
- package/dist/mjs/models/Question.d.ts +27 -2
- package/dist/mjs/models/Question.js +6 -0
- package/dist/mjs/models/Todo.d.ts +10 -1
- package/dist/mjs/models/Token.d.ts +2 -0
- package/dist/mjs/models/Topic.d.ts +16 -1
- package/dist/mjs/models/User.d.ts +34 -20
- package/dist/mjs/models/Video.d.ts +1 -0
- package/dist/mjs/resolvers/fragments/chapter.d.ts +0 -1
- package/dist/mjs/resolvers/fragments/chapter.js +8 -14
- package/dist/mjs/resolvers/fragments/osce.js +6 -7
- package/dist/mjs/resolvers/fragments/picture.d.ts +0 -2
- package/dist/mjs/resolvers/fragments/picture.js +0 -22
- package/dist/mjs/resolvers/fragments/user.js +13 -0
- package/dist/mjs/resolvers/fragments/video.js +4 -3
- package/dist/mjs/resolvers/mutation/admin/algoliaSync.d.ts +5 -6
- package/dist/mjs/resolvers/mutation/admin/token.d.ts +3 -2
- package/dist/mjs/resolvers/mutation/restricted/contactUs.d.ts +6 -5
- package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +9 -11
- package/dist/mjs/resolvers/mutation/restricted/mockTest.d.ts +5 -4
- package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.d.ts +6 -10
- package/dist/mjs/resolvers/mutation/restricted/todo.d.ts +6 -22
- package/dist/mjs/resolvers/mutation/restricted/todo.js +1 -24
- package/dist/mjs/resolvers/mutation/restricted/token.d.ts +5 -5
- package/dist/mjs/resolvers/mutation/restricted/users.d.ts +5 -8
- package/dist/mjs/resolvers/mutation/restricted/video.d.ts +3 -5
- package/dist/mjs/resolvers/mutation/stripe.d.ts +3 -2
- package/dist/mjs/resolvers/mutation/users.d.ts +5 -4
- package/dist/mjs/resolvers/mutation/validUserToken/user.d.ts +11 -5
- package/dist/mjs/resolvers/query/admin/getUserToken.d.ts +2 -1
- package/dist/mjs/resolvers/query/author.d.ts +2 -2
- package/dist/mjs/resolvers/query/book.d.ts +4 -2
- package/dist/mjs/resolvers/query/feedback.d.ts +2 -2
- package/dist/mjs/resolvers/query/restricted/index.d.ts +0 -1
- package/dist/mjs/resolvers/query/restricted/index.js +0 -1
- package/dist/mjs/resolvers/query/restricted/marksheet.d.ts +8 -8
- package/dist/mjs/resolvers/query/restricted/mockTests.d.ts +4 -4
- package/dist/mjs/resolvers/query/restricted/osce.d.ts +3 -3
- package/dist/mjs/resolvers/query/restricted/quesBook.d.ts +1 -1
- package/dist/mjs/resolvers/query/restricted/replication.d.ts +2 -3
- package/dist/mjs/resolvers/query/restricted/todos.d.ts +6 -5
- package/dist/mjs/resolvers/query/restricted/topics.d.ts +3 -13
- package/dist/mjs/resolvers/query/restricted/university.d.ts +2 -2
- package/dist/mjs/resolvers/query/restricted/user.d.ts +5 -17
- package/dist/mjs/resolvers/query/restricted/video.d.ts +3 -2
- package/dist/mjs/resolvers/query/subscription.d.ts +2 -2
- package/dist/mjs/resolvers/query/university.d.ts +2 -1
- package/dist/mjs/resolvers/query/user.d.ts +4 -3
- package/dist/mjs/resolvers/query/video.d.ts +4 -3
- package/dist/mjs/utils/lightgallery.js +1 -1
- package/package.json +3 -1
- package/dist/cjs/resolvers/query/restricted/anatomy.d.ts +0 -3
- package/dist/cjs/resolvers/query/restricted/anatomy.js +0 -2
- package/dist/mjs/resolvers/query/restricted/anatomy.d.ts +0 -3
- package/dist/mjs/resolvers/query/restricted/anatomy.js +0 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { AdminData } from '../../types';
|
|
1
2
|
export declare type IUpdateCardsDataInAlgoliaVar = void;
|
|
2
|
-
export declare type IUpdateCardsDataInAlgoliaData = string
|
|
3
|
+
export declare type IUpdateCardsDataInAlgoliaData = AdminData<string, 'updateCardsDataInAlgolia'>;
|
|
3
4
|
export declare type IUpdateQuestionsDataInAlgoliaVar = void;
|
|
4
|
-
export declare type IUpdateQuestionsDataInAlgoliaData = string
|
|
5
|
+
export declare type IUpdateQuestionsDataInAlgoliaData = AdminData<string, 'updateQuestionsDataInAlgolia'>;
|
|
5
6
|
export declare type IUpdateQuesBookDataInAlgoliaVar = void;
|
|
6
|
-
export declare type IUpdateQuesBookDataInAlgoliaData = string
|
|
7
|
+
export declare type IUpdateQuesBookDataInAlgoliaData = AdminData<string, 'updateDataInAlgolia'>;
|
|
7
8
|
export declare type IUpdateVideoDataInAlgoliaVar = void;
|
|
8
|
-
export declare type IUpdateVideoDataInAlgoliaData = string
|
|
9
|
-
export declare type IClearConceptExplanationCacheVar = void;
|
|
10
|
-
export declare type IClearConceptExplanationCacheData = string;
|
|
9
|
+
export declare type IUpdateVideoDataInAlgoliaData = AdminData<string, 'updateVideoDataInAlgolia'>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AdminData } from './../../types';
|
|
1
2
|
export interface IFCMNotification {
|
|
2
3
|
data?: {
|
|
3
4
|
url?: string;
|
|
@@ -16,9 +17,9 @@ export interface ISendTopicNotificationInput extends ISendPushNotificationInput
|
|
|
16
17
|
export interface ISendPushNotificationVar {
|
|
17
18
|
data: ISendPushNotificationInput;
|
|
18
19
|
}
|
|
19
|
-
export declare type ISendPushNotificationData = string
|
|
20
|
+
export declare type ISendPushNotificationData = AdminData<string, 'sendPushNotification'>;
|
|
20
21
|
export interface ISendTopicNotificationVar {
|
|
21
22
|
data: ISendTopicNotificationInput;
|
|
22
23
|
topic: string;
|
|
23
24
|
}
|
|
24
|
-
export declare type ISendTopicNotificationData = string
|
|
25
|
+
export declare type ISendTopicNotificationData = AdminData<string, 'sendTopicNotification'>;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { RestrictedData } from '../../types';
|
|
2
|
+
interface IAttachment {
|
|
2
3
|
title: string;
|
|
3
4
|
title_link: string;
|
|
4
5
|
text: string;
|
|
5
6
|
}
|
|
6
|
-
export interface
|
|
7
|
+
export interface ISupportTicket {
|
|
7
8
|
text: string;
|
|
8
|
-
attachments:
|
|
9
|
+
attachments: IAttachment[];
|
|
9
10
|
}
|
|
10
11
|
export interface IContactUsVar {
|
|
11
|
-
slack:
|
|
12
|
+
slack: ISupportTicket;
|
|
12
13
|
subject: string;
|
|
13
14
|
message: string;
|
|
14
15
|
}
|
|
15
|
-
export declare type IContactUsData = string
|
|
16
|
+
export declare type IContactUsData = RestrictedData<string, 'contactUs'>;
|
|
16
17
|
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Id } from '../../../models';
|
|
2
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
|
+
import { IMarksheet } from './../../../models/Marksheet';
|
|
4
|
+
import { IUserFlaggedQuestion } from './../../../models/User';
|
|
2
5
|
export interface IPreBuildMarksheet {
|
|
3
6
|
unseen: number;
|
|
4
7
|
seenCorrect: number;
|
|
@@ -11,16 +14,11 @@ export interface IBuildMarksheetInput extends IPreBuildMarksheet {
|
|
|
11
14
|
export interface IBuildMarksheetVar {
|
|
12
15
|
buildMarksheet: IBuildMarksheetInput;
|
|
13
16
|
}
|
|
14
|
-
export declare type IBuildMarksheetData =
|
|
17
|
+
export declare type IBuildMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'buildMarksheet'>;
|
|
15
18
|
export interface IReBuildMarksheetVar {
|
|
16
19
|
marksheetId: number;
|
|
17
20
|
}
|
|
18
|
-
export declare type IReBuildMarksheetData =
|
|
19
|
-
export interface IUpvoteChoiceVar {
|
|
20
|
-
questionId: number;
|
|
21
|
-
questionChoiceId: number;
|
|
22
|
-
}
|
|
23
|
-
export declare type IUpvoteChoiceData = string;
|
|
21
|
+
export declare type IReBuildMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'reBuildMarksheet'>;
|
|
24
22
|
export interface IMarksheetInput {
|
|
25
23
|
marksheetId: Id;
|
|
26
24
|
questionId: Id;
|
|
@@ -29,15 +27,15 @@ export interface IMarksheetInput {
|
|
|
29
27
|
timeTaken: number;
|
|
30
28
|
}
|
|
31
29
|
export interface ISaveMarksheetsVar {
|
|
32
|
-
|
|
30
|
+
marksheetInput: IMarksheetInput[];
|
|
33
31
|
}
|
|
34
|
-
export declare type ISaveMarksheetsData =
|
|
32
|
+
export declare type ISaveMarksheetsData = RestrictedData<(graphqlNormalize & IMarksheet)[], 'saveMarksheets'>;
|
|
35
33
|
export interface IAddFlaggedQuestionVar {
|
|
36
34
|
markId: number;
|
|
37
35
|
questionId: number;
|
|
38
36
|
}
|
|
39
|
-
export declare type IAddFlaggedQuestionData =
|
|
37
|
+
export declare type IAddFlaggedQuestionData = RestrictedData<graphqlNormalize & IUserFlaggedQuestion, 'addFlaggedQuestion'>;
|
|
40
38
|
export interface IRemoveFlaggedQuestionVar {
|
|
41
39
|
id: Id;
|
|
42
40
|
}
|
|
43
|
-
export declare type IRemoveFlaggedQuestionData =
|
|
41
|
+
export declare type IRemoveFlaggedQuestionData = RestrictedData<graphqlNormalize & IUserFlaggedQuestion, 'removeFlaggedQuestion'>;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { Id } from '../../../models';
|
|
1
|
+
import { Id, IMarksheet, IMarksheetMark } from '../../../models';
|
|
2
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
3
|
export interface IBuildMockTestMarksheetVar {
|
|
3
4
|
mockTestId: Id;
|
|
4
5
|
duration: number;
|
|
5
6
|
}
|
|
6
|
-
export declare type IBuildMockTestMarksheetData =
|
|
7
|
+
export declare type IBuildMockTestMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'buildMockTestMarksheet'>;
|
|
7
8
|
export interface IToggleFlaggedMarkVar {
|
|
8
9
|
markId: Id;
|
|
9
10
|
isFlagged: boolean;
|
|
10
11
|
}
|
|
11
|
-
export declare type IToggleFlaggedMarkData =
|
|
12
|
+
export declare type IToggleFlaggedMarkData = RestrictedData<graphqlNormalize & IMarksheetMark, 'toggleFlaggedMark'>;
|
|
12
13
|
export interface IEndMockTestVar {
|
|
13
14
|
marksheetId: Id;
|
|
14
15
|
}
|
|
15
|
-
export declare type IEndMockTestData =
|
|
16
|
+
export declare type IEndMockTestData = RestrictedData<graphqlNormalize & IMarksheet, 'endMockTest'>;
|
|
@@ -1,28 +1,24 @@
|
|
|
1
|
-
import { EQuestionLike, Id,
|
|
1
|
+
import { EQuestionLike, Id, IQuestion, IQuestionComment } from '../../../models';
|
|
2
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
3
|
export interface IQuestionLikeVar {
|
|
3
4
|
questionId: Id;
|
|
4
5
|
like: EQuestionLike;
|
|
5
6
|
}
|
|
6
|
-
export
|
|
7
|
-
}
|
|
7
|
+
export declare type IQuestionLikeData = RestrictedData<graphqlNormalize & IQuestion, 'questionLike'>;
|
|
8
8
|
export interface IQuestionCommentsVar {
|
|
9
9
|
questionId: Id;
|
|
10
10
|
parentId: Id;
|
|
11
11
|
comment: string;
|
|
12
12
|
anonymous: boolean;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
15
|
-
commentHeldForReview: boolean;
|
|
16
|
-
refreshedDiscussion: IDiscussion;
|
|
17
|
-
}
|
|
14
|
+
export declare type IQuestionCommentsData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionComments'>;
|
|
18
15
|
export interface IQuestionCommentsLikeVar {
|
|
19
16
|
commentId: Id;
|
|
20
17
|
like: EQuestionLike;
|
|
21
18
|
}
|
|
22
|
-
export
|
|
23
|
-
}
|
|
19
|
+
export declare type IQuestionCommentsLikeData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionCommentLike'>;
|
|
24
20
|
export interface IQuestionCommentRemoveVar {
|
|
25
21
|
commentId: Id;
|
|
26
22
|
userId: Id;
|
|
27
23
|
}
|
|
28
|
-
export declare type IQuestionCommentRemoveData =
|
|
24
|
+
export declare type IQuestionCommentRemoveData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionCommentRemove'>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ApolloCache } from '@apollo/client';
|
|
2
1
|
import { Id, ITodo } from '../../../models';
|
|
3
|
-
import {
|
|
2
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
4
3
|
export interface IBuildTodoInput {
|
|
5
4
|
unseen: number;
|
|
6
5
|
seen: number;
|
|
@@ -9,16 +8,7 @@ export interface IBuildTodoInput {
|
|
|
9
8
|
export interface IBuildTodoVar {
|
|
10
9
|
buildTodo: IBuildTodoInput;
|
|
11
10
|
}
|
|
12
|
-
export declare type IBuildTodoData =
|
|
13
|
-
export interface IScoreCardInput {
|
|
14
|
-
cardId: Id;
|
|
15
|
-
score: number;
|
|
16
|
-
timeTaken: number;
|
|
17
|
-
}
|
|
18
|
-
export interface IScoreCardVar {
|
|
19
|
-
mark: IScoreCardInput;
|
|
20
|
-
}
|
|
21
|
-
export declare type IScoreCardData = string;
|
|
11
|
+
export declare type IBuildTodoData = RestrictedData<graphqlNormalize & ITodo, 'buildTodo'>;
|
|
22
12
|
export interface ITodoInput {
|
|
23
13
|
todoId: number;
|
|
24
14
|
cardId: number;
|
|
@@ -28,21 +18,15 @@ export interface ITodoInput {
|
|
|
28
18
|
export interface ISaveTodosVar {
|
|
29
19
|
todos: ITodoInput[];
|
|
30
20
|
}
|
|
31
|
-
export declare type ISaveTodosData =
|
|
32
|
-
export declare function saveTodosCache(cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<{
|
|
33
|
-
saveTodos: ISaveTodosData;
|
|
34
|
-
}>, options: ApolloUpdateOptions): void;
|
|
21
|
+
export declare type ISaveTodosData = RestrictedData<(graphqlNormalize & ITodo)[], 'saveTodos'>;
|
|
35
22
|
export interface IAddToDailyStackVar {
|
|
36
23
|
concepts: number[];
|
|
37
24
|
}
|
|
38
|
-
export
|
|
39
|
-
}
|
|
25
|
+
export declare type IAddToDailyStackData = RestrictedData<graphqlNormalize & ITodo, 'addToDailyStack'>;
|
|
40
26
|
export interface IRemoveFromDailyStackVar {
|
|
41
27
|
cardId: Id;
|
|
42
28
|
todoId: Id;
|
|
43
29
|
}
|
|
44
|
-
export
|
|
45
|
-
}
|
|
30
|
+
export declare type IRemoveFromDailyStackData = RestrictedData<graphqlNormalize & ITodo, 'removeFromDailyStack'>;
|
|
46
31
|
export declare type IRefreshDailyTaskVar = null;
|
|
47
|
-
export
|
|
48
|
-
}
|
|
32
|
+
export declare type IRefreshDailyTaskData = RestrictedData<graphqlNormalize & ITodo, 'refreshDailyTask'>;
|
|
@@ -1,28 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.saveTodosCache = void 0;
|
|
4
|
-
const client_1 = require("@apollo/client");
|
|
5
|
-
function saveTodosCache(cache, result, options) {
|
|
6
|
-
const todoMarkIds = result.data?.restricted.saveTodos;
|
|
7
|
-
if (!options.variables || !todoMarkIds) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
for (let i = 0; i < todoMarkIds.length; i++) {
|
|
11
|
-
const todoMark = options.variables.todos[i];
|
|
12
|
-
const todoMarkId = todoMarkIds[i];
|
|
13
|
-
cache.writeFragment({
|
|
14
|
-
id: cache.identify({ id: todoMarkId, __typename: 'TodoMark' }),
|
|
15
|
-
data: {
|
|
16
|
-
score: todoMark.score,
|
|
17
|
-
timeTaken: todoMark.timeTaken || 0,
|
|
18
|
-
},
|
|
19
|
-
fragment: (0, client_1.gql) `
|
|
20
|
-
fragment NewTodoMark on TodoMark {
|
|
21
|
-
score
|
|
22
|
-
timeTaken
|
|
23
|
-
}
|
|
24
|
-
`,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.saveTodosCache = saveTodosCache;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { IToken } from '../../../models';
|
|
2
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
3
|
export interface IUpsertTokenVar {
|
|
3
4
|
token: string;
|
|
4
5
|
deviceId: string;
|
|
5
6
|
}
|
|
6
|
-
export
|
|
7
|
-
}
|
|
7
|
+
export declare type IUpsertTokenData = RestrictedData<graphqlNormalize & IToken, 'upsertToken'>;
|
|
8
8
|
export interface IRemoveTokenVar {
|
|
9
9
|
token: string;
|
|
10
10
|
}
|
|
11
|
-
export declare type IRemoveTokenData = string
|
|
11
|
+
export declare type IRemoveTokenData = RestrictedData<string, 'removeToken'>;
|
|
12
12
|
export interface ISubscribeFCMTopicVar {
|
|
13
13
|
token: string;
|
|
14
14
|
topic: string;
|
|
15
15
|
}
|
|
16
|
-
export declare type ISubscribeFCMTopicData = string
|
|
16
|
+
export declare type ISubscribeFCMTopicData = RestrictedData<string, 'subscribeFCMTopic'>;
|
|
17
17
|
export interface IUnsubscribeFCMTopicVar {
|
|
18
18
|
token: string;
|
|
19
19
|
topic: string;
|
|
20
20
|
}
|
|
21
|
-
export declare type IUnsubscribeFCMTopicData = string
|
|
21
|
+
export declare type IUnsubscribeFCMTopicData = RestrictedData<string, 'unsubscribeFCMTopic'>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { IUser } from '../../../models';
|
|
2
|
-
import { RestrictedData } from '../../types';
|
|
2
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
export interface IResetProgressVar {
|
|
4
4
|
questions?: boolean;
|
|
5
5
|
cards?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
8
|
-
}
|
|
7
|
+
export declare type IResetProgressData = RestrictedData<graphqlNormalize & IUser, 'resetProgress'>;
|
|
9
8
|
export interface IUserInput {
|
|
10
9
|
displayName?: string;
|
|
11
10
|
firstName?: string;
|
|
@@ -22,11 +21,9 @@ export interface IUpdateUserVar {
|
|
|
22
21
|
id?: number;
|
|
23
22
|
data: IUserInput;
|
|
24
23
|
}
|
|
25
|
-
export declare type IUpdateUserData = string
|
|
26
|
-
export
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
export declare type IRenewTokenData = string;
|
|
24
|
+
export declare type IUpdateUserData = RestrictedData<string, 'updateUser'>;
|
|
25
|
+
export declare type IRenewTokenVar = null;
|
|
26
|
+
export declare type IRenewTokenData = RestrictedData<string, 'renewToken'>;
|
|
30
27
|
export declare const TOC_ACCEPT: import("@apollo/client").DocumentNode;
|
|
31
28
|
export declare type ITocAcceptVar = null;
|
|
32
29
|
export declare type ITocAcceptData = RestrictedData<string, 'tocAccept'>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { Id } from '../../../models';
|
|
1
|
+
import { Id, IVideo } from '../../../models';
|
|
2
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
3
|
export interface IVideoWatchedVar {
|
|
3
4
|
id: Id;
|
|
4
5
|
}
|
|
5
|
-
export
|
|
6
|
-
total: number;
|
|
7
|
-
today: number;
|
|
8
|
-
}
|
|
6
|
+
export declare type IVideoWatchedData = RestrictedData<graphqlNormalize & IVideo, 'videoWatched'>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { RootData } from './../types';
|
|
1
2
|
export declare type ICustomerPortalVar = null;
|
|
2
|
-
export declare type ICustomerPortalData = string
|
|
3
|
+
export declare type ICustomerPortalData = RootData<string, 'customerPortal'>;
|
|
3
4
|
export interface IStripeLineItem {
|
|
4
5
|
price: string;
|
|
5
6
|
quantity: number;
|
|
@@ -7,4 +8,4 @@ export interface IStripeLineItem {
|
|
|
7
8
|
export interface IStripeHomepageCheckoutSessionVar {
|
|
8
9
|
lineItems: IStripeLineItem[];
|
|
9
10
|
}
|
|
10
|
-
export declare type IStripeHomepageCheckoutSessionData = string
|
|
11
|
+
export declare type IStripeHomepageCheckoutSessionData = RootData<string, 'stripeHomepageCheckoutSession'>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { RootData } from '../types';
|
|
1
2
|
export interface ILoginUserVar {
|
|
2
3
|
username: string;
|
|
3
4
|
password: string;
|
|
4
5
|
days: number;
|
|
5
6
|
}
|
|
6
|
-
export declare type ILoginUserData = string
|
|
7
|
+
export declare type ILoginUserData = RootData<string, 'loginUser'>;
|
|
7
8
|
export interface RegisterUserInput {
|
|
8
9
|
displayName: string;
|
|
9
10
|
username: string;
|
|
@@ -19,13 +20,13 @@ export interface RegisterUserInput {
|
|
|
19
20
|
export interface IRegisterUserVar {
|
|
20
21
|
userData: RegisterUserInput;
|
|
21
22
|
}
|
|
22
|
-
export declare type IRegisterUserData = string
|
|
23
|
+
export declare type IRegisterUserData = RootData<string, 'registerUser'>;
|
|
23
24
|
export interface IResetPasswordPrepVar {
|
|
24
25
|
username: string;
|
|
25
26
|
}
|
|
26
|
-
export declare type IResetPasswordPrepData = string
|
|
27
|
+
export declare type IResetPasswordPrepData = RootData<string, 'resetPasswordPrep'>;
|
|
27
28
|
export interface IResetPasswordVar {
|
|
28
29
|
token: string;
|
|
29
30
|
password: string;
|
|
30
31
|
}
|
|
31
|
-
export declare type IResetPasswordData = string
|
|
32
|
+
export declare type IResetPasswordData = RootData<string, 'resetPassword'>;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export interface ICreateNewSubscriptionCheckoutSessionVar {
|
|
2
2
|
priceId: string;
|
|
3
3
|
}
|
|
4
|
-
export declare type ICreateNewSubscriptionCheckoutSessionData =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
4
|
+
export declare type ICreateNewSubscriptionCheckoutSessionData = {
|
|
5
|
+
validUserToken: {
|
|
6
|
+
createNewSubscriptionCheckoutSession: string | null;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare type IRenewTokenVar = null;
|
|
10
|
+
export declare type IRenewTokenData = {
|
|
11
|
+
validUserToken: {
|
|
12
|
+
renewToken: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IAuthor } from '../../models';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { graphqlNormalize, RootData } from '../types';
|
|
3
|
+
export declare type IAuthorsData = RootData<(graphqlNormalize & IAuthor)[], 'authors'>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { IBook } from '../../models';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { graphqlNormalize, RootData } from './../types';
|
|
3
|
+
export declare type IBooksData = RootData<(graphqlNormalize & IBook)[], 'book'>;
|
|
4
|
+
export declare type IBooksVar = null;
|
|
5
|
+
export declare type IBookData = RootData<graphqlNormalize & IBook, 'book'>;
|
|
4
6
|
export interface IBookVar {
|
|
5
7
|
id: number;
|
|
6
8
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IFeedback } from '../../models';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { graphqlNormalize, RootData } from '../types';
|
|
3
|
+
export declare type IFeedbackData = RootData<(graphqlNormalize & IFeedback)[], 'feedback'>;
|
|
@@ -10,7 +10,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./anatomy"), exports);
|
|
14
13
|
__exportStar(require("./marksheet"), exports);
|
|
15
14
|
__exportStar(require("./mockTests"), exports);
|
|
16
15
|
__exportStar(require("./osce"), exports);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { EDifficultyType, Id, IMarksheet,
|
|
1
|
+
import { EDifficultyType, Id, IMarksheet, IUserFlaggedQuestion } from '../../../models';
|
|
2
2
|
import { IPreBuildMarksheet } from '../../mutation/restricted';
|
|
3
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
4
|
export interface IMarksheetVar {
|
|
4
5
|
id: Id;
|
|
5
6
|
}
|
|
6
|
-
export
|
|
7
|
-
}
|
|
7
|
+
export declare type IMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'marksheet'>;
|
|
8
8
|
export interface IPreBuildMarksheetVar {
|
|
9
9
|
topics: number[];
|
|
10
10
|
conceptIds: number[];
|
|
@@ -12,8 +12,7 @@ export interface IPreBuildMarksheetVar {
|
|
|
12
12
|
source: string;
|
|
13
13
|
difficulty?: EDifficultyType[];
|
|
14
14
|
}
|
|
15
|
-
export
|
|
16
|
-
}
|
|
15
|
+
export declare type IPreBuildMarksheetData = RestrictedData<graphqlNormalize & IPreBuildMarksheet, 'preBuildMarksheet'>;
|
|
17
16
|
interface IDashboardPastQuizzesFilter {
|
|
18
17
|
limit: number;
|
|
19
18
|
date?: string;
|
|
@@ -36,9 +35,9 @@ export interface IDashboardPastQuizzesInfoRes {
|
|
|
36
35
|
}
|
|
37
36
|
export declare type IDashboardPastQuizzesInfoData = IDashboardPastQuizzesInfoRes[];
|
|
38
37
|
export declare type ILatestPastMarksheetIdVar = null;
|
|
39
|
-
export declare type ILatestPastMarksheetIdData = number
|
|
38
|
+
export declare type ILatestPastMarksheetIdData = RestrictedData<number, 'latestPastMarksheetId'>;
|
|
40
39
|
export declare type IFlaggedQuestionsVar = null;
|
|
41
|
-
export declare type IFlaggedQuestionsData =
|
|
40
|
+
export declare type IFlaggedQuestionsData = RestrictedData<(graphqlNormalize & IUserFlaggedQuestion)[], 'flaggedQuestions'>;
|
|
42
41
|
export interface IMarksheetFeedbackVar {
|
|
43
42
|
id: Id;
|
|
44
43
|
}
|
|
@@ -48,7 +47,7 @@ export interface IMarksheetTopicFeedback {
|
|
|
48
47
|
score: number;
|
|
49
48
|
avgScore: number;
|
|
50
49
|
}
|
|
51
|
-
export interface
|
|
50
|
+
export interface IMarksheetFeedback {
|
|
52
51
|
marksheetId: Id;
|
|
53
52
|
mockTestId: number;
|
|
54
53
|
correct: number;
|
|
@@ -58,4 +57,5 @@ export interface IMarksheetFeedbackData {
|
|
|
58
57
|
passingMark: number;
|
|
59
58
|
topics: IMarksheetTopicFeedback[];
|
|
60
59
|
}
|
|
60
|
+
export declare type IMarksheetFeedbackData = RestrictedData<graphqlNormalize & IMarksheetFeedback, 'marksheetFeedback'>;
|
|
61
61
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Id, IUserMockTest } from '../../../models';
|
|
2
|
-
import {
|
|
1
|
+
import { ETopicType, Id, IUserMockTest } from '../../../models';
|
|
2
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
export interface IMockTestVar {
|
|
4
4
|
id: Id;
|
|
5
5
|
}
|
|
6
|
-
export declare type IMockTestData = IUserMockTest
|
|
6
|
+
export declare type IMockTestData = RestrictedData<graphqlNormalize & IUserMockTest, 'mockTest'>;
|
|
7
7
|
export interface IMockTestsVar {
|
|
8
8
|
typeIds?: ETopicType[];
|
|
9
9
|
}
|
|
10
|
-
export declare type IMockTestsData = IUserMockTest[]
|
|
10
|
+
export declare type IMockTestsData = RestrictedData<(graphqlNormalize & IUserMockTest)[], 'mockTests'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EDifficultyType, Id, IDashboardOsce, IOsceMarksheet, IOsceStation
|
|
1
|
+
import { EDifficultyType, Id, IDashboardOsce, IOsceMarksheet, IOsceStation } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
import { ITopic } from './../../../models/Topic';
|
|
4
4
|
export declare const DASHBOARD_OSCE: import("@apollo/client").DocumentNode;
|
|
@@ -24,7 +24,7 @@ export interface IOsceStationsVar {
|
|
|
24
24
|
difficulty?: EDifficultyType[];
|
|
25
25
|
topicIds?: Id[];
|
|
26
26
|
}
|
|
27
|
-
export declare type IOsceStationsData = RestrictedData<(graphqlNormalize &
|
|
27
|
+
export declare type IOsceStationsData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceStations'>;
|
|
28
28
|
export declare const OSCE_STATION: import("@apollo/client").DocumentNode;
|
|
29
29
|
export interface IOsceStationVar {
|
|
30
30
|
id: Id;
|
|
@@ -37,7 +37,7 @@ export declare const SEARCH_OSCE_STATIONS: import("@apollo/client").DocumentNode
|
|
|
37
37
|
export interface ISearchOsceStationsVar {
|
|
38
38
|
search: string;
|
|
39
39
|
}
|
|
40
|
-
export declare type ISearchOsceStationsData = RestrictedData<(graphqlNormalize &
|
|
40
|
+
export declare type ISearchOsceStationsData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'searchOsceStations'>;
|
|
41
41
|
export declare const HEARTBEAT: import("@apollo/client").DocumentNode;
|
|
42
42
|
export interface IHeartbeatVar {
|
|
43
43
|
agoraId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IOsceStation, ITopic } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
export declare type IQuesBookVar = null;
|
|
4
|
-
export declare type IQuesBookData = ITopic[]
|
|
4
|
+
export declare type IQuesBookData = RestrictedData<(graphqlNormalize & ITopic)[], 'quesBook'>;
|
|
5
5
|
export declare const OSCE_BOOK: import("@apollo/client").DocumentNode;
|
|
6
6
|
export declare type IOsceBookVar = null;
|
|
7
7
|
export declare type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IOsceStation, IQuestion } from './../../../models';
|
|
2
|
-
import { ITopicInfo } from './topics';
|
|
1
|
+
import { IOsceStation, IQuestion, ITopic } from './../../../models';
|
|
3
2
|
interface IQueryBuilder {
|
|
4
3
|
query: string;
|
|
5
4
|
variables: IReplicationVar;
|
|
@@ -11,7 +10,7 @@ interface IReplicationVar {
|
|
|
11
10
|
}
|
|
12
11
|
export interface ITopicReplicationVar extends IReplicationVar {
|
|
13
12
|
}
|
|
14
|
-
export interface ITopicReplicationData extends
|
|
13
|
+
export interface ITopicReplicationData extends ITopic {
|
|
15
14
|
updatedAt: number;
|
|
16
15
|
deleted: boolean;
|
|
17
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Id, IPreBuildTodo, ITodo } from '../../../models';
|
|
2
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
3
|
export interface IPreBuildTodoVar {
|
|
3
4
|
topics: number[];
|
|
4
5
|
conceptIds: number[];
|
|
@@ -6,11 +7,11 @@ export interface IPreBuildTodoVar {
|
|
|
6
7
|
source: string;
|
|
7
8
|
filterOlderCard: boolean;
|
|
8
9
|
}
|
|
9
|
-
export declare type IPreBuildTodoData = IPreBuildTodo
|
|
10
|
-
export interface
|
|
11
|
-
|
|
10
|
+
export declare type IPreBuildTodoData = RestrictedData<graphqlNormalize & IPreBuildTodo, 'preBuildTodo'>;
|
|
11
|
+
export interface ITodoVar {
|
|
12
|
+
id: Id;
|
|
12
13
|
}
|
|
13
|
-
export declare type
|
|
14
|
+
export declare type ITodoData = RestrictedData<graphqlNormalize & ITodo, 'todo'>;
|
|
14
15
|
export declare type IDailyFeedVar = null;
|
|
15
16
|
interface IDailyFeedTopicInfo {
|
|
16
17
|
name: string;
|
|
@@ -24,5 +25,5 @@ export interface IDailyFeed {
|
|
|
24
25
|
confidentCard: number;
|
|
25
26
|
reviewCard: number;
|
|
26
27
|
}
|
|
27
|
-
export declare type IDailyFeedData = IDailyFeed
|
|
28
|
+
export declare type IDailyFeedData = RestrictedData<graphqlNormalize & IDailyFeed, 'dailyFeed'>;
|
|
28
29
|
export {};
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { ETopicType, Id, ITopic } from '../../../models';
|
|
2
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
3
|
export interface ITopicVar {
|
|
3
4
|
id: Id;
|
|
4
5
|
}
|
|
5
|
-
export declare type ITopicData = ITopic
|
|
6
|
+
export declare type ITopicData = RestrictedData<graphqlNormalize & ITopic, 'topic'>;
|
|
6
7
|
export interface ITopicsVar {
|
|
7
8
|
filter: ETopicType;
|
|
8
9
|
}
|
|
9
|
-
export
|
|
10
|
-
id: number;
|
|
11
|
-
name: string;
|
|
12
|
-
totalQuestions: number;
|
|
13
|
-
correctQuestions: number;
|
|
14
|
-
incorrectQuestions: number;
|
|
15
|
-
totalCards: number;
|
|
16
|
-
ConfidentCards: number;
|
|
17
|
-
ReviewCards: number;
|
|
18
|
-
LearnCards: number;
|
|
19
|
-
}
|
|
20
|
-
export declare type ITopicsData = ITopicInfo[];
|
|
10
|
+
export declare type ITopicsData = RestrictedData<(graphqlNormalize & ITopic)[], 'topics'>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
1
2
|
export interface IUniversityLeaderboardVar {
|
|
2
3
|
limit: number;
|
|
3
4
|
}
|
|
@@ -11,5 +12,4 @@ export interface IUniversityLeaderboard {
|
|
|
11
12
|
month: IUniversitiesRankSpeciality[];
|
|
12
13
|
quarter: IUniversitiesRankSpeciality[];
|
|
13
14
|
}
|
|
14
|
-
export
|
|
15
|
-
}
|
|
15
|
+
export declare type IUniversityLeaderboardData = RestrictedData<graphqlNormalize & IUniversityLeaderboard, 'universityLeaderboard'>;
|