@quesmed/types-rn 2.6.198 → 2.6.200

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.
@@ -57,4 +57,5 @@ export interface IAssetBinding {
57
57
  index: number;
58
58
  choiceLabel?: string;
59
59
  deleted: boolean;
60
+ typeId: ELightGalleryType;
60
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.198",
3
+ "version": "2.6.200",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -1,4 +1,4 @@
1
- import { EEntitlementType, IAssetBinding, IQuestion, IQuestionCase, IQuestionChoice, Id } from '../../../models';
1
+ import { EEntitlementType, IAssetBinding, IChapter, IQuestion, IQuestionCase, IQuestionChoice, Id } from '../../../models';
2
2
  import { AdminData, graphqlNormalize } from '../../types';
3
3
  export declare const UPDATE_QUESTION: import("@apollo/client").DocumentNode;
4
4
  export interface IUpdateQuestionVar {
@@ -18,6 +18,7 @@ export interface IUpdateQuestionVar {
18
18
  entitlements?: EEntitlementType[];
19
19
  createRevision?: boolean;
20
20
  assets?: IAssetBinding[];
21
+ stem?: Partial<IChapter>;
21
22
  }
22
23
  export type IUpdateQuestionData = AdminData<graphqlNormalize & IQuestion, 'updateQuestion'>;
23
24
  export declare const RESET_QUESTION: import("@apollo/client").DocumentNode;
@@ -79,7 +79,7 @@ export interface ISaveMarksheetInput {
79
79
  * saveMarksheets
80
80
  */
81
81
  export declare const SAVE_MARKSHEET: import("@apollo/client").DocumentNode;
82
- export declare const updateMarksheets: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<ISaveMarksheetsData>, options: ApolloUpdateOptions) => void;
82
+ export declare const updateMarksheets: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<ISaveMarksheetsData>, options: ApolloUpdateOptions<ISaveMarksheetsVar>) => void;
83
83
  export declare const optimisticSaveMarksheets: (marksheet: IMarksheet, marksheetInput: ISaveMarksheetInput, questionIndex: number) => ISaveMarksheetsData;
84
84
  export interface ISaveMarksheetsVar {
85
85
  input: ISaveMarksheetInput[];
@@ -90,12 +90,12 @@ const updateMarksheets = (cache, result, options) => {
90
90
  return;
91
91
  }
92
92
  try {
93
- for (let i = 0; i < saveMarksheets.length; i++) {
94
- const { input } = variables;
93
+ const { input } = variables;
94
+ for (let i = 0; i < input.length; i++) {
95
95
  const marksheet = input[i];
96
96
  cache.writeFragment({
97
97
  id: cache.identify({
98
- id: saveMarksheets[i],
98
+ id: marksheet.markId,
99
99
  __typename: 'MarksheetMark',
100
100
  }),
101
101
  data: {
@@ -26,6 +26,15 @@ exports.ADMIN_QUESTION = (0, client_1.gql) `
26
26
  likes
27
27
  dislikes
28
28
  totalVotes
29
+ stem {
30
+ id
31
+ explanation
32
+ summary
33
+ typeId
34
+ pictures {
35
+ ...PictureFields
36
+ }
37
+ }
29
38
  presentations {
30
39
  id
31
40
  name