@quesmed/types 2.4.20 → 2.4.22
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/dist/cjs/resolvers/query/restricted/qBank.d.ts +1 -0
- package/dist/cjs/resolvers/query/restricted/qBank.js +101 -1
- package/dist/cjs/resolvers/query/restricted/topics.js +0 -5
- package/dist/cjs/resolvers/query/restricted/user.d.ts +3 -0
- package/dist/cjs/resolvers/query/restricted/user.js +28 -1
- package/dist/mjs/resolvers/query/restricted/qBank.d.ts +1 -0
- package/dist/mjs/resolvers/query/restricted/qBank.js +100 -0
- package/dist/mjs/resolvers/query/restricted/topics.js +0 -5
- package/dist/mjs/resolvers/query/restricted/user.d.ts +3 -0
- package/dist/mjs/resolvers/query/restricted/user.js +27 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DASHBOARD_QBANK = void 0;
|
|
3
|
+
exports.DASHBOARD = exports.DASHBOARD_QBANK = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const fragments_1 = require("../../fragments");
|
|
6
6
|
exports.DASHBOARD_QBANK = (0, client_1.gql) `
|
|
@@ -122,3 +122,103 @@ exports.DASHBOARD_QBANK = (0, client_1.gql) `
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
`;
|
|
125
|
+
exports.DASHBOARD = (0, client_1.gql) `
|
|
126
|
+
${fragments_1.PICTURE_FIELDS}
|
|
127
|
+
query Dashboard($filter: MarksheetFilterInput!) {
|
|
128
|
+
restricted {
|
|
129
|
+
latestPastMarksheetId
|
|
130
|
+
latestAgoraId
|
|
131
|
+
user {
|
|
132
|
+
id
|
|
133
|
+
examDate
|
|
134
|
+
completedQuestionsCount
|
|
135
|
+
completedCorrectQuestionsCount
|
|
136
|
+
completedIncorrectQuestionsCount
|
|
137
|
+
completedCards {
|
|
138
|
+
id
|
|
139
|
+
createdAt
|
|
140
|
+
updatedAt
|
|
141
|
+
concept {
|
|
142
|
+
id
|
|
143
|
+
name
|
|
144
|
+
}
|
|
145
|
+
lastSeen
|
|
146
|
+
reviewDate
|
|
147
|
+
score
|
|
148
|
+
iteration
|
|
149
|
+
optimalFactor
|
|
150
|
+
cardId
|
|
151
|
+
card {
|
|
152
|
+
id
|
|
153
|
+
conceptId
|
|
154
|
+
concept {
|
|
155
|
+
id
|
|
156
|
+
name
|
|
157
|
+
}
|
|
158
|
+
topic {
|
|
159
|
+
id
|
|
160
|
+
name
|
|
161
|
+
}
|
|
162
|
+
question
|
|
163
|
+
explanation
|
|
164
|
+
pictures {
|
|
165
|
+
...PictureFields
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
completedCardsCount
|
|
170
|
+
completedGreenCardsCount
|
|
171
|
+
completedYellowCardsCount
|
|
172
|
+
completedRedCardsCount
|
|
173
|
+
marksheetsCount
|
|
174
|
+
dailyProgress {
|
|
175
|
+
date
|
|
176
|
+
dateString
|
|
177
|
+
intensity
|
|
178
|
+
totalCorrect
|
|
179
|
+
totalCount
|
|
180
|
+
}
|
|
181
|
+
monthlyProgress {
|
|
182
|
+
marksheetCount
|
|
183
|
+
questionsCount
|
|
184
|
+
daysInCurrentStreak
|
|
185
|
+
daysInLongestStreak
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
totalQuestions
|
|
189
|
+
totalCards
|
|
190
|
+
marksheets(filter: $filter) {
|
|
191
|
+
results {
|
|
192
|
+
id
|
|
193
|
+
topicNames
|
|
194
|
+
correct
|
|
195
|
+
incorrect
|
|
196
|
+
totalQuestions
|
|
197
|
+
isTestMarksheet
|
|
198
|
+
}
|
|
199
|
+
total
|
|
200
|
+
}
|
|
201
|
+
topics(filter: 0) {
|
|
202
|
+
id
|
|
203
|
+
name
|
|
204
|
+
totalQuestions
|
|
205
|
+
correctQuestions
|
|
206
|
+
incorrectQuestions
|
|
207
|
+
totalCards
|
|
208
|
+
greenCards
|
|
209
|
+
yellowCards
|
|
210
|
+
redCards
|
|
211
|
+
dailyFeedCards
|
|
212
|
+
}
|
|
213
|
+
universityLeaderboard(limit: 3) {
|
|
214
|
+
updatedAt
|
|
215
|
+
month {
|
|
216
|
+
id
|
|
217
|
+
name
|
|
218
|
+
speciality
|
|
219
|
+
rank
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
`;
|
|
@@ -5,3 +5,6 @@ export declare type IUserData = RestrictedData<graphqlNormalize & IUser, 'user'>
|
|
|
5
5
|
export declare const USER: import("@apollo/client").DocumentNode;
|
|
6
6
|
export declare const REFERRALS: import("@apollo/client").DocumentNode;
|
|
7
7
|
export declare const USER_COMPLETED_DATA: import("@apollo/client").DocumentNode;
|
|
8
|
+
export declare type IDailyFeedVar = null;
|
|
9
|
+
export declare type IDailyFeedData = RestrictedData<graphqlNormalize & Pick<IUser, 'dailyFeed'>, 'user'>;
|
|
10
|
+
export declare const DAILY_FEED: import("@apollo/client").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.USER_COMPLETED_DATA = exports.REFERRALS = exports.USER = void 0;
|
|
3
|
+
exports.DAILY_FEED = exports.USER_COMPLETED_DATA = exports.REFERRALS = 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");
|
|
@@ -67,3 +67,30 @@ exports.USER_COMPLETED_DATA = (0, client_1.gql) `
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
`;
|
|
70
|
+
exports.DAILY_FEED = (0, client_1.gql) `
|
|
71
|
+
query DailyFeed {
|
|
72
|
+
restricted {
|
|
73
|
+
user {
|
|
74
|
+
dailyFeed {
|
|
75
|
+
topics {
|
|
76
|
+
id
|
|
77
|
+
name
|
|
78
|
+
typeId
|
|
79
|
+
totalCards
|
|
80
|
+
totalQuestions
|
|
81
|
+
dailyFeedCards
|
|
82
|
+
}
|
|
83
|
+
id
|
|
84
|
+
marks {
|
|
85
|
+
id
|
|
86
|
+
score
|
|
87
|
+
}
|
|
88
|
+
redCards
|
|
89
|
+
yellowCards
|
|
90
|
+
greenCards
|
|
91
|
+
dailyTask
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
`;
|
|
@@ -119,3 +119,103 @@ export const DASHBOARD_QBANK = gql `
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
`;
|
|
122
|
+
export const DASHBOARD = gql `
|
|
123
|
+
${PICTURE_FIELDS}
|
|
124
|
+
query Dashboard($filter: MarksheetFilterInput!) {
|
|
125
|
+
restricted {
|
|
126
|
+
latestPastMarksheetId
|
|
127
|
+
latestAgoraId
|
|
128
|
+
user {
|
|
129
|
+
id
|
|
130
|
+
examDate
|
|
131
|
+
completedQuestionsCount
|
|
132
|
+
completedCorrectQuestionsCount
|
|
133
|
+
completedIncorrectQuestionsCount
|
|
134
|
+
completedCards {
|
|
135
|
+
id
|
|
136
|
+
createdAt
|
|
137
|
+
updatedAt
|
|
138
|
+
concept {
|
|
139
|
+
id
|
|
140
|
+
name
|
|
141
|
+
}
|
|
142
|
+
lastSeen
|
|
143
|
+
reviewDate
|
|
144
|
+
score
|
|
145
|
+
iteration
|
|
146
|
+
optimalFactor
|
|
147
|
+
cardId
|
|
148
|
+
card {
|
|
149
|
+
id
|
|
150
|
+
conceptId
|
|
151
|
+
concept {
|
|
152
|
+
id
|
|
153
|
+
name
|
|
154
|
+
}
|
|
155
|
+
topic {
|
|
156
|
+
id
|
|
157
|
+
name
|
|
158
|
+
}
|
|
159
|
+
question
|
|
160
|
+
explanation
|
|
161
|
+
pictures {
|
|
162
|
+
...PictureFields
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
completedCardsCount
|
|
167
|
+
completedGreenCardsCount
|
|
168
|
+
completedYellowCardsCount
|
|
169
|
+
completedRedCardsCount
|
|
170
|
+
marksheetsCount
|
|
171
|
+
dailyProgress {
|
|
172
|
+
date
|
|
173
|
+
dateString
|
|
174
|
+
intensity
|
|
175
|
+
totalCorrect
|
|
176
|
+
totalCount
|
|
177
|
+
}
|
|
178
|
+
monthlyProgress {
|
|
179
|
+
marksheetCount
|
|
180
|
+
questionsCount
|
|
181
|
+
daysInCurrentStreak
|
|
182
|
+
daysInLongestStreak
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
totalQuestions
|
|
186
|
+
totalCards
|
|
187
|
+
marksheets(filter: $filter) {
|
|
188
|
+
results {
|
|
189
|
+
id
|
|
190
|
+
topicNames
|
|
191
|
+
correct
|
|
192
|
+
incorrect
|
|
193
|
+
totalQuestions
|
|
194
|
+
isTestMarksheet
|
|
195
|
+
}
|
|
196
|
+
total
|
|
197
|
+
}
|
|
198
|
+
topics(filter: 0) {
|
|
199
|
+
id
|
|
200
|
+
name
|
|
201
|
+
totalQuestions
|
|
202
|
+
correctQuestions
|
|
203
|
+
incorrectQuestions
|
|
204
|
+
totalCards
|
|
205
|
+
greenCards
|
|
206
|
+
yellowCards
|
|
207
|
+
redCards
|
|
208
|
+
dailyFeedCards
|
|
209
|
+
}
|
|
210
|
+
universityLeaderboard(limit: 3) {
|
|
211
|
+
updatedAt
|
|
212
|
+
month {
|
|
213
|
+
id
|
|
214
|
+
name
|
|
215
|
+
speciality
|
|
216
|
+
rank
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
`;
|
|
@@ -5,3 +5,6 @@ export declare type IUserData = RestrictedData<graphqlNormalize & IUser, 'user'>
|
|
|
5
5
|
export declare const USER: import("@apollo/client").DocumentNode;
|
|
6
6
|
export declare const REFERRALS: import("@apollo/client").DocumentNode;
|
|
7
7
|
export declare const USER_COMPLETED_DATA: import("@apollo/client").DocumentNode;
|
|
8
|
+
export declare type IDailyFeedVar = null;
|
|
9
|
+
export declare type IDailyFeedData = RestrictedData<graphqlNormalize & Pick<IUser, 'dailyFeed'>, 'user'>;
|
|
10
|
+
export declare const DAILY_FEED: import("@apollo/client").DocumentNode;
|
|
@@ -64,3 +64,30 @@ export const USER_COMPLETED_DATA = gql `
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
`;
|
|
67
|
+
export const DAILY_FEED = gql `
|
|
68
|
+
query DailyFeed {
|
|
69
|
+
restricted {
|
|
70
|
+
user {
|
|
71
|
+
dailyFeed {
|
|
72
|
+
topics {
|
|
73
|
+
id
|
|
74
|
+
name
|
|
75
|
+
typeId
|
|
76
|
+
totalCards
|
|
77
|
+
totalQuestions
|
|
78
|
+
dailyFeedCards
|
|
79
|
+
}
|
|
80
|
+
id
|
|
81
|
+
marks {
|
|
82
|
+
id
|
|
83
|
+
score
|
|
84
|
+
}
|
|
85
|
+
redCards
|
|
86
|
+
yellowCards
|
|
87
|
+
greenCards
|
|
88
|
+
dailyTask
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
`;
|