@quesmed/types 2.0.4 → 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.
@@ -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;
@@ -11,5 +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
- export declare type IDailyFeedData = RestrictedData<graphqlNormalize & ITodo, 'dailyFeed'>;
@@ -1,13 +1,7 @@
1
- import { Id, IVideo } from '../../models';
1
+ import { IVideo } from '../../models';
2
2
  import { graphqlNormalize, RootData } from '../types';
3
- export interface IVideosVar {
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;
@@ -11,5 +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
- export declare type IDailyFeedData = RestrictedData<graphqlNormalize & ITodo, 'dailyFeed'>;
@@ -1,13 +1,7 @@
1
- import { Id, IVideo } from '../../models';
1
+ import { IVideo } from '../../models';
2
2
  import { graphqlNormalize, RootData } from '../types';
3
- export interface IVideosVar {
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.4",
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 && ./fixup.sh",
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"