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.
@@ -1926,7 +1926,8 @@
1926
1926
  parentId: params.parentId,
1927
1927
  search: params.search,
1928
1928
  withTilesets: params.withTilesets,
1929
- rootEntityId: params.rootEntityId
1929
+ rootEntityId: params.rootEntityId,
1930
+ entityTypeId: params.entityTypeId
1930
1931
  });
1931
1932
  assemblies.push(...result.assemblies);
1932
1933
  }
@@ -1960,10 +1961,10 @@
1960
1961
  for (let i = 0; i < params.ids.length; i++) {
1961
1962
  urlParams.append("ID", String(params.ids[i]));
1962
1963
  }
1963
- if (params.pageIndex != null) {
1964
+ if (params.pageIndex == null) {
1964
1965
  urlParams.append("PageIndex", String(0));
1965
1966
  }
1966
- if (params.pageSize != null) {
1967
+ if (params.pageSize == null) {
1967
1968
  urlParams.append("PageSize", String(params.ids.length));
1968
1969
  }
1969
1970
  }
@@ -1971,13 +1972,18 @@
1971
1972
  for (let i = 0; i < params.rootEntityId.length; i++) {
1972
1973
  urlParams.append("RootEntityID", params.rootEntityId[i]);
1973
1974
  }
1974
- if (params.pageIndex != null) {
1975
+ if (params.pageIndex == null) {
1975
1976
  urlParams.append("PageIndex", String(0));
1976
1977
  }
1977
- if (params.pageSize != null) {
1978
+ if (params.pageSize == null) {
1978
1979
  urlParams.append("PageSize", String(params.rootEntityId.length));
1979
1980
  }
1980
1981
  }
1982
+ if (params.entityTypeId != null) {
1983
+ for (let i = 0; i < params.entityTypeId.length; i++) {
1984
+ urlParams.append("EntityTypeID", params.entityTypeId[i]);
1985
+ }
1986
+ }
1981
1987
  url += "?" + urlParams.toString();
1982
1988
  const data = yield api.GET(url, exports.Api.PrepReqParams(reqParams));
1983
1989
  const result = {};
@@ -2220,6 +2226,7 @@
2220
2226
  EHotspotSource["SVGTextExtraction"] = "SVGTextExtraction";
2221
2227
  EHotspotSource["PDFTextExtraction"] = "PDFTextExtraction";
2222
2228
  EHotspotSource["OCR"] = "OCR";
2229
+ EHotspotSource["AIImage"] = "AIImage";
2223
2230
  })(EHotspotSource = AnnDocument.EHotspotSource || (AnnDocument.EHotspotSource = {}));
2224
2231
  /**
2225
2232
  * Returns an annotated document by ID.
@@ -2335,6 +2342,25 @@
2335
2342
  });
2336
2343
  }
2337
2344
  AnnDocument.SuggestHotspots = SuggestHotspots;
2345
+ /**
2346
+ * Uses the configured AI vision model to suggest hotspots from document view page images.
2347
+ */
2348
+ function SuggestHotspotsAI(params) {
2349
+ return __awaiter(this, void 0, void 0, function* () {
2350
+ let { api, docId, body, req: reqParams } = params;
2351
+ if (!docId) {
2352
+ throw ("Doc ID is required.");
2353
+ }
2354
+ if (!api) {
2355
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
2356
+ }
2357
+ if (!body) {
2358
+ body = {};
2359
+ }
2360
+ return api.POST(`documentView/${docId}/suggestHotspotsAI`, body, exports.Api.PrepReqParams(reqParams));
2361
+ });
2362
+ }
2363
+ AnnDocument.SuggestHotspotsAI = SuggestHotspotsAI;
2338
2364
  /**
2339
2365
  * Returns cache identifier for an annotated document by ID.
2340
2366
  * Example: {
@@ -17890,7 +17916,7 @@
17890
17916
  })(exports.ChangeSet || (exports.ChangeSet = {}));
17891
17917
 
17892
17918
  // This is updated with the package.json version on build.
17893
- const VERSION = "7.1.35";
17919
+ const VERSION = "7.1.37";
17894
17920
 
17895
17921
  exports.VERSION = VERSION;
17896
17922
  exports.AbstractApi = AbstractApi;