elections-types 1.0.80 → 1.0.81

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.
@@ -9,6 +9,7 @@ export declare class Video {
9
9
  readonly tags?: string[];
10
10
  readonly duration?: number;
11
11
  readonly fetch_time: string;
12
+ readonly s3_filename?: string;
12
13
  constructor(video: Video);
13
14
  static is(video: any): video is Video;
14
15
  }
@@ -9,6 +9,7 @@ export class Video {
9
9
  tags;
10
10
  duration;
11
11
  fetch_time;
12
+ s3_filename;
12
13
  constructor(video) {
13
14
  if (!Video.is(video)) {
14
15
  throw Error("Invalid input.");
@@ -23,6 +24,7 @@ export class Video {
23
24
  this.tags = video.tags;
24
25
  this.duration = video.duration;
25
26
  this.fetch_time = video.fetch_time;
27
+ this.s3_filename = video.s3_filename;
26
28
  }
27
29
  static is(video) {
28
30
  return (video !== undefined &&
@@ -35,6 +37,7 @@ export class Video {
35
37
  typeof video.description === "string" &&
36
38
  (video.tags === undefined || Array.isArray(video.tags) && video.tags.map((tag) => typeof tag === "string")) &&
37
39
  (video.duration === undefined || typeof video.duration === "number" && !isNaN(video.duration)) &&
38
- typeof video.fetch_time === "string");
40
+ typeof video.fetch_time === "string" &&
41
+ (video.s3_filename === undefined || typeof video.s3_filename === "string"));
39
42
  }
40
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elections-types",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -9,6 +9,7 @@ export class Video {
9
9
  readonly tags? : string[]
10
10
  readonly duration? : number
11
11
  readonly fetch_time : string
12
+ readonly s3_filename? : string
12
13
 
13
14
  constructor(video : Video) {
14
15
  if (!Video.is(video)) {
@@ -24,6 +25,7 @@ export class Video {
24
25
  this.tags = video.tags
25
26
  this.duration = video.duration
26
27
  this.fetch_time = video.fetch_time
28
+ this.s3_filename = video.s3_filename
27
29
  }
28
30
 
29
31
  static is(video : any) : video is Video {
@@ -38,7 +40,8 @@ export class Video {
38
40
  typeof video.description === "string" &&
39
41
  (video.tags === undefined || Array.isArray(video.tags) && video.tags.map((tag : any) => typeof tag === "string")) &&
40
42
  (video.duration === undefined || typeof video.duration === "number" && !isNaN(video.duration)) &&
41
- typeof video.fetch_time === "string"
43
+ typeof video.fetch_time === "string" &&
44
+ (video.s3_filename === undefined || typeof video.s3_filename === "string")
42
45
  )
43
46
  }
44
47
  }