elections-types 1.1.12 → 1.1.14
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 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
|
}
|
|
@@ -2,6 +2,7 @@ import { YoutubeVideo } from "./YoutubeVideo.js";
|
|
|
2
2
|
export declare class YoutubeVideoTag {
|
|
3
3
|
readonly youtube_video_id: string;
|
|
4
4
|
readonly tag_id: string;
|
|
5
|
+
readonly publish_time: string;
|
|
5
6
|
readonly relevance?: string;
|
|
6
7
|
readonly [x: string]: any;
|
|
7
8
|
constructor(youtube_video_tag: YoutubeVideoTag);
|
|
@@ -2,6 +2,7 @@ import { YoutubeVideo } from "./YoutubeVideo.js";
|
|
|
2
2
|
export class YoutubeVideoTag {
|
|
3
3
|
youtube_video_id;
|
|
4
4
|
tag_id;
|
|
5
|
+
publish_time;
|
|
5
6
|
relevance;
|
|
6
7
|
constructor(youtube_video_tag) {
|
|
7
8
|
if (!YoutubeVideoTag.is(youtube_video_tag)) {
|
|
@@ -9,12 +10,14 @@ export class YoutubeVideoTag {
|
|
|
9
10
|
}
|
|
10
11
|
this.youtube_video_id = youtube_video_tag.youtube_video_id;
|
|
11
12
|
this.tag_id = youtube_video_tag.tag_id;
|
|
13
|
+
this.publish_time = youtube_video_tag.publish_time;
|
|
12
14
|
this.relevance = youtube_video_tag.relevance;
|
|
13
15
|
}
|
|
14
16
|
static is(youtube_video_tag) {
|
|
15
17
|
return (youtube_video_tag !== undefined &&
|
|
16
18
|
typeof youtube_video_tag.youtube_video_id === "string" &&
|
|
17
19
|
typeof youtube_video_tag.tag_id === "string" &&
|
|
20
|
+
typeof youtube_video_tag.publish_time === "string" &&
|
|
18
21
|
(youtube_video_tag.relevance === undefined || typeof youtube_video_tag.relevance === "string"));
|
|
19
22
|
}
|
|
20
23
|
}
|
package/package.json
CHANGED
|
@@ -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
|
}
|
|
@@ -3,6 +3,7 @@ import { YoutubeVideo } from "./YoutubeVideo"
|
|
|
3
3
|
export class YoutubeVideoTag {
|
|
4
4
|
readonly youtube_video_id : string
|
|
5
5
|
readonly tag_id : string
|
|
6
|
+
readonly publish_time : string
|
|
6
7
|
readonly relevance? : string
|
|
7
8
|
readonly [x : string] : any
|
|
8
9
|
|
|
@@ -12,6 +13,7 @@ export class YoutubeVideoTag {
|
|
|
12
13
|
}
|
|
13
14
|
this.youtube_video_id = youtube_video_tag.youtube_video_id
|
|
14
15
|
this.tag_id = youtube_video_tag.tag_id
|
|
16
|
+
this.publish_time = youtube_video_tag.publish_time
|
|
15
17
|
this.relevance = youtube_video_tag.relevance
|
|
16
18
|
}
|
|
17
19
|
|
|
@@ -20,6 +22,7 @@ export class YoutubeVideoTag {
|
|
|
20
22
|
youtube_video_tag !== undefined &&
|
|
21
23
|
typeof youtube_video_tag.youtube_video_id === "string" &&
|
|
22
24
|
typeof youtube_video_tag.tag_id === "string" &&
|
|
25
|
+
typeof youtube_video_tag.publish_time === "string" &&
|
|
23
26
|
(youtube_video_tag.relevance === undefined || typeof youtube_video_tag.relevance === "string")
|
|
24
27
|
)
|
|
25
28
|
}
|