@quesmed/types-rn 2.5.87 → 2.5.88
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/package.json
CHANGED
|
@@ -3,12 +3,15 @@ import { RestrictedData, graphqlNormalize } from '../../types';
|
|
|
3
3
|
export type IQuesBookVar = {
|
|
4
4
|
/**TODO: make it mandatory once frontend changes are completed */
|
|
5
5
|
typeId?: ETopicType[];
|
|
6
|
+
videosOnly?: boolean;
|
|
6
7
|
};
|
|
7
8
|
export type IQuesBookData = RestrictedData<(graphqlNormalize & ITopic)[], 'quesBook'>;
|
|
8
9
|
export declare const QUES_BOOK: import("@apollo/client").DocumentNode;
|
|
10
|
+
export declare const PUBLIC_QUES_BOOK: import("@apollo/client").DocumentNode;
|
|
9
11
|
export type IOsceBookVar = {
|
|
10
12
|
/**TODO: make it mandatory once frontend changes are completed */
|
|
11
13
|
typeId?: EOsceType[];
|
|
14
|
+
videosOnly?: boolean;
|
|
12
15
|
};
|
|
13
16
|
export type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
|
|
14
17
|
export declare const OSCE_BOOK: import("@apollo/client").DocumentNode;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OSCE_BOOK = exports.QUES_BOOK = void 0;
|
|
3
|
+
exports.OSCE_BOOK = exports.PUBLIC_QUES_BOOK = exports.QUES_BOOK = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const osce_1 = require("./../../fragments/osce");
|
|
6
6
|
exports.QUES_BOOK = (0, client_1.gql) `
|
|
7
|
-
query quesBook($typeId: [Int]) {
|
|
7
|
+
query quesBook($typeId: [Int], $videosOnly: Boolean) {
|
|
8
8
|
restricted {
|
|
9
|
-
quesBook(typeId: $typeId) {
|
|
9
|
+
quesBook(typeId: $typeId, videosOnly: $videosOnly) {
|
|
10
10
|
id
|
|
11
11
|
name
|
|
12
12
|
typeId
|
|
@@ -62,11 +62,68 @@ exports.QUES_BOOK = (0, client_1.gql) `
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
`;
|
|
65
|
+
exports.PUBLIC_QUES_BOOK = (0, client_1.gql) `
|
|
66
|
+
query PublicQuesBook($typeId: [Int], $videosOnly: Boolean) {
|
|
67
|
+
quesBook(typeId: $typeId, videosOnly: $videosOnly) {
|
|
68
|
+
id
|
|
69
|
+
name
|
|
70
|
+
typeId
|
|
71
|
+
demo
|
|
72
|
+
unreadConcepts
|
|
73
|
+
completedConcepts
|
|
74
|
+
revisingConcepts
|
|
75
|
+
urgentConcepts
|
|
76
|
+
unwatchedVideos
|
|
77
|
+
completedVideos
|
|
78
|
+
revisingVideos
|
|
79
|
+
urgentVideos
|
|
80
|
+
concepts {
|
|
81
|
+
id
|
|
82
|
+
name
|
|
83
|
+
demo
|
|
84
|
+
status
|
|
85
|
+
totalCards
|
|
86
|
+
totalQuestions
|
|
87
|
+
chapter {
|
|
88
|
+
id
|
|
89
|
+
typeId
|
|
90
|
+
explanation
|
|
91
|
+
pictures {
|
|
92
|
+
id
|
|
93
|
+
createdAt
|
|
94
|
+
updatedAt
|
|
95
|
+
name
|
|
96
|
+
caption
|
|
97
|
+
path
|
|
98
|
+
path512
|
|
99
|
+
path256
|
|
100
|
+
index
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
topicId
|
|
104
|
+
videos {
|
|
105
|
+
id
|
|
106
|
+
status
|
|
107
|
+
title
|
|
108
|
+
museId
|
|
109
|
+
thumbnail
|
|
110
|
+
concepts {
|
|
111
|
+
id
|
|
112
|
+
name
|
|
113
|
+
}
|
|
114
|
+
live
|
|
115
|
+
description
|
|
116
|
+
duration
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
`;
|
|
65
122
|
exports.OSCE_BOOK = (0, client_1.gql) `
|
|
66
123
|
${osce_1.OSCE_STATION_FIELDS}
|
|
67
|
-
query OsceBook($typeId: [Int]) {
|
|
124
|
+
query OsceBook($typeId: [Int], $videosOnly: Boolean) {
|
|
68
125
|
restricted {
|
|
69
|
-
osceBook(typeId: $typeId) {
|
|
126
|
+
osceBook(typeId: $typeId, videosOnly: $videosOnly) {
|
|
70
127
|
...OsceStationFields
|
|
71
128
|
lastOsceMarksheetId
|
|
72
129
|
score
|