@quesmed/types 2.6.24 → 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/dist/cjs/models/Concept.d.ts +2 -2
- package/dist/cjs/models/OsceStation.d.ts +2 -2
- package/dist/cjs/models/Product.d.ts +6 -2
- package/dist/cjs/models/Question.d.ts +1 -2
- package/dist/cjs/models/Topic.d.ts +2 -2
- package/dist/cjs/resolvers/fragments/osce.js +4 -0
- package/dist/cjs/resolvers/query/restricted/qBank.js +0 -1
- package/dist/cjs/resolvers/query/restricted/quesBook.js +12 -2
- package/dist/cjs/resolvers/query/restricted/topics.d.ts +1 -1
- package/dist/cjs/resolvers/query/restricted/topics.js +16 -3
- package/dist/mjs/models/Concept.d.ts +2 -2
- package/dist/mjs/models/OsceStation.d.ts +2 -2
- package/dist/mjs/models/Product.d.ts +6 -2
- package/dist/mjs/models/Question.d.ts +1 -2
- package/dist/mjs/models/Topic.d.ts +2 -2
- package/dist/mjs/resolvers/fragments/osce.js +4 -0
- package/dist/mjs/resolvers/query/restricted/qBank.js +0 -1
- package/dist/mjs/resolvers/query/restricted/quesBook.js +12 -2
- package/dist/mjs/resolvers/query/restricted/topics.d.ts +1 -1
- package/dist/mjs/resolvers/query/restricted/topics.js +16 -3
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|
}
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|
}
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -7,8 +7,11 @@ export const QBANK_KNOWLEDGE_VIDEO_LIBRARY = gql `
|
|
|
7
7
|
id
|
|
8
8
|
name
|
|
9
9
|
typeId
|
|
10
|
-
entitlement
|
|
11
10
|
demo
|
|
11
|
+
entitlement {
|
|
12
|
+
id
|
|
13
|
+
name
|
|
14
|
+
}
|
|
12
15
|
unreadConcepts
|
|
13
16
|
completedConcepts
|
|
14
17
|
revisingConcepts
|
|
@@ -68,8 +71,11 @@ export const PUBLIC_QBANK_KNOWLEDGE_LIBRARY = gql `
|
|
|
68
71
|
id
|
|
69
72
|
name
|
|
70
73
|
typeId
|
|
71
|
-
entitlement
|
|
72
74
|
demo
|
|
75
|
+
entitlement {
|
|
76
|
+
id
|
|
77
|
+
name
|
|
78
|
+
}
|
|
73
79
|
unreadConcepts
|
|
74
80
|
completedConcepts
|
|
75
81
|
revisingConcepts
|
|
@@ -143,6 +149,10 @@ export const PACE_KNOWLEDGE_LIBRARY = gql `
|
|
|
143
149
|
demo
|
|
144
150
|
status
|
|
145
151
|
typeId
|
|
152
|
+
entitlement {
|
|
153
|
+
id
|
|
154
|
+
name
|
|
155
|
+
}
|
|
146
156
|
chapter {
|
|
147
157
|
id
|
|
148
158
|
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
|
}
|
|
@@ -5,6 +5,10 @@ export const TOPIC = gql `
|
|
|
5
5
|
topic(id: $topicId) {
|
|
6
6
|
id
|
|
7
7
|
name
|
|
8
|
+
entitlement {
|
|
9
|
+
id
|
|
10
|
+
name
|
|
11
|
+
}
|
|
8
12
|
totalQuestions
|
|
9
13
|
correctQuestions
|
|
10
14
|
incorrectQuestions
|
|
@@ -33,7 +37,10 @@ export const TOPICS = gql `
|
|
|
33
37
|
yellowCards
|
|
34
38
|
redCards
|
|
35
39
|
typeId
|
|
36
|
-
entitlement
|
|
40
|
+
entitlement {
|
|
41
|
+
id
|
|
42
|
+
name
|
|
43
|
+
}
|
|
37
44
|
concepts {
|
|
38
45
|
id
|
|
39
46
|
name
|
|
@@ -55,7 +62,10 @@ export const QUESTION_TOPICS = gql `
|
|
|
55
62
|
correctQuestions
|
|
56
63
|
incorrectQuestions
|
|
57
64
|
typeId
|
|
58
|
-
entitlement
|
|
65
|
+
entitlement {
|
|
66
|
+
id
|
|
67
|
+
name
|
|
68
|
+
}
|
|
59
69
|
concepts {
|
|
60
70
|
id
|
|
61
71
|
name
|
|
@@ -79,7 +89,10 @@ export const FLASHCARDS_TOPICS = gql `
|
|
|
79
89
|
yellowCards
|
|
80
90
|
redCards
|
|
81
91
|
typeId
|
|
82
|
-
entitlement
|
|
92
|
+
entitlement {
|
|
93
|
+
id
|
|
94
|
+
name
|
|
95
|
+
}
|
|
83
96
|
concepts {
|
|
84
97
|
id
|
|
85
98
|
name
|