triangle-types 1.0.150 → 1.0.152
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,10 +1,12 @@
|
|
|
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;
|
|
5
6
|
readonly resource_type_id: string;
|
|
6
7
|
readonly resource_id: string;
|
|
7
8
|
readonly text: string;
|
|
9
|
+
readonly is_active: boolean;
|
|
8
10
|
constructor(user_comment: UserComment);
|
|
9
11
|
static is(user_comment: any): user_comment is UserComment;
|
|
10
12
|
}
|
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
export class UserComment {
|
|
2
|
+
user_comment_id;
|
|
2
3
|
user_id;
|
|
3
4
|
comment_id;
|
|
4
5
|
tenant_id;
|
|
5
6
|
resource_type_id;
|
|
6
7
|
resource_id;
|
|
7
8
|
text;
|
|
9
|
+
is_active;
|
|
8
10
|
// readonly [x : string] : any
|
|
9
11
|
constructor(user_comment) {
|
|
10
12
|
if (!UserComment.is(user_comment)) {
|
|
11
13
|
throw Error("Invalid Input.");
|
|
12
14
|
}
|
|
13
15
|
this.user_id = user_comment.user_id;
|
|
16
|
+
this.user_comment_id = user_comment.user_comment_id;
|
|
14
17
|
this.comment_id = user_comment.comment_id;
|
|
15
18
|
this.tenant_id = user_comment.tenant_id;
|
|
16
19
|
this.resource_type_id = user_comment.resource_type_id;
|
|
17
20
|
this.resource_id = user_comment.resource_id;
|
|
18
21
|
this.text = user_comment.text;
|
|
22
|
+
this.is_active = user_comment.is_active;
|
|
19
23
|
}
|
|
20
24
|
static is(user_comment) {
|
|
21
25
|
return (user_comment !== undefined &&
|
|
26
|
+
typeof user_comment.user_comment_id === "string" &&
|
|
22
27
|
typeof user_comment.user_id === "string" &&
|
|
23
28
|
typeof user_comment.comment_id === "string" &&
|
|
24
29
|
typeof user_comment.tenant_id === "string" &&
|
|
25
30
|
typeof user_comment.resource_type_id === "string" &&
|
|
26
31
|
typeof user_comment.resource_id === "string" &&
|
|
27
|
-
typeof user_comment.text === "string"
|
|
32
|
+
typeof user_comment.text === "string" &&
|
|
33
|
+
typeof user_comment.is_active === "boolean");
|
|
28
34
|
}
|
|
29
35
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
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
|
|
5
6
|
readonly resource_type_id : string
|
|
6
7
|
readonly resource_id : string
|
|
7
8
|
readonly text : string
|
|
9
|
+
readonly is_active : boolean
|
|
8
10
|
// readonly [x : string] : any
|
|
9
11
|
|
|
10
12
|
constructor(user_comment : UserComment) {
|
|
@@ -12,22 +14,26 @@ export class UserComment {
|
|
|
12
14
|
throw Error("Invalid Input.")
|
|
13
15
|
}
|
|
14
16
|
this.user_id = user_comment.user_id
|
|
17
|
+
this.user_comment_id = user_comment.user_comment_id
|
|
15
18
|
this.comment_id = user_comment.comment_id
|
|
16
19
|
this.tenant_id = user_comment.tenant_id
|
|
17
20
|
this.resource_type_id = user_comment.resource_type_id
|
|
18
21
|
this.resource_id = user_comment.resource_id
|
|
19
22
|
this.text = user_comment.text
|
|
23
|
+
this.is_active = user_comment.is_active
|
|
20
24
|
}
|
|
21
25
|
|
|
22
26
|
static is(user_comment : any) : user_comment is UserComment {
|
|
23
27
|
return (
|
|
24
28
|
user_comment !== undefined &&
|
|
29
|
+
typeof user_comment.user_comment_id === "string" &&
|
|
25
30
|
typeof user_comment.user_id === "string" &&
|
|
26
31
|
typeof user_comment.comment_id === "string" &&
|
|
27
32
|
typeof user_comment.tenant_id === "string" &&
|
|
28
33
|
typeof user_comment.resource_type_id === "string" &&
|
|
29
34
|
typeof user_comment.resource_id === "string" &&
|
|
30
|
-
typeof user_comment.text === "string"
|
|
35
|
+
typeof user_comment.text === "string" &&
|
|
36
|
+
typeof user_comment.is_active === "boolean"
|
|
31
37
|
)
|
|
32
38
|
}
|
|
33
39
|
}
|