bruce-models 5.3.6 → 5.3.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 +35 -14
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +35 -14
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account.js.map +1 -1
- package/dist/lib/bruce-models.js +3 -1
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/server/database-server.js +3 -0
- package/dist/lib/server/database-server.js.map +1 -0
- package/dist/lib/server/file-store-location.js +3 -0
- package/dist/lib/server/file-store-location.js.map +1 -0
- package/dist/lib/server/hosting-location.js.map +1 -1
- package/dist/lib/user/user-group.js +34 -13
- package/dist/lib/user/user-group.js.map +1 -1
- package/dist/types/account/account.d.ts +4 -1
- package/dist/types/bruce-models.d.ts +3 -1
- package/dist/types/server/database-server.d.ts +11 -0
- package/dist/types/server/file-store-location.d.ts +9 -0
- package/dist/types/server/hosting-location.d.ts +3 -3
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -11815,12 +11815,16 @@ var UserGroup;
|
|
|
11815
11815
|
function GetByName(params) {
|
|
11816
11816
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11817
11817
|
let { api, accountId, name, req: reqParams } = params;
|
|
11818
|
-
if (!name
|
|
11819
|
-
throw ("Name
|
|
11818
|
+
if (!name) {
|
|
11819
|
+
throw ("Name is required.");
|
|
11820
11820
|
}
|
|
11821
11821
|
if (!api) {
|
|
11822
11822
|
api = ENVIRONMENT.Api().GetGuardianApi();
|
|
11823
11823
|
}
|
|
11824
|
+
// Default groups.
|
|
11825
|
+
if (!accountId) {
|
|
11826
|
+
accountId = "";
|
|
11827
|
+
}
|
|
11824
11828
|
const data = yield api.GET(`account/${accountId}/userGroupByName/${name}`, reqParams);
|
|
11825
11829
|
return {
|
|
11826
11830
|
group: data
|
|
@@ -11836,12 +11840,16 @@ var UserGroup;
|
|
|
11836
11840
|
function GetUsers(params) {
|
|
11837
11841
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11838
11842
|
let { api, accountId, groupId: id, req: reqParams } = params;
|
|
11839
|
-
if (!
|
|
11840
|
-
throw ("
|
|
11843
|
+
if (!id) {
|
|
11844
|
+
throw ("ID is required.");
|
|
11841
11845
|
}
|
|
11842
11846
|
if (!api) {
|
|
11843
11847
|
api = ENVIRONMENT.Api().GetGuardianApi();
|
|
11844
11848
|
}
|
|
11849
|
+
// Default groups.
|
|
11850
|
+
if (!accountId) {
|
|
11851
|
+
accountId = "";
|
|
11852
|
+
}
|
|
11845
11853
|
const data = yield api.GET(`userGroup/${accountId}/${id}/users`, reqParams);
|
|
11846
11854
|
return {
|
|
11847
11855
|
users: data.Items
|
|
@@ -11857,12 +11865,16 @@ var UserGroup;
|
|
|
11857
11865
|
function GetListByPerm(params) {
|
|
11858
11866
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11859
11867
|
let { api, accountId, perm, req: reqParams } = params;
|
|
11860
|
-
if (!
|
|
11861
|
-
throw ("
|
|
11868
|
+
if (!perm) {
|
|
11869
|
+
throw ("Perm is required.");
|
|
11862
11870
|
}
|
|
11863
11871
|
if (!api) {
|
|
11864
11872
|
api = ENVIRONMENT.Api().GetGuardianApi();
|
|
11865
11873
|
}
|
|
11874
|
+
// Default groups.
|
|
11875
|
+
if (!accountId) {
|
|
11876
|
+
accountId = "";
|
|
11877
|
+
}
|
|
11866
11878
|
const data = yield api.GET(`userGroupsByFeature/${accountId}/${perm}`, reqParams);
|
|
11867
11879
|
return {
|
|
11868
11880
|
groups: data.Items
|
|
@@ -11878,12 +11890,13 @@ var UserGroup;
|
|
|
11878
11890
|
function GetList(params) {
|
|
11879
11891
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11880
11892
|
let { api, accountId, req: reqParams } = params;
|
|
11881
|
-
if (!accountId) {
|
|
11882
|
-
throw ("AccountID is required.");
|
|
11883
|
-
}
|
|
11884
11893
|
if (!api) {
|
|
11885
11894
|
api = ENVIRONMENT.Api().GetGuardianApi();
|
|
11886
11895
|
}
|
|
11896
|
+
// Default groups.
|
|
11897
|
+
if (!accountId) {
|
|
11898
|
+
accountId = "";
|
|
11899
|
+
}
|
|
11887
11900
|
const data = yield api.GET(`userGroups/${accountId}`, reqParams);
|
|
11888
11901
|
return {
|
|
11889
11902
|
groups: data.Items
|
|
@@ -11899,12 +11912,16 @@ var UserGroup;
|
|
|
11899
11912
|
function Delete(params) {
|
|
11900
11913
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11901
11914
|
let { api, accountId, groupId: id, req: reqParams } = params;
|
|
11902
|
-
if (!
|
|
11903
|
-
throw ("
|
|
11915
|
+
if (!id) {
|
|
11916
|
+
throw ("ID is required.");
|
|
11904
11917
|
}
|
|
11905
11918
|
if (!api) {
|
|
11906
11919
|
api = ENVIRONMENT.Api().GetGuardianApi();
|
|
11907
11920
|
}
|
|
11921
|
+
// Default groups.
|
|
11922
|
+
if (!accountId) {
|
|
11923
|
+
accountId = "";
|
|
11924
|
+
}
|
|
11908
11925
|
return api.DELETE(`account/${accountId}/userGroupID/${id}`, reqParams);
|
|
11909
11926
|
});
|
|
11910
11927
|
}
|
|
@@ -11917,8 +11934,12 @@ var UserGroup;
|
|
|
11917
11934
|
function Update(params) {
|
|
11918
11935
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11919
11936
|
let { api, group: data, reqParams } = params;
|
|
11920
|
-
if (!data.Name
|
|
11921
|
-
throw ("User group name
|
|
11937
|
+
if (!data.Name) {
|
|
11938
|
+
throw ("User group name is required.");
|
|
11939
|
+
}
|
|
11940
|
+
// Default groups.
|
|
11941
|
+
if (!data["ClientAccount.ID"]) {
|
|
11942
|
+
data["ClientAccount.ID"] = "";
|
|
11922
11943
|
}
|
|
11923
11944
|
if (!api) {
|
|
11924
11945
|
api = ENVIRONMENT.Api().GetGuardianApi();
|
|
@@ -14709,7 +14730,7 @@ var DataSource;
|
|
|
14709
14730
|
})(DataSource || (DataSource = {}));
|
|
14710
14731
|
|
|
14711
14732
|
// This is updated with the package.json version on build.
|
|
14712
|
-
const VERSION = "5.3.
|
|
14733
|
+
const VERSION = "5.3.8";
|
|
14713
14734
|
|
|
14714
14735
|
export { VERSION, 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, 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, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
14715
14736
|
//# sourceMappingURL=bruce-models.es5.js.map
|