@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.
Files changed (57) hide show
  1. package/dist/cjs/models/Marksheet.d.ts +2 -0
  2. package/dist/cjs/models/SampleQuizReport.d.ts +1 -0
  3. package/dist/cjs/models/Tutor.d.ts +131 -0
  4. package/dist/cjs/models/Tutor.js +36 -0
  5. package/dist/cjs/models/Ukmla2026.d.ts +45 -0
  6. package/dist/cjs/models/Ukmla2026.js +9 -0
  7. package/dist/cjs/models/index.d.ts +2 -0
  8. package/dist/cjs/models/index.js +2 -0
  9. package/dist/cjs/resolvers/fragments/index.d.ts +1 -0
  10. package/dist/cjs/resolvers/fragments/index.js +1 -0
  11. package/dist/cjs/resolvers/fragments/tutor.d.ts +4 -0
  12. package/dist/cjs/resolvers/fragments/tutor.js +80 -0
  13. package/dist/cjs/resolvers/mutation/restricted/index.d.ts +1 -0
  14. package/dist/cjs/resolvers/mutation/restricted/index.js +1 -0
  15. package/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +2 -6
  16. package/dist/cjs/resolvers/mutation/restricted/mockTest.d.ts +1 -0
  17. package/dist/cjs/resolvers/mutation/restricted/tutor.d.ts +33 -0
  18. package/dist/cjs/resolvers/mutation/restricted/tutor.js +75 -0
  19. package/dist/cjs/resolvers/mutation/sample.d.ts +8 -1
  20. package/dist/cjs/resolvers/mutation/sample.js +16 -1
  21. package/dist/cjs/resolvers/query/restricted/index.d.ts +2 -0
  22. package/dist/cjs/resolvers/query/restricted/index.js +2 -0
  23. package/dist/cjs/resolvers/query/restricted/tutor.d.ts +16 -0
  24. package/dist/cjs/resolvers/query/restricted/tutor.js +28 -0
  25. package/dist/cjs/resolvers/query/restricted/ukmla2026.d.ts +19 -0
  26. package/dist/cjs/resolvers/query/restricted/ukmla2026.js +87 -0
  27. package/dist/cjs/resolvers/query/sample.d.ts +1 -0
  28. package/dist/cjs/resolvers/query/sample.js +2 -2
  29. package/dist/mjs/models/Marksheet.d.ts +2 -0
  30. package/dist/mjs/models/SampleQuizReport.d.ts +1 -0
  31. package/dist/mjs/models/Tutor.d.ts +131 -0
  32. package/dist/mjs/models/Tutor.js +33 -0
  33. package/dist/mjs/models/Ukmla2026.d.ts +45 -0
  34. package/dist/mjs/models/Ukmla2026.js +6 -0
  35. package/dist/mjs/models/index.d.ts +2 -0
  36. package/dist/mjs/models/index.js +2 -0
  37. package/dist/mjs/resolvers/fragments/index.d.ts +1 -0
  38. package/dist/mjs/resolvers/fragments/index.js +1 -0
  39. package/dist/mjs/resolvers/fragments/tutor.d.ts +4 -0
  40. package/dist/mjs/resolvers/fragments/tutor.js +77 -0
  41. package/dist/mjs/resolvers/mutation/restricted/index.d.ts +1 -0
  42. package/dist/mjs/resolvers/mutation/restricted/index.js +1 -0
  43. package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +2 -6
  44. package/dist/mjs/resolvers/mutation/restricted/mockTest.d.ts +1 -0
  45. package/dist/mjs/resolvers/mutation/restricted/tutor.d.ts +33 -0
  46. package/dist/mjs/resolvers/mutation/restricted/tutor.js +72 -0
  47. package/dist/mjs/resolvers/mutation/sample.d.ts +8 -1
  48. package/dist/mjs/resolvers/mutation/sample.js +15 -0
  49. package/dist/mjs/resolvers/query/restricted/index.d.ts +2 -0
  50. package/dist/mjs/resolvers/query/restricted/index.js +2 -0
  51. package/dist/mjs/resolvers/query/restricted/tutor.d.ts +16 -0
  52. package/dist/mjs/resolvers/query/restricted/tutor.js +25 -0
  53. package/dist/mjs/resolvers/query/restricted/ukmla2026.d.ts +19 -0
  54. package/dist/mjs/resolvers/query/restricted/ukmla2026.js +84 -0
  55. package/dist/mjs/resolvers/query/sample.d.ts +1 -0
  56. package/dist/mjs/resolvers/query/sample.js +2 -2
  57. package/package.json +1 -1
@@ -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,87 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRE_BUILD_UKMLA_2026_MARKSHEET = exports.UKMLA_2026_PRESENTATIONS = 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.UKMLA_2026_PRESENTATIONS = (0, client_1.gql) `
37
+ query Ukmla2026Presentations {
38
+ restricted {
39
+ ukmlaPresentations {
40
+ letter
41
+ totalQuestions
42
+ correctQuestions
43
+ incorrectQuestions
44
+ presentations {
45
+ id
46
+ name
47
+ changeType
48
+ legacyNames
49
+ questionIds
50
+ totalQuestions
51
+ correctQuestions
52
+ incorrectQuestions
53
+ }
54
+ }
55
+ }
56
+ }
57
+ `;
58
+ exports.PRE_BUILD_UKMLA_2026_MARKSHEET = (0, client_1.gql) `
59
+ query PreBuildUkmla2026Marksheet(
60
+ $bodySystemIds: [Int!]
61
+ $conditionIds: [Int!]
62
+ $presentationIds: [Int!]
63
+ $source: String!
64
+ $search: String
65
+ $marksheetId: Int
66
+ $difficulty: [Int!]
67
+ $useAI: Boolean
68
+ ) {
69
+ restricted {
70
+ preBuildUkmla2026Marksheet(
71
+ bodySystemIds: $bodySystemIds
72
+ conditionIds: $conditionIds
73
+ presentationIds: $presentationIds
74
+ source: $source
75
+ search: $search
76
+ marksheetId: $marksheetId
77
+ difficulty: $difficulty
78
+ useAI: $useAI
79
+ ) {
80
+ unseen
81
+ seenCorrect
82
+ seenIncorrect
83
+ buildRef
84
+ }
85
+ }
86
+ }
87
+ `;
@@ -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
  }
@@ -3,6 +3,7 @@ import { IMockTest } from './MockTest';
3
3
  import { EEntitlementType, EProductType, IEntitlement } from './Product';
4
4
  import { IPrescribeMark, IQuestion, IQuestionChoice, IQuestionQAAnswer } from './Question';
5
5
  import { ETopicType } from './Topic';
6
+ import { ITutorConversation } from './Tutor';
6
7
  import { Id } from './Type';
7
8
  import { IUser } from './User';
8
9
  export declare enum EMarksheetState {
@@ -124,6 +125,7 @@ export interface IMarksheet {
124
125
  preBuildData?: IPreBuildMarksheet;
125
126
  builderConfig?: IBuildConfigData;
126
127
  entitlementId: EProductType | EEntitlementType;
128
+ chats?: ITutorConversation[];
127
129
  }
128
130
  export type IMarksheetMarkJSONB = string | [string] | string[] | [IQuestionQAAnswer] | [string[], string[]] | [IPrescribeMark] | [string, string, string] | [string, string] | [string, string][] | null;
129
131
  export declare enum EMarkResult {
@@ -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,131 @@
1
+ import { Id } from './Type';
2
+ export declare enum ETutorPhase {
3
+ PRE_ANSWER = "PRE_ANSWER",
4
+ POST_ANSWER = "POST_ANSWER"
5
+ }
6
+ export declare enum ETutorPreset {
7
+ NONE = "NONE",
8
+ STUDY_MODE = "STUDY_MODE",
9
+ SOCRATIC = "SOCRATIC",
10
+ EXAM_TECHNIQUE = "EXAM_TECHNIQUE",
11
+ ELI5 = "ELI5"
12
+ }
13
+ export declare enum ETutorRating {
14
+ LIKE = "LIKE",
15
+ DISLIKE = "DISLIKE"
16
+ }
17
+ export declare enum ETutorBlockType {
18
+ TEXT = "TEXT",
19
+ QUIZ = "QUIZ",
20
+ HINT = "HINT",
21
+ FOLLOW_UP = "FOLLOW_UP"
22
+ }
23
+ export declare enum ETutorResourceType {
24
+ QUIZ_QUESTION = "quiz_question",
25
+ QUESBOOK = "quesbook",
26
+ VIDEO = "video",
27
+ IMAGE = "image",
28
+ EXTERNAL = "external"
29
+ }
30
+ export type TTutorRole = 'human' | 'ai' | 'system';
31
+ export interface ITutorOption {
32
+ id: string;
33
+ label: string;
34
+ }
35
+ export interface ITutorQuizResult {
36
+ selectedOptionId: string | null;
37
+ correctOptionId: string | null;
38
+ correct: boolean | null;
39
+ rationale: string | null;
40
+ answeredAt: number | Date | null;
41
+ }
42
+ export interface ITutorHint {
43
+ id: string;
44
+ text: string | null;
45
+ revealedAt: number | Date | null;
46
+ }
47
+ export interface ITutorFeedback {
48
+ rating: number | null;
49
+ categories: string[] | null;
50
+ comment: string | null;
51
+ submittedAt: number | Date | null;
52
+ }
53
+ export interface ITutorFeedbackInput {
54
+ rating?: number;
55
+ categories?: string[];
56
+ comment?: string;
57
+ }
58
+ export interface ITutorResource {
59
+ type: ETutorResourceType | string;
60
+ title: string;
61
+ url: string | null;
62
+ summary: string | null;
63
+ }
64
+ export interface ITutorBlock {
65
+ type: ETutorBlockType;
66
+ content?: string | null;
67
+ blockId?: string | null;
68
+ prompt?: string | null;
69
+ options?: ITutorOption[] | null;
70
+ result?: ITutorQuizResult | null;
71
+ hints?: ITutorHint[] | null;
72
+ followUps?: ITutorOption[] | null;
73
+ data?: Record<string, unknown> | null;
74
+ }
75
+ export interface ITutorMessage {
76
+ id: Id;
77
+ conversationId: Id;
78
+ role: TTutorRole;
79
+ phase: ETutorPhase | null;
80
+ preset: ETutorPreset | null;
81
+ blocks: ITutorBlock[];
82
+ rating: ETutorRating | null;
83
+ ratedAt: number | Date | null;
84
+ createdAt: number | Date;
85
+ }
86
+ export interface ITutorConversation {
87
+ id: Id;
88
+ title: string | null;
89
+ marksheetId: Id | null;
90
+ questionId: Id | null;
91
+ resources: ITutorResource[];
92
+ messages: ITutorMessage[];
93
+ feedback: ITutorFeedback | null;
94
+ lastActivityAt: number | Date | null;
95
+ createdAt: number | Date;
96
+ }
97
+ export interface ITutorSendMessageBody {
98
+ marksheetId: number;
99
+ questionId: number;
100
+ message: string;
101
+ preset?: ETutorPreset;
102
+ followUpId?: string;
103
+ }
104
+ export type ITutorEvent = {
105
+ type: 'MESSAGE_START';
106
+ conversationId: number;
107
+ } | {
108
+ type: 'BLOCK_START';
109
+ blockIndex: number;
110
+ blockType: ETutorBlockType;
111
+ blockId?: string;
112
+ } | {
113
+ type: 'TEXT_DELTA';
114
+ blockIndex: number;
115
+ content: string;
116
+ openMarkup: string | null;
117
+ } | {
118
+ type: 'BLOCK_DATA';
119
+ blockIndex: number;
120
+ block: ITutorBlock;
121
+ } | {
122
+ type: 'BLOCK_STOP';
123
+ blockIndex: number;
124
+ } | {
125
+ type: 'MESSAGE_END';
126
+ messageId: string;
127
+ message: ITutorMessage;
128
+ } | {
129
+ type: 'ERROR';
130
+ message: string;
131
+ };
@@ -0,0 +1,33 @@
1
+ export var ETutorPhase;
2
+ (function (ETutorPhase) {
3
+ ETutorPhase["PRE_ANSWER"] = "PRE_ANSWER";
4
+ ETutorPhase["POST_ANSWER"] = "POST_ANSWER";
5
+ })(ETutorPhase || (ETutorPhase = {}));
6
+ export var ETutorPreset;
7
+ (function (ETutorPreset) {
8
+ ETutorPreset["NONE"] = "NONE";
9
+ ETutorPreset["STUDY_MODE"] = "STUDY_MODE";
10
+ ETutorPreset["SOCRATIC"] = "SOCRATIC";
11
+ ETutorPreset["EXAM_TECHNIQUE"] = "EXAM_TECHNIQUE";
12
+ ETutorPreset["ELI5"] = "ELI5";
13
+ })(ETutorPreset || (ETutorPreset = {}));
14
+ export var ETutorRating;
15
+ (function (ETutorRating) {
16
+ ETutorRating["LIKE"] = "LIKE";
17
+ ETutorRating["DISLIKE"] = "DISLIKE";
18
+ })(ETutorRating || (ETutorRating = {}));
19
+ export var ETutorBlockType;
20
+ (function (ETutorBlockType) {
21
+ ETutorBlockType["TEXT"] = "TEXT";
22
+ ETutorBlockType["QUIZ"] = "QUIZ";
23
+ ETutorBlockType["HINT"] = "HINT";
24
+ ETutorBlockType["FOLLOW_UP"] = "FOLLOW_UP";
25
+ })(ETutorBlockType || (ETutorBlockType = {}));
26
+ export var ETutorResourceType;
27
+ (function (ETutorResourceType) {
28
+ ETutorResourceType["QUIZ_QUESTION"] = "quiz_question";
29
+ ETutorResourceType["QUESBOOK"] = "quesbook";
30
+ ETutorResourceType["VIDEO"] = "video";
31
+ ETutorResourceType["IMAGE"] = "image";
32
+ ETutorResourceType["EXTERNAL"] = "external";
33
+ })(ETutorResourceType || (ETutorResourceType = {}));
@@ -0,0 +1,45 @@
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
+ }
29
+ export interface IUkmla2026PresentationLetter {
30
+ letter: string;
31
+ presentations?: IUkmla2026Presentation[];
32
+ totalQuestions?: number | null;
33
+ correctQuestions?: number | null;
34
+ incorrectQuestions?: number | null;
35
+ }
36
+ export interface IUkmla2026Presentation {
37
+ id: Id;
38
+ name: string;
39
+ changeType: EUkmla2026ChangeType;
40
+ legacyNames?: string[];
41
+ questionIds?: number[];
42
+ totalQuestions?: number | null;
43
+ correctQuestions?: number | null;
44
+ incorrectQuestions?: number | null;
45
+ }
@@ -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 = {}));
@@ -35,7 +35,9 @@ export * from './Todo';
35
35
  export * from './Token';
36
36
  export * from './Topic';
37
37
  export * from './Type';
38
+ export * from './Tutor';
38
39
  export * from './Ucat';
40
+ export * from './Ukmla2026';
39
41
  export * from './UkmlaTopic';
40
42
  export * from './University';
41
43
  export * from './User';
@@ -35,7 +35,9 @@ export * from './Todo';
35
35
  export * from './Token';
36
36
  export * from './Topic';
37
37
  export * from './Type';
38
+ export * from './Tutor';
38
39
  export * from './Ucat';
40
+ export * from './Ukmla2026';
39
41
  export * from './UkmlaTopic';
40
42
  export * from './University';
41
43
  export * from './User';
@@ -9,5 +9,6 @@ export * from './osce';
9
9
  export * from './picture';
10
10
  export * from './question';
11
11
  export * from './topic';
12
+ export * from './tutor';
12
13
  export * from './user';
13
14
  export * from './video';
@@ -9,5 +9,6 @@ export * from './osce';
9
9
  export * from './picture';
10
10
  export * from './question';
11
11
  export * from './topic';
12
+ export * from './tutor';
12
13
  export * from './user';
13
14
  export * from './video';
@@ -0,0 +1,4 @@
1
+ export declare const TUTOR_OPTION_FIELDS: import("@apollo/client").DocumentNode;
2
+ export declare const TUTOR_BLOCK_FIELDS: import("@apollo/client").DocumentNode;
3
+ export declare const TUTOR_MESSAGE_FIELDS: import("@apollo/client").DocumentNode;
4
+ export declare const TUTOR_CONVERSATION_FIELDS: import("@apollo/client").DocumentNode;
@@ -0,0 +1,77 @@
1
+ import { gql } from '@apollo/client';
2
+ export const TUTOR_OPTION_FIELDS = gql `
3
+ fragment TutorOptionFields on TutorOption {
4
+ id
5
+ label
6
+ }
7
+ `;
8
+ export const TUTOR_BLOCK_FIELDS = gql `
9
+ ${TUTOR_OPTION_FIELDS}
10
+ fragment TutorBlockFields on TutorBlock {
11
+ type
12
+ content
13
+ blockId
14
+ prompt
15
+ options {
16
+ ...TutorOptionFields
17
+ }
18
+ result {
19
+ selectedOptionId
20
+ correctOptionId
21
+ correct
22
+ rationale
23
+ answeredAt
24
+ }
25
+ hints {
26
+ id
27
+ text
28
+ revealedAt
29
+ }
30
+ followUps {
31
+ ...TutorOptionFields
32
+ }
33
+ data
34
+ }
35
+ `;
36
+ export const TUTOR_MESSAGE_FIELDS = gql `
37
+ ${TUTOR_BLOCK_FIELDS}
38
+ fragment TutorMessageFields on TutorMessage {
39
+ id
40
+ conversationId
41
+ role
42
+ phase
43
+ preset
44
+ blocks {
45
+ ...TutorBlockFields
46
+ }
47
+ rating
48
+ ratedAt
49
+ createdAt
50
+ }
51
+ `;
52
+ export const TUTOR_CONVERSATION_FIELDS = gql `
53
+ ${TUTOR_MESSAGE_FIELDS}
54
+ fragment TutorConversationFields on TutorConversation {
55
+ id
56
+ title
57
+ marksheetId
58
+ questionId
59
+ resources {
60
+ type
61
+ title
62
+ url
63
+ summary
64
+ }
65
+ messages {
66
+ ...TutorMessageFields
67
+ }
68
+ feedback {
69
+ rating
70
+ categories
71
+ comment
72
+ submittedAt
73
+ }
74
+ lastActivityAt
75
+ createdAt
76
+ }
77
+ `;
@@ -14,5 +14,6 @@ export * from './station';
14
14
  export * from './stripe';
15
15
  export * from './todo';
16
16
  export * from './token';
17
+ export * from './tutor';
17
18
  export * from './users';
18
19
  export * from './video';
@@ -14,5 +14,6 @@ export * from './station';
14
14
  export * from './stripe';
15
15
  export * from './todo';
16
16
  export * from './token';
17
+ export * from './tutor';
17
18
  export * from './users';
18
19
  export * from './video';
@@ -179,9 +179,6 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
179
179
  startedAt: number | Date;
180
180
  type: import("../../../models").EMarksheetType;
181
181
  endedAt: number | Date;
182
- /**
183
- * reBuildMarksheet
184
- */
185
182
  typeId: import("../../../models").ETopicType;
186
183
  entitlement: import("../../../models").IEntitlement;
187
184
  topicIds: number[];
@@ -213,6 +210,7 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
213
210
  topicConceptData?: string | undefined;
214
211
  preBuildData?: IPreBuildMarksheet | undefined;
215
212
  entitlementId: EEntitlementType | import("../../../models").EProductType;
213
+ chats?: import("../../../models").ITutorConversation[] | undefined;
216
214
  };
217
215
  };
218
216
  };
@@ -287,9 +285,6 @@ export declare const optimisticEndMarksheet: (marksheet: IMarksheet) => {
287
285
  startedAt: number | Date;
288
286
  type: import("../../../models").EMarksheetType;
289
287
  endedAt: number | Date;
290
- /**
291
- * reBuildMarksheet
292
- */
293
288
  typeId: import("../../../models").ETopicType;
294
289
  entitlement: import("../../../models").IEntitlement;
295
290
  topicIds: number[];
@@ -321,6 +316,7 @@ export declare const optimisticEndMarksheet: (marksheet: IMarksheet) => {
321
316
  preBuildData?: IPreBuildMarksheet | undefined;
322
317
  builderConfig?: IBuildConfigData | undefined;
323
318
  entitlementId: EEntitlementType | import("../../../models").EProductType;
319
+ chats?: import("../../../models").ITutorConversation[] | undefined;
324
320
  __typename: string;
325
321
  };
326
322
  };
@@ -86,6 +86,7 @@ export declare const optimisticEndMockTest: (marksheet: IMarksheet) => {
86
86
  preBuildData?: import("./marksheet").IPreBuildMarksheet | undefined;
87
87
  builderConfig?: import("./marksheet").IBuildConfigData | undefined;
88
88
  entitlementId: import("../../../models").EEntitlementType | import("../../../models").EProductType;
89
+ chats?: import("../../../models").ITutorConversation[] | undefined;
89
90
  __typename: string;
90
91
  };
91
92
  };
@@ -0,0 +1,33 @@
1
+ import { ETutorRating, Id, ITutorConversation, ITutorFeedbackInput, ITutorMessage } from '../../../models';
2
+ import { graphqlNormalize, RestrictedData } from '../../types';
3
+ export declare const ANSWER_TUTOR_QUIZ: import("@apollo/client").DocumentNode;
4
+ export interface IAnswerTutorQuizVar {
5
+ messageId: Id;
6
+ blockId: string;
7
+ optionId: string;
8
+ }
9
+ export type IAnswerTutorQuizData = RestrictedData<graphqlNormalize & ITutorMessage, 'answerTutorQuiz'>;
10
+ export declare const REVEAL_TUTOR_HINT: import("@apollo/client").DocumentNode;
11
+ export interface IRevealTutorHintVar {
12
+ messageId: Id;
13
+ blockId: string;
14
+ hintId: string;
15
+ }
16
+ export type IRevealTutorHintData = RestrictedData<graphqlNormalize & ITutorMessage, 'revealTutorHint'>;
17
+ export declare const RATE_TUTOR_MESSAGE: import("@apollo/client").DocumentNode;
18
+ export interface IRateTutorMessageVar {
19
+ messageId: Id;
20
+ rating: ETutorRating | null;
21
+ }
22
+ export type IRateTutorMessageData = RestrictedData<graphqlNormalize & Pick<ITutorMessage, 'id' | 'rating' | 'ratedAt'>, 'rateTutorMessage'>;
23
+ export declare const SUBMIT_TUTOR_FEEDBACK: import("@apollo/client").DocumentNode;
24
+ export interface ISubmitTutorFeedbackVar {
25
+ conversationId: Id;
26
+ feedback: ITutorFeedbackInput;
27
+ }
28
+ export type ISubmitTutorFeedbackData = RestrictedData<graphqlNormalize & ITutorConversation, 'submitTutorFeedback'>;
29
+ export declare const DELETE_TUTOR_CONVERSATION: import("@apollo/client").DocumentNode;
30
+ export interface IDeleteTutorConversationVar {
31
+ conversationId: Id;
32
+ }
33
+ export type IDeleteTutorConversationData = RestrictedData<boolean, 'deleteTutorConversation'>;
@@ -0,0 +1,72 @@
1
+ import { gql } from '@apollo/client';
2
+ import { TUTOR_CONVERSATION_FIELDS, TUTOR_MESSAGE_FIELDS, } from '../../fragments/tutor';
3
+ export const ANSWER_TUTOR_QUIZ = gql `
4
+ ${TUTOR_MESSAGE_FIELDS}
5
+ mutation AnswerTutorQuiz(
6
+ $messageId: ID!
7
+ $blockId: String!
8
+ $optionId: String!
9
+ ) {
10
+ restricted {
11
+ answerTutorQuiz(
12
+ messageId: $messageId
13
+ blockId: $blockId
14
+ optionId: $optionId
15
+ ) {
16
+ ...TutorMessageFields
17
+ }
18
+ }
19
+ }
20
+ `;
21
+ export const REVEAL_TUTOR_HINT = gql `
22
+ ${TUTOR_MESSAGE_FIELDS}
23
+ mutation RevealTutorHint(
24
+ $messageId: ID!
25
+ $blockId: String!
26
+ $hintId: String!
27
+ ) {
28
+ restricted {
29
+ revealTutorHint(
30
+ messageId: $messageId
31
+ blockId: $blockId
32
+ hintId: $hintId
33
+ ) {
34
+ ...TutorMessageFields
35
+ }
36
+ }
37
+ }
38
+ `;
39
+ export const RATE_TUTOR_MESSAGE = gql `
40
+ mutation RateTutorMessage($messageId: ID!, $rating: TutorRating) {
41
+ restricted {
42
+ rateTutorMessage(messageId: $messageId, rating: $rating) {
43
+ id
44
+ rating
45
+ ratedAt
46
+ }
47
+ }
48
+ }
49
+ `;
50
+ export const SUBMIT_TUTOR_FEEDBACK = gql `
51
+ ${TUTOR_CONVERSATION_FIELDS}
52
+ mutation SubmitTutorFeedback(
53
+ $conversationId: Int!
54
+ $feedback: TutorFeedbackInput!
55
+ ) {
56
+ restricted {
57
+ submitTutorFeedback(
58
+ conversationId: $conversationId
59
+ feedback: $feedback
60
+ ) {
61
+ ...TutorConversationFields
62
+ }
63
+ }
64
+ }
65
+ `;
66
+ export const DELETE_TUTOR_CONVERSATION = gql `
67
+ mutation DeleteTutorConversation($conversationId: Int!) {
68
+ restricted {
69
+ deleteTutorConversation(conversationId: $conversationId)
70
+ }
71
+ }
72
+ `;
@@ -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'>;