@quesmed/types 2.0.3 → 2.0.7
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/dist/cjs/models/User.d.ts +2 -0
- package/dist/cjs/resolvers/mutation/restricted/questionDiscussion.d.ts +0 -1
- package/dist/cjs/resolvers/query/restricted/todos.d.ts +0 -15
- package/dist/cjs/resolvers/query/user.d.ts +0 -4
- package/dist/cjs/resolvers/query/video.d.ts +2 -8
- package/dist/mjs/models/User.d.ts +2 -0
- package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.d.ts +0 -1
- package/dist/mjs/resolvers/query/restricted/todos.d.ts +0 -15
- package/dist/mjs/resolvers/query/user.d.ts +0 -4
- package/dist/mjs/resolvers/query/video.d.ts +2 -8
- package/package.json +7 -5
|
@@ -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;
|
|
@@ -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'>;
|
|
@@ -11,18 +11,3 @@ export interface ITodoVar {
|
|
|
11
11
|
id: Id;
|
|
12
12
|
}
|
|
13
13
|
export declare type ITodoData = RestrictedData<graphqlNormalize & ITodo, 'todo'>;
|
|
14
|
-
export declare type IDailyFeedVar = null;
|
|
15
|
-
interface IDailyFeedTopicInfo {
|
|
16
|
-
name: string;
|
|
17
|
-
topicQuestionCount: number;
|
|
18
|
-
}
|
|
19
|
-
export interface IDailyFeed {
|
|
20
|
-
topic: IDailyFeedTopicInfo[];
|
|
21
|
-
totalCard: number;
|
|
22
|
-
todoId: number;
|
|
23
|
-
learnCard: number;
|
|
24
|
-
confidentCard: number;
|
|
25
|
-
reviewCard: number;
|
|
26
|
-
}
|
|
27
|
-
export declare type IDailyFeedData = RestrictedData<graphqlNormalize & IDailyFeed, 'dailyFeed'>;
|
|
28
|
-
export {};
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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'>;
|
|
@@ -11,18 +11,3 @@ export interface ITodoVar {
|
|
|
11
11
|
id: Id;
|
|
12
12
|
}
|
|
13
13
|
export declare type ITodoData = RestrictedData<graphqlNormalize & ITodo, 'todo'>;
|
|
14
|
-
export declare type IDailyFeedVar = null;
|
|
15
|
-
interface IDailyFeedTopicInfo {
|
|
16
|
-
name: string;
|
|
17
|
-
topicQuestionCount: number;
|
|
18
|
-
}
|
|
19
|
-
export interface IDailyFeed {
|
|
20
|
-
topic: IDailyFeedTopicInfo[];
|
|
21
|
-
totalCard: number;
|
|
22
|
-
todoId: number;
|
|
23
|
-
learnCard: number;
|
|
24
|
-
confidentCard: number;
|
|
25
|
-
reviewCard: number;
|
|
26
|
-
}
|
|
27
|
-
export declare type IDailyFeedData = RestrictedData<graphqlNormalize & IDailyFeed, 'dailyFeed'>;
|
|
28
|
-
export {};
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quesmed/types",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Typescript types for Quesmed",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"quesmed",
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
"license": "ISC",
|
|
77
77
|
"scripts": {
|
|
78
78
|
"test": "jest",
|
|
79
|
-
"clean": "rimraf dist",
|
|
79
|
+
"clean": "rimraf dist && rimraf build",
|
|
80
80
|
"tsc:watch:mjs": "yarn pnpify tsc -w -p tsconfig.json",
|
|
81
81
|
"tsc:watch:cjs": "yarn pnpify tsc -w -p tsconfig-cjs.json",
|
|
82
|
-
"compile": "yarn pnpify tsc -p tsconfig.json && yarn pnpify tsc -p tsconfig-cjs.json",
|
|
83
|
-
"build": "yarn clean && yarn compile
|
|
82
|
+
"compile": "yarn pnpify tsc -p tsconfig.json && yarn pnpify tsc -p tsconfig-cjs.json && yarn pnpify tsc -p tsconfig-rn.json",
|
|
83
|
+
"build": "yarn clean && yarn compile && ./fixup.sh && node SetupPackage.cjs",
|
|
84
84
|
"schema": "rover graph introspect http://localhost:8080/graphql > schema.graphql",
|
|
85
85
|
"schema:local": "node schema.cjs",
|
|
86
86
|
"postversion": "git push && git push --tags"
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@babel/preset-typescript": "^7.16.7",
|
|
108
108
|
"@graphql-tools/load-files": "^6.5.3",
|
|
109
109
|
"@graphql-tools/merge": "^8.2.2",
|
|
110
|
-
"@types/jest": "^27.4.
|
|
110
|
+
"@types/jest": "^27.4.1",
|
|
111
111
|
"@types/node": "^17.0.10",
|
|
112
112
|
"@yarnpkg/pnpify": "^3.1.1-rc.11",
|
|
113
113
|
"babel-jest": "^27.4.6",
|
|
@@ -118,8 +118,10 @@
|
|
|
118
118
|
"jest": "^27.4.7",
|
|
119
119
|
"prettier": "^2.5.1",
|
|
120
120
|
"prettier-plugin-organize-imports": "^2.3.4",
|
|
121
|
+
"react": "^18.0.0",
|
|
121
122
|
"renamer": "^4.0.0",
|
|
122
123
|
"rimraf": "^3.0.2",
|
|
124
|
+
"source-map-support": "^0.5.21",
|
|
123
125
|
"ts-node": "^10.4.0",
|
|
124
126
|
"typescript": "^4.5.4"
|
|
125
127
|
},
|