@quesmed/types 1.4.31 → 1.4.32
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/blog.js +1 -1
- package/resolvers/query/blog.mjs +1 -1
- package/resolvers/query/index.d.ts +1 -2
- package/resolvers/query/index.js +1 -2
- package/resolvers/query/index.mjs +1 -2
- package/resolvers/query/sample.d.ts +26 -0
- package/resolvers/query/sample.js +98 -0
- package/resolvers/query/sample.mjs +95 -0
- package/resolvers/query/sampleCards.d.ts +0 -6
- package/resolvers/query/sampleCards.js +0 -2
- package/resolvers/query/sampleCards.mjs +0 -1
- package/resolvers/query/sampleQuestions.d.ts +0 -6
- package/resolvers/query/sampleQuestions.js +0 -2
- package/resolvers/query/sampleQuestions.mjs +0 -1
package/package.json
CHANGED
package/resolvers/query/blog.js
CHANGED
|
@@ -26,7 +26,7 @@ exports.BLOG_POST = (0, client_1.gql) `
|
|
|
26
26
|
exports.BLOG_POSTS = (0, client_1.gql) `
|
|
27
27
|
${blog_1.BLOG_POST_FIELDS}
|
|
28
28
|
query BlogPosts($tags: [Int]!) {
|
|
29
|
-
blogPosts(
|
|
29
|
+
blogPosts(tagIds: $tags) {
|
|
30
30
|
...BlogPostFields
|
|
31
31
|
relatedBlogPosts {
|
|
32
32
|
...BlogPostFields
|
package/resolvers/query/blog.mjs
CHANGED
|
@@ -4,8 +4,7 @@ export * from './blog';
|
|
|
4
4
|
export * from './book';
|
|
5
5
|
export * from './feedback';
|
|
6
6
|
export * as restricted from './restricted';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './sampleQuestions';
|
|
7
|
+
export * from './sample';
|
|
9
8
|
export * from './subscription';
|
|
10
9
|
export * from './university';
|
|
11
10
|
export * from './user';
|
package/resolvers/query/index.js
CHANGED
|
@@ -29,8 +29,7 @@ __exportStar(require("./blog"), exports);
|
|
|
29
29
|
__exportStar(require("./book"), exports);
|
|
30
30
|
__exportStar(require("./feedback"), exports);
|
|
31
31
|
exports.restricted = __importStar(require("./restricted"));
|
|
32
|
-
__exportStar(require("./
|
|
33
|
-
__exportStar(require("./sampleQuestions"), exports);
|
|
32
|
+
__exportStar(require("./sample"), exports);
|
|
34
33
|
__exportStar(require("./subscription"), exports);
|
|
35
34
|
__exportStar(require("./university"), exports);
|
|
36
35
|
__exportStar(require("./user"), exports);
|
|
@@ -4,8 +4,7 @@ export * from './blog';
|
|
|
4
4
|
export * from './book';
|
|
5
5
|
export * from './feedback';
|
|
6
6
|
export * as restricted from './restricted';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './sampleQuestions';
|
|
7
|
+
export * from './sample';
|
|
9
8
|
export * from './subscription';
|
|
10
9
|
export * from './university';
|
|
11
10
|
export * from './user';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IMarksheet, IOsceMarksheet, ITodo } from '../../models';
|
|
2
|
+
import { graphqlNormalize, RootData } from '../types';
|
|
3
|
+
export declare const SAMPLE_CONTENT: import("@apollo/client").DocumentNode;
|
|
4
|
+
export declare type ISampleContentVar = null;
|
|
5
|
+
interface ISampleContent {
|
|
6
|
+
marksheets: IMarksheet[];
|
|
7
|
+
todos: ITodo[];
|
|
8
|
+
osceMarksheets: IOsceMarksheet[];
|
|
9
|
+
}
|
|
10
|
+
export declare type ISampleContentData = RootData<graphqlNormalize & ISampleContent, 'sampleContent'>;
|
|
11
|
+
export declare const SAMPLE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
12
|
+
export interface ISampleMarksheetVar {
|
|
13
|
+
marksheetId: number;
|
|
14
|
+
}
|
|
15
|
+
export declare type ISampleMarksheetData = RootData<graphqlNormalize & IMarksheet, 'sampleMarksheet'>;
|
|
16
|
+
export declare const SAMPLE_TODO: import("@apollo/client").DocumentNode;
|
|
17
|
+
export interface ISampleTodoVar {
|
|
18
|
+
todoId: number;
|
|
19
|
+
}
|
|
20
|
+
export declare type ISampleTodoData = RootData<graphqlNormalize & ITodo, 'sampleTodo'>;
|
|
21
|
+
export declare const SAMPLE_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
22
|
+
export interface ISampleOsceMarksheetVar {
|
|
23
|
+
osceMarksheetId: number;
|
|
24
|
+
}
|
|
25
|
+
export declare type ISampleOsceMarksheetData = RootData<graphqlNormalize & IOsceMarksheet, 'sampleOsceMarksheet'>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SAMPLE_OSCE_MARKSHEET = exports.SAMPLE_TODO = exports.SAMPLE_MARKSHEET = exports.SAMPLE_CONTENT = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const fragments_1 = require("../fragments");
|
|
6
|
+
exports.SAMPLE_CONTENT = (0, client_1.gql) `
|
|
7
|
+
query SampleContent {
|
|
8
|
+
sampleContent {
|
|
9
|
+
marksheets {
|
|
10
|
+
id
|
|
11
|
+
source
|
|
12
|
+
}
|
|
13
|
+
todos {
|
|
14
|
+
id
|
|
15
|
+
source
|
|
16
|
+
}
|
|
17
|
+
osceMarksheets {
|
|
18
|
+
id
|
|
19
|
+
osceStation {
|
|
20
|
+
name
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
exports.SAMPLE_MARKSHEET = (0, client_1.gql) `
|
|
27
|
+
query SampleMarksheet($marksheetId: Int!) {
|
|
28
|
+
sampleMarksheet(marksheetId: $marksheetId) {
|
|
29
|
+
id
|
|
30
|
+
endedAt
|
|
31
|
+
source
|
|
32
|
+
marks {
|
|
33
|
+
id
|
|
34
|
+
index
|
|
35
|
+
questionChoiceId
|
|
36
|
+
timeTaken
|
|
37
|
+
question {
|
|
38
|
+
id
|
|
39
|
+
typeId
|
|
40
|
+
conceptId
|
|
41
|
+
concept {
|
|
42
|
+
name
|
|
43
|
+
chapter {
|
|
44
|
+
explanation
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
question
|
|
48
|
+
totalVotes
|
|
49
|
+
choices {
|
|
50
|
+
id
|
|
51
|
+
name
|
|
52
|
+
explanation
|
|
53
|
+
label
|
|
54
|
+
answer
|
|
55
|
+
votes
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
exports.SAMPLE_TODO = (0, client_1.gql) `
|
|
63
|
+
query SampleTodo($todoId: Int!) {
|
|
64
|
+
sampleTodo(todoId: $todoId) {
|
|
65
|
+
id
|
|
66
|
+
dailyTask
|
|
67
|
+
source
|
|
68
|
+
marks {
|
|
69
|
+
id
|
|
70
|
+
cardId
|
|
71
|
+
score
|
|
72
|
+
timeTaken
|
|
73
|
+
card {
|
|
74
|
+
id
|
|
75
|
+
question
|
|
76
|
+
concept {
|
|
77
|
+
name
|
|
78
|
+
chapter {
|
|
79
|
+
explanation
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
`;
|
|
87
|
+
exports.SAMPLE_OSCE_MARKSHEET = (0, client_1.gql) `
|
|
88
|
+
${fragments_1.OSCE_STATION_FIELDS}
|
|
89
|
+
${fragments_1.OSCE_MARKSHEET_FIELDS}
|
|
90
|
+
query SampleOsceMarksheet($osceMarksheetId: Int!) {
|
|
91
|
+
sampleOsceMarksheet(osceMarksheetId: $osceMarksheetId) {
|
|
92
|
+
...OsceMarksheetFields
|
|
93
|
+
osceStation {
|
|
94
|
+
...OsceStationFields
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { OSCE_MARKSHEET_FIELDS, OSCE_STATION_FIELDS } from '../fragments';
|
|
3
|
+
export const SAMPLE_CONTENT = gql `
|
|
4
|
+
query SampleContent {
|
|
5
|
+
sampleContent {
|
|
6
|
+
marksheets {
|
|
7
|
+
id
|
|
8
|
+
source
|
|
9
|
+
}
|
|
10
|
+
todos {
|
|
11
|
+
id
|
|
12
|
+
source
|
|
13
|
+
}
|
|
14
|
+
osceMarksheets {
|
|
15
|
+
id
|
|
16
|
+
osceStation {
|
|
17
|
+
name
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
export const SAMPLE_MARKSHEET = gql `
|
|
24
|
+
query SampleMarksheet($marksheetId: Int!) {
|
|
25
|
+
sampleMarksheet(marksheetId: $marksheetId) {
|
|
26
|
+
id
|
|
27
|
+
endedAt
|
|
28
|
+
source
|
|
29
|
+
marks {
|
|
30
|
+
id
|
|
31
|
+
index
|
|
32
|
+
questionChoiceId
|
|
33
|
+
timeTaken
|
|
34
|
+
question {
|
|
35
|
+
id
|
|
36
|
+
typeId
|
|
37
|
+
conceptId
|
|
38
|
+
concept {
|
|
39
|
+
name
|
|
40
|
+
chapter {
|
|
41
|
+
explanation
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
question
|
|
45
|
+
totalVotes
|
|
46
|
+
choices {
|
|
47
|
+
id
|
|
48
|
+
name
|
|
49
|
+
explanation
|
|
50
|
+
label
|
|
51
|
+
answer
|
|
52
|
+
votes
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
export const SAMPLE_TODO = gql `
|
|
60
|
+
query SampleTodo($todoId: Int!) {
|
|
61
|
+
sampleTodo(todoId: $todoId) {
|
|
62
|
+
id
|
|
63
|
+
dailyTask
|
|
64
|
+
source
|
|
65
|
+
marks {
|
|
66
|
+
id
|
|
67
|
+
cardId
|
|
68
|
+
score
|
|
69
|
+
timeTaken
|
|
70
|
+
card {
|
|
71
|
+
id
|
|
72
|
+
question
|
|
73
|
+
concept {
|
|
74
|
+
name
|
|
75
|
+
chapter {
|
|
76
|
+
explanation
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
84
|
+
export const SAMPLE_OSCE_MARKSHEET = gql `
|
|
85
|
+
${OSCE_STATION_FIELDS}
|
|
86
|
+
${OSCE_MARKSHEET_FIELDS}
|
|
87
|
+
query SampleOsceMarksheet($osceMarksheetId: Int!) {
|
|
88
|
+
sampleOsceMarksheet(osceMarksheetId: $osceMarksheetId) {
|
|
89
|
+
...OsceMarksheetFields
|
|
90
|
+
osceStation {
|
|
91
|
+
...OsceStationFields
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
`;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|