@quesmed/types 2.6.294 → 2.6.296
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 +2 -0
- package/dist/cjs/models/SampleQuizReport.d.ts +1 -0
- package/dist/cjs/models/Tutor.d.ts +131 -0
- package/dist/cjs/models/Tutor.js +36 -0
- package/dist/cjs/models/Ukmla2026.d.ts +45 -0
- package/dist/cjs/models/Ukmla2026.js +9 -0
- package/dist/cjs/models/index.d.ts +2 -0
- package/dist/cjs/models/index.js +2 -0
- package/dist/cjs/resolvers/fragments/index.d.ts +1 -0
- package/dist/cjs/resolvers/fragments/index.js +1 -0
- package/dist/cjs/resolvers/fragments/tutor.d.ts +4 -0
- package/dist/cjs/resolvers/fragments/tutor.js +80 -0
- package/dist/cjs/resolvers/mutation/restricted/index.d.ts +1 -0
- package/dist/cjs/resolvers/mutation/restricted/index.js +1 -0
- package/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +2 -6
- package/dist/cjs/resolvers/mutation/restricted/mockTest.d.ts +1 -0
- package/dist/cjs/resolvers/mutation/restricted/tutor.d.ts +33 -0
- package/dist/cjs/resolvers/mutation/restricted/tutor.js +75 -0
- package/dist/cjs/resolvers/mutation/sample.d.ts +8 -1
- package/dist/cjs/resolvers/mutation/sample.js +16 -1
- package/dist/cjs/resolvers/query/restricted/index.d.ts +2 -0
- package/dist/cjs/resolvers/query/restricted/index.js +2 -0
- package/dist/cjs/resolvers/query/restricted/tutor.d.ts +16 -0
- package/dist/cjs/resolvers/query/restricted/tutor.js +28 -0
- package/dist/cjs/resolvers/query/restricted/ukmla2026.d.ts +19 -0
- package/dist/cjs/resolvers/query/restricted/ukmla2026.js +87 -0
- package/dist/cjs/resolvers/query/sample.d.ts +1 -0
- package/dist/cjs/resolvers/query/sample.js +2 -2
- package/dist/mjs/models/Marksheet.d.ts +2 -0
- package/dist/mjs/models/SampleQuizReport.d.ts +1 -0
- package/dist/mjs/models/Tutor.d.ts +131 -0
- package/dist/mjs/models/Tutor.js +33 -0
- package/dist/mjs/models/Ukmla2026.d.ts +45 -0
- package/dist/mjs/models/Ukmla2026.js +6 -0
- package/dist/mjs/models/index.d.ts +2 -0
- package/dist/mjs/models/index.js +2 -0
- package/dist/mjs/resolvers/fragments/index.d.ts +1 -0
- package/dist/mjs/resolvers/fragments/index.js +1 -0
- package/dist/mjs/resolvers/fragments/tutor.d.ts +4 -0
- package/dist/mjs/resolvers/fragments/tutor.js +77 -0
- package/dist/mjs/resolvers/mutation/restricted/index.d.ts +1 -0
- package/dist/mjs/resolvers/mutation/restricted/index.js +1 -0
- package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +2 -6
- package/dist/mjs/resolvers/mutation/restricted/mockTest.d.ts +1 -0
- package/dist/mjs/resolvers/mutation/restricted/tutor.d.ts +33 -0
- package/dist/mjs/resolvers/mutation/restricted/tutor.js +72 -0
- package/dist/mjs/resolvers/mutation/sample.d.ts +8 -1
- package/dist/mjs/resolvers/mutation/sample.js +15 -0
- package/dist/mjs/resolvers/query/restricted/index.d.ts +2 -0
- package/dist/mjs/resolvers/query/restricted/index.js +2 -0
- package/dist/mjs/resolvers/query/restricted/tutor.d.ts +16 -0
- package/dist/mjs/resolvers/query/restricted/tutor.js +25 -0
- package/dist/mjs/resolvers/query/restricted/ukmla2026.d.ts +19 -0
- package/dist/mjs/resolvers/query/restricted/ukmla2026.js +84 -0
- package/dist/mjs/resolvers/query/sample.d.ts +1 -0
- package/dist/mjs/resolvers/query/sample.js +2 -2
- package/package.json +1 -1
|
@@ -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,8 @@ export * from './replication';
|
|
|
18
18
|
export * from './station';
|
|
19
19
|
export * from './todos';
|
|
20
20
|
export * from './topics';
|
|
21
|
+
export * from './tutor';
|
|
22
|
+
export * from './ukmla2026';
|
|
21
23
|
export * from './ukmlaTopics';
|
|
22
24
|
export * from './university';
|
|
23
25
|
export * from './user';
|
|
@@ -18,6 +18,8 @@ export * from './replication';
|
|
|
18
18
|
export * from './station';
|
|
19
19
|
export * from './todos';
|
|
20
20
|
export * from './topics';
|
|
21
|
+
export * from './tutor';
|
|
22
|
+
export * from './ukmla2026';
|
|
21
23
|
export * from './ukmlaTopics';
|
|
22
24
|
export * from './university';
|
|
23
25
|
export * from './user';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Id, ITutorConversation } from '../../../models';
|
|
2
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
|
+
export declare const TUTOR_CONVERSATION: import("@apollo/client").DocumentNode;
|
|
4
|
+
export interface ITutorConversationVar {
|
|
5
|
+
marksheetId: Id;
|
|
6
|
+
questionId: Id;
|
|
7
|
+
}
|
|
8
|
+
export type ITutorConversationData = RestrictedData<(graphqlNormalize & ITutorConversation) | null, 'tutorConversation'>;
|
|
9
|
+
export declare const MARKSHEET_CHATS: import("@apollo/client").DocumentNode;
|
|
10
|
+
export interface IMarksheetChatsVar {
|
|
11
|
+
id: Id;
|
|
12
|
+
}
|
|
13
|
+
export type IMarksheetChatsData = RestrictedData<{
|
|
14
|
+
id: Id;
|
|
15
|
+
chats: (graphqlNormalize & ITutorConversation)[];
|
|
16
|
+
}, 'marksheet'>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { TUTOR_CONVERSATION_FIELDS } from '../../fragments/tutor';
|
|
3
|
+
export const TUTOR_CONVERSATION = gql `
|
|
4
|
+
${TUTOR_CONVERSATION_FIELDS}
|
|
5
|
+
query TutorConversation($marksheetId: Int!, $questionId: Int!) {
|
|
6
|
+
restricted {
|
|
7
|
+
tutorConversation(marksheetId: $marksheetId, questionId: $questionId) {
|
|
8
|
+
...TutorConversationFields
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
13
|
+
export const MARKSHEET_CHATS = gql `
|
|
14
|
+
${TUTOR_CONVERSATION_FIELDS}
|
|
15
|
+
query MarksheetChats($id: Int!) {
|
|
16
|
+
restricted {
|
|
17
|
+
marksheet(id: $id) {
|
|
18
|
+
id
|
|
19
|
+
chats {
|
|
20
|
+
...TutorConversationFields
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EDifficultyType, IUkmla2026BodySystem, IUkmla2026PresentationLetter, 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 type IUkmla2026PresentationsData = RestrictedData<(graphqlNormalize & IUkmla2026PresentationLetter)[], 'ukmlaPresentations'>;
|
|
7
|
+
export declare const UKMLA_2026_PRESENTATIONS: import("@apollo/client").DocumentNode;
|
|
8
|
+
export interface IPreBuildUkmla2026MarksheetVar {
|
|
9
|
+
bodySystemIds?: number[];
|
|
10
|
+
conditionIds?: number[];
|
|
11
|
+
presentationIds?: number[];
|
|
12
|
+
search?: string;
|
|
13
|
+
marksheetId?: Id;
|
|
14
|
+
source: string;
|
|
15
|
+
difficulty?: EDifficultyType[];
|
|
16
|
+
useAI?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export type IPreBuildUkmla2026MarksheetData = RestrictedData<graphqlNormalize & IPreBuildMarksheet, 'preBuildUkmla2026Marksheet'>;
|
|
19
|
+
export declare const PRE_BUILD_UKMLA_2026_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
@@ -0,0 +1,84 @@
|
|
|
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 UKMLA_2026_PRESENTATIONS = gql `
|
|
34
|
+
query Ukmla2026Presentations {
|
|
35
|
+
restricted {
|
|
36
|
+
ukmlaPresentations {
|
|
37
|
+
letter
|
|
38
|
+
totalQuestions
|
|
39
|
+
correctQuestions
|
|
40
|
+
incorrectQuestions
|
|
41
|
+
presentations {
|
|
42
|
+
id
|
|
43
|
+
name
|
|
44
|
+
changeType
|
|
45
|
+
legacyNames
|
|
46
|
+
questionIds
|
|
47
|
+
totalQuestions
|
|
48
|
+
correctQuestions
|
|
49
|
+
incorrectQuestions
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
export const PRE_BUILD_UKMLA_2026_MARKSHEET = gql `
|
|
56
|
+
query PreBuildUkmla2026Marksheet(
|
|
57
|
+
$bodySystemIds: [Int!]
|
|
58
|
+
$conditionIds: [Int!]
|
|
59
|
+
$presentationIds: [Int!]
|
|
60
|
+
$source: String!
|
|
61
|
+
$search: String
|
|
62
|
+
$marksheetId: Int
|
|
63
|
+
$difficulty: [Int!]
|
|
64
|
+
$useAI: Boolean
|
|
65
|
+
) {
|
|
66
|
+
restricted {
|
|
67
|
+
preBuildUkmla2026Marksheet(
|
|
68
|
+
bodySystemIds: $bodySystemIds
|
|
69
|
+
conditionIds: $conditionIds
|
|
70
|
+
presentationIds: $presentationIds
|
|
71
|
+
source: $source
|
|
72
|
+
search: $search
|
|
73
|
+
marksheetId: $marksheetId
|
|
74
|
+
difficulty: $difficulty
|
|
75
|
+
useAI: $useAI
|
|
76
|
+
) {
|
|
77
|
+
unseen
|
|
78
|
+
seenCorrect
|
|
79
|
+
seenIncorrect
|
|
80
|
+
buildRef
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
@@ -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
|
}
|