@quesmed/types 2.6.2 → 2.6.3

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.
@@ -234,3 +234,16 @@ export interface IUserStationStatus {
234
234
  user: IUser;
235
235
  station: IOsceStation;
236
236
  }
237
+ /**
238
+ * IUserStats
239
+ * ```ts
240
+ * series: [x, y][]
241
+ * ```
242
+ */
243
+ export interface IUserStats {
244
+ userId: number;
245
+ score: number;
246
+ percentile: number;
247
+ median: number;
248
+ series: [number, number][];
249
+ }
@@ -21,6 +21,7 @@ export interface IVideo {
21
21
  thumbnail: string;
22
22
  views: number;
23
23
  live: boolean;
24
+ demo: boolean;
24
25
  description: string;
25
26
  duration: number;
26
27
  concepts: IConcept[];
@@ -59,6 +59,7 @@ exports.OSCE_STATION_FIELDS = (0, client_1.gql) `
59
59
  }
60
60
  videos {
61
61
  id
62
+ demo
62
63
  title
63
64
  status
64
65
  museId
@@ -46,6 +46,7 @@ exports.QBANK_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
46
46
  topicId
47
47
  videos {
48
48
  id
49
+ demo
49
50
  status
50
51
  title
51
52
  museId
@@ -105,6 +106,7 @@ exports.PUBLIC_QBANK_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
105
106
  topicId
106
107
  videos {
107
108
  id
109
+ demo
108
110
  status
109
111
  title
110
112
  museId
@@ -161,6 +163,7 @@ query PaceKnowledgeLibrary($typeId: [Int]) {
161
163
  topicId
162
164
  videos {
163
165
  id
166
+ demo
164
167
  status
165
168
  title
166
169
  museId
@@ -1,5 +1,5 @@
1
- import { IUser } from '../../../models';
2
- import { graphqlNormalize, RestrictedData } from '../../types';
1
+ import { IClassYear, IUser, IUserStats } from '../../../models';
2
+ import { RestrictedData, graphqlNormalize } from '../../types';
3
3
  export type IUserVar = {
4
4
  active?: boolean;
5
5
  };
@@ -11,3 +11,9 @@ export declare const USER_COMPLETED_DATA: import("@apollo/client").DocumentNode;
11
11
  export type IDailyFeedVar = null;
12
12
  export type IDailyFeedData = RestrictedData<graphqlNormalize & Pick<IUser, 'dailyFeed'>, 'user'>;
13
13
  export declare const DAILY_FEED: import("@apollo/client").DocumentNode;
14
+ export type IUserStatsVar = {
15
+ classYear?: IClassYear;
16
+ universityId?: number;
17
+ };
18
+ export type IUserStatsData = RestrictedData<graphqlNormalize & IUserStats, 'userStats'>;
19
+ export declare const USER_STATS: import("@apollo/client").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DAILY_FEED = exports.USER_COMPLETED_DATA = exports.REFERRALS = exports.GET_USER_SUBSCRIPTIONS = exports.USER = void 0;
3
+ exports.USER_STATS = exports.DAILY_FEED = exports.USER_COMPLETED_DATA = exports.REFERRALS = exports.GET_USER_SUBSCRIPTIONS = exports.USER = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const fragments_1 = require("../../fragments");
6
6
  const user_1 = require("../../fragments/user");
@@ -115,3 +115,16 @@ exports.DAILY_FEED = (0, client_1.gql) `
115
115
  }
116
116
  }
117
117
  `;
118
+ exports.USER_STATS = (0, client_1.gql) `
119
+ query UserStats($classYear: String, $universityId: Int) {
120
+ restricted {
121
+ userStats(classYear: $classYear, universityId: $universityId) {
122
+ userId
123
+ score
124
+ percentile
125
+ median
126
+ series
127
+ }
128
+ }
129
+ }
130
+ `;
@@ -234,3 +234,16 @@ export interface IUserStationStatus {
234
234
  user: IUser;
235
235
  station: IOsceStation;
236
236
  }
237
+ /**
238
+ * IUserStats
239
+ * ```ts
240
+ * series: [x, y][]
241
+ * ```
242
+ */
243
+ export interface IUserStats {
244
+ userId: number;
245
+ score: number;
246
+ percentile: number;
247
+ median: number;
248
+ series: [number, number][];
249
+ }
@@ -21,6 +21,7 @@ export interface IVideo {
21
21
  thumbnail: string;
22
22
  views: number;
23
23
  live: boolean;
24
+ demo: boolean;
24
25
  description: string;
25
26
  duration: number;
26
27
  concepts: IConcept[];
@@ -56,6 +56,7 @@ export const OSCE_STATION_FIELDS = gql `
56
56
  }
57
57
  videos {
58
58
  id
59
+ demo
59
60
  title
60
61
  status
61
62
  museId
@@ -43,6 +43,7 @@ export const QBANK_KNOWLEDGE_VIDEO_LIBRARY = gql `
43
43
  topicId
44
44
  videos {
45
45
  id
46
+ demo
46
47
  status
47
48
  title
48
49
  museId
@@ -102,6 +103,7 @@ export const PUBLIC_QBANK_KNOWLEDGE_LIBRARY = gql `
102
103
  topicId
103
104
  videos {
104
105
  id
106
+ demo
105
107
  status
106
108
  title
107
109
  museId
@@ -158,6 +160,7 @@ query PaceKnowledgeLibrary($typeId: [Int]) {
158
160
  topicId
159
161
  videos {
160
162
  id
163
+ demo
161
164
  status
162
165
  title
163
166
  museId
@@ -1,5 +1,5 @@
1
- import { IUser } from '../../../models';
2
- import { graphqlNormalize, RestrictedData } from '../../types';
1
+ import { IClassYear, IUser, IUserStats } from '../../../models';
2
+ import { RestrictedData, graphqlNormalize } from '../../types';
3
3
  export type IUserVar = {
4
4
  active?: boolean;
5
5
  };
@@ -11,3 +11,9 @@ export declare const USER_COMPLETED_DATA: import("@apollo/client").DocumentNode;
11
11
  export type IDailyFeedVar = null;
12
12
  export type IDailyFeedData = RestrictedData<graphqlNormalize & Pick<IUser, 'dailyFeed'>, 'user'>;
13
13
  export declare const DAILY_FEED: import("@apollo/client").DocumentNode;
14
+ export type IUserStatsVar = {
15
+ classYear?: IClassYear;
16
+ universityId?: number;
17
+ };
18
+ export type IUserStatsData = RestrictedData<graphqlNormalize & IUserStats, 'userStats'>;
19
+ export declare const USER_STATS: import("@apollo/client").DocumentNode;
@@ -112,3 +112,16 @@ export const DAILY_FEED = gql `
112
112
  }
113
113
  }
114
114
  `;
115
+ export const USER_STATS = gql `
116
+ query UserStats($classYear: String, $universityId: Int) {
117
+ restricted {
118
+ userStats(classYear: $classYear, universityId: $universityId) {
119
+ userId
120
+ score
121
+ percentile
122
+ median
123
+ series
124
+ }
125
+ }
126
+ }
127
+ `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",