triangle-types 1.0.150 → 1.0.151

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,4 +1,5 @@
1
1
  export declare class UserComment {
2
+ readonly user_comment_id: string;
2
3
  readonly user_id: string;
3
4
  readonly comment_id: string;
4
5
  readonly tenant_id: string;
@@ -1,4 +1,5 @@
1
1
  export class UserComment {
2
+ user_comment_id;
2
3
  user_id;
3
4
  comment_id;
4
5
  tenant_id;
@@ -11,6 +12,7 @@ export class UserComment {
11
12
  throw Error("Invalid Input.");
12
13
  }
13
14
  this.user_id = user_comment.user_id;
15
+ this.user_comment_id = user_comment.user_comment_id;
14
16
  this.comment_id = user_comment.comment_id;
15
17
  this.tenant_id = user_comment.tenant_id;
16
18
  this.resource_type_id = user_comment.resource_type_id;
@@ -19,6 +21,7 @@ export class UserComment {
19
21
  }
20
22
  static is(user_comment) {
21
23
  return (user_comment !== undefined &&
24
+ typeof user_comment.user_comment_id === "string" &&
22
25
  typeof user_comment.user_id === "string" &&
23
26
  typeof user_comment.comment_id === "string" &&
24
27
  typeof user_comment.tenant_id === "string" &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.150",
3
+ "version": "1.0.151",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -1,4 +1,5 @@
1
1
  export class UserComment {
2
+ readonly user_comment_id : string
2
3
  readonly user_id : string
3
4
  readonly comment_id : string
4
5
  readonly tenant_id : string
@@ -12,6 +13,7 @@ export class UserComment {
12
13
  throw Error("Invalid Input.")
13
14
  }
14
15
  this.user_id = user_comment.user_id
16
+ this.user_comment_id = user_comment.user_comment_id
15
17
  this.comment_id = user_comment.comment_id
16
18
  this.tenant_id = user_comment.tenant_id
17
19
  this.resource_type_id = user_comment.resource_type_id
@@ -22,6 +24,7 @@ export class UserComment {
22
24
  static is(user_comment : any) : user_comment is UserComment {
23
25
  return (
24
26
  user_comment !== undefined &&
27
+ typeof user_comment.user_comment_id === "string" &&
25
28
  typeof user_comment.user_id === "string" &&
26
29
  typeof user_comment.comment_id === "string" &&
27
30
  typeof user_comment.tenant_id === "string" &&