@quesmed/types-rn 2.6.136 → 2.6.138

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.136",
3
+ "version": "2.6.138",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -37,6 +37,7 @@ export type IEarningsVar = {
37
37
  source: ESubSource;
38
38
  universityId: number | null;
39
39
  useNetEarning: boolean;
40
+ productIds?: EProductType[];
40
41
  };
41
42
  export type IEarningsData = AdminData<IRevenue[], 'earnings'>;
42
43
  export declare const USER_STATUS: import("@apollo/client").DocumentNode;
@@ -129,12 +130,12 @@ export type IUserFeedbackGraphData = AdminData<Array<ITimeSeriesData>, 'userFeed
129
130
  export declare const EARNINGS_GRAPH: import("@apollo/client").DocumentNode;
130
131
  export type IEarningsGraphVar = {
131
132
  year: number | null;
132
- productId: EProductType;
133
133
  subType: ESubType;
134
134
  source: ESubSource;
135
135
  universityId: number | null;
136
136
  force: boolean;
137
137
  useNetEarning: boolean;
138
+ productIds: EProductType[];
138
139
  };
139
140
  export type IEarningsGraphData = AdminData<Array<ITimeSeriesData>, 'earningsGraph'>;
140
141
  export declare const QUESTION_STATS: import("@apollo/client").DocumentNode;
@@ -25,6 +25,7 @@ exports.EARNINGS = (0, client_1.gql) `
25
25
  $source: Int
26
26
  $universityId: Int
27
27
  $useNetEarning: Boolean
28
+ $productIds: [Int]
28
29
  ) {
29
30
  admin {
30
31
  earnings(
@@ -36,6 +37,7 @@ exports.EARNINGS = (0, client_1.gql) `
36
37
  force: $force
37
38
  source: $source
38
39
  useNetEarning: $useNetEarning
40
+ productIds: $productIds
39
41
  ) {
40
42
  entitlement {
41
43
  id
@@ -178,23 +180,23 @@ exports.USER_FEEDBACK_GRAPH = (0, client_1.gql) `
178
180
  `;
179
181
  exports.EARNINGS_GRAPH = (0, client_1.gql) `
180
182
  query EarningsGraph(
181
- $productId: Int
182
183
  $year: Int
183
184
  $subType: Int
184
185
  $source: Int
185
186
  $universityId: Int
186
187
  $force: Boolean
187
188
  $useNetEarning: Boolean
189
+ $productIds: [Int]
188
190
  ) {
189
191
  admin {
190
192
  earningsGraph(
191
- productId: $productId
192
193
  year: $year
193
194
  subType: $subType
194
195
  source: $source
195
196
  universityId: $universityId
196
197
  force: $force
197
198
  useNetEarning: $useNetEarning
199
+ productIds: $productIds
198
200
  ) {
199
201
  month
200
202
  count
@@ -1,4 +1,4 @@
1
- import { EEntitlementType } from '../../../models';
1
+ import { EEntitlementType, IMarksheetMark } from '../../../models';
2
2
  import { RestrictedData } from '../../types';
3
3
  export type IUcatAnalyticsVar = {
4
4
  updatedAt?: Date | number;
@@ -17,3 +17,27 @@ export interface IUcatAnalytics {
17
17
  }
18
18
  export type IUcatAnalyticsData = RestrictedData<IUcatAnalytics, 'ucatAnalytics'>;
19
19
  export declare const UCAT_ANALYTICS: import("@apollo/client").DocumentNode;
20
+ export type IUcatThemeAnalyticsVar = {
21
+ updatedAt?: Date | number;
22
+ entitlementId: EEntitlementType;
23
+ themeId: number;
24
+ };
25
+ export interface IUcatThemeStats {
26
+ date: Date | number;
27
+ correct: number;
28
+ incorrect: number;
29
+ attempted: number;
30
+ score: number;
31
+ avgScore: number;
32
+ }
33
+ export interface IUcatThemeAnalytics {
34
+ userId: number;
35
+ marks: IMarksheetMark[];
36
+ correct: number;
37
+ incorrect: number;
38
+ total: number;
39
+ attempted: number;
40
+ stats: IUcatThemeStats[];
41
+ }
42
+ export type IUcatThemeAnalyticsData = RestrictedData<IUcatThemeAnalytics, 'ucatThemeAnalytics'>;
43
+ export declare const UCAT_THEME_ANALYTICS: import("@apollo/client").DocumentNode;
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UCAT_ANALYTICS = void 0;
3
+ exports.UCAT_THEME_ANALYTICS = exports.UCAT_ANALYTICS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
+ const fragments_1 = require("../../fragments");
5
6
  exports.UCAT_ANALYTICS = (0, client_1.gql) `
6
- query UcatAnalytics($updatedAt: Date) {
7
+ query UcatAnalytics($updatedAt: Date, $entitlementId: Int) {
7
8
  restricted {
8
- ucatAnalytics(updatedAt: $updatedAt) {
9
+ ucatAnalytics(updatedAt: $updatedAt, entitlementId: $entitlementId) {
9
10
  id
10
11
  name
11
12
  timeTaken
@@ -28,3 +29,46 @@ exports.UCAT_ANALYTICS = (0, client_1.gql) `
28
29
  }
29
30
  }
30
31
  `;
32
+ exports.UCAT_THEME_ANALYTICS = (0, client_1.gql) `
33
+ ${fragments_1.QUESTION_CATEGORY_FIELDS}
34
+ query UcatThemeAnalytics(
35
+ $entitlementId: Int
36
+ $themeId: Int
37
+ $updatedAt: Int
38
+ ) {
39
+ restricted {
40
+ ucatThemeAnalytics(
41
+ entitlementId: $entitlementId
42
+ themeId: $themeId
43
+ updatedAt: $updatedAt
44
+ ) {
45
+ attempted
46
+ correct
47
+ incorrect
48
+ marks {
49
+ questionId
50
+ updatedAt
51
+ marksheet {
52
+ id
53
+ isTestMarksheet
54
+ }
55
+ question {
56
+ id
57
+ typeId
58
+ ...QuestionCategoryFields
59
+ }
60
+ }
61
+ stats {
62
+ attempted
63
+ avgScore
64
+ correct
65
+ date
66
+ incorrect
67
+ score
68
+ }
69
+ total
70
+ userId
71
+ }
72
+ }
73
+ }
74
+ `;