@quesmed/types 2.5.46 → 2.5.48
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/dist/cjs/index.d.ts +7 -0
- package/dist/cjs/index.js +9 -1
- package/dist/cjs/models/Question.d.ts +2 -2
- package/dist/cjs/resolvers/mutation/restricted/marksheet.js +21 -0
- package/dist/cjs/resolvers/query/restricted/marksheet.js +21 -0
- package/dist/cjs/resolvers/query/restricted/question.js +7 -0
- package/dist/cjs/resolvers/query/restricted/topics.js +24 -12
- package/dist/mjs/index.d.ts +7 -0
- package/dist/mjs/index.js +8 -0
- package/dist/mjs/models/Question.d.ts +2 -2
- package/dist/mjs/resolvers/mutation/restricted/marksheet.js +21 -0
- package/dist/mjs/resolvers/query/restricted/marksheet.js +21 -0
- package/dist/mjs/resolvers/query/restricted/question.js +7 -0
- package/dist/mjs/resolvers/query/restricted/topics.js +24 -12
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -8,6 +8,13 @@ export declare const ERRORS: {
|
|
|
8
8
|
SUBSCRIPTION_EXPIRED: string;
|
|
9
9
|
PERMISSION_INVALID: string;
|
|
10
10
|
};
|
|
11
|
+
export declare enum AlgoliaIndex {
|
|
12
|
+
Questions = "questions",
|
|
13
|
+
Flashcards = "cards",
|
|
14
|
+
Quesbook = "quesbook",
|
|
15
|
+
OsceBook = "oscebook",
|
|
16
|
+
Videos = "videos"
|
|
17
|
+
}
|
|
11
18
|
export declare enum EGrammarType {
|
|
12
19
|
QUESTION = 0,
|
|
13
20
|
CARD = 1,
|
package/dist/cjs/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.generateDisplayName = exports.medicalWords = exports.termsAndConditions = exports.EPlatformId = exports.FCM_TOPICS = exports.EGrammarType = exports.ERRORS = exports.utils = exports.Models = void 0;
|
|
29
|
+
exports.generateDisplayName = exports.medicalWords = exports.termsAndConditions = exports.EPlatformId = exports.FCM_TOPICS = exports.EGrammarType = exports.AlgoliaIndex = exports.ERRORS = exports.utils = exports.Models = void 0;
|
|
30
30
|
const random_1 = require("./utils/random");
|
|
31
31
|
exports.Models = __importStar(require("./models"));
|
|
32
32
|
__exportStar(require("./resolvers"), exports);
|
|
@@ -38,6 +38,14 @@ exports.ERRORS = {
|
|
|
38
38
|
SUBSCRIPTION_EXPIRED: 'Expired subscription.',
|
|
39
39
|
PERMISSION_INVALID: 'Invalid permission.',
|
|
40
40
|
};
|
|
41
|
+
var AlgoliaIndex;
|
|
42
|
+
(function (AlgoliaIndex) {
|
|
43
|
+
AlgoliaIndex["Questions"] = "questions";
|
|
44
|
+
AlgoliaIndex["Flashcards"] = "cards";
|
|
45
|
+
AlgoliaIndex["Quesbook"] = "quesbook";
|
|
46
|
+
AlgoliaIndex["OsceBook"] = "oscebook";
|
|
47
|
+
AlgoliaIndex["Videos"] = "videos";
|
|
48
|
+
})(AlgoliaIndex = exports.AlgoliaIndex || (exports.AlgoliaIndex = {}));
|
|
41
49
|
var EGrammarType;
|
|
42
50
|
(function (EGrammarType) {
|
|
43
51
|
EGrammarType[EGrammarType["QUESTION"] = 0] = "QUESTION";
|
|
@@ -177,11 +177,11 @@ export interface IQuestionEMQ extends IQuestion {
|
|
|
177
177
|
}
|
|
178
178
|
export interface IQuestionSelect3 extends IQuestion {
|
|
179
179
|
answer: [string, string, string];
|
|
180
|
-
|
|
180
|
+
select3Answer: [string, string, string];
|
|
181
181
|
}
|
|
182
182
|
export interface IQuestionRanking extends IQuestion {
|
|
183
183
|
answer: string[];
|
|
184
|
-
|
|
184
|
+
rankingAnswer: string[];
|
|
185
185
|
}
|
|
186
186
|
export declare function isQuestionPrescribe(data: IQuestionAll): data is IQuestionPrescribe;
|
|
187
187
|
export interface IQuestionPrescribe extends IQuestion {
|
|
@@ -609,6 +609,13 @@ exports.BUILD_QUESTION_MARKSHEET = (0, client_1.gql) `
|
|
|
609
609
|
tag
|
|
610
610
|
color
|
|
611
611
|
}
|
|
612
|
+
cases {
|
|
613
|
+
id
|
|
614
|
+
questionId
|
|
615
|
+
case
|
|
616
|
+
explanation
|
|
617
|
+
label
|
|
618
|
+
}
|
|
612
619
|
choices {
|
|
613
620
|
id
|
|
614
621
|
explanation
|
|
@@ -1590,6 +1597,13 @@ exports.BUILD_MARKSHEET = (0, client_1.gql) `
|
|
|
1590
1597
|
tag
|
|
1591
1598
|
color
|
|
1592
1599
|
}
|
|
1600
|
+
cases {
|
|
1601
|
+
id
|
|
1602
|
+
questionId
|
|
1603
|
+
case
|
|
1604
|
+
explanation
|
|
1605
|
+
label
|
|
1606
|
+
}
|
|
1593
1607
|
choices {
|
|
1594
1608
|
id
|
|
1595
1609
|
explanation
|
|
@@ -2576,6 +2590,13 @@ exports.RE_BUILD_MARKSHEET = (0, client_1.gql) `
|
|
|
2576
2590
|
tag
|
|
2577
2591
|
color
|
|
2578
2592
|
}
|
|
2593
|
+
cases {
|
|
2594
|
+
id
|
|
2595
|
+
questionId
|
|
2596
|
+
case
|
|
2597
|
+
explanation
|
|
2598
|
+
label
|
|
2599
|
+
}
|
|
2579
2600
|
choices {
|
|
2580
2601
|
id
|
|
2581
2602
|
explanation
|
|
@@ -611,6 +611,13 @@ exports.MARKSHEET = (0, client_1.gql) `
|
|
|
611
611
|
tag
|
|
612
612
|
color
|
|
613
613
|
}
|
|
614
|
+
cases {
|
|
615
|
+
id
|
|
616
|
+
questionId
|
|
617
|
+
case
|
|
618
|
+
explanation
|
|
619
|
+
label
|
|
620
|
+
}
|
|
614
621
|
choices {
|
|
615
622
|
id
|
|
616
623
|
explanation
|
|
@@ -1736,6 +1743,13 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
|
|
|
1736
1743
|
tag
|
|
1737
1744
|
color
|
|
1738
1745
|
}
|
|
1746
|
+
cases {
|
|
1747
|
+
id
|
|
1748
|
+
questionId
|
|
1749
|
+
case
|
|
1750
|
+
explanation
|
|
1751
|
+
label
|
|
1752
|
+
}
|
|
1739
1753
|
choices {
|
|
1740
1754
|
id
|
|
1741
1755
|
explanation
|
|
@@ -2710,6 +2724,13 @@ exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
|
|
|
2710
2724
|
tag
|
|
2711
2725
|
color
|
|
2712
2726
|
}
|
|
2727
|
+
cases {
|
|
2728
|
+
id
|
|
2729
|
+
questionId
|
|
2730
|
+
case
|
|
2731
|
+
explanation
|
|
2732
|
+
label
|
|
2733
|
+
}
|
|
2713
2734
|
choices {
|
|
2714
2735
|
id
|
|
2715
2736
|
explanation
|
|
@@ -3,25 +3,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FLASHCARDS_TOPICS = exports.QUESTION_TOPICS = exports.TOPICS = exports.TOPIC = exports.TOPIC_STATS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.TOPIC_STATS = (0, client_1.gql) `
|
|
6
|
-
query TopicStats($typeId: [Int!]) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
totalQuestions
|
|
10
|
-
completedQuestions
|
|
11
|
-
correctQuestions
|
|
12
|
-
incorrectQuestions
|
|
13
|
-
types {
|
|
14
|
-
id
|
|
15
|
-
name
|
|
6
|
+
query TopicStats($typeId: [Int!]) {
|
|
7
|
+
restricted {
|
|
8
|
+
topicStats(typeId: $typeId) {
|
|
16
9
|
totalQuestions
|
|
17
10
|
completedQuestions
|
|
18
11
|
correctQuestions
|
|
19
12
|
incorrectQuestions
|
|
13
|
+
|
|
14
|
+
redCards
|
|
15
|
+
totalCards
|
|
16
|
+
greenCards
|
|
17
|
+
yellowCards
|
|
18
|
+
dailyFeedCards
|
|
19
|
+
|
|
20
|
+
types {
|
|
21
|
+
id
|
|
22
|
+
name
|
|
23
|
+
totalQuestions
|
|
24
|
+
completedQuestions
|
|
25
|
+
correctQuestions
|
|
26
|
+
incorrectQuestions
|
|
27
|
+
|
|
28
|
+
redCards
|
|
29
|
+
totalCards
|
|
30
|
+
greenCards
|
|
31
|
+
yellowCards
|
|
32
|
+
dailyFeedCards
|
|
33
|
+
}
|
|
20
34
|
}
|
|
21
35
|
}
|
|
22
36
|
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
37
|
`;
|
|
26
38
|
exports.TOPIC = (0, client_1.gql) `
|
|
27
39
|
query Topic($topicId: Int!) {
|
package/dist/mjs/index.d.ts
CHANGED
|
@@ -8,6 +8,13 @@ export declare const ERRORS: {
|
|
|
8
8
|
SUBSCRIPTION_EXPIRED: string;
|
|
9
9
|
PERMISSION_INVALID: string;
|
|
10
10
|
};
|
|
11
|
+
export declare enum AlgoliaIndex {
|
|
12
|
+
Questions = "questions",
|
|
13
|
+
Flashcards = "cards",
|
|
14
|
+
Quesbook = "quesbook",
|
|
15
|
+
OsceBook = "oscebook",
|
|
16
|
+
Videos = "videos"
|
|
17
|
+
}
|
|
11
18
|
export declare enum EGrammarType {
|
|
12
19
|
QUESTION = 0,
|
|
13
20
|
CARD = 1,
|
package/dist/mjs/index.js
CHANGED
|
@@ -9,6 +9,14 @@ export const ERRORS = {
|
|
|
9
9
|
SUBSCRIPTION_EXPIRED: 'Expired subscription.',
|
|
10
10
|
PERMISSION_INVALID: 'Invalid permission.',
|
|
11
11
|
};
|
|
12
|
+
export var AlgoliaIndex;
|
|
13
|
+
(function (AlgoliaIndex) {
|
|
14
|
+
AlgoliaIndex["Questions"] = "questions";
|
|
15
|
+
AlgoliaIndex["Flashcards"] = "cards";
|
|
16
|
+
AlgoliaIndex["Quesbook"] = "quesbook";
|
|
17
|
+
AlgoliaIndex["OsceBook"] = "oscebook";
|
|
18
|
+
AlgoliaIndex["Videos"] = "videos";
|
|
19
|
+
})(AlgoliaIndex || (AlgoliaIndex = {}));
|
|
12
20
|
export var EGrammarType;
|
|
13
21
|
(function (EGrammarType) {
|
|
14
22
|
EGrammarType[EGrammarType["QUESTION"] = 0] = "QUESTION";
|
|
@@ -177,11 +177,11 @@ export interface IQuestionEMQ extends IQuestion {
|
|
|
177
177
|
}
|
|
178
178
|
export interface IQuestionSelect3 extends IQuestion {
|
|
179
179
|
answer: [string, string, string];
|
|
180
|
-
|
|
180
|
+
select3Answer: [string, string, string];
|
|
181
181
|
}
|
|
182
182
|
export interface IQuestionRanking extends IQuestion {
|
|
183
183
|
answer: string[];
|
|
184
|
-
|
|
184
|
+
rankingAnswer: string[];
|
|
185
185
|
}
|
|
186
186
|
export declare function isQuestionPrescribe(data: IQuestionAll): data is IQuestionPrescribe;
|
|
187
187
|
export interface IQuestionPrescribe extends IQuestion {
|
|
@@ -606,6 +606,13 @@ export const BUILD_QUESTION_MARKSHEET = gql `
|
|
|
606
606
|
tag
|
|
607
607
|
color
|
|
608
608
|
}
|
|
609
|
+
cases {
|
|
610
|
+
id
|
|
611
|
+
questionId
|
|
612
|
+
case
|
|
613
|
+
explanation
|
|
614
|
+
label
|
|
615
|
+
}
|
|
609
616
|
choices {
|
|
610
617
|
id
|
|
611
618
|
explanation
|
|
@@ -1587,6 +1594,13 @@ export const BUILD_MARKSHEET = gql `
|
|
|
1587
1594
|
tag
|
|
1588
1595
|
color
|
|
1589
1596
|
}
|
|
1597
|
+
cases {
|
|
1598
|
+
id
|
|
1599
|
+
questionId
|
|
1600
|
+
case
|
|
1601
|
+
explanation
|
|
1602
|
+
label
|
|
1603
|
+
}
|
|
1590
1604
|
choices {
|
|
1591
1605
|
id
|
|
1592
1606
|
explanation
|
|
@@ -2573,6 +2587,13 @@ export const RE_BUILD_MARKSHEET = gql `
|
|
|
2573
2587
|
tag
|
|
2574
2588
|
color
|
|
2575
2589
|
}
|
|
2590
|
+
cases {
|
|
2591
|
+
id
|
|
2592
|
+
questionId
|
|
2593
|
+
case
|
|
2594
|
+
explanation
|
|
2595
|
+
label
|
|
2596
|
+
}
|
|
2576
2597
|
choices {
|
|
2577
2598
|
id
|
|
2578
2599
|
explanation
|
|
@@ -608,6 +608,13 @@ export const MARKSHEET = gql `
|
|
|
608
608
|
tag
|
|
609
609
|
color
|
|
610
610
|
}
|
|
611
|
+
cases {
|
|
612
|
+
id
|
|
613
|
+
questionId
|
|
614
|
+
case
|
|
615
|
+
explanation
|
|
616
|
+
label
|
|
617
|
+
}
|
|
611
618
|
choices {
|
|
612
619
|
id
|
|
613
620
|
explanation
|
|
@@ -1733,6 +1740,13 @@ export const FLAGGED_QUESTIONS = gql `
|
|
|
1733
1740
|
tag
|
|
1734
1741
|
color
|
|
1735
1742
|
}
|
|
1743
|
+
cases {
|
|
1744
|
+
id
|
|
1745
|
+
questionId
|
|
1746
|
+
case
|
|
1747
|
+
explanation
|
|
1748
|
+
label
|
|
1749
|
+
}
|
|
1736
1750
|
choices {
|
|
1737
1751
|
id
|
|
1738
1752
|
explanation
|
|
@@ -2707,6 +2721,13 @@ export const FLAGGED_QUESTIONS_MARKSHEET = gql `
|
|
|
2707
2721
|
tag
|
|
2708
2722
|
color
|
|
2709
2723
|
}
|
|
2724
|
+
cases {
|
|
2725
|
+
id
|
|
2726
|
+
questionId
|
|
2727
|
+
case
|
|
2728
|
+
explanation
|
|
2729
|
+
label
|
|
2730
|
+
}
|
|
2710
2731
|
choices {
|
|
2711
2732
|
id
|
|
2712
2733
|
explanation
|
|
@@ -1,24 +1,36 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
2
|
export const TOPIC_STATS = gql `
|
|
3
|
-
query TopicStats($typeId: [Int!]) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
totalQuestions
|
|
7
|
-
completedQuestions
|
|
8
|
-
correctQuestions
|
|
9
|
-
incorrectQuestions
|
|
10
|
-
types {
|
|
11
|
-
id
|
|
12
|
-
name
|
|
3
|
+
query TopicStats($typeId: [Int!]) {
|
|
4
|
+
restricted {
|
|
5
|
+
topicStats(typeId: $typeId) {
|
|
13
6
|
totalQuestions
|
|
14
7
|
completedQuestions
|
|
15
8
|
correctQuestions
|
|
16
9
|
incorrectQuestions
|
|
10
|
+
|
|
11
|
+
redCards
|
|
12
|
+
totalCards
|
|
13
|
+
greenCards
|
|
14
|
+
yellowCards
|
|
15
|
+
dailyFeedCards
|
|
16
|
+
|
|
17
|
+
types {
|
|
18
|
+
id
|
|
19
|
+
name
|
|
20
|
+
totalQuestions
|
|
21
|
+
completedQuestions
|
|
22
|
+
correctQuestions
|
|
23
|
+
incorrectQuestions
|
|
24
|
+
|
|
25
|
+
redCards
|
|
26
|
+
totalCards
|
|
27
|
+
greenCards
|
|
28
|
+
yellowCards
|
|
29
|
+
dailyFeedCards
|
|
30
|
+
}
|
|
17
31
|
}
|
|
18
32
|
}
|
|
19
33
|
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
34
|
`;
|
|
23
35
|
export const TOPIC = gql `
|
|
24
36
|
query Topic($topicId: Int!) {
|