@quesmed/types 2.6.69 → 2.6.71
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/resolvers/mutation/restricted/questionDiscussion.js +2 -2
- package/dist/cjs/resolvers/query/restricted/concepts.js +8 -0
- package/dist/cjs/resolvers/query/restricted/qBank.js +10 -0
- package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.js +2 -2
- package/dist/mjs/resolvers/query/restricted/concepts.js +8 -0
- package/dist/mjs/resolvers/query/restricted/qBank.js +10 -0
- package/package.json +1 -1
|
@@ -400,10 +400,10 @@ const updateQuestionLearningPoint = (typeId) => (cache, result, options) => {
|
|
|
400
400
|
return;
|
|
401
401
|
}
|
|
402
402
|
try {
|
|
403
|
-
for (const {
|
|
403
|
+
for (const { questionId, userPoint } of addQuestionLearningPoint) {
|
|
404
404
|
cache.writeFragment({
|
|
405
405
|
id: cache.identify({
|
|
406
|
-
id,
|
|
406
|
+
id: questionId,
|
|
407
407
|
__typename: (0, exports.getQuestionTypeName)(typeId),
|
|
408
408
|
}),
|
|
409
409
|
data: {
|
|
@@ -12,6 +12,10 @@ exports.CONCEPT = (0, client_1.gql) `
|
|
|
12
12
|
name
|
|
13
13
|
status
|
|
14
14
|
totalCards
|
|
15
|
+
entitlement {
|
|
16
|
+
id
|
|
17
|
+
name
|
|
18
|
+
}
|
|
15
19
|
topic {
|
|
16
20
|
id
|
|
17
21
|
name
|
|
@@ -52,6 +56,10 @@ exports.CONCEPTS = (0, client_1.gql) `
|
|
|
52
56
|
name
|
|
53
57
|
status
|
|
54
58
|
totalCards
|
|
59
|
+
entitlement {
|
|
60
|
+
id
|
|
61
|
+
name
|
|
62
|
+
}
|
|
55
63
|
topic {
|
|
56
64
|
id
|
|
57
65
|
name
|
|
@@ -102,6 +102,11 @@ exports.DASHBOARD_QBANK = (0, client_1.gql) `
|
|
|
102
102
|
topics(filter: 0) {
|
|
103
103
|
id
|
|
104
104
|
name
|
|
105
|
+
entitlement {
|
|
106
|
+
id
|
|
107
|
+
name
|
|
108
|
+
index
|
|
109
|
+
}
|
|
105
110
|
totalQuestions
|
|
106
111
|
correctQuestions
|
|
107
112
|
incorrectQuestions
|
|
@@ -205,6 +210,11 @@ exports.DASHBOARD = (0, client_1.gql) `
|
|
|
205
210
|
topics(filter: 0, order: $order) {
|
|
206
211
|
id
|
|
207
212
|
name
|
|
213
|
+
entitlement {
|
|
214
|
+
id
|
|
215
|
+
name
|
|
216
|
+
index
|
|
217
|
+
}
|
|
208
218
|
totalQuestions
|
|
209
219
|
correctQuestions
|
|
210
220
|
incorrectQuestions
|
|
@@ -388,10 +388,10 @@ export const updateQuestionLearningPoint = (typeId) => (cache, result, options)
|
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
390
|
try {
|
|
391
|
-
for (const {
|
|
391
|
+
for (const { questionId, userPoint } of addQuestionLearningPoint) {
|
|
392
392
|
cache.writeFragment({
|
|
393
393
|
id: cache.identify({
|
|
394
|
-
id,
|
|
394
|
+
id: questionId,
|
|
395
395
|
__typename: getQuestionTypeName(typeId),
|
|
396
396
|
}),
|
|
397
397
|
data: {
|
|
@@ -9,6 +9,10 @@ export const CONCEPT = gql `
|
|
|
9
9
|
name
|
|
10
10
|
status
|
|
11
11
|
totalCards
|
|
12
|
+
entitlement {
|
|
13
|
+
id
|
|
14
|
+
name
|
|
15
|
+
}
|
|
12
16
|
topic {
|
|
13
17
|
id
|
|
14
18
|
name
|
|
@@ -49,6 +53,10 @@ export const CONCEPTS = gql `
|
|
|
49
53
|
name
|
|
50
54
|
status
|
|
51
55
|
totalCards
|
|
56
|
+
entitlement {
|
|
57
|
+
id
|
|
58
|
+
name
|
|
59
|
+
}
|
|
52
60
|
topic {
|
|
53
61
|
id
|
|
54
62
|
name
|
|
@@ -99,6 +99,11 @@ export const DASHBOARD_QBANK = gql `
|
|
|
99
99
|
topics(filter: 0) {
|
|
100
100
|
id
|
|
101
101
|
name
|
|
102
|
+
entitlement {
|
|
103
|
+
id
|
|
104
|
+
name
|
|
105
|
+
index
|
|
106
|
+
}
|
|
102
107
|
totalQuestions
|
|
103
108
|
correctQuestions
|
|
104
109
|
incorrectQuestions
|
|
@@ -202,6 +207,11 @@ export const DASHBOARD = gql `
|
|
|
202
207
|
topics(filter: 0, order: $order) {
|
|
203
208
|
id
|
|
204
209
|
name
|
|
210
|
+
entitlement {
|
|
211
|
+
id
|
|
212
|
+
name
|
|
213
|
+
index
|
|
214
|
+
}
|
|
205
215
|
totalQuestions
|
|
206
216
|
correctQuestions
|
|
207
217
|
incorrectQuestions
|