bruce-models 7.1.16 → 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 {
@@ -17117,7 +17121,7 @@
17117
17121
  })(exports.ChangeSet || (exports.ChangeSet = {}));
17118
17122
 
17119
17123
  // This is updated with the package.json version on build.
17120
- const VERSION = "7.1.16";
17124
+ const VERSION = "7.1.17";
17121
17125
 
17122
17126
  exports.VERSION = VERSION;
17123
17127
  exports.AbstractApi = AbstractApi;