@quesmed/types-rn 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/index.d.ts +0 -7
- package/index.js +1 -9
- package/models/Marksheet.d.ts +0 -2
- package/models/MockTest.d.ts +0 -2
- package/models/OsceMarksheet.d.ts +0 -3
- package/models/OsceMarksheet.js +0 -1
- package/models/Preset.d.ts +18 -1
- package/models/Product.d.ts +1 -2
- package/models/Product.js +0 -1
- package/models/Question.d.ts +2 -2
- package/models/Topic.d.ts +1 -2
- package/models/Topic.js +0 -1
- package/package.json +1 -1
- package/resolvers/mutation/restricted/marksheet.d.ts +0 -2
- package/resolvers/mutation/restricted/marksheet.js +0 -21
- package/resolvers/mutation/restricted/mockTest.d.ts +0 -1
- package/resolvers/mutation/restricted/osce.d.ts +1 -1
- package/resolvers/mutation/restricted/osce.js +2 -2
- package/resolvers/mutation/restricted/preset.d.ts +11 -4
- package/resolvers/mutation/restricted/preset.js +39 -1
- package/resolvers/query/restricted/marksheet.js +0 -21
- package/resolvers/query/restricted/question.js +0 -7
- package/resolvers/query/restricted/topics.js +12 -24
- package/resolvers/query/university.d.ts +1 -2
- package/resolvers/query/university.js +2 -2
- package/resolvers/subscription/marksheet.d.ts +3 -5
- package/resolvers/subscription/marksheet.js +6 -8
- package/resolvers/subscription/osce.d.ts +3 -5
- package/resolvers/subscription/osce.js +6 -9
package/index.d.ts
CHANGED
|
@@ -8,13 +8,6 @@ export declare const ERRORS: {
|
|
|
8
8
|
SUBSCRIPTION_EXPIRED: string;
|
|
9
9
|
PERMISSION_INVALID: string;
|
|
10
10
|
};
|
|
11
|
-
export declare enum AlgoliaIndex {
|
|
12
|
-
Questions = "questions",
|
|
13
|
-
Flashcards = "cards",
|
|
14
|
-
Quesbook = "quesbook",
|
|
15
|
-
OsceBook = "oscebook",
|
|
16
|
-
Videos = "videos"
|
|
17
|
-
}
|
|
18
11
|
export declare enum EGrammarType {
|
|
19
12
|
QUESTION = 0,
|
|
20
13
|
CARD = 1,
|
package/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.generateDisplayName = exports.medicalWords = exports.termsAndConditions = exports.EPlatformId = exports.FCM_TOPICS = exports.EGrammarType = exports.
|
|
29
|
+
exports.generateDisplayName = exports.medicalWords = exports.termsAndConditions = exports.EPlatformId = exports.FCM_TOPICS = exports.EGrammarType = exports.ERRORS = exports.utils = exports.Models = void 0;
|
|
30
30
|
const random_1 = require("./utils/random");
|
|
31
31
|
exports.Models = __importStar(require("./models"));
|
|
32
32
|
__exportStar(require("./resolvers"), exports);
|
|
@@ -38,14 +38,6 @@ exports.ERRORS = {
|
|
|
38
38
|
SUBSCRIPTION_EXPIRED: 'Expired subscription.',
|
|
39
39
|
PERMISSION_INVALID: 'Invalid permission.',
|
|
40
40
|
};
|
|
41
|
-
var AlgoliaIndex;
|
|
42
|
-
(function (AlgoliaIndex) {
|
|
43
|
-
AlgoliaIndex["Questions"] = "questions";
|
|
44
|
-
AlgoliaIndex["Flashcards"] = "cards";
|
|
45
|
-
AlgoliaIndex["Quesbook"] = "quesbook";
|
|
46
|
-
AlgoliaIndex["OsceBook"] = "oscebook";
|
|
47
|
-
AlgoliaIndex["Videos"] = "videos";
|
|
48
|
-
})(AlgoliaIndex = exports.AlgoliaIndex || (exports.AlgoliaIndex = {}));
|
|
49
41
|
var EGrammarType;
|
|
50
42
|
(function (EGrammarType) {
|
|
51
43
|
EGrammarType[EGrammarType["QUESTION"] = 0] = "QUESTION";
|
package/models/Marksheet.d.ts
CHANGED
|
@@ -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 {
|
package/models/MockTest.d.ts
CHANGED
|
@@ -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;
|
package/models/OsceMarksheet.js
CHANGED
package/models/Preset.d.ts
CHANGED
|
@@ -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;
|
package/models/Product.d.ts
CHANGED
package/models/Product.js
CHANGED
|
@@ -17,7 +17,6 @@ var EProductType;
|
|
|
17
17
|
EProductType[EProductType["INTERVIEW_ANAESTHETICS"] = 11] = "INTERVIEW_ANAESTHETICS";
|
|
18
18
|
EProductType[EProductType["INTERVIEW_CST"] = 12] = "INTERVIEW_CST";
|
|
19
19
|
EProductType[EProductType["INTERVIEW_IMT"] = 13] = "INTERVIEW_IMT";
|
|
20
|
-
EProductType[EProductType["INTERVIEW_RADIOLOGY"] = 14] = "INTERVIEW_RADIOLOGY";
|
|
21
20
|
})(EProductType = exports.EProductType || (exports.EProductType = {}));
|
|
22
21
|
var EAppType;
|
|
23
22
|
(function (EAppType) {
|
package/models/Question.d.ts
CHANGED
|
@@ -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/models/Topic.d.ts
CHANGED
package/models/Topic.js
CHANGED
|
@@ -11,5 +11,4 @@ var ETopicType;
|
|
|
11
11
|
ETopicType[ETopicType["PSA"] = 5] = "PSA";
|
|
12
12
|
ETopicType[ETopicType["OSCE"] = 6] = "OSCE";
|
|
13
13
|
ETopicType[ETopicType["MOCK_TEST"] = 7] = "MOCK_TEST";
|
|
14
|
-
ETopicType[ETopicType["SJT"] = 8] = "SJT";
|
|
15
14
|
})(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
|
package/package.json
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
|
};
|
|
@@ -609,13 +609,6 @@ exports.BUILD_QUESTION_MARKSHEET = (0, client_1.gql) `
|
|
|
609
609
|
tag
|
|
610
610
|
color
|
|
611
611
|
}
|
|
612
|
-
cases {
|
|
613
|
-
id
|
|
614
|
-
questionId
|
|
615
|
-
case
|
|
616
|
-
explanation
|
|
617
|
-
label
|
|
618
|
-
}
|
|
619
612
|
choices {
|
|
620
613
|
id
|
|
621
614
|
explanation
|
|
@@ -1597,13 +1590,6 @@ exports.BUILD_MARKSHEET = (0, client_1.gql) `
|
|
|
1597
1590
|
tag
|
|
1598
1591
|
color
|
|
1599
1592
|
}
|
|
1600
|
-
cases {
|
|
1601
|
-
id
|
|
1602
|
-
questionId
|
|
1603
|
-
case
|
|
1604
|
-
explanation
|
|
1605
|
-
label
|
|
1606
|
-
}
|
|
1607
1593
|
choices {
|
|
1608
1594
|
id
|
|
1609
1595
|
explanation
|
|
@@ -2590,13 +2576,6 @@ exports.RE_BUILD_MARKSHEET = (0, client_1.gql) `
|
|
|
2590
2576
|
tag
|
|
2591
2577
|
color
|
|
2592
2578
|
}
|
|
2593
|
-
cases {
|
|
2594
|
-
id
|
|
2595
|
-
questionId
|
|
2596
|
-
case
|
|
2597
|
-
explanation
|
|
2598
|
-
label
|
|
2599
|
-
}
|
|
2600
2579
|
choices {
|
|
2601
2580
|
id
|
|
2602
2581
|
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'>;
|
|
@@ -68,9 +68,9 @@ exports.BUILD_OSCE_MARKSHEET = (0, client_1.gql) `
|
|
|
68
68
|
`;
|
|
69
69
|
exports.CHANGE_OSCE_ROLE = (0, client_1.gql) `
|
|
70
70
|
${osce_1.OSCE_MARKSHEET_FIELDS}
|
|
71
|
-
mutation ChangeOsceRole($
|
|
71
|
+
mutation ChangeOsceRole($osceMarksheetId: Int!, $role: Int!) {
|
|
72
72
|
restricted {
|
|
73
|
-
changeOsceRole(
|
|
73
|
+
changeOsceRole(osceMarksheetId: $osceMarksheetId, role: $role) {
|
|
74
74
|
...OsceMarksheetFields
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EDIT_PRESET = exports.DUPLICATE_PRESET = exports.DELETE_PRESET = void 0;
|
|
3
|
+
exports.CREATE_PRESET = exports.EDIT_PRESET = exports.DUPLICATE_PRESET = exports.DELETE_PRESET = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.DELETE_PRESET = (0, client_1.gql) `
|
|
6
6
|
mutation DeletePreset($presetId: Int!) {
|
|
@@ -18,6 +18,14 @@ exports.DUPLICATE_PRESET = (0, client_1.gql) `
|
|
|
18
18
|
name
|
|
19
19
|
topicType
|
|
20
20
|
likes
|
|
21
|
+
topics {
|
|
22
|
+
id
|
|
23
|
+
name
|
|
24
|
+
concepts {
|
|
25
|
+
id
|
|
26
|
+
name
|
|
27
|
+
}
|
|
28
|
+
}
|
|
21
29
|
}
|
|
22
30
|
}
|
|
23
31
|
}
|
|
@@ -31,6 +39,36 @@ exports.EDIT_PRESET = (0, client_1.gql) `
|
|
|
31
39
|
name
|
|
32
40
|
topicType
|
|
33
41
|
likes
|
|
42
|
+
topics {
|
|
43
|
+
id
|
|
44
|
+
name
|
|
45
|
+
concepts {
|
|
46
|
+
id
|
|
47
|
+
name
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
exports.CREATE_PRESET = (0, client_1.gql) `
|
|
55
|
+
mutation CreatePreset($data: CreatePresetInput!) {
|
|
56
|
+
restricted {
|
|
57
|
+
createPreset(data: $data) {
|
|
58
|
+
id
|
|
59
|
+
createdAt
|
|
60
|
+
userId
|
|
61
|
+
name
|
|
62
|
+
topicType
|
|
63
|
+
likes
|
|
64
|
+
topics {
|
|
65
|
+
id
|
|
66
|
+
name
|
|
67
|
+
concepts {
|
|
68
|
+
id
|
|
69
|
+
name
|
|
70
|
+
}
|
|
71
|
+
}
|
|
34
72
|
}
|
|
35
73
|
}
|
|
36
74
|
}
|
|
@@ -611,13 +611,6 @@ exports.MARKSHEET = (0, client_1.gql) `
|
|
|
611
611
|
tag
|
|
612
612
|
color
|
|
613
613
|
}
|
|
614
|
-
cases {
|
|
615
|
-
id
|
|
616
|
-
questionId
|
|
617
|
-
case
|
|
618
|
-
explanation
|
|
619
|
-
label
|
|
620
|
-
}
|
|
621
614
|
choices {
|
|
622
615
|
id
|
|
623
616
|
explanation
|
|
@@ -1743,13 +1736,6 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
|
|
|
1743
1736
|
tag
|
|
1744
1737
|
color
|
|
1745
1738
|
}
|
|
1746
|
-
cases {
|
|
1747
|
-
id
|
|
1748
|
-
questionId
|
|
1749
|
-
case
|
|
1750
|
-
explanation
|
|
1751
|
-
label
|
|
1752
|
-
}
|
|
1753
1739
|
choices {
|
|
1754
1740
|
id
|
|
1755
1741
|
explanation
|
|
@@ -2724,13 +2710,6 @@ exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
|
|
|
2724
2710
|
tag
|
|
2725
2711
|
color
|
|
2726
2712
|
}
|
|
2727
|
-
cases {
|
|
2728
|
-
id
|
|
2729
|
-
questionId
|
|
2730
|
-
case
|
|
2731
|
-
explanation
|
|
2732
|
-
label
|
|
2733
|
-
}
|
|
2734
2713
|
choices {
|
|
2735
2714
|
id
|
|
2736
2715
|
explanation
|
|
@@ -3,37 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FLASHCARDS_TOPICS = exports.QUESTION_TOPICS = exports.TOPICS = exports.TOPIC = exports.TOPIC_STATS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.TOPIC_STATS = (0, client_1.gql) `
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
query TopicStats($typeId: [Int!]) {
|
|
7
|
+
restricted {
|
|
8
|
+
topicStats(typeId: $typeId) {
|
|
9
|
+
totalQuestions
|
|
10
|
+
completedQuestions
|
|
11
|
+
correctQuestions
|
|
12
|
+
incorrectQuestions
|
|
13
|
+
types {
|
|
14
|
+
id
|
|
15
|
+
name
|
|
9
16
|
totalQuestions
|
|
10
17
|
completedQuestions
|
|
11
18
|
correctQuestions
|
|
12
19
|
incorrectQuestions
|
|
13
|
-
|
|
14
|
-
redCards
|
|
15
|
-
totalCards
|
|
16
|
-
greenCards
|
|
17
|
-
yellowCards
|
|
18
|
-
dailyFeedCards
|
|
19
|
-
|
|
20
|
-
types {
|
|
21
|
-
id
|
|
22
|
-
name
|
|
23
|
-
totalQuestions
|
|
24
|
-
completedQuestions
|
|
25
|
-
correctQuestions
|
|
26
|
-
incorrectQuestions
|
|
27
|
-
|
|
28
|
-
redCards
|
|
29
|
-
totalCards
|
|
30
|
-
greenCards
|
|
31
|
-
yellowCards
|
|
32
|
-
dailyFeedCards
|
|
33
|
-
}
|
|
34
20
|
}
|
|
35
21
|
}
|
|
36
22
|
}
|
|
23
|
+
}
|
|
24
|
+
|
|
37
25
|
`;
|
|
38
26
|
exports.TOPIC = (0, client_1.gql) `
|
|
39
27
|
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;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UNIVERSITIES = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.UNIVERSITIES = (0, client_1.gql) `
|
|
6
|
-
query universities($id: Int
|
|
7
|
-
universities(id: $id
|
|
6
|
+
query universities($id: Int) {
|
|
7
|
+
universities(id: $id) {
|
|
8
8
|
name
|
|
9
9
|
id
|
|
10
10
|
}
|
|
@@ -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;
|
|
@@ -4,8 +4,8 @@ exports.ON_MARKSHEET_MARK_CHANGE = exports.ON_MARKSHEET_MARK_CHANGE_KEY = export
|
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.ON_MARKSHEET_CHANGE_KEY = 'ON_MARKSHEET_CHANGE_KEY';
|
|
6
6
|
exports.ON_MARKSHEET_CHANGE = (0, client_1.gql) `
|
|
7
|
-
subscription OnMarksheetChange($
|
|
8
|
-
onMarksheetChange(
|
|
7
|
+
subscription OnMarksheetChange($marksheetId: Int!) {
|
|
8
|
+
onMarksheetChange(marksheetId: $marksheetId) {
|
|
9
9
|
marksheetId
|
|
10
10
|
agoraId
|
|
11
11
|
sessionId
|
|
@@ -31,10 +31,9 @@ exports.ON_MARKSHEET_CHANGE = (0, client_1.gql) `
|
|
|
31
31
|
`;
|
|
32
32
|
exports.ON_PRESTART_MARKSHEET_CHANGE_KEY = 'ON_PRESTART_MARKSHEET_CHANGE_KEY';
|
|
33
33
|
exports.ON_PRESTART_MARKSHEET_CHANGE = (0, client_1.gql) `
|
|
34
|
-
subscription OnPreStartMarksheetChange($
|
|
35
|
-
onPreStartMarksheetChange(
|
|
34
|
+
subscription OnPreStartMarksheetChange($marksheetId: Int!) {
|
|
35
|
+
onPreStartMarksheetChange(marksheetId: $marksheetId) {
|
|
36
36
|
marksheetId
|
|
37
|
-
sessionId
|
|
38
37
|
topicConceptData
|
|
39
38
|
action
|
|
40
39
|
user {
|
|
@@ -61,11 +60,10 @@ exports.ON_PRESTART_MARKSHEET_CHANGE = (0, client_1.gql) `
|
|
|
61
60
|
`;
|
|
62
61
|
exports.ON_MARKSHEET_MARK_CHANGE_KEY = 'ON_MARKSHEET_CHANGE_KEY';
|
|
63
62
|
exports.ON_MARKSHEET_MARK_CHANGE = (0, client_1.gql) `
|
|
64
|
-
subscription OnMarksheetMarkChange($
|
|
65
|
-
onMarksheetMarkChange(
|
|
63
|
+
subscription OnMarksheetMarkChange($marksheetId: Int!) {
|
|
64
|
+
onMarksheetMarkChange(marksheetId: $marksheetId) {
|
|
66
65
|
action
|
|
67
66
|
marksheetId
|
|
68
|
-
sessionId
|
|
69
67
|
markId
|
|
70
68
|
newMarkId
|
|
71
69
|
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'>;
|
|
@@ -49,8 +49,8 @@ const OsceGroupInit = (osceMarksheetId) => [
|
|
|
49
49
|
];
|
|
50
50
|
exports.OsceGroupInit = OsceGroupInit;
|
|
51
51
|
exports.OSCE_ROLE_CHANGE = (0, client_1.gql) `
|
|
52
|
-
subscription osceRoleChangeSubscription($
|
|
53
|
-
osceRoleChange(
|
|
52
|
+
subscription osceRoleChangeSubscription($osceMarksheetId: Int!) {
|
|
53
|
+
osceRoleChange(osceMarksheetId: $osceMarksheetId) {
|
|
54
54
|
osceMarksheetId
|
|
55
55
|
sessionId
|
|
56
56
|
members {
|
|
@@ -71,8 +71,8 @@ exports.OSCE_ROLE_CHANGE = (0, client_1.gql) `
|
|
|
71
71
|
`;
|
|
72
72
|
exports.OSCE_MARKSHEET_ACTION = (0, client_1.gql) `
|
|
73
73
|
${fragments_1.OSCE_MARKSHEET_MARK_FIELDS}
|
|
74
|
-
subscription OsceMarksheetAction($
|
|
75
|
-
osceMarksheetAction(
|
|
74
|
+
subscription OsceMarksheetAction($osceMarksheetId: Int!) {
|
|
75
|
+
osceMarksheetAction(osceMarksheetId: $osceMarksheetId) {
|
|
76
76
|
osceMarksheetId
|
|
77
77
|
osceStationId
|
|
78
78
|
state
|
|
@@ -98,9 +98,7 @@ exports.OSCE_MARKSHEET_ACTION = (0, client_1.gql) `
|
|
|
98
98
|
role
|
|
99
99
|
}
|
|
100
100
|
feedback
|
|
101
|
-
timeTaken
|
|
102
101
|
globalScore
|
|
103
|
-
score
|
|
104
102
|
marks {
|
|
105
103
|
...OsceMarksheetMarkFields
|
|
106
104
|
}
|
|
@@ -124,10 +122,9 @@ exports.OSCE_MATCHMAKING_USERS = (0, client_1.gql) `
|
|
|
124
122
|
}
|
|
125
123
|
`;
|
|
126
124
|
exports.OSCE_MARKSHEET_TIMER = (0, client_1.gql) `
|
|
127
|
-
subscription OsceMarksheetTimer($
|
|
128
|
-
osceMarksheetTimer(
|
|
125
|
+
subscription OsceMarksheetTimer($osceMarksheetId: Int!) {
|
|
126
|
+
osceMarksheetTimer(osceMarksheetId: $osceMarksheetId) {
|
|
129
127
|
osceMarksheetId
|
|
130
|
-
sessionId
|
|
131
128
|
timeRemaining
|
|
132
129
|
totalStationTime
|
|
133
130
|
stage
|