@quesmed/types-rn 2.1.14 → 2.1.17
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/Type.d.ts
CHANGED
package/models/Video.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ import { IConcept } from './Concept';
|
|
|
2
2
|
import { IFile } from './File';
|
|
3
3
|
import { IOsceStation } from './OsceStation';
|
|
4
4
|
import { Id } from './Type';
|
|
5
|
+
export declare enum EVideoFilter {
|
|
6
|
+
NEW = 0,
|
|
7
|
+
POPULAR = 1,
|
|
8
|
+
PERSONAL = 2,
|
|
9
|
+
LIVE = 3
|
|
10
|
+
}
|
|
5
11
|
export interface IVideo {
|
|
6
12
|
id: Id;
|
|
7
13
|
createdAt: number | Date;
|
package/models/Video.js
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EVideoFilter = void 0;
|
|
4
|
+
var EVideoFilter;
|
|
5
|
+
(function (EVideoFilter) {
|
|
6
|
+
EVideoFilter[EVideoFilter["NEW"] = 0] = "NEW";
|
|
7
|
+
EVideoFilter[EVideoFilter["POPULAR"] = 1] = "POPULAR";
|
|
8
|
+
EVideoFilter[EVideoFilter["PERSONAL"] = 2] = "PERSONAL";
|
|
9
|
+
EVideoFilter[EVideoFilter["LIVE"] = 3] = "LIVE";
|
|
10
|
+
})(EVideoFilter = exports.EVideoFilter || (exports.EVideoFilter = {}));
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { Id, IVideo
|
|
1
|
+
import { EVideoFilter, Id, IVideo } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
|
+
import { EPlatformId } from './../../../index';
|
|
3
4
|
export interface IVideoVar {
|
|
4
|
-
|
|
5
|
+
videoId: Id;
|
|
5
6
|
}
|
|
6
7
|
export declare type IVideoData = RestrictedData<graphqlNormalize & IVideo, 'video'>;
|
|
7
8
|
export declare const VIDEO: import("@apollo/client").DocumentNode;
|
|
8
9
|
export interface IVideosVar {
|
|
9
|
-
|
|
10
|
+
platform: EPlatformId;
|
|
11
|
+
filter: EVideoFilter;
|
|
10
12
|
limit: number;
|
|
11
13
|
search?: String;
|
|
12
14
|
}
|
|
@@ -2,10 +2,7 @@
|
|
|
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");
|
|
6
5
|
exports.VIDEO = (0, client_1.gql) `
|
|
7
|
-
${fragments_1.PICTURE_FIELDS}
|
|
8
|
-
${fragments_1.VIDEO_FILE_FIELDS}
|
|
9
6
|
query Video($videoId: Int!) {
|
|
10
7
|
restricted {
|
|
11
8
|
video(id: $videoId) {
|
|
@@ -40,16 +37,68 @@ exports.VIDEO = (0, client_1.gql) `
|
|
|
40
37
|
name
|
|
41
38
|
}
|
|
42
39
|
candidatePictures {
|
|
43
|
-
|
|
40
|
+
id
|
|
41
|
+
createdAt
|
|
42
|
+
updatedAt
|
|
43
|
+
name
|
|
44
|
+
caption
|
|
45
|
+
path
|
|
46
|
+
path512
|
|
47
|
+
path256
|
|
48
|
+
topicId
|
|
49
|
+
topic {
|
|
50
|
+
id
|
|
51
|
+
name
|
|
52
|
+
typeId
|
|
53
|
+
}
|
|
44
54
|
}
|
|
45
55
|
actorPictures {
|
|
46
|
-
|
|
56
|
+
id
|
|
57
|
+
createdAt
|
|
58
|
+
updatedAt
|
|
59
|
+
name
|
|
60
|
+
caption
|
|
61
|
+
path
|
|
62
|
+
path512
|
|
63
|
+
path256
|
|
64
|
+
topicId
|
|
65
|
+
topic {
|
|
66
|
+
id
|
|
67
|
+
name
|
|
68
|
+
typeId
|
|
69
|
+
}
|
|
47
70
|
}
|
|
48
71
|
examinerPictures {
|
|
49
|
-
|
|
72
|
+
id
|
|
73
|
+
createdAt
|
|
74
|
+
updatedAt
|
|
75
|
+
name
|
|
76
|
+
caption
|
|
77
|
+
path
|
|
78
|
+
path512
|
|
79
|
+
path256
|
|
80
|
+
topicId
|
|
81
|
+
topic {
|
|
82
|
+
id
|
|
83
|
+
name
|
|
84
|
+
typeId
|
|
85
|
+
}
|
|
50
86
|
}
|
|
51
87
|
walkthroughPictures {
|
|
52
|
-
|
|
88
|
+
id
|
|
89
|
+
createdAt
|
|
90
|
+
updatedAt
|
|
91
|
+
name
|
|
92
|
+
caption
|
|
93
|
+
path
|
|
94
|
+
path512
|
|
95
|
+
path256
|
|
96
|
+
topicId
|
|
97
|
+
topic {
|
|
98
|
+
id
|
|
99
|
+
name
|
|
100
|
+
typeId
|
|
101
|
+
}
|
|
53
102
|
}
|
|
54
103
|
lastOsceMarksheetId
|
|
55
104
|
}
|
|
@@ -59,16 +108,24 @@ exports.VIDEO = (0, client_1.gql) `
|
|
|
59
108
|
startTime
|
|
60
109
|
endTime
|
|
61
110
|
files {
|
|
62
|
-
|
|
111
|
+
id
|
|
112
|
+
title
|
|
113
|
+
url
|
|
114
|
+
videoId
|
|
63
115
|
}
|
|
64
116
|
}
|
|
65
117
|
}
|
|
66
118
|
}
|
|
67
119
|
`;
|
|
68
120
|
exports.VIDEOS = (0, client_1.gql) `
|
|
69
|
-
query Videos($filter:
|
|
121
|
+
query Videos($platform: Int!, $filter: Int!, $search: String, $limit: Int!) {
|
|
70
122
|
restricted {
|
|
71
|
-
videos(
|
|
123
|
+
videos(
|
|
124
|
+
platform: $platform
|
|
125
|
+
filter: $filter
|
|
126
|
+
search: $search
|
|
127
|
+
limit: $limit
|
|
128
|
+
) {
|
|
72
129
|
id
|
|
73
130
|
title
|
|
74
131
|
museId
|
package/resolvers/query/video.js
CHANGED
|
@@ -2,10 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ZOOM_SIGNATURE = exports.SAMPLE_VIDEO = exports.SAMPLE_VIDEOS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
-
const fragments_1 = require("../fragments");
|
|
6
5
|
exports.SAMPLE_VIDEOS = (0, client_1.gql) `
|
|
7
|
-
query SampleVideos(
|
|
8
|
-
|
|
6
|
+
query SampleVideos(
|
|
7
|
+
$platform: Int!
|
|
8
|
+
$filter: Int!
|
|
9
|
+
$search: String
|
|
10
|
+
$limit: Int!
|
|
11
|
+
) {
|
|
12
|
+
videos(
|
|
13
|
+
platform: $platform
|
|
14
|
+
filter: $filter
|
|
15
|
+
search: $search
|
|
16
|
+
limit: $limit
|
|
17
|
+
) {
|
|
9
18
|
id
|
|
10
19
|
title
|
|
11
20
|
museId
|
|
@@ -35,8 +44,6 @@ exports.SAMPLE_VIDEOS = (0, client_1.gql) `
|
|
|
35
44
|
}
|
|
36
45
|
`;
|
|
37
46
|
exports.SAMPLE_VIDEO = (0, client_1.gql) `
|
|
38
|
-
${fragments_1.PICTURE_FIELDS}
|
|
39
|
-
${fragments_1.VIDEO_FILE_FIELDS}
|
|
40
47
|
query SampleVideo($videoId: Int!) {
|
|
41
48
|
video(id: $videoId) {
|
|
42
49
|
id
|
|
@@ -70,16 +77,68 @@ exports.SAMPLE_VIDEO = (0, client_1.gql) `
|
|
|
70
77
|
name
|
|
71
78
|
}
|
|
72
79
|
candidatePictures {
|
|
73
|
-
|
|
80
|
+
id
|
|
81
|
+
createdAt
|
|
82
|
+
updatedAt
|
|
83
|
+
name
|
|
84
|
+
caption
|
|
85
|
+
path
|
|
86
|
+
path512
|
|
87
|
+
path256
|
|
88
|
+
topicId
|
|
89
|
+
topic {
|
|
90
|
+
id
|
|
91
|
+
name
|
|
92
|
+
typeId
|
|
93
|
+
}
|
|
74
94
|
}
|
|
75
95
|
actorPictures {
|
|
76
|
-
|
|
96
|
+
id
|
|
97
|
+
createdAt
|
|
98
|
+
updatedAt
|
|
99
|
+
name
|
|
100
|
+
caption
|
|
101
|
+
path
|
|
102
|
+
path512
|
|
103
|
+
path256
|
|
104
|
+
topicId
|
|
105
|
+
topic {
|
|
106
|
+
id
|
|
107
|
+
name
|
|
108
|
+
typeId
|
|
109
|
+
}
|
|
77
110
|
}
|
|
78
111
|
examinerPictures {
|
|
79
|
-
|
|
112
|
+
id
|
|
113
|
+
createdAt
|
|
114
|
+
updatedAt
|
|
115
|
+
name
|
|
116
|
+
caption
|
|
117
|
+
path
|
|
118
|
+
path512
|
|
119
|
+
path256
|
|
120
|
+
topicId
|
|
121
|
+
topic {
|
|
122
|
+
id
|
|
123
|
+
name
|
|
124
|
+
typeId
|
|
125
|
+
}
|
|
80
126
|
}
|
|
81
127
|
walkthroughPictures {
|
|
82
|
-
|
|
128
|
+
id
|
|
129
|
+
createdAt
|
|
130
|
+
updatedAt
|
|
131
|
+
name
|
|
132
|
+
caption
|
|
133
|
+
path
|
|
134
|
+
path512
|
|
135
|
+
path256
|
|
136
|
+
topicId
|
|
137
|
+
topic {
|
|
138
|
+
id
|
|
139
|
+
name
|
|
140
|
+
typeId
|
|
141
|
+
}
|
|
83
142
|
}
|
|
84
143
|
lastOsceMarksheetId
|
|
85
144
|
}
|
|
@@ -89,7 +148,10 @@ exports.SAMPLE_VIDEO = (0, client_1.gql) `
|
|
|
89
148
|
startTime
|
|
90
149
|
endTime
|
|
91
150
|
files {
|
|
92
|
-
|
|
151
|
+
id
|
|
152
|
+
title
|
|
153
|
+
url
|
|
154
|
+
videoId
|
|
93
155
|
}
|
|
94
156
|
}
|
|
95
157
|
}
|