@quesmed/types 1.0.2 → 1.0.6
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/gql_input_output_types/User.d.ts +12 -0
- package/gql_input_output_types/User.js +2 -0
- package/gql_input_output_types/index.d.ts +74 -0
- package/gql_input_output_types/index.js +2 -0
- package/index.d.ts +16 -0
- package/index.js +20 -0
- package/models/Card.d.ts +15 -0
- package/models/Card.js +2 -0
- package/models/Chapter.d.ts +12 -0
- package/models/Chapter.js +2 -0
- package/models/Concept.d.ts +23 -0
- package/models/Concept.js +2 -0
- package/models/File.d.ts +10 -0
- package/models/File.js +2 -0
- package/models/Marksheet.d.ts +43 -0
- package/models/Marksheet.js +9 -0
- package/models/MockTest.d.ts +18 -0
- package/models/MockTest.js +2 -0
- package/models/OsceMarksheet.d.ts +55 -0
- package/models/OsceMarksheet.js +19 -0
- package/models/OsceStation.d.ts +39 -0
- package/models/OsceStation.js +12 -0
- package/models/Picture.d.ts +33 -0
- package/models/Picture.js +2 -0
- package/models/Promo.d.ts +14 -0
- package/models/Promo.js +2 -0
- package/models/Question.d.ts +54 -0
- package/models/Question.js +10 -0
- package/models/Subscription.d.ts +11 -0
- package/models/Subscription.js +2 -0
- package/models/Todo.d.ts +24 -0
- package/models/Todo.js +2 -0
- package/models/Token.d.ts +7 -0
- package/models/Token.js +2 -0
- package/models/{Topic.ts → Topic.d.ts} +4 -5
- package/models/Topic.js +2 -0
- package/models/Type.d.ts +7 -0
- package/models/Type.js +2 -0
- package/models/University.d.ts +5 -0
- package/models/University.js +2 -0
- package/models/User.d.ts +73 -0
- package/models/User.js +2 -0
- package/models/Video.d.ts +19 -0
- package/models/Video.js +2 -0
- package/models/{index.ts → index.d.ts} +0 -0
- package/models/index.js +31 -0
- package/package.json +6 -6
- package/resolvers/mutation/admin/algoliaSync.d.ts +10 -0
- package/resolvers/mutation/admin/algoliaSync.js +2 -0
- package/resolvers/mutation/admin/{index.ts → index.d.ts} +0 -0
- package/resolvers/mutation/admin/index.js +14 -0
- package/resolvers/mutation/admin/token.d.ts +24 -0
- package/resolvers/mutation/admin/token.js +2 -0
- package/resolvers/mutation/{index.ts → index.d.ts} +0 -0
- package/resolvers/mutation/index.js +14 -0
- package/resolvers/mutation/restricted/{agora.ts → agora.d.ts} +4 -6
- package/resolvers/mutation/restricted/agora.js +2 -0
- package/resolvers/mutation/restricted/contactUs.d.ts +16 -0
- package/resolvers/mutation/restricted/contactUs.js +2 -0
- package/resolvers/mutation/restricted/{index.ts → index.d.ts} +0 -0
- package/resolvers/mutation/restricted/index.js +22 -0
- package/resolvers/mutation/restricted/marksheet.d.ts +43 -0
- package/resolvers/mutation/restricted/marksheet.js +2 -0
- package/resolvers/mutation/restricted/mockTest.d.ts +15 -0
- package/resolvers/mutation/restricted/mockTest.js +2 -0
- package/resolvers/mutation/restricted/osce.d.ts +52 -0
- package/resolvers/mutation/restricted/osce.js +2 -0
- package/resolvers/mutation/restricted/questionDiscussion.d.ts +28 -0
- package/resolvers/mutation/restricted/questionDiscussion.js +2 -0
- package/resolvers/mutation/restricted/todo.d.ts +43 -0
- package/resolvers/mutation/restricted/todo.js +2 -0
- package/resolvers/mutation/restricted/token.d.ts +21 -0
- package/resolvers/mutation/restricted/token.js +2 -0
- package/resolvers/mutation/restricted/users.d.ts +25 -0
- package/resolvers/mutation/restricted/users.js +2 -0
- package/resolvers/mutation/restricted/{video.ts → video.d.ts} +3 -5
- package/resolvers/mutation/restricted/video.js +2 -0
- package/resolvers/mutation/stripe.d.ts +2 -0
- package/resolvers/mutation/stripe.js +2 -0
- package/resolvers/mutation/users.d.ts +30 -0
- package/resolvers/mutation/users.js +2 -0
- package/resolvers/mutation/validUserToken/{index.ts → index.d.ts} +0 -0
- package/resolvers/mutation/validUserToken/index.js +13 -0
- package/resolvers/mutation/validUserToken/user.d.ts +8 -0
- package/resolvers/mutation/validUserToken/user.js +2 -0
- package/resolvers/query/admin/getUserToken.d.ts +4 -0
- package/resolvers/query/admin/getUserToken.js +2 -0
- package/resolvers/query/admin/{index.ts → index.d.ts} +0 -0
- package/resolvers/query/admin/index.js +13 -0
- package/resolvers/query/{index.ts → index.d.ts} +0 -0
- package/resolvers/query/index.js +17 -0
- package/resolvers/query/restricted/anatomy.d.ts +3 -0
- package/resolvers/query/restricted/anatomy.js +2 -0
- package/resolvers/query/restricted/{index.ts → index.d.ts} +0 -0
- package/resolvers/query/restricted/index.js +22 -0
- package/resolvers/query/restricted/marksheet.d.ts +59 -0
- package/resolvers/query/restricted/marksheet.js +2 -0
- package/resolvers/query/restricted/mockTests.d.ts +9 -0
- package/resolvers/query/restricted/mockTests.js +2 -0
- package/resolvers/query/restricted/osce.d.ts +35 -0
- package/resolvers/query/restricted/osce.js +2 -0
- package/resolvers/query/restricted/quesBook.d.ts +3 -0
- package/resolvers/query/restricted/quesBook.js +2 -0
- package/resolvers/query/restricted/todos.d.ts +28 -0
- package/resolvers/query/restricted/todos.js +2 -0
- package/resolvers/query/restricted/topics.d.ts +20 -0
- package/resolvers/query/restricted/topics.js +2 -0
- package/resolvers/query/restricted/university.d.ts +15 -0
- package/resolvers/query/restricted/university.js +2 -0
- package/resolvers/query/restricted/user.d.ts +25 -0
- package/resolvers/query/restricted/user.js +2 -0
- package/resolvers/query/restricted/video.d.ts +10 -0
- package/resolvers/query/restricted/video.js +2 -0
- package/resolvers/query/sampleCards.d.ts +6 -0
- package/resolvers/query/sampleCards.js +2 -0
- package/resolvers/query/sampleQuestions.d.ts +6 -0
- package/resolvers/query/sampleQuestions.js +2 -0
- package/resolvers/query/{university.ts → university.d.ts} +2 -4
- package/resolvers/query/university.js +2 -0
- package/resolvers/query/user.d.ts +12 -0
- package/resolvers/query/user.js +2 -0
- package/resolvers/query/video.d.ts +14 -0
- package/resolvers/query/video.js +2 -0
- package/resolvers/subscription/{index.ts → index.d.ts} +0 -0
- package/resolvers/subscription/index.js +13 -0
- package/resolvers/subscription/osce.d.ts +44 -0
- package/resolvers/subscription/osce.js +24 -0
- package/utils/uuid4.d.ts +107 -0
- package/utils/uuid4.js +287 -0
- package/gql_input_output_types/User.ts +0 -12
- package/gql_input_output_types/index.ts +0 -87
- package/index.ts +0 -18
- package/models/Card.ts +0 -16
- package/models/Chapter.ts +0 -13
- package/models/Concept.ts +0 -25
- package/models/File.ts +0 -11
- package/models/Marksheet.ts +0 -48
- package/models/MockTest.ts +0 -20
- package/models/OsceMarksheet.ts +0 -61
- package/models/OsceStation.ts +0 -44
- package/models/Picture.ts +0 -37
- package/models/Promo.ts +0 -16
- package/models/Question.ts +0 -62
- package/models/Subscription.ts +0 -12
- package/models/Todo.ts +0 -26
- package/models/Token.ts +0 -8
- package/models/Type.ts +0 -5
- package/models/University.ts +0 -5
- package/models/User.ts +0 -78
- package/models/Video.ts +0 -20
- package/resolvers/mutation/admin/algoliaSync.ts +0 -19
- package/resolvers/mutation/admin/token.ts +0 -32
- package/resolvers/mutation/restricted/contactUs.ts +0 -18
- package/resolvers/mutation/restricted/marksheet.ts +0 -57
- package/resolvers/mutation/restricted/mockTest.ts +0 -21
- package/resolvers/mutation/restricted/osce.ts +0 -72
- package/resolvers/mutation/restricted/questionDiscussion.ts +0 -39
- package/resolvers/mutation/restricted/todo.ts +0 -55
- package/resolvers/mutation/restricted/token.ts +0 -28
- package/resolvers/mutation/restricted/users.ts +0 -31
- package/resolvers/mutation/stripe.ts +0 -3
- package/resolvers/mutation/users.ts +0 -38
- package/resolvers/mutation/validUserToken/user.ts +0 -11
- package/resolvers/query/admin/getUserToken.ts +0 -5
- package/resolvers/query/restricted/anatomy.ts +0 -5
- package/resolvers/query/restricted/marksheet.ts +0 -71
- package/resolvers/query/restricted/mockTests.ts +0 -13
- package/resolvers/query/restricted/osce.ts +0 -52
- package/resolvers/query/restricted/quesBook.ts +0 -4
- package/resolvers/query/restricted/todos.ts +0 -35
- package/resolvers/query/restricted/topics.ts +0 -25
- package/resolvers/query/restricted/university.ts +0 -16
- package/resolvers/query/restricted/user.ts +0 -31
- package/resolvers/query/restricted/video.ts +0 -13
- package/resolvers/query/sampleCards.ts +0 -7
- package/resolvers/query/sampleQuestions.ts +0 -7
- package/resolvers/query/user.ts +0 -17
- package/resolvers/query/video.ts +0 -20
- package/resolvers/subscription/osce.ts +0 -68
- package/utils/uuid4.ts +0 -286
package/models/Question.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { IConcept } from './Concept';
|
|
2
|
-
import { IQuestionPicture } from './Picture';
|
|
3
|
-
import { Id } from './Type';
|
|
4
|
-
|
|
5
|
-
export enum EQuestionType {
|
|
6
|
-
SINGLE_BEST_ANSWER = 1,
|
|
7
|
-
QUESTION_ANSWER,
|
|
8
|
-
MULTIPLE_ANSWERS,
|
|
9
|
-
PRESCRIPTION_ANSWER,
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface IQuestion {
|
|
13
|
-
id: Id;
|
|
14
|
-
typeId: Id;
|
|
15
|
-
conceptId: Id;
|
|
16
|
-
public: boolean;
|
|
17
|
-
concept?: IConcept;
|
|
18
|
-
question: string;
|
|
19
|
-
explanation?: string;
|
|
20
|
-
answer: any;
|
|
21
|
-
totalVotes: number;
|
|
22
|
-
choices: IQuestionChoice[];
|
|
23
|
-
pictures: IQuestionPicture[];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface IQuestionChoice {
|
|
27
|
-
id: Id;
|
|
28
|
-
name: string;
|
|
29
|
-
explanation: string;
|
|
30
|
-
label: string;
|
|
31
|
-
answer: boolean;
|
|
32
|
-
votes: number;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface IQuestionSBA extends IQuestion {
|
|
36
|
-
answer: [string];
|
|
37
|
-
sbaAnswer: [string];
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface IQuestionQA extends IQuestion {
|
|
41
|
-
answer: [string];
|
|
42
|
-
qaAnswer: [string];
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface IQuestionMultiQ extends IQuestion {
|
|
46
|
-
answer: [string[], string[]];
|
|
47
|
-
multiAnswer: [string[], string[]];
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface IQuestionPrescribe extends IQuestion {
|
|
51
|
-
answer: IPrescribeAnswer[];
|
|
52
|
-
prescribeAnswer: IPrescribeAnswer[];
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface IPrescribeAnswer {
|
|
56
|
-
dose: number;
|
|
57
|
-
drug: string;
|
|
58
|
-
route: string;
|
|
59
|
-
units: string;
|
|
60
|
-
duration: string;
|
|
61
|
-
frequency: string;
|
|
62
|
-
}
|
package/models/Subscription.ts
DELETED
package/models/Todo.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ICard } from './Card';
|
|
2
|
-
import { Id } from './Type';
|
|
3
|
-
|
|
4
|
-
export interface ITodo {
|
|
5
|
-
id: Id;
|
|
6
|
-
createdAt: Date | string;
|
|
7
|
-
updatedAt: Date | string;
|
|
8
|
-
userId: Id;
|
|
9
|
-
dailyTask: boolean;
|
|
10
|
-
marks: ITodoMark[];
|
|
11
|
-
source: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ITodoMark {
|
|
14
|
-
id: Id;
|
|
15
|
-
todoId: Id;
|
|
16
|
-
cardId: Id;
|
|
17
|
-
card: ICard;
|
|
18
|
-
score: number;
|
|
19
|
-
timeTaken: number;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface IPreBuildTodo {
|
|
23
|
-
unseen: number;
|
|
24
|
-
seen: number;
|
|
25
|
-
buildRef: number;
|
|
26
|
-
}
|
package/models/Token.ts
DELETED
package/models/Type.ts
DELETED
package/models/University.ts
DELETED
package/models/User.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { ICard } from './Card';
|
|
2
|
-
import { IConcept } from './Concept';
|
|
3
|
-
import { IMarksheetMark } from './Marksheet';
|
|
4
|
-
import { IQuestion } from './Question';
|
|
5
|
-
import { ISubscription } from './Subscription';
|
|
6
|
-
import { ITopic } from './Topic';
|
|
7
|
-
import { Id } from './Type';
|
|
8
|
-
|
|
9
|
-
export interface IPayload {
|
|
10
|
-
id: Id;
|
|
11
|
-
firstName: string;
|
|
12
|
-
lastName: string;
|
|
13
|
-
username: string;
|
|
14
|
-
accessLevel: string;
|
|
15
|
-
exp: number;
|
|
16
|
-
stripeSubscriptionEndDate: number;
|
|
17
|
-
}
|
|
18
|
-
export interface IUser {
|
|
19
|
-
id: Id;
|
|
20
|
-
username: string;
|
|
21
|
-
firstName: string;
|
|
22
|
-
lastName: string;
|
|
23
|
-
classYear: string;
|
|
24
|
-
graduationYear: number;
|
|
25
|
-
universityId: number;
|
|
26
|
-
examDate: Date | string | null;
|
|
27
|
-
stripeCustomerId: string;
|
|
28
|
-
subscriptionId: Id;
|
|
29
|
-
subscription?: ISubscription;
|
|
30
|
-
stripeSubscriptionEndDate: Date | string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface IUserCompletedQuestions {
|
|
34
|
-
id: Id;
|
|
35
|
-
createdAt: Date | string;
|
|
36
|
-
updatedAt: Date | string;
|
|
37
|
-
questionId: Id;
|
|
38
|
-
userId: Id;
|
|
39
|
-
correct: boolean;
|
|
40
|
-
question: IQuestion;
|
|
41
|
-
topic: ITopic;
|
|
42
|
-
concept: IConcept;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface IUserCompletedCards {
|
|
46
|
-
id: Id;
|
|
47
|
-
createdAt: Date | string;
|
|
48
|
-
updatedAt: Date | string;
|
|
49
|
-
cardId: Id;
|
|
50
|
-
card: ICard;
|
|
51
|
-
userId: Id;
|
|
52
|
-
topic: ITopic;
|
|
53
|
-
concept: IConcept;
|
|
54
|
-
lastSeen: Date | string;
|
|
55
|
-
score: number;
|
|
56
|
-
iteration: number;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface IUserFlaggedQuestions {
|
|
60
|
-
id: Id;
|
|
61
|
-
createdAt: Date | string;
|
|
62
|
-
updatedAt: Date | string;
|
|
63
|
-
questionId: Id;
|
|
64
|
-
question: IQuestion;
|
|
65
|
-
userId: Id;
|
|
66
|
-
markId: Id;
|
|
67
|
-
mark: IMarksheetMark;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface IUserProgress {
|
|
71
|
-
id: Id;
|
|
72
|
-
date: Date | string;
|
|
73
|
-
userId: Id;
|
|
74
|
-
topicId: Id;
|
|
75
|
-
count: number;
|
|
76
|
-
correct: number;
|
|
77
|
-
countCards: number;
|
|
78
|
-
}
|
package/models/Video.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IConcept } from './Concept';
|
|
2
|
-
import { IFile } from './File';
|
|
3
|
-
import { Id } from './Type';
|
|
4
|
-
|
|
5
|
-
export interface IVideo {
|
|
6
|
-
id: Id;
|
|
7
|
-
createdAt: string | Date;
|
|
8
|
-
updatedAt: string | Date;
|
|
9
|
-
startTime: string | Date;
|
|
10
|
-
endTime: string | Date;
|
|
11
|
-
title: string;
|
|
12
|
-
museId: string;
|
|
13
|
-
thumbnail: string;
|
|
14
|
-
views: number;
|
|
15
|
-
live: boolean;
|
|
16
|
-
description: string;
|
|
17
|
-
duration: number;
|
|
18
|
-
concepts: IConcept[];
|
|
19
|
-
files: IFile[];
|
|
20
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type IUpdateCardsDataInAlgoliaVar = void;
|
|
2
|
-
|
|
3
|
-
export type IUpdateCardsDataInAlgoliaData = string;
|
|
4
|
-
|
|
5
|
-
export type IUpdateQuestionsDataInAlgoliaVar = void;
|
|
6
|
-
|
|
7
|
-
export type IUpdateQuestionsDataInAlgoliaData = string;
|
|
8
|
-
|
|
9
|
-
export type IUpdateQuesBookDataInAlgoliaVar = void;
|
|
10
|
-
|
|
11
|
-
export type IUpdateQuesBookDataInAlgoliaData = string;
|
|
12
|
-
|
|
13
|
-
export type IUpdateVideoDataInAlgoliaVar = void;
|
|
14
|
-
|
|
15
|
-
export type IUpdateVideoDataInAlgoliaData = string;
|
|
16
|
-
|
|
17
|
-
export type IClearConceptExplanationCacheVar = void;
|
|
18
|
-
|
|
19
|
-
export type IClearConceptExplanationCacheData = string;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export interface IFCMNotification {
|
|
2
|
-
data?: {
|
|
3
|
-
url?: string;
|
|
4
|
-
};
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface IFCMNotificationInput {
|
|
8
|
-
title?: string;
|
|
9
|
-
body: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface ISendPushNotificationInput extends IFCMNotification {
|
|
13
|
-
notification: IFCMNotificationInput;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface ISendTopicNotificationInput
|
|
17
|
-
extends ISendPushNotificationInput {
|
|
18
|
-
topic: 'global' | 'qbank' | 'osce';
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface ISendPushNotificationVar {
|
|
22
|
-
data: ISendPushNotificationInput;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type ISendPushNotificationData = string;
|
|
26
|
-
|
|
27
|
-
export interface ISendTopicNotificationVar {
|
|
28
|
-
data: ISendTopicNotificationInput;
|
|
29
|
-
topic: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export type ISendTopicNotificationData = string;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
interface Attachment {
|
|
2
|
-
title: string;
|
|
3
|
-
title_link: string;
|
|
4
|
-
text: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface Conversation {
|
|
8
|
-
text: string;
|
|
9
|
-
attachments: Attachment[];
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface IContactUsVar {
|
|
13
|
-
slack: Conversation;
|
|
14
|
-
subject: string;
|
|
15
|
-
message: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type IContactUsData = string;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Id } from '../../../models';
|
|
2
|
-
|
|
3
|
-
export interface IPreBuildMarksheet {
|
|
4
|
-
unseen: number;
|
|
5
|
-
seenCorrect: number;
|
|
6
|
-
seenIncorrect: number;
|
|
7
|
-
buildRef: number;
|
|
8
|
-
}
|
|
9
|
-
export interface IBuildMarksheetInput extends IPreBuildMarksheet {
|
|
10
|
-
isTest: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface IBuildMarksheetVar {
|
|
14
|
-
buildMarksheet: IBuildMarksheetInput;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type IBuildMarksheetData = number;
|
|
18
|
-
|
|
19
|
-
export interface IReBuildMarksheetVar {
|
|
20
|
-
marksheetId: number;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export type IReBuildMarksheetData = number;
|
|
24
|
-
|
|
25
|
-
export interface IUpvoteChoiceVar {
|
|
26
|
-
questionId: number;
|
|
27
|
-
questionChoiceId: number;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type IUpvoteChoiceData = string;
|
|
31
|
-
|
|
32
|
-
export interface IMarksheetInput {
|
|
33
|
-
marksheetId: Id;
|
|
34
|
-
questionId: Id;
|
|
35
|
-
choiceId?: Id;
|
|
36
|
-
mark?: string;
|
|
37
|
-
timeTaken: number;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface ISaveMarksheetsVar {
|
|
41
|
-
marksheet: IMarksheetInput[];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export type ISaveMarksheetsData = number[];
|
|
45
|
-
|
|
46
|
-
export interface IAddFlaggedQuestionVar {
|
|
47
|
-
markId: number;
|
|
48
|
-
questionId: number;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export type IAddFlaggedQuestionData = string;
|
|
52
|
-
|
|
53
|
-
export interface IRemoveFlaggedQuestionVar {
|
|
54
|
-
id: Id;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export type IRemoveFlaggedQuestionData = string;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Id } from '../../../models';
|
|
2
|
-
|
|
3
|
-
export interface IBuildMockTestMarksheetVar {
|
|
4
|
-
mockTestId: Id;
|
|
5
|
-
duration: number;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export type IBuildMockTestMarksheetData = number;
|
|
9
|
-
|
|
10
|
-
export interface IToggleFlaggedMarkVar {
|
|
11
|
-
markId: Id;
|
|
12
|
-
isFlagged: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type IToggleFlaggedMarkData = boolean;
|
|
16
|
-
|
|
17
|
-
export interface IEndMockTestVar {
|
|
18
|
-
marksheetId: Id;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type IEndMockTestData = boolean;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EOsceMarksheetAction,
|
|
3
|
-
EOsceRoles,
|
|
4
|
-
Id,
|
|
5
|
-
IOsceMarksheet,
|
|
6
|
-
IOsceMarksheetMark,
|
|
7
|
-
} from '../../../models';
|
|
8
|
-
|
|
9
|
-
export interface IBuildOsceMarksheetVar {
|
|
10
|
-
osceStationId?: Id;
|
|
11
|
-
solo?: boolean;
|
|
12
|
-
agoraId?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface IBuildOsceMarksheetData extends IOsceMarksheet {}
|
|
16
|
-
|
|
17
|
-
export interface IChangeOsceRoleVar {
|
|
18
|
-
osceMarksheetId: Id;
|
|
19
|
-
role: EOsceRoles;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type IChangeOsceRoleData = boolean;
|
|
23
|
-
|
|
24
|
-
export interface IMarkOsceMarksheetMarkVar {
|
|
25
|
-
osceStationMarkId: Id;
|
|
26
|
-
mark: boolean;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface IMarkOsceMarksheetMarkData extends IOsceMarksheetMark {}
|
|
30
|
-
|
|
31
|
-
export interface IStartOsceMarksheetVar {
|
|
32
|
-
osceMarksheetId: Id;
|
|
33
|
-
readingTime: number;
|
|
34
|
-
stationTime: number;
|
|
35
|
-
feedbackTime: number;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface ISelectOsceMarksheetStationVar {
|
|
39
|
-
osceMarksheetId: Id;
|
|
40
|
-
osceStationId: Id;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export type ISelectOsceMarksheetStationData = boolean;
|
|
44
|
-
|
|
45
|
-
export interface IStartOsceMarksheetData extends IOsceMarksheet {}
|
|
46
|
-
|
|
47
|
-
export interface ISaveOsceMarksheetVar {
|
|
48
|
-
osceMarksheetId: Id;
|
|
49
|
-
globalMark?: number;
|
|
50
|
-
timeTaken?: number;
|
|
51
|
-
feedback?: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export type ISaveOsceMarksheetData = number;
|
|
55
|
-
|
|
56
|
-
export interface IOsceMarksheetActionsVar {
|
|
57
|
-
agoraId: string;
|
|
58
|
-
userId: Id;
|
|
59
|
-
action: EOsceMarksheetAction;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export type IOsceMarksheetActionsData = number;
|
|
63
|
-
|
|
64
|
-
export interface IEndOsceMarksheetVar extends ISaveOsceMarksheetVar {}
|
|
65
|
-
|
|
66
|
-
export type IEndOsceMarksheetData = number;
|
|
67
|
-
|
|
68
|
-
export interface IDeleteOsceMarksheetVar {
|
|
69
|
-
osceMarksheetId: Id;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export type IDeleteOsceMarksheetData = boolean;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EQuestionLike,
|
|
3
|
-
Id,
|
|
4
|
-
IDiscussion,
|
|
5
|
-
ILikeDislikeCount,
|
|
6
|
-
} from '../../../models';
|
|
7
|
-
|
|
8
|
-
export interface IQuestionLikeVar {
|
|
9
|
-
questionId: Id;
|
|
10
|
-
like: EQuestionLike;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface IQuestionLikeData extends ILikeDislikeCount {}
|
|
14
|
-
|
|
15
|
-
export interface IQuestionCommentsVar {
|
|
16
|
-
questionId: Id;
|
|
17
|
-
parentId: Id;
|
|
18
|
-
comment: string;
|
|
19
|
-
anonymous: boolean;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface IQuestionCommentsData {
|
|
23
|
-
commentHeldForReview: boolean;
|
|
24
|
-
refreshedDiscussion: IDiscussion;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface IQuestionCommentsLikeVar {
|
|
28
|
-
commentId: Id;
|
|
29
|
-
like: EQuestionLike;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface IQuestionCommentsLikeData extends ILikeDislikeCount {}
|
|
33
|
-
|
|
34
|
-
export interface IQuestionCommentRemoveVar {
|
|
35
|
-
commentId: Id;
|
|
36
|
-
userId: Id;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type IQuestionCommentRemoveData = string;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Id, ITodo } from '../../../models';
|
|
2
|
-
|
|
3
|
-
export interface IBuildTodoInput {
|
|
4
|
-
unseen: number;
|
|
5
|
-
seen: number;
|
|
6
|
-
buildRef: number;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface IBuildTodoVar {
|
|
10
|
-
buildTodo: IBuildTodoInput;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type IBuildTodoData = number;
|
|
14
|
-
|
|
15
|
-
export interface IScoreCardInput {
|
|
16
|
-
cardId: Id;
|
|
17
|
-
score: number;
|
|
18
|
-
timeTaken: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IScoreCardVar {
|
|
22
|
-
mark: IScoreCardInput;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type IScoreCardData = string;
|
|
26
|
-
|
|
27
|
-
export interface ITodoInput {
|
|
28
|
-
todoId: number;
|
|
29
|
-
cardId: number;
|
|
30
|
-
score: number;
|
|
31
|
-
timeTaken: number;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface ISaveTodosVar {
|
|
35
|
-
todos: ITodoInput[];
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export type ISaveTodosData = number[];
|
|
39
|
-
|
|
40
|
-
export interface IAddToDailyStackVar {
|
|
41
|
-
concepts: number[];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface IAddToDailyStackData extends ITodo {}
|
|
45
|
-
|
|
46
|
-
export interface IRemoveFromDailyStackVar {
|
|
47
|
-
cardId: Id;
|
|
48
|
-
todoId: Id;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface IRemoveFromDailyStackData extends ITodo {}
|
|
52
|
-
|
|
53
|
-
export type IRefreshDailyTaskVar = null;
|
|
54
|
-
|
|
55
|
-
export interface IRefreshDailyTaskData extends ITodo {}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IToken } from '../../../models';
|
|
2
|
-
|
|
3
|
-
export interface IUpsertTokenVar {
|
|
4
|
-
token: string;
|
|
5
|
-
deviceId: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface IUpsertTokenData extends IToken {}
|
|
9
|
-
|
|
10
|
-
export interface IRemoveTokenVar {
|
|
11
|
-
token: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type IRemoveTokenData = string;
|
|
15
|
-
|
|
16
|
-
export interface ISubscribeFCMTopicVar {
|
|
17
|
-
token: string;
|
|
18
|
-
topic: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type ISubscribeFCMTopicData = string;
|
|
22
|
-
|
|
23
|
-
export interface IUnsubscribeFCMTopicVar {
|
|
24
|
-
token: string;
|
|
25
|
-
topic: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type IUnsubscribeFCMTopicData = string;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { IUser } from '../../../models';
|
|
2
|
-
|
|
3
|
-
export interface IResetProgressVar {
|
|
4
|
-
questions?: boolean;
|
|
5
|
-
cards?: boolean;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface IResetProgressData extends IUser {}
|
|
9
|
-
|
|
10
|
-
export interface IUserInput {
|
|
11
|
-
firstName?: string;
|
|
12
|
-
lastName?: string;
|
|
13
|
-
classYear?: string;
|
|
14
|
-
graduationYear?: number;
|
|
15
|
-
password?: string;
|
|
16
|
-
oldPassword?: string;
|
|
17
|
-
examDate?: Date | string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface IUpdateUserVar {
|
|
21
|
-
id?: number;
|
|
22
|
-
data: IUserInput;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type IUpdateUserData = string;
|
|
26
|
-
|
|
27
|
-
export interface IRenewTokenVar {
|
|
28
|
-
days?: number;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type IRenewTokenData = string;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export interface ILoginUserVar {
|
|
2
|
-
username: string;
|
|
3
|
-
password: string;
|
|
4
|
-
days: number;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export type ILoginUserData = string;
|
|
8
|
-
|
|
9
|
-
export interface RegisterUserInput {
|
|
10
|
-
username: string;
|
|
11
|
-
firstName: string;
|
|
12
|
-
lastName: string;
|
|
13
|
-
password: string;
|
|
14
|
-
classYear: string;
|
|
15
|
-
graduationYear: number;
|
|
16
|
-
universityId: number;
|
|
17
|
-
newsletter: boolean;
|
|
18
|
-
referral: string | null;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IRegisterUserVar {
|
|
22
|
-
userData: RegisterUserInput;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type IRegisterUserData = string;
|
|
26
|
-
|
|
27
|
-
export interface IResetPasswordPrepVar {
|
|
28
|
-
username: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type IResetPasswordPrepData = string;
|
|
32
|
-
|
|
33
|
-
export interface IResetPasswordVar {
|
|
34
|
-
token: string;
|
|
35
|
-
password: string;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export type IResetPasswordData = string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface ICreateNewSubscriptionCheckoutSessionVar {
|
|
2
|
-
priceId: string;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export type ICreateNewSubscriptionCheckoutSessionData = string | void;
|
|
6
|
-
|
|
7
|
-
export interface IRenewTokenVar {
|
|
8
|
-
days?: number;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export type IRenewTokenData = string;
|