@quesmed/types-rn 2.6.298 → 2.6.300

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.
@@ -8,6 +8,7 @@ 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';
13
14
  import { IUkmla2026Area, IUkmla2026BodySystem } from './Ukmla2026';
@@ -122,6 +123,7 @@ export interface IQuestion {
122
123
  revisions?: IQuestionRevision[];
123
124
  entitlements?: IQuestionEntitlement[];
124
125
  jobRecord?: IJobRecord | null;
126
+ tutorSuggestions?: ITutorSuggestion[];
125
127
  }
126
128
  export interface IQuestionChoice {
127
129
  id: Id;
package/models/Tutor.d.ts CHANGED
@@ -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/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 = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.298",
3
+ "version": "2.6.300",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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
+ `;
@@ -138,7 +138,7 @@ exports.PUBLIC_QBANK_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
138
138
  `;
139
139
  exports.OSCE_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
140
140
  ${fragments_1.PICTURE_FIELDS}
141
- fragment OsceStationMarkFields on OsceStationMark {
141
+ fragment OsceBookStationMarkFields on OsceStationMark {
142
142
  id
143
143
  index
144
144
  osceStationId
@@ -148,7 +148,7 @@ ${fragments_1.PICTURE_FIELDS}
148
148
  __typename
149
149
  }
150
150
 
151
- fragment VideoFields on Video {
151
+ fragment OsceBookVideoFields on Video {
152
152
  id
153
153
  title
154
154
  thumbnail
@@ -164,7 +164,7 @@ ${fragments_1.PICTURE_FIELDS}
164
164
  __typename
165
165
  }
166
166
 
167
- fragment OsceStationFields on OsceStation {
167
+ fragment OsceBookStationFields on OsceStation {
168
168
  id
169
169
  updatedAt
170
170
  name
@@ -199,7 +199,7 @@ ${fragments_1.PICTURE_FIELDS}
199
199
  actorBrief
200
200
  explanation
201
201
  marks {
202
- ...OsceStationMarkFields
202
+ ...OsceBookStationMarkFields
203
203
  __typename
204
204
  }
205
205
  clinicalData
@@ -228,7 +228,7 @@ ${fragments_1.PICTURE_FIELDS}
228
228
  __typename
229
229
  }
230
230
  videos {
231
- ...VideoFields
231
+ ...OsceBookVideoFields
232
232
  __typename
233
233
  }
234
234
  demo
@@ -238,7 +238,7 @@ ${fragments_1.PICTURE_FIELDS}
238
238
  query OsceKnowledgeVideoLibrary($videosOnly: Boolean) {
239
239
  restricted {
240
240
  osceBook(videosOnly: $videosOnly) {
241
- ...OsceStationFields
241
+ ...OsceBookStationFields
242
242
  __typename
243
243
  }
244
244
  __typename
@@ -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
+ `;