@quesmed/types 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.
@@ -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
  }
@@ -162,7 +162,7 @@ export const STATION_CONCEPT_FRAGMENT = gql `
162
162
  }
163
163
  `;
164
164
  export const COMPLETED_OSCE_MARKSHEET_FRAGMENT = gql `
165
- fragment MockTestCompleted on OsceMarksheet {
165
+ fragment CompletedOsceMarksheetFragment on OsceMarksheet {
166
166
  completed
167
167
  score
168
168
  globalScore
@@ -172,7 +172,7 @@ export const COMPLETED_OSCE_MARKSHEET_FRAGMENT = gql `
172
172
  }
173
173
  `;
174
174
  export const COMPLETED_OSCE_STATION_FRAGMENT = gql `
175
- fragment CompletedMockTestFragment on OsceStation {
175
+ fragment CompletedOsceStationFragment on OsceStation {
176
176
  score
177
177
  completedMarks
178
178
  lastOsceMarksheetId
@@ -29,6 +29,7 @@ export const USER_FIELDS = gql `
29
29
  typeId
30
30
  duration
31
31
  price
32
+ subscription
32
33
  stripePriceId
33
34
  }
34
35
  }
@@ -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;
@@ -237,9 +237,11 @@ export const updateCacheOnEndOsceMarksheet = (productType) => (cache, result, op
237
237
  if (!variables || !endOsceMarksheet) {
238
238
  return;
239
239
  }
240
- const { marksheetId: id } = variables;
241
240
  cache.writeFragment({
242
- id: cache.identify({ id, __typename: 'OsceMarksheet' }),
241
+ id: cache.identify({
242
+ id: endOsceMarksheet.id,
243
+ __typename: 'OsceMarksheet',
244
+ }),
243
245
  data: {
244
246
  completed: true,
245
247
  score: endOsceMarksheet.score,
@@ -189,7 +189,7 @@ export const optimisticQuestionComment = (id, user, input) => {
189
189
  return {
190
190
  restricted: {
191
191
  questionComments: {
192
- __typename: 'QuestionComments',
192
+ __typename: 'QuestionComment',
193
193
  ...newComment,
194
194
  },
195
195
  },
@@ -315,7 +315,7 @@ export const optimisticQuestionCommentRemove = (comments, input, parentId) => {
315
315
  return {
316
316
  restricted: {
317
317
  questionCommentRemove: {
318
- __typename: 'QuestionComments',
318
+ __typename: 'QuestionComment',
319
319
  ...comment,
320
320
  parentId: parentId ? parentId : 0,
321
321
  replies: comment.replies ? comment.replies : [],
@@ -26,6 +26,7 @@ export const GET_USER_SUBSCRIPTIONS = gql `
26
26
  typeId
27
27
  duration
28
28
  price
29
+ subscription
29
30
  stripePriceId
30
31
  }
31
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.31",
3
+ "version": "2.6.33",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",