@quesmed/types-rn 2.5.109 → 2.5.111
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/OsceStation.d.ts +1 -0
- package/models/Paces.d.ts +9 -0
- package/models/Paces.js +11 -1
- package/package.json +1 -1
- package/resolvers/fragments/osce.js +1 -0
- package/resolvers/query/restricted/concepts.d.ts +12 -0
- package/resolvers/query/restricted/concepts.js +102 -0
- package/resolvers/query/restricted/index.d.ts +1 -0
- package/resolvers/query/restricted/index.js +1 -0
- package/resolvers/query/restricted/osce.d.ts +2 -2
- package/resolvers/query/restricted/quesBook.d.ts +7 -5
- package/resolvers/query/restricted/quesBook.js +77 -6
- package/resolvers/query/restricted/video.js +7 -0
package/models/OsceStation.d.ts
CHANGED
package/models/Paces.d.ts
CHANGED
|
@@ -6,6 +6,15 @@ export declare enum EPaceMarkType {
|
|
|
6
6
|
BORDERLINE = 2,
|
|
7
7
|
UN_SATISFACTORY = 3
|
|
8
8
|
}
|
|
9
|
+
export declare enum EPaceType {
|
|
10
|
+
ALL = 0,
|
|
11
|
+
ABDOMINAL = 1,
|
|
12
|
+
CARDIOVASCULAR = 2,
|
|
13
|
+
COMMUNICATION = 3,
|
|
14
|
+
CONSULTATION = 4,
|
|
15
|
+
NEUROLOGY = 5,
|
|
16
|
+
RESPIRATORY = 6
|
|
17
|
+
}
|
|
9
18
|
export interface IPaceScore {
|
|
10
19
|
id: string;
|
|
11
20
|
type: EPaceMarkType;
|
package/models/Paces.js
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EPaceMarkType = void 0;
|
|
3
|
+
exports.EPaceType = exports.EPaceMarkType = void 0;
|
|
4
4
|
var EPaceMarkType;
|
|
5
5
|
(function (EPaceMarkType) {
|
|
6
6
|
EPaceMarkType[EPaceMarkType["SATISFACTORY"] = 1] = "SATISFACTORY";
|
|
7
7
|
EPaceMarkType[EPaceMarkType["BORDERLINE"] = 2] = "BORDERLINE";
|
|
8
8
|
EPaceMarkType[EPaceMarkType["UN_SATISFACTORY"] = 3] = "UN_SATISFACTORY";
|
|
9
9
|
})(EPaceMarkType = exports.EPaceMarkType || (exports.EPaceMarkType = {}));
|
|
10
|
+
var EPaceType;
|
|
11
|
+
(function (EPaceType) {
|
|
12
|
+
EPaceType[EPaceType["ALL"] = 0] = "ALL";
|
|
13
|
+
EPaceType[EPaceType["ABDOMINAL"] = 1] = "ABDOMINAL";
|
|
14
|
+
EPaceType[EPaceType["CARDIOVASCULAR"] = 2] = "CARDIOVASCULAR";
|
|
15
|
+
EPaceType[EPaceType["COMMUNICATION"] = 3] = "COMMUNICATION";
|
|
16
|
+
EPaceType[EPaceType["CONSULTATION"] = 4] = "CONSULTATION";
|
|
17
|
+
EPaceType[EPaceType["NEUROLOGY"] = 5] = "NEUROLOGY";
|
|
18
|
+
EPaceType[EPaceType["RESPIRATORY"] = 6] = "RESPIRATORY";
|
|
19
|
+
})(EPaceType = exports.EPaceType || (exports.EPaceType = {}));
|
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Id, IConcept } from '../../../models';
|
|
2
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
|
+
export interface IConceptVar {
|
|
4
|
+
id: Id;
|
|
5
|
+
}
|
|
6
|
+
export type IConceptData = RestrictedData<graphqlNormalize & IConcept, 'concept'>;
|
|
7
|
+
export declare const CONCEPT: import("@apollo/client").DocumentNode;
|
|
8
|
+
export interface IConceptsVar {
|
|
9
|
+
ids: number[];
|
|
10
|
+
}
|
|
11
|
+
export type IConceptsData = RestrictedData<(graphqlNormalize & IConcept)[], 'concepts'>;
|
|
12
|
+
export declare const CONCEPTS: import("@apollo/client").DocumentNode;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CONCEPTS = exports.CONCEPT = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
exports.CONCEPT = (0, client_1.gql) `
|
|
6
|
+
query Concept($id: Int!) {
|
|
7
|
+
restricted {
|
|
8
|
+
concept(id: $id) {
|
|
9
|
+
id
|
|
10
|
+
name
|
|
11
|
+
status
|
|
12
|
+
totalCards
|
|
13
|
+
topic {
|
|
14
|
+
id
|
|
15
|
+
name
|
|
16
|
+
typeId
|
|
17
|
+
}
|
|
18
|
+
chapter {
|
|
19
|
+
id
|
|
20
|
+
explanation
|
|
21
|
+
pictures {
|
|
22
|
+
id
|
|
23
|
+
createdAt
|
|
24
|
+
updatedAt
|
|
25
|
+
name
|
|
26
|
+
caption
|
|
27
|
+
path
|
|
28
|
+
path512
|
|
29
|
+
path256
|
|
30
|
+
index
|
|
31
|
+
topicId
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
videos {
|
|
35
|
+
id
|
|
36
|
+
status
|
|
37
|
+
title
|
|
38
|
+
museId
|
|
39
|
+
startTime
|
|
40
|
+
endTime
|
|
41
|
+
thumbnail
|
|
42
|
+
concepts {
|
|
43
|
+
id
|
|
44
|
+
name
|
|
45
|
+
}
|
|
46
|
+
live
|
|
47
|
+
description
|
|
48
|
+
duration
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
exports.CONCEPTS = (0, client_1.gql) `
|
|
55
|
+
query Concepts($id: [Int!]!) {
|
|
56
|
+
restricted {
|
|
57
|
+
concepts(id: $id) {
|
|
58
|
+
id
|
|
59
|
+
name
|
|
60
|
+
status
|
|
61
|
+
totalCards
|
|
62
|
+
topic {
|
|
63
|
+
id
|
|
64
|
+
name
|
|
65
|
+
typeId
|
|
66
|
+
}
|
|
67
|
+
chapter {
|
|
68
|
+
id
|
|
69
|
+
explanation
|
|
70
|
+
pictures {
|
|
71
|
+
id
|
|
72
|
+
createdAt
|
|
73
|
+
updatedAt
|
|
74
|
+
name
|
|
75
|
+
caption
|
|
76
|
+
path
|
|
77
|
+
path512
|
|
78
|
+
path256
|
|
79
|
+
index
|
|
80
|
+
topicId
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
videos {
|
|
84
|
+
id
|
|
85
|
+
status
|
|
86
|
+
title
|
|
87
|
+
museId
|
|
88
|
+
startTime
|
|
89
|
+
endTime
|
|
90
|
+
thumbnail
|
|
91
|
+
concepts {
|
|
92
|
+
id
|
|
93
|
+
name
|
|
94
|
+
}
|
|
95
|
+
live
|
|
96
|
+
description
|
|
97
|
+
duration
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
`;
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./conceptExplanation"), exports);
|
|
18
|
+
__exportStar(require("./concepts"), exports);
|
|
18
19
|
__exportStar(require("./global"), exports);
|
|
19
20
|
__exportStar(require("./marksheet"), exports);
|
|
20
21
|
__exportStar(require("./mockTests"), exports);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EDifficultyType, EOsceType, Id, IDashboardOsce, IOsceMarksheet, IOsceStation, IOsceStats, IUser } from '../../../models';
|
|
1
|
+
import { EDifficultyType, EOsceType, EPaceType, Id, IDashboardOsce, IOsceMarksheet, IOsceStation, IOsceStats, IUser } from '../../../models';
|
|
2
2
|
import { ESortOrder } from '../../enums';
|
|
3
3
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
4
4
|
import { ITopic } from './../../../models/Topic';
|
|
5
5
|
export interface IOsceStatsVar {
|
|
6
|
-
typeId?: EOsceType[];
|
|
6
|
+
typeId?: EOsceType[] | EPaceType[];
|
|
7
7
|
solo: boolean;
|
|
8
8
|
}
|
|
9
9
|
export type IOsceStatsData = RestrictedData<graphqlNormalize & IOsceStats, 'osceStats'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EOsceType, ETopicType, IOsceStation, ITopic } from '../../../models';
|
|
1
|
+
import { EOsceType, EPaceType, ETopicType, IOsceStation, ITopic } from '../../../models';
|
|
2
2
|
import { RestrictedData, graphqlNormalize } from '../../types';
|
|
3
3
|
export type IQuesBookVar = {
|
|
4
4
|
/**TODO: make it mandatory once frontend changes are completed */
|
|
@@ -6,12 +6,14 @@ export type IQuesBookVar = {
|
|
|
6
6
|
videosOnly?: boolean;
|
|
7
7
|
};
|
|
8
8
|
export type IQuesBookData = RestrictedData<(graphqlNormalize & ITopic)[], 'quesBook'>;
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
9
|
+
export declare const QBANK_KNOWLEDGE_VIDEO_LIBRARY: import("@apollo/client").DocumentNode;
|
|
10
|
+
export declare const PUBLIC_QBANK_KNOWLEDGE_LIBRARY: import("@apollo/client").DocumentNode;
|
|
11
11
|
export type IOsceBookVar = {
|
|
12
12
|
/**TODO: make it mandatory once frontend changes are completed */
|
|
13
|
-
typeId?: EOsceType[];
|
|
13
|
+
typeId?: EOsceType[] | EPaceType[];
|
|
14
14
|
videosOnly?: boolean;
|
|
15
15
|
};
|
|
16
16
|
export type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const OSCE_KNOWLEDGE_VIDEO_LIBRARY: import("@apollo/client").DocumentNode;
|
|
18
|
+
export declare const PACE_KNOWLEDGE_LIBRARY: import("@apollo/client").DocumentNode;
|
|
19
|
+
export declare const PACE_VIDEO_LIBRARY: import("@apollo/client").DocumentNode;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PACE_VIDEO_LIBRARY = exports.PACE_KNOWLEDGE_LIBRARY = exports.OSCE_KNOWLEDGE_VIDEO_LIBRARY = exports.PUBLIC_QBANK_KNOWLEDGE_LIBRARY = exports.QBANK_KNOWLEDGE_VIDEO_LIBRARY = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const osce_1 = require("./../../fragments/osce");
|
|
6
|
-
exports.
|
|
7
|
-
query
|
|
6
|
+
exports.QBANK_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
|
|
7
|
+
query QBankKnowledgeVideoLibrary($typeId: [Int], $videosOnly: Boolean) {
|
|
8
8
|
restricted {
|
|
9
9
|
quesBook(typeId: $typeId, videosOnly: $videosOnly) {
|
|
10
10
|
id
|
|
@@ -62,7 +62,7 @@ exports.QUES_BOOK = (0, client_1.gql) `
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
`;
|
|
65
|
-
exports.
|
|
65
|
+
exports.PUBLIC_QBANK_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
|
|
66
66
|
query PublicQuesBook($typeId: [Int], $videosOnly: Boolean) {
|
|
67
67
|
quesBook(typeId: $typeId, videosOnly: $videosOnly) {
|
|
68
68
|
id
|
|
@@ -119,9 +119,9 @@ exports.PUBLIC_QUES_BOOK = (0, client_1.gql) `
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
`;
|
|
122
|
-
exports.
|
|
122
|
+
exports.OSCE_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
|
|
123
123
|
${osce_1.OSCE_STATION_FIELDS}
|
|
124
|
-
query
|
|
124
|
+
query OsceKnowledgeVideoLibrary($typeId: [Int], $videosOnly: Boolean) {
|
|
125
125
|
restricted {
|
|
126
126
|
osceBook(typeId: $typeId, videosOnly: $videosOnly) {
|
|
127
127
|
...OsceStationFields
|
|
@@ -131,3 +131,74 @@ exports.OSCE_BOOK = (0, client_1.gql) `
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
`;
|
|
134
|
+
exports.PACE_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
|
|
135
|
+
query PaceKnowledgeLibrary($typeId: [Int], $videosOnly: Boolean) {
|
|
136
|
+
restricted {
|
|
137
|
+
quesBook(typeId: $typeId, videosOnly: $videosOnly) {
|
|
138
|
+
id
|
|
139
|
+
name
|
|
140
|
+
typeId
|
|
141
|
+
demo
|
|
142
|
+
unreadConcepts
|
|
143
|
+
completedConcepts
|
|
144
|
+
revisingConcepts
|
|
145
|
+
urgentConcepts
|
|
146
|
+
unwatchedVideos
|
|
147
|
+
completedVideos
|
|
148
|
+
revisingVideos
|
|
149
|
+
urgentVideos
|
|
150
|
+
concepts {
|
|
151
|
+
id
|
|
152
|
+
name
|
|
153
|
+
demo
|
|
154
|
+
status
|
|
155
|
+
totalCards
|
|
156
|
+
totalQuestions
|
|
157
|
+
chapter {
|
|
158
|
+
id
|
|
159
|
+
typeId
|
|
160
|
+
explanation
|
|
161
|
+
pictures {
|
|
162
|
+
id
|
|
163
|
+
createdAt
|
|
164
|
+
updatedAt
|
|
165
|
+
name
|
|
166
|
+
caption
|
|
167
|
+
path
|
|
168
|
+
path512
|
|
169
|
+
path256
|
|
170
|
+
index
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
topicId
|
|
174
|
+
videos {
|
|
175
|
+
id
|
|
176
|
+
status
|
|
177
|
+
title
|
|
178
|
+
museId
|
|
179
|
+
thumbnail
|
|
180
|
+
concepts {
|
|
181
|
+
id
|
|
182
|
+
name
|
|
183
|
+
}
|
|
184
|
+
live
|
|
185
|
+
description
|
|
186
|
+
duration
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
`;
|
|
193
|
+
exports.PACE_VIDEO_LIBRARY = (0, client_1.gql) `
|
|
194
|
+
${osce_1.OSCE_STATION_FIELDS}
|
|
195
|
+
query PaceVideoLibrary($typeId: [Int], $videosOnly: Boolean) {
|
|
196
|
+
restricted {
|
|
197
|
+
osceBook(typeId: $typeId, videosOnly: $videosOnly) {
|
|
198
|
+
...OsceStationFields
|
|
199
|
+
lastOsceMarksheetId
|
|
200
|
+
score
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
`;
|
|
@@ -40,6 +40,7 @@ exports.VIDEO = (0, client_1.gql) `
|
|
|
40
40
|
osceStation {
|
|
41
41
|
id
|
|
42
42
|
name
|
|
43
|
+
hiddenName
|
|
43
44
|
status
|
|
44
45
|
osceType {
|
|
45
46
|
id
|
|
@@ -54,6 +55,12 @@ exports.VIDEO = (0, client_1.gql) `
|
|
|
54
55
|
osceStationId
|
|
55
56
|
header
|
|
56
57
|
name
|
|
58
|
+
choices {
|
|
59
|
+
id
|
|
60
|
+
name
|
|
61
|
+
type
|
|
62
|
+
score
|
|
63
|
+
}
|
|
57
64
|
}
|
|
58
65
|
candidatePictures {
|
|
59
66
|
id
|