@quesmed/types 2.6.70 → 2.6.72
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/resolvers/query/restricted/concepts.js +8 -0
- package/dist/cjs/resolvers/query/restricted/qBank.js +10 -0
- package/dist/cjs/resolvers/query/sample.d.ts +4 -2
- package/dist/cjs/resolvers/query/sample.js +34 -86
- package/dist/mjs/resolvers/query/restricted/concepts.js +8 -0
- package/dist/mjs/resolvers/query/restricted/qBank.js +10 -0
- package/dist/mjs/resolvers/query/sample.d.ts +4 -2
- package/dist/mjs/resolvers/query/sample.js +35 -87
- package/package.json +1 -1
|
@@ -12,6 +12,10 @@ exports.CONCEPT = (0, client_1.gql) `
|
|
|
12
12
|
name
|
|
13
13
|
status
|
|
14
14
|
totalCards
|
|
15
|
+
entitlement {
|
|
16
|
+
id
|
|
17
|
+
name
|
|
18
|
+
}
|
|
15
19
|
topic {
|
|
16
20
|
id
|
|
17
21
|
name
|
|
@@ -52,6 +56,10 @@ exports.CONCEPTS = (0, client_1.gql) `
|
|
|
52
56
|
name
|
|
53
57
|
status
|
|
54
58
|
totalCards
|
|
59
|
+
entitlement {
|
|
60
|
+
id
|
|
61
|
+
name
|
|
62
|
+
}
|
|
55
63
|
topic {
|
|
56
64
|
id
|
|
57
65
|
name
|
|
@@ -102,6 +102,11 @@ exports.DASHBOARD_QBANK = (0, client_1.gql) `
|
|
|
102
102
|
topics(filter: 0) {
|
|
103
103
|
id
|
|
104
104
|
name
|
|
105
|
+
entitlement {
|
|
106
|
+
id
|
|
107
|
+
name
|
|
108
|
+
index
|
|
109
|
+
}
|
|
105
110
|
totalQuestions
|
|
106
111
|
correctQuestions
|
|
107
112
|
incorrectQuestions
|
|
@@ -205,6 +210,11 @@ exports.DASHBOARD = (0, client_1.gql) `
|
|
|
205
210
|
topics(filter: 0, order: $order) {
|
|
206
211
|
id
|
|
207
212
|
name
|
|
213
|
+
entitlement {
|
|
214
|
+
id
|
|
215
|
+
name
|
|
216
|
+
index
|
|
217
|
+
}
|
|
208
218
|
totalQuestions
|
|
209
219
|
correctQuestions
|
|
210
220
|
incorrectQuestions
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { IMarksheet, IOsceMarksheet, ITodo } from '../../models';
|
|
1
|
+
import { EProductType, IMarksheet, IOsceMarksheet, ITodo } from '../../models';
|
|
2
2
|
import { RootData, graphqlNormalize } from '../types';
|
|
3
3
|
export declare const SAMPLE_CONTENT: import("@apollo/client").DocumentNode;
|
|
4
|
-
export type ISampleContentVar =
|
|
4
|
+
export type ISampleContentVar = {
|
|
5
|
+
productType: EProductType;
|
|
6
|
+
};
|
|
5
7
|
interface ISampleContent {
|
|
6
8
|
marksheets: IMarksheet[];
|
|
7
9
|
todos: ITodo[];
|
|
@@ -4,8 +4,8 @@ exports.SAMPLE_OSCE_MARKSHEET = exports.SAMPLE_TODO = exports.SAMPLE_MARKSHEET =
|
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const fragments_1 = require("../fragments");
|
|
6
6
|
exports.SAMPLE_CONTENT = (0, client_1.gql) `
|
|
7
|
-
query SampleContent {
|
|
8
|
-
sampleContent {
|
|
7
|
+
query SampleContent($productType: Int!) {
|
|
8
|
+
sampleContent(productType: $productType) {
|
|
9
9
|
marksheets {
|
|
10
10
|
id
|
|
11
11
|
source
|
|
@@ -25,78 +25,15 @@ exports.SAMPLE_CONTENT = (0, client_1.gql) `
|
|
|
25
25
|
}
|
|
26
26
|
`;
|
|
27
27
|
exports.SAMPLE_MARKSHEET = (0, client_1.gql) `
|
|
28
|
+
${fragments_1.MARKSHEET_FIELDS}
|
|
28
29
|
query SampleMarksheet($marksheetId: Int!) {
|
|
29
30
|
sampleMarksheet(marksheetId: $marksheetId) {
|
|
30
|
-
|
|
31
|
-
endedAt
|
|
32
|
-
solo
|
|
33
|
-
source
|
|
34
|
-
marks {
|
|
35
|
-
id
|
|
36
|
-
index
|
|
37
|
-
flagged
|
|
38
|
-
striked
|
|
39
|
-
questionChoiceId
|
|
40
|
-
marksheetId
|
|
41
|
-
isAnswered
|
|
42
|
-
timeTaken
|
|
43
|
-
question {
|
|
44
|
-
id
|
|
45
|
-
typeId
|
|
46
|
-
conceptId
|
|
47
|
-
concept {
|
|
48
|
-
id
|
|
49
|
-
name
|
|
50
|
-
chapter {
|
|
51
|
-
id
|
|
52
|
-
explanation
|
|
53
|
-
pictures {
|
|
54
|
-
id
|
|
55
|
-
createdAt
|
|
56
|
-
updatedAt
|
|
57
|
-
name
|
|
58
|
-
caption
|
|
59
|
-
path
|
|
60
|
-
path512
|
|
61
|
-
path256
|
|
62
|
-
thumbhash
|
|
63
|
-
index
|
|
64
|
-
topicId
|
|
65
|
-
topic {
|
|
66
|
-
id
|
|
67
|
-
name
|
|
68
|
-
typeId
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
question
|
|
74
|
-
totalVotes
|
|
75
|
-
choices {
|
|
76
|
-
id
|
|
77
|
-
name
|
|
78
|
-
explanation
|
|
79
|
-
label
|
|
80
|
-
answer
|
|
81
|
-
votes
|
|
82
|
-
picture {
|
|
83
|
-
id
|
|
84
|
-
createdAt
|
|
85
|
-
updatedAt
|
|
86
|
-
name
|
|
87
|
-
caption
|
|
88
|
-
path
|
|
89
|
-
path512
|
|
90
|
-
path256
|
|
91
|
-
thumbhash
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
31
|
+
...MarksheetFields
|
|
96
32
|
}
|
|
97
33
|
}
|
|
98
34
|
`;
|
|
99
35
|
exports.SAMPLE_TODO = (0, client_1.gql) `
|
|
36
|
+
${fragments_1.CHAPTER_FIELDS}
|
|
100
37
|
query SampleTodo($todoId: Int!) {
|
|
101
38
|
sampleTodo(todoId: $todoId) {
|
|
102
39
|
id
|
|
@@ -108,33 +45,44 @@ exports.SAMPLE_TODO = (0, client_1.gql) `
|
|
|
108
45
|
score
|
|
109
46
|
timeTaken
|
|
110
47
|
card {
|
|
111
|
-
id
|
|
112
48
|
question
|
|
113
49
|
explanation
|
|
114
50
|
concept {
|
|
51
|
+
id
|
|
115
52
|
name
|
|
116
|
-
|
|
53
|
+
topic {
|
|
117
54
|
id
|
|
118
|
-
|
|
119
|
-
|
|
55
|
+
name
|
|
56
|
+
typeId
|
|
57
|
+
}
|
|
58
|
+
videos {
|
|
59
|
+
id
|
|
60
|
+
title
|
|
61
|
+
museId
|
|
62
|
+
thumbnail
|
|
63
|
+
concepts {
|
|
120
64
|
id
|
|
121
|
-
createdAt
|
|
122
|
-
updatedAt
|
|
123
65
|
name
|
|
124
|
-
caption
|
|
125
|
-
path
|
|
126
|
-
path512
|
|
127
|
-
path256
|
|
128
|
-
thumbhash
|
|
129
|
-
index
|
|
130
|
-
topicId
|
|
131
|
-
topic {
|
|
132
|
-
id
|
|
133
|
-
name
|
|
134
|
-
typeId
|
|
135
|
-
}
|
|
136
66
|
}
|
|
67
|
+
live
|
|
68
|
+
description
|
|
69
|
+
duration
|
|
137
70
|
}
|
|
71
|
+
chapter {
|
|
72
|
+
...ChapterFields
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
pictures {
|
|
76
|
+
id
|
|
77
|
+
createdAt
|
|
78
|
+
updatedAt
|
|
79
|
+
name
|
|
80
|
+
index
|
|
81
|
+
caption
|
|
82
|
+
path
|
|
83
|
+
path512
|
|
84
|
+
path256
|
|
85
|
+
thumbhash
|
|
138
86
|
}
|
|
139
87
|
}
|
|
140
88
|
}
|
|
@@ -9,6 +9,10 @@ export const CONCEPT = gql `
|
|
|
9
9
|
name
|
|
10
10
|
status
|
|
11
11
|
totalCards
|
|
12
|
+
entitlement {
|
|
13
|
+
id
|
|
14
|
+
name
|
|
15
|
+
}
|
|
12
16
|
topic {
|
|
13
17
|
id
|
|
14
18
|
name
|
|
@@ -49,6 +53,10 @@ export const CONCEPTS = gql `
|
|
|
49
53
|
name
|
|
50
54
|
status
|
|
51
55
|
totalCards
|
|
56
|
+
entitlement {
|
|
57
|
+
id
|
|
58
|
+
name
|
|
59
|
+
}
|
|
52
60
|
topic {
|
|
53
61
|
id
|
|
54
62
|
name
|
|
@@ -99,6 +99,11 @@ export const DASHBOARD_QBANK = gql `
|
|
|
99
99
|
topics(filter: 0) {
|
|
100
100
|
id
|
|
101
101
|
name
|
|
102
|
+
entitlement {
|
|
103
|
+
id
|
|
104
|
+
name
|
|
105
|
+
index
|
|
106
|
+
}
|
|
102
107
|
totalQuestions
|
|
103
108
|
correctQuestions
|
|
104
109
|
incorrectQuestions
|
|
@@ -202,6 +207,11 @@ export const DASHBOARD = gql `
|
|
|
202
207
|
topics(filter: 0, order: $order) {
|
|
203
208
|
id
|
|
204
209
|
name
|
|
210
|
+
entitlement {
|
|
211
|
+
id
|
|
212
|
+
name
|
|
213
|
+
index
|
|
214
|
+
}
|
|
205
215
|
totalQuestions
|
|
206
216
|
correctQuestions
|
|
207
217
|
incorrectQuestions
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { IMarksheet, IOsceMarksheet, ITodo } from '../../models';
|
|
1
|
+
import { EProductType, IMarksheet, IOsceMarksheet, ITodo } from '../../models';
|
|
2
2
|
import { RootData, graphqlNormalize } from '../types';
|
|
3
3
|
export declare const SAMPLE_CONTENT: import("@apollo/client").DocumentNode;
|
|
4
|
-
export type ISampleContentVar =
|
|
4
|
+
export type ISampleContentVar = {
|
|
5
|
+
productType: EProductType;
|
|
6
|
+
};
|
|
5
7
|
interface ISampleContent {
|
|
6
8
|
marksheets: IMarksheet[];
|
|
7
9
|
todos: ITodo[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
|
-
import { OSCE_MARKSHEET_FIELDS, OSCE_STATION_FIELDS } from '../fragments';
|
|
2
|
+
import { CHAPTER_FIELDS, MARKSHEET_FIELDS, OSCE_MARKSHEET_FIELDS, OSCE_STATION_FIELDS, } from '../fragments';
|
|
3
3
|
export const SAMPLE_CONTENT = gql `
|
|
4
|
-
query SampleContent {
|
|
5
|
-
sampleContent {
|
|
4
|
+
query SampleContent($productType: Int!) {
|
|
5
|
+
sampleContent(productType: $productType) {
|
|
6
6
|
marksheets {
|
|
7
7
|
id
|
|
8
8
|
source
|
|
@@ -22,78 +22,15 @@ export const SAMPLE_CONTENT = gql `
|
|
|
22
22
|
}
|
|
23
23
|
`;
|
|
24
24
|
export const SAMPLE_MARKSHEET = gql `
|
|
25
|
+
${MARKSHEET_FIELDS}
|
|
25
26
|
query SampleMarksheet($marksheetId: Int!) {
|
|
26
27
|
sampleMarksheet(marksheetId: $marksheetId) {
|
|
27
|
-
|
|
28
|
-
endedAt
|
|
29
|
-
solo
|
|
30
|
-
source
|
|
31
|
-
marks {
|
|
32
|
-
id
|
|
33
|
-
index
|
|
34
|
-
flagged
|
|
35
|
-
striked
|
|
36
|
-
questionChoiceId
|
|
37
|
-
marksheetId
|
|
38
|
-
isAnswered
|
|
39
|
-
timeTaken
|
|
40
|
-
question {
|
|
41
|
-
id
|
|
42
|
-
typeId
|
|
43
|
-
conceptId
|
|
44
|
-
concept {
|
|
45
|
-
id
|
|
46
|
-
name
|
|
47
|
-
chapter {
|
|
48
|
-
id
|
|
49
|
-
explanation
|
|
50
|
-
pictures {
|
|
51
|
-
id
|
|
52
|
-
createdAt
|
|
53
|
-
updatedAt
|
|
54
|
-
name
|
|
55
|
-
caption
|
|
56
|
-
path
|
|
57
|
-
path512
|
|
58
|
-
path256
|
|
59
|
-
thumbhash
|
|
60
|
-
index
|
|
61
|
-
topicId
|
|
62
|
-
topic {
|
|
63
|
-
id
|
|
64
|
-
name
|
|
65
|
-
typeId
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
question
|
|
71
|
-
totalVotes
|
|
72
|
-
choices {
|
|
73
|
-
id
|
|
74
|
-
name
|
|
75
|
-
explanation
|
|
76
|
-
label
|
|
77
|
-
answer
|
|
78
|
-
votes
|
|
79
|
-
picture {
|
|
80
|
-
id
|
|
81
|
-
createdAt
|
|
82
|
-
updatedAt
|
|
83
|
-
name
|
|
84
|
-
caption
|
|
85
|
-
path
|
|
86
|
-
path512
|
|
87
|
-
path256
|
|
88
|
-
thumbhash
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
28
|
+
...MarksheetFields
|
|
93
29
|
}
|
|
94
30
|
}
|
|
95
31
|
`;
|
|
96
32
|
export const SAMPLE_TODO = gql `
|
|
33
|
+
${CHAPTER_FIELDS}
|
|
97
34
|
query SampleTodo($todoId: Int!) {
|
|
98
35
|
sampleTodo(todoId: $todoId) {
|
|
99
36
|
id
|
|
@@ -105,33 +42,44 @@ export const SAMPLE_TODO = gql `
|
|
|
105
42
|
score
|
|
106
43
|
timeTaken
|
|
107
44
|
card {
|
|
108
|
-
id
|
|
109
45
|
question
|
|
110
46
|
explanation
|
|
111
47
|
concept {
|
|
48
|
+
id
|
|
112
49
|
name
|
|
113
|
-
|
|
50
|
+
topic {
|
|
114
51
|
id
|
|
115
|
-
|
|
116
|
-
|
|
52
|
+
name
|
|
53
|
+
typeId
|
|
54
|
+
}
|
|
55
|
+
videos {
|
|
56
|
+
id
|
|
57
|
+
title
|
|
58
|
+
museId
|
|
59
|
+
thumbnail
|
|
60
|
+
concepts {
|
|
117
61
|
id
|
|
118
|
-
createdAt
|
|
119
|
-
updatedAt
|
|
120
62
|
name
|
|
121
|
-
caption
|
|
122
|
-
path
|
|
123
|
-
path512
|
|
124
|
-
path256
|
|
125
|
-
thumbhash
|
|
126
|
-
index
|
|
127
|
-
topicId
|
|
128
|
-
topic {
|
|
129
|
-
id
|
|
130
|
-
name
|
|
131
|
-
typeId
|
|
132
|
-
}
|
|
133
63
|
}
|
|
64
|
+
live
|
|
65
|
+
description
|
|
66
|
+
duration
|
|
134
67
|
}
|
|
68
|
+
chapter {
|
|
69
|
+
...ChapterFields
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
pictures {
|
|
73
|
+
id
|
|
74
|
+
createdAt
|
|
75
|
+
updatedAt
|
|
76
|
+
name
|
|
77
|
+
index
|
|
78
|
+
caption
|
|
79
|
+
path
|
|
80
|
+
path512
|
|
81
|
+
path256
|
|
82
|
+
thumbhash
|
|
135
83
|
}
|
|
136
84
|
}
|
|
137
85
|
}
|