bruce-models 7.1.27 → 7.1.29

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.
@@ -4174,7 +4174,7 @@
4174
4174
  */
4175
4175
  function GetListByIds(params) {
4176
4176
  return __awaiter(this, void 0, void 0, function* () {
4177
- let { api, entityIds, scenario, migrated, schemaId, req: reqParams, expandAttachments, expandLODs, expandRelations, expandLocation, expandSources, expandImports, expandComments, expandEntityType, expand: expandStr, historicFrom, historicKey, historicTo, historicPoint, maxSearchTimeSec } = params;
4177
+ let { api, entityIds, scenario, migrated, schemaId, req: reqParams, entityTypeId: typeId, expandAttachments, expandLODs, expandRelations, expandLocation, expandSources, expandImports, expandComments, expandEntityType, expand: expandStr, historicFrom, historicKey, historicTo, historicPoint, maxSearchTimeSec } = params;
4178
4178
  if (!entityIds.length) {
4179
4179
  throw ("Entity IDs are required.");
4180
4180
  }
@@ -4202,6 +4202,7 @@
4202
4202
  historicPoint: historicPoint,
4203
4203
  schemaId: schemaId,
4204
4204
  scenario: scenario,
4205
+ typeId: typeId
4205
4206
  };
4206
4207
  const crashRiskReqs = [];
4207
4208
  const reqIds = [];
@@ -4301,6 +4302,9 @@
4301
4302
  if (scenario) {
4302
4303
  reqData["Scenario"] = scenario;
4303
4304
  }
4305
+ if (typeId) {
4306
+ reqData["Type"] = typeId;
4307
+ }
4304
4308
  const urlParams = new URLSearchParams();
4305
4309
  if (schemaId) {
4306
4310
  urlParams.set("Schema", schemaId);
@@ -5136,7 +5140,7 @@
5136
5140
  * @returns
5137
5141
  */
5138
5142
  function GetCacheKey(params) {
5139
- let { entityId, scenario: scenarioId, entityTypeId, schemaId, expandLocation, expandRelations, expandImports, expandAttachments, expandLODs, expandSources, expandEntityType, expandComments, expand, historicFrom, historicKey, historicTo, historicPoint } = params;
5143
+ let { entityId, scenario: scenarioId, entityTypeId, schemaId, typeId, expandLocation, expandRelations, expandImports, expandAttachments, expandLODs, expandSources, expandEntityType, expandComments, expand, historicFrom, historicKey, historicTo, historicPoint } = params;
5140
5144
  if (!scenarioId) {
5141
5145
  scenarioId = 0;
5142
5146
  }
@@ -5159,12 +5163,16 @@
5159
5163
  if (!schemaId) {
5160
5164
  schemaId = "";
5161
5165
  }
5166
+ if (!typeId) {
5167
+ typeId = "";
5168
+ }
5162
5169
  let key = `${exports.Api.ECacheKey.Entity}${exports.Api.ECacheKey.Id}${entityId}${String(entityTypeId)}${schemaId}`;
5163
5170
  key += `${String(Boolean(expandLocation))}${String(Boolean(expandRelations))}${String(Boolean(expandSources))}${String(Boolean(expandImports))}`;
5164
5171
  key += `${String(Boolean(expandAttachments))}${String(Boolean(expandLODs))}`;
5165
5172
  key += `${exports.Api.ECacheKey.EntityHistoricData}${exports.Api.ECacheKey.Id}${historicKey}-${historicFrom}-${historicTo}-${historicPoint}`;
5166
5173
  key += `${String(Boolean(expandEntityType))}${String(Boolean(expandComments))}${expand || ""}`;
5167
5174
  key += `${exports.Api.ECacheKey.Id}${scenarioId}`;
5175
+ key += `${typeId}`;
5168
5176
  return key;
5169
5177
  }
5170
5178
  Entity.GetCacheKey = GetCacheKey;
@@ -16041,6 +16049,19 @@
16041
16049
  ImportKml.ImportEntities = ImportEntities;
16042
16050
  })(exports.ImportKml || (exports.ImportKml = {}));
16043
16051
 
16052
+ (function (ImportLcc) {
16053
+ function ImportEntities(params) {
16054
+ return __awaiter(this, void 0, void 0, function* () {
16055
+ let { api, fileImport, req: reqParams } = params;
16056
+ if (!api) {
16057
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
16058
+ }
16059
+ return api.POST("import/lcc", fileImport, exports.Api.PrepReqParams(reqParams));
16060
+ });
16061
+ }
16062
+ ImportLcc.ImportEntities = ImportEntities;
16063
+ })(exports.ImportLcc || (exports.ImportLcc = {}));
16064
+
16044
16065
  (function (ImportedFile) {
16045
16066
  /**
16046
16067
  * Returns cache identifier for a imported file record.
@@ -17722,7 +17743,7 @@
17722
17743
  })(exports.ChangeSet || (exports.ChangeSet = {}));
17723
17744
 
17724
17745
  // This is updated with the package.json version on build.
17725
- const VERSION = "7.1.27";
17746
+ const VERSION = "7.1.29";
17726
17747
 
17727
17748
  exports.VERSION = VERSION;
17728
17749
  exports.AbstractApi = AbstractApi;