@30nama/sdk 1.8.6 → 1.8.7
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/api/index.js +81 -97
- package/dist/api/index.js.map +1 -1
- package/dist/api/request.js +56 -70
- package/dist/api/request.js.map +1 -1
- package/dist/api/services/biography.js +41 -67
- package/dist/api/services/biography.js.map +1 -1
- package/dist/api/services/index.js +7 -23
- package/dist/api/services/index.js.map +1 -1
- package/dist/api/services/news.js +41 -67
- package/dist/api/services/news.js.map +1 -1
- package/dist/api/services/operator.js +201 -281
- package/dist/api/services/operator.js.map +1 -1
- package/dist/api/services/soundtrack.js +17 -34
- package/dist/api/services/soundtrack.js.map +1 -1
- package/dist/api/services/stream.js +51 -77
- package/dist/api/services/stream.js.map +1 -1
- package/dist/api/services/support.js +41 -67
- package/dist/api/services/support.js.map +1 -1
- package/dist/api/services/videoContent.js +291 -389
- package/dist/api/services/videoContent.js.map +1 -1
- package/dist/api/types.js +1 -2
- package/dist/core.js +13 -35
- package/dist/core.js.map +1 -1
- package/dist/entities/BaseEntity.js +2 -5
- package/dist/entities/BaseEntity.js.map +1 -1
- package/dist/entities/IArticle.d.ts +0 -4
- package/dist/entities/IArticle.js +10 -6
- package/dist/entities/IArticle.js.map +1 -1
- package/dist/entities/IAttachment.js +1 -2
- package/dist/entities/IBiography.js +14 -6
- package/dist/entities/IBiography.js.map +1 -1
- package/dist/entities/IBoxOffice.js +20 -6
- package/dist/entities/IBoxOffice.js.map +1 -1
- package/dist/entities/ICollection.js +9 -6
- package/dist/entities/ICollection.js.map +1 -1
- package/dist/entities/ICollector.js +1 -2
- package/dist/entities/IOperator.js +2 -5
- package/dist/entities/IOperator.js.map +1 -1
- package/dist/entities/IPerson.js +1 -2
- package/dist/entities/IRating.js +1 -2
- package/dist/entities/ISoundTrack.js +1 -2
- package/dist/entities/IStream.js +1 -2
- package/dist/entities/ITitle.js +34 -8
- package/dist/entities/ITitle.js.map +1 -1
- package/dist/entities/IVideoContent.js +26 -6
- package/dist/entities/IVideoContent.js.map +1 -1
- package/dist/entities/index.js +12 -28
- package/dist/entities/index.js.map +1 -1
- package/dist/index.js +7 -8
- package/dist/index.js.map +1 -1
- package/dist/pattern/index.js +10 -9
- package/dist/pattern/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,420 +1,322 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.videoContentRate = videoContentRate;
|
|
13
|
-
exports.videoContentGetUserPick = videoContentGetUserPick;
|
|
14
|
-
exports.videoContentManageUserPick = videoContentManageUserPick;
|
|
15
|
-
exports.videoContentNotificationAdd = videoContentNotificationAdd;
|
|
16
|
-
exports.videoContentGetNotificationList = videoContentGetNotificationList;
|
|
17
|
-
exports.videoContentGetCollectorList = videoContentGetCollectorList;
|
|
18
|
-
exports.videoContentGetCollectionList = videoContentGetCollectionList;
|
|
19
|
-
exports.videoContentGetCollectionData = videoContentGetCollectionData;
|
|
20
|
-
exports.videoContentList = videoContentList;
|
|
21
|
-
exports.videoContentGetFeatured = videoContentGetFeatured;
|
|
22
|
-
exports.videoContentGetComingSoon = videoContentGetComingSoon;
|
|
23
|
-
exports.videoContentGetStreams = videoContentGetStreams;
|
|
24
|
-
exports.videoContentGetStreamHomepage = videoContentGetStreamHomepage;
|
|
25
|
-
exports.videoContentGetHomepage = videoContentGetHomepage;
|
|
26
|
-
exports.videoContentGetCastContents = videoContentGetCastContents;
|
|
27
|
-
exports.videoContentGetWeeklyScheduleContents = videoContentGetWeeklyScheduleContents;
|
|
28
|
-
exports.videoContentGetNewReleases = videoContentGetNewReleases;
|
|
29
|
-
exports.videoContentGetBoxOffice = videoContentGetBoxOffice;
|
|
30
|
-
exports.videoContentGetVipHeroSection = videoContentGetVipHeroSection;
|
|
31
|
-
exports.videoContentGetGuestHeroSection = videoContentGetGuestHeroSection;
|
|
32
|
-
exports.videoContentGetTopContents = videoContentGetTopContents;
|
|
33
|
-
exports.videoContentDetail = videoContentDetail;
|
|
34
|
-
exports.videoContentQuotes = videoContentQuotes;
|
|
35
|
-
exports.videoContentGetPersons = videoContentGetPersons;
|
|
36
|
-
exports.videoContentExplore = videoContentExplore;
|
|
37
|
-
exports.videoContentGetCountryLanguage = videoContentGetCountryLanguage;
|
|
38
|
-
exports.videoContentMpaa = videoContentMpaa;
|
|
39
|
-
exports.videoContentChannel = videoContentChannel;
|
|
40
|
-
exports.test = test;
|
|
41
|
-
const request_1 = require("../request");
|
|
42
|
-
const entities_1 = require("../../entities");
|
|
43
|
-
const ICollection_1 = require("../../entities/ICollection");
|
|
44
|
-
const ITitle_1 = require("../../entities/ITitle");
|
|
45
|
-
const IBoxOffice_1 = require("../../entities/IBoxOffice");
|
|
1
|
+
import request from '../request';
|
|
2
|
+
import { IVideoContent } from '../../entities';
|
|
3
|
+
import { ICollection } from '../../entities/ICollection';
|
|
4
|
+
import { IHeroTitle, ITitle } from '../../entities/ITitle';
|
|
5
|
+
import { IBoxOffice } from '../../entities/IBoxOffice';
|
|
46
6
|
const servicePath = 'videocontent';
|
|
47
|
-
function videoContentRate(score, video_content_id) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return response;
|
|
57
|
-
});
|
|
7
|
+
export async function videoContentRate(score, video_content_id) {
|
|
8
|
+
const This = this;
|
|
9
|
+
This.log('info', 'Running action: videoContentRate');
|
|
10
|
+
const req = new request(`user-video-content/action/rating`, this);
|
|
11
|
+
req.withService(servicePath);
|
|
12
|
+
req.withMethod('post');
|
|
13
|
+
const response = (await req.execute({ score, video_content_id }));
|
|
14
|
+
// if (response?.success) response.data = new IVideoContent(response.data)
|
|
15
|
+
return response;
|
|
58
16
|
}
|
|
59
|
-
function videoContentGetUserPick(pick_type, filters) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
return response;
|
|
69
|
-
});
|
|
17
|
+
export async function videoContentGetUserPick(pick_type, filters) {
|
|
18
|
+
const This = this;
|
|
19
|
+
This.log('info', 'Running action: videoContentUserList');
|
|
20
|
+
const req = new request(`user-video-content/action/${pick_type}`, this);
|
|
21
|
+
req.withService(servicePath);
|
|
22
|
+
req.withMethod('get');
|
|
23
|
+
const response = (await req.execute(filters));
|
|
24
|
+
// if (response?.success) response.data = new IVideoContent(response.data)
|
|
25
|
+
return response;
|
|
70
26
|
}
|
|
71
|
-
function videoContentManageUserPick(pick_type, video_content_id) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
return response;
|
|
81
|
-
});
|
|
27
|
+
export async function videoContentManageUserPick(pick_type, video_content_id) {
|
|
28
|
+
const This = this;
|
|
29
|
+
This.log('info', 'Running action: videoContentManageUserPick');
|
|
30
|
+
const req = new request(`user-video-content/action/${pick_type}`, this);
|
|
31
|
+
req.withService(servicePath);
|
|
32
|
+
req.withMethod('post');
|
|
33
|
+
const response = (await req.execute({ video_content_id }));
|
|
34
|
+
// if (response?.success) response.data = new IVideoContent(response.data)
|
|
35
|
+
return response;
|
|
82
36
|
}
|
|
83
|
-
function videoContentNotificationAdd(notification_type_slug, video_content_id) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
return response;
|
|
93
|
-
});
|
|
37
|
+
export async function videoContentNotificationAdd(notification_type_slug, video_content_id) {
|
|
38
|
+
const This = this;
|
|
39
|
+
This.log('info', 'Running action: videoContentNotificationAdd');
|
|
40
|
+
const req = new request(`user-video-content/action/notification/add`, this);
|
|
41
|
+
req.withService(servicePath);
|
|
42
|
+
req.withMethod('post');
|
|
43
|
+
const response = (await req.execute({ video_content_id, notification_type_slug }));
|
|
44
|
+
// if (response?.success) response.data = new IVideoContent(response.data)
|
|
45
|
+
return response;
|
|
94
46
|
}
|
|
95
|
-
function videoContentGetNotificationList(filters) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
return response;
|
|
105
|
-
});
|
|
47
|
+
export async function videoContentGetNotificationList(filters) {
|
|
48
|
+
const This = this;
|
|
49
|
+
This.log('info', 'Running action: videoContentGetNotificationList');
|
|
50
|
+
const req = new request(`user-video-content/action/notification/list`, this);
|
|
51
|
+
req.withService(servicePath);
|
|
52
|
+
req.withMethod('get');
|
|
53
|
+
const response = (await req.execute(filters));
|
|
54
|
+
// if (response?.success) response.data = new IVideoContent(response.data)
|
|
55
|
+
return response;
|
|
106
56
|
}
|
|
107
|
-
function videoContentGetCollectorList(collector_name) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
return response;
|
|
118
|
-
});
|
|
57
|
+
export async function videoContentGetCollectorList(collector_name) {
|
|
58
|
+
const This = this;
|
|
59
|
+
This.log('info', 'Running action: videoContentGetCollectorList');
|
|
60
|
+
const req = new request(`user-video-content/collectors-list`, this);
|
|
61
|
+
req.withService(servicePath);
|
|
62
|
+
req.withMethod('get');
|
|
63
|
+
const response = (await req.execute({ collector_name }));
|
|
64
|
+
if (response?.success)
|
|
65
|
+
response.data = response.data;
|
|
66
|
+
return response;
|
|
119
67
|
}
|
|
120
|
-
function videoContentGetCollectionList(filters) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
return response;
|
|
131
|
-
});
|
|
68
|
+
export async function videoContentGetCollectionList(filters) {
|
|
69
|
+
const This = this;
|
|
70
|
+
This.log('info', 'Running action: videoContentGetCollectionList');
|
|
71
|
+
const req = new request(`user-video-content/collection-list`, this);
|
|
72
|
+
req.withService(servicePath);
|
|
73
|
+
req.withMethod('get');
|
|
74
|
+
const response = (await req.execute(filters));
|
|
75
|
+
if (response?.success)
|
|
76
|
+
response.data.items = response.data.items.map((item) => new ICollection(item));
|
|
77
|
+
return response;
|
|
132
78
|
}
|
|
133
|
-
function videoContentGetCollectionData(slug) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
return response;
|
|
144
|
-
});
|
|
79
|
+
export async function videoContentGetCollectionData(slug) {
|
|
80
|
+
const This = this;
|
|
81
|
+
This.log('info', 'Running action: videoContentGetCollectionData');
|
|
82
|
+
const req = new request(`user-video-content/collection-list/${slug}`, this);
|
|
83
|
+
req.withService(servicePath);
|
|
84
|
+
req.withMethod('get');
|
|
85
|
+
const response = (await req.execute());
|
|
86
|
+
if (response?.success)
|
|
87
|
+
response.data = response.data.map((item) => new ITitle(item));
|
|
88
|
+
return response;
|
|
145
89
|
}
|
|
146
|
-
function videoContentList(filters) {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
return response;
|
|
157
|
-
});
|
|
90
|
+
export async function videoContentList(filters) {
|
|
91
|
+
const This = this;
|
|
92
|
+
This.log('info', 'Running action: videoContentList');
|
|
93
|
+
const req = new request(`user-video-content/`, this);
|
|
94
|
+
req.withService(servicePath);
|
|
95
|
+
req.withMethod('get');
|
|
96
|
+
const response = (await req.execute(filters));
|
|
97
|
+
if (response?.success)
|
|
98
|
+
response.data.items = response.data.items.map((item) => new ITitle(item));
|
|
99
|
+
return response;
|
|
158
100
|
}
|
|
159
|
-
function videoContentGetFeatured() {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
return response;
|
|
170
|
-
});
|
|
101
|
+
export async function videoContentGetFeatured(filters = {}) {
|
|
102
|
+
const This = this;
|
|
103
|
+
This.log('info', 'Running action: videoContentGetFeatured');
|
|
104
|
+
const req = new request(`user-video-content/options-contents`, this);
|
|
105
|
+
req.withService(servicePath);
|
|
106
|
+
req.withMethod('get');
|
|
107
|
+
const response = (await req.execute({ option: 'featured', ...filters }));
|
|
108
|
+
if (response?.success)
|
|
109
|
+
response.data.items = response.data.items.map((item) => new ITitle(item));
|
|
110
|
+
return response;
|
|
171
111
|
}
|
|
172
|
-
function videoContentGetComingSoon() {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
return response;
|
|
183
|
-
});
|
|
112
|
+
export async function videoContentGetComingSoon(filters = {}) {
|
|
113
|
+
const This = this;
|
|
114
|
+
This.log('info', 'Running action: videoContentGetComingSoon');
|
|
115
|
+
const req = new request(`user-video-content/options-contents`, this);
|
|
116
|
+
req.withService(servicePath);
|
|
117
|
+
req.withMethod('get');
|
|
118
|
+
const response = (await req.execute({ option: 'coming-soon', ...filters }));
|
|
119
|
+
if (response?.success)
|
|
120
|
+
response.data.items = response.data.items.map((item) => new ITitle(item));
|
|
121
|
+
return response;
|
|
184
122
|
}
|
|
185
|
-
function videoContentGetStreams(category, order_by, page, limit) {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
return response;
|
|
196
|
-
});
|
|
123
|
+
export async function videoContentGetStreams(category, order_by, page, limit) {
|
|
124
|
+
const This = this;
|
|
125
|
+
This.log('info', 'Running action: videoContentGetStreams');
|
|
126
|
+
const req = new request(`user-video-content/streams/${category}`, this);
|
|
127
|
+
req.withService(servicePath);
|
|
128
|
+
req.withMethod('get');
|
|
129
|
+
const response = (await req.execute({ order_by, page, limit }));
|
|
130
|
+
if (response?.success)
|
|
131
|
+
response.data.items = response.data.items.map((item) => new ITitle(item));
|
|
132
|
+
return response;
|
|
197
133
|
}
|
|
198
|
-
function videoContentGetStreamHomepage(limit) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
response.data
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
return response;
|
|
216
|
-
});
|
|
134
|
+
export async function videoContentGetStreamHomepage(limit) {
|
|
135
|
+
const This = this;
|
|
136
|
+
This.log('info', 'Running action: videoContentGetStreamHomepage');
|
|
137
|
+
const req = new request(`user-video-content/streams`, this);
|
|
138
|
+
req.withService(servicePath);
|
|
139
|
+
req.withMethod('get');
|
|
140
|
+
const response = (await req.execute({ limit }));
|
|
141
|
+
if (response?.success) {
|
|
142
|
+
response.data = {
|
|
143
|
+
featured: response.data.featured.map((item) => new ITitle(item)),
|
|
144
|
+
movies: response.data.movies.map((item) => new ITitle(item)),
|
|
145
|
+
series: response.data.series.map((item) => new ITitle(item)),
|
|
146
|
+
anime: response.data.anime.map((item) => new ITitle(item)),
|
|
147
|
+
free_stream: response.data.free_stream.map((item) => new ITitle(item))
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
return response;
|
|
217
151
|
}
|
|
218
|
-
function videoContentGetHomepage(limit) {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
response.data
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
return response;
|
|
237
|
-
});
|
|
152
|
+
export async function videoContentGetHomepage(limit) {
|
|
153
|
+
const This = this;
|
|
154
|
+
This.log('info', 'Running action: videoContentGetHomepage');
|
|
155
|
+
const req = new request(`user-video-content/home-page`, this);
|
|
156
|
+
req.withService(servicePath);
|
|
157
|
+
req.withMethod('get');
|
|
158
|
+
const response = (await req.execute({ limit }));
|
|
159
|
+
if (response?.success) {
|
|
160
|
+
response.data = {
|
|
161
|
+
featured: response.data.featured.map((item) => new ITitle(item)),
|
|
162
|
+
top_ten: response.data.top_ten.map((item) => new ITitle(item)),
|
|
163
|
+
new_releases: response.data.new_releases.map((item) => new ITitle(item)),
|
|
164
|
+
movies: response.data.movies.map((item) => new ITitle(item)),
|
|
165
|
+
series: response.data.series.map((item) => new ITitle(item)),
|
|
166
|
+
anime: response.data.anime.map((item) => new ITitle(item))
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
return response;
|
|
238
170
|
}
|
|
239
|
-
function videoContentGetCastContents(cast_imdb_code, page, limit) {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
return response;
|
|
250
|
-
});
|
|
171
|
+
export async function videoContentGetCastContents(cast_imdb_code, page, limit) {
|
|
172
|
+
const This = this;
|
|
173
|
+
This.log('info', 'Running action: videoContentGetCastContents');
|
|
174
|
+
const req = new request(`user-video-content/cast/contents`, this);
|
|
175
|
+
req.withService(servicePath);
|
|
176
|
+
req.withMethod('get');
|
|
177
|
+
const response = (await req.execute({ cast_imdb_code, page, limit }));
|
|
178
|
+
if (response?.success)
|
|
179
|
+
response.data.items = response.data.items.map((item) => new ITitle(item));
|
|
180
|
+
return response;
|
|
251
181
|
}
|
|
252
|
-
function videoContentGetWeeklyScheduleContents(filters) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
return response;
|
|
263
|
-
});
|
|
182
|
+
export async function videoContentGetWeeklyScheduleContents(filters) {
|
|
183
|
+
const This = this;
|
|
184
|
+
This.log('info', 'Running action: videoContentGetWeeklyScheduleContents');
|
|
185
|
+
const req = new request(`user-video-content/weekly-schedule-contents`, this);
|
|
186
|
+
req.withService(servicePath);
|
|
187
|
+
req.withMethod('get');
|
|
188
|
+
const response = (await req.execute(filters));
|
|
189
|
+
if (response?.success)
|
|
190
|
+
response.data = response.data.map((item) => new ITitle(item));
|
|
191
|
+
return response;
|
|
264
192
|
}
|
|
265
|
-
function videoContentGetNewReleases(filters) {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
return response;
|
|
276
|
-
});
|
|
193
|
+
export async function videoContentGetNewReleases(filters) {
|
|
194
|
+
const This = this;
|
|
195
|
+
This.log('info', 'Running action: videoContentGetNewReleases');
|
|
196
|
+
const req = new request(`user-video-content/options-contents/new-releases`, this);
|
|
197
|
+
req.withService(servicePath);
|
|
198
|
+
req.withMethod('get');
|
|
199
|
+
const response = (await req.execute(filters));
|
|
200
|
+
if (response?.success)
|
|
201
|
+
response.data.items = response.data.items.map((item) => new ITitle(item));
|
|
202
|
+
return response;
|
|
277
203
|
}
|
|
278
|
-
function videoContentGetBoxOffice(source) {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
return response;
|
|
289
|
-
});
|
|
204
|
+
export async function videoContentGetBoxOffice(source) {
|
|
205
|
+
const This = this;
|
|
206
|
+
This.log('info', 'Running action: videoContentGetBoxOffice');
|
|
207
|
+
const req = new request(`user-video-content/box-office/${source}`, this);
|
|
208
|
+
req.withService(servicePath);
|
|
209
|
+
req.withMethod('get');
|
|
210
|
+
const response = (await req.execute());
|
|
211
|
+
if (response?.success)
|
|
212
|
+
response.data = response.data.map((item) => new IBoxOffice(item));
|
|
213
|
+
return response;
|
|
290
214
|
}
|
|
291
|
-
function videoContentGetVipHeroSection() {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
return response;
|
|
302
|
-
});
|
|
215
|
+
export async function videoContentGetVipHeroSection() {
|
|
216
|
+
const This = this;
|
|
217
|
+
This.log('info', 'Running action: videoContentGetVipHeroSection');
|
|
218
|
+
const req = new request(`user-video-content/vip-hero-section`, this);
|
|
219
|
+
req.withService(servicePath);
|
|
220
|
+
req.withMethod('get');
|
|
221
|
+
const response = (await req.execute());
|
|
222
|
+
if (response?.success)
|
|
223
|
+
response.data = response.data.map((item) => new IHeroTitle(item));
|
|
224
|
+
return response;
|
|
303
225
|
}
|
|
304
|
-
function videoContentGetGuestHeroSection() {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
return response;
|
|
313
|
-
});
|
|
226
|
+
export async function videoContentGetGuestHeroSection() {
|
|
227
|
+
const This = this;
|
|
228
|
+
This.log('info', 'Running action: videoContentGetGuestHeroSection');
|
|
229
|
+
const req = new request(`user-video-content/hero-section`, this);
|
|
230
|
+
req.withService(servicePath);
|
|
231
|
+
req.withMethod('get');
|
|
232
|
+
const response = (await req.execute());
|
|
233
|
+
return response;
|
|
314
234
|
}
|
|
315
|
-
function videoContentGetTopContents(source, content_type, page, limit) {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
return response;
|
|
326
|
-
});
|
|
235
|
+
export async function videoContentGetTopContents(source, content_type, page, limit) {
|
|
236
|
+
const This = this;
|
|
237
|
+
This.log('info', 'Running action: videoContentGetTopContents');
|
|
238
|
+
const req = new request(`user-video-content/top-contents/${source}/${content_type}`, this);
|
|
239
|
+
req.withService(servicePath);
|
|
240
|
+
req.withMethod('get');
|
|
241
|
+
const response = (await req.execute({ page, limit }));
|
|
242
|
+
if (response?.success)
|
|
243
|
+
response.data.items = response.data.items.map((item) => new ITitle(item));
|
|
244
|
+
return response;
|
|
327
245
|
}
|
|
328
|
-
function videoContentDetail(video_content_id) {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
return response;
|
|
339
|
-
});
|
|
246
|
+
export async function videoContentDetail(video_content_id) {
|
|
247
|
+
const This = this;
|
|
248
|
+
This.log('info', 'Running action: single');
|
|
249
|
+
const req = new request(`user-video-content/detail/${video_content_id}`, this);
|
|
250
|
+
req.withService(servicePath);
|
|
251
|
+
req.withMethod('get');
|
|
252
|
+
const response = (await req.execute());
|
|
253
|
+
if (response?.success)
|
|
254
|
+
response.data = new IVideoContent(response.data);
|
|
255
|
+
return response;
|
|
340
256
|
}
|
|
341
|
-
function videoContentQuotes(video_content_id) {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
return response;
|
|
350
|
-
});
|
|
257
|
+
export async function videoContentQuotes(video_content_id) {
|
|
258
|
+
const This = this;
|
|
259
|
+
This.log('info', 'Running action: quotes');
|
|
260
|
+
const req = new request(`user-video-content/detail/quotes/${video_content_id}`, this);
|
|
261
|
+
req.withService(servicePath);
|
|
262
|
+
req.withMethod('get');
|
|
263
|
+
const response = (await req.execute());
|
|
264
|
+
return response;
|
|
351
265
|
}
|
|
352
|
-
function videoContentGetPersons(video_content_id) {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
return response;
|
|
361
|
-
});
|
|
266
|
+
export async function videoContentGetPersons(video_content_id) {
|
|
267
|
+
const This = this;
|
|
268
|
+
This.log('info', 'Running action: videoContentGetPersons');
|
|
269
|
+
const req = new request(`user-video-content/detail/persons/${video_content_id}`, this);
|
|
270
|
+
req.withService(servicePath);
|
|
271
|
+
req.withMethod('get');
|
|
272
|
+
const response = (await req.execute());
|
|
273
|
+
return response;
|
|
362
274
|
}
|
|
363
|
-
function videoContentExplore(payload) {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
return response;
|
|
374
|
-
});
|
|
275
|
+
export async function videoContentExplore(payload) {
|
|
276
|
+
const This = this;
|
|
277
|
+
This.log('info', 'Running action: videoContentExplore');
|
|
278
|
+
const req = new request(`user-video-content/explore`, this);
|
|
279
|
+
req.withService(servicePath);
|
|
280
|
+
req.withMethod('get');
|
|
281
|
+
const response = (await req.execute(payload));
|
|
282
|
+
if (response?.success)
|
|
283
|
+
response.data.items = response.data.items.map((item) => new ITitle(item));
|
|
284
|
+
return response;
|
|
375
285
|
}
|
|
376
|
-
function videoContentGetCountryLanguage(type) {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
return response;
|
|
385
|
-
});
|
|
286
|
+
export async function videoContentGetCountryLanguage(type) {
|
|
287
|
+
const This = this;
|
|
288
|
+
This.log('info', 'Running action: videoContentGetCountryLanguage');
|
|
289
|
+
const req = new request(`user-video-content/countries-language`, this);
|
|
290
|
+
req.withService(servicePath);
|
|
291
|
+
req.withMethod('get');
|
|
292
|
+
const response = (await req.execute({ type }));
|
|
293
|
+
return response;
|
|
386
294
|
}
|
|
387
|
-
function videoContentMpaa() {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
return response;
|
|
396
|
-
});
|
|
295
|
+
export async function videoContentMpaa() {
|
|
296
|
+
const This = this;
|
|
297
|
+
This.log('info', 'Running action: videoContentMpaa');
|
|
298
|
+
const req = new request(`user-video-content/mpaa`, this);
|
|
299
|
+
req.withService(servicePath);
|
|
300
|
+
req.withMethod('get');
|
|
301
|
+
const response = (await req.execute());
|
|
302
|
+
return response;
|
|
397
303
|
}
|
|
398
|
-
function videoContentChannel(search, page, limit) {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
return response;
|
|
407
|
-
});
|
|
304
|
+
export async function videoContentChannel(search, page, limit) {
|
|
305
|
+
const This = this;
|
|
306
|
+
This.log('info', 'Running action: videoContentChannel');
|
|
307
|
+
const req = new request(`user-video-content/channel`, this);
|
|
308
|
+
req.withService(servicePath);
|
|
309
|
+
req.withMethod('get');
|
|
310
|
+
const response = (await req.execute({ search, page, limit }));
|
|
311
|
+
return response;
|
|
408
312
|
}
|
|
409
|
-
function test() {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
return response;
|
|
418
|
-
});
|
|
313
|
+
export async function test() {
|
|
314
|
+
const This = this;
|
|
315
|
+
This.log('info', 'Running action: test');
|
|
316
|
+
const req = new request(`user-video-content/test`, this);
|
|
317
|
+
req.withService(servicePath);
|
|
318
|
+
req.withMethod('get');
|
|
319
|
+
const response = (await req.execute());
|
|
320
|
+
return response;
|
|
419
321
|
}
|
|
420
322
|
//# sourceMappingURL=videoContent.js.map
|