@quesmed/types-rn 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 = {}));
package/models/index.d.ts CHANGED
@@ -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';
package/models/index.js CHANGED
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.294",
3
+ "version": "2.6.295",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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
  }