@quesmed/types-rn 2.5.108 → 2.5.110
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/Paces.d.ts +9 -0
- package/models/Paces.js +11 -1
- package/package.json +1 -1
- package/resolvers/mutation/restricted/osce.js +2 -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 +6 -0
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
|
@@ -95,6 +95,7 @@ const optimisticMarkOsceMarksheetMark = (variables, productType) => {
|
|
|
95
95
|
const data = {};
|
|
96
96
|
if (productType === models_1.EProductType.OSCE) {
|
|
97
97
|
data.mark = variables.mark;
|
|
98
|
+
data.selectedChoice = null;
|
|
98
99
|
}
|
|
99
100
|
else {
|
|
100
101
|
data.selectedChoice = variables.mark;
|
|
@@ -102,6 +103,7 @@ const optimisticMarkOsceMarksheetMark = (variables, productType) => {
|
|
|
102
103
|
return {
|
|
103
104
|
restricted: {
|
|
104
105
|
markOsceMarksheetMark: {
|
|
106
|
+
...data,
|
|
105
107
|
id: variables.osceMarksheetMarkId,
|
|
106
108
|
__typename: 'OsceMarksheetMark',
|
|
107
109
|
},
|
|
@@ -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
|
+
`;
|