bruce-models 2.1.4 → 2.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.
@@ -5896,6 +5896,7 @@ var MenuItem;
5896
5896
  EType["EntitiesLoaded"] = "LoadedEntities";
5897
5897
  EType["EntitiesIds"] = "EntitiesIds";
5898
5898
  EType["Relations"] = "Relations";
5899
+ EType["GooglePhotoTileset"] = "GooglePhotoTileset";
5899
5900
  })(EType = MenuItem.EType || (MenuItem.EType = {}));
5900
5901
  function CreateFromEntityId(entityId, typeId, styleId) {
5901
5902
  return {
@@ -7328,6 +7329,75 @@ var User;
7328
7329
  })(AccessToken = User.AccessToken || (User.AccessToken = {}));
7329
7330
  })(User || (User = {}));
7330
7331
 
7332
+ var AccountInvite;
7333
+ (function (AccountInvite) {
7334
+ let EStatus;
7335
+ (function (EStatus) {
7336
+ EStatus["Denied"] = "Denied";
7337
+ EStatus["Cancelled"] = "Cancelled";
7338
+ EStatus["Sent"] = "Sent";
7339
+ EStatus["NotSent"] = "NotSent";
7340
+ EStatus["Accepted"] = "Accepted";
7341
+ })(EStatus = AccountInvite.EStatus || (AccountInvite.EStatus = {}));
7342
+ let EInviteMethod;
7343
+ (function (EInviteMethod) {
7344
+ EInviteMethod["Email"] = "Email";
7345
+ EInviteMethod["SMS"] = "SMS";
7346
+ EInviteMethod["Manual"] = "Manual";
7347
+ })(EInviteMethod = AccountInvite.EInviteMethod || (AccountInvite.EInviteMethod = {}));
7348
+ function GetByCode(params) {
7349
+ return __awaiter(this, void 0, void 0, function* () {
7350
+ const { api, code, req } = params;
7351
+ const res = yield api.GET(`invite/code?inviteCode=${code}`, Api.PrepReqParams(req));
7352
+ return res;
7353
+ });
7354
+ }
7355
+ AccountInvite.GetByCode = GetByCode;
7356
+ function GetList(params) {
7357
+ return __awaiter(this, void 0, void 0, function* () {
7358
+ const { api, accountId, userId, req } = params;
7359
+ const urlParams = new URLSearchParams();
7360
+ if (accountId) {
7361
+ urlParams.append("accountId", accountId);
7362
+ }
7363
+ if (userId) {
7364
+ urlParams.append("userId", userId);
7365
+ }
7366
+ const res = yield api.GET("invites?" + urlParams.toString(), Api.PrepReqParams(req));
7367
+ return res;
7368
+ });
7369
+ }
7370
+ AccountInvite.GetList = GetList;
7371
+ function Update(params) {
7372
+ return __awaiter(this, void 0, void 0, function* () {
7373
+ const { api, code, status, user, req } = params;
7374
+ const res = yield api.POST("invite/update", {
7375
+ InviteCode: code,
7376
+ Status: status,
7377
+ User: user
7378
+ }, Api.PrepReqParams(req));
7379
+ return res;
7380
+ });
7381
+ }
7382
+ AccountInvite.Update = Update;
7383
+ function Create(params) {
7384
+ return __awaiter(this, void 0, void 0, function* () {
7385
+ const { api, accountId, login, userId, email, mobile, emailTemplateKey, groupIds, req } = params;
7386
+ const res = yield api.POST("invite/new", {
7387
+ accountId,
7388
+ login,
7389
+ email,
7390
+ mobile,
7391
+ userId,
7392
+ groupIds,
7393
+ emailTemplateKey
7394
+ }, Api.PrepReqParams(req));
7395
+ return res;
7396
+ });
7397
+ }
7398
+ AccountInvite.Create = Create;
7399
+ })(AccountInvite || (AccountInvite = {}));
7400
+
7331
7401
  var EncryptUtils;
7332
7402
  (function (EncryptUtils) {
7333
7403
  // https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript
@@ -7897,5 +7967,5 @@ var Plugin;
7897
7967
  Plugin.GetLoadUrl = GetLoadUrl;
7898
7968
  })(Plugin || (Plugin = {}));
7899
7969
 
7900
- export { AnnDocument, CustomForm, CustomFormContent, AbstractApi, Api, BruceApi, CamApi, IdmApi, GlobalApi, 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, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, Style, Tileset, Permission, Session, UserGroup, User, Account, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin };
7970
+ export { AnnDocument, CustomForm, CustomFormContent, AbstractApi, Api, BruceApi, CamApi, IdmApi, GlobalApi, 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, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin };
7901
7971
  //# sourceMappingURL=bruce-models.es5.js.map