@quesmed/types-rn 2.1.16 → 2.1.19
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/models/Concept.d.ts +8 -0
- package/package.json +1 -1
- package/resolvers/query/restricted/video.js +62 -10
- package/resolvers/query/video.js +62 -10
package/models/Concept.d.ts
CHANGED
|
@@ -12,4 +12,12 @@ export interface IConcept {
|
|
|
12
12
|
chapterId: Id;
|
|
13
13
|
chapter?: IChapter;
|
|
14
14
|
videos?: IVideo[];
|
|
15
|
+
totalQuestions?: number | null;
|
|
16
|
+
correctQuestions?: number | null;
|
|
17
|
+
incorrectQuestions?: number | null;
|
|
18
|
+
totalCards?: number | null;
|
|
19
|
+
greenCards?: number | null;
|
|
20
|
+
yellowCards?: number | null;
|
|
21
|
+
redCards?: number | null;
|
|
22
|
+
dailyFeedCards?: number | null;
|
|
15
23
|
}
|
package/package.json
CHANGED
|
@@ -2,13 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VIDEOS = exports.VIDEO = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
-
const fragments_1 = require("../../fragments");
|
|
6
5
|
exports.VIDEO = (0, client_1.gql) `
|
|
7
|
-
${
|
|
8
|
-
${fragments_1.VIDEO_FILE_FIELDS}
|
|
9
|
-
query Video($videoId: Int!) {
|
|
6
|
+
query Video($id: Int!) {
|
|
10
7
|
restricted {
|
|
11
|
-
video(id: $
|
|
8
|
+
video(id: $id) {
|
|
12
9
|
id
|
|
13
10
|
title
|
|
14
11
|
museId
|
|
@@ -40,16 +37,68 @@ exports.VIDEO = (0, client_1.gql) `
|
|
|
40
37
|
name
|
|
41
38
|
}
|
|
42
39
|
candidatePictures {
|
|
43
|
-
|
|
40
|
+
id
|
|
41
|
+
createdAt
|
|
42
|
+
updatedAt
|
|
43
|
+
name
|
|
44
|
+
caption
|
|
45
|
+
path
|
|
46
|
+
path512
|
|
47
|
+
path256
|
|
48
|
+
topicId
|
|
49
|
+
topic {
|
|
50
|
+
id
|
|
51
|
+
name
|
|
52
|
+
typeId
|
|
53
|
+
}
|
|
44
54
|
}
|
|
45
55
|
actorPictures {
|
|
46
|
-
|
|
56
|
+
id
|
|
57
|
+
createdAt
|
|
58
|
+
updatedAt
|
|
59
|
+
name
|
|
60
|
+
caption
|
|
61
|
+
path
|
|
62
|
+
path512
|
|
63
|
+
path256
|
|
64
|
+
topicId
|
|
65
|
+
topic {
|
|
66
|
+
id
|
|
67
|
+
name
|
|
68
|
+
typeId
|
|
69
|
+
}
|
|
47
70
|
}
|
|
48
71
|
examinerPictures {
|
|
49
|
-
|
|
72
|
+
id
|
|
73
|
+
createdAt
|
|
74
|
+
updatedAt
|
|
75
|
+
name
|
|
76
|
+
caption
|
|
77
|
+
path
|
|
78
|
+
path512
|
|
79
|
+
path256
|
|
80
|
+
topicId
|
|
81
|
+
topic {
|
|
82
|
+
id
|
|
83
|
+
name
|
|
84
|
+
typeId
|
|
85
|
+
}
|
|
50
86
|
}
|
|
51
87
|
walkthroughPictures {
|
|
52
|
-
|
|
88
|
+
id
|
|
89
|
+
createdAt
|
|
90
|
+
updatedAt
|
|
91
|
+
name
|
|
92
|
+
caption
|
|
93
|
+
path
|
|
94
|
+
path512
|
|
95
|
+
path256
|
|
96
|
+
topicId
|
|
97
|
+
topic {
|
|
98
|
+
id
|
|
99
|
+
name
|
|
100
|
+
typeId
|
|
101
|
+
}
|
|
53
102
|
}
|
|
54
103
|
lastOsceMarksheetId
|
|
55
104
|
}
|
|
@@ -59,7 +108,10 @@ exports.VIDEO = (0, client_1.gql) `
|
|
|
59
108
|
startTime
|
|
60
109
|
endTime
|
|
61
110
|
files {
|
|
62
|
-
|
|
111
|
+
id
|
|
112
|
+
title
|
|
113
|
+
url
|
|
114
|
+
videoId
|
|
63
115
|
}
|
|
64
116
|
}
|
|
65
117
|
}
|
package/resolvers/query/video.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ZOOM_SIGNATURE = exports.SAMPLE_VIDEO = exports.SAMPLE_VIDEOS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
-
const fragments_1 = require("../fragments");
|
|
6
5
|
exports.SAMPLE_VIDEOS = (0, client_1.gql) `
|
|
7
6
|
query SampleVideos(
|
|
8
7
|
$platform: Int!
|
|
@@ -45,10 +44,8 @@ exports.SAMPLE_VIDEOS = (0, client_1.gql) `
|
|
|
45
44
|
}
|
|
46
45
|
`;
|
|
47
46
|
exports.SAMPLE_VIDEO = (0, client_1.gql) `
|
|
48
|
-
${
|
|
49
|
-
|
|
50
|
-
query SampleVideo($videoId: Int!) {
|
|
51
|
-
video(id: $videoId) {
|
|
47
|
+
query SampleVideo($id: Int!) {
|
|
48
|
+
video(id: $id) {
|
|
52
49
|
id
|
|
53
50
|
title
|
|
54
51
|
museId
|
|
@@ -80,16 +77,68 @@ exports.SAMPLE_VIDEO = (0, client_1.gql) `
|
|
|
80
77
|
name
|
|
81
78
|
}
|
|
82
79
|
candidatePictures {
|
|
83
|
-
|
|
80
|
+
id
|
|
81
|
+
createdAt
|
|
82
|
+
updatedAt
|
|
83
|
+
name
|
|
84
|
+
caption
|
|
85
|
+
path
|
|
86
|
+
path512
|
|
87
|
+
path256
|
|
88
|
+
topicId
|
|
89
|
+
topic {
|
|
90
|
+
id
|
|
91
|
+
name
|
|
92
|
+
typeId
|
|
93
|
+
}
|
|
84
94
|
}
|
|
85
95
|
actorPictures {
|
|
86
|
-
|
|
96
|
+
id
|
|
97
|
+
createdAt
|
|
98
|
+
updatedAt
|
|
99
|
+
name
|
|
100
|
+
caption
|
|
101
|
+
path
|
|
102
|
+
path512
|
|
103
|
+
path256
|
|
104
|
+
topicId
|
|
105
|
+
topic {
|
|
106
|
+
id
|
|
107
|
+
name
|
|
108
|
+
typeId
|
|
109
|
+
}
|
|
87
110
|
}
|
|
88
111
|
examinerPictures {
|
|
89
|
-
|
|
112
|
+
id
|
|
113
|
+
createdAt
|
|
114
|
+
updatedAt
|
|
115
|
+
name
|
|
116
|
+
caption
|
|
117
|
+
path
|
|
118
|
+
path512
|
|
119
|
+
path256
|
|
120
|
+
topicId
|
|
121
|
+
topic {
|
|
122
|
+
id
|
|
123
|
+
name
|
|
124
|
+
typeId
|
|
125
|
+
}
|
|
90
126
|
}
|
|
91
127
|
walkthroughPictures {
|
|
92
|
-
|
|
128
|
+
id
|
|
129
|
+
createdAt
|
|
130
|
+
updatedAt
|
|
131
|
+
name
|
|
132
|
+
caption
|
|
133
|
+
path
|
|
134
|
+
path512
|
|
135
|
+
path256
|
|
136
|
+
topicId
|
|
137
|
+
topic {
|
|
138
|
+
id
|
|
139
|
+
name
|
|
140
|
+
typeId
|
|
141
|
+
}
|
|
93
142
|
}
|
|
94
143
|
lastOsceMarksheetId
|
|
95
144
|
}
|
|
@@ -99,7 +148,10 @@ exports.SAMPLE_VIDEO = (0, client_1.gql) `
|
|
|
99
148
|
startTime
|
|
100
149
|
endTime
|
|
101
150
|
files {
|
|
102
|
-
|
|
151
|
+
id
|
|
152
|
+
title
|
|
153
|
+
url
|
|
154
|
+
videoId
|
|
103
155
|
}
|
|
104
156
|
}
|
|
105
157
|
}
|