@quesmed/types 2.2.20 → 2.2.23

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.
@@ -12,6 +12,7 @@ exports.BUILD_MARKSHEET = (0, client_1.gql) `
12
12
  startedAt
13
13
  endedAt
14
14
  topicIds
15
+ solo
15
16
  state
16
17
  currentMarkId
17
18
  topicConceptData
@@ -14,11 +14,20 @@ export interface IMarksheetsVar {
14
14
  solo?: boolean;
15
15
  };
16
16
  }
17
- export declare type IMarksheetsData = RestrictedData<(graphqlNormalize & IMarksheet)[], 'marksheets'>;
17
+ export declare type IMarksheetsData = RestrictedData<{
18
+ results: (graphqlNormalize & IMarksheet)[];
19
+ total: number;
20
+ }, 'marksheets'>;
18
21
  export declare const MARKSHEETS: import("@apollo/client").DocumentNode;
19
22
  export declare type ILatestPastMarksheetIdVar = null;
20
23
  export declare type ILatestPastMarksheetIdData = RestrictedData<number, 'latestPastMarksheetId'>;
21
24
  export declare const LATEST_PAST_MARKSHEET_ID: import("@apollo/client").DocumentNode;
25
+ /**
26
+ * latestPastAgoraId
27
+ */
28
+ export declare type ILatestPastAgoraIdVar = null;
29
+ export declare type ILatestPastAgoraIdData = RestrictedData<string, 'latestPastAgoraId'>;
30
+ export declare const LATEST_PAST_AGORA_ID: import("@apollo/client").DocumentNode;
22
31
  export declare type IFlaggedQuestionsVar = null;
23
32
  export declare type IFlaggedQuestionsData = RestrictedData<(graphqlNormalize & IUserFlaggedQuestion)[], 'flaggedQuestions'>;
24
33
  export declare const FLAGGED_QUESTIONS: import("@apollo/client").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PRE_BUILD_MARKSHEET = exports.HEARTBEAT_QBANK = exports.MARKSHEET_FEEDBACK = exports.FLAGGED_QUESTIONS = exports.LATEST_PAST_MARKSHEET_ID = exports.MARKSHEETS = exports.MARKSHEET = void 0;
3
+ exports.PRE_BUILD_MARKSHEET = exports.HEARTBEAT_QBANK = exports.MARKSHEET_FEEDBACK = exports.FLAGGED_QUESTIONS = exports.LATEST_PAST_AGORA_ID = exports.LATEST_PAST_MARKSHEET_ID = exports.MARKSHEETS = exports.MARKSHEET = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  exports.MARKSHEET = (0, client_1.gql) `
6
6
  query Marksheet($id: Int!) {
@@ -570,6 +570,13 @@ exports.LATEST_PAST_MARKSHEET_ID = (0, client_1.gql) `
570
570
  }
571
571
  }
572
572
  `;
573
+ exports.LATEST_PAST_AGORA_ID = (0, client_1.gql) `
574
+ query LatestPastAgoraId {
575
+ restricted {
576
+ latestPastAgoraId
577
+ }
578
+ }
579
+ `;
573
580
  exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
574
581
  query FlaggedQuestions {
575
582
  restricted {
@@ -54,16 +54,17 @@ export interface IOnMarksheetDataModificationVar {
54
54
  marksheetId: Id;
55
55
  }
56
56
  export interface IMarksheetDataModification {
57
+ action?: EMarksheetAction;
58
+ isAnswered?: boolean;
59
+ mark?: IMarksheetMarkJSONB;
57
60
  markId?: Id;
58
- updatedAt?: Date;
61
+ markIndex?: number;
59
62
  marksheetId: Id;
60
63
  questionChoiceId?: Id;
61
64
  questionId?: Id;
62
65
  timeTaken?: number;
63
- mark?: IMarksheetMarkJSONB;
64
- action?: EMarksheetAction;
66
+ updatedAt?: Date;
65
67
  user: IUser;
66
- isAnswered?: boolean;
67
68
  }
68
69
  export declare type IOnMarksheetDataModificationData = RootData<IMarksheetDataModification, 'onMarksheetDataModification'>;
69
70
  export declare const ON_MARKSHEET_DATA_MODIFICATION_KEY = "ON_MARKSHEET_DATA_MODIFICATION";
@@ -9,6 +9,7 @@ export const BUILD_MARKSHEET = gql `
9
9
  startedAt
10
10
  endedAt
11
11
  topicIds
12
+ solo
12
13
  state
13
14
  currentMarkId
14
15
  topicConceptData
@@ -14,11 +14,20 @@ export interface IMarksheetsVar {
14
14
  solo?: boolean;
15
15
  };
16
16
  }
17
- export declare type IMarksheetsData = RestrictedData<(graphqlNormalize & IMarksheet)[], 'marksheets'>;
17
+ export declare type IMarksheetsData = RestrictedData<{
18
+ results: (graphqlNormalize & IMarksheet)[];
19
+ total: number;
20
+ }, 'marksheets'>;
18
21
  export declare const MARKSHEETS: import("@apollo/client").DocumentNode;
19
22
  export declare type ILatestPastMarksheetIdVar = null;
20
23
  export declare type ILatestPastMarksheetIdData = RestrictedData<number, 'latestPastMarksheetId'>;
21
24
  export declare const LATEST_PAST_MARKSHEET_ID: import("@apollo/client").DocumentNode;
25
+ /**
26
+ * latestPastAgoraId
27
+ */
28
+ export declare type ILatestPastAgoraIdVar = null;
29
+ export declare type ILatestPastAgoraIdData = RestrictedData<string, 'latestPastAgoraId'>;
30
+ export declare const LATEST_PAST_AGORA_ID: import("@apollo/client").DocumentNode;
22
31
  export declare type IFlaggedQuestionsVar = null;
23
32
  export declare type IFlaggedQuestionsData = RestrictedData<(graphqlNormalize & IUserFlaggedQuestion)[], 'flaggedQuestions'>;
24
33
  export declare const FLAGGED_QUESTIONS: import("@apollo/client").DocumentNode;
@@ -567,6 +567,13 @@ export const LATEST_PAST_MARKSHEET_ID = gql `
567
567
  }
568
568
  }
569
569
  `;
570
+ export const LATEST_PAST_AGORA_ID = gql `
571
+ query LatestPastAgoraId {
572
+ restricted {
573
+ latestPastAgoraId
574
+ }
575
+ }
576
+ `;
570
577
  export const FLAGGED_QUESTIONS = gql `
571
578
  query FlaggedQuestions {
572
579
  restricted {
@@ -54,16 +54,17 @@ export interface IOnMarksheetDataModificationVar {
54
54
  marksheetId: Id;
55
55
  }
56
56
  export interface IMarksheetDataModification {
57
+ action?: EMarksheetAction;
58
+ isAnswered?: boolean;
59
+ mark?: IMarksheetMarkJSONB;
57
60
  markId?: Id;
58
- updatedAt?: Date;
61
+ markIndex?: number;
59
62
  marksheetId: Id;
60
63
  questionChoiceId?: Id;
61
64
  questionId?: Id;
62
65
  timeTaken?: number;
63
- mark?: IMarksheetMarkJSONB;
64
- action?: EMarksheetAction;
66
+ updatedAt?: Date;
65
67
  user: IUser;
66
- isAnswered?: boolean;
67
68
  }
68
69
  export declare type IOnMarksheetDataModificationData = RootData<IMarksheetDataModification, 'onMarksheetDataModification'>;
69
70
  export declare const ON_MARKSHEET_DATA_MODIFICATION_KEY = "ON_MARKSHEET_DATA_MODIFICATION";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.2.20",
3
+ "version": "2.2.23",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",