@quesmed/types-rn 2.6.71 → 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/package.json +1 -1
- package/resolvers/query/sample.d.ts +4 -2
- package/resolvers/query/sample.js +34 -86
package/package.json
CHANGED
|
@@ -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
|
}
|