triangle-types 1.0.149 → 1.0.150

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,7 +2,8 @@ export declare class UserComment {
2
2
  readonly user_id: string;
3
3
  readonly comment_id: string;
4
4
  readonly tenant_id: string;
5
- readonly voter_id?: string;
5
+ readonly resource_type_id: string;
6
+ readonly resource_id: string;
6
7
  readonly text: string;
7
8
  constructor(user_comment: UserComment);
8
9
  static is(user_comment: any): user_comment is UserComment;
@@ -2,7 +2,8 @@ export class UserComment {
2
2
  user_id;
3
3
  comment_id;
4
4
  tenant_id;
5
- voter_id;
5
+ resource_type_id;
6
+ resource_id;
6
7
  text;
7
8
  // readonly [x : string] : any
8
9
  constructor(user_comment) {
@@ -12,7 +13,8 @@ export class UserComment {
12
13
  this.user_id = user_comment.user_id;
13
14
  this.comment_id = user_comment.comment_id;
14
15
  this.tenant_id = user_comment.tenant_id;
15
- this.voter_id = user_comment.voter_id;
16
+ this.resource_type_id = user_comment.resource_type_id;
17
+ this.resource_id = user_comment.resource_id;
16
18
  this.text = user_comment.text;
17
19
  }
18
20
  static is(user_comment) {
@@ -20,7 +22,8 @@ export class UserComment {
20
22
  typeof user_comment.user_id === "string" &&
21
23
  typeof user_comment.comment_id === "string" &&
22
24
  typeof user_comment.tenant_id === "string" &&
23
- (user_comment.voter_id === undefined || typeof user_comment.resource_type_id === "string") &&
25
+ typeof user_comment.resource_type_id === "string" &&
26
+ typeof user_comment.resource_id === "string" &&
24
27
  typeof user_comment.text === "string");
25
28
  }
26
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.149",
3
+ "version": "1.0.150",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -2,7 +2,8 @@ export class UserComment {
2
2
  readonly user_id : string
3
3
  readonly comment_id : string
4
4
  readonly tenant_id : string
5
- readonly voter_id? : string
5
+ readonly resource_type_id : string
6
+ readonly resource_id : string
6
7
  readonly text : string
7
8
  // readonly [x : string] : any
8
9
 
@@ -13,7 +14,8 @@ export class UserComment {
13
14
  this.user_id = user_comment.user_id
14
15
  this.comment_id = user_comment.comment_id
15
16
  this.tenant_id = user_comment.tenant_id
16
- this.voter_id = user_comment.voter_id
17
+ this.resource_type_id = user_comment.resource_type_id
18
+ this.resource_id = user_comment.resource_id
17
19
  this.text = user_comment.text
18
20
  }
19
21
 
@@ -23,7 +25,8 @@ export class UserComment {
23
25
  typeof user_comment.user_id === "string" &&
24
26
  typeof user_comment.comment_id === "string" &&
25
27
  typeof user_comment.tenant_id === "string" &&
26
- (user_comment.voter_id === undefined || typeof user_comment.resource_type_id === "string") &&
28
+ typeof user_comment.resource_type_id === "string" &&
29
+ typeof user_comment.resource_id === "string" &&
27
30
  typeof user_comment.text === "string"
28
31
  )
29
32
  }