@quesmed/types 1.3.17 → 1.3.18
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.cjs +2 -0
- package/gql_input_output_types/index.cjs +2 -0
- package/index.cjs +20 -0
- package/models/Author.cjs +2 -0
- package/models/Book.cjs +2 -0
- package/models/Card.cjs +2 -0
- package/models/Chapter.cjs +2 -0
- package/models/Concept.cjs +2 -0
- package/models/Difficulty.cjs +10 -0
- package/models/Feedback.cjs +2 -0
- package/models/File.cjs +2 -0
- package/models/Marksheet.cjs +9 -0
- package/models/MockTest.cjs +2 -0
- package/models/OsceMarksheet.cjs +23 -0
- package/models/OsceStation.cjs +45 -0
- package/models/Picture.cjs +6 -0
- package/models/Promo.cjs +2 -0
- package/models/Question.cjs +37 -0
- package/models/Subscription.cjs +9 -0
- package/models/Todo.cjs +2 -0
- package/models/Token.cjs +2 -0
- package/models/Topic.cjs +13 -0
- package/models/Type.cjs +2 -0
- package/models/University.cjs +2 -0
- package/models/User.cjs +2 -0
- package/models/Video.cjs +2 -0
- package/models/index.cjs +35 -0
- package/package.json +3 -2
- package/resolvers/apollo.cjs +2 -0
- package/resolvers/mutation/admin/algoliaSync.cjs +2 -0
- package/resolvers/mutation/admin/index.cjs +14 -0
- package/resolvers/mutation/admin/token.cjs +2 -0
- package/resolvers/mutation/index.cjs +14 -0
- package/resolvers/mutation/restricted/agora.cjs +2 -0
- package/resolvers/mutation/restricted/contactUs.cjs +2 -0
- package/resolvers/mutation/restricted/index.cjs +22 -0
- package/resolvers/mutation/restricted/marksheet.cjs +2 -0
- package/resolvers/mutation/restricted/mockTest.cjs +2 -0
- package/resolvers/mutation/restricted/osce.cjs +2 -0
- package/resolvers/mutation/restricted/questionDiscussion.cjs +2 -0
- package/resolvers/mutation/restricted/todo.cjs +29 -0
- package/resolvers/mutation/restricted/token.cjs +2 -0
- package/resolvers/mutation/restricted/users.cjs +2 -0
- package/resolvers/mutation/restricted/video.cjs +2 -0
- package/resolvers/mutation/stripe.cjs +2 -0
- package/resolvers/mutation/users.cjs +2 -0
- package/resolvers/mutation/validUserToken/index.cjs +13 -0
- package/resolvers/mutation/validUserToken/user.cjs +2 -0
- package/resolvers/query/admin/getUserToken.cjs +2 -0
- package/resolvers/query/admin/index.cjs +13 -0
- package/resolvers/query/author.cjs +2 -0
- package/resolvers/query/book.cjs +2 -0
- package/resolvers/query/feedback.cjs +2 -0
- package/resolvers/query/index.cjs +21 -0
- package/resolvers/query/restricted/anatomy.cjs +2 -0
- package/resolvers/query/restricted/index.cjs +22 -0
- package/resolvers/query/restricted/marksheet.cjs +2 -0
- package/resolvers/query/restricted/mockTests.cjs +2 -0
- package/resolvers/query/restricted/osce.cjs +2 -0
- package/resolvers/query/restricted/quesBook.cjs +2 -0
- package/resolvers/query/restricted/todos.cjs +2 -0
- package/resolvers/query/restricted/topics.cjs +2 -0
- package/resolvers/query/restricted/university.cjs +2 -0
- package/resolvers/query/restricted/user.cjs +2 -0
- package/resolvers/query/restricted/video.cjs +2 -0
- package/resolvers/query/sampleCards.cjs +2 -0
- package/resolvers/query/sampleQuestions.cjs +2 -0
- package/resolvers/query/subscription.cjs +2 -0
- package/resolvers/query/university.cjs +2 -0
- package/resolvers/query/user.cjs +2 -0
- package/resolvers/query/video.cjs +2 -0
- package/resolvers/subscription/index.cjs +13 -0
- package/resolvers/subscription/osce.cjs +43 -0
- package/utils/commonFunctions.cjs +223 -0
- package/utils/index.cjs +17 -0
- package/utils/index.d.ts +5 -0
- package/utils/index.js +5 -0
- package/utils/lightgallery.cjs +91 -0
- package/utils/offlineLink.cjs +237 -0
- package/{resolvers → utils}/offlineLink.d.ts +0 -0
- package/{resolvers → utils}/offlineLink.js +1 -1
- package/utils/uuid4.cjs +287 -0
- package/utils/wordsToNumber.cjs +48 -0
package/index.cjs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EPlatformId = exports.FCM_TOPICS = exports.ERRORS = void 0;
|
|
4
|
+
exports.ERRORS = {
|
|
5
|
+
TOKEN_INVALID: 'Invalid token.',
|
|
6
|
+
TOKEN_MISSING: 'Missing token.',
|
|
7
|
+
TOKEN_EXPIRED: 'Expired token.',
|
|
8
|
+
SUBSCRIPTION_EXPIRED: 'Expired subscription.',
|
|
9
|
+
PERMISSION_INVALID: 'Invalid permission.',
|
|
10
|
+
};
|
|
11
|
+
exports.FCM_TOPICS = {
|
|
12
|
+
GLOBAL: 'global',
|
|
13
|
+
QBANK: 'qbank',
|
|
14
|
+
OSCE: 'osce',
|
|
15
|
+
};
|
|
16
|
+
var EPlatformId;
|
|
17
|
+
(function (EPlatformId) {
|
|
18
|
+
EPlatformId[EPlatformId["QBANK"] = 0] = "QBANK";
|
|
19
|
+
EPlatformId[EPlatformId["OSCE"] = 1] = "OSCE";
|
|
20
|
+
})(EPlatformId = exports.EPlatformId || (exports.EPlatformId = {}));
|
package/models/Book.cjs
ADDED
package/models/Card.cjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EDifficultyType = void 0;
|
|
4
|
+
var EDifficultyType;
|
|
5
|
+
(function (EDifficultyType) {
|
|
6
|
+
EDifficultyType[EDifficultyType["ALL"] = 0] = "ALL";
|
|
7
|
+
EDifficultyType[EDifficultyType["CORE"] = 1] = "CORE";
|
|
8
|
+
EDifficultyType[EDifficultyType["CHALLENGING"] = 2] = "CHALLENGING";
|
|
9
|
+
EDifficultyType[EDifficultyType["DIFFICULT"] = 3] = "DIFFICULT";
|
|
10
|
+
})(EDifficultyType = exports.EDifficultyType || (exports.EDifficultyType = {}));
|
package/models/File.cjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EQuestionLike = void 0;
|
|
4
|
+
var EQuestionLike;
|
|
5
|
+
(function (EQuestionLike) {
|
|
6
|
+
EQuestionLike[EQuestionLike["NONE"] = 0] = "NONE";
|
|
7
|
+
EQuestionLike[EQuestionLike["LIKE"] = 1] = "LIKE";
|
|
8
|
+
EQuestionLike[EQuestionLike["DISLIKE"] = 2] = "DISLIKE";
|
|
9
|
+
})(EQuestionLike = exports.EQuestionLike || (exports.EQuestionLike = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EOsceMarksheetAction = exports.EOsceRoles = void 0;
|
|
4
|
+
var EOsceRoles;
|
|
5
|
+
(function (EOsceRoles) {
|
|
6
|
+
EOsceRoles[EOsceRoles["ALL"] = 0] = "ALL";
|
|
7
|
+
EOsceRoles[EOsceRoles["CANDIDATE"] = 1] = "CANDIDATE";
|
|
8
|
+
EOsceRoles[EOsceRoles["ACTOR"] = 2] = "ACTOR";
|
|
9
|
+
EOsceRoles[EOsceRoles["EXAMINER"] = 3] = "EXAMINER";
|
|
10
|
+
EOsceRoles[EOsceRoles["OBSERVER"] = 4] = "OBSERVER";
|
|
11
|
+
})(EOsceRoles = exports.EOsceRoles || (exports.EOsceRoles = {}));
|
|
12
|
+
var EOsceMarksheetAction;
|
|
13
|
+
(function (EOsceMarksheetAction) {
|
|
14
|
+
EOsceMarksheetAction[EOsceMarksheetAction["PRESTART"] = 0] = "PRESTART";
|
|
15
|
+
EOsceMarksheetAction[EOsceMarksheetAction["START"] = 1] = "START";
|
|
16
|
+
EOsceMarksheetAction[EOsceMarksheetAction["END"] = 2] = "END";
|
|
17
|
+
EOsceMarksheetAction[EOsceMarksheetAction["PAUSE"] = 3] = "PAUSE";
|
|
18
|
+
EOsceMarksheetAction[EOsceMarksheetAction["CONTINUE"] = 4] = "CONTINUE";
|
|
19
|
+
EOsceMarksheetAction[EOsceMarksheetAction["CONNECT"] = 5] = "CONNECT";
|
|
20
|
+
EOsceMarksheetAction[EOsceMarksheetAction["DISCONNECT"] = 6] = "DISCONNECT";
|
|
21
|
+
EOsceMarksheetAction[EOsceMarksheetAction["SELECT"] = 7] = "SELECT";
|
|
22
|
+
EOsceMarksheetAction[EOsceMarksheetAction["LEFT"] = 8] = "LEFT";
|
|
23
|
+
})(EOsceMarksheetAction = exports.EOsceMarksheetAction || (exports.EOsceMarksheetAction = {}));
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OSCE_GLOBAL_RATING = exports.EOsceType = void 0;
|
|
4
|
+
var EOsceType;
|
|
5
|
+
(function (EOsceType) {
|
|
6
|
+
EOsceType[EOsceType["ALL"] = 0] = "ALL";
|
|
7
|
+
EOsceType[EOsceType["HISTORY_TAKING"] = 1] = "HISTORY_TAKING";
|
|
8
|
+
EOsceType[EOsceType["COMMUNICATION_SKILLS"] = 2] = "COMMUNICATION_SKILLS";
|
|
9
|
+
EOsceType[EOsceType["EXAMINATION"] = 3] = "EXAMINATION";
|
|
10
|
+
EOsceType[EOsceType["PROCEDURE"] = 4] = "PROCEDURE";
|
|
11
|
+
EOsceType[EOsceType["INTERPRETATION"] = 5] = "INTERPRETATION";
|
|
12
|
+
EOsceType[EOsceType["ABCDE"] = 6] = "ABCDE";
|
|
13
|
+
})(EOsceType = exports.EOsceType || (exports.EOsceType = {}));
|
|
14
|
+
exports.OSCE_GLOBAL_RATING = {
|
|
15
|
+
[EOsceType.ABCDE]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
|
|
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
|
|
17
|
+
3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
18
|
+
4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
19
|
+
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.`,
|
|
20
|
+
[EOsceType.COMMUNICATION_SKILLS]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
|
|
21
|
+
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
|
|
22
|
+
3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
23
|
+
4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
24
|
+
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.`,
|
|
25
|
+
[EOsceType.EXAMINATION]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
|
|
26
|
+
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
|
|
27
|
+
3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
28
|
+
4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
29
|
+
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.`,
|
|
30
|
+
[EOsceType.HISTORY_TAKING]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard.
|
|
31
|
+
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.
|
|
32
|
+
3. Pass - The history was performed to an acceptable level. There may have been some minor errors or omissions. The differentials were sensible.
|
|
33
|
+
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.
|
|
34
|
+
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.`,
|
|
35
|
+
[EOsceType.INTERPRETATION]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
|
|
36
|
+
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
|
|
37
|
+
3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
38
|
+
4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
39
|
+
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.`,
|
|
40
|
+
[EOsceType.PROCEDURE]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard.
|
|
41
|
+
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.
|
|
42
|
+
3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
|
|
43
|
+
4. Good - The performance of the candidate was good in most areas. Technical and non-technical aspects of the task were performed equally well.
|
|
44
|
+
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.`,
|
|
45
|
+
};
|
package/models/Promo.cjs
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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;
|
|
5
|
+
(function (EPsaSectionType) {
|
|
6
|
+
EPsaSectionType[EPsaSectionType["PRESCRIBING"] = 1] = "PRESCRIBING";
|
|
7
|
+
EPsaSectionType[EPsaSectionType["PRESCRIPTION_REVIEW"] = 2] = "PRESCRIPTION_REVIEW";
|
|
8
|
+
EPsaSectionType[EPsaSectionType["PLANNING_MANAGEMENT"] = 3] = "PLANNING_MANAGEMENT";
|
|
9
|
+
EPsaSectionType[EPsaSectionType["PROVIDING_INFORMATION"] = 4] = "PROVIDING_INFORMATION";
|
|
10
|
+
EPsaSectionType[EPsaSectionType["CALCULATION_SKILLS"] = 5] = "CALCULATION_SKILLS";
|
|
11
|
+
EPsaSectionType[EPsaSectionType["ADVERSE_DRUG_REACTION"] = 6] = "ADVERSE_DRUG_REACTION";
|
|
12
|
+
EPsaSectionType[EPsaSectionType["DRUG_MONITORING"] = 7] = "DRUG_MONITORING";
|
|
13
|
+
EPsaSectionType[EPsaSectionType["DATA_INTERPRETATION"] = 8] = "DATA_INTERPRETATION";
|
|
14
|
+
})(EPsaSectionType = exports.EPsaSectionType || (exports.EPsaSectionType = {}));
|
|
15
|
+
var EQuestionType;
|
|
16
|
+
(function (EQuestionType) {
|
|
17
|
+
EQuestionType[EQuestionType["SINGLE_BEST_ANSWER"] = 1] = "SINGLE_BEST_ANSWER";
|
|
18
|
+
EQuestionType[EQuestionType["QUESTION_ANSWER"] = 2] = "QUESTION_ANSWER";
|
|
19
|
+
EQuestionType[EQuestionType["MULTIPLE_ANSWERS"] = 3] = "MULTIPLE_ANSWERS";
|
|
20
|
+
EQuestionType[EQuestionType["PRESCRIPTION_ANSWER"] = 4] = "PRESCRIPTION_ANSWER";
|
|
21
|
+
})(EQuestionType = exports.EQuestionType || (exports.EQuestionType = {}));
|
|
22
|
+
function isQuestionSBA(data) {
|
|
23
|
+
return data.typeId === EQuestionType.SINGLE_BEST_ANSWER;
|
|
24
|
+
}
|
|
25
|
+
exports.isQuestionSBA = isQuestionSBA;
|
|
26
|
+
function isQuestionQA(data) {
|
|
27
|
+
return data.typeId === EQuestionType.QUESTION_ANSWER;
|
|
28
|
+
}
|
|
29
|
+
exports.isQuestionQA = isQuestionQA;
|
|
30
|
+
function isQuestionMultiQ(data) {
|
|
31
|
+
return data.typeId === EQuestionType.MULTIPLE_ANSWERS;
|
|
32
|
+
}
|
|
33
|
+
exports.isQuestionMultiQ = isQuestionMultiQ;
|
|
34
|
+
function isQuestionPrescribe(data) {
|
|
35
|
+
return data.typeId === EQuestionType.PRESCRIPTION_ANSWER;
|
|
36
|
+
}
|
|
37
|
+
exports.isQuestionPrescribe = isQuestionPrescribe;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ESubscriptionType = void 0;
|
|
4
|
+
var ESubscriptionType;
|
|
5
|
+
(function (ESubscriptionType) {
|
|
6
|
+
ESubscriptionType[ESubscriptionType["QBANK"] = 1] = "QBANK";
|
|
7
|
+
ESubscriptionType[ESubscriptionType["OSCE"] = 2] = "OSCE";
|
|
8
|
+
ESubscriptionType[ESubscriptionType["BUNDLE"] = 3] = "BUNDLE";
|
|
9
|
+
})(ESubscriptionType = exports.ESubscriptionType || (exports.ESubscriptionType = {}));
|
package/models/Todo.cjs
ADDED
package/models/Token.cjs
ADDED
package/models/Topic.cjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ETopicType = void 0;
|
|
4
|
+
var ETopicType;
|
|
5
|
+
(function (ETopicType) {
|
|
6
|
+
ETopicType[ETopicType["ALL"] = 0] = "ALL";
|
|
7
|
+
ETopicType[ETopicType["BASIC_SCIENCE"] = 1] = "BASIC_SCIENCE";
|
|
8
|
+
ETopicType[ETopicType["CLINICAL"] = 2] = "CLINICAL";
|
|
9
|
+
ETopicType[ETopicType["ANATOMY"] = 3] = "ANATOMY";
|
|
10
|
+
ETopicType[ETopicType["DATA_INTERPRETATION"] = 4] = "DATA_INTERPRETATION";
|
|
11
|
+
ETopicType[ETopicType["PSA"] = 5] = "PSA";
|
|
12
|
+
ETopicType[ETopicType["OSCE"] = 6] = "OSCE";
|
|
13
|
+
})(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
|
package/models/Type.cjs
ADDED
package/models/User.cjs
ADDED
package/models/Video.cjs
ADDED
package/models/index.cjs
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
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/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
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("./algoliaSync"), exports);
|
|
14
|
+
__exportStar(require("./token"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
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("./stripe"), exports);
|
|
14
|
+
__exportStar(require("./users"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./agora"), exports);
|
|
14
|
+
__exportStar(require("./contactUs"), exports);
|
|
15
|
+
__exportStar(require("./marksheet"), exports);
|
|
16
|
+
__exportStar(require("./mockTest"), exports);
|
|
17
|
+
__exportStar(require("./osce"), exports);
|
|
18
|
+
__exportStar(require("./questionDiscussion"), exports);
|
|
19
|
+
__exportStar(require("./todo"), exports);
|
|
20
|
+
__exportStar(require("./token"), exports);
|
|
21
|
+
__exportStar(require("./users"), exports);
|
|
22
|
+
__exportStar(require("./video"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.saveTodosCache = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
function saveTodosCache(cache, result, options) {
|
|
6
|
+
var _a;
|
|
7
|
+
const todoMarkIds = (_a = result.data) === null || _a === void 0 ? void 0 : _a.restricted.saveTodos;
|
|
8
|
+
if (!options.variables || !todoMarkIds) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
for (let i = 0; i < todoMarkIds.length; i++) {
|
|
12
|
+
const todoMark = options.variables.todos[i];
|
|
13
|
+
const todoMarkId = todoMarkIds[i];
|
|
14
|
+
cache.writeFragment({
|
|
15
|
+
id: cache.identify({ id: todoMarkId, __typename: 'TodoMark' }),
|
|
16
|
+
data: {
|
|
17
|
+
score: todoMark.score,
|
|
18
|
+
timeTaken: todoMark.timeTaken || 0,
|
|
19
|
+
},
|
|
20
|
+
fragment: (0, client_1.gql) `
|
|
21
|
+
fragment NewTodoMark on TodoMark {
|
|
22
|
+
score
|
|
23
|
+
timeTaken
|
|
24
|
+
}
|
|
25
|
+
`,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.saveTodosCache = saveTodosCache;
|
|
@@ -0,0 +1,13 @@
|
|
|
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("./user"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
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("./getUserToken"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./feedback"), exports);
|
|
16
|
+
__exportStar(require("./sampleCards"), exports);
|
|
17
|
+
__exportStar(require("./sampleQuestions"), exports);
|
|
18
|
+
__exportStar(require("./subscription"), exports);
|
|
19
|
+
__exportStar(require("./university"), exports);
|
|
20
|
+
__exportStar(require("./user"), exports);
|
|
21
|
+
__exportStar(require("./video"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./anatomy"), exports);
|
|
14
|
+
__exportStar(require("./marksheet"), exports);
|
|
15
|
+
__exportStar(require("./mockTests"), exports);
|
|
16
|
+
__exportStar(require("./osce"), exports);
|
|
17
|
+
__exportStar(require("./quesBook"), exports);
|
|
18
|
+
__exportStar(require("./todos"), exports);
|
|
19
|
+
__exportStar(require("./topics"), exports);
|
|
20
|
+
__exportStar(require("./university"), exports);
|
|
21
|
+
__exportStar(require("./user"), exports);
|
|
22
|
+
__exportStar(require("./video"), exports);
|