@30nama/sdk 1.0.0

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 (65) hide show
  1. package/README.md +13 -0
  2. package/dist/api/actions.d.ts +384 -0
  3. package/dist/api/actions.js +526 -0
  4. package/dist/api/actions.js.map +1 -0
  5. package/dist/api/index.d.ts +11 -0
  6. package/dist/api/index.js +131 -0
  7. package/dist/api/index.js.map +1 -0
  8. package/dist/api/request.d.ts +18 -0
  9. package/dist/api/request.js +99 -0
  10. package/dist/api/request.js.map +1 -0
  11. package/dist/api/types.d.ts +29 -0
  12. package/dist/api/types.js +3 -0
  13. package/dist/api/types.js.map +1 -0
  14. package/dist/core.d.ts +23 -0
  15. package/dist/core.js +161 -0
  16. package/dist/core.js.map +1 -0
  17. package/dist/entities/ArchiveSlug.d.ts +17 -0
  18. package/dist/entities/ArchiveSlug.js +13 -0
  19. package/dist/entities/ArchiveSlug.js.map +1 -0
  20. package/dist/entities/ContinueWatchingTitle.d.ts +12 -0
  21. package/dist/entities/ContinueWatchingTitle.js +11 -0
  22. package/dist/entities/ContinueWatchingTitle.js.map +1 -0
  23. package/dist/entities/Download.d.ts +31 -0
  24. package/dist/entities/Download.js +22 -0
  25. package/dist/entities/Download.js.map +1 -0
  26. package/dist/entities/Downloadable.d.ts +27 -0
  27. package/dist/entities/Downloadable.js +19 -0
  28. package/dist/entities/Downloadable.js.map +1 -0
  29. package/dist/entities/Notification.d.ts +15 -0
  30. package/dist/entities/Notification.js +18 -0
  31. package/dist/entities/Notification.js.map +1 -0
  32. package/dist/entities/Person.d.ts +23 -0
  33. package/dist/entities/Person.js +12 -0
  34. package/dist/entities/Person.js.map +1 -0
  35. package/dist/entities/Plan.d.ts +22 -0
  36. package/dist/entities/Plan.js +14 -0
  37. package/dist/entities/Plan.js.map +1 -0
  38. package/dist/entities/PlayerData.d.ts +37 -0
  39. package/dist/entities/PlayerData.js +14 -0
  40. package/dist/entities/PlayerData.js.map +1 -0
  41. package/dist/entities/Single.d.ts +52 -0
  42. package/dist/entities/Single.js +18 -0
  43. package/dist/entities/Single.js.map +1 -0
  44. package/dist/entities/Stranger.d.ts +5 -0
  45. package/dist/entities/Stranger.js +10 -0
  46. package/dist/entities/Stranger.js.map +1 -0
  47. package/dist/entities/StreamData.d.ts +53 -0
  48. package/dist/entities/StreamData.js +13 -0
  49. package/dist/entities/StreamData.js.map +1 -0
  50. package/dist/entities/Title.d.ts +103 -0
  51. package/dist/entities/Title.js +25 -0
  52. package/dist/entities/Title.js.map +1 -0
  53. package/dist/entities/User.d.ts +20 -0
  54. package/dist/entities/User.js +21 -0
  55. package/dist/entities/User.js.map +1 -0
  56. package/dist/entities/UserLibrary.d.ts +14 -0
  57. package/dist/entities/UserLibrary.js +12 -0
  58. package/dist/entities/UserLibrary.js.map +1 -0
  59. package/dist/entities/index.d.ts +53 -0
  60. package/dist/entities/index.js +34 -0
  61. package/dist/entities/index.js.map +1 -0
  62. package/dist/index.d.ts +3 -0
  63. package/dist/index.js +10 -0
  64. package/dist/index.js.map +1 -0
  65. package/package.json +35 -0
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class Downloadable {
4
+ constructor(data) {
5
+ this.id = data.id;
6
+ this.postId = data.post_id;
7
+ this.title = data.title;
8
+ this.season = data.season;
9
+ this.episode = data.episode;
10
+ this.tags = data.tags;
11
+ this.quality = data.quality;
12
+ this.encoder = data.encoder;
13
+ this.size = data.size;
14
+ this.image = data.image;
15
+ this.src = data.src;
16
+ }
17
+ }
18
+ exports.default = Downloadable;
19
+ //# sourceMappingURL=Downloadable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Downloadable.js","sourceRoot":"","sources":["../../src/entities/Downloadable.ts"],"names":[],"mappings":";;AAAA,MAAqB,YAAY;IAyB7B,YAAY,IAAS;QACjB,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAA;QACjB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAA;QAC1B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;QACvB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;QACzB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;QACrB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;QACvB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAA;IACvB,CAAC;CACJ;AAtCD,+BAsCC"}
@@ -0,0 +1,15 @@
1
+ import { ITitle } from '.';
2
+ export default class Notification {
3
+ id: number;
4
+ title: string;
5
+ content: string;
6
+ date: {
7
+ g: string;
8
+ j: string;
9
+ };
10
+ read: boolean;
11
+ notification_type: 'stream' | 'post' | 'text' | 'link' | 'pricing';
12
+ link?: string;
13
+ post?: ITitle;
14
+ constructor(notif: any);
15
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class Notification {
4
+ constructor(notif) {
5
+ this.id = notif.id;
6
+ this.title = notif.title;
7
+ this.content = notif.content;
8
+ this.date = notif.date;
9
+ this.read = notif.read;
10
+ this.notification_type = notif.notification_type;
11
+ if (notif.link)
12
+ this.link = notif.link;
13
+ if (notif.post)
14
+ this.post = notif.post;
15
+ }
16
+ }
17
+ exports.default = Notification;
18
+ //# sourceMappingURL=Notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../src/entities/Notification.ts"],"names":[],"mappings":";;AAEA,MAAqB,YAAY;IAY7B,YAAY,KAAU;QAClB,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,CAAA;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;QACxB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;QAC5B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QAChD,IAAI,KAAK,CAAC,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtC,IAAI,KAAK,CAAC,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;IAC1C,CAAC;CACJ;AAtBD,+BAsBC"}
@@ -0,0 +1,23 @@
1
+ export default class Person {
2
+ name: string;
3
+ as?: string;
4
+ id: string;
5
+ image: {
6
+ poster: {
7
+ preview: string;
8
+ webp: {
9
+ small: string;
10
+ medium: string;
11
+ large: string;
12
+ big: string;
13
+ };
14
+ jpg: {
15
+ small: string;
16
+ medium: string;
17
+ large: string;
18
+ big: string;
19
+ };
20
+ };
21
+ };
22
+ constructor(person: any);
23
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class Person {
4
+ constructor(person) {
5
+ this.name = person.name;
6
+ this.as = person.as;
7
+ this.id = person.id;
8
+ this.image = person.image;
9
+ }
10
+ }
11
+ exports.default = Person;
12
+ //# sourceMappingURL=Person.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Person.js","sourceRoot":"","sources":["../../src/entities/Person.ts"],"names":[],"mappings":";;AAAA,MAAqB,MAAM;IAqBvB,YAAY,MAAW;QACnB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAA;QACvB,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,CAAA;QACnB,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,CAAA;QACnB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;IAC7B,CAAC;CACJ;AA3BD,yBA2BC"}
@@ -0,0 +1,22 @@
1
+ export type Feature = {
2
+ title: string;
3
+ enable: boolean;
4
+ };
5
+ export type Price = {
6
+ id: number;
7
+ note?: string;
8
+ price: string;
9
+ currency: string;
10
+ discount?: string;
11
+ };
12
+ export default class Plan {
13
+ title: string;
14
+ id: number;
15
+ type: string;
16
+ order: number;
17
+ features: Feature[];
18
+ prices: {
19
+ [days: string]: Price;
20
+ };
21
+ constructor(data: any);
22
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class Plan {
4
+ constructor(data) {
5
+ this.title = data.title;
6
+ this.id = data.id;
7
+ this.type = data.type;
8
+ this.order = data.order;
9
+ this.features = data.features;
10
+ this.prices = data.prices;
11
+ }
12
+ }
13
+ exports.default = Plan;
14
+ //# sourceMappingURL=Plan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plan.js","sourceRoot":"","sources":["../../src/entities/Plan.ts"],"names":[],"mappings":";;AAaA,MAAqB,IAAI;IAOrB,YAAY,IAAS;QACjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;QACvB,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAA;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;QACvB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC7B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;IAC7B,CAAC;CACJ;AAfD,uBAeC"}
@@ -0,0 +1,37 @@
1
+ export default class PlayerData {
2
+ vast2: string;
3
+ info: {
4
+ title: string;
5
+ displayName: string;
6
+ file_id: number;
7
+ post_id: number;
8
+ time?: number;
9
+ isSeries: boolean;
10
+ };
11
+ options: {
12
+ intro_start?: string;
13
+ intro_end?: string;
14
+ previously_start?: string;
15
+ previously_end?: string;
16
+ end?: string;
17
+ isLastEpisode?: boolean;
18
+ token: string;
19
+ };
20
+ subtitle?: {
21
+ fa?: string;
22
+ en?: string;
23
+ };
24
+ file: {
25
+ m3u8: {
26
+ default: string;
27
+ '6ch': string;
28
+ '2ch': string;
29
+ label: string;
30
+ }[];
31
+ };
32
+ image: {
33
+ cover: string;
34
+ cover_webp: string;
35
+ };
36
+ constructor(stream: any);
37
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class PlayerData {
4
+ constructor(stream) {
5
+ this.info = stream.info;
6
+ this.options = stream.options;
7
+ this.subtitle = stream.subtitle;
8
+ this.file = stream.file;
9
+ this.image = stream.image;
10
+ this.vast2 = stream.vast2;
11
+ }
12
+ }
13
+ exports.default = PlayerData;
14
+ //# sourceMappingURL=PlayerData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlayerData.js","sourceRoot":"","sources":["../../src/entities/PlayerData.ts"],"names":[],"mappings":";;AAAA,MAAqB,UAAU;IAmC3B,YAAY,MAAW;QACnB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAA;QACvB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAA;QAC7B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAA;QAC/B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAA;QACvB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;QACzB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;IAC7B,CAAC;CACJ;AA3CD,6BA2CC"}
@@ -0,0 +1,52 @@
1
+ import Title from './Title';
2
+ import Stranger from './Stranger';
3
+ import Person from './Person';
4
+ type PersonOrStranger = Partial<Person> & Partial<Stranger>;
5
+ export default class Single extends Title {
6
+ cast: PersonOrStranger[];
7
+ crew: {
8
+ director?: PersonOrStranger[];
9
+ writer?: PersonOrStranger[];
10
+ creator?: PersonOrStranger[];
11
+ };
12
+ country: {
13
+ name: string;
14
+ code: string;
15
+ }[];
16
+ language: {
17
+ primary: {
18
+ name: string;
19
+ code: string;
20
+ };
21
+ others?: {
22
+ name: string;
23
+ code: string;
24
+ }[];
25
+ };
26
+ list: {
27
+ watchlist: number;
28
+ favorite: number;
29
+ };
30
+ note: {
31
+ main?: string;
32
+ update: {
33
+ title: string;
34
+ content: string;
35
+ date: {
36
+ g: string;
37
+ j: string;
38
+ };
39
+ }[];
40
+ };
41
+ subtitle: {
42
+ language: string;
43
+ quality: string;
44
+ link: string;
45
+ single: boolean;
46
+ type?: string;
47
+ season?: string;
48
+ }[];
49
+ network: string[];
50
+ constructor(post: any);
51
+ }
52
+ export {};
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Title_1 = require("./Title");
4
+ class Single extends Title_1.default {
5
+ constructor(post) {
6
+ super(post);
7
+ this.cast = post.cast;
8
+ this.crew = post.crew;
9
+ this.country = post.country;
10
+ this.language = post.language;
11
+ this.list = post.list;
12
+ this.note = post.note;
13
+ this.subtitle = post.subtitle;
14
+ this.network = post.network;
15
+ }
16
+ }
17
+ exports.default = Single;
18
+ //# sourceMappingURL=Single.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Single.js","sourceRoot":"","sources":["../../src/entities/Single.ts"],"names":[],"mappings":";;AAAA,mCAA2B;AAK3B,MAAqB,MAAO,SAAQ,eAAK;IA6CrC,YAAY,IAAS;QACjB,KAAK,CAAC,IAAI,CAAC,CAAA;QACX,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;QACrB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAC3B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;QACrB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC7B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;IAC/B,CAAC;CACJ;AAxDD,yBAwDC"}
@@ -0,0 +1,5 @@
1
+ export default class Stranger {
2
+ name: string;
3
+ imdb: string;
4
+ constructor(data: any);
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class Stranger {
4
+ constructor(data) {
5
+ this.name = data.name;
6
+ this.imdb = data.imdb;
7
+ }
8
+ }
9
+ exports.default = Stranger;
10
+ //# sourceMappingURL=Stranger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stranger.js","sourceRoot":"","sources":["../../src/entities/Stranger.ts"],"names":[],"mappings":";;AAAA,MAAqB,QAAQ;IAGzB,YAAY,IAAS;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;IACzB,CAAC;CACJ;AAPD,2BAOC"}
@@ -0,0 +1,53 @@
1
+ export default class StreamData {
2
+ info: {
3
+ post_id: number;
4
+ title: {
5
+ english: string;
6
+ local?: string;
7
+ };
8
+ };
9
+ image: {
10
+ cover?: {
11
+ webp: string;
12
+ jpg: string;
13
+ };
14
+ };
15
+ continue_watching?: {
16
+ post_id: number;
17
+ file_id: number;
18
+ time: number;
19
+ display_time: string;
20
+ progress: number;
21
+ };
22
+ vast2: string;
23
+ hls: {
24
+ info: {
25
+ file_id: number;
26
+ season?: number;
27
+ episode?: string;
28
+ episode_number?: number;
29
+ episode_name?: string;
30
+ };
31
+ file: {
32
+ m3u8: {
33
+ default: string;
34
+ '6ch': string;
35
+ '2ch': string;
36
+ label: string;
37
+ }[];
38
+ subtitle?: {
39
+ en?: string;
40
+ fa?: string;
41
+ };
42
+ };
43
+ options: {
44
+ intro_start?: string;
45
+ intro_end?: string;
46
+ previously_start?: string;
47
+ previously_end?: string;
48
+ end?: string;
49
+ token: string;
50
+ };
51
+ }[];
52
+ constructor(stream: any);
53
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class StreamData {
4
+ constructor(stream) {
5
+ this.info = stream.info;
6
+ this.image = stream.image;
7
+ this.continue_watching = stream.continue_watching;
8
+ this.hls = stream.hls;
9
+ this.vast2 = stream.vast2;
10
+ }
11
+ }
12
+ exports.default = StreamData;
13
+ //# sourceMappingURL=StreamData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamData.js","sourceRoot":"","sources":["../../src/entities/StreamData.ts"],"names":[],"mappings":";;AAAA,MAAqB,UAAU;IAmD3B,YAAY,MAAW;QACnB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAA;QACvB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;QACzB,IAAI,CAAC,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAA;QACjD,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAA;QACrB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;IAC7B,CAAC;CACJ;AA1DD,6BA0DC"}
@@ -0,0 +1,103 @@
1
+ export default class Title {
2
+ id: number;
3
+ post_type: 'title';
4
+ options: {
5
+ title_type: 'series' | 'movie' | 'anime';
6
+ stream: boolean;
7
+ is_series: boolean;
8
+ persian_subtitle: boolean;
9
+ exclusive_subtitle: boolean;
10
+ coming_soon: boolean;
11
+ free_download: boolean;
12
+ free_stream: boolean;
13
+ };
14
+ info: {
15
+ seasons: number;
16
+ year: number;
17
+ year_end?: number;
18
+ budget?: string;
19
+ age: string;
20
+ time: {
21
+ default: number;
22
+ others?: {
23
+ name: 'Extended';
24
+ time: 25;
25
+ };
26
+ };
27
+ };
28
+ title: {
29
+ english: string;
30
+ local?: string;
31
+ };
32
+ plot: {
33
+ english: string;
34
+ local: string;
35
+ };
36
+ image: {
37
+ poster: {
38
+ preview: string;
39
+ webp: {
40
+ small: string;
41
+ medium: string;
42
+ large: string;
43
+ big: string;
44
+ };
45
+ jpg: {
46
+ small: string;
47
+ medium: string;
48
+ large: string;
49
+ big: string;
50
+ };
51
+ };
52
+ cover?: {
53
+ webp: string;
54
+ jpg: string;
55
+ };
56
+ };
57
+ genre: {
58
+ name: string;
59
+ slug: string;
60
+ }[];
61
+ score?: {
62
+ '30nama'?: {
63
+ score: number;
64
+ votes: number;
65
+ top_100?: string;
66
+ };
67
+ imdb?: {
68
+ link: string;
69
+ score: number;
70
+ votes: number;
71
+ top_250?: string;
72
+ };
73
+ rottentomatoes?: {
74
+ link: string;
75
+ score: number;
76
+ };
77
+ metacritic?: {
78
+ link: string;
79
+ score: number;
80
+ };
81
+ mydramalist?: {
82
+ link: string;
83
+ score: number;
84
+ votes: number;
85
+ };
86
+ myanimelist?: {
87
+ link: string;
88
+ score: number;
89
+ votes: number;
90
+ };
91
+ };
92
+ air: {
93
+ air_status: string;
94
+ air_data?: string;
95
+ next_episode_caption: string;
96
+ next_episode_date: {
97
+ g: string;
98
+ j: string;
99
+ };
100
+ };
101
+ seo?: any;
102
+ constructor(post: Title);
103
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const core_1 = require("../core");
4
+ class Title {
5
+ constructor(post) {
6
+ this.id = post.id;
7
+ this.post_type = post.post_type;
8
+ this.options = post.options;
9
+ this.info = post.info;
10
+ this.title = post.title;
11
+ this.plot = post.plot;
12
+ // Fix plot html entities
13
+ if (this.plot.english)
14
+ this.plot.english = (0, core_1.decodeEntities)(this.plot.english);
15
+ if (this.plot.local)
16
+ this.plot.local = (0, core_1.decodeEntities)(this.plot.local);
17
+ this.image = post.image;
18
+ this.genre = post.genre;
19
+ this.score = post.score;
20
+ this.air = post.air;
21
+ this.seo = post.seo;
22
+ }
23
+ }
24
+ exports.default = Title;
25
+ //# sourceMappingURL=Title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Title.js","sourceRoot":"","sources":["../../src/entities/Title.ts"],"names":[],"mappings":";;AAAA,kCAAwC;AAExC,MAAqB,KAAK;IAqGtB,YAAY,IAAW;QACnB,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAA;QACjB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAA;QAC/B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;QAErB,yBAAyB;QACzB,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,IAAA,qBAAc,EAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC5E,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,IAAA,qBAAc,EAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAEtE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;QACvB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;QACvB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;QACvB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAA;QACnB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAA;IACvB,CAAC;CACJ;AAvHD,wBAuHC"}
@@ -0,0 +1,20 @@
1
+ export default class {
2
+ user_session: string;
3
+ user_id: number;
4
+ user_name: string;
5
+ user_type: string;
6
+ user_allowed_to_download: boolean;
7
+ user_allowed_to_stream: boolean;
8
+ user_email?: string;
9
+ user_mobile?: string;
10
+ user_expire?: {
11
+ days: number;
12
+ g: string;
13
+ j: string;
14
+ };
15
+ user_avatar: string;
16
+ is_new_user: boolean;
17
+ is_abroad_user: boolean;
18
+ is_admin: boolean;
19
+ constructor(user: any);
20
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class default_1 {
4
+ constructor(user) {
5
+ this.user_session = user.user_session;
6
+ this.user_id = user.user_id;
7
+ this.user_name = user.user_name;
8
+ this.user_type = user.user_type;
9
+ this.user_allowed_to_download = user.user_allowed_to_download;
10
+ this.user_allowed_to_stream = user.user_allowed_to_stream;
11
+ this.user_email = user.user_email;
12
+ this.user_mobile = user.user_mobile;
13
+ this.user_expire = user.user_expire;
14
+ this.user_avatar = user.user_avatar;
15
+ this.is_new_user = user.is_new_user;
16
+ this.is_abroad_user = user.is_abroad_user;
17
+ this.is_admin = user.is_admin;
18
+ }
19
+ }
20
+ exports.default = default_1;
21
+ //# sourceMappingURL=User.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"User.js","sourceRoot":"","sources":["../../src/entities/User.ts"],"names":[],"mappings":";;AAAA;IAkBI,YAAY,IAAS;QACjB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAA;QACrC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAA;QAC/B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAA;QAC/B,IAAI,CAAC,wBAAwB,GAAG,IAAI,CAAC,wBAAwB,CAAA;QAC7D,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,sBAAsB,CAAA;QACzD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAA;QACjC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAA;QACnC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAA;QACnC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAA;QACnC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAA;QACnC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAA;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;IACjC,CAAC;CACJ;AAjCD,4BAiCC"}
@@ -0,0 +1,14 @@
1
+ type SubLib = {
2
+ post: number[];
3
+ };
4
+ export default class UserLibrary {
5
+ watchlist: SubLib;
6
+ notify: SubLib;
7
+ downloadlist: SubLib;
8
+ favorite: {
9
+ post: number[];
10
+ person: number[];
11
+ };
12
+ constructor(library: any);
13
+ }
14
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class UserLibrary {
4
+ constructor(library) {
5
+ this.watchlist = library.watchlist;
6
+ this.notify = library.notify;
7
+ this.downloadlist = library.downloadlist;
8
+ this.favorite = library.favorite;
9
+ }
10
+ }
11
+ exports.default = UserLibrary;
12
+ //# sourceMappingURL=UserLibrary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserLibrary.js","sourceRoot":"","sources":["../../src/entities/UserLibrary.ts"],"names":[],"mappings":";;AAIA,MAAqB,WAAW;IAQ5B,YAAY,OAAY;QACpB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAA;QAClC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;QAC5B,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAA;QACxC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;IACpC,CAAC;CACJ;AAdD,8BAcC"}
@@ -0,0 +1,53 @@
1
+ import User from './User';
2
+ import Single from './Single';
3
+ import Title from './Title';
4
+ import Stranger from './Stranger';
5
+ import Person from './Person';
6
+ import PlayerData from './PlayerData';
7
+ import ArchiveSlug from './ArchiveSlug';
8
+ import ContinueWatchingTitle from './ContinueWatchingTitle';
9
+ import StreamData from './StreamData';
10
+ import Notification from './Notification';
11
+ import Download from './Download';
12
+ import Downloadable from './Downloadable';
13
+ import Plan from './Plan';
14
+ import UserLibrary from './UserLibrary';
15
+ export { User, Single, Title, Stranger, Person, PlayerData, ArchiveSlug, ContinueWatchingTitle, StreamData, Notification, Download, Downloadable, Plan, UserLibrary };
16
+ export interface IUser extends User {
17
+ }
18
+ export interface ISingle extends Single {
19
+ }
20
+ export interface ITitle extends Title {
21
+ }
22
+ export interface IStranger extends Stranger {
23
+ }
24
+ export interface IPerson extends Person {
25
+ }
26
+ export interface IPlayerData extends PlayerData {
27
+ }
28
+ export interface IArchiveSlug extends ArchiveSlug {
29
+ }
30
+ export interface IContinueWatchingTitle extends ContinueWatchingTitle {
31
+ }
32
+ export interface IStreamData extends StreamData {
33
+ }
34
+ export interface INotification extends Notification {
35
+ }
36
+ export interface IDownload extends Download {
37
+ }
38
+ export interface IDownloadable extends Downloadable {
39
+ }
40
+ export interface IPlan extends Plan {
41
+ }
42
+ export interface IUserLibrary extends UserLibrary {
43
+ }
44
+ export type Response<Res, Actions = any[]> = {
45
+ status: number;
46
+ success: boolean;
47
+ error: boolean;
48
+ msg: string;
49
+ result: Res;
50
+ action?: Actions;
51
+ seo?: any;
52
+ timestamp: number;
53
+ };