@quesmed/types 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 = {}));
@@ -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
@@ -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;
@@ -8,4 +8,5 @@ export var EMockTestType;
8
8
  EMockTestType[EMockTestType["ANATOMY_SPOTTER"] = 5] = "ANATOMY_SPOTTER";
9
9
  EMockTestType[EMockTestType["UKMLA"] = 6] = "UKMLA";
10
10
  EMockTestType[EMockTestType["MRCP"] = 7] = "MRCP";
11
+ EMockTestType[EMockTestType["UKMLA_FULL"] = 8] = "UKMLA_FULL";
11
12
  })(EMockTestType || (EMockTestType = {}));
@@ -13,6 +13,7 @@ const ALL_MOCKS_WITHOUT_ANATOMY = [
13
13
  EMockTestType.MISCELLANEOUS,
14
14
  EMockTestType.UNIVERSITY_SPECIFIC,
15
15
  EMockTestType.UKMLA,
16
+ EMockTestType.UKMLA_FULL,
16
17
  ];
17
18
  const ALL_MOCKS = [EMockTestType.ANATOMY_SPOTTER, ...ALL_MOCKS_WITHOUT_ANATOMY];
18
19
  export const 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;
@@ -21,6 +21,7 @@ export const EARNINGS = gql `
21
21
  $force: Boolean!
22
22
  $source: Int
23
23
  $universityId: Int
24
+ $useNetEarning: Boolean
24
25
  ) {
25
26
  admin {
26
27
  earnings(
@@ -31,6 +32,7 @@ export const EARNINGS = gql `
31
32
  to: $to
32
33
  force: $force
33
34
  source: $source
35
+ useNetEarning: $useNetEarning
34
36
  ) {
35
37
  entitlement {
36
38
  id
@@ -152,6 +154,60 @@ export const USER_FEEDBACKS = gql `
152
154
  }
153
155
  }
154
156
  `;
157
+ export const USER_FEEDBACK_GRAPH = gql `
158
+ query UserFeedbackGraph($productId: Int, $year: Int) {
159
+ admin {
160
+ userFeedbacksGraph(productId: $productId, year: $year) {
161
+ month
162
+ count
163
+ value
164
+ stats {
165
+ count
166
+ value
167
+ product {
168
+ id
169
+ name
170
+ }
171
+ }
172
+ }
173
+ }
174
+ }
175
+ `;
176
+ export const EARNINGS_GRAPH = gql `
177
+ query EarningsGraph(
178
+ $productId: Int
179
+ $year: Int
180
+ $subType: Int
181
+ $source: Int
182
+ $universityId: Int
183
+ $force: Boolean
184
+ $useNetEarning: Boolean
185
+ ) {
186
+ admin {
187
+ earningsGraph(
188
+ productId: $productId
189
+ year: $year
190
+ subType: $subType
191
+ source: $source
192
+ universityId: $universityId
193
+ force: $force
194
+ useNetEarning: $useNetEarning
195
+ ) {
196
+ month
197
+ count
198
+ value
199
+ stats {
200
+ count
201
+ value
202
+ product {
203
+ id
204
+ name
205
+ }
206
+ }
207
+ }
208
+ }
209
+ }
210
+ `;
155
211
  export const QUESTION_STATS = gql `
156
212
  query QuestionStats(
157
213
  $productId: Int
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.126",
3
+ "version": "2.6.129",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",