@quesmed/types-rn 2.6.125 → 2.6.128
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/MockTest.d.ts +2 -1
- package/models/MockTest.js +1 -0
- package/package.json +1 -1
- package/resolvers/constants.js +1 -0
- package/resolvers/query/admin/dashboard.d.ts +28 -0
- package/resolvers/query/admin/dashboard.js +53 -1
- package/resolvers/query/restricted/marksheet.d.ts +1 -0
- package/resolvers/query/restricted/marksheet.js +2 -0
- package/resolvers/query/restricted/ukmlaTopics.d.ts +1 -0
- package/resolvers/query/restricted/ukmlaTopics.js +2 -0
package/models/MockTest.d.ts
CHANGED
package/models/MockTest.js
CHANGED
|
@@ -11,4 +11,5 @@ var EMockTestType;
|
|
|
11
11
|
EMockTestType[EMockTestType["ANATOMY_SPOTTER"] = 5] = "ANATOMY_SPOTTER";
|
|
12
12
|
EMockTestType[EMockTestType["UKMLA"] = 6] = "UKMLA";
|
|
13
13
|
EMockTestType[EMockTestType["MRCP"] = 7] = "MRCP";
|
|
14
|
+
EMockTestType[EMockTestType["UKMLA_FULL"] = 8] = "UKMLA_FULL";
|
|
14
15
|
})(EMockTestType = exports.EMockTestType || (exports.EMockTestType = {}));
|
package/package.json
CHANGED
package/resolvers/constants.js
CHANGED
|
@@ -16,6 +16,7 @@ const ALL_MOCKS_WITHOUT_ANATOMY = [
|
|
|
16
16
|
models_1.EMockTestType.MISCELLANEOUS,
|
|
17
17
|
models_1.EMockTestType.UNIVERSITY_SPECIFIC,
|
|
18
18
|
models_1.EMockTestType.UKMLA,
|
|
19
|
+
models_1.EMockTestType.UKMLA_FULL,
|
|
19
20
|
];
|
|
20
21
|
const ALL_MOCKS = [models_1.EMockTestType.ANATOMY_SPOTTER, ...ALL_MOCKS_WITHOUT_ANATOMY];
|
|
21
22
|
exports.productMapping = {
|
|
@@ -107,6 +107,34 @@ export type IUserFeedbackVar = {
|
|
|
107
107
|
description: boolean | null;
|
|
108
108
|
};
|
|
109
109
|
export type IUserFeedbackData = AdminData<IUserFeedback, 'userFeedbacks'>;
|
|
110
|
+
export declare const USER_FEEDBACK_GRAPH: import("@apollo/client").DocumentNode;
|
|
111
|
+
export interface ITimeSeriesData {
|
|
112
|
+
month: string;
|
|
113
|
+
count: number;
|
|
114
|
+
value: number;
|
|
115
|
+
stats: ITimeSeriesProductStats[];
|
|
116
|
+
}
|
|
117
|
+
export interface ITimeSeriesProductStats {
|
|
118
|
+
count: number;
|
|
119
|
+
value: number;
|
|
120
|
+
product: IEntitlement;
|
|
121
|
+
}
|
|
122
|
+
export type IUserFeedbackGraphVar = {
|
|
123
|
+
year: number | null;
|
|
124
|
+
productId: EProductType;
|
|
125
|
+
force: boolean;
|
|
126
|
+
};
|
|
127
|
+
export type IUserFeedbackGraphData = AdminData<Array<ITimeSeriesData>, 'userFeedbacksGraph'>;
|
|
128
|
+
export declare const EARNINGS_GRAPH: import("@apollo/client").DocumentNode;
|
|
129
|
+
export type IEarningsGraphVar = {
|
|
130
|
+
year: number | null;
|
|
131
|
+
productId: EProductType;
|
|
132
|
+
subType: ESubType;
|
|
133
|
+
source: ESubSource;
|
|
134
|
+
universityId: number | null;
|
|
135
|
+
force: boolean;
|
|
136
|
+
};
|
|
137
|
+
export type IEarningsGraphData = AdminData<Array<ITimeSeriesData>, 'earningsGraph'>;
|
|
110
138
|
export declare const QUESTION_STATS: import("@apollo/client").DocumentNode;
|
|
111
139
|
export interface IStats {
|
|
112
140
|
id: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DROPDOWN_OPTIONS = exports.USER_CANCELLATION_REASONS = exports.QUESTION_STATS = exports.USER_FEEDBACKS = exports.USER_BREAKDOWN = exports.USER_STATUS = exports.ESubType = exports.EARNINGS = exports.IMPORT_STATS = void 0;
|
|
3
|
+
exports.DROPDOWN_OPTIONS = exports.USER_CANCELLATION_REASONS = exports.QUESTION_STATS = exports.EARNINGS_GRAPH = exports.USER_FEEDBACK_GRAPH = exports.USER_FEEDBACKS = exports.USER_BREAKDOWN = exports.USER_STATUS = exports.ESubType = exports.EARNINGS = exports.IMPORT_STATS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.IMPORT_STATS = (0, client_1.gql) `
|
|
6
6
|
query ImportStats($from: Date, $to: Date, $force: Boolean) {
|
|
@@ -155,6 +155,58 @@ exports.USER_FEEDBACKS = (0, client_1.gql) `
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
`;
|
|
158
|
+
exports.USER_FEEDBACK_GRAPH = (0, client_1.gql) `
|
|
159
|
+
query UserFeedbackGraph($productId: Int, $year: Int) {
|
|
160
|
+
admin {
|
|
161
|
+
userFeedbacksGraph(productId: $productId, year: $year) {
|
|
162
|
+
month
|
|
163
|
+
count
|
|
164
|
+
value
|
|
165
|
+
stats {
|
|
166
|
+
count
|
|
167
|
+
value
|
|
168
|
+
product {
|
|
169
|
+
id
|
|
170
|
+
name
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
`;
|
|
177
|
+
exports.EARNINGS_GRAPH = (0, client_1.gql) `
|
|
178
|
+
query EarningsGraph(
|
|
179
|
+
$productId: Int
|
|
180
|
+
$year: Int
|
|
181
|
+
$subType: Int
|
|
182
|
+
$source: Int
|
|
183
|
+
$universityId: Int
|
|
184
|
+
$force: Boolean
|
|
185
|
+
) {
|
|
186
|
+
admin {
|
|
187
|
+
earningsGraph(
|
|
188
|
+
productId: $productId
|
|
189
|
+
year: $year
|
|
190
|
+
subType: $subType
|
|
191
|
+
source: $source
|
|
192
|
+
universityId: $universityId
|
|
193
|
+
force: $force
|
|
194
|
+
) {
|
|
195
|
+
month
|
|
196
|
+
count
|
|
197
|
+
value
|
|
198
|
+
stats {
|
|
199
|
+
count
|
|
200
|
+
value
|
|
201
|
+
product {
|
|
202
|
+
id
|
|
203
|
+
name
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
`;
|
|
158
210
|
exports.QUESTION_STATS = (0, client_1.gql) `
|
|
159
211
|
query QuestionStats(
|
|
160
212
|
$productId: Int
|
|
@@ -116,6 +116,7 @@ export interface IPreBuildMarksheetVar {
|
|
|
116
116
|
source: string;
|
|
117
117
|
difficulty?: EDifficultyType[];
|
|
118
118
|
entitlementId?: EEntitlementType;
|
|
119
|
+
useAI?: boolean;
|
|
119
120
|
}
|
|
120
121
|
export type IPreBuildMarksheetData = RestrictedData<graphqlNormalize & IPreBuildMarksheet, 'preBuildMarksheet'>;
|
|
121
122
|
export declare const PRE_BUILD_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
@@ -176,6 +176,7 @@ exports.PRE_BUILD_MARKSHEET = (0, client_1.gql) `
|
|
|
176
176
|
$marksheetId: Int
|
|
177
177
|
$difficulty: [Int!]
|
|
178
178
|
$entitlementId: Int
|
|
179
|
+
$useAI: Boolean
|
|
179
180
|
) {
|
|
180
181
|
restricted {
|
|
181
182
|
preBuildMarksheet(
|
|
@@ -186,6 +187,7 @@ exports.PRE_BUILD_MARKSHEET = (0, client_1.gql) `
|
|
|
186
187
|
marksheetId: $marksheetId
|
|
187
188
|
difficulty: $difficulty
|
|
188
189
|
entitlementId: $entitlementId
|
|
190
|
+
useAI: $useAI
|
|
189
191
|
) {
|
|
190
192
|
unseen
|
|
191
193
|
seenCorrect
|
|
@@ -20,6 +20,7 @@ export interface IPreBuildUkmlaMarksheetVar {
|
|
|
20
20
|
marksheetId?: Id;
|
|
21
21
|
source: string;
|
|
22
22
|
difficulty?: EDifficultyType[];
|
|
23
|
+
useAI?: boolean;
|
|
23
24
|
}
|
|
24
25
|
export type IPreBuildUkmlaMarksheetData = RestrictedData<graphqlNormalize & IPreBuildMarksheet, 'preBuildUkmlaMarksheet'>;
|
|
25
26
|
export declare const PRE_BUILD_UKMLA_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
@@ -96,6 +96,7 @@ exports.PRE_BUILD_UKMLA_MARKSHEET = (0, client_1.gql) `
|
|
|
96
96
|
$search: String
|
|
97
97
|
$marksheetId: Int
|
|
98
98
|
$difficulty: [Int!]
|
|
99
|
+
$useAI: Boolean
|
|
99
100
|
) {
|
|
100
101
|
restricted {
|
|
101
102
|
preBuildUkmlaMarksheet(
|
|
@@ -106,6 +107,7 @@ exports.PRE_BUILD_UKMLA_MARKSHEET = (0, client_1.gql) `
|
|
|
106
107
|
search: $search
|
|
107
108
|
marksheetId: $marksheetId
|
|
108
109
|
difficulty: $difficulty
|
|
110
|
+
useAI: $useAI
|
|
109
111
|
) {
|
|
110
112
|
unseen
|
|
111
113
|
seenCorrect
|