triangle-types 1.0.242 → 1.0.243
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,4 +1,5 @@
|
|
|
1
1
|
import { FragmentTypeID } from "../fragments/Fragment.js";
|
|
2
|
+
import { TenantDocument } from "./TenantDocument.js";
|
|
2
3
|
export declare class TenantDocumentFragment {
|
|
3
4
|
readonly tenant_document_id: string;
|
|
4
5
|
readonly tenant_id: string;
|
|
@@ -14,3 +15,8 @@ export declare class TenantDocumentFragment {
|
|
|
14
15
|
constructor(tenant_document_fragment: TenantDocumentFragment);
|
|
15
16
|
static is(tenant_document_fragment: any): tenant_document_fragment is TenantDocumentFragment;
|
|
16
17
|
}
|
|
18
|
+
export declare class TenantDocumentFragmentAux extends TenantDocumentFragment {
|
|
19
|
+
readonly tenant_document: TenantDocument;
|
|
20
|
+
constructor(tenant_document_fragment: TenantDocumentFragment);
|
|
21
|
+
static is(tenant_document_fragment: any): tenant_document_fragment is TenantDocumentFragmentAux;
|
|
22
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { is_fragment_type_id } from "../fragments/Fragment.js";
|
|
2
|
+
import { TenantDocument } from "./TenantDocument.js";
|
|
2
3
|
export class TenantDocumentFragment {
|
|
3
4
|
tenant_document_id;
|
|
4
5
|
tenant_id;
|
|
@@ -39,3 +40,17 @@ export class TenantDocumentFragment {
|
|
|
39
40
|
(tenant_document_fragment.vector === undefined || Array.isArray(tenant_document_fragment.vector) && tenant_document_fragment.vector.every((coordinate) => typeof coordinate === "number")));
|
|
40
41
|
}
|
|
41
42
|
}
|
|
43
|
+
export class TenantDocumentFragmentAux extends TenantDocumentFragment {
|
|
44
|
+
tenant_document;
|
|
45
|
+
constructor(tenant_document_fragment) {
|
|
46
|
+
if (!TenantDocumentFragmentAux.is(tenant_document_fragment)) {
|
|
47
|
+
throw Error("Invalid input.");
|
|
48
|
+
}
|
|
49
|
+
super(tenant_document_fragment);
|
|
50
|
+
this.tenant_document = tenant_document_fragment.tenant_document;
|
|
51
|
+
}
|
|
52
|
+
static is(tenant_document_fragment) {
|
|
53
|
+
return (TenantDocumentFragment.is(tenant_document_fragment) &&
|
|
54
|
+
TenantDocument.is(tenant_document_fragment.tenant_document));
|
|
55
|
+
}
|
|
56
|
+
}
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FragmentTypeID, is_fragment_type_id } from "../fragments/Fragment"
|
|
2
|
+
import { TenantDocument } from "./TenantDocument"
|
|
2
3
|
|
|
3
4
|
export class TenantDocumentFragment {
|
|
4
5
|
readonly tenant_document_id : string
|
|
@@ -44,4 +45,24 @@ export class TenantDocumentFragment {
|
|
|
44
45
|
(tenant_document_fragment.vector === undefined || Array.isArray(tenant_document_fragment.vector) && tenant_document_fragment.vector.every((coordinate : any) => typeof coordinate === "number"))
|
|
45
46
|
)
|
|
46
47
|
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export class TenantDocumentFragmentAux extends TenantDocumentFragment {
|
|
51
|
+
readonly tenant_document : TenantDocument
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
constructor(tenant_document_fragment : TenantDocumentFragment) {
|
|
55
|
+
if (!TenantDocumentFragmentAux.is(tenant_document_fragment)) {
|
|
56
|
+
throw Error("Invalid input.")
|
|
57
|
+
}
|
|
58
|
+
super(tenant_document_fragment)
|
|
59
|
+
this.tenant_document = tenant_document_fragment.tenant_document
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
static is(tenant_document_fragment : any) : tenant_document_fragment is TenantDocumentFragmentAux {
|
|
63
|
+
return (
|
|
64
|
+
TenantDocumentFragment.is(tenant_document_fragment) &&
|
|
65
|
+
TenantDocument.is(tenant_document_fragment.tenant_document)
|
|
66
|
+
)
|
|
67
|
+
}
|
|
47
68
|
}
|