bruce-models 5.9.8 → 6.0.0

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, lessThanSize } = params;
1900
1903
  if (!api) {
1901
1904
  api = ENVIRONMENT.Api().GetBruceApi();
1902
1905
  }
@@ -1905,9 +1908,22 @@ var Assembly;
1905
1908
  if (params.invalidRootIds) {
1906
1909
  urlParams.append("InvalidRootEntityID", "true");
1907
1910
  }
1911
+ else if (params.lessThanSize) {
1912
+ urlParams.append("LessThanSize", String(lessThanSize));
1913
+ }
1914
+ // Cannot be used with invalidRootIds.
1915
+ // So if both are supplied, invalidRootIds will take precedence.
1916
+ else if (params.assemblyIds) {
1917
+ for (let i = 0; i < assemblyIds.length; i++) {
1918
+ urlParams.append("ID", String(assemblyIds[i]));
1919
+ }
1920
+ }
1908
1921
  url += "?" + urlParams.toString();
1909
- yield api.DELETE(url, Api.PrepReqParams(reqParams));
1922
+ const res = yield api.DELETE(url, Api.PrepReqParams(reqParams));
1910
1923
  api.Cache.RemoveByStartsWith(Api.ECacheKey.Assembly);
1924
+ return {
1925
+ action: res
1926
+ };
1911
1927
  });
1912
1928
  }
1913
1929
  Assembly.DeleteList = DeleteList;
@@ -15677,7 +15693,7 @@ var Scenario;
15677
15693
  })(Scenario || (Scenario = {}));
15678
15694
 
15679
15695
  // This is updated with the package.json version on build.
15680
- const VERSION = "5.9.8";
15696
+ const VERSION = "6.0.0";
15681
15697
 
15682
15698
  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
15699
  //# sourceMappingURL=bruce-models.es5.js.map