@quesmed/types 1.3.16 → 1.3.21

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 (161) 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.mjs +17 -0
  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.mjs +7 -0
  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.mjs +20 -0
  30. package/models/OsceStation.js +6 -3
  31. package/models/OsceStation.mjs +42 -0
  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.mjs +30 -0
  38. package/models/Subscription.js +5 -2
  39. package/models/Subscription.mjs +6 -0
  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.mjs +10 -0
  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 +6 -3
  57. package/resolvers/apollo.js +2 -1
  58. package/resolvers/apollo.mjs +1 -0
  59. package/resolvers/mutation/admin/algoliaSync.js +2 -1
  60. package/resolvers/mutation/admin/algoliaSync.mjs +1 -0
  61. package/resolvers/mutation/admin/index.js +14 -2
  62. package/resolvers/mutation/admin/index.mjs +2 -0
  63. package/resolvers/mutation/admin/token.js +2 -1
  64. package/resolvers/mutation/admin/token.mjs +1 -0
  65. package/resolvers/mutation/index.js +14 -2
  66. package/resolvers/mutation/index.mjs +2 -0
  67. package/resolvers/mutation/restricted/agora.js +2 -1
  68. package/resolvers/mutation/restricted/agora.mjs +1 -0
  69. package/resolvers/mutation/restricted/contactUs.js +2 -1
  70. package/resolvers/mutation/restricted/contactUs.mjs +1 -0
  71. package/resolvers/mutation/restricted/index.js +22 -10
  72. package/resolvers/mutation/restricted/index.mjs +10 -0
  73. package/resolvers/mutation/restricted/marksheet.js +2 -1
  74. package/resolvers/mutation/restricted/marksheet.mjs +1 -0
  75. package/resolvers/mutation/restricted/mockTest.js +2 -1
  76. package/resolvers/mutation/restricted/mockTest.mjs +1 -0
  77. package/resolvers/mutation/restricted/osce.js +2 -1
  78. package/resolvers/mutation/restricted/osce.mjs +1 -0
  79. package/resolvers/mutation/restricted/questionDiscussion.js +2 -1
  80. package/resolvers/mutation/restricted/questionDiscussion.mjs +1 -0
  81. package/resolvers/mutation/restricted/todo.js +19 -26
  82. package/resolvers/mutation/restricted/todo.mjs +25 -0
  83. package/resolvers/mutation/restricted/token.js +2 -1
  84. package/resolvers/mutation/restricted/token.mjs +1 -0
  85. package/resolvers/mutation/restricted/users.js +2 -1
  86. package/resolvers/mutation/restricted/users.mjs +1 -0
  87. package/resolvers/mutation/restricted/video.js +2 -1
  88. package/resolvers/mutation/restricted/video.mjs +1 -0
  89. package/resolvers/mutation/stripe.js +2 -1
  90. package/resolvers/mutation/stripe.mjs +1 -0
  91. package/resolvers/mutation/users.js +2 -1
  92. package/resolvers/mutation/users.mjs +1 -0
  93. package/resolvers/mutation/validUserToken/index.js +13 -1
  94. package/resolvers/mutation/validUserToken/index.mjs +1 -0
  95. package/resolvers/mutation/validUserToken/user.js +2 -1
  96. package/resolvers/mutation/validUserToken/user.mjs +1 -0
  97. package/resolvers/query/admin/getUserToken.js +2 -1
  98. package/resolvers/query/admin/getUserToken.mjs +1 -0
  99. package/resolvers/query/admin/index.js +13 -1
  100. package/resolvers/query/admin/index.mjs +1 -0
  101. package/resolvers/query/author.js +2 -1
  102. package/resolvers/query/author.mjs +1 -0
  103. package/resolvers/query/book.js +2 -1
  104. package/resolvers/query/book.mjs +1 -0
  105. package/resolvers/query/feedback.js +2 -1
  106. package/resolvers/query/feedback.mjs +1 -0
  107. package/resolvers/query/index.js +21 -9
  108. package/resolvers/query/index.mjs +9 -0
  109. package/resolvers/query/restricted/anatomy.js +2 -1
  110. package/resolvers/query/restricted/anatomy.mjs +1 -0
  111. package/resolvers/query/restricted/index.js +22 -10
  112. package/resolvers/query/restricted/index.mjs +10 -0
  113. package/resolvers/query/restricted/marksheet.js +2 -1
  114. package/resolvers/query/restricted/marksheet.mjs +1 -0
  115. package/resolvers/query/restricted/mockTests.js +2 -1
  116. package/resolvers/query/restricted/mockTests.mjs +1 -0
  117. package/resolvers/query/restricted/osce.js +2 -1
  118. package/resolvers/query/restricted/osce.mjs +1 -0
  119. package/resolvers/query/restricted/quesBook.js +2 -1
  120. package/resolvers/query/restricted/quesBook.mjs +1 -0
  121. package/resolvers/query/restricted/todos.js +2 -1
  122. package/resolvers/query/restricted/todos.mjs +1 -0
  123. package/resolvers/query/restricted/topics.js +2 -1
  124. package/resolvers/query/restricted/topics.mjs +1 -0
  125. package/resolvers/query/restricted/university.js +2 -1
  126. package/resolvers/query/restricted/university.mjs +1 -0
  127. package/resolvers/query/restricted/user.js +2 -1
  128. package/resolvers/query/restricted/user.mjs +1 -0
  129. package/resolvers/query/restricted/video.js +2 -1
  130. package/resolvers/query/restricted/video.mjs +1 -0
  131. package/resolvers/query/sampleCards.js +2 -1
  132. package/resolvers/query/sampleCards.mjs +1 -0
  133. package/resolvers/query/sampleQuestions.js +2 -1
  134. package/resolvers/query/sampleQuestions.mjs +1 -0
  135. package/resolvers/query/subscription.js +2 -1
  136. package/resolvers/query/subscription.mjs +1 -0
  137. package/resolvers/query/university.js +2 -1
  138. package/resolvers/query/university.mjs +1 -0
  139. package/resolvers/query/user.js +2 -1
  140. package/resolvers/query/user.mjs +1 -0
  141. package/resolvers/query/video.js +2 -1
  142. package/resolvers/query/video.mjs +1 -0
  143. package/resolvers/subscription/index.js +13 -1
  144. package/resolvers/subscription/index.mjs +1 -0
  145. package/resolvers/subscription/osce.d.ts +2 -1
  146. package/resolvers/subscription/osce.js +14 -10
  147. package/resolvers/subscription/osce.mjs +39 -0
  148. package/utils/commonFunctions.js +17 -11
  149. package/utils/commonFunctions.mjs +217 -0
  150. package/utils/index.d.ts +5 -0
  151. package/utils/index.js +17 -0
  152. package/utils/index.mjs +5 -0
  153. package/utils/lightgallery.js +9 -2
  154. package/utils/lightgallery.mjs +87 -0
  155. package/utils/offlineLink.d.ts +64 -0
  156. package/utils/offlineLink.js +237 -0
  157. package/utils/offlineLink.mjs +230 -0
  158. package/utils/uuid4.js +3 -1
  159. package/utils/uuid4.mjs +285 -0
  160. package/utils/wordsToNumber.js +5 -1
  161. package/utils/wordsToNumber.mjs +44 -0
@@ -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 = {}));
package/index.mjs ADDED
@@ -0,0 +1,17 @@
1
+ export const ERRORS = {
2
+ TOKEN_INVALID: 'Invalid token.',
3
+ TOKEN_MISSING: 'Missing token.',
4
+ TOKEN_EXPIRED: 'Expired token.',
5
+ SUBSCRIPTION_EXPIRED: 'Expired subscription.',
6
+ PERMISSION_INVALID: 'Invalid permission.',
7
+ };
8
+ export const FCM_TOPICS = {
9
+ GLOBAL: 'global',
10
+ QBANK: 'qbank',
11
+ OSCE: 'osce',
12
+ };
13
+ export var EPlatformId;
14
+ (function (EPlatformId) {
15
+ EPlatformId[EPlatformId["QBANK"] = 0] = "QBANK";
16
+ EPlatformId[EPlatformId["OSCE"] = 1] = "OSCE";
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 = {}));
@@ -0,0 +1,7 @@
1
+ export var EDifficultyType;
2
+ (function (EDifficultyType) {
3
+ EDifficultyType[EDifficultyType["ALL"] = 0] = "ALL";
4
+ EDifficultyType[EDifficultyType["CORE"] = 1] = "CORE";
5
+ EDifficultyType[EDifficultyType["CHALLENGING"] = 2] = "CHALLENGING";
6
+ EDifficultyType[EDifficultyType["DIFFICULT"] = 3] = "DIFFICULT";
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 = {}));
@@ -0,0 +1,20 @@
1
+ export var EOsceRoles;
2
+ (function (EOsceRoles) {
3
+ EOsceRoles[EOsceRoles["ALL"] = 0] = "ALL";
4
+ EOsceRoles[EOsceRoles["CANDIDATE"] = 1] = "CANDIDATE";
5
+ EOsceRoles[EOsceRoles["ACTOR"] = 2] = "ACTOR";
6
+ EOsceRoles[EOsceRoles["EXAMINER"] = 3] = "EXAMINER";
7
+ EOsceRoles[EOsceRoles["OBSERVER"] = 4] = "OBSERVER";
8
+ })(EOsceRoles || (EOsceRoles = {}));
9
+ export var EOsceMarksheetAction;
10
+ (function (EOsceMarksheetAction) {
11
+ EOsceMarksheetAction[EOsceMarksheetAction["PRESTART"] = 0] = "PRESTART";
12
+ EOsceMarksheetAction[EOsceMarksheetAction["START"] = 1] = "START";
13
+ EOsceMarksheetAction[EOsceMarksheetAction["END"] = 2] = "END";
14
+ EOsceMarksheetAction[EOsceMarksheetAction["PAUSE"] = 3] = "PAUSE";
15
+ EOsceMarksheetAction[EOsceMarksheetAction["CONTINUE"] = 4] = "CONTINUE";
16
+ EOsceMarksheetAction[EOsceMarksheetAction["CONNECT"] = 5] = "CONNECT";
17
+ EOsceMarksheetAction[EOsceMarksheetAction["DISCONNECT"] = 6] = "DISCONNECT";
18
+ EOsceMarksheetAction[EOsceMarksheetAction["SELECT"] = 7] = "SELECT";
19
+ EOsceMarksheetAction[EOsceMarksheetAction["LEFT"] = 8] = "LEFT";
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.
@@ -0,0 +1,42 @@
1
+ export var EOsceType;
2
+ (function (EOsceType) {
3
+ EOsceType[EOsceType["ALL"] = 0] = "ALL";
4
+ EOsceType[EOsceType["HISTORY_TAKING"] = 1] = "HISTORY_TAKING";
5
+ EOsceType[EOsceType["COMMUNICATION_SKILLS"] = 2] = "COMMUNICATION_SKILLS";
6
+ EOsceType[EOsceType["EXAMINATION"] = 3] = "EXAMINATION";
7
+ EOsceType[EOsceType["PROCEDURE"] = 4] = "PROCEDURE";
8
+ EOsceType[EOsceType["INTERPRETATION"] = 5] = "INTERPRETATION";
9
+ EOsceType[EOsceType["ABCDE"] = 6] = "ABCDE";
10
+ })(EOsceType || (EOsceType = {}));
11
+ export const OSCE_GLOBAL_RATING = {
12
+ [EOsceType.ABCDE]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
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
14
+ 3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
15
+ 4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
16
+ 5. Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
17
+ [EOsceType.COMMUNICATION_SKILLS]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
18
+ 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
19
+ 3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
20
+ 4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
21
+ 5. Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
22
+ [EOsceType.EXAMINATION]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
23
+ 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
24
+ 3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
25
+ 4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
26
+ 5. Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
27
+ [EOsceType.HISTORY_TAKING]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard.
28
+ 2. Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole history was performed slightly below passing level or there were some key errors or omissions. The differentials have some important omissions.
29
+ 3. Pass - The history was performed to an acceptable level. There may have been some minor errors or omissions. The differentials were sensible.
30
+ 4. Good - The performance of the candidate was good in most areas. All aspects of the task were performed equally well. The differentials were thorough and well-reasoned.
31
+ 5. Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the history and summary and displayed confidence, professionalism, and empathy.`,
32
+ [EOsceType.INTERPRETATION]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
33
+ 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
34
+ 3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
35
+ 4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
36
+ 5. Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
37
+ [EOsceType.PROCEDURE]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard.
38
+ 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.
39
+ 3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
40
+ 4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
41
+ 5. Excellent - The candidate performed to a high standard throughout. They were fluent in all aspects of the task and displayed confidence, professionalism, and empathy.`,
42
+ };
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;
@@ -0,0 +1,30 @@
1
+ export var EPsaSectionType;
2
+ (function (EPsaSectionType) {
3
+ EPsaSectionType[EPsaSectionType["PRESCRIBING"] = 1] = "PRESCRIBING";
4
+ EPsaSectionType[EPsaSectionType["PRESCRIPTION_REVIEW"] = 2] = "PRESCRIPTION_REVIEW";
5
+ EPsaSectionType[EPsaSectionType["PLANNING_MANAGEMENT"] = 3] = "PLANNING_MANAGEMENT";
6
+ EPsaSectionType[EPsaSectionType["PROVIDING_INFORMATION"] = 4] = "PROVIDING_INFORMATION";
7
+ EPsaSectionType[EPsaSectionType["CALCULATION_SKILLS"] = 5] = "CALCULATION_SKILLS";
8
+ EPsaSectionType[EPsaSectionType["ADVERSE_DRUG_REACTION"] = 6] = "ADVERSE_DRUG_REACTION";
9
+ EPsaSectionType[EPsaSectionType["DRUG_MONITORING"] = 7] = "DRUG_MONITORING";
10
+ EPsaSectionType[EPsaSectionType["DATA_INTERPRETATION"] = 8] = "DATA_INTERPRETATION";
11
+ })(EPsaSectionType || (EPsaSectionType = {}));
12
+ export var EQuestionType;
13
+ (function (EQuestionType) {
14
+ EQuestionType[EQuestionType["SINGLE_BEST_ANSWER"] = 1] = "SINGLE_BEST_ANSWER";
15
+ EQuestionType[EQuestionType["QUESTION_ANSWER"] = 2] = "QUESTION_ANSWER";
16
+ EQuestionType[EQuestionType["MULTIPLE_ANSWERS"] = 3] = "MULTIPLE_ANSWERS";
17
+ EQuestionType[EQuestionType["PRESCRIPTION_ANSWER"] = 4] = "PRESCRIPTION_ANSWER";
18
+ })(EQuestionType || (EQuestionType = {}));
19
+ export function isQuestionSBA(data) {
20
+ return data.typeId === EQuestionType.SINGLE_BEST_ANSWER;
21
+ }
22
+ export function isQuestionQA(data) {
23
+ return data.typeId === EQuestionType.QUESTION_ANSWER;
24
+ }
25
+ export function isQuestionMultiQ(data) {
26
+ return data.typeId === EQuestionType.MULTIPLE_ANSWERS;
27
+ }
28
+ export function isQuestionPrescribe(data) {
29
+ return data.typeId === EQuestionType.PRESCRIPTION_ANSWER;
30
+ }
@@ -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 = {}));
@@ -0,0 +1,6 @@
1
+ export var ESubscriptionType;
2
+ (function (ESubscriptionType) {
3
+ ESubscriptionType[ESubscriptionType["QBANK"] = 1] = "QBANK";
4
+ ESubscriptionType[ESubscriptionType["OSCE"] = 2] = "OSCE";
5
+ ESubscriptionType[ESubscriptionType["BUNDLE"] = 3] = "BUNDLE";
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 = {}));
@@ -0,0 +1,10 @@
1
+ export var ETopicType;
2
+ (function (ETopicType) {
3
+ ETopicType[ETopicType["ALL"] = 0] = "ALL";
4
+ ETopicType[ETopicType["BASIC_SCIENCE"] = 1] = "BASIC_SCIENCE";
5
+ ETopicType[ETopicType["CLINICAL"] = 2] = "CLINICAL";
6
+ ETopicType[ETopicType["ANATOMY"] = 3] = "ANATOMY";
7
+ ETopicType[ETopicType["DATA_INTERPRETATION"] = 4] = "DATA_INTERPRETATION";
8
+ ETopicType[ETopicType["PSA"] = 5] = "PSA";
9
+ ETopicType[ETopicType["OSCE"] = 6] = "OSCE";
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,8 +1,9 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "1.3.16",
3
+ "version": "1.3.21",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "main": "index.js",
6
+ "module": "index.mjs",
6
7
  "types": "index.d.ts",
7
8
  "type": "module",
8
9
  "scripts": {},
@@ -24,12 +25,14 @@
24
25
  "devDependencies": {},
25
26
  "packageManager": "yarn@3.1.1",
26
27
  "dependencies": {
28
+ "@apollo/client": "^3.5.7",
29
+ "@react-native-async-storage/async-storage": "^1.15.16",
27
30
  "@types/react-native": "^0.66.15",
31
+ "localforage": "^1.10.0",
28
32
  "react-native": "^0.67.1",
29
33
  "react-native-expo-image-cache": "^4.1.0"
30
34
  },
31
35
  "peerDependencies": {
32
- "@apollo/client": "^3.5",
33
36
  "graphql": "^16"
34
37
  }
35
- }
38
+ }
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};