@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.
- package/gql_input_output_types/User.js +2 -1
- package/gql_input_output_types/User.mjs +1 -0
- package/gql_input_output_types/index.d.ts +1 -0
- package/gql_input_output_types/index.js +2 -1
- package/gql_input_output_types/index.mjs +1 -0
- package/index.js +7 -4
- package/index.mjs +17 -0
- package/models/Author.js +2 -1
- package/models/Author.mjs +1 -0
- package/models/Book.js +2 -1
- package/models/Book.mjs +1 -0
- package/models/Card.js +2 -1
- package/models/Card.mjs +1 -0
- package/models/Chapter.js +2 -1
- package/models/Chapter.mjs +1 -0
- package/models/Concept.js +2 -1
- package/models/Concept.mjs +1 -0
- package/models/Difficulty.js +5 -2
- package/models/Difficulty.mjs +7 -0
- package/models/Feedback.js +2 -1
- package/models/Feedback.mjs +1 -0
- package/models/File.js +2 -1
- package/models/File.mjs +1 -0
- package/models/Marksheet.js +5 -2
- package/models/Marksheet.mjs +6 -0
- package/models/MockTest.js +2 -1
- package/models/MockTest.mjs +1 -0
- package/models/OsceMarksheet.js +7 -4
- package/models/OsceMarksheet.mjs +20 -0
- package/models/OsceStation.js +6 -3
- package/models/OsceStation.mjs +42 -0
- package/models/Picture.js +2 -1
- package/models/Picture.mjs +5 -0
- package/models/Promo.js +2 -1
- package/models/Promo.mjs +1 -0
- package/models/Question.js +15 -8
- package/models/Question.mjs +30 -0
- package/models/Subscription.js +5 -2
- package/models/Subscription.mjs +6 -0
- package/models/Todo.js +2 -1
- package/models/Todo.mjs +1 -0
- package/models/Token.js +2 -1
- package/models/Token.mjs +1 -0
- package/models/Topic.js +5 -2
- package/models/Topic.mjs +10 -0
- package/models/Type.js +2 -1
- package/models/Type.mjs +1 -0
- package/models/University.js +2 -1
- package/models/University.mjs +1 -0
- package/models/User.js +2 -1
- package/models/User.mjs +1 -0
- package/models/Video.js +2 -1
- package/models/Video.mjs +1 -0
- package/models/index.js +35 -23
- package/models/index.mjs +23 -0
- package/package.json +6 -3
- package/resolvers/apollo.js +2 -1
- package/resolvers/apollo.mjs +1 -0
- package/resolvers/mutation/admin/algoliaSync.js +2 -1
- package/resolvers/mutation/admin/algoliaSync.mjs +1 -0
- package/resolvers/mutation/admin/index.js +14 -2
- package/resolvers/mutation/admin/index.mjs +2 -0
- package/resolvers/mutation/admin/token.js +2 -1
- package/resolvers/mutation/admin/token.mjs +1 -0
- package/resolvers/mutation/index.js +14 -2
- package/resolvers/mutation/index.mjs +2 -0
- package/resolvers/mutation/restricted/agora.js +2 -1
- package/resolvers/mutation/restricted/agora.mjs +1 -0
- package/resolvers/mutation/restricted/contactUs.js +2 -1
- package/resolvers/mutation/restricted/contactUs.mjs +1 -0
- package/resolvers/mutation/restricted/index.js +22 -10
- package/resolvers/mutation/restricted/index.mjs +10 -0
- package/resolvers/mutation/restricted/marksheet.js +2 -1
- package/resolvers/mutation/restricted/marksheet.mjs +1 -0
- package/resolvers/mutation/restricted/mockTest.js +2 -1
- package/resolvers/mutation/restricted/mockTest.mjs +1 -0
- package/resolvers/mutation/restricted/osce.js +2 -1
- package/resolvers/mutation/restricted/osce.mjs +1 -0
- package/resolvers/mutation/restricted/questionDiscussion.js +2 -1
- package/resolvers/mutation/restricted/questionDiscussion.mjs +1 -0
- package/resolvers/mutation/restricted/todo.js +19 -26
- package/resolvers/mutation/restricted/todo.mjs +25 -0
- package/resolvers/mutation/restricted/token.js +2 -1
- package/resolvers/mutation/restricted/token.mjs +1 -0
- package/resolvers/mutation/restricted/users.js +2 -1
- package/resolvers/mutation/restricted/users.mjs +1 -0
- package/resolvers/mutation/restricted/video.js +2 -1
- package/resolvers/mutation/restricted/video.mjs +1 -0
- package/resolvers/mutation/stripe.js +2 -1
- package/resolvers/mutation/stripe.mjs +1 -0
- package/resolvers/mutation/users.js +2 -1
- package/resolvers/mutation/users.mjs +1 -0
- package/resolvers/mutation/validUserToken/index.js +13 -1
- package/resolvers/mutation/validUserToken/index.mjs +1 -0
- package/resolvers/mutation/validUserToken/user.js +2 -1
- package/resolvers/mutation/validUserToken/user.mjs +1 -0
- package/resolvers/query/admin/getUserToken.js +2 -1
- package/resolvers/query/admin/getUserToken.mjs +1 -0
- package/resolvers/query/admin/index.js +13 -1
- package/resolvers/query/admin/index.mjs +1 -0
- package/resolvers/query/author.js +2 -1
- package/resolvers/query/author.mjs +1 -0
- package/resolvers/query/book.js +2 -1
- package/resolvers/query/book.mjs +1 -0
- package/resolvers/query/feedback.js +2 -1
- package/resolvers/query/feedback.mjs +1 -0
- package/resolvers/query/index.js +21 -9
- package/resolvers/query/index.mjs +9 -0
- package/resolvers/query/restricted/anatomy.js +2 -1
- package/resolvers/query/restricted/anatomy.mjs +1 -0
- package/resolvers/query/restricted/index.js +22 -10
- package/resolvers/query/restricted/index.mjs +10 -0
- package/resolvers/query/restricted/marksheet.js +2 -1
- package/resolvers/query/restricted/marksheet.mjs +1 -0
- package/resolvers/query/restricted/mockTests.js +2 -1
- package/resolvers/query/restricted/mockTests.mjs +1 -0
- package/resolvers/query/restricted/osce.js +2 -1
- package/resolvers/query/restricted/osce.mjs +1 -0
- package/resolvers/query/restricted/quesBook.js +2 -1
- package/resolvers/query/restricted/quesBook.mjs +1 -0
- package/resolvers/query/restricted/todos.js +2 -1
- package/resolvers/query/restricted/todos.mjs +1 -0
- package/resolvers/query/restricted/topics.js +2 -1
- package/resolvers/query/restricted/topics.mjs +1 -0
- package/resolvers/query/restricted/university.js +2 -1
- package/resolvers/query/restricted/university.mjs +1 -0
- package/resolvers/query/restricted/user.js +2 -1
- package/resolvers/query/restricted/user.mjs +1 -0
- package/resolvers/query/restricted/video.js +2 -1
- package/resolvers/query/restricted/video.mjs +1 -0
- package/resolvers/query/sampleCards.js +2 -1
- package/resolvers/query/sampleCards.mjs +1 -0
- package/resolvers/query/sampleQuestions.js +2 -1
- package/resolvers/query/sampleQuestions.mjs +1 -0
- package/resolvers/query/subscription.js +2 -1
- package/resolvers/query/subscription.mjs +1 -0
- package/resolvers/query/university.js +2 -1
- package/resolvers/query/university.mjs +1 -0
- package/resolvers/query/user.js +2 -1
- package/resolvers/query/user.mjs +1 -0
- package/resolvers/query/video.js +2 -1
- package/resolvers/query/video.mjs +1 -0
- package/resolvers/subscription/index.js +13 -1
- package/resolvers/subscription/index.mjs +1 -0
- package/resolvers/subscription/osce.d.ts +2 -1
- package/resolvers/subscription/osce.js +14 -10
- package/resolvers/subscription/osce.mjs +39 -0
- package/utils/commonFunctions.js +17 -11
- package/utils/commonFunctions.mjs +217 -0
- package/utils/index.d.ts +5 -0
- package/utils/index.js +17 -0
- package/utils/index.mjs +5 -0
- package/utils/lightgallery.js +9 -2
- package/utils/lightgallery.mjs +87 -0
- package/utils/offlineLink.d.ts +64 -0
- package/utils/offlineLink.js +237 -0
- package/utils/offlineLink.mjs +230 -0
- package/utils/uuid4.js +3 -1
- package/utils/uuid4.mjs +285 -0
- package/utils/wordsToNumber.js +5 -1
- package/utils/wordsToNumber.mjs +44 -0
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/index.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
11
|
+
exports.FCM_TOPICS = {
|
|
9
12
|
GLOBAL: 'global',
|
|
10
13
|
QBANK: 'qbank',
|
|
11
14
|
OSCE: 'osce',
|
|
12
15
|
};
|
|
13
|
-
|
|
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
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/Book.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/Book.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/Card.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/Card.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/Chapter.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/Concept.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/Difficulty.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
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 = {}));
|
package/models/Feedback.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/File.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/File.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/Marksheet.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
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 = {}));
|
package/models/MockTest.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/OsceMarksheet.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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 = {}));
|
package/models/OsceStation.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
package/models/Promo.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/Promo.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/Question.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
21
|
+
})(EQuestionType = exports.EQuestionType || (exports.EQuestionType = {}));
|
|
22
|
+
function isQuestionSBA(data) {
|
|
20
23
|
return data.typeId === EQuestionType.SINGLE_BEST_ANSWER;
|
|
21
24
|
}
|
|
22
|
-
|
|
25
|
+
exports.isQuestionSBA = isQuestionSBA;
|
|
26
|
+
function isQuestionQA(data) {
|
|
23
27
|
return data.typeId === EQuestionType.QUESTION_ANSWER;
|
|
24
28
|
}
|
|
25
|
-
|
|
29
|
+
exports.isQuestionQA = isQuestionQA;
|
|
30
|
+
function isQuestionMultiQ(data) {
|
|
26
31
|
return data.typeId === EQuestionType.MULTIPLE_ANSWERS;
|
|
27
32
|
}
|
|
28
|
-
|
|
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
|
+
}
|
package/models/Subscription.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/Todo.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/Token.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/Token.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/Topic.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
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 = {}));
|
package/models/Topic.mjs
ADDED
|
@@ -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
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/Type.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/University.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/User.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/User.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/Video.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/Video.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/index.js
CHANGED
|
@@ -1,23 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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);
|
package/models/index.mjs
ADDED
|
@@ -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.
|
|
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
|
+
}
|
package/resolvers/apollo.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|