@quesmed/types-rn 2.6.13 → 2.6.14
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/models/Concept.d.ts +2 -0
- package/models/Marksheet.d.ts +2 -1
- package/models/Marksheet.js +1 -0
- package/models/Product.d.ts +34 -1
- package/models/Product.js +5 -0
- package/models/Topic.d.ts +3 -1
- package/package.json +1 -1
- package/resolvers/query/restricted/index.d.ts +1 -0
- package/resolvers/query/restricted/index.js +1 -0
- package/resolvers/query/restricted/products.d.ts +5 -0
- package/resolvers/query/restricted/products.js +38 -0
- package/resolvers/query/restricted/topics.d.ts +1 -6
- package/resolvers/query/restricted/topics.js +1 -34
package/models/Concept.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IChapter } from './Chapter';
|
|
2
2
|
import { EPaceType } from './Paces';
|
|
3
|
+
import { EProductType } from './Product';
|
|
3
4
|
import { ITopic } from './Topic';
|
|
4
5
|
import { Id } from './Type';
|
|
5
6
|
import { EUserLearningStatus } from './User';
|
|
@@ -17,6 +18,7 @@ export interface IConcept {
|
|
|
17
18
|
videos?: IVideo[];
|
|
18
19
|
demo?: boolean;
|
|
19
20
|
typeId?: EPaceType | null;
|
|
21
|
+
entitlement: EProductType | null;
|
|
20
22
|
totalQuestions?: number | null;
|
|
21
23
|
correctQuestions?: number | null;
|
|
22
24
|
incorrectQuestions?: number | null;
|
package/models/Marksheet.d.ts
CHANGED
|
@@ -17,7 +17,8 @@ export declare enum MARKSHEET_SOURCE {
|
|
|
17
17
|
UKMLA_QUIZ = "UKMLA Quiz",
|
|
18
18
|
GROUP_STUDY = "Qbank group study",
|
|
19
19
|
FLAGGED_QUESTIONS_REVIEW = "Flagged Questions Review",
|
|
20
|
-
FLAGGED_QUESTIONS_QUIZ = "Flagged Questions Quiz"
|
|
20
|
+
FLAGGED_QUESTIONS_QUIZ = "Flagged Questions Quiz",
|
|
21
|
+
SEARCH_QUESTIONS_QUIZ = "search Questions"
|
|
21
22
|
}
|
|
22
23
|
export declare enum EStudyAction {
|
|
23
24
|
START = 0,
|
package/models/Marksheet.js
CHANGED
|
@@ -17,6 +17,7 @@ var MARKSHEET_SOURCE;
|
|
|
17
17
|
MARKSHEET_SOURCE["GROUP_STUDY"] = "Qbank group study";
|
|
18
18
|
MARKSHEET_SOURCE["FLAGGED_QUESTIONS_REVIEW"] = "Flagged Questions Review";
|
|
19
19
|
MARKSHEET_SOURCE["FLAGGED_QUESTIONS_QUIZ"] = "Flagged Questions Quiz";
|
|
20
|
+
MARKSHEET_SOURCE["SEARCH_QUESTIONS_QUIZ"] = "search Questions";
|
|
20
21
|
})(MARKSHEET_SOURCE = exports.MARKSHEET_SOURCE || (exports.MARKSHEET_SOURCE = {}));
|
|
21
22
|
var EStudyAction;
|
|
22
23
|
(function (EStudyAction) {
|
package/models/Product.d.ts
CHANGED
|
@@ -14,7 +14,12 @@ export declare enum EProductType {
|
|
|
14
14
|
INTERVIEW_ANAESTHETICS = 11,
|
|
15
15
|
INTERVIEW_CST = 12,
|
|
16
16
|
INTERVIEW_IMT = 13,
|
|
17
|
-
INTERVIEW_RADIOLOGY = 14
|
|
17
|
+
INTERVIEW_RADIOLOGY = 14,
|
|
18
|
+
CLINICAL = 15,
|
|
19
|
+
DATA_INTERPRETATION = 16,
|
|
20
|
+
CLINICAL_SUBSET = 17,
|
|
21
|
+
CLINICAL_PROBLEM_SOLVING = 18,
|
|
22
|
+
PROFESSIONAL_DILEMMA = 19
|
|
18
23
|
}
|
|
19
24
|
export interface IProduct {
|
|
20
25
|
id: Id;
|
|
@@ -31,6 +36,7 @@ export interface IProduct {
|
|
|
31
36
|
export interface IProductType {
|
|
32
37
|
id: Id;
|
|
33
38
|
name: string;
|
|
39
|
+
displayName: string;
|
|
34
40
|
}
|
|
35
41
|
export declare enum EAppType {
|
|
36
42
|
AMS = 1,
|
|
@@ -39,3 +45,30 @@ export declare enum EAppType {
|
|
|
39
45
|
INTERVIEW = 4,
|
|
40
46
|
MSRA = 5
|
|
41
47
|
}
|
|
48
|
+
export interface IEntitlementType {
|
|
49
|
+
id: EProductType;
|
|
50
|
+
name: string;
|
|
51
|
+
displayName: string;
|
|
52
|
+
totalQuestions?: number | null;
|
|
53
|
+
completedQuestions?: number | null;
|
|
54
|
+
correctQuestions?: number | null;
|
|
55
|
+
incorrectQuestions?: number | null;
|
|
56
|
+
totalCards?: number | null;
|
|
57
|
+
greenCards?: number | null;
|
|
58
|
+
yellowCards?: number | null;
|
|
59
|
+
redCards?: number | null;
|
|
60
|
+
dailyFeedCards?: number | null;
|
|
61
|
+
}
|
|
62
|
+
export interface IProductStats {
|
|
63
|
+
userId: number;
|
|
64
|
+
totalQuestions?: number | null;
|
|
65
|
+
completedQuestions?: number | null;
|
|
66
|
+
correctQuestions?: number | null;
|
|
67
|
+
incorrectQuestions?: number | null;
|
|
68
|
+
totalCards?: number | null;
|
|
69
|
+
greenCards?: number | null;
|
|
70
|
+
yellowCards?: number | null;
|
|
71
|
+
redCards?: number | null;
|
|
72
|
+
dailyFeedCards?: number | null;
|
|
73
|
+
entitlements?: IEntitlementType[];
|
|
74
|
+
}
|
package/models/Product.js
CHANGED
|
@@ -18,6 +18,11 @@ var EProductType;
|
|
|
18
18
|
EProductType[EProductType["INTERVIEW_CST"] = 12] = "INTERVIEW_CST";
|
|
19
19
|
EProductType[EProductType["INTERVIEW_IMT"] = 13] = "INTERVIEW_IMT";
|
|
20
20
|
EProductType[EProductType["INTERVIEW_RADIOLOGY"] = 14] = "INTERVIEW_RADIOLOGY";
|
|
21
|
+
EProductType[EProductType["CLINICAL"] = 15] = "CLINICAL";
|
|
22
|
+
EProductType[EProductType["DATA_INTERPRETATION"] = 16] = "DATA_INTERPRETATION";
|
|
23
|
+
EProductType[EProductType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
|
|
24
|
+
EProductType[EProductType["CLINICAL_PROBLEM_SOLVING"] = 18] = "CLINICAL_PROBLEM_SOLVING";
|
|
25
|
+
EProductType[EProductType["PROFESSIONAL_DILEMMA"] = 19] = "PROFESSIONAL_DILEMMA";
|
|
21
26
|
})(EProductType = exports.EProductType || (exports.EProductType = {}));
|
|
22
27
|
var EAppType;
|
|
23
28
|
(function (EAppType) {
|
package/models/Topic.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IConcept } from './Concept';
|
|
2
|
+
import { EProductType } from './Product';
|
|
2
3
|
import { Id } from './Type';
|
|
3
4
|
export declare enum ETopicType {
|
|
4
5
|
ALL = 0,
|
|
@@ -48,8 +49,9 @@ export interface ITopic {
|
|
|
48
49
|
deletedAt: number | Date;
|
|
49
50
|
name: string;
|
|
50
51
|
demo?: boolean;
|
|
51
|
-
|
|
52
|
+
entitlement?: IConcept[];
|
|
52
53
|
typeId: ETopicType | null;
|
|
54
|
+
productId: EProductType | null;
|
|
53
55
|
type?: ITopicType | null;
|
|
54
56
|
totalQuestions?: number | null;
|
|
55
57
|
correctQuestions?: number | null;
|
package/package.json
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./mockTests"), exports);
|
|
|
22
22
|
__exportStar(require("./notification"), exports);
|
|
23
23
|
__exportStar(require("./osce"), exports);
|
|
24
24
|
__exportStar(require("./preset"), exports);
|
|
25
|
+
__exportStar(require("./products"), exports);
|
|
25
26
|
__exportStar(require("./psa"), exports);
|
|
26
27
|
__exportStar(require("./qBank"), exports);
|
|
27
28
|
__exportStar(require("./quesBook"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IProductStats } from '../../../models';
|
|
2
|
+
import { RestrictedData, graphqlNormalize } from '../../types';
|
|
3
|
+
export type IProductStatsVar = null;
|
|
4
|
+
export type IProductStatsData = RestrictedData<graphqlNormalize & IProductStats, 'productStats'>;
|
|
5
|
+
export declare const PRODUCT_STATS: import("@apollo/client").DocumentNode;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRODUCT_STATS = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
exports.PRODUCT_STATS = (0, client_1.gql) `
|
|
6
|
+
query ProductStats($entitlementId: [Int!]) {
|
|
7
|
+
restricted {
|
|
8
|
+
productStats(entitlementId: $entitlementId) {
|
|
9
|
+
totalQuestions
|
|
10
|
+
completedQuestions
|
|
11
|
+
correctQuestions
|
|
12
|
+
incorrectQuestions
|
|
13
|
+
|
|
14
|
+
redCards
|
|
15
|
+
totalCards
|
|
16
|
+
greenCards
|
|
17
|
+
yellowCards
|
|
18
|
+
dailyFeedCards
|
|
19
|
+
|
|
20
|
+
entitlements {
|
|
21
|
+
id
|
|
22
|
+
name
|
|
23
|
+
displayName
|
|
24
|
+
totalQuestions
|
|
25
|
+
completedQuestions
|
|
26
|
+
correctQuestions
|
|
27
|
+
incorrectQuestions
|
|
28
|
+
|
|
29
|
+
redCards
|
|
30
|
+
totalCards
|
|
31
|
+
greenCards
|
|
32
|
+
yellowCards
|
|
33
|
+
dailyFeedCards
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { ETopicType, Id, ITopic
|
|
1
|
+
import { ETopicType, Id, ITopic } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
import { ESortOrder } from '../../enums';
|
|
4
|
-
export interface ITopicStatsVar {
|
|
5
|
-
typeId?: ETopicType[];
|
|
6
|
-
}
|
|
7
|
-
export type ITopicStatsData = RestrictedData<graphqlNormalize & ITopicStats, 'topicStats'>;
|
|
8
|
-
export declare const TOPIC_STATS: import("@apollo/client").DocumentNode;
|
|
9
4
|
export interface ITopicVar {
|
|
10
5
|
id: Id;
|
|
11
6
|
}
|
|
@@ -1,40 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FLASHCARDS_TOPICS = exports.QUESTION_TOPICS = exports.TOPICS = exports.TOPIC =
|
|
3
|
+
exports.FLASHCARDS_TOPICS = exports.QUESTION_TOPICS = exports.TOPICS = exports.TOPIC = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
-
exports.TOPIC_STATS = (0, client_1.gql) `
|
|
6
|
-
query TopicStats($typeId: [Int!]) {
|
|
7
|
-
restricted {
|
|
8
|
-
topicStats(typeId: $typeId) {
|
|
9
|
-
totalQuestions
|
|
10
|
-
completedQuestions
|
|
11
|
-
correctQuestions
|
|
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
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
38
5
|
exports.TOPIC = (0, client_1.gql) `
|
|
39
6
|
query Topic($topicId: Int!) {
|
|
40
7
|
restricted {
|