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