@frontegg/js 6.117.0-alpha.1 → 6.118.0
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/FronteggApp/FronteggApp.d.ts +21 -4
- package/FronteggApp/FronteggApp.js +48 -9
- package/index.js +1 -1
- package/node/FronteggApp/FronteggApp.js +47 -8
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +544 -177
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
|
@@ -438,6 +438,9 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
438
438
|
this.updateLocalizationsSetter = function (localizationUpdateFn) {
|
|
439
439
|
_this.updateLocalizations = localizationUpdateFn;
|
|
440
440
|
};
|
|
441
|
+
this.getEntitlementsFromStore = function () {
|
|
442
|
+
return _this.store.getState().auth.entitlementsState;
|
|
443
|
+
};
|
|
441
444
|
var appName = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.formatName)(name);
|
|
442
445
|
var customElementName = "frontegg-app-".concat(appName);
|
|
443
446
|
this.iframeRendering = iframeRendering;
|
|
@@ -463,13 +466,14 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
463
466
|
throw Error('Mismatch in store names');
|
|
464
467
|
}
|
|
465
468
|
} else {
|
|
466
|
-
var _this$options$authOpt2, _this$options$auditsO;
|
|
469
|
+
var _this$options$authOpt2, _this$options$auditsO, _this$options$entitle;
|
|
467
470
|
this.store = (0,_frontegg_redux_store__WEBPACK_IMPORTED_MODULE_12__.createFronteggStore)({
|
|
468
471
|
context: this.options.contextOptions,
|
|
469
472
|
appName: this.name
|
|
470
473
|
}, this, this.options.previewMode, authOptions, {
|
|
471
474
|
auth: (_this$options$authOpt2 = this.options.authOptions) != null ? _this$options$authOpt2 : {},
|
|
472
|
-
audits: (_this$options$auditsO = this.options.auditsOptions) != null ? _this$options$auditsO : {}
|
|
475
|
+
audits: (_this$options$auditsO = this.options.auditsOptions) != null ? _this$options$auditsO : {},
|
|
476
|
+
entitlementsOptions: (_this$options$entitle = this.options.entitlementsOptions) != null ? _this$options$entitle : {}
|
|
473
477
|
}, false, this.options.urlStrategy);
|
|
474
478
|
}
|
|
475
479
|
_AppHolder__WEBPACK_IMPORTED_MODULE_6__.AppHolder.setInstance(appName, this);
|
|
@@ -731,15 +735,50 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
731
735
|
}
|
|
732
736
|
|
|
733
737
|
/**
|
|
734
|
-
|
|
735
|
-
|
|
738
|
+
* @returns entitlements store data
|
|
739
|
+
*/
|
|
740
|
+
}, {
|
|
741
|
+
key: "getFeatureEntitlements",
|
|
742
|
+
value:
|
|
743
|
+
/**
|
|
744
|
+
@param key
|
|
745
|
+
@returns if the user is entitled to the given feature. Attaching the justification if not
|
|
746
|
+
@throws when entitlement is not enabled via frontegg options
|
|
747
|
+
*/
|
|
748
|
+
function getFeatureEntitlements(key) {
|
|
749
|
+
var _ref4 = this.getEntitlementsFromStore() || {},
|
|
750
|
+
entitlements = _ref4.entitlements,
|
|
751
|
+
options = _ref4.options;
|
|
752
|
+
return (0,_frontegg_redux_store__WEBPACK_IMPORTED_MODULE_17__.getFeatureEntitlements)(entitlements, key, options);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
@param key
|
|
757
|
+
@returns if the user is entitled to the given permission. Attaching the justification if not
|
|
758
|
+
@throws when entitlement is not enabled via frontegg options
|
|
759
|
+
*/
|
|
760
|
+
}, {
|
|
761
|
+
key: "getPermissionEntitlements",
|
|
762
|
+
value: function getPermissionEntitlements(key) {
|
|
763
|
+
var _ref5 = this.getEntitlementsFromStore() || {},
|
|
764
|
+
entitlements = _ref5.entitlements,
|
|
765
|
+
options = _ref5.options;
|
|
766
|
+
return (0,_frontegg_redux_store__WEBPACK_IMPORTED_MODULE_17__.getPermissionEntitlements)(entitlements, key, options);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
@param options - including permission or feature key
|
|
771
|
+
@returns if the user is entitled to the given permission or feature. Attaching the justification if not
|
|
772
|
+
@throws when entitlement is not enabled via frontegg options
|
|
736
773
|
*/
|
|
737
774
|
}, {
|
|
738
775
|
key: "getEntitlements",
|
|
739
|
-
value: function getEntitlements(
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
776
|
+
value: function getEntitlements(options) {
|
|
777
|
+
// we use permissionKey (options key) to decide if the user is using permission key or feature key
|
|
778
|
+
if ('permissionKey' in options) {
|
|
779
|
+
return this.getPermissionEntitlements(options.permissionKey);
|
|
780
|
+
}
|
|
781
|
+
return this.getFeatureEntitlements(options.featureKey);
|
|
743
782
|
}
|
|
744
783
|
}, {
|
|
745
784
|
key: "close",
|
|
@@ -1240,7 +1279,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1240
1279
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1241
1280
|
/* harmony export */ });
|
|
1242
1281
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1243
|
-
cdnVersion: '6.
|
|
1282
|
+
cdnVersion: '6.118.0'
|
|
1244
1283
|
});
|
|
1245
1284
|
|
|
1246
1285
|
/***/ }),
|
|
@@ -3805,7 +3844,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3805
3844
|
/* harmony export */ "entitlementsActions": () => (/* binding */ actions),
|
|
3806
3845
|
/* harmony export */ "entitlementsReducers": () => (/* binding */ reducers),
|
|
3807
3846
|
/* harmony export */ "entitlementsState": () => (/* binding */ entitlementsState),
|
|
3808
|
-
/* harmony export */ "getEntitlements": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.getEntitlements)
|
|
3847
|
+
/* harmony export */ "getEntitlements": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.getEntitlements),
|
|
3848
|
+
/* harmony export */ "getFeatureEntitlements": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.getFeatureEntitlements),
|
|
3849
|
+
/* harmony export */ "getPermissionEntitlements": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.getPermissionEntitlements)
|
|
3809
3850
|
/* harmony export */ });
|
|
3810
3851
|
/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @reduxjs/toolkit */ "../../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js");
|
|
3811
3852
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ "../../dist/@frontegg/redux-store/auth/utils.js");
|
|
@@ -3817,7 +3858,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3817
3858
|
const entitlementsState = {
|
|
3818
3859
|
entitlements: undefined,
|
|
3819
3860
|
loading: false,
|
|
3820
|
-
error: undefined
|
|
3861
|
+
error: undefined,
|
|
3862
|
+
options: undefined
|
|
3821
3863
|
};
|
|
3822
3864
|
const reducers = {
|
|
3823
3865
|
setEntitlementsState: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.typeReducerForKey)('entitlementsState')
|
|
@@ -3854,36 +3896,50 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3854
3896
|
/* harmony export */ "entitlementsSagas": () => (/* binding */ entitlementsSagas),
|
|
3855
3897
|
/* harmony export */ "loadEntitlements": () => (/* binding */ loadEntitlements)
|
|
3856
3898
|
/* harmony export */ });
|
|
3857
|
-
/* harmony import */ var
|
|
3858
|
-
/* harmony import */ var
|
|
3859
|
-
/* harmony import */ var
|
|
3899
|
+
/* harmony import */ var fast_deep_equal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-deep-equal */ "../../node_modules/fast-deep-equal/index.js");
|
|
3900
|
+
/* harmony import */ var fast_deep_equal__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fast_deep_equal__WEBPACK_IMPORTED_MODULE_0__);
|
|
3901
|
+
/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-saga/effects */ "../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js");
|
|
3902
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/index.js");
|
|
3903
|
+
/* harmony import */ var _reducer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../reducer */ "../../dist/@frontegg/redux-store/auth/reducer.js");
|
|
3904
|
+
|
|
3860
3905
|
|
|
3861
3906
|
|
|
3862
3907
|
|
|
3863
3908
|
|
|
3864
3909
|
/**
|
|
3865
3910
|
Load entitlements list
|
|
3911
|
+
Don't update entitlements data in the store when data is equal (deep check)
|
|
3866
3912
|
*/
|
|
3867
3913
|
function* loadEntitlements() {
|
|
3868
|
-
yield (0,
|
|
3914
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.setEntitlementsState({
|
|
3869
3915
|
loading: true,
|
|
3870
3916
|
error: null
|
|
3871
3917
|
}));
|
|
3872
3918
|
try {
|
|
3873
|
-
const
|
|
3874
|
-
yield (0,
|
|
3875
|
-
|
|
3919
|
+
const newEntitlements = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_3__.api.entitlements.loadEntitlements);
|
|
3920
|
+
const oldEntitlements = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.select)(state => {
|
|
3921
|
+
var _state$auth$entitleme;
|
|
3922
|
+
return (_state$auth$entitleme = state.auth.entitlementsState) == null ? void 0 : _state$auth$entitleme.entitlements;
|
|
3923
|
+
});
|
|
3924
|
+
if (fast_deep_equal__WEBPACK_IMPORTED_MODULE_0___default()(oldEntitlements, newEntitlements)) {
|
|
3925
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.setEntitlementsState({
|
|
3926
|
+
loading: false
|
|
3927
|
+
}));
|
|
3928
|
+
return;
|
|
3929
|
+
}
|
|
3930
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.setEntitlementsState({
|
|
3931
|
+
entitlements: newEntitlements,
|
|
3876
3932
|
loading: false
|
|
3877
3933
|
}));
|
|
3878
3934
|
} catch (e) {
|
|
3879
|
-
yield (0,
|
|
3935
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.setEntitlementsState({
|
|
3880
3936
|
error: e.message,
|
|
3881
3937
|
loading: false
|
|
3882
3938
|
}));
|
|
3883
3939
|
}
|
|
3884
3940
|
}
|
|
3885
3941
|
function* entitlementsSagas() {
|
|
3886
|
-
yield (0,
|
|
3942
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLeading)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.loadEntitlements, loadEntitlements);
|
|
3887
3943
|
}
|
|
3888
3944
|
|
|
3889
3945
|
/***/ }),
|
|
@@ -3897,16 +3953,86 @@ function* entitlementsSagas() {
|
|
|
3897
3953
|
"use strict";
|
|
3898
3954
|
__webpack_require__.r(__webpack_exports__);
|
|
3899
3955
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3900
|
-
/* harmony export */ "getEntitlements": () => (/* binding */ getEntitlements)
|
|
3956
|
+
/* harmony export */ "getEntitlements": () => (/* binding */ getEntitlements),
|
|
3957
|
+
/* harmony export */ "getFeatureEntitlements": () => (/* binding */ getFeatureEntitlements),
|
|
3958
|
+
/* harmony export */ "getPermissionEntitlements": () => (/* binding */ getPermissionEntitlements)
|
|
3901
3959
|
/* harmony export */ });
|
|
3960
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/entitlements/interfaces.js");
|
|
3961
|
+
|
|
3962
|
+
const ENTITLEMENTS_NOT_ENABLED_EXCEPTION_TEXT = 'You must first enable entitlements via Frontegg options to use this function';
|
|
3963
|
+
|
|
3902
3964
|
/**
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
@returns Entitlements contain true/false for every key (state of is key entitled)
|
|
3965
|
+
* Guard entitlements feature by checking if it is enabled by the vendor
|
|
3966
|
+
* @throws when entitlement is not enabled via frontegg options
|
|
3906
3967
|
*/
|
|
3907
|
-
const
|
|
3908
|
-
|
|
3909
|
-
|
|
3968
|
+
const guardEntitlementsUsage = entitlementsOptions => {
|
|
3969
|
+
if (entitlementsOptions != null && entitlementsOptions.enabled) return;
|
|
3970
|
+
throw new Error(ENTITLEMENTS_NOT_ENABLED_EXCEPTION_TEXT);
|
|
3971
|
+
};
|
|
3972
|
+
|
|
3973
|
+
/**
|
|
3974
|
+
@param keyEntitlements permission or feature data object
|
|
3975
|
+
@param entitlementsVendorConfig entitlements frontegg provider configuration
|
|
3976
|
+
@param missingKeyEnum missing key for scenario that the key does not exist in entitlementsValuePerKeys
|
|
3977
|
+
@returns if the user is entitled to the given key. Attaching the justification if not
|
|
3978
|
+
@throws when entitlement is not enabled via frontegg options
|
|
3979
|
+
*/
|
|
3980
|
+
const getEntitlementsHelper = (keyEntitlements, entitlementsVendorConfig, missingKeyEnum) => {
|
|
3981
|
+
guardEntitlementsUsage(entitlementsVendorConfig);
|
|
3982
|
+
if (!keyEntitlements) {
|
|
3983
|
+
return {
|
|
3984
|
+
isEntitled: false,
|
|
3985
|
+
justification: missingKeyEnum
|
|
3986
|
+
};
|
|
3987
|
+
}
|
|
3988
|
+
if (keyEntitlements.isEntitled) {
|
|
3989
|
+
return {
|
|
3990
|
+
isEntitled: true
|
|
3991
|
+
};
|
|
3992
|
+
}
|
|
3993
|
+
return {
|
|
3994
|
+
isEntitled: false,
|
|
3995
|
+
justification: keyEntitlements.notEntitledReason
|
|
3996
|
+
};
|
|
3997
|
+
};
|
|
3998
|
+
|
|
3999
|
+
/**
|
|
4000
|
+
@param entitlements
|
|
4001
|
+
@param key
|
|
4002
|
+
@param entitlementsVendorConfig entitlements frontegg provider configuration
|
|
4003
|
+
@returns if the user is entitled to the given permission. Attaching the justification if not
|
|
4004
|
+
@throws when entitlement is not enabled via frontegg options
|
|
4005
|
+
*/
|
|
4006
|
+
const getPermissionEntitlements = (entitlements, key, entitlementsVendorConfig) => {
|
|
4007
|
+
var _entitlements$permiss;
|
|
4008
|
+
return getEntitlementsHelper(entitlements == null ? void 0 : (_entitlements$permiss = entitlements.permissions) == null ? void 0 : _entitlements$permiss[key], entitlementsVendorConfig, _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_0__.NotEntitledReason.MISSING_PERMISSION);
|
|
4009
|
+
};
|
|
4010
|
+
|
|
4011
|
+
/**
|
|
4012
|
+
@param entitlements
|
|
4013
|
+
@param key
|
|
4014
|
+
@param entitlementsVendorConfig entitlements frontegg provider configuration
|
|
4015
|
+
@returns if the user is entitled to the given feature. Attaching the justification if not
|
|
4016
|
+
@throws when entitlement is not enabled via frontegg options
|
|
4017
|
+
*/
|
|
4018
|
+
const getFeatureEntitlements = (entitlements, key, entitlementsVendorConfig) => {
|
|
4019
|
+
var _entitlements$feature;
|
|
4020
|
+
return getEntitlementsHelper(entitlements == null ? void 0 : (_entitlements$feature = entitlements.features) == null ? void 0 : _entitlements$feature[key], entitlementsVendorConfig, _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_0__.NotEntitledReason.MISSING_FEATURE);
|
|
4021
|
+
};
|
|
4022
|
+
|
|
4023
|
+
/**
|
|
4024
|
+
@param entitlements
|
|
4025
|
+
@param entitledToOptions including permission or feature
|
|
4026
|
+
@param entitlementsVendorConfig entitlements frontegg provider configuration
|
|
4027
|
+
@returns if the user is entitled to the given feature or permission (check only one). Attaching the justification if not
|
|
4028
|
+
@throws when entitlement is not enabled via frontegg options
|
|
4029
|
+
*/
|
|
4030
|
+
const getEntitlements = (entitlements, options, entitlementsVendorConfig) => {
|
|
4031
|
+
if ('permissionKey' in options) {
|
|
4032
|
+
return getPermissionEntitlements(entitlements, options.permissionKey, entitlementsVendorConfig);
|
|
4033
|
+
}
|
|
4034
|
+
return getFeatureEntitlements(entitlements, options.featureKey, entitlementsVendorConfig);
|
|
4035
|
+
};
|
|
3910
4036
|
|
|
3911
4037
|
/***/ }),
|
|
3912
4038
|
|
|
@@ -4345,10 +4471,11 @@ function* getTeamUsers({
|
|
|
4345
4471
|
try {
|
|
4346
4472
|
const {
|
|
4347
4473
|
items: users
|
|
4348
|
-
} = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_6__.api.
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4474
|
+
} = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_6__.api.users.getUsersV2, {
|
|
4475
|
+
_filter: payload.filter,
|
|
4476
|
+
_offset: payload.pageOffset,
|
|
4477
|
+
_limit: payload.pageSize,
|
|
4478
|
+
_includeSubTenants: false
|
|
4352
4479
|
});
|
|
4353
4480
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.setGroupsState({
|
|
4354
4481
|
teamUsers: users
|
|
@@ -5360,6 +5487,7 @@ const Matcher = {};
|
|
|
5360
5487
|
"use strict";
|
|
5361
5488
|
__webpack_require__.r(__webpack_exports__);
|
|
5362
5489
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5490
|
+
/* harmony export */ "ADMIN_PORTAL_ENTITLEMENTS_FF": () => (/* binding */ ADMIN_PORTAL_ENTITLEMENTS_FF),
|
|
5363
5491
|
/* harmony export */ "AuthStrategyEnum": () => (/* reexport safe */ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_0__.AuthStrategyEnum),
|
|
5364
5492
|
/* harmony export */ "LoginFlow": () => (/* binding */ LoginFlow),
|
|
5365
5493
|
/* harmony export */ "LoginStep": () => (/* binding */ LoginStep),
|
|
@@ -5398,6 +5526,7 @@ let QuickLoginStrategy;
|
|
|
5398
5526
|
QuickLoginStrategy["Sms"] = "sms";
|
|
5399
5527
|
})(QuickLoginStrategy || (QuickLoginStrategy = {}));
|
|
5400
5528
|
|
|
5529
|
+
const ADMIN_PORTAL_ENTITLEMENTS_FF = 'admin_portal_entitlements';
|
|
5401
5530
|
|
|
5402
5531
|
/***/ }),
|
|
5403
5532
|
|
|
@@ -5495,7 +5624,6 @@ const authStrategyLoginStepMap = {
|
|
|
5495
5624
|
[_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.MagicLink]: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.magicLinkPreLoginSuccess,
|
|
5496
5625
|
[_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.SmsCode]: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.loginWithSmsOtc
|
|
5497
5626
|
};
|
|
5498
|
-
const ADMIN_PORTAL_ENTITLEMENTS_FF = 'admin_portal_entitlements';
|
|
5499
5627
|
function* afterAuthNavigation() {
|
|
5500
5628
|
const onRedirectTo = _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.onRedirectTo;
|
|
5501
5629
|
const {
|
|
@@ -5681,13 +5809,18 @@ function* shouldNevigateToRegisterQuickLogin(user) {
|
|
|
5681
5809
|
return quickLoginToRegister && localStorage.getItem(`${user.id}-${quickLoginToRegister}`) !== 'true' && !window.location.pathname.endsWith(routes.logoutUrl);
|
|
5682
5810
|
}
|
|
5683
5811
|
function* handleLoadEntitlements() {
|
|
5684
|
-
const {
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5812
|
+
const isAuthenticated = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.select)(state => {
|
|
5813
|
+
var _state$auth;
|
|
5814
|
+
return (_state$auth = state.auth) == null ? void 0 : _state$auth.isAuthenticated;
|
|
5815
|
+
});
|
|
5816
|
+
const isEntitlementsEnabledByUser = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.select)(state => {
|
|
5817
|
+
var _state$auth2, _state$auth2$entitlem, _state$auth2$entitlem2;
|
|
5818
|
+
return (_state$auth2 = state.auth) == null ? void 0 : (_state$auth2$entitlem = _state$auth2.entitlementsState) == null ? void 0 : (_state$auth2$entitlem2 = _state$auth2$entitlem.options) == null ? void 0 : _state$auth2$entitlem2.enabled;
|
|
5819
|
+
});
|
|
5820
|
+
if (!isAuthenticated || !isEntitlementsEnabledByUser) {
|
|
5688
5821
|
return;
|
|
5689
5822
|
}
|
|
5690
|
-
const [isEntitlementsFFOn] = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_helpers__WEBPACK_IMPORTED_MODULE_13__.getFeatureFlags, [ADMIN_PORTAL_ENTITLEMENTS_FF]);
|
|
5823
|
+
const [isEntitlementsFFOn] = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_helpers__WEBPACK_IMPORTED_MODULE_13__.getFeatureFlags, [_interfaces__WEBPACK_IMPORTED_MODULE_4__.ADMIN_PORTAL_ENTITLEMENTS_FF]);
|
|
5691
5824
|
if (isEntitlementsFFOn) {
|
|
5692
5825
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_EntitlementsState_saga__WEBPACK_IMPORTED_MODULE_14__.loadEntitlements);
|
|
5693
5826
|
}
|
|
@@ -7729,8 +7862,7 @@ const allAccountsInitialState = {
|
|
|
7729
7862
|
},
|
|
7730
7863
|
usersPageOffset: 0,
|
|
7731
7864
|
accountSettings: {}
|
|
7732
|
-
}
|
|
7733
|
-
teamUsers: []
|
|
7865
|
+
}
|
|
7734
7866
|
};
|
|
7735
7867
|
const reducers = {
|
|
7736
7868
|
setAllAccountsLoader: (0,_utils__WEBPACK_IMPORTED_MODULE_3__.loadersReducerForKey)('allAccountsState'),
|
|
@@ -7812,11 +7944,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7812
7944
|
/* harmony import */ var _types_stateTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./types/stateTypes */ "../../dist/@frontegg/redux-store/auth/MSP/AllAccountsState/types/stateTypes.js");
|
|
7813
7945
|
/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-saga/effects */ "../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js");
|
|
7814
7946
|
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/index.js");
|
|
7815
|
-
/* harmony import */ var
|
|
7947
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../utils */ "../../dist/@frontegg/redux-store/utils/errorHandler.js");
|
|
7816
7948
|
/* harmony import */ var _utils_updateNodeName__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/updateNodeName */ "../../dist/@frontegg/redux-store/auth/MSP/AllAccountsState/utils/updateNodeName.js");
|
|
7817
7949
|
/* harmony import */ var _utils_removeNodeFromTree__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/removeNodeFromTree */ "../../dist/@frontegg/redux-store/auth/MSP/AllAccountsState/utils/removeNodeFromTree.js");
|
|
7818
|
-
/* harmony import */ var
|
|
7819
|
-
/* harmony import */ var
|
|
7950
|
+
/* harmony import */ var _utils_appendChildrenToNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/appendChildrenToNode */ "../../dist/@frontegg/redux-store/auth/MSP/AllAccountsState/utils/appendChildrenToNode.js");
|
|
7951
|
+
/* harmony import */ var _utils_getAccountsWithUsersCount__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/getAccountsWithUsersCount */ "../../dist/@frontegg/redux-store/auth/MSP/AllAccountsState/utils/getAccountsWithUsersCount.js");
|
|
7820
7952
|
|
|
7821
7953
|
|
|
7822
7954
|
|
|
@@ -7831,37 +7963,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7831
7963
|
const selectUserState = () => (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.select)(_ => _[_constants__WEBPACK_IMPORTED_MODULE_2__.authStoreName].user);
|
|
7832
7964
|
const selectTenantsState = () => (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.select)(_ => _[_constants__WEBPACK_IMPORTED_MODULE_2__.authStoreName].tenantsState);
|
|
7833
7965
|
const selectAllAccountsState = () => (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.select)(_ => _[_constants__WEBPACK_IMPORTED_MODULE_2__.authStoreName].allAccountsState);
|
|
7834
|
-
function* getTeamUsers({
|
|
7835
|
-
payload
|
|
7836
|
-
}) {
|
|
7837
|
-
const key = _types_stateTypes__WEBPACK_IMPORTED_MODULE_3__.AllAccountsStateKeys.GET_TEAM_USERS;
|
|
7838
|
-
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsLoader({
|
|
7839
|
-
key,
|
|
7840
|
-
value: true
|
|
7841
|
-
}));
|
|
7842
|
-
try {
|
|
7843
|
-
const {
|
|
7844
|
-
items: users
|
|
7845
|
-
} = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.api.teams.loadUsers, {
|
|
7846
|
-
filter: payload.filter,
|
|
7847
|
-
pageOffset: payload.pageOffset,
|
|
7848
|
-
pageSize: payload.pageSize
|
|
7849
|
-
});
|
|
7850
|
-
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsState({
|
|
7851
|
-
teamUsers: users
|
|
7852
|
-
}));
|
|
7853
|
-
} catch (e) {
|
|
7854
|
-
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
|
|
7855
|
-
key,
|
|
7856
|
-
value: (0,_utils__WEBPACK_IMPORTED_MODULE_6__.errorHandler)(e)
|
|
7857
|
-
}));
|
|
7858
|
-
} finally {
|
|
7859
|
-
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsLoader({
|
|
7860
|
-
key,
|
|
7861
|
-
value: false
|
|
7862
|
-
}));
|
|
7863
|
-
}
|
|
7864
|
-
}
|
|
7865
7966
|
function* loadAccounts({
|
|
7866
7967
|
payload
|
|
7867
7968
|
}) {
|
|
@@ -7901,10 +8002,10 @@ function* loadAccounts({
|
|
|
7901
8002
|
}, {
|
|
7902
8003
|
jwt
|
|
7903
8004
|
});
|
|
7904
|
-
const accountsWithUsersCount = (0,
|
|
8005
|
+
const accountsWithUsersCount = (0,_utils_getAccountsWithUsersCount__WEBPACK_IMPORTED_MODULE_6__.getAccountsWithUsersCount)({
|
|
7905
8006
|
items
|
|
7906
8007
|
}, tenantsUsersCountArray);
|
|
7907
|
-
const updatedSingleAccountViewAccounts = (0,
|
|
8008
|
+
const updatedSingleAccountViewAccounts = (0,_utils_appendChildrenToNode__WEBPACK_IMPORTED_MODULE_7__.appendChildrenToNode)(selectedAccount.accounts ? selectedAccount.accounts : selectedAccount, (_payload$_subTenantId = payload == null ? void 0 : payload._subTenantId) != null ? _payload$_subTenantId : '', accountsWithUsersCount.map(account => ({
|
|
7908
8009
|
name: account.name,
|
|
7909
8010
|
tenantId: account.tenantId,
|
|
7910
8011
|
numberOfUsers: account.numberOfUsers,
|
|
@@ -7928,10 +8029,10 @@ function* loadAccounts({
|
|
|
7928
8029
|
const tenantsUsersCountArray = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.api.tenants.getTenantsUsersCount, {
|
|
7929
8030
|
tenantIds: items.map(i => i.tenantId)
|
|
7930
8031
|
});
|
|
7931
|
-
const accountsWithUsersCount = (0,
|
|
8032
|
+
const accountsWithUsersCount = (0,_utils_getAccountsWithUsersCount__WEBPACK_IMPORTED_MODULE_6__.getAccountsWithUsersCount)({
|
|
7932
8033
|
items
|
|
7933
8034
|
}, tenantsUsersCountArray);
|
|
7934
|
-
const updatedAccounts = (0,
|
|
8035
|
+
const updatedAccounts = (0,_utils_appendChildrenToNode__WEBPACK_IMPORTED_MODULE_7__.appendChildrenToNode)(accounts, (_payload$_subTenantId2 = payload == null ? void 0 : payload._subTenantId) != null ? _payload$_subTenantId2 : '', accountsWithUsersCount.map(account => ({
|
|
7935
8036
|
name: account.name,
|
|
7936
8037
|
tenantId: account.tenantId,
|
|
7937
8038
|
numberOfUsers: account.numberOfUsers,
|
|
@@ -7947,7 +8048,7 @@ function* loadAccounts({
|
|
|
7947
8048
|
} catch (e) {
|
|
7948
8049
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
|
|
7949
8050
|
key,
|
|
7950
|
-
value: (0,
|
|
8051
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.errorHandler)(e)
|
|
7951
8052
|
}));
|
|
7952
8053
|
} finally {
|
|
7953
8054
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsLoader({
|
|
@@ -7993,7 +8094,7 @@ function* searchAccounts({
|
|
|
7993
8094
|
} catch (e) {
|
|
7994
8095
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
|
|
7995
8096
|
key,
|
|
7996
|
-
value: (0,
|
|
8097
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.errorHandler)(e)
|
|
7997
8098
|
}));
|
|
7998
8099
|
} finally {
|
|
7999
8100
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsLoader({
|
|
@@ -8028,7 +8129,7 @@ function* getUserJwtForSubAccount({
|
|
|
8028
8129
|
} catch (e) {
|
|
8029
8130
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
|
|
8030
8131
|
key,
|
|
8031
|
-
value: (0,
|
|
8132
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.errorHandler)(e)
|
|
8032
8133
|
}));
|
|
8033
8134
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setSelectedAccountState({
|
|
8034
8135
|
accessPermission: false
|
|
@@ -8072,13 +8173,13 @@ function* createSubAccount({
|
|
|
8072
8173
|
}, {
|
|
8073
8174
|
jwt
|
|
8074
8175
|
});
|
|
8075
|
-
const updatedAllAccountPageAccounts = (0,
|
|
8176
|
+
const updatedAllAccountPageAccounts = (0,_utils_appendChildrenToNode__WEBPACK_IMPORTED_MODULE_7__.appendChildrenToNode)(accounts, parentTenantId != null ? parentTenantId : '', [{
|
|
8076
8177
|
name: createdSubTenant.name,
|
|
8077
8178
|
tenantId: createdSubTenant.tenantId,
|
|
8078
8179
|
numberOfUsers: 0,
|
|
8079
8180
|
createdAt: new Date()
|
|
8080
8181
|
}]);
|
|
8081
|
-
const updatedSingleAccountViewAccounts = (0,
|
|
8182
|
+
const updatedSingleAccountViewAccounts = (0,_utils_appendChildrenToNode__WEBPACK_IMPORTED_MODULE_7__.appendChildrenToNode)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
8082
8183
|
name: '',
|
|
8083
8184
|
tenantId: ''
|
|
8084
8185
|
}, selectedAccount == null ? void 0 : selectedAccount.accounts), parentTenantId != null ? parentTenantId : '', [{
|
|
@@ -8102,7 +8203,7 @@ function* createSubAccount({
|
|
|
8102
8203
|
tenantId,
|
|
8103
8204
|
parentTenantId
|
|
8104
8205
|
});
|
|
8105
|
-
const updatedAccounts = (0,
|
|
8206
|
+
const updatedAccounts = (0,_utils_appendChildrenToNode__WEBPACK_IMPORTED_MODULE_7__.appendChildrenToNode)(accounts, parentTenantId != null ? parentTenantId : '', [{
|
|
8106
8207
|
name: createdSubTenant.name,
|
|
8107
8208
|
tenantId: createdSubTenant.tenantId,
|
|
8108
8209
|
numberOfUsers: 0,
|
|
@@ -8116,7 +8217,7 @@ function* createSubAccount({
|
|
|
8116
8217
|
} catch (e) {
|
|
8117
8218
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
|
|
8118
8219
|
key,
|
|
8119
|
-
value: (0,
|
|
8220
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.errorHandler)(e)
|
|
8120
8221
|
}));
|
|
8121
8222
|
callback == null ? void 0 : callback(false);
|
|
8122
8223
|
} finally {
|
|
@@ -8173,7 +8274,7 @@ function* deleteSubAccount({
|
|
|
8173
8274
|
} catch (e) {
|
|
8174
8275
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
|
|
8175
8276
|
key,
|
|
8176
|
-
value: (0,
|
|
8277
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.errorHandler)(e)
|
|
8177
8278
|
}));
|
|
8178
8279
|
callback == null ? void 0 : callback(false);
|
|
8179
8280
|
} finally {
|
|
@@ -8240,7 +8341,7 @@ function* updateSubAccountSettings({
|
|
|
8240
8341
|
} catch (e) {
|
|
8241
8342
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
|
|
8242
8343
|
key,
|
|
8243
|
-
value: (0,
|
|
8344
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.errorHandler)(e)
|
|
8244
8345
|
}));
|
|
8245
8346
|
callback == null ? void 0 : callback(false);
|
|
8246
8347
|
} finally {
|
|
@@ -8281,7 +8382,7 @@ function* deleteUserFromAccount({
|
|
|
8281
8382
|
} catch (e) {
|
|
8282
8383
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
|
|
8283
8384
|
key,
|
|
8284
|
-
value: (0,
|
|
8385
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.errorHandler)(e)
|
|
8285
8386
|
}));
|
|
8286
8387
|
callback == null ? void 0 : callback(false);
|
|
8287
8388
|
} finally {
|
|
@@ -8324,7 +8425,7 @@ function* setUserRolesForSubAccount({
|
|
|
8324
8425
|
} catch (e) {
|
|
8325
8426
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
|
|
8326
8427
|
key,
|
|
8327
|
-
value: (0,
|
|
8428
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.errorHandler)(e)
|
|
8328
8429
|
}));
|
|
8329
8430
|
callback == null ? void 0 : callback(false);
|
|
8330
8431
|
} finally {
|
|
@@ -8369,7 +8470,7 @@ function* addUsersToAccount({
|
|
|
8369
8470
|
} catch (e) {
|
|
8370
8471
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
|
|
8371
8472
|
key,
|
|
8372
|
-
value: (0,
|
|
8473
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.errorHandler)(e)
|
|
8373
8474
|
}));
|
|
8374
8475
|
callback == null ? void 0 : callback(false);
|
|
8375
8476
|
} finally {
|
|
@@ -8419,7 +8520,7 @@ function* updateSubAccountAccessForUser({
|
|
|
8419
8520
|
} catch (e) {
|
|
8420
8521
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
|
|
8421
8522
|
key,
|
|
8422
|
-
value: (0,
|
|
8523
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.errorHandler)(e)
|
|
8423
8524
|
}));
|
|
8424
8525
|
callback == null ? void 0 : callback(false);
|
|
8425
8526
|
} finally {
|
|
@@ -8505,7 +8606,7 @@ function* getAccountUsers({
|
|
|
8505
8606
|
} catch (e) {
|
|
8506
8607
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
|
|
8507
8608
|
key,
|
|
8508
|
-
value: (0,
|
|
8609
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.errorHandler)(e)
|
|
8509
8610
|
}));
|
|
8510
8611
|
} finally {
|
|
8511
8612
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsLoader({
|
|
@@ -8572,7 +8673,7 @@ function* setSelectedSubAccountData({
|
|
|
8572
8673
|
} catch (e) {
|
|
8573
8674
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
|
|
8574
8675
|
key,
|
|
8575
|
-
value: (0,
|
|
8676
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.errorHandler)(e)
|
|
8576
8677
|
}));
|
|
8577
8678
|
} finally {
|
|
8578
8679
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsLoader({
|
|
@@ -8592,7 +8693,6 @@ function* allAccountsSagas() {
|
|
|
8592
8693
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.addUsersToAccount, addUsersToAccount);
|
|
8593
8694
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.deleteUsersFromAccount, deleteUserFromAccount);
|
|
8594
8695
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setUserRolesForSubAccount, setUserRolesForSubAccount);
|
|
8595
|
-
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.getTeamUsers, getTeamUsers);
|
|
8596
8696
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.getAccountUsers, getAccountUsers);
|
|
8597
8697
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setSelectedSubAccountData, setSelectedSubAccountData);
|
|
8598
8698
|
}
|
|
@@ -14284,6 +14384,9 @@ const reducers = {
|
|
|
14284
14384
|
})
|
|
14285
14385
|
};
|
|
14286
14386
|
const actions = {
|
|
14387
|
+
loadUsersV2: (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createAction)(`${_constants__WEBPACK_IMPORTED_MODULE_2__.authStoreName}/loadUsersV2`, payload => ({
|
|
14388
|
+
payload
|
|
14389
|
+
})),
|
|
14287
14390
|
loadUsers: (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createAction)(`${_constants__WEBPACK_IMPORTED_MODULE_2__.authStoreName}/loadUsers`, payload => ({
|
|
14288
14391
|
payload
|
|
14289
14392
|
})),
|
|
@@ -14474,7 +14577,7 @@ function* getGroupsForUsers() {
|
|
|
14474
14577
|
}
|
|
14475
14578
|
|
|
14476
14579
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14477
|
-
function*
|
|
14580
|
+
function* loadUsersV2({
|
|
14478
14581
|
payload
|
|
14479
14582
|
}) {
|
|
14480
14583
|
var _payload$pageSize, _payload$pageOffset, _payload$filter, _payload$sort, _payload$shouldShowSu;
|
|
@@ -14485,8 +14588,8 @@ function* loadUsers({
|
|
|
14485
14588
|
const teamState = yield selectTeamState();
|
|
14486
14589
|
const pageSize = (_payload$pageSize = payload.pageSize) != null ? _payload$pageSize : teamState.pageSize;
|
|
14487
14590
|
const pageOffset = (_payload$pageOffset = payload.pageOffset) != null ? _payload$pageOffset : teamState.pageOffset;
|
|
14488
|
-
const filter = (_payload$filter = payload.filter) != null ? _payload$filter : teamState.
|
|
14489
|
-
const sort = (_payload$sort = payload.sort) != null ? _payload$sort : teamState.
|
|
14591
|
+
const filter = (_payload$filter = payload.filter) != null ? _payload$filter : teamState.filterV2;
|
|
14592
|
+
const sort = (_payload$sort = payload.sort) != null ? _payload$sort : teamState.sortV2;
|
|
14490
14593
|
const shouldIncludeSubTenants = (_payload$shouldShowSu = payload == null ? void 0 : payload.shouldShowSubTenantUsersIfReseller) != null ? _payload$shouldShowSu : teamState == null ? void 0 : teamState.shouldShowSubTenantUsersIfReseller;
|
|
14491
14594
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.setTeamLoader({
|
|
14492
14595
|
key: _interfaces__WEBPACK_IMPORTED_MODULE_7__.TeamStateKeys.USERS,
|
|
@@ -14495,8 +14598,8 @@ function* loadUsers({
|
|
|
14495
14598
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.setTeamState({
|
|
14496
14599
|
pageSize,
|
|
14497
14600
|
pageOffset,
|
|
14498
|
-
filter,
|
|
14499
|
-
sort
|
|
14601
|
+
filterV2: filter,
|
|
14602
|
+
sortV2: sort
|
|
14500
14603
|
}));
|
|
14501
14604
|
try {
|
|
14502
14605
|
const [{
|
|
@@ -14556,6 +14659,70 @@ function* loadUsers({
|
|
|
14556
14659
|
}));
|
|
14557
14660
|
}
|
|
14558
14661
|
|
|
14662
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14663
|
+
function* loadUsers({
|
|
14664
|
+
payload
|
|
14665
|
+
}) {
|
|
14666
|
+
var _payload$pageSize2, _payload$pageOffset2, _payload$filter2, _payload$sort2;
|
|
14667
|
+
const {
|
|
14668
|
+
silentLoading,
|
|
14669
|
+
callback
|
|
14670
|
+
} = payload;
|
|
14671
|
+
const teamState = yield selectTeamState();
|
|
14672
|
+
const pageSize = (_payload$pageSize2 = payload.pageSize) != null ? _payload$pageSize2 : teamState.pageSize;
|
|
14673
|
+
const pageOffset = (_payload$pageOffset2 = payload.pageOffset) != null ? _payload$pageOffset2 : teamState.pageOffset;
|
|
14674
|
+
const filter = (_payload$filter2 = payload.filter) != null ? _payload$filter2 : teamState.filter;
|
|
14675
|
+
const sort = (_payload$sort2 = payload.sort) != null ? _payload$sort2 : teamState.sort;
|
|
14676
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.setTeamLoader({
|
|
14677
|
+
key: _interfaces__WEBPACK_IMPORTED_MODULE_7__.TeamStateKeys.USERS,
|
|
14678
|
+
value: !silentLoading
|
|
14679
|
+
}));
|
|
14680
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.setTeamState({
|
|
14681
|
+
pageSize,
|
|
14682
|
+
pageOffset,
|
|
14683
|
+
filter: filter,
|
|
14684
|
+
sort: sort
|
|
14685
|
+
}));
|
|
14686
|
+
try {
|
|
14687
|
+
const [{
|
|
14688
|
+
items: users,
|
|
14689
|
+
totalPages,
|
|
14690
|
+
totalItems
|
|
14691
|
+
}, {
|
|
14692
|
+
items: roles
|
|
14693
|
+
}, {
|
|
14694
|
+
items: permissions
|
|
14695
|
+
}] = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.all)([(0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_4__.api.teams.loadUsers, {
|
|
14696
|
+
pageSize,
|
|
14697
|
+
pageOffset,
|
|
14698
|
+
filter,
|
|
14699
|
+
sort
|
|
14700
|
+
}), (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_4__.api.teams.loadAvailableRoles), (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_4__.api.teams.loadAvailablePermissions)]);
|
|
14701
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.setTeamState({
|
|
14702
|
+
users,
|
|
14703
|
+
totalPages,
|
|
14704
|
+
totalItems,
|
|
14705
|
+
roles,
|
|
14706
|
+
permissions
|
|
14707
|
+
}));
|
|
14708
|
+
callback == null ? void 0 : callback(users);
|
|
14709
|
+
} catch (e) {
|
|
14710
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.setTeamError({
|
|
14711
|
+
key: _interfaces__WEBPACK_IMPORTED_MODULE_7__.TeamStateKeys.USERS,
|
|
14712
|
+
value: e.message
|
|
14713
|
+
}));
|
|
14714
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.setTeamState({
|
|
14715
|
+
totalPages: 0,
|
|
14716
|
+
users: []
|
|
14717
|
+
}));
|
|
14718
|
+
callback == null ? void 0 : callback(null, e);
|
|
14719
|
+
}
|
|
14720
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.setTeamLoader({
|
|
14721
|
+
key: _interfaces__WEBPACK_IMPORTED_MODULE_7__.TeamStateKeys.USERS,
|
|
14722
|
+
value: false
|
|
14723
|
+
}));
|
|
14724
|
+
}
|
|
14725
|
+
|
|
14559
14726
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14560
14727
|
function* loadAllSubTenantsUsers({
|
|
14561
14728
|
payload
|
|
@@ -14737,7 +14904,7 @@ function* addUsersBulk({
|
|
|
14737
14904
|
filter: '',
|
|
14738
14905
|
silentLoading: payload.emails.length > 0
|
|
14739
14906
|
};
|
|
14740
|
-
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.
|
|
14907
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.loadUsersV2(queryObject));
|
|
14741
14908
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.setTeamState({
|
|
14742
14909
|
addUserDialogState: {
|
|
14743
14910
|
loading: false
|
|
@@ -15268,6 +15435,7 @@ function* closeDeleteUserDialog({
|
|
|
15268
15435
|
}
|
|
15269
15436
|
function* teamSagas() {
|
|
15270
15437
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.loadUsers, loadUsers);
|
|
15438
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.loadUsersV2, loadUsersV2);
|
|
15271
15439
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.loadAllSubTenantsUsers, loadAllSubTenantsUsers);
|
|
15272
15440
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.loadRoles, loadRoles);
|
|
15273
15441
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeEvery)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.addUser, addUser);
|
|
@@ -15298,16 +15466,16 @@ function* teamSagas() {
|
|
|
15298
15466
|
function* loadUsersMock({
|
|
15299
15467
|
payload
|
|
15300
15468
|
}) {
|
|
15301
|
-
var _payload$
|
|
15469
|
+
var _payload$pageSize3, _payload$pageOffset3, _payload$filter3, _payload$sort3;
|
|
15302
15470
|
const {
|
|
15303
15471
|
silentLoading,
|
|
15304
15472
|
callback
|
|
15305
15473
|
} = payload;
|
|
15306
15474
|
const teamState = yield selectTeamState();
|
|
15307
|
-
const pageSize = (_payload$
|
|
15308
|
-
const pageOffset = (_payload$
|
|
15309
|
-
const filter = (_payload$
|
|
15310
|
-
const sort = (_payload$
|
|
15475
|
+
const pageSize = (_payload$pageSize3 = payload.pageSize) != null ? _payload$pageSize3 : teamState.pageSize;
|
|
15476
|
+
const pageOffset = (_payload$pageOffset3 = payload.pageOffset) != null ? _payload$pageOffset3 : teamState.pageOffset;
|
|
15477
|
+
const filter = (_payload$filter3 = payload.filter) != null ? _payload$filter3 : teamState.filterV2;
|
|
15478
|
+
const sort = (_payload$sort3 = payload.sort) != null ? _payload$sort3 : teamState.sortV2;
|
|
15311
15479
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.setTeamLoader({
|
|
15312
15480
|
key: _interfaces__WEBPACK_IMPORTED_MODULE_7__.TeamStateKeys.USERS,
|
|
15313
15481
|
value: !silentLoading
|
|
@@ -15315,8 +15483,8 @@ function* loadUsersMock({
|
|
|
15315
15483
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.setTeamState({
|
|
15316
15484
|
pageSize,
|
|
15317
15485
|
pageOffset,
|
|
15318
|
-
filter,
|
|
15319
|
-
sort
|
|
15486
|
+
filterV2: filter,
|
|
15487
|
+
sortV2: sort
|
|
15320
15488
|
}));
|
|
15321
15489
|
const totalPages = 2;
|
|
15322
15490
|
const totalItems = 10;
|
|
@@ -15623,7 +15791,7 @@ function* resendInvitationLinkToAllSubTenantsMock({
|
|
|
15623
15791
|
}));
|
|
15624
15792
|
}
|
|
15625
15793
|
function* teamSagasMock() {
|
|
15626
|
-
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.
|
|
15794
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.loadUsersV2, loadUsersMock);
|
|
15627
15795
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.loadAllSubTenantsUsers, loadAllSubTenantsUsersMock);
|
|
15628
15796
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.loadRoles, loadRolesMock);
|
|
15629
15797
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeEvery)(_reducer__WEBPACK_IMPORTED_MODULE_6__.actions.addUser, addUserMock);
|
|
@@ -16379,6 +16547,7 @@ const allGroupsDummy = [{
|
|
|
16379
16547
|
"use strict";
|
|
16380
16548
|
__webpack_require__.r(__webpack_exports__);
|
|
16381
16549
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16550
|
+
/* harmony export */ "ADMIN_PORTAL_ENTITLEMENTS_FF": () => (/* reexport safe */ _LoginState_interfaces__WEBPACK_IMPORTED_MODULE_1__.ADMIN_PORTAL_ENTITLEMENTS_FF),
|
|
16382
16551
|
/* harmony export */ "AcceptInvitationStep": () => (/* reexport safe */ _AcceptInvitationState_interfaces__WEBPACK_IMPORTED_MODULE_7__.AcceptInvitationStep),
|
|
16383
16552
|
/* harmony export */ "ActivateAccountStep": () => (/* reexport safe */ _ActivateState_interfaces__WEBPACK_IMPORTED_MODULE_3__.ActivateAccountStep),
|
|
16384
16553
|
/* harmony export */ "AdminPortalPages": () => (/* reexport safe */ _interfaces__WEBPACK_IMPORTED_MODULE_0__.AdminPortalPages),
|
|
@@ -16438,6 +16607,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16438
16607
|
/* harmony export */ "forgotPasswordReducers": () => (/* reexport safe */ _ForgotPasswordState__WEBPACK_IMPORTED_MODULE_10__.forgotPasswordReducers),
|
|
16439
16608
|
/* harmony export */ "forgotPasswordState": () => (/* reexport safe */ _ForgotPasswordState__WEBPACK_IMPORTED_MODULE_10__.forgotPasswordState),
|
|
16440
16609
|
/* harmony export */ "getEntitlements": () => (/* reexport safe */ _EntitlementsState__WEBPACK_IMPORTED_MODULE_36__.getEntitlements),
|
|
16610
|
+
/* harmony export */ "getFeatureEntitlements": () => (/* reexport safe */ _EntitlementsState__WEBPACK_IMPORTED_MODULE_36__.getFeatureEntitlements),
|
|
16611
|
+
/* harmony export */ "getPermissionEntitlements": () => (/* reexport safe */ _EntitlementsState__WEBPACK_IMPORTED_MODULE_36__.getPermissionEntitlements),
|
|
16441
16612
|
/* harmony export */ "getRedirectUrl": () => (/* reexport safe */ _LoginState__WEBPACK_IMPORTED_MODULE_2__.getRedirectUrl),
|
|
16442
16613
|
/* harmony export */ "groupsActions": () => (/* reexport safe */ _GroupsState__WEBPACK_IMPORTED_MODULE_21__.groupsActions),
|
|
16443
16614
|
/* harmony export */ "groupsDialogsActions": () => (/* reexport safe */ _GroupsState_groupsDialogsState__WEBPACK_IMPORTED_MODULE_22__.groupsDialogsActions),
|
|
@@ -20104,7 +20275,7 @@ const createFronteggStore = (rootInitialState, storeHolder, previewMode = false,
|
|
|
20104
20275
|
holder = window;
|
|
20105
20276
|
}
|
|
20106
20277
|
if (!holder.store) {
|
|
20107
|
-
var _overrideInitialState, _authInitialState$rou, _overrideInitialState2, _overrideInitialState3, _overrideInitialState4, _overrideInitialState5, _overrideInitialState6, _overrideInitialState7, _overrideInitialState8, _overrideInitialState9;
|
|
20278
|
+
var _overrideInitialState, _authInitialState$rou, _overrideInitialState2, _overrideInitialState3, _authStore$initialSta, _overrideInitialState4, _overrideInitialState5, _overrideInitialState6, _overrideInitialState7, _overrideInitialState8, _overrideInitialState9;
|
|
20108
20279
|
if (!previewMode && !builderMode) {
|
|
20109
20280
|
_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_7__.ContextHolder.setContext(rootInitialState.context);
|
|
20110
20281
|
}
|
|
@@ -20123,7 +20294,10 @@ const createFronteggStore = (rootInitialState, storeHolder, previewMode = false,
|
|
|
20123
20294
|
urlStrategy: urlStrategy
|
|
20124
20295
|
}),
|
|
20125
20296
|
[_auth__WEBPACK_IMPORTED_MODULE_8__["default"].storeName]: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _auth__WEBPACK_IMPORTED_MODULE_8__["default"].initialState, authInitialState, (_overrideInitialState = overrideInitialState == null ? void 0 : overrideInitialState.auth) != null ? _overrideInitialState : {}, {
|
|
20126
|
-
routes: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _auth__WEBPACK_IMPORTED_MODULE_8__["default"].initialState.routes, (_authInitialState$rou = authInitialState == null ? void 0 : authInitialState.routes) != null ? _authInitialState$rou : {}, (_overrideInitialState2 = overrideInitialState == null ? void 0 : (_overrideInitialState3 = overrideInitialState.auth) == null ? void 0 : _overrideInitialState3.routes) != null ? _overrideInitialState2 : {})
|
|
20297
|
+
routes: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _auth__WEBPACK_IMPORTED_MODULE_8__["default"].initialState.routes, (_authInitialState$rou = authInitialState == null ? void 0 : authInitialState.routes) != null ? _authInitialState$rou : {}, (_overrideInitialState2 = overrideInitialState == null ? void 0 : (_overrideInitialState3 = overrideInitialState.auth) == null ? void 0 : _overrideInitialState3.routes) != null ? _overrideInitialState2 : {}),
|
|
20298
|
+
entitlementsState: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _auth__WEBPACK_IMPORTED_MODULE_8__["default"].initialState.entitlementsState, {
|
|
20299
|
+
options: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, (_authStore$initialSta = _auth__WEBPACK_IMPORTED_MODULE_8__["default"].initialState.entitlementsState) == null ? void 0 : _authStore$initialSta.options, overrideInitialState == null ? void 0 : overrideInitialState.entitlementsOptions)
|
|
20300
|
+
})
|
|
20127
20301
|
}),
|
|
20128
20302
|
[_audits__WEBPACK_IMPORTED_MODULE_9__["default"].storeName]: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _audits__WEBPACK_IMPORTED_MODULE_9__["default"].initialState, (_overrideInitialState4 = overrideInitialState == null ? void 0 : overrideInitialState.auditLogs) != null ? _overrideInitialState4 : {}, {
|
|
20129
20303
|
auditLogsState: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _audits__WEBPACK_IMPORTED_MODULE_9__["default"].initialState.auditLogsState, (_overrideInitialState5 = overrideInitialState == null ? void 0 : (_overrideInitialState6 = overrideInitialState.auditLogs) == null ? void 0 : _overrideInitialState6.auditLogsState) != null ? _overrideInitialState5 : {}),
|
|
@@ -21506,7 +21680,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21506
21680
|
/* harmony export */ });
|
|
21507
21681
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
21508
21682
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
21509
|
-
/** @license Frontegg v6.
|
|
21683
|
+
/** @license Frontegg v6.118.0
|
|
21510
21684
|
*
|
|
21511
21685
|
* This source code is licensed under the MIT license found in the
|
|
21512
21686
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -21759,6 +21933,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21759
21933
|
/* harmony export */ "SocialLoginProviders": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_3__.SocialLoginProviders),
|
|
21760
21934
|
/* harmony export */ "acceptInvitation": () => (/* binding */ acceptInvitation),
|
|
21761
21935
|
/* harmony export */ "activateAccount": () => (/* binding */ activateAccount),
|
|
21936
|
+
/* harmony export */ "activateAccountV2": () => (/* binding */ activateAccountV2),
|
|
21762
21937
|
/* harmony export */ "bulkCreateIPRestriction": () => (/* reexport safe */ _secutiry_poilicy__WEBPACK_IMPORTED_MODULE_2__.bulkCreateIPRestriction),
|
|
21763
21938
|
/* harmony export */ "changePhoneNumber": () => (/* binding */ changePhoneNumber),
|
|
21764
21939
|
/* harmony export */ "changePhoneNumberWithVerification": () => (/* binding */ changePhoneNumberWithVerification),
|
|
@@ -21792,15 +21967,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21792
21967
|
/* harmony export */ "disableMfa": () => (/* binding */ disableMfa),
|
|
21793
21968
|
/* harmony export */ "enrollMFAAuthenticatorApp": () => (/* binding */ enrollMFAAuthenticatorApp),
|
|
21794
21969
|
/* harmony export */ "enrollMFAAuthenticatorAppForLogin": () => (/* binding */ enrollMFAAuthenticatorAppForLogin),
|
|
21970
|
+
/* harmony export */ "enrollMFAAuthenticatorAppForLoginV2": () => (/* binding */ enrollMFAAuthenticatorAppForLoginV2),
|
|
21795
21971
|
/* harmony export */ "enrollMFASMS": () => (/* binding */ enrollMFASMS),
|
|
21796
21972
|
/* harmony export */ "enrollMFASMSForLogin": () => (/* binding */ enrollMFASMSForLogin),
|
|
21973
|
+
/* harmony export */ "enrollMFASMSForLoginV2": () => (/* binding */ enrollMFASMSForLoginV2),
|
|
21797
21974
|
/* harmony export */ "enrollMFAWebAuthn": () => (/* binding */ enrollMFAWebAuthn),
|
|
21798
21975
|
/* harmony export */ "enrollMFAWebAuthnForLogin": () => (/* binding */ enrollMFAWebAuthnForLogin),
|
|
21976
|
+
/* harmony export */ "enrollMFAWebAuthnForLoginV2": () => (/* binding */ enrollMFAWebAuthnForLoginV2),
|
|
21799
21977
|
/* harmony export */ "enrollMfa": () => (/* binding */ enrollMfa),
|
|
21800
21978
|
/* harmony export */ "exchangeOAuthTokens": () => (/* binding */ exchangeOAuthTokens),
|
|
21979
|
+
/* harmony export */ "exchangeOAuthTokensV2": () => (/* binding */ exchangeOAuthTokensV2),
|
|
21801
21980
|
/* harmony export */ "forgotPassword": () => (/* binding */ forgotPassword),
|
|
21802
21981
|
/* harmony export */ "generateLoginResponse": () => (/* binding */ generateLoginResponse),
|
|
21803
21982
|
/* harmony export */ "generateLoginResponseFromOAuthResponse": () => (/* binding */ generateLoginResponseFromOAuthResponse),
|
|
21983
|
+
/* harmony export */ "generateLoginResponseFromOAuthResponseV2": () => (/* binding */ generateLoginResponseFromOAuthResponseV2),
|
|
21804
21984
|
/* harmony export */ "generateLoginResponseV2": () => (/* binding */ generateLoginResponseV2),
|
|
21805
21985
|
/* harmony export */ "generateLoginResponseV3": () => (/* binding */ generateLoginResponseV3),
|
|
21806
21986
|
/* harmony export */ "getActivateAccountStrategy": () => (/* binding */ getActivateAccountStrategy),
|
|
@@ -21820,6 +22000,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21820
22000
|
/* harmony export */ "getOidcConfiguration": () => (/* binding */ getOidcConfiguration),
|
|
21821
22001
|
/* harmony export */ "getPasswordConfigPolicy": () => (/* reexport safe */ _secutiry_poilicy__WEBPACK_IMPORTED_MODULE_2__.getPasswordConfigPolicy),
|
|
21822
22002
|
/* harmony export */ "getPasswordHistoryPolicy": () => (/* reexport safe */ _secutiry_poilicy__WEBPACK_IMPORTED_MODULE_2__.getPasswordHistoryPolicy),
|
|
22003
|
+
/* harmony export */ "getPublicAuthStrategiesConfigForAuthenticatedUser": () => (/* binding */ getPublicAuthStrategiesConfigForAuthenticatedUser),
|
|
21823
22004
|
/* harmony export */ "getSSOConfigurations": () => (/* binding */ getSSOConfigurations),
|
|
21824
22005
|
/* harmony export */ "getSSODefaultRoles": () => (/* binding */ getSSODefaultRoles),
|
|
21825
22006
|
/* harmony export */ "getSSOGroups": () => (/* binding */ getSSOGroups),
|
|
@@ -21831,6 +22012,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21831
22012
|
/* harmony export */ "getSessionConfigurations": () => (/* binding */ getSessionConfigurations),
|
|
21832
22013
|
/* harmony export */ "getSocialLoginProviders": () => (/* binding */ getSocialLoginProviders),
|
|
21833
22014
|
/* harmony export */ "getSocialLoginProvidersV2": () => (/* binding */ getSocialLoginProvidersV2),
|
|
22015
|
+
/* harmony export */ "getSocialLoginProvidersV2ForAuthenticatedUser": () => (/* binding */ getSocialLoginProvidersV2ForAuthenticatedUser),
|
|
21834
22016
|
/* harmony export */ "getTenantAccessTokensData": () => (/* binding */ getTenantAccessTokensData),
|
|
21835
22017
|
/* harmony export */ "getTenantApiTokensData": () => (/* binding */ getTenantApiTokensData),
|
|
21836
22018
|
/* harmony export */ "getUserAccessTokensData": () => (/* binding */ getUserAccessTokensData),
|
|
@@ -21846,10 +22028,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21846
22028
|
/* harmony export */ "login": () => (/* binding */ login),
|
|
21847
22029
|
/* harmony export */ "loginViaSocialLogin": () => (/* binding */ loginViaSocialLogin),
|
|
21848
22030
|
/* harmony export */ "loginWithMfa": () => (/* binding */ loginWithMfa),
|
|
22031
|
+
/* harmony export */ "loginWithMfaV2": () => (/* binding */ loginWithMfaV2),
|
|
22032
|
+
/* harmony export */ "loginv2": () => (/* binding */ loginv2),
|
|
21849
22033
|
/* harmony export */ "logout": () => (/* binding */ logout),
|
|
21850
22034
|
/* harmony export */ "oidcPostLogin": () => (/* binding */ oidcPostLogin),
|
|
21851
22035
|
/* harmony export */ "oidcPostLoginV2": () => (/* binding */ oidcPostLoginV2),
|
|
21852
22036
|
/* harmony export */ "passwordlessPostLogin": () => (/* binding */ passwordlessPostLogin),
|
|
22037
|
+
/* harmony export */ "passwordlessPostLoginV2": () => (/* binding */ passwordlessPostLoginV2),
|
|
21853
22038
|
/* harmony export */ "passwordlessPreLogin": () => (/* binding */ passwordlessPreLogin),
|
|
21854
22039
|
/* harmony export */ "postLogin": () => (/* binding */ postLogin),
|
|
21855
22040
|
/* harmony export */ "preDisableMFASMS": () => (/* binding */ preDisableMFASMS),
|
|
@@ -21881,6 +22066,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21881
22066
|
/* harmony export */ "setSSODefaultRoles": () => (/* binding */ setSSODefaultRoles),
|
|
21882
22067
|
/* harmony export */ "signUpUser": () => (/* binding */ signUpUser),
|
|
21883
22068
|
/* harmony export */ "silentOAuthRefreshToken": () => (/* binding */ silentOAuthRefreshToken),
|
|
22069
|
+
/* harmony export */ "silentOAuthRefreshTokenV2": () => (/* binding */ silentOAuthRefreshTokenV2),
|
|
21884
22070
|
/* harmony export */ "testCurrentIp": () => (/* reexport safe */ _secutiry_poilicy__WEBPACK_IMPORTED_MODULE_2__.testCurrentIp),
|
|
21885
22071
|
/* harmony export */ "testCurrentIpInAllowList": () => (/* reexport safe */ _secutiry_poilicy__WEBPACK_IMPORTED_MODULE_2__.testCurrentIpInAllowList),
|
|
21886
22072
|
/* harmony export */ "updateDomainRestrictionConfig": () => (/* reexport safe */ _secutiry_poilicy__WEBPACK_IMPORTED_MODULE_2__.updateDomainRestrictionConfig),
|
|
@@ -21900,13 +22086,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21900
22086
|
/* harmony export */ "verifyInviteToken": () => (/* binding */ verifyInviteToken),
|
|
21901
22087
|
/* harmony export */ "verifyMFAAuthenticatorAppForLogin": () => (/* binding */ verifyMFAAuthenticatorAppForLogin),
|
|
21902
22088
|
/* harmony export */ "verifyMFAEmailCode": () => (/* binding */ verifyMFAEmailCode),
|
|
22089
|
+
/* harmony export */ "verifyMFAEmailCodeV2": () => (/* binding */ verifyMFAEmailCodeV2),
|
|
21903
22090
|
/* harmony export */ "verifyMFASMSForLogin": () => (/* binding */ verifyMFASMSForLogin),
|
|
22091
|
+
/* harmony export */ "verifyMFASMSForLoginV2": () => (/* binding */ verifyMFASMSForLoginV2),
|
|
21904
22092
|
/* harmony export */ "verifyMFAWebAuthnForLogin": () => (/* binding */ verifyMFAWebAuthnForLogin),
|
|
22093
|
+
/* harmony export */ "verifyMFAWebAuthnForLoginV2": () => (/* binding */ verifyMFAWebAuthnForLoginV2),
|
|
21905
22094
|
/* harmony export */ "verifyMfa": () => (/* binding */ verifyMfa),
|
|
21906
22095
|
/* harmony export */ "verifyNewDeviceSession": () => (/* binding */ verifyNewDeviceSession),
|
|
21907
22096
|
/* harmony export */ "verifyResetPhoneNumber": () => (/* binding */ verifyResetPhoneNumber),
|
|
21908
22097
|
/* harmony export */ "webAuthnCreateNewDeviceSession": () => (/* binding */ webAuthnCreateNewDeviceSession),
|
|
21909
22098
|
/* harmony export */ "webAuthnPostLogin": () => (/* binding */ webAuthnPostLogin),
|
|
22099
|
+
/* harmony export */ "webAuthnPostLoginV2": () => (/* binding */ webAuthnPostLoginV2),
|
|
21910
22100
|
/* harmony export */ "webAuthnPreLogin": () => (/* binding */ webAuthnPreLogin)
|
|
21911
22101
|
/* harmony export */ });
|
|
21912
22102
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
|
@@ -21922,7 +22112,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21922
22112
|
|
|
21923
22113
|
|
|
21924
22114
|
const _excluded = ["type"],
|
|
21925
|
-
_excluded2 = ["type"]
|
|
22115
|
+
_excluded2 = ["type"],
|
|
22116
|
+
_excluded3 = ["type"];
|
|
21926
22117
|
|
|
21927
22118
|
|
|
21928
22119
|
|
|
@@ -22000,6 +22191,26 @@ async function generateLoginResponseFromOAuthResponse(oauthResponse) {
|
|
|
22000
22191
|
_ContextHolder__WEBPACK_IMPORTED_MODULE_4__.ContextHolder.setUser(user);
|
|
22001
22192
|
return user;
|
|
22002
22193
|
}
|
|
22194
|
+
async function generateLoginResponseFromOAuthResponseV2(oauthResponse) {
|
|
22195
|
+
_ContextHolder__WEBPACK_IMPORTED_MODULE_4__.ContextHolder.setAccessToken(oauthResponse.id_token);
|
|
22196
|
+
const [me, currentUserTenants] = await Promise.all([(0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Get)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.users.v2}/me`), (0,_users__WEBPACK_IMPORTED_MODULE_9__.getCurrentUserTenantsV3)()]);
|
|
22197
|
+
const decodedContent = oauthResponse.id_token ? (0,_jwt__WEBPACK_IMPORTED_MODULE_7__.jwtDecode)(oauthResponse.id_token) : {};
|
|
22198
|
+
|
|
22199
|
+
const user = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
22200
|
+
mfaRequired: false,
|
|
22201
|
+
accessToken: oauthResponse.id_token,
|
|
22202
|
+
refreshToken: oauthResponse.refresh_token
|
|
22203
|
+
}, decodedContent, me, {
|
|
22204
|
+
expiresIn: oauthResponse.expires_in || 300
|
|
22205
|
+
});
|
|
22206
|
+
|
|
22207
|
+
_ContextHolder__WEBPACK_IMPORTED_MODULE_4__.ContextHolder.setUser(user);
|
|
22208
|
+
return {
|
|
22209
|
+
user,
|
|
22210
|
+
tenants: currentUserTenants.tenants,
|
|
22211
|
+
activeTenant: currentUserTenants.activeTenant
|
|
22212
|
+
};
|
|
22213
|
+
}
|
|
22003
22214
|
async function preLogin(body) {
|
|
22004
22215
|
try {
|
|
22005
22216
|
const {
|
|
@@ -22025,13 +22236,25 @@ async function login(body) {
|
|
|
22025
22236
|
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user`, body);
|
|
22026
22237
|
return generateLoginResponse(data);
|
|
22027
22238
|
}
|
|
22239
|
+
async function loginv2(body) {
|
|
22240
|
+
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user`, body);
|
|
22241
|
+
return generateLoginResponseV3(data);
|
|
22242
|
+
}
|
|
22028
22243
|
async function loginWithMfa(body) {
|
|
22029
22244
|
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/verify`, body);
|
|
22030
22245
|
return generateLoginResponse(data);
|
|
22031
22246
|
}
|
|
22247
|
+
async function loginWithMfaV2(body) {
|
|
22248
|
+
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/verify`, body);
|
|
22249
|
+
return generateLoginResponseV3(data);
|
|
22250
|
+
}
|
|
22032
22251
|
async function activateAccount(body) {
|
|
22033
22252
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.users.v1}/activate`, body);
|
|
22034
22253
|
}
|
|
22254
|
+
async function activateAccountV2(body) {
|
|
22255
|
+
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.users.v1}/activate`, body);
|
|
22256
|
+
return generateLoginResponseV3(data);
|
|
22257
|
+
}
|
|
22035
22258
|
async function getActivateAccountStrategy(params) {
|
|
22036
22259
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Get)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.users.v1}/activate/strategy`, params);
|
|
22037
22260
|
}
|
|
@@ -22125,6 +22348,10 @@ async function preEnrollMFAAuthenticatorAppForLogin(body) {
|
|
|
22125
22348
|
async function enrollMFAAuthenticatorAppForLogin(body) {
|
|
22126
22349
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/authenticator/enroll/verify`, body);
|
|
22127
22350
|
}
|
|
22351
|
+
async function enrollMFAAuthenticatorAppForLoginV2(body) {
|
|
22352
|
+
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/authenticator/enroll/verify`, body);
|
|
22353
|
+
return generateLoginResponseV3(data);
|
|
22354
|
+
}
|
|
22128
22355
|
async function verifyMFAAuthenticatorAppForLogin(deviceId, body) {
|
|
22129
22356
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/authenticator/${deviceId}/verify`, body);
|
|
22130
22357
|
}
|
|
@@ -22134,30 +22361,50 @@ async function preVerifyMFAEmailCode(body) {
|
|
|
22134
22361
|
async function verifyMFAEmailCode(body) {
|
|
22135
22362
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/emailcode/verify`, body);
|
|
22136
22363
|
}
|
|
22364
|
+
async function verifyMFAEmailCodeV2(body) {
|
|
22365
|
+
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/emailcode/verify`, body);
|
|
22366
|
+
return generateLoginResponseV3(data);
|
|
22367
|
+
}
|
|
22137
22368
|
async function preEnrollMFASMSForLogin(body) {
|
|
22138
22369
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/sms/enroll`, body);
|
|
22139
22370
|
}
|
|
22140
22371
|
async function enrollMFASMSForLogin(body) {
|
|
22141
22372
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/sms/enroll/verify`, body);
|
|
22142
22373
|
}
|
|
22374
|
+
async function enrollMFASMSForLoginV2(body) {
|
|
22375
|
+
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/sms/enroll/verify`, body);
|
|
22376
|
+
return generateLoginResponseV3(data);
|
|
22377
|
+
}
|
|
22143
22378
|
async function preVerifyMFASMSForLogin(deviceId, body) {
|
|
22144
22379
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/sms/${deviceId}`, body);
|
|
22145
22380
|
}
|
|
22146
22381
|
async function verifyMFASMSForLogin(deviceId, body) {
|
|
22147
22382
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/sms/${deviceId}/verify`, body);
|
|
22148
22383
|
}
|
|
22384
|
+
async function verifyMFASMSForLoginV2(deviceId, body) {
|
|
22385
|
+
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/sms/${deviceId}/verify`, body);
|
|
22386
|
+
return generateLoginResponseV3(data);
|
|
22387
|
+
}
|
|
22149
22388
|
async function preEnrollMFAWebAuthnForLogin(body) {
|
|
22150
22389
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/webauthn/enroll`, body);
|
|
22151
22390
|
}
|
|
22152
22391
|
async function enrollMFAWebAuthnForLogin(body) {
|
|
22153
22392
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/webauthn/enroll/verify`, body);
|
|
22154
22393
|
}
|
|
22394
|
+
async function enrollMFAWebAuthnForLoginV2(body) {
|
|
22395
|
+
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/webauthn/enroll/verify`, body);
|
|
22396
|
+
return generateLoginResponseV3(data);
|
|
22397
|
+
}
|
|
22155
22398
|
async function preVerifyMFAWebAuthnForLogin(deviceId, body) {
|
|
22156
22399
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/webauthn/${deviceId}`, body);
|
|
22157
22400
|
}
|
|
22158
22401
|
async function verifyMFAWebAuthnForLogin(deviceId, body) {
|
|
22159
22402
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/webauthn/${deviceId}/verify`, body);
|
|
22160
22403
|
}
|
|
22404
|
+
async function verifyMFAWebAuthnForLoginV2(deviceId, body) {
|
|
22405
|
+
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/webauthn/${deviceId}/verify`, body);
|
|
22406
|
+
return generateLoginResponseV3(data);
|
|
22407
|
+
}
|
|
22161
22408
|
async function getSamlConfiguration() {
|
|
22162
22409
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Get)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.team.sso.v1}/saml/configurations`);
|
|
22163
22410
|
}
|
|
@@ -22222,6 +22469,9 @@ async function getSocialLoginProviders() {
|
|
|
22222
22469
|
async function getSocialLoginProvidersV2() {
|
|
22223
22470
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Get)(_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.sso.v2);
|
|
22224
22471
|
}
|
|
22472
|
+
async function getSocialLoginProvidersV2ForAuthenticatedUser() {
|
|
22473
|
+
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Get)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.sso.v2}/authenticated`);
|
|
22474
|
+
}
|
|
22225
22475
|
async function getCustomSocialLoginProvidersV1() {
|
|
22226
22476
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Get)(_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.sso.custom.v1);
|
|
22227
22477
|
}
|
|
@@ -22274,13 +22524,26 @@ async function signUpUser(body) {
|
|
|
22274
22524
|
userId,
|
|
22275
22525
|
tenantId
|
|
22276
22526
|
} = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.users.v1}/signUp`, body);
|
|
22277
|
-
const
|
|
22278
|
-
return {
|
|
22527
|
+
const response = {
|
|
22279
22528
|
shouldActivate,
|
|
22280
|
-
user: loginResponse,
|
|
22281
22529
|
userId,
|
|
22282
22530
|
tenantId
|
|
22283
22531
|
};
|
|
22532
|
+
|
|
22533
|
+
if (!shouldActivate && authResponse) {
|
|
22534
|
+
const {
|
|
22535
|
+
user,
|
|
22536
|
+
tenants,
|
|
22537
|
+
activeTenant
|
|
22538
|
+
} = await generateLoginResponseV3(authResponse);
|
|
22539
|
+
return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, response, {
|
|
22540
|
+
user,
|
|
22541
|
+
tenants,
|
|
22542
|
+
activeTenant
|
|
22543
|
+
});
|
|
22544
|
+
}
|
|
22545
|
+
|
|
22546
|
+
return response;
|
|
22284
22547
|
}
|
|
22285
22548
|
async function getCurrentUserSessions() {
|
|
22286
22549
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Get)(_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.users.sessions.currentUser.v1);
|
|
@@ -22367,12 +22630,21 @@ async function passwordlessPreLogin(_ref) {
|
|
|
22367
22630
|
|
|
22368
22631
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/passwordless/${type.toLocaleLowerCase()}/prelogin`, body);
|
|
22369
22632
|
}
|
|
22370
|
-
async function
|
|
22633
|
+
async function passwordlessPostLoginV2(_ref2) {
|
|
22371
22634
|
let {
|
|
22372
22635
|
type
|
|
22373
22636
|
} = _ref2,
|
|
22374
22637
|
body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref2, _excluded2);
|
|
22375
22638
|
|
|
22639
|
+
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/passwordless/${type.toLocaleLowerCase()}/postlogin`, body);
|
|
22640
|
+
return generateLoginResponseV3(data);
|
|
22641
|
+
}
|
|
22642
|
+
async function passwordlessPostLogin(_ref3) {
|
|
22643
|
+
let {
|
|
22644
|
+
type
|
|
22645
|
+
} = _ref3,
|
|
22646
|
+
body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref3, _excluded3);
|
|
22647
|
+
|
|
22376
22648
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/passwordless/${type.toLocaleLowerCase()}/postlogin`, body);
|
|
22377
22649
|
}
|
|
22378
22650
|
async function verifyInviteToken({
|
|
@@ -22441,6 +22713,14 @@ async function oidcPostLoginV2(body) {
|
|
|
22441
22713
|
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v2}/user/oidc/postlogin`, body);
|
|
22442
22714
|
return generateLoginResponse(data);
|
|
22443
22715
|
}
|
|
22716
|
+
async function exchangeOAuthTokensV2(body) {
|
|
22717
|
+
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.oauth.v1}/token`, body);
|
|
22718
|
+
return generateLoginResponseFromOAuthResponseV2(data);
|
|
22719
|
+
}
|
|
22720
|
+
async function silentOAuthRefreshTokenV2() {
|
|
22721
|
+
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.oauth.v1}/authorize/silent`);
|
|
22722
|
+
return generateLoginResponseFromOAuthResponseV2(data);
|
|
22723
|
+
}
|
|
22444
22724
|
async function exchangeOAuthTokens(body) {
|
|
22445
22725
|
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.oauth.v1}/token`, body);
|
|
22446
22726
|
return generateLoginResponseFromOAuthResponse(data);
|
|
@@ -22470,6 +22750,10 @@ async function webAuthnPreLogin(body) {
|
|
|
22470
22750
|
async function webAuthnPostLogin(body) {
|
|
22471
22751
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/webauthn/postlogin`, body);
|
|
22472
22752
|
}
|
|
22753
|
+
async function webAuthnPostLoginV2(body) {
|
|
22754
|
+
const data = await (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/webauthn/postlogin`, body);
|
|
22755
|
+
return generateLoginResponseV3(data);
|
|
22756
|
+
}
|
|
22473
22757
|
async function webAuthnCreateNewDeviceSession() {
|
|
22474
22758
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.webAuthnDevices.v1);
|
|
22475
22759
|
}
|
|
@@ -22485,6 +22769,9 @@ async function verifyNewDeviceSession(body) {
|
|
|
22485
22769
|
async function getVendorPublicAuthStrategiesConfig() {
|
|
22486
22770
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Get)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.configurations.v1}/auth/strategies/public`);
|
|
22487
22771
|
}
|
|
22772
|
+
async function getPublicAuthStrategiesConfigForAuthenticatedUser() {
|
|
22773
|
+
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Get)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.configurations.v1}/auth/strategies`);
|
|
22774
|
+
}
|
|
22488
22775
|
async function getMFAStrategiesConfig() {
|
|
22489
22776
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Get)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.configurations.v1}/mfa/strategies`);
|
|
22490
22777
|
}
|
|
@@ -23187,6 +23474,27 @@ async function loadEntitlements() {
|
|
|
23187
23474
|
|
|
23188
23475
|
/***/ }),
|
|
23189
23476
|
|
|
23477
|
+
/***/ "../../node_modules/@frontegg/rest-api/entitlements/interfaces.js":
|
|
23478
|
+
/*!************************************************************************!*\
|
|
23479
|
+
!*** ../../node_modules/@frontegg/rest-api/entitlements/interfaces.js ***!
|
|
23480
|
+
\************************************************************************/
|
|
23481
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
23482
|
+
|
|
23483
|
+
"use strict";
|
|
23484
|
+
__webpack_require__.r(__webpack_exports__);
|
|
23485
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23486
|
+
/* harmony export */ "NotEntitledReason": () => (/* binding */ NotEntitledReason)
|
|
23487
|
+
/* harmony export */ });
|
|
23488
|
+
let NotEntitledReason;
|
|
23489
|
+
|
|
23490
|
+
(function (NotEntitledReason) {
|
|
23491
|
+
NotEntitledReason["MISSING_PERMISSION"] = "MISSING_PERMISSION";
|
|
23492
|
+
NotEntitledReason["MISSING_FEATURE"] = "MISSING_FEATURE";
|
|
23493
|
+
NotEntitledReason["BUNDLE_EXPIRED"] = "BUNDLE_EXPIRED";
|
|
23494
|
+
})(NotEntitledReason || (NotEntitledReason = {}));
|
|
23495
|
+
|
|
23496
|
+
/***/ }),
|
|
23497
|
+
|
|
23190
23498
|
/***/ "../../node_modules/@frontegg/rest-api/error.js":
|
|
23191
23499
|
/*!******************************************************!*\
|
|
23192
23500
|
!*** ../../node_modules/@frontegg/rest-api/error.js ***!
|
|
@@ -23686,26 +23994,27 @@ async function impersonate(body) {
|
|
|
23686
23994
|
"use strict";
|
|
23687
23995
|
__webpack_require__.r(__webpack_exports__);
|
|
23688
23996
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23689
|
-
/* harmony export */ "AuthStrategyEnum": () => (/* reexport safe */
|
|
23690
|
-
/* harmony export */ "ContextHolder": () => (/* reexport safe */
|
|
23997
|
+
/* harmony export */ "AuthStrategyEnum": () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_31__.AuthStrategyEnum),
|
|
23998
|
+
/* harmony export */ "ContextHolder": () => (/* reexport safe */ _ContextHolder__WEBPACK_IMPORTED_MODULE_29__.ContextHolder),
|
|
23691
23999
|
/* harmony export */ "FeatureFlags": () => (/* reexport safe */ _feature_flags_index__WEBPACK_IMPORTED_MODULE_5__.FeatureFlags),
|
|
23692
|
-
/* harmony export */ "FronteggApiError": () => (/* reexport safe */
|
|
23693
|
-
/* harmony export */ "FronteggContext": () => (/* reexport safe */
|
|
24000
|
+
/* harmony export */ "FronteggApiError": () => (/* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_30__.FronteggApiError),
|
|
24001
|
+
/* harmony export */ "FronteggContext": () => (/* reexport safe */ _ContextHolder__WEBPACK_IMPORTED_MODULE_29__.FronteggContext),
|
|
23694
24002
|
/* harmony export */ "FronteggFrameworks": () => (/* reexport safe */ _interfaces__WEBPACK_IMPORTED_MODULE_0__.FronteggFrameworks),
|
|
23695
24003
|
/* harmony export */ "GroupManagedByEnum": () => (/* reexport safe */ _groups_enums__WEBPACK_IMPORTED_MODULE_8__.GroupManagedByEnum),
|
|
23696
24004
|
/* harmony export */ "GroupRelations": () => (/* reexport safe */ _groups_enums__WEBPACK_IMPORTED_MODULE_8__.GroupRelations),
|
|
23697
|
-
/* harmony export */ "ISubscriptionCancellationPolicy": () => (/* reexport safe */
|
|
23698
|
-
/* harmony export */ "ISubscriptionStatus": () => (/* reexport safe */
|
|
24005
|
+
/* harmony export */ "ISubscriptionCancellationPolicy": () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_32__.ISubscriptionCancellationPolicy),
|
|
24006
|
+
/* harmony export */ "ISubscriptionStatus": () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_32__.ISubscriptionStatus),
|
|
23699
24007
|
/* harmony export */ "MFAStrategyEnum": () => (/* reexport safe */ _auth_interfaces__WEBPACK_IMPORTED_MODULE_1__.MFAStrategyEnum),
|
|
23700
|
-
/* harmony export */ "MachineToMachineAuthStrategy": () => (/* reexport safe */
|
|
24008
|
+
/* harmony export */ "MachineToMachineAuthStrategy": () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_31__.MachineToMachineAuthStrategy),
|
|
24009
|
+
/* harmony export */ "NotEntitledReason": () => (/* reexport safe */ _entitlements_interfaces__WEBPACK_IMPORTED_MODULE_10__.NotEntitledReason),
|
|
23701
24010
|
/* harmony export */ "PaginationOrderEnum": () => (/* reexport safe */ _interfaces__WEBPACK_IMPORTED_MODULE_0__.PaginationOrderEnum),
|
|
23702
|
-
/* harmony export */ "PaymentMethodType": () => (/* reexport safe */
|
|
23703
|
-
/* harmony export */ "ProviderType": () => (/* reexport safe */
|
|
24011
|
+
/* harmony export */ "PaymentMethodType": () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_32__.PaymentMethodType),
|
|
24012
|
+
/* harmony export */ "ProviderType": () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_32__.ProviderType),
|
|
23704
24013
|
/* harmony export */ "RequestSource": () => (/* reexport safe */ _interfaces__WEBPACK_IMPORTED_MODULE_0__.RequestSource),
|
|
23705
24014
|
/* harmony export */ "RestrictionType": () => (/* reexport safe */ _auth_interfaces__WEBPACK_IMPORTED_MODULE_1__.RestrictionType),
|
|
23706
24015
|
/* harmony export */ "ScimConnectionSource": () => (/* reexport safe */ _directory_interfaces__WEBPACK_IMPORTED_MODULE_7__.ScimConnectionSource),
|
|
23707
24016
|
/* harmony export */ "SecondaryAuthStrategy": () => (/* reexport safe */ _auth_interfaces__WEBPACK_IMPORTED_MODULE_1__.SecondaryAuthStrategy),
|
|
23708
|
-
/* harmony export */ "SocialLoginProviders": () => (/* reexport safe */
|
|
24017
|
+
/* harmony export */ "SocialLoginProviders": () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_31__.SocialLoginProviders),
|
|
23709
24018
|
/* harmony export */ "SortByEnum": () => (/* reexport safe */ _users_interfaces__WEBPACK_IMPORTED_MODULE_9__.SortByEnum),
|
|
23710
24019
|
/* harmony export */ "TenantSortByEnum": () => (/* reexport safe */ _tenants_interfaces__WEBPACK_IMPORTED_MODULE_3__.TenantSortByEnum),
|
|
23711
24020
|
/* harmony export */ "TenantType": () => (/* reexport safe */ _tenants_interfaces__WEBPACK_IMPORTED_MODULE_3__.TenantType),
|
|
@@ -23716,7 +24025,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23716
24025
|
/* harmony export */ "createConfiguration": () => (/* reexport safe */ _directory_index__WEBPACK_IMPORTED_MODULE_6__.createConfiguration),
|
|
23717
24026
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
23718
24027
|
/* harmony export */ "deleteConfiguration": () => (/* reexport safe */ _directory_index__WEBPACK_IMPORTED_MODULE_6__.deleteConfiguration),
|
|
23719
|
-
/* harmony export */ "fetch": () => (/* reexport module object */
|
|
24028
|
+
/* harmony export */ "fetch": () => (/* reexport module object */ _fetch__WEBPACK_IMPORTED_MODULE_28__),
|
|
23720
24029
|
/* harmony export */ "fronteggAuthApiRoutesRegex": () => (/* reexport safe */ _routers__WEBPACK_IMPORTED_MODULE_4__.fronteggAuthApiRoutesRegex),
|
|
23721
24030
|
/* harmony export */ "fronteggHeaders": () => (/* reexport safe */ _interfaces__WEBPACK_IMPORTED_MODULE_0__.fronteggHeaders),
|
|
23722
24031
|
/* harmony export */ "fronteggRefreshTokenUrl": () => (/* reexport safe */ _routers__WEBPACK_IMPORTED_MODULE_4__.fronteggRefreshTokenUrl),
|
|
@@ -23728,30 +24037,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23728
24037
|
/* harmony export */ "loadFeatureFlags": () => (/* reexport safe */ _feature_flags_index__WEBPACK_IMPORTED_MODULE_5__.loadFeatureFlags),
|
|
23729
24038
|
/* harmony export */ "updateConfiguration": () => (/* reexport safe */ _directory_index__WEBPACK_IMPORTED_MODULE_6__.updateConfiguration)
|
|
23730
24039
|
/* harmony export */ });
|
|
23731
|
-
/* harmony import */ var
|
|
23732
|
-
/* harmony import */ var
|
|
23733
|
-
/* harmony import */ var
|
|
23734
|
-
/* harmony import */ var
|
|
23735
|
-
/* harmony import */ var
|
|
23736
|
-
/* harmony import */ var
|
|
23737
|
-
/* harmony import */ var
|
|
23738
|
-
/* harmony import */ var
|
|
23739
|
-
/* harmony import */ var
|
|
23740
|
-
/* harmony import */ var
|
|
23741
|
-
/* harmony import */ var
|
|
23742
|
-
/* harmony import */ var
|
|
23743
|
-
/* harmony import */ var
|
|
23744
|
-
/* harmony import */ var
|
|
23745
|
-
/* harmony import */ var
|
|
23746
|
-
/* harmony import */ var
|
|
23747
|
-
/* harmony import */ var
|
|
24040
|
+
/* harmony import */ var _auth__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./auth */ "../../node_modules/@frontegg/rest-api/auth/index.js");
|
|
24041
|
+
/* harmony import */ var _auth__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./auth */ "../../node_modules/@frontegg/rest-api/auth/enums.js");
|
|
24042
|
+
/* harmony import */ var _teams__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./teams */ "../../node_modules/@frontegg/rest-api/teams/index.js");
|
|
24043
|
+
/* harmony import */ var _metadata__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./metadata */ "../../node_modules/@frontegg/rest-api/metadata/index.js");
|
|
24044
|
+
/* harmony import */ var _reports__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./reports */ "../../node_modules/@frontegg/rest-api/reports/index.js");
|
|
24045
|
+
/* harmony import */ var _notifications__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./notifications */ "../../node_modules/@frontegg/rest-api/notifications/index.js");
|
|
24046
|
+
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./audits */ "../../node_modules/@frontegg/rest-api/audits/index.js");
|
|
24047
|
+
/* harmony import */ var _fetch__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./fetch */ "../../node_modules/@frontegg/rest-api/fetch.js");
|
|
24048
|
+
/* harmony import */ var _connectivity__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./connectivity */ "../../node_modules/@frontegg/rest-api/connectivity/index.js");
|
|
24049
|
+
/* harmony import */ var _tenants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./tenants */ "../../node_modules/@frontegg/rest-api/tenants/index.js");
|
|
24050
|
+
/* harmony import */ var _account_settings__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./account-settings */ "../../node_modules/@frontegg/rest-api/account-settings/index.js");
|
|
24051
|
+
/* harmony import */ var _roles__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./roles */ "../../node_modules/@frontegg/rest-api/roles/index.js");
|
|
24052
|
+
/* harmony import */ var _subscriptions__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./subscriptions */ "../../node_modules/@frontegg/rest-api/subscriptions/index.js");
|
|
24053
|
+
/* harmony import */ var _subscriptions__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./subscriptions */ "../../node_modules/@frontegg/rest-api/subscriptions/enums.js");
|
|
24054
|
+
/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./error */ "../../node_modules/@frontegg/rest-api/error.js");
|
|
24055
|
+
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./vendor */ "../../node_modules/@frontegg/rest-api/vendor/index.js");
|
|
24056
|
+
/* harmony import */ var _sub_tenants__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./sub-tenants */ "../../node_modules/@frontegg/rest-api/sub-tenants/index.js");
|
|
23748
24057
|
/* harmony import */ var _feature_flags_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./feature-flags/index */ "../../node_modules/@frontegg/rest-api/feature-flags/index.js");
|
|
23749
24058
|
/* harmony import */ var _directory_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./directory/index */ "../../node_modules/@frontegg/rest-api/directory/index.js");
|
|
23750
|
-
/* harmony import */ var
|
|
23751
|
-
/* harmony import */ var
|
|
23752
|
-
/* harmony import */ var
|
|
23753
|
-
/* harmony import */ var
|
|
23754
|
-
/* harmony import */ var
|
|
24059
|
+
/* harmony import */ var _impersonate__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./impersonate */ "../../node_modules/@frontegg/rest-api/impersonate/index.js");
|
|
24060
|
+
/* harmony import */ var _groups__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./groups */ "../../node_modules/@frontegg/rest-api/groups/index.js");
|
|
24061
|
+
/* harmony import */ var _users__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./users */ "../../node_modules/@frontegg/rest-api/users/index.js");
|
|
24062
|
+
/* harmony import */ var _entitlements__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./entitlements */ "../../node_modules/@frontegg/rest-api/entitlements/index.js");
|
|
24063
|
+
/* harmony import */ var _ContextHolder__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./ContextHolder */ "../../node_modules/@frontegg/rest-api/ContextHolder/index.js");
|
|
23755
24064
|
/* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interfaces */ "../../node_modules/@frontegg/rest-api/interfaces.js");
|
|
23756
24065
|
/* harmony import */ var _auth_interfaces__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./auth/interfaces */ "../../node_modules/@frontegg/rest-api/auth/interfaces.js");
|
|
23757
24066
|
/* harmony import */ var _teams_interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./teams/interfaces */ "../../node_modules/@frontegg/rest-api/teams/interfaces.js");
|
|
@@ -23760,7 +24069,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23760
24069
|
/* harmony import */ var _directory_interfaces__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./directory/interfaces */ "../../node_modules/@frontegg/rest-api/directory/interfaces.js");
|
|
23761
24070
|
/* harmony import */ var _groups_enums__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./groups/enums */ "../../node_modules/@frontegg/rest-api/groups/enums.js");
|
|
23762
24071
|
/* harmony import */ var _users_interfaces__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./users/interfaces */ "../../node_modules/@frontegg/rest-api/users/interfaces.js");
|
|
23763
|
-
|
|
24072
|
+
/* harmony import */ var _entitlements_interfaces__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./entitlements/interfaces */ "../../node_modules/@frontegg/rest-api/entitlements/interfaces.js");
|
|
24073
|
+
/** @license Frontegg v3.0.136
|
|
23764
24074
|
*
|
|
23765
24075
|
* This source code is licensed under the MIT license found in the
|
|
23766
24076
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -23814,40 +24124,40 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23814
24124
|
|
|
23815
24125
|
|
|
23816
24126
|
const api = {
|
|
23817
|
-
auth:
|
|
23818
|
-
teams:
|
|
23819
|
-
metadata:
|
|
23820
|
-
reports:
|
|
23821
|
-
connectivity:
|
|
23822
|
-
notifications:
|
|
23823
|
-
audits:
|
|
23824
|
-
tenants:
|
|
23825
|
-
accountSettings:
|
|
23826
|
-
roles:
|
|
23827
|
-
subscriptions:
|
|
23828
|
-
vendor:
|
|
23829
|
-
subTenants:
|
|
24127
|
+
auth: _auth__WEBPACK_IMPORTED_MODULE_11__,
|
|
24128
|
+
teams: _teams__WEBPACK_IMPORTED_MODULE_12__,
|
|
24129
|
+
metadata: _metadata__WEBPACK_IMPORTED_MODULE_13__,
|
|
24130
|
+
reports: _reports__WEBPACK_IMPORTED_MODULE_14__,
|
|
24131
|
+
connectivity: _connectivity__WEBPACK_IMPORTED_MODULE_15__,
|
|
24132
|
+
notifications: _notifications__WEBPACK_IMPORTED_MODULE_16__,
|
|
24133
|
+
audits: _audits__WEBPACK_IMPORTED_MODULE_17__,
|
|
24134
|
+
tenants: _tenants__WEBPACK_IMPORTED_MODULE_18__,
|
|
24135
|
+
accountSettings: _account_settings__WEBPACK_IMPORTED_MODULE_19__,
|
|
24136
|
+
roles: _roles__WEBPACK_IMPORTED_MODULE_20__,
|
|
24137
|
+
subscriptions: _subscriptions__WEBPACK_IMPORTED_MODULE_21__,
|
|
24138
|
+
vendor: _vendor__WEBPACK_IMPORTED_MODULE_22__,
|
|
24139
|
+
subTenants: _sub_tenants__WEBPACK_IMPORTED_MODULE_23__,
|
|
23830
24140
|
featureFlags: _feature_flags_index__WEBPACK_IMPORTED_MODULE_5__,
|
|
23831
24141
|
directory: _directory_index__WEBPACK_IMPORTED_MODULE_6__,
|
|
23832
|
-
impersonate:
|
|
23833
|
-
groups:
|
|
23834
|
-
users:
|
|
23835
|
-
entitlements:
|
|
24142
|
+
impersonate: _impersonate__WEBPACK_IMPORTED_MODULE_24__,
|
|
24143
|
+
groups: _groups__WEBPACK_IMPORTED_MODULE_25__,
|
|
24144
|
+
users: _users__WEBPACK_IMPORTED_MODULE_26__,
|
|
24145
|
+
entitlements: _entitlements__WEBPACK_IMPORTED_MODULE_27__
|
|
23836
24146
|
};
|
|
23837
24147
|
|
|
23838
24148
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
23839
|
-
fetch:
|
|
23840
|
-
ContextHolder:
|
|
23841
|
-
FronteggContext:
|
|
24149
|
+
fetch: _fetch__WEBPACK_IMPORTED_MODULE_28__,
|
|
24150
|
+
ContextHolder: _ContextHolder__WEBPACK_IMPORTED_MODULE_29__.ContextHolder,
|
|
24151
|
+
FronteggContext: _ContextHolder__WEBPACK_IMPORTED_MODULE_29__.FronteggContext,
|
|
23842
24152
|
api,
|
|
23843
|
-
FronteggApiError:
|
|
23844
|
-
AuthStrategyEnum:
|
|
23845
|
-
MachineToMachineAuthStrategy:
|
|
23846
|
-
SocialLoginProviders:
|
|
23847
|
-
ISubscriptionCancellationPolicy:
|
|
23848
|
-
ISubscriptionStatus:
|
|
23849
|
-
PaymentMethodType:
|
|
23850
|
-
ProviderType:
|
|
24153
|
+
FronteggApiError: _error__WEBPACK_IMPORTED_MODULE_30__.FronteggApiError,
|
|
24154
|
+
AuthStrategyEnum: _auth__WEBPACK_IMPORTED_MODULE_31__.AuthStrategyEnum,
|
|
24155
|
+
MachineToMachineAuthStrategy: _auth__WEBPACK_IMPORTED_MODULE_31__.MachineToMachineAuthStrategy,
|
|
24156
|
+
SocialLoginProviders: _auth__WEBPACK_IMPORTED_MODULE_31__.SocialLoginProviders,
|
|
24157
|
+
ISubscriptionCancellationPolicy: _subscriptions__WEBPACK_IMPORTED_MODULE_32__.ISubscriptionCancellationPolicy,
|
|
24158
|
+
ISubscriptionStatus: _subscriptions__WEBPACK_IMPORTED_MODULE_32__.ISubscriptionStatus,
|
|
24159
|
+
PaymentMethodType: _subscriptions__WEBPACK_IMPORTED_MODULE_32__.PaymentMethodType,
|
|
24160
|
+
ProviderType: _subscriptions__WEBPACK_IMPORTED_MODULE_32__.ProviderType
|
|
23851
24161
|
});
|
|
23852
24162
|
|
|
23853
24163
|
/***/ }),
|
|
@@ -30442,6 +30752,63 @@ var deepmerge_1 = deepmerge;
|
|
|
30442
30752
|
module.exports = deepmerge_1;
|
|
30443
30753
|
|
|
30444
30754
|
|
|
30755
|
+
/***/ }),
|
|
30756
|
+
|
|
30757
|
+
/***/ "../../node_modules/fast-deep-equal/index.js":
|
|
30758
|
+
/*!***************************************************!*\
|
|
30759
|
+
!*** ../../node_modules/fast-deep-equal/index.js ***!
|
|
30760
|
+
\***************************************************/
|
|
30761
|
+
/***/ ((module) => {
|
|
30762
|
+
|
|
30763
|
+
"use strict";
|
|
30764
|
+
|
|
30765
|
+
|
|
30766
|
+
// do not edit .js files directly - edit src/index.jst
|
|
30767
|
+
|
|
30768
|
+
|
|
30769
|
+
|
|
30770
|
+
module.exports = function equal(a, b) {
|
|
30771
|
+
if (a === b) return true;
|
|
30772
|
+
|
|
30773
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
30774
|
+
if (a.constructor !== b.constructor) return false;
|
|
30775
|
+
|
|
30776
|
+
var length, i, keys;
|
|
30777
|
+
if (Array.isArray(a)) {
|
|
30778
|
+
length = a.length;
|
|
30779
|
+
if (length != b.length) return false;
|
|
30780
|
+
for (i = length; i-- !== 0;)
|
|
30781
|
+
if (!equal(a[i], b[i])) return false;
|
|
30782
|
+
return true;
|
|
30783
|
+
}
|
|
30784
|
+
|
|
30785
|
+
|
|
30786
|
+
|
|
30787
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
30788
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
30789
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
30790
|
+
|
|
30791
|
+
keys = Object.keys(a);
|
|
30792
|
+
length = keys.length;
|
|
30793
|
+
if (length !== Object.keys(b).length) return false;
|
|
30794
|
+
|
|
30795
|
+
for (i = length; i-- !== 0;)
|
|
30796
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
30797
|
+
|
|
30798
|
+
for (i = length; i-- !== 0;) {
|
|
30799
|
+
var key = keys[i];
|
|
30800
|
+
|
|
30801
|
+
if (!equal(a[key], b[key])) return false;
|
|
30802
|
+
}
|
|
30803
|
+
|
|
30804
|
+
return true;
|
|
30805
|
+
}
|
|
30806
|
+
|
|
30807
|
+
// true if both NaN, false otherwise
|
|
30808
|
+
return a!==a && b!==b;
|
|
30809
|
+
};
|
|
30810
|
+
|
|
30811
|
+
|
|
30445
30812
|
/***/ }),
|
|
30446
30813
|
|
|
30447
30814
|
/***/ "../../node_modules/redux-saga/dist/redux-saga-core-npm-proxy.esm.js":
|