bruce-models 5.9.8 → 5.9.9

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.
@@ -1885,8 +1885,11 @@ var Assembly;
1885
1885
  if (!api) {
1886
1886
  api = ENVIRONMENT.Api().GetBruceApi();
1887
1887
  }
1888
- yield api.DELETE(`v3/assembly/${assemblyId}`, Api.PrepReqParams(reqParams));
1888
+ const res = yield api.DELETE(`v3/assembly/${assemblyId}`, Api.PrepReqParams(reqParams));
1889
1889
  api.Cache.RemoveByStartsWith(Api.ECacheKey.Assembly + Api.ECacheKey.Id + assemblyId);
1890
+ return {
1891
+ action: res
1892
+ };
1890
1893
  });
1891
1894
  }
1892
1895
  Assembly.Delete = Delete;
@@ -1896,7 +1899,7 @@ var Assembly;
1896
1899
  */
1897
1900
  function DeleteList(params) {
1898
1901
  return __awaiter(this, void 0, void 0, function* () {
1899
- let { api, req: reqParams } = params;
1902
+ let { api, req: reqParams, assemblyIds } = params;
1900
1903
  if (!api) {
1901
1904
  api = ENVIRONMENT.Api().GetBruceApi();
1902
1905
  }
@@ -1905,9 +1908,19 @@ var Assembly;
1905
1908
  if (params.invalidRootIds) {
1906
1909
  urlParams.append("InvalidRootEntityID", "true");
1907
1910
  }
1911
+ // Cannot be used with invalidRootIds.
1912
+ // So if both are supplied, invalidRootIds will take precedence.
1913
+ else if (params.assemblyIds) {
1914
+ for (let i = 0; i < assemblyIds.length; i++) {
1915
+ urlParams.append("ID", String(assemblyIds[i]));
1916
+ }
1917
+ }
1908
1918
  url += "?" + urlParams.toString();
1909
- yield api.DELETE(url, Api.PrepReqParams(reqParams));
1919
+ const res = yield api.DELETE(url, Api.PrepReqParams(reqParams));
1910
1920
  api.Cache.RemoveByStartsWith(Api.ECacheKey.Assembly);
1921
+ return {
1922
+ action: res
1923
+ };
1911
1924
  });
1912
1925
  }
1913
1926
  Assembly.DeleteList = DeleteList;
@@ -15677,7 +15690,7 @@ var Scenario;
15677
15690
  })(Scenario || (Scenario = {}));
15678
15691
 
15679
15692
  // This is updated with the package.json version on build.
15680
- const VERSION = "5.9.8";
15693
+ const VERSION = "5.9.9";
15681
15694
 
15682
15695
  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, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario };
15683
15696
  //# sourceMappingURL=bruce-models.es5.js.map