bruce-models 7.1.84 → 7.1.86

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.
@@ -8453,11 +8453,12 @@
8453
8453
  */
8454
8454
  function Get(params) {
8455
8455
  return __awaiter(this, void 0, void 0, function* () {
8456
- let { id, api, req: reqParams } = params;
8456
+ let { id, expandCount, api, req: reqParams } = params;
8457
8457
  if (!api) {
8458
8458
  api = exports.ENVIRONMENT.Api().GetBruceApi();
8459
8459
  }
8460
- return yield api.GET(`v3/change/${id}`, exports.Api.PrepReqParams(reqParams));
8460
+ const query = expandCount ? "?Expand=Count" : "";
8461
+ return yield api.GET(`v3/change/${id}${query}`, exports.Api.PrepReqParams(reqParams));
8461
8462
  });
8462
8463
  }
8463
8464
  ChangeSet.Get = Get;
@@ -8467,7 +8468,7 @@
8467
8468
  */
8468
8469
  function GetList(params) {
8469
8470
  return __awaiter(this, void 0, void 0, function* () {
8470
- let { api, req: reqParams, pageSize, pageIndex } = params;
8471
+ let { api, req: reqParams, pageSize, pageIndex, expandCount } = params;
8471
8472
  if (!api) {
8472
8473
  api = exports.ENVIRONMENT.Api().GetBruceApi();
8473
8474
  }
@@ -8478,6 +8479,9 @@
8478
8479
  if (pageIndex != null) {
8479
8480
  urlParams.append("PageIndex", String(pageIndex));
8480
8481
  }
8482
+ if (expandCount) {
8483
+ urlParams.append("Expand", "Count");
8484
+ }
8481
8485
  const query = urlParams.toString();
8482
8486
  return api.GET(query ? `v3/changes?${query}` : "v3/changes", exports.Api.PrepReqParams(reqParams));
8483
8487
  });
@@ -14942,6 +14946,25 @@
14942
14946
  return null;
14943
14947
  }
14944
14948
  ImportAssembly.ParseAnalysisResult = ParseAnalysisResult;
14949
+ /**
14950
+ * Returns the analysis itself, wherever the API decided to put it.
14951
+ */
14952
+ function ResolveAnalysisResult(params) {
14953
+ return __awaiter(this, void 0, void 0, function* () {
14954
+ let { api, paResult, req: reqParams } = params;
14955
+ const parsed = ParseAnalysisResult(paResult);
14956
+ const tempFileId = parsed === null || parsed === void 0 ? void 0 : parsed["Analysis.TempFile.ID"];
14957
+ if (!parsed || !tempFileId) {
14958
+ return parsed;
14959
+ }
14960
+ if (!api) {
14961
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
14962
+ }
14963
+ const analysis = yield api.GET("tempfile/" + tempFileId, exports.Api.PrepReqParams(reqParams));
14964
+ return typeof analysis === "string" ? ParseAnalysisResult(analysis) : analysis;
14965
+ });
14966
+ }
14967
+ ImportAssembly.ResolveAnalysisResult = ResolveAnalysisResult;
14945
14968
  })(exports.ImportAssembly || (exports.ImportAssembly = {}));
14946
14969
 
14947
14970
  (function (ImportCad) {
@@ -20358,7 +20381,7 @@
20358
20381
  })(exports.UrlUtils || (exports.UrlUtils = {}));
20359
20382
 
20360
20383
  // This is updated with the package.json version on build.
20361
- const VERSION = "7.1.84";
20384
+ const VERSION = "7.1.86";
20362
20385
 
20363
20386
  exports.VERSION = VERSION;
20364
20387
  exports.AbstractApi = AbstractApi;