@quesmed/types 2.6.49 → 2.6.51
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/Chapter.d.ts +2 -0
- package/dist/cjs/models/User.d.ts +10 -0
- package/dist/cjs/resolvers/fragments/chapter.js +7 -0
- package/dist/cjs/resolvers/mutation/restricted/chapter.d.ts +8 -0
- package/dist/cjs/resolvers/mutation/restricted/chapter.js +18 -0
- package/dist/cjs/resolvers/mutation/restricted/index.d.ts +1 -0
- package/dist/cjs/resolvers/mutation/restricted/index.js +1 -0
- package/dist/cjs/resolvers/query/restricted/concepts.js +4 -28
- package/dist/cjs/resolvers/query/restricted/quesBook.js +7 -44
- package/dist/cjs/resolvers/query/restricted/todos.js +3 -14
- package/dist/cjs/resolvers/query/restricted/video.js +2 -15
- package/dist/mjs/models/Chapter.d.ts +2 -0
- package/dist/mjs/models/User.d.ts +10 -0
- package/dist/mjs/resolvers/fragments/chapter.js +7 -0
- package/dist/mjs/resolvers/mutation/restricted/chapter.d.ts +8 -0
- package/dist/mjs/resolvers/mutation/restricted/chapter.js +15 -0
- package/dist/mjs/resolvers/mutation/restricted/index.d.ts +1 -0
- package/dist/mjs/resolvers/mutation/restricted/index.js +1 -0
- package/dist/mjs/resolvers/query/restricted/concepts.js +4 -28
- package/dist/mjs/resolvers/query/restricted/quesBook.js +7 -44
- package/dist/mjs/resolvers/query/restricted/todos.js +3 -14
- package/dist/mjs/resolvers/query/restricted/video.js +3 -16
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { IFile } from './File';
|
|
|
2
2
|
import { IPicture } from './Picture';
|
|
3
3
|
import { ETopicType } from './Topic';
|
|
4
4
|
import { Id } from './Type';
|
|
5
|
+
import { IUserChapterNote } from './User';
|
|
5
6
|
export interface IChapter {
|
|
6
7
|
id: Id;
|
|
7
8
|
createdAt: number | Date;
|
|
@@ -11,4 +12,5 @@ export interface IChapter {
|
|
|
11
12
|
typeId: ETopicType | null;
|
|
12
13
|
pictures?: IPicture[];
|
|
13
14
|
files?: IFile[];
|
|
15
|
+
userNote: null | IUserChapterNote;
|
|
14
16
|
}
|
|
@@ -11,6 +11,7 @@ import { ITodo } from './Todo';
|
|
|
11
11
|
import { Id } from './Type';
|
|
12
12
|
import { IUniversity } from './University';
|
|
13
13
|
import { IVideo } from './Video';
|
|
14
|
+
import { IChapter } from './Chapter';
|
|
14
15
|
export type IUserSubsriptionDates = keyof ExtractKeysWithPattern<IPayload, 'EndDate'>;
|
|
15
16
|
export declare enum IAccessLevel {
|
|
16
17
|
SUBSCRIBER = "subscriber",
|
|
@@ -156,6 +157,15 @@ export interface IUserCompletedQuestion {
|
|
|
156
157
|
question: IQuestion;
|
|
157
158
|
concept: IConcept;
|
|
158
159
|
}
|
|
160
|
+
export interface IUserChapterNote {
|
|
161
|
+
id: Id;
|
|
162
|
+
createdAt: number | Date;
|
|
163
|
+
updatedAt: number | Date;
|
|
164
|
+
chapterId: Id;
|
|
165
|
+
chapter: IChapter;
|
|
166
|
+
userId: Id;
|
|
167
|
+
note: string;
|
|
168
|
+
}
|
|
159
169
|
export interface IUserCompletedCard {
|
|
160
170
|
id: Id;
|
|
161
171
|
createdAt: number | Date;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IUserChapterNote } from '../../../models';
|
|
2
|
+
import { RestrictedData } from '../../types';
|
|
3
|
+
export declare const UPSERT_CHAPTER_NOTE: import("@apollo/client").DocumentNode;
|
|
4
|
+
export interface IUpsertChapterNoteVar {
|
|
5
|
+
chapterId: number;
|
|
6
|
+
note: string;
|
|
7
|
+
}
|
|
8
|
+
export type IUpsertChapterNoteData = RestrictedData<IUserChapterNote, 'upsertChapterNote'>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UPSERT_CHAPTER_NOTE = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
exports.UPSERT_CHAPTER_NOTE = (0, client_1.gql) `
|
|
6
|
+
mutation UpsertChapterNote($chapterId: Int!, $note: String!) {
|
|
7
|
+
restricted {
|
|
8
|
+
upsertChapterNote(chapterId: $chapterId, note: $note) {
|
|
9
|
+
id
|
|
10
|
+
chapterId
|
|
11
|
+
userId
|
|
12
|
+
note
|
|
13
|
+
createdAt
|
|
14
|
+
updatedAt
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./agora"), exports);
|
|
18
|
+
__exportStar(require("./chapter"), exports);
|
|
18
19
|
__exportStar(require("./contactUs"), exports);
|
|
19
20
|
__exportStar(require("./marksheet"), exports);
|
|
20
21
|
__exportStar(require("./mockTest"), exports);
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CONCEPTS = exports.CONCEPT = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
+
const fragments_1 = require("../../fragments");
|
|
5
6
|
exports.CONCEPT = (0, client_1.gql) `
|
|
7
|
+
${fragments_1.CHAPTER_FIELDS}
|
|
6
8
|
query Concept($id: Int!) {
|
|
7
9
|
restricted {
|
|
8
10
|
concept(id: $id) {
|
|
@@ -16,20 +18,7 @@ exports.CONCEPT = (0, client_1.gql) `
|
|
|
16
18
|
typeId
|
|
17
19
|
}
|
|
18
20
|
chapter {
|
|
19
|
-
|
|
20
|
-
explanation
|
|
21
|
-
pictures {
|
|
22
|
-
id
|
|
23
|
-
createdAt
|
|
24
|
-
updatedAt
|
|
25
|
-
name
|
|
26
|
-
caption
|
|
27
|
-
path
|
|
28
|
-
path512
|
|
29
|
-
path256
|
|
30
|
-
index
|
|
31
|
-
topicId
|
|
32
|
-
}
|
|
21
|
+
...ChapterFields
|
|
33
22
|
}
|
|
34
23
|
videos {
|
|
35
24
|
id
|
|
@@ -65,20 +54,7 @@ exports.CONCEPTS = (0, client_1.gql) `
|
|
|
65
54
|
typeId
|
|
66
55
|
}
|
|
67
56
|
chapter {
|
|
68
|
-
|
|
69
|
-
explanation
|
|
70
|
-
pictures {
|
|
71
|
-
id
|
|
72
|
-
createdAt
|
|
73
|
-
updatedAt
|
|
74
|
-
name
|
|
75
|
-
caption
|
|
76
|
-
path
|
|
77
|
-
path512
|
|
78
|
-
path256
|
|
79
|
-
index
|
|
80
|
-
topicId
|
|
81
|
-
}
|
|
57
|
+
...ChapterFields
|
|
82
58
|
}
|
|
83
59
|
videos {
|
|
84
60
|
id
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PACE_VIDEO_LIBRARY = exports.PACE_KNOWLEDGE_LIBRARY = exports.OSCE_KNOWLEDGE_VIDEO_LIBRARY = exports.PUBLIC_QBANK_KNOWLEDGE_LIBRARY = exports.QBANK_KNOWLEDGE_VIDEO_LIBRARY = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
+
const fragments_1 = require("../../fragments");
|
|
5
6
|
const osce_1 = require("./../../fragments/osce");
|
|
6
7
|
exports.QBANK_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
|
|
8
|
+
${fragments_1.CHAPTER_FIELDS}
|
|
7
9
|
query QBankKnowledgeVideoLibrary($typeId: [Int], $videosOnly: Boolean) {
|
|
8
10
|
restricted {
|
|
9
11
|
quesBook(typeId: $typeId, videosOnly: $videosOnly) {
|
|
@@ -32,21 +34,7 @@ exports.QBANK_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
|
|
|
32
34
|
totalCards
|
|
33
35
|
totalQuestions
|
|
34
36
|
chapter {
|
|
35
|
-
|
|
36
|
-
typeId
|
|
37
|
-
explanation
|
|
38
|
-
pictures {
|
|
39
|
-
id
|
|
40
|
-
createdAt
|
|
41
|
-
updatedAt
|
|
42
|
-
name
|
|
43
|
-
caption
|
|
44
|
-
path
|
|
45
|
-
path512
|
|
46
|
-
path256
|
|
47
|
-
thumbhash
|
|
48
|
-
index
|
|
49
|
-
}
|
|
37
|
+
...ChapterFields
|
|
50
38
|
}
|
|
51
39
|
topicId
|
|
52
40
|
videos {
|
|
@@ -70,6 +58,7 @@ exports.QBANK_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
|
|
|
70
58
|
}
|
|
71
59
|
`;
|
|
72
60
|
exports.PUBLIC_QBANK_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
|
|
61
|
+
${fragments_1.CHAPTER_FIELDS}
|
|
73
62
|
query PublicQuesBook($typeId: [Int], $videosOnly: Boolean) {
|
|
74
63
|
quesBook(typeId: $typeId, videosOnly: $videosOnly) {
|
|
75
64
|
id
|
|
@@ -97,21 +86,7 @@ exports.PUBLIC_QBANK_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
|
|
|
97
86
|
totalCards
|
|
98
87
|
totalQuestions
|
|
99
88
|
chapter {
|
|
100
|
-
|
|
101
|
-
typeId
|
|
102
|
-
explanation
|
|
103
|
-
pictures {
|
|
104
|
-
id
|
|
105
|
-
createdAt
|
|
106
|
-
updatedAt
|
|
107
|
-
name
|
|
108
|
-
caption
|
|
109
|
-
path
|
|
110
|
-
path512
|
|
111
|
-
path256
|
|
112
|
-
thumbhash
|
|
113
|
-
index
|
|
114
|
-
}
|
|
89
|
+
...ChapterFields
|
|
115
90
|
}
|
|
116
91
|
topicId
|
|
117
92
|
videos {
|
|
@@ -146,6 +121,7 @@ exports.OSCE_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
|
|
|
146
121
|
}
|
|
147
122
|
`;
|
|
148
123
|
exports.PACE_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
|
|
124
|
+
${fragments_1.CHAPTER_FIELDS}
|
|
149
125
|
query PaceKnowledgeLibrary {
|
|
150
126
|
restricted {
|
|
151
127
|
paceBook {
|
|
@@ -160,20 +136,7 @@ exports.PACE_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
|
|
|
160
136
|
index
|
|
161
137
|
}
|
|
162
138
|
chapter {
|
|
163
|
-
|
|
164
|
-
typeId
|
|
165
|
-
explanation
|
|
166
|
-
pictures {
|
|
167
|
-
id
|
|
168
|
-
createdAt
|
|
169
|
-
updatedAt
|
|
170
|
-
name
|
|
171
|
-
caption
|
|
172
|
-
path
|
|
173
|
-
path512
|
|
174
|
-
path256
|
|
175
|
-
index
|
|
176
|
-
}
|
|
139
|
+
...ChapterFields
|
|
177
140
|
}
|
|
178
141
|
topicId
|
|
179
142
|
videos {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TODO = exports.PRE_BUILD_TODO = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
+
const fragments_1 = require("../../fragments");
|
|
5
6
|
exports.PRE_BUILD_TODO = (0, client_1.gql) `
|
|
6
7
|
query PreBuildTodo(
|
|
7
8
|
$topicIds: [Int!]
|
|
@@ -24,6 +25,7 @@ exports.PRE_BUILD_TODO = (0, client_1.gql) `
|
|
|
24
25
|
}
|
|
25
26
|
`;
|
|
26
27
|
exports.TODO = (0, client_1.gql) `
|
|
28
|
+
${fragments_1.CHAPTER_FIELDS}
|
|
27
29
|
query Todo($id: Int!) {
|
|
28
30
|
restricted {
|
|
29
31
|
todo(id: $id) {
|
|
@@ -60,20 +62,7 @@ exports.TODO = (0, client_1.gql) `
|
|
|
60
62
|
duration
|
|
61
63
|
}
|
|
62
64
|
chapter {
|
|
63
|
-
|
|
64
|
-
explanation
|
|
65
|
-
pictures {
|
|
66
|
-
id
|
|
67
|
-
createdAt
|
|
68
|
-
updatedAt
|
|
69
|
-
name
|
|
70
|
-
caption
|
|
71
|
-
path
|
|
72
|
-
path512
|
|
73
|
-
path256
|
|
74
|
-
thumbhash
|
|
75
|
-
index
|
|
76
|
-
}
|
|
65
|
+
...ChapterFields
|
|
77
66
|
}
|
|
78
67
|
}
|
|
79
68
|
pictures {
|
|
@@ -5,6 +5,7 @@ const client_1 = require("@apollo/client");
|
|
|
5
5
|
const fragments_1 = require("../../fragments");
|
|
6
6
|
exports.VIDEO = (0, client_1.gql) `
|
|
7
7
|
${fragments_1.PICTURE_FIELDS}
|
|
8
|
+
${fragments_1.CHAPTER_FIELDS}
|
|
8
9
|
query Video($id: Int!) {
|
|
9
10
|
restricted {
|
|
10
11
|
video(id: $id) {
|
|
@@ -25,21 +26,7 @@ exports.VIDEO = (0, client_1.gql) `
|
|
|
25
26
|
typeId
|
|
26
27
|
}
|
|
27
28
|
chapter {
|
|
28
|
-
|
|
29
|
-
explanation
|
|
30
|
-
pictures {
|
|
31
|
-
id
|
|
32
|
-
createdAt
|
|
33
|
-
updatedAt
|
|
34
|
-
name
|
|
35
|
-
caption
|
|
36
|
-
path
|
|
37
|
-
path512
|
|
38
|
-
path256
|
|
39
|
-
thumbhash
|
|
40
|
-
index
|
|
41
|
-
topicId
|
|
42
|
-
}
|
|
29
|
+
...ChapterFields
|
|
43
30
|
}
|
|
44
31
|
}
|
|
45
32
|
osceStation {
|
|
@@ -2,6 +2,7 @@ import { IFile } from './File';
|
|
|
2
2
|
import { IPicture } from './Picture';
|
|
3
3
|
import { ETopicType } from './Topic';
|
|
4
4
|
import { Id } from './Type';
|
|
5
|
+
import { IUserChapterNote } from './User';
|
|
5
6
|
export interface IChapter {
|
|
6
7
|
id: Id;
|
|
7
8
|
createdAt: number | Date;
|
|
@@ -11,4 +12,5 @@ export interface IChapter {
|
|
|
11
12
|
typeId: ETopicType | null;
|
|
12
13
|
pictures?: IPicture[];
|
|
13
14
|
files?: IFile[];
|
|
15
|
+
userNote: null | IUserChapterNote;
|
|
14
16
|
}
|
|
@@ -11,6 +11,7 @@ import { ITodo } from './Todo';
|
|
|
11
11
|
import { Id } from './Type';
|
|
12
12
|
import { IUniversity } from './University';
|
|
13
13
|
import { IVideo } from './Video';
|
|
14
|
+
import { IChapter } from './Chapter';
|
|
14
15
|
export type IUserSubsriptionDates = keyof ExtractKeysWithPattern<IPayload, 'EndDate'>;
|
|
15
16
|
export declare enum IAccessLevel {
|
|
16
17
|
SUBSCRIBER = "subscriber",
|
|
@@ -156,6 +157,15 @@ export interface IUserCompletedQuestion {
|
|
|
156
157
|
question: IQuestion;
|
|
157
158
|
concept: IConcept;
|
|
158
159
|
}
|
|
160
|
+
export interface IUserChapterNote {
|
|
161
|
+
id: Id;
|
|
162
|
+
createdAt: number | Date;
|
|
163
|
+
updatedAt: number | Date;
|
|
164
|
+
chapterId: Id;
|
|
165
|
+
chapter: IChapter;
|
|
166
|
+
userId: Id;
|
|
167
|
+
note: string;
|
|
168
|
+
}
|
|
159
169
|
export interface IUserCompletedCard {
|
|
160
170
|
id: Id;
|
|
161
171
|
createdAt: number | Date;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IUserChapterNote } from '../../../models';
|
|
2
|
+
import { RestrictedData } from '../../types';
|
|
3
|
+
export declare const UPSERT_CHAPTER_NOTE: import("@apollo/client").DocumentNode;
|
|
4
|
+
export interface IUpsertChapterNoteVar {
|
|
5
|
+
chapterId: number;
|
|
6
|
+
note: string;
|
|
7
|
+
}
|
|
8
|
+
export type IUpsertChapterNoteData = RestrictedData<IUserChapterNote, 'upsertChapterNote'>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
export const UPSERT_CHAPTER_NOTE = gql `
|
|
3
|
+
mutation UpsertChapterNote($chapterId: Int!, $note: String!) {
|
|
4
|
+
restricted {
|
|
5
|
+
upsertChapterNote(chapterId: $chapterId, note: $note) {
|
|
6
|
+
id
|
|
7
|
+
chapterId
|
|
8
|
+
userId
|
|
9
|
+
note
|
|
10
|
+
createdAt
|
|
11
|
+
updatedAt
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
|
+
import { CHAPTER_FIELDS } from '../../fragments';
|
|
2
3
|
export const CONCEPT = gql `
|
|
4
|
+
${CHAPTER_FIELDS}
|
|
3
5
|
query Concept($id: Int!) {
|
|
4
6
|
restricted {
|
|
5
7
|
concept(id: $id) {
|
|
@@ -13,20 +15,7 @@ export const CONCEPT = gql `
|
|
|
13
15
|
typeId
|
|
14
16
|
}
|
|
15
17
|
chapter {
|
|
16
|
-
|
|
17
|
-
explanation
|
|
18
|
-
pictures {
|
|
19
|
-
id
|
|
20
|
-
createdAt
|
|
21
|
-
updatedAt
|
|
22
|
-
name
|
|
23
|
-
caption
|
|
24
|
-
path
|
|
25
|
-
path512
|
|
26
|
-
path256
|
|
27
|
-
index
|
|
28
|
-
topicId
|
|
29
|
-
}
|
|
18
|
+
...ChapterFields
|
|
30
19
|
}
|
|
31
20
|
videos {
|
|
32
21
|
id
|
|
@@ -62,20 +51,7 @@ export const CONCEPTS = gql `
|
|
|
62
51
|
typeId
|
|
63
52
|
}
|
|
64
53
|
chapter {
|
|
65
|
-
|
|
66
|
-
explanation
|
|
67
|
-
pictures {
|
|
68
|
-
id
|
|
69
|
-
createdAt
|
|
70
|
-
updatedAt
|
|
71
|
-
name
|
|
72
|
-
caption
|
|
73
|
-
path
|
|
74
|
-
path512
|
|
75
|
-
path256
|
|
76
|
-
index
|
|
77
|
-
topicId
|
|
78
|
-
}
|
|
54
|
+
...ChapterFields
|
|
79
55
|
}
|
|
80
56
|
videos {
|
|
81
57
|
id
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
|
+
import { CHAPTER_FIELDS } from '../../fragments';
|
|
2
3
|
import { OSCE_STATION_FIELDS } from './../../fragments/osce';
|
|
3
4
|
export const QBANK_KNOWLEDGE_VIDEO_LIBRARY = gql `
|
|
5
|
+
${CHAPTER_FIELDS}
|
|
4
6
|
query QBankKnowledgeVideoLibrary($typeId: [Int], $videosOnly: Boolean) {
|
|
5
7
|
restricted {
|
|
6
8
|
quesBook(typeId: $typeId, videosOnly: $videosOnly) {
|
|
@@ -29,21 +31,7 @@ export const QBANK_KNOWLEDGE_VIDEO_LIBRARY = gql `
|
|
|
29
31
|
totalCards
|
|
30
32
|
totalQuestions
|
|
31
33
|
chapter {
|
|
32
|
-
|
|
33
|
-
typeId
|
|
34
|
-
explanation
|
|
35
|
-
pictures {
|
|
36
|
-
id
|
|
37
|
-
createdAt
|
|
38
|
-
updatedAt
|
|
39
|
-
name
|
|
40
|
-
caption
|
|
41
|
-
path
|
|
42
|
-
path512
|
|
43
|
-
path256
|
|
44
|
-
thumbhash
|
|
45
|
-
index
|
|
46
|
-
}
|
|
34
|
+
...ChapterFields
|
|
47
35
|
}
|
|
48
36
|
topicId
|
|
49
37
|
videos {
|
|
@@ -67,6 +55,7 @@ export const QBANK_KNOWLEDGE_VIDEO_LIBRARY = gql `
|
|
|
67
55
|
}
|
|
68
56
|
`;
|
|
69
57
|
export const PUBLIC_QBANK_KNOWLEDGE_LIBRARY = gql `
|
|
58
|
+
${CHAPTER_FIELDS}
|
|
70
59
|
query PublicQuesBook($typeId: [Int], $videosOnly: Boolean) {
|
|
71
60
|
quesBook(typeId: $typeId, videosOnly: $videosOnly) {
|
|
72
61
|
id
|
|
@@ -94,21 +83,7 @@ export const PUBLIC_QBANK_KNOWLEDGE_LIBRARY = gql `
|
|
|
94
83
|
totalCards
|
|
95
84
|
totalQuestions
|
|
96
85
|
chapter {
|
|
97
|
-
|
|
98
|
-
typeId
|
|
99
|
-
explanation
|
|
100
|
-
pictures {
|
|
101
|
-
id
|
|
102
|
-
createdAt
|
|
103
|
-
updatedAt
|
|
104
|
-
name
|
|
105
|
-
caption
|
|
106
|
-
path
|
|
107
|
-
path512
|
|
108
|
-
path256
|
|
109
|
-
thumbhash
|
|
110
|
-
index
|
|
111
|
-
}
|
|
86
|
+
...ChapterFields
|
|
112
87
|
}
|
|
113
88
|
topicId
|
|
114
89
|
videos {
|
|
@@ -143,6 +118,7 @@ export const OSCE_KNOWLEDGE_VIDEO_LIBRARY = gql `
|
|
|
143
118
|
}
|
|
144
119
|
`;
|
|
145
120
|
export const PACE_KNOWLEDGE_LIBRARY = gql `
|
|
121
|
+
${CHAPTER_FIELDS}
|
|
146
122
|
query PaceKnowledgeLibrary {
|
|
147
123
|
restricted {
|
|
148
124
|
paceBook {
|
|
@@ -157,20 +133,7 @@ export const PACE_KNOWLEDGE_LIBRARY = gql `
|
|
|
157
133
|
index
|
|
158
134
|
}
|
|
159
135
|
chapter {
|
|
160
|
-
|
|
161
|
-
typeId
|
|
162
|
-
explanation
|
|
163
|
-
pictures {
|
|
164
|
-
id
|
|
165
|
-
createdAt
|
|
166
|
-
updatedAt
|
|
167
|
-
name
|
|
168
|
-
caption
|
|
169
|
-
path
|
|
170
|
-
path512
|
|
171
|
-
path256
|
|
172
|
-
index
|
|
173
|
-
}
|
|
136
|
+
...ChapterFields
|
|
174
137
|
}
|
|
175
138
|
topicId
|
|
176
139
|
videos {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
|
+
import { CHAPTER_FIELDS } from '../../fragments';
|
|
2
3
|
export const PRE_BUILD_TODO = gql `
|
|
3
4
|
query PreBuildTodo(
|
|
4
5
|
$topicIds: [Int!]
|
|
@@ -21,6 +22,7 @@ export const PRE_BUILD_TODO = gql `
|
|
|
21
22
|
}
|
|
22
23
|
`;
|
|
23
24
|
export const TODO = gql `
|
|
25
|
+
${CHAPTER_FIELDS}
|
|
24
26
|
query Todo($id: Int!) {
|
|
25
27
|
restricted {
|
|
26
28
|
todo(id: $id) {
|
|
@@ -57,20 +59,7 @@ export const TODO = gql `
|
|
|
57
59
|
duration
|
|
58
60
|
}
|
|
59
61
|
chapter {
|
|
60
|
-
|
|
61
|
-
explanation
|
|
62
|
-
pictures {
|
|
63
|
-
id
|
|
64
|
-
createdAt
|
|
65
|
-
updatedAt
|
|
66
|
-
name
|
|
67
|
-
caption
|
|
68
|
-
path
|
|
69
|
-
path512
|
|
70
|
-
path256
|
|
71
|
-
thumbhash
|
|
72
|
-
index
|
|
73
|
-
}
|
|
62
|
+
...ChapterFields
|
|
74
63
|
}
|
|
75
64
|
}
|
|
76
65
|
pictures {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
|
-
import { PICTURE_FIELDS } from '../../fragments';
|
|
2
|
+
import { CHAPTER_FIELDS, PICTURE_FIELDS } from '../../fragments';
|
|
3
3
|
export const VIDEO = gql `
|
|
4
4
|
${PICTURE_FIELDS}
|
|
5
|
+
${CHAPTER_FIELDS}
|
|
5
6
|
query Video($id: Int!) {
|
|
6
7
|
restricted {
|
|
7
8
|
video(id: $id) {
|
|
@@ -22,21 +23,7 @@ export const VIDEO = gql `
|
|
|
22
23
|
typeId
|
|
23
24
|
}
|
|
24
25
|
chapter {
|
|
25
|
-
|
|
26
|
-
explanation
|
|
27
|
-
pictures {
|
|
28
|
-
id
|
|
29
|
-
createdAt
|
|
30
|
-
updatedAt
|
|
31
|
-
name
|
|
32
|
-
caption
|
|
33
|
-
path
|
|
34
|
-
path512
|
|
35
|
-
path256
|
|
36
|
-
thumbhash
|
|
37
|
-
index
|
|
38
|
-
topicId
|
|
39
|
-
}
|
|
26
|
+
...ChapterFields
|
|
40
27
|
}
|
|
41
28
|
}
|
|
42
29
|
osceStation {
|