@frontegg/js 6.96.0-alpha.2 → 6.97.0-alpha.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/index.js +1 -1
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +309 -198
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
|
@@ -1204,7 +1204,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1204
1204
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1205
1205
|
/* harmony export */ });
|
|
1206
1206
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1207
|
-
cdnVersion: '6.
|
|
1207
|
+
cdnVersion: '6.97.0-alpha.0'
|
|
1208
1208
|
});
|
|
1209
1209
|
|
|
1210
1210
|
/***/ }),
|
|
@@ -3611,15 +3611,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3611
3611
|
/* harmony export */ "customLoginSagasMock": () => (/* binding */ customLoginSagasMock),
|
|
3612
3612
|
/* harmony export */ "loadTenantMetadata": () => (/* binding */ loadTenantMetadata)
|
|
3613
3613
|
/* harmony export */ });
|
|
3614
|
-
/* harmony import */ var
|
|
3615
|
-
/* harmony import */ var
|
|
3616
|
-
/* harmony import */ var
|
|
3617
|
-
/* harmony import */ var
|
|
3618
|
-
/* harmony import */ var
|
|
3619
|
-
/* harmony import */ var
|
|
3620
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "../../dist/@frontegg/redux-store/auth/utils.js");
|
|
3621
|
-
/* harmony import */ var _ProfileState_saga__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ProfileState/saga */ "../../dist/@frontegg/redux-store/auth/ProfileState/saga.js");
|
|
3622
|
-
|
|
3614
|
+
/* 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");
|
|
3615
|
+
/* harmony import */ var _frontegg_rest_api_metadata__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @frontegg/rest-api/metadata */ "../../node_modules/@frontegg/rest-api/metadata/index.js");
|
|
3616
|
+
/* 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");
|
|
3617
|
+
/* harmony import */ var _reducer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../reducer */ "../../dist/@frontegg/redux-store/auth/reducer.js");
|
|
3618
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils */ "../../dist/@frontegg/redux-store/auth/utils.js");
|
|
3619
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ "../../dist/@frontegg/redux-store/auth/CustomLoginState/utils.js");
|
|
3623
3620
|
|
|
3624
3621
|
const _excluded = ["callback"],
|
|
3625
3622
|
_excluded2 = ["callback"];
|
|
@@ -3628,101 +3625,53 @@ const _excluded = ["callback"],
|
|
|
3628
3625
|
|
|
3629
3626
|
|
|
3630
3627
|
|
|
3631
|
-
|
|
3632
3628
|
function* loadTenantMetadata() {
|
|
3633
|
-
yield (0,
|
|
3629
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.setCustomLoginState({
|
|
3634
3630
|
loading: true
|
|
3635
3631
|
}));
|
|
3636
3632
|
try {
|
|
3637
|
-
const tenantMetadata = yield (0,
|
|
3638
|
-
yield (0,
|
|
3633
|
+
const tenantMetadata = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.call)(_frontegg_rest_api_metadata__WEBPACK_IMPORTED_MODULE_3__.getAdminBoxMetadata);
|
|
3634
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.setCustomLoginState({
|
|
3639
3635
|
tenantMetadata,
|
|
3640
3636
|
loading: false
|
|
3641
3637
|
}));
|
|
3642
3638
|
} catch (e) {
|
|
3643
|
-
yield (0,
|
|
3639
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.setCustomLoginState({
|
|
3644
3640
|
loading: false,
|
|
3645
3641
|
error: e.message
|
|
3646
3642
|
}));
|
|
3647
3643
|
}
|
|
3648
3644
|
}
|
|
3649
|
-
const mapObjectToActions = (obj, path = []) => {
|
|
3650
|
-
return Object.entries(obj).reduce((acc, [key, value]) => {
|
|
3651
|
-
if (typeof value === 'object') {
|
|
3652
|
-
return [...acc, ...mapObjectToActions(value, [...path, key])];
|
|
3653
|
-
}
|
|
3654
|
-
return [...acc, {
|
|
3655
|
-
type: [...path, key].join('/'),
|
|
3656
|
-
payload: value
|
|
3657
|
-
}];
|
|
3658
|
-
}, []);
|
|
3659
|
-
};
|
|
3660
|
-
function* uploadLogo(logo) {
|
|
3661
|
-
const isLogoInBase64 = logo.match(/^data:image\/([A-Za-z-+\/]+);base64,(.+)$/);
|
|
3662
|
-
if (isLogoInBase64) {
|
|
3663
|
-
const logoFormData = (0,_ProfileState_saga__WEBPACK_IMPORTED_MODULE_5__.base64ToFormData)(logo, 'image');
|
|
3664
|
-
if (logoFormData) {
|
|
3665
|
-
// TODO: replace updateProfileImage with new backend upload logo route (not implemented yet)
|
|
3666
|
-
let logoUrl = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_6__.api.teams.updateProfileImage, logoFormData);
|
|
3667
|
-
if (logoUrl) {
|
|
3668
|
-
const imageTimeStamp = Date.now().toString();
|
|
3669
|
-
const urlTemplate = new URL(logoUrl);
|
|
3670
|
-
urlTemplate.searchParams.set('t', imageTimeStamp);
|
|
3671
|
-
logoUrl = urlTemplate.href;
|
|
3672
|
-
return logoUrl;
|
|
3673
|
-
}
|
|
3674
|
-
}
|
|
3675
|
-
}
|
|
3676
|
-
}
|
|
3677
3645
|
function* updateTenantMetadata(_ref) {
|
|
3678
3646
|
let {
|
|
3679
3647
|
payload: {
|
|
3680
3648
|
callback
|
|
3681
3649
|
}
|
|
3682
3650
|
} = _ref,
|
|
3683
|
-
state = (0,
|
|
3651
|
+
state = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref.payload, _excluded);
|
|
3684
3652
|
try {
|
|
3685
|
-
|
|
3686
|
-
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_3__.actions.setCustomLoginState({
|
|
3653
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.setCustomLoginState({
|
|
3687
3654
|
error: null,
|
|
3688
3655
|
saving: true
|
|
3689
3656
|
}));
|
|
3690
|
-
|
|
3691
|
-
loginBox
|
|
3692
|
-
} = state;
|
|
3693
|
-
if (!loginBox) {
|
|
3657
|
+
if (!state.loginBox) {
|
|
3694
3658
|
throw new Error('no changes to update');
|
|
3695
3659
|
}
|
|
3696
|
-
|
|
3697
|
-
if ((_loginBox$logo = loginBox.logo) != null && _loginBox$logo.image) {
|
|
3698
|
-
const logoUrl = yield uploadLogo(loginBox.logo.image);
|
|
3699
|
-
if (logoUrl) {
|
|
3700
|
-
calculatedState = {
|
|
3701
|
-
loginBox: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, calculatedState.loginBox, {
|
|
3702
|
-
logo: {
|
|
3703
|
-
image: logoUrl
|
|
3704
|
-
}
|
|
3705
|
-
})
|
|
3706
|
-
};
|
|
3707
|
-
} else {
|
|
3708
|
-
throw new Error('could not upload logo');
|
|
3709
|
-
}
|
|
3710
|
-
}
|
|
3711
|
-
const requestActions = mapObjectToActions(calculatedState);
|
|
3660
|
+
const requestActions = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.mapMetaDataObjectToActions)(state);
|
|
3712
3661
|
if (requestActions.length === 0) {
|
|
3713
3662
|
throw new Error('no changes to update');
|
|
3714
3663
|
}
|
|
3715
|
-
yield (0,
|
|
3664
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.call)(_frontegg_rest_api_metadata__WEBPACK_IMPORTED_MODULE_3__.updateAdminBoxMetadata, {
|
|
3716
3665
|
actions: requestActions
|
|
3717
3666
|
});
|
|
3718
|
-
const tenantMetadata = yield (0,
|
|
3719
|
-
yield (0,
|
|
3667
|
+
const tenantMetadata = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.call)(_frontegg_rest_api_metadata__WEBPACK_IMPORTED_MODULE_3__.getAdminBoxMetadata);
|
|
3668
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.setCustomLoginState({
|
|
3720
3669
|
tenantMetadata,
|
|
3721
3670
|
saving: false
|
|
3722
3671
|
}));
|
|
3723
3672
|
callback == null ? void 0 : callback(true);
|
|
3724
3673
|
} catch (e) {
|
|
3725
|
-
yield (0,
|
|
3674
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.setCustomLoginState({
|
|
3726
3675
|
error: e.message,
|
|
3727
3676
|
saving: false
|
|
3728
3677
|
}));
|
|
@@ -3730,8 +3679,8 @@ function* updateTenantMetadata(_ref) {
|
|
|
3730
3679
|
}
|
|
3731
3680
|
}
|
|
3732
3681
|
function* customLoginSagas() {
|
|
3733
|
-
yield (0,
|
|
3734
|
-
yield (0,
|
|
3682
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLeading)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.loadTenantMetadata, loadTenantMetadata);
|
|
3683
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLeading)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.updateTenantMetadata, updateTenantMetadata);
|
|
3735
3684
|
}
|
|
3736
3685
|
|
|
3737
3686
|
// /*********************************
|
|
@@ -3739,11 +3688,11 @@ function* customLoginSagas() {
|
|
|
3739
3688
|
// *********************************/
|
|
3740
3689
|
|
|
3741
3690
|
function* loadCustomLoginStateMock() {
|
|
3742
|
-
yield (0,
|
|
3691
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.setCustomLoginState({
|
|
3743
3692
|
loading: true
|
|
3744
3693
|
}));
|
|
3745
|
-
yield (0,
|
|
3746
|
-
yield (0,
|
|
3694
|
+
yield (0,_utils__WEBPACK_IMPORTED_MODULE_5__.delay)();
|
|
3695
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.setCustomLoginState({
|
|
3747
3696
|
loading: false
|
|
3748
3697
|
}));
|
|
3749
3698
|
}
|
|
@@ -3753,25 +3702,50 @@ function* updateCustomLoginMetadataMock(_ref2) {
|
|
|
3753
3702
|
callback
|
|
3754
3703
|
}
|
|
3755
3704
|
} = _ref2,
|
|
3756
|
-
payload = (0,
|
|
3757
|
-
yield (0,
|
|
3705
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref2.payload, _excluded2);
|
|
3706
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.setCustomLoginState({
|
|
3758
3707
|
loading: true,
|
|
3759
3708
|
error: null
|
|
3760
3709
|
}));
|
|
3761
|
-
yield (0,
|
|
3762
|
-
yield (0,
|
|
3710
|
+
yield (0,_utils__WEBPACK_IMPORTED_MODULE_5__.delay)();
|
|
3711
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.setCustomLoginState({
|
|
3763
3712
|
loading: false,
|
|
3764
3713
|
error: null
|
|
3765
3714
|
}));
|
|
3766
3715
|
callback == null ? void 0 : callback(true);
|
|
3767
3716
|
}
|
|
3768
3717
|
function* customLoginSagasMock() {
|
|
3769
|
-
yield (0,
|
|
3770
|
-
yield (0,
|
|
3718
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLeading)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.loadTenantMetadata, loadCustomLoginStateMock);
|
|
3719
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLeading)(_reducer__WEBPACK_IMPORTED_MODULE_2__.actions.updateTenantMetadata, updateCustomLoginMetadataMock);
|
|
3771
3720
|
}
|
|
3772
3721
|
|
|
3773
3722
|
/***/ }),
|
|
3774
3723
|
|
|
3724
|
+
/***/ "../../dist/@frontegg/redux-store/auth/CustomLoginState/utils.js":
|
|
3725
|
+
/*!***********************************************************************!*\
|
|
3726
|
+
!*** ../../dist/@frontegg/redux-store/auth/CustomLoginState/utils.js ***!
|
|
3727
|
+
\***********************************************************************/
|
|
3728
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3729
|
+
|
|
3730
|
+
"use strict";
|
|
3731
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3732
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3733
|
+
/* harmony export */ "mapMetaDataObjectToActions": () => (/* binding */ mapMetaDataObjectToActions)
|
|
3734
|
+
/* harmony export */ });
|
|
3735
|
+
const mapMetaDataObjectToActions = (obj, path = []) => {
|
|
3736
|
+
return Object.entries(obj).reduce((acc, [key, value]) => {
|
|
3737
|
+
if (typeof value === 'object') {
|
|
3738
|
+
return [...acc, ...mapMetaDataObjectToActions(value, [...path, key])];
|
|
3739
|
+
}
|
|
3740
|
+
return [...acc, {
|
|
3741
|
+
type: [...path, key].join('/'),
|
|
3742
|
+
payload: value
|
|
3743
|
+
}];
|
|
3744
|
+
}, []);
|
|
3745
|
+
};
|
|
3746
|
+
|
|
3747
|
+
/***/ }),
|
|
3748
|
+
|
|
3775
3749
|
/***/ "../../dist/@frontegg/redux-store/auth/ForgotPasswordState/index.js":
|
|
3776
3750
|
/*!**************************************************************************!*\
|
|
3777
3751
|
!*** ../../dist/@frontegg/redux-store/auth/ForgotPasswordState/index.js ***!
|
|
@@ -4823,6 +4797,57 @@ function* groupsSagasMock() {
|
|
|
4823
4797
|
|
|
4824
4798
|
/***/ }),
|
|
4825
4799
|
|
|
4800
|
+
/***/ "../../dist/@frontegg/redux-store/auth/Helpers/base64ToFormData.js":
|
|
4801
|
+
/*!*************************************************************************!*\
|
|
4802
|
+
!*** ../../dist/@frontegg/redux-store/auth/Helpers/base64ToFormData.js ***!
|
|
4803
|
+
\*************************************************************************/
|
|
4804
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4805
|
+
|
|
4806
|
+
"use strict";
|
|
4807
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4808
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4809
|
+
/* harmony export */ "base64ToFormData": () => (/* binding */ base64ToFormData)
|
|
4810
|
+
/* harmony export */ });
|
|
4811
|
+
function b64toBlob(base64, contentType) {
|
|
4812
|
+
const sliceSize = 512;
|
|
4813
|
+
const byteCharacters = atob(base64);
|
|
4814
|
+
const byteArrays = [];
|
|
4815
|
+
for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
|
|
4816
|
+
const slice = byteCharacters.slice(offset, offset + sliceSize);
|
|
4817
|
+
const byteNumbers = new Array(slice.length);
|
|
4818
|
+
for (let i = 0; i < slice.length; i++) {
|
|
4819
|
+
byteNumbers[i] = slice.charCodeAt(i);
|
|
4820
|
+
}
|
|
4821
|
+
byteArrays.push(new Uint8Array(byteNumbers));
|
|
4822
|
+
}
|
|
4823
|
+
return new Blob(byteArrays, {
|
|
4824
|
+
type: contentType
|
|
4825
|
+
});
|
|
4826
|
+
}
|
|
4827
|
+
function base64ToFormData(base64, key = 'file') {
|
|
4828
|
+
const matchResult = base64.match(/^data:image\/([A-Za-z-+\/]+);base64,(.+)$/);
|
|
4829
|
+
if (matchResult == null) {
|
|
4830
|
+
return null;
|
|
4831
|
+
}
|
|
4832
|
+
|
|
4833
|
+
// Get the content type of the image
|
|
4834
|
+
const contentType = `image/${matchResult[1]}`;
|
|
4835
|
+
// get the real base64 content of the file
|
|
4836
|
+
const data = matchResult[2];
|
|
4837
|
+
|
|
4838
|
+
// Convert it to a blob to upload
|
|
4839
|
+
const blob = b64toBlob(data, contentType);
|
|
4840
|
+
|
|
4841
|
+
// Create a FormData and append the file with "image" as parameter name
|
|
4842
|
+
const formDataToUpload = new FormData();
|
|
4843
|
+
formDataToUpload.append(key, new File([blob], key, {
|
|
4844
|
+
type: contentType
|
|
4845
|
+
}));
|
|
4846
|
+
return formDataToUpload;
|
|
4847
|
+
}
|
|
4848
|
+
|
|
4849
|
+
/***/ }),
|
|
4850
|
+
|
|
4826
4851
|
/***/ "../../dist/@frontegg/redux-store/auth/Helpers/index.js":
|
|
4827
4852
|
/*!**************************************************************!*\
|
|
4828
4853
|
!*** ../../dist/@frontegg/redux-store/auth/Helpers/index.js ***!
|
|
@@ -4832,9 +4857,12 @@ function* groupsSagasMock() {
|
|
|
4832
4857
|
"use strict";
|
|
4833
4858
|
__webpack_require__.r(__webpack_exports__);
|
|
4834
4859
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4860
|
+
/* harmony export */ "base64ToFormData": () => (/* reexport safe */ _base64ToFormData__WEBPACK_IMPORTED_MODULE_1__.base64ToFormData),
|
|
4835
4861
|
/* harmony export */ "isAuthRoute": () => (/* reexport safe */ _isAuthRoute__WEBPACK_IMPORTED_MODULE_0__.isAuthRoute)
|
|
4836
4862
|
/* harmony export */ });
|
|
4837
4863
|
/* harmony import */ var _isAuthRoute__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isAuthRoute */ "../../dist/@frontegg/redux-store/auth/Helpers/isAuthRoute.js");
|
|
4864
|
+
/* harmony import */ var _base64ToFormData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base64ToFormData */ "../../dist/@frontegg/redux-store/auth/Helpers/base64ToFormData.js");
|
|
4865
|
+
|
|
4838
4866
|
|
|
4839
4867
|
|
|
4840
4868
|
/***/ }),
|
|
@@ -8217,7 +8245,6 @@ const Matcher = {};
|
|
|
8217
8245
|
"use strict";
|
|
8218
8246
|
__webpack_require__.r(__webpack_exports__);
|
|
8219
8247
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8220
|
-
/* harmony export */ "base64ToFormData": () => (/* binding */ base64ToFormData),
|
|
8221
8248
|
/* harmony export */ "profileSagas": () => (/* binding */ profileSagas),
|
|
8222
8249
|
/* harmony export */ "profileSagasMock": () => (/* binding */ profileSagasMock)
|
|
8223
8250
|
/* harmony export */ });
|
|
@@ -8226,8 +8253,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8226
8253
|
/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux-saga/effects */ "../../node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js");
|
|
8227
8254
|
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/index.js");
|
|
8228
8255
|
/* harmony import */ var _reducer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../reducer */ "../../dist/@frontegg/redux-store/auth/reducer.js");
|
|
8229
|
-
/* harmony import */ var
|
|
8230
|
-
/* harmony import */ var
|
|
8256
|
+
/* harmony import */ var _dummy__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../dummy */ "../../dist/@frontegg/redux-store/auth/dummy.js");
|
|
8257
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "../../dist/@frontegg/redux-store/auth/utils.js");
|
|
8258
|
+
/* harmony import */ var _Helpers_base64ToFormData__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Helpers/base64ToFormData */ "../../dist/@frontegg/redux-store/auth/Helpers/base64ToFormData.js");
|
|
8231
8259
|
|
|
8232
8260
|
|
|
8233
8261
|
const _excluded = ["callback", "profilePictureUrl"],
|
|
@@ -8237,6 +8265,7 @@ const _excluded = ["callback", "profilePictureUrl"],
|
|
|
8237
8265
|
|
|
8238
8266
|
|
|
8239
8267
|
|
|
8268
|
+
|
|
8240
8269
|
function* loadProfile() {
|
|
8241
8270
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_3__.actions.setProfileState({
|
|
8242
8271
|
loading: true
|
|
@@ -8256,43 +8285,6 @@ function* loadProfile() {
|
|
|
8256
8285
|
}));
|
|
8257
8286
|
}
|
|
8258
8287
|
}
|
|
8259
|
-
function b64toBlob(base64, contentType) {
|
|
8260
|
-
const sliceSize = 512;
|
|
8261
|
-
const byteCharacters = atob(base64);
|
|
8262
|
-
const byteArrays = [];
|
|
8263
|
-
for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
|
|
8264
|
-
const slice = byteCharacters.slice(offset, offset + sliceSize);
|
|
8265
|
-
const byteNumbers = new Array(slice.length);
|
|
8266
|
-
for (let i = 0; i < slice.length; i++) {
|
|
8267
|
-
byteNumbers[i] = slice.charCodeAt(i);
|
|
8268
|
-
}
|
|
8269
|
-
byteArrays.push(new Uint8Array(byteNumbers));
|
|
8270
|
-
}
|
|
8271
|
-
return new Blob(byteArrays, {
|
|
8272
|
-
type: contentType
|
|
8273
|
-
});
|
|
8274
|
-
}
|
|
8275
|
-
function base64ToFormData(base64, key = 'file') {
|
|
8276
|
-
const matchResult = base64.match(/^data:image\/([A-Za-z-+\/]+);base64,(.+)$/);
|
|
8277
|
-
if (matchResult == null) {
|
|
8278
|
-
return null;
|
|
8279
|
-
}
|
|
8280
|
-
|
|
8281
|
-
// Get the content type of the image
|
|
8282
|
-
const contentType = `image/${matchResult[1]}`;
|
|
8283
|
-
// get the real base64 content of the file
|
|
8284
|
-
const data = matchResult[2];
|
|
8285
|
-
|
|
8286
|
-
// Convert it to a blob to upload
|
|
8287
|
-
const blob = b64toBlob(data, contentType);
|
|
8288
|
-
|
|
8289
|
-
// Create a FormData and append the file with "image" as parameter name
|
|
8290
|
-
const formDataToUpload = new FormData();
|
|
8291
|
-
formDataToUpload.append(key, new File([blob], key, {
|
|
8292
|
-
type: contentType
|
|
8293
|
-
}));
|
|
8294
|
-
return formDataToUpload;
|
|
8295
|
-
}
|
|
8296
8288
|
function* saveProfile(_ref) {
|
|
8297
8289
|
let {
|
|
8298
8290
|
payload: {
|
|
@@ -8312,7 +8304,7 @@ function* saveProfile(_ref) {
|
|
|
8312
8304
|
if (profilePictureUrl !== oldProfileData.profilePictureUrl && profilePictureUrl) {
|
|
8313
8305
|
const matchResult = (profilePictureUrl || '').match(/^data:image\/([A-Za-z-+\/]+);base64,(.+)$/);
|
|
8314
8306
|
if (matchResult) {
|
|
8315
|
-
const profileImage = base64ToFormData(profilePictureUrl, 'image');
|
|
8307
|
+
const profileImage = (0,_Helpers_base64ToFormData__WEBPACK_IMPORTED_MODULE_5__.base64ToFormData)(profilePictureUrl, 'image');
|
|
8316
8308
|
if (profileImage) {
|
|
8317
8309
|
newProfilePictureUrl = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_4__.api.teams.updateProfileImage, profileImage);
|
|
8318
8310
|
const imageTimeStamp = Date.now().toString();
|
|
@@ -8380,11 +8372,11 @@ function* loadProfileMock() {
|
|
|
8380
8372
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_3__.actions.setProfileState({
|
|
8381
8373
|
loading: true
|
|
8382
8374
|
}));
|
|
8383
|
-
yield (0,
|
|
8384
|
-
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_3__.actions.setUser((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({},
|
|
8375
|
+
yield (0,_utils__WEBPACK_IMPORTED_MODULE_6__.delay)();
|
|
8376
|
+
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_3__.actions.setUser((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _dummy__WEBPACK_IMPORTED_MODULE_7__.userDemo, _dummy__WEBPACK_IMPORTED_MODULE_7__.userProfileDemo)));
|
|
8385
8377
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_3__.actions.setProfileState({
|
|
8386
8378
|
loading: false,
|
|
8387
|
-
profile:
|
|
8379
|
+
profile: _dummy__WEBPACK_IMPORTED_MODULE_7__.userProfileDemo
|
|
8388
8380
|
}));
|
|
8389
8381
|
}
|
|
8390
8382
|
function* saveProfileMock(_ref2) {
|
|
@@ -8399,7 +8391,7 @@ function* saveProfileMock(_ref2) {
|
|
|
8399
8391
|
saving: true,
|
|
8400
8392
|
error: null
|
|
8401
8393
|
}));
|
|
8402
|
-
const oldProfileData =
|
|
8394
|
+
const oldProfileData = _dummy__WEBPACK_IMPORTED_MODULE_7__.profileStateDemo;
|
|
8403
8395
|
let newProfilePictureUrl = oldProfileData.profile.profilePictureUrl;
|
|
8404
8396
|
if (profilePictureUrl !== oldProfileData.profile.profilePictureUrl && profilePictureUrl) {
|
|
8405
8397
|
const matchResult = (profilePictureUrl || '').match(/^data:image\/([A-Za-z-+\/]+);base64,(.+)$/);
|
|
@@ -8410,8 +8402,8 @@ function* saveProfileMock(_ref2) {
|
|
|
8410
8402
|
const newProfileData = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, oldProfileData.profile, payload, {
|
|
8411
8403
|
profilePictureUrl: newProfilePictureUrl
|
|
8412
8404
|
});
|
|
8413
|
-
const currentUser =
|
|
8414
|
-
yield (0,
|
|
8405
|
+
const currentUser = _dummy__WEBPACK_IMPORTED_MODULE_7__.userDemo;
|
|
8406
|
+
yield (0,_utils__WEBPACK_IMPORTED_MODULE_6__.delay)();
|
|
8415
8407
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_3__.actions.setUser((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, currentUser, newProfileData)));
|
|
8416
8408
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_3__.actions.setProfileState({
|
|
8417
8409
|
loading: false,
|
|
@@ -8428,7 +8420,7 @@ function* changePasswordMock({
|
|
|
8428
8420
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_3__.actions.setProfileState({
|
|
8429
8421
|
loading: true
|
|
8430
8422
|
}));
|
|
8431
|
-
yield (0,
|
|
8423
|
+
yield (0,_utils__WEBPACK_IMPORTED_MODULE_6__.delay)();
|
|
8432
8424
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_3__.actions.setProfileState({
|
|
8433
8425
|
loading: false,
|
|
8434
8426
|
error: undefined
|
|
@@ -14855,6 +14847,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14855
14847
|
/* harmony export */ "authReducers": () => (/* reexport safe */ _reducer__WEBPACK_IMPORTED_MODULE_40__.reducer),
|
|
14856
14848
|
/* harmony export */ "authSagas": () => (/* reexport safe */ _saga__WEBPACK_IMPORTED_MODULE_39__.sagas),
|
|
14857
14849
|
/* harmony export */ "authStoreName": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_42__.authStoreName),
|
|
14850
|
+
/* harmony export */ "base64ToFormData": () => (/* reexport safe */ _Helpers__WEBPACK_IMPORTED_MODULE_38__.base64ToFormData),
|
|
14858
14851
|
/* harmony export */ "customLoginActions": () => (/* reexport safe */ _CustomLoginState__WEBPACK_IMPORTED_MODULE_37__.customLoginActions),
|
|
14859
14852
|
/* harmony export */ "customLoginReducers": () => (/* reexport safe */ _CustomLoginState__WEBPACK_IMPORTED_MODULE_37__.customLoginReducers),
|
|
14860
14853
|
/* harmony export */ "customLoginState": () => (/* reexport safe */ _CustomLoginState__WEBPACK_IMPORTED_MODULE_37__.customLoginState),
|
|
@@ -19839,7 +19832,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19839
19832
|
/* harmony export */ });
|
|
19840
19833
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
19841
19834
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
19842
|
-
/** @license Frontegg v6.
|
|
19835
|
+
/** @license Frontegg v6.97.0-alpha.0
|
|
19843
19836
|
*
|
|
19844
19837
|
* This source code is licensed under the MIT license found in the
|
|
19845
19838
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -20287,7 +20280,7 @@ async function generateLoginResponseFromOAuthResponse(oauthResponse) {
|
|
|
20287
20280
|
accessToken: oauthResponse.id_token,
|
|
20288
20281
|
refreshToken: oauthResponse.refresh_token
|
|
20289
20282
|
}, decodedContent, me, {
|
|
20290
|
-
expiresIn:
|
|
20283
|
+
expiresIn: oauthResponse.expires_in || 300
|
|
20291
20284
|
});
|
|
20292
20285
|
|
|
20293
20286
|
_ContextHolder__WEBPACK_IMPORTED_MODULE_4__.ContextHolder.setUser(user);
|
|
@@ -21156,6 +21149,7 @@ const urls = {
|
|
|
21156
21149
|
users: {
|
|
21157
21150
|
v1: '/identity/resources/users/v1',
|
|
21158
21151
|
v2: '/identity/resources/users/v2',
|
|
21152
|
+
v3: '/identity/resources/users/v3',
|
|
21159
21153
|
apiTokens: {
|
|
21160
21154
|
v1: '/identity/resources/users/api-tokens/v1'
|
|
21161
21155
|
},
|
|
@@ -21216,6 +21210,9 @@ const urls = {
|
|
|
21216
21210
|
configuration: {
|
|
21217
21211
|
v1: '/identity/resources/tenants/invites/v1/configuration'
|
|
21218
21212
|
}
|
|
21213
|
+
},
|
|
21214
|
+
users: {
|
|
21215
|
+
v1: "/identity/resources/tenants/users/v1"
|
|
21219
21216
|
}
|
|
21220
21217
|
},
|
|
21221
21218
|
roles: {
|
|
@@ -21263,7 +21260,13 @@ const urls = {
|
|
|
21263
21260
|
v1: '/tenants/resources/hierarchy/v1',
|
|
21264
21261
|
tree: {
|
|
21265
21262
|
v1: '/tenants/resources/hierarchy/v1/tree'
|
|
21263
|
+
},
|
|
21264
|
+
parents: {
|
|
21265
|
+
v1: '/tenants/resources/hierarchy/v1/parents'
|
|
21266
21266
|
}
|
|
21267
|
+
},
|
|
21268
|
+
subTenants: {
|
|
21269
|
+
v1: '/tenants/resources/sub-tenants/resources/v1'
|
|
21267
21270
|
}
|
|
21268
21271
|
},
|
|
21269
21272
|
integrations: {
|
|
@@ -21523,6 +21526,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21523
21526
|
/* harmony export */ "Post": () => (/* binding */ Post),
|
|
21524
21527
|
/* harmony export */ "PostDownload": () => (/* binding */ PostDownload),
|
|
21525
21528
|
/* harmony export */ "Put": () => (/* binding */ Put),
|
|
21529
|
+
/* harmony export */ "extractHeadersFromOptions": () => (/* binding */ extractHeadersFromOptions),
|
|
21526
21530
|
/* harmony export */ "getBaseUrl": () => (/* binding */ getBaseUrl)
|
|
21527
21531
|
/* harmony export */ });
|
|
21528
21532
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
@@ -21743,6 +21747,9 @@ const PostDownload = async (url, body, params, opts) => sendRequest((0,_babel_ru
|
|
|
21743
21747
|
body,
|
|
21744
21748
|
params
|
|
21745
21749
|
}, opts));
|
|
21750
|
+
const extractHeadersFromOptions = (options = {}) => (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, options.jwt ? {
|
|
21751
|
+
Authorization: options.jwt
|
|
21752
|
+
} : {});
|
|
21746
21753
|
|
|
21747
21754
|
/***/ }),
|
|
21748
21755
|
|
|
@@ -21884,23 +21891,25 @@ async function impersonate(body) {
|
|
|
21884
21891
|
"use strict";
|
|
21885
21892
|
__webpack_require__.r(__webpack_exports__);
|
|
21886
21893
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21887
|
-
/* harmony export */ "AuthStrategyEnum": () => (/* reexport safe */
|
|
21888
|
-
/* harmony export */ "ContextHolder": () => (/* reexport safe */
|
|
21894
|
+
/* harmony export */ "AuthStrategyEnum": () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_28__.AuthStrategyEnum),
|
|
21895
|
+
/* harmony export */ "ContextHolder": () => (/* reexport safe */ _ContextHolder__WEBPACK_IMPORTED_MODULE_26__.ContextHolder),
|
|
21889
21896
|
/* harmony export */ "FeatureFlags": () => (/* reexport safe */ _feature_flags__WEBPACK_IMPORTED_MODULE_4__.FeatureFlags),
|
|
21890
|
-
/* harmony export */ "FronteggApiError": () => (/* reexport safe */
|
|
21891
|
-
/* harmony export */ "FronteggContext": () => (/* reexport safe */
|
|
21897
|
+
/* harmony export */ "FronteggApiError": () => (/* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_27__.FronteggApiError),
|
|
21898
|
+
/* harmony export */ "FronteggContext": () => (/* reexport safe */ _ContextHolder__WEBPACK_IMPORTED_MODULE_26__.FronteggContext),
|
|
21892
21899
|
/* harmony export */ "GroupManagedByEnum": () => (/* reexport safe */ _groups_enums__WEBPACK_IMPORTED_MODULE_7__.GroupManagedByEnum),
|
|
21893
21900
|
/* harmony export */ "GroupRelations": () => (/* reexport safe */ _groups_enums__WEBPACK_IMPORTED_MODULE_7__.GroupRelations),
|
|
21894
|
-
/* harmony export */ "ISubscriptionCancellationPolicy": () => (/* reexport safe */
|
|
21895
|
-
/* harmony export */ "ISubscriptionStatus": () => (/* reexport safe */
|
|
21901
|
+
/* harmony export */ "ISubscriptionCancellationPolicy": () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_29__.ISubscriptionCancellationPolicy),
|
|
21902
|
+
/* harmony export */ "ISubscriptionStatus": () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_29__.ISubscriptionStatus),
|
|
21896
21903
|
/* harmony export */ "MFAStrategyEnum": () => (/* reexport safe */ _auth_interfaces__WEBPACK_IMPORTED_MODULE_0__.MFAStrategyEnum),
|
|
21897
|
-
/* harmony export */ "MachineToMachineAuthStrategy": () => (/* reexport safe */
|
|
21898
|
-
/* harmony export */ "
|
|
21899
|
-
/* harmony export */ "
|
|
21904
|
+
/* harmony export */ "MachineToMachineAuthStrategy": () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_28__.MachineToMachineAuthStrategy),
|
|
21905
|
+
/* harmony export */ "PaginationOrderEnum": () => (/* reexport safe */ _users_interfaces__WEBPACK_IMPORTED_MODULE_8__.PaginationOrderEnum),
|
|
21906
|
+
/* harmony export */ "PaymentMethodType": () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_29__.PaymentMethodType),
|
|
21907
|
+
/* harmony export */ "ProviderType": () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_29__.ProviderType),
|
|
21900
21908
|
/* harmony export */ "RestrictionType": () => (/* reexport safe */ _auth_interfaces__WEBPACK_IMPORTED_MODULE_0__.RestrictionType),
|
|
21901
21909
|
/* harmony export */ "ScimConnectionSource": () => (/* reexport safe */ _directory_interfaces__WEBPACK_IMPORTED_MODULE_6__.ScimConnectionSource),
|
|
21902
21910
|
/* harmony export */ "SecondaryAuthStrategy": () => (/* reexport safe */ _auth_interfaces__WEBPACK_IMPORTED_MODULE_0__.SecondaryAuthStrategy),
|
|
21903
|
-
/* harmony export */ "SocialLoginProviders": () => (/* reexport safe */
|
|
21911
|
+
/* harmony export */ "SocialLoginProviders": () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_28__.SocialLoginProviders),
|
|
21912
|
+
/* harmony export */ "SortByEnum": () => (/* reexport safe */ _users_interfaces__WEBPACK_IMPORTED_MODULE_8__.SortByEnum),
|
|
21904
21913
|
/* harmony export */ "TenantType": () => (/* reexport safe */ _tenants_interfaces__WEBPACK_IMPORTED_MODULE_2__.TenantType),
|
|
21905
21914
|
/* harmony export */ "UserManagedByEnum": () => (/* reexport safe */ _teams_interfaces__WEBPACK_IMPORTED_MODULE_1__.UserManagedByEnum),
|
|
21906
21915
|
/* harmony export */ "WebAuthnDeviceType": () => (/* reexport safe */ _auth_interfaces__WEBPACK_IMPORTED_MODULE_0__.WebAuthnDeviceType),
|
|
@@ -21909,7 +21918,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21909
21918
|
/* harmony export */ "createConfiguration": () => (/* reexport safe */ _directory__WEBPACK_IMPORTED_MODULE_5__.createConfiguration),
|
|
21910
21919
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
21911
21920
|
/* harmony export */ "deleteConfiguration": () => (/* reexport safe */ _directory__WEBPACK_IMPORTED_MODULE_5__.deleteConfiguration),
|
|
21912
|
-
/* harmony export */ "fetch": () => (/* reexport module object */
|
|
21921
|
+
/* harmony export */ "fetch": () => (/* reexport module object */ _fetch__WEBPACK_IMPORTED_MODULE_25__),
|
|
21913
21922
|
/* harmony export */ "fronteggAuthApiRoutesRegex": () => (/* reexport safe */ _routers__WEBPACK_IMPORTED_MODULE_3__.fronteggAuthApiRoutesRegex),
|
|
21914
21923
|
/* harmony export */ "fronteggRefreshTokenUrl": () => (/* reexport safe */ _routers__WEBPACK_IMPORTED_MODULE_3__.fronteggRefreshTokenUrl),
|
|
21915
21924
|
/* harmony export */ "fronteggSilentRefreshTokenUrl": () => (/* reexport safe */ _routers__WEBPACK_IMPORTED_MODULE_3__.fronteggSilentRefreshTokenUrl),
|
|
@@ -21919,35 +21928,37 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21919
21928
|
/* harmony export */ "loadFeatureFlags": () => (/* reexport safe */ _feature_flags__WEBPACK_IMPORTED_MODULE_4__.loadFeatureFlags),
|
|
21920
21929
|
/* harmony export */ "updateConfiguration": () => (/* reexport safe */ _directory__WEBPACK_IMPORTED_MODULE_5__.updateConfiguration)
|
|
21921
21930
|
/* harmony export */ });
|
|
21922
|
-
/* harmony import */ var
|
|
21923
|
-
/* harmony import */ var
|
|
21924
|
-
/* harmony import */ var
|
|
21925
|
-
/* harmony import */ var
|
|
21926
|
-
/* harmony import */ var
|
|
21927
|
-
/* harmony import */ var
|
|
21928
|
-
/* harmony import */ var
|
|
21929
|
-
/* harmony import */ var
|
|
21930
|
-
/* harmony import */ var
|
|
21931
|
-
/* harmony import */ var
|
|
21932
|
-
/* harmony import */ var
|
|
21933
|
-
/* harmony import */ var
|
|
21934
|
-
/* harmony import */ var
|
|
21935
|
-
/* harmony import */ var
|
|
21936
|
-
/* harmony import */ var
|
|
21931
|
+
/* harmony import */ var _auth__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./auth */ "../../node_modules/@frontegg/rest-api/auth/index.js");
|
|
21932
|
+
/* harmony import */ var _auth__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./auth */ "../../node_modules/@frontegg/rest-api/auth/enums.js");
|
|
21933
|
+
/* harmony import */ var _teams__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./teams */ "../../node_modules/@frontegg/rest-api/teams/index.js");
|
|
21934
|
+
/* harmony import */ var _metadata__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./metadata */ "../../node_modules/@frontegg/rest-api/metadata/index.js");
|
|
21935
|
+
/* harmony import */ var _reports__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./reports */ "../../node_modules/@frontegg/rest-api/reports/index.js");
|
|
21936
|
+
/* harmony import */ var _notifications__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./notifications */ "../../node_modules/@frontegg/rest-api/notifications/index.js");
|
|
21937
|
+
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./audits */ "../../node_modules/@frontegg/rest-api/audits/index.js");
|
|
21938
|
+
/* harmony import */ var _fetch__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./fetch */ "../../node_modules/@frontegg/rest-api/fetch.js");
|
|
21939
|
+
/* harmony import */ var _connectivity__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./connectivity */ "../../node_modules/@frontegg/rest-api/connectivity/index.js");
|
|
21940
|
+
/* harmony import */ var _tenants__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./tenants */ "../../node_modules/@frontegg/rest-api/tenants/index.js");
|
|
21941
|
+
/* harmony import */ var _account_settings__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./account-settings */ "../../node_modules/@frontegg/rest-api/account-settings/index.js");
|
|
21942
|
+
/* harmony import */ var _roles__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./roles */ "../../node_modules/@frontegg/rest-api/roles/index.js");
|
|
21943
|
+
/* harmony import */ var _subscriptions__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./subscriptions */ "../../node_modules/@frontegg/rest-api/subscriptions/index.js");
|
|
21944
|
+
/* harmony import */ var _subscriptions__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./subscriptions */ "../../node_modules/@frontegg/rest-api/subscriptions/enums.js");
|
|
21945
|
+
/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./error */ "../../node_modules/@frontegg/rest-api/error.js");
|
|
21946
|
+
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./vendor */ "../../node_modules/@frontegg/rest-api/vendor/index.js");
|
|
21947
|
+
/* harmony import */ var _sub_tenants__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./sub-tenants */ "../../node_modules/@frontegg/rest-api/sub-tenants/index.js");
|
|
21937
21948
|
/* harmony import */ var _feature_flags__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./feature-flags */ "../../node_modules/@frontegg/rest-api/feature-flags/index.js");
|
|
21938
21949
|
/* harmony import */ var _directory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./directory */ "../../node_modules/@frontegg/rest-api/directory/index.js");
|
|
21939
|
-
/* harmony import */ var
|
|
21940
|
-
/* harmony import */ var
|
|
21941
|
-
/* harmony import */ var
|
|
21950
|
+
/* harmony import */ var _impersonate__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./impersonate */ "../../node_modules/@frontegg/rest-api/impersonate/index.js");
|
|
21951
|
+
/* harmony import */ var _groups__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./groups */ "../../node_modules/@frontegg/rest-api/groups/index.js");
|
|
21952
|
+
/* harmony import */ var _users__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./users */ "../../node_modules/@frontegg/rest-api/users/index.js");
|
|
21953
|
+
/* harmony import */ var _ContextHolder__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./ContextHolder */ "../../node_modules/@frontegg/rest-api/ContextHolder/index.js");
|
|
21942
21954
|
/* harmony import */ var _auth_interfaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./auth/interfaces */ "../../node_modules/@frontegg/rest-api/auth/interfaces.js");
|
|
21943
21955
|
/* harmony import */ var _teams_interfaces__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./teams/interfaces */ "../../node_modules/@frontegg/rest-api/teams/interfaces.js");
|
|
21944
21956
|
/* harmony import */ var _tenants_interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tenants/interfaces */ "../../node_modules/@frontegg/rest-api/tenants/interfaces.js");
|
|
21945
21957
|
/* harmony import */ var _routers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./routers */ "../../node_modules/@frontegg/rest-api/routers.js");
|
|
21946
21958
|
/* harmony import */ var _directory_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./directory/interfaces */ "../../node_modules/@frontegg/rest-api/directory/interfaces.js");
|
|
21947
21959
|
/* harmony import */ var _groups_enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./groups/enums */ "../../node_modules/@frontegg/rest-api/groups/enums.js");
|
|
21948
|
-
/* harmony import */ var
|
|
21949
|
-
|
|
21950
|
-
/** @license Frontegg v3.0.98
|
|
21960
|
+
/* harmony import */ var _users_interfaces__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./users/interfaces */ "../../node_modules/@frontegg/rest-api/users/interfaces.js");
|
|
21961
|
+
/** @license Frontegg v3.0.101
|
|
21951
21962
|
*
|
|
21952
21963
|
* This source code is licensed under the MIT license found in the
|
|
21953
21964
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -21993,42 +22004,45 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21993
22004
|
|
|
21994
22005
|
|
|
21995
22006
|
|
|
22007
|
+
|
|
22008
|
+
|
|
21996
22009
|
|
|
21997
22010
|
|
|
21998
22011
|
|
|
21999
22012
|
const api = {
|
|
22000
|
-
auth:
|
|
22001
|
-
teams:
|
|
22002
|
-
metadata:
|
|
22003
|
-
reports:
|
|
22004
|
-
connectivity:
|
|
22005
|
-
notifications:
|
|
22006
|
-
audits:
|
|
22007
|
-
tenants:
|
|
22008
|
-
accountSettings:
|
|
22009
|
-
roles:
|
|
22010
|
-
subscriptions:
|
|
22011
|
-
vendor:
|
|
22012
|
-
subTenants:
|
|
22013
|
+
auth: _auth__WEBPACK_IMPORTED_MODULE_9__,
|
|
22014
|
+
teams: _teams__WEBPACK_IMPORTED_MODULE_10__,
|
|
22015
|
+
metadata: _metadata__WEBPACK_IMPORTED_MODULE_11__,
|
|
22016
|
+
reports: _reports__WEBPACK_IMPORTED_MODULE_12__,
|
|
22017
|
+
connectivity: _connectivity__WEBPACK_IMPORTED_MODULE_13__,
|
|
22018
|
+
notifications: _notifications__WEBPACK_IMPORTED_MODULE_14__,
|
|
22019
|
+
audits: _audits__WEBPACK_IMPORTED_MODULE_15__,
|
|
22020
|
+
tenants: _tenants__WEBPACK_IMPORTED_MODULE_16__,
|
|
22021
|
+
accountSettings: _account_settings__WEBPACK_IMPORTED_MODULE_17__,
|
|
22022
|
+
roles: _roles__WEBPACK_IMPORTED_MODULE_18__,
|
|
22023
|
+
subscriptions: _subscriptions__WEBPACK_IMPORTED_MODULE_19__,
|
|
22024
|
+
vendor: _vendor__WEBPACK_IMPORTED_MODULE_20__,
|
|
22025
|
+
subTenants: _sub_tenants__WEBPACK_IMPORTED_MODULE_21__,
|
|
22013
22026
|
featureFlags: _feature_flags__WEBPACK_IMPORTED_MODULE_4__,
|
|
22014
22027
|
directory: _directory__WEBPACK_IMPORTED_MODULE_5__,
|
|
22015
|
-
impersonate:
|
|
22016
|
-
groups:
|
|
22028
|
+
impersonate: _impersonate__WEBPACK_IMPORTED_MODULE_22__,
|
|
22029
|
+
groups: _groups__WEBPACK_IMPORTED_MODULE_23__,
|
|
22030
|
+
users: _users__WEBPACK_IMPORTED_MODULE_24__
|
|
22017
22031
|
};
|
|
22018
22032
|
|
|
22019
22033
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
22020
|
-
fetch:
|
|
22021
|
-
ContextHolder:
|
|
22022
|
-
FronteggContext:
|
|
22034
|
+
fetch: _fetch__WEBPACK_IMPORTED_MODULE_25__,
|
|
22035
|
+
ContextHolder: _ContextHolder__WEBPACK_IMPORTED_MODULE_26__.ContextHolder,
|
|
22036
|
+
FronteggContext: _ContextHolder__WEBPACK_IMPORTED_MODULE_26__.FronteggContext,
|
|
22023
22037
|
api,
|
|
22024
|
-
FronteggApiError:
|
|
22025
|
-
AuthStrategyEnum:
|
|
22026
|
-
MachineToMachineAuthStrategy:
|
|
22027
|
-
SocialLoginProviders:
|
|
22028
|
-
ISubscriptionCancellationPolicy:
|
|
22029
|
-
ISubscriptionStatus:
|
|
22030
|
-
PaymentMethodType:
|
|
22031
|
-
ProviderType:
|
|
22038
|
+
FronteggApiError: _error__WEBPACK_IMPORTED_MODULE_27__.FronteggApiError,
|
|
22039
|
+
AuthStrategyEnum: _auth__WEBPACK_IMPORTED_MODULE_28__.AuthStrategyEnum,
|
|
22040
|
+
MachineToMachineAuthStrategy: _auth__WEBPACK_IMPORTED_MODULE_28__.MachineToMachineAuthStrategy,
|
|
22041
|
+
SocialLoginProviders: _auth__WEBPACK_IMPORTED_MODULE_28__.SocialLoginProviders,
|
|
22042
|
+
ISubscriptionCancellationPolicy: _subscriptions__WEBPACK_IMPORTED_MODULE_29__.ISubscriptionCancellationPolicy,
|
|
22043
|
+
ISubscriptionStatus: _subscriptions__WEBPACK_IMPORTED_MODULE_29__.ISubscriptionStatus,
|
|
22044
|
+
PaymentMethodType: _subscriptions__WEBPACK_IMPORTED_MODULE_29__.PaymentMethodType,
|
|
22045
|
+
ProviderType: _subscriptions__WEBPACK_IMPORTED_MODULE_29__.ProviderType
|
|
22032
22046
|
});
|
|
22033
22047
|
|
|
22034
22048
|
/***/ }),
|
|
@@ -22435,10 +22449,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22435
22449
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22436
22450
|
/* harmony export */ "addUserRolesForSubTenants": () => (/* binding */ addUserRolesForSubTenants),
|
|
22437
22451
|
/* harmony export */ "addUserToTenantAndSubTenants": () => (/* binding */ addUserToTenantAndSubTenants),
|
|
22452
|
+
/* harmony export */ "createSubTenant": () => (/* binding */ createSubTenant),
|
|
22453
|
+
/* harmony export */ "deleteSubTenant": () => (/* binding */ deleteSubTenant),
|
|
22438
22454
|
/* harmony export */ "loadAllUsers": () => (/* binding */ loadAllUsers),
|
|
22439
22455
|
/* harmony export */ "removeUserFromTenantAndSubTenants": () => (/* binding */ removeUserFromTenantAndSubTenants),
|
|
22440
22456
|
/* harmony export */ "removeUserRolesFromSubTenants": () => (/* binding */ removeUserRolesFromSubTenants),
|
|
22441
|
-
/* harmony export */ "setUserRolesForSubTenants": () => (/* binding */ setUserRolesForSubTenants)
|
|
22457
|
+
/* harmony export */ "setUserRolesForSubTenants": () => (/* binding */ setUserRolesForSubTenants),
|
|
22458
|
+
/* harmony export */ "updateSubAccountAccess": () => (/* binding */ updateSubAccountAccess)
|
|
22442
22459
|
/* harmony export */ });
|
|
22443
22460
|
/* harmony import */ var _fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../fetch */ "../../node_modules/@frontegg/rest-api/fetch.js");
|
|
22444
22461
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants */ "../../node_modules/@frontegg/rest-api/constants.js");
|
|
@@ -22450,8 +22467,10 @@ async function loadAllUsers(params) {
|
|
|
22450
22467
|
async function addUserToTenantAndSubTenants(body) {
|
|
22451
22468
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Post)(_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.subTenants.v1, body);
|
|
22452
22469
|
}
|
|
22453
|
-
async function removeUserFromTenantAndSubTenants(body) {
|
|
22454
|
-
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Delete)(_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.subTenants.v1, body
|
|
22470
|
+
async function removeUserFromTenantAndSubTenants(body, options) {
|
|
22471
|
+
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Delete)(_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.subTenants.v1, body, {
|
|
22472
|
+
headers: (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.extractHeadersFromOptions)(options)
|
|
22473
|
+
});
|
|
22455
22474
|
}
|
|
22456
22475
|
async function addUserRolesForSubTenants(userId, body) {
|
|
22457
22476
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.subTenants.v1}/${userId}/roles`, body);
|
|
@@ -22459,8 +22478,25 @@ async function addUserRolesForSubTenants(userId, body) {
|
|
|
22459
22478
|
async function removeUserRolesFromSubTenants(userId, body) {
|
|
22460
22479
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Delete)(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.subTenants.v1}/${userId}/roles`, body);
|
|
22461
22480
|
}
|
|
22462
|
-
async function setUserRolesForSubTenants(userId, body) {
|
|
22463
|
-
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Patch)(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.subTenants.v1}/${userId}/roles`, body
|
|
22481
|
+
async function setUserRolesForSubTenants(userId, body, options) {
|
|
22482
|
+
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Patch)(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.subTenants.v1}/${userId}/roles`, body, {
|
|
22483
|
+
headers: (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.extractHeadersFromOptions)(options)
|
|
22484
|
+
});
|
|
22485
|
+
}
|
|
22486
|
+
async function createSubTenant(body, options) {
|
|
22487
|
+
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Post)(_constants__WEBPACK_IMPORTED_MODULE_1__.urls.tenants.subTenants.v1, body, {
|
|
22488
|
+
headers: (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.extractHeadersFromOptions)(options)
|
|
22489
|
+
});
|
|
22490
|
+
}
|
|
22491
|
+
async function deleteSubTenant(tenantId, options) {
|
|
22492
|
+
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Delete)(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.tenants.subTenants.v1}/${tenantId}`, undefined, {
|
|
22493
|
+
headers: (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.extractHeadersFromOptions)(options)
|
|
22494
|
+
});
|
|
22495
|
+
}
|
|
22496
|
+
async function updateSubAccountAccess(userId, body, options) {
|
|
22497
|
+
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Put)(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.subTenants.v1}/${userId}/access`, body, {
|
|
22498
|
+
headers: (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.extractHeadersFromOptions)(options)
|
|
22499
|
+
});
|
|
22464
22500
|
}
|
|
22465
22501
|
|
|
22466
22502
|
/***/ }),
|
|
@@ -23069,9 +23105,11 @@ let UserManagedByEnum;
|
|
|
23069
23105
|
"use strict";
|
|
23070
23106
|
__webpack_require__.r(__webpack_exports__);
|
|
23071
23107
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23108
|
+
/* harmony export */ "getParentTenants": () => (/* binding */ getParentTenants),
|
|
23072
23109
|
/* harmony export */ "getSubTenants": () => (/* binding */ getSubTenants),
|
|
23073
23110
|
/* harmony export */ "getSubTenantsAsTree": () => (/* binding */ getSubTenantsAsTree),
|
|
23074
23111
|
/* harmony export */ "getTenants": () => (/* binding */ getTenants),
|
|
23112
|
+
/* harmony export */ "getTenantsUsersCount": () => (/* binding */ getTenantsUsersCount),
|
|
23075
23113
|
/* harmony export */ "switchTenant": () => (/* binding */ switchTenant)
|
|
23076
23114
|
/* harmony export */ });
|
|
23077
23115
|
/* harmony import */ var _fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../fetch */ "../../node_modules/@frontegg/rest-api/fetch.js");
|
|
@@ -23084,11 +23122,23 @@ async function switchTenant(body) {
|
|
|
23084
23122
|
async function getTenants() {
|
|
23085
23123
|
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Get)(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.users.v2}/me/tenants`);
|
|
23086
23124
|
}
|
|
23087
|
-
async function getSubTenants() {
|
|
23088
|
-
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Get)(_constants__WEBPACK_IMPORTED_MODULE_1__.urls.tenants.hierarchy.v1
|
|
23125
|
+
async function getSubTenants(options) {
|
|
23126
|
+
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Get)(_constants__WEBPACK_IMPORTED_MODULE_1__.urls.tenants.hierarchy.v1, undefined, {
|
|
23127
|
+
headers: (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.extractHeadersFromOptions)(options)
|
|
23128
|
+
});
|
|
23129
|
+
}
|
|
23130
|
+
async function getSubTenantsAsTree(options) {
|
|
23131
|
+
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Get)(_constants__WEBPACK_IMPORTED_MODULE_1__.urls.tenants.hierarchy.tree.v1, undefined, {
|
|
23132
|
+
headers: (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.extractHeadersFromOptions)(options)
|
|
23133
|
+
});
|
|
23134
|
+
}
|
|
23135
|
+
async function getParentTenants(options) {
|
|
23136
|
+
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Get)(_constants__WEBPACK_IMPORTED_MODULE_1__.urls.tenants.hierarchy.parents.v1, undefined, {
|
|
23137
|
+
headers: (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.extractHeadersFromOptions)(options)
|
|
23138
|
+
});
|
|
23089
23139
|
}
|
|
23090
|
-
async function
|
|
23091
|
-
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.
|
|
23140
|
+
async function getTenantsUsersCount(body) {
|
|
23141
|
+
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.tenants.users.v1}/count`, body);
|
|
23092
23142
|
}
|
|
23093
23143
|
|
|
23094
23144
|
/***/ }),
|
|
@@ -23116,6 +23166,67 @@ let TenantType;
|
|
|
23116
23166
|
|
|
23117
23167
|
/***/ }),
|
|
23118
23168
|
|
|
23169
|
+
/***/ "../../node_modules/@frontegg/rest-api/users/index.js":
|
|
23170
|
+
/*!************************************************************!*\
|
|
23171
|
+
!*** ../../node_modules/@frontegg/rest-api/users/index.js ***!
|
|
23172
|
+
\************************************************************/
|
|
23173
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
23174
|
+
|
|
23175
|
+
"use strict";
|
|
23176
|
+
__webpack_require__.r(__webpack_exports__);
|
|
23177
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23178
|
+
/* harmony export */ "GetUserJwt": () => (/* binding */ GetUserJwt),
|
|
23179
|
+
/* harmony export */ "getUsersV3": () => (/* binding */ getUsersV3)
|
|
23180
|
+
/* harmony export */ });
|
|
23181
|
+
/* harmony import */ var _fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../fetch */ "../../node_modules/@frontegg/rest-api/fetch.js");
|
|
23182
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants */ "../../node_modules/@frontegg/rest-api/constants.js");
|
|
23183
|
+
|
|
23184
|
+
|
|
23185
|
+
async function GetUserJwt(body) {
|
|
23186
|
+
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.users.v3}/me/token`, body);
|
|
23187
|
+
}
|
|
23188
|
+
async function getUsersV3(queryParams, options) {
|
|
23189
|
+
return (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.Get)(_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.users.v3, queryParams, {
|
|
23190
|
+
headers: (0,_fetch__WEBPACK_IMPORTED_MODULE_0__.extractHeadersFromOptions)(options)
|
|
23191
|
+
});
|
|
23192
|
+
}
|
|
23193
|
+
|
|
23194
|
+
/***/ }),
|
|
23195
|
+
|
|
23196
|
+
/***/ "../../node_modules/@frontegg/rest-api/users/interfaces.js":
|
|
23197
|
+
/*!*****************************************************************!*\
|
|
23198
|
+
!*** ../../node_modules/@frontegg/rest-api/users/interfaces.js ***!
|
|
23199
|
+
\*****************************************************************/
|
|
23200
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
23201
|
+
|
|
23202
|
+
"use strict";
|
|
23203
|
+
__webpack_require__.r(__webpack_exports__);
|
|
23204
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23205
|
+
/* harmony export */ "PaginationOrderEnum": () => (/* binding */ PaginationOrderEnum),
|
|
23206
|
+
/* harmony export */ "SortByEnum": () => (/* binding */ SortByEnum)
|
|
23207
|
+
/* harmony export */ });
|
|
23208
|
+
let SortByEnum;
|
|
23209
|
+
|
|
23210
|
+
(function (SortByEnum) {
|
|
23211
|
+
SortByEnum["createdAt"] = "createdAt";
|
|
23212
|
+
SortByEnum["name"] = "name";
|
|
23213
|
+
SortByEnum["email"] = "email";
|
|
23214
|
+
SortByEnum["id"] = "id";
|
|
23215
|
+
SortByEnum["verified"] = "verified";
|
|
23216
|
+
SortByEnum["isLocked"] = "isLocked";
|
|
23217
|
+
SortByEnum["provider"] = "provider";
|
|
23218
|
+
SortByEnum["tenantId"] = "tenantId";
|
|
23219
|
+
})(SortByEnum || (SortByEnum = {}));
|
|
23220
|
+
|
|
23221
|
+
let PaginationOrderEnum;
|
|
23222
|
+
|
|
23223
|
+
(function (PaginationOrderEnum) {
|
|
23224
|
+
PaginationOrderEnum["ASC"] = "ASC";
|
|
23225
|
+
PaginationOrderEnum["DESC"] = "DESC";
|
|
23226
|
+
})(PaginationOrderEnum || (PaginationOrderEnum = {}));
|
|
23227
|
+
|
|
23228
|
+
/***/ }),
|
|
23229
|
+
|
|
23119
23230
|
/***/ "../../node_modules/@frontegg/rest-api/vendor/index.js":
|
|
23120
23231
|
/*!*************************************************************!*\
|
|
23121
23232
|
!*** ../../node_modules/@frontegg/rest-api/vendor/index.js ***!
|