@quesmed/types-rn 2.6.126 → 2.6.129

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.
@@ -9,7 +9,8 @@ export declare enum EMockTestType {
9
9
  UNIVERSITY_SPECIFIC = 4,
10
10
  ANATOMY_SPOTTER = 5,
11
11
  UKMLA = 6,
12
- MRCP = 7
12
+ MRCP = 7,
13
+ UKMLA_FULL = 8
13
14
  }
14
15
  export interface IMockTestType {
15
16
  id: EMockTestType;
@@ -11,4 +11,5 @@ var EMockTestType;
11
11
  EMockTestType[EMockTestType["ANATOMY_SPOTTER"] = 5] = "ANATOMY_SPOTTER";
12
12
  EMockTestType[EMockTestType["UKMLA"] = 6] = "UKMLA";
13
13
  EMockTestType[EMockTestType["MRCP"] = 7] = "MRCP";
14
+ EMockTestType[EMockTestType["UKMLA_FULL"] = 8] = "UKMLA_FULL";
14
15
  })(EMockTestType = exports.EMockTestType || (exports.EMockTestType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.126",
3
+ "version": "2.6.129",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -16,6 +16,7 @@ const ALL_MOCKS_WITHOUT_ANATOMY = [
16
16
  models_1.EMockTestType.MISCELLANEOUS,
17
17
  models_1.EMockTestType.UNIVERSITY_SPECIFIC,
18
18
  models_1.EMockTestType.UKMLA,
19
+ models_1.EMockTestType.UKMLA_FULL,
19
20
  ];
20
21
  const ALL_MOCKS = [models_1.EMockTestType.ANATOMY_SPOTTER, ...ALL_MOCKS_WITHOUT_ANATOMY];
21
22
  exports.productMapping = {
@@ -36,6 +36,7 @@ export type IEarningsVar = {
36
36
  subType: ESubType;
37
37
  source: ESubSource;
38
38
  universityId: number | null;
39
+ useNetEarning: boolean;
39
40
  };
40
41
  export type IEarningsData = AdminData<IRevenue[], 'earnings'>;
41
42
  export declare const USER_STATUS: import("@apollo/client").DocumentNode;
@@ -107,6 +108,35 @@ export type IUserFeedbackVar = {
107
108
  description: boolean | null;
108
109
  };
109
110
  export type IUserFeedbackData = AdminData<IUserFeedback, 'userFeedbacks'>;
111
+ export declare const USER_FEEDBACK_GRAPH: import("@apollo/client").DocumentNode;
112
+ export interface ITimeSeriesData {
113
+ month: string;
114
+ count: number;
115
+ value: number;
116
+ stats: ITimeSeriesProductStats[];
117
+ }
118
+ export interface ITimeSeriesProductStats {
119
+ count: number;
120
+ value: number;
121
+ product: IEntitlement;
122
+ }
123
+ export type IUserFeedbackGraphVar = {
124
+ year: number | null;
125
+ productId: EProductType;
126
+ force: boolean;
127
+ };
128
+ export type IUserFeedbackGraphData = AdminData<Array<ITimeSeriesData>, 'userFeedbacksGraph'>;
129
+ export declare const EARNINGS_GRAPH: import("@apollo/client").DocumentNode;
130
+ export type IEarningsGraphVar = {
131
+ year: number | null;
132
+ productId: EProductType;
133
+ subType: ESubType;
134
+ source: ESubSource;
135
+ universityId: number | null;
136
+ force: boolean;
137
+ useNetEarning: boolean;
138
+ };
139
+ export type IEarningsGraphData = AdminData<Array<ITimeSeriesData>, 'earningsGraph'>;
110
140
  export declare const QUESTION_STATS: import("@apollo/client").DocumentNode;
111
141
  export interface IStats {
112
142
  id: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DROPDOWN_OPTIONS = exports.USER_CANCELLATION_REASONS = exports.QUESTION_STATS = exports.USER_FEEDBACKS = exports.USER_BREAKDOWN = exports.USER_STATUS = exports.ESubType = exports.EARNINGS = exports.IMPORT_STATS = void 0;
3
+ exports.DROPDOWN_OPTIONS = exports.USER_CANCELLATION_REASONS = exports.QUESTION_STATS = exports.EARNINGS_GRAPH = exports.USER_FEEDBACK_GRAPH = 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
6
  query ImportStats($from: Date, $to: Date, $force: Boolean) {
@@ -24,6 +24,7 @@ exports.EARNINGS = (0, client_1.gql) `
24
24
  $force: Boolean!
25
25
  $source: Int
26
26
  $universityId: Int
27
+ $useNetEarning: Boolean
27
28
  ) {
28
29
  admin {
29
30
  earnings(
@@ -34,6 +35,7 @@ exports.EARNINGS = (0, client_1.gql) `
34
35
  to: $to
35
36
  force: $force
36
37
  source: $source
38
+ useNetEarning: $useNetEarning
37
39
  ) {
38
40
  entitlement {
39
41
  id
@@ -155,6 +157,60 @@ exports.USER_FEEDBACKS = (0, client_1.gql) `
155
157
  }
156
158
  }
157
159
  `;
160
+ exports.USER_FEEDBACK_GRAPH = (0, client_1.gql) `
161
+ query UserFeedbackGraph($productId: Int, $year: Int) {
162
+ admin {
163
+ userFeedbacksGraph(productId: $productId, year: $year) {
164
+ month
165
+ count
166
+ value
167
+ stats {
168
+ count
169
+ value
170
+ product {
171
+ id
172
+ name
173
+ }
174
+ }
175
+ }
176
+ }
177
+ }
178
+ `;
179
+ exports.EARNINGS_GRAPH = (0, client_1.gql) `
180
+ query EarningsGraph(
181
+ $productId: Int
182
+ $year: Int
183
+ $subType: Int
184
+ $source: Int
185
+ $universityId: Int
186
+ $force: Boolean
187
+ $useNetEarning: Boolean
188
+ ) {
189
+ admin {
190
+ earningsGraph(
191
+ productId: $productId
192
+ year: $year
193
+ subType: $subType
194
+ source: $source
195
+ universityId: $universityId
196
+ force: $force
197
+ useNetEarning: $useNetEarning
198
+ ) {
199
+ month
200
+ count
201
+ value
202
+ stats {
203
+ count
204
+ value
205
+ product {
206
+ id
207
+ name
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+ `;
158
214
  exports.QUESTION_STATS = (0, client_1.gql) `
159
215
  query QuestionStats(
160
216
  $productId: Int