triangle-types 1.0.229 → 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.
- package/dist/src/types/user/TenantDocument.d.ts +1 -1
- package/dist/src/types/user/TenantDocument.js +3 -3
- package/dist/src/types/user/TenantDocumentTag.d.ts +1 -0
- package/dist/src/types/user/TenantDocumentTag.js +3 -0
- package/package.json +1 -1
- package/src/types/user/TenantDocument.ts +3 -3
- package/src/types/user/TenantDocumentTag.ts +3 -0
|
@@ -5,7 +5,7 @@ export declare class TenantDocument {
|
|
|
5
5
|
readonly file_suffix_id: string;
|
|
6
6
|
readonly name: string;
|
|
7
7
|
readonly fragment_type_id?: FragmentTypeID;
|
|
8
|
-
readonly
|
|
8
|
+
readonly time: string;
|
|
9
9
|
readonly s3_id: string;
|
|
10
10
|
readonly s3_id_json?: string;
|
|
11
11
|
readonly s3_id_txt?: string;
|
|
@@ -5,7 +5,7 @@ export class TenantDocument {
|
|
|
5
5
|
file_suffix_id;
|
|
6
6
|
name;
|
|
7
7
|
fragment_type_id;
|
|
8
|
-
|
|
8
|
+
time;
|
|
9
9
|
s3_id;
|
|
10
10
|
s3_id_json;
|
|
11
11
|
s3_id_txt;
|
|
@@ -18,7 +18,7 @@ export class TenantDocument {
|
|
|
18
18
|
this.file_suffix_id = tenant_document.file_suffix_id;
|
|
19
19
|
this.name = tenant_document.name;
|
|
20
20
|
this.fragment_type_id = tenant_document.fragment_type_id;
|
|
21
|
-
this.
|
|
21
|
+
this.time = tenant_document.time;
|
|
22
22
|
this.s3_id = tenant_document.s3_id;
|
|
23
23
|
this.s3_id_json = tenant_document.s3_id_json;
|
|
24
24
|
this.s3_id_txt = tenant_document.s3_id_txt;
|
|
@@ -30,7 +30,7 @@ export class TenantDocument {
|
|
|
30
30
|
typeof tenant_document.file_suffix_id === "string" &&
|
|
31
31
|
typeof tenant_document.name === "string" &&
|
|
32
32
|
(tenant_document.fragment_type_id === undefined || is_fragment_type_id(tenant_document.fragment_type_id)) &&
|
|
33
|
-
|
|
33
|
+
typeof tenant_document.time === "string" &&
|
|
34
34
|
typeof tenant_document.s3_id === "string" &&
|
|
35
35
|
(tenant_document.s3_id_json === undefined || typeof tenant_document.s3_id_json === "string") &&
|
|
36
36
|
(tenant_document.s3_id_txt === undefined || typeof tenant_document.s3_id_txt === "string"));
|
|
@@ -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
|
@@ -6,7 +6,7 @@ export class TenantDocument {
|
|
|
6
6
|
readonly file_suffix_id : string
|
|
7
7
|
readonly name : string
|
|
8
8
|
readonly fragment_type_id? : FragmentTypeID
|
|
9
|
-
readonly
|
|
9
|
+
readonly time : string
|
|
10
10
|
readonly s3_id : string
|
|
11
11
|
readonly s3_id_json? : string
|
|
12
12
|
readonly s3_id_txt? : string
|
|
@@ -21,7 +21,7 @@ export class TenantDocument {
|
|
|
21
21
|
this.file_suffix_id = tenant_document.file_suffix_id
|
|
22
22
|
this.name = tenant_document.name
|
|
23
23
|
this.fragment_type_id = tenant_document.fragment_type_id
|
|
24
|
-
this.
|
|
24
|
+
this.time = tenant_document.time
|
|
25
25
|
this.s3_id = tenant_document.s3_id
|
|
26
26
|
this.s3_id_json = tenant_document.s3_id_json
|
|
27
27
|
this.s3_id_txt = tenant_document.s3_id_txt
|
|
@@ -35,7 +35,7 @@ export class TenantDocument {
|
|
|
35
35
|
typeof tenant_document.file_suffix_id === "string" &&
|
|
36
36
|
typeof tenant_document.name === "string" &&
|
|
37
37
|
(tenant_document.fragment_type_id === undefined || is_fragment_type_id(tenant_document.fragment_type_id)) &&
|
|
38
|
-
|
|
38
|
+
typeof tenant_document.time === "string" &&
|
|
39
39
|
typeof tenant_document.s3_id === "string" &&
|
|
40
40
|
(tenant_document.s3_id_json === undefined || typeof tenant_document.s3_id_json === "string") &&
|
|
41
41
|
(tenant_document.s3_id_txt === undefined || typeof tenant_document.s3_id_txt === "string")
|
|
@@ -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
|
}
|