@quesmed/types 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.
@@ -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 IOsceMarksheetUser {
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: IOsceMarksheetUser[];
71
- members: IUser[];
69
+ users: IUser[];
70
+ members: IOsceMarksheetMember[];
72
71
  state: EOsceMarksheetState;
73
72
  completed: boolean;
74
73
  }
@@ -2,7 +2,7 @@ import { IConcept } from './Concept';
2
2
  import { Id } from './Type';
3
3
  export declare enum ETopicType {
4
4
  ALL = 0,
5
- BASIC_SCIENCE = 1,
5
+ PRE_CLINICAL = 1,
6
6
  CLINICAL = 2,
7
7
  ANATOMY = 3,
8
8
  DATA_INTERPRETATION = 4,
@@ -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["BASIC_SCIENCE"] = 1] = "BASIC_SCIENCE";
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";
@@ -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
- users {
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
- members {
118
+ users {
121
119
  id
122
120
  displayName
123
121
  }
@@ -24,9 +24,9 @@ exports.PRE_BUILD_TODO = (0, client_1.gql) `
24
24
  }
25
25
  `;
26
26
  exports.TODO = (0, client_1.gql) `
27
- query Todo($todoId: Int!) {
27
+ query Todo($id: Int!) {
28
28
  restricted {
29
- todo(id: $todoId) {
29
+ todo(id: $id) {
30
30
  id
31
31
  dailyTask
32
32
  source
@@ -16,6 +16,7 @@ exports.TOPIC = (0, client_1.gql) `
16
16
  yellowCards
17
17
  redCards
18
18
  dailyFeedCards
19
+ typeId
19
20
  }
20
21
  }
21
22
  }
@@ -34,6 +35,7 @@ exports.TOPICS = (0, client_1.gql) `
34
35
  yellowCards
35
36
  redCards
36
37
  dailyFeedCards
38
+ typeId
37
39
  }
38
40
  }
39
41
  }
@@ -1,4 +1,4 @@
1
- import { EClassYearGroup, EOsceMarksheetAction, EOsceRoles, IAccessLevel, IClassYear, Id, IOsceMarksheetTimer, IOsceMarksheetUser, IUser } from '../../models';
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: IOsceMarksheetUser[];
15
+ members: IOsceMarksheetMember[];
16
16
  users: IUser[];
17
17
  }
18
- export declare const OsceGroupInit: (osceMarksheetId: number) => IOsceMarksheetUser[];
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;
@@ -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 IOsceMarksheetUser {
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: IOsceMarksheetUser[];
71
- members: IUser[];
69
+ users: IUser[];
70
+ members: IOsceMarksheetMember[];
72
71
  state: EOsceMarksheetState;
73
72
  completed: boolean;
74
73
  }
@@ -2,7 +2,7 @@ import { IConcept } from './Concept';
2
2
  import { Id } from './Type';
3
3
  export declare enum ETopicType {
4
4
  ALL = 0,
5
- BASIC_SCIENCE = 1,
5
+ PRE_CLINICAL = 1,
6
6
  CLINICAL = 2,
7
7
  ANATOMY = 3,
8
8
  DATA_INTERPRETATION = 4,
@@ -1,7 +1,7 @@
1
1
  export var ETopicType;
2
2
  (function (ETopicType) {
3
3
  ETopicType[ETopicType["ALL"] = 0] = "ALL";
4
- ETopicType[ETopicType["BASIC_SCIENCE"] = 1] = "BASIC_SCIENCE";
4
+ ETopicType[ETopicType["PRE_CLINICAL"] = 1] = "PRE_CLINICAL";
5
5
  ETopicType[ETopicType["CLINICAL"] = 2] = "CLINICAL";
6
6
  ETopicType[ETopicType["ANATOMY"] = 3] = "ANATOMY";
7
7
  ETopicType[ETopicType["DATA_INTERPRETATION"] = 4] = "DATA_INTERPRETATION";
@@ -84,9 +84,7 @@ export const OSCE_MARKSHEET_FIELDS = gql `
84
84
  updatedAt
85
85
  timeTaken
86
86
  osceStationId
87
- userId
88
87
  solo
89
- role
90
88
  globalScore
91
89
  score
92
90
  feedback
@@ -104,7 +102,7 @@ export const OSCE_MARKSHEET_FIELDS = gql `
104
102
  marks {
105
103
  ...OsceMarksheetMarkFields
106
104
  }
107
- users {
105
+ members {
108
106
  # id - do not pass otherwise all unassigned roles = candidate
109
107
  osceMarksheetId
110
108
  userId
@@ -114,7 +112,7 @@ export const OSCE_MARKSHEET_FIELDS = gql `
114
112
  }
115
113
  role
116
114
  }
117
- members {
115
+ users {
118
116
  id
119
117
  displayName
120
118
  }
@@ -21,9 +21,9 @@ export const PRE_BUILD_TODO = gql `
21
21
  }
22
22
  `;
23
23
  export const TODO = gql `
24
- query Todo($todoId: Int!) {
24
+ query Todo($id: Int!) {
25
25
  restricted {
26
- todo(id: $todoId) {
26
+ todo(id: $id) {
27
27
  id
28
28
  dailyTask
29
29
  source
@@ -13,6 +13,7 @@ export const TOPIC = gql `
13
13
  yellowCards
14
14
  redCards
15
15
  dailyFeedCards
16
+ typeId
16
17
  }
17
18
  }
18
19
  }
@@ -31,6 +32,7 @@ export const TOPICS = gql `
31
32
  yellowCards
32
33
  redCards
33
34
  dailyFeedCards
35
+ typeId
34
36
  }
35
37
  }
36
38
  }
@@ -1,4 +1,4 @@
1
- import { EClassYearGroup, EOsceMarksheetAction, EOsceRoles, IAccessLevel, IClassYear, Id, IOsceMarksheetTimer, IOsceMarksheetUser, IUser } from '../../models';
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: IOsceMarksheetUser[];
15
+ members: IOsceMarksheetMember[];
16
16
  users: IUser[];
17
17
  }
18
- export declare const OsceGroupInit: (osceMarksheetId: number) => IOsceMarksheetUser[];
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.1.1",
3
+ "version": "2.1.4",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",