@quesmed/types 2.6.111 → 2.6.113

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,35 @@ 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
+ totalQuestions: number;
97
+ totalMockQuestions: number;
98
+ mockTests: Array<{
99
+ id: number;
100
+ name: string;
101
+ count: number;
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
+ }>;
118
+ }
119
+ export type IQuestionStatsVar = {
120
+ from: Date | number | null;
121
+ to: Date | number | null;
122
+ force: boolean;
123
+ productId: EProductType;
124
+ };
125
+ 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,43 @@ 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
+ totalQuestions
136
+ totalMockQuestions
137
+ mockTests {
138
+ id
139
+ name
140
+ count
141
+ }
142
+ mockCategories {
143
+ id
144
+ name
145
+ count
146
+ }
147
+ entitlements {
148
+ id
149
+ name
150
+ count
151
+ }
152
+ difficulties {
153
+ id
154
+ name
155
+ count
156
+ }
157
+ }
158
+ }
159
+ }
160
+ `;
@@ -91,3 +91,35 @@ 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
+ totalQuestions: number;
97
+ totalMockQuestions: number;
98
+ mockTests: Array<{
99
+ id: number;
100
+ name: string;
101
+ count: number;
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
+ }>;
118
+ }
119
+ export type IQuestionStatsVar = {
120
+ from: Date | number | null;
121
+ to: Date | number | null;
122
+ force: boolean;
123
+ productId: EProductType;
124
+ };
125
+ export type IQuestionStatsData = AdminData<IQuestionStats, 'questionStats'>;
@@ -115,3 +115,43 @@ 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
+ totalQuestions
133
+ totalMockQuestions
134
+ mockTests {
135
+ id
136
+ name
137
+ count
138
+ }
139
+ mockCategories {
140
+ id
141
+ name
142
+ count
143
+ }
144
+ entitlements {
145
+ id
146
+ name
147
+ count
148
+ }
149
+ difficulties {
150
+ id
151
+ name
152
+ count
153
+ }
154
+ }
155
+ }
156
+ }
157
+ `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.111",
3
+ "version": "2.6.113",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",