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.umd.js
CHANGED
|
@@ -9635,10 +9635,13 @@
|
|
|
9635
9635
|
*/
|
|
9636
9636
|
function Create(params) {
|
|
9637
9637
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9638
|
-
let { api, accountId, login, userId, email, mobile, emailTemplateKey, groupIds, req } = params;
|
|
9638
|
+
let { api, accountId, login, userId, email, mobile, emailTemplateKey, groupIds, req, inviteMethod } = params;
|
|
9639
9639
|
if (!api) {
|
|
9640
9640
|
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
9641
9641
|
}
|
|
9642
|
+
if (!(groupIds === null || groupIds === void 0 ? void 0 : groupIds.length)) {
|
|
9643
|
+
throw new Error("At least one User Group ID must be provided.");
|
|
9644
|
+
}
|
|
9642
9645
|
const res = yield api.POST("invite/new", {
|
|
9643
9646
|
accountId,
|
|
9644
9647
|
login,
|
|
@@ -9646,7 +9649,8 @@
|
|
|
9646
9649
|
mobile,
|
|
9647
9650
|
userId,
|
|
9648
9651
|
groupIds,
|
|
9649
|
-
emailTemplateKey
|
|
9652
|
+
emailTemplateKey,
|
|
9653
|
+
inviteMethod
|
|
9650
9654
|
}, exports.Api.PrepReqParams(req));
|
|
9651
9655
|
return res;
|
|
9652
9656
|
});
|
|
@@ -10615,7 +10619,7 @@
|
|
|
10615
10619
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
10616
10620
|
|
|
10617
10621
|
// This is updated with the package.json version on build.
|
|
10618
|
-
const VERSION = "3.5.
|
|
10622
|
+
const VERSION = "3.5.6";
|
|
10619
10623
|
|
|
10620
10624
|
exports.VERSION = VERSION;
|
|
10621
10625
|
exports.AbstractApi = AbstractApi;
|