@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.
Files changed (53) hide show
  1. package/dist/api/index.js +81 -97
  2. package/dist/api/index.js.map +1 -1
  3. package/dist/api/request.js +56 -70
  4. package/dist/api/request.js.map +1 -1
  5. package/dist/api/services/biography.js +41 -67
  6. package/dist/api/services/biography.js.map +1 -1
  7. package/dist/api/services/index.js +7 -23
  8. package/dist/api/services/index.js.map +1 -1
  9. package/dist/api/services/news.js +41 -67
  10. package/dist/api/services/news.js.map +1 -1
  11. package/dist/api/services/operator.js +201 -281
  12. package/dist/api/services/operator.js.map +1 -1
  13. package/dist/api/services/soundtrack.js +17 -34
  14. package/dist/api/services/soundtrack.js.map +1 -1
  15. package/dist/api/services/stream.js +51 -77
  16. package/dist/api/services/stream.js.map +1 -1
  17. package/dist/api/services/support.js +41 -67
  18. package/dist/api/services/support.js.map +1 -1
  19. package/dist/api/services/videoContent.js +291 -389
  20. package/dist/api/services/videoContent.js.map +1 -1
  21. package/dist/api/types.js +1 -2
  22. package/dist/core.js +13 -35
  23. package/dist/core.js.map +1 -1
  24. package/dist/entities/BaseEntity.js +2 -5
  25. package/dist/entities/BaseEntity.js.map +1 -1
  26. package/dist/entities/IArticle.d.ts +0 -4
  27. package/dist/entities/IArticle.js +10 -6
  28. package/dist/entities/IArticle.js.map +1 -1
  29. package/dist/entities/IAttachment.js +1 -2
  30. package/dist/entities/IBiography.js +14 -6
  31. package/dist/entities/IBiography.js.map +1 -1
  32. package/dist/entities/IBoxOffice.js +20 -6
  33. package/dist/entities/IBoxOffice.js.map +1 -1
  34. package/dist/entities/ICollection.js +9 -6
  35. package/dist/entities/ICollection.js.map +1 -1
  36. package/dist/entities/ICollector.js +1 -2
  37. package/dist/entities/IOperator.js +2 -5
  38. package/dist/entities/IOperator.js.map +1 -1
  39. package/dist/entities/IPerson.js +1 -2
  40. package/dist/entities/IRating.js +1 -2
  41. package/dist/entities/ISoundTrack.js +1 -2
  42. package/dist/entities/IStream.js +1 -2
  43. package/dist/entities/ITitle.js +34 -8
  44. package/dist/entities/ITitle.js.map +1 -1
  45. package/dist/entities/IVideoContent.js +26 -6
  46. package/dist/entities/IVideoContent.js.map +1 -1
  47. package/dist/entities/index.js +12 -28
  48. package/dist/entities/index.js.map +1 -1
  49. package/dist/index.js +7 -8
  50. package/dist/index.js.map +1 -1
  51. package/dist/pattern/index.js +10 -9
  52. package/dist/pattern/index.js.map +1 -1
  53. package/package.json +1 -1
@@ -1,420 +1,322 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
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
- return __awaiter(this, void 0, void 0, function* () {
49
- const This = this;
50
- This.log('info', 'Running action: videoContentRate');
51
- const req = new request_1.default(`user-video-content/action/rating`, this);
52
- req.withService(servicePath);
53
- req.withMethod('post');
54
- const response = (yield req.execute({ score, video_content_id }));
55
- // if (response?.success) response.data = new IVideoContent(response.data)
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
- return __awaiter(this, void 0, void 0, function* () {
61
- const This = this;
62
- This.log('info', 'Running action: videoContentUserList');
63
- const req = new request_1.default(`user-video-content/action/${pick_type}`, this);
64
- req.withService(servicePath);
65
- req.withMethod('get');
66
- const response = (yield req.execute(filters));
67
- // if (response?.success) response.data = new IVideoContent(response.data)
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
- return __awaiter(this, void 0, void 0, function* () {
73
- const This = this;
74
- This.log('info', 'Running action: videoContentManageUserPick');
75
- const req = new request_1.default(`user-video-content/action/${pick_type}`, this);
76
- req.withService(servicePath);
77
- req.withMethod('post');
78
- const response = (yield req.execute({ video_content_id }));
79
- // if (response?.success) response.data = new IVideoContent(response.data)
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
- return __awaiter(this, void 0, void 0, function* () {
85
- const This = this;
86
- This.log('info', 'Running action: videoContentNotificationAdd');
87
- const req = new request_1.default(`user-video-content/action/notification/add`, this);
88
- req.withService(servicePath);
89
- req.withMethod('post');
90
- const response = (yield req.execute({ video_content_id, notification_type_slug }));
91
- // if (response?.success) response.data = new IVideoContent(response.data)
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
- return __awaiter(this, void 0, void 0, function* () {
97
- const This = this;
98
- This.log('info', 'Running action: videoContentGetNotificationList');
99
- const req = new request_1.default(`user-video-content/action/notification/list`, this);
100
- req.withService(servicePath);
101
- req.withMethod('get');
102
- const response = (yield req.execute(filters));
103
- // if (response?.success) response.data = new IVideoContent(response.data)
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
- return __awaiter(this, void 0, void 0, function* () {
109
- const This = this;
110
- This.log('info', 'Running action: videoContentGetCollectorList');
111
- const req = new request_1.default(`user-video-content/collectors-list`, this);
112
- req.withService(servicePath);
113
- req.withMethod('get');
114
- const response = (yield req.execute({ collector_name }));
115
- if (response === null || response === void 0 ? void 0 : response.success)
116
- response.data = response.data;
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
- return __awaiter(this, void 0, void 0, function* () {
122
- const This = this;
123
- This.log('info', 'Running action: videoContentGetCollectionList');
124
- const req = new request_1.default(`user-video-content/collection-list`, this);
125
- req.withService(servicePath);
126
- req.withMethod('get');
127
- const response = (yield req.execute(filters));
128
- if (response === null || response === void 0 ? void 0 : response.success)
129
- response.data.items = response.data.items.map((item) => new ICollection_1.ICollection(item));
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
- return __awaiter(this, void 0, void 0, function* () {
135
- const This = this;
136
- This.log('info', 'Running action: videoContentGetCollectionData');
137
- const req = new request_1.default(`user-video-content/collection-list/${slug}`, this);
138
- req.withService(servicePath);
139
- req.withMethod('get');
140
- const response = (yield req.execute());
141
- if (response === null || response === void 0 ? void 0 : response.success)
142
- response.data = response.data.map((item) => new ITitle_1.ITitle(item));
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
- return __awaiter(this, void 0, void 0, function* () {
148
- const This = this;
149
- This.log('info', 'Running action: videoContentList');
150
- const req = new request_1.default(`user-video-content/`, this);
151
- req.withService(servicePath);
152
- req.withMethod('get');
153
- const response = (yield req.execute(filters));
154
- if (response === null || response === void 0 ? void 0 : response.success)
155
- response.data.items = response.data.items.map((item) => new ITitle_1.ITitle(item));
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
- return __awaiter(this, arguments, void 0, function* (filters = {}) {
161
- const This = this;
162
- This.log('info', 'Running action: videoContentGetFeatured');
163
- const req = new request_1.default(`user-video-content/options-contents`, this);
164
- req.withService(servicePath);
165
- req.withMethod('get');
166
- const response = (yield req.execute(Object.assign({ option: 'featured' }, filters)));
167
- if (response === null || response === void 0 ? void 0 : response.success)
168
- response.data.items = response.data.items.map((item) => new ITitle_1.ITitle(item));
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
- return __awaiter(this, arguments, void 0, function* (filters = {}) {
174
- const This = this;
175
- This.log('info', 'Running action: videoContentGetComingSoon');
176
- const req = new request_1.default(`user-video-content/options-contents`, this);
177
- req.withService(servicePath);
178
- req.withMethod('get');
179
- const response = (yield req.execute(Object.assign({ option: 'coming-soon' }, filters)));
180
- if (response === null || response === void 0 ? void 0 : response.success)
181
- response.data.items = response.data.items.map((item) => new ITitle_1.ITitle(item));
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
- return __awaiter(this, void 0, void 0, function* () {
187
- const This = this;
188
- This.log('info', 'Running action: videoContentGetStreams');
189
- const req = new request_1.default(`user-video-content/streams/${category}`, this);
190
- req.withService(servicePath);
191
- req.withMethod('get');
192
- const response = (yield req.execute({ order_by, page, limit }));
193
- if (response === null || response === void 0 ? void 0 : response.success)
194
- response.data.items = response.data.items.map((item) => new ITitle_1.ITitle(item));
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
- return __awaiter(this, void 0, void 0, function* () {
200
- const This = this;
201
- This.log('info', 'Running action: videoContentGetStreamHomepage');
202
- const req = new request_1.default(`user-video-content/streams`, this);
203
- req.withService(servicePath);
204
- req.withMethod('get');
205
- const response = (yield req.execute({ limit }));
206
- if (response === null || response === void 0 ? void 0 : response.success) {
207
- response.data = {
208
- featured: response.data.featured.map((item) => new ITitle_1.ITitle(item)),
209
- movies: response.data.movies.map((item) => new ITitle_1.ITitle(item)),
210
- series: response.data.series.map((item) => new ITitle_1.ITitle(item)),
211
- anime: response.data.anime.map((item) => new ITitle_1.ITitle(item)),
212
- free_stream: response.data.free_stream.map((item) => new ITitle_1.ITitle(item))
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
- return __awaiter(this, void 0, void 0, function* () {
220
- const This = this;
221
- This.log('info', 'Running action: videoContentGetHomepage');
222
- const req = new request_1.default(`user-video-content/home-page`, this);
223
- req.withService(servicePath);
224
- req.withMethod('get');
225
- const response = (yield req.execute({ limit }));
226
- if (response === null || response === void 0 ? void 0 : response.success) {
227
- response.data = {
228
- featured: response.data.featured.map((item) => new ITitle_1.ITitle(item)),
229
- top_ten: response.data.top_ten.map((item) => new ITitle_1.ITitle(item)),
230
- new_releases: response.data.new_releases.map((item) => new ITitle_1.ITitle(item)),
231
- movies: response.data.movies.map((item) => new ITitle_1.ITitle(item)),
232
- series: response.data.series.map((item) => new ITitle_1.ITitle(item)),
233
- anime: response.data.anime.map((item) => new ITitle_1.ITitle(item))
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
- return __awaiter(this, void 0, void 0, function* () {
241
- const This = this;
242
- This.log('info', 'Running action: videoContentGetCastContents');
243
- const req = new request_1.default(`user-video-content/cast/contents`, this);
244
- req.withService(servicePath);
245
- req.withMethod('get');
246
- const response = (yield req.execute({ cast_imdb_code, page, limit }));
247
- if (response === null || response === void 0 ? void 0 : response.success)
248
- response.data.items = response.data.items.map((item) => new ITitle_1.ITitle(item));
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
- return __awaiter(this, void 0, void 0, function* () {
254
- const This = this;
255
- This.log('info', 'Running action: videoContentGetWeeklyScheduleContents');
256
- const req = new request_1.default(`user-video-content/weekly-schedule-contents`, this);
257
- req.withService(servicePath);
258
- req.withMethod('get');
259
- const response = (yield req.execute(filters));
260
- if (response === null || response === void 0 ? void 0 : response.success)
261
- response.data = response.data.map((item) => new ITitle_1.ITitle(item));
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
- return __awaiter(this, void 0, void 0, function* () {
267
- const This = this;
268
- This.log('info', 'Running action: videoContentGetNewReleases');
269
- const req = new request_1.default(`user-video-content/options-contents/new-releases`, this);
270
- req.withService(servicePath);
271
- req.withMethod('get');
272
- const response = (yield req.execute(filters));
273
- if (response === null || response === void 0 ? void 0 : response.success)
274
- response.data.items = response.data.items.map((item) => new ITitle_1.ITitle(item));
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
- return __awaiter(this, void 0, void 0, function* () {
280
- const This = this;
281
- This.log('info', 'Running action: videoContentGetBoxOffice');
282
- const req = new request_1.default(`user-video-content/box-office/${source}`, this);
283
- req.withService(servicePath);
284
- req.withMethod('get');
285
- const response = (yield req.execute());
286
- if (response === null || response === void 0 ? void 0 : response.success)
287
- response.data = response.data.map((item) => new IBoxOffice_1.IBoxOffice(item));
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
- return __awaiter(this, void 0, void 0, function* () {
293
- const This = this;
294
- This.log('info', 'Running action: videoContentGetVipHeroSection');
295
- const req = new request_1.default(`user-video-content/vip-hero-section`, this);
296
- req.withService(servicePath);
297
- req.withMethod('get');
298
- const response = (yield req.execute());
299
- if (response === null || response === void 0 ? void 0 : response.success)
300
- response.data = response.data.map((item) => new ITitle_1.IHeroTitle(item));
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
- return __awaiter(this, void 0, void 0, function* () {
306
- const This = this;
307
- This.log('info', 'Running action: videoContentGetGuestHeroSection');
308
- const req = new request_1.default(`user-video-content/hero-section`, this);
309
- req.withService(servicePath);
310
- req.withMethod('get');
311
- const response = (yield req.execute());
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
- return __awaiter(this, void 0, void 0, function* () {
317
- const This = this;
318
- This.log('info', 'Running action: videoContentGetTopContents');
319
- const req = new request_1.default(`user-video-content/top-contents/${source}/${content_type}`, this);
320
- req.withService(servicePath);
321
- req.withMethod('get');
322
- const response = (yield req.execute({ page, limit }));
323
- if (response === null || response === void 0 ? void 0 : response.success)
324
- response.data.items = response.data.items.map((item) => new ITitle_1.ITitle(item));
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
- return __awaiter(this, void 0, void 0, function* () {
330
- const This = this;
331
- This.log('info', 'Running action: single');
332
- const req = new request_1.default(`user-video-content/detail/${video_content_id}`, this);
333
- req.withService(servicePath);
334
- req.withMethod('get');
335
- const response = (yield req.execute());
336
- if (response === null || response === void 0 ? void 0 : response.success)
337
- response.data = new entities_1.IVideoContent(response.data);
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
- return __awaiter(this, void 0, void 0, function* () {
343
- const This = this;
344
- This.log('info', 'Running action: quotes');
345
- const req = new request_1.default(`user-video-content/detail/quotes/${video_content_id}`, this);
346
- req.withService(servicePath);
347
- req.withMethod('get');
348
- const response = (yield req.execute());
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
- return __awaiter(this, void 0, void 0, function* () {
354
- const This = this;
355
- This.log('info', 'Running action: videoContentGetPersons');
356
- const req = new request_1.default(`user-video-content/detail/persons/${video_content_id}`, this);
357
- req.withService(servicePath);
358
- req.withMethod('get');
359
- const response = (yield req.execute());
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
- return __awaiter(this, void 0, void 0, function* () {
365
- const This = this;
366
- This.log('info', 'Running action: videoContentExplore');
367
- const req = new request_1.default(`user-video-content/explore`, this);
368
- req.withService(servicePath);
369
- req.withMethod('get');
370
- const response = (yield req.execute(payload));
371
- if (response === null || response === void 0 ? void 0 : response.success)
372
- response.data.items = response.data.items.map((item) => new ITitle_1.ITitle(item));
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
- return __awaiter(this, void 0, void 0, function* () {
378
- const This = this;
379
- This.log('info', 'Running action: videoContentGetCountryLanguage');
380
- const req = new request_1.default(`user-video-content/countries-language`, this);
381
- req.withService(servicePath);
382
- req.withMethod('get');
383
- const response = (yield req.execute({ type }));
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
- return __awaiter(this, void 0, void 0, function* () {
389
- const This = this;
390
- This.log('info', 'Running action: videoContentMpaa');
391
- const req = new request_1.default(`user-video-content/mpaa`, this);
392
- req.withService(servicePath);
393
- req.withMethod('get');
394
- const response = (yield req.execute());
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
- return __awaiter(this, void 0, void 0, function* () {
400
- const This = this;
401
- This.log('info', 'Running action: videoContentChannel');
402
- const req = new request_1.default(`user-video-content/channel`, this);
403
- req.withService(servicePath);
404
- req.withMethod('get');
405
- const response = (yield req.execute({ search, page, limit }));
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
- return __awaiter(this, void 0, void 0, function* () {
411
- const This = this;
412
- This.log('info', 'Running action: test');
413
- const req = new request_1.default(`user-video-content/test`, this);
414
- req.withService(servicePath);
415
- req.withMethod('get');
416
- const response = (yield req.execute());
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