node-csfd-api 3.0.0-next.26 → 3.0.0-next.27
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/cjs/types.js +22 -0
- package/esm/types.js +6 -0
- package/index.dto.d.ts +7 -6
- package/package.json +1 -1
- package/types/{interfaces/cinema.interface.d.ts → dto/cinema.d.ts} +1 -1
- package/types/{interfaces/search.interface.d.ts → dto/search.d.ts} +1 -1
- package/types/helpers/cinema.helper.d.ts +2 -2
- package/types/helpers/creator.helper.d.ts +1 -1
- package/types/helpers/global.helper.d.ts +2 -2
- package/types/helpers/movie.helper.d.ts +2 -2
- package/types/helpers/search.helper.d.ts +2 -2
- package/types/helpers/user-ratings.helper.d.ts +1 -1
- package/types/index.d.ts +5 -5
- package/types/services/cinema.service.d.ts +1 -1
- package/types/services/creator.service.d.ts +1 -1
- package/types/services/movie.service.d.ts +1 -1
- package/types/services/search.service.d.ts +1 -1
- package/types/services/user-ratings.service.d.ts +1 -1
- package/types/types.d.ts +6 -0
- package/types/vars.d.ts +1 -1
- /package/cjs/{interfaces/cinema.interface.js → dto/cinema.js} +0 -0
- /package/cjs/{interfaces/creator.interface.js → dto/creator.js} +0 -0
- /package/cjs/{interfaces → dto}/global.js +0 -0
- /package/cjs/{interfaces/movie.interface.js → dto/movie.js} +0 -0
- /package/cjs/{interfaces/search.interface.js → dto/search.js} +0 -0
- /package/cjs/{interfaces/user-ratings.interface.js → dto/user-ratings.js} +0 -0
- /package/esm/{interfaces/cinema.interface.js → dto/cinema.js} +0 -0
- /package/esm/{interfaces/creator.interface.js → dto/creator.js} +0 -0
- /package/esm/{interfaces → dto}/global.js +0 -0
- /package/esm/{interfaces/movie.interface.js → dto/movie.js} +0 -0
- /package/esm/{interfaces/search.interface.js → dto/search.js} +0 -0
- /package/esm/{interfaces/user-ratings.interface.js → dto/user-ratings.js} +0 -0
- /package/types/{interfaces/creator.interface.d.ts → dto/creator.d.ts} +0 -0
- /package/types/{interfaces → dto}/global.d.ts +0 -0
- /package/types/{interfaces/movie.interface.d.ts → dto/movie.d.ts} +0 -0
- /package/types/{interfaces/user-ratings.interface.d.ts → dto/user-ratings.d.ts} +0 -0
package/cjs/types.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
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("./dto/cinema"), exports);
|
|
18
|
+
__exportStar(require("./dto/creator"), exports);
|
|
19
|
+
__exportStar(require("./dto/global"), exports);
|
|
20
|
+
__exportStar(require("./dto/movie"), exports);
|
|
21
|
+
__exportStar(require("./dto/search"), exports);
|
|
22
|
+
__exportStar(require("./dto/user-ratings"), exports);
|
package/esm/types.js
ADDED
package/index.dto.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export * from "./types/index";
|
|
2
|
+
export * from "./types/types";
|
|
2
3
|
export * from "./types/vars";
|
|
4
|
+
export * from "./types/dto/cinema";
|
|
5
|
+
export * from "./types/dto/creator";
|
|
6
|
+
export * from "./types/dto/global";
|
|
7
|
+
export * from "./types/dto/movie";
|
|
8
|
+
export * from "./types/dto/search";
|
|
9
|
+
export * from "./types/dto/user-ratings";
|
|
3
10
|
export * from "./types/fetchers/fetch.polyfill";
|
|
4
11
|
export * from "./types/fetchers/index";
|
|
5
12
|
export * from "./types/helpers/cinema.helper";
|
|
@@ -9,12 +16,6 @@ export * from "./types/helpers/movie.helper";
|
|
|
9
16
|
export * from "./types/helpers/search-user.helper";
|
|
10
17
|
export * from "./types/helpers/search.helper";
|
|
11
18
|
export * from "./types/helpers/user-ratings.helper";
|
|
12
|
-
export * from "./types/interfaces/cinema.interface";
|
|
13
|
-
export * from "./types/interfaces/creator.interface";
|
|
14
|
-
export * from "./types/interfaces/global";
|
|
15
|
-
export * from "./types/interfaces/movie.interface";
|
|
16
|
-
export * from "./types/interfaces/search.interface";
|
|
17
|
-
export * from "./types/interfaces/user-ratings.interface";
|
|
18
19
|
export * from "./types/services/cinema.service";
|
|
19
20
|
export * from "./types/services/creator.service";
|
|
20
21
|
export * from "./types/services/movie.service";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLElement } from 'node-html-parser';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { CSFDCinemaGroupedFilmsByDate, CSFDCinemaMeta, CSFDCinemaMovie } from '../dto/cinema';
|
|
3
|
+
import { CSFDColorRating } from '../dto/global';
|
|
4
4
|
export declare const getCinemaColorRating: (el: HTMLElement) => CSFDColorRating;
|
|
5
5
|
export declare const getCinemaId: (el: HTMLElement | null) => number;
|
|
6
6
|
export declare const getCinemaUrlId: (url: string) => number | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLElement } from 'node-html-parser';
|
|
2
|
-
import { CSFDCreatorScreening } from '../
|
|
2
|
+
import { CSFDCreatorScreening } from '../dto/creator';
|
|
3
3
|
export declare const getCreatorId: (url: string) => number;
|
|
4
4
|
export declare const getCreatorName: (el: HTMLElement | null) => string;
|
|
5
5
|
export declare const getCreatorBirthdayInfo: (el: HTMLElement | null) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSFDColorRating } from '../
|
|
2
|
-
import { Colors } from '../
|
|
1
|
+
import { CSFDColorRating } from '../dto/global';
|
|
2
|
+
import { Colors } from '../dto/user-ratings';
|
|
3
3
|
export declare const parseIdFromUrl: (url: string) => number;
|
|
4
4
|
export declare const getColor: (cls: string) => CSFDColorRating;
|
|
5
5
|
export declare const parseColor: (quality: Colors) => CSFDColorRating;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLElement } from 'node-html-parser';
|
|
2
|
-
import { CSFDColorRating } from '../
|
|
3
|
-
import { CSFDBoxContent, CSFDCreatorGroups, CSFDGenres, CSFDMovieCreator, CSFDMovieListItem, CSFDPremiere, CSFDTitlesOther, CSFDVod } from '../
|
|
2
|
+
import { CSFDColorRating } from '../dto/global';
|
|
3
|
+
import { CSFDBoxContent, CSFDCreatorGroups, CSFDGenres, CSFDMovieCreator, CSFDMovieListItem, CSFDPremiere, CSFDTitlesOther, CSFDVod } from '../dto/movie';
|
|
4
4
|
export declare const getMovieId: (el: HTMLElement) => number;
|
|
5
5
|
export declare const getMovieTitle: (el: HTMLElement) => string;
|
|
6
6
|
export declare const getMovieGenres: (el: HTMLElement) => CSFDGenres[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLElement } from 'node-html-parser';
|
|
2
|
-
import { CSFDColorRating, CSFDFilmTypes } from '../
|
|
3
|
-
import { CSFDMovieCreator } from '../
|
|
2
|
+
import { CSFDColorRating, CSFDFilmTypes } from '../dto/global';
|
|
3
|
+
import { CSFDMovieCreator } from '../dto/movie';
|
|
4
4
|
export declare const getSearchType: (el: HTMLElement) => CSFDFilmTypes;
|
|
5
5
|
export declare const getSearchTitle: (el: HTMLElement) => string;
|
|
6
6
|
export declare const getSearchYear: (el: HTMLElement) => number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLElement } from 'node-html-parser';
|
|
2
|
-
import { CSFDColorRating, CSFDFilmTypes, CSFDStars } from '../
|
|
2
|
+
import { CSFDColorRating, CSFDFilmTypes, CSFDStars } from '../dto/global';
|
|
3
3
|
export declare const getUserRatingId: (el: HTMLElement) => number;
|
|
4
4
|
export declare const getUserRating: (el: HTMLElement) => CSFDStars;
|
|
5
5
|
export declare const getUserRatingType: (el: HTMLElement) => CSFDFilmTypes;
|
package/types/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CSFDCinema, CSFDCinemaPeriod } from './
|
|
2
|
-
import { CSFDCreator } from './
|
|
3
|
-
import { CSFDMovie } from './
|
|
4
|
-
import { CSFDSearch } from './
|
|
5
|
-
import { CSFDUserRatingConfig, CSFDUserRatings } from './
|
|
1
|
+
import { CSFDCinema, CSFDCinemaPeriod } from './dto/cinema';
|
|
2
|
+
import { CSFDCreator } from './dto/creator';
|
|
3
|
+
import { CSFDMovie } from './dto/movie';
|
|
4
|
+
import { CSFDSearch } from './dto/search';
|
|
5
|
+
import { CSFDUserRatingConfig, CSFDUserRatings } from './dto/user-ratings';
|
|
6
6
|
import { CinemaScraper } from './services/cinema.service';
|
|
7
7
|
import { CreatorScraper } from './services/creator.service';
|
|
8
8
|
import { MovieScraper } from './services/movie.service';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSFDCinema, CSFDCinemaPeriod } from '../
|
|
1
|
+
import { CSFDCinema, CSFDCinemaPeriod } from '../dto/cinema';
|
|
2
2
|
export declare class CinemaScraper {
|
|
3
3
|
private cinema;
|
|
4
4
|
cinemas(district?: number, period?: CSFDCinemaPeriod): Promise<CSFDCinema[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSFDUserRatingConfig, CSFDUserRatings } from '../
|
|
1
|
+
import { CSFDUserRatingConfig, CSFDUserRatings } from '../dto/user-ratings';
|
|
2
2
|
export declare class UserRatingsScraper {
|
|
3
3
|
private films;
|
|
4
4
|
userRatings(user: string | number, config?: CSFDUserRatingConfig): Promise<CSFDUserRatings[]>;
|
package/types/types.d.ts
ADDED
package/types/vars.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSFDCinemaPeriod } from './
|
|
1
|
+
import { CSFDCinemaPeriod } from './dto/cinema';
|
|
2
2
|
export declare const userRatingsUrl: (user: string | number, page?: number) => string;
|
|
3
3
|
export declare const movieUrl: (movie: number) => string;
|
|
4
4
|
export declare const creatorUrl: (creator: number | string) => string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|