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.es5.js
CHANGED
|
@@ -8517,7 +8517,7 @@ var EntityTypeTrigger;
|
|
|
8517
8517
|
*/
|
|
8518
8518
|
function Update(params) {
|
|
8519
8519
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8520
|
-
let { api, trigger: data, req: reqParams } = params;
|
|
8520
|
+
let { api, trigger: data, entityTypeId, req: reqParams } = params;
|
|
8521
8521
|
if (!api) {
|
|
8522
8522
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
8523
8523
|
}
|
|
@@ -8527,7 +8527,11 @@ var EntityTypeTrigger;
|
|
|
8527
8527
|
if (data.ID == null || data.ID === "") {
|
|
8528
8528
|
data.ID = ObjectUtils.UId();
|
|
8529
8529
|
}
|
|
8530
|
-
const
|
|
8530
|
+
const typeId = entityTypeId !== null && entityTypeId !== void 0 ? entityTypeId : data["EntityType.ID"];
|
|
8531
|
+
if (!typeId) {
|
|
8532
|
+
throw ("Entity Type ID is required. Set trigger[\"EntityType.ID\"] or pass entityTypeId.");
|
|
8533
|
+
}
|
|
8534
|
+
const res = yield api.POST(`entityType/${typeId}/trigger/${data.ID}`, data, Api.PrepReqParams(reqParams));
|
|
8531
8535
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
8532
8536
|
api.Cache.RemoveByStartsWith(GetListCacheKey());
|
|
8533
8537
|
return {
|
|
@@ -17438,7 +17442,7 @@ var ChangeSet;
|
|
|
17438
17442
|
})(ChangeSet || (ChangeSet = {}));
|
|
17439
17443
|
|
|
17440
17444
|
// This is updated with the package.json version on build.
|
|
17441
|
-
const VERSION = "7.1.
|
|
17445
|
+
const VERSION = "7.1.17";
|
|
17442
17446
|
|
|
17443
17447
|
export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityTypeTrigger, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, UserMfaMethod, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking, NavigatorChatClient, NavigatorMcpWebSocketClient, ChangeSet };
|
|
17444
17448
|
//# sourceMappingURL=bruce-models.es5.js.map
|