@quesmed/types-rn 2.6.119 → 2.6.120

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
@@ -92,6 +92,9 @@ export interface IDailyProgressData {
92
92
  totalCount: number;
93
93
  totalCorrect: number;
94
94
  intensity: EPracticeIntensity;
95
+ score: number;
96
+ totalIncorrect: number;
97
+ totalAttempted: number;
95
98
  }
96
99
  export interface IUserProgressData {
97
100
  marksheetCount: number;
@@ -287,6 +290,13 @@ export interface IUserStats {
287
290
  median: number;
288
291
  series: [x: number, y: number][];
289
292
  }
293
+ export interface IUserActivity {
294
+ dailyProgress: IDailyProgressData;
295
+ avgScore: number;
296
+ avgAttempted: number;
297
+ currentStreak: number;
298
+ longestStreak: number;
299
+ }
290
300
  export interface IQuestionLearningPoint {
291
301
  id: Id;
292
302
  createdAt: number | Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.119",
3
+ "version": "2.6.120",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -1,4 +1,4 @@
1
- import { IClassYear, IUser, IUserStats } from '../../../models';
1
+ import { IClassYear, IUser, IUserActivity, IUserStats } from '../../../models';
2
2
  import { RestrictedData, graphqlNormalize } from '../../types';
3
3
  export type IUserVar = {
4
4
  active?: boolean;
@@ -17,3 +17,8 @@ export type IUserStatsVar = {
17
17
  };
18
18
  export type IUserStatsData = RestrictedData<graphqlNormalize & IUserStats, 'userStats'>;
19
19
  export declare const USER_STATS: import("@apollo/client").DocumentNode;
20
+ export type IUserActivityVar = {
21
+ days?: number;
22
+ };
23
+ export type IUserActivityData = RestrictedData<graphqlNormalize & IUserActivity, 'userActivity'>;
24
+ export declare const USER_ACTIVITY: import("@apollo/client").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.USER_STATS = exports.DAILY_FEED = exports.USER_COMPLETED_DATA = exports.REFERRALS = exports.GET_USER_SUBSCRIPTIONS = exports.USER = void 0;
3
+ exports.USER_ACTIVITY = 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");
@@ -130,3 +130,25 @@ exports.USER_STATS = (0, client_1.gql) `
130
130
  }
131
131
  }
132
132
  `;
133
+ exports.USER_ACTIVITY = (0, client_1.gql) `
134
+ query UserActivity($days: Int) {
135
+ restricted {
136
+ userActivity(days: $days) {
137
+ dailyProgress {
138
+ date
139
+ dateString
140
+ totalCorrect
141
+ totalCount
142
+ totalIncorrect
143
+ totalAttempted
144
+ intensity
145
+ score
146
+ }
147
+ avgScore
148
+ avgAttempted
149
+ currentStreak
150
+ longestStreak
151
+ }
152
+ }
153
+ }
154
+ `;