@quesmed/types 2.6.115 → 2.6.116
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;
|
|
@@ -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 {
|
|
@@ -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;
|
|
@@ -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 {
|