@quesmed/types-rn 2.0.10 → 2.0.13
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/Question.d.ts
CHANGED
|
@@ -30,11 +30,10 @@ export interface IQuestionComment {
|
|
|
30
30
|
updatedAt: number | Date;
|
|
31
31
|
userId: Id;
|
|
32
32
|
user?: IUser;
|
|
33
|
-
username?: string | null;
|
|
34
33
|
questionId: Id;
|
|
35
34
|
parentId: Id;
|
|
35
|
+
parent?: IQuestionComment;
|
|
36
36
|
comment: string;
|
|
37
|
-
anonymous: boolean;
|
|
38
37
|
review: boolean;
|
|
39
38
|
replies?: IQuestionComment[];
|
|
40
39
|
likes?: number;
|
package/models/User.d.ts
CHANGED
|
@@ -74,6 +74,12 @@ export interface IUser {
|
|
|
74
74
|
completedYellowCardsCount?: number | null;
|
|
75
75
|
completedRedCardsCount?: number | null;
|
|
76
76
|
dailyFeed: ITodo;
|
|
77
|
+
dailyProgress: IDailyProgressInfo[];
|
|
78
|
+
}
|
|
79
|
+
export interface IDailyProgressInfo {
|
|
80
|
+
totalCount: number;
|
|
81
|
+
totalCorrect: number;
|
|
82
|
+
dateString: string;
|
|
77
83
|
}
|
|
78
84
|
export declare function currentClassYear(createdAtUnix: number, classYear: IClassYear): IClassYear;
|
|
79
85
|
export declare function currentClassGroup(createdAtUnix: number, classYear: IClassYear): EClassYearGroup;
|
package/package.json
CHANGED
|
@@ -9,7 +9,6 @@ export interface IQuestionCommentsVar {
|
|
|
9
9
|
questionId: Id;
|
|
10
10
|
parentId: Id;
|
|
11
11
|
comment: string;
|
|
12
|
-
anonymous: boolean;
|
|
13
12
|
}
|
|
14
13
|
export declare type IQuestionCommentsData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionComments'>;
|
|
15
14
|
export interface IQuestionCommentsLikeVar {
|
|
@@ -4,10 +4,3 @@ export declare type IDashboardUserVar = null;
|
|
|
4
4
|
export declare type IDashboardUserData = RestrictedData<graphqlNormalize & IUser, 'dashboardUser'>;
|
|
5
5
|
export declare type IUserVar = null;
|
|
6
6
|
export declare type IUserData = RestrictedData<graphqlNormalize & IUser, 'user'>;
|
|
7
|
-
export declare type IDailyProgressVar = null;
|
|
8
|
-
export interface IDailyProgressInfo {
|
|
9
|
-
totalCount: number;
|
|
10
|
-
totalTrue: number;
|
|
11
|
-
dateString: string;
|
|
12
|
-
}
|
|
13
|
-
export declare type IDailyProgressData = RestrictedData<(graphqlNormalize & IDailyProgressInfo)[], 'dailyProgress'>;
|