bruce-models 2.1.5 → 2.1.7
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 +70 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +68 -0
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account-invite.js +82 -0
- package/dist/lib/account/account-invite.js.map +1 -0
- package/dist/lib/bruce-models.js +2 -0
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/types/account/account-invite.d.ts +68 -0
- package/dist/types/bruce-models.d.ts +2 -0
- package/dist/types/project/project-view-bookmark.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -7329,6 +7329,75 @@ var User;
|
|
|
7329
7329
|
})(AccessToken = User.AccessToken || (User.AccessToken = {}));
|
|
7330
7330
|
})(User || (User = {}));
|
|
7331
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
|
+
|
|
7332
7401
|
var EncryptUtils;
|
|
7333
7402
|
(function (EncryptUtils) {
|
|
7334
7403
|
// https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript
|
|
@@ -7898,5 +7967,5 @@ var Plugin;
|
|
|
7898
7967
|
Plugin.GetLoadUrl = GetLoadUrl;
|
|
7899
7968
|
})(Plugin || (Plugin = {}));
|
|
7900
7969
|
|
|
7901
|
-
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 };
|
|
7902
7971
|
//# sourceMappingURL=bruce-models.es5.js.map
|