@quesmed/types 2.6.50 → 2.6.52
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/Blog.d.ts +13 -0
- package/dist/cjs/models/Blog.js +15 -0
- package/dist/cjs/resolvers/fragments/chapter.js +7 -0
- package/dist/cjs/resolvers/query/blog.d.ts +2 -2
- package/dist/cjs/resolvers/query/blog.js +2 -2
- 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/Blog.d.ts +13 -0
- package/dist/mjs/models/Blog.js +14 -1
- package/dist/mjs/resolvers/fragments/chapter.js +7 -0
- package/dist/mjs/resolvers/query/blog.d.ts +2 -2
- package/dist/mjs/resolvers/query/blog.js +2 -2
- 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
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { IPicture } from './Picture';
|
|
2
2
|
import { Id } from './Type';
|
|
3
|
+
/**
|
|
4
|
+
* This tags will need to be taken from db `blog-tags` after editor create them
|
|
5
|
+
*/
|
|
6
|
+
export declare enum EBlogTags {
|
|
7
|
+
MRCP_PART_1 = "mrcp-part-1",
|
|
8
|
+
MRCP_PART_2 = "mrcp-part-2",
|
|
9
|
+
PACES = "paces",
|
|
10
|
+
CLINICAL = "clinical",
|
|
11
|
+
PRE_CLINICAL = "pre-clinical",
|
|
12
|
+
OSCE = "osce",
|
|
13
|
+
MSRA = "msra",
|
|
14
|
+
ANATOMY = "anatomy"
|
|
15
|
+
}
|
|
3
16
|
export interface IBlogTag {
|
|
4
17
|
id: Id;
|
|
5
18
|
createdAt: number | Date;
|
package/dist/cjs/models/Blog.js
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EBlogTags = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* This tags will need to be taken from db `blog-tags` after editor create them
|
|
6
|
+
*/
|
|
7
|
+
var EBlogTags;
|
|
8
|
+
(function (EBlogTags) {
|
|
9
|
+
EBlogTags["MRCP_PART_1"] = "mrcp-part-1";
|
|
10
|
+
EBlogTags["MRCP_PART_2"] = "mrcp-part-2";
|
|
11
|
+
EBlogTags["PACES"] = "paces";
|
|
12
|
+
EBlogTags["CLINICAL"] = "clinical";
|
|
13
|
+
EBlogTags["PRE_CLINICAL"] = "pre-clinical";
|
|
14
|
+
EBlogTags["OSCE"] = "osce";
|
|
15
|
+
EBlogTags["MSRA"] = "msra";
|
|
16
|
+
EBlogTags["ANATOMY"] = "anatomy";
|
|
17
|
+
})(EBlogTags = exports.EBlogTags || (exports.EBlogTags = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBlogPost, IBlogTag } from '../../models';
|
|
1
|
+
import { EBlogTags, IBlogPost, IBlogTag } from '../../models';
|
|
2
2
|
import { RootData, graphqlNormalize } from '../types';
|
|
3
3
|
export declare const BLOG_TAGS: import("@apollo/client").DocumentNode;
|
|
4
4
|
export type IBlogTagsVar = null;
|
|
@@ -10,6 +10,6 @@ export interface IBlogPostVar {
|
|
|
10
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
|
+
tags?: EBlogTags[];
|
|
14
14
|
}
|
|
15
15
|
export type IBlogPostsData = RootData<(graphqlNormalize & IBlogPost)[], 'blogPosts'>;
|
|
@@ -25,8 +25,8 @@ exports.BLOG_POST = (0, client_1.gql) `
|
|
|
25
25
|
`;
|
|
26
26
|
exports.BLOG_POSTS = (0, client_1.gql) `
|
|
27
27
|
${blog_1.BLOG_POST_FIELDS}
|
|
28
|
-
query BlogPosts($
|
|
29
|
-
blogPosts(
|
|
28
|
+
query BlogPosts($tags: [String]) {
|
|
29
|
+
blogPosts(tags: $tags) {
|
|
30
30
|
...BlogPostFields
|
|
31
31
|
relatedBlogPosts {
|
|
32
32
|
...BlogPostFields
|
|
@@ -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 {
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { IPicture } from './Picture';
|
|
2
2
|
import { Id } from './Type';
|
|
3
|
+
/**
|
|
4
|
+
* This tags will need to be taken from db `blog-tags` after editor create them
|
|
5
|
+
*/
|
|
6
|
+
export declare enum EBlogTags {
|
|
7
|
+
MRCP_PART_1 = "mrcp-part-1",
|
|
8
|
+
MRCP_PART_2 = "mrcp-part-2",
|
|
9
|
+
PACES = "paces",
|
|
10
|
+
CLINICAL = "clinical",
|
|
11
|
+
PRE_CLINICAL = "pre-clinical",
|
|
12
|
+
OSCE = "osce",
|
|
13
|
+
MSRA = "msra",
|
|
14
|
+
ANATOMY = "anatomy"
|
|
15
|
+
}
|
|
3
16
|
export interface IBlogTag {
|
|
4
17
|
id: Id;
|
|
5
18
|
createdAt: number | Date;
|
package/dist/mjs/models/Blog.js
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* This tags will need to be taken from db `blog-tags` after editor create them
|
|
3
|
+
*/
|
|
4
|
+
export var EBlogTags;
|
|
5
|
+
(function (EBlogTags) {
|
|
6
|
+
EBlogTags["MRCP_PART_1"] = "mrcp-part-1";
|
|
7
|
+
EBlogTags["MRCP_PART_2"] = "mrcp-part-2";
|
|
8
|
+
EBlogTags["PACES"] = "paces";
|
|
9
|
+
EBlogTags["CLINICAL"] = "clinical";
|
|
10
|
+
EBlogTags["PRE_CLINICAL"] = "pre-clinical";
|
|
11
|
+
EBlogTags["OSCE"] = "osce";
|
|
12
|
+
EBlogTags["MSRA"] = "msra";
|
|
13
|
+
EBlogTags["ANATOMY"] = "anatomy";
|
|
14
|
+
})(EBlogTags || (EBlogTags = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBlogPost, IBlogTag } from '../../models';
|
|
1
|
+
import { EBlogTags, IBlogPost, IBlogTag } from '../../models';
|
|
2
2
|
import { RootData, graphqlNormalize } from '../types';
|
|
3
3
|
export declare const BLOG_TAGS: import("@apollo/client").DocumentNode;
|
|
4
4
|
export type IBlogTagsVar = null;
|
|
@@ -10,6 +10,6 @@ export interface IBlogPostVar {
|
|
|
10
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
|
+
tags?: EBlogTags[];
|
|
14
14
|
}
|
|
15
15
|
export type IBlogPostsData = RootData<(graphqlNormalize & IBlogPost)[], 'blogPosts'>;
|
|
@@ -22,8 +22,8 @@ export const BLOG_POST = gql `
|
|
|
22
22
|
`;
|
|
23
23
|
export const BLOG_POSTS = gql `
|
|
24
24
|
${BLOG_POST_FIELDS}
|
|
25
|
-
query BlogPosts($
|
|
26
|
-
blogPosts(
|
|
25
|
+
query BlogPosts($tags: [String]) {
|
|
26
|
+
blogPosts(tags: $tags) {
|
|
27
27
|
...BlogPostFields
|
|
28
28
|
relatedBlogPosts {
|
|
29
29
|
...BlogPostFields
|
|
@@ -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 {
|