@30nama/sdk 1.0.2 → 1.0.3

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.
@@ -1,4 +1,4 @@
1
- import * as actions from './actions';
1
+ import * as actions from './services';
2
2
  import { Config, emmiterChannels } from './types';
3
3
  type APIModule = {
4
4
  actions: typeof actions;
package/dist/api/index.js CHANGED
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.API = void 0;
13
- const actions = require("./actions");
13
+ const actions = require("./services");
14
14
  const request_1 = require("./request");
15
15
  const apisauce_1 = require("apisauce");
16
16
  const getFastestResponse = (promises) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,uCAA+B;AAC/B,uCAAiC;AAYjC,MAAM,kBAAkB,GAAG,CAAI,QAAwB,EAAc,EAAE;IACnE,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAA;IAC/H,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IACzD,OAAO,OAAO,CAAC,IAAI,CAAC,WAAW,CAAQ,CAAA;AAC3C,CAAC,CAAA;AAED,aAAa;AACA,QAAA,GAAG,GAAG;IACf,OAAO,EAAE,EAAoB;IAE7B,MAAM,EAAE,EAAY;IACpB,SAAS,CAAC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ACL,CAAC;KAAA;CASgB,CAAA;AAErB,uEAAuE;AACvE,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;IAAG,WAAG,CAAC,OAAe,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,WAAU,CAAC,CAAA"}
@@ -1,7 +1,9 @@
1
1
  import { API, BaseResponse } from './types';
2
2
  export type RequestHeaders = Record<string, string | number | boolean>;
3
+ export type RequestMethod = 'get' | 'post' | 'put' | 'delete';
3
4
  export default class {
4
5
  private overrideSession?;
6
+ private method;
5
7
  private config;
6
8
  private actionUrl;
7
9
  private servicePath;
@@ -15,4 +17,6 @@ export default class {
15
17
  execute<T>(body?: {
16
18
  [key: string]: any;
17
19
  }, timeout?: number): Promise<BaseResponse<T> | undefined>;
20
+ withService(servicePath: string): this;
21
+ withMethod(method: RequestMethod): this;
18
22
  }
@@ -14,6 +14,7 @@ const QueryString = require("qs");
14
14
  const core_1 = require("../core");
15
15
  class default_1 {
16
16
  constructor(actionUrl, instance, overrideSession) {
17
+ this.method = 'post';
17
18
  this.servicePath = 'videocontent';
18
19
  const { config, emmiter, store, log } = instance;
19
20
  this.config = config;
@@ -48,7 +49,7 @@ class default_1 {
48
49
  sendRequest(body_1) {
49
50
  return __awaiter(this, arguments, void 0, function* (body, retry = 1) {
50
51
  try {
51
- const response = yield (0, apisauce_1.create)({ baseURL: `${this.config.endpoint}/action`, headers: yield this.buildHeaders() }).post(this.actionUrl, QueryString.stringify(body));
52
+ const response = yield (0, apisauce_1.create)({ baseURL: this.config.endpoint, headers: yield this.buildHeaders() })[this.method](this.actionUrl, QueryString.stringify(body));
52
53
  if (!response.ok)
53
54
  throw response.originalError;
54
55
  this.log('info', `Request to ${this.buildUrl()} was successful.`);
@@ -82,6 +83,14 @@ class default_1 {
82
83
  return result;
83
84
  });
84
85
  }
86
+ withService(servicePath) {
87
+ this.servicePath = servicePath;
88
+ return this;
89
+ }
90
+ withMethod(method) {
91
+ this.method = method;
92
+ return this;
93
+ }
85
94
  }
86
95
  exports.default = default_1;
87
96
  //# sourceMappingURL=request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../src/api/request.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,uCAAiC;AACjC,kCAAkC;AAClC,kCAA+B;AAM/B;IAQI,YAAY,SAAiB,EAAE,QAAa,EAAE,eAAwB;QAJ9D,gBAAW,GAAG,cAAc,CAAA;QAKhC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,QAAQ,CAAA;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC1B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAA;QACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;IAClB,CAAC;IAEO,QAAQ;QACZ,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,EAAE,CAAA;IAC1E,CAAC;IAEa,YAAY;;YACtB,MAAM,OAAO,GAAG;gBACZ,cAAc,EAAE,mCAAmC;gBACnD,SAAS,EAAE,IAAI,CAAC,eAAe,IAAI,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE;gBAC7D,kBAAkB,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO;gBACvC,iBAAiB,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;gBAClD,mBAAmB,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;gBACpD,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B,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,CAAA;YAClD,CAAC;QACL,CAAC;KAAA;IAEK,OAAO,CAAI,IAA6B,EAAE,OAAgB;;YAC5D,MAAM,eAAe,GAAG,IAAI,CAAC,WAAW,CAAI,IAAI,CAAC,CAAA;YACjD,IAAI,CAAC,OAAO;gBAAE,OAAO,MAAM,eAAe,CAAA;YAE1C,MAAM,cAAc,GAAG,IAAA,YAAK,EAAC,OAAO,CAAC,CAAA;YACrC,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,cAAc,CAAC,CAAC,CAAA;YAChE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAA;YAC7B,IAAI,MAAM;gBAAE,OAAO,MAAM,CAAA;QAC7B,CAAC;KAAA;IAED,WAAW,CAAC,WAAmB;QAC3B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAC9B,OAAO,IAAI,CAAA;IACf,CAAC;IAED,UAAU,CAAC,MAAqB;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,OAAO,IAAI,CAAA;IACf,CAAC;CACJ;AApFD,4BAoFC"}
@@ -0,0 +1 @@
1
+ export * from './videoContent';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./videoContent"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B"}
@@ -0,0 +1,130 @@
1
+ import { BaseResponse } from '../types';
2
+ import { ICollector, IVideoContent } from '../../entities';
3
+ import { ICollection } from '../../entities/ICollection';
4
+ import { IHeroTitle, ITitle } from '../../entities/ITitle';
5
+ import { IBoxOffice } from '../../entities/IBoxOffice';
6
+ import { IPerson } from '../../entities/IPerson';
7
+ type PaginatedContentList = {
8
+ count: number;
9
+ next: number;
10
+ previous?: number;
11
+ items: IHeroTitle[];
12
+ };
13
+ export declare function videoContentRate(this: any, score: number, video_content_id: string): Promise<BaseResponse<any> | undefined>;
14
+ export declare function videoContentGetUserPick(this: any, pick_type: 'favorite' | 'download' | 'stream', filters?: {
15
+ category?: 'movies' | 'series' | 'anime' | 'animation' | 'documentary' | 'concert' | 'ceremony';
16
+ order_by?: 'new_added' | 'old_added' | 'newest' | 'populate' | 'imdb_score' | 'site_score' | 'release_date';
17
+ page?: number;
18
+ limit?: number;
19
+ }): Promise<BaseResponse<any> | undefined>;
20
+ export declare function videoContentManageUserPick(this: any, pick_type: 'favorite' | 'download' | 'stream', video_content_id: string): Promise<BaseResponse<any> | undefined>;
21
+ export declare function videoContentNotificationAdd(this: any, notification_type_slug: 'all', video_content_id: string): Promise<BaseResponse<any> | undefined>;
22
+ export declare function videoContentGetNotificationList(this: any, filters?: {
23
+ category?: 'movies' | 'series' | 'anime' | 'animation' | 'documentary' | 'concert' | 'ceremony';
24
+ order_by?: 'new_added' | 'old_added' | 'newest' | 'populate' | 'imdb_score' | 'site_score' | 'release_date';
25
+ page?: number;
26
+ limit?: number;
27
+ }): Promise<BaseResponse<any> | undefined>;
28
+ export declare function videoContentGetCollectorList(this: any, collector_name: 'category' | 'genre' | 'option'): Promise<BaseResponse<ICollector[]> | undefined>;
29
+ export declare function videoContentGetCollectionList(this: any, filters?: {
30
+ search?: string;
31
+ page?: number;
32
+ limit?: number;
33
+ }): Promise<BaseResponse<{
34
+ count: number;
35
+ next: number;
36
+ previous?: number | undefined;
37
+ items: ICollection[];
38
+ }> | undefined>;
39
+ export declare function videoContentGetCollectionData(this: any, slug: string): Promise<BaseResponse<IHeroTitle[]> | undefined>;
40
+ export declare function videoContentList(this: any, filters?: {
41
+ category_slug?: string;
42
+ genre_slug?: string;
43
+ order_by?: 'newest' | 'populate' | 'imdb_score' | 'site_score' | 'release_date' | 'updatest';
44
+ page?: number;
45
+ limit?: number;
46
+ }): Promise<BaseResponse<PaginatedContentList> | undefined>;
47
+ export declare function videoContentGetFeatured(this: any, filters?: {
48
+ genre_slug?: string;
49
+ order_by?: 'newest' | 'populate' | 'imdb_score' | 'site_score' | 'release_date' | 'updatest';
50
+ page?: number;
51
+ limit?: number;
52
+ }): Promise<BaseResponse<PaginatedContentList> | undefined>;
53
+ export declare function videoContentGetComingSoon(this: any, filters?: {
54
+ genre_slug?: string;
55
+ order_by?: 'newest' | 'populate' | 'imdb_score' | 'site_score' | 'release_date' | 'updatest';
56
+ page?: number;
57
+ limit?: number;
58
+ }): Promise<BaseResponse<PaginatedContentList> | undefined>;
59
+ export declare function videoContentGetStreams(this: any, category: 'series' | 'anime' | 'movies' | 'featured' | 'free-stream', order_by: 'newest' | 'populate' | 'imdb_score' | 'site_score' | 'release_date' | 'updatest', page?: number, limit?: number): Promise<BaseResponse<PaginatedContentList> | undefined>;
60
+ export declare function videoContentGetHomepage(this: any, limit: number): Promise<BaseResponse<{
61
+ featured: IHeroTitle[];
62
+ top_ten: IHeroTitle[];
63
+ new_releases: IHeroTitle[];
64
+ movies: IHeroTitle[];
65
+ series: IHeroTitle[];
66
+ anime: IHeroTitle[];
67
+ }> | undefined>;
68
+ export declare function videoContentGetCastContents(this: any, cast_imdb_code: string, page?: number, limit?: number): Promise<BaseResponse<PaginatedContentList> | undefined>;
69
+ export declare function videoContentGetWeeklyScheduleContents(this: any, filters?: {
70
+ week_day?: 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun';
71
+ category_slug?: 'series' | 'anime';
72
+ }): Promise<BaseResponse<ITitle[]> | undefined>;
73
+ export declare function videoContentGetNewReleases(this: any, filters?: {
74
+ genre_slug?: string;
75
+ order_by?: 'newest' | 'populate' | 'imdb_score' | 'site_score' | 'release_date' | 'updatest';
76
+ page?: number;
77
+ limit?: number;
78
+ }): Promise<BaseResponse<PaginatedContentList> | undefined>;
79
+ export declare function videoContentGetBoxOffice(this: any, source: 'usa' | 'iran'): Promise<BaseResponse<IBoxOffice[]> | undefined>;
80
+ export declare function videoContentGetVipHeroSection(this: any): Promise<BaseResponse<IHeroTitle[]> | undefined>;
81
+ export declare function videoContentGetGuestHeroSection(this: any): Promise<BaseResponse<{
82
+ id: string;
83
+ attachment: string;
84
+ order: number;
85
+ }[]> | undefined>;
86
+ export declare function videoContentGetTopContents(this: any, source: 'imdb' | '30nama', content_type: 'movie' | 'series', page?: number, limit?: number): Promise<BaseResponse<PaginatedContentList> | undefined>;
87
+ export declare function videoContentDetail(this: any, video_content_id: string): Promise<BaseResponse<IVideoContent> | undefined>;
88
+ export declare function videoContentQuotes(this: any, video_content_id: string): Promise<BaseResponse<{
89
+ character_name: string;
90
+ actor_name: string;
91
+ quote: string;
92
+ }[]> | undefined>;
93
+ export declare function videoContentGetPersons(this: any, video_content_id: string): Promise<BaseResponse<IPerson[]> | undefined>;
94
+ export declare function videoContentExplore(this: any, payload?: {
95
+ search?: string;
96
+ type?: 'movies' | 'series' | 'concert' | 'ceremony' | 'miniseries' | 'anime_movie' | 'anime_series' | 'animation' | 'documentary';
97
+ genre_slug?: string;
98
+ actor?: string;
99
+ director?: string;
100
+ writer?: string;
101
+ quality?: string;
102
+ encoder?: string;
103
+ country_id?: string;
104
+ language_id?: string;
105
+ mpaa?: string;
106
+ score?: 'up_9' | 'up_8_5' | 'up_8' | 'up_7_5' | 'up_7' | 'up_6_5' | 'up_6' | 'up_5' | 'down_5';
107
+ three_d?: boolean;
108
+ has_stream?: boolean;
109
+ x265?: boolean;
110
+ channel?: string;
111
+ order_by?: 'newest' | 'populate' | 'imdb_score' | 'site_score' | 'release_date' | 'updatest';
112
+ year_min?: number;
113
+ year_max?: number;
114
+ page?: number;
115
+ limit?: number;
116
+ }): Promise<BaseResponse<PaginatedContentList> | undefined>;
117
+ export declare function videoContentGetCountryLanguage(this: any, type: 'language' | 'country'): Promise<BaseResponse<{
118
+ id: string;
119
+ name: string;
120
+ code: string;
121
+ }[]> | undefined>;
122
+ export declare function videoContentMpaa(this: any): Promise<BaseResponse<{
123
+ id: string;
124
+ range: string;
125
+ }[]> | undefined>;
126
+ export declare function videoContentChannel(this: any): Promise<BaseResponse<{
127
+ id: string;
128
+ name: string;
129
+ }[]> | undefined>;
130
+ export {};
@@ -1,6 +1,388 @@
1
1
  "use strict";
2
- // import { API } from '../types'
3
- // import request from '../request'
4
- // import { } from '../entities'
5
- // const servicePath = 'videocontent'
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.videoContentChannel = exports.videoContentMpaa = exports.videoContentGetCountryLanguage = exports.videoContentExplore = exports.videoContentGetPersons = exports.videoContentQuotes = exports.videoContentDetail = exports.videoContentGetTopContents = exports.videoContentGetGuestHeroSection = exports.videoContentGetVipHeroSection = exports.videoContentGetBoxOffice = exports.videoContentGetNewReleases = exports.videoContentGetWeeklyScheduleContents = exports.videoContentGetCastContents = exports.videoContentGetHomepage = exports.videoContentGetStreams = exports.videoContentGetComingSoon = exports.videoContentGetFeatured = exports.videoContentList = exports.videoContentGetCollectionData = exports.videoContentGetCollectionList = exports.videoContentGetCollectorList = exports.videoContentGetNotificationList = exports.videoContentNotificationAdd = exports.videoContentManageUserPick = exports.videoContentGetUserPick = exports.videoContentRate = void 0;
13
+ const request_1 = require("../request");
14
+ const entities_1 = require("../../entities");
15
+ const ICollection_1 = require("../../entities/ICollection");
16
+ const ITitle_1 = require("../../entities/ITitle");
17
+ const IBoxOffice_1 = require("../../entities/IBoxOffice");
18
+ const servicePath = 'videocontent';
19
+ function videoContentRate(score, video_content_id) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const This = this;
22
+ This.log('info', 'Running action: videoContentRate');
23
+ const req = new request_1.default(`user-video-content/action/rating`, this);
24
+ req.withService(servicePath);
25
+ req.withMethod('post');
26
+ const response = (yield req.execute({ score, video_content_id }));
27
+ // if (response?.result) response.data = new IVideoContent(response.data)
28
+ return response;
29
+ });
30
+ }
31
+ exports.videoContentRate = videoContentRate;
32
+ function videoContentGetUserPick(pick_type, filters) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ const This = this;
35
+ This.log('info', 'Running action: videoContentUserList');
36
+ const req = new request_1.default(`user-video-content/action/${pick_type}`, this);
37
+ req.withService(servicePath);
38
+ req.withMethod('get');
39
+ const response = (yield req.execute(filters));
40
+ // if (response?.result) response.data = new IVideoContent(response.data)
41
+ return response;
42
+ });
43
+ }
44
+ exports.videoContentGetUserPick = videoContentGetUserPick;
45
+ function videoContentManageUserPick(pick_type, video_content_id) {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ const This = this;
48
+ This.log('info', 'Running action: videoContentManageUserPick');
49
+ const req = new request_1.default(`user-video-content/action/${pick_type}`, this);
50
+ req.withService(servicePath);
51
+ req.withMethod('post');
52
+ const response = (yield req.execute({ video_content_id }));
53
+ // if (response?.result) response.data = new IVideoContent(response.data)
54
+ return response;
55
+ });
56
+ }
57
+ exports.videoContentManageUserPick = videoContentManageUserPick;
58
+ function videoContentNotificationAdd(notification_type_slug, video_content_id) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ const This = this;
61
+ This.log('info', 'Running action: videoContentNotificationAdd');
62
+ const req = new request_1.default(`user-video-content/action/notification/add`, this);
63
+ req.withService(servicePath);
64
+ req.withMethod('post');
65
+ const response = (yield req.execute({ video_content_id, notification_type_slug }));
66
+ // if (response?.result) response.data = new IVideoContent(response.data)
67
+ return response;
68
+ });
69
+ }
70
+ exports.videoContentNotificationAdd = videoContentNotificationAdd;
71
+ function videoContentGetNotificationList(filters) {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ const This = this;
74
+ This.log('info', 'Running action: videoContentGetNotificationList');
75
+ const req = new request_1.default(`user-video-content/action/notification/list`, this);
76
+ req.withService(servicePath);
77
+ req.withMethod('get');
78
+ const response = (yield req.execute(filters));
79
+ // if (response?.result) response.data = new IVideoContent(response.data)
80
+ return response;
81
+ });
82
+ }
83
+ exports.videoContentGetNotificationList = videoContentGetNotificationList;
84
+ function videoContentGetCollectorList(collector_name) {
85
+ return __awaiter(this, void 0, void 0, function* () {
86
+ const This = this;
87
+ This.log('info', 'Running action: videoContentGetCollectorList');
88
+ const req = new request_1.default(`user-video-content/collectors-list`, this);
89
+ req.withService(servicePath);
90
+ req.withMethod('get');
91
+ const response = (yield req.execute({ collector_name }));
92
+ if (response === null || response === void 0 ? void 0 : response.result)
93
+ response.data = response.data;
94
+ return response;
95
+ });
96
+ }
97
+ exports.videoContentGetCollectorList = videoContentGetCollectorList;
98
+ function videoContentGetCollectionList(filters) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const This = this;
101
+ This.log('info', 'Running action: videoContentGetCollectionList');
102
+ const req = new request_1.default(`user-video-content/collection-list`, this);
103
+ req.withService(servicePath);
104
+ req.withMethod('get');
105
+ const response = (yield req.execute(filters));
106
+ if (response === null || response === void 0 ? void 0 : response.result)
107
+ response.data.items = response.data.items.map((item) => new ICollection_1.ICollection(item));
108
+ return response;
109
+ });
110
+ }
111
+ exports.videoContentGetCollectionList = videoContentGetCollectionList;
112
+ function videoContentGetCollectionData(slug) {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const This = this;
115
+ This.log('info', 'Running action: videoContentGetCollectionData');
116
+ const req = new request_1.default(`user-video-content/collection-list/${slug}`, this);
117
+ req.withService(servicePath);
118
+ req.withMethod('get');
119
+ const response = (yield req.execute());
120
+ if (response === null || response === void 0 ? void 0 : response.result)
121
+ response.data = response.data.map((item) => new ITitle_1.IHeroTitle(item));
122
+ return response;
123
+ });
124
+ }
125
+ exports.videoContentGetCollectionData = videoContentGetCollectionData;
126
+ function videoContentList(filters) {
127
+ return __awaiter(this, void 0, void 0, function* () {
128
+ const This = this;
129
+ This.log('info', 'Running action: videoContentList');
130
+ const req = new request_1.default(`user-video-content/`, this);
131
+ req.withService(servicePath);
132
+ req.withMethod('get');
133
+ const response = (yield req.execute(filters));
134
+ if (response === null || response === void 0 ? void 0 : response.result)
135
+ response.data.items = response.data.items.map((item) => new ITitle_1.IHeroTitle(item));
136
+ return response;
137
+ });
138
+ }
139
+ exports.videoContentList = videoContentList;
140
+ function videoContentGetFeatured() {
141
+ return __awaiter(this, arguments, void 0, function* (filters = {}) {
142
+ const This = this;
143
+ This.log('info', 'Running action: videoContentGetFeatured');
144
+ const req = new request_1.default(`user-video-content/options-contents`, this);
145
+ req.withService(servicePath);
146
+ req.withMethod('get');
147
+ const response = (yield req.execute(Object.assign({ option: 'featured' }, filters)));
148
+ if (response === null || response === void 0 ? void 0 : response.result)
149
+ response.data.items = response.data.items.map((item) => new ITitle_1.IHeroTitle(item));
150
+ return response;
151
+ });
152
+ }
153
+ exports.videoContentGetFeatured = videoContentGetFeatured;
154
+ function videoContentGetComingSoon() {
155
+ return __awaiter(this, arguments, void 0, function* (filters = {}) {
156
+ const This = this;
157
+ This.log('info', 'Running action: videoContentGetComingSoon');
158
+ const req = new request_1.default(`user-video-content/options-contents`, this);
159
+ req.withService(servicePath);
160
+ req.withMethod('get');
161
+ const response = (yield req.execute(Object.assign({ option: 'coming-soon' }, filters)));
162
+ if (response === null || response === void 0 ? void 0 : response.result)
163
+ response.data.items = response.data.items.map((item) => new ITitle_1.IHeroTitle(item));
164
+ return response;
165
+ });
166
+ }
167
+ exports.videoContentGetComingSoon = videoContentGetComingSoon;
168
+ function videoContentGetStreams(category, order_by, page, limit) {
169
+ return __awaiter(this, void 0, void 0, function* () {
170
+ const This = this;
171
+ This.log('info', 'Running action: videoContentGetStreams');
172
+ const req = new request_1.default(`user-video-content/streams/${category}`, this);
173
+ req.withService(servicePath);
174
+ req.withMethod('get');
175
+ const response = (yield req.execute({ order_by, page, limit }));
176
+ if (response === null || response === void 0 ? void 0 : response.result)
177
+ response.data.items = response.data.items.map((item) => new ITitle_1.IHeroTitle(item));
178
+ return response;
179
+ });
180
+ }
181
+ exports.videoContentGetStreams = videoContentGetStreams;
182
+ function videoContentGetHomepage(limit) {
183
+ return __awaiter(this, void 0, void 0, function* () {
184
+ const This = this;
185
+ This.log('info', 'Running action: videoContentGetHomepage');
186
+ const req = new request_1.default(`user-video-content/home-page`, this);
187
+ req.withService(servicePath);
188
+ req.withMethod('get');
189
+ const response = (yield req.execute({ limit }));
190
+ if (response === null || response === void 0 ? void 0 : response.result) {
191
+ response.data = {
192
+ featured: response.data.featured.map((item) => new ITitle_1.IHeroTitle(item)),
193
+ top_ten: response.data.top_ten.map((item) => new ITitle_1.IHeroTitle(item)),
194
+ new_releases: response.data.new_releases.map((item) => new ITitle_1.IHeroTitle(item)),
195
+ movies: response.data.movies.map((item) => new ITitle_1.IHeroTitle(item)),
196
+ series: response.data.series.map((item) => new ITitle_1.IHeroTitle(item)),
197
+ anime: response.data.anime.map((item) => new ITitle_1.IHeroTitle(item))
198
+ };
199
+ }
200
+ return response;
201
+ });
202
+ }
203
+ exports.videoContentGetHomepage = videoContentGetHomepage;
204
+ function videoContentGetCastContents(cast_imdb_code, page, limit) {
205
+ return __awaiter(this, void 0, void 0, function* () {
206
+ const This = this;
207
+ This.log('info', 'Running action: videoContentGetCastContents');
208
+ const req = new request_1.default(`user-video-content/cast/contents`, this);
209
+ req.withService(servicePath);
210
+ req.withMethod('get');
211
+ const response = (yield req.execute({ cast_imdb_code, page, limit }));
212
+ if (response === null || response === void 0 ? void 0 : response.result)
213
+ response.data.items = response.data.items.map((item) => new ITitle_1.IHeroTitle(item));
214
+ return response;
215
+ });
216
+ }
217
+ exports.videoContentGetCastContents = videoContentGetCastContents;
218
+ function videoContentGetWeeklyScheduleContents(filters) {
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ const This = this;
221
+ This.log('info', 'Running action: videoContentGetWeeklyScheduleContents');
222
+ const req = new request_1.default(`user-video-content/weekly-schedule-contents`, this);
223
+ req.withService(servicePath);
224
+ req.withMethod('get');
225
+ const response = (yield req.execute(filters));
226
+ if (response === null || response === void 0 ? void 0 : response.result)
227
+ response.data = response.data.map((item) => new ITitle_1.ITitle(item));
228
+ return response;
229
+ });
230
+ }
231
+ exports.videoContentGetWeeklyScheduleContents = videoContentGetWeeklyScheduleContents;
232
+ function videoContentGetNewReleases(filters) {
233
+ return __awaiter(this, void 0, void 0, function* () {
234
+ const This = this;
235
+ This.log('info', 'Running action: videoContentGetNewReleases');
236
+ const req = new request_1.default(`user-video-content/options-contents/new-releases`, this);
237
+ req.withService(servicePath);
238
+ req.withMethod('get');
239
+ const response = (yield req.execute(filters));
240
+ if (response === null || response === void 0 ? void 0 : response.result)
241
+ response.data.items = response.data.items.map((item) => new ITitle_1.IHeroTitle(item));
242
+ return response;
243
+ });
244
+ }
245
+ exports.videoContentGetNewReleases = videoContentGetNewReleases;
246
+ function videoContentGetBoxOffice(source) {
247
+ return __awaiter(this, void 0, void 0, function* () {
248
+ const This = this;
249
+ This.log('info', 'Running action: videoContentGetBoxOffice');
250
+ const req = new request_1.default(`user-video-content/box-office/${source}`, this);
251
+ req.withService(servicePath);
252
+ req.withMethod('get');
253
+ const response = (yield req.execute());
254
+ if (response === null || response === void 0 ? void 0 : response.result)
255
+ response.data = response.data.map((item) => new IBoxOffice_1.IBoxOffice(item));
256
+ return response;
257
+ });
258
+ }
259
+ exports.videoContentGetBoxOffice = videoContentGetBoxOffice;
260
+ function videoContentGetVipHeroSection() {
261
+ return __awaiter(this, void 0, void 0, function* () {
262
+ const This = this;
263
+ This.log('info', 'Running action: videoContentGetVipHeroSection');
264
+ const req = new request_1.default(`user-video-content/vip-hero-section`, this);
265
+ req.withService(servicePath);
266
+ req.withMethod('get');
267
+ const response = (yield req.execute());
268
+ if (response === null || response === void 0 ? void 0 : response.result)
269
+ response.data = response.data.map((item) => new ITitle_1.IHeroTitle(item));
270
+ return response;
271
+ });
272
+ }
273
+ exports.videoContentGetVipHeroSection = videoContentGetVipHeroSection;
274
+ function videoContentGetGuestHeroSection() {
275
+ return __awaiter(this, void 0, void 0, function* () {
276
+ const This = this;
277
+ This.log('info', 'Running action: videoContentGetGuestHeroSection');
278
+ const req = new request_1.default(`user-video-content/guest-hero-section`, this);
279
+ req.withService(servicePath);
280
+ req.withMethod('get');
281
+ const response = (yield req.execute());
282
+ return response;
283
+ });
284
+ }
285
+ exports.videoContentGetGuestHeroSection = videoContentGetGuestHeroSection;
286
+ function videoContentGetTopContents(source, content_type, page, limit) {
287
+ return __awaiter(this, void 0, void 0, function* () {
288
+ const This = this;
289
+ This.log('info', 'Running action: videoContentGetTopContents');
290
+ const req = new request_1.default(`user-video-content/top-contents/${source}/${content_type}`, this);
291
+ req.withService(servicePath);
292
+ req.withMethod('get');
293
+ const response = (yield req.execute({ page, limit }));
294
+ if (response === null || response === void 0 ? void 0 : response.result)
295
+ response.data.items = response.data.items.map((item) => new ITitle_1.ITitle(item));
296
+ return response;
297
+ });
298
+ }
299
+ exports.videoContentGetTopContents = videoContentGetTopContents;
300
+ function videoContentDetail(video_content_id) {
301
+ return __awaiter(this, void 0, void 0, function* () {
302
+ const This = this;
303
+ This.log('info', 'Running action: single');
304
+ const req = new request_1.default(`user-video-content/detail/${video_content_id}`, this);
305
+ req.withService(servicePath);
306
+ req.withMethod('post');
307
+ const response = (yield req.execute());
308
+ if (response === null || response === void 0 ? void 0 : response.result)
309
+ response.data = new entities_1.IVideoContent(response.data);
310
+ return response;
311
+ });
312
+ }
313
+ exports.videoContentDetail = videoContentDetail;
314
+ function videoContentQuotes(video_content_id) {
315
+ return __awaiter(this, void 0, void 0, function* () {
316
+ const This = this;
317
+ This.log('info', 'Running action: quotes');
318
+ const req = new request_1.default(`user-video-content/detail/quotes/${video_content_id}`, this);
319
+ req.withService(servicePath);
320
+ req.withMethod('get');
321
+ const response = (yield req.execute());
322
+ return response;
323
+ });
324
+ }
325
+ exports.videoContentQuotes = videoContentQuotes;
326
+ function videoContentGetPersons(video_content_id) {
327
+ return __awaiter(this, void 0, void 0, function* () {
328
+ const This = this;
329
+ This.log('info', 'Running action: videoContentGetPersons');
330
+ const req = new request_1.default(`user-video-content/detail/persons/${video_content_id}`, this);
331
+ req.withService(servicePath);
332
+ req.withMethod('get');
333
+ const response = (yield req.execute());
334
+ return response;
335
+ });
336
+ }
337
+ exports.videoContentGetPersons = videoContentGetPersons;
338
+ function videoContentExplore(payload) {
339
+ return __awaiter(this, void 0, void 0, function* () {
340
+ const This = this;
341
+ This.log('info', 'Running action: videoContentExplore');
342
+ const req = new request_1.default(`user-video-content/explore`, this);
343
+ req.withService(servicePath);
344
+ req.withMethod('get');
345
+ const response = (yield req.execute(payload));
346
+ if (response === null || response === void 0 ? void 0 : response.result)
347
+ response.data.items = response.data.items.map((item) => new ITitle_1.IHeroTitle(item));
348
+ return response;
349
+ });
350
+ }
351
+ exports.videoContentExplore = videoContentExplore;
352
+ function videoContentGetCountryLanguage(type) {
353
+ return __awaiter(this, void 0, void 0, function* () {
354
+ const This = this;
355
+ This.log('info', 'Running action: videoContentGetCountryLanguage');
356
+ const req = new request_1.default(`user-video-content/countries-language`, this);
357
+ req.withService(servicePath);
358
+ req.withMethod('get');
359
+ const response = (yield req.execute({ type }));
360
+ return response;
361
+ });
362
+ }
363
+ exports.videoContentGetCountryLanguage = videoContentGetCountryLanguage;
364
+ function videoContentMpaa() {
365
+ return __awaiter(this, void 0, void 0, function* () {
366
+ const This = this;
367
+ This.log('info', 'Running action: videoContentMpaa');
368
+ const req = new request_1.default(`user-video-content/mpaa`, this);
369
+ req.withService(servicePath);
370
+ req.withMethod('get');
371
+ const response = (yield req.execute());
372
+ return response;
373
+ });
374
+ }
375
+ exports.videoContentMpaa = videoContentMpaa;
376
+ function videoContentChannel() {
377
+ return __awaiter(this, void 0, void 0, function* () {
378
+ const This = this;
379
+ This.log('info', 'Running action: videoContentChannel');
380
+ const req = new request_1.default(`user-video-content/channel`, this);
381
+ req.withService(servicePath);
382
+ req.withMethod('get');
383
+ const response = (yield req.execute());
384
+ return response;
385
+ });
386
+ }
387
+ exports.videoContentChannel = videoContentChannel;
6
388
  //# sourceMappingURL=videoContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"videoContent.js","sourceRoot":"","sources":["../../../src/api/services/videoContent.ts"],"names":[],"mappings":";AAAA,iCAAiC;AACjC,mCAAmC;AACnC,iCAAiC;AAEjC,qCAAqC"}
1
+ {"version":3,"file":"videoContent.js","sourceRoot":"","sources":["../../../src/api/services/videoContent.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,wCAAgC;AAChC,6CAA0D;AAC1D,4DAAwD;AACxD,kDAA0D;AAC1D,0DAAsD;AAGtD,MAAM,WAAW,GAAG,cAAc,CAAA;AAKlC,SAAsB,gBAAgB,CAAY,KAAa,EAAE,gBAAwB;;QACrF,MAAM,IAAI,GAAG,IAAW,CAAA;QACxB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,kCAAkC,CAAC,CAAA;QACpD,MAAM,GAAG,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G,CAAC,OAAO,EAAE,CAA8D,CAAA;QACnG,OAAO,QAAQ,CAAA;IACnB,CAAC;CAAA;AATD,4CASC;AAED,SAAsB,mBAAmB;;QACrC,MAAM,IAAI,GAAG,IAAW,CAAA;QACxB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,qCAAqC,CAAC,CAAA;QACvD,MAAM,GAAG,GAAG,IAAI,iBAAO,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAAA;QAC3D,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;QAC5B,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;QAErB,MAAM,QAAQ,GAAG,CAAC,MAAM,GAAG,CAAC,OAAO,EAAE,CAA6D,CAAA;QAClG,OAAO,QAAQ,CAAA;IACnB,CAAC;CAAA;AATD,kDASC"}
@@ -20,13 +20,13 @@ export type API = {
20
20
  type SuccessResponse<Data> = {
21
21
  status_code: number;
22
22
  result: true;
23
- message: string;
23
+ message?: string;
24
24
  data: Data;
25
25
  };
26
26
  type ErrorResponse = {
27
27
  status_code: number;
28
28
  result: false;
29
- message: string;
29
+ message?: string;
30
30
  errors: any[];
31
31
  };
32
32
  export type BaseResponse<Data> = SuccessResponse<Data> | ErrorResponse;
@@ -19,11 +19,11 @@ export interface IAttachment {
19
19
  covers?: {
20
20
  jpg: {
21
21
  big: string;
22
- preview: null;
22
+ preview?: null;
23
23
  };
24
24
  webp: {
25
25
  big: string;
26
- preview: null;
26
+ preview?: null;
27
27
  };
28
28
  };
29
29
  }
@@ -0,0 +1,41 @@
1
+ import { IAttachment } from './IAttachment';
2
+ import { IGenre } from './ICollector';
3
+ import { IRating } from './IRating';
4
+ export type ISOLocales = 'en' | 'fa';
5
+ export type VideoContentInfoData = {
6
+ title: string;
7
+ description?: string;
8
+ };
9
+ export type VideoContentInfo = {
10
+ [key in ISOLocales]: VideoContentInfoData;
11
+ };
12
+ export type VideoContentOption = 'featured' | 'persian-subtitle' | 'streams';
13
+ type SeriesMeta = {
14
+ air_status: string;
15
+ air_days: string[];
16
+ last_episode_date?: string;
17
+ last_episode: string;
18
+ next_episode_date?: string;
19
+ };
20
+ export declare class IBoxOffice {
21
+ id: string;
22
+ content_id: string;
23
+ info: VideoContentInfo;
24
+ ratings: IRating;
25
+ attachments: Omit<IAttachment, 'covers'>;
26
+ options: VideoContentOption[];
27
+ genres: IGenre[];
28
+ series_meta: SeriesMeta;
29
+ is_imdb_top: boolean;
30
+ is_cinama_top: boolean;
31
+ year: number;
32
+ year_end?: number;
33
+ budget?: string;
34
+ download_id?: string;
35
+ total: string;
36
+ weeks: number;
37
+ weekend: string;
38
+ rank: number;
39
+ constructor(partial: Partial<IBoxOffice>);
40
+ }
41
+ export {};
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IBoxOffice = void 0;
4
+ class IBoxOffice {
5
+ constructor(partial) {
6
+ Object.assign(this, partial);
7
+ }
8
+ }
9
+ exports.IBoxOffice = IBoxOffice;
10
+ //# sourceMappingURL=IBoxOffice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IBoxOffice.js","sourceRoot":"","sources":["../../src/entities/IBoxOffice.ts"],"names":[],"mappings":";;;AAiBA,MAAa,UAAU;IAmBnB,YAAY,OAA4B;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAChC,CAAC;CACJ;AAtBD,gCAsBC"}
@@ -0,0 +1,19 @@
1
+ export declare class ICollection {
2
+ id: string;
3
+ parent_name?: string;
4
+ parent_id?: string;
5
+ slug: string;
6
+ name: string;
7
+ description?: string;
8
+ poster?: {
9
+ jpg: {
10
+ full: string;
11
+ thumb: string;
12
+ };
13
+ webp: {
14
+ full: string;
15
+ thumb: string;
16
+ };
17
+ };
18
+ constructor(partial: Partial<ICollection>);
19
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ICollection = void 0;
4
+ class ICollection {
5
+ constructor(partial) {
6
+ Object.assign(this, partial);
7
+ }
8
+ }
9
+ exports.ICollection = ICollection;
10
+ //# sourceMappingURL=ICollection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ICollection.js","sourceRoot":"","sources":["../../src/entities/ICollection.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;IAiBpB,YAAY,OAA6B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAChC,CAAC;CACJ;AApBD,kCAoBC"}
@@ -0,0 +1,52 @@
1
+ import { IAttachment } from './IAttachment';
2
+ import { IGenre } from './ICollector';
3
+ import { IRating } from './IRating';
4
+ export type ISOLocales = 'en' | 'fa';
5
+ export type VideoContentInfoData = {
6
+ title: string;
7
+ description?: string;
8
+ };
9
+ export type VideoContentInfo = {
10
+ [key in ISOLocales]: VideoContentInfoData;
11
+ };
12
+ export type VideoContentOption = 'featured' | 'persian-subtitle' | 'streams';
13
+ type SeriesMeta = {
14
+ air_status: string;
15
+ air_days: string[];
16
+ last_episode_date?: string;
17
+ last_episode: string;
18
+ next_episode_date?: string;
19
+ };
20
+ export declare class ITitle {
21
+ id: string;
22
+ info: VideoContentInfo;
23
+ ratings: IRating;
24
+ attachments: Omit<IAttachment, 'covers'>;
25
+ options: VideoContentOption[];
26
+ genres: IGenre[];
27
+ series_meta: SeriesMeta;
28
+ is_imdb_top: boolean;
29
+ is_cinama_top: boolean;
30
+ year: number;
31
+ year_end?: number;
32
+ budget?: string;
33
+ download_id?: string;
34
+ constructor(partial: Partial<ITitle>);
35
+ }
36
+ export declare class IHeroTitle {
37
+ id: string;
38
+ info: VideoContentInfo;
39
+ ratings: IRating;
40
+ attachments: IAttachment;
41
+ options: VideoContentOption[];
42
+ genres: IGenre[];
43
+ series_meta: SeriesMeta;
44
+ is_imdb_top: boolean;
45
+ is_cinama_top: boolean;
46
+ year: number;
47
+ year_end?: number;
48
+ budget?: string;
49
+ download_id?: string;
50
+ constructor(partial: Partial<ITitle>);
51
+ }
52
+ export {};
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IHeroTitle = exports.ITitle = void 0;
4
+ class ITitle {
5
+ constructor(partial) {
6
+ Object.assign(this, partial);
7
+ }
8
+ }
9
+ exports.ITitle = ITitle;
10
+ class IHeroTitle {
11
+ constructor(partial) {
12
+ Object.assign(this, partial);
13
+ }
14
+ }
15
+ exports.IHeroTitle = IHeroTitle;
16
+ //# sourceMappingURL=ITitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITitle.js","sourceRoot":"","sources":["../../src/entities/ITitle.ts"],"names":[],"mappings":";;;AAiBA,MAAa,MAAM;IAcf,YAAY,OAAwB;QAChC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAChC,CAAC;CACJ;AAjBD,wBAiBC;AAED,MAAa,UAAU;IAcnB,YAAY,OAAwB;QAChC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAChC,CAAC;CACJ;AAjBD,gCAiBC"}
@@ -1,4 +1,5 @@
1
1
  import { IAttachment } from './IAttachment';
2
+ import { ICollection } from './ICollection';
2
3
  import { ICollector, IGenre } from './ICollector';
3
4
  import { IPerson, ICrew } from './IPerson';
4
5
  import { IRating } from './IRating';
@@ -25,7 +26,7 @@ export declare class IVideoContent {
25
26
  attachments: IAttachment;
26
27
  options: VideoContentOption[];
27
28
  genres: IGenre[];
28
- collections: any[];
29
+ collections: ICollection[];
29
30
  languages: ICollector[];
30
31
  countries: ICollector[];
31
32
  times: {
@@ -1 +1 @@
1
- {"version":3,"file":"IVideoContent.js","sourceRoot":"","sources":["../../src/entities/IVideoContent.ts"],"names":[],"mappings":";;;AAkBA,MAAa,aAAa;IA4BtB,YAAY,OAA+B;QACvC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAChC,CAAC;CACJ;AA/BD,sCA+BC"}
1
+ {"version":3,"file":"IVideoContent.js","sourceRoot":"","sources":["../../src/entities/IVideoContent.ts"],"names":[],"mappings":";;;AAmBA,MAAa,aAAa;IA4BtB,YAAY,OAA+B;QACvC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAChC,CAAC;CACJ;AA/BD,sCA+BC"}
@@ -1,4 +1,4 @@
1
- export type * from './IVideoContent';
2
- export type * from './IRating';
3
- export type * from './IAttachment';
4
- export type * from './ICollector';
1
+ export * from './IVideoContent';
2
+ export * from './IRating';
3
+ export * from './IAttachment';
4
+ export * from './ICollector';
@@ -1,3 +1,21 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./IVideoContent"), exports);
18
+ __exportStar(require("./IRating"), exports);
19
+ __exportStar(require("./IAttachment"), exports);
20
+ __exportStar(require("./ICollector"), exports);
3
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B;AAC/B,4CAAyB;AACzB,gDAA6B;AAC7B,+CAA4B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@30nama/sdk",
3
3
  "description": "30nama SDK for Node.js",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
@@ -17,19 +17,19 @@
17
17
  "author": "EternalC0der <s.eternalcoder@gmail.com>",
18
18
  "license": "ISC",
19
19
  "devDependencies": {
20
- "@types/node": "^20.11.25",
21
- "@types/qs": "^6.9.12",
22
- "@typescript-eslint/eslint-plugin": "^7.1.1",
23
- "@typescript-eslint/parser": "^7.1.1",
20
+ "@types/node": "^20.12.7",
21
+ "@types/qs": "^6.9.15",
22
+ "@typescript-eslint/eslint-plugin": "^7.7.0",
23
+ "@typescript-eslint/parser": "^7.7.0",
24
24
  "eslint": "^8.57.0",
25
25
  "eslint-config-prettier": "^9.1.0",
26
26
  "eslint-plugin-import": "^2.29.1",
27
27
  "eslint-plugin-prettier": "^5.1.3",
28
28
  "prettier": "^3.2.5",
29
- "typescript": "^5.4.2"
29
+ "typescript": "^5.4.5"
30
30
  },
31
31
  "dependencies": {
32
32
  "apisauce": "^3.0.1",
33
- "qs": "^6.12.0"
33
+ "qs": "^6.12.1"
34
34
  }
35
35
  }
@@ -1 +0,0 @@
1
- export declare function test(): void;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- // import { API } from './types'
3
- // import request from './request'
4
- // import { } from '../entities'
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.test = void 0;
7
- function test() {
8
- console.log('test');
9
- }
10
- exports.test = test;
11
- //# sourceMappingURL=actions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/api/actions.ts"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,kCAAkC;AAClC,iCAAiC;;;AAEjC,SAAgB,IAAI;IAChB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;AACvB,CAAC;AAFD,oBAEC"}