bruce-models 3.5.5 → 3.5.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 +7 -3
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +7 -3
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account-invite.js +6 -2
- package/dist/lib/account/account-invite.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/types/account/account-invite.d.ts +2 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -9864,10 +9864,13 @@ var AccountInvite;
|
|
|
9864
9864
|
*/
|
|
9865
9865
|
function Create(params) {
|
|
9866
9866
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9867
|
-
let { api, accountId, login, userId, email, mobile, emailTemplateKey, groupIds, req } = params;
|
|
9867
|
+
let { api, accountId, login, userId, email, mobile, emailTemplateKey, groupIds, req, inviteMethod } = params;
|
|
9868
9868
|
if (!api) {
|
|
9869
9869
|
api = ENVIRONMENT.Api().GetGuardianApi();
|
|
9870
9870
|
}
|
|
9871
|
+
if (!(groupIds === null || groupIds === void 0 ? void 0 : groupIds.length)) {
|
|
9872
|
+
throw new Error("At least one User Group ID must be provided.");
|
|
9873
|
+
}
|
|
9871
9874
|
const res = yield api.POST("invite/new", {
|
|
9872
9875
|
accountId,
|
|
9873
9876
|
login,
|
|
@@ -9875,7 +9878,8 @@ var AccountInvite;
|
|
|
9875
9878
|
mobile,
|
|
9876
9879
|
userId,
|
|
9877
9880
|
groupIds,
|
|
9878
|
-
emailTemplateKey
|
|
9881
|
+
emailTemplateKey,
|
|
9882
|
+
inviteMethod
|
|
9879
9883
|
}, Api.PrepReqParams(req));
|
|
9880
9884
|
return res;
|
|
9881
9885
|
});
|
|
@@ -10868,7 +10872,7 @@ var DataSource;
|
|
|
10868
10872
|
})(DataSource || (DataSource = {}));
|
|
10869
10873
|
|
|
10870
10874
|
// This is updated with the package.json version on build.
|
|
10871
|
-
const VERSION = "3.5.
|
|
10875
|
+
const VERSION = "3.5.6";
|
|
10872
10876
|
|
|
10873
10877
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, 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 };
|
|
10874
10878
|
//# sourceMappingURL=bruce-models.es5.js.map
|