@quesmed/types-rn 2.6.2 → 2.6.4
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
package/models/Video.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -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 {
|
|
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
|
+
`;
|