bruce-models 4.4.7 → 4.4.8
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 +41 -11
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +41 -11
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity-type.js +31 -10
- package/dist/lib/entity/entity-type.js.map +1 -1
- package/dist/lib/project/project-view-bookmark.js +9 -0
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/project/project-view-bookmark.d.ts +10 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -2969,21 +2969,42 @@ var EntityType;
|
|
|
2969
2969
|
}
|
|
2970
2970
|
const req = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
2971
2971
|
try {
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
}
|
|
2972
|
+
// If we have an array of typeIds then we'll request in batches to avoid overflowing the URL.
|
|
2973
|
+
const BATCH_SIZE = 20;
|
|
2974
|
+
const reqs = [];
|
|
2976
2975
|
if (entityTypeIds) {
|
|
2977
|
-
for (
|
|
2978
|
-
|
|
2976
|
+
for (let i = 0; i < entityTypeIds.length; i += BATCH_SIZE) {
|
|
2977
|
+
const batch = entityTypeIds.slice(i, i + BATCH_SIZE);
|
|
2978
|
+
const urlParams = new URLSearchParams();
|
|
2979
|
+
for (const id of batch) {
|
|
2980
|
+
urlParams.append("typeId", id);
|
|
2981
|
+
}
|
|
2982
|
+
if (parentTypeId) {
|
|
2983
|
+
urlParams.append("parentEntityTypeID", parentTypeId);
|
|
2984
|
+
}
|
|
2985
|
+
reqs.push(api.GET("entitytypes?" + urlParams.toString(), Api.PrepReqParams(reqParams)));
|
|
2979
2986
|
}
|
|
2980
2987
|
}
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2988
|
+
else {
|
|
2989
|
+
const urlParams = new URLSearchParams();
|
|
2990
|
+
if (parentTypeId) {
|
|
2991
|
+
urlParams.append("parentEntityTypeID", parentTypeId);
|
|
2992
|
+
}
|
|
2993
|
+
reqs.push(api.GET("entitytypes?" + urlParams.toString(), Api.PrepReqParams(reqParams)));
|
|
2994
|
+
}
|
|
2995
|
+
const data = yield Promise.all(reqs);
|
|
2996
|
+
// Populate array, while checking for already added types.
|
|
2997
|
+
const types = [];
|
|
2998
|
+
for (const item of data) {
|
|
2999
|
+
for (const type of item.Items) {
|
|
3000
|
+
appendInternalAttrSchema(type);
|
|
3001
|
+
if (!types.find(x => x.ID == type.ID)) {
|
|
3002
|
+
types.push(type);
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
2984
3005
|
}
|
|
2985
3006
|
res({
|
|
2986
|
-
entityTypes:
|
|
3007
|
+
entityTypes: types
|
|
2987
3008
|
});
|
|
2988
3009
|
}
|
|
2989
3010
|
catch (e) {
|
|
@@ -10076,6 +10097,15 @@ var ProjectViewBookmark;
|
|
|
10076
10097
|
// This is the expected default version for the DataVersion value.
|
|
10077
10098
|
// This value should NOT be changed without looking at our API and seeing what the default value is.
|
|
10078
10099
|
ProjectViewBookmark.DEFAULT_DATA_VERSION = 2;
|
|
10100
|
+
/**
|
|
10101
|
+
* Describes the content of a bookmark.
|
|
10102
|
+
* As part of a deal we've been commissioned to create an alternative bookmark type to embed content.
|
|
10103
|
+
*/
|
|
10104
|
+
let EContentType;
|
|
10105
|
+
(function (EContentType) {
|
|
10106
|
+
EContentType["WEB_3D"] = "WEB_3D";
|
|
10107
|
+
EContentType["IFRAME"] = "IFRAME";
|
|
10108
|
+
})(EContentType = ProjectViewBookmark.EContentType || (ProjectViewBookmark.EContentType = {}));
|
|
10079
10109
|
/**
|
|
10080
10110
|
* Gets a bookmark record.
|
|
10081
10111
|
* @param params
|
|
@@ -13628,7 +13658,7 @@ var DataSource;
|
|
|
13628
13658
|
})(DataSource || (DataSource = {}));
|
|
13629
13659
|
|
|
13630
13660
|
// This is updated with the package.json version on build.
|
|
13631
|
-
const VERSION = "4.4.
|
|
13661
|
+
const VERSION = "4.4.8";
|
|
13632
13662
|
|
|
13633
13663
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
13634
13664
|
//# sourceMappingURL=bruce-models.es5.js.map
|