@quesmed/types 2.4.31 → 2.4.34

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.
Files changed (136) hide show
  1. package/dist/cjs/index.js +5 -1
  2. package/dist/cjs/models/Chapter.d.ts +0 -2
  3. package/dist/cjs/models/Marksheet.d.ts +3 -1
  4. package/dist/cjs/models/MockTest.d.ts +14 -2
  5. package/dist/cjs/models/MockTest.js +10 -0
  6. package/dist/cjs/models/Question.d.ts +3 -3
  7. package/dist/cjs/models/Topic.d.ts +2 -1
  8. package/dist/cjs/models/Topic.js +1 -0
  9. package/dist/cjs/models/Type.d.ts +3 -3
  10. package/dist/cjs/models/User.d.ts +2 -2
  11. package/dist/cjs/models/index.js +5 -1
  12. package/dist/cjs/resolvers/apollo.d.ts +1 -1
  13. package/dist/cjs/resolvers/fragments/index.js +5 -1
  14. package/dist/cjs/resolvers/fragments/mockTest.js +1 -0
  15. package/dist/cjs/resolvers/index.js +5 -1
  16. package/dist/cjs/resolvers/mutation/admin/algoliaSync.d.ts +8 -8
  17. package/dist/cjs/resolvers/mutation/admin/index.js +5 -1
  18. package/dist/cjs/resolvers/mutation/admin/notification.d.ts +4 -4
  19. package/dist/cjs/resolvers/mutation/admin/token.d.ts +2 -2
  20. package/dist/cjs/resolvers/mutation/index.js +5 -1
  21. package/dist/cjs/resolvers/mutation/restricted/agora.d.ts +1 -1
  22. package/dist/cjs/resolvers/mutation/restricted/contactUs.d.ts +1 -1
  23. package/dist/cjs/resolvers/mutation/restricted/index.js +5 -1
  24. package/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +16 -13
  25. package/dist/cjs/resolvers/mutation/restricted/marksheet.js +6 -3
  26. package/dist/cjs/resolvers/mutation/restricted/mockTest.d.ts +4 -3
  27. package/dist/cjs/resolvers/mutation/restricted/notification.d.ts +8 -8
  28. package/dist/cjs/resolvers/mutation/restricted/osce.d.ts +16 -16
  29. package/dist/cjs/resolvers/mutation/restricted/questionDiscussion.d.ts +6 -6
  30. package/dist/cjs/resolvers/mutation/restricted/todo.d.ts +6 -6
  31. package/dist/cjs/resolvers/mutation/restricted/token.d.ts +4 -4
  32. package/dist/cjs/resolvers/mutation/restricted/users.d.ts +9 -9
  33. package/dist/cjs/resolvers/mutation/restricted/video.d.ts +1 -1
  34. package/dist/cjs/resolvers/mutation/stripe.d.ts +3 -3
  35. package/dist/cjs/resolvers/mutation/users.d.ts +4 -4
  36. package/dist/cjs/resolvers/mutation/validUserToken/index.js +5 -1
  37. package/dist/cjs/resolvers/mutation/validUserToken/user.d.ts +3 -3
  38. package/dist/cjs/resolvers/query/admin/getUserToken.d.ts +1 -1
  39. package/dist/cjs/resolvers/query/admin/index.js +5 -1
  40. package/dist/cjs/resolvers/query/author.d.ts +1 -1
  41. package/dist/cjs/resolvers/query/blog.d.ts +4 -4
  42. package/dist/cjs/resolvers/query/book.d.ts +3 -3
  43. package/dist/cjs/resolvers/query/feedback.d.ts +2 -2
  44. package/dist/cjs/resolvers/query/index.js +5 -1
  45. package/dist/cjs/resolvers/query/product.d.ts +1 -1
  46. package/dist/cjs/resolvers/query/restricted/conceptExplanation.d.ts +1 -1
  47. package/dist/cjs/resolvers/query/restricted/global.d.ts +4 -4
  48. package/dist/cjs/resolvers/query/restricted/index.js +5 -1
  49. package/dist/cjs/resolvers/query/restricted/marksheet.d.ts +13 -13
  50. package/dist/cjs/resolvers/query/restricted/marksheet.js +5 -0
  51. package/dist/cjs/resolvers/query/restricted/mockTests.d.ts +4 -4
  52. package/dist/cjs/resolvers/query/restricted/notification.d.ts +1 -1
  53. package/dist/cjs/resolvers/query/restricted/osce.d.ts +9 -9
  54. package/dist/cjs/resolvers/query/restricted/qBank.js +1 -1
  55. package/dist/cjs/resolvers/query/restricted/quesBook.d.ts +4 -4
  56. package/dist/cjs/resolvers/query/restricted/question.d.ts +1 -1
  57. package/dist/cjs/resolvers/query/restricted/todos.d.ts +2 -2
  58. package/dist/cjs/resolvers/query/restricted/topics.d.ts +2 -2
  59. package/dist/cjs/resolvers/query/restricted/topics.js +2 -2
  60. package/dist/cjs/resolvers/query/restricted/university.d.ts +1 -1
  61. package/dist/cjs/resolvers/query/restricted/user.d.ts +4 -4
  62. package/dist/cjs/resolvers/query/restricted/video.d.ts +2 -2
  63. package/dist/cjs/resolvers/query/sample.d.ts +5 -5
  64. package/dist/cjs/resolvers/query/university.d.ts +1 -1
  65. package/dist/cjs/resolvers/query/user.d.ts +2 -2
  66. package/dist/cjs/resolvers/query/video.d.ts +3 -3
  67. package/dist/cjs/resolvers/subscription/index.js +5 -1
  68. package/dist/cjs/resolvers/subscription/marksheet.d.ts +3 -3
  69. package/dist/cjs/resolvers/subscription/notification.d.ts +2 -2
  70. package/dist/cjs/resolvers/subscription/osce.d.ts +6 -6
  71. package/dist/cjs/resolvers/types.d.ts +3 -3
  72. package/dist/cjs/utils/index.js +5 -1
  73. package/dist/cjs/utils/lightgallery.js +1 -1
  74. package/dist/cjs/utils/supermemo.d.ts +0 -1
  75. package/dist/mjs/models/Chapter.d.ts +0 -2
  76. package/dist/mjs/models/Marksheet.d.ts +3 -1
  77. package/dist/mjs/models/MockTest.d.ts +14 -2
  78. package/dist/mjs/models/MockTest.js +9 -1
  79. package/dist/mjs/models/Question.d.ts +3 -3
  80. package/dist/mjs/models/Topic.d.ts +2 -1
  81. package/dist/mjs/models/Topic.js +1 -0
  82. package/dist/mjs/models/Type.d.ts +3 -3
  83. package/dist/mjs/models/User.d.ts +2 -2
  84. package/dist/mjs/resolvers/apollo.d.ts +1 -1
  85. package/dist/mjs/resolvers/fragments/mockTest.js +1 -0
  86. package/dist/mjs/resolvers/mutation/admin/algoliaSync.d.ts +8 -8
  87. package/dist/mjs/resolvers/mutation/admin/notification.d.ts +4 -4
  88. package/dist/mjs/resolvers/mutation/admin/token.d.ts +2 -2
  89. package/dist/mjs/resolvers/mutation/restricted/agora.d.ts +1 -1
  90. package/dist/mjs/resolvers/mutation/restricted/contactUs.d.ts +1 -1
  91. package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +16 -13
  92. package/dist/mjs/resolvers/mutation/restricted/marksheet.js +6 -3
  93. package/dist/mjs/resolvers/mutation/restricted/mockTest.d.ts +4 -3
  94. package/dist/mjs/resolvers/mutation/restricted/notification.d.ts +8 -8
  95. package/dist/mjs/resolvers/mutation/restricted/osce.d.ts +16 -16
  96. package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.d.ts +6 -6
  97. package/dist/mjs/resolvers/mutation/restricted/todo.d.ts +6 -6
  98. package/dist/mjs/resolvers/mutation/restricted/token.d.ts +4 -4
  99. package/dist/mjs/resolvers/mutation/restricted/users.d.ts +9 -9
  100. package/dist/mjs/resolvers/mutation/restricted/video.d.ts +1 -1
  101. package/dist/mjs/resolvers/mutation/stripe.d.ts +3 -3
  102. package/dist/mjs/resolvers/mutation/users.d.ts +4 -4
  103. package/dist/mjs/resolvers/mutation/validUserToken/user.d.ts +3 -3
  104. package/dist/mjs/resolvers/query/admin/getUserToken.d.ts +1 -1
  105. package/dist/mjs/resolvers/query/author.d.ts +1 -1
  106. package/dist/mjs/resolvers/query/blog.d.ts +4 -4
  107. package/dist/mjs/resolvers/query/book.d.ts +3 -3
  108. package/dist/mjs/resolvers/query/feedback.d.ts +2 -2
  109. package/dist/mjs/resolvers/query/product.d.ts +1 -1
  110. package/dist/mjs/resolvers/query/restricted/conceptExplanation.d.ts +1 -1
  111. package/dist/mjs/resolvers/query/restricted/global.d.ts +4 -4
  112. package/dist/mjs/resolvers/query/restricted/marksheet.d.ts +13 -13
  113. package/dist/mjs/resolvers/query/restricted/marksheet.js +5 -0
  114. package/dist/mjs/resolvers/query/restricted/mockTests.d.ts +4 -4
  115. package/dist/mjs/resolvers/query/restricted/notification.d.ts +1 -1
  116. package/dist/mjs/resolvers/query/restricted/osce.d.ts +9 -9
  117. package/dist/mjs/resolvers/query/restricted/qBank.js +1 -1
  118. package/dist/mjs/resolvers/query/restricted/quesBook.d.ts +4 -4
  119. package/dist/mjs/resolvers/query/restricted/question.d.ts +1 -1
  120. package/dist/mjs/resolvers/query/restricted/todos.d.ts +2 -2
  121. package/dist/mjs/resolvers/query/restricted/topics.d.ts +2 -2
  122. package/dist/mjs/resolvers/query/restricted/topics.js +2 -2
  123. package/dist/mjs/resolvers/query/restricted/university.d.ts +1 -1
  124. package/dist/mjs/resolvers/query/restricted/user.d.ts +4 -4
  125. package/dist/mjs/resolvers/query/restricted/video.d.ts +2 -2
  126. package/dist/mjs/resolvers/query/sample.d.ts +5 -5
  127. package/dist/mjs/resolvers/query/university.d.ts +1 -1
  128. package/dist/mjs/resolvers/query/user.d.ts +2 -2
  129. package/dist/mjs/resolvers/query/video.d.ts +3 -3
  130. package/dist/mjs/resolvers/subscription/marksheet.d.ts +3 -3
  131. package/dist/mjs/resolvers/subscription/notification.d.ts +2 -2
  132. package/dist/mjs/resolvers/subscription/osce.d.ts +6 -6
  133. package/dist/mjs/resolvers/types.d.ts +3 -3
  134. package/dist/mjs/utils/lightgallery.js +1 -1
  135. package/dist/mjs/utils/supermemo.d.ts +0 -1
  136. package/package.json +27 -27
@@ -5,17 +5,17 @@ export declare const DASHBOARD_OSCE: import("@apollo/client").DocumentNode;
5
5
  export interface IDashboardOsceVar {
6
6
  solo: boolean;
7
7
  }
8
- export declare type IDashboardOsceData = RestrictedData<graphqlNormalize & IDashboardOsce, 'dashboardOsce'>;
8
+ export type IDashboardOsceData = RestrictedData<graphqlNormalize & IDashboardOsce, 'dashboardOsce'>;
9
9
  export declare const OSCE_MARKSHEETS: import("@apollo/client").DocumentNode;
10
10
  export interface IOsceMarksheetsVar {
11
11
  solo: boolean;
12
12
  }
13
- export declare type IOsceMarksheetsData = RestrictedData<(graphqlNormalize & IOsceMarksheet)[], 'osceMarksheets'>;
13
+ export type IOsceMarksheetsData = RestrictedData<(graphqlNormalize & IOsceMarksheet)[], 'osceMarksheets'>;
14
14
  export declare const OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
15
15
  export interface IOsceMarksheetVar {
16
16
  id: number;
17
17
  }
18
- export declare type IOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'osceMarksheet'>;
18
+ export type IOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'osceMarksheet'>;
19
19
  export declare const OSCE_STATIONS: import("@apollo/client").DocumentNode;
20
20
  export interface IOsceStationsVar {
21
21
  osceTypeId?: Id;
@@ -24,22 +24,22 @@ export interface IOsceStationsVar {
24
24
  difficulty?: EDifficultyType[];
25
25
  topicIds?: Id[];
26
26
  }
27
- export declare type IOsceStationsData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceStations'>;
27
+ export type IOsceStationsData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceStations'>;
28
28
  export declare const OSCE_STATION: import("@apollo/client").DocumentNode;
29
29
  export interface IOsceStationVar {
30
30
  id: Id;
31
31
  }
32
- export declare type IOsceStationData = RestrictedData<graphqlNormalize & IOsceStation, 'osceStation'>;
32
+ export type IOsceStationData = RestrictedData<graphqlNormalize & IOsceStation, 'osceStation'>;
33
33
  export declare const OSCE_TOPICS: import("@apollo/client").DocumentNode;
34
- export declare type IOsceTopicsVar = null;
35
- export declare type IOsceTopicsData = RestrictedData<(graphqlNormalize & ITopic)[], 'osceTopics'>;
34
+ export type IOsceTopicsVar = null;
35
+ export type IOsceTopicsData = RestrictedData<(graphqlNormalize & ITopic)[], 'osceTopics'>;
36
36
  export declare const SEARCH_OSCE_STATIONS: import("@apollo/client").DocumentNode;
37
37
  export interface ISearchOsceStationsVar {
38
38
  search: string;
39
39
  }
40
- export declare type ISearchOsceStationsData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'searchOsceStations'>;
40
+ export type ISearchOsceStationsData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'searchOsceStations'>;
41
41
  export declare const HEARTBEAT: import("@apollo/client").DocumentNode;
42
42
  export interface IHeartbeatVar {
43
43
  agoraId: string;
44
44
  }
45
- export declare type IHeartBeatData = RestrictedData<boolean, 'heartbeat'>;
45
+ export type IHeartBeatData = RestrictedData<boolean, 'heartbeat'>;
@@ -5,7 +5,7 @@ const client_1 = require("@apollo/client");
5
5
  const fragments_1 = require("../../fragments");
6
6
  exports.DASHBOARD_QBANK = (0, client_1.gql) `
7
7
  ${fragments_1.PICTURE_FIELDS}
8
- query Dashboard($filter: MarksheetFilterInput!) {
8
+ query Dashboard_Qbank($filter: MarksheetFilterInput!) {
9
9
  restricted {
10
10
  latestPastMarksheetId
11
11
  latestAgoraId
@@ -1,8 +1,8 @@
1
1
  import { IOsceStation, ITopic } from '../../../models';
2
2
  import { graphqlNormalize, RestrictedData } from '../../types';
3
- export declare type IQuesBookVar = null;
4
- export declare type IQuesBookData = RestrictedData<(graphqlNormalize & ITopic)[], 'quesBook'>;
3
+ export type IQuesBookVar = null;
4
+ export type IQuesBookData = RestrictedData<(graphqlNormalize & ITopic)[], 'quesBook'>;
5
5
  export declare const QUES_BOOK: import("@apollo/client").DocumentNode;
6
- export declare type IOsceBookVar = null;
7
- export declare type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
6
+ export type IOsceBookVar = null;
7
+ export type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
8
8
  export declare const OSCE_BOOK: import("@apollo/client").DocumentNode;
@@ -3,5 +3,5 @@ import { graphqlNormalize, RestrictedData } from '../../types';
3
3
  export interface IQuestionVar {
4
4
  id: Id;
5
5
  }
6
- export declare type IQuestionData = RestrictedData<graphqlNormalize & IQuestion, 'question'>;
6
+ export type IQuestionData = RestrictedData<graphqlNormalize & IQuestion, 'question'>;
7
7
  export declare const QUESTION: import("@apollo/client").DocumentNode;
@@ -6,10 +6,10 @@ export interface IPreBuildTodoVar {
6
6
  search: string;
7
7
  source: string;
8
8
  }
9
- export declare type IPreBuildTodoData = RestrictedData<graphqlNormalize & IPreBuildTodo, 'preBuildTodo'>;
9
+ export type IPreBuildTodoData = RestrictedData<graphqlNormalize & IPreBuildTodo, 'preBuildTodo'>;
10
10
  export declare const PRE_BUILD_TODO: import("@apollo/client").DocumentNode;
11
11
  export interface ITodoVar {
12
12
  id: Id;
13
13
  }
14
- export declare type ITodoData = RestrictedData<graphqlNormalize & ITodo, 'todo'>;
14
+ export type ITodoData = RestrictedData<graphqlNormalize & ITodo, 'todo'>;
15
15
  export declare const TODO: import("@apollo/client").DocumentNode;
@@ -3,12 +3,12 @@ import { graphqlNormalize, RestrictedData } from '../../types';
3
3
  export interface ITopicVar {
4
4
  id: Id;
5
5
  }
6
- export declare type ITopicData = RestrictedData<graphqlNormalize & ITopic, 'topic'>;
6
+ export type ITopicData = RestrictedData<graphqlNormalize & ITopic, 'topic'>;
7
7
  export declare const TOPIC: import("@apollo/client").DocumentNode;
8
8
  export interface ITopicsVar {
9
9
  filter: ETopicType;
10
10
  }
11
- export declare type ITopicsData = RestrictedData<(graphqlNormalize & ITopic)[], 'topics'>;
11
+ export type ITopicsData = RestrictedData<(graphqlNormalize & ITopic)[], 'topics'>;
12
12
  export declare const TOPICS: import("@apollo/client").DocumentNode;
13
13
  export declare const QUESTION_TOPICS: import("@apollo/client").DocumentNode;
14
14
  export declare const FLASHCARDS_TOPICS: import("@apollo/client").DocumentNode;
@@ -47,7 +47,7 @@ exports.TOPICS = (0, client_1.gql) `
47
47
  }
48
48
  `;
49
49
  exports.QUESTION_TOPICS = (0, client_1.gql) `
50
- query Topics($filter: Int!) {
50
+ query Question_Topics($filter: Int!) {
51
51
  restricted {
52
52
  topics(filter: $filter) {
53
53
  id
@@ -69,7 +69,7 @@ exports.QUESTION_TOPICS = (0, client_1.gql) `
69
69
  }
70
70
  `;
71
71
  exports.FLASHCARDS_TOPICS = (0, client_1.gql) `
72
- query Topics($filter: Int!) {
72
+ query Flashcard_Topics($filter: Int!) {
73
73
  restricted {
74
74
  topics(filter: $filter) {
75
75
  id
@@ -15,5 +15,5 @@ export interface IUniversityLeaderboard {
15
15
  month: IUniversitiesRankSpeciality[];
16
16
  quarter: IUniversitiesRankSpeciality[];
17
17
  }
18
- export declare type IUniversityLeaderboardData = RestrictedData<graphqlNormalize & IUniversityLeaderboard, 'universityLeaderboard'>;
18
+ export type IUniversityLeaderboardData = RestrictedData<graphqlNormalize & IUniversityLeaderboard, 'universityLeaderboard'>;
19
19
  export declare const UNIVERSITY_LEADERBOARD: import("@apollo/client").DocumentNode;
@@ -1,10 +1,10 @@
1
1
  import { IUser } from '../../../models';
2
2
  import { graphqlNormalize, RestrictedData } from '../../types';
3
- export declare type IUserVar = null;
4
- export declare type IUserData = RestrictedData<graphqlNormalize & IUser, 'user'>;
3
+ export type IUserVar = null;
4
+ export type IUserData = RestrictedData<graphqlNormalize & IUser, 'user'>;
5
5
  export declare const USER: import("@apollo/client").DocumentNode;
6
6
  export declare const REFERRALS: import("@apollo/client").DocumentNode;
7
7
  export declare const USER_COMPLETED_DATA: import("@apollo/client").DocumentNode;
8
- export declare type IDailyFeedVar = null;
9
- export declare type IDailyFeedData = RestrictedData<graphqlNormalize & Pick<IUser, 'dailyFeed'>, 'user'>;
8
+ export type IDailyFeedVar = null;
9
+ export type IDailyFeedData = RestrictedData<graphqlNormalize & Pick<IUser, 'dailyFeed'>, 'user'>;
10
10
  export declare const DAILY_FEED: import("@apollo/client").DocumentNode;
@@ -4,7 +4,7 @@ import { EPlatformId } from './../../../index';
4
4
  export interface IVideoVar {
5
5
  id: Id;
6
6
  }
7
- export declare type IVideoData = RestrictedData<graphqlNormalize & IVideo, 'video'>;
7
+ export type IVideoData = RestrictedData<graphqlNormalize & IVideo, 'video'>;
8
8
  export declare const VIDEO: import("@apollo/client").DocumentNode;
9
9
  export interface IVideosVar {
10
10
  platform: EPlatformId;
@@ -12,5 +12,5 @@ export interface IVideosVar {
12
12
  limit: number;
13
13
  search?: String;
14
14
  }
15
- export declare type IVideosData = RestrictedData<(graphqlNormalize & IVideo)[], 'videos'>;
15
+ export type IVideosData = RestrictedData<(graphqlNormalize & IVideo)[], 'videos'>;
16
16
  export declare const VIDEOS: import("@apollo/client").DocumentNode;
@@ -1,26 +1,26 @@
1
1
  import { IMarksheet, IOsceMarksheet, ITodo } from '../../models';
2
2
  import { graphqlNormalize, RootData } from '../types';
3
3
  export declare const SAMPLE_CONTENT: import("@apollo/client").DocumentNode;
4
- export declare type ISampleContentVar = null;
4
+ export type ISampleContentVar = null;
5
5
  interface ISampleContent {
6
6
  marksheets: IMarksheet[];
7
7
  todos: ITodo[];
8
8
  osceMarksheets: IOsceMarksheet[];
9
9
  }
10
- export declare type ISampleContentData = RootData<graphqlNormalize & ISampleContent, 'sampleContent'>;
10
+ export type ISampleContentData = RootData<graphqlNormalize & ISampleContent, 'sampleContent'>;
11
11
  export declare const SAMPLE_MARKSHEET: import("@apollo/client").DocumentNode;
12
12
  export interface ISampleMarksheetVar {
13
13
  marksheetId: number;
14
14
  }
15
- export declare type ISampleMarksheetData = RootData<graphqlNormalize & IMarksheet, 'sampleMarksheet'>;
15
+ export type ISampleMarksheetData = RootData<graphqlNormalize & IMarksheet, 'sampleMarksheet'>;
16
16
  export declare const SAMPLE_TODO: import("@apollo/client").DocumentNode;
17
17
  export interface ISampleTodoVar {
18
18
  todoId: number;
19
19
  }
20
- export declare type ISampleTodoData = RootData<graphqlNormalize & ITodo, 'sampleTodo'>;
20
+ export type ISampleTodoData = RootData<graphqlNormalize & ITodo, 'sampleTodo'>;
21
21
  export declare const SAMPLE_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
22
22
  export interface ISampleOsceMarksheetVar {
23
23
  osceMarksheetId: number;
24
24
  }
25
- export declare type ISampleOsceMarksheetData = RootData<graphqlNormalize & IOsceMarksheet, 'sampleOsceMarksheet'>;
25
+ export type ISampleOsceMarksheetData = RootData<graphqlNormalize & IOsceMarksheet, 'sampleOsceMarksheet'>;
26
26
  export {};
@@ -3,5 +3,5 @@ import { graphqlNormalize, RootData } from '../types';
3
3
  export interface IUniversitiesVar {
4
4
  id: Id;
5
5
  }
6
- export declare type IUniversitiesData = RootData<graphqlNormalize & IUniversity[], 'universities'>;
6
+ export type IUniversitiesData = RootData<graphqlNormalize & IUniversity[], 'universities'>;
7
7
  export declare const UNIVERSITIES: import("@apollo/client").DocumentNode;
@@ -2,10 +2,10 @@ import { RootData } from '../types';
2
2
  export interface IUsernameAvailableVar {
3
3
  username: string;
4
4
  }
5
- export declare type IUsernameAvailableData = RootData<boolean, 'usernameAvailable'>;
5
+ export type IUsernameAvailableData = RootData<boolean, 'usernameAvailable'>;
6
6
  export declare const USERNAME_AVAILABILITY: import("@apollo/client").DocumentNode;
7
7
  export interface IUsernameProvisionedVar {
8
8
  username: string;
9
9
  }
10
- export declare type IUsernameProvisionedData = RootData<boolean, 'usernameProvisioned'>;
10
+ export type IUsernameProvisionedData = RootData<boolean, 'usernameProvisioned'>;
11
11
  export declare const USERNAME_PROVISIONED: import("@apollo/client").DocumentNode;
@@ -1,12 +1,12 @@
1
1
  import { IVideo } from '../../models';
2
2
  import { graphqlNormalize, RootData } from '../types';
3
3
  export { IVideosVar, IVideoVar } from './restricted/video';
4
- export declare type IVideoData = RootData<graphqlNormalize & IVideo, 'video'>;
5
- export declare type IVideosData = RootData<(graphqlNormalize & IVideo)[], 'videos'>;
4
+ export type IVideoData = RootData<graphqlNormalize & IVideo, 'video'>;
5
+ export type IVideosData = RootData<(graphqlNormalize & IVideo)[], 'videos'>;
6
6
  export declare const SAMPLE_VIDEOS: import("@apollo/client").DocumentNode;
7
7
  export declare const SAMPLE_VIDEO: import("@apollo/client").DocumentNode;
8
8
  export interface IZoomSignatureVar {
9
9
  meetingNumber: string;
10
10
  }
11
- export declare type IZoomSignatureData = RootData<graphqlNormalize & string, 'zoomSignature'>;
11
+ export type IZoomSignatureData = RootData<graphqlNormalize & string, 'zoomSignature'>;
12
12
  export declare const ZOOM_SIGNATURE: import("@apollo/client").DocumentNode;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -28,7 +28,7 @@ export interface IMarksheetInfo {
28
28
  users: IUser[];
29
29
  activeUsers: IUser[];
30
30
  }
31
- export declare type IOnMarksheetChangeData = RootData<IMarksheetInfo, 'onMarksheetChange'>;
31
+ export type IOnMarksheetChangeData = RootData<IMarksheetInfo, 'onMarksheetChange'>;
32
32
  export declare const ON_MARKSHEET_CHANGE_KEY = "ON_MARKSHEET_CHANGE_KEY";
33
33
  export declare const ON_MARKSHEET_CHANGE: import("@apollo/client").DocumentNode;
34
34
  /**
@@ -45,7 +45,7 @@ export interface IPreStartMarksheetData {
45
45
  marksheetId: Id;
46
46
  user: IUser;
47
47
  }
48
- export declare type IOnPreStartMarksheetChangeData = RootData<IPreStartMarksheetData, 'onPreStartMarksheetChange'>;
48
+ export type IOnPreStartMarksheetChangeData = RootData<IPreStartMarksheetData, 'onPreStartMarksheetChange'>;
49
49
  export declare const ON_PRESTART_MARKSHEET_CHANGE_KEY = "ON_PRESTART_MARKSHEET_CHANGE_KEY";
50
50
  export declare const ON_PRESTART_MARKSHEET_CHANGE: import("@apollo/client").DocumentNode;
51
51
  /**
@@ -68,6 +68,6 @@ export interface IMarksheetMarkData {
68
68
  user: IUser;
69
69
  striked?: number[];
70
70
  }
71
- export declare type IOnMarksheetMarkChangeData = RootData<IMarksheetMarkData, 'onMarksheetMarkChange'>;
71
+ export type IOnMarksheetMarkChangeData = RootData<IMarksheetMarkData, 'onMarksheetMarkChange'>;
72
72
  export declare const ON_MARKSHEET_MARK_CHANGE_KEY = "ON_MARKSHEET_CHANGE_KEY";
73
73
  export declare const ON_MARKSHEET_MARK_CHANGE: import("@apollo/client").DocumentNode;
@@ -8,8 +8,8 @@ export interface INewNotification {
8
8
  userId: Id;
9
9
  notification: INotification[];
10
10
  }
11
- export declare type IOnNotificationPublisherData = RootData<INewNotification, 'onNotificationArise'>;
12
- export declare type IOnNotificationAriseData = RootData<INotification[], 'onNotificationArise'>;
11
+ export type IOnNotificationPublisherData = RootData<INewNotification, 'onNotificationArise'>;
12
+ export type IOnNotificationAriseData = RootData<INotification[], 'onNotificationArise'>;
13
13
  export declare const ON_NOTIFICATION_ARISE = "ON_NOTIFICATION_ARISE";
14
14
  export declare const NOTIFICATION_ARISE: import("@apollo/client").DocumentNode;
15
15
  export declare const onNotificationArise: ({ client, subscriptionData, }: OnSubscriptionDataOptions<IOnNotificationAriseData>) => void;
@@ -20,7 +20,7 @@ export declare const OSCE_ROLE_CHANGE: import("@apollo/client").DocumentNode;
20
20
  export interface IOsceRoleChangedVar {
21
21
  osceMarksheetId: Id;
22
22
  }
23
- export declare type IOsceRoleChangedData = RootData<IOsceGroup, 'osceRoleChange'>;
23
+ export type IOsceRoleChangedData = RootData<IOsceGroup, 'osceRoleChange'>;
24
24
  export declare const OSCE_MARKSHEET_ACTION: import("@apollo/client").DocumentNode;
25
25
  export interface IOsceMarksheetActionVar {
26
26
  osceMarksheetId: Id;
@@ -34,7 +34,7 @@ export interface IOsceMarksheetAction {
34
34
  endedAt: Date | null;
35
35
  action: EOsceMarksheetAction;
36
36
  }
37
- export declare type IOsceMarksheetActionData = RootData<IOsceMarksheetAction, 'osceMarksheetAction'>;
37
+ export type IOsceMarksheetActionData = RootData<IOsceMarksheetAction, 'osceMarksheetAction'>;
38
38
  export declare const OSCE_MATCHMAKING: import("@apollo/client").DocumentNode;
39
39
  export interface IOsceMatchmakingAction {
40
40
  osceMarksheetId: Id;
@@ -52,10 +52,10 @@ export interface IOsceMatchmakingAction {
52
52
  export interface IOsceMatchmakingVar {
53
53
  userId: Id;
54
54
  }
55
- export declare type IOsceMatchmakingData = RootData<IOsceMatchmakingAction, 'osceMatchmaking'>;
55
+ export type IOsceMatchmakingData = RootData<IOsceMatchmakingAction, 'osceMatchmaking'>;
56
56
  export declare const OSCE_MATCHMAKING_USERS: import("@apollo/client").DocumentNode;
57
- export declare type IOsceMatchmakingUsersVar = null;
58
- export declare type IOsceMatchmakingUsersData = RootData<[
57
+ export type IOsceMatchmakingUsersVar = null;
58
+ export type IOsceMatchmakingUsersData = RootData<[
59
59
  number,
60
60
  number
61
61
  ], 'osceMatchmakingUsers'>;
@@ -63,4 +63,4 @@ export declare const OSCE_MARKSHEET_TIMER: import("@apollo/client").DocumentNode
63
63
  export interface IOsceMarksheetTimerVar {
64
64
  osceMarksheetId: number;
65
65
  }
66
- export declare type IOsceMarksheetTimerData = RootData<IOsceMarksheetTimer, 'osceMarksheetTimer'>;
66
+ export type IOsceMarksheetTimerData = RootData<IOsceMarksheetTimer, 'osceMarksheetTimer'>;
@@ -1,10 +1,10 @@
1
1
  export interface graphqlNormalize {
2
2
  __typename?: string;
3
3
  }
4
- export declare type RestrictedData<T, K extends keyof any> = {
4
+ export type RestrictedData<T, K extends keyof any> = {
5
5
  restricted: Record<K, T>;
6
6
  };
7
- export declare type AdminData<T, K extends keyof any> = {
7
+ export type AdminData<T, K extends keyof any> = {
8
8
  admin: Record<K, T>;
9
9
  };
10
- export declare type RootData<T, K extends keyof any> = Record<K, T>;
10
+ export type RootData<T, K extends keyof any> = Record<K, T>;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.lightgalleryOsceResolve = void 0;
4
- const lightgalleryRegex = /\[lightgallery([0-9]{0,})\]/g;
4
+ const lightgalleryRegex = /\[lightgallery([0-9]{0,})\]/;
5
5
  function isOsceMarksheet(data) {
6
6
  return 'osceStationId' in data;
7
7
  }
@@ -4,7 +4,6 @@ export declare const ALGO_FRACTION: Decimal;
4
4
  export interface IScoreQuesCardInput {
5
5
  cardId: number;
6
6
  score: number;
7
- timeTaken: number;
8
7
  }
9
8
  export interface IScoreQuesCardVar {
10
9
  input: IScoreQuesCardInput;
@@ -2,7 +2,6 @@ import { IFile } from './File';
2
2
  import { IPicture } from './Picture';
3
3
  import { ETopicType } from './Topic';
4
4
  import { Id } from './Type';
5
- import { IVideo } from './Video';
6
5
  export interface IChapter {
7
6
  id: Id;
8
7
  createdAt: number | Date;
@@ -11,6 +10,5 @@ export interface IChapter {
11
10
  explanation: string | null;
12
11
  typeId: ETopicType | null;
13
12
  pictures?: IPicture[];
14
- videos?: IVideo[];
15
13
  files?: IFile[];
16
14
  }
@@ -1,5 +1,6 @@
1
1
  import { IBuildConfigData, IPreBuildMarksheet } from '../resolvers/mutation/restricted/marksheet';
2
2
  import { IPrescribeAnswer, IPrescribeMark, IQuestion, IQuestionChoice, IQuestionQAAnswer } from './Question';
3
+ import { ETopicType } from './Topic';
3
4
  import { Id } from './Type';
4
5
  import { IUser } from './User';
5
6
  export declare enum EMarksheetState {
@@ -49,6 +50,7 @@ export interface IMarksheet {
49
50
  startedAt: number | Date;
50
51
  type: EMarksheetType;
51
52
  endedAt: number | Date;
53
+ typeId: ETopicType;
52
54
  topicIds: number[];
53
55
  topicNames?: string[];
54
56
  source: string;
@@ -72,7 +74,7 @@ export interface IMarksheet {
72
74
  preBuildData?: IPreBuildMarksheet;
73
75
  builderConfig?: IBuildConfigData;
74
76
  }
75
- export declare type IMarksheetMarkJSONB = string | [string] | [IQuestionQAAnswer] | [string[], string[]] | [IPrescribeMark] | IPrescribeAnswer | null;
77
+ export type IMarksheetMarkJSONB = string | [string] | [IQuestionQAAnswer] | [string[], string[]] | [IPrescribeMark] | IPrescribeAnswer | null;
76
78
  export interface IMarksheetMark {
77
79
  id: Id;
78
80
  createdAt: number | Date;
@@ -1,12 +1,23 @@
1
1
  import { IQuestion } from './Question';
2
- import { ETopicType } from './Topic';
3
2
  import { Id } from './Type';
3
+ export declare enum EMockTestType {
4
+ ALL = 0,
5
+ FINALS = 1,
6
+ PSA = 2,
7
+ MISCELLANEOUS = 3,
8
+ UNIVERSITY_SPECIFIC = 4,
9
+ ANATOMY_SPOTTER = 5
10
+ }
11
+ export interface IMockTestType {
12
+ id: EMockTestType;
13
+ name: string;
14
+ }
4
15
  export interface IMockTest {
5
16
  id: Id;
6
17
  createdAt: number | Date;
7
18
  title: string;
8
19
  topicIds: number[];
9
- typeId: ETopicType | null;
20
+ typeId: EMockTestType | null;
10
21
  passingMark: number;
11
22
  public: boolean;
12
23
  questions: IQuestion[];
@@ -14,6 +25,7 @@ export interface IMockTest {
14
25
  export interface IUserMockTest {
15
26
  id: Id;
16
27
  title: string;
28
+ passingMark: number;
17
29
  correct: number;
18
30
  incorrect: number;
19
31
  totalQuestions: number;
@@ -1 +1,9 @@
1
- export {};
1
+ export var EMockTestType;
2
+ (function (EMockTestType) {
3
+ EMockTestType[EMockTestType["ALL"] = 0] = "ALL";
4
+ EMockTestType[EMockTestType["FINALS"] = 1] = "FINALS";
5
+ EMockTestType[EMockTestType["PSA"] = 2] = "PSA";
6
+ EMockTestType[EMockTestType["MISCELLANEOUS"] = 3] = "MISCELLANEOUS";
7
+ EMockTestType[EMockTestType["UNIVERSITY_SPECIFIC"] = 4] = "UNIVERSITY_SPECIFIC";
8
+ EMockTestType[EMockTestType["ANATOMY_SPOTTER"] = 5] = "ANATOMY_SPOTTER";
9
+ })(EMockTestType || (EMockTestType = {}));
@@ -53,8 +53,8 @@ export interface IQuestionCommentLike {
53
53
  comment: IQuestionComment;
54
54
  likeTrueDislikeFalse: boolean;
55
55
  }
56
- export declare type IQuestionAnswer = string | [string] | [IQuestionQAAnswer] | [string[], string[]] | IPrescribeAnswer[];
57
- export declare type IQuestionAll = IQuestion | IQuestionSBA | IQuestionQA | IQuestionMultiQ | IQuestionPrescribe;
56
+ export type IQuestionAnswer = string | [string] | [IQuestionQAAnswer] | [string[], string[]] | IPrescribeAnswer[];
57
+ export type IQuestionAll = IQuestion | IQuestionSBA | IQuestionQA | IQuestionMultiQ | IQuestionPrescribe;
58
58
  export interface IQuestion {
59
59
  id: Id;
60
60
  createdAt: Date | number;
@@ -154,7 +154,7 @@ export interface IQuestionPrescribe extends IQuestion {
154
154
  answer: IPrescribeAnswer[];
155
155
  prescribeAnswer: IPrescribeAnswer[];
156
156
  }
157
- export declare type IPrescribeAnswerData<T> = {
157
+ export type IPrescribeAnswerData<T> = {
158
158
  value: T;
159
159
  display: boolean;
160
160
  };
@@ -7,7 +7,8 @@ export declare enum ETopicType {
7
7
  ANATOMY = 3,
8
8
  DATA_INTERPRETATION = 4,
9
9
  PSA = 5,
10
- OSCE = 6
10
+ OSCE = 6,
11
+ MOCK_TEST = 7
11
12
  }
12
13
  export interface ITopicType {
13
14
  id: ETopicType;
@@ -7,4 +7,5 @@ export var ETopicType;
7
7
  ETopicType[ETopicType["DATA_INTERPRETATION"] = 4] = "DATA_INTERPRETATION";
8
8
  ETopicType[ETopicType["PSA"] = 5] = "PSA";
9
9
  ETopicType[ETopicType["OSCE"] = 6] = "OSCE";
10
+ ETopicType[ETopicType["MOCK_TEST"] = 7] = "MOCK_TEST";
10
11
  })(ETopicType || (ETopicType = {}));
@@ -1,7 +1,7 @@
1
- export declare type Id = number;
2
- export declare type Count = {
1
+ export type Id = number;
2
+ export type Count = {
3
3
  count: string;
4
4
  };
5
- export declare type Sum = {
5
+ export type Sum = {
6
6
  sum: string;
7
7
  };
@@ -8,8 +8,8 @@ import { ISubscription } from './Subscription';
8
8
  import { ITodo } from './Todo';
9
9
  import { Id } from './Type';
10
10
  import { IUniversity } from './University';
11
- export declare type IAccessLevel = 'subscriber' | 'administrator' | 'tutor';
12
- export declare type IClassYear = 'Year 1' | 'Year 2' | 'Year 3' | 'Year 4' | 'Year 5' | 'Graduated' | 'PhD' | 'BSc' | 'MSc' | 'Beta Tester';
11
+ export type IAccessLevel = 'subscriber' | 'administrator' | 'tutor';
12
+ export type IClassYear = 'Year 1' | 'Year 2' | 'Year 3' | 'Year 4' | 'Year 5' | 'Graduated' | 'PhD' | 'BSc' | 'MSc' | 'Beta Tester';
13
13
  export declare const classYears: IClassYear[];
14
14
  export declare enum EClassYearGroup {
15
15
  PRECLINICAL = 0,
@@ -1,5 +1,5 @@
1
1
  import { DefaultContext, FetchResult } from '@apollo/client';
2
- export declare type ApolloUpdateResultRestricted<T> = Omit<FetchResult<T>, 'context'>;
2
+ export type ApolloUpdateResultRestricted<T> = Omit<FetchResult<T>, 'context'>;
3
3
  export interface ApolloUpdateOptions {
4
4
  context?: DefaultContext;
5
5
  variables?: Record<string, any>;
@@ -3,6 +3,7 @@ export const MOCK_TEST_FIELDS = gql `
3
3
  fragment MockTestFields on MockTest {
4
4
  id
5
5
  title
6
+ passingMark
6
7
  correct
7
8
  incorrect
8
9
  totalQuestions
@@ -1,13 +1,13 @@
1
1
  import { AdminData } from '../../types';
2
2
  export declare const UPDATE_CARDS_DATA_IN_ALGOLIA: import("@apollo/client").DocumentNode;
3
- export declare type IUpdateCardsDataInAlgoliaVar = void;
4
- export declare type IUpdateCardsDataInAlgoliaData = AdminData<string, 'updateCardsDataInAlgolia'>;
3
+ export type IUpdateCardsDataInAlgoliaVar = void;
4
+ export type IUpdateCardsDataInAlgoliaData = AdminData<string, 'updateCardsDataInAlgolia'>;
5
5
  export declare const UPDATE_QUESTIONS_DATA_IN_ALGOLIA: import("@apollo/client").DocumentNode;
6
- export declare type IUpdateQuestionsDataInAlgoliaVar = void;
7
- export declare type IUpdateQuestionsDataInAlgoliaData = AdminData<string, 'updateQuestionsDataInAlgolia'>;
6
+ export type IUpdateQuestionsDataInAlgoliaVar = void;
7
+ export type IUpdateQuestionsDataInAlgoliaData = AdminData<string, 'updateQuestionsDataInAlgolia'>;
8
8
  export declare const UPDATE_QUES_BOOK_DATA_IN_ALGOLIA: import("@apollo/client").DocumentNode;
9
- export declare type IUpdateQuesBookDataInAlgoliaVar = void;
10
- export declare type IUpdateQuesBookDataInAlgoliaData = AdminData<string, 'updateDataInAlgolia'>;
9
+ export type IUpdateQuesBookDataInAlgoliaVar = void;
10
+ export type IUpdateQuesBookDataInAlgoliaData = AdminData<string, 'updateDataInAlgolia'>;
11
11
  export declare const UPDATE_VIDEO_DATA_IN_ALGOLIA: import("@apollo/client").DocumentNode;
12
- export declare type IUpdateVideoDataInAlgoliaVar = void;
13
- export declare type IUpdateVideoDataInAlgoliaData = AdminData<string, 'updateVideoDataInAlgolia'>;
12
+ export type IUpdateVideoDataInAlgoliaVar = void;
13
+ export type IUpdateVideoDataInAlgoliaData = AdminData<string, 'updateVideoDataInAlgolia'>;
@@ -5,11 +5,11 @@ export interface IAdminAddNotificationInput {
5
5
  actionType: ENotificationActionType;
6
6
  type: ENotificationType;
7
7
  }
8
- export declare type IAdminAddNotificationVar = {
8
+ export type IAdminAddNotificationVar = {
9
9
  data: IAdminAddNotificationInput;
10
10
  };
11
- export declare type IAdminAddNotificationData = AdminData<INotification, 'addNotification'>;
12
- export declare type IAdminAddNotificationsVar = {
11
+ export type IAdminAddNotificationData = AdminData<INotification, 'addNotification'>;
12
+ export type IAdminAddNotificationsVar = {
13
13
  data: IAdminAddNotificationInput[];
14
14
  };
15
- export declare type IAdminAddNotificationsData = AdminData<INotification[], 'addNotifications'>;
15
+ export type IAdminAddNotificationsData = AdminData<INotification[], 'addNotifications'>;
@@ -18,10 +18,10 @@ export declare const SEND_PUSH_NOTIFICATION: import("@apollo/client").DocumentNo
18
18
  export interface ISendPushNotificationVar {
19
19
  data: ISendPushNotificationInput;
20
20
  }
21
- export declare type ISendPushNotificationData = AdminData<string, 'sendPushNotification'>;
21
+ export type ISendPushNotificationData = AdminData<string, 'sendPushNotification'>;
22
22
  export declare const SEND_TOPIC_NOTIFICATION: import("@apollo/client").DocumentNode;
23
23
  export interface ISendTopicNotificationVar {
24
24
  data: ISendTopicNotificationInput;
25
25
  topic: string;
26
26
  }
27
- export declare type ISendTopicNotificationData = AdminData<string, 'sendTopicNotification'>;
27
+ export type ISendTopicNotificationData = AdminData<string, 'sendTopicNotification'>;
@@ -7,4 +7,4 @@ export interface IAgoraTokenVar {
7
7
  channel: string;
8
8
  uid: Id;
9
9
  }
10
- export declare type IAgoraTokenData = RestrictedData<string, 'agoraToken'>;
10
+ export type IAgoraTokenData = RestrictedData<string, 'agoraToken'>;
@@ -14,5 +14,5 @@ export interface IContactUsVar {
14
14
  subject: string;
15
15
  message: string;
16
16
  }
17
- export declare type IContactUsData = RestrictedData<string, 'contactUs'>;
17
+ export type IContactUsData = RestrictedData<string, 'contactUs'>;
18
18
  export {};