@quesmed/types-rn 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.111",
3
+ "version": "2.6.112",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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
+ `;