@quesmed/types-rn 2.2.74 → 2.2.77

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.
package/models/User.d.ts CHANGED
@@ -31,10 +31,27 @@ export interface IPayload {
31
31
  bundleSubscriptionEndDate: number | null;
32
32
  ver: number;
33
33
  }
34
- 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;
35
46
  totalCount: number;
36
47
  totalCorrect: number;
37
- dateString: string;
48
+ intensity: EPracticeIntensity;
49
+ }
50
+ export interface IMonthlyProgressData {
51
+ marksheetCount: number;
52
+ questionsCount: number;
53
+ daysInCurrentStreak: number;
54
+ daysInLongestStreak: number;
38
55
  }
39
56
  export interface IUser {
40
57
  id: Id;
@@ -69,7 +86,8 @@ export interface IUser {
69
86
  completedYellowCardsCount?: number | null;
70
87
  completedRedCardsCount?: number | null;
71
88
  dailyFeed: ITodo;
72
- dailyProgress: IDailyProgressInfo[];
89
+ dailyProgress: IDailyProgressData[];
90
+ monthlyProgress: IMonthlyProgressData;
73
91
  notifications: INotification[];
74
92
  subscriptions: ISubscription[];
75
93
  qbankSubscriptionEndDate: number | Date | null;
package/models/User.js CHANGED
@@ -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');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.2.74",
3
+ "version": "2.2.77",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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;
@@ -72,8 +72,17 @@ exports.DASHBOARD_QBANK = (0, client_1.gql) `
72
72
  dailyTask
73
73
  }
74
74
  dailyProgress {
75
- totalCount
75
+ date
76
76
  dateString
77
+ intensity
78
+ totalCorrect
79
+ totalCount
80
+ }
81
+ monthlyProgress {
82
+ marksheetCount
83
+ questionsCount
84
+ daysInCurrentStreak
85
+ daysInLongestStreak
77
86
  }
78
87
  }
79
88
  totalQuestions