@quesmed/types 2.4.30 → 2.4.33
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/index.js +5 -1
- package/dist/cjs/models/Chapter.d.ts +0 -2
- package/dist/cjs/models/Marksheet.d.ts +1 -1
- package/dist/cjs/models/Question.d.ts +3 -3
- package/dist/cjs/models/Type.d.ts +3 -3
- package/dist/cjs/models/User.d.ts +2 -2
- package/dist/cjs/models/index.js +5 -1
- package/dist/cjs/resolvers/apollo.d.ts +1 -1
- package/dist/cjs/resolvers/fragments/index.js +5 -1
- package/dist/cjs/resolvers/index.js +5 -1
- package/dist/cjs/resolvers/mutation/admin/algoliaSync.d.ts +8 -8
- package/dist/cjs/resolvers/mutation/admin/index.js +5 -1
- package/dist/cjs/resolvers/mutation/admin/notification.d.ts +4 -4
- package/dist/cjs/resolvers/mutation/admin/token.d.ts +2 -2
- package/dist/cjs/resolvers/mutation/index.js +5 -1
- package/dist/cjs/resolvers/mutation/restricted/agora.d.ts +1 -1
- package/dist/cjs/resolvers/mutation/restricted/contactUs.d.ts +1 -1
- package/dist/cjs/resolvers/mutation/restricted/index.js +5 -1
- package/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +13 -13
- package/dist/cjs/resolvers/mutation/restricted/mockTest.d.ts +3 -3
- package/dist/cjs/resolvers/mutation/restricted/notification.d.ts +8 -8
- package/dist/cjs/resolvers/mutation/restricted/osce.d.ts +16 -16
- package/dist/cjs/resolvers/mutation/restricted/questionDiscussion.d.ts +6 -6
- package/dist/cjs/resolvers/mutation/restricted/todo.d.ts +6 -6
- package/dist/cjs/resolvers/mutation/restricted/token.d.ts +4 -4
- package/dist/cjs/resolvers/mutation/restricted/users.d.ts +9 -9
- package/dist/cjs/resolvers/mutation/restricted/video.d.ts +1 -1
- package/dist/cjs/resolvers/mutation/stripe.d.ts +3 -3
- package/dist/cjs/resolvers/mutation/users.d.ts +4 -4
- package/dist/cjs/resolvers/mutation/validUserToken/index.js +5 -1
- package/dist/cjs/resolvers/mutation/validUserToken/user.d.ts +3 -3
- package/dist/cjs/resolvers/query/admin/getUserToken.d.ts +1 -1
- package/dist/cjs/resolvers/query/admin/index.js +5 -1
- package/dist/cjs/resolvers/query/author.d.ts +1 -1
- package/dist/cjs/resolvers/query/blog.d.ts +4 -4
- package/dist/cjs/resolvers/query/book.d.ts +3 -3
- package/dist/cjs/resolvers/query/feedback.d.ts +2 -2
- package/dist/cjs/resolvers/query/index.js +5 -1
- package/dist/cjs/resolvers/query/product.d.ts +1 -1
- package/dist/cjs/resolvers/query/restricted/conceptExplanation.d.ts +1 -1
- package/dist/cjs/resolvers/query/restricted/global.d.ts +4 -4
- package/dist/cjs/resolvers/query/restricted/index.js +5 -1
- package/dist/cjs/resolvers/query/restricted/marksheet.d.ts +13 -13
- package/dist/cjs/resolvers/query/restricted/mockTests.d.ts +2 -2
- package/dist/cjs/resolvers/query/restricted/notification.d.ts +1 -1
- package/dist/cjs/resolvers/query/restricted/osce.d.ts +9 -9
- package/dist/cjs/resolvers/query/restricted/quesBook.d.ts +4 -4
- package/dist/cjs/resolvers/query/restricted/question.d.ts +1 -1
- package/dist/cjs/resolvers/query/restricted/todos.d.ts +2 -2
- package/dist/cjs/resolvers/query/restricted/topics.d.ts +2 -2
- package/dist/cjs/resolvers/query/restricted/university.d.ts +1 -1
- package/dist/cjs/resolvers/query/restricted/user.d.ts +4 -4
- package/dist/cjs/resolvers/query/restricted/video.d.ts +2 -2
- package/dist/cjs/resolvers/query/sample.d.ts +5 -5
- package/dist/cjs/resolvers/query/university.d.ts +1 -1
- package/dist/cjs/resolvers/query/user.d.ts +2 -2
- package/dist/cjs/resolvers/query/video.d.ts +3 -3
- package/dist/cjs/resolvers/subscription/index.js +5 -1
- package/dist/cjs/resolvers/subscription/marksheet.d.ts +3 -3
- package/dist/cjs/resolvers/subscription/notification.d.ts +2 -2
- package/dist/cjs/resolvers/subscription/osce.d.ts +6 -6
- package/dist/cjs/resolvers/types.d.ts +3 -3
- package/dist/cjs/utils/index.js +5 -1
- package/dist/mjs/models/Chapter.d.ts +0 -2
- package/dist/mjs/models/Marksheet.d.ts +1 -1
- package/dist/mjs/models/Question.d.ts +3 -3
- package/dist/mjs/models/Type.d.ts +3 -3
- package/dist/mjs/models/User.d.ts +2 -2
- package/dist/mjs/resolvers/apollo.d.ts +1 -1
- package/dist/mjs/resolvers/mutation/admin/algoliaSync.d.ts +8 -8
- package/dist/mjs/resolvers/mutation/admin/notification.d.ts +4 -4
- package/dist/mjs/resolvers/mutation/admin/token.d.ts +2 -2
- package/dist/mjs/resolvers/mutation/restricted/agora.d.ts +1 -1
- package/dist/mjs/resolvers/mutation/restricted/contactUs.d.ts +1 -1
- package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +13 -13
- package/dist/mjs/resolvers/mutation/restricted/mockTest.d.ts +3 -3
- package/dist/mjs/resolvers/mutation/restricted/notification.d.ts +8 -8
- package/dist/mjs/resolvers/mutation/restricted/osce.d.ts +16 -16
- package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.d.ts +6 -6
- package/dist/mjs/resolvers/mutation/restricted/todo.d.ts +6 -6
- package/dist/mjs/resolvers/mutation/restricted/token.d.ts +4 -4
- package/dist/mjs/resolvers/mutation/restricted/users.d.ts +9 -9
- package/dist/mjs/resolvers/mutation/restricted/video.d.ts +1 -1
- package/dist/mjs/resolvers/mutation/stripe.d.ts +3 -3
- package/dist/mjs/resolvers/mutation/users.d.ts +4 -4
- package/dist/mjs/resolvers/mutation/validUserToken/user.d.ts +3 -3
- package/dist/mjs/resolvers/query/admin/getUserToken.d.ts +1 -1
- package/dist/mjs/resolvers/query/author.d.ts +1 -1
- package/dist/mjs/resolvers/query/blog.d.ts +4 -4
- package/dist/mjs/resolvers/query/book.d.ts +3 -3
- package/dist/mjs/resolvers/query/feedback.d.ts +2 -2
- package/dist/mjs/resolvers/query/product.d.ts +1 -1
- package/dist/mjs/resolvers/query/restricted/conceptExplanation.d.ts +1 -1
- package/dist/mjs/resolvers/query/restricted/global.d.ts +4 -4
- package/dist/mjs/resolvers/query/restricted/marksheet.d.ts +13 -13
- package/dist/mjs/resolvers/query/restricted/mockTests.d.ts +2 -2
- package/dist/mjs/resolvers/query/restricted/notification.d.ts +1 -1
- package/dist/mjs/resolvers/query/restricted/osce.d.ts +9 -9
- package/dist/mjs/resolvers/query/restricted/quesBook.d.ts +4 -4
- package/dist/mjs/resolvers/query/restricted/question.d.ts +1 -1
- package/dist/mjs/resolvers/query/restricted/todos.d.ts +2 -2
- package/dist/mjs/resolvers/query/restricted/topics.d.ts +2 -2
- package/dist/mjs/resolvers/query/restricted/university.d.ts +1 -1
- package/dist/mjs/resolvers/query/restricted/user.d.ts +4 -4
- package/dist/mjs/resolvers/query/restricted/video.d.ts +2 -2
- package/dist/mjs/resolvers/query/sample.d.ts +5 -5
- package/dist/mjs/resolvers/query/university.d.ts +1 -1
- package/dist/mjs/resolvers/query/user.d.ts +2 -2
- package/dist/mjs/resolvers/query/video.d.ts +3 -3
- package/dist/mjs/resolvers/subscription/marksheet.d.ts +3 -3
- package/dist/mjs/resolvers/subscription/notification.d.ts +2 -2
- package/dist/mjs/resolvers/subscription/osce.d.ts +6 -6
- package/dist/mjs/resolvers/types.d.ts +3 -3
- package/package.json +27 -27
|
@@ -5,10 +5,10 @@ export interface IResetProgressVar {
|
|
|
5
5
|
questions?: boolean;
|
|
6
6
|
cards?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type IResetProgressData = RestrictedData<graphqlNormalize & IUser, 'resetProgress'>;
|
|
9
9
|
export declare const DELETE_USER: import("@apollo/client").DocumentNode;
|
|
10
|
-
export
|
|
11
|
-
export
|
|
10
|
+
export type IDeleteUserVar = null;
|
|
11
|
+
export type IDeleteUserData = RestrictedData<graphqlNormalize & Boolean, 'deleteUser'>;
|
|
12
12
|
export interface IUserInput {
|
|
13
13
|
displayName?: string;
|
|
14
14
|
firstName?: string;
|
|
@@ -26,14 +26,14 @@ export interface IUpdateUserVar {
|
|
|
26
26
|
id?: number;
|
|
27
27
|
data: IUserInput;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
29
|
+
export type IUpdateUserData = RestrictedData<{
|
|
30
30
|
jwt: string;
|
|
31
31
|
user: IUser & graphqlNormalize;
|
|
32
32
|
}, 'updateUser'>;
|
|
33
33
|
export declare const RENEW_TOKEN: import("@apollo/client").DocumentNode;
|
|
34
|
-
export
|
|
35
|
-
export
|
|
34
|
+
export type IRenewTokenVar = null;
|
|
35
|
+
export type IRenewTokenData = RestrictedData<string, 'renewToken'>;
|
|
36
36
|
export declare const TOC_ACCEPT: import("@apollo/client").DocumentNode;
|
|
37
|
-
export
|
|
38
|
-
export
|
|
39
|
-
export
|
|
37
|
+
export type ITocAcceptVar = null;
|
|
38
|
+
export type ITocAcceptData = RestrictedData<string, 'tocAccept'>;
|
|
39
|
+
export type ICompletedCardsData = Pick<IUser, 'completedCards' | 'completedCardsCount'>;
|
|
@@ -4,4 +4,4 @@ export declare const VIDEO_WATCHED: import("@apollo/client").DocumentNode;
|
|
|
4
4
|
export interface IVideoWatchedVar {
|
|
5
5
|
id: Id;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type IVideoWatchedData = RestrictedData<graphqlNormalize & IVideo, 'videoWatched'>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RootData } from './../types';
|
|
2
2
|
export declare const CUSTOMER_PORTAL: import("@apollo/client").DocumentNode;
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type ICustomerPortalVar = null;
|
|
4
|
+
export type ICustomerPortalData = RootData<string, 'customerPortal'>;
|
|
5
5
|
export interface IStripeLineItem {
|
|
6
6
|
price: string;
|
|
7
7
|
quantity: number;
|
|
@@ -10,4 +10,4 @@ export declare const STRIPE_HOMEPAGE_CHECKOUT_SESSION: import("@apollo/client").
|
|
|
10
10
|
export interface IStripeHomepageCheckoutSessionVar {
|
|
11
11
|
lineItems: IStripeLineItem[];
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export type IStripeHomepageCheckoutSessionData = RootData<string, 'stripeHomepageCheckoutSession'>;
|
|
@@ -5,7 +5,7 @@ export interface ILoginUserVar {
|
|
|
5
5
|
password: string;
|
|
6
6
|
days: number;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type ILoginUserData = RootData<string, 'loginUser'>;
|
|
9
9
|
export declare const REGISTER_USER: import("@apollo/client").DocumentNode;
|
|
10
10
|
export interface RegisterUserInput {
|
|
11
11
|
displayName: string;
|
|
@@ -22,15 +22,15 @@ export interface RegisterUserInput {
|
|
|
22
22
|
export interface IRegisterUserVar {
|
|
23
23
|
userData: RegisterUserInput;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type IRegisterUserData = RootData<string, 'registerUser'>;
|
|
26
26
|
export declare const RESET_PASSWORD_PREP: import("@apollo/client").DocumentNode;
|
|
27
27
|
export interface IResetPasswordPrepVar {
|
|
28
28
|
username: string;
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export type IResetPasswordPrepData = RootData<string, 'resetPasswordPrep'>;
|
|
31
31
|
export declare const RESET_PASSWORD: import("@apollo/client").DocumentNode;
|
|
32
32
|
export interface IResetPasswordVar {
|
|
33
33
|
token: string;
|
|
34
34
|
password: string;
|
|
35
35
|
}
|
|
36
|
-
export
|
|
36
|
+
export type IResetPasswordData = RootData<string, 'resetPassword'>;
|
|
@@ -2,13 +2,13 @@ export declare const CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION: import("@apollo/c
|
|
|
2
2
|
export interface ICreateNewSubscriptionCheckoutSessionVar {
|
|
3
3
|
priceId: string;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type ICreateNewSubscriptionCheckoutSessionData = {
|
|
6
6
|
validUserToken: {
|
|
7
7
|
createNewSubscriptionCheckoutSession: string | null;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
export
|
|
11
|
-
export
|
|
10
|
+
export type IRenewTokenVar = null;
|
|
11
|
+
export type IRenewTokenData = {
|
|
12
12
|
validUserToken: {
|
|
13
13
|
renewToken: string;
|
|
14
14
|
};
|
|
@@ -2,5 +2,5 @@ import { AdminData } from '../../types';
|
|
|
2
2
|
export interface IGetUserTokenVar {
|
|
3
3
|
username: string;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type IGetUserTokenData = AdminData<string, 'getUserToken'>;
|
|
6
6
|
export declare const GET_USER_TOKEN: import("@apollo/client").DocumentNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IAuthor } from '../../models';
|
|
2
2
|
import { graphqlNormalize, RootData } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export type IAuthorsData = RootData<(graphqlNormalize & IAuthor)[], 'authors'>;
|
|
4
4
|
export declare const AUTHORS: import("@apollo/client").DocumentNode;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { IBlogPost, IBlogTag } from '../../models';
|
|
2
2
|
import { graphqlNormalize, RootData } from '../types';
|
|
3
3
|
export declare const BLOG_TAGS: import("@apollo/client").DocumentNode;
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type IBlogTagsVar = null;
|
|
5
|
+
export type IBlogTagsData = RootData<(graphqlNormalize & IBlogTag)[], 'blogTags'>;
|
|
6
6
|
export declare const BLOG_POST: import("@apollo/client").DocumentNode;
|
|
7
7
|
export interface IBlogPostVar {
|
|
8
8
|
id: number;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type IBlogPostData = RootData<graphqlNormalize & IBlogPost, 'blogPost'>;
|
|
11
11
|
export declare const BLOG_POSTS: import("@apollo/client").DocumentNode;
|
|
12
12
|
export interface IBlogPostsVar {
|
|
13
13
|
tagIds: number[];
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type IBlogPostsData = RootData<(graphqlNormalize & IBlogPost)[], 'blogPosts'>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IBook } from '../../models';
|
|
2
2
|
import { graphqlNormalize, RootData } from './../types';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type IBooksData = RootData<(graphqlNormalize & IBook)[], 'books'>;
|
|
4
|
+
export type IBooksVar = null;
|
|
5
5
|
export declare const BOOKS: import("@apollo/client").DocumentNode;
|
|
6
|
-
export
|
|
6
|
+
export type IBookData = RootData<graphqlNormalize & IBook, 'book'>;
|
|
7
7
|
export interface IBookVar {
|
|
8
8
|
id: number;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IFeedback } from '../../models';
|
|
2
2
|
import { graphqlNormalize, RootData } from '../types';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type IFeedbackData = RootData<(graphqlNormalize & IFeedback)[], 'feedback'>;
|
|
4
|
+
export type IFeedbackVar = null;
|
|
5
5
|
export declare const FEEDBACK: import("@apollo/client").DocumentNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IProduct } from '../../models';
|
|
2
2
|
import { graphqlNormalize, RootData } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export type IProductsData = RootData<(graphqlNormalize & IProduct)[], 'products'>;
|
|
4
4
|
export declare const PRODUCTS: import("@apollo/client").DocumentNode;
|
|
@@ -8,5 +8,5 @@ export interface IQuesBookDict {
|
|
|
8
8
|
export interface IConceptExplanationVar {
|
|
9
9
|
chapterId: number;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type IConceptExplanationData = RestrictedData<graphqlNormalize & string, 'conceptExplanation'>;
|
|
12
12
|
export declare const CONCEPT_EXPLANATION: import("@apollo/client").DocumentNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type ITotalQuestionsVar = null;
|
|
3
|
+
export type ITotalQuestionsData = RestrictedData<graphqlNormalize & number, 'totalQuestions'>;
|
|
4
4
|
export declare const TOTAL_QUESTIONS: import("@apollo/client").DocumentNode;
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type ITotalCardsVar = null;
|
|
6
|
+
export type ITotalCardsData = RestrictedData<graphqlNormalize & number, 'totalCards'>;
|
|
7
7
|
export declare const TOTAL_CARDS: import("@apollo/client").DocumentNode;
|
|
@@ -4,7 +4,7 @@ import { graphqlNormalize, RestrictedData } from '../../types';
|
|
|
4
4
|
export interface IMarksheetVar {
|
|
5
5
|
id: Id;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type IMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'marksheet'>;
|
|
8
8
|
export declare const MARKSHEET: import("@apollo/client").DocumentNode;
|
|
9
9
|
export interface IMarksheetsVar {
|
|
10
10
|
filter: {
|
|
@@ -14,7 +14,7 @@ export interface IMarksheetsVar {
|
|
|
14
14
|
solo?: boolean;
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export type IMarksheetsData = RestrictedData<{
|
|
18
18
|
results: (graphqlNormalize & IMarksheet)[];
|
|
19
19
|
total: number;
|
|
20
20
|
score: number;
|
|
@@ -25,14 +25,14 @@ export interface PaginatedMarksheets {
|
|
|
25
25
|
score: number;
|
|
26
26
|
}
|
|
27
27
|
export declare const MARKSHEETS: import("@apollo/client").DocumentNode;
|
|
28
|
-
export
|
|
29
|
-
export
|
|
28
|
+
export type ILatestPastMarksheetIdVar = null;
|
|
29
|
+
export type ILatestPastMarksheetIdData = RestrictedData<number, 'latestPastMarksheetId'>;
|
|
30
30
|
export declare const LATEST_PAST_MARKSHEET_ID: import("@apollo/client").DocumentNode;
|
|
31
31
|
/**
|
|
32
32
|
* latestAgoraId
|
|
33
33
|
*/
|
|
34
|
-
export
|
|
35
|
-
export
|
|
34
|
+
export type ILatestAgoraIdVar = null;
|
|
35
|
+
export type ILatestAgoraIdData = RestrictedData<string, 'latestAgoraId'>;
|
|
36
36
|
export declare const LATEST_PAST_AGORA_ID: import("@apollo/client").DocumentNode;
|
|
37
37
|
export interface IFlaggedQuestionsVar {
|
|
38
38
|
filter: {
|
|
@@ -40,8 +40,8 @@ export interface IFlaggedQuestionsVar {
|
|
|
40
40
|
offset: number;
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
export
|
|
44
|
-
export
|
|
43
|
+
export type IFlaggedQuestionDataResults = (graphqlNormalize & IUserFlaggedQuestion)[];
|
|
44
|
+
export type IFlaggedQuestionsData = RestrictedData<graphqlNormalize & {
|
|
45
45
|
results: IFlaggedQuestionDataResults;
|
|
46
46
|
total: number;
|
|
47
47
|
}, 'flaggedQuestions'>;
|
|
@@ -49,8 +49,8 @@ export declare const FLAGGED_QUESTIONS: import("@apollo/client").DocumentNode;
|
|
|
49
49
|
/**
|
|
50
50
|
* flaggedQuestionMarksheet
|
|
51
51
|
*/
|
|
52
|
-
export
|
|
53
|
-
export
|
|
52
|
+
export type IFlaggedQuestionsMarksheetVar = null;
|
|
53
|
+
export type IFlaggedQuestionsMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'flaggedQuestionsMarksheet'>;
|
|
54
54
|
export declare const FLAGGED_QUESTIONS_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
55
55
|
export interface IMarksheetFeedbackVar {
|
|
56
56
|
id: Id;
|
|
@@ -71,7 +71,7 @@ export interface IMarksheetFeedback {
|
|
|
71
71
|
passingMark: number;
|
|
72
72
|
topics: IMarksheetTopicFeedback[];
|
|
73
73
|
}
|
|
74
|
-
export
|
|
74
|
+
export type IMarksheetFeedbackData = RestrictedData<graphqlNormalize & IMarksheetFeedback, 'marksheetFeedback'>;
|
|
75
75
|
export declare const MARKSHEET_FEEDBACK: import("@apollo/client").DocumentNode;
|
|
76
76
|
/**
|
|
77
77
|
* heartbeatQbank
|
|
@@ -79,7 +79,7 @@ export declare const MARKSHEET_FEEDBACK: import("@apollo/client").DocumentNode;
|
|
|
79
79
|
export interface IQbankHeartbeatVar {
|
|
80
80
|
agoraId: string;
|
|
81
81
|
}
|
|
82
|
-
export
|
|
82
|
+
export type IQBankHeartBeatData = RestrictedData<boolean, 'heartbeatQbank'>;
|
|
83
83
|
export declare const HEARTBEAT_QBANK: import("@apollo/client").DocumentNode;
|
|
84
84
|
/**
|
|
85
85
|
* preBuildMarksheet
|
|
@@ -92,5 +92,5 @@ export interface IPreBuildMarksheetVar {
|
|
|
92
92
|
source: string;
|
|
93
93
|
difficulty?: EDifficultyType[];
|
|
94
94
|
}
|
|
95
|
-
export
|
|
95
|
+
export type IPreBuildMarksheetData = RestrictedData<graphqlNormalize & IPreBuildMarksheet, 'preBuildMarksheet'>;
|
|
96
96
|
export declare const PRE_BUILD_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
@@ -3,10 +3,10 @@ import { graphqlNormalize, RestrictedData } from '../../types';
|
|
|
3
3
|
export interface IMockTestVar {
|
|
4
4
|
id: Id;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type IMockTestData = RestrictedData<graphqlNormalize & IUserMockTest, 'mockTest'>;
|
|
7
7
|
export declare const MOCK_TEST: import("@apollo/client").DocumentNode;
|
|
8
8
|
export interface IMockTestsVar {
|
|
9
9
|
typeIds?: ETopicType[];
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type IMockTestsData = RestrictedData<(graphqlNormalize & IUserMockTest)[], 'mockTests'>;
|
|
12
12
|
export declare const MOCK_TESTS: import("@apollo/client").DocumentNode;
|
|
@@ -6,5 +6,5 @@ export interface INotificationsVar {
|
|
|
6
6
|
offset?: number;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type INotificationsData = RestrictedData<graphqlNormalize & INotification[], 'notifications'>;
|
|
10
10
|
export declare const NOTIFICATIONS: import("@apollo/client").DocumentNode;
|
|
@@ -5,17 +5,17 @@ export declare const DASHBOARD_OSCE: import("@apollo/client").DocumentNode;
|
|
|
5
5
|
export interface IDashboardOsceVar {
|
|
6
6
|
solo: boolean;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type IDashboardOsceData = RestrictedData<graphqlNormalize & IDashboardOsce, 'dashboardOsce'>;
|
|
9
9
|
export declare const OSCE_MARKSHEETS: import("@apollo/client").DocumentNode;
|
|
10
10
|
export interface IOsceMarksheetsVar {
|
|
11
11
|
solo: boolean;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export type IOsceMarksheetsData = RestrictedData<(graphqlNormalize & IOsceMarksheet)[], 'osceMarksheets'>;
|
|
14
14
|
export declare const OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
15
15
|
export interface IOsceMarksheetVar {
|
|
16
16
|
id: number;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type IOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'osceMarksheet'>;
|
|
19
19
|
export declare const OSCE_STATIONS: import("@apollo/client").DocumentNode;
|
|
20
20
|
export interface IOsceStationsVar {
|
|
21
21
|
osceTypeId?: Id;
|
|
@@ -24,22 +24,22 @@ export interface IOsceStationsVar {
|
|
|
24
24
|
difficulty?: EDifficultyType[];
|
|
25
25
|
topicIds?: Id[];
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export 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;
|
|
31
31
|
}
|
|
32
|
-
export
|
|
32
|
+
export type IOsceStationData = RestrictedData<graphqlNormalize & IOsceStation, 'osceStation'>;
|
|
33
33
|
export declare const OSCE_TOPICS: import("@apollo/client").DocumentNode;
|
|
34
|
-
export
|
|
35
|
-
export
|
|
34
|
+
export type IOsceTopicsVar = null;
|
|
35
|
+
export type IOsceTopicsData = RestrictedData<(graphqlNormalize & ITopic)[], 'osceTopics'>;
|
|
36
36
|
export declare const SEARCH_OSCE_STATIONS: import("@apollo/client").DocumentNode;
|
|
37
37
|
export interface ISearchOsceStationsVar {
|
|
38
38
|
search: string;
|
|
39
39
|
}
|
|
40
|
-
export
|
|
40
|
+
export 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;
|
|
44
44
|
}
|
|
45
|
-
export
|
|
45
|
+
export type IHeartBeatData = RestrictedData<boolean, 'heartbeat'>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IOsceStation, ITopic } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type IQuesBookVar = null;
|
|
4
|
+
export type IQuesBookData = RestrictedData<(graphqlNormalize & ITopic)[], 'quesBook'>;
|
|
5
5
|
export declare const QUES_BOOK: import("@apollo/client").DocumentNode;
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type IOsceBookVar = null;
|
|
7
|
+
export type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
|
|
8
8
|
export declare const OSCE_BOOK: import("@apollo/client").DocumentNode;
|
|
@@ -3,5 +3,5 @@ import { graphqlNormalize, RestrictedData } from '../../types';
|
|
|
3
3
|
export interface IQuestionVar {
|
|
4
4
|
id: Id;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type IQuestionData = RestrictedData<graphqlNormalize & IQuestion, 'question'>;
|
|
7
7
|
export declare const QUESTION: import("@apollo/client").DocumentNode;
|
|
@@ -6,10 +6,10 @@ export interface IPreBuildTodoVar {
|
|
|
6
6
|
search: string;
|
|
7
7
|
source: string;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type IPreBuildTodoData = RestrictedData<graphqlNormalize & IPreBuildTodo, 'preBuildTodo'>;
|
|
10
10
|
export declare const PRE_BUILD_TODO: import("@apollo/client").DocumentNode;
|
|
11
11
|
export interface ITodoVar {
|
|
12
12
|
id: Id;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type ITodoData = RestrictedData<graphqlNormalize & ITodo, 'todo'>;
|
|
15
15
|
export declare const TODO: import("@apollo/client").DocumentNode;
|
|
@@ -3,12 +3,12 @@ import { graphqlNormalize, RestrictedData } from '../../types';
|
|
|
3
3
|
export interface ITopicVar {
|
|
4
4
|
id: Id;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type ITopicData = RestrictedData<graphqlNormalize & ITopic, 'topic'>;
|
|
7
7
|
export declare const TOPIC: import("@apollo/client").DocumentNode;
|
|
8
8
|
export interface ITopicsVar {
|
|
9
9
|
filter: ETopicType;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type ITopicsData = RestrictedData<(graphqlNormalize & ITopic)[], 'topics'>;
|
|
12
12
|
export declare const TOPICS: import("@apollo/client").DocumentNode;
|
|
13
13
|
export declare const QUESTION_TOPICS: import("@apollo/client").DocumentNode;
|
|
14
14
|
export declare const FLASHCARDS_TOPICS: import("@apollo/client").DocumentNode;
|
|
@@ -15,5 +15,5 @@ export interface IUniversityLeaderboard {
|
|
|
15
15
|
month: IUniversitiesRankSpeciality[];
|
|
16
16
|
quarter: IUniversitiesRankSpeciality[];
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type IUniversityLeaderboardData = RestrictedData<graphqlNormalize & IUniversityLeaderboard, 'universityLeaderboard'>;
|
|
19
19
|
export declare const UNIVERSITY_LEADERBOARD: import("@apollo/client").DocumentNode;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IUser } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type IUserVar = null;
|
|
4
|
+
export type IUserData = RestrictedData<graphqlNormalize & IUser, 'user'>;
|
|
5
5
|
export declare const USER: import("@apollo/client").DocumentNode;
|
|
6
6
|
export declare const REFERRALS: import("@apollo/client").DocumentNode;
|
|
7
7
|
export declare const USER_COMPLETED_DATA: import("@apollo/client").DocumentNode;
|
|
8
|
-
export
|
|
9
|
-
export
|
|
8
|
+
export type IDailyFeedVar = null;
|
|
9
|
+
export type IDailyFeedData = RestrictedData<graphqlNormalize & Pick<IUser, 'dailyFeed'>, 'user'>;
|
|
10
10
|
export declare const DAILY_FEED: import("@apollo/client").DocumentNode;
|
|
@@ -4,7 +4,7 @@ import { EPlatformId } from './../../../index';
|
|
|
4
4
|
export interface IVideoVar {
|
|
5
5
|
id: Id;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type IVideoData = RestrictedData<graphqlNormalize & IVideo, 'video'>;
|
|
8
8
|
export declare const VIDEO: import("@apollo/client").DocumentNode;
|
|
9
9
|
export interface IVideosVar {
|
|
10
10
|
platform: EPlatformId;
|
|
@@ -12,5 +12,5 @@ export interface IVideosVar {
|
|
|
12
12
|
limit: number;
|
|
13
13
|
search?: String;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type IVideosData = RestrictedData<(graphqlNormalize & IVideo)[], 'videos'>;
|
|
16
16
|
export declare const VIDEOS: import("@apollo/client").DocumentNode;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { IMarksheet, IOsceMarksheet, ITodo } from '../../models';
|
|
2
2
|
import { graphqlNormalize, RootData } from '../types';
|
|
3
3
|
export declare const SAMPLE_CONTENT: import("@apollo/client").DocumentNode;
|
|
4
|
-
export
|
|
4
|
+
export type ISampleContentVar = null;
|
|
5
5
|
interface ISampleContent {
|
|
6
6
|
marksheets: IMarksheet[];
|
|
7
7
|
todos: ITodo[];
|
|
8
8
|
osceMarksheets: IOsceMarksheet[];
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type ISampleContentData = RootData<graphqlNormalize & ISampleContent, 'sampleContent'>;
|
|
11
11
|
export declare const SAMPLE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
12
12
|
export interface ISampleMarksheetVar {
|
|
13
13
|
marksheetId: number;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type ISampleMarksheetData = RootData<graphqlNormalize & IMarksheet, 'sampleMarksheet'>;
|
|
16
16
|
export declare const SAMPLE_TODO: import("@apollo/client").DocumentNode;
|
|
17
17
|
export interface ISampleTodoVar {
|
|
18
18
|
todoId: number;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
20
|
+
export type ISampleTodoData = RootData<graphqlNormalize & ITodo, 'sampleTodo'>;
|
|
21
21
|
export declare const SAMPLE_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
22
22
|
export interface ISampleOsceMarksheetVar {
|
|
23
23
|
osceMarksheetId: number;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type ISampleOsceMarksheetData = RootData<graphqlNormalize & IOsceMarksheet, 'sampleOsceMarksheet'>;
|
|
26
26
|
export {};
|
|
@@ -3,5 +3,5 @@ import { graphqlNormalize, RootData } from '../types';
|
|
|
3
3
|
export interface IUniversitiesVar {
|
|
4
4
|
id: Id;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type IUniversitiesData = RootData<graphqlNormalize & IUniversity[], 'universities'>;
|
|
7
7
|
export declare const UNIVERSITIES: import("@apollo/client").DocumentNode;
|
|
@@ -2,10 +2,10 @@ import { RootData } from '../types';
|
|
|
2
2
|
export interface IUsernameAvailableVar {
|
|
3
3
|
username: string;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type IUsernameAvailableData = RootData<boolean, 'usernameAvailable'>;
|
|
6
6
|
export declare const USERNAME_AVAILABILITY: import("@apollo/client").DocumentNode;
|
|
7
7
|
export interface IUsernameProvisionedVar {
|
|
8
8
|
username: string;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type IUsernameProvisionedData = RootData<boolean, 'usernameProvisioned'>;
|
|
11
11
|
export declare const USERNAME_PROVISIONED: import("@apollo/client").DocumentNode;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { IVideo } from '../../models';
|
|
2
2
|
import { graphqlNormalize, RootData } from '../types';
|
|
3
3
|
export { IVideosVar, IVideoVar } from './restricted/video';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type IVideoData = RootData<graphqlNormalize & IVideo, 'video'>;
|
|
5
|
+
export type IVideosData = RootData<(graphqlNormalize & IVideo)[], 'videos'>;
|
|
6
6
|
export declare const SAMPLE_VIDEOS: import("@apollo/client").DocumentNode;
|
|
7
7
|
export declare const SAMPLE_VIDEO: import("@apollo/client").DocumentNode;
|
|
8
8
|
export interface IZoomSignatureVar {
|
|
9
9
|
meetingNumber: string;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type IZoomSignatureData = RootData<graphqlNormalize & string, 'zoomSignature'>;
|
|
12
12
|
export declare const ZOOM_SIGNATURE: import("@apollo/client").DocumentNode;
|
|
@@ -28,7 +28,7 @@ export interface IMarksheetInfo {
|
|
|
28
28
|
users: IUser[];
|
|
29
29
|
activeUsers: IUser[];
|
|
30
30
|
}
|
|
31
|
-
export
|
|
31
|
+
export type IOnMarksheetChangeData = RootData<IMarksheetInfo, 'onMarksheetChange'>;
|
|
32
32
|
export declare const ON_MARKSHEET_CHANGE_KEY = "ON_MARKSHEET_CHANGE_KEY";
|
|
33
33
|
export declare const ON_MARKSHEET_CHANGE: import("@apollo/client").DocumentNode;
|
|
34
34
|
/**
|
|
@@ -45,7 +45,7 @@ export interface IPreStartMarksheetData {
|
|
|
45
45
|
marksheetId: Id;
|
|
46
46
|
user: IUser;
|
|
47
47
|
}
|
|
48
|
-
export
|
|
48
|
+
export type IOnPreStartMarksheetChangeData = RootData<IPreStartMarksheetData, 'onPreStartMarksheetChange'>;
|
|
49
49
|
export declare const ON_PRESTART_MARKSHEET_CHANGE_KEY = "ON_PRESTART_MARKSHEET_CHANGE_KEY";
|
|
50
50
|
export declare const ON_PRESTART_MARKSHEET_CHANGE: import("@apollo/client").DocumentNode;
|
|
51
51
|
/**
|
|
@@ -68,6 +68,6 @@ export interface IMarksheetMarkData {
|
|
|
68
68
|
user: IUser;
|
|
69
69
|
striked?: number[];
|
|
70
70
|
}
|
|
71
|
-
export
|
|
71
|
+
export type IOnMarksheetMarkChangeData = RootData<IMarksheetMarkData, 'onMarksheetMarkChange'>;
|
|
72
72
|
export declare const ON_MARKSHEET_MARK_CHANGE_KEY = "ON_MARKSHEET_CHANGE_KEY";
|
|
73
73
|
export declare const ON_MARKSHEET_MARK_CHANGE: import("@apollo/client").DocumentNode;
|
|
@@ -8,8 +8,8 @@ export interface INewNotification {
|
|
|
8
8
|
userId: Id;
|
|
9
9
|
notification: INotification[];
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type IOnNotificationPublisherData = RootData<INewNotification, 'onNotificationArise'>;
|
|
12
|
+
export type IOnNotificationAriseData = RootData<INotification[], 'onNotificationArise'>;
|
|
13
13
|
export declare const ON_NOTIFICATION_ARISE = "ON_NOTIFICATION_ARISE";
|
|
14
14
|
export declare const NOTIFICATION_ARISE: import("@apollo/client").DocumentNode;
|
|
15
15
|
export declare const onNotificationArise: ({ client, subscriptionData, }: OnSubscriptionDataOptions<IOnNotificationAriseData>) => void;
|
|
@@ -20,7 +20,7 @@ export declare const OSCE_ROLE_CHANGE: import("@apollo/client").DocumentNode;
|
|
|
20
20
|
export interface IOsceRoleChangedVar {
|
|
21
21
|
osceMarksheetId: Id;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type IOsceRoleChangedData = RootData<IOsceGroup, 'osceRoleChange'>;
|
|
24
24
|
export declare const OSCE_MARKSHEET_ACTION: import("@apollo/client").DocumentNode;
|
|
25
25
|
export interface IOsceMarksheetActionVar {
|
|
26
26
|
osceMarksheetId: Id;
|
|
@@ -34,7 +34,7 @@ export interface IOsceMarksheetAction {
|
|
|
34
34
|
endedAt: Date | null;
|
|
35
35
|
action: EOsceMarksheetAction;
|
|
36
36
|
}
|
|
37
|
-
export
|
|
37
|
+
export type IOsceMarksheetActionData = RootData<IOsceMarksheetAction, 'osceMarksheetAction'>;
|
|
38
38
|
export declare const OSCE_MATCHMAKING: import("@apollo/client").DocumentNode;
|
|
39
39
|
export interface IOsceMatchmakingAction {
|
|
40
40
|
osceMarksheetId: Id;
|
|
@@ -52,10 +52,10 @@ export interface IOsceMatchmakingAction {
|
|
|
52
52
|
export interface IOsceMatchmakingVar {
|
|
53
53
|
userId: Id;
|
|
54
54
|
}
|
|
55
|
-
export
|
|
55
|
+
export type IOsceMatchmakingData = RootData<IOsceMatchmakingAction, 'osceMatchmaking'>;
|
|
56
56
|
export declare const OSCE_MATCHMAKING_USERS: import("@apollo/client").DocumentNode;
|
|
57
|
-
export
|
|
58
|
-
export
|
|
57
|
+
export type IOsceMatchmakingUsersVar = null;
|
|
58
|
+
export type IOsceMatchmakingUsersData = RootData<[
|
|
59
59
|
number,
|
|
60
60
|
number
|
|
61
61
|
], 'osceMatchmakingUsers'>;
|
|
@@ -63,4 +63,4 @@ export declare const OSCE_MARKSHEET_TIMER: import("@apollo/client").DocumentNode
|
|
|
63
63
|
export interface IOsceMarksheetTimerVar {
|
|
64
64
|
osceMarksheetId: number;
|
|
65
65
|
}
|
|
66
|
-
export
|
|
66
|
+
export type IOsceMarksheetTimerData = RootData<IOsceMarksheetTimer, 'osceMarksheetTimer'>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export interface graphqlNormalize {
|
|
2
2
|
__typename?: string;
|
|
3
3
|
}
|
|
4
|
-
export
|
|
4
|
+
export type RestrictedData<T, K extends keyof any> = {
|
|
5
5
|
restricted: Record<K, T>;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type AdminData<T, K extends keyof any> = {
|
|
8
8
|
admin: Record<K, T>;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type RootData<T, K extends keyof any> = Record<K, T>;
|