node-csfd-api 3.0.0-next.12 → 3.0.0-next.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-csfd-api",
3
- "version": "3.0.0-next.12",
3
+ "version": "3.0.0-next.13",
4
4
  "description": "ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)",
5
5
  "main": "./cjs/index.js",
6
6
  "author": "BART! <bart@bartweb.cz>",
@@ -1,4 +1,4 @@
1
- import { CSFDCinemaMeta, CSFDCinemaMovie } from 'interfaces/cinema.interface';
1
+ import { CSFDCinemaGroupedFilmsByDate, CSFDCinemaMeta, CSFDCinemaMovie } from 'interfaces/cinema.interface';
2
2
  import { HTMLElement } from 'node-html-parser';
3
3
  import { CSFDColorRating } from '../interfaces/global';
4
4
  export declare const getColorRating: (el: HTMLElement) => CSFDColorRating;
@@ -13,6 +13,6 @@ export declare const parseCinema: (el: HTMLElement | null) => {
13
13
  city: string;
14
14
  name: string;
15
15
  };
16
- export declare const getGroupedFilmsByDate: (el: HTMLElement | null) => any;
16
+ export declare const getGroupedFilmsByDate: (el: HTMLElement | null) => CSFDCinemaGroupedFilmsByDate[];
17
17
  export declare const getFilms: (date: string, el: HTMLElement | null) => CSFDCinemaMovie[];
18
18
  export declare const parseMeta: (meta: string[]) => CSFDCinemaMeta[];
@@ -8,7 +8,11 @@ export interface CSFDCinema {
8
8
  lng: number;
9
9
  };
10
10
  region?: string;
11
- screenings: CSFDCinemaMovie[];
11
+ screenings: CSFDCinemaGroupedFilmsByDate[];
12
+ }
13
+ export interface CSFDCinemaGroupedFilmsByDate {
14
+ date: string;
15
+ films: CSFDCinemaMovie[];
12
16
  }
13
17
  export interface CSFDCinemaMovie extends CSFDMovieListItem {
14
18
  meta: CSFDCinemaMeta[];