@quesmed/types-rn 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.
package/models/User.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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:
|
|
89
|
+
dailyProgress: IDailyProgressData[];
|
|
90
|
+
monthlyProgress: IMonthlyProgressData;
|
|
72
91
|
notifications: INotification[];
|
|
73
92
|
subscriptions: ISubscription[];
|
|
74
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
11
|
+
dailyProgress: IDailyProgressData[];
|
|
12
12
|
topics: ITopic[];
|
|
13
13
|
totalQuestions: number;
|
|
14
14
|
totalCards: number;
|