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/bruce-models.es5.js
CHANGED
|
@@ -10974,59 +10974,6 @@ var DataLab;
|
|
|
10974
10974
|
});
|
|
10975
10975
|
}
|
|
10976
10976
|
DataLab.SuggestDataLabQueryByPrompt = SuggestDataLabQueryByPrompt;
|
|
10977
|
-
/**
|
|
10978
|
-
* Runs a DataLab query for the distinct Entity Type IDs of everything it matches.
|
|
10979
|
-
*/
|
|
10980
|
-
function GetEntityTypeIds(params) {
|
|
10981
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
10982
|
-
let { api, query, skip, load, req: reqParams } = params;
|
|
10983
|
-
if (!api) {
|
|
10984
|
-
api = ENVIRONMENT.Api().GetBruceApi();
|
|
10985
|
-
}
|
|
10986
|
-
if (!(query === null || query === void 0 ? void 0 : query[EReqKey.Primary])) {
|
|
10987
|
-
throw new Error("query must carry a PrimarySelection.");
|
|
10988
|
-
}
|
|
10989
|
-
skip = skip !== null && skip !== void 0 ? skip : 0;
|
|
10990
|
-
load = load !== null && load !== void 0 ? load : 200;
|
|
10991
|
-
// Cloned so asking this question of a query never changes what the caller goes on to run.
|
|
10992
|
-
const body = Object.assign(Object.assign({}, query), { [EReqKey.Primary]: Object.assign(Object.assign({}, query[EReqKey.Primary]), { Select: { Type: ESelectType.EntityTypeId } }), Skip: skip, Load: load });
|
|
10993
|
-
const res = yield api.POST("v3/datalab/runSearch", body, Api.PrepReqParams(reqParams));
|
|
10994
|
-
return {
|
|
10995
|
-
entityTypeIds: Array.isArray(res === null || res === void 0 ? void 0 : res.Items) ? res.Items : [],
|
|
10996
|
-
hasMore: Boolean(res === null || res === void 0 ? void 0 : res.NextPage)
|
|
10997
|
-
};
|
|
10998
|
-
});
|
|
10999
|
-
}
|
|
11000
|
-
DataLab.GetEntityTypeIds = GetEntityTypeIds;
|
|
11001
|
-
/**
|
|
11002
|
-
* Returns the distinct Entity Type IDs used inside one or more assembly hierarchies.
|
|
11003
|
-
* The root Entity's own Type is included, since it is part of the hierarchy.
|
|
11004
|
-
*/
|
|
11005
|
-
function GetAssemblyEntityTypeIds(params) {
|
|
11006
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11007
|
-
const { api, rootEntityId, skip, load, req } = params;
|
|
11008
|
-
const rootIds = Array.isArray(rootEntityId) ? rootEntityId : [rootEntityId];
|
|
11009
|
-
if (!rootIds.length || rootIds.some(id => !id)) {
|
|
11010
|
-
throw new Error("rootEntityId must be provided.");
|
|
11011
|
-
}
|
|
11012
|
-
const criterion = {
|
|
11013
|
-
key: "root",
|
|
11014
|
-
RootID: rootIds
|
|
11015
|
-
};
|
|
11016
|
-
return GetEntityTypeIds({
|
|
11017
|
-
api,
|
|
11018
|
-
skip,
|
|
11019
|
-
load,
|
|
11020
|
-
req,
|
|
11021
|
-
query: {
|
|
11022
|
-
[EReqKey.Primary]: {
|
|
11023
|
-
Items: [criterion]
|
|
11024
|
-
}
|
|
11025
|
-
}
|
|
11026
|
-
});
|
|
11027
|
-
});
|
|
11028
|
-
}
|
|
11029
|
-
DataLab.GetAssemblyEntityTypeIds = GetAssemblyEntityTypeIds;
|
|
11030
10977
|
/**
|
|
11031
10978
|
* Runs a DataLab query.
|
|
11032
10979
|
* @param params
|
|
@@ -11064,7 +11011,8 @@ var DataLab;
|
|
|
11064
11011
|
const data = yield req;
|
|
11065
11012
|
res({
|
|
11066
11013
|
entities: data.Items,
|
|
11067
|
-
totalCount: data.MatchesCount
|
|
11014
|
+
totalCount: data.MatchesCount,
|
|
11015
|
+
items: data.Items
|
|
11068
11016
|
});
|
|
11069
11017
|
}
|
|
11070
11018
|
catch (e) {
|
|
@@ -15238,6 +15186,25 @@ var ImportAssembly;
|
|
|
15238
15186
|
return null;
|
|
15239
15187
|
}
|
|
15240
15188
|
ImportAssembly.ParseAnalysisResult = ParseAnalysisResult;
|
|
15189
|
+
/**
|
|
15190
|
+
* Returns the analysis itself, wherever the API decided to put it.
|
|
15191
|
+
*/
|
|
15192
|
+
function ResolveAnalysisResult(params) {
|
|
15193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15194
|
+
let { api, paResult, req: reqParams } = params;
|
|
15195
|
+
const parsed = ParseAnalysisResult(paResult);
|
|
15196
|
+
const tempFileId = parsed === null || parsed === void 0 ? void 0 : parsed["Analysis.TempFile.ID"];
|
|
15197
|
+
if (!parsed || !tempFileId) {
|
|
15198
|
+
return parsed;
|
|
15199
|
+
}
|
|
15200
|
+
if (!api) {
|
|
15201
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
15202
|
+
}
|
|
15203
|
+
const analysis = yield api.GET("tempfile/" + tempFileId, Api.PrepReqParams(reqParams));
|
|
15204
|
+
return typeof analysis === "string" ? ParseAnalysisResult(analysis) : analysis;
|
|
15205
|
+
});
|
|
15206
|
+
}
|
|
15207
|
+
ImportAssembly.ResolveAnalysisResult = ResolveAnalysisResult;
|
|
15241
15208
|
})(ImportAssembly || (ImportAssembly = {}));
|
|
15242
15209
|
|
|
15243
15210
|
/**
|
|
@@ -20773,7 +20740,7 @@ var UrlUtils;
|
|
|
20773
20740
|
})(UrlUtils || (UrlUtils = {}));
|
|
20774
20741
|
|
|
20775
20742
|
// This is updated with the package.json version on build.
|
|
20776
|
-
const VERSION = "7.1.
|
|
20743
|
+
const VERSION = "7.1.85";
|
|
20777
20744
|
|
|
20778
20745
|
export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, GeoJson, Geometry, LRUCache, UTC, CustomForm, DashboardView, DataFeed, DataLab, DataLabGroup, DataSource, DataTransform, Comment, Entity, EntityAttachment, EntityAttachmentType, EntityAttribute, EntityComment, EntityCoords, EntityHistoricData, EntityLink, EntityLod, EntityLodCategory, EntityRelation, EntityRelationType, EntitySource, EntityTableView, EntityTag, EntityType, EntityTypeRelation, EntityTypeTrigger, Ontology, OntologyDocument, ENVIRONMENT, ExportBrz, ExportCsv, ExportUsd, Hexbin, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportedFile, Uploader, Markup, UIMarkup, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, Plugin, ProgramKey, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewBookmarkGroup, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewLegacyTile, ProjectViewTile, ZoomControl, Scenario, HostingLocation, MessageBroker, PendingAction, RecordChangeFeed, Style, Tileset, Tracking, Permission, Session, User, UserGroup, UserMfaMethod, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils };
|
|
20779
20746
|
//# sourceMappingURL=bruce-models.es5.js.map
|