@quesmed/types-rn 2.6.31 → 2.6.33
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/package.json +1 -1
- package/resolvers/fragments/osce.js +2 -2
- package/resolvers/fragments/user.js +1 -0
- package/resolvers/mutation/restricted/mockTest.d.ts +1 -1
- package/resolvers/mutation/restricted/osce.d.ts +1 -1
- package/resolvers/mutation/restricted/osce.js +4 -2
- package/resolvers/mutation/restricted/questionDiscussion.js +2 -2
- package/resolvers/query/restricted/user.js +1 -0
package/package.json
CHANGED
|
@@ -165,7 +165,7 @@ exports.STATION_CONCEPT_FRAGMENT = (0, client_1.gql) `
|
|
|
165
165
|
}
|
|
166
166
|
`;
|
|
167
167
|
exports.COMPLETED_OSCE_MARKSHEET_FRAGMENT = (0, client_1.gql) `
|
|
168
|
-
fragment
|
|
168
|
+
fragment CompletedOsceMarksheetFragment on OsceMarksheet {
|
|
169
169
|
completed
|
|
170
170
|
score
|
|
171
171
|
globalScore
|
|
@@ -175,7 +175,7 @@ exports.COMPLETED_OSCE_MARKSHEET_FRAGMENT = (0, client_1.gql) `
|
|
|
175
175
|
}
|
|
176
176
|
`;
|
|
177
177
|
exports.COMPLETED_OSCE_STATION_FRAGMENT = (0, client_1.gql) `
|
|
178
|
-
fragment
|
|
178
|
+
fragment CompletedOsceStationFragment on OsceStation {
|
|
179
179
|
score
|
|
180
180
|
completedMarks
|
|
181
181
|
lastOsceMarksheetId
|
|
@@ -39,7 +39,7 @@ export interface IToggleFlaggedMarkVar {
|
|
|
39
39
|
}
|
|
40
40
|
export type IToggleFlaggedMarkData = RestrictedData<graphqlNormalize & IMarksheetMark, 'toggleFlaggedMark'>;
|
|
41
41
|
export declare const END_MOCK_TEST: import("@apollo/client").DocumentNode;
|
|
42
|
-
export declare const updateCacheOnEndMockTest: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IEndMockTestData>, options: ApolloUpdateOptions) => void;
|
|
42
|
+
export declare const updateCacheOnEndMockTest: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IEndMockTestData>, options: ApolloUpdateOptions<IEndMockTestVar>) => void;
|
|
43
43
|
export declare const optimisticEndMockTest: (marksheet: IMarksheet) => {
|
|
44
44
|
restricted: {
|
|
45
45
|
__typename: string;
|
|
@@ -91,7 +91,7 @@ export declare const END_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
|
91
91
|
export interface IEndOsceMarksheetVar extends ISaveOsceMarksheetVar {
|
|
92
92
|
}
|
|
93
93
|
export type IEndOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'endOsceMarksheet'>;
|
|
94
|
-
export declare const updateCacheOnEndOsceMarksheet: (productType: EProductType) => (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IEndOsceMarksheetData>, options: ApolloUpdateOptions) => void;
|
|
94
|
+
export declare const updateCacheOnEndOsceMarksheet: (productType: EProductType) => (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IEndOsceMarksheetData>, options: ApolloUpdateOptions<IEndOsceMarksheetVar>) => void;
|
|
95
95
|
export declare const optimisticEndOsceMarksheet: (marksheet: IOsceMarksheet) => {
|
|
96
96
|
restricted: {
|
|
97
97
|
__typename: string;
|
|
@@ -241,9 +241,11 @@ const updateCacheOnEndOsceMarksheet = (productType) => (cache, result, options)
|
|
|
241
241
|
if (!variables || !endOsceMarksheet) {
|
|
242
242
|
return;
|
|
243
243
|
}
|
|
244
|
-
const { marksheetId: id } = variables;
|
|
245
244
|
cache.writeFragment({
|
|
246
|
-
id: cache.identify({
|
|
245
|
+
id: cache.identify({
|
|
246
|
+
id: endOsceMarksheet.id,
|
|
247
|
+
__typename: 'OsceMarksheet',
|
|
248
|
+
}),
|
|
247
249
|
data: {
|
|
248
250
|
completed: true,
|
|
249
251
|
score: endOsceMarksheet.score,
|
|
@@ -196,7 +196,7 @@ const optimisticQuestionComment = (id, user, input) => {
|
|
|
196
196
|
return {
|
|
197
197
|
restricted: {
|
|
198
198
|
questionComments: {
|
|
199
|
-
__typename: '
|
|
199
|
+
__typename: 'QuestionComment',
|
|
200
200
|
...newComment,
|
|
201
201
|
},
|
|
202
202
|
},
|
|
@@ -325,7 +325,7 @@ const optimisticQuestionCommentRemove = (comments, input, parentId) => {
|
|
|
325
325
|
return {
|
|
326
326
|
restricted: {
|
|
327
327
|
questionCommentRemove: {
|
|
328
|
-
__typename: '
|
|
328
|
+
__typename: 'QuestionComment',
|
|
329
329
|
...comment,
|
|
330
330
|
parentId: parentId ? parentId : 0,
|
|
331
331
|
replies: comment.replies ? comment.replies : [],
|