@quesmed/types-rn 2.6.136 → 2.6.137

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.137",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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
+ `;