bruce-models 7.1.83 → 7.1.85
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 +22 -55
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +22 -55
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/data-lab/data-lab.js +2 -54
- package/dist/lib/data-lab/data-lab.js.map +1 -1
- package/dist/lib/import/import-assembly.js +19 -0
- package/dist/lib/import/import-assembly.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/data-lab/data-lab.d.ts +3 -29
- package/dist/types/import/import-assembly.d.ts +24 -5
- package/package.json +1 -1
package/dist/lib/bruce-models.js
CHANGED
|
@@ -131,5 +131,5 @@ __exportStar(require("./util/object-utils"), exports);
|
|
|
131
131
|
__exportStar(require("./util/path-utils"), exports);
|
|
132
132
|
__exportStar(require("./util/url-utils"), exports);
|
|
133
133
|
// This is updated with the package.json version on build.
|
|
134
|
-
exports.VERSION = "7.1.
|
|
134
|
+
exports.VERSION = "7.1.85";
|
|
135
135
|
//# sourceMappingURL=bruce-models.js.map
|
|
@@ -123,59 +123,6 @@ var DataLab;
|
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
DataLab.SuggestDataLabQueryByPrompt = SuggestDataLabQueryByPrompt;
|
|
126
|
-
/**
|
|
127
|
-
* Runs a DataLab query for the distinct Entity Type IDs of everything it matches.
|
|
128
|
-
*/
|
|
129
|
-
function GetEntityTypeIds(params) {
|
|
130
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
-
let { api, query, skip, load, req: reqParams } = params;
|
|
132
|
-
if (!api) {
|
|
133
|
-
api = environment_1.ENVIRONMENT.Api().GetBruceApi();
|
|
134
|
-
}
|
|
135
|
-
if (!(query === null || query === void 0 ? void 0 : query[EReqKey.Primary])) {
|
|
136
|
-
throw new Error("query must carry a PrimarySelection.");
|
|
137
|
-
}
|
|
138
|
-
skip = skip !== null && skip !== void 0 ? skip : 0;
|
|
139
|
-
load = load !== null && load !== void 0 ? load : 200;
|
|
140
|
-
// Cloned so asking this question of a query never changes what the caller goes on to run.
|
|
141
|
-
const body = Object.assign(Object.assign({}, query), { [EReqKey.Primary]: Object.assign(Object.assign({}, query[EReqKey.Primary]), { Select: { Type: ESelectType.EntityTypeId } }), Skip: skip, Load: load });
|
|
142
|
-
const res = yield api.POST("v3/datalab/runSearch", body, api_1.Api.PrepReqParams(reqParams));
|
|
143
|
-
return {
|
|
144
|
-
entityTypeIds: Array.isArray(res === null || res === void 0 ? void 0 : res.Items) ? res.Items : [],
|
|
145
|
-
hasMore: Boolean(res === null || res === void 0 ? void 0 : res.NextPage)
|
|
146
|
-
};
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
DataLab.GetEntityTypeIds = GetEntityTypeIds;
|
|
150
|
-
/**
|
|
151
|
-
* Returns the distinct Entity Type IDs used inside one or more assembly hierarchies.
|
|
152
|
-
* The root Entity's own Type is included, since it is part of the hierarchy.
|
|
153
|
-
*/
|
|
154
|
-
function GetAssemblyEntityTypeIds(params) {
|
|
155
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
-
const { api, rootEntityId, skip, load, req } = params;
|
|
157
|
-
const rootIds = Array.isArray(rootEntityId) ? rootEntityId : [rootEntityId];
|
|
158
|
-
if (!rootIds.length || rootIds.some(id => !id)) {
|
|
159
|
-
throw new Error("rootEntityId must be provided.");
|
|
160
|
-
}
|
|
161
|
-
const criterion = {
|
|
162
|
-
key: "root",
|
|
163
|
-
RootID: rootIds
|
|
164
|
-
};
|
|
165
|
-
return GetEntityTypeIds({
|
|
166
|
-
api,
|
|
167
|
-
skip,
|
|
168
|
-
load,
|
|
169
|
-
req,
|
|
170
|
-
query: {
|
|
171
|
-
[EReqKey.Primary]: {
|
|
172
|
-
Items: [criterion]
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
DataLab.GetAssemblyEntityTypeIds = GetAssemblyEntityTypeIds;
|
|
179
126
|
/**
|
|
180
127
|
* Runs a DataLab query.
|
|
181
128
|
* @param params
|
|
@@ -213,7 +160,8 @@ var DataLab;
|
|
|
213
160
|
const data = yield req;
|
|
214
161
|
res({
|
|
215
162
|
entities: data.Items,
|
|
216
|
-
totalCount: data.MatchesCount
|
|
163
|
+
totalCount: data.MatchesCount,
|
|
164
|
+
items: data.Items
|
|
217
165
|
});
|
|
218
166
|
}
|
|
219
167
|
catch (e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-lab.js","sourceRoot":"","sources":["../../../src/data-lab/data-lab.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAiC;AAEjC,gDAA6C;AAS7C;;;;GAIG;AACH,IAAiB,OAAO,
|
|
1
|
+
{"version":3,"file":"data-lab.js","sourceRoot":"","sources":["../../../src/data-lab/data-lab.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAiC;AAEjC,gDAA6C;AAS7C;;;;GAIG;AACH,IAAiB,OAAO,CAiavB;AAjaD,WAAiB,OAAO;IAiCpB;;OAEG;IACH,IAAY,WAaX;IAbD,WAAY,WAAW;QACnB,6CAA6C;QAC7C,gCAAiB,CAAA;QACjB,uBAAuB;QACvB,wBAAS,CAAA;QACT,mFAAmF;QACnF,8CAA+B,CAAA;QAC/B,8DAA8D;QAC9D,iCAAkB,CAAA;QAClB,qCAAqC;QACrC,4BAAa,CAAA;QACb,wCAAwC;QACxC,yCAA0B,CAAA;IAC9B,CAAC,EAbW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAatB;IA4FD,IAAY,OAGX;IAHD,WAAY,OAAO;QACf,uCAA4B,CAAA;QAC5B,2CAAgC,CAAA;IACpC,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB;IAwDD;;;;OAIG;IACH,SAAs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,IAAI,OAAO,CAAC,CAAO,GAAG,EAAE,GAAG,EAAE,EAAE;gBACtD,IAAI;oBACA,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC;oBACvB,GAAG,CAAC;wBACA,QAAQ,EAAE,IAAI,CAAC,KAAK;wBACpB,UAAU,EAAE,IAAI,CAAC,YAAY;wBAC7B,KAAK,EAAE,IAAI,CAAC,KAAK;qBACpB,CAAC,CAAC;iBACN;gBACD,OAAO,CAAC,EAAE;oBACN,GAAG,CAAC,CAAC,CAAC,CAAC;iBACV;YACL,CAAC,CAAA,CAAC,CAAC;YACH,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IAxEqB,WAAG,MAwExB,CAAA;IAED;;;OAGG;IACH,SAAsB,SAAS,CAAC,MAI/B;;YAGG,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;YAChC,IAAI,CAAC,IAAI,EAAE;gBACP,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;aACxC;YACD,IAAI,CAAC,GAAG,EAAE;gBACN,GAAG,GAAG,yBAAW,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC;aACzC;YAED,MAAM,GAAG,GAA0B,MAAM,GAAG,CAAC,IAAI,CAC7C,sBAAsB,EACtB,IAAI,EACJ,SAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CACzB,CAAC;YACF,OAAO;gBACH,MAAM,EAAE,GAAG;aACd,CAAC;QACN,CAAC;KAAA;IAvBqB,iBAAS,YAuB9B,CAAA;AACL,CAAC,EAjagB,OAAO,GAAP,eAAO,KAAP,eAAO,QAiavB"}
|
|
@@ -49,5 +49,24 @@ var ImportAssembly;
|
|
|
49
49
|
return null;
|
|
50
50
|
}
|
|
51
51
|
ImportAssembly.ParseAnalysisResult = ParseAnalysisResult;
|
|
52
|
+
/**
|
|
53
|
+
* Returns the analysis itself, wherever the API decided to put it.
|
|
54
|
+
*/
|
|
55
|
+
function ResolveAnalysisResult(params) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
let { api, paResult, req: reqParams } = params;
|
|
58
|
+
const parsed = ParseAnalysisResult(paResult);
|
|
59
|
+
const tempFileId = parsed === null || parsed === void 0 ? void 0 : parsed["Analysis.TempFile.ID"];
|
|
60
|
+
if (!parsed || !tempFileId) {
|
|
61
|
+
return parsed;
|
|
62
|
+
}
|
|
63
|
+
if (!api) {
|
|
64
|
+
api = environment_1.ENVIRONMENT.Api().GetBruceApi();
|
|
65
|
+
}
|
|
66
|
+
const analysis = yield api.GET("tempfile/" + tempFileId, api_1.Api.PrepReqParams(reqParams));
|
|
67
|
+
return typeof analysis === "string" ? ParseAnalysisResult(analysis) : analysis;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
ImportAssembly.ResolveAnalysisResult = ResolveAnalysisResult;
|
|
52
71
|
})(ImportAssembly = exports.ImportAssembly || (exports.ImportAssembly = {}));
|
|
53
72
|
//# sourceMappingURL=import-assembly.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-assembly.js","sourceRoot":"","sources":["../../../src/import/import-assembly.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAiC;AAGjC,gDAA6C;AAE7C,IAAiB,cAAc,
|
|
1
|
+
{"version":3,"file":"import-assembly.js","sourceRoot":"","sources":["../../../src/import/import-assembly.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAiC;AAGjC,gDAA6C;AAE7C,IAAiB,cAAc,CAsJ9B;AAtJD,WAAiB,cAAc;IA+C3B,SAAsB,OAAO,CAAC,MAI7B;;YACG,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;YAClD,IAAI,CAAC,GAAG,EAAE;gBACN,GAAG,GAAG,yBAAW,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC;aACzC;YAED,OAAO,GAAG,CAAC,IAAI,CAA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C;aACzC;YACD,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,WAAW,GAAG,UAAU,EAAE,SAAG,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC;YACvF,OAAO,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;QACnF,CAAC;KAAA;IAjBqB,oCAAqB,wBAiB1C,CAAA;AACL,CAAC,EAtJgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAsJ9B"}
|
|
@@ -112,7 +112,7 @@ export declare namespace DataLab {
|
|
|
112
112
|
key?: "attribute" | "entityType" | "root" | string;
|
|
113
113
|
LogicOperator?: "AND" | "OR" | string;
|
|
114
114
|
}
|
|
115
|
-
type CriterionAttrOperator = ">" | "<" | ">=" | "<=" | "=" | "EQUALS TO" | "CONTAINS" | "STARTS WITH" | "ENDS WITH" | "NULLOREMPTY" | "NULL" | "IS BETWEEN";
|
|
115
|
+
type CriterionAttrOperator = ">" | "<" | ">=" | "<=" | "=" | "EQUALS TO" | "CONTAINS" | "STARTS WITH" | "ENDS WITH" | "NULLOREMPTY" | "NULL" | "ISNOTNULL" | "IN" | "IS BETWEEN";
|
|
116
116
|
type CriterionValueOption = "USER" | "CONST" | "PRIMARY" | null;
|
|
117
117
|
/**
|
|
118
118
|
* Criterion for filtering against an Entity's attribute.
|
|
@@ -121,7 +121,7 @@ export declare namespace DataLab {
|
|
|
121
121
|
key: "attribute";
|
|
122
122
|
AttributeValue?: {
|
|
123
123
|
AttributePath?: string;
|
|
124
|
-
OperandA?: string | number;
|
|
124
|
+
OperandA?: string | number | string[];
|
|
125
125
|
Operator?: CriterionAttrOperator;
|
|
126
126
|
ValueOption?: CriterionValueOption;
|
|
127
127
|
SelectedValueOptionA?: CriterionValueOption;
|
|
@@ -183,33 +183,6 @@ export declare namespace DataLab {
|
|
|
183
183
|
query: IQuery;
|
|
184
184
|
warnings?: string[];
|
|
185
185
|
}>;
|
|
186
|
-
/**
|
|
187
|
-
* Runs a DataLab query for the distinct Entity Type IDs of everything it matches.
|
|
188
|
-
*/
|
|
189
|
-
function GetEntityTypeIds(params: {
|
|
190
|
-
api?: BruceApi.Api;
|
|
191
|
-
query: IQuery;
|
|
192
|
-
skip?: number;
|
|
193
|
-
load?: number;
|
|
194
|
-
req?: Api.IReqParams;
|
|
195
|
-
}): Promise<{
|
|
196
|
-
entityTypeIds: string[];
|
|
197
|
-
hasMore: boolean;
|
|
198
|
-
}>;
|
|
199
|
-
/**
|
|
200
|
-
* Returns the distinct Entity Type IDs used inside one or more assembly hierarchies.
|
|
201
|
-
* The root Entity's own Type is included, since it is part of the hierarchy.
|
|
202
|
-
*/
|
|
203
|
-
function GetAssemblyEntityTypeIds(params: {
|
|
204
|
-
api?: BruceApi.Api;
|
|
205
|
-
rootEntityId: string | string[];
|
|
206
|
-
skip?: number;
|
|
207
|
-
load?: number;
|
|
208
|
-
req?: Api.IReqParams;
|
|
209
|
-
}): Promise<{
|
|
210
|
-
entityTypeIds: string[];
|
|
211
|
-
hasMore: boolean;
|
|
212
|
-
}>;
|
|
213
186
|
/**
|
|
214
187
|
* Runs a DataLab query.
|
|
215
188
|
* @param params
|
|
@@ -227,6 +200,7 @@ export declare namespace DataLab {
|
|
|
227
200
|
}): Promise<{
|
|
228
201
|
entities?: E.IEntity[];
|
|
229
202
|
totalCount?: number;
|
|
203
|
+
items?: _any[];
|
|
230
204
|
}>;
|
|
231
205
|
/**
|
|
232
206
|
* Runs one or more DataLab actions.
|
|
@@ -7,6 +7,7 @@ export declare namespace ImportAssembly {
|
|
|
7
7
|
"TempFile.Name"?: string;
|
|
8
8
|
"ClientFile.ID"?: string;
|
|
9
9
|
"PrimaryProject"?: string;
|
|
10
|
+
"Analysis.AsTempFile"?: boolean;
|
|
10
11
|
}
|
|
11
12
|
interface IAnalyzeRes {
|
|
12
13
|
"PendingActionID": number;
|
|
@@ -26,6 +27,8 @@ export declare namespace ImportAssembly {
|
|
|
26
27
|
"SortAttrPath"?: string;
|
|
27
28
|
"ImportMode"?: string;
|
|
28
29
|
"FKAttrPath"?: string;
|
|
30
|
+
"SourceFKAttrPath"?: string;
|
|
31
|
+
"TargetFKAttrPath"?: string;
|
|
29
32
|
"Assembly.ID"?: number;
|
|
30
33
|
"RootEntity.ID"?: string;
|
|
31
34
|
"ChangeSet"?: boolean;
|
|
@@ -44,16 +47,18 @@ export declare namespace ImportAssembly {
|
|
|
44
47
|
req?: Api.IReqParams;
|
|
45
48
|
}): Promise<IImportRes>;
|
|
46
49
|
/**
|
|
47
|
-
*
|
|
48
|
-
* This will return the root entity's id if any is present.
|
|
49
|
-
* @param paResult
|
|
50
|
+
* The analysis of an uploaded file, as produced by the analyze step.
|
|
50
51
|
*/
|
|
51
|
-
|
|
52
|
+
interface IAnalysisResult {
|
|
52
53
|
"TotalItems"?: number;
|
|
53
54
|
"Converted.TempFile.ID"?: string;
|
|
54
55
|
"Converted.ClientFile.ID"?: string;
|
|
55
56
|
"ClientFile.ID"?: string;
|
|
56
57
|
"TempFile.ID"?: string;
|
|
58
|
+
"Analysis.TempFile.ID"?: string;
|
|
59
|
+
"Analysis.TempFile.URL"?: string;
|
|
60
|
+
"Preview.TempFile.ID"?: string;
|
|
61
|
+
"ScaleToMeters"?: number;
|
|
57
62
|
"RecommendedSettings"?: {
|
|
58
63
|
"CreateStrictTypes"?: boolean;
|
|
59
64
|
"LoadTypeTemplates"?: boolean;
|
|
@@ -74,5 +79,19 @@ export declare namespace ImportAssembly {
|
|
|
74
79
|
"minZ": number;
|
|
75
80
|
};
|
|
76
81
|
"DataSchema"?: EntityType.IDataSchema;
|
|
77
|
-
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Parses the completed pending action result from running "ImportEntities".
|
|
85
|
+
* This will return the root entity's id if any is present.
|
|
86
|
+
* @param paResult
|
|
87
|
+
*/
|
|
88
|
+
function ParseAnalysisResult(paResult: string | Object): IAnalysisResult;
|
|
89
|
+
/**
|
|
90
|
+
* Returns the analysis itself, wherever the API decided to put it.
|
|
91
|
+
*/
|
|
92
|
+
function ResolveAnalysisResult(params: {
|
|
93
|
+
api?: BruceApi.Api;
|
|
94
|
+
paResult: string | Object;
|
|
95
|
+
req?: Api.IReqParams;
|
|
96
|
+
}): Promise<IAnalysisResult>;
|
|
78
97
|
}
|