@quesmed/types-rn 2.6.115 → 2.6.117
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/package.json
CHANGED
|
@@ -10,6 +10,8 @@ export interface IImportStats {
|
|
|
10
10
|
}
|
|
11
11
|
export type IImportStatsVar = {
|
|
12
12
|
force: boolean;
|
|
13
|
+
from: Date | number | null;
|
|
14
|
+
to: Date | number | null;
|
|
13
15
|
};
|
|
14
16
|
export type IImportStatsData = AdminData<IImportStats, 'importStats'>;
|
|
15
17
|
export declare const EARNINGS: import("@apollo/client").DocumentNode;
|
|
@@ -20,11 +22,17 @@ export interface IRevenue {
|
|
|
20
22
|
count: number;
|
|
21
23
|
total: number;
|
|
22
24
|
}
|
|
25
|
+
export declare enum ESubType {
|
|
26
|
+
ALL = 0,
|
|
27
|
+
NEW = 1,
|
|
28
|
+
OLD = 2
|
|
29
|
+
}
|
|
23
30
|
export type IEarningsVar = {
|
|
24
31
|
duration: EProductDuration;
|
|
25
32
|
from: Date | number | null;
|
|
26
33
|
to: Date | number | null;
|
|
27
34
|
force: boolean;
|
|
35
|
+
subType: ESubType;
|
|
28
36
|
};
|
|
29
37
|
export type IEarningsData = AdminData<IRevenue[], 'earnings'>;
|
|
30
38
|
export declare const USER_STATUS: import("@apollo/client").DocumentNode;
|
|
@@ -92,29 +100,22 @@ export type IUserFeedbackVar = {
|
|
|
92
100
|
};
|
|
93
101
|
export type IUserFeedbackData = AdminData<IUserFeedback, 'userFeedbacks'>;
|
|
94
102
|
export declare const QUESTION_STATS: import("@apollo/client").DocumentNode;
|
|
103
|
+
export interface IStats {
|
|
104
|
+
id: number;
|
|
105
|
+
name: string;
|
|
106
|
+
count: number;
|
|
107
|
+
voteScore: number;
|
|
108
|
+
firstAttemptScore: number;
|
|
109
|
+
score: number;
|
|
110
|
+
lastEditScore: number;
|
|
111
|
+
}
|
|
95
112
|
export interface IQuestionStats {
|
|
96
113
|
totalQuestions: number;
|
|
97
114
|
totalMockQuestions: number;
|
|
98
|
-
mockTests: Array<
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}>;
|
|
103
|
-
mockCategories: Array<{
|
|
104
|
-
id: number;
|
|
105
|
-
name: string;
|
|
106
|
-
count: number;
|
|
107
|
-
}>;
|
|
108
|
-
entitlements: Array<{
|
|
109
|
-
id: number;
|
|
110
|
-
name: string;
|
|
111
|
-
count: number;
|
|
112
|
-
}>;
|
|
113
|
-
difficulties: Array<{
|
|
114
|
-
id: number;
|
|
115
|
-
name: string;
|
|
116
|
-
count: number;
|
|
117
|
-
}>;
|
|
115
|
+
mockTests: Array<IStats>;
|
|
116
|
+
mockCategories: Array<IStats>;
|
|
117
|
+
entitlements: Array<IStats>;
|
|
118
|
+
difficulties: Array<IStats>;
|
|
118
119
|
}
|
|
119
120
|
export type IQuestionStatsVar = {
|
|
120
121
|
from: Date | number | null;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QUESTION_STATS = exports.USER_FEEDBACKS = exports.USER_BREAKDOWN = exports.USER_STATUS = exports.EARNINGS = exports.IMPORT_STATS = void 0;
|
|
3
|
+
exports.QUESTION_STATS = 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
|
-
query ImportStats($force: Boolean) {
|
|
6
|
+
query ImportStats($from: Date, $to: Date, $force: Boolean) {
|
|
7
7
|
admin {
|
|
8
|
-
importStats(force: $force) {
|
|
8
|
+
importStats(force: $force, from: $from, to: $to) {
|
|
9
9
|
totalBatches
|
|
10
10
|
mockTestBatches
|
|
11
11
|
questionCount
|
|
@@ -16,9 +16,21 @@ exports.IMPORT_STATS = (0, client_1.gql) `
|
|
|
16
16
|
}
|
|
17
17
|
`;
|
|
18
18
|
exports.EARNINGS = (0, client_1.gql) `
|
|
19
|
-
query Earnings(
|
|
19
|
+
query Earnings(
|
|
20
|
+
$subType: Int
|
|
21
|
+
$duration: Int
|
|
22
|
+
$from: Date
|
|
23
|
+
$to: Date
|
|
24
|
+
$force: Boolean!
|
|
25
|
+
) {
|
|
20
26
|
admin {
|
|
21
|
-
earnings(
|
|
27
|
+
earnings(
|
|
28
|
+
subType: $subType
|
|
29
|
+
duration: $duration
|
|
30
|
+
from: $from
|
|
31
|
+
to: $to
|
|
32
|
+
force: $force
|
|
33
|
+
) {
|
|
22
34
|
entitlement {
|
|
23
35
|
id
|
|
24
36
|
name
|
|
@@ -31,6 +43,12 @@ exports.EARNINGS = (0, client_1.gql) `
|
|
|
31
43
|
}
|
|
32
44
|
}
|
|
33
45
|
`;
|
|
46
|
+
var ESubType;
|
|
47
|
+
(function (ESubType) {
|
|
48
|
+
ESubType[ESubType["ALL"] = 0] = "ALL";
|
|
49
|
+
ESubType[ESubType["NEW"] = 1] = "NEW";
|
|
50
|
+
ESubType[ESubType["OLD"] = 2] = "OLD";
|
|
51
|
+
})(ESubType = exports.ESubType || (exports.ESubType = {}));
|
|
34
52
|
exports.USER_STATUS = (0, client_1.gql) `
|
|
35
53
|
query UserStatus($from: Date, $to: Date, $force: Boolean!) {
|
|
36
54
|
admin {
|
|
@@ -138,21 +156,37 @@ exports.QUESTION_STATS = (0, client_1.gql) `
|
|
|
138
156
|
id
|
|
139
157
|
name
|
|
140
158
|
count
|
|
159
|
+
voteScore
|
|
160
|
+
firstAttemptScore
|
|
161
|
+
score
|
|
162
|
+
lastEditScore
|
|
141
163
|
}
|
|
142
164
|
mockCategories {
|
|
143
165
|
id
|
|
144
166
|
name
|
|
145
167
|
count
|
|
168
|
+
voteScore
|
|
169
|
+
firstAttemptScore
|
|
170
|
+
score
|
|
171
|
+
lastEditScore
|
|
146
172
|
}
|
|
147
173
|
entitlements {
|
|
148
174
|
id
|
|
149
175
|
name
|
|
150
176
|
count
|
|
177
|
+
voteScore
|
|
178
|
+
firstAttemptScore
|
|
179
|
+
score
|
|
180
|
+
lastEditScore
|
|
151
181
|
}
|
|
152
182
|
difficulties {
|
|
153
183
|
id
|
|
154
184
|
name
|
|
155
185
|
count
|
|
186
|
+
voteScore
|
|
187
|
+
firstAttemptScore
|
|
188
|
+
score
|
|
189
|
+
lastEditScore
|
|
156
190
|
}
|
|
157
191
|
}
|
|
158
192
|
}
|