@quesmed/types-rn 2.6.227 → 2.6.233
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/Marksheet.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -209,7 +209,24 @@ const updateCacheOnConceptLearningStatusUpdate = (topicId, prevStatus, entitleme
|
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
211
|
const { conceptIds, status } = variables;
|
|
212
|
+
const entitlementIdentity = {
|
|
213
|
+
__ref: cache.identify({
|
|
214
|
+
id: entitlement,
|
|
215
|
+
__typename: 'Entitlement',
|
|
216
|
+
}),
|
|
217
|
+
};
|
|
212
218
|
conceptIds.forEach((id) => {
|
|
219
|
+
if (entitlement) {
|
|
220
|
+
cache.writeFragment({
|
|
221
|
+
id: cache.identify({
|
|
222
|
+
id: id.toString,
|
|
223
|
+
entitlement: entitlementIdentity,
|
|
224
|
+
__typename: 'Concept',
|
|
225
|
+
}),
|
|
226
|
+
data: { status },
|
|
227
|
+
fragment: STATUS_CONCEPT_FRAGMENT,
|
|
228
|
+
});
|
|
229
|
+
}
|
|
213
230
|
cache.writeFragment({
|
|
214
231
|
id: cache.identify({ id, __typename: 'Concept' }),
|
|
215
232
|
data: { status },
|
|
@@ -219,12 +236,7 @@ const updateCacheOnConceptLearningStatusUpdate = (topicId, prevStatus, entitleme
|
|
|
219
236
|
const topicFragmentId = cache.identify({
|
|
220
237
|
id: topicId.toString(),
|
|
221
238
|
...(entitlement && {
|
|
222
|
-
entitlement:
|
|
223
|
-
__ref: cache.identify({
|
|
224
|
-
id: entitlement,
|
|
225
|
-
__typename: 'Entitlement',
|
|
226
|
-
}),
|
|
227
|
-
},
|
|
239
|
+
entitlement: entitlementIdentity,
|
|
228
240
|
}),
|
|
229
241
|
__typename: 'Topic',
|
|
230
242
|
});
|