@quesmed/types 2.5.8 → 2.5.11

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.
@@ -25,3 +25,10 @@ export interface IProductType {
25
25
  id: Id;
26
26
  name: string;
27
27
  }
28
+ export declare enum EAppType {
29
+ AMS = 1,
30
+ CM_UKMLA = 2,
31
+ MRCP = 3,
32
+ INTERVIEW = 4,
33
+ MSRA = 5
34
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EProductType = void 0;
3
+ exports.EAppType = exports.EProductType = void 0;
4
4
  var EProductType;
5
5
  (function (EProductType) {
6
6
  EProductType[EProductType["QBANK"] = 1] = "QBANK";
@@ -13,3 +13,11 @@ var EProductType;
13
13
  EProductType[EProductType["MSRA"] = 8] = "MSRA";
14
14
  EProductType[EProductType["INTERVIEW"] = 9] = "INTERVIEW";
15
15
  })(EProductType = exports.EProductType || (exports.EProductType = {}));
16
+ var EAppType;
17
+ (function (EAppType) {
18
+ EAppType[EAppType["AMS"] = 1] = "AMS";
19
+ EAppType[EAppType["CM_UKMLA"] = 2] = "CM_UKMLA";
20
+ EAppType[EAppType["MRCP"] = 3] = "MRCP";
21
+ EAppType[EAppType["INTERVIEW"] = 4] = "INTERVIEW";
22
+ EAppType[EAppType["MSRA"] = 5] = "MSRA";
23
+ })(EAppType = exports.EAppType || (exports.EAppType = {}));
@@ -57,4 +57,8 @@ export interface ITopic {
57
57
  completedConcepts?: number | null;
58
58
  revisingConcepts?: number | null;
59
59
  urgentConcepts?: number | null;
60
+ unwatchedVideos?: number | null;
61
+ completedVideos?: number | null;
62
+ revisingVideos?: number | null;
63
+ urgentVideos?: number | null;
60
64
  }
@@ -2,11 +2,13 @@ import { ICard } from './Card';
2
2
  import { IConcept } from './Concept';
3
3
  import { IMarksheet, IMarksheetMark } from './Marksheet';
4
4
  import { INotification } from './Notification';
5
+ import { IOsceStation } from './OsceStation';
5
6
  import { IQuestion, IQuestionHighlights } from './Question';
6
7
  import { ISubscription } from './Subscription';
7
8
  import { ITodo } from './Todo';
8
9
  import { Id } from './Type';
9
10
  import { IUniversity } from './University';
11
+ import { IVideo } from './Video';
10
12
  export type IAccessLevel = 'subscriber' | 'administrator' | 'tutor';
11
13
  export type IClassYear = 'Year 1' | 'Year 2' | 'Year 3' | 'Year 4' | 'Year 5' | 'Graduated' | 'PhD' | 'BSc' | 'MSc' | 'Beta Tester';
12
14
  export declare const classYears: IClassYear[];
@@ -183,3 +185,23 @@ export interface IUserConceptStatus {
183
185
  user: IUser;
184
186
  concept: IConcept;
185
187
  }
188
+ export interface IUserVideoStatus {
189
+ id: Id;
190
+ createdAt: number | Date;
191
+ updatedAt: number | Date;
192
+ userId: Id;
193
+ videoId: Id;
194
+ video: IVideo;
195
+ status: EUserLearningStatus;
196
+ user: IUser;
197
+ }
198
+ export interface IUserStationStatus {
199
+ id: Id;
200
+ createdAt: number | Date;
201
+ updatedAt: number | Date;
202
+ osceStationId: Id;
203
+ userId: Id;
204
+ status: EUserLearningStatus;
205
+ user: IUser;
206
+ station: IOsceStation;
207
+ }
@@ -2,6 +2,7 @@ import { IConcept } from './Concept';
2
2
  import { IFile } from './File';
3
3
  import { IOsceStation } from './OsceStation';
4
4
  import { Id } from './Type';
5
+ import { EUserLearningStatus } from './User';
5
6
  export declare enum EVideoFilter {
6
7
  NEW = 0,
7
8
  POPULAR = 1,
@@ -30,6 +31,7 @@ export interface IVideo {
30
31
  send24hrPushAt: number | Date | null;
31
32
  sent24hrPushAt: number | Date | null;
32
33
  viewsToday?: number | null;
34
+ status?: EUserLearningStatus | null;
33
35
  }
34
36
  export interface IVideoOsceStation {
35
37
  id: Id;
@@ -98,6 +98,7 @@ exports.MARKSHEET_MARK_FIELDS = (0, client_1.gql) `
98
98
  }
99
99
  videos {
100
100
  id
101
+ status
101
102
  title
102
103
  museId
103
104
  startTime
@@ -150,6 +150,7 @@ exports.BUILD_QUESTION_MARKSHEET = (0, client_1.gql) `
150
150
  }
151
151
  videos {
152
152
  id
153
+ status
153
154
  title
154
155
  museId
155
156
  startTime
@@ -275,6 +276,7 @@ exports.BUILD_QUESTION_MARKSHEET = (0, client_1.gql) `
275
276
  }
276
277
  videos {
277
278
  id
279
+ status
278
280
  title
279
281
  museId
280
282
  startTime
@@ -403,6 +405,7 @@ exports.BUILD_QUESTION_MARKSHEET = (0, client_1.gql) `
403
405
  }
404
406
  videos {
405
407
  id
408
+ status
406
409
  title
407
410
  museId
408
411
  startTime
@@ -528,6 +531,7 @@ exports.BUILD_QUESTION_MARKSHEET = (0, client_1.gql) `
528
531
  }
529
532
  videos {
530
533
  id
534
+ status
531
535
  title
532
536
  museId
533
537
  startTime
@@ -749,6 +753,7 @@ exports.BUILD_MARKSHEET = (0, client_1.gql) `
749
753
  }
750
754
  videos {
751
755
  id
756
+ status
752
757
  title
753
758
  museId
754
759
  startTime
@@ -874,6 +879,7 @@ exports.BUILD_MARKSHEET = (0, client_1.gql) `
874
879
  }
875
880
  videos {
876
881
  id
882
+ status
877
883
  title
878
884
  museId
879
885
  startTime
@@ -1002,6 +1008,7 @@ exports.BUILD_MARKSHEET = (0, client_1.gql) `
1002
1008
  }
1003
1009
  videos {
1004
1010
  id
1011
+ status
1005
1012
  title
1006
1013
  museId
1007
1014
  startTime
@@ -1127,6 +1134,7 @@ exports.BUILD_MARKSHEET = (0, client_1.gql) `
1127
1134
  }
1128
1135
  videos {
1129
1136
  id
1137
+ status
1130
1138
  title
1131
1139
  museId
1132
1140
  startTime
@@ -1353,6 +1361,7 @@ exports.RE_BUILD_MARKSHEET = (0, client_1.gql) `
1353
1361
  }
1354
1362
  videos {
1355
1363
  id
1364
+ status
1356
1365
  title
1357
1366
  museId
1358
1367
  startTime
@@ -1478,6 +1487,7 @@ exports.RE_BUILD_MARKSHEET = (0, client_1.gql) `
1478
1487
  }
1479
1488
  videos {
1480
1489
  id
1490
+ status
1481
1491
  title
1482
1492
  museId
1483
1493
  startTime
@@ -1606,6 +1616,7 @@ exports.RE_BUILD_MARKSHEET = (0, client_1.gql) `
1606
1616
  }
1607
1617
  videos {
1608
1618
  id
1619
+ status
1609
1620
  title
1610
1621
  museId
1611
1622
  startTime
@@ -1731,6 +1742,7 @@ exports.RE_BUILD_MARKSHEET = (0, client_1.gql) `
1731
1742
  }
1732
1743
  videos {
1733
1744
  id
1745
+ status
1734
1746
  title
1735
1747
  museId
1736
1748
  startTime
@@ -1,4 +1,4 @@
1
- import { EUserLearningStatus, Id, IUser, IUserConceptStatus } from '../../../models';
1
+ import { EUserLearningStatus, Id, IUser, IUserConceptStatus, IUserStationStatus, IUserVideoStatus } from '../../../models';
2
2
  import { graphqlNormalize, RestrictedData } from '../../types';
3
3
  export declare const RESET_PROGRESS: import("@apollo/client").DocumentNode;
4
4
  export interface IResetProgressVar {
@@ -45,3 +45,15 @@ export type IUpsertUserConceptStatusVar = {
45
45
  };
46
46
  export type IUpsertUserConceptStatusData = RestrictedData<graphqlNormalize & IUserConceptStatus[], 'upsertUserConceptStatus'>;
47
47
  export declare const UPSERT_USER_CONCEPT_STATUS: import("@apollo/client").DocumentNode;
48
+ export type IUpsertUserStationStatusVar = {
49
+ osceStationIds: Id[];
50
+ status: EUserLearningStatus;
51
+ };
52
+ export type IUpsertUserStationStatusData = RestrictedData<graphqlNormalize & IUserStationStatus[], 'upsertUserStationStatus'>;
53
+ export declare const UPSERT_USER_STATION_STATUS: import("@apollo/client").DocumentNode;
54
+ export type IUpsertUserVideoStatusVar = {
55
+ videoIds: Id[];
56
+ status: EUserLearningStatus;
57
+ };
58
+ export type IUpsertUserVideoStatusData = RestrictedData<graphqlNormalize & IUserVideoStatus[], 'upsertUserVideoStatus'>;
59
+ export declare const UPSERT_USER_VIDEO_STATUS: import("@apollo/client").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UPSERT_USER_CONCEPT_STATUS = exports.TOC_ACCEPT = exports.RENEW_TOKEN = exports.UPDATE_USER = exports.DELETE_USER = exports.RESET_PROGRESS = void 0;
3
+ exports.UPSERT_USER_VIDEO_STATUS = exports.UPSERT_USER_STATION_STATUS = exports.UPSERT_USER_CONCEPT_STATUS = exports.TOC_ACCEPT = exports.RENEW_TOKEN = exports.UPDATE_USER = exports.DELETE_USER = exports.RESET_PROGRESS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  exports.RESET_PROGRESS = (0, client_1.gql) `
6
6
  mutation ResetProgress($questions: Boolean, $cards: Boolean) {
@@ -68,3 +68,29 @@ exports.UPSERT_USER_CONCEPT_STATUS = (0, client_1.gql) `
68
68
  }
69
69
  }
70
70
  `;
71
+ exports.UPSERT_USER_STATION_STATUS = (0, client_1.gql) `
72
+ mutation UpsertUserStationStatus($osceStationIds: [Int!]!, $status: Int!) {
73
+ restricted {
74
+ upsertUserStationStatus(osceStationIds: $osceStationIds, status: $status) {
75
+ id
76
+ status
77
+ osceStationId
78
+ userId
79
+ createdAt
80
+ }
81
+ }
82
+ }
83
+ `;
84
+ exports.UPSERT_USER_VIDEO_STATUS = (0, client_1.gql) `
85
+ mutation UpsertUserVideoStatus($videoIds: [Int!]!, $status: Int!) {
86
+ restricted {
87
+ upsertUserVideoStatus(videoIds: $videoIds, status: $status) {
88
+ id
89
+ status
90
+ videoId
91
+ userId
92
+ createdAt
93
+ }
94
+ }
95
+ }
96
+ `;
@@ -157,6 +157,7 @@ exports.MARKSHEET = (0, client_1.gql) `
157
157
  }
158
158
  videos {
159
159
  id
160
+ status
160
161
  title
161
162
  museId
162
163
  startTime
@@ -277,6 +278,7 @@ exports.MARKSHEET = (0, client_1.gql) `
277
278
  }
278
279
  videos {
279
280
  id
281
+ status
280
282
  title
281
283
  museId
282
284
  startTime
@@ -405,6 +407,7 @@ exports.MARKSHEET = (0, client_1.gql) `
405
407
  }
406
408
  videos {
407
409
  id
410
+ status
408
411
  title
409
412
  museId
410
413
  startTime
@@ -530,6 +533,7 @@ exports.MARKSHEET = (0, client_1.gql) `
530
533
  }
531
534
  videos {
532
535
  id
536
+ status
533
537
  title
534
538
  museId
535
539
  startTime
@@ -743,6 +747,7 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
743
747
  }
744
748
  videos {
745
749
  id
750
+ status
746
751
  title
747
752
  museId
748
753
  startTime
@@ -871,6 +876,7 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
871
876
  }
872
877
  videos {
873
878
  id
879
+ status
874
880
  title
875
881
  museId
876
882
  startTime
@@ -996,6 +1002,7 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
996
1002
  }
997
1003
  videos {
998
1004
  id
1005
+ status
999
1006
  title
1000
1007
  museId
1001
1008
  startTime
@@ -1124,6 +1131,7 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
1124
1131
  }
1125
1132
  videos {
1126
1133
  id
1134
+ status
1127
1135
  title
1128
1136
  museId
1129
1137
  startTime
@@ -1249,6 +1257,7 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
1249
1257
  }
1250
1258
  videos {
1251
1259
  id
1260
+ status
1252
1261
  title
1253
1262
  museId
1254
1263
  startTime
@@ -1463,6 +1472,7 @@ exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
1463
1472
  }
1464
1473
  videos {
1465
1474
  id
1475
+ status
1466
1476
  title
1467
1477
  museId
1468
1478
  startTime
@@ -1588,6 +1598,7 @@ exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
1588
1598
  }
1589
1599
  videos {
1590
1600
  id
1601
+ status
1591
1602
  title
1592
1603
  museId
1593
1604
  startTime
@@ -1716,6 +1727,7 @@ exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
1716
1727
  }
1717
1728
  videos {
1718
1729
  id
1730
+ status
1719
1731
  title
1720
1732
  museId
1721
1733
  startTime
@@ -1841,6 +1853,7 @@ exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
1841
1853
  }
1842
1854
  videos {
1843
1855
  id
1856
+ status
1844
1857
  title
1845
1858
  museId
1846
1859
  startTime
@@ -1,4 +1,4 @@
1
- import { ETopicType, IOsceStation, ITopic } from '../../../models';
1
+ import { EOsceType, 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,6 +6,9 @@ export type IQuesBookVar = {
6
6
  };
7
7
  export type IQuesBookData = RestrictedData<(graphqlNormalize & ITopic)[], 'quesBook'>;
8
8
  export declare const QUES_BOOK: import("@apollo/client").DocumentNode;
9
- export type IOsceBookVar = null;
9
+ export type IOsceBookVar = {
10
+ /**TODO: make it mandatory once frontend changes are completed */
11
+ typeId?: EOsceType[];
12
+ };
10
13
  export type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
11
14
  export declare const OSCE_BOOK: import("@apollo/client").DocumentNode;
@@ -14,6 +14,10 @@ exports.QUES_BOOK = (0, client_1.gql) `
14
14
  completedConcepts
15
15
  revisingConcepts
16
16
  urgentConcepts
17
+ unwatchedVideos
18
+ completedVideos
19
+ revisingVideos
20
+ urgentVideos
17
21
  concepts {
18
22
  id
19
23
  name
@@ -37,6 +41,7 @@ exports.QUES_BOOK = (0, client_1.gql) `
37
41
  topicId
38
42
  videos {
39
43
  id
44
+ status
40
45
  title
41
46
  museId
42
47
  thumbnail
@@ -55,9 +60,9 @@ exports.QUES_BOOK = (0, client_1.gql) `
55
60
  `;
56
61
  exports.OSCE_BOOK = (0, client_1.gql) `
57
62
  ${osce_1.OSCE_STATION_FIELDS}
58
- query OsceBook {
63
+ query OsceBook($typeId: [Int]) {
59
64
  restricted {
60
- osceBook {
65
+ osceBook(typeId: $typeId) {
61
66
  ...OsceStationFields
62
67
  lastOsceMarksheetId
63
68
  score
@@ -90,6 +90,7 @@ exports.QUESTION = (0, client_1.gql) `
90
90
  }
91
91
  videos {
92
92
  id
93
+ status
93
94
  title
94
95
  museId
95
96
  startTime
@@ -212,6 +213,7 @@ exports.QUESTION = (0, client_1.gql) `
212
213
  }
213
214
  videos {
214
215
  id
216
+ status
215
217
  title
216
218
  museId
217
219
  startTime
@@ -337,6 +339,7 @@ exports.QUESTION = (0, client_1.gql) `
337
339
  }
338
340
  videos {
339
341
  id
342
+ status
340
343
  title
341
344
  museId
342
345
  startTime
@@ -459,6 +462,7 @@ exports.QUESTION = (0, client_1.gql) `
459
462
  }
460
463
  videos {
461
464
  id
465
+ status
462
466
  title
463
467
  museId
464
468
  startTime
@@ -25,3 +25,10 @@ export interface IProductType {
25
25
  id: Id;
26
26
  name: string;
27
27
  }
28
+ export declare enum EAppType {
29
+ AMS = 1,
30
+ CM_UKMLA = 2,
31
+ MRCP = 3,
32
+ INTERVIEW = 4,
33
+ MSRA = 5
34
+ }
@@ -10,3 +10,11 @@ export var EProductType;
10
10
  EProductType[EProductType["MSRA"] = 8] = "MSRA";
11
11
  EProductType[EProductType["INTERVIEW"] = 9] = "INTERVIEW";
12
12
  })(EProductType || (EProductType = {}));
13
+ export var EAppType;
14
+ (function (EAppType) {
15
+ EAppType[EAppType["AMS"] = 1] = "AMS";
16
+ EAppType[EAppType["CM_UKMLA"] = 2] = "CM_UKMLA";
17
+ EAppType[EAppType["MRCP"] = 3] = "MRCP";
18
+ EAppType[EAppType["INTERVIEW"] = 4] = "INTERVIEW";
19
+ EAppType[EAppType["MSRA"] = 5] = "MSRA";
20
+ })(EAppType || (EAppType = {}));
@@ -57,4 +57,8 @@ export interface ITopic {
57
57
  completedConcepts?: number | null;
58
58
  revisingConcepts?: number | null;
59
59
  urgentConcepts?: number | null;
60
+ unwatchedVideos?: number | null;
61
+ completedVideos?: number | null;
62
+ revisingVideos?: number | null;
63
+ urgentVideos?: number | null;
60
64
  }
@@ -2,11 +2,13 @@ import { ICard } from './Card';
2
2
  import { IConcept } from './Concept';
3
3
  import { IMarksheet, IMarksheetMark } from './Marksheet';
4
4
  import { INotification } from './Notification';
5
+ import { IOsceStation } from './OsceStation';
5
6
  import { IQuestion, IQuestionHighlights } from './Question';
6
7
  import { ISubscription } from './Subscription';
7
8
  import { ITodo } from './Todo';
8
9
  import { Id } from './Type';
9
10
  import { IUniversity } from './University';
11
+ import { IVideo } from './Video';
10
12
  export type IAccessLevel = 'subscriber' | 'administrator' | 'tutor';
11
13
  export type IClassYear = 'Year 1' | 'Year 2' | 'Year 3' | 'Year 4' | 'Year 5' | 'Graduated' | 'PhD' | 'BSc' | 'MSc' | 'Beta Tester';
12
14
  export declare const classYears: IClassYear[];
@@ -183,3 +185,23 @@ export interface IUserConceptStatus {
183
185
  user: IUser;
184
186
  concept: IConcept;
185
187
  }
188
+ export interface IUserVideoStatus {
189
+ id: Id;
190
+ createdAt: number | Date;
191
+ updatedAt: number | Date;
192
+ userId: Id;
193
+ videoId: Id;
194
+ video: IVideo;
195
+ status: EUserLearningStatus;
196
+ user: IUser;
197
+ }
198
+ export interface IUserStationStatus {
199
+ id: Id;
200
+ createdAt: number | Date;
201
+ updatedAt: number | Date;
202
+ osceStationId: Id;
203
+ userId: Id;
204
+ status: EUserLearningStatus;
205
+ user: IUser;
206
+ station: IOsceStation;
207
+ }
@@ -2,6 +2,7 @@ import { IConcept } from './Concept';
2
2
  import { IFile } from './File';
3
3
  import { IOsceStation } from './OsceStation';
4
4
  import { Id } from './Type';
5
+ import { EUserLearningStatus } from './User';
5
6
  export declare enum EVideoFilter {
6
7
  NEW = 0,
7
8
  POPULAR = 1,
@@ -30,6 +31,7 @@ export interface IVideo {
30
31
  send24hrPushAt: number | Date | null;
31
32
  sent24hrPushAt: number | Date | null;
32
33
  viewsToday?: number | null;
34
+ status?: EUserLearningStatus | null;
33
35
  }
34
36
  export interface IVideoOsceStation {
35
37
  id: Id;
@@ -95,6 +95,7 @@ export const MARKSHEET_MARK_FIELDS = gql `
95
95
  }
96
96
  videos {
97
97
  id
98
+ status
98
99
  title
99
100
  museId
100
101
  startTime
@@ -147,6 +147,7 @@ export const BUILD_QUESTION_MARKSHEET = gql `
147
147
  }
148
148
  videos {
149
149
  id
150
+ status
150
151
  title
151
152
  museId
152
153
  startTime
@@ -272,6 +273,7 @@ export const BUILD_QUESTION_MARKSHEET = gql `
272
273
  }
273
274
  videos {
274
275
  id
276
+ status
275
277
  title
276
278
  museId
277
279
  startTime
@@ -400,6 +402,7 @@ export const BUILD_QUESTION_MARKSHEET = gql `
400
402
  }
401
403
  videos {
402
404
  id
405
+ status
403
406
  title
404
407
  museId
405
408
  startTime
@@ -525,6 +528,7 @@ export const BUILD_QUESTION_MARKSHEET = gql `
525
528
  }
526
529
  videos {
527
530
  id
531
+ status
528
532
  title
529
533
  museId
530
534
  startTime
@@ -746,6 +750,7 @@ export const BUILD_MARKSHEET = gql `
746
750
  }
747
751
  videos {
748
752
  id
753
+ status
749
754
  title
750
755
  museId
751
756
  startTime
@@ -871,6 +876,7 @@ export const BUILD_MARKSHEET = gql `
871
876
  }
872
877
  videos {
873
878
  id
879
+ status
874
880
  title
875
881
  museId
876
882
  startTime
@@ -999,6 +1005,7 @@ export const BUILD_MARKSHEET = gql `
999
1005
  }
1000
1006
  videos {
1001
1007
  id
1008
+ status
1002
1009
  title
1003
1010
  museId
1004
1011
  startTime
@@ -1124,6 +1131,7 @@ export const BUILD_MARKSHEET = gql `
1124
1131
  }
1125
1132
  videos {
1126
1133
  id
1134
+ status
1127
1135
  title
1128
1136
  museId
1129
1137
  startTime
@@ -1350,6 +1358,7 @@ export const RE_BUILD_MARKSHEET = gql `
1350
1358
  }
1351
1359
  videos {
1352
1360
  id
1361
+ status
1353
1362
  title
1354
1363
  museId
1355
1364
  startTime
@@ -1475,6 +1484,7 @@ export const RE_BUILD_MARKSHEET = gql `
1475
1484
  }
1476
1485
  videos {
1477
1486
  id
1487
+ status
1478
1488
  title
1479
1489
  museId
1480
1490
  startTime
@@ -1603,6 +1613,7 @@ export const RE_BUILD_MARKSHEET = gql `
1603
1613
  }
1604
1614
  videos {
1605
1615
  id
1616
+ status
1606
1617
  title
1607
1618
  museId
1608
1619
  startTime
@@ -1728,6 +1739,7 @@ export const RE_BUILD_MARKSHEET = gql `
1728
1739
  }
1729
1740
  videos {
1730
1741
  id
1742
+ status
1731
1743
  title
1732
1744
  museId
1733
1745
  startTime
@@ -1,4 +1,4 @@
1
- import { EUserLearningStatus, Id, IUser, IUserConceptStatus } from '../../../models';
1
+ import { EUserLearningStatus, Id, IUser, IUserConceptStatus, IUserStationStatus, IUserVideoStatus } from '../../../models';
2
2
  import { graphqlNormalize, RestrictedData } from '../../types';
3
3
  export declare const RESET_PROGRESS: import("@apollo/client").DocumentNode;
4
4
  export interface IResetProgressVar {
@@ -45,3 +45,15 @@ export type IUpsertUserConceptStatusVar = {
45
45
  };
46
46
  export type IUpsertUserConceptStatusData = RestrictedData<graphqlNormalize & IUserConceptStatus[], 'upsertUserConceptStatus'>;
47
47
  export declare const UPSERT_USER_CONCEPT_STATUS: import("@apollo/client").DocumentNode;
48
+ export type IUpsertUserStationStatusVar = {
49
+ osceStationIds: Id[];
50
+ status: EUserLearningStatus;
51
+ };
52
+ export type IUpsertUserStationStatusData = RestrictedData<graphqlNormalize & IUserStationStatus[], 'upsertUserStationStatus'>;
53
+ export declare const UPSERT_USER_STATION_STATUS: import("@apollo/client").DocumentNode;
54
+ export type IUpsertUserVideoStatusVar = {
55
+ videoIds: Id[];
56
+ status: EUserLearningStatus;
57
+ };
58
+ export type IUpsertUserVideoStatusData = RestrictedData<graphqlNormalize & IUserVideoStatus[], 'upsertUserVideoStatus'>;
59
+ export declare const UPSERT_USER_VIDEO_STATUS: import("@apollo/client").DocumentNode;
@@ -65,3 +65,29 @@ export const UPSERT_USER_CONCEPT_STATUS = gql `
65
65
  }
66
66
  }
67
67
  `;
68
+ export const UPSERT_USER_STATION_STATUS = gql `
69
+ mutation UpsertUserStationStatus($osceStationIds: [Int!]!, $status: Int!) {
70
+ restricted {
71
+ upsertUserStationStatus(osceStationIds: $osceStationIds, status: $status) {
72
+ id
73
+ status
74
+ osceStationId
75
+ userId
76
+ createdAt
77
+ }
78
+ }
79
+ }
80
+ `;
81
+ export const UPSERT_USER_VIDEO_STATUS = gql `
82
+ mutation UpsertUserVideoStatus($videoIds: [Int!]!, $status: Int!) {
83
+ restricted {
84
+ upsertUserVideoStatus(videoIds: $videoIds, status: $status) {
85
+ id
86
+ status
87
+ videoId
88
+ userId
89
+ createdAt
90
+ }
91
+ }
92
+ }
93
+ `;
@@ -154,6 +154,7 @@ export const MARKSHEET = gql `
154
154
  }
155
155
  videos {
156
156
  id
157
+ status
157
158
  title
158
159
  museId
159
160
  startTime
@@ -274,6 +275,7 @@ export const MARKSHEET = gql `
274
275
  }
275
276
  videos {
276
277
  id
278
+ status
277
279
  title
278
280
  museId
279
281
  startTime
@@ -402,6 +404,7 @@ export const MARKSHEET = gql `
402
404
  }
403
405
  videos {
404
406
  id
407
+ status
405
408
  title
406
409
  museId
407
410
  startTime
@@ -527,6 +530,7 @@ export const MARKSHEET = gql `
527
530
  }
528
531
  videos {
529
532
  id
533
+ status
530
534
  title
531
535
  museId
532
536
  startTime
@@ -740,6 +744,7 @@ export const FLAGGED_QUESTIONS = gql `
740
744
  }
741
745
  videos {
742
746
  id
747
+ status
743
748
  title
744
749
  museId
745
750
  startTime
@@ -868,6 +873,7 @@ export const FLAGGED_QUESTIONS = gql `
868
873
  }
869
874
  videos {
870
875
  id
876
+ status
871
877
  title
872
878
  museId
873
879
  startTime
@@ -993,6 +999,7 @@ export const FLAGGED_QUESTIONS = gql `
993
999
  }
994
1000
  videos {
995
1001
  id
1002
+ status
996
1003
  title
997
1004
  museId
998
1005
  startTime
@@ -1121,6 +1128,7 @@ export const FLAGGED_QUESTIONS = gql `
1121
1128
  }
1122
1129
  videos {
1123
1130
  id
1131
+ status
1124
1132
  title
1125
1133
  museId
1126
1134
  startTime
@@ -1246,6 +1254,7 @@ export const FLAGGED_QUESTIONS = gql `
1246
1254
  }
1247
1255
  videos {
1248
1256
  id
1257
+ status
1249
1258
  title
1250
1259
  museId
1251
1260
  startTime
@@ -1460,6 +1469,7 @@ export const FLAGGED_QUESTIONS_MARKSHEET = gql `
1460
1469
  }
1461
1470
  videos {
1462
1471
  id
1472
+ status
1463
1473
  title
1464
1474
  museId
1465
1475
  startTime
@@ -1585,6 +1595,7 @@ export const FLAGGED_QUESTIONS_MARKSHEET = gql `
1585
1595
  }
1586
1596
  videos {
1587
1597
  id
1598
+ status
1588
1599
  title
1589
1600
  museId
1590
1601
  startTime
@@ -1713,6 +1724,7 @@ export const FLAGGED_QUESTIONS_MARKSHEET = gql `
1713
1724
  }
1714
1725
  videos {
1715
1726
  id
1727
+ status
1716
1728
  title
1717
1729
  museId
1718
1730
  startTime
@@ -1838,6 +1850,7 @@ export const FLAGGED_QUESTIONS_MARKSHEET = gql `
1838
1850
  }
1839
1851
  videos {
1840
1852
  id
1853
+ status
1841
1854
  title
1842
1855
  museId
1843
1856
  startTime
@@ -1,4 +1,4 @@
1
- import { ETopicType, IOsceStation, ITopic } from '../../../models';
1
+ import { EOsceType, 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,6 +6,9 @@ export type IQuesBookVar = {
6
6
  };
7
7
  export type IQuesBookData = RestrictedData<(graphqlNormalize & ITopic)[], 'quesBook'>;
8
8
  export declare const QUES_BOOK: import("@apollo/client").DocumentNode;
9
- export type IOsceBookVar = null;
9
+ export type IOsceBookVar = {
10
+ /**TODO: make it mandatory once frontend changes are completed */
11
+ typeId?: EOsceType[];
12
+ };
10
13
  export type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
11
14
  export declare const OSCE_BOOK: import("@apollo/client").DocumentNode;
@@ -11,6 +11,10 @@ export const QUES_BOOK = gql `
11
11
  completedConcepts
12
12
  revisingConcepts
13
13
  urgentConcepts
14
+ unwatchedVideos
15
+ completedVideos
16
+ revisingVideos
17
+ urgentVideos
14
18
  concepts {
15
19
  id
16
20
  name
@@ -34,6 +38,7 @@ export const QUES_BOOK = gql `
34
38
  topicId
35
39
  videos {
36
40
  id
41
+ status
37
42
  title
38
43
  museId
39
44
  thumbnail
@@ -52,9 +57,9 @@ export const QUES_BOOK = gql `
52
57
  `;
53
58
  export const OSCE_BOOK = gql `
54
59
  ${OSCE_STATION_FIELDS}
55
- query OsceBook {
60
+ query OsceBook($typeId: [Int]) {
56
61
  restricted {
57
- osceBook {
62
+ osceBook(typeId: $typeId) {
58
63
  ...OsceStationFields
59
64
  lastOsceMarksheetId
60
65
  score
@@ -87,6 +87,7 @@ export const QUESTION = gql `
87
87
  }
88
88
  videos {
89
89
  id
90
+ status
90
91
  title
91
92
  museId
92
93
  startTime
@@ -209,6 +210,7 @@ export const QUESTION = gql `
209
210
  }
210
211
  videos {
211
212
  id
213
+ status
212
214
  title
213
215
  museId
214
216
  startTime
@@ -334,6 +336,7 @@ export const QUESTION = gql `
334
336
  }
335
337
  videos {
336
338
  id
339
+ status
337
340
  title
338
341
  museId
339
342
  startTime
@@ -456,6 +459,7 @@ export const QUESTION = gql `
456
459
  }
457
460
  videos {
458
461
  id
462
+ status
459
463
  title
460
464
  museId
461
465
  startTime
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.5.8",
3
+ "version": "2.5.11",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",