@quesmed/types 2.5.108 → 2.5.110

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.
@@ -6,6 +6,15 @@ export declare enum EPaceMarkType {
6
6
  BORDERLINE = 2,
7
7
  UN_SATISFACTORY = 3
8
8
  }
9
+ export declare enum EPaceType {
10
+ ALL = 0,
11
+ ABDOMINAL = 1,
12
+ CARDIOVASCULAR = 2,
13
+ COMMUNICATION = 3,
14
+ CONSULTATION = 4,
15
+ NEUROLOGY = 5,
16
+ RESPIRATORY = 6
17
+ }
9
18
  export interface IPaceScore {
10
19
  id: string;
11
20
  type: EPaceMarkType;
@@ -1,9 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EPaceMarkType = void 0;
3
+ exports.EPaceType = exports.EPaceMarkType = void 0;
4
4
  var EPaceMarkType;
5
5
  (function (EPaceMarkType) {
6
6
  EPaceMarkType[EPaceMarkType["SATISFACTORY"] = 1] = "SATISFACTORY";
7
7
  EPaceMarkType[EPaceMarkType["BORDERLINE"] = 2] = "BORDERLINE";
8
8
  EPaceMarkType[EPaceMarkType["UN_SATISFACTORY"] = 3] = "UN_SATISFACTORY";
9
9
  })(EPaceMarkType = exports.EPaceMarkType || (exports.EPaceMarkType = {}));
10
+ var EPaceType;
11
+ (function (EPaceType) {
12
+ EPaceType[EPaceType["ALL"] = 0] = "ALL";
13
+ EPaceType[EPaceType["ABDOMINAL"] = 1] = "ABDOMINAL";
14
+ EPaceType[EPaceType["CARDIOVASCULAR"] = 2] = "CARDIOVASCULAR";
15
+ EPaceType[EPaceType["COMMUNICATION"] = 3] = "COMMUNICATION";
16
+ EPaceType[EPaceType["CONSULTATION"] = 4] = "CONSULTATION";
17
+ EPaceType[EPaceType["NEUROLOGY"] = 5] = "NEUROLOGY";
18
+ EPaceType[EPaceType["RESPIRATORY"] = 6] = "RESPIRATORY";
19
+ })(EPaceType = exports.EPaceType || (exports.EPaceType = {}));
@@ -95,6 +95,7 @@ const optimisticMarkOsceMarksheetMark = (variables, productType) => {
95
95
  const data = {};
96
96
  if (productType === models_1.EProductType.OSCE) {
97
97
  data.mark = variables.mark;
98
+ data.selectedChoice = null;
98
99
  }
99
100
  else {
100
101
  data.selectedChoice = variables.mark;
@@ -102,6 +103,7 @@ const optimisticMarkOsceMarksheetMark = (variables, productType) => {
102
103
  return {
103
104
  restricted: {
104
105
  markOsceMarksheetMark: {
106
+ ...data,
105
107
  id: variables.osceMarksheetMarkId,
106
108
  __typename: 'OsceMarksheetMark',
107
109
  },
@@ -1,9 +1,9 @@
1
- import { EDifficultyType, EOsceType, Id, IDashboardOsce, IOsceMarksheet, IOsceStation, IOsceStats, IUser } from '../../../models';
1
+ import { EDifficultyType, EOsceType, EPaceType, Id, IDashboardOsce, IOsceMarksheet, IOsceStation, IOsceStats, IUser } from '../../../models';
2
2
  import { ESortOrder } from '../../enums';
3
3
  import { graphqlNormalize, RestrictedData } from '../../types';
4
4
  import { ITopic } from './../../../models/Topic';
5
5
  export interface IOsceStatsVar {
6
- typeId?: EOsceType[];
6
+ typeId?: EOsceType[] | EPaceType[];
7
7
  solo: boolean;
8
8
  }
9
9
  export type IOsceStatsData = RestrictedData<graphqlNormalize & IOsceStats, 'osceStats'>;
@@ -1,4 +1,4 @@
1
- import { EOsceType, ETopicType, IOsceStation, ITopic } from '../../../models';
1
+ import { EOsceType, EPaceType, ETopicType, IOsceStation, ITopic } from '../../../models';
2
2
  import { RestrictedData, graphqlNormalize } from '../../types';
3
3
  export type IQuesBookVar = {
4
4
  /**TODO: make it mandatory once frontend changes are completed */
@@ -6,12 +6,14 @@ export type IQuesBookVar = {
6
6
  videosOnly?: boolean;
7
7
  };
8
8
  export type IQuesBookData = RestrictedData<(graphqlNormalize & ITopic)[], 'quesBook'>;
9
- export declare const QUES_BOOK: import("@apollo/client").DocumentNode;
10
- export declare const PUBLIC_QUES_BOOK: import("@apollo/client").DocumentNode;
9
+ export declare const QBANK_KNOWLEDGE_VIDEO_LIBRARY: import("@apollo/client").DocumentNode;
10
+ export declare const PUBLIC_QBANK_KNOWLEDGE_LIBRARY: import("@apollo/client").DocumentNode;
11
11
  export type IOsceBookVar = {
12
12
  /**TODO: make it mandatory once frontend changes are completed */
13
- typeId?: EOsceType[];
13
+ typeId?: EOsceType[] | EPaceType[];
14
14
  videosOnly?: boolean;
15
15
  };
16
16
  export type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
17
- export declare const OSCE_BOOK: import("@apollo/client").DocumentNode;
17
+ export declare const OSCE_KNOWLEDGE_VIDEO_LIBRARY: import("@apollo/client").DocumentNode;
18
+ export declare const PACE_KNOWLEDGE_LIBRARY: import("@apollo/client").DocumentNode;
19
+ export declare const PACE_VIDEO_LIBRARY: import("@apollo/client").DocumentNode;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OSCE_BOOK = exports.PUBLIC_QUES_BOOK = exports.QUES_BOOK = void 0;
3
+ exports.PACE_VIDEO_LIBRARY = exports.PACE_KNOWLEDGE_LIBRARY = exports.OSCE_KNOWLEDGE_VIDEO_LIBRARY = exports.PUBLIC_QBANK_KNOWLEDGE_LIBRARY = exports.QBANK_KNOWLEDGE_VIDEO_LIBRARY = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const osce_1 = require("./../../fragments/osce");
6
- exports.QUES_BOOK = (0, client_1.gql) `
7
- query quesBook($typeId: [Int], $videosOnly: Boolean) {
6
+ exports.QBANK_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
7
+ query QBankKnowledgeVideoLibrary($typeId: [Int], $videosOnly: Boolean) {
8
8
  restricted {
9
9
  quesBook(typeId: $typeId, videosOnly: $videosOnly) {
10
10
  id
@@ -62,7 +62,7 @@ exports.QUES_BOOK = (0, client_1.gql) `
62
62
  }
63
63
  }
64
64
  `;
65
- exports.PUBLIC_QUES_BOOK = (0, client_1.gql) `
65
+ exports.PUBLIC_QBANK_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
66
66
  query PublicQuesBook($typeId: [Int], $videosOnly: Boolean) {
67
67
  quesBook(typeId: $typeId, videosOnly: $videosOnly) {
68
68
  id
@@ -119,9 +119,9 @@ exports.PUBLIC_QUES_BOOK = (0, client_1.gql) `
119
119
  }
120
120
  }
121
121
  `;
122
- exports.OSCE_BOOK = (0, client_1.gql) `
122
+ exports.OSCE_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
123
123
  ${osce_1.OSCE_STATION_FIELDS}
124
- query OsceBook($typeId: [Int], $videosOnly: Boolean) {
124
+ query OsceKnowledgeVideoLibrary($typeId: [Int], $videosOnly: Boolean) {
125
125
  restricted {
126
126
  osceBook(typeId: $typeId, videosOnly: $videosOnly) {
127
127
  ...OsceStationFields
@@ -131,3 +131,74 @@ exports.OSCE_BOOK = (0, client_1.gql) `
131
131
  }
132
132
  }
133
133
  `;
134
+ exports.PACE_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
135
+ query PaceKnowledgeLibrary($typeId: [Int], $videosOnly: Boolean) {
136
+ restricted {
137
+ quesBook(typeId: $typeId, videosOnly: $videosOnly) {
138
+ id
139
+ name
140
+ typeId
141
+ demo
142
+ unreadConcepts
143
+ completedConcepts
144
+ revisingConcepts
145
+ urgentConcepts
146
+ unwatchedVideos
147
+ completedVideos
148
+ revisingVideos
149
+ urgentVideos
150
+ concepts {
151
+ id
152
+ name
153
+ demo
154
+ status
155
+ totalCards
156
+ totalQuestions
157
+ chapter {
158
+ id
159
+ typeId
160
+ explanation
161
+ pictures {
162
+ id
163
+ createdAt
164
+ updatedAt
165
+ name
166
+ caption
167
+ path
168
+ path512
169
+ path256
170
+ index
171
+ }
172
+ }
173
+ topicId
174
+ videos {
175
+ id
176
+ status
177
+ title
178
+ museId
179
+ thumbnail
180
+ concepts {
181
+ id
182
+ name
183
+ }
184
+ live
185
+ description
186
+ duration
187
+ }
188
+ }
189
+ }
190
+ }
191
+ }
192
+ `;
193
+ exports.PACE_VIDEO_LIBRARY = (0, client_1.gql) `
194
+ ${osce_1.OSCE_STATION_FIELDS}
195
+ query PaceVideoLibrary($typeId: [Int], $videosOnly: Boolean) {
196
+ restricted {
197
+ osceBook(typeId: $typeId, videosOnly: $videosOnly) {
198
+ ...OsceStationFields
199
+ lastOsceMarksheetId
200
+ score
201
+ }
202
+ }
203
+ }
204
+ `;
@@ -54,6 +54,12 @@ exports.VIDEO = (0, client_1.gql) `
54
54
  osceStationId
55
55
  header
56
56
  name
57
+ choices {
58
+ id
59
+ name
60
+ type
61
+ score
62
+ }
57
63
  }
58
64
  candidatePictures {
59
65
  id
@@ -6,6 +6,15 @@ export declare enum EPaceMarkType {
6
6
  BORDERLINE = 2,
7
7
  UN_SATISFACTORY = 3
8
8
  }
9
+ export declare enum EPaceType {
10
+ ALL = 0,
11
+ ABDOMINAL = 1,
12
+ CARDIOVASCULAR = 2,
13
+ COMMUNICATION = 3,
14
+ CONSULTATION = 4,
15
+ NEUROLOGY = 5,
16
+ RESPIRATORY = 6
17
+ }
9
18
  export interface IPaceScore {
10
19
  id: string;
11
20
  type: EPaceMarkType;
@@ -4,3 +4,13 @@ export var EPaceMarkType;
4
4
  EPaceMarkType[EPaceMarkType["BORDERLINE"] = 2] = "BORDERLINE";
5
5
  EPaceMarkType[EPaceMarkType["UN_SATISFACTORY"] = 3] = "UN_SATISFACTORY";
6
6
  })(EPaceMarkType || (EPaceMarkType = {}));
7
+ export var EPaceType;
8
+ (function (EPaceType) {
9
+ EPaceType[EPaceType["ALL"] = 0] = "ALL";
10
+ EPaceType[EPaceType["ABDOMINAL"] = 1] = "ABDOMINAL";
11
+ EPaceType[EPaceType["CARDIOVASCULAR"] = 2] = "CARDIOVASCULAR";
12
+ EPaceType[EPaceType["COMMUNICATION"] = 3] = "COMMUNICATION";
13
+ EPaceType[EPaceType["CONSULTATION"] = 4] = "CONSULTATION";
14
+ EPaceType[EPaceType["NEUROLOGY"] = 5] = "NEUROLOGY";
15
+ EPaceType[EPaceType["RESPIRATORY"] = 6] = "RESPIRATORY";
16
+ })(EPaceType || (EPaceType = {}));
@@ -92,6 +92,7 @@ export const optimisticMarkOsceMarksheetMark = (variables, productType) => {
92
92
  const data = {};
93
93
  if (productType === EProductType.OSCE) {
94
94
  data.mark = variables.mark;
95
+ data.selectedChoice = null;
95
96
  }
96
97
  else {
97
98
  data.selectedChoice = variables.mark;
@@ -99,6 +100,7 @@ export const optimisticMarkOsceMarksheetMark = (variables, productType) => {
99
100
  return {
100
101
  restricted: {
101
102
  markOsceMarksheetMark: {
103
+ ...data,
102
104
  id: variables.osceMarksheetMarkId,
103
105
  __typename: 'OsceMarksheetMark',
104
106
  },
@@ -1,9 +1,9 @@
1
- import { EDifficultyType, EOsceType, Id, IDashboardOsce, IOsceMarksheet, IOsceStation, IOsceStats, IUser } from '../../../models';
1
+ import { EDifficultyType, EOsceType, EPaceType, Id, IDashboardOsce, IOsceMarksheet, IOsceStation, IOsceStats, IUser } from '../../../models';
2
2
  import { ESortOrder } from '../../enums';
3
3
  import { graphqlNormalize, RestrictedData } from '../../types';
4
4
  import { ITopic } from './../../../models/Topic';
5
5
  export interface IOsceStatsVar {
6
- typeId?: EOsceType[];
6
+ typeId?: EOsceType[] | EPaceType[];
7
7
  solo: boolean;
8
8
  }
9
9
  export type IOsceStatsData = RestrictedData<graphqlNormalize & IOsceStats, 'osceStats'>;
@@ -1,4 +1,4 @@
1
- import { EOsceType, ETopicType, IOsceStation, ITopic } from '../../../models';
1
+ import { EOsceType, EPaceType, ETopicType, IOsceStation, ITopic } from '../../../models';
2
2
  import { RestrictedData, graphqlNormalize } from '../../types';
3
3
  export type IQuesBookVar = {
4
4
  /**TODO: make it mandatory once frontend changes are completed */
@@ -6,12 +6,14 @@ export type IQuesBookVar = {
6
6
  videosOnly?: boolean;
7
7
  };
8
8
  export type IQuesBookData = RestrictedData<(graphqlNormalize & ITopic)[], 'quesBook'>;
9
- export declare const QUES_BOOK: import("@apollo/client").DocumentNode;
10
- export declare const PUBLIC_QUES_BOOK: import("@apollo/client").DocumentNode;
9
+ export declare const QBANK_KNOWLEDGE_VIDEO_LIBRARY: import("@apollo/client").DocumentNode;
10
+ export declare const PUBLIC_QBANK_KNOWLEDGE_LIBRARY: import("@apollo/client").DocumentNode;
11
11
  export type IOsceBookVar = {
12
12
  /**TODO: make it mandatory once frontend changes are completed */
13
- typeId?: EOsceType[];
13
+ typeId?: EOsceType[] | EPaceType[];
14
14
  videosOnly?: boolean;
15
15
  };
16
16
  export type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
17
- export declare const OSCE_BOOK: import("@apollo/client").DocumentNode;
17
+ export declare const OSCE_KNOWLEDGE_VIDEO_LIBRARY: import("@apollo/client").DocumentNode;
18
+ export declare const PACE_KNOWLEDGE_LIBRARY: import("@apollo/client").DocumentNode;
19
+ export declare const PACE_VIDEO_LIBRARY: import("@apollo/client").DocumentNode;
@@ -1,7 +1,7 @@
1
1
  import { gql } from '@apollo/client';
2
2
  import { OSCE_STATION_FIELDS } from './../../fragments/osce';
3
- export const QUES_BOOK = gql `
4
- query quesBook($typeId: [Int], $videosOnly: Boolean) {
3
+ export const QBANK_KNOWLEDGE_VIDEO_LIBRARY = gql `
4
+ query QBankKnowledgeVideoLibrary($typeId: [Int], $videosOnly: Boolean) {
5
5
  restricted {
6
6
  quesBook(typeId: $typeId, videosOnly: $videosOnly) {
7
7
  id
@@ -59,7 +59,7 @@ export const QUES_BOOK = gql `
59
59
  }
60
60
  }
61
61
  `;
62
- export const PUBLIC_QUES_BOOK = gql `
62
+ export const PUBLIC_QBANK_KNOWLEDGE_LIBRARY = gql `
63
63
  query PublicQuesBook($typeId: [Int], $videosOnly: Boolean) {
64
64
  quesBook(typeId: $typeId, videosOnly: $videosOnly) {
65
65
  id
@@ -116,9 +116,9 @@ export const PUBLIC_QUES_BOOK = gql `
116
116
  }
117
117
  }
118
118
  `;
119
- export const OSCE_BOOK = gql `
119
+ export const OSCE_KNOWLEDGE_VIDEO_LIBRARY = gql `
120
120
  ${OSCE_STATION_FIELDS}
121
- query OsceBook($typeId: [Int], $videosOnly: Boolean) {
121
+ query OsceKnowledgeVideoLibrary($typeId: [Int], $videosOnly: Boolean) {
122
122
  restricted {
123
123
  osceBook(typeId: $typeId, videosOnly: $videosOnly) {
124
124
  ...OsceStationFields
@@ -128,3 +128,74 @@ export const OSCE_BOOK = gql `
128
128
  }
129
129
  }
130
130
  `;
131
+ export const PACE_KNOWLEDGE_LIBRARY = gql `
132
+ query PaceKnowledgeLibrary($typeId: [Int], $videosOnly: Boolean) {
133
+ restricted {
134
+ quesBook(typeId: $typeId, videosOnly: $videosOnly) {
135
+ id
136
+ name
137
+ typeId
138
+ demo
139
+ unreadConcepts
140
+ completedConcepts
141
+ revisingConcepts
142
+ urgentConcepts
143
+ unwatchedVideos
144
+ completedVideos
145
+ revisingVideos
146
+ urgentVideos
147
+ concepts {
148
+ id
149
+ name
150
+ demo
151
+ status
152
+ totalCards
153
+ totalQuestions
154
+ chapter {
155
+ id
156
+ typeId
157
+ explanation
158
+ pictures {
159
+ id
160
+ createdAt
161
+ updatedAt
162
+ name
163
+ caption
164
+ path
165
+ path512
166
+ path256
167
+ index
168
+ }
169
+ }
170
+ topicId
171
+ videos {
172
+ id
173
+ status
174
+ title
175
+ museId
176
+ thumbnail
177
+ concepts {
178
+ id
179
+ name
180
+ }
181
+ live
182
+ description
183
+ duration
184
+ }
185
+ }
186
+ }
187
+ }
188
+ }
189
+ `;
190
+ export const PACE_VIDEO_LIBRARY = gql `
191
+ ${OSCE_STATION_FIELDS}
192
+ query PaceVideoLibrary($typeId: [Int], $videosOnly: Boolean) {
193
+ restricted {
194
+ osceBook(typeId: $typeId, videosOnly: $videosOnly) {
195
+ ...OsceStationFields
196
+ lastOsceMarksheetId
197
+ score
198
+ }
199
+ }
200
+ }
201
+ `;
@@ -51,6 +51,12 @@ export const VIDEO = gql `
51
51
  osceStationId
52
52
  header
53
53
  name
54
+ choices {
55
+ id
56
+ name
57
+ type
58
+ score
59
+ }
54
60
  }
55
61
  candidatePictures {
56
62
  id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.5.108",
3
+ "version": "2.5.110",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",