bruce-models 3.3.3 → 3.3.5
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 +19 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +19 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/api-getters.js +3 -0
- package/dist/lib/api/api-getters.js.map +1 -1
- package/dist/lib/api/bruce-api.js +15 -0
- package/dist/lib/api/bruce-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/types/api/bruce-api.d.ts +6 -0
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -1433,6 +1433,21 @@ var BruceApi;
|
|
|
1433
1433
|
}
|
|
1434
1434
|
});
|
|
1435
1435
|
}
|
|
1436
|
+
/**
|
|
1437
|
+
* Creates a message broker instance and returns it.
|
|
1438
|
+
* If an instance is already created, it will return that one.
|
|
1439
|
+
* @warning This will await the loading promise to avoid using data that isn't ready.
|
|
1440
|
+
*/
|
|
1441
|
+
ConnectWebsocket() {
|
|
1442
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1443
|
+
yield this.loadProm;
|
|
1444
|
+
if (this.messageBroker) {
|
|
1445
|
+
return this.messageBroker;
|
|
1446
|
+
}
|
|
1447
|
+
this.messageBroker = new MessageBroker.WebSocketBroker(this.baseUrl, this.env);
|
|
1448
|
+
return this.messageBroker;
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1436
1451
|
/**
|
|
1437
1452
|
* Warning: This method does not wait for init to finish loading.
|
|
1438
1453
|
* This means the url could be changed once fully initialized.
|
|
@@ -1761,6 +1776,9 @@ class ApiGetters {
|
|
|
1761
1776
|
for (const key in this.bruce) {
|
|
1762
1777
|
this.bruce[key].SetSessionId(sessionId);
|
|
1763
1778
|
}
|
|
1779
|
+
for (const key in this.guardian) {
|
|
1780
|
+
this.guardian[key].SetSessionId(sessionId);
|
|
1781
|
+
}
|
|
1764
1782
|
for (const key in this.global) {
|
|
1765
1783
|
this.global[key].SetSessionId(sessionId);
|
|
1766
1784
|
}
|
|
@@ -10682,7 +10700,7 @@ var DataSource;
|
|
|
10682
10700
|
DataSource.GetList = GetList;
|
|
10683
10701
|
})(DataSource || (DataSource = {}));
|
|
10684
10702
|
|
|
10685
|
-
const VERSION = "3.3.
|
|
10703
|
+
const VERSION = "3.3.5";
|
|
10686
10704
|
|
|
10687
10705
|
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, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
10688
10706
|
//# sourceMappingURL=bruce-models.es5.js.map
|