bruce-models 4.6.1 → 4.6.2
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 +26 -13
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +26 -13
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/bruce-api.js +15 -8
- package/dist/lib/api/bruce-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +10 -4
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -1132,10 +1132,11 @@ var BruceApi;
|
|
|
1132
1132
|
if (!tmp.pathname.endsWith("/")) {
|
|
1133
1133
|
tmp.pathname += "/";
|
|
1134
1134
|
}
|
|
1135
|
+
let split;
|
|
1135
1136
|
if (url) {
|
|
1136
1137
|
// Ensure we're only adding the path.
|
|
1137
1138
|
// The baseUrl could have included query params so have this extra logic.
|
|
1138
|
-
|
|
1139
|
+
split = url.split("?");
|
|
1139
1140
|
// Ensure the url does not start with a slash.
|
|
1140
1141
|
// This is because the base url already has a slash at the end.
|
|
1141
1142
|
let path = split[0];
|
|
@@ -1143,16 +1144,22 @@ var BruceApi;
|
|
|
1143
1144
|
path = url.substring(1);
|
|
1144
1145
|
}
|
|
1145
1146
|
tmp.pathname += path;
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1147
|
+
}
|
|
1148
|
+
let full = tmp.toString();
|
|
1149
|
+
// Append the query string if any exist.
|
|
1150
|
+
if (split && split.length > 1) {
|
|
1151
|
+
const query = split[1].split("&");
|
|
1152
|
+
for (let q of query) {
|
|
1153
|
+
if (full.includes("?")) {
|
|
1154
|
+
full += "&";
|
|
1152
1155
|
}
|
|
1156
|
+
else {
|
|
1157
|
+
full += "?";
|
|
1158
|
+
}
|
|
1159
|
+
full += q;
|
|
1153
1160
|
}
|
|
1154
1161
|
}
|
|
1155
|
-
return
|
|
1162
|
+
return full;
|
|
1156
1163
|
}
|
|
1157
1164
|
/**
|
|
1158
1165
|
* Warning: This will cancel the init process.
|
|
@@ -3829,10 +3836,13 @@ var Entity;
|
|
|
3829
3836
|
urlParams.set("schema", schemaId);
|
|
3830
3837
|
}
|
|
3831
3838
|
urlParams.set("hasMigrated", String(Boolean(migrated)));
|
|
3839
|
+
let url = analysis ? "entities/summary" : "entities";
|
|
3840
|
+
// Adding url params here because this will avoid making them encoded.
|
|
3841
|
+
// Our API isn't decoding them properly so $expand is not being recognized.
|
|
3842
|
+
url += "?" + urlParams.toString();
|
|
3832
3843
|
const urlStr = api.ConstructUrl({
|
|
3833
3844
|
cdn: !analysis && viaCdn,
|
|
3834
|
-
url:
|
|
3835
|
-
urlParams: urlParams
|
|
3845
|
+
url: url
|
|
3836
3846
|
});
|
|
3837
3847
|
const data = yield api.get(urlStr, Api.PrepReqParams(reqParams));
|
|
3838
3848
|
if (!analysis) {
|
|
@@ -3852,10 +3862,13 @@ var Entity;
|
|
|
3852
3862
|
urlParams.set("schema", schemaId);
|
|
3853
3863
|
}
|
|
3854
3864
|
urlParams.set("hasMigrated", String(Boolean(migrated)));
|
|
3865
|
+
let url = analysis ? "entities/summary" : "entities";
|
|
3866
|
+
// Adding url params here because this will avoid making them encoded.
|
|
3867
|
+
// Our API isn't decoding them properly so $expand is not being recognized.
|
|
3868
|
+
url += "?" + urlParams.toString();
|
|
3855
3869
|
const urlStr = api.ConstructUrl({
|
|
3856
3870
|
cdn: false,
|
|
3857
|
-
url:
|
|
3858
|
-
urlParams: urlParams
|
|
3871
|
+
url: url
|
|
3859
3872
|
});
|
|
3860
3873
|
const data = yield api.post(urlStr, body, Api.PrepReqParams(reqParams));
|
|
3861
3874
|
if (!analysis) {
|
|
@@ -13768,7 +13781,7 @@ var DataSource;
|
|
|
13768
13781
|
})(DataSource || (DataSource = {}));
|
|
13769
13782
|
|
|
13770
13783
|
// This is updated with the package.json version on build.
|
|
13771
|
-
const VERSION = "4.6.
|
|
13784
|
+
const VERSION = "4.6.2";
|
|
13772
13785
|
|
|
13773
13786
|
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 };
|
|
13774
13787
|
//# sourceMappingURL=bruce-models.es5.js.map
|