@quesmed/types 2.4.18 → 2.4.20
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/mutation/restricted/users.js +17 -1
- package/dist/cjs/resolvers/query/restricted/topics.d.ts +2 -0
- package/dist/cjs/resolvers/query/restricted/topics.js +52 -2
- package/dist/mjs/resolvers/mutation/restricted/users.js +17 -1
- package/dist/mjs/resolvers/query/restricted/topics.d.ts +2 -0
- package/dist/mjs/resolvers/query/restricted/topics.js +51 -1
- package/package.json +1 -1
|
@@ -21,7 +21,23 @@ exports.DELETE_USER = (0, client_1.gql) `
|
|
|
21
21
|
exports.UPDATE_USER = (0, client_1.gql) `
|
|
22
22
|
mutation UpdateUser($id: Int, $data: UserInput!) {
|
|
23
23
|
restricted {
|
|
24
|
-
updateUser(id: $id, data: $data)
|
|
24
|
+
updateUser(id: $id, data: $data) {
|
|
25
|
+
jwt
|
|
26
|
+
user {
|
|
27
|
+
id
|
|
28
|
+
displayName
|
|
29
|
+
username
|
|
30
|
+
firstName
|
|
31
|
+
lastName
|
|
32
|
+
classYear
|
|
33
|
+
graduationYear
|
|
34
|
+
universityId
|
|
35
|
+
examDate
|
|
36
|
+
dailyFeedMax
|
|
37
|
+
dailyFeedResetTime
|
|
38
|
+
tocAccepted
|
|
39
|
+
}
|
|
40
|
+
}
|
|
25
41
|
}
|
|
26
42
|
}
|
|
27
43
|
`;
|
|
@@ -10,3 +10,5 @@ export interface ITopicsVar {
|
|
|
10
10
|
}
|
|
11
11
|
export declare type ITopicsData = RestrictedData<(graphqlNormalize & ITopic)[], 'topics'>;
|
|
12
12
|
export declare const TOPICS: import("@apollo/client").DocumentNode;
|
|
13
|
+
export declare const QUESTION_TOPICS: import("@apollo/client").DocumentNode;
|
|
14
|
+
export declare const FLASHCARDS_TOPICS: import("@apollo/client").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TOPICS = exports.TOPIC = void 0;
|
|
3
|
+
exports.FLASHCARDS_TOPICS = exports.QUESTION_TOPICS = exports.TOPICS = exports.TOPIC = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.TOPIC = (0, client_1.gql) `
|
|
6
6
|
query Topic($topicId: Int!) {
|
|
@@ -34,7 +34,6 @@ exports.TOPICS = (0, client_1.gql) `
|
|
|
34
34
|
greenCards
|
|
35
35
|
yellowCards
|
|
36
36
|
redCards
|
|
37
|
-
dailyFeedCards
|
|
38
37
|
typeId
|
|
39
38
|
concepts {
|
|
40
39
|
id
|
|
@@ -42,6 +41,57 @@ exports.TOPICS = (0, client_1.gql) `
|
|
|
42
41
|
topicId
|
|
43
42
|
totalQuestions
|
|
44
43
|
totalCards
|
|
44
|
+
correctQuestions
|
|
45
|
+
incorrectQuestions
|
|
46
|
+
greenCards
|
|
47
|
+
yellowCards
|
|
48
|
+
redCards
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
exports.QUESTION_TOPICS = (0, client_1.gql) `
|
|
55
|
+
query Topics($filter: Int!) {
|
|
56
|
+
restricted {
|
|
57
|
+
topics(filter: $filter) {
|
|
58
|
+
id
|
|
59
|
+
name
|
|
60
|
+
totalQuestions
|
|
61
|
+
correctQuestions
|
|
62
|
+
incorrectQuestions
|
|
63
|
+
typeId
|
|
64
|
+
concepts {
|
|
65
|
+
id
|
|
66
|
+
name
|
|
67
|
+
topicId
|
|
68
|
+
totalQuestions
|
|
69
|
+
correctQuestions
|
|
70
|
+
incorrectQuestions
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
`;
|
|
76
|
+
exports.FLASHCARDS_TOPICS = (0, client_1.gql) `
|
|
77
|
+
query Topics($filter: Int!) {
|
|
78
|
+
restricted {
|
|
79
|
+
topics(filter: $filter) {
|
|
80
|
+
id
|
|
81
|
+
name
|
|
82
|
+
totalCards
|
|
83
|
+
greenCards
|
|
84
|
+
yellowCards
|
|
85
|
+
redCards
|
|
86
|
+
typeId
|
|
87
|
+
concepts {
|
|
88
|
+
id
|
|
89
|
+
name
|
|
90
|
+
topicId
|
|
91
|
+
totalCards
|
|
92
|
+
greenCards
|
|
93
|
+
yellowCards
|
|
94
|
+
redCards
|
|
45
95
|
}
|
|
46
96
|
}
|
|
47
97
|
}
|
|
@@ -18,7 +18,23 @@ export const DELETE_USER = gql `
|
|
|
18
18
|
export const UPDATE_USER = gql `
|
|
19
19
|
mutation UpdateUser($id: Int, $data: UserInput!) {
|
|
20
20
|
restricted {
|
|
21
|
-
updateUser(id: $id, data: $data)
|
|
21
|
+
updateUser(id: $id, data: $data) {
|
|
22
|
+
jwt
|
|
23
|
+
user {
|
|
24
|
+
id
|
|
25
|
+
displayName
|
|
26
|
+
username
|
|
27
|
+
firstName
|
|
28
|
+
lastName
|
|
29
|
+
classYear
|
|
30
|
+
graduationYear
|
|
31
|
+
universityId
|
|
32
|
+
examDate
|
|
33
|
+
dailyFeedMax
|
|
34
|
+
dailyFeedResetTime
|
|
35
|
+
tocAccepted
|
|
36
|
+
}
|
|
37
|
+
}
|
|
22
38
|
}
|
|
23
39
|
}
|
|
24
40
|
`;
|
|
@@ -10,3 +10,5 @@ export interface ITopicsVar {
|
|
|
10
10
|
}
|
|
11
11
|
export declare type ITopicsData = RestrictedData<(graphqlNormalize & ITopic)[], 'topics'>;
|
|
12
12
|
export declare const TOPICS: import("@apollo/client").DocumentNode;
|
|
13
|
+
export declare const QUESTION_TOPICS: import("@apollo/client").DocumentNode;
|
|
14
|
+
export declare const FLASHCARDS_TOPICS: import("@apollo/client").DocumentNode;
|
|
@@ -31,7 +31,6 @@ export const TOPICS = gql `
|
|
|
31
31
|
greenCards
|
|
32
32
|
yellowCards
|
|
33
33
|
redCards
|
|
34
|
-
dailyFeedCards
|
|
35
34
|
typeId
|
|
36
35
|
concepts {
|
|
37
36
|
id
|
|
@@ -39,6 +38,57 @@ export const TOPICS = gql `
|
|
|
39
38
|
topicId
|
|
40
39
|
totalQuestions
|
|
41
40
|
totalCards
|
|
41
|
+
correctQuestions
|
|
42
|
+
incorrectQuestions
|
|
43
|
+
greenCards
|
|
44
|
+
yellowCards
|
|
45
|
+
redCards
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
51
|
+
export const QUESTION_TOPICS = gql `
|
|
52
|
+
query Topics($filter: Int!) {
|
|
53
|
+
restricted {
|
|
54
|
+
topics(filter: $filter) {
|
|
55
|
+
id
|
|
56
|
+
name
|
|
57
|
+
totalQuestions
|
|
58
|
+
correctQuestions
|
|
59
|
+
incorrectQuestions
|
|
60
|
+
typeId
|
|
61
|
+
concepts {
|
|
62
|
+
id
|
|
63
|
+
name
|
|
64
|
+
topicId
|
|
65
|
+
totalQuestions
|
|
66
|
+
correctQuestions
|
|
67
|
+
incorrectQuestions
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
73
|
+
export const FLASHCARDS_TOPICS = gql `
|
|
74
|
+
query Topics($filter: Int!) {
|
|
75
|
+
restricted {
|
|
76
|
+
topics(filter: $filter) {
|
|
77
|
+
id
|
|
78
|
+
name
|
|
79
|
+
totalCards
|
|
80
|
+
greenCards
|
|
81
|
+
yellowCards
|
|
82
|
+
redCards
|
|
83
|
+
typeId
|
|
84
|
+
concepts {
|
|
85
|
+
id
|
|
86
|
+
name
|
|
87
|
+
topicId
|
|
88
|
+
totalCards
|
|
89
|
+
greenCards
|
|
90
|
+
yellowCards
|
|
91
|
+
redCards
|
|
42
92
|
}
|
|
43
93
|
}
|
|
44
94
|
}
|