@quesmed/types-rn 2.5.104 → 2.5.106

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.
@@ -68,6 +68,8 @@ export interface IMarksheet {
68
68
  incorrect?: number;
69
69
  totalQuestions?: number;
70
70
  sessionId: string;
71
+ passingMark: number;
72
+ duration: number;
71
73
  solo: boolean;
72
74
  agoraId: string;
73
75
  users: IUser[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.5.104",
3
+ "version": "2.5.106",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -163,6 +163,8 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
163
163
  incorrect?: number | undefined;
164
164
  totalQuestions?: number | undefined;
165
165
  sessionId: string;
166
+ passingMark: number;
167
+ duration: number;
166
168
  solo: boolean;
167
169
  agoraId: string;
168
170
  users: IUser[];
@@ -260,6 +262,8 @@ export declare const optimisticEndMarksheet: (marksheet: IMarksheet) => {
260
262
  incorrect?: number | undefined;
261
263
  totalQuestions?: number | undefined;
262
264
  sessionId: string;
265
+ passingMark: number;
266
+ duration: number;
263
267
  solo: boolean;
264
268
  agoraId: string;
265
269
  users: IUser[];
@@ -15,6 +15,8 @@ exports.BUILD_QUESTION_MARKSHEET = (0, client_1.gql) `
15
15
  sessionId
16
16
  topicIds
17
17
  completed
18
+ passingMark
19
+ duration
18
20
  topicIds
19
21
  topicNames
20
22
  mockTestId
@@ -1005,6 +1007,8 @@ exports.BUILD_MARKSHEET = (0, client_1.gql) `
1005
1007
  sessionId
1006
1008
  topicIds
1007
1009
  completed
1010
+ passingMark
1011
+ duration
1008
1012
  topicIds
1009
1013
  topicNames
1010
1014
  mockTestId
@@ -1999,6 +2003,8 @@ exports.RE_BUILD_MARKSHEET = (0, client_1.gql) `
1999
2003
  topicConceptData
2000
2004
  currentMarkId
2001
2005
  completed
2006
+ passingMark
2007
+ duration
2002
2008
  timeTaken
2003
2009
  topicIds
2004
2010
  topicNames
@@ -3055,7 +3061,7 @@ const optimisticSaveMarksheets = (marksheet, marksheetInput, questionIndex) => {
3055
3061
  timeTaken,
3056
3062
  questionChoiceId: choiceId ?? null,
3057
3063
  isAnswered: true,
3058
- mark: mark || choiceId ? JSON.stringify([choiceId]) : null,
3064
+ mark: mark || null,
3059
3065
  };
3060
3066
  const updatedMarks = [
3061
3067
  ...marks.slice(0, questionIndex),
@@ -3393,6 +3399,11 @@ exports.END_MARKSHEET = (0, client_1.gql) `
3393
3399
  timeTaken
3394
3400
  endedAt
3395
3401
  completed
3402
+ passingMark
3403
+ duration
3404
+ correct
3405
+ incorrect
3406
+ totalQuestions
3396
3407
  }
3397
3408
  }
3398
3409
  }
@@ -66,6 +66,8 @@ export declare const optimisticEndMockTest: (marksheet: IMarksheet) => {
66
66
  incorrect?: number | undefined;
67
67
  totalQuestions?: number | undefined;
68
68
  sessionId: string;
69
+ passingMark: number;
70
+ duration: number;
69
71
  solo: boolean;
70
72
  agoraId: string;
71
73
  users: import("../../../models").IUser[];
@@ -65,6 +65,10 @@ exports.END_MOCK_TEST = (0, client_1.gql) `
65
65
  endMockTest(marksheetId: $marksheetId) {
66
66
  id
67
67
  completed
68
+ correct
69
+ incorrect
70
+ totalQuestions
71
+ duration
68
72
  }
69
73
  }
70
74
  }
@@ -93,6 +93,9 @@ export interface IMarksheetFeedback {
93
93
  topics: IMarksheetTopicFeedback[];
94
94
  }
95
95
  export type IMarksheetFeedbackData = RestrictedData<graphqlNormalize & IMarksheetFeedback, 'marksheetFeedback'>;
96
+ /**
97
+ * @deprecated Use MARKSHEETS query intead
98
+ */
96
99
  export declare const MARKSHEET_FEEDBACK: import("@apollo/client").DocumentNode;
97
100
  /**
98
101
  * heartbeatQbank
@@ -10,6 +10,8 @@ exports.MARKSHEET = (0, client_1.gql) `
10
10
  topicConceptData
11
11
  currentMarkId
12
12
  completed
13
+ passingMark
14
+ duration
13
15
  timeTaken
14
16
  topicIds
15
17
  topicNames
@@ -1004,6 +1006,8 @@ exports.MARKSHEETS = (0, client_1.gql) `
1004
1006
  isTestMarksheet
1005
1007
  solo
1006
1008
  completed
1009
+ passingMark
1010
+ duration
1007
1011
  updatedAt
1008
1012
  users {
1009
1013
  id
@@ -2142,6 +2146,8 @@ exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
2142
2146
  topicConceptData
2143
2147
  currentMarkId
2144
2148
  completed
2149
+ passingMark
2150
+ duration
2145
2151
  topicIds
2146
2152
  topicNames
2147
2153
  mockTestId
@@ -3121,6 +3127,9 @@ exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
3121
3127
  }
3122
3128
  }
3123
3129
  `;
3130
+ /**
3131
+ * @deprecated Use MARKSHEETS query intead
3132
+ */
3124
3133
  exports.MARKSHEET_FEEDBACK = (0, client_1.gql) `
3125
3134
  query MarksheetFeedback($id: Int!) {
3126
3135
  restricted {