bruce-models 7.1.89 → 7.1.90

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.
@@ -4276,14 +4276,18 @@
4276
4276
  */
4277
4277
  function Delete(params) {
4278
4278
  return __awaiter(this, void 0, void 0, function* () {
4279
- let { api, assemblyId, req: reqParams } = params;
4279
+ let { api, assemblyId, deleteEmptyEntityTypes, req: reqParams } = params;
4280
4280
  if (!assemblyId) {
4281
4281
  throw ("Assembly ID is required.");
4282
4282
  }
4283
4283
  if (!api) {
4284
4284
  api = exports.ENVIRONMENT.Api().GetBruceApi();
4285
4285
  }
4286
- const res = yield api.DELETE(`v3/assembly/${assemblyId}`, exports.Api.PrepReqParams(reqParams));
4286
+ let url = `v3/assembly/${assemblyId}`;
4287
+ if (deleteEmptyEntityTypes) {
4288
+ url += "?DeleteEmptyEntityTypes=true";
4289
+ }
4290
+ const res = yield api.DELETE(url, exports.Api.PrepReqParams(reqParams));
4287
4291
  api.Cache.RemoveByStartsWith(exports.Api.ECacheKey.Assembly + exports.Api.ECacheKey.Id + assemblyId);
4288
4292
  return {
4289
4293
  action: res
@@ -4297,7 +4301,7 @@
4297
4301
  */
4298
4302
  function DeleteList(params) {
4299
4303
  return __awaiter(this, void 0, void 0, function* () {
4300
- let { api, req: reqParams, assemblyIds, lessThanSize, test } = params;
4304
+ let { api, req: reqParams, assemblyIds, lessThanSize, test, deleteEmptyEntityTypes } = params;
4301
4305
  if (!api) {
4302
4306
  api = exports.ENVIRONMENT.Api().GetBruceApi();
4303
4307
  }
@@ -4306,6 +4310,9 @@
4306
4310
  if (test) {
4307
4311
  urlParams.append("Test", "true");
4308
4312
  }
4313
+ if (deleteEmptyEntityTypes) {
4314
+ urlParams.append("DeleteEmptyEntityTypes", "true");
4315
+ }
4309
4316
  if (params.invalidRootIds) {
4310
4317
  urlParams.append("InvalidRootEntityID", "true");
4311
4318
  }
@@ -22886,7 +22893,7 @@
22886
22893
  })(exports.UrlUtils || (exports.UrlUtils = {}));
22887
22894
 
22888
22895
  // This is updated with the package.json version on build.
22889
- const VERSION = "7.1.89";
22896
+ const VERSION = "7.1.90";
22890
22897
 
22891
22898
  exports.VERSION = VERSION;
22892
22899
  exports.AbstractApi = AbstractApi;