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.
@@ -2417,16 +2417,24 @@
2417
2417
  */
2418
2418
  function SuggestHotspotsAI(params) {
2419
2419
  return __awaiter(this, void 0, void 0, function* () {
2420
- let { api, docId, body, req: reqParams } = params;
2420
+ let { api, docId, body, req: reqParams, Prompt, Model, PageFrom, PageTo, MaxResults, MaxPages, KeepUnlabeledSymbols, SaveToDocumentSettings, ReplaceExisting } = params;
2421
2421
  if (!docId) {
2422
2422
  throw ("Doc ID is required.");
2423
2423
  }
2424
2424
  if (!api) {
2425
2425
  api = exports.ENVIRONMENT.Api().GetBruceApi();
2426
2426
  }
2427
- if (!body) {
2428
- body = {};
2429
- }
2427
+ body = MergeSuggestHotspotsAIParams(body, {
2428
+ Prompt,
2429
+ Model,
2430
+ PageFrom,
2431
+ PageTo,
2432
+ MaxResults,
2433
+ MaxPages,
2434
+ KeepUnlabeledSymbols,
2435
+ SaveToDocumentSettings,
2436
+ ReplaceExisting
2437
+ });
2430
2438
  return api.POST(`documentView/${docId}/suggestHotspotsAI`, body, exports.Api.PrepReqParams(reqParams));
2431
2439
  });
2432
2440
  }
@@ -2485,6 +2493,24 @@
2485
2493
  }
2486
2494
  return Object.assign(Object.assign({}, formData), { DetectHotspots: "true" });
2487
2495
  }
2496
+ function MergeSuggestHotspotsAIParams(body, params) {
2497
+ const merged = Object.assign({}, (body || {}));
2498
+ AddDefinedRequestParam(merged, "Prompt", params === null || params === void 0 ? void 0 : params.Prompt);
2499
+ AddDefinedRequestParam(merged, "Model", params === null || params === void 0 ? void 0 : params.Model);
2500
+ AddDefinedRequestParam(merged, "PageFrom", params === null || params === void 0 ? void 0 : params.PageFrom);
2501
+ AddDefinedRequestParam(merged, "PageTo", params === null || params === void 0 ? void 0 : params.PageTo);
2502
+ AddDefinedRequestParam(merged, "MaxResults", params === null || params === void 0 ? void 0 : params.MaxResults);
2503
+ AddDefinedRequestParam(merged, "MaxPages", params === null || params === void 0 ? void 0 : params.MaxPages);
2504
+ AddDefinedRequestParam(merged, "KeepUnlabeledSymbols", params === null || params === void 0 ? void 0 : params.KeepUnlabeledSymbols);
2505
+ AddDefinedRequestParam(merged, "SaveToDocumentSettings", params === null || params === void 0 ? void 0 : params.SaveToDocumentSettings);
2506
+ AddDefinedRequestParam(merged, "ReplaceExisting", params === null || params === void 0 ? void 0 : params.ReplaceExisting);
2507
+ return merged;
2508
+ }
2509
+ function AddDefinedRequestParam(body, key, value) {
2510
+ if (value !== undefined) {
2511
+ body[key] = value;
2512
+ }
2513
+ }
2488
2514
  })(exports.AnnDocument || (exports.AnnDocument = {}));
2489
2515
 
2490
2516
  (function (CustomForm) {
@@ -14647,6 +14673,7 @@
14647
14673
  EConcept["LOD_CATEGORY"] = "lc";
14648
14674
  EConcept["PROGRAM_KEY"] = "pk";
14649
14675
  EConcept["PROJECT_VIEW"] = "pv";
14676
+ EConcept["PENDING_ACTION"] = "pa";
14650
14677
  EConcept["RELATION_TYPE"] = "rt";
14651
14678
  EConcept["SCENARIO"] = "sc";
14652
14679
  EConcept["TILESET"] = "ts";
@@ -18230,7 +18257,7 @@
18230
18257
  })(exports.ChangeSet || (exports.ChangeSet = {}));
18231
18258
 
18232
18259
  // This is updated with the package.json version on build.
18233
- const VERSION = "7.1.42";
18260
+ const VERSION = "7.1.44";
18234
18261
 
18235
18262
  exports.VERSION = VERSION;
18236
18263
  exports.AbstractApi = AbstractApi;