@quesmed/types-rn 2.5.83 → 2.5.85
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 +1 -0
- package/models/OsceStation.d.ts +1 -0
- package/models/Preset.d.ts +9 -3
- package/models/Topic.d.ts +1 -0
- package/package.json +1 -1
- package/resolvers/fragments/osce.js +1 -0
- package/resolvers/mutation/restricted/preset.js +27 -9
- package/resolvers/query/restricted/preset.d.ts +1 -1
- package/resolvers/query/restricted/preset.js +18 -6
- package/resolvers/query/restricted/quesBook.js +2 -0
package/models/Concept.d.ts
CHANGED
package/models/OsceStation.d.ts
CHANGED
package/models/Preset.d.ts
CHANGED
|
@@ -9,9 +9,15 @@ export interface IPreset {
|
|
|
9
9
|
name: string;
|
|
10
10
|
topicType: ETopicType;
|
|
11
11
|
likes: number;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
correctQuestions: number;
|
|
13
|
+
incorrectQuestions: number;
|
|
14
|
+
completedQuestions: number;
|
|
15
|
+
totalQuestions: number;
|
|
16
|
+
yellowCards: number;
|
|
17
|
+
greenCards: number;
|
|
18
|
+
redCards: number;
|
|
19
|
+
completedCards: number;
|
|
20
|
+
totalCards: number;
|
|
15
21
|
university: IUniversity;
|
|
16
22
|
topics: ITopic[];
|
|
17
23
|
}
|
package/models/Topic.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -54,9 +54,15 @@ exports.DUPLICATE_PRESET = (0, client_1.gql) `
|
|
|
54
54
|
name
|
|
55
55
|
likes
|
|
56
56
|
topicType
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
correctQuestions
|
|
58
|
+
incorrectQuestions
|
|
59
|
+
completedQuestions
|
|
60
|
+
totalQuestions
|
|
61
|
+
yellowCards
|
|
62
|
+
greenCards
|
|
63
|
+
redCards
|
|
64
|
+
completedCards
|
|
65
|
+
totalCards
|
|
60
66
|
userId
|
|
61
67
|
university {
|
|
62
68
|
id
|
|
@@ -109,9 +115,15 @@ exports.EDIT_PRESET = (0, client_1.gql) `
|
|
|
109
115
|
name
|
|
110
116
|
likes
|
|
111
117
|
topicType
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
118
|
+
correctQuestions
|
|
119
|
+
incorrectQuestions
|
|
120
|
+
completedQuestions
|
|
121
|
+
totalQuestions
|
|
122
|
+
yellowCards
|
|
123
|
+
greenCards
|
|
124
|
+
redCards
|
|
125
|
+
completedCards
|
|
126
|
+
totalCards
|
|
115
127
|
userId
|
|
116
128
|
university {
|
|
117
129
|
id
|
|
@@ -140,9 +152,15 @@ exports.CREATE_PRESET = (0, client_1.gql) `
|
|
|
140
152
|
name
|
|
141
153
|
likes
|
|
142
154
|
topicType
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
155
|
+
correctQuestions
|
|
156
|
+
incorrectQuestions
|
|
157
|
+
completedQuestions
|
|
158
|
+
totalQuestions
|
|
159
|
+
yellowCards
|
|
160
|
+
greenCards
|
|
161
|
+
redCards
|
|
162
|
+
completedCards
|
|
163
|
+
totalCards
|
|
146
164
|
userId
|
|
147
165
|
university {
|
|
148
166
|
id
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ETopicType, IPreset, Id } from '../../../models';
|
|
2
|
-
import { RestrictedData } from '../../types';
|
|
3
2
|
import { ESortOrder } from '../../enums';
|
|
3
|
+
import { RestrictedData } from '../../types';
|
|
4
4
|
export interface IPresetsVar {
|
|
5
5
|
userId?: Id;
|
|
6
6
|
topicType?: ETopicType;
|
|
@@ -26,9 +26,15 @@ exports.PRESETS = (0, client_1.gql) `
|
|
|
26
26
|
name
|
|
27
27
|
likes
|
|
28
28
|
topicType
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
correctQuestions
|
|
30
|
+
incorrectQuestions
|
|
31
|
+
completedQuestions
|
|
32
|
+
totalQuestions
|
|
33
|
+
yellowCards
|
|
34
|
+
greenCards
|
|
35
|
+
redCards
|
|
36
|
+
completedCards
|
|
37
|
+
totalCards
|
|
32
38
|
userId
|
|
33
39
|
university {
|
|
34
40
|
id
|
|
@@ -57,9 +63,15 @@ exports.PRESET = (0, client_1.gql) `
|
|
|
57
63
|
name
|
|
58
64
|
likes
|
|
59
65
|
topicType
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
66
|
+
correctQuestions
|
|
67
|
+
incorrectQuestions
|
|
68
|
+
completedQuestions
|
|
69
|
+
totalQuestions
|
|
70
|
+
yellowCards
|
|
71
|
+
greenCards
|
|
72
|
+
redCards
|
|
73
|
+
completedCards
|
|
74
|
+
totalCards
|
|
63
75
|
userId
|
|
64
76
|
university {
|
|
65
77
|
id
|
|
@@ -10,6 +10,7 @@ exports.QUES_BOOK = (0, client_1.gql) `
|
|
|
10
10
|
id
|
|
11
11
|
name
|
|
12
12
|
typeId
|
|
13
|
+
demo
|
|
13
14
|
unreadConcepts
|
|
14
15
|
completedConcepts
|
|
15
16
|
revisingConcepts
|
|
@@ -21,6 +22,7 @@ exports.QUES_BOOK = (0, client_1.gql) `
|
|
|
21
22
|
concepts {
|
|
22
23
|
id
|
|
23
24
|
name
|
|
25
|
+
demo
|
|
24
26
|
status
|
|
25
27
|
totalCards
|
|
26
28
|
totalQuestions
|