@quesmed/types 2.6.279 → 2.6.280

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.
@@ -0,0 +1,51 @@
1
+ export { CoverageTier, PostQuizBand } from '../resolvers/enums';
2
+ export interface ISampleQuizMarkInput {
3
+ id: number;
4
+ result?: number | null;
5
+ questionChoiceId?: number | null;
6
+ mark?: string | null;
7
+ timeTaken?: number | null;
8
+ }
9
+ export interface ISubmitSampleQuizReportInput {
10
+ email: string;
11
+ marksheetId: string | number;
12
+ marks: ISampleQuizMarkInput[];
13
+ reportPath: string;
14
+ productId: number;
15
+ }
16
+ export interface ISampleQuizTopicInsight {
17
+ topic: string;
18
+ detail: string;
19
+ }
20
+ export interface ISampleQuizHighYieldFact {
21
+ topic: string;
22
+ concept: string;
23
+ fact: string;
24
+ whyItMatters: string;
25
+ }
26
+ export interface ISampleQuizTopicBreakdown {
27
+ topic: string;
28
+ correct: number;
29
+ attempted: number;
30
+ percentage: number;
31
+ eligible: boolean;
32
+ }
33
+ export interface ISampleQuizReport {
34
+ id: string;
35
+ paperLength: number;
36
+ attempted: number;
37
+ correct: number;
38
+ scorePercentage: number;
39
+ coverageTier: string;
40
+ band: string | null;
41
+ headline: string;
42
+ summary: string;
43
+ strengths: string[];
44
+ weaknesses: string[];
45
+ highYieldFacts: ISampleQuizHighYieldFact[];
46
+ topicBreakdown: ISampleQuizTopicBreakdown[];
47
+ recommendedFocus: string[];
48
+ createdAt: string | Date;
49
+ promoCode?: string | null;
50
+ promoExpiresAt?: string | Date | null;
51
+ }
@@ -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; } });
@@ -28,6 +28,7 @@ export * from './Product';
28
28
  export * from './Promo';
29
29
  export * from './Psa';
30
30
  export * from './Question';
31
+ export * from './SampleQuizReport';
31
32
  export * from './Referrals';
32
33
  export * from './Subscription';
33
34
  export * from './Todo';
@@ -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);
@@ -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
+ }
@@ -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,37 @@ 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
+ correct
112
+ scorePercentage
113
+ coverageTier
114
+ band
115
+ headline
116
+ summary
117
+ strengths
118
+ weaknesses
119
+ highYieldFacts {
120
+ topic
121
+ concept
122
+ fact
123
+ whyItMatters
124
+ }
125
+ topicBreakdown {
126
+ topic
127
+ correct
128
+ attempted
129
+ percentage
130
+ eligible
131
+ }
132
+ recommendedFocus
133
+ createdAt
134
+ promoCode
135
+ promoExpiresAt
136
+ }
137
+ }
138
+ `;
@@ -0,0 +1,51 @@
1
+ export { CoverageTier, PostQuizBand } from '../resolvers/enums';
2
+ export interface ISampleQuizMarkInput {
3
+ id: number;
4
+ result?: number | null;
5
+ questionChoiceId?: number | null;
6
+ mark?: string | null;
7
+ timeTaken?: number | null;
8
+ }
9
+ export interface ISubmitSampleQuizReportInput {
10
+ email: string;
11
+ marksheetId: string | number;
12
+ marks: ISampleQuizMarkInput[];
13
+ reportPath: string;
14
+ productId: number;
15
+ }
16
+ export interface ISampleQuizTopicInsight {
17
+ topic: string;
18
+ detail: string;
19
+ }
20
+ export interface ISampleQuizHighYieldFact {
21
+ topic: string;
22
+ concept: string;
23
+ fact: string;
24
+ whyItMatters: string;
25
+ }
26
+ export interface ISampleQuizTopicBreakdown {
27
+ topic: string;
28
+ correct: number;
29
+ attempted: number;
30
+ percentage: number;
31
+ eligible: boolean;
32
+ }
33
+ export interface ISampleQuizReport {
34
+ id: string;
35
+ paperLength: number;
36
+ attempted: number;
37
+ correct: number;
38
+ scorePercentage: number;
39
+ coverageTier: string;
40
+ band: string | null;
41
+ headline: string;
42
+ summary: string;
43
+ strengths: string[];
44
+ weaknesses: string[];
45
+ highYieldFacts: ISampleQuizHighYieldFact[];
46
+ topicBreakdown: ISampleQuizTopicBreakdown[];
47
+ recommendedFocus: string[];
48
+ createdAt: string | Date;
49
+ promoCode?: string | null;
50
+ promoExpiresAt?: string | Date | null;
51
+ }
@@ -0,0 +1 @@
1
+ export { CoverageTier, PostQuizBand } from '../resolvers/enums';
@@ -28,6 +28,7 @@ export * from './Product';
28
28
  export * from './Promo';
29
29
  export * from './Psa';
30
30
  export * from './Question';
31
+ export * from './SampleQuizReport';
31
32
  export * from './Referrals';
32
33
  export * from './Subscription';
33
34
  export * from './Todo';
@@ -28,6 +28,7 @@ export * from './Product';
28
28
  export * from './Promo';
29
29
  export * from './Psa';
30
30
  export * from './Question';
31
+ export * from './SampleQuizReport';
31
32
  export * from './Referrals';
32
33
  export * from './Subscription';
33
34
  export * from './Todo';
@@ -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
+ }
@@ -9,3 +9,17 @@ export var DB_TYPE;
9
9
  DB_TYPE[DB_TYPE["MRCP"] = 2] = "MRCP";
10
10
  DB_TYPE[DB_TYPE["UCAT"] = 3] = "UCAT";
11
11
  })(DB_TYPE || (DB_TYPE = {}));
12
+ export var CoverageTier;
13
+ (function (CoverageTier) {
14
+ CoverageTier["A"] = "A";
15
+ CoverageTier["B"] = "B";
16
+ CoverageTier["C"] = "C";
17
+ })(CoverageTier || (CoverageTier = {}));
18
+ export var PostQuizBand;
19
+ (function (PostQuizBand) {
20
+ PostQuizBand["EARLY_FOUNDATIONS"] = "EARLY_FOUNDATIONS";
21
+ PostQuizBand["BUILDING"] = "BUILDING";
22
+ PostQuizBand["MIXED"] = "MIXED";
23
+ PostQuizBand["SOLID"] = "SOLID";
24
+ PostQuizBand["STRONG"] = "STRONG";
25
+ })(PostQuizBand || (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'>;
@@ -245,3 +245,8 @@ export const toggleSampleFlaggedState = (client, markId, flagged) => {
245
245
  fragment: MARK_FLAGGED_FIELD,
246
246
  });
247
247
  };
248
+ export const SUBMIT_SAMPLE_QUIZ_REPORT = gql `
249
+ mutation SubmitSampleQuizReport($input: SubmitSampleQuizReportInput!) {
250
+ submitSampleQuizReport(input: $input)
251
+ }
252
+ `;
@@ -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 {};
@@ -99,3 +99,37 @@ export const SAMPLE_OSCE_MARKSHEET = gql `
99
99
  }
100
100
  }
101
101
  `;
102
+ export const SAMPLE_QUIZ_REPORT = gql `
103
+ query SampleQuizReport($reportId: UUID!) {
104
+ sampleQuizReport(reportId: $reportId) {
105
+ id
106
+ paperLength
107
+ attempted
108
+ correct
109
+ scorePercentage
110
+ coverageTier
111
+ band
112
+ headline
113
+ summary
114
+ strengths
115
+ weaknesses
116
+ highYieldFacts {
117
+ topic
118
+ concept
119
+ fact
120
+ whyItMatters
121
+ }
122
+ topicBreakdown {
123
+ topic
124
+ correct
125
+ attempted
126
+ percentage
127
+ eligible
128
+ }
129
+ recommendedFocus
130
+ createdAt
131
+ promoCode
132
+ promoExpiresAt
133
+ }
134
+ }
135
+ `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.279",
3
+ "version": "2.6.280",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",