@quesmed/types-rn 2.6.277 → 2.6.279
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/MockTest.d.ts +2 -1
- package/models/MockTest.js +1 -0
- package/models/Video.d.ts +2 -0
- package/package.json +1 -1
- package/resolvers/constants.js +1 -1
- package/resolvers/fragments/video.d.ts +1 -0
- package/resolvers/fragments/video.js +13 -1
- package/resolvers/query/restricted/video.js +2 -6
- package/resolvers/query/video.js +2 -6
package/models/MockTest.d.ts
CHANGED
|
@@ -16,7 +16,8 @@ export declare enum EMockTestType {
|
|
|
16
16
|
VERBAL_REASONING = 10,
|
|
17
17
|
DECISION_MAKING = 11,
|
|
18
18
|
QUANTITATIVE_REASONING = 12,
|
|
19
|
-
SITUATIONAL_JUDGEMENT = 13
|
|
19
|
+
SITUATIONAL_JUDGEMENT = 13,
|
|
20
|
+
MSRA_MOCK = 14
|
|
20
21
|
}
|
|
21
22
|
export interface IMockTestType {
|
|
22
23
|
id: EMockTestType;
|
package/models/MockTest.js
CHANGED
|
@@ -17,4 +17,5 @@ var EMockTestType;
|
|
|
17
17
|
EMockTestType[EMockTestType["DECISION_MAKING"] = 11] = "DECISION_MAKING";
|
|
18
18
|
EMockTestType[EMockTestType["QUANTITATIVE_REASONING"] = 12] = "QUANTITATIVE_REASONING";
|
|
19
19
|
EMockTestType[EMockTestType["SITUATIONAL_JUDGEMENT"] = 13] = "SITUATIONAL_JUDGEMENT";
|
|
20
|
+
EMockTestType[EMockTestType["MSRA_MOCK"] = 14] = "MSRA_MOCK";
|
|
20
21
|
})(EMockTestType = exports.EMockTestType || (exports.EMockTestType = {}));
|
package/models/Video.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export type IVideoTokens = {
|
|
|
14
14
|
thumbnail: string;
|
|
15
15
|
storyboard: string;
|
|
16
16
|
gif: string;
|
|
17
|
+
bunnyUrl: string;
|
|
17
18
|
};
|
|
18
19
|
export interface IVideo {
|
|
19
20
|
id: Id;
|
|
@@ -25,6 +26,7 @@ export interface IVideo {
|
|
|
25
26
|
title: string;
|
|
26
27
|
museId: string;
|
|
27
28
|
assetId: string;
|
|
29
|
+
bunnyId: string;
|
|
28
30
|
playbackId: string;
|
|
29
31
|
thumbnail: string;
|
|
30
32
|
views: number;
|
package/package.json
CHANGED
package/resolvers/constants.js
CHANGED
|
@@ -86,7 +86,7 @@ exports.productMapping = {
|
|
|
86
86
|
[models_1.EProductType.MSRA]: {
|
|
87
87
|
db: enums_1.DB_TYPE.FINALS,
|
|
88
88
|
topicType: [models_1.ETopicType.CLINICAL],
|
|
89
|
-
mockType:
|
|
89
|
+
mockType: [models_1.EMockTestType.MSRA_MOCK],
|
|
90
90
|
},
|
|
91
91
|
[models_1.EProductType.INTERVIEW_ANAESTHETICS]: {
|
|
92
92
|
db: enums_1.DB_TYPE.FINALS,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const VIDEO_FILE_FIELDS: import("@apollo/client").DocumentNode;
|
|
2
2
|
export declare const VIDEO_FIELDS: import("@apollo/client").DocumentNode;
|
|
3
|
+
export declare const VIDEO_TOKENS_FIELDS: import("@apollo/client").DocumentNode;
|
|
3
4
|
export declare const VIDEO_STATUS_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
4
5
|
export declare const VIDEO_USER_VIEWED_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VIDEO_USER_VIEWED_FRAGMENT = exports.VIDEO_STATUS_FRAGMENT = exports.VIDEO_FIELDS = exports.VIDEO_FILE_FIELDS = void 0;
|
|
3
|
+
exports.VIDEO_USER_VIEWED_FRAGMENT = exports.VIDEO_STATUS_FRAGMENT = exports.VIDEO_TOKENS_FIELDS = exports.VIDEO_FIELDS = exports.VIDEO_FILE_FIELDS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.VIDEO_FILE_FIELDS = (0, client_1.gql) `
|
|
6
6
|
fragment VideoFileFields on File {
|
|
@@ -19,6 +19,7 @@ exports.VIDEO_FIELDS = (0, client_1.gql) `
|
|
|
19
19
|
status
|
|
20
20
|
title
|
|
21
21
|
museId
|
|
22
|
+
bunnyId
|
|
22
23
|
startTime
|
|
23
24
|
endTime
|
|
24
25
|
thumbnail
|
|
@@ -44,6 +45,17 @@ exports.VIDEO_FIELDS = (0, client_1.gql) `
|
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
`;
|
|
48
|
+
exports.VIDEO_TOKENS_FIELDS = (0, client_1.gql) `
|
|
49
|
+
fragment VideoTokensFields on Video {
|
|
50
|
+
tokens {
|
|
51
|
+
playback
|
|
52
|
+
thumbnail
|
|
53
|
+
storyboard
|
|
54
|
+
gif
|
|
55
|
+
bunnyUrl
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
47
59
|
// used in cache updator
|
|
48
60
|
exports.VIDEO_STATUS_FRAGMENT = (0, client_1.gql) `
|
|
49
61
|
fragment VideoStatus on Video {
|
|
@@ -6,9 +6,11 @@ const fragments_1 = require("../../fragments");
|
|
|
6
6
|
exports.VIDEO = (0, client_1.gql) `
|
|
7
7
|
${fragments_1.PICTURE_FIELDS}
|
|
8
8
|
${fragments_1.CHAPTER_FIELDS}
|
|
9
|
+
${fragments_1.VIDEO_TOKENS_FIELDS}
|
|
9
10
|
query Video($id: Int!) {
|
|
10
11
|
restricted {
|
|
11
12
|
video(id: $id) {
|
|
13
|
+
...VideoTokensFields
|
|
12
14
|
id
|
|
13
15
|
title
|
|
14
16
|
museId
|
|
@@ -18,12 +20,6 @@ exports.VIDEO = (0, client_1.gql) `
|
|
|
18
20
|
thumbnail
|
|
19
21
|
playbackId
|
|
20
22
|
assetId
|
|
21
|
-
tokens {
|
|
22
|
-
playback
|
|
23
|
-
thumbnail
|
|
24
|
-
storyboard
|
|
25
|
-
gif
|
|
26
|
-
}
|
|
27
23
|
concepts {
|
|
28
24
|
id
|
|
29
25
|
name
|
package/resolvers/query/video.js
CHANGED
|
@@ -52,8 +52,10 @@ exports.SAMPLE_VIDEOS = (0, client_1.gql) `
|
|
|
52
52
|
`;
|
|
53
53
|
exports.SAMPLE_VIDEO = (0, client_1.gql) `
|
|
54
54
|
${fragments_1.PICTURE_FIELDS}
|
|
55
|
+
${fragments_1.VIDEO_TOKENS_FIELDS}
|
|
55
56
|
query SampleVideo($id: Int!) {
|
|
56
57
|
video(id: $id) {
|
|
58
|
+
...VideoTokensFields
|
|
57
59
|
id
|
|
58
60
|
title
|
|
59
61
|
museId
|
|
@@ -63,12 +65,6 @@ exports.SAMPLE_VIDEO = (0, client_1.gql) `
|
|
|
63
65
|
thumbnail
|
|
64
66
|
playbackId
|
|
65
67
|
assetId
|
|
66
|
-
tokens {
|
|
67
|
-
playback
|
|
68
|
-
thumbnail
|
|
69
|
-
storyboard
|
|
70
|
-
gif
|
|
71
|
-
}
|
|
72
68
|
concepts {
|
|
73
69
|
id
|
|
74
70
|
name
|