triangle-types 1.0.220 → 1.0.221

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.
@@ -103,6 +103,7 @@ export * from "./types/state_permits/WI/WIStatePermitDocument.js";
103
103
  export * from "./types/user/Tenant.js";
104
104
  export * from "./types/user/TenantDocument.js";
105
105
  export * from "./types/user/TenantDocumentFragment.js";
106
+ export * from "./types/user/TenantDocumentTag.js";
106
107
  export * from "./types/user/TenantProvision.js";
107
108
  export * from "./types/user/User.js";
108
109
  export * from "./types/user/UserComment.js";
package/dist/src/index.js CHANGED
@@ -103,6 +103,7 @@ export * from "./types/state_permits/WI/WIStatePermitDocument.js";
103
103
  export * from "./types/user/Tenant.js";
104
104
  export * from "./types/user/TenantDocument.js";
105
105
  export * from "./types/user/TenantDocumentFragment.js";
106
+ export * from "./types/user/TenantDocumentTag.js";
106
107
  export * from "./types/user/TenantProvision.js";
107
108
  export * from "./types/user/User.js";
108
109
  export * from "./types/user/UserComment.js";
@@ -0,0 +1,7 @@
1
+ export declare class TenantDocumentTag {
2
+ readonly tenant_document_id: string;
3
+ readonly tag_id: string;
4
+ readonly [x: string]: any;
5
+ constructor(tenant_document_tag: TenantDocumentTag);
6
+ static is(tenant_document_tag: any): tenant_document_tag is TenantDocumentTag;
7
+ }
@@ -0,0 +1,16 @@
1
+ export class TenantDocumentTag {
2
+ tenant_document_id;
3
+ tag_id;
4
+ constructor(tenant_document_tag) {
5
+ if (!TenantDocumentTag.is(tenant_document_tag)) {
6
+ throw Error("Invalid input.");
7
+ }
8
+ this.tenant_document_id = tenant_document_tag.tenant_document_id;
9
+ this.tag_id = tenant_document_tag.tag_id;
10
+ }
11
+ static is(tenant_document_tag) {
12
+ return (tenant_document_tag !== undefined &&
13
+ typeof tenant_document_tag.tenant_document_id === "string" &&
14
+ typeof tenant_document_tag.tag_id === "string");
15
+ }
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.220",
3
+ "version": "1.0.221",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -126,6 +126,7 @@ export * from "./types/state_permits/WI/WIStatePermitDocument"
126
126
  export * from "./types/user/Tenant"
127
127
  export * from "./types/user/TenantDocument"
128
128
  export * from "./types/user/TenantDocumentFragment"
129
+ export * from "./types/user/TenantDocumentTag"
129
130
  export * from "./types/user/TenantProvision"
130
131
  export * from "./types/user/User"
131
132
  export * from "./types/user/UserComment"
@@ -0,0 +1,21 @@
1
+ export class TenantDocumentTag {
2
+ readonly tenant_document_id : string
3
+ readonly tag_id : string
4
+ readonly [x : string] : any
5
+
6
+ constructor(tenant_document_tag : TenantDocumentTag) {
7
+ if (!TenantDocumentTag.is(tenant_document_tag)) {
8
+ throw Error("Invalid input.")
9
+ }
10
+ this.tenant_document_id = tenant_document_tag.tenant_document_id
11
+ this.tag_id = tenant_document_tag.tag_id
12
+ }
13
+
14
+ static is(tenant_document_tag : any) : tenant_document_tag is TenantDocumentTag {
15
+ return (
16
+ tenant_document_tag !== undefined &&
17
+ typeof tenant_document_tag.tenant_document_id === "string" &&
18
+ typeof tenant_document_tag.tag_id === "string"
19
+ )
20
+ }
21
+ }