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.
@@ -1863,8 +1863,11 @@
1863
1863
  if (!api) {
1864
1864
  api = exports.ENVIRONMENT.Api().GetBruceApi();
1865
1865
  }
1866
- yield api.DELETE(`v3/assembly/${assemblyId}`, exports.Api.PrepReqParams(reqParams));
1866
+ const res = yield api.DELETE(`v3/assembly/${assemblyId}`, exports.Api.PrepReqParams(reqParams));
1867
1867
  api.Cache.RemoveByStartsWith(exports.Api.ECacheKey.Assembly + exports.Api.ECacheKey.Id + assemblyId);
1868
+ return {
1869
+ action: res
1870
+ };
1868
1871
  });
1869
1872
  }
1870
1873
  Assembly.Delete = Delete;
@@ -1874,7 +1877,7 @@
1874
1877
  */
1875
1878
  function DeleteList(params) {
1876
1879
  return __awaiter(this, void 0, void 0, function* () {
1877
- let { api, req: reqParams } = params;
1880
+ let { api, req: reqParams, assemblyIds, lessThanSize } = params;
1878
1881
  if (!api) {
1879
1882
  api = exports.ENVIRONMENT.Api().GetBruceApi();
1880
1883
  }
@@ -1883,9 +1886,22 @@
1883
1886
  if (params.invalidRootIds) {
1884
1887
  urlParams.append("InvalidRootEntityID", "true");
1885
1888
  }
1889
+ else if (params.lessThanSize) {
1890
+ urlParams.append("LessThanSize", String(lessThanSize));
1891
+ }
1892
+ // Cannot be used with invalidRootIds.
1893
+ // So if both are supplied, invalidRootIds will take precedence.
1894
+ else if (params.assemblyIds) {
1895
+ for (let i = 0; i < assemblyIds.length; i++) {
1896
+ urlParams.append("ID", String(assemblyIds[i]));
1897
+ }
1898
+ }
1886
1899
  url += "?" + urlParams.toString();
1887
- yield api.DELETE(url, exports.Api.PrepReqParams(reqParams));
1900
+ const res = yield api.DELETE(url, exports.Api.PrepReqParams(reqParams));
1888
1901
  api.Cache.RemoveByStartsWith(exports.Api.ECacheKey.Assembly);
1902
+ return {
1903
+ action: res
1904
+ };
1889
1905
  });
1890
1906
  }
1891
1907
  Assembly.DeleteList = DeleteList;
@@ -15368,7 +15384,7 @@
15368
15384
  })(exports.Scenario || (exports.Scenario = {}));
15369
15385
 
15370
15386
  // This is updated with the package.json version on build.
15371
- const VERSION = "5.9.8";
15387
+ const VERSION = "6.0.0";
15372
15388
 
15373
15389
  exports.VERSION = VERSION;
15374
15390
  exports.AbstractApi = AbstractApi;