bruce-models 7.0.8 → 7.0.10
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 +105 -6
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +103 -5
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +2 -1
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/change-set/change-set.js +100 -0
- package/dist/lib/change-set/change-set.js.map +1 -0
- package/dist/lib/tileset/tileset.js +21 -4
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/types/bruce-models.d.ts +2 -1
- package/dist/types/change-set/change-set.d.ts +45 -0
- package/dist/types/tileset/tileset.d.ts +7 -3
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -10312,7 +10312,7 @@ var Tileset;
|
|
|
10312
10312
|
*/
|
|
10313
10313
|
function GetList(params) {
|
|
10314
10314
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10315
|
-
let { api, req: reqParams, assertLocation, expandSettings, type, pageIndex, pageSize, search, orderBy, sortOrder, tilesetIds } = params;
|
|
10315
|
+
let { api, req: reqParams, entityIds, entityTypeIds, assertLocation, expandSettings, type, pageIndex, pageSize, search, orderBy, sortOrder, tilesetIds } = params;
|
|
10316
10316
|
if (!api) {
|
|
10317
10317
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
10318
10318
|
}
|
|
@@ -10324,6 +10324,8 @@ var Tileset;
|
|
|
10324
10324
|
type: type,
|
|
10325
10325
|
orderBy: orderBy,
|
|
10326
10326
|
sortOrder: sortOrder,
|
|
10327
|
+
entityIds: entityIds,
|
|
10328
|
+
entityTypeIds: entityTypeIds,
|
|
10327
10329
|
search: search
|
|
10328
10330
|
});
|
|
10329
10331
|
}
|
|
@@ -10341,7 +10343,7 @@ var Tileset;
|
|
|
10341
10343
|
urlParams.append("assertLocation", "true");
|
|
10342
10344
|
}
|
|
10343
10345
|
if (type) {
|
|
10344
|
-
urlParams.append("type", type);
|
|
10346
|
+
urlParams.append("type", Array.isArray(type) ? type.join(",") : String(type));
|
|
10345
10347
|
}
|
|
10346
10348
|
if (search) {
|
|
10347
10349
|
urlParams.append("Search", search);
|
|
@@ -10361,6 +10363,12 @@ var Tileset;
|
|
|
10361
10363
|
if (tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) {
|
|
10362
10364
|
urlParams.append("ID", tilesetIds.join(","));
|
|
10363
10365
|
}
|
|
10366
|
+
if (entityIds === null || entityIds === void 0 ? void 0 : entityIds.length) {
|
|
10367
|
+
urlParams.append("EntityID", entityIds.join(","));
|
|
10368
|
+
}
|
|
10369
|
+
if (entityTypeIds === null || entityTypeIds === void 0 ? void 0 : entityTypeIds.length) {
|
|
10370
|
+
urlParams.append("EntityTypeID", entityTypeIds.join(","));
|
|
10371
|
+
}
|
|
10364
10372
|
const data = yield api.GET("tileset/getList?" + urlParams.toString(), reqParams);
|
|
10365
10373
|
// Convert legacy records.
|
|
10366
10374
|
// Commented out because it spams :)
|
|
@@ -10949,7 +10957,7 @@ var Tileset;
|
|
|
10949
10957
|
if (!params) {
|
|
10950
10958
|
params = {};
|
|
10951
10959
|
}
|
|
10952
|
-
let { expandSettings, assertLocation, type, orderBy, search, sortOrder } = params;
|
|
10960
|
+
let { expandSettings, assertLocation, type, orderBy, search, sortOrder, entityIds, entityTypeIds } = params;
|
|
10953
10961
|
if (expandSettings == null) {
|
|
10954
10962
|
expandSettings = false;
|
|
10955
10963
|
}
|
|
@@ -10962,7 +10970,16 @@ var Tileset;
|
|
|
10962
10970
|
if (!orderBy) {
|
|
10963
10971
|
orderBy = "";
|
|
10964
10972
|
}
|
|
10965
|
-
|
|
10973
|
+
if (!entityIds) {
|
|
10974
|
+
entityIds = [];
|
|
10975
|
+
}
|
|
10976
|
+
if (!entityTypeIds) {
|
|
10977
|
+
entityTypeIds = [];
|
|
10978
|
+
}
|
|
10979
|
+
let key = Api.ECacheKey.Tileset + String(expandSettings) + String(assertLocation) + (type ? type : "") + String(orderBy) + String(sortOrder) + Api.ECacheKey.Id + search;
|
|
10980
|
+
key += Api.ECacheKey.Id + entityIds.join(",");
|
|
10981
|
+
key += Api.ECacheKey.Id + entityTypeIds.join(",");
|
|
10982
|
+
return key;
|
|
10966
10983
|
}
|
|
10967
10984
|
Tileset$$1.GetListCacheKey = GetListCacheKey;
|
|
10968
10985
|
})(Tileset || (Tileset = {}));
|
|
@@ -17029,8 +17046,90 @@ class NavigatorMcpWebSocketClient {
|
|
|
17029
17046
|
}
|
|
17030
17047
|
}
|
|
17031
17048
|
|
|
17049
|
+
var ChangeSet;
|
|
17050
|
+
(function (ChangeSet) {
|
|
17051
|
+
/**
|
|
17052
|
+
* Updates existing or crates new Change Set record.
|
|
17053
|
+
*/
|
|
17054
|
+
function Update(params) {
|
|
17055
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17056
|
+
let { changeSet: data, api, req: reqParams } = params;
|
|
17057
|
+
if (!api) {
|
|
17058
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
17059
|
+
}
|
|
17060
|
+
const url = `change` + (data.ID == null ? "" : "/" + data.ID);
|
|
17061
|
+
const res = yield api.POST(url, data, Api.PrepReqParams(reqParams));
|
|
17062
|
+
return;
|
|
17063
|
+
});
|
|
17064
|
+
}
|
|
17065
|
+
ChangeSet.Update = Update;
|
|
17066
|
+
/**
|
|
17067
|
+
* Deletes the specified Change Set record.
|
|
17068
|
+
*/
|
|
17069
|
+
function Delete(params) {
|
|
17070
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17071
|
+
let { id, api, req: reqParams } = params;
|
|
17072
|
+
if (!api) {
|
|
17073
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
17074
|
+
}
|
|
17075
|
+
yield api.DELETE(`change/${id}`, Api.PrepReqParams(reqParams));
|
|
17076
|
+
});
|
|
17077
|
+
}
|
|
17078
|
+
ChangeSet.Delete = Delete;
|
|
17079
|
+
/**
|
|
17080
|
+
* Gets the Change Set record by its ID.
|
|
17081
|
+
*/
|
|
17082
|
+
function Get(params) {
|
|
17083
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17084
|
+
let { id, api, req: reqParams } = params;
|
|
17085
|
+
if (!api) {
|
|
17086
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
17087
|
+
}
|
|
17088
|
+
reqParams = Api.PrepReqParams(reqParams);
|
|
17089
|
+
const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
17090
|
+
try {
|
|
17091
|
+
const data = yield api.GET(`change/${id}`, Api.PrepReqParams(reqParams));
|
|
17092
|
+
res({
|
|
17093
|
+
changeSet: data
|
|
17094
|
+
});
|
|
17095
|
+
}
|
|
17096
|
+
catch (e) {
|
|
17097
|
+
rej(e);
|
|
17098
|
+
}
|
|
17099
|
+
}));
|
|
17100
|
+
return prom;
|
|
17101
|
+
});
|
|
17102
|
+
}
|
|
17103
|
+
ChangeSet.Get = Get;
|
|
17104
|
+
/**
|
|
17105
|
+
* Gets the list of all the Change Set records.
|
|
17106
|
+
*/
|
|
17107
|
+
function GetList(params) {
|
|
17108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17109
|
+
let { api, req: reqParams } = params;
|
|
17110
|
+
if (!api) {
|
|
17111
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
17112
|
+
}
|
|
17113
|
+
reqParams = Api.PrepReqParams(reqParams);
|
|
17114
|
+
const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
17115
|
+
try {
|
|
17116
|
+
const data = yield api.GET("changes", Api.PrepReqParams(reqParams));
|
|
17117
|
+
res({
|
|
17118
|
+
changeSet: data === null || data === void 0 ? void 0 : data.Items
|
|
17119
|
+
});
|
|
17120
|
+
}
|
|
17121
|
+
catch (e) {
|
|
17122
|
+
rej(e);
|
|
17123
|
+
}
|
|
17124
|
+
}));
|
|
17125
|
+
return prom;
|
|
17126
|
+
});
|
|
17127
|
+
}
|
|
17128
|
+
ChangeSet.GetList = GetList;
|
|
17129
|
+
})(ChangeSet || (ChangeSet = {}));
|
|
17130
|
+
|
|
17032
17131
|
// This is updated with the package.json version on build.
|
|
17033
|
-
const VERSION = "7.0.
|
|
17132
|
+
const VERSION = "7.0.10";
|
|
17034
17133
|
|
|
17035
|
-
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, 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 };
|
|
17134
|
+
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, 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 };
|
|
17036
17135
|
//# sourceMappingURL=bruce-models.es5.js.map
|