@quesmed/types-rn 2.0.4 → 2.0.8
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
|
@@ -31,8 +31,11 @@ export interface IQuestionComment {
|
|
|
31
31
|
userId: Id;
|
|
32
32
|
user?: IUser;
|
|
33
33
|
username?: string | null;
|
|
34
|
-
questionId:
|
|
34
|
+
questionId: Id;
|
|
35
|
+
parentId: Id;
|
|
35
36
|
comment: string;
|
|
37
|
+
anonymous: boolean;
|
|
38
|
+
review: boolean;
|
|
36
39
|
replies?: IQuestionComment[];
|
|
37
40
|
likes?: number;
|
|
38
41
|
dislikes?: number;
|
package/models/User.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { IConcept } from './Concept';
|
|
|
3
3
|
import { IMarksheet, IMarksheetMark } from './Marksheet';
|
|
4
4
|
import { IQuestion } from './Question';
|
|
5
5
|
import { ISubscription } from './Subscription';
|
|
6
|
+
import { ITodo } from './Todo';
|
|
6
7
|
import { Id } from './Type';
|
|
7
8
|
import { IUniversity } from './University';
|
|
8
9
|
export declare type IAccessLevel = 'subscriber' | 'administrator' | 'tutor';
|
|
@@ -72,6 +73,7 @@ export interface IUser {
|
|
|
72
73
|
completedGreenCardsCount?: number | null;
|
|
73
74
|
completedYellowCardsCount?: number | null;
|
|
74
75
|
completedRedCardsCount?: number | null;
|
|
76
|
+
dailyFeed: ITodo;
|
|
75
77
|
}
|
|
76
78
|
export declare function currentClassYear(createdAtUnix: number, classYear: IClassYear): IClassYear;
|
|
77
79
|
export declare function currentClassGroup(createdAtUnix: number, classYear: IClassYear): EClassYearGroup;
|
package/package.json
CHANGED
|
@@ -19,6 +19,5 @@ export interface IQuestionCommentsLikeVar {
|
|
|
19
19
|
export declare type IQuestionCommentsLikeData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionCommentLike'>;
|
|
20
20
|
export interface IQuestionCommentRemoveVar {
|
|
21
21
|
commentId: Id;
|
|
22
|
-
userId: Id;
|
|
23
22
|
}
|
|
24
23
|
export declare type IQuestionCommentRemoveData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionCommentRemove'>;
|
|
@@ -7,7 +7,3 @@ export interface IUsernameProvisionedVar {
|
|
|
7
7
|
username: string;
|
|
8
8
|
}
|
|
9
9
|
export declare type IUsernameProvisionedData = RootData<boolean, 'usernameProvisioned'>;
|
|
10
|
-
export interface IValidateResetPasswordTokenVar {
|
|
11
|
-
token: string;
|
|
12
|
-
}
|
|
13
|
-
export declare type IValidateResetPasswordTokenData = RootData<string, 'validateResetPasswordToken'>;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IVideo } from '../../models';
|
|
2
2
|
import { graphqlNormalize, RootData } from '../types';
|
|
3
|
-
export
|
|
4
|
-
filter: 'new' | 'popular' | 'personal' | 'live';
|
|
5
|
-
limit: number;
|
|
6
|
-
}
|
|
3
|
+
export { IVideosVar, IVideoVar } from './restricted/video';
|
|
7
4
|
export declare type IVideosData = RootData<(graphqlNormalize & IVideo)[], 'videos'>;
|
|
8
|
-
export interface IVideoVar {
|
|
9
|
-
id: Id;
|
|
10
|
-
}
|
|
11
5
|
export declare type IVideoData = RootData<graphqlNormalize & IVideo, 'video'>;
|
|
12
6
|
export interface IZoomSignatureVar {
|
|
13
7
|
meetingNumber: string;
|