@quesmed/types-rn 2.1.1 → 2.1.4
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 +3 -4
- package/models/Topic.d.ts +1 -1
- package/models/Topic.js +1 -1
- package/package.json +1 -1
- package/resolvers/fragments/osce.js +2 -4
- package/resolvers/query/restricted/todos.js +2 -2
- package/resolvers/query/restricted/topics.js +2 -0
- package/resolvers/subscription/osce.d.ts +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IOsceStation, IOsceStationMark, IOsceType } from './OsceStation';
|
|
2
2
|
import { Id } from './Type';
|
|
3
3
|
import { IUser } from './User';
|
|
4
|
-
export interface
|
|
4
|
+
export interface IOsceMarksheetMember {
|
|
5
5
|
id: Id | null;
|
|
6
6
|
createdAt: number | Date | null;
|
|
7
7
|
osceMarksheetId: Id;
|
|
@@ -49,7 +49,6 @@ export interface IOsceMarksheet {
|
|
|
49
49
|
timeTaken: number;
|
|
50
50
|
osceStationId: Id;
|
|
51
51
|
osceStation?: IOsceStation;
|
|
52
|
-
userId?: Id;
|
|
53
52
|
role?: EOsceRoles;
|
|
54
53
|
solo: boolean;
|
|
55
54
|
score: number;
|
|
@@ -67,8 +66,8 @@ export interface IOsceMarksheet {
|
|
|
67
66
|
stageTime: string;
|
|
68
67
|
stage: EOsceStage;
|
|
69
68
|
marks: IOsceMarksheetMark[];
|
|
70
|
-
users:
|
|
71
|
-
members:
|
|
69
|
+
users: IUser[];
|
|
70
|
+
members: IOsceMarksheetMember[];
|
|
72
71
|
state: EOsceMarksheetState;
|
|
73
72
|
completed: boolean;
|
|
74
73
|
}
|
package/models/Topic.d.ts
CHANGED
package/models/Topic.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.ETopicType = void 0;
|
|
|
4
4
|
var ETopicType;
|
|
5
5
|
(function (ETopicType) {
|
|
6
6
|
ETopicType[ETopicType["ALL"] = 0] = "ALL";
|
|
7
|
-
ETopicType[ETopicType["
|
|
7
|
+
ETopicType[ETopicType["PRE_CLINICAL"] = 1] = "PRE_CLINICAL";
|
|
8
8
|
ETopicType[ETopicType["CLINICAL"] = 2] = "CLINICAL";
|
|
9
9
|
ETopicType[ETopicType["ANATOMY"] = 3] = "ANATOMY";
|
|
10
10
|
ETopicType[ETopicType["DATA_INTERPRETATION"] = 4] = "DATA_INTERPRETATION";
|
package/package.json
CHANGED
|
@@ -87,9 +87,7 @@ exports.OSCE_MARKSHEET_FIELDS = (0, client_1.gql) `
|
|
|
87
87
|
updatedAt
|
|
88
88
|
timeTaken
|
|
89
89
|
osceStationId
|
|
90
|
-
userId
|
|
91
90
|
solo
|
|
92
|
-
role
|
|
93
91
|
globalScore
|
|
94
92
|
score
|
|
95
93
|
feedback
|
|
@@ -107,7 +105,7 @@ exports.OSCE_MARKSHEET_FIELDS = (0, client_1.gql) `
|
|
|
107
105
|
marks {
|
|
108
106
|
...OsceMarksheetMarkFields
|
|
109
107
|
}
|
|
110
|
-
|
|
108
|
+
members {
|
|
111
109
|
# id - do not pass otherwise all unassigned roles = candidate
|
|
112
110
|
osceMarksheetId
|
|
113
111
|
userId
|
|
@@ -117,7 +115,7 @@ exports.OSCE_MARKSHEET_FIELDS = (0, client_1.gql) `
|
|
|
117
115
|
}
|
|
118
116
|
role
|
|
119
117
|
}
|
|
120
|
-
|
|
118
|
+
users {
|
|
121
119
|
id
|
|
122
120
|
displayName
|
|
123
121
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EClassYearGroup, EOsceMarksheetAction, EOsceRoles, IAccessLevel, IClassYear, Id,
|
|
1
|
+
import { EClassYearGroup, EOsceMarksheetAction, EOsceRoles, IAccessLevel, IClassYear, Id, IOsceMarksheetMember, IOsceMarksheetTimer, IUser } from '../../models';
|
|
2
2
|
import { RootData } from '../types';
|
|
3
3
|
export declare const OSCE_ROLE_CHANGE_KEY = "OSCE_ROLE_CHANGE";
|
|
4
4
|
export declare const OSCE_MARKSHEET_ACTION_KEY = "OSCE_MARKSHEET_ACTION";
|
|
@@ -12,10 +12,10 @@ export interface IOsceGroupMember {
|
|
|
12
12
|
export interface IOsceGroup {
|
|
13
13
|
osceMarksheetId: Id;
|
|
14
14
|
agoraId: string;
|
|
15
|
-
members:
|
|
15
|
+
members: IOsceMarksheetMember[];
|
|
16
16
|
users: IUser[];
|
|
17
17
|
}
|
|
18
|
-
export declare const OsceGroupInit: (osceMarksheetId: number) =>
|
|
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;
|