triangle-types 1.0.151 → 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.
|
@@ -6,6 +6,7 @@ export declare class UserComment {
|
|
|
6
6
|
readonly resource_type_id: string;
|
|
7
7
|
readonly resource_id: string;
|
|
8
8
|
readonly text: string;
|
|
9
|
+
readonly is_active: boolean;
|
|
9
10
|
constructor(user_comment: UserComment);
|
|
10
11
|
static is(user_comment: any): user_comment is UserComment;
|
|
11
12
|
}
|
|
@@ -6,6 +6,7 @@ export class UserComment {
|
|
|
6
6
|
resource_type_id;
|
|
7
7
|
resource_id;
|
|
8
8
|
text;
|
|
9
|
+
is_active;
|
|
9
10
|
// readonly [x : string] : any
|
|
10
11
|
constructor(user_comment) {
|
|
11
12
|
if (!UserComment.is(user_comment)) {
|
|
@@ -18,6 +19,7 @@ export class UserComment {
|
|
|
18
19
|
this.resource_type_id = user_comment.resource_type_id;
|
|
19
20
|
this.resource_id = user_comment.resource_id;
|
|
20
21
|
this.text = user_comment.text;
|
|
22
|
+
this.is_active = user_comment.is_active;
|
|
21
23
|
}
|
|
22
24
|
static is(user_comment) {
|
|
23
25
|
return (user_comment !== undefined &&
|
|
@@ -27,6 +29,7 @@ export class UserComment {
|
|
|
27
29
|
typeof user_comment.tenant_id === "string" &&
|
|
28
30
|
typeof user_comment.resource_type_id === "string" &&
|
|
29
31
|
typeof user_comment.resource_id === "string" &&
|
|
30
|
-
typeof user_comment.text === "string"
|
|
32
|
+
typeof user_comment.text === "string" &&
|
|
33
|
+
typeof user_comment.is_active === "boolean");
|
|
31
34
|
}
|
|
32
35
|
}
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ export class UserComment {
|
|
|
6
6
|
readonly resource_type_id : string
|
|
7
7
|
readonly resource_id : string
|
|
8
8
|
readonly text : string
|
|
9
|
+
readonly is_active : boolean
|
|
9
10
|
// readonly [x : string] : any
|
|
10
11
|
|
|
11
12
|
constructor(user_comment : UserComment) {
|
|
@@ -19,6 +20,7 @@ export class UserComment {
|
|
|
19
20
|
this.resource_type_id = user_comment.resource_type_id
|
|
20
21
|
this.resource_id = user_comment.resource_id
|
|
21
22
|
this.text = user_comment.text
|
|
23
|
+
this.is_active = user_comment.is_active
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
static is(user_comment : any) : user_comment is UserComment {
|
|
@@ -30,7 +32,8 @@ export class UserComment {
|
|
|
30
32
|
typeof user_comment.tenant_id === "string" &&
|
|
31
33
|
typeof user_comment.resource_type_id === "string" &&
|
|
32
34
|
typeof user_comment.resource_id === "string" &&
|
|
33
|
-
typeof user_comment.text === "string"
|
|
35
|
+
typeof user_comment.text === "string" &&
|
|
36
|
+
typeof user_comment.is_active === "boolean"
|
|
34
37
|
)
|
|
35
38
|
}
|
|
36
39
|
}
|