triangle-types 1.0.101 → 1.0.102

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.
@@ -15,7 +15,7 @@ export declare class Scout {
15
15
  }
16
16
  export declare class ScoutAux extends Scout {
17
17
  readonly sub_scouts: Scout[];
18
- readonly s3_url_jpeg?: string;
18
+ readonly s3_url_img?: string;
19
19
  constructor(scout: any);
20
20
  static is(scout: any): scout is ScoutAux;
21
21
  }
@@ -30,19 +30,19 @@ export class Scout {
30
30
  }
31
31
  export class ScoutAux extends Scout {
32
32
  sub_scouts;
33
- s3_url_jpeg;
33
+ s3_url_img;
34
34
  constructor(scout) {
35
35
  if (!ScoutAux.is(scout)) {
36
36
  throw Error("Invalid input.");
37
37
  }
38
38
  super(scout);
39
39
  this.sub_scouts = scout.sub_scouts;
40
- this.s3_url_jpeg = scout.s3_url_jpeg;
40
+ this.s3_url_img = scout.s3_url_img;
41
41
  }
42
42
  static is(scout) {
43
43
  return (Scout.is(scout) &&
44
44
  Array.isArray(scout.sub_scouts) && scout.sub_scouts.every(Scout.is) &&
45
- (scout.s3_url_jpeg === undefined || typeof scout.s3_url_jpeg === "string"));
45
+ (scout.s3_url_img === undefined || typeof scout.s3_url_img === "string"));
46
46
  }
47
47
  }
48
48
  const scout_office_ids = ["USP", "USH", "USS", "STG", "STH", "STS"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.101",
3
+ "version": "1.0.102",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -42,7 +42,7 @@ export class Scout {
42
42
 
43
43
  export class ScoutAux extends Scout {
44
44
  readonly sub_scouts : Scout[]
45
- readonly s3_url_jpeg? : string
45
+ readonly s3_url_img? : string
46
46
 
47
47
  constructor(scout : any) {
48
48
  if (!ScoutAux.is(scout)) {
@@ -50,14 +50,14 @@ export class ScoutAux extends Scout {
50
50
  }
51
51
  super(scout)
52
52
  this.sub_scouts = scout.sub_scouts
53
- this.s3_url_jpeg = scout.s3_url_jpeg
53
+ this.s3_url_img = scout.s3_url_img
54
54
  }
55
55
 
56
56
  static is(scout : any) : scout is ScoutAux {
57
57
  return (
58
58
  Scout.is(scout) &&
59
59
  Array.isArray(scout.sub_scouts) && scout.sub_scouts.every(Scout.is) &&
60
- (scout.s3_url_jpeg === undefined || typeof scout.s3_url_jpeg === "string")
60
+ (scout.s3_url_img === undefined || typeof scout.s3_url_img === "string")
61
61
  )
62
62
  }
63
63
  }