bruce-models 7.1.35 → 7.1.37
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 +32 -6
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +32 -6
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/ann-document/ann-document.js +20 -0
- package/dist/lib/ann-document/ann-document.js.map +1 -1
- package/dist/lib/assembly/assembly.js +11 -5
- package/dist/lib/assembly/assembly.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/types/ann-document/ann-document.d.ts +41 -1
- package/dist/types/assembly/assembly.d.ts +1 -0
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -1948,7 +1948,8 @@ var Assembly;
|
|
|
1948
1948
|
parentId: params.parentId,
|
|
1949
1949
|
search: params.search,
|
|
1950
1950
|
withTilesets: params.withTilesets,
|
|
1951
|
-
rootEntityId: params.rootEntityId
|
|
1951
|
+
rootEntityId: params.rootEntityId,
|
|
1952
|
+
entityTypeId: params.entityTypeId
|
|
1952
1953
|
});
|
|
1953
1954
|
assemblies.push(...result.assemblies);
|
|
1954
1955
|
}
|
|
@@ -1982,10 +1983,10 @@ var Assembly;
|
|
|
1982
1983
|
for (let i = 0; i < params.ids.length; i++) {
|
|
1983
1984
|
urlParams.append("ID", String(params.ids[i]));
|
|
1984
1985
|
}
|
|
1985
|
-
if (params.pageIndex
|
|
1986
|
+
if (params.pageIndex == null) {
|
|
1986
1987
|
urlParams.append("PageIndex", String(0));
|
|
1987
1988
|
}
|
|
1988
|
-
if (params.pageSize
|
|
1989
|
+
if (params.pageSize == null) {
|
|
1989
1990
|
urlParams.append("PageSize", String(params.ids.length));
|
|
1990
1991
|
}
|
|
1991
1992
|
}
|
|
@@ -1993,13 +1994,18 @@ var Assembly;
|
|
|
1993
1994
|
for (let i = 0; i < params.rootEntityId.length; i++) {
|
|
1994
1995
|
urlParams.append("RootEntityID", params.rootEntityId[i]);
|
|
1995
1996
|
}
|
|
1996
|
-
if (params.pageIndex
|
|
1997
|
+
if (params.pageIndex == null) {
|
|
1997
1998
|
urlParams.append("PageIndex", String(0));
|
|
1998
1999
|
}
|
|
1999
|
-
if (params.pageSize
|
|
2000
|
+
if (params.pageSize == null) {
|
|
2000
2001
|
urlParams.append("PageSize", String(params.rootEntityId.length));
|
|
2001
2002
|
}
|
|
2002
2003
|
}
|
|
2004
|
+
if (params.entityTypeId != null) {
|
|
2005
|
+
for (let i = 0; i < params.entityTypeId.length; i++) {
|
|
2006
|
+
urlParams.append("EntityTypeID", params.entityTypeId[i]);
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2003
2009
|
url += "?" + urlParams.toString();
|
|
2004
2010
|
const data = yield api.GET(url, Api.PrepReqParams(reqParams));
|
|
2005
2011
|
const result = {};
|
|
@@ -2247,6 +2253,7 @@ var AnnDocument;
|
|
|
2247
2253
|
EHotspotSource["SVGTextExtraction"] = "SVGTextExtraction";
|
|
2248
2254
|
EHotspotSource["PDFTextExtraction"] = "PDFTextExtraction";
|
|
2249
2255
|
EHotspotSource["OCR"] = "OCR";
|
|
2256
|
+
EHotspotSource["AIImage"] = "AIImage";
|
|
2250
2257
|
})(EHotspotSource = AnnDocument.EHotspotSource || (AnnDocument.EHotspotSource = {}));
|
|
2251
2258
|
/**
|
|
2252
2259
|
* Returns an annotated document by ID.
|
|
@@ -2362,6 +2369,25 @@ var AnnDocument;
|
|
|
2362
2369
|
});
|
|
2363
2370
|
}
|
|
2364
2371
|
AnnDocument.SuggestHotspots = SuggestHotspots;
|
|
2372
|
+
/**
|
|
2373
|
+
* Uses the configured AI vision model to suggest hotspots from document view page images.
|
|
2374
|
+
*/
|
|
2375
|
+
function SuggestHotspotsAI(params) {
|
|
2376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2377
|
+
let { api, docId, body, req: reqParams } = params;
|
|
2378
|
+
if (!docId) {
|
|
2379
|
+
throw ("Doc ID is required.");
|
|
2380
|
+
}
|
|
2381
|
+
if (!api) {
|
|
2382
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
2383
|
+
}
|
|
2384
|
+
if (!body) {
|
|
2385
|
+
body = {};
|
|
2386
|
+
}
|
|
2387
|
+
return api.POST(`documentView/${docId}/suggestHotspotsAI`, body, Api.PrepReqParams(reqParams));
|
|
2388
|
+
});
|
|
2389
|
+
}
|
|
2390
|
+
AnnDocument.SuggestHotspotsAI = SuggestHotspotsAI;
|
|
2365
2391
|
/**
|
|
2366
2392
|
* Returns cache identifier for an annotated document by ID.
|
|
2367
2393
|
* Example: {
|
|
@@ -18225,7 +18251,7 @@ var ChangeSet;
|
|
|
18225
18251
|
})(ChangeSet || (ChangeSet = {}));
|
|
18226
18252
|
|
|
18227
18253
|
// This is updated with the package.json version on build.
|
|
18228
|
-
const VERSION = "7.1.
|
|
18254
|
+
const VERSION = "7.1.37";
|
|
18229
18255
|
|
|
18230
18256
|
export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityTypeTrigger, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, DashboardView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, UserMfaMethod, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataTransform, DataLabGroup, DataFeed, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportLcc, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, ChangeSet };
|
|
18231
18257
|
//# sourceMappingURL=bruce-models.es5.js.map
|