@quesmed/types 2.5.113 → 2.5.114

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,4 +1,5 @@
1
1
  import { IChapter } from './Chapter';
2
+ import { EPaceType } from './Paces';
2
3
  import { ITopic } from './Topic';
3
4
  import { Id } from './Type';
4
5
  import { EUserLearningStatus } from './User';
@@ -15,6 +16,7 @@ export interface IConcept {
15
16
  chapter?: IChapter;
16
17
  videos?: IVideo[];
17
18
  demo?: boolean;
19
+ typeId?: EPaceType | null;
18
20
  totalQuestions?: number | null;
19
21
  correctQuestions?: number | null;
20
22
  incorrectQuestions?: number | null;
@@ -1,4 +1,4 @@
1
- import { EOsceType, EPaceType, ETopicType, IOsceStation, ITopic } from '../../../models';
1
+ import { EOsceType, EPaceType, ETopicType, IConcept, 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 */
@@ -15,5 +15,9 @@ export type IOsceBookVar = {
15
15
  };
16
16
  export type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
17
17
  export declare const OSCE_KNOWLEDGE_VIDEO_LIBRARY: import("@apollo/client").DocumentNode;
18
+ export type IPaceBookVar = {
19
+ typeId?: EPaceType[];
20
+ };
21
+ export type IPaceBookData = RestrictedData<(graphqlNormalize & IConcept)[], 'paceBook'>;
18
22
  export declare const PACE_KNOWLEDGE_LIBRARY: import("@apollo/client").DocumentNode;
19
23
  export declare const PACE_VIDEO_LIBRARY: import("@apollo/client").DocumentNode;
@@ -132,59 +132,44 @@ exports.OSCE_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
132
132
  }
133
133
  `;
134
134
  exports.PACE_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
135
- query PaceKnowledgeLibrary($typeId: [Int], $videosOnly: Boolean) {
135
+ query PaceKnowledgeLibrary($typeId: [Int]) {
136
136
  restricted {
137
- quesBook(typeId: $typeId, videosOnly: $videosOnly) {
137
+ paceBook(typeId: $typeId) {
138
138
  id
139
139
  name
140
- typeId
141
140
  demo
142
- unreadConcepts
143
- completedConcepts
144
- revisingConcepts
145
- urgentConcepts
146
- unwatchedVideos
147
- completedVideos
148
- revisingVideos
149
- urgentVideos
150
- concepts {
141
+ status
142
+ typeId
143
+ chapter {
151
144
  id
152
- name
153
- demo
154
- status
155
- totalCards
156
- totalQuestions
157
- chapter {
145
+ typeId
146
+ explanation
147
+ pictures {
158
148
  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
- }
149
+ createdAt
150
+ updatedAt
151
+ name
152
+ caption
153
+ path
154
+ path512
155
+ path256
156
+ index
172
157
  }
173
- topicId
174
- videos {
158
+ }
159
+ topicId
160
+ videos {
161
+ id
162
+ status
163
+ title
164
+ museId
165
+ thumbnail
166
+ concepts {
175
167
  id
176
- status
177
- title
178
- museId
179
- thumbnail
180
- concepts {
181
- id
182
- name
183
- }
184
- live
185
- description
186
- duration
168
+ name
187
169
  }
170
+ live
171
+ description
172
+ duration
188
173
  }
189
174
  }
190
175
  }
@@ -1,4 +1,5 @@
1
1
  import { IChapter } from './Chapter';
2
+ import { EPaceType } from './Paces';
2
3
  import { ITopic } from './Topic';
3
4
  import { Id } from './Type';
4
5
  import { EUserLearningStatus } from './User';
@@ -15,6 +16,7 @@ export interface IConcept {
15
16
  chapter?: IChapter;
16
17
  videos?: IVideo[];
17
18
  demo?: boolean;
19
+ typeId?: EPaceType | null;
18
20
  totalQuestions?: number | null;
19
21
  correctQuestions?: number | null;
20
22
  incorrectQuestions?: number | null;
@@ -1,4 +1,4 @@
1
- import { EOsceType, EPaceType, ETopicType, IOsceStation, ITopic } from '../../../models';
1
+ import { EOsceType, EPaceType, ETopicType, IConcept, 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 */
@@ -15,5 +15,9 @@ export type IOsceBookVar = {
15
15
  };
16
16
  export type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
17
17
  export declare const OSCE_KNOWLEDGE_VIDEO_LIBRARY: import("@apollo/client").DocumentNode;
18
+ export type IPaceBookVar = {
19
+ typeId?: EPaceType[];
20
+ };
21
+ export type IPaceBookData = RestrictedData<(graphqlNormalize & IConcept)[], 'paceBook'>;
18
22
  export declare const PACE_KNOWLEDGE_LIBRARY: import("@apollo/client").DocumentNode;
19
23
  export declare const PACE_VIDEO_LIBRARY: import("@apollo/client").DocumentNode;
@@ -129,59 +129,44 @@ export const OSCE_KNOWLEDGE_VIDEO_LIBRARY = gql `
129
129
  }
130
130
  `;
131
131
  export const PACE_KNOWLEDGE_LIBRARY = gql `
132
- query PaceKnowledgeLibrary($typeId: [Int], $videosOnly: Boolean) {
132
+ query PaceKnowledgeLibrary($typeId: [Int]) {
133
133
  restricted {
134
- quesBook(typeId: $typeId, videosOnly: $videosOnly) {
134
+ paceBook(typeId: $typeId) {
135
135
  id
136
136
  name
137
- typeId
138
137
  demo
139
- unreadConcepts
140
- completedConcepts
141
- revisingConcepts
142
- urgentConcepts
143
- unwatchedVideos
144
- completedVideos
145
- revisingVideos
146
- urgentVideos
147
- concepts {
138
+ status
139
+ typeId
140
+ chapter {
148
141
  id
149
- name
150
- demo
151
- status
152
- totalCards
153
- totalQuestions
154
- chapter {
142
+ typeId
143
+ explanation
144
+ pictures {
155
145
  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
- }
146
+ createdAt
147
+ updatedAt
148
+ name
149
+ caption
150
+ path
151
+ path512
152
+ path256
153
+ index
169
154
  }
170
- topicId
171
- videos {
155
+ }
156
+ topicId
157
+ videos {
158
+ id
159
+ status
160
+ title
161
+ museId
162
+ thumbnail
163
+ concepts {
172
164
  id
173
- status
174
- title
175
- museId
176
- thumbnail
177
- concepts {
178
- id
179
- name
180
- }
181
- live
182
- description
183
- duration
165
+ name
184
166
  }
167
+ live
168
+ description
169
+ duration
185
170
  }
186
171
  }
187
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.5.113",
3
+ "version": "2.5.114",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",