@quesmed/types-rn 2.4.26 → 2.4.28
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/Topic.d.ts +2 -1
- package/models/Topic.js +1 -0
- package/package.json +1 -1
- package/resolvers/mutation/restricted/marksheet.d.ts +1 -0
- package/resolvers/mutation/restricted/marksheet.js +6 -3
- package/resolvers/query/restricted/qBank.js +1 -1
- package/resolvers/query/restricted/topics.js +2 -2
package/models/Topic.d.ts
CHANGED
package/models/Topic.js
CHANGED
|
@@ -10,4 +10,5 @@ var ETopicType;
|
|
|
10
10
|
ETopicType[ETopicType["DATA_INTERPRETATION"] = 4] = "DATA_INTERPRETATION";
|
|
11
11
|
ETopicType[ETopicType["PSA"] = 5] = "PSA";
|
|
12
12
|
ETopicType[ETopicType["OSCE"] = 6] = "OSCE";
|
|
13
|
+
ETopicType[ETopicType["MOCK_TEST"] = 7] = "MOCK_TEST";
|
|
13
14
|
})(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
|
package/package.json
CHANGED
|
@@ -54,6 +54,7 @@ export declare const updateMarksheets: (cache: ApolloCache<any>, result: ApolloU
|
|
|
54
54
|
export declare const optimisticSaveMarksheets: (marksheet: IMarksheet, marksheetInput: ISaveMarksheetInput, questionIndex: number) => ISaveMarksheetsData;
|
|
55
55
|
export interface ISaveMarksheetsVar {
|
|
56
56
|
input: ISaveMarksheetInput[];
|
|
57
|
+
updatesOnly?: boolean;
|
|
57
58
|
}
|
|
58
59
|
export declare type ISaveMarksheetsData = RestrictedData<(graphqlNormalize & IMarksheet)[], 'saveMarksheets'>;
|
|
59
60
|
/**
|
|
@@ -1914,14 +1914,14 @@ const optimisticSaveMarksheets = (marksheet, marksheetInput, questionIndex) => {
|
|
|
1914
1914
|
isAnswered: true,
|
|
1915
1915
|
mark: mark || null,
|
|
1916
1916
|
};
|
|
1917
|
-
const
|
|
1917
|
+
const updatedMarks = [
|
|
1918
1918
|
...marks.slice(0, questionIndex),
|
|
1919
1919
|
updatedMark,
|
|
1920
1920
|
...marks.slice(questionIndex + 1),
|
|
1921
1921
|
];
|
|
1922
1922
|
return {
|
|
1923
1923
|
restricted: {
|
|
1924
|
-
saveMarksheets: [{ ...rest, marks:
|
|
1924
|
+
saveMarksheets: [{ ...rest, marks: updatedMarks }],
|
|
1925
1925
|
},
|
|
1926
1926
|
};
|
|
1927
1927
|
};
|
|
@@ -1953,7 +1953,10 @@ exports.ADD_FLAGGED_QUESTION = (0, client_1.gql) `
|
|
|
1953
1953
|
exports.REMOVE_FLAGGED_QUESTION = (0, client_1.gql) `
|
|
1954
1954
|
mutation RemoveFlaggedQuestion($questionId: Int!, $marksheetId: Int) {
|
|
1955
1955
|
restricted {
|
|
1956
|
-
removeFlaggedQuestion(
|
|
1956
|
+
removeFlaggedQuestion(
|
|
1957
|
+
questionId: $questionId
|
|
1958
|
+
marksheetId: $marksheetId
|
|
1959
|
+
) {
|
|
1957
1960
|
id
|
|
1958
1961
|
markId
|
|
1959
1962
|
}
|
|
@@ -5,7 +5,7 @@ const client_1 = require("@apollo/client");
|
|
|
5
5
|
const fragments_1 = require("../../fragments");
|
|
6
6
|
exports.DASHBOARD_QBANK = (0, client_1.gql) `
|
|
7
7
|
${fragments_1.PICTURE_FIELDS}
|
|
8
|
-
query
|
|
8
|
+
query Dashboard_Qbank($filter: MarksheetFilterInput!) {
|
|
9
9
|
restricted {
|
|
10
10
|
latestPastMarksheetId
|
|
11
11
|
latestAgoraId
|
|
@@ -47,7 +47,7 @@ exports.TOPICS = (0, client_1.gql) `
|
|
|
47
47
|
}
|
|
48
48
|
`;
|
|
49
49
|
exports.QUESTION_TOPICS = (0, client_1.gql) `
|
|
50
|
-
query
|
|
50
|
+
query Question_Topics($filter: Int!) {
|
|
51
51
|
restricted {
|
|
52
52
|
topics(filter: $filter) {
|
|
53
53
|
id
|
|
@@ -69,7 +69,7 @@ exports.QUESTION_TOPICS = (0, client_1.gql) `
|
|
|
69
69
|
}
|
|
70
70
|
`;
|
|
71
71
|
exports.FLASHCARDS_TOPICS = (0, client_1.gql) `
|
|
72
|
-
query
|
|
72
|
+
query Flashcard_Topics($filter: Int!) {
|
|
73
73
|
restricted {
|
|
74
74
|
topics(filter: $filter) {
|
|
75
75
|
id
|