@quesmed/types-rn 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.
package/models/User.d.ts CHANGED
@@ -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
+ }
package/models/Video.d.ts CHANGED
@@ -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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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
+ `;