@quesmed/types 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[];
@@ -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 {
@@ -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[];
@@ -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[];
@@ -12,6 +12,8 @@ export const BUILD_QUESTION_MARKSHEET = gql `
12
12
  sessionId
13
13
  topicIds
14
14
  completed
15
+ passingMark
16
+ duration
15
17
  topicIds
16
18
  topicNames
17
19
  mockTestId
@@ -1002,6 +1004,8 @@ export const BUILD_MARKSHEET = gql `
1002
1004
  sessionId
1003
1005
  topicIds
1004
1006
  completed
1007
+ passingMark
1008
+ duration
1005
1009
  topicIds
1006
1010
  topicNames
1007
1011
  mockTestId
@@ -1996,6 +2000,8 @@ export const RE_BUILD_MARKSHEET = gql `
1996
2000
  topicConceptData
1997
2001
  currentMarkId
1998
2002
  completed
2003
+ passingMark
2004
+ duration
1999
2005
  timeTaken
2000
2006
  topicIds
2001
2007
  topicNames
@@ -3051,7 +3057,7 @@ export const optimisticSaveMarksheets = (marksheet, marksheetInput, questionInde
3051
3057
  timeTaken,
3052
3058
  questionChoiceId: choiceId ?? null,
3053
3059
  isAnswered: true,
3054
- mark: mark || choiceId ? JSON.stringify([choiceId]) : null,
3060
+ mark: mark || null,
3055
3061
  };
3056
3062
  const updatedMarks = [
3057
3063
  ...marks.slice(0, questionIndex),
@@ -3383,6 +3389,11 @@ export const END_MARKSHEET = gql `
3383
3389
  timeTaken
3384
3390
  endedAt
3385
3391
  completed
3392
+ passingMark
3393
+ duration
3394
+ correct
3395
+ incorrect
3396
+ totalQuestions
3386
3397
  }
3387
3398
  }
3388
3399
  }
@@ -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[];
@@ -60,6 +60,10 @@ export const END_MOCK_TEST = gql `
60
60
  endMockTest(marksheetId: $marksheetId) {
61
61
  id
62
62
  completed
63
+ correct
64
+ incorrect
65
+ totalQuestions
66
+ duration
63
67
  }
64
68
  }
65
69
  }
@@ -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
@@ -7,6 +7,8 @@ export const MARKSHEET = gql `
7
7
  topicConceptData
8
8
  currentMarkId
9
9
  completed
10
+ passingMark
11
+ duration
10
12
  timeTaken
11
13
  topicIds
12
14
  topicNames
@@ -1001,6 +1003,8 @@ export const MARKSHEETS = gql `
1001
1003
  isTestMarksheet
1002
1004
  solo
1003
1005
  completed
1006
+ passingMark
1007
+ duration
1004
1008
  updatedAt
1005
1009
  users {
1006
1010
  id
@@ -2139,6 +2143,8 @@ export const FLAGGED_QUESTIONS_MARKSHEET = gql `
2139
2143
  topicConceptData
2140
2144
  currentMarkId
2141
2145
  completed
2146
+ passingMark
2147
+ duration
2142
2148
  topicIds
2143
2149
  topicNames
2144
2150
  mockTestId
@@ -3118,6 +3124,9 @@ export const FLAGGED_QUESTIONS_MARKSHEET = gql `
3118
3124
  }
3119
3125
  }
3120
3126
  `;
3127
+ /**
3128
+ * @deprecated Use MARKSHEETS query intead
3129
+ */
3121
3130
  export const MARKSHEET_FEEDBACK = gql `
3122
3131
  query MarksheetFeedback($id: Int!) {
3123
3132
  restricted {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.5.104",
3
+ "version": "2.5.106",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",