bruce-models 7.1.42 → 7.1.44

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.
@@ -2444,16 +2444,24 @@ var AnnDocument;
2444
2444
  */
2445
2445
  function SuggestHotspotsAI(params) {
2446
2446
  return __awaiter(this, void 0, void 0, function* () {
2447
- let { api, docId, body, req: reqParams } = params;
2447
+ let { api, docId, body, req: reqParams, Prompt, Model, PageFrom, PageTo, MaxResults, MaxPages, KeepUnlabeledSymbols, SaveToDocumentSettings, ReplaceExisting } = params;
2448
2448
  if (!docId) {
2449
2449
  throw ("Doc ID is required.");
2450
2450
  }
2451
2451
  if (!api) {
2452
2452
  api = ENVIRONMENT.Api().GetBruceApi();
2453
2453
  }
2454
- if (!body) {
2455
- body = {};
2456
- }
2454
+ body = MergeSuggestHotspotsAIParams(body, {
2455
+ Prompt,
2456
+ Model,
2457
+ PageFrom,
2458
+ PageTo,
2459
+ MaxResults,
2460
+ MaxPages,
2461
+ KeepUnlabeledSymbols,
2462
+ SaveToDocumentSettings,
2463
+ ReplaceExisting
2464
+ });
2457
2465
  return api.POST(`documentView/${docId}/suggestHotspotsAI`, body, Api.PrepReqParams(reqParams));
2458
2466
  });
2459
2467
  }
@@ -2512,6 +2520,24 @@ var AnnDocument;
2512
2520
  }
2513
2521
  return Object.assign(Object.assign({}, formData), { DetectHotspots: "true" });
2514
2522
  }
2523
+ function MergeSuggestHotspotsAIParams(body, params) {
2524
+ const merged = Object.assign({}, (body || {}));
2525
+ AddDefinedRequestParam(merged, "Prompt", params === null || params === void 0 ? void 0 : params.Prompt);
2526
+ AddDefinedRequestParam(merged, "Model", params === null || params === void 0 ? void 0 : params.Model);
2527
+ AddDefinedRequestParam(merged, "PageFrom", params === null || params === void 0 ? void 0 : params.PageFrom);
2528
+ AddDefinedRequestParam(merged, "PageTo", params === null || params === void 0 ? void 0 : params.PageTo);
2529
+ AddDefinedRequestParam(merged, "MaxResults", params === null || params === void 0 ? void 0 : params.MaxResults);
2530
+ AddDefinedRequestParam(merged, "MaxPages", params === null || params === void 0 ? void 0 : params.MaxPages);
2531
+ AddDefinedRequestParam(merged, "KeepUnlabeledSymbols", params === null || params === void 0 ? void 0 : params.KeepUnlabeledSymbols);
2532
+ AddDefinedRequestParam(merged, "SaveToDocumentSettings", params === null || params === void 0 ? void 0 : params.SaveToDocumentSettings);
2533
+ AddDefinedRequestParam(merged, "ReplaceExisting", params === null || params === void 0 ? void 0 : params.ReplaceExisting);
2534
+ return merged;
2535
+ }
2536
+ function AddDefinedRequestParam(body, key, value) {
2537
+ if (value !== undefined) {
2538
+ body[key] = value;
2539
+ }
2540
+ }
2515
2541
  })(AnnDocument || (AnnDocument = {}));
2516
2542
 
2517
2543
  /**
@@ -14909,6 +14935,7 @@ var AccountConcept;
14909
14935
  EConcept["LOD_CATEGORY"] = "lc";
14910
14936
  EConcept["PROGRAM_KEY"] = "pk";
14911
14937
  EConcept["PROJECT_VIEW"] = "pv";
14938
+ EConcept["PENDING_ACTION"] = "pa";
14912
14939
  EConcept["RELATION_TYPE"] = "rt";
14913
14940
  EConcept["SCENARIO"] = "sc";
14914
14941
  EConcept["TILESET"] = "ts";
@@ -18566,7 +18593,7 @@ var ChangeSet;
18566
18593
  })(ChangeSet || (ChangeSet = {}));
18567
18594
 
18568
18595
  // This is updated with the package.json version on build.
18569
- const VERSION = "7.1.42";
18596
+ const VERSION = "7.1.44";
18570
18597
 
18571
18598
  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, AccountConcept, 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 };
18572
18599
  //# sourceMappingURL=bruce-models.es5.js.map