@quesmed/types 2.5.9 → 2.5.12

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.
@@ -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
+ `;
@@ -15,6 +15,15 @@ export interface IMarksheetsVar {
15
15
  period?: number;
16
16
  };
17
17
  }
18
+ export interface IMarksheetsWindowVar {
19
+ filter: {
20
+ limit: number;
21
+ order?: string;
22
+ updatedAt?: Date | number;
23
+ solo?: boolean;
24
+ period?: number;
25
+ };
26
+ }
18
27
  export type IMarksheetsData = RestrictedData<{
19
28
  results: (graphqlNormalize & IMarksheet)[];
20
29
  total: number;
@@ -26,6 +35,7 @@ export interface PaginatedMarksheets {
26
35
  score: number;
27
36
  }
28
37
  export declare const MARKSHEETS: import("@apollo/client").DocumentNode;
38
+ export declare const MARKSHEETS_WINDOW: import("@apollo/client").DocumentNode;
29
39
  export type ILatestPastMarksheetIdVar = null;
30
40
  export type ILatestPastMarksheetIdData = RestrictedData<number, 'latestPastMarksheetId'>;
31
41
  export declare const LATEST_PAST_MARKSHEET_ID: import("@apollo/client").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PRE_BUILD_MARKSHEET = exports.HEARTBEAT_QBANK = exports.MARKSHEET_FEEDBACK = exports.FLAGGED_QUESTIONS_MARKSHEET = exports.FLAGGED_QUESTIONS = exports.LATEST_PAST_SESSION_ID = exports.LATEST_PAST_MARKSHEET_ID = exports.MARKSHEETS = exports.MARKSHEET = void 0;
3
+ exports.PRE_BUILD_MARKSHEET = exports.HEARTBEAT_QBANK = exports.MARKSHEET_FEEDBACK = exports.FLAGGED_QUESTIONS_MARKSHEET = exports.FLAGGED_QUESTIONS = exports.LATEST_PAST_SESSION_ID = exports.LATEST_PAST_MARKSHEET_ID = exports.MARKSHEETS_WINDOW = exports.MARKSHEETS = exports.MARKSHEET = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  exports.MARKSHEET = (0, client_1.gql) `
6
6
  query Marksheet($id: Int!) {
@@ -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
@@ -628,6 +632,40 @@ exports.MARKSHEETS = (0, client_1.gql) `
628
632
  }
629
633
  }
630
634
  `;
635
+ exports.MARKSHEETS_WINDOW = (0, client_1.gql) `
636
+ query MarksheetsWindow($filter: MarksheetWindowFilterInput!) {
637
+ restricted {
638
+ marksheetsWindow(filter: $filter) {
639
+ results {
640
+ id
641
+ endedAt
642
+ topicNames
643
+ correct
644
+ incorrect
645
+ totalQuestions
646
+ isTestMarksheet
647
+ solo
648
+ completed
649
+ updatedAt
650
+ users {
651
+ id
652
+ displayName
653
+ }
654
+ marks {
655
+ question {
656
+ topic {
657
+ typeId
658
+ name
659
+ }
660
+ }
661
+ }
662
+ }
663
+ total
664
+ score
665
+ }
666
+ }
667
+ }
668
+ `;
631
669
  exports.LATEST_PAST_MARKSHEET_ID = (0, client_1.gql) `
632
670
  query LatestPastMarksheetId {
633
671
  restricted {
@@ -743,6 +781,7 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
743
781
  }
744
782
  videos {
745
783
  id
784
+ status
746
785
  title
747
786
  museId
748
787
  startTime
@@ -871,6 +910,7 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
871
910
  }
872
911
  videos {
873
912
  id
913
+ status
874
914
  title
875
915
  museId
876
916
  startTime
@@ -996,6 +1036,7 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
996
1036
  }
997
1037
  videos {
998
1038
  id
1039
+ status
999
1040
  title
1000
1041
  museId
1001
1042
  startTime
@@ -1124,6 +1165,7 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
1124
1165
  }
1125
1166
  videos {
1126
1167
  id
1168
+ status
1127
1169
  title
1128
1170
  museId
1129
1171
  startTime
@@ -1249,6 +1291,7 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
1249
1291
  }
1250
1292
  videos {
1251
1293
  id
1294
+ status
1252
1295
  title
1253
1296
  museId
1254
1297
  startTime
@@ -1463,6 +1506,7 @@ exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
1463
1506
  }
1464
1507
  videos {
1465
1508
  id
1509
+ status
1466
1510
  title
1467
1511
  museId
1468
1512
  startTime
@@ -1588,6 +1632,7 @@ exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
1588
1632
  }
1589
1633
  videos {
1590
1634
  id
1635
+ status
1591
1636
  title
1592
1637
  museId
1593
1638
  startTime
@@ -1716,6 +1761,7 @@ exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
1716
1761
  }
1717
1762
  videos {
1718
1763
  id
1764
+ status
1719
1765
  title
1720
1766
  museId
1721
1767
  startTime
@@ -1841,6 +1887,7 @@ exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
1841
1887
  }
1842
1888
  videos {
1843
1889
  id
1890
+ status
1844
1891
  title
1845
1892
  museId
1846
1893
  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
@@ -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
+ `;
@@ -15,6 +15,15 @@ export interface IMarksheetsVar {
15
15
  period?: number;
16
16
  };
17
17
  }
18
+ export interface IMarksheetsWindowVar {
19
+ filter: {
20
+ limit: number;
21
+ order?: string;
22
+ updatedAt?: Date | number;
23
+ solo?: boolean;
24
+ period?: number;
25
+ };
26
+ }
18
27
  export type IMarksheetsData = RestrictedData<{
19
28
  results: (graphqlNormalize & IMarksheet)[];
20
29
  total: number;
@@ -26,6 +35,7 @@ export interface PaginatedMarksheets {
26
35
  score: number;
27
36
  }
28
37
  export declare const MARKSHEETS: import("@apollo/client").DocumentNode;
38
+ export declare const MARKSHEETS_WINDOW: import("@apollo/client").DocumentNode;
29
39
  export type ILatestPastMarksheetIdVar = null;
30
40
  export type ILatestPastMarksheetIdData = RestrictedData<number, 'latestPastMarksheetId'>;
31
41
  export declare const LATEST_PAST_MARKSHEET_ID: import("@apollo/client").DocumentNode;
@@ -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
@@ -625,6 +629,40 @@ export const MARKSHEETS = gql `
625
629
  }
626
630
  }
627
631
  `;
632
+ export const MARKSHEETS_WINDOW = gql `
633
+ query MarksheetsWindow($filter: MarksheetWindowFilterInput!) {
634
+ restricted {
635
+ marksheetsWindow(filter: $filter) {
636
+ results {
637
+ id
638
+ endedAt
639
+ topicNames
640
+ correct
641
+ incorrect
642
+ totalQuestions
643
+ isTestMarksheet
644
+ solo
645
+ completed
646
+ updatedAt
647
+ users {
648
+ id
649
+ displayName
650
+ }
651
+ marks {
652
+ question {
653
+ topic {
654
+ typeId
655
+ name
656
+ }
657
+ }
658
+ }
659
+ }
660
+ total
661
+ score
662
+ }
663
+ }
664
+ }
665
+ `;
628
666
  export const LATEST_PAST_MARKSHEET_ID = gql `
629
667
  query LatestPastMarksheetId {
630
668
  restricted {
@@ -740,6 +778,7 @@ export const FLAGGED_QUESTIONS = gql `
740
778
  }
741
779
  videos {
742
780
  id
781
+ status
743
782
  title
744
783
  museId
745
784
  startTime
@@ -868,6 +907,7 @@ export const FLAGGED_QUESTIONS = gql `
868
907
  }
869
908
  videos {
870
909
  id
910
+ status
871
911
  title
872
912
  museId
873
913
  startTime
@@ -993,6 +1033,7 @@ export const FLAGGED_QUESTIONS = gql `
993
1033
  }
994
1034
  videos {
995
1035
  id
1036
+ status
996
1037
  title
997
1038
  museId
998
1039
  startTime
@@ -1121,6 +1162,7 @@ export const FLAGGED_QUESTIONS = gql `
1121
1162
  }
1122
1163
  videos {
1123
1164
  id
1165
+ status
1124
1166
  title
1125
1167
  museId
1126
1168
  startTime
@@ -1246,6 +1288,7 @@ export const FLAGGED_QUESTIONS = gql `
1246
1288
  }
1247
1289
  videos {
1248
1290
  id
1291
+ status
1249
1292
  title
1250
1293
  museId
1251
1294
  startTime
@@ -1460,6 +1503,7 @@ export const FLAGGED_QUESTIONS_MARKSHEET = gql `
1460
1503
  }
1461
1504
  videos {
1462
1505
  id
1506
+ status
1463
1507
  title
1464
1508
  museId
1465
1509
  startTime
@@ -1585,6 +1629,7 @@ export const FLAGGED_QUESTIONS_MARKSHEET = gql `
1585
1629
  }
1586
1630
  videos {
1587
1631
  id
1632
+ status
1588
1633
  title
1589
1634
  museId
1590
1635
  startTime
@@ -1713,6 +1758,7 @@ export const FLAGGED_QUESTIONS_MARKSHEET = gql `
1713
1758
  }
1714
1759
  videos {
1715
1760
  id
1761
+ status
1716
1762
  title
1717
1763
  museId
1718
1764
  startTime
@@ -1838,6 +1884,7 @@ export const FLAGGED_QUESTIONS_MARKSHEET = gql `
1838
1884
  }
1839
1885
  videos {
1840
1886
  id
1887
+ status
1841
1888
  title
1842
1889
  museId
1843
1890
  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.9",
3
+ "version": "2.5.12",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",