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.
- package/dist/bruce-models.es5.js +7 -3
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +7 -3
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity-type-trigger.js +6 -2
- package/dist/lib/entity/entity-type-trigger.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity-type-trigger.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -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
|
|
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.
|
|
17124
|
+
const VERSION = "7.1.17";
|
|
17121
17125
|
|
|
17122
17126
|
exports.VERSION = VERSION;
|
|
17123
17127
|
exports.AbstractApi = AbstractApi;
|