@quesmed/types 2.5.114 → 2.6.1

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.
Files changed (45) hide show
  1. package/dist/cjs/models/MockTest.d.ts +2 -1
  2. package/dist/cjs/models/MockTest.js +1 -0
  3. package/dist/cjs/models/Picture.d.ts +1 -0
  4. package/dist/cjs/resolvers/constants.js +2 -2
  5. package/dist/cjs/resolvers/fragments/blog.js +1 -0
  6. package/dist/cjs/resolvers/fragments/chapter.js +1 -0
  7. package/dist/cjs/resolvers/fragments/marksheet.js +3 -0
  8. package/dist/cjs/resolvers/fragments/picture.js +1 -0
  9. package/dist/cjs/resolvers/fragments/user.js +1 -0
  10. package/dist/cjs/resolvers/mutation/restricted/marksheet.js +63 -0
  11. package/dist/cjs/resolvers/mutation/restricted/todo.d.ts +2 -2
  12. package/dist/cjs/resolvers/mutation/restricted/todo.js +1 -0
  13. package/dist/cjs/resolvers/query/restricted/marksheet.d.ts +1 -1
  14. package/dist/cjs/resolvers/query/restricted/marksheet.js +66 -0
  15. package/dist/cjs/resolvers/query/restricted/quesBook.js +2 -0
  16. package/dist/cjs/resolvers/query/restricted/question.js +21 -0
  17. package/dist/cjs/resolvers/query/restricted/replication.js +4 -1
  18. package/dist/cjs/resolvers/query/restricted/todos.js +2 -0
  19. package/dist/cjs/resolvers/query/restricted/video.js +5 -0
  20. package/dist/cjs/resolvers/query/sample.d.ts +1 -1
  21. package/dist/cjs/resolvers/query/sample.js +3 -0
  22. package/dist/cjs/resolvers/query/video.js +6 -0
  23. package/dist/mjs/models/MockTest.d.ts +2 -1
  24. package/dist/mjs/models/MockTest.js +1 -0
  25. package/dist/mjs/models/Picture.d.ts +1 -0
  26. package/dist/mjs/resolvers/constants.js +2 -2
  27. package/dist/mjs/resolvers/fragments/blog.js +1 -0
  28. package/dist/mjs/resolvers/fragments/chapter.js +1 -0
  29. package/dist/mjs/resolvers/fragments/marksheet.js +3 -0
  30. package/dist/mjs/resolvers/fragments/picture.js +1 -0
  31. package/dist/mjs/resolvers/fragments/user.js +1 -0
  32. package/dist/mjs/resolvers/mutation/restricted/marksheet.js +63 -0
  33. package/dist/mjs/resolvers/mutation/restricted/todo.d.ts +2 -2
  34. package/dist/mjs/resolvers/mutation/restricted/todo.js +1 -0
  35. package/dist/mjs/resolvers/query/restricted/marksheet.d.ts +1 -1
  36. package/dist/mjs/resolvers/query/restricted/marksheet.js +66 -0
  37. package/dist/mjs/resolvers/query/restricted/quesBook.js +2 -0
  38. package/dist/mjs/resolvers/query/restricted/question.js +21 -0
  39. package/dist/mjs/resolvers/query/restricted/replication.js +4 -1
  40. package/dist/mjs/resolvers/query/restricted/todos.js +2 -0
  41. package/dist/mjs/resolvers/query/restricted/video.js +5 -0
  42. package/dist/mjs/resolvers/query/sample.d.ts +1 -1
  43. package/dist/mjs/resolvers/query/sample.js +3 -0
  44. package/dist/mjs/resolvers/query/video.js +6 -0
  45. package/package.json +1 -1
@@ -71,6 +71,7 @@ exports.TODO = (0, client_1.gql) `
71
71
  path
72
72
  path512
73
73
  path256
74
+ thumbhash
74
75
  index
75
76
  }
76
77
  }
@@ -85,6 +86,7 @@ exports.TODO = (0, client_1.gql) `
85
86
  path
86
87
  path512
87
88
  path256
89
+ thumbhash
88
90
  }
89
91
  }
90
92
  }
@@ -32,6 +32,7 @@ exports.VIDEO = (0, client_1.gql) `
32
32
  path
33
33
  path512
34
34
  path256
35
+ thumbhash
35
36
  index
36
37
  topicId
37
38
  }
@@ -71,6 +72,7 @@ exports.VIDEO = (0, client_1.gql) `
71
72
  path
72
73
  path512
73
74
  path256
75
+ thumbhash
74
76
  topicId
75
77
  topic {
76
78
  id
@@ -87,6 +89,7 @@ exports.VIDEO = (0, client_1.gql) `
87
89
  path
88
90
  path512
89
91
  path256
92
+ thumbhash
90
93
  topicId
91
94
  topic {
92
95
  id
@@ -103,6 +106,7 @@ exports.VIDEO = (0, client_1.gql) `
103
106
  path
104
107
  path512
105
108
  path256
109
+ thumbhash
106
110
  topicId
107
111
  topic {
108
112
  id
@@ -119,6 +123,7 @@ exports.VIDEO = (0, client_1.gql) `
119
123
  path
120
124
  path512
121
125
  path256
126
+ thumbhash
122
127
  topicId
123
128
  topic {
124
129
  id
@@ -1,5 +1,5 @@
1
1
  import { IMarksheet, IOsceMarksheet, ITodo } from '../../models';
2
- import { graphqlNormalize, RootData } from '../types';
2
+ import { RootData, graphqlNormalize } from '../types';
3
3
  export declare const SAMPLE_CONTENT: import("@apollo/client").DocumentNode;
4
4
  export type ISampleContentVar = null;
5
5
  interface ISampleContent {
@@ -59,6 +59,7 @@ exports.SAMPLE_MARKSHEET = (0, client_1.gql) `
59
59
  path
60
60
  path512
61
61
  path256
62
+ thumbhash
62
63
  index
63
64
  topicId
64
65
  topic {
@@ -87,6 +88,7 @@ exports.SAMPLE_MARKSHEET = (0, client_1.gql) `
87
88
  path
88
89
  path512
89
90
  path256
91
+ thumbhash
90
92
  }
91
93
  }
92
94
  }
@@ -123,6 +125,7 @@ exports.SAMPLE_TODO = (0, client_1.gql) `
123
125
  path
124
126
  path512
125
127
  path256
128
+ thumbhash
126
129
  index
127
130
  topicId
128
131
  topic {
@@ -47,6 +47,7 @@ exports.SAMPLE_VIDEOS = (0, client_1.gql) `
47
47
  path
48
48
  path512
49
49
  path256
50
+ thumbhash
50
51
  index
51
52
  topicId
52
53
  topic {
@@ -84,6 +85,7 @@ exports.SAMPLE_VIDEO = (0, client_1.gql) `
84
85
  path
85
86
  path512
86
87
  path256
88
+ thumbhash
87
89
  index
88
90
  topicId
89
91
  topic {
@@ -121,6 +123,7 @@ exports.SAMPLE_VIDEO = (0, client_1.gql) `
121
123
  path
122
124
  path512
123
125
  path256
126
+ thumbhash
124
127
  topicId
125
128
  topic {
126
129
  id
@@ -137,6 +140,7 @@ exports.SAMPLE_VIDEO = (0, client_1.gql) `
137
140
  path
138
141
  path512
139
142
  path256
143
+ thumbhash
140
144
  topicId
141
145
  topic {
142
146
  id
@@ -153,6 +157,7 @@ exports.SAMPLE_VIDEO = (0, client_1.gql) `
153
157
  path
154
158
  path512
155
159
  path256
160
+ thumbhash
156
161
  topicId
157
162
  topic {
158
163
  id
@@ -169,6 +174,7 @@ exports.SAMPLE_VIDEO = (0, client_1.gql) `
169
174
  path
170
175
  path512
171
176
  path256
177
+ thumbhash
172
178
  topicId
173
179
  topic {
174
180
  id
@@ -8,7 +8,8 @@ export declare enum EMockTestType {
8
8
  MISCELLANEOUS = 3,
9
9
  UNIVERSITY_SPECIFIC = 4,
10
10
  ANATOMY_SPOTTER = 5,
11
- UKMLA = 6
11
+ UKMLA = 6,
12
+ MRCP = 7
12
13
  }
13
14
  export interface IMockTestType {
14
15
  id: EMockTestType;
@@ -7,4 +7,5 @@ export var EMockTestType;
7
7
  EMockTestType[EMockTestType["UNIVERSITY_SPECIFIC"] = 4] = "UNIVERSITY_SPECIFIC";
8
8
  EMockTestType[EMockTestType["ANATOMY_SPOTTER"] = 5] = "ANATOMY_SPOTTER";
9
9
  EMockTestType[EMockTestType["UKMLA"] = 6] = "UKMLA";
10
+ EMockTestType[EMockTestType["MRCP"] = 7] = "MRCP";
10
11
  })(EMockTestType || (EMockTestType = {}));
@@ -11,6 +11,7 @@ export interface IPicture {
11
11
  path: string;
12
12
  path512: string;
13
13
  path256: string;
14
+ thumbhash: string;
14
15
  topicId: Id;
15
16
  topic: ITopic;
16
17
  index: number;
@@ -59,13 +59,13 @@ export const productMapping = {
59
59
  db: DB_TYPE.MRCP,
60
60
  topicType: [ETopicType.CLINICAL],
61
61
  builderTopicType: [ETopicType.CLINICAL],
62
- mockType: ALL_MOCKS,
62
+ mockType: [EMockTestType.MRCP],
63
63
  },
64
64
  [EProductType.MRCP_PART2]: {
65
65
  db: DB_TYPE.MRCP,
66
66
  topicType: [ETopicType.CLINICAL],
67
67
  builderTopicType: [ETopicType.CLINICAL],
68
- mockType: ALL_MOCKS,
68
+ mockType: [EMockTestType.MRCP],
69
69
  },
70
70
  [EProductType.PACES]: {
71
71
  db: DB_TYPE.MRCP,
@@ -12,6 +12,7 @@ export const BLOG_POST_FIELDS = gql `
12
12
  path
13
13
  path512
14
14
  path256
15
+ thumbhash
15
16
  caption
16
17
  }
17
18
  body
@@ -15,6 +15,7 @@ export const CHAPTER_FIELDS = gql `
15
15
  path
16
16
  path512
17
17
  path256
18
+ thumbhash
18
19
  index
19
20
  topicId
20
21
  topic {
@@ -38,6 +38,7 @@ export const MARKSHEET_MARK_FIELDS = gql `
38
38
  path
39
39
  path512
40
40
  path256
41
+ thumbhash
41
42
  }
42
43
  }
43
44
  comments {
@@ -84,6 +85,7 @@ export const MARKSHEET_MARK_FIELDS = gql `
84
85
  path
85
86
  path512
86
87
  path256
88
+ thumbhash
87
89
  index
88
90
  topicId
89
91
  topic {
@@ -120,6 +122,7 @@ export const MARKSHEET_MARK_FIELDS = gql `
120
122
  path
121
123
  path512
122
124
  path256
125
+ thumbhash
123
126
  topicId
124
127
  topic {
125
128
  id
@@ -9,6 +9,7 @@ export const PICTURE_FIELDS = gql `
9
9
  path
10
10
  path512
11
11
  path256
12
+ thumbhash
12
13
  index
13
14
  topicId
14
15
  topic {
@@ -105,6 +105,7 @@ export const COMPLETED_CARDS = gql `
105
105
  path
106
106
  path512
107
107
  path256
108
+ thumbhash
108
109
  topicId
109
110
  topic {
110
111
  id