@quesmed/types 2.0.2 → 2.0.5
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/query/restricted/todos.d.ts +0 -16
- package/dist/cjs/resolvers/query/video.d.ts +2 -8
- package/dist/mjs/models/User.d.ts +2 -0
- package/dist/mjs/resolvers/query/restricted/todos.d.ts +0 -16
- package/dist/mjs/resolvers/query/video.d.ts +2 -8
- package/package.json +4 -4
|
@@ -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;
|
|
@@ -5,25 +5,9 @@ export interface IPreBuildTodoVar {
|
|
|
5
5
|
conceptIds: number[];
|
|
6
6
|
search: string;
|
|
7
7
|
source: string;
|
|
8
|
-
filterOlderCard: boolean;
|
|
9
8
|
}
|
|
10
9
|
export declare type IPreBuildTodoData = RestrictedData<graphqlNormalize & IPreBuildTodo, 'preBuildTodo'>;
|
|
11
10
|
export interface ITodoVar {
|
|
12
11
|
id: Id;
|
|
13
12
|
}
|
|
14
13
|
export declare type ITodoData = RestrictedData<graphqlNormalize & ITodo, 'todo'>;
|
|
15
|
-
export declare type IDailyFeedVar = null;
|
|
16
|
-
interface IDailyFeedTopicInfo {
|
|
17
|
-
name: string;
|
|
18
|
-
topicQuestionCount: number;
|
|
19
|
-
}
|
|
20
|
-
export interface IDailyFeed {
|
|
21
|
-
topic: IDailyFeedTopicInfo[];
|
|
22
|
-
totalCard: number;
|
|
23
|
-
todoId: number;
|
|
24
|
-
learnCard: number;
|
|
25
|
-
confidentCard: number;
|
|
26
|
-
reviewCard: number;
|
|
27
|
-
}
|
|
28
|
-
export declare type IDailyFeedData = RestrictedData<graphqlNormalize & IDailyFeed, 'dailyFeed'>;
|
|
29
|
-
export {};
|
|
@@ -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;
|
|
@@ -5,25 +5,9 @@ export interface IPreBuildTodoVar {
|
|
|
5
5
|
conceptIds: number[];
|
|
6
6
|
search: string;
|
|
7
7
|
source: string;
|
|
8
|
-
filterOlderCard: boolean;
|
|
9
8
|
}
|
|
10
9
|
export declare type IPreBuildTodoData = RestrictedData<graphqlNormalize & IPreBuildTodo, 'preBuildTodo'>;
|
|
11
10
|
export interface ITodoVar {
|
|
12
11
|
id: Id;
|
|
13
12
|
}
|
|
14
13
|
export declare type ITodoData = RestrictedData<graphqlNormalize & ITodo, 'todo'>;
|
|
15
|
-
export declare type IDailyFeedVar = null;
|
|
16
|
-
interface IDailyFeedTopicInfo {
|
|
17
|
-
name: string;
|
|
18
|
-
topicQuestionCount: number;
|
|
19
|
-
}
|
|
20
|
-
export interface IDailyFeed {
|
|
21
|
-
topic: IDailyFeedTopicInfo[];
|
|
22
|
-
totalCard: number;
|
|
23
|
-
todoId: number;
|
|
24
|
-
learnCard: number;
|
|
25
|
-
confidentCard: number;
|
|
26
|
-
reviewCard: number;
|
|
27
|
-
}
|
|
28
|
-
export declare type IDailyFeedData = RestrictedData<graphqlNormalize & IDailyFeed, 'dailyFeed'>;
|
|
29
|
-
export {};
|
|
@@ -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.5",
|
|
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"
|