@quesmed/types 2.2.73 → 2.2.76

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.
@@ -29,11 +29,29 @@ export interface IPayload {
29
29
  qbankSubscriptionEndDate: number | null;
30
30
  osceSubscriptionEndDate: number | null;
31
31
  bundleSubscriptionEndDate: number | null;
32
+ ver: number;
32
33
  }
33
- export interface IDailyProgressInfo {
34
+ export interface IDailyProgressVar {
35
+ days?: number;
36
+ }
37
+ export declare enum EPracticeIntensity {
38
+ NONE = 0,
39
+ LOW = 1,
40
+ MED = 2,
41
+ HIGH = 3
42
+ }
43
+ export interface IDailyProgressData {
44
+ date: Date;
45
+ dateString: string;
34
46
  totalCount: number;
35
47
  totalCorrect: number;
36
- dateString: string;
48
+ intensity: EPracticeIntensity;
49
+ }
50
+ export interface IMonthlyProgressData {
51
+ marksheetCount: number;
52
+ questionsCount: number;
53
+ daysInCurrentStreak: number;
54
+ daysInLongestStreak: number;
37
55
  }
38
56
  export interface IUser {
39
57
  id: Id;
@@ -68,7 +86,8 @@ export interface IUser {
68
86
  completedYellowCardsCount?: number | null;
69
87
  completedRedCardsCount?: number | null;
70
88
  dailyFeed: ITodo;
71
- dailyProgress: IDailyProgressInfo[];
89
+ dailyProgress: IDailyProgressData[];
90
+ monthlyProgress: IMonthlyProgressData;
72
91
  notifications: INotification[];
73
92
  subscriptions: ISubscription[];
74
93
  qbankSubscriptionEndDate: number | Date | null;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.currentClassGroup = exports.currentClassYear = exports.classYearGroup = exports.EClassYearGroup = exports.classYears = void 0;
3
+ exports.currentClassGroup = exports.currentClassYear = exports.EPracticeIntensity = exports.classYearGroup = exports.EClassYearGroup = exports.classYears = void 0;
4
4
  exports.classYears = [
5
5
  'Year 1',
6
6
  'Year 2',
@@ -26,6 +26,13 @@ exports.classYearGroup = {
26
26
  MSc: EClassYearGroup.CLINICAL,
27
27
  'Beta Tester': EClassYearGroup.CLINICAL,
28
28
  };
29
+ var EPracticeIntensity;
30
+ (function (EPracticeIntensity) {
31
+ EPracticeIntensity[EPracticeIntensity["NONE"] = 0] = "NONE";
32
+ EPracticeIntensity[EPracticeIntensity["LOW"] = 1] = "LOW";
33
+ EPracticeIntensity[EPracticeIntensity["MED"] = 2] = "MED";
34
+ EPracticeIntensity[EPracticeIntensity["HIGH"] = 3] = "HIGH";
35
+ })(EPracticeIntensity = exports.EPracticeIntensity || (exports.EPracticeIntensity = {}));
29
36
  function currentClassYear(createdAtUnix, classYear, compareUnix = new Date().getTime()) {
30
37
  if (createdAtUnix === 0) {
31
38
  throw new Error('createdAt not given in Unix');
@@ -21,6 +21,7 @@ exports.USER_FIELDS = (0, client_1.gql) `
21
21
  qbankSubscriptionEndDate
22
22
  osceSubscriptionEndDate
23
23
  bundleSubscriptionEndDate
24
+ tocAccepted
24
25
 
25
26
  # user-specific keys
26
27
  # marksheets
@@ -1,4 +1,4 @@
1
- import { IDailyProgressInfo, ITodo, ITopic, IUser } from '../../../models';
1
+ import { IDailyProgressData, ITodo, ITopic, IUser } from '../../../models';
2
2
  import { PaginatedMarksheets } from './marksheet';
3
3
  import { IUniversitiesRankSpeciality } from './university';
4
4
  export interface IDashboardQBank {
@@ -8,7 +8,7 @@ export interface IDashboardQBank {
8
8
  user: IUser;
9
9
  marksheets: PaginatedMarksheets;
10
10
  dailyFeed: ITodo;
11
- dailyProgress: IDailyProgressInfo[];
11
+ dailyProgress: IDailyProgressData[];
12
12
  topics: ITopic[];
13
13
  totalQuestions: number;
14
14
  totalCards: number;
@@ -29,11 +29,29 @@ export interface IPayload {
29
29
  qbankSubscriptionEndDate: number | null;
30
30
  osceSubscriptionEndDate: number | null;
31
31
  bundleSubscriptionEndDate: number | null;
32
+ ver: number;
32
33
  }
33
- export interface IDailyProgressInfo {
34
+ export interface IDailyProgressVar {
35
+ days?: number;
36
+ }
37
+ export declare enum EPracticeIntensity {
38
+ NONE = 0,
39
+ LOW = 1,
40
+ MED = 2,
41
+ HIGH = 3
42
+ }
43
+ export interface IDailyProgressData {
44
+ date: Date;
45
+ dateString: string;
34
46
  totalCount: number;
35
47
  totalCorrect: number;
36
- dateString: string;
48
+ intensity: EPracticeIntensity;
49
+ }
50
+ export interface IMonthlyProgressData {
51
+ marksheetCount: number;
52
+ questionsCount: number;
53
+ daysInCurrentStreak: number;
54
+ daysInLongestStreak: number;
37
55
  }
38
56
  export interface IUser {
39
57
  id: Id;
@@ -68,7 +86,8 @@ export interface IUser {
68
86
  completedYellowCardsCount?: number | null;
69
87
  completedRedCardsCount?: number | null;
70
88
  dailyFeed: ITodo;
71
- dailyProgress: IDailyProgressInfo[];
89
+ dailyProgress: IDailyProgressData[];
90
+ monthlyProgress: IMonthlyProgressData;
72
91
  notifications: INotification[];
73
92
  subscriptions: ISubscription[];
74
93
  qbankSubscriptionEndDate: number | Date | null;
@@ -23,6 +23,13 @@ export const classYearGroup = {
23
23
  MSc: EClassYearGroup.CLINICAL,
24
24
  'Beta Tester': EClassYearGroup.CLINICAL,
25
25
  };
26
+ export var EPracticeIntensity;
27
+ (function (EPracticeIntensity) {
28
+ EPracticeIntensity[EPracticeIntensity["NONE"] = 0] = "NONE";
29
+ EPracticeIntensity[EPracticeIntensity["LOW"] = 1] = "LOW";
30
+ EPracticeIntensity[EPracticeIntensity["MED"] = 2] = "MED";
31
+ EPracticeIntensity[EPracticeIntensity["HIGH"] = 3] = "HIGH";
32
+ })(EPracticeIntensity || (EPracticeIntensity = {}));
26
33
  export function currentClassYear(createdAtUnix, classYear, compareUnix = new Date().getTime()) {
27
34
  if (createdAtUnix === 0) {
28
35
  throw new Error('createdAt not given in Unix');
@@ -18,6 +18,7 @@ export const USER_FIELDS = gql `
18
18
  qbankSubscriptionEndDate
19
19
  osceSubscriptionEndDate
20
20
  bundleSubscriptionEndDate
21
+ tocAccepted
21
22
 
22
23
  # user-specific keys
23
24
  # marksheets
@@ -1,4 +1,4 @@
1
- import { IDailyProgressInfo, ITodo, ITopic, IUser } from '../../../models';
1
+ import { IDailyProgressData, ITodo, ITopic, IUser } from '../../../models';
2
2
  import { PaginatedMarksheets } from './marksheet';
3
3
  import { IUniversitiesRankSpeciality } from './university';
4
4
  export interface IDashboardQBank {
@@ -8,7 +8,7 @@ export interface IDashboardQBank {
8
8
  user: IUser;
9
9
  marksheets: PaginatedMarksheets;
10
10
  dailyFeed: ITodo;
11
- dailyProgress: IDailyProgressInfo[];
11
+ dailyProgress: IDailyProgressData[];
12
12
  topics: ITopic[];
13
13
  totalQuestions: number;
14
14
  totalCards: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.2.73",
3
+ "version": "2.2.76",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",