@quesmed/types 2.6.135 → 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.
@@ -1,6 +1,8 @@
1
+ import { EEntitlementType, IMarksheetMark } from '../../../models';
1
2
  import { RestrictedData } from '../../types';
2
3
  export type IUcatAnalyticsVar = {
3
4
  updatedAt?: Date | number;
5
+ entitlementId?: EEntitlementType;
4
6
  };
5
7
  export interface IUcatAnalytics {
6
8
  id: number;
@@ -15,3 +17,27 @@ export interface IUcatAnalytics {
15
17
  }
16
18
  export type IUcatAnalyticsData = RestrictedData<IUcatAnalytics, 'ucatAnalytics'>;
17
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
+ `;
@@ -1,6 +1,8 @@
1
+ import { EEntitlementType, IMarksheetMark } from '../../../models';
1
2
  import { RestrictedData } from '../../types';
2
3
  export type IUcatAnalyticsVar = {
3
4
  updatedAt?: Date | number;
5
+ entitlementId?: EEntitlementType;
4
6
  };
5
7
  export interface IUcatAnalytics {
6
8
  id: number;
@@ -15,3 +17,27 @@ export interface IUcatAnalytics {
15
17
  }
16
18
  export type IUcatAnalyticsData = RestrictedData<IUcatAnalytics, 'ucatAnalytics'>;
17
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,8 +1,9 @@
1
1
  import { gql } from '@apollo/client';
2
+ import { QUESTION_CATEGORY_FIELDS } from '../../fragments';
2
3
  export const UCAT_ANALYTICS = gql `
3
- query UcatAnalytics($updatedAt: Date) {
4
+ query UcatAnalytics($updatedAt: Date, $entitlementId: Int) {
4
5
  restricted {
5
- ucatAnalytics(updatedAt: $updatedAt) {
6
+ ucatAnalytics(updatedAt: $updatedAt, entitlementId: $entitlementId) {
6
7
  id
7
8
  name
8
9
  timeTaken
@@ -25,3 +26,46 @@ export const UCAT_ANALYTICS = gql `
25
26
  }
26
27
  }
27
28
  `;
29
+ export const UCAT_THEME_ANALYTICS = gql `
30
+ ${QUESTION_CATEGORY_FIELDS}
31
+ query UcatThemeAnalytics(
32
+ $entitlementId: Int
33
+ $themeId: Int
34
+ $updatedAt: Int
35
+ ) {
36
+ restricted {
37
+ ucatThemeAnalytics(
38
+ entitlementId: $entitlementId
39
+ themeId: $themeId
40
+ updatedAt: $updatedAt
41
+ ) {
42
+ attempted
43
+ correct
44
+ incorrect
45
+ marks {
46
+ questionId
47
+ updatedAt
48
+ marksheet {
49
+ id
50
+ isTestMarksheet
51
+ }
52
+ question {
53
+ id
54
+ typeId
55
+ ...QuestionCategoryFields
56
+ }
57
+ }
58
+ stats {
59
+ attempted
60
+ avgScore
61
+ correct
62
+ date
63
+ incorrect
64
+ score
65
+ }
66
+ total
67
+ userId
68
+ }
69
+ }
70
+ }
71
+ `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.135",
3
+ "version": "2.6.137",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",