@quesmed/types 2.6.275 → 2.6.278
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/models/Product.d.ts +4 -2
- package/dist/cjs/models/Product.js +2 -0
- package/dist/cjs/models/Topic.d.ts +2 -1
- package/dist/cjs/models/Topic.js +1 -0
- package/dist/cjs/models/User.d.ts +2 -0
- package/dist/cjs/models/User.js +2 -0
- package/dist/cjs/models/Video.d.ts +2 -0
- package/dist/cjs/resolvers/constants.js +6 -0
- package/dist/cjs/resolvers/fragments/user.js +1 -0
- package/dist/cjs/resolvers/fragments/video.d.ts +1 -0
- package/dist/cjs/resolvers/fragments/video.js +13 -1
- package/dist/cjs/resolvers/query/restricted/video.js +2 -6
- package/dist/cjs/resolvers/query/video.js +2 -6
- package/dist/mjs/models/Product.d.ts +4 -2
- package/dist/mjs/models/Product.js +2 -0
- package/dist/mjs/models/Topic.d.ts +2 -1
- package/dist/mjs/models/Topic.js +1 -0
- package/dist/mjs/models/User.d.ts +2 -0
- package/dist/mjs/models/User.js +2 -0
- package/dist/mjs/models/Video.d.ts +2 -0
- package/dist/mjs/resolvers/constants.js +6 -0
- package/dist/mjs/resolvers/fragments/user.js +1 -0
- package/dist/mjs/resolvers/fragments/video.d.ts +1 -0
- package/dist/mjs/resolvers/fragments/video.js +12 -0
- package/dist/mjs/resolvers/query/restricted/video.js +3 -7
- package/dist/mjs/resolvers/query/video.js +3 -7
- package/package.json +1 -1
|
@@ -49,7 +49,8 @@ export declare enum EProductType {
|
|
|
49
49
|
MRCP_VIDEO = 53,
|
|
50
50
|
MRCP_BUNDLE = 54,
|
|
51
51
|
COMPLETE_CLINICAL_BUNDLE = 55,
|
|
52
|
-
UNDERGRAD_BUNDLE = 56
|
|
52
|
+
UNDERGRAD_BUNDLE = 56,
|
|
53
|
+
MRCP_PART2_VIDEO = 60
|
|
53
54
|
}
|
|
54
55
|
export declare enum EEntitlementType {
|
|
55
56
|
ALL = 0,
|
|
@@ -88,7 +89,8 @@ export declare enum EEntitlementType {
|
|
|
88
89
|
DECISION_MAKING = 50,
|
|
89
90
|
QUANTITATIVE_REASONING = 51,
|
|
90
91
|
SITUATIONAL_JUDGEMENT = 52,
|
|
91
|
-
MRCP_VIDEO = 53
|
|
92
|
+
MRCP_VIDEO = 53,
|
|
93
|
+
MRCP_PART2_VIDEO = 60
|
|
92
94
|
}
|
|
93
95
|
export interface IProduct {
|
|
94
96
|
id: Id;
|
|
@@ -53,6 +53,7 @@ var EProductType;
|
|
|
53
53
|
EProductType[EProductType["MRCP_BUNDLE"] = 54] = "MRCP_BUNDLE";
|
|
54
54
|
EProductType[EProductType["COMPLETE_CLINICAL_BUNDLE"] = 55] = "COMPLETE_CLINICAL_BUNDLE";
|
|
55
55
|
EProductType[EProductType["UNDERGRAD_BUNDLE"] = 56] = "UNDERGRAD_BUNDLE";
|
|
56
|
+
EProductType[EProductType["MRCP_PART2_VIDEO"] = 60] = "MRCP_PART2_VIDEO";
|
|
56
57
|
})(EProductType = exports.EProductType || (exports.EProductType = {}));
|
|
57
58
|
var EEntitlementType;
|
|
58
59
|
(function (EEntitlementType) {
|
|
@@ -93,6 +94,7 @@ var EEntitlementType;
|
|
|
93
94
|
EEntitlementType[EEntitlementType["QUANTITATIVE_REASONING"] = 51] = "QUANTITATIVE_REASONING";
|
|
94
95
|
EEntitlementType[EEntitlementType["SITUATIONAL_JUDGEMENT"] = 52] = "SITUATIONAL_JUDGEMENT";
|
|
95
96
|
EEntitlementType[EEntitlementType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
|
|
97
|
+
EEntitlementType[EEntitlementType["MRCP_PART2_VIDEO"] = 60] = "MRCP_PART2_VIDEO";
|
|
96
98
|
})(EEntitlementType = exports.EEntitlementType || (exports.EEntitlementType = {}));
|
|
97
99
|
var EAppType;
|
|
98
100
|
(function (EAppType) {
|
package/dist/cjs/models/Topic.js
CHANGED
|
@@ -21,4 +21,5 @@ var ETopicType;
|
|
|
21
21
|
ETopicType[ETopicType["UCAT"] = 14] = "UCAT";
|
|
22
22
|
ETopicType[ETopicType["MRCP_VIDEO"] = 15] = "MRCP_VIDEO";
|
|
23
23
|
ETopicType[ETopicType["INTERVIEW_ACCS"] = 16] = "INTERVIEW_ACCS";
|
|
24
|
+
ETopicType[ETopicType["MRCP_PART2_VIDEO"] = 17] = "MRCP_PART2_VIDEO";
|
|
24
25
|
})(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
|
|
@@ -75,6 +75,7 @@ export interface IPayload {
|
|
|
75
75
|
pacesSubscriptionEndDate: number | null;
|
|
76
76
|
msraSubscriptionEndDate: number | null;
|
|
77
77
|
mrcpVideoSubscriptionEndDate: number | null;
|
|
78
|
+
mrcpPart2VideoSubscriptionEndDate: number | null;
|
|
78
79
|
anaestheticsInterviewSubscriptionEndDate: number | null;
|
|
79
80
|
cstInterviewSubscriptionEndDate: number | null;
|
|
80
81
|
imtInterviewSubscriptionEndDate: number | null;
|
|
@@ -190,6 +191,7 @@ export interface IUser {
|
|
|
190
191
|
pacesSubscriptionEndDate: number | Date | null;
|
|
191
192
|
msraSubscriptionEndDate: number | Date | null;
|
|
192
193
|
mrcpVideoSubscriptionEndDate: number | Date | null;
|
|
194
|
+
mrcpPart2VideoSubscriptionEndDate: number | Date | null;
|
|
193
195
|
anaestheticsInterviewSubscriptionEndDate: number | Date | null;
|
|
194
196
|
cstInterviewSubscriptionEndDate: number | Date | null;
|
|
195
197
|
imtInterviewSubscriptionEndDate: number | Date | null;
|
package/dist/cjs/models/User.js
CHANGED
|
@@ -55,6 +55,7 @@ exports.subscriptionDates = [
|
|
|
55
55
|
'plab2SubscriptionEndDate',
|
|
56
56
|
'ucatSubscriptionEndDate',
|
|
57
57
|
'mrcpVideoSubscriptionEndDate',
|
|
58
|
+
'mrcpPart2VideoSubscriptionEndDate',
|
|
58
59
|
];
|
|
59
60
|
exports.dateProductMapping = {
|
|
60
61
|
qbankSubscriptionEndDate: Product_1.EProductType.QBANK,
|
|
@@ -69,6 +70,7 @@ exports.dateProductMapping = {
|
|
|
69
70
|
mrcpPart1SubscriptionEndDate: Product_1.EProductType.MRCP_PART1,
|
|
70
71
|
mrcpPart2SubscriptionEndDate: Product_1.EProductType.MRCP_PART2,
|
|
71
72
|
mrcpVideoSubscriptionEndDate: Product_1.EProductType.MRCP_VIDEO,
|
|
73
|
+
mrcpPart2VideoSubscriptionEndDate: Product_1.EProductType.MRCP_PART2_VIDEO,
|
|
72
74
|
pacesSubscriptionEndDate: Product_1.EProductType.PACES,
|
|
73
75
|
msraSubscriptionEndDate: Product_1.EProductType.MSRA,
|
|
74
76
|
anaestheticsInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_ANAESTHETICS,
|
|
@@ -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;
|
|
@@ -144,6 +144,11 @@ exports.productMapping = {
|
|
|
144
144
|
topicType: [models_1.ETopicType.MRCP_VIDEO],
|
|
145
145
|
mockType: [],
|
|
146
146
|
},
|
|
147
|
+
[models_1.EProductType.MRCP_PART2_VIDEO]: {
|
|
148
|
+
db: enums_1.DB_TYPE.MRCP,
|
|
149
|
+
topicType: [models_1.ETopicType.MRCP_PART2_VIDEO],
|
|
150
|
+
mockType: [],
|
|
151
|
+
},
|
|
147
152
|
};
|
|
148
153
|
const topicEntitlementMap = {
|
|
149
154
|
[models_1.ETopicType.PRE_CLINICAL]: models_1.EEntitlementType.PRE_CLINICAL,
|
|
@@ -185,6 +190,7 @@ const clinicalEntitlementMap = {
|
|
|
185
190
|
[models_1.EProductType.MRCP_PART1]: models_1.EEntitlementType.MRCP_PART_1,
|
|
186
191
|
[models_1.EProductType.MRCP_PART2]: models_1.EEntitlementType.MRCP_PART_2,
|
|
187
192
|
[models_1.EProductType.MRCP_VIDEO]: models_1.EEntitlementType.MRCP_VIDEO,
|
|
193
|
+
[models_1.EProductType.MRCP_PART2_VIDEO]: models_1.EEntitlementType.MRCP_PART2_VIDEO,
|
|
188
194
|
};
|
|
189
195
|
const getEntitlementFromTopicType = (typeId, productType, entitlementInfo) => {
|
|
190
196
|
let entitlement;
|
|
@@ -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
|
|
@@ -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
|
|
@@ -49,7 +49,8 @@ export declare enum EProductType {
|
|
|
49
49
|
MRCP_VIDEO = 53,
|
|
50
50
|
MRCP_BUNDLE = 54,
|
|
51
51
|
COMPLETE_CLINICAL_BUNDLE = 55,
|
|
52
|
-
UNDERGRAD_BUNDLE = 56
|
|
52
|
+
UNDERGRAD_BUNDLE = 56,
|
|
53
|
+
MRCP_PART2_VIDEO = 60
|
|
53
54
|
}
|
|
54
55
|
export declare enum EEntitlementType {
|
|
55
56
|
ALL = 0,
|
|
@@ -88,7 +89,8 @@ export declare enum EEntitlementType {
|
|
|
88
89
|
DECISION_MAKING = 50,
|
|
89
90
|
QUANTITATIVE_REASONING = 51,
|
|
90
91
|
SITUATIONAL_JUDGEMENT = 52,
|
|
91
|
-
MRCP_VIDEO = 53
|
|
92
|
+
MRCP_VIDEO = 53,
|
|
93
|
+
MRCP_PART2_VIDEO = 60
|
|
92
94
|
}
|
|
93
95
|
export interface IProduct {
|
|
94
96
|
id: Id;
|
|
@@ -50,6 +50,7 @@ export var EProductType;
|
|
|
50
50
|
EProductType[EProductType["MRCP_BUNDLE"] = 54] = "MRCP_BUNDLE";
|
|
51
51
|
EProductType[EProductType["COMPLETE_CLINICAL_BUNDLE"] = 55] = "COMPLETE_CLINICAL_BUNDLE";
|
|
52
52
|
EProductType[EProductType["UNDERGRAD_BUNDLE"] = 56] = "UNDERGRAD_BUNDLE";
|
|
53
|
+
EProductType[EProductType["MRCP_PART2_VIDEO"] = 60] = "MRCP_PART2_VIDEO";
|
|
53
54
|
})(EProductType || (EProductType = {}));
|
|
54
55
|
export var EEntitlementType;
|
|
55
56
|
(function (EEntitlementType) {
|
|
@@ -90,6 +91,7 @@ export var EEntitlementType;
|
|
|
90
91
|
EEntitlementType[EEntitlementType["QUANTITATIVE_REASONING"] = 51] = "QUANTITATIVE_REASONING";
|
|
91
92
|
EEntitlementType[EEntitlementType["SITUATIONAL_JUDGEMENT"] = 52] = "SITUATIONAL_JUDGEMENT";
|
|
92
93
|
EEntitlementType[EEntitlementType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
|
|
94
|
+
EEntitlementType[EEntitlementType["MRCP_PART2_VIDEO"] = 60] = "MRCP_PART2_VIDEO";
|
|
93
95
|
})(EEntitlementType || (EEntitlementType = {}));
|
|
94
96
|
export var EAppType;
|
|
95
97
|
(function (EAppType) {
|
package/dist/mjs/models/Topic.js
CHANGED
|
@@ -18,4 +18,5 @@ export var ETopicType;
|
|
|
18
18
|
ETopicType[ETopicType["UCAT"] = 14] = "UCAT";
|
|
19
19
|
ETopicType[ETopicType["MRCP_VIDEO"] = 15] = "MRCP_VIDEO";
|
|
20
20
|
ETopicType[ETopicType["INTERVIEW_ACCS"] = 16] = "INTERVIEW_ACCS";
|
|
21
|
+
ETopicType[ETopicType["MRCP_PART2_VIDEO"] = 17] = "MRCP_PART2_VIDEO";
|
|
21
22
|
})(ETopicType || (ETopicType = {}));
|
|
@@ -75,6 +75,7 @@ export interface IPayload {
|
|
|
75
75
|
pacesSubscriptionEndDate: number | null;
|
|
76
76
|
msraSubscriptionEndDate: number | null;
|
|
77
77
|
mrcpVideoSubscriptionEndDate: number | null;
|
|
78
|
+
mrcpPart2VideoSubscriptionEndDate: number | null;
|
|
78
79
|
anaestheticsInterviewSubscriptionEndDate: number | null;
|
|
79
80
|
cstInterviewSubscriptionEndDate: number | null;
|
|
80
81
|
imtInterviewSubscriptionEndDate: number | null;
|
|
@@ -190,6 +191,7 @@ export interface IUser {
|
|
|
190
191
|
pacesSubscriptionEndDate: number | Date | null;
|
|
191
192
|
msraSubscriptionEndDate: number | Date | null;
|
|
192
193
|
mrcpVideoSubscriptionEndDate: number | Date | null;
|
|
194
|
+
mrcpPart2VideoSubscriptionEndDate: number | Date | null;
|
|
193
195
|
anaestheticsInterviewSubscriptionEndDate: number | Date | null;
|
|
194
196
|
cstInterviewSubscriptionEndDate: number | Date | null;
|
|
195
197
|
imtInterviewSubscriptionEndDate: number | Date | null;
|
package/dist/mjs/models/User.js
CHANGED
|
@@ -52,6 +52,7 @@ export const subscriptionDates = [
|
|
|
52
52
|
'plab2SubscriptionEndDate',
|
|
53
53
|
'ucatSubscriptionEndDate',
|
|
54
54
|
'mrcpVideoSubscriptionEndDate',
|
|
55
|
+
'mrcpPart2VideoSubscriptionEndDate',
|
|
55
56
|
];
|
|
56
57
|
export const dateProductMapping = {
|
|
57
58
|
qbankSubscriptionEndDate: EProductType.QBANK,
|
|
@@ -66,6 +67,7 @@ export const dateProductMapping = {
|
|
|
66
67
|
mrcpPart1SubscriptionEndDate: EProductType.MRCP_PART1,
|
|
67
68
|
mrcpPart2SubscriptionEndDate: EProductType.MRCP_PART2,
|
|
68
69
|
mrcpVideoSubscriptionEndDate: EProductType.MRCP_VIDEO,
|
|
70
|
+
mrcpPart2VideoSubscriptionEndDate: EProductType.MRCP_PART2_VIDEO,
|
|
69
71
|
pacesSubscriptionEndDate: EProductType.PACES,
|
|
70
72
|
msraSubscriptionEndDate: EProductType.MSRA,
|
|
71
73
|
anaestheticsInterviewSubscriptionEndDate: EProductType.INTERVIEW_ANAESTHETICS,
|
|
@@ -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;
|
|
@@ -141,6 +141,11 @@ export const productMapping = {
|
|
|
141
141
|
topicType: [ETopicType.MRCP_VIDEO],
|
|
142
142
|
mockType: [],
|
|
143
143
|
},
|
|
144
|
+
[EProductType.MRCP_PART2_VIDEO]: {
|
|
145
|
+
db: DB_TYPE.MRCP,
|
|
146
|
+
topicType: [ETopicType.MRCP_PART2_VIDEO],
|
|
147
|
+
mockType: [],
|
|
148
|
+
},
|
|
144
149
|
};
|
|
145
150
|
const topicEntitlementMap = {
|
|
146
151
|
[ETopicType.PRE_CLINICAL]: EEntitlementType.PRE_CLINICAL,
|
|
@@ -182,6 +187,7 @@ const clinicalEntitlementMap = {
|
|
|
182
187
|
[EProductType.MRCP_PART1]: EEntitlementType.MRCP_PART_1,
|
|
183
188
|
[EProductType.MRCP_PART2]: EEntitlementType.MRCP_PART_2,
|
|
184
189
|
[EProductType.MRCP_VIDEO]: EEntitlementType.MRCP_VIDEO,
|
|
190
|
+
[EProductType.MRCP_PART2_VIDEO]: EEntitlementType.MRCP_PART2_VIDEO,
|
|
185
191
|
};
|
|
186
192
|
export const getEntitlementFromTopicType = (typeId, productType, entitlementInfo) => {
|
|
187
193
|
let entitlement;
|
|
@@ -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;
|
|
@@ -16,6 +16,7 @@ export const VIDEO_FIELDS = gql `
|
|
|
16
16
|
status
|
|
17
17
|
title
|
|
18
18
|
museId
|
|
19
|
+
bunnyId
|
|
19
20
|
startTime
|
|
20
21
|
endTime
|
|
21
22
|
thumbnail
|
|
@@ -41,6 +42,17 @@ export const VIDEO_FIELDS = gql `
|
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
`;
|
|
45
|
+
export const VIDEO_TOKENS_FIELDS = gql `
|
|
46
|
+
fragment VideoTokensFields on Video {
|
|
47
|
+
tokens {
|
|
48
|
+
playback
|
|
49
|
+
thumbnail
|
|
50
|
+
storyboard
|
|
51
|
+
gif
|
|
52
|
+
bunnyUrl
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
44
56
|
// used in cache updator
|
|
45
57
|
export const VIDEO_STATUS_FRAGMENT = gql `
|
|
46
58
|
fragment VideoStatus on Video {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
|
-
import { CHAPTER_FIELDS, PICTURE_FIELDS } from '../../fragments';
|
|
2
|
+
import { CHAPTER_FIELDS, PICTURE_FIELDS, VIDEO_TOKENS_FIELDS } from '../../fragments';
|
|
3
3
|
export const VIDEO = gql `
|
|
4
4
|
${PICTURE_FIELDS}
|
|
5
5
|
${CHAPTER_FIELDS}
|
|
6
|
+
${VIDEO_TOKENS_FIELDS}
|
|
6
7
|
query Video($id: Int!) {
|
|
7
8
|
restricted {
|
|
8
9
|
video(id: $id) {
|
|
10
|
+
...VideoTokensFields
|
|
9
11
|
id
|
|
10
12
|
title
|
|
11
13
|
museId
|
|
@@ -15,12 +17,6 @@ export const VIDEO = gql `
|
|
|
15
17
|
thumbnail
|
|
16
18
|
playbackId
|
|
17
19
|
assetId
|
|
18
|
-
tokens {
|
|
19
|
-
playback
|
|
20
|
-
thumbnail
|
|
21
|
-
storyboard
|
|
22
|
-
gif
|
|
23
|
-
}
|
|
24
20
|
concepts {
|
|
25
21
|
id
|
|
26
22
|
name
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
|
-
import { PICTURE_FIELDS } from '../fragments';
|
|
2
|
+
import { PICTURE_FIELDS, VIDEO_TOKENS_FIELDS } from '../fragments';
|
|
3
3
|
export const SAMPLE_VIDEOS = gql `
|
|
4
4
|
${PICTURE_FIELDS}
|
|
5
5
|
query SampleVideos(
|
|
@@ -49,8 +49,10 @@ export const SAMPLE_VIDEOS = gql `
|
|
|
49
49
|
`;
|
|
50
50
|
export const SAMPLE_VIDEO = gql `
|
|
51
51
|
${PICTURE_FIELDS}
|
|
52
|
+
${VIDEO_TOKENS_FIELDS}
|
|
52
53
|
query SampleVideo($id: Int!) {
|
|
53
54
|
video(id: $id) {
|
|
55
|
+
...VideoTokensFields
|
|
54
56
|
id
|
|
55
57
|
title
|
|
56
58
|
museId
|
|
@@ -60,12 +62,6 @@ export const SAMPLE_VIDEO = gql `
|
|
|
60
62
|
thumbnail
|
|
61
63
|
playbackId
|
|
62
64
|
assetId
|
|
63
|
-
tokens {
|
|
64
|
-
playback
|
|
65
|
-
thumbnail
|
|
66
|
-
storyboard
|
|
67
|
-
gif
|
|
68
|
-
}
|
|
69
65
|
concepts {
|
|
70
66
|
id
|
|
71
67
|
name
|