@quesmed/types 2.6.111 → 2.6.112
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.
|
@@ -91,3 +91,23 @@ export type IUserFeedbackVar = {
|
|
|
91
91
|
description: boolean | null;
|
|
92
92
|
};
|
|
93
93
|
export type IUserFeedbackData = AdminData<IUserFeedback, 'userFeedbacks'>;
|
|
94
|
+
export declare const QUESTION_STATS: import("@apollo/client").DocumentNode;
|
|
95
|
+
export interface IQuestionStats {
|
|
96
|
+
entitlements: Array<{
|
|
97
|
+
id: number;
|
|
98
|
+
name: string;
|
|
99
|
+
count: number;
|
|
100
|
+
}>;
|
|
101
|
+
difficulties: Array<{
|
|
102
|
+
id: number;
|
|
103
|
+
name: string;
|
|
104
|
+
count: number;
|
|
105
|
+
}>;
|
|
106
|
+
}
|
|
107
|
+
export type IQuestionStatsVar = {
|
|
108
|
+
from: Date | number | null;
|
|
109
|
+
to: Date | number | null;
|
|
110
|
+
force: boolean;
|
|
111
|
+
productId: EProductType;
|
|
112
|
+
};
|
|
113
|
+
export type IQuestionStatsData = AdminData<IQuestionStats, 'questionStats'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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.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($force: Boolean) {
|
|
@@ -118,3 +118,31 @@ exports.USER_FEEDBACKS = (0, client_1.gql) `
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
`;
|
|
121
|
+
exports.QUESTION_STATS = (0, client_1.gql) `
|
|
122
|
+
query QuestionStats(
|
|
123
|
+
$productId: Int
|
|
124
|
+
$from: Date
|
|
125
|
+
$to: Date
|
|
126
|
+
$force: Boolean!
|
|
127
|
+
) {
|
|
128
|
+
admin {
|
|
129
|
+
questionStats(
|
|
130
|
+
force: $force
|
|
131
|
+
from: $from
|
|
132
|
+
to: $to
|
|
133
|
+
productId: $productId
|
|
134
|
+
) {
|
|
135
|
+
entitlements {
|
|
136
|
+
id
|
|
137
|
+
name
|
|
138
|
+
count
|
|
139
|
+
}
|
|
140
|
+
difficulties {
|
|
141
|
+
id
|
|
142
|
+
name
|
|
143
|
+
count
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
`;
|
|
@@ -91,3 +91,23 @@ export type IUserFeedbackVar = {
|
|
|
91
91
|
description: boolean | null;
|
|
92
92
|
};
|
|
93
93
|
export type IUserFeedbackData = AdminData<IUserFeedback, 'userFeedbacks'>;
|
|
94
|
+
export declare const QUESTION_STATS: import("@apollo/client").DocumentNode;
|
|
95
|
+
export interface IQuestionStats {
|
|
96
|
+
entitlements: Array<{
|
|
97
|
+
id: number;
|
|
98
|
+
name: string;
|
|
99
|
+
count: number;
|
|
100
|
+
}>;
|
|
101
|
+
difficulties: Array<{
|
|
102
|
+
id: number;
|
|
103
|
+
name: string;
|
|
104
|
+
count: number;
|
|
105
|
+
}>;
|
|
106
|
+
}
|
|
107
|
+
export type IQuestionStatsVar = {
|
|
108
|
+
from: Date | number | null;
|
|
109
|
+
to: Date | number | null;
|
|
110
|
+
force: boolean;
|
|
111
|
+
productId: EProductType;
|
|
112
|
+
};
|
|
113
|
+
export type IQuestionStatsData = AdminData<IQuestionStats, 'questionStats'>;
|
|
@@ -115,3 +115,31 @@ export const USER_FEEDBACKS = gql `
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
`;
|
|
118
|
+
export const QUESTION_STATS = gql `
|
|
119
|
+
query QuestionStats(
|
|
120
|
+
$productId: Int
|
|
121
|
+
$from: Date
|
|
122
|
+
$to: Date
|
|
123
|
+
$force: Boolean!
|
|
124
|
+
) {
|
|
125
|
+
admin {
|
|
126
|
+
questionStats(
|
|
127
|
+
force: $force
|
|
128
|
+
from: $from
|
|
129
|
+
to: $to
|
|
130
|
+
productId: $productId
|
|
131
|
+
) {
|
|
132
|
+
entitlements {
|
|
133
|
+
id
|
|
134
|
+
name
|
|
135
|
+
count
|
|
136
|
+
}
|
|
137
|
+
difficulties {
|
|
138
|
+
id
|
|
139
|
+
name
|
|
140
|
+
count
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
`;
|