bruce-models 7.1.15 → 7.1.17

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.
@@ -8381,7 +8381,7 @@
8381
8381
  */
8382
8382
  function Update(params) {
8383
8383
  return __awaiter(this, void 0, void 0, function* () {
8384
- let { api, trigger: data, req: reqParams } = params;
8384
+ let { api, trigger: data, entityTypeId, req: reqParams } = params;
8385
8385
  if (!api) {
8386
8386
  api = exports.ENVIRONMENT.Api().GetBruceApi();
8387
8387
  }
@@ -8391,7 +8391,11 @@
8391
8391
  if (data.ID == null || data.ID === "") {
8392
8392
  data.ID = exports.ObjectUtils.UId();
8393
8393
  }
8394
- const res = yield api.POST(`entityTypeTrigger/${data.ID}`, data, exports.Api.PrepReqParams(reqParams));
8394
+ const typeId = entityTypeId !== null && entityTypeId !== void 0 ? entityTypeId : data["EntityType.ID"];
8395
+ if (!typeId) {
8396
+ throw ("Entity Type ID is required. Set trigger[\"EntityType.ID\"] or pass entityTypeId.");
8397
+ }
8398
+ const res = yield api.POST(`entityType/${typeId}/trigger/${data.ID}`, data, exports.Api.PrepReqParams(reqParams));
8395
8399
  api.Cache.Remove(GetCacheKey(data.ID));
8396
8400
  api.Cache.RemoveByStartsWith(GetListCacheKey());
8397
8401
  return {
@@ -15196,14 +15200,23 @@
15196
15200
  if (!params) {
15197
15201
  params = {};
15198
15202
  }
15199
- let { api, req, expandGroups } = params;
15203
+ let { api, req, expandGroups, isActionableOnly, IsActionableOnly } = params;
15200
15204
  if (!api) {
15201
15205
  api = exports.ENVIRONMENT.Api().GetBruceApi();
15202
15206
  }
15203
15207
  let url = "entities/datalab/savedQueries";
15208
+ const urlParams = new URLSearchParams();
15209
+ let hasUrlParams = false;
15204
15210
  if (expandGroups) {
15205
- const urlParams = new URLSearchParams();
15206
15211
  urlParams.append("ExpandGroups", "true");
15212
+ hasUrlParams = true;
15213
+ }
15214
+ const actionableOnly = isActionableOnly !== null && isActionableOnly !== void 0 ? isActionableOnly : IsActionableOnly;
15215
+ if (actionableOnly === true) {
15216
+ urlParams.append("IsActionableOnly", "true");
15217
+ hasUrlParams = true;
15218
+ }
15219
+ if (hasUrlParams) {
15207
15220
  url += "?" + urlParams.toString();
15208
15221
  }
15209
15222
  const res = yield api.GET(url, exports.Api.PrepReqParams(req));
@@ -17108,7 +17121,7 @@
17108
17121
  })(exports.ChangeSet || (exports.ChangeSet = {}));
17109
17122
 
17110
17123
  // This is updated with the package.json version on build.
17111
- const VERSION = "7.1.15";
17124
+ const VERSION = "7.1.17";
17112
17125
 
17113
17126
  exports.VERSION = VERSION;
17114
17127
  exports.AbstractApi = AbstractApi;