@quesmed/types 1.3.18 → 1.4.1

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 (251) hide show
  1. package/gql_input_output_types/User.js +2 -1
  2. package/gql_input_output_types/User.mjs +1 -0
  3. package/gql_input_output_types/index.d.ts +1 -0
  4. package/gql_input_output_types/index.js +2 -1
  5. package/gql_input_output_types/index.mjs +1 -0
  6. package/index.js +7 -4
  7. package/{index.cjs → index.mjs} +4 -7
  8. package/models/Author.js +2 -1
  9. package/models/Author.mjs +1 -0
  10. package/models/Book.js +2 -1
  11. package/models/Book.mjs +1 -0
  12. package/models/Card.js +2 -1
  13. package/models/Card.mjs +1 -0
  14. package/models/Chapter.js +2 -1
  15. package/models/Chapter.mjs +1 -0
  16. package/models/Concept.js +2 -1
  17. package/models/Concept.mjs +1 -0
  18. package/models/Difficulty.js +5 -2
  19. package/models/{Difficulty.cjs → Difficulty.mjs} +2 -5
  20. package/models/Feedback.js +2 -1
  21. package/models/Feedback.mjs +1 -0
  22. package/models/File.js +2 -1
  23. package/models/File.mjs +1 -0
  24. package/models/Marksheet.js +5 -2
  25. package/models/Marksheet.mjs +6 -0
  26. package/models/MockTest.js +2 -1
  27. package/models/MockTest.mjs +1 -0
  28. package/models/OsceMarksheet.js +7 -4
  29. package/models/{OsceMarksheet.cjs → OsceMarksheet.mjs} +4 -7
  30. package/models/OsceStation.js +6 -3
  31. package/models/{OsceStation.cjs → OsceStation.mjs} +3 -6
  32. package/models/Picture.js +2 -1
  33. package/models/Picture.mjs +5 -0
  34. package/models/Promo.js +2 -1
  35. package/models/Promo.mjs +1 -0
  36. package/models/Question.js +15 -8
  37. package/models/{Question.cjs → Question.mjs} +8 -15
  38. package/models/Subscription.js +5 -2
  39. package/models/{Subscription.cjs → Subscription.mjs} +2 -5
  40. package/models/Todo.js +2 -1
  41. package/models/Todo.mjs +1 -0
  42. package/models/Token.js +2 -1
  43. package/models/Token.mjs +1 -0
  44. package/models/Topic.js +5 -2
  45. package/models/{Topic.cjs → Topic.mjs} +2 -5
  46. package/models/Type.js +2 -1
  47. package/models/Type.mjs +1 -0
  48. package/models/University.js +2 -1
  49. package/models/University.mjs +1 -0
  50. package/models/User.js +2 -1
  51. package/models/User.mjs +1 -0
  52. package/models/Video.js +2 -1
  53. package/models/Video.mjs +1 -0
  54. package/models/index.js +35 -23
  55. package/models/index.mjs +23 -0
  56. package/package.json +5 -4
  57. package/resolvers/apollo.js +2 -1
  58. package/resolvers/apollo.mjs +1 -0
  59. package/resolvers/fragments/chapter.d.ts +2 -0
  60. package/resolvers/fragments/chapter.js +31 -0
  61. package/resolvers/fragments/chapter.mjs +28 -0
  62. package/resolvers/fragments/concept.d.ts +3 -0
  63. package/resolvers/fragments/concept.js +79 -0
  64. package/resolvers/fragments/concept.mjs +76 -0
  65. package/resolvers/fragments/osce.d.ts +10 -0
  66. package/resolvers/fragments/osce.js +171 -0
  67. package/resolvers/fragments/osce.mjs +168 -0
  68. package/resolvers/fragments/picture.d.ts +3 -0
  69. package/resolvers/fragments/picture.js +44 -0
  70. package/resolvers/fragments/picture.mjs +41 -0
  71. package/resolvers/fragments/user.d.ts +1 -0
  72. package/resolvers/fragments/user.js +26 -0
  73. package/resolvers/fragments/user.mjs +23 -0
  74. package/resolvers/fragments/video.d.ts +2 -0
  75. package/resolvers/fragments/video.js +49 -0
  76. package/resolvers/fragments/video.mjs +46 -0
  77. package/resolvers/mutation/admin/algoliaSync.js +2 -1
  78. package/resolvers/mutation/admin/algoliaSync.mjs +1 -0
  79. package/resolvers/mutation/admin/index.js +14 -2
  80. package/resolvers/mutation/admin/index.mjs +2 -0
  81. package/resolvers/mutation/admin/token.js +2 -1
  82. package/resolvers/mutation/admin/token.mjs +1 -0
  83. package/resolvers/mutation/index.js +14 -2
  84. package/resolvers/mutation/index.mjs +2 -0
  85. package/resolvers/mutation/restricted/agora.js +2 -1
  86. package/resolvers/mutation/restricted/agora.mjs +1 -0
  87. package/resolvers/mutation/restricted/contactUs.js +2 -1
  88. package/resolvers/mutation/restricted/contactUs.mjs +1 -0
  89. package/resolvers/mutation/restricted/index.js +22 -10
  90. package/resolvers/mutation/restricted/index.mjs +10 -0
  91. package/resolvers/mutation/restricted/marksheet.js +2 -1
  92. package/resolvers/mutation/restricted/marksheet.mjs +1 -0
  93. package/resolvers/mutation/restricted/mockTest.js +2 -1
  94. package/resolvers/mutation/restricted/mockTest.mjs +1 -0
  95. package/resolvers/mutation/restricted/osce.d.ts +34 -23
  96. package/resolvers/mutation/restricted/osce.js +202 -1
  97. package/resolvers/mutation/restricted/osce.mjs +198 -0
  98. package/resolvers/mutation/restricted/questionDiscussion.js +2 -1
  99. package/resolvers/mutation/restricted/questionDiscussion.mjs +1 -0
  100. package/resolvers/mutation/restricted/todo.js +7 -3
  101. package/resolvers/mutation/restricted/{todo.cjs → todo.mjs} +3 -7
  102. package/resolvers/mutation/restricted/token.js +2 -1
  103. package/resolvers/mutation/restricted/token.mjs +1 -0
  104. package/resolvers/mutation/restricted/users.js +2 -1
  105. package/resolvers/mutation/restricted/users.mjs +1 -0
  106. package/resolvers/mutation/restricted/video.js +2 -1
  107. package/resolvers/mutation/restricted/video.mjs +1 -0
  108. package/resolvers/mutation/stripe.js +2 -1
  109. package/resolvers/mutation/stripe.mjs +1 -0
  110. package/resolvers/mutation/users.js +2 -1
  111. package/resolvers/mutation/users.mjs +1 -0
  112. package/resolvers/mutation/validUserToken/index.js +13 -1
  113. package/resolvers/mutation/validUserToken/index.mjs +1 -0
  114. package/resolvers/mutation/validUserToken/user.js +2 -1
  115. package/resolvers/mutation/validUserToken/user.mjs +1 -0
  116. package/resolvers/query/admin/getUserToken.js +2 -1
  117. package/resolvers/query/admin/getUserToken.mjs +1 -0
  118. package/resolvers/query/admin/index.js +13 -1
  119. package/resolvers/query/admin/index.mjs +1 -0
  120. package/resolvers/query/author.js +2 -1
  121. package/resolvers/query/author.mjs +1 -0
  122. package/resolvers/query/book.js +2 -1
  123. package/resolvers/query/book.mjs +1 -0
  124. package/resolvers/query/feedback.js +2 -1
  125. package/resolvers/query/feedback.mjs +1 -0
  126. package/resolvers/query/index.js +21 -9
  127. package/resolvers/query/index.mjs +9 -0
  128. package/resolvers/query/restricted/anatomy.js +2 -1
  129. package/resolvers/query/restricted/anatomy.mjs +1 -0
  130. package/resolvers/query/restricted/index.d.ts +1 -0
  131. package/resolvers/query/restricted/index.js +23 -10
  132. package/resolvers/query/restricted/index.mjs +11 -0
  133. package/resolvers/query/restricted/marksheet.js +2 -1
  134. package/resolvers/query/restricted/marksheet.mjs +1 -0
  135. package/resolvers/query/restricted/mockTests.js +2 -1
  136. package/resolvers/query/restricted/mockTests.mjs +1 -0
  137. package/resolvers/query/restricted/osce.d.ts +23 -18
  138. package/resolvers/query/restricted/osce.js +93 -1
  139. package/resolvers/query/restricted/osce.mjs +90 -0
  140. package/resolvers/query/restricted/quesBook.d.ts +3 -1
  141. package/resolvers/query/restricted/quesBook.js +15 -1
  142. package/resolvers/query/restricted/quesBook.mjs +12 -0
  143. package/resolvers/query/restricted/replication.d.ts +33 -0
  144. package/resolvers/query/restricted/replication.js +184 -0
  145. package/resolvers/query/restricted/replication.mjs +178 -0
  146. package/resolvers/query/restricted/todos.js +2 -1
  147. package/resolvers/query/restricted/todos.mjs +1 -0
  148. package/resolvers/query/restricted/topics.js +2 -1
  149. package/resolvers/query/restricted/topics.mjs +1 -0
  150. package/resolvers/query/restricted/university.js +2 -1
  151. package/resolvers/query/restricted/university.mjs +1 -0
  152. package/resolvers/query/restricted/user.js +2 -1
  153. package/resolvers/query/restricted/user.mjs +1 -0
  154. package/resolvers/query/restricted/video.js +2 -1
  155. package/resolvers/query/restricted/video.mjs +1 -0
  156. package/resolvers/query/sampleCards.js +2 -1
  157. package/resolvers/query/sampleCards.mjs +1 -0
  158. package/resolvers/query/sampleQuestions.js +2 -1
  159. package/resolvers/query/sampleQuestions.mjs +1 -0
  160. package/resolvers/query/subscription.js +2 -1
  161. package/resolvers/query/subscription.mjs +1 -0
  162. package/resolvers/query/university.js +2 -1
  163. package/resolvers/query/university.mjs +1 -0
  164. package/resolvers/query/user.js +2 -1
  165. package/resolvers/query/user.mjs +1 -0
  166. package/resolvers/query/video.js +2 -1
  167. package/resolvers/query/video.mjs +1 -0
  168. package/resolvers/subscription/index.js +13 -1
  169. package/resolvers/subscription/index.mjs +1 -0
  170. package/resolvers/subscription/osce.d.ts +14 -7
  171. package/resolvers/subscription/osce.js +45 -10
  172. package/resolvers/subscription/osce.mjs +70 -0
  173. package/resolvers/types.d.ts +9 -0
  174. package/{gql_input_output_types/User.cjs → resolvers/types.js} +0 -0
  175. package/resolvers/types.mjs +1 -0
  176. package/utils/commonFunctions.js +17 -11
  177. package/utils/{commonFunctions.cjs → commonFunctions.mjs} +11 -17
  178. package/utils/index.js +17 -5
  179. package/utils/index.mjs +5 -0
  180. package/utils/lightgallery.js +5 -1
  181. package/utils/{lightgallery.cjs → lightgallery.mjs} +1 -5
  182. package/utils/offlineLink.js +16 -9
  183. package/utils/{offlineLink.cjs → offlineLink.mjs} +9 -16
  184. package/utils/uuid4.js +3 -1
  185. package/utils/{uuid4.cjs → uuid4.mjs} +1 -3
  186. package/utils/wordsToNumber.js +5 -1
  187. package/utils/{wordsToNumber.cjs → wordsToNumber.mjs} +1 -5
  188. package/gql_input_output_types/index.cjs +0 -2
  189. package/models/Author.cjs +0 -2
  190. package/models/Book.cjs +0 -2
  191. package/models/Card.cjs +0 -2
  192. package/models/Chapter.cjs +0 -2
  193. package/models/Concept.cjs +0 -2
  194. package/models/Feedback.cjs +0 -2
  195. package/models/File.cjs +0 -2
  196. package/models/Marksheet.cjs +0 -9
  197. package/models/MockTest.cjs +0 -2
  198. package/models/Picture.cjs +0 -6
  199. package/models/Promo.cjs +0 -2
  200. package/models/Todo.cjs +0 -2
  201. package/models/Token.cjs +0 -2
  202. package/models/Type.cjs +0 -2
  203. package/models/University.cjs +0 -2
  204. package/models/User.cjs +0 -2
  205. package/models/Video.cjs +0 -2
  206. package/models/index.cjs +0 -35
  207. package/resolvers/apollo.cjs +0 -2
  208. package/resolvers/mutation/admin/algoliaSync.cjs +0 -2
  209. package/resolvers/mutation/admin/index.cjs +0 -14
  210. package/resolvers/mutation/admin/token.cjs +0 -2
  211. package/resolvers/mutation/index.cjs +0 -14
  212. package/resolvers/mutation/restricted/agora.cjs +0 -2
  213. package/resolvers/mutation/restricted/contactUs.cjs +0 -2
  214. package/resolvers/mutation/restricted/index.cjs +0 -22
  215. package/resolvers/mutation/restricted/marksheet.cjs +0 -2
  216. package/resolvers/mutation/restricted/mockTest.cjs +0 -2
  217. package/resolvers/mutation/restricted/osce.cjs +0 -2
  218. package/resolvers/mutation/restricted/questionDiscussion.cjs +0 -2
  219. package/resolvers/mutation/restricted/token.cjs +0 -2
  220. package/resolvers/mutation/restricted/users.cjs +0 -2
  221. package/resolvers/mutation/restricted/video.cjs +0 -2
  222. package/resolvers/mutation/stripe.cjs +0 -2
  223. package/resolvers/mutation/users.cjs +0 -2
  224. package/resolvers/mutation/validUserToken/index.cjs +0 -13
  225. package/resolvers/mutation/validUserToken/user.cjs +0 -2
  226. package/resolvers/query/admin/getUserToken.cjs +0 -2
  227. package/resolvers/query/admin/index.cjs +0 -13
  228. package/resolvers/query/author.cjs +0 -2
  229. package/resolvers/query/book.cjs +0 -2
  230. package/resolvers/query/feedback.cjs +0 -2
  231. package/resolvers/query/index.cjs +0 -21
  232. package/resolvers/query/restricted/anatomy.cjs +0 -2
  233. package/resolvers/query/restricted/index.cjs +0 -22
  234. package/resolvers/query/restricted/marksheet.cjs +0 -2
  235. package/resolvers/query/restricted/mockTests.cjs +0 -2
  236. package/resolvers/query/restricted/osce.cjs +0 -2
  237. package/resolvers/query/restricted/quesBook.cjs +0 -2
  238. package/resolvers/query/restricted/todos.cjs +0 -2
  239. package/resolvers/query/restricted/topics.cjs +0 -2
  240. package/resolvers/query/restricted/university.cjs +0 -2
  241. package/resolvers/query/restricted/user.cjs +0 -2
  242. package/resolvers/query/restricted/video.cjs +0 -2
  243. package/resolvers/query/sampleCards.cjs +0 -2
  244. package/resolvers/query/sampleQuestions.cjs +0 -2
  245. package/resolvers/query/subscription.cjs +0 -2
  246. package/resolvers/query/university.cjs +0 -2
  247. package/resolvers/query/user.cjs +0 -2
  248. package/resolvers/query/video.cjs +0 -2
  249. package/resolvers/subscription/index.cjs +0 -13
  250. package/resolvers/subscription/osce.cjs +0 -43
  251. package/utils/index.cjs +0 -17
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
@@ -19,6 +19,7 @@ export interface UserTopicCardsInfo {
19
19
  LearnCards: number;
20
20
  }
21
21
  export interface TodoInfo {
22
+ id: Id;
22
23
  todoId: Id;
23
24
  cardId: Id;
24
25
  question: string;
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
package/index.js CHANGED
@@ -1,17 +1,20 @@
1
- export const ERRORS = {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPlatformId = exports.FCM_TOPICS = exports.ERRORS = void 0;
4
+ exports.ERRORS = {
2
5
  TOKEN_INVALID: 'Invalid token.',
3
6
  TOKEN_MISSING: 'Missing token.',
4
7
  TOKEN_EXPIRED: 'Expired token.',
5
8
  SUBSCRIPTION_EXPIRED: 'Expired subscription.',
6
9
  PERMISSION_INVALID: 'Invalid permission.',
7
10
  };
8
- export const FCM_TOPICS = {
11
+ exports.FCM_TOPICS = {
9
12
  GLOBAL: 'global',
10
13
  QBANK: 'qbank',
11
14
  OSCE: 'osce',
12
15
  };
13
- export var EPlatformId;
16
+ var EPlatformId;
14
17
  (function (EPlatformId) {
15
18
  EPlatformId[EPlatformId["QBANK"] = 0] = "QBANK";
16
19
  EPlatformId[EPlatformId["OSCE"] = 1] = "OSCE";
17
- })(EPlatformId || (EPlatformId = {}));
20
+ })(EPlatformId = exports.EPlatformId || (exports.EPlatformId = {}));
@@ -1,20 +1,17 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EPlatformId = exports.FCM_TOPICS = exports.ERRORS = void 0;
4
- exports.ERRORS = {
1
+ export const ERRORS = {
5
2
  TOKEN_INVALID: 'Invalid token.',
6
3
  TOKEN_MISSING: 'Missing token.',
7
4
  TOKEN_EXPIRED: 'Expired token.',
8
5
  SUBSCRIPTION_EXPIRED: 'Expired subscription.',
9
6
  PERMISSION_INVALID: 'Invalid permission.',
10
7
  };
11
- exports.FCM_TOPICS = {
8
+ export const FCM_TOPICS = {
12
9
  GLOBAL: 'global',
13
10
  QBANK: 'qbank',
14
11
  OSCE: 'osce',
15
12
  };
16
- var EPlatformId;
13
+ export var EPlatformId;
17
14
  (function (EPlatformId) {
18
15
  EPlatformId[EPlatformId["QBANK"] = 0] = "QBANK";
19
16
  EPlatformId[EPlatformId["OSCE"] = 1] = "OSCE";
20
- })(EPlatformId = exports.EPlatformId || (exports.EPlatformId = {}));
17
+ })(EPlatformId || (EPlatformId = {}));
package/models/Author.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
package/models/Book.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
package/models/Card.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
package/models/Chapter.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
package/models/Concept.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,10 @@
1
- export var EDifficultyType;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EDifficultyType = void 0;
4
+ var EDifficultyType;
2
5
  (function (EDifficultyType) {
3
6
  EDifficultyType[EDifficultyType["ALL"] = 0] = "ALL";
4
7
  EDifficultyType[EDifficultyType["CORE"] = 1] = "CORE";
5
8
  EDifficultyType[EDifficultyType["CHALLENGING"] = 2] = "CHALLENGING";
6
9
  EDifficultyType[EDifficultyType["DIFFICULT"] = 3] = "DIFFICULT";
7
- })(EDifficultyType || (EDifficultyType = {}));
10
+ })(EDifficultyType = exports.EDifficultyType || (exports.EDifficultyType = {}));
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EDifficultyType = void 0;
4
- var EDifficultyType;
1
+ export var EDifficultyType;
5
2
  (function (EDifficultyType) {
6
3
  EDifficultyType[EDifficultyType["ALL"] = 0] = "ALL";
7
4
  EDifficultyType[EDifficultyType["CORE"] = 1] = "CORE";
8
5
  EDifficultyType[EDifficultyType["CHALLENGING"] = 2] = "CHALLENGING";
9
6
  EDifficultyType[EDifficultyType["DIFFICULT"] = 3] = "DIFFICULT";
10
- })(EDifficultyType = exports.EDifficultyType || (exports.EDifficultyType = {}));
7
+ })(EDifficultyType || (EDifficultyType = {}));
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
package/models/File.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,9 @@
1
- export var EQuestionLike;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EQuestionLike = void 0;
4
+ var EQuestionLike;
2
5
  (function (EQuestionLike) {
3
6
  EQuestionLike[EQuestionLike["NONE"] = 0] = "NONE";
4
7
  EQuestionLike[EQuestionLike["LIKE"] = 1] = "LIKE";
5
8
  EQuestionLike[EQuestionLike["DISLIKE"] = 2] = "DISLIKE";
6
- })(EQuestionLike || (EQuestionLike = {}));
9
+ })(EQuestionLike = exports.EQuestionLike || (exports.EQuestionLike = {}));
@@ -0,0 +1,6 @@
1
+ export var EQuestionLike;
2
+ (function (EQuestionLike) {
3
+ EQuestionLike[EQuestionLike["NONE"] = 0] = "NONE";
4
+ EQuestionLike[EQuestionLike["LIKE"] = 1] = "LIKE";
5
+ EQuestionLike[EQuestionLike["DISLIKE"] = 2] = "DISLIKE";
6
+ })(EQuestionLike || (EQuestionLike = {}));
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
@@ -1,12 +1,15 @@
1
- export var EOsceRoles;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EOsceMarksheetAction = exports.EOsceRoles = void 0;
4
+ var EOsceRoles;
2
5
  (function (EOsceRoles) {
3
6
  EOsceRoles[EOsceRoles["ALL"] = 0] = "ALL";
4
7
  EOsceRoles[EOsceRoles["CANDIDATE"] = 1] = "CANDIDATE";
5
8
  EOsceRoles[EOsceRoles["ACTOR"] = 2] = "ACTOR";
6
9
  EOsceRoles[EOsceRoles["EXAMINER"] = 3] = "EXAMINER";
7
10
  EOsceRoles[EOsceRoles["OBSERVER"] = 4] = "OBSERVER";
8
- })(EOsceRoles || (EOsceRoles = {}));
9
- export var EOsceMarksheetAction;
11
+ })(EOsceRoles = exports.EOsceRoles || (exports.EOsceRoles = {}));
12
+ var EOsceMarksheetAction;
10
13
  (function (EOsceMarksheetAction) {
11
14
  EOsceMarksheetAction[EOsceMarksheetAction["PRESTART"] = 0] = "PRESTART";
12
15
  EOsceMarksheetAction[EOsceMarksheetAction["START"] = 1] = "START";
@@ -17,4 +20,4 @@ export var EOsceMarksheetAction;
17
20
  EOsceMarksheetAction[EOsceMarksheetAction["DISCONNECT"] = 6] = "DISCONNECT";
18
21
  EOsceMarksheetAction[EOsceMarksheetAction["SELECT"] = 7] = "SELECT";
19
22
  EOsceMarksheetAction[EOsceMarksheetAction["LEFT"] = 8] = "LEFT";
20
- })(EOsceMarksheetAction || (EOsceMarksheetAction = {}));
23
+ })(EOsceMarksheetAction = exports.EOsceMarksheetAction || (exports.EOsceMarksheetAction = {}));
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EOsceMarksheetAction = exports.EOsceRoles = void 0;
4
- var EOsceRoles;
1
+ export var EOsceRoles;
5
2
  (function (EOsceRoles) {
6
3
  EOsceRoles[EOsceRoles["ALL"] = 0] = "ALL";
7
4
  EOsceRoles[EOsceRoles["CANDIDATE"] = 1] = "CANDIDATE";
8
5
  EOsceRoles[EOsceRoles["ACTOR"] = 2] = "ACTOR";
9
6
  EOsceRoles[EOsceRoles["EXAMINER"] = 3] = "EXAMINER";
10
7
  EOsceRoles[EOsceRoles["OBSERVER"] = 4] = "OBSERVER";
11
- })(EOsceRoles = exports.EOsceRoles || (exports.EOsceRoles = {}));
12
- var EOsceMarksheetAction;
8
+ })(EOsceRoles || (EOsceRoles = {}));
9
+ export var EOsceMarksheetAction;
13
10
  (function (EOsceMarksheetAction) {
14
11
  EOsceMarksheetAction[EOsceMarksheetAction["PRESTART"] = 0] = "PRESTART";
15
12
  EOsceMarksheetAction[EOsceMarksheetAction["START"] = 1] = "START";
@@ -20,4 +17,4 @@ var EOsceMarksheetAction;
20
17
  EOsceMarksheetAction[EOsceMarksheetAction["DISCONNECT"] = 6] = "DISCONNECT";
21
18
  EOsceMarksheetAction[EOsceMarksheetAction["SELECT"] = 7] = "SELECT";
22
19
  EOsceMarksheetAction[EOsceMarksheetAction["LEFT"] = 8] = "LEFT";
23
- })(EOsceMarksheetAction = exports.EOsceMarksheetAction || (exports.EOsceMarksheetAction = {}));
20
+ })(EOsceMarksheetAction || (EOsceMarksheetAction = {}));
@@ -1,4 +1,7 @@
1
- export var EOsceType;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OSCE_GLOBAL_RATING = exports.EOsceType = void 0;
4
+ var EOsceType;
2
5
  (function (EOsceType) {
3
6
  EOsceType[EOsceType["ALL"] = 0] = "ALL";
4
7
  EOsceType[EOsceType["HISTORY_TAKING"] = 1] = "HISTORY_TAKING";
@@ -7,8 +10,8 @@ export var EOsceType;
7
10
  EOsceType[EOsceType["PROCEDURE"] = 4] = "PROCEDURE";
8
11
  EOsceType[EOsceType["INTERPRETATION"] = 5] = "INTERPRETATION";
9
12
  EOsceType[EOsceType["ABCDE"] = 6] = "ABCDE";
10
- })(EOsceType || (EOsceType = {}));
11
- export const OSCE_GLOBAL_RATING = {
13
+ })(EOsceType = exports.EOsceType || (exports.EOsceType = {}));
14
+ exports.OSCE_GLOBAL_RATING = {
12
15
  [EOsceType.ABCDE]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
13
16
  2. Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole task was performed slightly below passing level or there were some key errors or omissions
14
17
  3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OSCE_GLOBAL_RATING = exports.EOsceType = void 0;
4
- var EOsceType;
1
+ export var EOsceType;
5
2
  (function (EOsceType) {
6
3
  EOsceType[EOsceType["ALL"] = 0] = "ALL";
7
4
  EOsceType[EOsceType["HISTORY_TAKING"] = 1] = "HISTORY_TAKING";
@@ -10,8 +7,8 @@ var EOsceType;
10
7
  EOsceType[EOsceType["PROCEDURE"] = 4] = "PROCEDURE";
11
8
  EOsceType[EOsceType["INTERPRETATION"] = 5] = "INTERPRETATION";
12
9
  EOsceType[EOsceType["ABCDE"] = 6] = "ABCDE";
13
- })(EOsceType = exports.EOsceType || (exports.EOsceType = {}));
14
- exports.OSCE_GLOBAL_RATING = {
10
+ })(EOsceType || (EOsceType = {}));
11
+ export const OSCE_GLOBAL_RATING = {
15
12
  [EOsceType.ABCDE]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
16
13
  2. Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole task was performed slightly below passing level or there were some key errors or omissions
17
14
  3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
package/models/Picture.js CHANGED
@@ -1,5 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
1
3
  ;
2
4
  ;
3
5
  ;
4
6
  ;
5
- export {};
@@ -0,0 +1,5 @@
1
+ ;
2
+ ;
3
+ ;
4
+ ;
5
+ export {};
package/models/Promo.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,7 @@
1
- export var EPsaSectionType;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isQuestionPrescribe = exports.isQuestionMultiQ = exports.isQuestionQA = exports.isQuestionSBA = exports.EQuestionType = exports.EPsaSectionType = void 0;
4
+ var EPsaSectionType;
2
5
  (function (EPsaSectionType) {
3
6
  EPsaSectionType[EPsaSectionType["PRESCRIBING"] = 1] = "PRESCRIBING";
4
7
  EPsaSectionType[EPsaSectionType["PRESCRIPTION_REVIEW"] = 2] = "PRESCRIPTION_REVIEW";
@@ -8,23 +11,27 @@ export var EPsaSectionType;
8
11
  EPsaSectionType[EPsaSectionType["ADVERSE_DRUG_REACTION"] = 6] = "ADVERSE_DRUG_REACTION";
9
12
  EPsaSectionType[EPsaSectionType["DRUG_MONITORING"] = 7] = "DRUG_MONITORING";
10
13
  EPsaSectionType[EPsaSectionType["DATA_INTERPRETATION"] = 8] = "DATA_INTERPRETATION";
11
- })(EPsaSectionType || (EPsaSectionType = {}));
12
- export var EQuestionType;
14
+ })(EPsaSectionType = exports.EPsaSectionType || (exports.EPsaSectionType = {}));
15
+ var EQuestionType;
13
16
  (function (EQuestionType) {
14
17
  EQuestionType[EQuestionType["SINGLE_BEST_ANSWER"] = 1] = "SINGLE_BEST_ANSWER";
15
18
  EQuestionType[EQuestionType["QUESTION_ANSWER"] = 2] = "QUESTION_ANSWER";
16
19
  EQuestionType[EQuestionType["MULTIPLE_ANSWERS"] = 3] = "MULTIPLE_ANSWERS";
17
20
  EQuestionType[EQuestionType["PRESCRIPTION_ANSWER"] = 4] = "PRESCRIPTION_ANSWER";
18
- })(EQuestionType || (EQuestionType = {}));
19
- export function isQuestionSBA(data) {
21
+ })(EQuestionType = exports.EQuestionType || (exports.EQuestionType = {}));
22
+ function isQuestionSBA(data) {
20
23
  return data.typeId === EQuestionType.SINGLE_BEST_ANSWER;
21
24
  }
22
- export function isQuestionQA(data) {
25
+ exports.isQuestionSBA = isQuestionSBA;
26
+ function isQuestionQA(data) {
23
27
  return data.typeId === EQuestionType.QUESTION_ANSWER;
24
28
  }
25
- export function isQuestionMultiQ(data) {
29
+ exports.isQuestionQA = isQuestionQA;
30
+ function isQuestionMultiQ(data) {
26
31
  return data.typeId === EQuestionType.MULTIPLE_ANSWERS;
27
32
  }
28
- export function isQuestionPrescribe(data) {
33
+ exports.isQuestionMultiQ = isQuestionMultiQ;
34
+ function isQuestionPrescribe(data) {
29
35
  return data.typeId === EQuestionType.PRESCRIPTION_ANSWER;
30
36
  }
37
+ exports.isQuestionPrescribe = isQuestionPrescribe;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isQuestionPrescribe = exports.isQuestionMultiQ = exports.isQuestionQA = exports.isQuestionSBA = exports.EQuestionType = exports.EPsaSectionType = void 0;
4
- var EPsaSectionType;
1
+ export var EPsaSectionType;
5
2
  (function (EPsaSectionType) {
6
3
  EPsaSectionType[EPsaSectionType["PRESCRIBING"] = 1] = "PRESCRIBING";
7
4
  EPsaSectionType[EPsaSectionType["PRESCRIPTION_REVIEW"] = 2] = "PRESCRIPTION_REVIEW";
@@ -11,27 +8,23 @@ var EPsaSectionType;
11
8
  EPsaSectionType[EPsaSectionType["ADVERSE_DRUG_REACTION"] = 6] = "ADVERSE_DRUG_REACTION";
12
9
  EPsaSectionType[EPsaSectionType["DRUG_MONITORING"] = 7] = "DRUG_MONITORING";
13
10
  EPsaSectionType[EPsaSectionType["DATA_INTERPRETATION"] = 8] = "DATA_INTERPRETATION";
14
- })(EPsaSectionType = exports.EPsaSectionType || (exports.EPsaSectionType = {}));
15
- var EQuestionType;
11
+ })(EPsaSectionType || (EPsaSectionType = {}));
12
+ export var EQuestionType;
16
13
  (function (EQuestionType) {
17
14
  EQuestionType[EQuestionType["SINGLE_BEST_ANSWER"] = 1] = "SINGLE_BEST_ANSWER";
18
15
  EQuestionType[EQuestionType["QUESTION_ANSWER"] = 2] = "QUESTION_ANSWER";
19
16
  EQuestionType[EQuestionType["MULTIPLE_ANSWERS"] = 3] = "MULTIPLE_ANSWERS";
20
17
  EQuestionType[EQuestionType["PRESCRIPTION_ANSWER"] = 4] = "PRESCRIPTION_ANSWER";
21
- })(EQuestionType = exports.EQuestionType || (exports.EQuestionType = {}));
22
- function isQuestionSBA(data) {
18
+ })(EQuestionType || (EQuestionType = {}));
19
+ export function isQuestionSBA(data) {
23
20
  return data.typeId === EQuestionType.SINGLE_BEST_ANSWER;
24
21
  }
25
- exports.isQuestionSBA = isQuestionSBA;
26
- function isQuestionQA(data) {
22
+ export function isQuestionQA(data) {
27
23
  return data.typeId === EQuestionType.QUESTION_ANSWER;
28
24
  }
29
- exports.isQuestionQA = isQuestionQA;
30
- function isQuestionMultiQ(data) {
25
+ export function isQuestionMultiQ(data) {
31
26
  return data.typeId === EQuestionType.MULTIPLE_ANSWERS;
32
27
  }
33
- exports.isQuestionMultiQ = isQuestionMultiQ;
34
- function isQuestionPrescribe(data) {
28
+ export function isQuestionPrescribe(data) {
35
29
  return data.typeId === EQuestionType.PRESCRIPTION_ANSWER;
36
30
  }
37
- exports.isQuestionPrescribe = isQuestionPrescribe;
@@ -1,6 +1,9 @@
1
- export var ESubscriptionType;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ESubscriptionType = void 0;
4
+ var ESubscriptionType;
2
5
  (function (ESubscriptionType) {
3
6
  ESubscriptionType[ESubscriptionType["QBANK"] = 1] = "QBANK";
4
7
  ESubscriptionType[ESubscriptionType["OSCE"] = 2] = "OSCE";
5
8
  ESubscriptionType[ESubscriptionType["BUNDLE"] = 3] = "BUNDLE";
6
- })(ESubscriptionType || (ESubscriptionType = {}));
9
+ })(ESubscriptionType = exports.ESubscriptionType || (exports.ESubscriptionType = {}));
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ESubscriptionType = void 0;
4
- var ESubscriptionType;
1
+ export var ESubscriptionType;
5
2
  (function (ESubscriptionType) {
6
3
  ESubscriptionType[ESubscriptionType["QBANK"] = 1] = "QBANK";
7
4
  ESubscriptionType[ESubscriptionType["OSCE"] = 2] = "OSCE";
8
5
  ESubscriptionType[ESubscriptionType["BUNDLE"] = 3] = "BUNDLE";
9
- })(ESubscriptionType = exports.ESubscriptionType || (exports.ESubscriptionType = {}));
6
+ })(ESubscriptionType || (ESubscriptionType = {}));
package/models/Todo.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
package/models/Token.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
package/models/Topic.js CHANGED
@@ -1,4 +1,7 @@
1
- export var ETopicType;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ETopicType = void 0;
4
+ var ETopicType;
2
5
  (function (ETopicType) {
3
6
  ETopicType[ETopicType["ALL"] = 0] = "ALL";
4
7
  ETopicType[ETopicType["BASIC_SCIENCE"] = 1] = "BASIC_SCIENCE";
@@ -7,4 +10,4 @@ export var ETopicType;
7
10
  ETopicType[ETopicType["DATA_INTERPRETATION"] = 4] = "DATA_INTERPRETATION";
8
11
  ETopicType[ETopicType["PSA"] = 5] = "PSA";
9
12
  ETopicType[ETopicType["OSCE"] = 6] = "OSCE";
10
- })(ETopicType || (ETopicType = {}));
13
+ })(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ETopicType = void 0;
4
- var ETopicType;
1
+ export var ETopicType;
5
2
  (function (ETopicType) {
6
3
  ETopicType[ETopicType["ALL"] = 0] = "ALL";
7
4
  ETopicType[ETopicType["BASIC_SCIENCE"] = 1] = "BASIC_SCIENCE";
@@ -10,4 +7,4 @@ var ETopicType;
10
7
  ETopicType[ETopicType["DATA_INTERPRETATION"] = 4] = "DATA_INTERPRETATION";
11
8
  ETopicType[ETopicType["PSA"] = 5] = "PSA";
12
9
  ETopicType[ETopicType["OSCE"] = 6] = "OSCE";
13
- })(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
10
+ })(ETopicType || (ETopicType = {}));
package/models/Type.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
package/models/User.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
package/models/Video.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
package/models/index.js CHANGED
@@ -1,23 +1,35 @@
1
- export * from './Author';
2
- export * from './Book';
3
- export * from './Card';
4
- export * from './Chapter';
5
- export * from './Concept';
6
- export * from './Difficulty';
7
- export * from './Feedback';
8
- export * from './File';
9
- export * from './Marksheet';
10
- export * from './MockTest';
11
- export * from './OsceMarksheet';
12
- export * from './OsceStation';
13
- export * from './Picture';
14
- export * from './Promo';
15
- export * from './Question';
16
- export * from './Subscription';
17
- export * from './Todo';
18
- export * from './Token';
19
- export * from './Topic';
20
- export * from './Type';
21
- export * from './University';
22
- export * from './User';
23
- export * from './Video';
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./Author"), exports);
14
+ __exportStar(require("./Book"), exports);
15
+ __exportStar(require("./Card"), exports);
16
+ __exportStar(require("./Chapter"), exports);
17
+ __exportStar(require("./Concept"), exports);
18
+ __exportStar(require("./Difficulty"), exports);
19
+ __exportStar(require("./Feedback"), exports);
20
+ __exportStar(require("./File"), exports);
21
+ __exportStar(require("./Marksheet"), exports);
22
+ __exportStar(require("./MockTest"), exports);
23
+ __exportStar(require("./OsceMarksheet"), exports);
24
+ __exportStar(require("./OsceStation"), exports);
25
+ __exportStar(require("./Picture"), exports);
26
+ __exportStar(require("./Promo"), exports);
27
+ __exportStar(require("./Question"), exports);
28
+ __exportStar(require("./Subscription"), exports);
29
+ __exportStar(require("./Todo"), exports);
30
+ __exportStar(require("./Token"), exports);
31
+ __exportStar(require("./Topic"), exports);
32
+ __exportStar(require("./Type"), exports);
33
+ __exportStar(require("./University"), exports);
34
+ __exportStar(require("./User"), exports);
35
+ __exportStar(require("./Video"), exports);
@@ -0,0 +1,23 @@
1
+ export * from './Author';
2
+ export * from './Book';
3
+ export * from './Card';
4
+ export * from './Chapter';
5
+ export * from './Concept';
6
+ export * from './Difficulty';
7
+ export * from './Feedback';
8
+ export * from './File';
9
+ export * from './Marksheet';
10
+ export * from './MockTest';
11
+ export * from './OsceMarksheet';
12
+ export * from './OsceStation';
13
+ export * from './Picture';
14
+ export * from './Promo';
15
+ export * from './Question';
16
+ export * from './Subscription';
17
+ export * from './Todo';
18
+ export * from './Token';
19
+ export * from './Topic';
20
+ export * from './Type';
21
+ export * from './University';
22
+ export * from './User';
23
+ export * from './Video';
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "1.3.18",
3
+ "version": "1.4.1",
4
4
  "description": "Typescript types for Quesmed",
5
- "main": "index.cjs",
6
- "module": "index.js",
5
+ "main": "index.js",
6
+ "module": "index.mjs",
7
7
  "types": "index.d.ts",
8
8
  "type": "module",
9
9
  "scripts": {},
@@ -33,6 +33,7 @@
33
33
  "react-native-expo-image-cache": "^4.1.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "graphql": "^16"
36
+ "graphql": "^16",
37
+ "react": "^17"
37
38
  }
38
39
  }
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });