elections-types 1.1.12 → 1.1.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.
|
@@ -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
|
@@ -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
|
}
|