@quesmed/types-rn 2.6.279 → 2.6.289
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/models/SampleQuizReport.d.ts +63 -0
- package/models/SampleQuizReport.js +6 -0
- package/models/index.d.ts +1 -0
- package/models/index.js +1 -0
- package/package.json +1 -1
- package/resolvers/enums.d.ts +12 -0
- package/resolvers/enums.js +15 -1
- package/resolvers/mutation/sample.d.ts +7 -1
- package/resolvers/mutation/sample.js +6 -1
- package/resolvers/query/sample.d.ts +6 -1
- package/resolvers/query/sample.js +44 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { IMarksheetMark } from './Marksheet';
|
|
2
|
+
import { EProductType } from './Product';
|
|
3
|
+
import { Id } from './Type';
|
|
4
|
+
export { CoverageTier, PostQuizBand } from '../resolvers/enums';
|
|
5
|
+
export interface ISampleQuizMarkInput {
|
|
6
|
+
id: number;
|
|
7
|
+
result?: number | null;
|
|
8
|
+
questionChoiceId?: number | null;
|
|
9
|
+
mark?: string | null;
|
|
10
|
+
timeTaken?: number | null;
|
|
11
|
+
}
|
|
12
|
+
export interface ISubmitSampleQuizReportInput {
|
|
13
|
+
email: string;
|
|
14
|
+
marksheetId: string | number;
|
|
15
|
+
marks: ISampleQuizMarkInput[];
|
|
16
|
+
reportPath: string;
|
|
17
|
+
productId: number;
|
|
18
|
+
}
|
|
19
|
+
export interface ISampleQuizTopicInsight {
|
|
20
|
+
topic: string;
|
|
21
|
+
detail: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ISampleQuizHighYieldFact {
|
|
24
|
+
topic: string;
|
|
25
|
+
concept: string;
|
|
26
|
+
fact: string;
|
|
27
|
+
whyItMatters: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ISampleQuizTopicBreakdown {
|
|
30
|
+
topic: string;
|
|
31
|
+
correct: number;
|
|
32
|
+
attempted: number;
|
|
33
|
+
percentage: number;
|
|
34
|
+
eligible: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface SampleQuizMark {
|
|
37
|
+
id: IMarksheetMark['id'];
|
|
38
|
+
result: IMarksheetMark['result'];
|
|
39
|
+
questionChoiceId: IMarksheetMark['questionId'];
|
|
40
|
+
mark: IMarksheetMark['mark'];
|
|
41
|
+
timeTaken: IMarksheetMark['timeTaken'];
|
|
42
|
+
}
|
|
43
|
+
export interface ISampleQuizReport {
|
|
44
|
+
id: string;
|
|
45
|
+
marksheetId: Id;
|
|
46
|
+
productId: EProductType;
|
|
47
|
+
paperLength: number;
|
|
48
|
+
attempted: number;
|
|
49
|
+
correct: number;
|
|
50
|
+
scorePercentage: number;
|
|
51
|
+
coverageTier: string;
|
|
52
|
+
band: string | null;
|
|
53
|
+
headline: string;
|
|
54
|
+
summary: string;
|
|
55
|
+
strengths: string[];
|
|
56
|
+
weaknesses: string[];
|
|
57
|
+
highYieldFacts: ISampleQuizHighYieldFact[];
|
|
58
|
+
topicBreakdown: ISampleQuizTopicBreakdown[];
|
|
59
|
+
recommendedFocus: string[];
|
|
60
|
+
createdAt: string | Date;
|
|
61
|
+
promoCode?: string | null;
|
|
62
|
+
promoExpiresAt?: string | Date | null;
|
|
63
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PostQuizBand = exports.CoverageTier = void 0;
|
|
4
|
+
var enums_1 = require("../resolvers/enums");
|
|
5
|
+
Object.defineProperty(exports, "CoverageTier", { enumerable: true, get: function () { return enums_1.CoverageTier; } });
|
|
6
|
+
Object.defineProperty(exports, "PostQuizBand", { enumerable: true, get: function () { return enums_1.PostQuizBand; } });
|
package/models/index.d.ts
CHANGED
package/models/index.js
CHANGED
|
@@ -44,6 +44,7 @@ __exportStar(require("./Product"), exports);
|
|
|
44
44
|
__exportStar(require("./Promo"), exports);
|
|
45
45
|
__exportStar(require("./Psa"), exports);
|
|
46
46
|
__exportStar(require("./Question"), exports);
|
|
47
|
+
__exportStar(require("./SampleQuizReport"), exports);
|
|
47
48
|
__exportStar(require("./Referrals"), exports);
|
|
48
49
|
__exportStar(require("./Subscription"), exports);
|
|
49
50
|
__exportStar(require("./Todo"), exports);
|
package/package.json
CHANGED
package/resolvers/enums.d.ts
CHANGED
|
@@ -7,3 +7,15 @@ export declare enum DB_TYPE {
|
|
|
7
7
|
MRCP = 2,
|
|
8
8
|
UCAT = 3
|
|
9
9
|
}
|
|
10
|
+
export declare enum CoverageTier {
|
|
11
|
+
A = "A",
|
|
12
|
+
B = "B",
|
|
13
|
+
C = "C"
|
|
14
|
+
}
|
|
15
|
+
export declare enum PostQuizBand {
|
|
16
|
+
EARLY_FOUNDATIONS = "EARLY_FOUNDATIONS",
|
|
17
|
+
BUILDING = "BUILDING",
|
|
18
|
+
MIXED = "MIXED",
|
|
19
|
+
SOLID = "SOLID",
|
|
20
|
+
STRONG = "STRONG"
|
|
21
|
+
}
|
package/resolvers/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DB_TYPE = exports.ESortOrder = void 0;
|
|
3
|
+
exports.PostQuizBand = exports.CoverageTier = exports.DB_TYPE = exports.ESortOrder = void 0;
|
|
4
4
|
var ESortOrder;
|
|
5
5
|
(function (ESortOrder) {
|
|
6
6
|
ESortOrder[ESortOrder["ASC"] = 1] = "ASC";
|
|
@@ -12,3 +12,17 @@ var DB_TYPE;
|
|
|
12
12
|
DB_TYPE[DB_TYPE["MRCP"] = 2] = "MRCP";
|
|
13
13
|
DB_TYPE[DB_TYPE["UCAT"] = 3] = "UCAT";
|
|
14
14
|
})(DB_TYPE = exports.DB_TYPE || (exports.DB_TYPE = {}));
|
|
15
|
+
var CoverageTier;
|
|
16
|
+
(function (CoverageTier) {
|
|
17
|
+
CoverageTier["A"] = "A";
|
|
18
|
+
CoverageTier["B"] = "B";
|
|
19
|
+
CoverageTier["C"] = "C";
|
|
20
|
+
})(CoverageTier = exports.CoverageTier || (exports.CoverageTier = {}));
|
|
21
|
+
var PostQuizBand;
|
|
22
|
+
(function (PostQuizBand) {
|
|
23
|
+
PostQuizBand["EARLY_FOUNDATIONS"] = "EARLY_FOUNDATIONS";
|
|
24
|
+
PostQuizBand["BUILDING"] = "BUILDING";
|
|
25
|
+
PostQuizBand["MIXED"] = "MIXED";
|
|
26
|
+
PostQuizBand["SOLID"] = "SOLID";
|
|
27
|
+
PostQuizBand["STRONG"] = "STRONG";
|
|
28
|
+
})(PostQuizBand = exports.PostQuizBand || (exports.PostQuizBand = {}));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApolloClient } from '@apollo/client';
|
|
2
|
-
import { EQuestionType, IHighlightNode } from '../../models';
|
|
2
|
+
import { EQuestionType, IHighlightNode, ISubmitSampleQuizReportInput } from '../../models';
|
|
3
|
+
import { RootData } from '../types';
|
|
3
4
|
import { IEndOsceMarksheetVar, IMarkOsceMarksheetMarkVar, ISaveMarksheetInput, ITodoInput } from './restricted';
|
|
4
5
|
export declare const saveSampleMarksheets: (client: ApolloClient<any>, marksheetInput: ISaveMarksheetInput, questionIndex: number) => void;
|
|
5
6
|
export declare const saveSampleTodoMark: (client: ApolloClient<any>, todoInput: ITodoInput, markId: number) => void;
|
|
@@ -20,3 +21,8 @@ export declare const handleSampleQuestionHighlights: (client: ApolloClient<any>,
|
|
|
20
21
|
export declare const startSampleStationTimer: (client: ApolloClient<any>, osceMarkhseetId?: number) => void;
|
|
21
22
|
export declare const strikeSampleChoice: (client: ApolloClient<any>, id: number, striked: number[]) => void;
|
|
22
23
|
export declare const toggleSampleFlaggedState: (client: ApolloClient<any>, markId: number, flagged: boolean) => void;
|
|
24
|
+
export declare const SUBMIT_SAMPLE_QUIZ_REPORT: import("@apollo/client").DocumentNode;
|
|
25
|
+
export interface ISubmitSampleQuizReportVar {
|
|
26
|
+
input: ISubmitSampleQuizReportInput;
|
|
27
|
+
}
|
|
28
|
+
export type ISubmitSampleQuizReportData = RootData<string, 'submitSampleQuizReport'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toggleSampleFlaggedState = exports.strikeSampleChoice = exports.startSampleStationTimer = exports.handleSampleQuestionHighlights = exports.handleSampleChapterHighlights = exports.endSampleStation = exports.endSampleMarksheet = exports.checkSampleOsceMark = exports.MARK_OSCE_MARK_FRAGMENT = exports.changeSampleQuestion = exports.saveSampleTodoMark = exports.saveSampleMarksheets = void 0;
|
|
3
|
+
exports.SUBMIT_SAMPLE_QUIZ_REPORT = exports.toggleSampleFlaggedState = exports.strikeSampleChoice = exports.startSampleStationTimer = exports.handleSampleQuestionHighlights = exports.handleSampleChapterHighlights = exports.endSampleStation = exports.endSampleMarksheet = exports.checkSampleOsceMark = exports.MARK_OSCE_MARK_FRAGMENT = exports.changeSampleQuestion = exports.saveSampleTodoMark = exports.saveSampleMarksheets = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const fragments_1 = require("../fragments");
|
|
6
6
|
const marksheet_1 = require("../fragments/marksheet");
|
|
@@ -259,3 +259,8 @@ const toggleSampleFlaggedState = (client, markId, flagged) => {
|
|
|
259
259
|
});
|
|
260
260
|
};
|
|
261
261
|
exports.toggleSampleFlaggedState = toggleSampleFlaggedState;
|
|
262
|
+
exports.SUBMIT_SAMPLE_QUIZ_REPORT = (0, client_1.gql) `
|
|
263
|
+
mutation SubmitSampleQuizReport($input: SubmitSampleQuizReportInput!) {
|
|
264
|
+
submitSampleQuizReport(input: $input)
|
|
265
|
+
}
|
|
266
|
+
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IMarksheet, IOsceMarksheet, ITodo } from '../../models';
|
|
1
|
+
import { IMarksheet, IOsceMarksheet, ISampleQuizReport, ITodo } from '../../models';
|
|
2
2
|
import { RootData, graphqlNormalize } from '../types';
|
|
3
3
|
export declare const SAMPLE_CONTENT: import("@apollo/client").DocumentNode;
|
|
4
4
|
export type ISampleContentVar = null;
|
|
@@ -23,4 +23,9 @@ export interface ISampleOsceMarksheetVar {
|
|
|
23
23
|
osceMarksheetId: number;
|
|
24
24
|
}
|
|
25
25
|
export type ISampleOsceMarksheetData = RootData<graphqlNormalize & IOsceMarksheet, 'sampleOsceMarksheet'>;
|
|
26
|
+
export declare const SAMPLE_QUIZ_REPORT: import("@apollo/client").DocumentNode;
|
|
27
|
+
export interface ISampleQuizReportVar {
|
|
28
|
+
reportId: string;
|
|
29
|
+
}
|
|
30
|
+
export type ISampleQuizReportData = RootData<graphqlNormalize & ISampleQuizReport, 'sampleQuizReport'>;
|
|
26
31
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SAMPLE_OSCE_MARKSHEET = exports.SAMPLE_TODO = exports.SAMPLE_MARKSHEET = exports.SAMPLE_CONTENT = void 0;
|
|
3
|
+
exports.SAMPLE_QUIZ_REPORT = exports.SAMPLE_OSCE_MARKSHEET = exports.SAMPLE_TODO = exports.SAMPLE_MARKSHEET = exports.SAMPLE_CONTENT = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const fragments_1 = require("../fragments");
|
|
6
6
|
exports.SAMPLE_CONTENT = (0, client_1.gql) `
|
|
@@ -102,3 +102,46 @@ exports.SAMPLE_OSCE_MARKSHEET = (0, client_1.gql) `
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
`;
|
|
105
|
+
exports.SAMPLE_QUIZ_REPORT = (0, client_1.gql) `
|
|
106
|
+
query SampleQuizReport($reportId: UUID!) {
|
|
107
|
+
sampleQuizReport(reportId: $reportId) {
|
|
108
|
+
id
|
|
109
|
+
paperLength
|
|
110
|
+
attempted
|
|
111
|
+
marksheetId
|
|
112
|
+
productId
|
|
113
|
+
correct
|
|
114
|
+
scorePercentage
|
|
115
|
+
coverageTier
|
|
116
|
+
band
|
|
117
|
+
headline
|
|
118
|
+
summary
|
|
119
|
+
strengths
|
|
120
|
+
weaknesses
|
|
121
|
+
highYieldFacts {
|
|
122
|
+
topic
|
|
123
|
+
concept
|
|
124
|
+
fact
|
|
125
|
+
whyItMatters
|
|
126
|
+
}
|
|
127
|
+
topicBreakdown {
|
|
128
|
+
topic
|
|
129
|
+
correct
|
|
130
|
+
attempted
|
|
131
|
+
percentage
|
|
132
|
+
eligible
|
|
133
|
+
}
|
|
134
|
+
marks {
|
|
135
|
+
id
|
|
136
|
+
result
|
|
137
|
+
questionChoiceId
|
|
138
|
+
mark
|
|
139
|
+
timeTaken
|
|
140
|
+
}
|
|
141
|
+
recommendedFocus
|
|
142
|
+
createdAt
|
|
143
|
+
promoCode
|
|
144
|
+
promoExpiresAt
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
`;
|