@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.31",
3
+ "version": "2.6.33",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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 MockTestCompleted on OsceMarksheet {
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 CompletedMockTestFragment on OsceStation {
178
+ fragment CompletedOsceStationFragment on OsceStation {
179
179
  score
180
180
  completedMarks
181
181
  lastOsceMarksheetId
@@ -32,6 +32,7 @@ exports.USER_FIELDS = (0, client_1.gql) `
32
32
  typeId
33
33
  duration
34
34
  price
35
+ subscription
35
36
  stripePriceId
36
37
  }
37
38
  }
@@ -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({ id, __typename: 'OsceMarksheet' }),
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: 'QuestionComments',
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: 'QuestionComments',
328
+ __typename: 'QuestionComment',
329
329
  ...comment,
330
330
  parentId: parentId ? parentId : 0,
331
331
  replies: comment.replies ? comment.replies : [],
@@ -29,6 +29,7 @@ exports.GET_USER_SUBSCRIPTIONS = (0, client_1.gql) `
29
29
  typeId
30
30
  duration
31
31
  price
32
+ subscription
32
33
  stripePriceId
33
34
  }
34
35
  }