triangle-types 1.0.109 → 1.0.111

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.
@@ -1,5 +1,6 @@
1
1
  export * from "./types/APIError.js";
2
2
  export * from "./types/County.js";
3
+ export * from "./types/SchoolDistrict.js";
3
4
  export * from "./types/State.js";
4
5
  export * from "./types/User.js";
5
6
  export * from "./types/application/ApplicationStage.js";
package/dist/src/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./types/APIError.js";
2
2
  export * from "./types/County.js";
3
+ export * from "./types/SchoolDistrict.js";
3
4
  export * from "./types/State.js";
4
5
  export * from "./types/User.js";
5
6
  export * from "./types/application/ApplicationStage.js";
@@ -3,6 +3,7 @@ export declare class PrismTarget {
3
3
  readonly prism_id: string;
4
4
  readonly target_id: string;
5
5
  readonly name: string;
6
+ readonly description: string;
6
7
  constructor(prism_target: any);
7
8
  static is(prism_target: any): prism_target is PrismTarget;
8
9
  }
@@ -3,6 +3,7 @@ export class PrismTarget {
3
3
  prism_id;
4
4
  target_id;
5
5
  name;
6
+ description;
6
7
  constructor(prism_target) {
7
8
  if (!PrismTarget.is(prism_target)) {
8
9
  throw Error("Invalid input.");
@@ -11,12 +12,14 @@ export class PrismTarget {
11
12
  this.prism_id = prism_target.prism_id;
12
13
  this.target_id = prism_target.target_id;
13
14
  this.name = prism_target.name;
15
+ this.description = prism_target.description;
14
16
  }
15
17
  static is(prism_target) {
16
18
  return (prism_target !== undefined &&
17
19
  typeof prism_target.prism_target_id === "string" &&
18
20
  typeof prism_target.prism_id === "string" &&
19
21
  typeof prism_target.target_id === "string" &&
20
- typeof prism_target.name === "string");
22
+ typeof prism_target.name === "string" &&
23
+ typeof prism_target.description === "string");
21
24
  }
22
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.109",
3
+ "version": "1.0.111",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./types/APIError"
2
2
  export * from "./types/County"
3
+ export * from "./types/SchoolDistrict"
3
4
  export * from "./types/State"
4
5
  export * from "./types/User"
5
6
 
@@ -3,6 +3,7 @@ export class PrismTarget {
3
3
  readonly prism_id : string
4
4
  readonly target_id : string
5
5
  readonly name : string
6
+ readonly description : string
6
7
 
7
8
  constructor(prism_target : any) {
8
9
  if (!PrismTarget.is(prism_target)) {
@@ -12,6 +13,7 @@ export class PrismTarget {
12
13
  this.prism_id = prism_target.prism_id
13
14
  this.target_id = prism_target.target_id
14
15
  this.name = prism_target.name
16
+ this.description = prism_target.description
15
17
  }
16
18
 
17
19
  static is(prism_target : any) : prism_target is PrismTarget {
@@ -20,7 +22,8 @@ export class PrismTarget {
20
22
  typeof prism_target.prism_target_id === "string" &&
21
23
  typeof prism_target.prism_id === "string" &&
22
24
  typeof prism_target.target_id === "string" &&
23
- typeof prism_target.name === "string"
25
+ typeof prism_target.name === "string" &&
26
+ typeof prism_target.description === "string"
24
27
  )
25
28
  }
26
29
  }