@quesmed/types-rn 2.6.25 → 2.6.26
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 -2
- package/models/OsceStation.d.ts +2 -2
- package/models/Product.d.ts +6 -2
- package/models/Question.d.ts +1 -2
- package/models/Topic.d.ts +2 -2
- package/package.json +1 -1
- package/resolvers/fragments/osce.js +4 -0
- package/resolvers/query/restricted/qBank.js +0 -1
- package/resolvers/query/restricted/quesBook.js +12 -2
- package/resolvers/query/restricted/topics.d.ts +1 -1
- package/resolvers/query/restricted/topics.js +16 -3
package/models/Concept.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IChapter } from './Chapter';
|
|
2
2
|
import { EPaceType } from './Paces';
|
|
3
|
-
import {
|
|
3
|
+
import { IEntitlement } from './Product';
|
|
4
4
|
import { ITopic } from './Topic';
|
|
5
5
|
import { Id } from './Type';
|
|
6
6
|
import { EUserLearningStatus } from './User';
|
|
@@ -18,7 +18,7 @@ export interface IConcept {
|
|
|
18
18
|
videos?: IVideo[];
|
|
19
19
|
demo?: boolean;
|
|
20
20
|
typeId?: EPaceType | null;
|
|
21
|
-
entitlement:
|
|
21
|
+
entitlement: IEntitlement | null;
|
|
22
22
|
totalQuestions?: number | null;
|
|
23
23
|
correctQuestions?: number | null;
|
|
24
24
|
incorrectQuestions?: number | null;
|
package/models/OsceStation.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { IConcept } from './Concept';
|
|
|
2
2
|
import { EDifficultyType } from './Difficulty';
|
|
3
3
|
import { IPaceScore } from './Paces';
|
|
4
4
|
import { IPicture } from './Picture';
|
|
5
|
-
import {
|
|
5
|
+
import { IEntitlement } from './Product';
|
|
6
6
|
import { ITopic } from './Topic';
|
|
7
7
|
import { Id } from './Type';
|
|
8
8
|
import { EUserLearningStatus } from './User';
|
|
@@ -49,7 +49,7 @@ export interface IOsceStation {
|
|
|
49
49
|
name: string;
|
|
50
50
|
hiddenName: string;
|
|
51
51
|
osceTypeId: Id;
|
|
52
|
-
|
|
52
|
+
entitlement: IEntitlement;
|
|
53
53
|
osceType?: IOsceType;
|
|
54
54
|
difficulty: EDifficultyType;
|
|
55
55
|
candidateBrief: string;
|
package/models/Product.d.ts
CHANGED
|
@@ -60,7 +60,11 @@ export declare enum EAppType {
|
|
|
60
60
|
INTERVIEW = 4,
|
|
61
61
|
MSRA = 5
|
|
62
62
|
}
|
|
63
|
-
export interface
|
|
63
|
+
export interface IEntitlement {
|
|
64
|
+
id: EProductType;
|
|
65
|
+
name: string;
|
|
66
|
+
}
|
|
67
|
+
export interface IEntitlementStats {
|
|
64
68
|
id: EProductType;
|
|
65
69
|
name: string;
|
|
66
70
|
displayName: string;
|
|
@@ -85,5 +89,5 @@ export interface IProductStats {
|
|
|
85
89
|
yellowCards?: number | null;
|
|
86
90
|
redCards?: number | null;
|
|
87
91
|
dailyFeedCards?: number | null;
|
|
88
|
-
types?:
|
|
92
|
+
types?: IEntitlementStats[];
|
|
89
93
|
}
|
package/models/Question.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { ICondition } from './Condition';
|
|
|
3
3
|
import { EDifficultyType } from './Difficulty';
|
|
4
4
|
import { IPicture } from './Picture';
|
|
5
5
|
import { IPresentation } from './Presentation';
|
|
6
|
-
import { IQuestionPrescription } from './Psa';
|
|
7
6
|
import { ITopic } from './Topic';
|
|
8
7
|
import { Id } from './Type';
|
|
9
8
|
import { IUkmlaTopic } from './UkmlaTopic';
|
|
@@ -195,7 +194,7 @@ export interface IQuestionRanking extends IQuestion {
|
|
|
195
194
|
export declare function isQuestionPrescribe(data: IQuestionAll): data is IQuestionPrescribe;
|
|
196
195
|
export interface IQuestionPrescribe extends IQuestion {
|
|
197
196
|
answer: IPrescribeMark[];
|
|
198
|
-
prescribeAnswer:
|
|
197
|
+
prescribeAnswer: IPrescribeAnswer[];
|
|
199
198
|
}
|
|
200
199
|
export type IPrescribeAnswerData = {
|
|
201
200
|
value: number;
|
package/models/Topic.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IConcept } from './Concept';
|
|
2
|
-
import { EProductType } from './Product';
|
|
2
|
+
import { EProductType, IEntitlement } from './Product';
|
|
3
3
|
import { Id } from './Type';
|
|
4
4
|
export declare enum ETopicType {
|
|
5
5
|
ALL = 0,
|
|
@@ -36,7 +36,7 @@ export interface ITopic {
|
|
|
36
36
|
deletedAt: number | Date;
|
|
37
37
|
name: string;
|
|
38
38
|
demo?: boolean;
|
|
39
|
-
entitlement:
|
|
39
|
+
entitlement: IEntitlement;
|
|
40
40
|
typeId: ETopicType | null;
|
|
41
41
|
productId: EProductType | null;
|
|
42
42
|
type?: ITopicType | null;
|
package/package.json
CHANGED
|
@@ -10,8 +10,11 @@ exports.QBANK_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
|
|
|
10
10
|
id
|
|
11
11
|
name
|
|
12
12
|
typeId
|
|
13
|
-
entitlement
|
|
14
13
|
demo
|
|
14
|
+
entitlement {
|
|
15
|
+
id
|
|
16
|
+
name
|
|
17
|
+
}
|
|
15
18
|
unreadConcepts
|
|
16
19
|
completedConcepts
|
|
17
20
|
revisingConcepts
|
|
@@ -71,8 +74,11 @@ exports.PUBLIC_QBANK_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
|
|
|
71
74
|
id
|
|
72
75
|
name
|
|
73
76
|
typeId
|
|
74
|
-
entitlement
|
|
75
77
|
demo
|
|
78
|
+
entitlement {
|
|
79
|
+
id
|
|
80
|
+
name
|
|
81
|
+
}
|
|
76
82
|
unreadConcepts
|
|
77
83
|
completedConcepts
|
|
78
84
|
revisingConcepts
|
|
@@ -146,6 +152,10 @@ exports.PACE_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
|
|
|
146
152
|
demo
|
|
147
153
|
status
|
|
148
154
|
typeId
|
|
155
|
+
entitlement {
|
|
156
|
+
id
|
|
157
|
+
name
|
|
158
|
+
}
|
|
149
159
|
chapter {
|
|
150
160
|
id
|
|
151
161
|
typeId
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ETopicType, Id, ITopic } from '../../../models';
|
|
2
|
-
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
2
|
import { ESortOrder } from '../../enums';
|
|
3
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
4
4
|
export interface ITopicVar {
|
|
5
5
|
id: Id;
|
|
6
6
|
}
|
|
@@ -8,6 +8,10 @@ exports.TOPIC = (0, client_1.gql) `
|
|
|
8
8
|
topic(id: $topicId) {
|
|
9
9
|
id
|
|
10
10
|
name
|
|
11
|
+
entitlement {
|
|
12
|
+
id
|
|
13
|
+
name
|
|
14
|
+
}
|
|
11
15
|
totalQuestions
|
|
12
16
|
correctQuestions
|
|
13
17
|
incorrectQuestions
|
|
@@ -36,7 +40,10 @@ exports.TOPICS = (0, client_1.gql) `
|
|
|
36
40
|
yellowCards
|
|
37
41
|
redCards
|
|
38
42
|
typeId
|
|
39
|
-
entitlement
|
|
43
|
+
entitlement {
|
|
44
|
+
id
|
|
45
|
+
name
|
|
46
|
+
}
|
|
40
47
|
concepts {
|
|
41
48
|
id
|
|
42
49
|
name
|
|
@@ -58,7 +65,10 @@ exports.QUESTION_TOPICS = (0, client_1.gql) `
|
|
|
58
65
|
correctQuestions
|
|
59
66
|
incorrectQuestions
|
|
60
67
|
typeId
|
|
61
|
-
entitlement
|
|
68
|
+
entitlement {
|
|
69
|
+
id
|
|
70
|
+
name
|
|
71
|
+
}
|
|
62
72
|
concepts {
|
|
63
73
|
id
|
|
64
74
|
name
|
|
@@ -82,7 +92,10 @@ exports.FLASHCARDS_TOPICS = (0, client_1.gql) `
|
|
|
82
92
|
yellowCards
|
|
83
93
|
redCards
|
|
84
94
|
typeId
|
|
85
|
-
entitlement
|
|
95
|
+
entitlement {
|
|
96
|
+
id
|
|
97
|
+
name
|
|
98
|
+
}
|
|
86
99
|
concepts {
|
|
87
100
|
id
|
|
88
101
|
name
|