elections-types 1.1.13 → 1.1.15

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.
@@ -6,7 +6,6 @@ export declare class YoutubeVideo {
6
6
  readonly title: string;
7
7
  readonly description: string;
8
8
  readonly duration?: number;
9
- readonly fetch_time: string;
10
9
  readonly s3_id?: string;
11
10
  readonly [x: string]: any;
12
11
  constructor(youtube_video: YoutubeVideo);
@@ -6,7 +6,6 @@ export class YoutubeVideo {
6
6
  title;
7
7
  description;
8
8
  duration;
9
- fetch_time;
10
9
  s3_id;
11
10
  constructor(youtube_video) {
12
11
  if (!YoutubeVideo.is(youtube_video)) {
@@ -18,7 +17,6 @@ export class YoutubeVideo {
18
17
  this.title = youtube_video.title;
19
18
  this.description = youtube_video.description;
20
19
  this.duration = youtube_video.duration;
21
- this.fetch_time = youtube_video.fetch_time;
22
20
  this.s3_id = youtube_video.s3_id;
23
21
  }
24
22
  static is(youtube_video) {
@@ -29,7 +27,6 @@ export class YoutubeVideo {
29
27
  typeof youtube_video.title === "string" &&
30
28
  typeof youtube_video.description === "string" &&
31
29
  (youtube_video.duration === undefined || typeof youtube_video.duration === "number" && !isNaN(youtube_video.duration)) &&
32
- typeof youtube_video.fetch_time === "string" &&
33
30
  (youtube_video.s3_id === undefined || typeof youtube_video.s3_id === "string"));
34
31
  }
35
32
  }
@@ -1,4 +1,4 @@
1
- import { YoutubeVideo } from "./YoutubeVideo.js";
1
+ import { YoutubeVideoAux } from "./YoutubeVideo.js";
2
2
  export declare class YoutubeVideoTag {
3
3
  readonly youtube_video_id: string;
4
4
  readonly tag_id: string;
@@ -9,7 +9,7 @@ export declare class YoutubeVideoTag {
9
9
  static is(youtube_video_tag: any): youtube_video_tag is YoutubeVideoTag;
10
10
  }
11
11
  export declare class YoutubeVideoTagAux extends YoutubeVideoTag {
12
- readonly youtube_video: YoutubeVideo;
12
+ readonly youtube_video: YoutubeVideoAux;
13
13
  constructor(youtube_video_tag: any);
14
14
  static is(youtube_video_tag: any): youtube_video_tag is YoutubeVideoTagAux;
15
15
  }
@@ -1,4 +1,4 @@
1
- import { YoutubeVideo } from "./YoutubeVideo.js";
1
+ import { YoutubeVideoAux } from "./YoutubeVideo.js";
2
2
  export class YoutubeVideoTag {
3
3
  youtube_video_id;
4
4
  tag_id;
@@ -32,6 +32,6 @@ export class YoutubeVideoTagAux extends YoutubeVideoTag {
32
32
  }
33
33
  static is(youtube_video_tag) {
34
34
  return (YoutubeVideoTag.is(youtube_video_tag) &&
35
- YoutubeVideo.is(youtube_video_tag.youtube_video));
35
+ YoutubeVideoAux.is(youtube_video_tag.youtube_video));
36
36
  }
37
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elections-types",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -7,7 +7,6 @@ export class YoutubeVideo {
7
7
  readonly title : string
8
8
  readonly description : string
9
9
  readonly duration? : number
10
- readonly fetch_time : string
11
10
  readonly s3_id? : string
12
11
  readonly [x : string] : any
13
12
 
@@ -21,7 +20,6 @@ export class YoutubeVideo {
21
20
  this.title = youtube_video.title
22
21
  this.description = youtube_video.description
23
22
  this.duration = youtube_video.duration
24
- this.fetch_time = youtube_video.fetch_time
25
23
  this.s3_id = youtube_video.s3_id
26
24
  }
27
25
 
@@ -34,7 +32,6 @@ export class YoutubeVideo {
34
32
  typeof youtube_video.title === "string" &&
35
33
  typeof youtube_video.description === "string" &&
36
34
  (youtube_video.duration === undefined || typeof youtube_video.duration === "number" && !isNaN(youtube_video.duration)) &&
37
- typeof youtube_video.fetch_time === "string" &&
38
35
  (youtube_video.s3_id === undefined || typeof youtube_video.s3_id === "string")
39
36
  )
40
37
  }
@@ -1,4 +1,4 @@
1
- import { YoutubeVideo } from "./YoutubeVideo"
1
+ import { YoutubeVideoAux } from "./YoutubeVideo"
2
2
 
3
3
  export class YoutubeVideoTag {
4
4
  readonly youtube_video_id : string
@@ -29,7 +29,7 @@ export class YoutubeVideoTag {
29
29
  }
30
30
 
31
31
  export class YoutubeVideoTagAux extends YoutubeVideoTag {
32
- readonly youtube_video : YoutubeVideo
32
+ readonly youtube_video : YoutubeVideoAux
33
33
 
34
34
  constructor(youtube_video_tag : any) {
35
35
  if (!YoutubeVideoTagAux.is(youtube_video_tag)) {
@@ -42,7 +42,7 @@ export class YoutubeVideoTagAux extends YoutubeVideoTag {
42
42
  static is(youtube_video_tag : any) : youtube_video_tag is YoutubeVideoTagAux {
43
43
  return (
44
44
  YoutubeVideoTag.is(youtube_video_tag) &&
45
- YoutubeVideo.is(youtube_video_tag.youtube_video)
45
+ YoutubeVideoAux.is(youtube_video_tag.youtube_video)
46
46
  )
47
47
  }
48
48
  }