@quesmed/types 1.3.10 → 1.3.14
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/models/OsceMarksheet.d.ts +6 -4
- package/models/OsceMarksheet.js +5 -4
- package/models/OsceStation.d.ts +1 -0
- package/models/OsceStation.js +31 -30
- package/models/User.d.ts +2 -1
- package/package.json +3 -2
- package/resolvers/mutation/restricted/osce.d.ts +16 -0
- package/resolvers/subscription/osce.d.ts +15 -1
- package/resolvers/subscription/osce.js +3 -1
|
@@ -19,10 +19,11 @@ export interface IOsceMarksheetMark {
|
|
|
19
19
|
osceStationMark?: IOsceStationMark;
|
|
20
20
|
}
|
|
21
21
|
export declare enum EOsceRoles {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
ALL = 0,
|
|
23
|
+
CANDIDATE = 1,
|
|
24
|
+
ACTOR = 2,
|
|
25
|
+
EXAMINER = 3,
|
|
26
|
+
OBSERVER = 4
|
|
26
27
|
}
|
|
27
28
|
export declare enum EOsceMarksheetAction {
|
|
28
29
|
PRESTART = 0,
|
|
@@ -60,6 +61,7 @@ export interface IOsceMarksheet {
|
|
|
60
61
|
completed: boolean;
|
|
61
62
|
}
|
|
62
63
|
export interface IDashboardOsce {
|
|
64
|
+
lastAgoraId: string;
|
|
63
65
|
types: IOsceTypeDashboard[];
|
|
64
66
|
avgScore: number;
|
|
65
67
|
completed: number;
|
package/models/OsceMarksheet.js
CHANGED
|
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EOsceMarksheetAction = exports.EOsceRoles = void 0;
|
|
4
4
|
var EOsceRoles;
|
|
5
5
|
(function (EOsceRoles) {
|
|
6
|
-
EOsceRoles[EOsceRoles["
|
|
7
|
-
EOsceRoles[EOsceRoles["
|
|
8
|
-
EOsceRoles[EOsceRoles["
|
|
9
|
-
EOsceRoles[EOsceRoles["
|
|
6
|
+
EOsceRoles[EOsceRoles["ALL"] = 0] = "ALL";
|
|
7
|
+
EOsceRoles[EOsceRoles["CANDIDATE"] = 1] = "CANDIDATE";
|
|
8
|
+
EOsceRoles[EOsceRoles["ACTOR"] = 2] = "ACTOR";
|
|
9
|
+
EOsceRoles[EOsceRoles["EXAMINER"] = 3] = "EXAMINER";
|
|
10
|
+
EOsceRoles[EOsceRoles["OBSERVER"] = 4] = "OBSERVER";
|
|
10
11
|
})(EOsceRoles = exports.EOsceRoles || (exports.EOsceRoles = {}));
|
|
11
12
|
var EOsceMarksheetAction;
|
|
12
13
|
(function (EOsceMarksheetAction) {
|
package/models/OsceStation.d.ts
CHANGED
package/models/OsceStation.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OSCE_GLOBAL_RATING = exports.EOsceType = void 0;
|
|
4
4
|
var EOsceType;
|
|
5
5
|
(function (EOsceType) {
|
|
6
|
+
EOsceType[EOsceType["ALL"] = 0] = "ALL";
|
|
6
7
|
EOsceType[EOsceType["HISTORY_TAKING"] = 1] = "HISTORY_TAKING";
|
|
7
8
|
EOsceType[EOsceType["COMMUNICATION_SKILLS"] = 2] = "COMMUNICATION_SKILLS";
|
|
8
9
|
EOsceType[EOsceType["EXAMINATION"] = 3] = "EXAMINATION";
|
|
@@ -11,34 +12,34 @@ var EOsceType;
|
|
|
11
12
|
EOsceType[EOsceType["ABCDE"] = 6] = "ABCDE";
|
|
12
13
|
})(EOsceType = exports.EOsceType || (exports.EOsceType = {}));
|
|
13
14
|
exports.OSCE_GLOBAL_RATING = {
|
|
14
|
-
[EOsceType.ABCDE]:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
[EOsceType.COMMUNICATION_SKILLS]:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
[EOsceType.EXAMINATION]:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
[EOsceType.HISTORY_TAKING]:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
[EOsceType.INTERPRETATION]:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
[EOsceType.PROCEDURE]:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
15
|
+
[EOsceType.ABCDE]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
|
|
16
|
+
2. Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole task was performed slightly below passing level or there were some key errors or omissions
|
|
17
|
+
3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
18
|
+
4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
19
|
+
5. Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
|
|
20
|
+
[EOsceType.COMMUNICATION_SKILLS]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
|
|
21
|
+
2. Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole task was performed slightly below passing level or there were some key errors or omissions
|
|
22
|
+
3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
23
|
+
4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
24
|
+
5. Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
|
|
25
|
+
[EOsceType.EXAMINATION]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
|
|
26
|
+
2. Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole task was performed slightly below passing level or there were some key errors or omissions
|
|
27
|
+
3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
28
|
+
4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
29
|
+
5. Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
|
|
30
|
+
[EOsceType.HISTORY_TAKING]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard.
|
|
31
|
+
2. Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole history was performed slightly below passing level or there were some key errors or omissions. The differentials have some important omissions.
|
|
32
|
+
3. Pass - The history was performed to an acceptable level. There may have been some minor errors or omissions. The differentials were sensible.
|
|
33
|
+
4. Good - The performance of the candidate was good in most areas. All aspects of the task were performed equally well. The differentials were thorough and well-reasoned.
|
|
34
|
+
5. Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the history and summary and displayed confidence, professionalism, and empathy.`,
|
|
35
|
+
[EOsceType.INTERPRETATION]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
|
|
36
|
+
2. Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole task was performed slightly below passing level or there were some key errors or omissions
|
|
37
|
+
3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
38
|
+
4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
39
|
+
5. Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
|
|
40
|
+
[EOsceType.PROCEDURE]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard.
|
|
41
|
+
2. Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole task was performed slightly below passing level or there were some key errors or omissions.
|
|
42
|
+
3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
43
|
+
4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
44
|
+
5. Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
|
|
44
45
|
};
|
package/models/User.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { IQuestion } from './Question';
|
|
|
5
5
|
import { ISubscription } from './Subscription';
|
|
6
6
|
import { ITopic } from './Topic';
|
|
7
7
|
import { Id } from './Type';
|
|
8
|
+
export declare type IClassYear = 'Year 1' | 'Year 2' | 'Year 3' | 'Year 4' | 'Year 5' | 'Graduated' | 'PhD' | 'BSc' | 'MSc' | 'Beta Tester';
|
|
8
9
|
export interface IPayload {
|
|
9
10
|
id: Id;
|
|
10
11
|
firstName: string;
|
|
@@ -22,7 +23,7 @@ export interface IUser {
|
|
|
22
23
|
username: string;
|
|
23
24
|
firstName: string;
|
|
24
25
|
lastName: string;
|
|
25
|
-
classYear:
|
|
26
|
+
classYear: IClassYear;
|
|
26
27
|
graduationYear: number;
|
|
27
28
|
universityId: number;
|
|
28
29
|
examDate: Date | string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quesmed/types",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
4
4
|
"description": "Typescript types for Quesmed",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,5 +20,6 @@
|
|
|
20
20
|
"url": "https://github.com/Quesmed/quesmed_types/issues"
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/Quesmed/quesmed_types#readme",
|
|
23
|
-
"devDependencies": {}
|
|
23
|
+
"devDependencies": {},
|
|
24
|
+
"packageManager": "yarn@3.1.1"
|
|
24
25
|
}
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import { EOsceMarksheetAction, EOsceRoles, Id, IOsceMarksheet, IOsceMarksheetMark } from '../../../models';
|
|
2
|
+
import { IOsceMatchmakingAction } from '../../subscription/osce';
|
|
3
|
+
export interface IStartOsceMatchmakingVar {
|
|
4
|
+
agoraId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare type IStartOsceMatchmakingData = boolean;
|
|
7
|
+
export interface IAcceptOsceMatchmakingVar {
|
|
8
|
+
agoraId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare type IAcceptOsceMatchmakingData = boolean;
|
|
11
|
+
export declare type ICheckOsceMatchmakingVar = null;
|
|
12
|
+
export interface ICheckOsceMatchmakingData extends IOsceMatchmakingAction {
|
|
13
|
+
}
|
|
14
|
+
export interface ICancelOsceMatchmakingVar {
|
|
15
|
+
agoraId: string;
|
|
16
|
+
}
|
|
17
|
+
export declare type ICancelOsceMatchmakingData = boolean;
|
|
2
18
|
export interface IBuildOsceMarksheetVar {
|
|
3
19
|
osceStationId?: Id;
|
|
4
20
|
solo?: boolean;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { EOsceMarksheetAction, EOsceRoles, Id, IOsceMarksheetUser, IUser } from '../../models';
|
|
1
|
+
import { EOsceMarksheetAction, EOsceRoles, IClassYear, Id, IOsceMarksheetUser, IUser } from '../../models';
|
|
2
2
|
export declare const ROLE_CHANGED = "ROLE_CHANGED";
|
|
3
3
|
export declare const OSCE_MARKSHEET_ACTION = "OSCE_MARKSHEET_ACTION";
|
|
4
|
+
export declare const OSCE_MATCHMAKING = "OSCE_MATCHMAKING";
|
|
5
|
+
export declare const OSCE_MATCHMAKING_USERS = "OSCE_MATCHMAKING_USERS";
|
|
4
6
|
export interface IOsceGroupMember {
|
|
5
7
|
role: EOsceRoles;
|
|
6
8
|
user: IUser | null;
|
|
@@ -30,3 +32,15 @@ export interface IOsceMarksheetAction {
|
|
|
30
32
|
}
|
|
31
33
|
export interface IOsceMarksheetActionsData extends IOsceMarksheetAction {
|
|
32
34
|
}
|
|
35
|
+
export interface IOsceMatchmakingAction {
|
|
36
|
+
osceMarksheetId: Id;
|
|
37
|
+
agoraId: string;
|
|
38
|
+
matchedUsers: number;
|
|
39
|
+
userId: Id;
|
|
40
|
+
classYear: IClassYear;
|
|
41
|
+
lastSyncAt: number;
|
|
42
|
+
startedAt: number;
|
|
43
|
+
complete: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface IOsceMatchmakingData extends IOsceMatchmakingAction {
|
|
46
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OsceGroupInit = exports.OSCE_MARKSHEET_ACTION = exports.ROLE_CHANGED = void 0;
|
|
3
|
+
exports.OsceGroupInit = exports.OSCE_MATCHMAKING_USERS = exports.OSCE_MATCHMAKING = exports.OSCE_MARKSHEET_ACTION = exports.ROLE_CHANGED = void 0;
|
|
4
4
|
const models_1 = require("../../models");
|
|
5
5
|
exports.ROLE_CHANGED = 'ROLE_CHANGED';
|
|
6
6
|
exports.OSCE_MARKSHEET_ACTION = 'OSCE_MARKSHEET_ACTION';
|
|
7
|
+
exports.OSCE_MATCHMAKING = 'OSCE_MATCHMAKING';
|
|
8
|
+
exports.OSCE_MATCHMAKING_USERS = 'OSCE_MATCHMAKING_USERS';
|
|
7
9
|
const OsceGroupInit = (osceMarksheetId) => [
|
|
8
10
|
{
|
|
9
11
|
id: null,
|