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.
@@ -5746,6 +5746,7 @@
5746
5746
  EType["EntitiesLoaded"] = "LoadedEntities";
5747
5747
  EType["EntitiesIds"] = "EntitiesIds";
5748
5748
  EType["Relations"] = "Relations";
5749
+ EType["GooglePhotoTileset"] = "GooglePhotoTileset";
5749
5750
  })(EType = MenuItem.EType || (MenuItem.EType = {}));
5750
5751
  function CreateFromEntityId(entityId, typeId, styleId) {
5751
5752
  return {
@@ -7124,6 +7125,74 @@
7124
7125
  })(AccessToken = User.AccessToken || (User.AccessToken = {}));
7125
7126
  })(exports.User || (exports.User = {}));
7126
7127
 
7128
+ (function (AccountInvite) {
7129
+ let EStatus;
7130
+ (function (EStatus) {
7131
+ EStatus["Denied"] = "Denied";
7132
+ EStatus["Cancelled"] = "Cancelled";
7133
+ EStatus["Sent"] = "Sent";
7134
+ EStatus["NotSent"] = "NotSent";
7135
+ EStatus["Accepted"] = "Accepted";
7136
+ })(EStatus = AccountInvite.EStatus || (AccountInvite.EStatus = {}));
7137
+ let EInviteMethod;
7138
+ (function (EInviteMethod) {
7139
+ EInviteMethod["Email"] = "Email";
7140
+ EInviteMethod["SMS"] = "SMS";
7141
+ EInviteMethod["Manual"] = "Manual";
7142
+ })(EInviteMethod = AccountInvite.EInviteMethod || (AccountInvite.EInviteMethod = {}));
7143
+ function GetByCode(params) {
7144
+ return __awaiter(this, void 0, void 0, function* () {
7145
+ const { api, code, req } = params;
7146
+ const res = yield api.GET(`invite/code?inviteCode=${code}`, exports.Api.PrepReqParams(req));
7147
+ return res;
7148
+ });
7149
+ }
7150
+ AccountInvite.GetByCode = GetByCode;
7151
+ function GetList(params) {
7152
+ return __awaiter(this, void 0, void 0, function* () {
7153
+ const { api, accountId, userId, req } = params;
7154
+ const urlParams = new URLSearchParams();
7155
+ if (accountId) {
7156
+ urlParams.append("accountId", accountId);
7157
+ }
7158
+ if (userId) {
7159
+ urlParams.append("userId", userId);
7160
+ }
7161
+ const res = yield api.GET("invites?" + urlParams.toString(), exports.Api.PrepReqParams(req));
7162
+ return res;
7163
+ });
7164
+ }
7165
+ AccountInvite.GetList = GetList;
7166
+ function Update(params) {
7167
+ return __awaiter(this, void 0, void 0, function* () {
7168
+ const { api, code, status, user, req } = params;
7169
+ const res = yield api.POST("invite/update", {
7170
+ InviteCode: code,
7171
+ Status: status,
7172
+ User: user
7173
+ }, exports.Api.PrepReqParams(req));
7174
+ return res;
7175
+ });
7176
+ }
7177
+ AccountInvite.Update = Update;
7178
+ function Create(params) {
7179
+ return __awaiter(this, void 0, void 0, function* () {
7180
+ const { api, accountId, login, userId, email, mobile, emailTemplateKey, groupIds, req } = params;
7181
+ const res = yield api.POST("invite/new", {
7182
+ accountId,
7183
+ login,
7184
+ email,
7185
+ mobile,
7186
+ userId,
7187
+ groupIds,
7188
+ emailTemplateKey
7189
+ }, exports.Api.PrepReqParams(req));
7190
+ return res;
7191
+ });
7192
+ }
7193
+ AccountInvite.Create = Create;
7194
+ })(exports.AccountInvite || (exports.AccountInvite = {}));
7195
+
7127
7196
  (function (EncryptUtils) {
7128
7197
  // https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript
7129
7198
  function Cyrb53Hash(str, seed = 0) {