@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,74 +1,48 @@
|
|
|
1
|
-
|
|
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.newsBaseHome = newsBaseHome;
|
|
13
|
-
exports.newsDetail = newsDetail;
|
|
14
|
-
exports.newsList = newsList;
|
|
15
|
-
exports.newsSearch = newsSearch;
|
|
16
|
-
exports.newsVideoContent = newsVideoContent;
|
|
17
|
-
const request_1 = require("../request");
|
|
1
|
+
import request from '../request';
|
|
18
2
|
const servicePath = 'news';
|
|
19
|
-
function newsBaseHome() {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return response;
|
|
28
|
-
});
|
|
3
|
+
export async function newsBaseHome() {
|
|
4
|
+
const This = this;
|
|
5
|
+
This.log('info', 'Running action: newsBaseHome');
|
|
6
|
+
const req = new request(`news/base_home`, this);
|
|
7
|
+
req.withService(servicePath);
|
|
8
|
+
req.withMethod('get');
|
|
9
|
+
const response = (await req.execute());
|
|
10
|
+
return response;
|
|
29
11
|
}
|
|
30
|
-
function newsDetail(id) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return response;
|
|
39
|
-
});
|
|
12
|
+
export async function newsDetail(id) {
|
|
13
|
+
const This = this;
|
|
14
|
+
This.log('info', 'Running action: newsDetail');
|
|
15
|
+
const req = new request(`news/detail`, this);
|
|
16
|
+
req.withService(servicePath);
|
|
17
|
+
req.withMethod('get');
|
|
18
|
+
const response = (await req.execute({ news_id: id }));
|
|
19
|
+
return response;
|
|
40
20
|
}
|
|
41
|
-
function newsList(page, category) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return response;
|
|
50
|
-
});
|
|
21
|
+
export async function newsList(page, category) {
|
|
22
|
+
const This = this;
|
|
23
|
+
This.log('info', 'Running action: newsList');
|
|
24
|
+
const req = new request(`news/list`, this);
|
|
25
|
+
req.withService(servicePath);
|
|
26
|
+
req.withMethod('get');
|
|
27
|
+
const response = (await req.execute({ page, category }));
|
|
28
|
+
return response;
|
|
51
29
|
}
|
|
52
|
-
function newsSearch(page, search_text) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return response;
|
|
61
|
-
});
|
|
30
|
+
export async function newsSearch(page, search_text) {
|
|
31
|
+
const This = this;
|
|
32
|
+
This.log('info', 'Running action: newsSearch');
|
|
33
|
+
const req = new request(`news/search`, this);
|
|
34
|
+
req.withService(servicePath);
|
|
35
|
+
req.withMethod('get');
|
|
36
|
+
const response = (await req.execute({ page, search_text }));
|
|
37
|
+
return response;
|
|
62
38
|
}
|
|
63
|
-
function newsVideoContent(video_content_id) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return response;
|
|
72
|
-
});
|
|
39
|
+
export async function newsVideoContent(video_content_id) {
|
|
40
|
+
const This = this;
|
|
41
|
+
This.log('info', 'Running action: newsVideoContent');
|
|
42
|
+
const req = new request(`news/video_content`, this);
|
|
43
|
+
req.withService(servicePath);
|
|
44
|
+
req.withMethod('get');
|
|
45
|
+
const response = (await req.execute({ video_content_id }));
|
|
46
|
+
return response;
|
|
73
47
|
}
|
|
74
48
|
//# sourceMappingURL=news.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"news.js","sourceRoot":"","sources":["../../../src/api/services/news.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"news.js","sourceRoot":"","sources":["../../../src/api/services/news.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,YAAY,CAAA;AAGhC,MAAM,WAAW,GAAG,MAAM,CAAA;AAK1B,MAAM,CAAC,KAAK,UAAU,YAAY;IAC9B,MAAM,IAAI,GAAG,IAAW,CAAA;IACxB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAA;IAChD,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAA;IAC/C,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;IAC5B,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;IAErB,MAAM,QAAQ,GAAG,CAAC,MAAM,GAAG,CAAC,OAAO,EAAE,CAAuE,CAAA;IAC5G,OAAO,QAAQ,CAAA;AACnB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAY,EAAU;IAClD,MAAM,IAAI,GAAG,IAAW,CAAA;IACxB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAA;IAC9C,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,aAAa,EAAE,IAAI,CAA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