triangle-types 1.0.219 → 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.
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/types/user/TenantDocumentFragment.d.ts +1 -0
- package/dist/src/types/user/TenantDocumentFragment.js +3 -0
- package/dist/src/types/user/TenantDocumentTag.d.ts +7 -0
- package/dist/src/types/user/TenantDocumentTag.js +16 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/types/user/TenantDocumentFragment.ts +3 -0
- package/src/types/user/TenantDocumentTag.ts +21 -0
package/dist/src/index.d.ts
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";
|
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";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FragmentTypeID } from "../fragments/Fragment.js";
|
|
2
2
|
export declare class TenantDocumentFragment {
|
|
3
3
|
readonly tenant_document_id: string;
|
|
4
|
+
readonly tenant_id: string;
|
|
4
5
|
readonly fragment_id: string;
|
|
5
6
|
readonly fragment_type_id: FragmentTypeID;
|
|
6
7
|
readonly max_size: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { is_fragment_type_id } from "../fragments/Fragment.js";
|
|
2
2
|
export class TenantDocumentFragment {
|
|
3
3
|
tenant_document_id;
|
|
4
|
+
tenant_id;
|
|
4
5
|
fragment_id;
|
|
5
6
|
fragment_type_id;
|
|
6
7
|
max_size;
|
|
@@ -14,6 +15,7 @@ export class TenantDocumentFragment {
|
|
|
14
15
|
throw Error("Invalid input.");
|
|
15
16
|
}
|
|
16
17
|
this.tenant_document_id = tenant_document_fragment.tenant_document_id;
|
|
18
|
+
this.tenant_id = tenant_document_fragment.tenant_id;
|
|
17
19
|
this.fragment_id = tenant_document_fragment.fragment_id;
|
|
18
20
|
this.fragment_type_id = tenant_document_fragment.fragment_type_id;
|
|
19
21
|
this.max_size = tenant_document_fragment.max_size;
|
|
@@ -26,6 +28,7 @@ export class TenantDocumentFragment {
|
|
|
26
28
|
static is(tenant_document_fragment) {
|
|
27
29
|
return (tenant_document_fragment !== undefined &&
|
|
28
30
|
typeof tenant_document_fragment.tenant_document_id === "string" &&
|
|
31
|
+
typeof tenant_document_fragment.tenant_id === "string" &&
|
|
29
32
|
typeof tenant_document_fragment.fragment_id === "string" &&
|
|
30
33
|
is_fragment_type_id(tenant_document_fragment.fragment_type_id) &&
|
|
31
34
|
typeof tenant_document_fragment.max_size === "number" &&
|
|
@@ -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
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"
|
|
@@ -2,6 +2,7 @@ import { FragmentTypeID, is_fragment_type_id } from "../fragments/Fragment"
|
|
|
2
2
|
|
|
3
3
|
export class TenantDocumentFragment {
|
|
4
4
|
readonly tenant_document_id : string
|
|
5
|
+
readonly tenant_id : string
|
|
5
6
|
readonly fragment_id : string
|
|
6
7
|
readonly fragment_type_id : FragmentTypeID
|
|
7
8
|
readonly max_size : number
|
|
@@ -17,6 +18,7 @@ export class TenantDocumentFragment {
|
|
|
17
18
|
throw Error("Invalid input.")
|
|
18
19
|
}
|
|
19
20
|
this.tenant_document_id = tenant_document_fragment.tenant_document_id
|
|
21
|
+
this.tenant_id = tenant_document_fragment.tenant_id
|
|
20
22
|
this.fragment_id = tenant_document_fragment.fragment_id
|
|
21
23
|
this.fragment_type_id = tenant_document_fragment.fragment_type_id
|
|
22
24
|
this.max_size = tenant_document_fragment.max_size
|
|
@@ -31,6 +33,7 @@ export class TenantDocumentFragment {
|
|
|
31
33
|
return (
|
|
32
34
|
tenant_document_fragment !== undefined &&
|
|
33
35
|
typeof tenant_document_fragment.tenant_document_id === "string" &&
|
|
36
|
+
typeof tenant_document_fragment.tenant_id === "string" &&
|
|
34
37
|
typeof tenant_document_fragment.fragment_id === "string" &&
|
|
35
38
|
is_fragment_type_id(tenant_document_fragment.fragment_type_id) &&
|
|
36
39
|
typeof tenant_document_fragment.max_size === "number" &&
|
|
@@ -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
|
+
}
|