@quesmed/types 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.
@@ -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
+ `;
@@ -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;
@@ -22,6 +22,7 @@ export const EARNINGS = gql `
22
22
  $source: Int
23
23
  $universityId: Int
24
24
  $useNetEarning: Boolean
25
+ $productIds: [Int]
25
26
  ) {
26
27
  admin {
27
28
  earnings(
@@ -33,6 +34,7 @@ export const EARNINGS = gql `
33
34
  force: $force
34
35
  source: $source
35
36
  useNetEarning: $useNetEarning
37
+ productIds: $productIds
36
38
  ) {
37
39
  entitlement {
38
40
  id
@@ -175,23 +177,23 @@ export const USER_FEEDBACK_GRAPH = gql `
175
177
  `;
176
178
  export const EARNINGS_GRAPH = gql `
177
179
  query EarningsGraph(
178
- $productId: Int
179
180
  $year: Int
180
181
  $subType: Int
181
182
  $source: Int
182
183
  $universityId: Int
183
184
  $force: Boolean
184
185
  $useNetEarning: Boolean
186
+ $productIds: [Int]
185
187
  ) {
186
188
  admin {
187
189
  earningsGraph(
188
- productId: $productId
189
190
  year: $year
190
191
  subType: $subType
191
192
  source: $source
192
193
  universityId: $universityId
193
194
  force: $force
194
195
  useNetEarning: $useNetEarning
196
+ productIds: $productIds
195
197
  ) {
196
198
  month
197
199
  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,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.136",
3
+ "version": "2.6.138",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",