@quesmed/types 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.
|
@@ -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
|
}
|
|
@@ -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,8 +1,8 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
2
|
export const IMPORT_STATS = gql `
|
|
3
|
-
query ImportStats($force: Boolean) {
|
|
3
|
+
query ImportStats($from: Date, $to: Date, $force: Boolean) {
|
|
4
4
|
admin {
|
|
5
|
-
importStats(force: $force) {
|
|
5
|
+
importStats(force: $force, from: $from, to: $to) {
|
|
6
6
|
totalBatches
|
|
7
7
|
mockTestBatches
|
|
8
8
|
questionCount
|
|
@@ -13,9 +13,21 @@ export const IMPORT_STATS = gql `
|
|
|
13
13
|
}
|
|
14
14
|
`;
|
|
15
15
|
export const EARNINGS = gql `
|
|
16
|
-
query Earnings(
|
|
16
|
+
query Earnings(
|
|
17
|
+
$subType: Int
|
|
18
|
+
$duration: Int
|
|
19
|
+
$from: Date
|
|
20
|
+
$to: Date
|
|
21
|
+
$force: Boolean!
|
|
22
|
+
) {
|
|
17
23
|
admin {
|
|
18
|
-
earnings(
|
|
24
|
+
earnings(
|
|
25
|
+
subType: $subType
|
|
26
|
+
duration: $duration
|
|
27
|
+
from: $from
|
|
28
|
+
to: $to
|
|
29
|
+
force: $force
|
|
30
|
+
) {
|
|
19
31
|
entitlement {
|
|
20
32
|
id
|
|
21
33
|
name
|
|
@@ -28,6 +40,12 @@ export const EARNINGS = gql `
|
|
|
28
40
|
}
|
|
29
41
|
}
|
|
30
42
|
`;
|
|
43
|
+
export var ESubType;
|
|
44
|
+
(function (ESubType) {
|
|
45
|
+
ESubType[ESubType["ALL"] = 0] = "ALL";
|
|
46
|
+
ESubType[ESubType["NEW"] = 1] = "NEW";
|
|
47
|
+
ESubType[ESubType["OLD"] = 2] = "OLD";
|
|
48
|
+
})(ESubType || (ESubType = {}));
|
|
31
49
|
export const USER_STATUS = gql `
|
|
32
50
|
query UserStatus($from: Date, $to: Date, $force: Boolean!) {
|
|
33
51
|
admin {
|
|
@@ -135,21 +153,37 @@ export const QUESTION_STATS = gql `
|
|
|
135
153
|
id
|
|
136
154
|
name
|
|
137
155
|
count
|
|
156
|
+
voteScore
|
|
157
|
+
firstAttemptScore
|
|
158
|
+
score
|
|
159
|
+
lastEditScore
|
|
138
160
|
}
|
|
139
161
|
mockCategories {
|
|
140
162
|
id
|
|
141
163
|
name
|
|
142
164
|
count
|
|
165
|
+
voteScore
|
|
166
|
+
firstAttemptScore
|
|
167
|
+
score
|
|
168
|
+
lastEditScore
|
|
143
169
|
}
|
|
144
170
|
entitlements {
|
|
145
171
|
id
|
|
146
172
|
name
|
|
147
173
|
count
|
|
174
|
+
voteScore
|
|
175
|
+
firstAttemptScore
|
|
176
|
+
score
|
|
177
|
+
lastEditScore
|
|
148
178
|
}
|
|
149
179
|
difficulties {
|
|
150
180
|
id
|
|
151
181
|
name
|
|
152
182
|
count
|
|
183
|
+
voteScore
|
|
184
|
+
firstAttemptScore
|
|
185
|
+
score
|
|
186
|
+
lastEditScore
|
|
153
187
|
}
|
|
154
188
|
}
|
|
155
189
|
}
|