@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.
package/models/Picture.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -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
|
-
|
|
94
|
-
|
|
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:
|
|
98
|
+
id: marksheet.markId,
|
|
99
99
|
__typename: 'MarksheetMark',
|
|
100
100
|
}),
|
|
101
101
|
data: {
|