bruce-models 7.1.16 → 7.1.18
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 +21 -8
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +21 -8
- 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 +20 -7
- 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 +4 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -8425,7 +8425,10 @@ var EntityTypeTrigger;
|
|
|
8425
8425
|
*/
|
|
8426
8426
|
function Get(params) {
|
|
8427
8427
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8428
|
-
let { api, entityTypeTriggerId, req: reqParams } = params;
|
|
8428
|
+
let { api, entityTypeId, entityTypeTriggerId, req: reqParams } = params;
|
|
8429
|
+
if (!entityTypeId) {
|
|
8430
|
+
throw ("Entity Type ID is required.");
|
|
8431
|
+
}
|
|
8429
8432
|
if (entityTypeTriggerId == null || entityTypeTriggerId === "") {
|
|
8430
8433
|
throw ("Entity Type Trigger ID is required.");
|
|
8431
8434
|
}
|
|
@@ -8439,7 +8442,7 @@ var EntityTypeTrigger;
|
|
|
8439
8442
|
}
|
|
8440
8443
|
const req = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
8441
8444
|
try {
|
|
8442
|
-
const data = yield api.GET(`
|
|
8445
|
+
const data = yield api.GET(`entityType/${entityTypeId}/trigger/${entityTypeTriggerId}`, Api.PrepReqParams(reqParams));
|
|
8443
8446
|
res({
|
|
8444
8447
|
trigger: ParseResponse(data)
|
|
8445
8448
|
});
|
|
@@ -8463,14 +8466,17 @@ var EntityTypeTrigger;
|
|
|
8463
8466
|
*/
|
|
8464
8467
|
function Delete(params) {
|
|
8465
8468
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8466
|
-
let { api, entityTypeTriggerId, req: reqParams } = params;
|
|
8469
|
+
let { api, entityTypeId, entityTypeTriggerId, req: reqParams } = params;
|
|
8470
|
+
if (!entityTypeId) {
|
|
8471
|
+
throw ("Entity Type ID is required.");
|
|
8472
|
+
}
|
|
8467
8473
|
if (entityTypeTriggerId == null || entityTypeTriggerId === "") {
|
|
8468
8474
|
throw ("Entity Type Trigger ID is required.");
|
|
8469
8475
|
}
|
|
8470
8476
|
if (!api) {
|
|
8471
8477
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
8472
8478
|
}
|
|
8473
|
-
yield api.DELETE(`
|
|
8479
|
+
yield api.DELETE(`entityType/${entityTypeId}/trigger/${entityTypeTriggerId}`, Api.PrepReqParams(reqParams));
|
|
8474
8480
|
api.Cache.Remove(GetCacheKey(entityTypeTriggerId));
|
|
8475
8481
|
api.Cache.RemoveByStartsWith(GetListCacheKey());
|
|
8476
8482
|
});
|
|
@@ -8483,6 +8489,9 @@ var EntityTypeTrigger;
|
|
|
8483
8489
|
function GetList(params) {
|
|
8484
8490
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8485
8491
|
let { api, entityTypeId, req: reqParams } = params;
|
|
8492
|
+
if (!entityTypeId) {
|
|
8493
|
+
throw ("Entity Type ID is required.");
|
|
8494
|
+
}
|
|
8486
8495
|
if (!api) {
|
|
8487
8496
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
8488
8497
|
}
|
|
@@ -8493,7 +8502,7 @@ var EntityTypeTrigger;
|
|
|
8493
8502
|
}
|
|
8494
8503
|
const req = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
8495
8504
|
try {
|
|
8496
|
-
const data = yield api.GET(
|
|
8505
|
+
const data = yield api.GET(`entityType/${entityTypeId}/triggers`, Api.PrepReqParams(reqParams));
|
|
8497
8506
|
res({
|
|
8498
8507
|
triggers: ParseListResponse(data)
|
|
8499
8508
|
});
|
|
@@ -8517,7 +8526,7 @@ var EntityTypeTrigger;
|
|
|
8517
8526
|
*/
|
|
8518
8527
|
function Update(params) {
|
|
8519
8528
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8520
|
-
let { api, trigger: data, req: reqParams } = params;
|
|
8529
|
+
let { api, trigger: data, entityTypeId, req: reqParams } = params;
|
|
8521
8530
|
if (!api) {
|
|
8522
8531
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
8523
8532
|
}
|
|
@@ -8527,7 +8536,11 @@ var EntityTypeTrigger;
|
|
|
8527
8536
|
if (data.ID == null || data.ID === "") {
|
|
8528
8537
|
data.ID = ObjectUtils.UId();
|
|
8529
8538
|
}
|
|
8530
|
-
const
|
|
8539
|
+
const typeId = entityTypeId !== null && entityTypeId !== void 0 ? entityTypeId : data["EntityType.ID"];
|
|
8540
|
+
if (!typeId) {
|
|
8541
|
+
throw ("Entity Type ID is required. Set trigger[\"EntityType.ID\"] or pass entityTypeId.");
|
|
8542
|
+
}
|
|
8543
|
+
const res = yield api.POST(`entityType/${typeId}/trigger/${data.ID}`, data, Api.PrepReqParams(reqParams));
|
|
8531
8544
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
8532
8545
|
api.Cache.RemoveByStartsWith(GetListCacheKey());
|
|
8533
8546
|
return {
|
|
@@ -17438,7 +17451,7 @@ var ChangeSet;
|
|
|
17438
17451
|
})(ChangeSet || (ChangeSet = {}));
|
|
17439
17452
|
|
|
17440
17453
|
// This is updated with the package.json version on build.
|
|
17441
|
-
const VERSION = "7.1.
|
|
17454
|
+
const VERSION = "7.1.18";
|
|
17442
17455
|
|
|
17443
17456
|
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
17457
|
//# sourceMappingURL=bruce-models.es5.js.map
|