bruce-models 7.1.64 → 7.1.66
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/bruce-models.es5.js +226 -5
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +220 -4
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/api.js +1 -0
- package/dist/lib/api/api.js.map +1 -1
- package/dist/lib/bruce-models.js +2 -1
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/client-file/client-file.js +59 -0
- package/dist/lib/client-file/client-file.js.map +1 -1
- package/dist/lib/entity/entity-type.js +15 -3
- package/dist/lib/entity/entity-type.js.map +1 -1
- package/dist/lib/entity/ontology.js +164 -0
- package/dist/lib/entity/ontology.js.map +1 -0
- package/dist/lib/style/style.js.map +1 -1
- package/dist/types/api/api.d.ts +1 -0
- package/dist/types/bruce-models.d.ts +2 -1
- package/dist/types/client-file/client-file.d.ts +10 -0
- package/dist/types/entity/entity-type.d.ts +3 -0
- package/dist/types/entity/ontology.d.ts +56 -0
- package/dist/types/style/style.d.ts +8 -1
- package/package.json +1 -1
|
@@ -31,6 +31,7 @@ export declare namespace EntityType {
|
|
|
31
31
|
"DisplaySetting.ID"?: number;
|
|
32
32
|
"Created"?: string;
|
|
33
33
|
"Updated"?: string;
|
|
34
|
+
"Ontology.ID"?: string | number;
|
|
34
35
|
"Parent.EntityType.ID"?: string;
|
|
35
36
|
IsDeleteDisabled?: boolean;
|
|
36
37
|
HistoricDataSettings?: {
|
|
@@ -371,6 +372,7 @@ export declare namespace EntityType {
|
|
|
371
372
|
*/
|
|
372
373
|
function GetList(params: {
|
|
373
374
|
parentTypeId?: string;
|
|
375
|
+
ontologyId?: string | number;
|
|
374
376
|
entityTypeIds?: string[];
|
|
375
377
|
expandSettings?: boolean;
|
|
376
378
|
expandLODs?: boolean;
|
|
@@ -564,6 +566,7 @@ export declare namespace EntityType {
|
|
|
564
566
|
function GetListCacheKey(params?: {
|
|
565
567
|
typeIds?: string[];
|
|
566
568
|
parentTypeId?: string;
|
|
569
|
+
ontologyId?: string | number;
|
|
567
570
|
expandSettings?: boolean;
|
|
568
571
|
expandLODs?: boolean;
|
|
569
572
|
expandOntologyDiagramSettings?: boolean;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Api } from "../api/api";
|
|
2
|
+
import { BruceApi } from "../api/bruce-api";
|
|
3
|
+
type OntologyId = string | number;
|
|
4
|
+
/**
|
|
5
|
+
* Describes the "Ontology" concept within Nextspace.
|
|
6
|
+
* Ontologies group Entity Types and can be used to filter entity-type listings.
|
|
7
|
+
*/
|
|
8
|
+
export declare namespace Ontology {
|
|
9
|
+
interface IOntology {
|
|
10
|
+
ID?: OntologyId;
|
|
11
|
+
Name?: string;
|
|
12
|
+
Description?: string;
|
|
13
|
+
Created?: string;
|
|
14
|
+
Updated?: string;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
17
|
+
type IBruceOntology = IOntology;
|
|
18
|
+
function Get(params: {
|
|
19
|
+
api?: BruceApi.Api;
|
|
20
|
+
ontologyId: OntologyId;
|
|
21
|
+
req?: Api.IReqParams;
|
|
22
|
+
}): Promise<{
|
|
23
|
+
ontology: IOntology;
|
|
24
|
+
}>;
|
|
25
|
+
function GetList(params: {
|
|
26
|
+
api?: BruceApi.Api;
|
|
27
|
+
req?: Api.IReqParams;
|
|
28
|
+
}): Promise<{
|
|
29
|
+
ontologies: IOntology[];
|
|
30
|
+
}>;
|
|
31
|
+
function Update(params: {
|
|
32
|
+
api?: BruceApi.Api;
|
|
33
|
+
ontology: IOntology;
|
|
34
|
+
req?: Api.IReqParams;
|
|
35
|
+
}): Promise<{
|
|
36
|
+
ontology: IOntology;
|
|
37
|
+
}>;
|
|
38
|
+
function Delete(params: {
|
|
39
|
+
api?: BruceApi.Api;
|
|
40
|
+
ontologyId: OntologyId;
|
|
41
|
+
req?: Api.IReqParams;
|
|
42
|
+
}): Promise<void>;
|
|
43
|
+
function ParseResponse(response: IOntology | {
|
|
44
|
+
Ontology?: IOntology;
|
|
45
|
+
BruceOntology?: IOntology;
|
|
46
|
+
Result?: IOntology | string;
|
|
47
|
+
} | string | any): IOntology;
|
|
48
|
+
function ParseListResponse(response: Api.IList<IOntology> | IOntology[] | {
|
|
49
|
+
Ontologies?: IOntology[];
|
|
50
|
+
BruceOntologies?: IOntology[];
|
|
51
|
+
Result?: Api.IList<IOntology> | IOntology[] | string;
|
|
52
|
+
} | string | any): IOntology[];
|
|
53
|
+
function GetCacheKey(id: OntologyId): string;
|
|
54
|
+
function GetListCacheKey(): string;
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -73,6 +73,13 @@ export declare namespace Style {
|
|
|
73
73
|
minColor: string;
|
|
74
74
|
maxColor: string;
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Texture conditions that will drive a lookup for a file.
|
|
78
|
+
*/
|
|
79
|
+
interface ITexture {
|
|
80
|
+
"EntityType.Source.ID": number;
|
|
81
|
+
Attribute: string;
|
|
82
|
+
}
|
|
76
83
|
/**
|
|
77
84
|
* Settings for rendering polygons.
|
|
78
85
|
*/
|
|
@@ -81,7 +88,7 @@ export declare namespace Style {
|
|
|
81
88
|
extrusionPath: Calculator.IField[];
|
|
82
89
|
fillColor: Calculator.IField[];
|
|
83
90
|
fillType?: EPolygonFillType;
|
|
84
|
-
texture?: Calculator.IField[];
|
|
91
|
+
texture?: Calculator.IField[] | ITexture;
|
|
85
92
|
textureColorMask?: ITextureColorMask;
|
|
86
93
|
lineColor: Calculator.IField[];
|
|
87
94
|
lineWidth: Calculator.IField[];
|