bruce-models 3.1.5 → 3.1.6
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 +47 -25
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +44 -24
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +3 -1
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/client-file/client-file.js.map +1 -1
- package/dist/lib/custom-form/custom-form.js.map +1 -1
- package/dist/lib/project/project-view-bookmark.js +0 -8
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/lib/project/project-view-legacy-bookmark.js +12 -0
- package/dist/lib/project/project-view-legacy-bookmark.js.map +1 -0
- package/dist/lib/project/project-view-legacy-tile.js.map +1 -1
- package/dist/lib/project/project-view-legacy.js +12 -0
- package/dist/lib/project/project-view-legacy.js.map +1 -0
- package/dist/lib/project/project-view.js +1 -9
- package/dist/lib/project/project-view.js.map +1 -1
- package/dist/lib/user/permission.js +1 -0
- package/dist/lib/user/permission.js.map +1 -1
- package/dist/lib/util/object-utils.js +25 -6
- package/dist/lib/util/object-utils.js.map +1 -1
- package/dist/types/bruce-models.d.ts +3 -1
- package/dist/types/client-file/client-file.d.ts +5 -5
- package/dist/types/entity/entity-attachment.d.ts +1 -1
- package/dist/types/entity/entity-lod.d.ts +1 -1
- package/dist/types/entity/entity-type.d.ts +5 -5
- package/dist/types/entity/entity.d.ts +1 -1
- package/dist/types/import/imported-file.d.ts +1 -1
- package/dist/types/project/project-view-bookmark.d.ts +56 -113
- package/dist/types/project/project-view-legacy-bookmark.d.ts +62 -0
- package/dist/types/project/project-view-legacy.d.ts +49 -0
- package/dist/types/project/project-view.d.ts +30 -82
- package/dist/types/user/permission.d.ts +1 -0
- package/dist/types/util/object-utils.d.ts +2 -2
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -1970,15 +1970,34 @@ var Color;
|
|
|
1970
1970
|
|
|
1971
1971
|
var ObjectUtils;
|
|
1972
1972
|
(function (ObjectUtils) {
|
|
1973
|
+
const DEFAULT_LENGTH = 36;
|
|
1973
1974
|
/**
|
|
1974
|
-
* Generates a
|
|
1975
|
+
* Generates a Nextspace compatible UID.
|
|
1975
1976
|
* @returns
|
|
1976
1977
|
*/
|
|
1977
|
-
function UId() {
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1978
|
+
function UId(length = DEFAULT_LENGTH) {
|
|
1979
|
+
if (!length) {
|
|
1980
|
+
length = DEFAULT_LENGTH;
|
|
1981
|
+
}
|
|
1982
|
+
if (length <= 0) {
|
|
1983
|
+
return "";
|
|
1984
|
+
}
|
|
1985
|
+
// Our default spec.
|
|
1986
|
+
if (length === DEFAULT_LENGTH) {
|
|
1987
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
|
1988
|
+
const r = Math.random() * 16 | 0, v = c === "x" ? r : (r & 0x3 | 0x8);
|
|
1989
|
+
return v.toString(16);
|
|
1990
|
+
});
|
|
1991
|
+
}
|
|
1992
|
+
// Arbitrary random hex string.
|
|
1993
|
+
else {
|
|
1994
|
+
let result = "";
|
|
1995
|
+
for (let i = 0; i < length; i++) {
|
|
1996
|
+
const randomHex = Math.random() * 16 | 0;
|
|
1997
|
+
result += randomHex.toString(16);
|
|
1998
|
+
}
|
|
1999
|
+
return result;
|
|
2000
|
+
}
|
|
1982
2001
|
}
|
|
1983
2002
|
ObjectUtils.UId = UId;
|
|
1984
2003
|
})(ObjectUtils || (ObjectUtils = {}));
|
|
@@ -6176,14 +6195,6 @@ var ProjectViewBookmark;
|
|
|
6176
6195
|
// This is the expected default version for the DataVersion value.
|
|
6177
6196
|
// This value should NOT be changed without looking at our API and seeing what the default value is.
|
|
6178
6197
|
ProjectViewBookmark.DEFAULT_DATA_VERSION = 1;
|
|
6179
|
-
let LegacyNavigator;
|
|
6180
|
-
(function (LegacyNavigator) {
|
|
6181
|
-
LegacyNavigator.DATA_VERSION = 1;
|
|
6182
|
-
})(LegacyNavigator = ProjectViewBookmark.LegacyNavigator || (ProjectViewBookmark.LegacyNavigator = {}));
|
|
6183
|
-
let Navigator;
|
|
6184
|
-
(function (Navigator) {
|
|
6185
|
-
Navigator.DATA_VERSION = 2;
|
|
6186
|
-
})(Navigator = ProjectViewBookmark.Navigator || (ProjectViewBookmark.Navigator = {}));
|
|
6187
6198
|
function Get(params) {
|
|
6188
6199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6189
6200
|
let { api, viewId, bookmarkId, req: reqParams } = params;
|
|
@@ -6335,15 +6346,7 @@ var ProjectView;
|
|
|
6335
6346
|
ProjectView.GetListCacheKey = GetListCacheKey;
|
|
6336
6347
|
// This is the expected default version for the DataVersion value.
|
|
6337
6348
|
// This value should NOT be changed without looking at our API and seeing what the default value is.
|
|
6338
|
-
ProjectView.DEFAULT_DATA_VERSION =
|
|
6339
|
-
let LegacyNavigator;
|
|
6340
|
-
(function (LegacyNavigator) {
|
|
6341
|
-
LegacyNavigator.DATA_VERSION = 1;
|
|
6342
|
-
})(LegacyNavigator = ProjectView.LegacyNavigator || (ProjectView.LegacyNavigator = {}));
|
|
6343
|
-
let Navigator;
|
|
6344
|
-
(function (Navigator) {
|
|
6345
|
-
Navigator.DATA_VERSION = 2;
|
|
6346
|
-
})(Navigator = ProjectView.Navigator || (ProjectView.Navigator = {}));
|
|
6349
|
+
ProjectView.DEFAULT_DATA_VERSION = 2;
|
|
6347
6350
|
function Get(params) {
|
|
6348
6351
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6349
6352
|
let { api, viewId, req: reqParams } = params;
|
|
@@ -6651,6 +6654,24 @@ var ProjectViewTile;
|
|
|
6651
6654
|
];
|
|
6652
6655
|
})(ProjectViewTile || (ProjectViewTile = {}));
|
|
6653
6656
|
|
|
6657
|
+
/**
|
|
6658
|
+
* Deprecated Project View record.
|
|
6659
|
+
* This was used in the legacy web Navigator.
|
|
6660
|
+
*/
|
|
6661
|
+
var ProjectViewLegacy;
|
|
6662
|
+
(function (ProjectViewLegacy) {
|
|
6663
|
+
ProjectViewLegacy.DATA_VERSION = 1;
|
|
6664
|
+
})(ProjectViewLegacy || (ProjectViewLegacy = {}));
|
|
6665
|
+
|
|
6666
|
+
/**
|
|
6667
|
+
* Deprecated Project View Bookmark record.
|
|
6668
|
+
* This was used in the legacy web Navigator.
|
|
6669
|
+
*/
|
|
6670
|
+
var ProjectViewLegacyBookmark;
|
|
6671
|
+
(function (ProjectViewLegacyBookmark) {
|
|
6672
|
+
ProjectViewLegacyBookmark.DATA_VERSION = 1;
|
|
6673
|
+
})(ProjectViewLegacyBookmark || (ProjectViewLegacyBookmark = {}));
|
|
6674
|
+
|
|
6654
6675
|
/**
|
|
6655
6676
|
* Describes the "Pending Action" concept within Bruce.
|
|
6656
6677
|
* A pending action is a record of a server-side background process.
|
|
@@ -6865,6 +6886,7 @@ var Permission;
|
|
|
6865
6886
|
let EPerm;
|
|
6866
6887
|
(function (EPerm) {
|
|
6867
6888
|
EPerm["ADMIN"] = "ADMIN";
|
|
6889
|
+
EPerm["ADMIN_VIEW"] = "ADMIN_VIEW";
|
|
6868
6890
|
EPerm["LOGIN"] = "LOGIN";
|
|
6869
6891
|
EPerm["DELETE_ENTITY_TYPE"] = "DELETE_ENTITY_TYPE";
|
|
6870
6892
|
EPerm["CREATE_ENTITY_TYPE"] = "CREATE_ENTITY_TYPE";
|
|
@@ -8613,7 +8635,7 @@ var DataSource;
|
|
|
8613
8635
|
DataSource.GetList = GetList;
|
|
8614
8636
|
})(DataSource || (DataSource = {}));
|
|
8615
8637
|
|
|
8616
|
-
const VERSION = "3.1.
|
|
8638
|
+
const VERSION = "3.1.6";
|
|
8617
8639
|
|
|
8618
|
-
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, CamApi, IdmApi, 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, 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 };
|
|
8640
|
+
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, CamApi, IdmApi, 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 };
|
|
8619
8641
|
//# sourceMappingURL=bruce-models.es5.js.map
|