@quesmed/types 2.6.297 → 2.6.299
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/Condition.d.ts +9 -2
- package/dist/cjs/models/Presentation.d.ts +8 -2
- package/dist/cjs/models/Question.d.ts +5 -0
- package/dist/cjs/models/Tutor.d.ts +24 -0
- package/dist/cjs/models/Tutor.js +13 -1
- package/dist/cjs/models/Video.d.ts +1 -0
- package/dist/cjs/resolvers/fragments/question.js +10 -10
- package/dist/cjs/resolvers/fragments/tutor.d.ts +1 -0
- package/dist/cjs/resolvers/fragments/tutor.js +10 -1
- package/dist/cjs/resolvers/fragments/video.js +2 -0
- package/dist/cjs/resolvers/query/restricted/quesBook.js +1 -0
- package/dist/cjs/resolvers/query/restricted/tutor.d.ts +6 -1
- package/dist/cjs/resolvers/query/restricted/tutor.js +14 -1
- package/dist/mjs/models/Condition.d.ts +9 -2
- package/dist/mjs/models/Presentation.d.ts +8 -2
- package/dist/mjs/models/Question.d.ts +5 -0
- package/dist/mjs/models/Tutor.d.ts +24 -0
- package/dist/mjs/models/Tutor.js +12 -0
- package/dist/mjs/models/Video.d.ts +1 -0
- package/dist/mjs/resolvers/fragments/question.js +10 -10
- package/dist/mjs/resolvers/fragments/tutor.d.ts +1 -0
- package/dist/mjs/resolvers/fragments/tutor.js +9 -0
- package/dist/mjs/resolvers/fragments/video.js +2 -0
- package/dist/mjs/resolvers/query/restricted/quesBook.js +1 -0
- package/dist/mjs/resolvers/query/restricted/tutor.d.ts +6 -1
- package/dist/mjs/resolvers/query/restricted/tutor.js +14 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IConcept } from './Concept';
|
|
2
2
|
import { Id } from './Type';
|
|
3
|
+
import { EUkmla2026ChangeType } from './Ukmla2026';
|
|
3
4
|
import { IUkmlaTopic } from './UkmlaTopic';
|
|
4
5
|
export interface ICondition {
|
|
5
6
|
id: Id;
|
|
@@ -7,12 +8,18 @@ export interface ICondition {
|
|
|
7
8
|
updatedAt: number | Date;
|
|
8
9
|
deletedAt: number | Date;
|
|
9
10
|
name: string;
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
/** @deprecated Legacy UKMLA content map. Use `bodySystemId` instead. */
|
|
12
|
+
topicId?: Id | null;
|
|
13
|
+
/** @deprecated Legacy UKMLA content map. Not set on UKMLA 2026 rows. */
|
|
14
|
+
topic?: IUkmlaTopic | null;
|
|
12
15
|
concepts?: IConcept[];
|
|
16
|
+
/** @deprecated Legacy UKMLA content map. Not set on UKMLA 2026 rows. */
|
|
13
17
|
demo?: boolean;
|
|
14
18
|
public: boolean;
|
|
15
19
|
questionIds: number[];
|
|
20
|
+
bodySystemId?: number | null;
|
|
21
|
+
changeType?: EUkmla2026ChangeType | null;
|
|
22
|
+
legacyNames?: string[] | null;
|
|
16
23
|
totalQuestions?: number | null;
|
|
17
24
|
correctQuestions?: number | null;
|
|
18
25
|
incorrectQuestions?: number | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Id } from './Type';
|
|
2
|
+
import { EUkmla2026ChangeType } from './Ukmla2026';
|
|
2
3
|
import { IUkmlaTopic } from './UkmlaTopic';
|
|
3
4
|
export interface IPresentation {
|
|
4
5
|
id: Id;
|
|
@@ -6,11 +7,16 @@ export interface IPresentation {
|
|
|
6
7
|
updatedAt: number | Date;
|
|
7
8
|
deletedAt: number | Date;
|
|
8
9
|
name: string;
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
/** @deprecated Legacy UKMLA content map. Not set on UKMLA 2026 rows. */
|
|
11
|
+
topicId?: Id | null;
|
|
12
|
+
/** @deprecated Legacy UKMLA content map. Not set on UKMLA 2026 rows. */
|
|
13
|
+
topic?: IUkmlaTopic | null;
|
|
14
|
+
/** @deprecated Legacy UKMLA content map. Not set on UKMLA 2026 rows. */
|
|
11
15
|
demo?: boolean;
|
|
12
16
|
public: boolean;
|
|
13
17
|
questionIds: number[];
|
|
18
|
+
changeType?: EUkmla2026ChangeType | null;
|
|
19
|
+
legacyNames?: string[] | null;
|
|
14
20
|
totalQuestions?: number | null;
|
|
15
21
|
correctQuestions?: number | null;
|
|
16
22
|
incorrectQuestions?: number | null;
|
|
@@ -8,8 +8,10 @@ import { IJobRecord } from './Job';
|
|
|
8
8
|
import { IPicture } from './Picture';
|
|
9
9
|
import { IPresentation } from './Presentation';
|
|
10
10
|
import { ITopic } from './Topic';
|
|
11
|
+
import { ITutorSuggestion } from './Tutor';
|
|
11
12
|
import { Id } from './Type';
|
|
12
13
|
import { ITheme } from './Ucat';
|
|
14
|
+
import { IUkmla2026Area, IUkmla2026BodySystem } from './Ukmla2026';
|
|
13
15
|
import { IUkmlaTopic } from './UkmlaTopic';
|
|
14
16
|
import { EUserLearningPoint, IUser } from './User';
|
|
15
17
|
export declare enum EPsaSectionType {
|
|
@@ -95,6 +97,8 @@ export interface IQuestion {
|
|
|
95
97
|
concept?: IConcept;
|
|
96
98
|
conditions?: ICondition[];
|
|
97
99
|
presentations?: IPresentation[];
|
|
100
|
+
bodySystems?: Pick<IUkmla2026BodySystem, 'id' | 'name' | 'sortOrder'>[];
|
|
101
|
+
areas?: Pick<IUkmla2026Area, 'id' | 'name' | 'sortOrder'>[];
|
|
98
102
|
question: string;
|
|
99
103
|
explanation?: string;
|
|
100
104
|
learningPoint?: string;
|
|
@@ -119,6 +123,7 @@ export interface IQuestion {
|
|
|
119
123
|
revisions?: IQuestionRevision[];
|
|
120
124
|
entitlements?: IQuestionEntitlement[];
|
|
121
125
|
jobRecord?: IJobRecord | null;
|
|
126
|
+
tutorSuggestions?: ITutorSuggestion[];
|
|
122
127
|
}
|
|
123
128
|
export interface IQuestionChoice {
|
|
124
129
|
id: Id;
|
|
@@ -27,6 +27,28 @@ export declare enum ETutorResourceType {
|
|
|
27
27
|
IMAGE = "image",
|
|
28
28
|
EXTERNAL = "external"
|
|
29
29
|
}
|
|
30
|
+
export declare enum ETutorSuggestionType {
|
|
31
|
+
ASK = 1,
|
|
32
|
+
COMPARE = 2,
|
|
33
|
+
DIAGRAM = 3,
|
|
34
|
+
QUIZ = 4
|
|
35
|
+
}
|
|
36
|
+
export declare enum ETutorSuggestionSource {
|
|
37
|
+
GENERIC = "GENERIC",
|
|
38
|
+
GENERATED = "GENERATED"
|
|
39
|
+
}
|
|
40
|
+
export interface ITutorSuggestion {
|
|
41
|
+
id: string;
|
|
42
|
+
label: string;
|
|
43
|
+
type: ETutorSuggestionType;
|
|
44
|
+
source: ETutorSuggestionSource;
|
|
45
|
+
usageCount: number;
|
|
46
|
+
}
|
|
47
|
+
export interface ITutorSuggestionInput {
|
|
48
|
+
id?: Id;
|
|
49
|
+
label: string;
|
|
50
|
+
type: ETutorSuggestionType;
|
|
51
|
+
}
|
|
30
52
|
export type TTutorRole = 'human' | 'ai' | 'system';
|
|
31
53
|
export interface ITutorOption {
|
|
32
54
|
id: string;
|
|
@@ -97,6 +119,8 @@ export interface ITutorSendMessageBody {
|
|
|
97
119
|
message: string;
|
|
98
120
|
preset?: ETutorPreset;
|
|
99
121
|
followUpId?: string;
|
|
122
|
+
suggestionId?: string;
|
|
123
|
+
suggestionSource?: ETutorSuggestionSource;
|
|
100
124
|
}
|
|
101
125
|
export type ITutorEvent = {
|
|
102
126
|
type: 'MESSAGE_START';
|
package/dist/cjs/models/Tutor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ETutorResourceType = exports.ETutorBlockType = exports.ETutorRating = exports.ETutorPreset = exports.ETutorPhase = void 0;
|
|
3
|
+
exports.ETutorSuggestionSource = exports.ETutorSuggestionType = exports.ETutorResourceType = exports.ETutorBlockType = exports.ETutorRating = exports.ETutorPreset = exports.ETutorPhase = void 0;
|
|
4
4
|
var ETutorPhase;
|
|
5
5
|
(function (ETutorPhase) {
|
|
6
6
|
ETutorPhase["PRE_ANSWER"] = "PRE_ANSWER";
|
|
@@ -34,3 +34,15 @@ var ETutorResourceType;
|
|
|
34
34
|
ETutorResourceType["IMAGE"] = "image";
|
|
35
35
|
ETutorResourceType["EXTERNAL"] = "external";
|
|
36
36
|
})(ETutorResourceType = exports.ETutorResourceType || (exports.ETutorResourceType = {}));
|
|
37
|
+
var ETutorSuggestionType;
|
|
38
|
+
(function (ETutorSuggestionType) {
|
|
39
|
+
ETutorSuggestionType[ETutorSuggestionType["ASK"] = 1] = "ASK";
|
|
40
|
+
ETutorSuggestionType[ETutorSuggestionType["COMPARE"] = 2] = "COMPARE";
|
|
41
|
+
ETutorSuggestionType[ETutorSuggestionType["DIAGRAM"] = 3] = "DIAGRAM";
|
|
42
|
+
ETutorSuggestionType[ETutorSuggestionType["QUIZ"] = 4] = "QUIZ";
|
|
43
|
+
})(ETutorSuggestionType = exports.ETutorSuggestionType || (exports.ETutorSuggestionType = {}));
|
|
44
|
+
var ETutorSuggestionSource;
|
|
45
|
+
(function (ETutorSuggestionSource) {
|
|
46
|
+
ETutorSuggestionSource["GENERIC"] = "GENERIC";
|
|
47
|
+
ETutorSuggestionSource["GENERATED"] = "GENERATED";
|
|
48
|
+
})(ETutorSuggestionSource = exports.ETutorSuggestionSource || (exports.ETutorSuggestionSource = {}));
|
|
@@ -43,20 +43,20 @@ exports.QUESTION_UKMLA_FIELDS = (0, client_1.gql) `
|
|
|
43
43
|
presentations {
|
|
44
44
|
id
|
|
45
45
|
name
|
|
46
|
-
topicId
|
|
47
|
-
topic {
|
|
48
|
-
id
|
|
49
|
-
name
|
|
50
|
-
}
|
|
51
46
|
}
|
|
52
47
|
conditions {
|
|
53
48
|
id
|
|
54
49
|
name
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
50
|
+
}
|
|
51
|
+
bodySystems {
|
|
52
|
+
id
|
|
53
|
+
name
|
|
54
|
+
sortOrder
|
|
55
|
+
}
|
|
56
|
+
areas {
|
|
57
|
+
id
|
|
58
|
+
name
|
|
59
|
+
sortOrder
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
`;
|
|
@@ -2,3 +2,4 @@ export declare const TUTOR_OPTION_FIELDS: import("@apollo/client").DocumentNode;
|
|
|
2
2
|
export declare const TUTOR_BLOCK_FIELDS: import("@apollo/client").DocumentNode;
|
|
3
3
|
export declare const TUTOR_MESSAGE_FIELDS: import("@apollo/client").DocumentNode;
|
|
4
4
|
export declare const TUTOR_CONVERSATION_FIELDS: import("@apollo/client").DocumentNode;
|
|
5
|
+
export declare const TUTOR_SUGGESTION_FIELDS: import("@apollo/client").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TUTOR_CONVERSATION_FIELDS = exports.TUTOR_MESSAGE_FIELDS = exports.TUTOR_BLOCK_FIELDS = exports.TUTOR_OPTION_FIELDS = void 0;
|
|
3
|
+
exports.TUTOR_SUGGESTION_FIELDS = exports.TUTOR_CONVERSATION_FIELDS = exports.TUTOR_MESSAGE_FIELDS = exports.TUTOR_BLOCK_FIELDS = exports.TUTOR_OPTION_FIELDS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.TUTOR_OPTION_FIELDS = (0, client_1.gql) `
|
|
6
6
|
fragment TutorOptionFields on TutorOption {
|
|
@@ -76,3 +76,12 @@ exports.TUTOR_CONVERSATION_FIELDS = (0, client_1.gql) `
|
|
|
76
76
|
createdAt
|
|
77
77
|
}
|
|
78
78
|
`;
|
|
79
|
+
exports.TUTOR_SUGGESTION_FIELDS = (0, client_1.gql) `
|
|
80
|
+
fragment TutorSuggestionFields on TutorSuggestion {
|
|
81
|
+
id
|
|
82
|
+
label
|
|
83
|
+
type
|
|
84
|
+
source
|
|
85
|
+
usageCount
|
|
86
|
+
}
|
|
87
|
+
`;
|
|
@@ -59,6 +59,7 @@ exports.VIDEO_LIBRARY_FIELDS = (0, client_1.gql) `
|
|
|
59
59
|
thumbnail
|
|
60
60
|
gif
|
|
61
61
|
bunnyUrl
|
|
62
|
+
hlsUrl
|
|
62
63
|
}
|
|
63
64
|
duration
|
|
64
65
|
status
|
|
@@ -88,6 +89,7 @@ exports.VIDEO_TOKENS_FIELDS = (0, client_1.gql) `
|
|
|
88
89
|
storyboard
|
|
89
90
|
gif
|
|
90
91
|
bunnyUrl
|
|
92
|
+
hlsUrl
|
|
91
93
|
}
|
|
92
94
|
}
|
|
93
95
|
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Id, ITutorConversation } from '../../../models';
|
|
1
|
+
import { Id, IQuestion, ITutorConversation } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
export declare const TUTOR_CONVERSATION: import("@apollo/client").DocumentNode;
|
|
4
4
|
export interface ITutorConversationVar {
|
|
@@ -14,3 +14,8 @@ export type IMarksheetChatsData = RestrictedData<{
|
|
|
14
14
|
id: Id;
|
|
15
15
|
chats: (graphqlNormalize & ITutorConversation)[];
|
|
16
16
|
}, 'marksheet'>;
|
|
17
|
+
export declare const QUESTION_TUTOR_SUGGESTIONS: import("@apollo/client").DocumentNode;
|
|
18
|
+
export interface IQuestionTutorSuggestionsVar {
|
|
19
|
+
id: Id;
|
|
20
|
+
}
|
|
21
|
+
export type IQuestionTutorSuggestionsData = RestrictedData<graphqlNormalize & Pick<IQuestion, 'id' | 'tutorSuggestions'>, 'question'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MARKSHEET_CHATS = exports.TUTOR_CONVERSATION = void 0;
|
|
3
|
+
exports.QUESTION_TUTOR_SUGGESTIONS = exports.MARKSHEET_CHATS = exports.TUTOR_CONVERSATION = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const tutor_1 = require("../../fragments/tutor");
|
|
6
6
|
exports.TUTOR_CONVERSATION = (0, client_1.gql) `
|
|
@@ -26,3 +26,16 @@ exports.MARKSHEET_CHATS = (0, client_1.gql) `
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
`;
|
|
29
|
+
exports.QUESTION_TUTOR_SUGGESTIONS = (0, client_1.gql) `
|
|
30
|
+
${tutor_1.TUTOR_SUGGESTION_FIELDS}
|
|
31
|
+
query QuestionTutorSuggestions($id: Int!) {
|
|
32
|
+
restricted {
|
|
33
|
+
question(id: $id) {
|
|
34
|
+
id
|
|
35
|
+
tutorSuggestions {
|
|
36
|
+
...TutorSuggestionFields
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IConcept } from './Concept';
|
|
2
2
|
import { Id } from './Type';
|
|
3
|
+
import { EUkmla2026ChangeType } from './Ukmla2026';
|
|
3
4
|
import { IUkmlaTopic } from './UkmlaTopic';
|
|
4
5
|
export interface ICondition {
|
|
5
6
|
id: Id;
|
|
@@ -7,12 +8,18 @@ export interface ICondition {
|
|
|
7
8
|
updatedAt: number | Date;
|
|
8
9
|
deletedAt: number | Date;
|
|
9
10
|
name: string;
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
/** @deprecated Legacy UKMLA content map. Use `bodySystemId` instead. */
|
|
12
|
+
topicId?: Id | null;
|
|
13
|
+
/** @deprecated Legacy UKMLA content map. Not set on UKMLA 2026 rows. */
|
|
14
|
+
topic?: IUkmlaTopic | null;
|
|
12
15
|
concepts?: IConcept[];
|
|
16
|
+
/** @deprecated Legacy UKMLA content map. Not set on UKMLA 2026 rows. */
|
|
13
17
|
demo?: boolean;
|
|
14
18
|
public: boolean;
|
|
15
19
|
questionIds: number[];
|
|
20
|
+
bodySystemId?: number | null;
|
|
21
|
+
changeType?: EUkmla2026ChangeType | null;
|
|
22
|
+
legacyNames?: string[] | null;
|
|
16
23
|
totalQuestions?: number | null;
|
|
17
24
|
correctQuestions?: number | null;
|
|
18
25
|
incorrectQuestions?: number | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Id } from './Type';
|
|
2
|
+
import { EUkmla2026ChangeType } from './Ukmla2026';
|
|
2
3
|
import { IUkmlaTopic } from './UkmlaTopic';
|
|
3
4
|
export interface IPresentation {
|
|
4
5
|
id: Id;
|
|
@@ -6,11 +7,16 @@ export interface IPresentation {
|
|
|
6
7
|
updatedAt: number | Date;
|
|
7
8
|
deletedAt: number | Date;
|
|
8
9
|
name: string;
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
/** @deprecated Legacy UKMLA content map. Not set on UKMLA 2026 rows. */
|
|
11
|
+
topicId?: Id | null;
|
|
12
|
+
/** @deprecated Legacy UKMLA content map. Not set on UKMLA 2026 rows. */
|
|
13
|
+
topic?: IUkmlaTopic | null;
|
|
14
|
+
/** @deprecated Legacy UKMLA content map. Not set on UKMLA 2026 rows. */
|
|
11
15
|
demo?: boolean;
|
|
12
16
|
public: boolean;
|
|
13
17
|
questionIds: number[];
|
|
18
|
+
changeType?: EUkmla2026ChangeType | null;
|
|
19
|
+
legacyNames?: string[] | null;
|
|
14
20
|
totalQuestions?: number | null;
|
|
15
21
|
correctQuestions?: number | null;
|
|
16
22
|
incorrectQuestions?: number | null;
|
|
@@ -8,8 +8,10 @@ import { IJobRecord } from './Job';
|
|
|
8
8
|
import { IPicture } from './Picture';
|
|
9
9
|
import { IPresentation } from './Presentation';
|
|
10
10
|
import { ITopic } from './Topic';
|
|
11
|
+
import { ITutorSuggestion } from './Tutor';
|
|
11
12
|
import { Id } from './Type';
|
|
12
13
|
import { ITheme } from './Ucat';
|
|
14
|
+
import { IUkmla2026Area, IUkmla2026BodySystem } from './Ukmla2026';
|
|
13
15
|
import { IUkmlaTopic } from './UkmlaTopic';
|
|
14
16
|
import { EUserLearningPoint, IUser } from './User';
|
|
15
17
|
export declare enum EPsaSectionType {
|
|
@@ -95,6 +97,8 @@ export interface IQuestion {
|
|
|
95
97
|
concept?: IConcept;
|
|
96
98
|
conditions?: ICondition[];
|
|
97
99
|
presentations?: IPresentation[];
|
|
100
|
+
bodySystems?: Pick<IUkmla2026BodySystem, 'id' | 'name' | 'sortOrder'>[];
|
|
101
|
+
areas?: Pick<IUkmla2026Area, 'id' | 'name' | 'sortOrder'>[];
|
|
98
102
|
question: string;
|
|
99
103
|
explanation?: string;
|
|
100
104
|
learningPoint?: string;
|
|
@@ -119,6 +123,7 @@ export interface IQuestion {
|
|
|
119
123
|
revisions?: IQuestionRevision[];
|
|
120
124
|
entitlements?: IQuestionEntitlement[];
|
|
121
125
|
jobRecord?: IJobRecord | null;
|
|
126
|
+
tutorSuggestions?: ITutorSuggestion[];
|
|
122
127
|
}
|
|
123
128
|
export interface IQuestionChoice {
|
|
124
129
|
id: Id;
|
|
@@ -27,6 +27,28 @@ export declare enum ETutorResourceType {
|
|
|
27
27
|
IMAGE = "image",
|
|
28
28
|
EXTERNAL = "external"
|
|
29
29
|
}
|
|
30
|
+
export declare enum ETutorSuggestionType {
|
|
31
|
+
ASK = 1,
|
|
32
|
+
COMPARE = 2,
|
|
33
|
+
DIAGRAM = 3,
|
|
34
|
+
QUIZ = 4
|
|
35
|
+
}
|
|
36
|
+
export declare enum ETutorSuggestionSource {
|
|
37
|
+
GENERIC = "GENERIC",
|
|
38
|
+
GENERATED = "GENERATED"
|
|
39
|
+
}
|
|
40
|
+
export interface ITutorSuggestion {
|
|
41
|
+
id: string;
|
|
42
|
+
label: string;
|
|
43
|
+
type: ETutorSuggestionType;
|
|
44
|
+
source: ETutorSuggestionSource;
|
|
45
|
+
usageCount: number;
|
|
46
|
+
}
|
|
47
|
+
export interface ITutorSuggestionInput {
|
|
48
|
+
id?: Id;
|
|
49
|
+
label: string;
|
|
50
|
+
type: ETutorSuggestionType;
|
|
51
|
+
}
|
|
30
52
|
export type TTutorRole = 'human' | 'ai' | 'system';
|
|
31
53
|
export interface ITutorOption {
|
|
32
54
|
id: string;
|
|
@@ -97,6 +119,8 @@ export interface ITutorSendMessageBody {
|
|
|
97
119
|
message: string;
|
|
98
120
|
preset?: ETutorPreset;
|
|
99
121
|
followUpId?: string;
|
|
122
|
+
suggestionId?: string;
|
|
123
|
+
suggestionSource?: ETutorSuggestionSource;
|
|
100
124
|
}
|
|
101
125
|
export type ITutorEvent = {
|
|
102
126
|
type: 'MESSAGE_START';
|
package/dist/mjs/models/Tutor.js
CHANGED
|
@@ -31,3 +31,15 @@ export var ETutorResourceType;
|
|
|
31
31
|
ETutorResourceType["IMAGE"] = "image";
|
|
32
32
|
ETutorResourceType["EXTERNAL"] = "external";
|
|
33
33
|
})(ETutorResourceType || (ETutorResourceType = {}));
|
|
34
|
+
export var ETutorSuggestionType;
|
|
35
|
+
(function (ETutorSuggestionType) {
|
|
36
|
+
ETutorSuggestionType[ETutorSuggestionType["ASK"] = 1] = "ASK";
|
|
37
|
+
ETutorSuggestionType[ETutorSuggestionType["COMPARE"] = 2] = "COMPARE";
|
|
38
|
+
ETutorSuggestionType[ETutorSuggestionType["DIAGRAM"] = 3] = "DIAGRAM";
|
|
39
|
+
ETutorSuggestionType[ETutorSuggestionType["QUIZ"] = 4] = "QUIZ";
|
|
40
|
+
})(ETutorSuggestionType || (ETutorSuggestionType = {}));
|
|
41
|
+
export var ETutorSuggestionSource;
|
|
42
|
+
(function (ETutorSuggestionSource) {
|
|
43
|
+
ETutorSuggestionSource["GENERIC"] = "GENERIC";
|
|
44
|
+
ETutorSuggestionSource["GENERATED"] = "GENERATED";
|
|
45
|
+
})(ETutorSuggestionSource || (ETutorSuggestionSource = {}));
|
|
@@ -40,20 +40,20 @@ export const QUESTION_UKMLA_FIELDS = gql `
|
|
|
40
40
|
presentations {
|
|
41
41
|
id
|
|
42
42
|
name
|
|
43
|
-
topicId
|
|
44
|
-
topic {
|
|
45
|
-
id
|
|
46
|
-
name
|
|
47
|
-
}
|
|
48
43
|
}
|
|
49
44
|
conditions {
|
|
50
45
|
id
|
|
51
46
|
name
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
47
|
+
}
|
|
48
|
+
bodySystems {
|
|
49
|
+
id
|
|
50
|
+
name
|
|
51
|
+
sortOrder
|
|
52
|
+
}
|
|
53
|
+
areas {
|
|
54
|
+
id
|
|
55
|
+
name
|
|
56
|
+
sortOrder
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
`;
|
|
@@ -2,3 +2,4 @@ export declare const TUTOR_OPTION_FIELDS: import("@apollo/client").DocumentNode;
|
|
|
2
2
|
export declare const TUTOR_BLOCK_FIELDS: import("@apollo/client").DocumentNode;
|
|
3
3
|
export declare const TUTOR_MESSAGE_FIELDS: import("@apollo/client").DocumentNode;
|
|
4
4
|
export declare const TUTOR_CONVERSATION_FIELDS: import("@apollo/client").DocumentNode;
|
|
5
|
+
export declare const TUTOR_SUGGESTION_FIELDS: import("@apollo/client").DocumentNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Id, ITutorConversation } from '../../../models';
|
|
1
|
+
import { Id, IQuestion, ITutorConversation } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
export declare const TUTOR_CONVERSATION: import("@apollo/client").DocumentNode;
|
|
4
4
|
export interface ITutorConversationVar {
|
|
@@ -14,3 +14,8 @@ export type IMarksheetChatsData = RestrictedData<{
|
|
|
14
14
|
id: Id;
|
|
15
15
|
chats: (graphqlNormalize & ITutorConversation)[];
|
|
16
16
|
}, 'marksheet'>;
|
|
17
|
+
export declare const QUESTION_TUTOR_SUGGESTIONS: import("@apollo/client").DocumentNode;
|
|
18
|
+
export interface IQuestionTutorSuggestionsVar {
|
|
19
|
+
id: Id;
|
|
20
|
+
}
|
|
21
|
+
export type IQuestionTutorSuggestionsData = RestrictedData<graphqlNormalize & Pick<IQuestion, 'id' | 'tutorSuggestions'>, 'question'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
|
-
import { TUTOR_CONVERSATION_FIELDS } from '../../fragments/tutor';
|
|
2
|
+
import { TUTOR_CONVERSATION_FIELDS, TUTOR_SUGGESTION_FIELDS, } from '../../fragments/tutor';
|
|
3
3
|
export const TUTOR_CONVERSATION = gql `
|
|
4
4
|
${TUTOR_CONVERSATION_FIELDS}
|
|
5
5
|
query TutorConversation($marksheetId: Int!, $questionId: Int!) {
|
|
@@ -23,3 +23,16 @@ export const MARKSHEET_CHATS = gql `
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
`;
|
|
26
|
+
export const QUESTION_TUTOR_SUGGESTIONS = gql `
|
|
27
|
+
${TUTOR_SUGGESTION_FIELDS}
|
|
28
|
+
query QuestionTutorSuggestions($id: Int!) {
|
|
29
|
+
restricted {
|
|
30
|
+
question(id: $id) {
|
|
31
|
+
id
|
|
32
|
+
tutorSuggestions {
|
|
33
|
+
...TutorSuggestionFields
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
`;
|