@quesmed/types 2.5.19 → 2.5.21

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.
@@ -56,7 +56,7 @@ export interface IDailyProgressData {
56
56
  totalCorrect: number;
57
57
  intensity: EPracticeIntensity;
58
58
  }
59
- export interface IMonthlyProgressData {
59
+ export interface IUserProgressData {
60
60
  marksheetCount: number;
61
61
  questionsCount: number;
62
62
  daysInCurrentStreak: number;
@@ -97,7 +97,7 @@ export interface IUser {
97
97
  completedRedCardsCount?: number | null;
98
98
  dailyFeed: ITodo;
99
99
  dailyProgress: IDailyProgressData[];
100
- monthlyProgress: IMonthlyProgressData;
100
+ userProgress: IUserProgressData;
101
101
  notifications: INotification[];
102
102
  subscriptions: ISubscription[];
103
103
  qbankSubscriptionEndDate: number | Date | null;
@@ -15,17 +15,32 @@ export interface IMarksheetsVar {
15
15
  period?: number;
16
16
  };
17
17
  }
18
+ export interface IMarksheetsWindowVar {
19
+ filter: {
20
+ limit: number;
21
+ order?: string;
22
+ updatedAt?: Date | number;
23
+ solo?: boolean;
24
+ period?: number;
25
+ };
26
+ }
18
27
  export type IMarksheetsData = RestrictedData<{
19
28
  results: (graphqlNormalize & IMarksheet)[];
20
29
  total: number;
21
30
  score: number;
22
31
  }, 'marksheets'>;
32
+ export type IMarksheetsWindowData = RestrictedData<{
33
+ results: (graphqlNormalize & IMarksheet)[];
34
+ total: number;
35
+ score: number;
36
+ }, 'marksheetsWindow'>;
23
37
  export interface PaginatedMarksheets {
24
38
  results: (graphqlNormalize & IMarksheet)[];
25
39
  total: number;
26
40
  score: number;
27
41
  }
28
42
  export declare const MARKSHEETS: import("@apollo/client").DocumentNode;
43
+ export declare const MARKSHEETS_WINDOW: import("@apollo/client").DocumentNode;
29
44
  export type ILatestPastMarksheetIdVar = null;
30
45
  export type ILatestPastMarksheetIdData = RestrictedData<number, 'latestPastMarksheetId'>;
31
46
  export declare const LATEST_PAST_MARKSHEET_ID: 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_MARKSHEET = exports.FLAGGED_QUESTIONS = exports.LATEST_PAST_SESSION_ID = 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_MARKSHEET = exports.FLAGGED_QUESTIONS = exports.LATEST_PAST_SESSION_ID = exports.LATEST_PAST_MARKSHEET_ID = exports.MARKSHEETS_WINDOW = 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!) {
@@ -632,6 +632,40 @@ exports.MARKSHEETS = (0, client_1.gql) `
632
632
  }
633
633
  }
634
634
  `;
635
+ exports.MARKSHEETS_WINDOW = (0, client_1.gql) `
636
+ query MarksheetsWindow($filter: MarksheetWindowFilterInput!) {
637
+ restricted {
638
+ marksheetsWindow(filter: $filter) {
639
+ results {
640
+ id
641
+ endedAt
642
+ topicNames
643
+ correct
644
+ incorrect
645
+ totalQuestions
646
+ isTestMarksheet
647
+ solo
648
+ completed
649
+ updatedAt
650
+ users {
651
+ id
652
+ displayName
653
+ }
654
+ marks {
655
+ question {
656
+ topic {
657
+ typeId
658
+ name
659
+ }
660
+ }
661
+ }
662
+ }
663
+ total
664
+ score
665
+ }
666
+ }
667
+ }
668
+ `;
635
669
  exports.LATEST_PAST_MARKSHEET_ID = (0, client_1.gql) `
636
670
  query LatestPastMarksheetId {
637
671
  restricted {
@@ -78,7 +78,7 @@ exports.DASHBOARD_QBANK = (0, client_1.gql) `
78
78
  totalCorrect
79
79
  totalCount
80
80
  }
81
- monthlyProgress {
81
+ userProgress {
82
82
  marksheetCount
83
83
  questionsCount
84
84
  daysInCurrentStreak
@@ -179,7 +179,7 @@ exports.DASHBOARD = (0, client_1.gql) `
179
179
  totalCorrect
180
180
  totalCount
181
181
  }
182
- monthlyProgress {
182
+ userProgress {
183
183
  marksheetCount
184
184
  questionsCount
185
185
  daysInCurrentStreak
@@ -56,7 +56,7 @@ export interface IDailyProgressData {
56
56
  totalCorrect: number;
57
57
  intensity: EPracticeIntensity;
58
58
  }
59
- export interface IMonthlyProgressData {
59
+ export interface IUserProgressData {
60
60
  marksheetCount: number;
61
61
  questionsCount: number;
62
62
  daysInCurrentStreak: number;
@@ -97,7 +97,7 @@ export interface IUser {
97
97
  completedRedCardsCount?: number | null;
98
98
  dailyFeed: ITodo;
99
99
  dailyProgress: IDailyProgressData[];
100
- monthlyProgress: IMonthlyProgressData;
100
+ userProgress: IUserProgressData;
101
101
  notifications: INotification[];
102
102
  subscriptions: ISubscription[];
103
103
  qbankSubscriptionEndDate: number | Date | null;
@@ -15,17 +15,32 @@ export interface IMarksheetsVar {
15
15
  period?: number;
16
16
  };
17
17
  }
18
+ export interface IMarksheetsWindowVar {
19
+ filter: {
20
+ limit: number;
21
+ order?: string;
22
+ updatedAt?: Date | number;
23
+ solo?: boolean;
24
+ period?: number;
25
+ };
26
+ }
18
27
  export type IMarksheetsData = RestrictedData<{
19
28
  results: (graphqlNormalize & IMarksheet)[];
20
29
  total: number;
21
30
  score: number;
22
31
  }, 'marksheets'>;
32
+ export type IMarksheetsWindowData = RestrictedData<{
33
+ results: (graphqlNormalize & IMarksheet)[];
34
+ total: number;
35
+ score: number;
36
+ }, 'marksheetsWindow'>;
23
37
  export interface PaginatedMarksheets {
24
38
  results: (graphqlNormalize & IMarksheet)[];
25
39
  total: number;
26
40
  score: number;
27
41
  }
28
42
  export declare const MARKSHEETS: import("@apollo/client").DocumentNode;
43
+ export declare const MARKSHEETS_WINDOW: import("@apollo/client").DocumentNode;
29
44
  export type ILatestPastMarksheetIdVar = null;
30
45
  export type ILatestPastMarksheetIdData = RestrictedData<number, 'latestPastMarksheetId'>;
31
46
  export declare const LATEST_PAST_MARKSHEET_ID: import("@apollo/client").DocumentNode;
@@ -629,6 +629,40 @@ export const MARKSHEETS = gql `
629
629
  }
630
630
  }
631
631
  `;
632
+ export const MARKSHEETS_WINDOW = gql `
633
+ query MarksheetsWindow($filter: MarksheetWindowFilterInput!) {
634
+ restricted {
635
+ marksheetsWindow(filter: $filter) {
636
+ results {
637
+ id
638
+ endedAt
639
+ topicNames
640
+ correct
641
+ incorrect
642
+ totalQuestions
643
+ isTestMarksheet
644
+ solo
645
+ completed
646
+ updatedAt
647
+ users {
648
+ id
649
+ displayName
650
+ }
651
+ marks {
652
+ question {
653
+ topic {
654
+ typeId
655
+ name
656
+ }
657
+ }
658
+ }
659
+ }
660
+ total
661
+ score
662
+ }
663
+ }
664
+ }
665
+ `;
632
666
  export const LATEST_PAST_MARKSHEET_ID = gql `
633
667
  query LatestPastMarksheetId {
634
668
  restricted {
@@ -75,7 +75,7 @@ export const DASHBOARD_QBANK = gql `
75
75
  totalCorrect
76
76
  totalCount
77
77
  }
78
- monthlyProgress {
78
+ userProgress {
79
79
  marksheetCount
80
80
  questionsCount
81
81
  daysInCurrentStreak
@@ -176,7 +176,7 @@ export const DASHBOARD = gql `
176
176
  totalCorrect
177
177
  totalCount
178
178
  }
179
- monthlyProgress {
179
+ userProgress {
180
180
  marksheetCount
181
181
  questionsCount
182
182
  daysInCurrentStreak
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.5.19",
3
+ "version": "2.5.21",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",