@quesmed/types 2.5.57 → 2.5.58
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/index.d.ts +7 -0
- package/dist/cjs/index.js +9 -1
- package/dist/cjs/models/Marksheet.d.ts +2 -0
- package/dist/cjs/models/MockTest.d.ts +2 -0
- package/dist/cjs/models/OsceMarksheet.d.ts +3 -0
- package/dist/cjs/models/OsceMarksheet.js +1 -0
- package/dist/cjs/models/Preset.d.ts +1 -18
- package/dist/cjs/models/Product.d.ts +2 -1
- package/dist/cjs/models/Product.js +1 -0
- package/dist/cjs/models/Question.d.ts +2 -2
- package/dist/cjs/models/Topic.d.ts +2 -1
- package/dist/cjs/models/Topic.js +1 -0
- package/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +2 -0
- package/dist/cjs/resolvers/mutation/restricted/marksheet.js +21 -0
- package/dist/cjs/resolvers/mutation/restricted/mockTest.d.ts +1 -0
- package/dist/cjs/resolvers/mutation/restricted/osce.d.ts +1 -1
- package/dist/cjs/resolvers/mutation/restricted/osce.js +2 -2
- package/dist/cjs/resolvers/mutation/restricted/preset.d.ts +4 -11
- package/dist/cjs/resolvers/mutation/restricted/preset.js +1 -39
- package/dist/cjs/resolvers/query/restricted/marksheet.js +21 -0
- package/dist/cjs/resolvers/query/restricted/question.js +7 -0
- package/dist/cjs/resolvers/query/restricted/topics.js +24 -12
- package/dist/cjs/resolvers/query/university.d.ts +2 -1
- package/dist/cjs/resolvers/query/university.js +2 -2
- package/dist/cjs/resolvers/subscription/marksheet.d.ts +5 -3
- package/dist/cjs/resolvers/subscription/marksheet.js +8 -6
- package/dist/cjs/resolvers/subscription/osce.d.ts +6 -3
- package/dist/cjs/resolvers/subscription/osce.js +10 -6
- package/dist/mjs/index.d.ts +7 -0
- package/dist/mjs/index.js +8 -0
- package/dist/mjs/models/Marksheet.d.ts +2 -0
- package/dist/mjs/models/MockTest.d.ts +2 -0
- package/dist/mjs/models/OsceMarksheet.d.ts +3 -0
- package/dist/mjs/models/OsceMarksheet.js +1 -0
- package/dist/mjs/models/Preset.d.ts +1 -18
- package/dist/mjs/models/Product.d.ts +2 -1
- package/dist/mjs/models/Product.js +1 -0
- package/dist/mjs/models/Question.d.ts +2 -2
- package/dist/mjs/models/Topic.d.ts +2 -1
- package/dist/mjs/models/Topic.js +1 -0
- package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +2 -0
- package/dist/mjs/resolvers/mutation/restricted/marksheet.js +21 -0
- package/dist/mjs/resolvers/mutation/restricted/mockTest.d.ts +1 -0
- package/dist/mjs/resolvers/mutation/restricted/osce.d.ts +1 -1
- package/dist/mjs/resolvers/mutation/restricted/osce.js +2 -2
- package/dist/mjs/resolvers/mutation/restricted/preset.d.ts +4 -11
- package/dist/mjs/resolvers/mutation/restricted/preset.js +1 -39
- package/dist/mjs/resolvers/query/restricted/marksheet.js +21 -0
- package/dist/mjs/resolvers/query/restricted/question.js +7 -0
- package/dist/mjs/resolvers/query/restricted/topics.js +24 -12
- package/dist/mjs/resolvers/query/university.d.ts +2 -1
- package/dist/mjs/resolvers/query/university.js +2 -2
- package/dist/mjs/resolvers/subscription/marksheet.d.ts +5 -3
- package/dist/mjs/resolvers/subscription/marksheet.js +8 -6
- package/dist/mjs/resolvers/subscription/osce.d.ts +6 -3
- package/dist/mjs/resolvers/subscription/osce.js +10 -6
- package/package.json +1 -1
package/dist/mjs/index.js
CHANGED
|
@@ -9,6 +9,14 @@ export const ERRORS = {
|
|
|
9
9
|
SUBSCRIPTION_EXPIRED: 'Expired subscription.',
|
|
10
10
|
PERMISSION_INVALID: 'Invalid permission.',
|
|
11
11
|
};
|
|
12
|
+
export var AlgoliaIndex;
|
|
13
|
+
(function (AlgoliaIndex) {
|
|
14
|
+
AlgoliaIndex["Questions"] = "questions";
|
|
15
|
+
AlgoliaIndex["Flashcards"] = "cards";
|
|
16
|
+
AlgoliaIndex["Quesbook"] = "quesbook";
|
|
17
|
+
AlgoliaIndex["OsceBook"] = "oscebook";
|
|
18
|
+
AlgoliaIndex["Videos"] = "videos";
|
|
19
|
+
})(AlgoliaIndex || (AlgoliaIndex = {}));
|
|
12
20
|
export var EGrammarType;
|
|
13
21
|
(function (EGrammarType) {
|
|
14
22
|
EGrammarType[EGrammarType["QUESTION"] = 0] = "QUESTION";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IBuildConfigData, IPreBuildMarksheet } from '../resolvers/mutation/restricted/marksheet';
|
|
2
|
+
import { EProductType } from './Product';
|
|
2
3
|
import { IPrescribeAnswer, IPrescribeMark, IQuestion, IQuestionChoice, IQuestionQAAnswer } from './Question';
|
|
3
4
|
import { ETopicType } from './Topic';
|
|
4
5
|
import { Id } from './Type';
|
|
@@ -78,6 +79,7 @@ export interface IMarksheet {
|
|
|
78
79
|
topicConceptData?: string;
|
|
79
80
|
preBuildData?: IPreBuildMarksheet;
|
|
80
81
|
builderConfig?: IBuildConfigData;
|
|
82
|
+
productId: EProductType;
|
|
81
83
|
}
|
|
82
84
|
export type IMarksheetMarkJSONB = string | [string] | [IQuestionQAAnswer] | [string[], string[]] | [IPrescribeMark] | IPrescribeAnswer | null;
|
|
83
85
|
export interface IMarksheetMark {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EProductType } from './Product';
|
|
1
2
|
import { IQuestion } from './Question';
|
|
2
3
|
import { Id } from './Type';
|
|
3
4
|
export declare enum EMockTestType {
|
|
@@ -21,6 +22,7 @@ export interface IMockTest {
|
|
|
21
22
|
passingMark: number;
|
|
22
23
|
public: boolean;
|
|
23
24
|
questions: IQuestion[];
|
|
25
|
+
productId: EProductType[];
|
|
24
26
|
}
|
|
25
27
|
export interface IUserMockTest {
|
|
26
28
|
id: Id;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IOsceStation, IOsceStationMark, IOsceType } from './OsceStation';
|
|
2
|
+
import { EProductType } from './Product';
|
|
2
3
|
import { Id } from './Type';
|
|
3
4
|
import { IUser } from './User';
|
|
4
5
|
export interface IOsceMarksheetMember {
|
|
@@ -81,6 +82,7 @@ export interface IOsceMarksheet {
|
|
|
81
82
|
members: IOsceMarksheetMember[];
|
|
82
83
|
state: EOsceMarksheetState;
|
|
83
84
|
completed: boolean;
|
|
85
|
+
productId: EProductType;
|
|
84
86
|
}
|
|
85
87
|
export interface IDashboardOsce {
|
|
86
88
|
lastSessionId: string;
|
|
@@ -113,6 +115,7 @@ export declare enum EOsceStage {
|
|
|
113
115
|
}
|
|
114
116
|
export interface IOsceMarksheetTimer {
|
|
115
117
|
osceMarksheetId: number;
|
|
118
|
+
sessionId: string;
|
|
116
119
|
timeRemaining: string;
|
|
117
120
|
totalStationTime: string;
|
|
118
121
|
stageTime: string;
|
|
@@ -1,28 +1,11 @@
|
|
|
1
1
|
import { ETopicType } from "./Topic";
|
|
2
2
|
import { Id } from "./Type";
|
|
3
|
-
import { IUniversity } from "./University";
|
|
4
|
-
export interface IPresetTopic {
|
|
5
|
-
id: Id;
|
|
6
|
-
name: string;
|
|
7
|
-
concepts: number[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* topicType is not needed in the presets query
|
|
11
|
-
* but used in the db model
|
|
12
|
-
*/
|
|
13
3
|
export interface IPreset {
|
|
14
4
|
id: Id;
|
|
15
|
-
createdAt: number | Date;
|
|
16
|
-
updatedAt: number | Date;
|
|
17
5
|
userId: Id;
|
|
18
6
|
name: string;
|
|
19
|
-
topicType
|
|
7
|
+
topicType: ETopicType;
|
|
20
8
|
likes: number;
|
|
21
|
-
university: IUniversity;
|
|
22
|
-
total: number;
|
|
23
|
-
correct: number;
|
|
24
|
-
incorrect: number;
|
|
25
|
-
topics: IPresetTopic[];
|
|
26
9
|
}
|
|
27
10
|
export interface IPresetConcepts {
|
|
28
11
|
id: Id;
|
|
@@ -14,6 +14,7 @@ export var EProductType;
|
|
|
14
14
|
EProductType[EProductType["INTERVIEW_ANAESTHETICS"] = 11] = "INTERVIEW_ANAESTHETICS";
|
|
15
15
|
EProductType[EProductType["INTERVIEW_CST"] = 12] = "INTERVIEW_CST";
|
|
16
16
|
EProductType[EProductType["INTERVIEW_IMT"] = 13] = "INTERVIEW_IMT";
|
|
17
|
+
EProductType[EProductType["INTERVIEW_RADIOLOGY"] = 14] = "INTERVIEW_RADIOLOGY";
|
|
17
18
|
})(EProductType || (EProductType = {}));
|
|
18
19
|
export var EAppType;
|
|
19
20
|
(function (EAppType) {
|
|
@@ -177,11 +177,11 @@ export interface IQuestionEMQ extends IQuestion {
|
|
|
177
177
|
}
|
|
178
178
|
export interface IQuestionSelect3 extends IQuestion {
|
|
179
179
|
answer: [string, string, string];
|
|
180
|
-
|
|
180
|
+
select3Answer: [string, string, string];
|
|
181
181
|
}
|
|
182
182
|
export interface IQuestionRanking extends IQuestion {
|
|
183
183
|
answer: string[];
|
|
184
|
-
|
|
184
|
+
rankingAnswer: string[];
|
|
185
185
|
}
|
|
186
186
|
export declare function isQuestionPrescribe(data: IQuestionAll): data is IQuestionPrescribe;
|
|
187
187
|
export interface IQuestionPrescribe extends IQuestion {
|
package/dist/mjs/models/Topic.js
CHANGED
|
@@ -171,6 +171,7 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
|
|
|
171
171
|
currentMarkId?: number | undefined;
|
|
172
172
|
topicConceptData?: string | undefined;
|
|
173
173
|
preBuildData?: IPreBuildMarksheet | undefined;
|
|
174
|
+
productId: import("../../../models").EProductType;
|
|
174
175
|
};
|
|
175
176
|
};
|
|
176
177
|
};
|
|
@@ -267,6 +268,7 @@ export declare const optimisticEndMarksheet: (marksheet: IMarksheet) => {
|
|
|
267
268
|
topicConceptData?: string | undefined;
|
|
268
269
|
preBuildData?: IPreBuildMarksheet | undefined;
|
|
269
270
|
builderConfig?: IBuildConfigData | undefined;
|
|
271
|
+
productId: import("../../../models").EProductType;
|
|
270
272
|
__typename: string;
|
|
271
273
|
};
|
|
272
274
|
};
|
|
@@ -606,6 +606,13 @@ export const BUILD_QUESTION_MARKSHEET = gql `
|
|
|
606
606
|
tag
|
|
607
607
|
color
|
|
608
608
|
}
|
|
609
|
+
cases {
|
|
610
|
+
id
|
|
611
|
+
questionId
|
|
612
|
+
case
|
|
613
|
+
explanation
|
|
614
|
+
label
|
|
615
|
+
}
|
|
609
616
|
choices {
|
|
610
617
|
id
|
|
611
618
|
explanation
|
|
@@ -1587,6 +1594,13 @@ export const BUILD_MARKSHEET = gql `
|
|
|
1587
1594
|
tag
|
|
1588
1595
|
color
|
|
1589
1596
|
}
|
|
1597
|
+
cases {
|
|
1598
|
+
id
|
|
1599
|
+
questionId
|
|
1600
|
+
case
|
|
1601
|
+
explanation
|
|
1602
|
+
label
|
|
1603
|
+
}
|
|
1590
1604
|
choices {
|
|
1591
1605
|
id
|
|
1592
1606
|
explanation
|
|
@@ -2573,6 +2587,13 @@ export const RE_BUILD_MARKSHEET = gql `
|
|
|
2573
2587
|
tag
|
|
2574
2588
|
color
|
|
2575
2589
|
}
|
|
2590
|
+
cases {
|
|
2591
|
+
id
|
|
2592
|
+
questionId
|
|
2593
|
+
case
|
|
2594
|
+
explanation
|
|
2595
|
+
label
|
|
2596
|
+
}
|
|
2576
2597
|
choices {
|
|
2577
2598
|
id
|
|
2578
2599
|
explanation
|
|
@@ -76,6 +76,7 @@ export declare const optimisticEndMockTest: (marksheet: IMarksheet) => {
|
|
|
76
76
|
topicConceptData?: string | undefined;
|
|
77
77
|
preBuildData?: import("./marksheet").IPreBuildMarksheet | undefined;
|
|
78
78
|
builderConfig?: import("./marksheet").IBuildConfigData | undefined;
|
|
79
|
+
productId: import("../../../models").EProductType;
|
|
79
80
|
__typename: string;
|
|
80
81
|
};
|
|
81
82
|
};
|
|
@@ -33,7 +33,7 @@ export interface IBuildOsceMarksheetVar {
|
|
|
33
33
|
export type IBuildOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'buildOsceMarksheet'>;
|
|
34
34
|
export declare const CHANGE_OSCE_ROLE: import("@apollo/client").DocumentNode;
|
|
35
35
|
export interface IChangeOsceRoleVar {
|
|
36
|
-
|
|
36
|
+
sessionId: string;
|
|
37
37
|
role: EOsceRoles;
|
|
38
38
|
}
|
|
39
39
|
export type IChangeOsceRoleData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'changeOsceRole'>;
|
|
@@ -65,9 +65,9 @@ export const BUILD_OSCE_MARKSHEET = gql `
|
|
|
65
65
|
`;
|
|
66
66
|
export const CHANGE_OSCE_ROLE = gql `
|
|
67
67
|
${OSCE_MARKSHEET_FIELDS}
|
|
68
|
-
mutation ChangeOsceRole($
|
|
68
|
+
mutation ChangeOsceRole($sessionId: String!, $role: Int!) {
|
|
69
69
|
restricted {
|
|
70
|
-
changeOsceRole(
|
|
70
|
+
changeOsceRole(sessionId: $sessionId, role: $role) {
|
|
71
71
|
...OsceMarksheetFields
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IPreset } from
|
|
3
|
-
import {
|
|
1
|
+
import { RestrictedData } from "../../types";
|
|
2
|
+
import { IPreset } from "../../../models/Preset";
|
|
3
|
+
import { ETopicType } from "../../../models";
|
|
4
4
|
export declare const DELETE_PRESET: import("@apollo/client").DocumentNode;
|
|
5
5
|
export type IDeletePresetData = RestrictedData<boolean, 'deletePreset'>;
|
|
6
6
|
export interface IDeletePresetVar {
|
|
@@ -18,13 +18,6 @@ export interface IEditPresetVar {
|
|
|
18
18
|
data: {
|
|
19
19
|
name?: string;
|
|
20
20
|
topicType?: ETopicType;
|
|
21
|
-
conceptIds?:
|
|
21
|
+
conceptIds?: number[];
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
export declare const CREATE_PRESET: import("@apollo/client").DocumentNode;
|
|
25
|
-
export type ICreatePresetData = RestrictedData<IPreset, 'createPreset'>;
|
|
26
|
-
export interface ICreatePresetVar {
|
|
27
|
-
name: string;
|
|
28
|
-
topicType: ETopicType;
|
|
29
|
-
conceptIds: Id[];
|
|
30
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql } from
|
|
1
|
+
import { gql } from "@apollo/client";
|
|
2
2
|
export const DELETE_PRESET = gql `
|
|
3
3
|
mutation DeletePreset($presetId: Int!) {
|
|
4
4
|
restricted {
|
|
@@ -15,14 +15,6 @@ export const DUPLICATE_PRESET = gql `
|
|
|
15
15
|
name
|
|
16
16
|
topicType
|
|
17
17
|
likes
|
|
18
|
-
topics {
|
|
19
|
-
id
|
|
20
|
-
name
|
|
21
|
-
concepts {
|
|
22
|
-
id
|
|
23
|
-
name
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
18
|
}
|
|
27
19
|
}
|
|
28
20
|
}
|
|
@@ -36,36 +28,6 @@ export const EDIT_PRESET = gql `
|
|
|
36
28
|
name
|
|
37
29
|
topicType
|
|
38
30
|
likes
|
|
39
|
-
topics {
|
|
40
|
-
id
|
|
41
|
-
name
|
|
42
|
-
concepts {
|
|
43
|
-
id
|
|
44
|
-
name
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
51
|
-
export const CREATE_PRESET = gql `
|
|
52
|
-
mutation CreatePreset($data: CreatePresetInput!) {
|
|
53
|
-
restricted {
|
|
54
|
-
createPreset(data: $data) {
|
|
55
|
-
id
|
|
56
|
-
createdAt
|
|
57
|
-
userId
|
|
58
|
-
name
|
|
59
|
-
topicType
|
|
60
|
-
likes
|
|
61
|
-
topics {
|
|
62
|
-
id
|
|
63
|
-
name
|
|
64
|
-
concepts {
|
|
65
|
-
id
|
|
66
|
-
name
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
31
|
}
|
|
70
32
|
}
|
|
71
33
|
}
|
|
@@ -608,6 +608,13 @@ export const MARKSHEET = gql `
|
|
|
608
608
|
tag
|
|
609
609
|
color
|
|
610
610
|
}
|
|
611
|
+
cases {
|
|
612
|
+
id
|
|
613
|
+
questionId
|
|
614
|
+
case
|
|
615
|
+
explanation
|
|
616
|
+
label
|
|
617
|
+
}
|
|
611
618
|
choices {
|
|
612
619
|
id
|
|
613
620
|
explanation
|
|
@@ -1733,6 +1740,13 @@ export const FLAGGED_QUESTIONS = gql `
|
|
|
1733
1740
|
tag
|
|
1734
1741
|
color
|
|
1735
1742
|
}
|
|
1743
|
+
cases {
|
|
1744
|
+
id
|
|
1745
|
+
questionId
|
|
1746
|
+
case
|
|
1747
|
+
explanation
|
|
1748
|
+
label
|
|
1749
|
+
}
|
|
1736
1750
|
choices {
|
|
1737
1751
|
id
|
|
1738
1752
|
explanation
|
|
@@ -2707,6 +2721,13 @@ export const FLAGGED_QUESTIONS_MARKSHEET = gql `
|
|
|
2707
2721
|
tag
|
|
2708
2722
|
color
|
|
2709
2723
|
}
|
|
2724
|
+
cases {
|
|
2725
|
+
id
|
|
2726
|
+
questionId
|
|
2727
|
+
case
|
|
2728
|
+
explanation
|
|
2729
|
+
label
|
|
2730
|
+
}
|
|
2710
2731
|
choices {
|
|
2711
2732
|
id
|
|
2712
2733
|
explanation
|
|
@@ -1,24 +1,36 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
2
|
export const TOPIC_STATS = gql `
|
|
3
|
-
query TopicStats($typeId: [Int!]) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
totalQuestions
|
|
7
|
-
completedQuestions
|
|
8
|
-
correctQuestions
|
|
9
|
-
incorrectQuestions
|
|
10
|
-
types {
|
|
11
|
-
id
|
|
12
|
-
name
|
|
3
|
+
query TopicStats($typeId: [Int!]) {
|
|
4
|
+
restricted {
|
|
5
|
+
topicStats(typeId: $typeId) {
|
|
13
6
|
totalQuestions
|
|
14
7
|
completedQuestions
|
|
15
8
|
correctQuestions
|
|
16
9
|
incorrectQuestions
|
|
10
|
+
|
|
11
|
+
redCards
|
|
12
|
+
totalCards
|
|
13
|
+
greenCards
|
|
14
|
+
yellowCards
|
|
15
|
+
dailyFeedCards
|
|
16
|
+
|
|
17
|
+
types {
|
|
18
|
+
id
|
|
19
|
+
name
|
|
20
|
+
totalQuestions
|
|
21
|
+
completedQuestions
|
|
22
|
+
correctQuestions
|
|
23
|
+
incorrectQuestions
|
|
24
|
+
|
|
25
|
+
redCards
|
|
26
|
+
totalCards
|
|
27
|
+
greenCards
|
|
28
|
+
yellowCards
|
|
29
|
+
dailyFeedCards
|
|
30
|
+
}
|
|
17
31
|
}
|
|
18
32
|
}
|
|
19
33
|
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
34
|
`;
|
|
23
35
|
export const TOPIC = gql `
|
|
24
36
|
query Topic($topicId: Int!) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Id, IUniversity } from '../../models';
|
|
2
2
|
import { graphqlNormalize, RootData } from '../types';
|
|
3
3
|
export interface IUniversitiesVar {
|
|
4
|
-
id
|
|
4
|
+
id?: Id;
|
|
5
|
+
order?: string;
|
|
5
6
|
}
|
|
6
7
|
export type IUniversitiesData = RootData<graphqlNormalize & IUniversity[], 'universities'>;
|
|
7
8
|
export declare const UNIVERSITIES: import("@apollo/client").DocumentNode;
|
|
@@ -8,7 +8,7 @@ export interface IMarksheetGroupMember {
|
|
|
8
8
|
* onMarksheetChange
|
|
9
9
|
*/
|
|
10
10
|
export interface IOnMarksheetChangeVar {
|
|
11
|
-
|
|
11
|
+
sessionId: string;
|
|
12
12
|
}
|
|
13
13
|
export interface IMarksheetInfo {
|
|
14
14
|
state: EMarksheetState;
|
|
@@ -30,7 +30,7 @@ export declare const ON_MARKSHEET_CHANGE: import("@apollo/client").DocumentNode;
|
|
|
30
30
|
* onPreStartMarksheetChange
|
|
31
31
|
*/
|
|
32
32
|
export interface IOnPreStartMarksheetChangeVar {
|
|
33
|
-
|
|
33
|
+
sessionId: string;
|
|
34
34
|
}
|
|
35
35
|
export interface IPreStartMarksheetData {
|
|
36
36
|
topicConceptData?: string;
|
|
@@ -38,6 +38,7 @@ export interface IPreStartMarksheetData {
|
|
|
38
38
|
action: EMarksheetAction;
|
|
39
39
|
builderConfig?: IBuildConfigData;
|
|
40
40
|
marksheetId: Id;
|
|
41
|
+
sessionId: string;
|
|
41
42
|
user: IUser;
|
|
42
43
|
}
|
|
43
44
|
export type IOnPreStartMarksheetChangeData = RootData<IPreStartMarksheetData, 'onPreStartMarksheetChange'>;
|
|
@@ -47,11 +48,12 @@ export declare const ON_PRESTART_MARKSHEET_CHANGE: import("@apollo/client").Docu
|
|
|
47
48
|
* onMarksheetMarkChange
|
|
48
49
|
*/
|
|
49
50
|
export interface IOnMarksheetMarkChangeVar {
|
|
50
|
-
|
|
51
|
+
sessionId: string;
|
|
51
52
|
}
|
|
52
53
|
export interface IMarksheetMarkData {
|
|
53
54
|
action: EMarksheetAction;
|
|
54
55
|
marksheetId: Id;
|
|
56
|
+
sessionId: string;
|
|
55
57
|
markId?: Id;
|
|
56
58
|
newMarkId?: Id;
|
|
57
59
|
markIndex?: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
2
|
export const ON_MARKSHEET_CHANGE_KEY = 'ON_MARKSHEET_CHANGE_KEY';
|
|
3
3
|
export const ON_MARKSHEET_CHANGE = gql `
|
|
4
|
-
subscription OnMarksheetChange($
|
|
5
|
-
onMarksheetChange(
|
|
4
|
+
subscription OnMarksheetChange($sessionId: String!) {
|
|
5
|
+
onMarksheetChange(sessionId: $sessionId) {
|
|
6
6
|
marksheetId
|
|
7
7
|
agoraId
|
|
8
8
|
sessionId
|
|
@@ -28,9 +28,10 @@ export const ON_MARKSHEET_CHANGE = gql `
|
|
|
28
28
|
`;
|
|
29
29
|
export const ON_PRESTART_MARKSHEET_CHANGE_KEY = 'ON_PRESTART_MARKSHEET_CHANGE_KEY';
|
|
30
30
|
export const ON_PRESTART_MARKSHEET_CHANGE = gql `
|
|
31
|
-
subscription OnPreStartMarksheetChange($
|
|
32
|
-
onPreStartMarksheetChange(
|
|
31
|
+
subscription OnPreStartMarksheetChange($sessionId: String!) {
|
|
32
|
+
onPreStartMarksheetChange(sessionId: $sessionId) {
|
|
33
33
|
marksheetId
|
|
34
|
+
sessionId
|
|
34
35
|
topicConceptData
|
|
35
36
|
action
|
|
36
37
|
user {
|
|
@@ -57,10 +58,11 @@ export const ON_PRESTART_MARKSHEET_CHANGE = gql `
|
|
|
57
58
|
`;
|
|
58
59
|
export const ON_MARKSHEET_MARK_CHANGE_KEY = 'ON_MARKSHEET_CHANGE_KEY';
|
|
59
60
|
export const ON_MARKSHEET_MARK_CHANGE = gql `
|
|
60
|
-
subscription OnMarksheetMarkChange($
|
|
61
|
-
onMarksheetMarkChange(
|
|
61
|
+
subscription OnMarksheetMarkChange($sessionId: String!) {
|
|
62
|
+
onMarksheetMarkChange(sessionId: $sessionId) {
|
|
62
63
|
action
|
|
63
64
|
marksheetId
|
|
65
|
+
sessionId
|
|
64
66
|
markId
|
|
65
67
|
newMarkId
|
|
66
68
|
markIndex
|
|
@@ -18,16 +18,17 @@ export interface IOsceGroup {
|
|
|
18
18
|
export declare const OsceGroupInit: (osceMarksheetId: number) => IOsceMarksheetMember[];
|
|
19
19
|
export declare const OSCE_ROLE_CHANGE: import("@apollo/client").DocumentNode;
|
|
20
20
|
export interface IOsceRoleChangedVar {
|
|
21
|
-
|
|
21
|
+
sessionId: string;
|
|
22
22
|
}
|
|
23
23
|
export type IOsceRoleChangedData = RootData<IOsceGroup, 'osceRoleChange'>;
|
|
24
24
|
export declare const OSCE_MARKSHEET_ACTION: import("@apollo/client").DocumentNode;
|
|
25
25
|
export interface IOsceMarksheetActionVar {
|
|
26
|
-
|
|
26
|
+
sessionId: string;
|
|
27
27
|
}
|
|
28
28
|
export interface IOsceMarksheetAction {
|
|
29
29
|
osceMarksheetId: Id;
|
|
30
30
|
osceStationId: Id;
|
|
31
|
+
completed: boolean;
|
|
31
32
|
agoraId: string;
|
|
32
33
|
sessionId: string;
|
|
33
34
|
userId: Id;
|
|
@@ -40,6 +41,8 @@ export interface IOsceMarksheetAction {
|
|
|
40
41
|
state: EOsceMarksheetState;
|
|
41
42
|
action: EOsceMarksheetAction;
|
|
42
43
|
marks?: IOsceMarksheetMark[];
|
|
44
|
+
timeTaken?: number;
|
|
45
|
+
score?: number;
|
|
43
46
|
globalScore?: number;
|
|
44
47
|
feedback?: string;
|
|
45
48
|
}
|
|
@@ -70,6 +73,6 @@ export type IOsceMatchmakingUsersData = RootData<[
|
|
|
70
73
|
], 'osceMatchmakingUsers'>;
|
|
71
74
|
export declare const OSCE_MARKSHEET_TIMER: import("@apollo/client").DocumentNode;
|
|
72
75
|
export interface IOsceMarksheetTimerVar {
|
|
73
|
-
|
|
76
|
+
sessionId: string;
|
|
74
77
|
}
|
|
75
78
|
export type IOsceMarksheetTimerData = RootData<IOsceMarksheetTimer, 'osceMarksheetTimer'>;
|
|
@@ -45,8 +45,8 @@ export const OsceGroupInit = (osceMarksheetId) => [
|
|
|
45
45
|
},
|
|
46
46
|
];
|
|
47
47
|
export const OSCE_ROLE_CHANGE = gql `
|
|
48
|
-
subscription osceRoleChangeSubscription($
|
|
49
|
-
osceRoleChange(
|
|
48
|
+
subscription osceRoleChangeSubscription($sessionId: String!) {
|
|
49
|
+
osceRoleChange(sessionId: $sessionId) {
|
|
50
50
|
osceMarksheetId
|
|
51
51
|
sessionId
|
|
52
52
|
members {
|
|
@@ -67,11 +67,12 @@ export const OSCE_ROLE_CHANGE = gql `
|
|
|
67
67
|
`;
|
|
68
68
|
export const OSCE_MARKSHEET_ACTION = gql `
|
|
69
69
|
${OSCE_MARKSHEET_MARK_FIELDS}
|
|
70
|
-
subscription OsceMarksheetAction($
|
|
71
|
-
osceMarksheetAction(
|
|
70
|
+
subscription OsceMarksheetAction($sessionId: String!) {
|
|
71
|
+
osceMarksheetAction(sessionId: $sessionId) {
|
|
72
72
|
osceMarksheetId
|
|
73
73
|
osceStationId
|
|
74
74
|
state
|
|
75
|
+
completed
|
|
75
76
|
sessionId
|
|
76
77
|
agoraId
|
|
77
78
|
userId
|
|
@@ -94,7 +95,9 @@ export const OSCE_MARKSHEET_ACTION = gql `
|
|
|
94
95
|
role
|
|
95
96
|
}
|
|
96
97
|
feedback
|
|
98
|
+
timeTaken
|
|
97
99
|
globalScore
|
|
100
|
+
score
|
|
98
101
|
marks {
|
|
99
102
|
...OsceMarksheetMarkFields
|
|
100
103
|
}
|
|
@@ -118,9 +121,10 @@ export const OSCE_MATCHMAKING_USERS = gql `
|
|
|
118
121
|
}
|
|
119
122
|
`;
|
|
120
123
|
export const OSCE_MARKSHEET_TIMER = gql `
|
|
121
|
-
subscription OsceMarksheetTimer($
|
|
122
|
-
osceMarksheetTimer(
|
|
124
|
+
subscription OsceMarksheetTimer($sessionId: String!) {
|
|
125
|
+
osceMarksheetTimer(sessionId: $sessionId) {
|
|
123
126
|
osceMarksheetId
|
|
127
|
+
sessionId
|
|
124
128
|
timeRemaining
|
|
125
129
|
totalStationTime
|
|
126
130
|
stage
|