@quesmed/types-rn 2.6.41 → 2.6.43
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/models/Feedback.d.ts +3 -2
- package/models/OsceStation.d.ts +1 -0
- package/models/Product.d.ts +2 -0
- package/package.json +1 -1
- package/resolvers/fragments/osce.js +1 -0
- package/resolvers/query/feedback.d.ts +5 -3
- package/resolvers/query/feedback.js +3 -2
- package/resolvers/query/restricted/osce.js +1 -0
- package/resolvers/query/restricted/products.js +1 -0
- package/resolvers/query/restricted/quesBook.js +3 -0
- package/resolvers/query/restricted/topics.js +4 -0
- package/resolvers/query/restricted/video.js +11 -60
package/models/Feedback.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEntitlement } from './Product';
|
|
1
|
+
import { EProductType, IEntitlement } from './Product';
|
|
2
2
|
import { Id } from './Type';
|
|
3
3
|
export interface IFeedback {
|
|
4
4
|
id: Id;
|
|
@@ -7,5 +7,6 @@ export interface IFeedback {
|
|
|
7
7
|
name: string;
|
|
8
8
|
feedback: string;
|
|
9
9
|
university: string;
|
|
10
|
-
|
|
10
|
+
productId: EProductType | null;
|
|
11
|
+
product: IEntitlement | null;
|
|
11
12
|
}
|
package/models/OsceStation.d.ts
CHANGED
package/models/Product.d.ts
CHANGED
|
@@ -64,10 +64,12 @@ export declare enum EAppType {
|
|
|
64
64
|
export interface IEntitlement {
|
|
65
65
|
id: EProductType;
|
|
66
66
|
name: string;
|
|
67
|
+
index: number;
|
|
67
68
|
}
|
|
68
69
|
export interface IEntitlementStats {
|
|
69
70
|
id: EProductType;
|
|
70
71
|
name: string;
|
|
72
|
+
index: number;
|
|
71
73
|
displayName: string;
|
|
72
74
|
totalQuestions?: number | null;
|
|
73
75
|
completedQuestions?: number | null;
|
package/package.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { IFeedback } from '../../models';
|
|
2
|
-
import {
|
|
1
|
+
import { EProductType, IFeedback } from '../../models';
|
|
2
|
+
import { RootData, graphqlNormalize } from '../types';
|
|
3
3
|
export type IFeedbackData = RootData<(graphqlNormalize & IFeedback)[], 'feedback'>;
|
|
4
|
-
export type IFeedbackVar =
|
|
4
|
+
export type IFeedbackVar = {
|
|
5
|
+
productId?: EProductType;
|
|
6
|
+
};
|
|
5
7
|
export declare const FEEDBACK: import("@apollo/client").DocumentNode;
|
|
@@ -3,12 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FEEDBACK = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.FEEDBACK = (0, client_1.gql) `
|
|
6
|
-
query Feedback {
|
|
7
|
-
feedback {
|
|
6
|
+
query Feedback($productId: Int) {
|
|
7
|
+
feedback(productId: $productId) {
|
|
8
8
|
id
|
|
9
9
|
name
|
|
10
10
|
feedback
|
|
11
11
|
university
|
|
12
|
+
productId
|
|
12
13
|
product {
|
|
13
14
|
id
|
|
14
15
|
name
|
|
@@ -14,6 +14,7 @@ exports.QBANK_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
|
|
|
14
14
|
entitlement {
|
|
15
15
|
id
|
|
16
16
|
name
|
|
17
|
+
index
|
|
17
18
|
}
|
|
18
19
|
unreadConcepts
|
|
19
20
|
completedConcepts
|
|
@@ -78,6 +79,7 @@ exports.PUBLIC_QBANK_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
|
|
|
78
79
|
entitlement {
|
|
79
80
|
id
|
|
80
81
|
name
|
|
82
|
+
index
|
|
81
83
|
}
|
|
82
84
|
unreadConcepts
|
|
83
85
|
completedConcepts
|
|
@@ -155,6 +157,7 @@ exports.PACE_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
|
|
|
155
157
|
entitlement {
|
|
156
158
|
id
|
|
157
159
|
name
|
|
160
|
+
index
|
|
158
161
|
}
|
|
159
162
|
chapter {
|
|
160
163
|
id
|
|
@@ -11,6 +11,7 @@ exports.TOPIC = (0, client_1.gql) `
|
|
|
11
11
|
entitlement {
|
|
12
12
|
id
|
|
13
13
|
name
|
|
14
|
+
index
|
|
14
15
|
}
|
|
15
16
|
totalQuestions
|
|
16
17
|
correctQuestions
|
|
@@ -43,6 +44,7 @@ exports.TOPICS = (0, client_1.gql) `
|
|
|
43
44
|
entitlement {
|
|
44
45
|
id
|
|
45
46
|
name
|
|
47
|
+
index
|
|
46
48
|
}
|
|
47
49
|
concepts {
|
|
48
50
|
id
|
|
@@ -68,6 +70,7 @@ exports.QUESTION_TOPICS = (0, client_1.gql) `
|
|
|
68
70
|
entitlement {
|
|
69
71
|
id
|
|
70
72
|
name
|
|
73
|
+
index
|
|
71
74
|
}
|
|
72
75
|
concepts {
|
|
73
76
|
id
|
|
@@ -95,6 +98,7 @@ exports.FLASHCARDS_TOPICS = (0, client_1.gql) `
|
|
|
95
98
|
entitlement {
|
|
96
99
|
id
|
|
97
100
|
name
|
|
101
|
+
index
|
|
98
102
|
}
|
|
99
103
|
concepts {
|
|
100
104
|
id
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VIDEOS = exports.VIDEO = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
+
const fragments_1 = require("../../fragments");
|
|
5
6
|
exports.VIDEO = (0, client_1.gql) `
|
|
7
|
+
${fragments_1.PICTURE_FIELDS}
|
|
6
8
|
query Video($id: Int!) {
|
|
7
9
|
restricted {
|
|
8
10
|
video(id: $id) {
|
|
@@ -48,6 +50,11 @@ exports.VIDEO = (0, client_1.gql) `
|
|
|
48
50
|
osceType {
|
|
49
51
|
id
|
|
50
52
|
}
|
|
53
|
+
entitlement {
|
|
54
|
+
id
|
|
55
|
+
name
|
|
56
|
+
index
|
|
57
|
+
}
|
|
51
58
|
candidateBrief
|
|
52
59
|
examinerBrief
|
|
53
60
|
actorBrief
|
|
@@ -66,72 +73,16 @@ exports.VIDEO = (0, client_1.gql) `
|
|
|
66
73
|
}
|
|
67
74
|
}
|
|
68
75
|
candidatePictures {
|
|
69
|
-
|
|
70
|
-
createdAt
|
|
71
|
-
updatedAt
|
|
72
|
-
name
|
|
73
|
-
caption
|
|
74
|
-
path
|
|
75
|
-
path512
|
|
76
|
-
path256
|
|
77
|
-
thumbhash
|
|
78
|
-
topicId
|
|
79
|
-
topic {
|
|
80
|
-
id
|
|
81
|
-
name
|
|
82
|
-
typeId
|
|
83
|
-
}
|
|
76
|
+
...PictureFields
|
|
84
77
|
}
|
|
85
78
|
actorPictures {
|
|
86
|
-
|
|
87
|
-
createdAt
|
|
88
|
-
updatedAt
|
|
89
|
-
name
|
|
90
|
-
caption
|
|
91
|
-
path
|
|
92
|
-
path512
|
|
93
|
-
path256
|
|
94
|
-
thumbhash
|
|
95
|
-
topicId
|
|
96
|
-
topic {
|
|
97
|
-
id
|
|
98
|
-
name
|
|
99
|
-
typeId
|
|
100
|
-
}
|
|
79
|
+
...PictureFields
|
|
101
80
|
}
|
|
102
81
|
examinerPictures {
|
|
103
|
-
|
|
104
|
-
createdAt
|
|
105
|
-
updatedAt
|
|
106
|
-
name
|
|
107
|
-
caption
|
|
108
|
-
path
|
|
109
|
-
path512
|
|
110
|
-
path256
|
|
111
|
-
thumbhash
|
|
112
|
-
topicId
|
|
113
|
-
topic {
|
|
114
|
-
id
|
|
115
|
-
name
|
|
116
|
-
typeId
|
|
117
|
-
}
|
|
82
|
+
...PictureFields
|
|
118
83
|
}
|
|
119
84
|
walkthroughPictures {
|
|
120
|
-
|
|
121
|
-
createdAt
|
|
122
|
-
updatedAt
|
|
123
|
-
name
|
|
124
|
-
caption
|
|
125
|
-
path
|
|
126
|
-
path512
|
|
127
|
-
path256
|
|
128
|
-
thumbhash
|
|
129
|
-
topicId
|
|
130
|
-
topic {
|
|
131
|
-
id
|
|
132
|
-
name
|
|
133
|
-
typeId
|
|
134
|
-
}
|
|
85
|
+
...PictureFields
|
|
135
86
|
}
|
|
136
87
|
lastOsceMarksheetId
|
|
137
88
|
}
|