@quesmed/types 1.4.20 → 1.4.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "1.4.20",
3
+ "version": "1.4.21",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -1,8 +1,5 @@
1
- export declare const OSCE_STATION_TOPIC_FIELDS: import("@apollo/client").DocumentNode;
2
- export declare const OSCE_TYPE_FIELDS: import("@apollo/client").DocumentNode;
3
1
  export declare const OSCE_STATION_MARK_FIELDS: import("@apollo/client").DocumentNode;
4
2
  export declare const OSCE_STATION_FIELDS: import("@apollo/client").DocumentNode;
5
- export declare const OSCE_MARKSHEET_USER_FIELDS: import("@apollo/client").DocumentNode;
6
3
  export declare const OSCE_MARKSHEET_MARK_FIELDS: import("@apollo/client").DocumentNode;
7
4
  export declare const OSCE_MARKSHEET_FIELDS: import("@apollo/client").DocumentNode;
8
5
  export declare const OSCE_GROUP_FIELDS: import("@apollo/client").DocumentNode;
@@ -1,25 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OSCE_MATCHMAKING_ACTION_FIELDS = exports.OSCE_MARKSHEET_ACTION_FIELDS = exports.OSCE_GROUP_FIELDS = exports.OSCE_MARKSHEET_FIELDS = exports.OSCE_MARKSHEET_MARK_FIELDS = exports.OSCE_MARKSHEET_USER_FIELDS = exports.OSCE_STATION_FIELDS = exports.OSCE_STATION_MARK_FIELDS = exports.OSCE_TYPE_FIELDS = exports.OSCE_STATION_TOPIC_FIELDS = void 0;
3
+ exports.OSCE_MATCHMAKING_ACTION_FIELDS = exports.OSCE_MARKSHEET_ACTION_FIELDS = exports.OSCE_GROUP_FIELDS = exports.OSCE_MARKSHEET_FIELDS = exports.OSCE_MARKSHEET_MARK_FIELDS = exports.OSCE_STATION_FIELDS = exports.OSCE_STATION_MARK_FIELDS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const picture_1 = require("./picture");
6
- exports.OSCE_STATION_TOPIC_FIELDS = (0, client_1.gql) `
7
- fragment OsceStationTopicFields on Topic {
8
- id
9
- name
10
- typeId
11
- }
12
- `;
13
- exports.OSCE_TYPE_FIELDS = (0, client_1.gql) `
14
- fragment OsceTypeFields on OsceType {
15
- id
16
- name
17
- # user-specific keys
18
- # completed
19
- # total
20
- # avgScore
21
- }
22
- `;
23
6
  exports.OSCE_STATION_MARK_FIELDS = (0, client_1.gql) `
24
7
  fragment OsceStationMarkFields on OsceStationMark {
25
8
  id
@@ -30,8 +13,6 @@ exports.OSCE_STATION_MARK_FIELDS = (0, client_1.gql) `
30
13
  }
31
14
  `;
32
15
  exports.OSCE_STATION_FIELDS = (0, client_1.gql) `
33
- ${exports.OSCE_TYPE_FIELDS}
34
- ${exports.OSCE_STATION_TOPIC_FIELDS}
35
16
  ${picture_1.OSCE_PICTURE_FIELDS}
36
17
  ${exports.OSCE_STATION_MARK_FIELDS}
37
18
  fragment OsceStationFields on OsceStation {
@@ -40,7 +21,8 @@ exports.OSCE_STATION_FIELDS = (0, client_1.gql) `
40
21
  deleted
41
22
  name
42
23
  osceType {
43
- ...OsceTypeFields
24
+ id
25
+ name
44
26
  }
45
27
  difficulty
46
28
  candidateBrief
@@ -51,7 +33,8 @@ exports.OSCE_STATION_FIELDS = (0, client_1.gql) `
51
33
  ...OsceStationMarkFields
52
34
  }
53
35
  topics {
54
- ...OsceStationTopicFields
36
+ id
37
+ name
55
38
  }
56
39
  candidatePictures {
57
40
  ...OscePictureFields
@@ -71,18 +54,6 @@ exports.OSCE_STATION_FIELDS = (0, client_1.gql) `
71
54
  # score
72
55
  }
73
56
  `;
74
- exports.OSCE_MARKSHEET_USER_FIELDS = (0, client_1.gql) `
75
- fragment OsceMarksheetUserFields on OsceMarksheetUser {
76
- # id - do not pass otherwise all unassigned roles = candidate
77
- osceMarksheetId
78
- userId
79
- user {
80
- id
81
- displayName
82
- }
83
- role
84
- }
85
- `;
86
57
  exports.OSCE_MARKSHEET_MARK_FIELDS = (0, client_1.gql) `
87
58
  ${exports.OSCE_STATION_MARK_FIELDS}
88
59
  fragment OsceMarksheetMarkFields on OsceMarksheetMark {
@@ -98,7 +69,6 @@ exports.OSCE_MARKSHEET_MARK_FIELDS = (0, client_1.gql) `
98
69
  `;
99
70
  exports.OSCE_MARKSHEET_FIELDS = (0, client_1.gql) `
100
71
  ${exports.OSCE_MARKSHEET_MARK_FIELDS}
101
- ${exports.OSCE_MARKSHEET_USER_FIELDS}
102
72
  fragment OsceMarksheetFields on OsceMarksheet {
103
73
  id
104
74
  createdAt
@@ -122,7 +92,14 @@ exports.OSCE_MARKSHEET_FIELDS = (0, client_1.gql) `
122
92
  ...OsceMarksheetMarkFields
123
93
  }
124
94
  users {
125
- ...OsceMarksheetUserFields
95
+ # id - do not pass otherwise all unassigned roles = candidate
96
+ osceMarksheetId
97
+ userId
98
+ user {
99
+ id
100
+ displayName
101
+ }
102
+ role
126
103
  }
127
104
  members {
128
105
  id
@@ -132,12 +109,17 @@ exports.OSCE_MARKSHEET_FIELDS = (0, client_1.gql) `
132
109
  }
133
110
  `;
134
111
  exports.OSCE_GROUP_FIELDS = (0, client_1.gql) `
135
- ${exports.OSCE_MARKSHEET_USER_FIELDS}
136
112
  fragment OsceGroupFields on OsceGroup {
137
113
  osceMarksheetId
138
114
  agoraId
139
115
  members {
140
- ...OsceMarksheetUserFields
116
+ osceMarksheetId
117
+ userId
118
+ user {
119
+ id
120
+ displayName
121
+ }
122
+ role
141
123
  }
142
124
  }
143
125
  `;
@@ -1,22 +1,5 @@
1
1
  import { gql } from '@apollo/client';
2
2
  import { OSCE_PICTURE_FIELDS } from './picture';
3
- export const OSCE_STATION_TOPIC_FIELDS = gql `
4
- fragment OsceStationTopicFields on Topic {
5
- id
6
- name
7
- typeId
8
- }
9
- `;
10
- export const OSCE_TYPE_FIELDS = gql `
11
- fragment OsceTypeFields on OsceType {
12
- id
13
- name
14
- # user-specific keys
15
- # completed
16
- # total
17
- # avgScore
18
- }
19
- `;
20
3
  export const OSCE_STATION_MARK_FIELDS = gql `
21
4
  fragment OsceStationMarkFields on OsceStationMark {
22
5
  id
@@ -27,8 +10,6 @@ export const OSCE_STATION_MARK_FIELDS = gql `
27
10
  }
28
11
  `;
29
12
  export const OSCE_STATION_FIELDS = gql `
30
- ${OSCE_TYPE_FIELDS}
31
- ${OSCE_STATION_TOPIC_FIELDS}
32
13
  ${OSCE_PICTURE_FIELDS}
33
14
  ${OSCE_STATION_MARK_FIELDS}
34
15
  fragment OsceStationFields on OsceStation {
@@ -37,7 +18,8 @@ export const OSCE_STATION_FIELDS = gql `
37
18
  deleted
38
19
  name
39
20
  osceType {
40
- ...OsceTypeFields
21
+ id
22
+ name
41
23
  }
42
24
  difficulty
43
25
  candidateBrief
@@ -48,7 +30,8 @@ export const OSCE_STATION_FIELDS = gql `
48
30
  ...OsceStationMarkFields
49
31
  }
50
32
  topics {
51
- ...OsceStationTopicFields
33
+ id
34
+ name
52
35
  }
53
36
  candidatePictures {
54
37
  ...OscePictureFields
@@ -68,18 +51,6 @@ export const OSCE_STATION_FIELDS = gql `
68
51
  # score
69
52
  }
70
53
  `;
71
- export const OSCE_MARKSHEET_USER_FIELDS = gql `
72
- fragment OsceMarksheetUserFields on OsceMarksheetUser {
73
- # id - do not pass otherwise all unassigned roles = candidate
74
- osceMarksheetId
75
- userId
76
- user {
77
- id
78
- displayName
79
- }
80
- role
81
- }
82
- `;
83
54
  export const OSCE_MARKSHEET_MARK_FIELDS = gql `
84
55
  ${OSCE_STATION_MARK_FIELDS}
85
56
  fragment OsceMarksheetMarkFields on OsceMarksheetMark {
@@ -95,7 +66,6 @@ export const OSCE_MARKSHEET_MARK_FIELDS = gql `
95
66
  `;
96
67
  export const OSCE_MARKSHEET_FIELDS = gql `
97
68
  ${OSCE_MARKSHEET_MARK_FIELDS}
98
- ${OSCE_MARKSHEET_USER_FIELDS}
99
69
  fragment OsceMarksheetFields on OsceMarksheet {
100
70
  id
101
71
  createdAt
@@ -119,7 +89,14 @@ export const OSCE_MARKSHEET_FIELDS = gql `
119
89
  ...OsceMarksheetMarkFields
120
90
  }
121
91
  users {
122
- ...OsceMarksheetUserFields
92
+ # id - do not pass otherwise all unassigned roles = candidate
93
+ osceMarksheetId
94
+ userId
95
+ user {
96
+ id
97
+ displayName
98
+ }
99
+ role
123
100
  }
124
101
  members {
125
102
  id
@@ -129,12 +106,17 @@ export const OSCE_MARKSHEET_FIELDS = gql `
129
106
  }
130
107
  `;
131
108
  export const OSCE_GROUP_FIELDS = gql `
132
- ${OSCE_MARKSHEET_USER_FIELDS}
133
109
  fragment OsceGroupFields on OsceGroup {
134
110
  osceMarksheetId
135
111
  agoraId
136
112
  members {
137
- ...OsceMarksheetUserFields
113
+ osceMarksheetId
114
+ userId
115
+ user {
116
+ id
117
+ displayName
118
+ }
119
+ role
138
120
  }
139
121
  }
140
122
  `;
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VIDEO_FIELDS = exports.VIDEO_FILE_FIELDS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
- const chapter_1 = require("./chapter");
6
- const concept_1 = require("./concept");
5
+ const picture_1 = require("./picture");
7
6
  exports.VIDEO_FILE_FIELDS = (0, client_1.gql) `
8
7
  fragment VideoFileFields on File {
9
8
  id
@@ -14,9 +13,7 @@ exports.VIDEO_FILE_FIELDS = (0, client_1.gql) `
14
13
  }
15
14
  `;
16
15
  exports.VIDEO_FIELDS = (0, client_1.gql) `
17
- ${exports.VIDEO_FILE_FIELDS}
18
- ${chapter_1.CHAPTER_FIELDS}
19
- ${concept_1.CONCEPT_TOPIC_FIELDS}
16
+ ${picture_1.CHAPTER_PICTURE_FIELDS}
20
17
  fragment VideoFields on Video {
21
18
  id
22
19
  title
@@ -30,11 +27,22 @@ exports.VIDEO_FIELDS = (0, client_1.gql) `
30
27
  name
31
28
  chapterId
32
29
  chapter {
33
- ...ChapterFields
30
+ id
31
+ createdAt
32
+ updatedAt
33
+ explanation
34
+ typeId
35
+ pictures {
36
+ ...ChapterPictureFields
37
+ }
38
+ files {
39
+ ...VideoFileFields
40
+ }
34
41
  }
35
42
  topicId
36
43
  topic {
37
- ...ConceptTopicFields
44
+ id
45
+ name
38
46
  }
39
47
  }
40
48
  live
@@ -1,6 +1,5 @@
1
1
  import { gql } from '@apollo/client';
2
- import { CHAPTER_FIELDS } from './chapter';
3
- import { CONCEPT_TOPIC_FIELDS } from './concept';
2
+ import { CHAPTER_PICTURE_FIELDS } from './picture';
4
3
  export const VIDEO_FILE_FIELDS = gql `
5
4
  fragment VideoFileFields on File {
6
5
  id
@@ -11,9 +10,7 @@ export const VIDEO_FILE_FIELDS = gql `
11
10
  }
12
11
  `;
13
12
  export const VIDEO_FIELDS = gql `
14
- ${VIDEO_FILE_FIELDS}
15
- ${CHAPTER_FIELDS}
16
- ${CONCEPT_TOPIC_FIELDS}
13
+ ${CHAPTER_PICTURE_FIELDS}
17
14
  fragment VideoFields on Video {
18
15
  id
19
16
  title
@@ -27,11 +24,22 @@ export const VIDEO_FIELDS = gql `
27
24
  name
28
25
  chapterId
29
26
  chapter {
30
- ...ChapterFields
27
+ id
28
+ createdAt
29
+ updatedAt
30
+ explanation
31
+ typeId
32
+ pictures {
33
+ ...ChapterPictureFields
34
+ }
35
+ files {
36
+ ...VideoFileFields
37
+ }
31
38
  }
32
39
  topicId
33
40
  topic {
34
- ...ConceptTopicFields
41
+ id
42
+ name
35
43
  }
36
44
  }
37
45
  live
@@ -5,13 +5,13 @@ const client_1 = require("@apollo/client");
5
5
  const osce_1 = require("../../fragments/osce");
6
6
  const osce_2 = require("./../../fragments/osce");
7
7
  exports.DASHBOARD_OSCE = (0, client_1.gql) `
8
- ${osce_1.OSCE_TYPE_FIELDS}
9
8
  query DashboardOsce($solo: Boolean!) {
10
9
  restricted {
11
10
  dashboardOsce(solo: $solo) {
12
11
  lastAgoraId
13
12
  types {
14
- ...OsceTypeFields
13
+ id
14
+ name
15
15
  # user-specific
16
16
  completed
17
17
  total
@@ -87,11 +87,12 @@ exports.OSCE_STATION = (0, client_1.gql) `
87
87
  }
88
88
  `;
89
89
  exports.OSCE_TOPICS = (0, client_1.gql) `
90
- ${osce_1.OSCE_STATION_TOPIC_FIELDS}
91
90
  query OsceTopics {
92
91
  restricted {
93
92
  osceTopics {
94
- ...OsceStationTopicFields
93
+ id
94
+ name
95
+ typeId
95
96
  }
96
97
  }
97
98
  }
@@ -1,14 +1,14 @@
1
1
  import { gql } from '@apollo/client';
2
- import { OSCE_MARKSHEET_FIELDS, OSCE_STATION_TOPIC_FIELDS, OSCE_TYPE_FIELDS, } from '../../fragments/osce';
2
+ import { OSCE_MARKSHEET_FIELDS } from '../../fragments/osce';
3
3
  import { OSCE_STATION_FIELDS } from './../../fragments/osce';
4
4
  export const DASHBOARD_OSCE = gql `
5
- ${OSCE_TYPE_FIELDS}
6
5
  query DashboardOsce($solo: Boolean!) {
7
6
  restricted {
8
7
  dashboardOsce(solo: $solo) {
9
8
  lastAgoraId
10
9
  types {
11
- ...OsceTypeFields
10
+ id
11
+ name
12
12
  # user-specific
13
13
  completed
14
14
  total
@@ -84,11 +84,12 @@ export const OSCE_STATION = gql `
84
84
  }
85
85
  `;
86
86
  export const OSCE_TOPICS = gql `
87
- ${OSCE_STATION_TOPIC_FIELDS}
88
87
  query OsceTopics {
89
88
  restricted {
90
89
  osceTopics {
91
- ...OsceStationTopicFields
90
+ id
91
+ name
92
+ typeId
92
93
  }
93
94
  }
94
95
  }