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.
- package/dist/bruce-models.es5.js +18 -5
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +18 -5
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/data-lab/data-lab.js +11 -2
- package/dist/lib/data-lab/data-lab.js.map +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/data-lab/data-lab.d.ts +2 -0
- 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 {
|
|
@@ -15483,14 +15487,23 @@ var DataLab;
|
|
|
15483
15487
|
if (!params) {
|
|
15484
15488
|
params = {};
|
|
15485
15489
|
}
|
|
15486
|
-
let { api, req, expandGroups } = params;
|
|
15490
|
+
let { api, req, expandGroups, isActionableOnly, IsActionableOnly } = params;
|
|
15487
15491
|
if (!api) {
|
|
15488
15492
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
15489
15493
|
}
|
|
15490
15494
|
let url = "entities/datalab/savedQueries";
|
|
15495
|
+
const urlParams = new URLSearchParams();
|
|
15496
|
+
let hasUrlParams = false;
|
|
15491
15497
|
if (expandGroups) {
|
|
15492
|
-
const urlParams = new URLSearchParams();
|
|
15493
15498
|
urlParams.append("ExpandGroups", "true");
|
|
15499
|
+
hasUrlParams = true;
|
|
15500
|
+
}
|
|
15501
|
+
const actionableOnly = isActionableOnly !== null && isActionableOnly !== void 0 ? isActionableOnly : IsActionableOnly;
|
|
15502
|
+
if (actionableOnly === true) {
|
|
15503
|
+
urlParams.append("IsActionableOnly", "true");
|
|
15504
|
+
hasUrlParams = true;
|
|
15505
|
+
}
|
|
15506
|
+
if (hasUrlParams) {
|
|
15494
15507
|
url += "?" + urlParams.toString();
|
|
15495
15508
|
}
|
|
15496
15509
|
const res = yield api.GET(url, Api.PrepReqParams(req));
|
|
@@ -17429,7 +17442,7 @@ var ChangeSet;
|
|
|
17429
17442
|
})(ChangeSet || (ChangeSet = {}));
|
|
17430
17443
|
|
|
17431
17444
|
// This is updated with the package.json version on build.
|
|
17432
|
-
const VERSION = "7.1.
|
|
17445
|
+
const VERSION = "7.1.17";
|
|
17433
17446
|
|
|
17434
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 };
|
|
17435
17448
|
//# sourceMappingURL=bruce-models.es5.js.map
|