@30nama/sdk 1.2.0 → 1.3.1
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/services/biography.d.ts +15 -0
- package/dist/api/services/biography.js +100 -0
- package/dist/api/services/biography.js.map +1 -0
- package/dist/api/services/index.d.ts +1 -0
- package/dist/api/services/index.js +1 -0
- package/dist/api/services/index.js.map +1 -1
- package/dist/api/services/news.d.ts +1 -2
- package/dist/api/services/news.js.map +1 -1
- package/dist/entities/IArticle.d.ts +1 -0
- package/dist/entities/IArticle.js.map +1 -1
- package/dist/entities/IBiography.d.ts +32 -0
- package/dist/entities/IBiography.js +12 -0
- package/dist/entities/IBiography.js.map +1 -0
- package/dist/entities/index.d.ts +2 -0
- package/dist/entities/index.js +2 -0
- package/dist/entities/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseResponse } from '../types';
|
|
2
|
+
import { IBiography, PersonGender, PersonProfession } from '../../entities';
|
|
3
|
+
type BiographyPagination = {
|
|
4
|
+
count: number;
|
|
5
|
+
previous_page?: number;
|
|
6
|
+
next_page: string;
|
|
7
|
+
last_page: number;
|
|
8
|
+
data: IBiography[];
|
|
9
|
+
};
|
|
10
|
+
export declare function biographyAddToFavorites(this: any, person_id: number): Promise<BaseResponse<void> | undefined>;
|
|
11
|
+
export declare function biographyRemoteFromFavorites(this: any, person_id: number): Promise<BaseResponse<void> | undefined>;
|
|
12
|
+
export declare function biographyFavorites(this: any): Promise<BaseResponse<any> | undefined>;
|
|
13
|
+
export declare function biographyPersonDetails(this: any, person_id: number): Promise<BaseResponse<IBiography> | undefined>;
|
|
14
|
+
export declare function biographyPersonsList(this: any, page?: number, gender?: PersonGender, profession?: PersonProfession, search_text?: string): Promise<BaseResponse<BiographyPagination> | undefined>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,100 @@
|
|
|
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.biographyPersonsList = exports.biographyPersonDetails = exports.biographyFavorites = exports.biographyRemoteFromFavorites = exports.biographyAddToFavorites = void 0;
|
|
13
|
+
const request_1 = require("../request");
|
|
14
|
+
const servicePath = 'biography';
|
|
15
|
+
function biographyAddToFavorites(person_id) {
|
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
const This = this;
|
|
18
|
+
This.log('info', 'Running action: biographyAddToFavorites');
|
|
19
|
+
const req = new request_1.default(`biography/addtofavorites`, this);
|
|
20
|
+
req.withService(servicePath);
|
|
21
|
+
req.withMethod('get');
|
|
22
|
+
const response = (yield req.execute({ person_id }));
|
|
23
|
+
// TODO: remove-enforced-success
|
|
24
|
+
if (response) {
|
|
25
|
+
response.result = true;
|
|
26
|
+
response.success = true;
|
|
27
|
+
}
|
|
28
|
+
return response;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
exports.biographyAddToFavorites = biographyAddToFavorites;
|
|
32
|
+
function biographyRemoteFromFavorites(person_id) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
const This = this;
|
|
35
|
+
This.log('info', 'Running action: biographyAddToFavorites');
|
|
36
|
+
const req = new request_1.default(`biography/deletefromfavorites`, this);
|
|
37
|
+
req.withService(servicePath);
|
|
38
|
+
req.withMethod('get');
|
|
39
|
+
const response = (yield req.execute({ person_id }));
|
|
40
|
+
// TODO: remove-enforced-success
|
|
41
|
+
if (response) {
|
|
42
|
+
response.result = true;
|
|
43
|
+
response.success = true;
|
|
44
|
+
}
|
|
45
|
+
return response;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
exports.biographyRemoteFromFavorites = biographyRemoteFromFavorites;
|
|
49
|
+
function biographyFavorites() {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
const This = this;
|
|
52
|
+
This.log('info', 'Running action: biographyFavorites');
|
|
53
|
+
const req = new request_1.default(`biography/favorites`, this);
|
|
54
|
+
req.withService(servicePath);
|
|
55
|
+
req.withMethod('get');
|
|
56
|
+
const response = (yield req.execute());
|
|
57
|
+
// TODO: remove-enforced-success
|
|
58
|
+
if (response) {
|
|
59
|
+
response.result = true;
|
|
60
|
+
response.success = true;
|
|
61
|
+
}
|
|
62
|
+
return response;
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
exports.biographyFavorites = biographyFavorites;
|
|
66
|
+
function biographyPersonDetails(person_id) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const This = this;
|
|
69
|
+
This.log('info', 'Running action: biographyPersonDetails');
|
|
70
|
+
const req = new request_1.default(`biography/person/detail`, this);
|
|
71
|
+
req.withService(servicePath);
|
|
72
|
+
req.withMethod('get');
|
|
73
|
+
const response = (yield req.execute({ person_id }));
|
|
74
|
+
// TODO: remove-enforced-success
|
|
75
|
+
if (response) {
|
|
76
|
+
response.result = true;
|
|
77
|
+
response.success = true;
|
|
78
|
+
}
|
|
79
|
+
return response;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
exports.biographyPersonDetails = biographyPersonDetails;
|
|
83
|
+
function biographyPersonsList(page, gender, profession, search_text) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
const This = this;
|
|
86
|
+
This.log('info', 'Running action: biographyPersonsList');
|
|
87
|
+
const req = new request_1.default(`biography/persons/list`, this);
|
|
88
|
+
req.withService(servicePath);
|
|
89
|
+
req.withMethod('get');
|
|
90
|
+
const response = (yield req.execute({ page, gender, profession, search_text }));
|
|
91
|
+
// TODO: remove-enforced-success
|
|
92
|
+
if (response) {
|
|
93
|
+
response.result = true;
|
|
94
|
+
response.success = true;
|
|
95
|
+
}
|
|
96
|
+
return response;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
exports.biographyPersonsList = biographyPersonsList;
|
|
100
|
+
//# sourceMappingURL=biography.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"biography.js","sourceRoot":"","sources":["../../../src/api/services/biography.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,wCAAgC;AAGhC,MAAM,WAAW,GAAG,WAAW,CAAA;AAK/B,SAAsB,uBAAuB,CAAY,SAAiB;;QACtE,MAAM,IAAI,GAAG,IAAW,CAAA;QACxB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,yCAAyC,CAAC,CAAA;QAC3D,MAAM,GAAG,GAAG,IAAI,iBAAO,CAAC,0BAA0B,EAAE,IAAI,CAAC,CAAA;QACzD,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;QAC5B,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;QAErB,MAAM,QAAQ,GAAG,CAAC,MAAM,GAAG,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,CAAmC,CAAA;QAErF,gCAAgC;QAChC,IAAI,QAAQ,EAAE,CAAC;YACX,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAA;YACtB,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAA;QAC3B,CAAC;QAED,OAAO,QAAQ,CAAA;IACnB,CAAC;CAAA;AAhBD,0DAgBC;AAED,SAAsB,4BAA4B,CAAY,SAAiB;;QAC3E,MAAM,IAAI,GAAG,IAAW,CAAA;QACx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|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./videoContent"), exports);
|
|
18
18
|
__exportStar(require("./news"), exports);
|
|
19
|
+
__exportStar(require("./biography"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,yCAAsB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,yCAAsB;AACtB,8CAA2B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseResponse } from '../types';
|
|
2
|
-
import { IArticle } from '../../entities/IArticle';
|
|
2
|
+
import { IArticle, NewsCategory } from '../../entities/IArticle';
|
|
3
3
|
type NewsPagination = {
|
|
4
4
|
count: number;
|
|
5
5
|
previous_page?: number;
|
|
@@ -12,7 +12,6 @@ export declare function newsBaseHome(this: any): Promise<BaseResponse<{
|
|
|
12
12
|
news: IArticle[];
|
|
13
13
|
}> | undefined>;
|
|
14
14
|
export declare function newsDetail(this: any, id: number): Promise<BaseResponse<IArticle> | undefined>;
|
|
15
|
-
type NewsCategory = 'announcement' | 'interview_and_review' | 'news';
|
|
16
15
|
export declare function newsList(this: any, page: number, category: NewsCategory): Promise<BaseResponse<NewsPagination> | undefined>;
|
|
17
16
|
export declare function newsSearch(this: any, page: number, search_text: string): Promise<BaseResponse<NewsPagination> | undefined>;
|
|
18
17
|
export declare function newsVideoContent(this: any, video_content_id: string): Promise<BaseResponse<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"news.js","sourceRoot":"","sources":["../../../src/api/services/news.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,wCAAgC;AAGhC,MAAM,WAAW,GAAG,MAA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AAC,OAAO,GAAG,IAAI,CAAA;QAC3B,CAAC;QAED,OAAO,QAAQ,CAAA;IACnB,CAAC;CAAA;AAhBD,gCAgBC;AAED,SAAsB,gBAAgB,CAAY,gBAAwB;;QACtE,MAAM,IAAI,GAAG,IAAW,CAAA;QACxB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,kCAAkC,CAAC,CAAA;QACpD,MAAM,GAAG,GAAG,IAAI,iBAAO,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAA;QACnD,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;QAC5B,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;QAErB,MAAM,QAAQ,GAAG,CAAC,MAAM,GAAG,CAAC,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC,CAAiD,CAAA;QAE1G,gCAAgC;QAChC,IAAI,QAAQ,EAAE,CAAC;YACX,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAA;YACtB,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAA;QAC3B,CAAC;QAED,OAAO,QAAQ,CAAA;IACnB,CAAC;CAAA;AAhBD,4CAgBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IArticle.js","sourceRoot":"","sources":["../../src/entities/IArticle.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;
|
|
1
|
+
{"version":3,"file":"IArticle.js","sourceRoot":"","sources":["../../src/entities/IArticle.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AA0BrC,MAAa,QAAS,SAAQ,oBAAU;IAYpC,YAAY,OAA0B;QAClC,KAAK,EAAE,CAAA;QACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAChC,CAAC;CACJ;AAhBD,4BAgBC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import BaseEntity from './BaseEntity';
|
|
2
|
+
export type PersonGender = 'female' | 'male' | 'other';
|
|
3
|
+
export type PersonProfession = 'actor' | 'director' | 'writer';
|
|
4
|
+
export declare class IBiography extends BaseEntity {
|
|
5
|
+
id: number;
|
|
6
|
+
status: string;
|
|
7
|
+
comment_status: string;
|
|
8
|
+
names: {
|
|
9
|
+
id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
full_name?: string;
|
|
12
|
+
language: string;
|
|
13
|
+
}[];
|
|
14
|
+
gender: string;
|
|
15
|
+
profession: string[];
|
|
16
|
+
birth_date: string;
|
|
17
|
+
death_date?: string;
|
|
18
|
+
publish_date: string;
|
|
19
|
+
edit_time: string;
|
|
20
|
+
id_connections: {
|
|
21
|
+
id: number;
|
|
22
|
+
imdb_id: number;
|
|
23
|
+
tmdb_id?: number;
|
|
24
|
+
}[];
|
|
25
|
+
posters: {
|
|
26
|
+
id: number;
|
|
27
|
+
file_path: string;
|
|
28
|
+
format: string;
|
|
29
|
+
size: string;
|
|
30
|
+
}[];
|
|
31
|
+
constructor(partial: Partial<IBiography>);
|
|
32
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IBiography = void 0;
|
|
4
|
+
const BaseEntity_1 = require("./BaseEntity");
|
|
5
|
+
class IBiography extends BaseEntity_1.default {
|
|
6
|
+
constructor(partial) {
|
|
7
|
+
super();
|
|
8
|
+
Object.assign(this, partial);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.IBiography = IBiography;
|
|
12
|
+
//# sourceMappingURL=IBiography.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IBiography.js","sourceRoot":"","sources":["../../src/entities/IBiography.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AAIrC,MAAa,UAAW,SAAQ,oBAAU;IA4BtC,YAAY,OAA4B;QACpC,KAAK,EAAE,CAAA;QACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAChC,CAAC;CACJ;AAhCD,gCAgCC"}
|
package/dist/entities/index.d.ts
CHANGED
package/dist/entities/index.js
CHANGED
|
@@ -22,4 +22,6 @@ __exportStar(require("./ICollection"), exports);
|
|
|
22
22
|
__exportStar(require("./IBoxOffice"), exports);
|
|
23
23
|
__exportStar(require("./IPerson"), exports);
|
|
24
24
|
__exportStar(require("./ITitle"), exports);
|
|
25
|
+
__exportStar(require("./IArticle"), exports);
|
|
26
|
+
__exportStar(require("./IBiography"), exports);
|
|
25
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B;AAC/B,4CAAyB;AACzB,gDAA6B;AAC7B,+CAA4B;AAC5B,gDAA6B;AAC7B,+CAA4B;AAC5B,4CAAyB;AACzB,2CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B;AAC/B,4CAAyB;AACzB,gDAA6B;AAC7B,+CAA4B;AAC5B,gDAA6B;AAC7B,+CAA4B;AAC5B,4CAAyB;AACzB,2CAAwB;AACxB,6CAA0B;AAC1B,+CAA4B"}
|