triangle-types 1.0.230 → 1.0.231
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,16 +1,19 @@
|
|
|
1
1
|
export class TenantDocumentTag {
|
|
2
2
|
tenant_document_id;
|
|
3
|
+
tenant_id;
|
|
3
4
|
tag_id;
|
|
4
5
|
constructor(tenant_document_tag) {
|
|
5
6
|
if (!TenantDocumentTag.is(tenant_document_tag)) {
|
|
6
7
|
throw Error("Invalid input.");
|
|
7
8
|
}
|
|
8
9
|
this.tenant_document_id = tenant_document_tag.tenant_document_id;
|
|
10
|
+
this.tenant_id = tenant_document_tag.tenant_id;
|
|
9
11
|
this.tag_id = tenant_document_tag.tag_id;
|
|
10
12
|
}
|
|
11
13
|
static is(tenant_document_tag) {
|
|
12
14
|
return (tenant_document_tag !== undefined &&
|
|
13
15
|
typeof tenant_document_tag.tenant_document_id === "string" &&
|
|
16
|
+
typeof tenant_document_tag.tenant_id === "string" &&
|
|
14
17
|
typeof tenant_document_tag.tag_id === "string");
|
|
15
18
|
}
|
|
16
19
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export class TenantDocumentTag {
|
|
2
2
|
readonly tenant_document_id : string
|
|
3
|
+
readonly tenant_id : string
|
|
3
4
|
readonly tag_id : string
|
|
4
5
|
readonly [x : string] : any
|
|
5
6
|
|
|
@@ -8,6 +9,7 @@ export class TenantDocumentTag {
|
|
|
8
9
|
throw Error("Invalid input.")
|
|
9
10
|
}
|
|
10
11
|
this.tenant_document_id = tenant_document_tag.tenant_document_id
|
|
12
|
+
this.tenant_id = tenant_document_tag.tenant_id
|
|
11
13
|
this.tag_id = tenant_document_tag.tag_id
|
|
12
14
|
}
|
|
13
15
|
|
|
@@ -15,6 +17,7 @@ export class TenantDocumentTag {
|
|
|
15
17
|
return (
|
|
16
18
|
tenant_document_tag !== undefined &&
|
|
17
19
|
typeof tenant_document_tag.tenant_document_id === "string" &&
|
|
20
|
+
typeof tenant_document_tag.tenant_id === "string" &&
|
|
18
21
|
typeof tenant_document_tag.tag_id === "string"
|
|
19
22
|
)
|
|
20
23
|
}
|