@quesmed/types-rn 2.0.16 → 2.1.2
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/index.d.ts +2 -2
- package/models/OsceMarksheet.d.ts +0 -1
- package/models/Question.d.ts +3 -0
- package/models/Type.d.ts +1 -0
- package/package.json +3 -3
- package/resolvers/apollo.d.ts +1 -3
- package/resolvers/fragments/chapter.js +14 -3
- package/resolvers/fragments/index.d.ts +2 -0
- package/resolvers/fragments/index.js +2 -0
- package/resolvers/fragments/marksheet.d.ts +1 -0
- package/resolvers/fragments/marksheet.js +109 -0
- package/resolvers/fragments/mockTest.d.ts +1 -0
- package/resolvers/fragments/mockTest.js +16 -0
- package/resolvers/fragments/osce.js +1 -1
- package/resolvers/fragments/topic.d.ts +1 -0
- package/resolvers/fragments/topic.js +18 -0
- package/resolvers/fragments/user.js +3 -3
- package/resolvers/mutation/admin/algoliaSync.d.ts +4 -0
- package/resolvers/mutation/admin/algoliaSync.js +30 -0
- package/resolvers/mutation/admin/token.d.ts +2 -0
- package/resolvers/mutation/admin/token.js +16 -0
- package/resolvers/mutation/restricted/contactUs.d.ts +1 -0
- package/resolvers/mutation/restricted/contactUs.js +13 -0
- package/resolvers/mutation/restricted/marksheet.d.ts +5 -0
- package/resolvers/mutation/restricted/marksheet.js +92 -0
- package/resolvers/mutation/restricted/mockTest.d.ts +3 -0
- package/resolvers/mutation/restricted/mockTest.js +29 -0
- package/resolvers/mutation/restricted/questionDiscussion.d.ts +5 -1
- package/resolvers/mutation/restricted/questionDiscussion.js +152 -0
- package/resolvers/mutation/restricted/todo.d.ts +8 -0
- package/resolvers/mutation/restricted/todo.js +150 -0
- package/resolvers/mutation/restricted/token.d.ts +2 -0
- package/resolvers/mutation/restricted/token.js +19 -0
- package/resolvers/mutation/restricted/users.d.ts +3 -0
- package/resolvers/mutation/restricted/users.js +24 -1
- package/resolvers/mutation/restricted/video.d.ts +1 -0
- package/resolvers/mutation/restricted/video.js +13 -0
- package/resolvers/mutation/stripe.d.ts +2 -0
- package/resolvers/mutation/stripe.js +12 -0
- package/resolvers/mutation/users.d.ts +4 -0
- package/resolvers/mutation/users.js +22 -0
- package/resolvers/mutation/validUserToken/user.d.ts +2 -0
- package/resolvers/mutation/validUserToken/user.js +16 -0
- package/resolvers/query/admin/getUserToken.d.ts +1 -0
- package/resolvers/query/admin/getUserToken.js +9 -0
- package/resolvers/query/author.d.ts +1 -0
- package/resolvers/query/author.js +16 -0
- package/resolvers/query/book.d.ts +3 -1
- package/resolvers/query/book.js +42 -0
- package/resolvers/query/feedback.d.ts +2 -0
- package/resolvers/query/feedback.js +12 -0
- package/resolvers/query/restricted/global.d.ts +2 -0
- package/resolvers/query/restricted/global.js +16 -0
- package/resolvers/query/restricted/index.d.ts +1 -0
- package/resolvers/query/restricted/index.js +1 -0
- package/resolvers/query/restricted/marksheet.d.ts +6 -0
- package/resolvers/query/restricted/marksheet.js +996 -0
- package/resolvers/query/restricted/mockTests.d.ts +2 -0
- package/resolvers/query/restricted/mockTests.js +23 -0
- package/resolvers/query/restricted/osce.js +2 -2
- package/resolvers/query/restricted/qBank.d.ts +18 -0
- package/resolvers/query/restricted/qBank.js +77 -0
- package/resolvers/query/restricted/quesBook.d.ts +2 -1
- package/resolvers/query/restricted/quesBook.js +39 -1
- package/resolvers/query/restricted/replication.d.ts +2 -3
- package/resolvers/query/restricted/todos.d.ts +2 -0
- package/resolvers/query/restricted/todos.js +63 -0
- package/resolvers/query/restricted/topics.d.ts +2 -0
- package/resolvers/query/restricted/topics.js +38 -0
- package/resolvers/query/restricted/university.d.ts +1 -0
- package/resolvers/query/restricted/university.js +23 -0
- package/resolvers/query/restricted/user.d.ts +2 -2
- package/resolvers/query/restricted/user.js +24 -0
- package/resolvers/query/restricted/video.d.ts +5 -3
- package/resolvers/query/restricted/video.js +98 -0
- package/resolvers/query/sample.js +4 -0
- package/resolvers/query/subscription.d.ts +1 -0
- package/resolvers/query/subscription.js +18 -0
- package/resolvers/query/university.d.ts +1 -0
- package/resolvers/query/university.js +10 -0
- package/resolvers/query/user.d.ts +2 -0
- package/resolvers/query/user.js +12 -0
- package/resolvers/query/video.d.ts +4 -1
- package/resolvers/query/video.js +99 -0
|
@@ -4,7 +4,9 @@ export interface IMockTestVar {
|
|
|
4
4
|
id: Id;
|
|
5
5
|
}
|
|
6
6
|
export declare type IMockTestData = RestrictedData<graphqlNormalize & IUserMockTest, 'mockTest'>;
|
|
7
|
+
export declare const MOCK_TEST: import("@apollo/client").DocumentNode;
|
|
7
8
|
export interface IMockTestsVar {
|
|
8
9
|
typeIds?: ETopicType[];
|
|
9
10
|
}
|
|
10
11
|
export declare type IMockTestsData = RestrictedData<(graphqlNormalize & IUserMockTest)[], 'mockTests'>;
|
|
12
|
+
export declare const MOCK_TESTS: import("@apollo/client").DocumentNode;
|
|
@@ -1,2 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MOCK_TESTS = exports.MOCK_TEST = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const fragments_1 = require("../../fragments");
|
|
6
|
+
exports.MOCK_TEST = (0, client_1.gql) `
|
|
7
|
+
${fragments_1.MOCK_TEST_FIELDS}
|
|
8
|
+
query MockTest($id: Int!) {
|
|
9
|
+
restricted {
|
|
10
|
+
mockTest(id: $id) {
|
|
11
|
+
...MockTestFields
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
exports.MOCK_TESTS = (0, client_1.gql) `
|
|
17
|
+
${fragments_1.MOCK_TEST_FIELDS}
|
|
18
|
+
query MockTests($typeIds: [Int!]) {
|
|
19
|
+
restricted {
|
|
20
|
+
mockTests(typeIds: $typeIds) {
|
|
21
|
+
...MockTestFields
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IDailyProgressInfo, IMarksheet, ITodo, ITopic, IUser } from '../../../models';
|
|
2
|
+
import { IUniversitiesRankSpeciality } from './university';
|
|
3
|
+
export interface IDashboardQBank {
|
|
4
|
+
restricted: {
|
|
5
|
+
latestPastMarksheetId: number;
|
|
6
|
+
user: IUser;
|
|
7
|
+
marksheets: IMarksheet[];
|
|
8
|
+
dailyFeed: ITodo;
|
|
9
|
+
dailyProgress: IDailyProgressInfo[];
|
|
10
|
+
topics: ITopic[];
|
|
11
|
+
totalQuestions: number;
|
|
12
|
+
totalCards: number;
|
|
13
|
+
universityLeaderboard: {
|
|
14
|
+
month: IUniversitiesRankSpeciality[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare const DASHBOARD_QBANK: import("@apollo/client").DocumentNode;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DASHBOARD_QBANK = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
exports.DASHBOARD_QBANK = (0, client_1.gql) `
|
|
6
|
+
query Dashboard($filter: MarksheetFilterInput!) {
|
|
7
|
+
restricted {
|
|
8
|
+
latestPastMarksheetId
|
|
9
|
+
user {
|
|
10
|
+
id
|
|
11
|
+
examDate
|
|
12
|
+
completedQuestionsCount
|
|
13
|
+
completedCorrectQuestionsCount
|
|
14
|
+
completedIncorrectQuestionsCount
|
|
15
|
+
completedCardsCount
|
|
16
|
+
completedGreenCardsCount
|
|
17
|
+
completedYellowCardsCount
|
|
18
|
+
completedRedCardsCount
|
|
19
|
+
marksheetsCount
|
|
20
|
+
dailyFeed {
|
|
21
|
+
topics {
|
|
22
|
+
id
|
|
23
|
+
name
|
|
24
|
+
typeId
|
|
25
|
+
totalCards
|
|
26
|
+
totalQuestions
|
|
27
|
+
dailyFeedCards
|
|
28
|
+
}
|
|
29
|
+
id
|
|
30
|
+
marks {
|
|
31
|
+
id
|
|
32
|
+
score
|
|
33
|
+
}
|
|
34
|
+
redCards
|
|
35
|
+
yellowCards
|
|
36
|
+
greenCards
|
|
37
|
+
dailyTask
|
|
38
|
+
}
|
|
39
|
+
dailyProgress {
|
|
40
|
+
totalCount
|
|
41
|
+
dateString
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
totalQuestions
|
|
45
|
+
totalCards
|
|
46
|
+
marksheets(filter: $filter) {
|
|
47
|
+
id
|
|
48
|
+
topicNames
|
|
49
|
+
correct
|
|
50
|
+
incorrect
|
|
51
|
+
totalQuestions
|
|
52
|
+
isTestMarksheet
|
|
53
|
+
}
|
|
54
|
+
topics(filter: 0) {
|
|
55
|
+
id
|
|
56
|
+
name
|
|
57
|
+
totalQuestions
|
|
58
|
+
correctQuestions
|
|
59
|
+
incorrectQuestions
|
|
60
|
+
totalCards
|
|
61
|
+
greenCards
|
|
62
|
+
yellowCards
|
|
63
|
+
redCards
|
|
64
|
+
dailyFeedCards
|
|
65
|
+
}
|
|
66
|
+
universityLeaderboard(limit: 3) {
|
|
67
|
+
updatedAt
|
|
68
|
+
month {
|
|
69
|
+
id
|
|
70
|
+
name
|
|
71
|
+
speciality
|
|
72
|
+
rank
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
`;
|
|
@@ -2,6 +2,7 @@ import { IOsceStation, ITopic } from '../../../models';
|
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
export declare type IQuesBookVar = null;
|
|
4
4
|
export declare type IQuesBookData = RestrictedData<(graphqlNormalize & ITopic)[], 'quesBook'>;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const QUES_BOOK: import("@apollo/client").DocumentNode;
|
|
6
6
|
export declare type IOsceBookVar = null;
|
|
7
7
|
export declare type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
|
|
8
|
+
export declare const OSCE_BOOK: import("@apollo/client").DocumentNode;
|
|
@@ -1,8 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OSCE_BOOK = void 0;
|
|
3
|
+
exports.OSCE_BOOK = exports.QUES_BOOK = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const osce_1 = require("./../../fragments/osce");
|
|
6
|
+
exports.QUES_BOOK = (0, client_1.gql) `
|
|
7
|
+
query quesBook {
|
|
8
|
+
restricted {
|
|
9
|
+
quesBook {
|
|
10
|
+
id
|
|
11
|
+
name
|
|
12
|
+
concepts {
|
|
13
|
+
id
|
|
14
|
+
name
|
|
15
|
+
chapter {
|
|
16
|
+
id
|
|
17
|
+
typeId
|
|
18
|
+
explanation
|
|
19
|
+
pictures {
|
|
20
|
+
id
|
|
21
|
+
caption
|
|
22
|
+
path
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
topicId
|
|
26
|
+
videos {
|
|
27
|
+
id
|
|
28
|
+
title
|
|
29
|
+
museId
|
|
30
|
+
thumbnail
|
|
31
|
+
concepts {
|
|
32
|
+
id
|
|
33
|
+
name
|
|
34
|
+
}
|
|
35
|
+
live
|
|
36
|
+
description
|
|
37
|
+
duration
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
6
44
|
exports.OSCE_BOOK = (0, client_1.gql) `
|
|
7
45
|
${osce_1.OSCE_STATION_FIELDS}
|
|
8
46
|
query OsceBook {
|
|
@@ -5,20 +5,19 @@ interface IQueryBuilder {
|
|
|
5
5
|
}
|
|
6
6
|
interface IReplicationVar {
|
|
7
7
|
lastId: string;
|
|
8
|
-
minUpdatedAt: number;
|
|
8
|
+
minUpdatedAt: Date | number;
|
|
9
9
|
limit: number;
|
|
10
10
|
}
|
|
11
11
|
export interface ITopicReplicationVar extends IReplicationVar {
|
|
12
12
|
}
|
|
13
13
|
export interface ITopicReplicationData extends ITopic {
|
|
14
|
-
updatedAt: number;
|
|
14
|
+
updatedAt: Date | number;
|
|
15
15
|
deleted: boolean;
|
|
16
16
|
}
|
|
17
17
|
export declare const pullTopicQueryBuilder: (doc: Partial<ITopicReplicationData>) => IQueryBuilder;
|
|
18
18
|
export interface IQuestionReplicationVar extends IReplicationVar {
|
|
19
19
|
}
|
|
20
20
|
export interface IQuestionReplicationData extends IQuestion {
|
|
21
|
-
updatedAt: number;
|
|
22
21
|
deleted: boolean;
|
|
23
22
|
}
|
|
24
23
|
export declare const pullQuestionQueryBuilder: (doc: Partial<IQuestionReplicationData>) => IQueryBuilder;
|
|
@@ -7,7 +7,9 @@ export interface IPreBuildTodoVar {
|
|
|
7
7
|
source: string;
|
|
8
8
|
}
|
|
9
9
|
export declare type IPreBuildTodoData = RestrictedData<graphqlNormalize & IPreBuildTodo, 'preBuildTodo'>;
|
|
10
|
+
export declare const PRE_BUILD_TODO: import("@apollo/client").DocumentNode;
|
|
10
11
|
export interface ITodoVar {
|
|
11
12
|
id: Id;
|
|
12
13
|
}
|
|
13
14
|
export declare type ITodoData = RestrictedData<graphqlNormalize & ITodo, 'todo'>;
|
|
15
|
+
export declare const TODO: import("@apollo/client").DocumentNode;
|
|
@@ -1,2 +1,65 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TODO = exports.PRE_BUILD_TODO = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
exports.PRE_BUILD_TODO = (0, client_1.gql) `
|
|
6
|
+
query PreBuildTodo(
|
|
7
|
+
$topicIds: [Int!]
|
|
8
|
+
$conceptIds: [Int!]
|
|
9
|
+
$search: String
|
|
10
|
+
$source: String!
|
|
11
|
+
) {
|
|
12
|
+
restricted {
|
|
13
|
+
preBuildTodo(
|
|
14
|
+
topicIds: $topicIds
|
|
15
|
+
conceptIds: $conceptIds
|
|
16
|
+
search: $search
|
|
17
|
+
source: $source
|
|
18
|
+
) {
|
|
19
|
+
unseen
|
|
20
|
+
seen
|
|
21
|
+
buildRef
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
exports.TODO = (0, client_1.gql) `
|
|
27
|
+
query Todo($todoId: Int!) {
|
|
28
|
+
restricted {
|
|
29
|
+
todo(id: $todoId) {
|
|
30
|
+
id
|
|
31
|
+
dailyTask
|
|
32
|
+
source
|
|
33
|
+
marks {
|
|
34
|
+
id
|
|
35
|
+
cardId
|
|
36
|
+
score
|
|
37
|
+
timeTaken
|
|
38
|
+
card {
|
|
39
|
+
question
|
|
40
|
+
explanation
|
|
41
|
+
concept {
|
|
42
|
+
videos {
|
|
43
|
+
id
|
|
44
|
+
title
|
|
45
|
+
museId
|
|
46
|
+
thumbnail
|
|
47
|
+
concepts {
|
|
48
|
+
name
|
|
49
|
+
}
|
|
50
|
+
live
|
|
51
|
+
description
|
|
52
|
+
duration
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
pictures {
|
|
56
|
+
id
|
|
57
|
+
caption
|
|
58
|
+
path
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
@@ -4,7 +4,9 @@ export interface ITopicVar {
|
|
|
4
4
|
id: Id;
|
|
5
5
|
}
|
|
6
6
|
export declare type ITopicData = RestrictedData<graphqlNormalize & ITopic, 'topic'>;
|
|
7
|
+
export declare const TOPIC: import("@apollo/client").DocumentNode;
|
|
7
8
|
export interface ITopicsVar {
|
|
8
9
|
filter: ETopicType;
|
|
9
10
|
}
|
|
10
11
|
export declare type ITopicsData = RestrictedData<(graphqlNormalize & ITopic)[], 'topics'>;
|
|
12
|
+
export declare const TOPICS: import("@apollo/client").DocumentNode;
|
|
@@ -1,2 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TOPICS = exports.TOPIC = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
exports.TOPIC = (0, client_1.gql) `
|
|
6
|
+
query Topic($topicId: Int!) {
|
|
7
|
+
restricted {
|
|
8
|
+
topic(id: $topicId) {
|
|
9
|
+
id
|
|
10
|
+
name
|
|
11
|
+
totalQuestions
|
|
12
|
+
correctQuestions
|
|
13
|
+
incorrectQuestions
|
|
14
|
+
totalCards
|
|
15
|
+
greenCards
|
|
16
|
+
yellowCards
|
|
17
|
+
redCards
|
|
18
|
+
dailyFeedCards
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
exports.TOPICS = (0, client_1.gql) `
|
|
24
|
+
query Topics($filter: Int!) {
|
|
25
|
+
restricted {
|
|
26
|
+
topics(filter: $filter) {
|
|
27
|
+
id
|
|
28
|
+
name
|
|
29
|
+
totalQuestions
|
|
30
|
+
correctQuestions
|
|
31
|
+
incorrectQuestions
|
|
32
|
+
totalCards
|
|
33
|
+
greenCards
|
|
34
|
+
yellowCards
|
|
35
|
+
redCards
|
|
36
|
+
dailyFeedCards
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
@@ -13,3 +13,4 @@ export interface IUniversityLeaderboard {
|
|
|
13
13
|
quarter: IUniversitiesRankSpeciality[];
|
|
14
14
|
}
|
|
15
15
|
export declare type IUniversityLeaderboardData = RestrictedData<graphqlNormalize & IUniversityLeaderboard, 'universityLeaderboard'>;
|
|
16
|
+
export declare const UNIVERSITY_LEADERBOARD: import("@apollo/client").DocumentNode;
|
|
@@ -1,2 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UNIVERSITY_LEADERBOARD = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
exports.UNIVERSITY_LEADERBOARD = (0, client_1.gql) `
|
|
6
|
+
query UniversityLeaderboard($limit: Int!) {
|
|
7
|
+
restricted {
|
|
8
|
+
universityLeaderboard(limit: $limit) {
|
|
9
|
+
updatedAt
|
|
10
|
+
month {
|
|
11
|
+
id
|
|
12
|
+
name
|
|
13
|
+
speciality
|
|
14
|
+
rank
|
|
15
|
+
}
|
|
16
|
+
quarter {
|
|
17
|
+
id
|
|
18
|
+
name
|
|
19
|
+
speciality
|
|
20
|
+
rank
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IUser } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
|
-
export declare type IDashboardUserVar = null;
|
|
4
|
-
export declare type IDashboardUserData = RestrictedData<graphqlNormalize & IUser, 'dashboardUser'>;
|
|
5
3
|
export declare type IUserVar = null;
|
|
6
4
|
export declare type IUserData = RestrictedData<graphqlNormalize & IUser, 'user'>;
|
|
5
|
+
export declare const USER: import("@apollo/client").DocumentNode;
|
|
6
|
+
export declare const REFERRALS: import("@apollo/client").DocumentNode;
|
|
@@ -1,2 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REFERRALS = exports.USER = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const user_1 = require("../../fragments/user");
|
|
6
|
+
exports.USER = (0, client_1.gql) `
|
|
7
|
+
${user_1.USER_FIELDS}
|
|
8
|
+
query User {
|
|
9
|
+
restricted {
|
|
10
|
+
user {
|
|
11
|
+
...UserFields
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
exports.REFERRALS = (0, client_1.gql) `
|
|
17
|
+
query Referrals {
|
|
18
|
+
restricted {
|
|
19
|
+
user {
|
|
20
|
+
id
|
|
21
|
+
username
|
|
22
|
+
referralCount
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { Id, IVideo } from '../../../models';
|
|
1
|
+
import { Id, IVideo, VideoFilter } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
export interface IVideoVar {
|
|
4
4
|
id: Id;
|
|
5
5
|
}
|
|
6
6
|
export declare type IVideoData = RestrictedData<graphqlNormalize & IVideo, 'video'>;
|
|
7
|
+
export declare const VIDEO: import("@apollo/client").DocumentNode;
|
|
7
8
|
export interface IVideosVar {
|
|
8
|
-
filter:
|
|
9
|
-
search?: string;
|
|
9
|
+
filter: VideoFilter;
|
|
10
10
|
limit: number;
|
|
11
|
+
search?: String;
|
|
11
12
|
}
|
|
12
13
|
export declare type IVideosData = RestrictedData<(graphqlNormalize & IVideo)[], 'videos'>;
|
|
14
|
+
export declare const VIDEOS: import("@apollo/client").DocumentNode;
|
|
@@ -1,2 +1,100 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VIDEOS = exports.VIDEO = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const fragments_1 = require("../../fragments");
|
|
6
|
+
exports.VIDEO = (0, client_1.gql) `
|
|
7
|
+
${fragments_1.PICTURE_FIELDS}
|
|
8
|
+
${fragments_1.VIDEO_FILE_FIELDS}
|
|
9
|
+
query Video($videoId: Int!) {
|
|
10
|
+
restricted {
|
|
11
|
+
video(id: $videoId) {
|
|
12
|
+
id
|
|
13
|
+
title
|
|
14
|
+
museId
|
|
15
|
+
viewsToday
|
|
16
|
+
views
|
|
17
|
+
thumbnail
|
|
18
|
+
concepts {
|
|
19
|
+
id
|
|
20
|
+
name
|
|
21
|
+
chapter {
|
|
22
|
+
id
|
|
23
|
+
explanation
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
osceStation {
|
|
27
|
+
id
|
|
28
|
+
name
|
|
29
|
+
osceType {
|
|
30
|
+
id
|
|
31
|
+
}
|
|
32
|
+
candidateBrief
|
|
33
|
+
examinerBrief
|
|
34
|
+
actorBrief
|
|
35
|
+
marks {
|
|
36
|
+
id
|
|
37
|
+
index
|
|
38
|
+
osceStationId
|
|
39
|
+
header
|
|
40
|
+
name
|
|
41
|
+
}
|
|
42
|
+
candidatePictures {
|
|
43
|
+
...PictureFields
|
|
44
|
+
}
|
|
45
|
+
actorPictures {
|
|
46
|
+
...PictureFields
|
|
47
|
+
}
|
|
48
|
+
examinerPictures {
|
|
49
|
+
...PictureFields
|
|
50
|
+
}
|
|
51
|
+
walkthroughPictures {
|
|
52
|
+
...PictureFields
|
|
53
|
+
}
|
|
54
|
+
lastOsceMarksheetId
|
|
55
|
+
}
|
|
56
|
+
live
|
|
57
|
+
description
|
|
58
|
+
duration
|
|
59
|
+
startTime
|
|
60
|
+
endTime
|
|
61
|
+
files {
|
|
62
|
+
...VideoFileFields
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
exports.VIDEOS = (0, client_1.gql) `
|
|
69
|
+
query Videos($filter: String!, $search: String, $limit: Int!) {
|
|
70
|
+
restricted {
|
|
71
|
+
videos(filter: $filter, search: $search, limit: $limit) {
|
|
72
|
+
id
|
|
73
|
+
title
|
|
74
|
+
museId
|
|
75
|
+
thumbnail
|
|
76
|
+
viewsToday
|
|
77
|
+
views
|
|
78
|
+
live
|
|
79
|
+
description
|
|
80
|
+
duration
|
|
81
|
+
startTime
|
|
82
|
+
endTime
|
|
83
|
+
concepts {
|
|
84
|
+
id
|
|
85
|
+
name
|
|
86
|
+
topicId
|
|
87
|
+
topic {
|
|
88
|
+
id
|
|
89
|
+
name
|
|
90
|
+
typeId
|
|
91
|
+
}
|
|
92
|
+
chapter {
|
|
93
|
+
id
|
|
94
|
+
explanation
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
`;
|
|
@@ -17,6 +17,7 @@ exports.SAMPLE_CONTENT = (0, client_1.gql) `
|
|
|
17
17
|
osceMarksheets {
|
|
18
18
|
id
|
|
19
19
|
osceStation {
|
|
20
|
+
id
|
|
20
21
|
name
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -39,8 +40,10 @@ exports.SAMPLE_MARKSHEET = (0, client_1.gql) `
|
|
|
39
40
|
typeId
|
|
40
41
|
conceptId
|
|
41
42
|
concept {
|
|
43
|
+
id
|
|
42
44
|
name
|
|
43
45
|
chapter {
|
|
46
|
+
id
|
|
44
47
|
explanation
|
|
45
48
|
}
|
|
46
49
|
}
|
|
@@ -76,6 +79,7 @@ exports.SAMPLE_TODO = (0, client_1.gql) `
|
|
|
76
79
|
concept {
|
|
77
80
|
name
|
|
78
81
|
chapter {
|
|
82
|
+
id
|
|
79
83
|
explanation
|
|
80
84
|
}
|
|
81
85
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ISubscription } from '../../models';
|
|
2
2
|
import { graphqlNormalize, RootData } from '../types';
|
|
3
3
|
export declare type ISubscriptionsData = RootData<(graphqlNormalize & ISubscription)[], 'subscriptions'>;
|
|
4
|
+
export declare const SUBSCRIPTIONS: import("@apollo/client").DocumentNode;
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUBSCRIPTIONS = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
exports.SUBSCRIPTIONS = (0, client_1.gql) `
|
|
6
|
+
query Subscriptions {
|
|
7
|
+
subscriptions {
|
|
8
|
+
id
|
|
9
|
+
createdAt
|
|
10
|
+
description
|
|
11
|
+
duration
|
|
12
|
+
name
|
|
13
|
+
price
|
|
14
|
+
stripePriceId
|
|
15
|
+
duration
|
|
16
|
+
public
|
|
17
|
+
typeId
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UNIVERSITIES = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
exports.UNIVERSITIES = (0, client_1.gql) `
|
|
6
|
+
query universities($id: Int) {
|
|
7
|
+
universities(id: $id) {
|
|
8
|
+
name
|
|
9
|
+
id
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
@@ -3,7 +3,9 @@ export interface IUsernameAvailableVar {
|
|
|
3
3
|
username: string;
|
|
4
4
|
}
|
|
5
5
|
export declare type IUsernameAvailableData = RootData<boolean, 'usernameAvailable'>;
|
|
6
|
+
export declare const USERNAME_AVAILABILITY: import("@apollo/client").DocumentNode;
|
|
6
7
|
export interface IUsernameProvisionedVar {
|
|
7
8
|
username: string;
|
|
8
9
|
}
|
|
9
10
|
export declare type IUsernameProvisionedData = RootData<boolean, 'usernameProvisioned'>;
|
|
11
|
+
export declare const USERNAME_PROVISIONED: import("@apollo/client").DocumentNode;
|
package/resolvers/query/user.js
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.USERNAME_PROVISIONED = exports.USERNAME_AVAILABILITY = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
exports.USERNAME_AVAILABILITY = (0, client_1.gql) `
|
|
6
|
+
query UsernameAvailable($username: String!) {
|
|
7
|
+
usernameAvailable(username: $username)
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
exports.USERNAME_PROVISIONED = (0, client_1.gql) `
|
|
11
|
+
query UsernameProvisioned($username: String!) {
|
|
12
|
+
usernameProvisioned(username: $username)
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
@@ -1,9 +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 declare type IVideosData = RootData<(graphqlNormalize & IVideo)[], 'videos'>;
|
|
5
4
|
export declare type IVideoData = RootData<graphqlNormalize & IVideo, 'video'>;
|
|
5
|
+
export declare type IVideosData = RootData<(graphqlNormalize & IVideo)[], 'videos'>;
|
|
6
|
+
export declare const SAMPLE_VIDEOS: import("@apollo/client").DocumentNode;
|
|
7
|
+
export declare const SAMPLE_VIDEO: import("@apollo/client").DocumentNode;
|
|
6
8
|
export interface IZoomSignatureVar {
|
|
7
9
|
meetingNumber: string;
|
|
8
10
|
}
|
|
9
11
|
export declare type IZoomSignatureData = RootData<graphqlNormalize & string, 'zoomSignature'>;
|
|
12
|
+
export declare const ZOOM_SIGNATURE: import("@apollo/client").DocumentNode;
|