@quesmed/types 1.3.17 → 1.4.0
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/gql_input_output_types/User.js +2 -1
- package/gql_input_output_types/User.mjs +1 -0
- package/gql_input_output_types/index.d.ts +1 -0
- package/gql_input_output_types/index.js +2 -1
- package/gql_input_output_types/index.mjs +1 -0
- package/index.js +7 -4
- package/index.mjs +17 -0
- package/models/Author.js +2 -1
- package/models/Author.mjs +1 -0
- package/models/Book.js +2 -1
- package/models/Book.mjs +1 -0
- package/models/Card.js +2 -1
- package/models/Card.mjs +1 -0
- package/models/Chapter.js +2 -1
- package/models/Chapter.mjs +1 -0
- package/models/Concept.js +2 -1
- package/models/Concept.mjs +1 -0
- package/models/Difficulty.js +5 -2
- package/models/Difficulty.mjs +7 -0
- package/models/Feedback.js +2 -1
- package/models/Feedback.mjs +1 -0
- package/models/File.js +2 -1
- package/models/File.mjs +1 -0
- package/models/Marksheet.js +5 -2
- package/models/Marksheet.mjs +6 -0
- package/models/MockTest.js +2 -1
- package/models/MockTest.mjs +1 -0
- package/models/OsceMarksheet.js +7 -4
- package/models/OsceMarksheet.mjs +20 -0
- package/models/OsceStation.js +6 -3
- package/models/OsceStation.mjs +42 -0
- package/models/Picture.js +2 -1
- package/models/Picture.mjs +5 -0
- package/models/Promo.js +2 -1
- package/models/Promo.mjs +1 -0
- package/models/Question.js +15 -8
- package/models/Question.mjs +30 -0
- package/models/Subscription.js +5 -2
- package/models/Subscription.mjs +6 -0
- package/models/Todo.js +2 -1
- package/models/Todo.mjs +1 -0
- package/models/Token.js +2 -1
- package/models/Token.mjs +1 -0
- package/models/Topic.js +5 -2
- package/models/Topic.mjs +10 -0
- package/models/Type.js +2 -1
- package/models/Type.mjs +1 -0
- package/models/University.js +2 -1
- package/models/University.mjs +1 -0
- package/models/User.js +2 -1
- package/models/User.mjs +1 -0
- package/models/Video.js +2 -1
- package/models/Video.mjs +1 -0
- package/models/index.js +35 -23
- package/models/index.mjs +23 -0
- package/package.json +4 -2
- package/resolvers/apollo.js +2 -1
- package/resolvers/apollo.mjs +1 -0
- package/resolvers/fragments/chapter.d.ts +2 -0
- package/resolvers/fragments/chapter.js +31 -0
- package/resolvers/fragments/chapter.mjs +28 -0
- package/resolvers/fragments/concept.d.ts +3 -0
- package/resolvers/fragments/concept.js +79 -0
- package/resolvers/fragments/concept.mjs +76 -0
- package/resolvers/fragments/osce.d.ts +10 -0
- package/resolvers/fragments/osce.js +171 -0
- package/resolvers/fragments/osce.mjs +168 -0
- package/resolvers/fragments/picture.d.ts +3 -0
- package/resolvers/fragments/picture.js +44 -0
- package/resolvers/fragments/picture.mjs +41 -0
- package/resolvers/fragments/user.d.ts +1 -0
- package/resolvers/fragments/user.js +26 -0
- package/resolvers/fragments/user.mjs +23 -0
- package/resolvers/fragments/video.d.ts +2 -0
- package/resolvers/fragments/video.js +49 -0
- package/resolvers/fragments/video.mjs +46 -0
- package/resolvers/mutation/admin/algoliaSync.js +2 -1
- package/resolvers/mutation/admin/algoliaSync.mjs +1 -0
- package/resolvers/mutation/admin/index.js +14 -2
- package/resolvers/mutation/admin/index.mjs +2 -0
- package/resolvers/mutation/admin/token.js +2 -1
- package/resolvers/mutation/admin/token.mjs +1 -0
- package/resolvers/mutation/index.js +14 -2
- package/resolvers/mutation/index.mjs +2 -0
- package/resolvers/mutation/restricted/agora.js +2 -1
- package/resolvers/mutation/restricted/agora.mjs +1 -0
- package/resolvers/mutation/restricted/contactUs.js +2 -1
- package/resolvers/mutation/restricted/contactUs.mjs +1 -0
- package/resolvers/mutation/restricted/index.js +22 -10
- package/resolvers/mutation/restricted/index.mjs +10 -0
- package/resolvers/mutation/restricted/marksheet.js +2 -1
- package/resolvers/mutation/restricted/marksheet.mjs +1 -0
- package/resolvers/mutation/restricted/mockTest.js +2 -1
- package/resolvers/mutation/restricted/mockTest.mjs +1 -0
- package/resolvers/mutation/restricted/osce.d.ts +36 -8
- package/resolvers/mutation/restricted/osce.js +202 -1
- package/resolvers/mutation/restricted/osce.mjs +198 -0
- package/resolvers/mutation/restricted/questionDiscussion.js +2 -1
- package/resolvers/mutation/restricted/questionDiscussion.mjs +1 -0
- package/resolvers/mutation/restricted/todo.js +7 -3
- package/resolvers/mutation/restricted/todo.mjs +25 -0
- package/resolvers/mutation/restricted/token.js +2 -1
- package/resolvers/mutation/restricted/token.mjs +1 -0
- package/resolvers/mutation/restricted/users.js +2 -1
- package/resolvers/mutation/restricted/users.mjs +1 -0
- package/resolvers/mutation/restricted/video.js +2 -1
- package/resolvers/mutation/restricted/video.mjs +1 -0
- package/resolvers/mutation/stripe.js +2 -1
- package/resolvers/mutation/stripe.mjs +1 -0
- package/resolvers/mutation/users.js +2 -1
- package/resolvers/mutation/users.mjs +1 -0
- package/resolvers/mutation/validUserToken/index.js +13 -1
- package/resolvers/mutation/validUserToken/index.mjs +1 -0
- package/resolvers/mutation/validUserToken/user.js +2 -1
- package/resolvers/mutation/validUserToken/user.mjs +1 -0
- package/resolvers/query/admin/getUserToken.js +2 -1
- package/resolvers/query/admin/getUserToken.mjs +1 -0
- package/resolvers/query/admin/index.js +13 -1
- package/resolvers/query/admin/index.mjs +1 -0
- package/resolvers/query/author.js +2 -1
- package/resolvers/query/author.mjs +1 -0
- package/resolvers/query/book.js +2 -1
- package/resolvers/query/book.mjs +1 -0
- package/resolvers/query/feedback.js +2 -1
- package/resolvers/query/feedback.mjs +1 -0
- package/resolvers/query/index.js +21 -9
- package/resolvers/query/index.mjs +9 -0
- package/resolvers/query/restricted/anatomy.js +2 -1
- package/resolvers/query/restricted/anatomy.mjs +1 -0
- package/resolvers/query/restricted/index.d.ts +1 -0
- package/resolvers/query/restricted/index.js +23 -10
- package/resolvers/query/restricted/index.mjs +11 -0
- package/resolvers/query/restricted/marksheet.js +2 -1
- package/resolvers/query/restricted/marksheet.mjs +1 -0
- package/resolvers/query/restricted/mockTests.js +2 -1
- package/resolvers/query/restricted/mockTests.mjs +1 -0
- package/resolvers/query/restricted/osce.d.ts +20 -12
- package/resolvers/query/restricted/osce.js +93 -1
- package/resolvers/query/restricted/osce.mjs +90 -0
- package/resolvers/query/restricted/quesBook.d.ts +1 -0
- package/resolvers/query/restricted/quesBook.js +15 -1
- package/resolvers/query/restricted/quesBook.mjs +12 -0
- package/resolvers/query/restricted/replication.d.ts +33 -0
- package/resolvers/query/restricted/replication.js +184 -0
- package/resolvers/query/restricted/replication.mjs +178 -0
- package/resolvers/query/restricted/todos.js +2 -1
- package/resolvers/query/restricted/todos.mjs +1 -0
- package/resolvers/query/restricted/topics.js +2 -1
- package/resolvers/query/restricted/topics.mjs +1 -0
- package/resolvers/query/restricted/university.js +2 -1
- package/resolvers/query/restricted/university.mjs +1 -0
- package/resolvers/query/restricted/user.js +2 -1
- package/resolvers/query/restricted/user.mjs +1 -0
- package/resolvers/query/restricted/video.js +2 -1
- package/resolvers/query/restricted/video.mjs +1 -0
- package/resolvers/query/sampleCards.js +2 -1
- package/resolvers/query/sampleCards.mjs +1 -0
- package/resolvers/query/sampleQuestions.js +2 -1
- package/resolvers/query/sampleQuestions.mjs +1 -0
- package/resolvers/query/subscription.js +2 -1
- package/resolvers/query/subscription.mjs +1 -0
- package/resolvers/query/university.js +2 -1
- package/resolvers/query/university.mjs +1 -0
- package/resolvers/query/user.js +2 -1
- package/resolvers/query/user.mjs +1 -0
- package/resolvers/query/video.js +2 -1
- package/resolvers/query/video.mjs +1 -0
- package/resolvers/subscription/index.js +13 -1
- package/resolvers/subscription/index.mjs +1 -0
- package/resolvers/subscription/osce.d.ts +14 -7
- package/resolvers/subscription/osce.js +45 -10
- package/resolvers/subscription/osce.mjs +70 -0
- package/utils/commonFunctions.js +17 -11
- package/utils/commonFunctions.mjs +217 -0
- package/utils/index.d.ts +5 -0
- package/utils/index.js +17 -0
- package/utils/index.mjs +5 -0
- package/utils/lightgallery.js +5 -1
- package/utils/lightgallery.mjs +87 -0
- package/{resolvers → utils}/offlineLink.d.ts +0 -0
- package/utils/offlineLink.js +237 -0
- package/{resolvers/offlineLink.js → utils/offlineLink.mjs} +4 -4
- package/utils/uuid4.js +3 -1
- package/utils/uuid4.mjs +285 -0
- package/utils/wordsToNumber.js +5 -1
- package/utils/wordsToNumber.mjs +44 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { OSCE_MARKSHEET_FIELDS, OSCE_MARKSHEET_MARK_FIELDS, OSCE_MATCHMAKING_ACTION_FIELDS, } from '../../fragments/osce';
|
|
3
|
+
export const START_OSCE_MATCHMAKING = gql `
|
|
4
|
+
mutation StartOsceMatchmaking($agoraId: String!) {
|
|
5
|
+
restricted {
|
|
6
|
+
startOsceMatchmaking(agoraId: $agoraId)
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
export const ACCEPT_OSCE_MATCHMAKING = gql `
|
|
11
|
+
mutation AcceptOsceMatchmaking($agoraId: String!) {
|
|
12
|
+
restricted {
|
|
13
|
+
acceptOsceMatchmaking(agoraId: $agoraId)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
export const CHECK_OSCE_MATCHMAKING = gql `
|
|
18
|
+
${OSCE_MATCHMAKING_ACTION_FIELDS}
|
|
19
|
+
mutation CheckOsceMatchmaking {
|
|
20
|
+
restricted {
|
|
21
|
+
checkOsceMatchmaking {
|
|
22
|
+
...OsceMatchmakingActionFields
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
export const CANCEL_OSCE_MATCHMAKING = gql `
|
|
28
|
+
mutation CancelOsceMatchmaking($agoraId: String!) {
|
|
29
|
+
restricted {
|
|
30
|
+
cancelOsceMatchmaking(agoraId: $agoraId)
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
export const BUILD_OSCE_MARKSHEET = gql `
|
|
35
|
+
${OSCE_MARKSHEET_FIELDS}
|
|
36
|
+
mutation BuildOsceMarksheet(
|
|
37
|
+
$osceStationId: Int
|
|
38
|
+
$agoraId: String
|
|
39
|
+
$solo: Boolean
|
|
40
|
+
) {
|
|
41
|
+
restricted {
|
|
42
|
+
buildOsceMarksheet(
|
|
43
|
+
osceStationId: $osceStationId
|
|
44
|
+
agoraId: $agoraId
|
|
45
|
+
solo: $solo
|
|
46
|
+
) {
|
|
47
|
+
...OsceMarksheetFields
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
export const CHANGE_OSCE_ROLE = gql `
|
|
53
|
+
${OSCE_MARKSHEET_FIELDS}
|
|
54
|
+
mutation ChangeOsceRole($osceMarksheetId: Int!, $role: Int!) {
|
|
55
|
+
restricted {
|
|
56
|
+
changeOsceRole(osceMarksheetId: $osceMarksheetId, role: $role) {
|
|
57
|
+
...OsceMarksheetFields
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
export const MARK_OSCE_MARKSHEET_MARK = gql `
|
|
63
|
+
${OSCE_MARKSHEET_MARK_FIELDS}
|
|
64
|
+
mutation MarkOsceMarksheetMark($osceStationMarkId: Int!, $mark: Boolean!) {
|
|
65
|
+
restricted {
|
|
66
|
+
markOsceMarksheetMark(
|
|
67
|
+
osceStationMarkId: $osceStationMarkId
|
|
68
|
+
mark: $mark
|
|
69
|
+
) {
|
|
70
|
+
...OsceMarksheetMarkFields
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
`;
|
|
75
|
+
export const optimisticMarkOsceMarksheetMark = (variables) => {
|
|
76
|
+
return {
|
|
77
|
+
restricted: {
|
|
78
|
+
markOsceMarksheetMark: {
|
|
79
|
+
id: variables.osceStationMarkId,
|
|
80
|
+
mark: variables.mark,
|
|
81
|
+
__typename: 'OsceMarksheetMark',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export const SELECT_OSCE_STATION = gql `
|
|
87
|
+
${OSCE_MARKSHEET_FIELDS}
|
|
88
|
+
mutation SelectOsceMarksheetStation(
|
|
89
|
+
$osceMarksheetId: Int!
|
|
90
|
+
$osceStationId: Int!
|
|
91
|
+
) {
|
|
92
|
+
restricted {
|
|
93
|
+
selectOsceMarksheetStation(
|
|
94
|
+
osceMarksheetId: $osceMarksheetId
|
|
95
|
+
osceStationId: $osceStationId
|
|
96
|
+
) {
|
|
97
|
+
...OsceMarksheetFields
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
`;
|
|
102
|
+
export const START_OSCE_MARKSHEET = gql `
|
|
103
|
+
${OSCE_MARKSHEET_FIELDS}
|
|
104
|
+
mutation StartOsceMarksheet($osceMarksheetId: Int!) {
|
|
105
|
+
restricted {
|
|
106
|
+
startOsceMarksheet(osceMarksheetId: $osceMarksheetId) {
|
|
107
|
+
...OsceMarksheetFields
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
`;
|
|
112
|
+
export const PRESTART_OSCE_MARKSHEET = gql `
|
|
113
|
+
${OSCE_MARKSHEET_FIELDS}
|
|
114
|
+
mutation PrestartOsceMarksheet(
|
|
115
|
+
$osceMarksheetId: Int!
|
|
116
|
+
$readingTime: Int!
|
|
117
|
+
$stationTime: Int!
|
|
118
|
+
$feedbackTime: Int!
|
|
119
|
+
) {
|
|
120
|
+
restricted {
|
|
121
|
+
prestartOsceMarksheet(
|
|
122
|
+
osceMarksheetId: $osceMarksheetId
|
|
123
|
+
readingTime: $readingTime
|
|
124
|
+
stationTime: $stationTime
|
|
125
|
+
feedbackTime: $feedbackTime
|
|
126
|
+
) {
|
|
127
|
+
...OsceMarksheetFields
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
`;
|
|
132
|
+
export const SAVE_OSCE_MARKSHEET = gql `
|
|
133
|
+
${OSCE_MARKSHEET_FIELDS}
|
|
134
|
+
mutation SaveOsceMarksheet(
|
|
135
|
+
$osceMarksheetId: Int!
|
|
136
|
+
$feedback: String
|
|
137
|
+
$globalScore: Int
|
|
138
|
+
$timeTaken: Int
|
|
139
|
+
) {
|
|
140
|
+
restricted {
|
|
141
|
+
saveOsceMarksheet(
|
|
142
|
+
osceMarksheetId: $osceMarksheetId
|
|
143
|
+
feedback: $feedback
|
|
144
|
+
globalScore: $globalScore
|
|
145
|
+
timeTaken: $timeTaken
|
|
146
|
+
) {
|
|
147
|
+
...OsceMarksheetFields
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
`;
|
|
152
|
+
export const OSCE_MARKSHEET_ACTIONS = gql `
|
|
153
|
+
mutation OsceMarksheetActions(
|
|
154
|
+
$osceMarksheetId: Int!
|
|
155
|
+
$agoraId: String!
|
|
156
|
+
$timeRemaining: Int
|
|
157
|
+
$action: Int!
|
|
158
|
+
) {
|
|
159
|
+
restricted {
|
|
160
|
+
osceMarksheetActions(
|
|
161
|
+
osceMarksheetId: $osceMarksheetId
|
|
162
|
+
agoraId: $agoraId
|
|
163
|
+
timeRemaining: $timeRemaining
|
|
164
|
+
action: $action
|
|
165
|
+
)
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
`;
|
|
169
|
+
export const END_OSCE_MARKSHEET = gql `
|
|
170
|
+
${OSCE_MARKSHEET_FIELDS}
|
|
171
|
+
mutation EndOsceMarksheet(
|
|
172
|
+
$osceMarksheetId: Int!
|
|
173
|
+
$feedback: String
|
|
174
|
+
$globalScore: Int
|
|
175
|
+
$timeTaken: Int
|
|
176
|
+
) {
|
|
177
|
+
restricted {
|
|
178
|
+
endOsceMarksheet(
|
|
179
|
+
osceMarksheetId: $osceMarksheetId
|
|
180
|
+
feedback: $feedback
|
|
181
|
+
globalScore: $globalScore
|
|
182
|
+
timeTaken: $timeTaken
|
|
183
|
+
) {
|
|
184
|
+
...OsceMarksheetFields
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
`;
|
|
189
|
+
export const LEAVE_OSCE_MARKSHEET = gql `
|
|
190
|
+
${OSCE_MARKSHEET_FIELDS}
|
|
191
|
+
mutation LeaveOsceMarksheet($osceMarksheetId: Int!) {
|
|
192
|
+
restricted {
|
|
193
|
+
leaveOsceMarksheet(osceMarksheetId: $osceMarksheetId) {
|
|
194
|
+
...OsceMarksheetFields
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
`;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.saveTodosCache = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
function saveTodosCache(cache, result, options) {
|
|
3
6
|
var _a;
|
|
4
7
|
const todoMarkIds = (_a = result.data) === null || _a === void 0 ? void 0 : _a.restricted.saveTodos;
|
|
5
8
|
if (!options.variables || !todoMarkIds) {
|
|
@@ -14,7 +17,7 @@ export function saveTodosCache(cache, result, options) {
|
|
|
14
17
|
score: todoMark.score,
|
|
15
18
|
timeTaken: todoMark.timeTaken || 0,
|
|
16
19
|
},
|
|
17
|
-
fragment: gql `
|
|
20
|
+
fragment: (0, client_1.gql) `
|
|
18
21
|
fragment NewTodoMark on TodoMark {
|
|
19
22
|
score
|
|
20
23
|
timeTaken
|
|
@@ -23,3 +26,4 @@ export function saveTodosCache(cache, result, options) {
|
|
|
23
26
|
});
|
|
24
27
|
}
|
|
25
28
|
}
|
|
29
|
+
exports.saveTodosCache = saveTodosCache;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
export function saveTodosCache(cache, result, options) {
|
|
3
|
+
var _a;
|
|
4
|
+
const todoMarkIds = (_a = result.data) === null || _a === void 0 ? void 0 : _a.restricted.saveTodos;
|
|
5
|
+
if (!options.variables || !todoMarkIds) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
for (let i = 0; i < todoMarkIds.length; i++) {
|
|
9
|
+
const todoMark = options.variables.todos[i];
|
|
10
|
+
const todoMarkId = todoMarkIds[i];
|
|
11
|
+
cache.writeFragment({
|
|
12
|
+
id: cache.identify({ id: todoMarkId, __typename: 'TodoMark' }),
|
|
13
|
+
data: {
|
|
14
|
+
score: todoMark.score,
|
|
15
|
+
timeTaken: todoMark.timeTaken || 0,
|
|
16
|
+
},
|
|
17
|
+
fragment: gql `
|
|
18
|
+
fragment NewTodoMark on TodoMark {
|
|
19
|
+
score
|
|
20
|
+
timeTaken
|
|
21
|
+
}
|
|
22
|
+
`,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./user"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './user';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./getUserToken"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './getUserToken';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/resolvers/query/book.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/resolvers/query/index.js
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./author"), exports);
|
|
14
|
+
__exportStar(require("./book"), exports);
|
|
15
|
+
__exportStar(require("./feedback"), exports);
|
|
16
|
+
__exportStar(require("./sampleCards"), exports);
|
|
17
|
+
__exportStar(require("./sampleQuestions"), exports);
|
|
18
|
+
__exportStar(require("./subscription"), exports);
|
|
19
|
+
__exportStar(require("./university"), exports);
|
|
20
|
+
__exportStar(require("./user"), exports);
|
|
21
|
+
__exportStar(require("./video"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './author';
|
|
2
|
+
export * from './book';
|
|
3
|
+
export * from './feedback';
|
|
4
|
+
export * from './sampleCards';
|
|
5
|
+
export * from './sampleQuestions';
|
|
6
|
+
export * from './subscription';
|
|
7
|
+
export * from './university';
|
|
8
|
+
export * from './user';
|
|
9
|
+
export * from './video';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./anatomy"), exports);
|
|
14
|
+
__exportStar(require("./marksheet"), exports);
|
|
15
|
+
__exportStar(require("./mockTests"), exports);
|
|
16
|
+
__exportStar(require("./osce"), exports);
|
|
17
|
+
__exportStar(require("./quesBook"), exports);
|
|
18
|
+
__exportStar(require("./replication"), exports);
|
|
19
|
+
__exportStar(require("./todos"), exports);
|
|
20
|
+
__exportStar(require("./topics"), exports);
|
|
21
|
+
__exportStar(require("./university"), exports);
|
|
22
|
+
__exportStar(require("./user"), exports);
|
|
23
|
+
__exportStar(require("./video"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './anatomy';
|
|
2
|
+
export * from './marksheet';
|
|
3
|
+
export * from './mockTests';
|
|
4
|
+
export * from './osce';
|
|
5
|
+
export * from './quesBook';
|
|
6
|
+
export * from './replication';
|
|
7
|
+
export * from './todos';
|
|
8
|
+
export * from './topics';
|
|
9
|
+
export * from './university';
|
|
10
|
+
export * from './user';
|
|
11
|
+
export * from './video';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { EDifficultyType, Id, IDashboardOsce, IOsceMarksheet, IOsceStation, IOsceStationItem } from '../../../models';
|
|
2
2
|
import { ITopic } from './../../../models/Topic';
|
|
3
|
+
export declare const DASHBOARD_OSCE: import("@apollo/client").DocumentNode;
|
|
3
4
|
export interface IDashboardOsceVar {
|
|
4
5
|
solo: boolean;
|
|
5
6
|
}
|
|
6
7
|
export interface IDashboardOsceData extends IDashboardOsce {
|
|
7
8
|
}
|
|
9
|
+
export declare const OSCE_MARKSHEETS: import("@apollo/client").DocumentNode;
|
|
10
|
+
export interface IOsceMarksheetsVar {
|
|
11
|
+
solo: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare type IOsceMarksheetsData = IOsceMarksheet[];
|
|
14
|
+
export declare const OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
8
15
|
export interface IOsceMarksheetVar {
|
|
9
16
|
id: number;
|
|
10
17
|
}
|
|
11
18
|
export interface IOsceMarksheetData extends IOsceMarksheet {
|
|
12
19
|
}
|
|
13
|
-
export
|
|
14
|
-
id: Id;
|
|
15
|
-
}
|
|
16
|
-
export interface IOsceStationData extends IOsceStation {
|
|
17
|
-
}
|
|
18
|
-
export interface IOsceMarksheetsVar {
|
|
19
|
-
solo: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare type IOsceMarksheetsData = IOsceMarksheet[];
|
|
20
|
+
export declare const OSCE_STATIONS: import("@apollo/client").DocumentNode;
|
|
22
21
|
export interface IOsceStationsVar {
|
|
23
22
|
osceTypeId?: Id;
|
|
24
23
|
solo: boolean;
|
|
@@ -27,14 +26,23 @@ export interface IOsceStationsVar {
|
|
|
27
26
|
difficulty: EDifficultyType[];
|
|
28
27
|
}
|
|
29
28
|
export declare type IOsceStationsData = IOsceStationItem[];
|
|
29
|
+
export declare const OSCE_STATION: import("@apollo/client").DocumentNode;
|
|
30
|
+
export interface IOsceStationVar {
|
|
31
|
+
id: Id;
|
|
32
|
+
}
|
|
33
|
+
export interface IOsceStationData extends IOsceStation {
|
|
34
|
+
}
|
|
35
|
+
export declare const OSCE_TOPICS: import("@apollo/client").DocumentNode;
|
|
36
|
+
export declare type IOsceTopicsVar = null;
|
|
37
|
+
export interface IOsceTopicsData extends ITopic {
|
|
38
|
+
}
|
|
39
|
+
export declare const SEARCH_OSCE_STATIONS: import("@apollo/client").DocumentNode;
|
|
30
40
|
export interface ISearchOsceStationsVar {
|
|
31
41
|
search: string;
|
|
32
42
|
}
|
|
33
43
|
export declare type ISearchOsceStationsData = IOsceStationItem[];
|
|
44
|
+
export declare const HEARTBEAT: import("@apollo/client").DocumentNode;
|
|
34
45
|
export interface IHeartbeatVar {
|
|
35
46
|
agoraId: string;
|
|
36
47
|
}
|
|
37
48
|
export declare type IHeartBeatData = boolean;
|
|
38
|
-
export declare type IOsceTopicsVar = null;
|
|
39
|
-
export interface IOsceTopicsData extends ITopic {
|
|
40
|
-
}
|
|
@@ -1 +1,93 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HEARTBEAT = exports.SEARCH_OSCE_STATIONS = exports.OSCE_TOPICS = exports.OSCE_STATION = exports.OSCE_STATIONS = exports.OSCE_MARKSHEET = exports.OSCE_MARKSHEETS = exports.DASHBOARD_OSCE = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const osce_1 = require("../../fragments/osce");
|
|
6
|
+
const osce_2 = require("./../../fragments/osce");
|
|
7
|
+
exports.DASHBOARD_OSCE = (0, client_1.gql) `
|
|
8
|
+
${osce_1.OSCE_TYPE_FIELDS}
|
|
9
|
+
query DashboardOsce($solo: Boolean!) {
|
|
10
|
+
restricted {
|
|
11
|
+
dashboardOsce(solo: $solo) {
|
|
12
|
+
lastAgoraId
|
|
13
|
+
types {
|
|
14
|
+
...OsceTypeFields
|
|
15
|
+
# user-specific
|
|
16
|
+
completed
|
|
17
|
+
total
|
|
18
|
+
avgScore
|
|
19
|
+
}
|
|
20
|
+
avgScore
|
|
21
|
+
completed
|
|
22
|
+
total
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
exports.OSCE_MARKSHEETS = (0, client_1.gql) `
|
|
28
|
+
${osce_1.OSCE_MARKSHEET_FIELDS}
|
|
29
|
+
query OsceMarksheets($solo: Boolean!) {
|
|
30
|
+
restricted {
|
|
31
|
+
osceMarksheets(solo: $solo) {
|
|
32
|
+
...OsceMarksheetFields
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
37
|
+
exports.OSCE_MARKSHEET = (0, client_1.gql) `
|
|
38
|
+
${osce_1.OSCE_MARKSHEET_FIELDS}
|
|
39
|
+
query OsceMarksheet($osceMarksheetId: Int!) {
|
|
40
|
+
restricted {
|
|
41
|
+
osceMarksheet(id: $osceMarksheetId) {
|
|
42
|
+
...OsceMarksheetFields
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
exports.OSCE_STATIONS = (0, client_1.gql) `
|
|
48
|
+
${osce_2.OSCE_STATION_FIELDS}
|
|
49
|
+
query OsceStations($solo: Boolean!) {
|
|
50
|
+
restricted {
|
|
51
|
+
osceStations(solo: $solo) {
|
|
52
|
+
...OsceStationFields
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
exports.OSCE_STATION = (0, client_1.gql) `
|
|
58
|
+
${osce_2.OSCE_STATION_FIELDS}
|
|
59
|
+
query OsceStation($osceStationId: Int!) {
|
|
60
|
+
restricted {
|
|
61
|
+
osceStation(id: $osceStationId) {
|
|
62
|
+
...OsceStationFields
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
exports.OSCE_TOPICS = (0, client_1.gql) `
|
|
68
|
+
${osce_1.OSCE_STATION_TOPIC_FIELDS}
|
|
69
|
+
query OsceTopics {
|
|
70
|
+
restricted {
|
|
71
|
+
osceTopics {
|
|
72
|
+
...OsceStationTopicFields
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
`;
|
|
77
|
+
exports.SEARCH_OSCE_STATIONS = (0, client_1.gql) `
|
|
78
|
+
${osce_2.OSCE_STATION_FIELDS}
|
|
79
|
+
query SearchOsceStations($search: String!) {
|
|
80
|
+
restricted {
|
|
81
|
+
searchOsceStations(search: $search) {
|
|
82
|
+
...OsceStationFields
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
`;
|
|
87
|
+
exports.HEARTBEAT = (0, client_1.gql) `
|
|
88
|
+
query Heartbeat($agoraId: String!) {
|
|
89
|
+
restricted {
|
|
90
|
+
heartbeat(agoraId: $agoraId)
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
`;
|