@quesmed/types 2.6.294 → 2.6.295

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.
@@ -15,6 +15,7 @@ export interface ISubmitSampleQuizReportInput {
15
15
  marks: ISampleQuizMarkInput[];
16
16
  reportPath: string;
17
17
  productId: number;
18
+ refId?: string;
18
19
  }
19
20
  export interface ISampleQuizTopicInsight {
20
21
  topic: string;
@@ -0,0 +1,28 @@
1
+ import { IConcept } from './Concept';
2
+ import { Id } from './Type';
3
+ export declare enum EUkmla2026ChangeType {
4
+ UNCHANGED = 0,
5
+ RENAMED = 1,
6
+ NEW = 2
7
+ }
8
+ export interface IUkmla2026BodySystem {
9
+ id: Id;
10
+ name: string;
11
+ sortOrder: number;
12
+ conditions?: IUkmla2026Condition[];
13
+ totalQuestions?: number | null;
14
+ correctQuestions?: number | null;
15
+ incorrectQuestions?: number | null;
16
+ }
17
+ export interface IUkmla2026Condition {
18
+ id: Id;
19
+ name: string;
20
+ bodySystemId: number;
21
+ changeType: EUkmla2026ChangeType;
22
+ legacyNames?: string[];
23
+ concepts?: IConcept[];
24
+ questionIds?: number[];
25
+ totalQuestions?: number | null;
26
+ correctQuestions?: number | null;
27
+ incorrectQuestions?: number | null;
28
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EUkmla2026ChangeType = void 0;
4
+ var EUkmla2026ChangeType;
5
+ (function (EUkmla2026ChangeType) {
6
+ EUkmla2026ChangeType[EUkmla2026ChangeType["UNCHANGED"] = 0] = "UNCHANGED";
7
+ EUkmla2026ChangeType[EUkmla2026ChangeType["RENAMED"] = 1] = "RENAMED";
8
+ EUkmla2026ChangeType[EUkmla2026ChangeType["NEW"] = 2] = "NEW";
9
+ })(EUkmla2026ChangeType = exports.EUkmla2026ChangeType || (exports.EUkmla2026ChangeType = {}));
@@ -36,6 +36,7 @@ export * from './Token';
36
36
  export * from './Topic';
37
37
  export * from './Type';
38
38
  export * from './Ucat';
39
+ export * from './Ukmla2026';
39
40
  export * from './UkmlaTopic';
40
41
  export * from './University';
41
42
  export * from './User';
@@ -52,6 +52,7 @@ __exportStar(require("./Token"), exports);
52
52
  __exportStar(require("./Topic"), exports);
53
53
  __exportStar(require("./Type"), exports);
54
54
  __exportStar(require("./Ucat"), exports);
55
+ __exportStar(require("./Ukmla2026"), exports);
55
56
  __exportStar(require("./UkmlaTopic"), exports);
56
57
  __exportStar(require("./University"), exports);
57
58
  __exportStar(require("./User"), exports);
@@ -1,5 +1,5 @@
1
1
  import { ApolloClient } from '@apollo/client';
2
- import { EQuestionType, IHighlightNode, ISubmitSampleQuizReportInput } from '../../models';
2
+ import { EQuestionType, IHighlightNode, ISampleQuizMarkInput, ISubmitSampleQuizReportInput } from '../../models';
3
3
  import { RootData } from '../types';
4
4
  import { IEndOsceMarksheetVar, IMarkOsceMarksheetMarkVar, ISaveMarksheetInput, ITodoInput } from './restricted';
5
5
  export declare const saveSampleMarksheets: (client: ApolloClient<any>, marksheetInput: ISaveMarksheetInput, questionIndex: number) => void;
@@ -26,3 +26,10 @@ export interface ISubmitSampleQuizReportVar {
26
26
  input: ISubmitSampleQuizReportInput;
27
27
  }
28
28
  export type ISubmitSampleQuizReportData = RootData<string, 'submitSampleQuizReport'>;
29
+ export declare const SAVE_SAMPLE_QUIZ_MARK: import("@apollo/client").DocumentNode;
30
+ export interface ISaveSampleQuizMarkVar {
31
+ refId: string;
32
+ marksheetId: number;
33
+ mark: ISampleQuizMarkInput;
34
+ }
35
+ export type ISaveSampleQuizMarkData = RootData<ISampleQuizMarkInput, 'saveSampleQuizMark'>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.SAVE_SAMPLE_QUIZ_MARK = 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");
@@ -264,3 +264,18 @@ exports.SUBMIT_SAMPLE_QUIZ_REPORT = (0, client_1.gql) `
264
264
  submitSampleQuizReport(input: $input)
265
265
  }
266
266
  `;
267
+ exports.SAVE_SAMPLE_QUIZ_MARK = (0, client_1.gql) `
268
+ mutation SaveSampleQuizMark(
269
+ $refId: UUID!
270
+ $marksheetId: Int!
271
+ $mark: SampleQuizMarkInput!
272
+ ) {
273
+ saveSampleQuizMark(refId: $refId, marksheetId: $marksheetId, mark: $mark) {
274
+ id
275
+ result
276
+ questionChoiceId
277
+ mark
278
+ timeTaken
279
+ }
280
+ }
281
+ `;
@@ -18,6 +18,7 @@ export * from './replication';
18
18
  export * from './station';
19
19
  export * from './todos';
20
20
  export * from './topics';
21
+ export * from './ukmla2026';
21
22
  export * from './ukmlaTopics';
22
23
  export * from './university';
23
24
  export * from './user';
@@ -34,6 +34,7 @@ __exportStar(require("./replication"), exports);
34
34
  __exportStar(require("./station"), exports);
35
35
  __exportStar(require("./todos"), exports);
36
36
  __exportStar(require("./topics"), exports);
37
+ __exportStar(require("./ukmla2026"), exports);
37
38
  __exportStar(require("./ukmlaTopics"), exports);
38
39
  __exportStar(require("./university"), exports);
39
40
  __exportStar(require("./user"), exports);
@@ -0,0 +1,17 @@
1
+ import { EDifficultyType, IUkmla2026BodySystem, Id } from '../../../models';
2
+ import { IPreBuildMarksheet } from '../../mutation/restricted';
3
+ import { RestrictedData, graphqlNormalize } from '../../types';
4
+ export type IUkmla2026BodySystemsData = RestrictedData<(graphqlNormalize & IUkmla2026BodySystem)[], 'ukmlaBodySystems'>;
5
+ export declare const UKMLA_2026_BODY_SYSTEMS: import("@apollo/client").DocumentNode;
6
+ export interface IPreBuildUkmla2026MarksheetVar {
7
+ bodySystemIds?: number[];
8
+ conditionIds?: number[];
9
+ presentationIds?: number[];
10
+ search?: string;
11
+ marksheetId?: Id;
12
+ source: string;
13
+ difficulty?: EDifficultyType[];
14
+ useAI?: boolean;
15
+ }
16
+ export type IPreBuildUkmla2026MarksheetData = RestrictedData<graphqlNormalize & IPreBuildMarksheet, 'preBuildUkmla2026Marksheet'>;
17
+ export declare const PRE_BUILD_UKMLA_2026_MARKSHEET: import("@apollo/client").DocumentNode;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRE_BUILD_UKMLA_2026_MARKSHEET = exports.UKMLA_2026_BODY_SYSTEMS = void 0;
4
+ const client_1 = require("@apollo/client");
5
+ exports.UKMLA_2026_BODY_SYSTEMS = (0, client_1.gql) `
6
+ query Ukmla2026BodySystems {
7
+ restricted {
8
+ ukmlaBodySystems {
9
+ id
10
+ name
11
+ sortOrder
12
+ totalQuestions
13
+ correctQuestions
14
+ incorrectQuestions
15
+ conditions {
16
+ id
17
+ name
18
+ bodySystemId
19
+ changeType
20
+ legacyNames
21
+ questionIds
22
+ totalQuestions
23
+ correctQuestions
24
+ incorrectQuestions
25
+ concepts {
26
+ id
27
+ name
28
+ topicId
29
+ chapterId
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ `;
36
+ exports.PRE_BUILD_UKMLA_2026_MARKSHEET = (0, client_1.gql) `
37
+ query PreBuildUkmla2026Marksheet(
38
+ $bodySystemIds: [Int!]
39
+ $conditionIds: [Int!]
40
+ $presentationIds: [Int!]
41
+ $source: String!
42
+ $search: String
43
+ $marksheetId: Int
44
+ $difficulty: [Int!]
45
+ $useAI: Boolean
46
+ ) {
47
+ restricted {
48
+ preBuildUkmla2026Marksheet(
49
+ bodySystemIds: $bodySystemIds
50
+ conditionIds: $conditionIds
51
+ presentationIds: $presentationIds
52
+ source: $source
53
+ search: $search
54
+ marksheetId: $marksheetId
55
+ difficulty: $difficulty
56
+ useAI: $useAI
57
+ ) {
58
+ unseen
59
+ seenCorrect
60
+ seenIncorrect
61
+ buildRef
62
+ }
63
+ }
64
+ }
65
+ `;
@@ -11,6 +11,7 @@ export type ISampleContentData = RootData<graphqlNormalize & ISampleContent, 'sa
11
11
  export declare const SAMPLE_MARKSHEET: import("@apollo/client").DocumentNode;
12
12
  export interface ISampleMarksheetVar {
13
13
  marksheetId: number;
14
+ refId?: string;
14
15
  }
15
16
  export type ISampleMarksheetData = RootData<graphqlNormalize & IMarksheet, 'sampleMarksheet'>;
16
17
  export declare const SAMPLE_TODO: import("@apollo/client").DocumentNode;
@@ -35,8 +35,8 @@ exports.SAMPLE_CONTENT = (0, client_1.gql) `
35
35
  `;
36
36
  exports.SAMPLE_MARKSHEET = (0, client_1.gql) `
37
37
  ${fragments_1.MARKSHEET_FIELDS}
38
- query SampleMarksheet($marksheetId: Int!) {
39
- sampleMarksheet(marksheetId: $marksheetId) {
38
+ query SampleMarksheet($marksheetId: Int!, $refId: UUID) {
39
+ sampleMarksheet(marksheetId: $marksheetId, refId: $refId) {
40
40
  ...MarksheetFields
41
41
  }
42
42
  }
@@ -15,6 +15,7 @@ export interface ISubmitSampleQuizReportInput {
15
15
  marks: ISampleQuizMarkInput[];
16
16
  reportPath: string;
17
17
  productId: number;
18
+ refId?: string;
18
19
  }
19
20
  export interface ISampleQuizTopicInsight {
20
21
  topic: string;
@@ -0,0 +1,28 @@
1
+ import { IConcept } from './Concept';
2
+ import { Id } from './Type';
3
+ export declare enum EUkmla2026ChangeType {
4
+ UNCHANGED = 0,
5
+ RENAMED = 1,
6
+ NEW = 2
7
+ }
8
+ export interface IUkmla2026BodySystem {
9
+ id: Id;
10
+ name: string;
11
+ sortOrder: number;
12
+ conditions?: IUkmla2026Condition[];
13
+ totalQuestions?: number | null;
14
+ correctQuestions?: number | null;
15
+ incorrectQuestions?: number | null;
16
+ }
17
+ export interface IUkmla2026Condition {
18
+ id: Id;
19
+ name: string;
20
+ bodySystemId: number;
21
+ changeType: EUkmla2026ChangeType;
22
+ legacyNames?: string[];
23
+ concepts?: IConcept[];
24
+ questionIds?: number[];
25
+ totalQuestions?: number | null;
26
+ correctQuestions?: number | null;
27
+ incorrectQuestions?: number | null;
28
+ }
@@ -0,0 +1,6 @@
1
+ export var EUkmla2026ChangeType;
2
+ (function (EUkmla2026ChangeType) {
3
+ EUkmla2026ChangeType[EUkmla2026ChangeType["UNCHANGED"] = 0] = "UNCHANGED";
4
+ EUkmla2026ChangeType[EUkmla2026ChangeType["RENAMED"] = 1] = "RENAMED";
5
+ EUkmla2026ChangeType[EUkmla2026ChangeType["NEW"] = 2] = "NEW";
6
+ })(EUkmla2026ChangeType || (EUkmla2026ChangeType = {}));
@@ -36,6 +36,7 @@ export * from './Token';
36
36
  export * from './Topic';
37
37
  export * from './Type';
38
38
  export * from './Ucat';
39
+ export * from './Ukmla2026';
39
40
  export * from './UkmlaTopic';
40
41
  export * from './University';
41
42
  export * from './User';
@@ -36,6 +36,7 @@ export * from './Token';
36
36
  export * from './Topic';
37
37
  export * from './Type';
38
38
  export * from './Ucat';
39
+ export * from './Ukmla2026';
39
40
  export * from './UkmlaTopic';
40
41
  export * from './University';
41
42
  export * from './User';
@@ -1,5 +1,5 @@
1
1
  import { ApolloClient } from '@apollo/client';
2
- import { EQuestionType, IHighlightNode, ISubmitSampleQuizReportInput } from '../../models';
2
+ import { EQuestionType, IHighlightNode, ISampleQuizMarkInput, ISubmitSampleQuizReportInput } from '../../models';
3
3
  import { RootData } from '../types';
4
4
  import { IEndOsceMarksheetVar, IMarkOsceMarksheetMarkVar, ISaveMarksheetInput, ITodoInput } from './restricted';
5
5
  export declare const saveSampleMarksheets: (client: ApolloClient<any>, marksheetInput: ISaveMarksheetInput, questionIndex: number) => void;
@@ -26,3 +26,10 @@ export interface ISubmitSampleQuizReportVar {
26
26
  input: ISubmitSampleQuizReportInput;
27
27
  }
28
28
  export type ISubmitSampleQuizReportData = RootData<string, 'submitSampleQuizReport'>;
29
+ export declare const SAVE_SAMPLE_QUIZ_MARK: import("@apollo/client").DocumentNode;
30
+ export interface ISaveSampleQuizMarkVar {
31
+ refId: string;
32
+ marksheetId: number;
33
+ mark: ISampleQuizMarkInput;
34
+ }
35
+ export type ISaveSampleQuizMarkData = RootData<ISampleQuizMarkInput, 'saveSampleQuizMark'>;
@@ -250,3 +250,18 @@ export const SUBMIT_SAMPLE_QUIZ_REPORT = gql `
250
250
  submitSampleQuizReport(input: $input)
251
251
  }
252
252
  `;
253
+ export const SAVE_SAMPLE_QUIZ_MARK = gql `
254
+ mutation SaveSampleQuizMark(
255
+ $refId: UUID!
256
+ $marksheetId: Int!
257
+ $mark: SampleQuizMarkInput!
258
+ ) {
259
+ saveSampleQuizMark(refId: $refId, marksheetId: $marksheetId, mark: $mark) {
260
+ id
261
+ result
262
+ questionChoiceId
263
+ mark
264
+ timeTaken
265
+ }
266
+ }
267
+ `;
@@ -18,6 +18,7 @@ export * from './replication';
18
18
  export * from './station';
19
19
  export * from './todos';
20
20
  export * from './topics';
21
+ export * from './ukmla2026';
21
22
  export * from './ukmlaTopics';
22
23
  export * from './university';
23
24
  export * from './user';
@@ -18,6 +18,7 @@ export * from './replication';
18
18
  export * from './station';
19
19
  export * from './todos';
20
20
  export * from './topics';
21
+ export * from './ukmla2026';
21
22
  export * from './ukmlaTopics';
22
23
  export * from './university';
23
24
  export * from './user';
@@ -0,0 +1,17 @@
1
+ import { EDifficultyType, IUkmla2026BodySystem, Id } from '../../../models';
2
+ import { IPreBuildMarksheet } from '../../mutation/restricted';
3
+ import { RestrictedData, graphqlNormalize } from '../../types';
4
+ export type IUkmla2026BodySystemsData = RestrictedData<(graphqlNormalize & IUkmla2026BodySystem)[], 'ukmlaBodySystems'>;
5
+ export declare const UKMLA_2026_BODY_SYSTEMS: import("@apollo/client").DocumentNode;
6
+ export interface IPreBuildUkmla2026MarksheetVar {
7
+ bodySystemIds?: number[];
8
+ conditionIds?: number[];
9
+ presentationIds?: number[];
10
+ search?: string;
11
+ marksheetId?: Id;
12
+ source: string;
13
+ difficulty?: EDifficultyType[];
14
+ useAI?: boolean;
15
+ }
16
+ export type IPreBuildUkmla2026MarksheetData = RestrictedData<graphqlNormalize & IPreBuildMarksheet, 'preBuildUkmla2026Marksheet'>;
17
+ export declare const PRE_BUILD_UKMLA_2026_MARKSHEET: import("@apollo/client").DocumentNode;
@@ -0,0 +1,62 @@
1
+ import { gql } from '@apollo/client';
2
+ export const UKMLA_2026_BODY_SYSTEMS = gql `
3
+ query Ukmla2026BodySystems {
4
+ restricted {
5
+ ukmlaBodySystems {
6
+ id
7
+ name
8
+ sortOrder
9
+ totalQuestions
10
+ correctQuestions
11
+ incorrectQuestions
12
+ conditions {
13
+ id
14
+ name
15
+ bodySystemId
16
+ changeType
17
+ legacyNames
18
+ questionIds
19
+ totalQuestions
20
+ correctQuestions
21
+ incorrectQuestions
22
+ concepts {
23
+ id
24
+ name
25
+ topicId
26
+ chapterId
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
32
+ `;
33
+ export const PRE_BUILD_UKMLA_2026_MARKSHEET = gql `
34
+ query PreBuildUkmla2026Marksheet(
35
+ $bodySystemIds: [Int!]
36
+ $conditionIds: [Int!]
37
+ $presentationIds: [Int!]
38
+ $source: String!
39
+ $search: String
40
+ $marksheetId: Int
41
+ $difficulty: [Int!]
42
+ $useAI: Boolean
43
+ ) {
44
+ restricted {
45
+ preBuildUkmla2026Marksheet(
46
+ bodySystemIds: $bodySystemIds
47
+ conditionIds: $conditionIds
48
+ presentationIds: $presentationIds
49
+ source: $source
50
+ search: $search
51
+ marksheetId: $marksheetId
52
+ difficulty: $difficulty
53
+ useAI: $useAI
54
+ ) {
55
+ unseen
56
+ seenCorrect
57
+ seenIncorrect
58
+ buildRef
59
+ }
60
+ }
61
+ }
62
+ `;
@@ -11,6 +11,7 @@ export type ISampleContentData = RootData<graphqlNormalize & ISampleContent, 'sa
11
11
  export declare const SAMPLE_MARKSHEET: import("@apollo/client").DocumentNode;
12
12
  export interface ISampleMarksheetVar {
13
13
  marksheetId: number;
14
+ refId?: string;
14
15
  }
15
16
  export type ISampleMarksheetData = RootData<graphqlNormalize & IMarksheet, 'sampleMarksheet'>;
16
17
  export declare const SAMPLE_TODO: import("@apollo/client").DocumentNode;
@@ -32,8 +32,8 @@ export const SAMPLE_CONTENT = gql `
32
32
  `;
33
33
  export const SAMPLE_MARKSHEET = gql `
34
34
  ${MARKSHEET_FIELDS}
35
- query SampleMarksheet($marksheetId: Int!) {
36
- sampleMarksheet(marksheetId: $marksheetId) {
35
+ query SampleMarksheet($marksheetId: Int!, $refId: UUID) {
36
+ sampleMarksheet(marksheetId: $marksheetId, refId: $refId) {
37
37
  ...MarksheetFields
38
38
  }
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.294",
3
+ "version": "2.6.295",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",