@quesmed/types 2.6.240 → 2.6.241
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/dist/cjs/models/Marksheet.d.ts +6 -0
- package/dist/cjs/models/MockTest.d.ts +12 -0
- package/dist/cjs/resolvers/fragments/marksheet.js +6 -0
- package/dist/cjs/resolvers/fragments/mockTest.js +1 -0
- package/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +6 -0
- package/dist/cjs/resolvers/query/restricted/analytics.d.ts +18 -9
- package/dist/cjs/resolvers/query/restricted/analytics.js +33 -1
- package/dist/mjs/models/Marksheet.d.ts +6 -0
- package/dist/mjs/models/MockTest.d.ts +12 -0
- package/dist/mjs/resolvers/fragments/marksheet.js +6 -0
- package/dist/mjs/resolvers/fragments/mockTest.js +1 -0
- package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +6 -0
- package/dist/mjs/resolvers/query/restricted/analytics.d.ts +18 -9
- package/dist/mjs/resolvers/query/restricted/analytics.js +32 -0
- package/package.json +1 -1
|
@@ -77,6 +77,12 @@ export interface IMarksheetSection {
|
|
|
77
77
|
intro: string;
|
|
78
78
|
timeLimitSeconds: number;
|
|
79
79
|
marks: IMarksheetMark[];
|
|
80
|
+
correct: number;
|
|
81
|
+
incorrect: number;
|
|
82
|
+
partial: number;
|
|
83
|
+
sjtBand: number;
|
|
84
|
+
scaledScore: number;
|
|
85
|
+
percentile: number;
|
|
80
86
|
}
|
|
81
87
|
export interface IMarksheet {
|
|
82
88
|
id: Id;
|
|
@@ -35,6 +35,18 @@ export interface IMockTest {
|
|
|
35
35
|
questions: IQuestion[];
|
|
36
36
|
productId: EProductType[];
|
|
37
37
|
}
|
|
38
|
+
export interface IUcatMockStats {
|
|
39
|
+
id: number;
|
|
40
|
+
title: string;
|
|
41
|
+
typeId: EMockTestType;
|
|
42
|
+
date: Date | number;
|
|
43
|
+
total: number;
|
|
44
|
+
correct: number;
|
|
45
|
+
incorrect: number;
|
|
46
|
+
sjtBand: number;
|
|
47
|
+
percentile: number;
|
|
48
|
+
scaledScore: number;
|
|
49
|
+
}
|
|
38
50
|
export interface IUserMockTest {
|
|
39
51
|
id: Id;
|
|
40
52
|
title: string;
|
|
@@ -179,6 +179,9 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
|
|
|
179
179
|
startedAt: number | Date;
|
|
180
180
|
type: import("../../../models").EMarksheetType;
|
|
181
181
|
endedAt: number | Date;
|
|
182
|
+
/**
|
|
183
|
+
* reBuildMarksheet
|
|
184
|
+
*/
|
|
182
185
|
typeId: import("../../../models").ETopicType;
|
|
183
186
|
entitlement: import("../../../models").IEntitlement;
|
|
184
187
|
topicIds: number[];
|
|
@@ -276,6 +279,9 @@ export declare const optimisticEndMarksheet: (marksheet: IMarksheet) => {
|
|
|
276
279
|
startedAt: number | Date;
|
|
277
280
|
type: import("../../../models").EMarksheetType;
|
|
278
281
|
endedAt: number | Date;
|
|
282
|
+
/**
|
|
283
|
+
* reBuildMarksheet
|
|
284
|
+
*/
|
|
279
285
|
typeId: import("../../../models").ETopicType;
|
|
280
286
|
entitlement: import("../../../models").IEntitlement;
|
|
281
287
|
topicIds: number[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EEntitlementType, IMarksheetMark, ITheme } from '../../../models';
|
|
1
|
+
import { EEntitlementType, EMockTestType, IMarksheetMark, ITheme, IUcatMockStats } from '../../../models';
|
|
2
2
|
import { RestrictedData } from '../../types';
|
|
3
3
|
export type IUcatAnalyticsVar = {
|
|
4
4
|
updatedAt?: Date | number;
|
|
@@ -31,18 +31,27 @@ export type IUcatOverallPerformanceData = RestrictedData<IUcatOverallStats[], 'u
|
|
|
31
31
|
export declare const UCAT_OVERALL_PERFORMANCE: import("@apollo/client").DocumentNode;
|
|
32
32
|
export type IUcatMockPerformanceVar = {
|
|
33
33
|
limit?: number;
|
|
34
|
-
mockTypeId?:
|
|
34
|
+
mockTypeId?: EMockTestType[];
|
|
35
35
|
};
|
|
36
|
-
export
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
total: number;
|
|
36
|
+
export type IUcatMockPerformanceData = RestrictedData<IUcatMockStats[], 'ucatMockPerformance'>;
|
|
37
|
+
export declare const UCAT_MOCK_PERFORMANCE: import("@apollo/client").DocumentNode;
|
|
38
|
+
export interface IUcatSectionStats {
|
|
39
|
+
entitlementId: number;
|
|
41
40
|
correct: number;
|
|
42
41
|
incorrect: number;
|
|
42
|
+
partial: number;
|
|
43
|
+
attempted: number;
|
|
44
|
+
percentile: number;
|
|
45
|
+
scaledScore: number;
|
|
46
|
+
sjtBand: number;
|
|
47
|
+
marksheets: IUcatMockStats[];
|
|
43
48
|
}
|
|
44
|
-
export type
|
|
45
|
-
|
|
49
|
+
export type IUcatSectionPerformanceVar = {
|
|
50
|
+
limit?: number;
|
|
51
|
+
mockTypeId?: EMockTestType[];
|
|
52
|
+
};
|
|
53
|
+
export type IUcatSectionPerformanceData = RestrictedData<IUcatSectionStats[], 'ucatSectionPerformance'>;
|
|
54
|
+
export declare const UCAT_SECTION_PERFORMANCE: import("@apollo/client").DocumentNode;
|
|
46
55
|
export type IUcatThemeAnalyticsVar = {
|
|
47
56
|
updatedAt?: Date | number;
|
|
48
57
|
entitlementId: EEntitlementType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UCAT_THEME_ANALYTICS = exports.UCAT_MOCK_PERFORMANCE = exports.UCAT_OVERALL_PERFORMANCE = exports.UCAT_ANALYTICS = void 0;
|
|
3
|
+
exports.UCAT_THEME_ANALYTICS = exports.UCAT_SECTION_PERFORMANCE = exports.UCAT_MOCK_PERFORMANCE = exports.UCAT_OVERALL_PERFORMANCE = exports.UCAT_ANALYTICS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const fragments_1 = require("../../fragments");
|
|
6
6
|
exports.UCAT_ANALYTICS = (0, client_1.gql) `
|
|
@@ -48,12 +48,44 @@ exports.UCAT_MOCK_PERFORMANCE = (0, client_1.gql) `
|
|
|
48
48
|
query UcatMockPerformance($limit: Int, $mockTypeId: [Int!]) {
|
|
49
49
|
restricted {
|
|
50
50
|
ucatMockPerformance(limit: $limit, mockTypeId: $mockTypeId) {
|
|
51
|
+
id
|
|
51
52
|
title
|
|
52
53
|
typeId
|
|
53
54
|
date
|
|
54
55
|
total
|
|
55
56
|
correct
|
|
56
57
|
incorrect
|
|
58
|
+
sjtBand
|
|
59
|
+
percentile
|
|
60
|
+
scaledScore
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
exports.UCAT_SECTION_PERFORMANCE = (0, client_1.gql) `
|
|
66
|
+
query UcatSectionPerformance($limit: Int, $mockTypeId: [Int!]) {
|
|
67
|
+
restricted {
|
|
68
|
+
ucatSectionPerformance(limit: $limit, mockTypeId: $mockTypeId) {
|
|
69
|
+
entitlementId
|
|
70
|
+
correct
|
|
71
|
+
incorrect
|
|
72
|
+
partial
|
|
73
|
+
attempted
|
|
74
|
+
percentile
|
|
75
|
+
scaledScore
|
|
76
|
+
sjtBand
|
|
77
|
+
marksheets {
|
|
78
|
+
id
|
|
79
|
+
title
|
|
80
|
+
typeId
|
|
81
|
+
date
|
|
82
|
+
total
|
|
83
|
+
correct
|
|
84
|
+
incorrect
|
|
85
|
+
percentile
|
|
86
|
+
scaledScore
|
|
87
|
+
sjtBand
|
|
88
|
+
}
|
|
57
89
|
}
|
|
58
90
|
}
|
|
59
91
|
}
|
|
@@ -77,6 +77,12 @@ export interface IMarksheetSection {
|
|
|
77
77
|
intro: string;
|
|
78
78
|
timeLimitSeconds: number;
|
|
79
79
|
marks: IMarksheetMark[];
|
|
80
|
+
correct: number;
|
|
81
|
+
incorrect: number;
|
|
82
|
+
partial: number;
|
|
83
|
+
sjtBand: number;
|
|
84
|
+
scaledScore: number;
|
|
85
|
+
percentile: number;
|
|
80
86
|
}
|
|
81
87
|
export interface IMarksheet {
|
|
82
88
|
id: Id;
|
|
@@ -35,6 +35,18 @@ export interface IMockTest {
|
|
|
35
35
|
questions: IQuestion[];
|
|
36
36
|
productId: EProductType[];
|
|
37
37
|
}
|
|
38
|
+
export interface IUcatMockStats {
|
|
39
|
+
id: number;
|
|
40
|
+
title: string;
|
|
41
|
+
typeId: EMockTestType;
|
|
42
|
+
date: Date | number;
|
|
43
|
+
total: number;
|
|
44
|
+
correct: number;
|
|
45
|
+
incorrect: number;
|
|
46
|
+
sjtBand: number;
|
|
47
|
+
percentile: number;
|
|
48
|
+
scaledScore: number;
|
|
49
|
+
}
|
|
38
50
|
export interface IUserMockTest {
|
|
39
51
|
id: Id;
|
|
40
52
|
title: string;
|
|
@@ -179,6 +179,9 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
|
|
|
179
179
|
startedAt: number | Date;
|
|
180
180
|
type: import("../../../models").EMarksheetType;
|
|
181
181
|
endedAt: number | Date;
|
|
182
|
+
/**
|
|
183
|
+
* reBuildMarksheet
|
|
184
|
+
*/
|
|
182
185
|
typeId: import("../../../models").ETopicType;
|
|
183
186
|
entitlement: import("../../../models").IEntitlement;
|
|
184
187
|
topicIds: number[];
|
|
@@ -276,6 +279,9 @@ export declare const optimisticEndMarksheet: (marksheet: IMarksheet) => {
|
|
|
276
279
|
startedAt: number | Date;
|
|
277
280
|
type: import("../../../models").EMarksheetType;
|
|
278
281
|
endedAt: number | Date;
|
|
282
|
+
/**
|
|
283
|
+
* reBuildMarksheet
|
|
284
|
+
*/
|
|
279
285
|
typeId: import("../../../models").ETopicType;
|
|
280
286
|
entitlement: import("../../../models").IEntitlement;
|
|
281
287
|
topicIds: number[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EEntitlementType, IMarksheetMark, ITheme } from '../../../models';
|
|
1
|
+
import { EEntitlementType, EMockTestType, IMarksheetMark, ITheme, IUcatMockStats } from '../../../models';
|
|
2
2
|
import { RestrictedData } from '../../types';
|
|
3
3
|
export type IUcatAnalyticsVar = {
|
|
4
4
|
updatedAt?: Date | number;
|
|
@@ -31,18 +31,27 @@ export type IUcatOverallPerformanceData = RestrictedData<IUcatOverallStats[], 'u
|
|
|
31
31
|
export declare const UCAT_OVERALL_PERFORMANCE: import("@apollo/client").DocumentNode;
|
|
32
32
|
export type IUcatMockPerformanceVar = {
|
|
33
33
|
limit?: number;
|
|
34
|
-
mockTypeId?:
|
|
34
|
+
mockTypeId?: EMockTestType[];
|
|
35
35
|
};
|
|
36
|
-
export
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
total: number;
|
|
36
|
+
export type IUcatMockPerformanceData = RestrictedData<IUcatMockStats[], 'ucatMockPerformance'>;
|
|
37
|
+
export declare const UCAT_MOCK_PERFORMANCE: import("@apollo/client").DocumentNode;
|
|
38
|
+
export interface IUcatSectionStats {
|
|
39
|
+
entitlementId: number;
|
|
41
40
|
correct: number;
|
|
42
41
|
incorrect: number;
|
|
42
|
+
partial: number;
|
|
43
|
+
attempted: number;
|
|
44
|
+
percentile: number;
|
|
45
|
+
scaledScore: number;
|
|
46
|
+
sjtBand: number;
|
|
47
|
+
marksheets: IUcatMockStats[];
|
|
43
48
|
}
|
|
44
|
-
export type
|
|
45
|
-
|
|
49
|
+
export type IUcatSectionPerformanceVar = {
|
|
50
|
+
limit?: number;
|
|
51
|
+
mockTypeId?: EMockTestType[];
|
|
52
|
+
};
|
|
53
|
+
export type IUcatSectionPerformanceData = RestrictedData<IUcatSectionStats[], 'ucatSectionPerformance'>;
|
|
54
|
+
export declare const UCAT_SECTION_PERFORMANCE: import("@apollo/client").DocumentNode;
|
|
46
55
|
export type IUcatThemeAnalyticsVar = {
|
|
47
56
|
updatedAt?: Date | number;
|
|
48
57
|
entitlementId: EEntitlementType;
|
|
@@ -45,12 +45,44 @@ export const UCAT_MOCK_PERFORMANCE = gql `
|
|
|
45
45
|
query UcatMockPerformance($limit: Int, $mockTypeId: [Int!]) {
|
|
46
46
|
restricted {
|
|
47
47
|
ucatMockPerformance(limit: $limit, mockTypeId: $mockTypeId) {
|
|
48
|
+
id
|
|
48
49
|
title
|
|
49
50
|
typeId
|
|
50
51
|
date
|
|
51
52
|
total
|
|
52
53
|
correct
|
|
53
54
|
incorrect
|
|
55
|
+
sjtBand
|
|
56
|
+
percentile
|
|
57
|
+
scaledScore
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
export const UCAT_SECTION_PERFORMANCE = gql `
|
|
63
|
+
query UcatSectionPerformance($limit: Int, $mockTypeId: [Int!]) {
|
|
64
|
+
restricted {
|
|
65
|
+
ucatSectionPerformance(limit: $limit, mockTypeId: $mockTypeId) {
|
|
66
|
+
entitlementId
|
|
67
|
+
correct
|
|
68
|
+
incorrect
|
|
69
|
+
partial
|
|
70
|
+
attempted
|
|
71
|
+
percentile
|
|
72
|
+
scaledScore
|
|
73
|
+
sjtBand
|
|
74
|
+
marksheets {
|
|
75
|
+
id
|
|
76
|
+
title
|
|
77
|
+
typeId
|
|
78
|
+
date
|
|
79
|
+
total
|
|
80
|
+
correct
|
|
81
|
+
incorrect
|
|
82
|
+
percentile
|
|
83
|
+
scaledScore
|
|
84
|
+
sjtBand
|
|
85
|
+
}
|
|
54
86
|
}
|
|
55
87
|
}
|
|
56
88
|
}
|