@frontegg/js 7.105.0-alpha.1 → 7.105.0-alpha.2
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/utils/mockFlagsList.js +1 -0
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +215 -13
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/utils/mockFlagsList.js +1 -0
- package/version.js +1 -1
package/index.js
CHANGED
package/node/index.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.mockFlagsList = void 0;
|
|
|
7
7
|
var mockFlagsList = {
|
|
8
8
|
admin_portal_ip_restrictions: 'on',
|
|
9
9
|
admin_portal_domain_restrictions: 'on',
|
|
10
|
+
'dashboard-account-security-country-restrictions': 'on',
|
|
10
11
|
'new-mfa-pages': 'on',
|
|
11
12
|
'show-passkeys-new': 'on',
|
|
12
13
|
'groups-admin-box-new': 'on',
|
package/node/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/js",
|
|
3
|
-
"version": "7.105.0-alpha.
|
|
3
|
+
"version": "7.105.0-alpha.2",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Frontegg LTD",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/runtime": "^7.18.6",
|
|
9
|
-
"@frontegg/types": "7.105.0-alpha.
|
|
9
|
+
"@frontegg/types": "7.105.0-alpha.2"
|
|
10
10
|
},
|
|
11
11
|
"browserslist": {
|
|
12
12
|
"production": [
|
|
@@ -1902,6 +1902,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1902
1902
|
var mockFlagsList = {
|
|
1903
1903
|
admin_portal_ip_restrictions: 'on',
|
|
1904
1904
|
admin_portal_domain_restrictions: 'on',
|
|
1905
|
+
'dashboard-account-security-country-restrictions': 'on',
|
|
1905
1906
|
'new-mfa-pages': 'on',
|
|
1906
1907
|
'show-passkeys-new': 'on',
|
|
1907
1908
|
'groups-admin-box-new': 'on',
|
|
@@ -1923,7 +1924,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1923
1924
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1924
1925
|
/* harmony export */ });
|
|
1925
1926
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1926
|
-
cdnVersion: '7.105.0-alpha.
|
|
1927
|
+
cdnVersion: '7.105.0-alpha.2'
|
|
1927
1928
|
});
|
|
1928
1929
|
|
|
1929
1930
|
/***/ }),
|
|
@@ -12588,7 +12589,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12588
12589
|
const _excluded = ["callback"],
|
|
12589
12590
|
_excluded2 = ["callback"],
|
|
12590
12591
|
_excluded3 = ["callback"],
|
|
12591
|
-
_excluded4 = ["callback"]
|
|
12592
|
+
_excluded4 = ["callback"],
|
|
12593
|
+
_excluded5 = ["callback"];
|
|
12592
12594
|
|
|
12593
12595
|
|
|
12594
12596
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((store, api, sharedActions) => {
|
|
@@ -12618,12 +12620,9 @@ const _excluded = ["callback"],
|
|
|
12618
12620
|
*/
|
|
12619
12621
|
const __securityCenterSagaWrapper = action => {
|
|
12620
12622
|
return async (...args) => {
|
|
12621
|
-
const [securityCenterFeatureFlag] = await actions.getFeatureFlags(['security-center-admin-portal-major-version']);
|
|
12622
12623
|
await action(...args);
|
|
12623
|
-
|
|
12624
|
-
|
|
12625
|
-
await actions.loadInsights((0,_helpers__WEBPACK_IMPORTED_MODULE_3__.withRetryConfig)());
|
|
12626
|
-
}
|
|
12624
|
+
await actions.loadRecommendations((0,_helpers__WEBPACK_IMPORTED_MODULE_3__.withRetryConfig)());
|
|
12625
|
+
await actions.loadInsights((0,_helpers__WEBPACK_IMPORTED_MODULE_3__.withRetryConfig)());
|
|
12627
12626
|
};
|
|
12628
12627
|
};
|
|
12629
12628
|
const setRestrictionsState = state => {
|
|
@@ -12635,6 +12634,9 @@ const _excluded = ["callback"],
|
|
|
12635
12634
|
const setEmailDomainRestrictionsState = state => {
|
|
12636
12635
|
Object.assign(store.auth.restrictionsState.emailDomainRestrictions, state);
|
|
12637
12636
|
};
|
|
12637
|
+
const setCountryRestrictionsState = state => {
|
|
12638
|
+
Object.assign(store.auth.restrictionsState.countryRestrictions, state);
|
|
12639
|
+
};
|
|
12638
12640
|
const loadIpRestrictions = async () => {
|
|
12639
12641
|
setIpRestrictionsState({
|
|
12640
12642
|
loading: true,
|
|
@@ -12998,6 +13000,97 @@ const _excluded = ["callback"],
|
|
|
12998
13000
|
});
|
|
12999
13001
|
}
|
|
13000
13002
|
};
|
|
13003
|
+
const loadCountryRestrictions = async () => {
|
|
13004
|
+
setCountryRestrictionsState({
|
|
13005
|
+
loading: true,
|
|
13006
|
+
error: null
|
|
13007
|
+
});
|
|
13008
|
+
try {
|
|
13009
|
+
const [config, restrictions] = await Promise.all([api.auth.getCountryRestrictionsConfig(), api.auth.getCountryRestrictions()]);
|
|
13010
|
+
setCountryRestrictionsState({
|
|
13011
|
+
data: {
|
|
13012
|
+
config,
|
|
13013
|
+
restrictions
|
|
13014
|
+
},
|
|
13015
|
+
loading: false
|
|
13016
|
+
});
|
|
13017
|
+
} catch (e) {
|
|
13018
|
+
setCountryRestrictionsState({
|
|
13019
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.errorHandler)(e),
|
|
13020
|
+
loading: false
|
|
13021
|
+
});
|
|
13022
|
+
}
|
|
13023
|
+
};
|
|
13024
|
+
const saveCountryRestrictionsConfig = async payload => {
|
|
13025
|
+
var _countryRestrictionsS, _countryRestrictionsS2;
|
|
13026
|
+
const {
|
|
13027
|
+
callback
|
|
13028
|
+
} = payload,
|
|
13029
|
+
configOverrides = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(payload, _excluded5);
|
|
13030
|
+
const countryRestrictionsState = store.auth.restrictionsState.countryRestrictions;
|
|
13031
|
+
const currentConfig = (_countryRestrictionsS = (_countryRestrictionsS2 = countryRestrictionsState.data) == null ? void 0 : _countryRestrictionsS2.config) != null ? _countryRestrictionsS : {
|
|
13032
|
+
enabled: false,
|
|
13033
|
+
action: _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_2__.RestrictionType.ALLOW,
|
|
13034
|
+
failStrategy: _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_2__.RestrictionType.ALLOW,
|
|
13035
|
+
shouldSendRestrictionEmail: false
|
|
13036
|
+
};
|
|
13037
|
+
const nextConfig = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, currentConfig, configOverrides);
|
|
13038
|
+
setCountryRestrictionsState({
|
|
13039
|
+
saving: true,
|
|
13040
|
+
error: null
|
|
13041
|
+
});
|
|
13042
|
+
try {
|
|
13043
|
+
await api.auth.updateCountryRestrictionsConfig(nextConfig);
|
|
13044
|
+
const [config, restrictions] = await Promise.all([api.auth.getCountryRestrictionsConfig(), api.auth.getCountryRestrictions()]);
|
|
13045
|
+
setCountryRestrictionsState({
|
|
13046
|
+
data: {
|
|
13047
|
+
config,
|
|
13048
|
+
restrictions
|
|
13049
|
+
},
|
|
13050
|
+
saving: false
|
|
13051
|
+
});
|
|
13052
|
+
callback == null ? void 0 : callback(true);
|
|
13053
|
+
} catch (e) {
|
|
13054
|
+
setCountryRestrictionsState({
|
|
13055
|
+
saving: false,
|
|
13056
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.errorHandler)(e)
|
|
13057
|
+
});
|
|
13058
|
+
callback == null ? void 0 : callback(null, e);
|
|
13059
|
+
}
|
|
13060
|
+
};
|
|
13061
|
+
const saveCountryRestrictions = async payload => {
|
|
13062
|
+
const {
|
|
13063
|
+
callback,
|
|
13064
|
+
countryCodes
|
|
13065
|
+
} = payload;
|
|
13066
|
+
setCountryRestrictionsState({
|
|
13067
|
+
saving: true,
|
|
13068
|
+
error: null
|
|
13069
|
+
});
|
|
13070
|
+
try {
|
|
13071
|
+
const uniqueUpper = Array.from(new Set(countryCodes.map(code => code.toUpperCase())));
|
|
13072
|
+
await api.auth.updateCountryRestrictions({
|
|
13073
|
+
countries: uniqueUpper.map(countryCode => ({
|
|
13074
|
+
countryCode
|
|
13075
|
+
}))
|
|
13076
|
+
});
|
|
13077
|
+
const [config, restrictions] = await Promise.all([api.auth.getCountryRestrictionsConfig(), api.auth.getCountryRestrictions()]);
|
|
13078
|
+
setCountryRestrictionsState({
|
|
13079
|
+
data: {
|
|
13080
|
+
config,
|
|
13081
|
+
restrictions
|
|
13082
|
+
},
|
|
13083
|
+
saving: false
|
|
13084
|
+
});
|
|
13085
|
+
callback == null ? void 0 : callback(true);
|
|
13086
|
+
} catch (e) {
|
|
13087
|
+
setCountryRestrictionsState({
|
|
13088
|
+
saving: false,
|
|
13089
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.errorHandler)(e)
|
|
13090
|
+
});
|
|
13091
|
+
callback == null ? void 0 : callback(null, e);
|
|
13092
|
+
}
|
|
13093
|
+
};
|
|
13001
13094
|
const wrappedLoadIpRestrictions = __securityCenterSagaWrapper(loadIpRestrictions);
|
|
13002
13095
|
const wrappedSaveIpRestriction = __securityCenterSagaWrapper(saveIpRestriction);
|
|
13003
13096
|
const wrappedSaveIpRestrictionsConfig = __securityCenterSagaWrapper(saveIpRestrictionsConfig);
|
|
@@ -13008,11 +13101,15 @@ const _excluded = ["callback"],
|
|
|
13008
13101
|
const wrappedSaveEmailDomainRestriction = __securityCenterSagaWrapper(saveEmailDomainRestriction);
|
|
13009
13102
|
const wrappedSaveEmailDomainRestrictionsConfig = __securityCenterSagaWrapper(saveEmailDomainRestrictionsConfig);
|
|
13010
13103
|
const wrappedDeleteEmailDomainRestriction = __securityCenterSagaWrapper(deleteEmailDomainRestriction);
|
|
13104
|
+
const wrappedLoadCountryRestrictions = __securityCenterSagaWrapper(loadCountryRestrictions);
|
|
13105
|
+
const wrappedSaveCountryRestrictionsConfig = __securityCenterSagaWrapper(saveCountryRestrictionsConfig);
|
|
13106
|
+
const wrappedSaveCountryRestrictions = __securityCenterSagaWrapper(saveCountryRestrictions);
|
|
13011
13107
|
return {
|
|
13012
13108
|
// reducers
|
|
13013
13109
|
setRestrictionsState,
|
|
13014
13110
|
setIpRestrictionsState,
|
|
13015
13111
|
setEmailDomainRestrictionsState,
|
|
13112
|
+
setCountryRestrictionsState,
|
|
13016
13113
|
__securityCenterSagaWrapper,
|
|
13017
13114
|
// actions
|
|
13018
13115
|
loadIpRestrictions: wrappedLoadIpRestrictions,
|
|
@@ -13024,7 +13121,10 @@ const _excluded = ["callback"],
|
|
|
13024
13121
|
loadEmailDomainRestrictions: wrappedLoadEmailDomainRestrictions,
|
|
13025
13122
|
saveEmailDomainRestriction: wrappedSaveEmailDomainRestriction,
|
|
13026
13123
|
saveEmailDomainRestrictionsConfig: wrappedSaveEmailDomainRestrictionsConfig,
|
|
13027
|
-
deleteEmailDomainRestriction: wrappedDeleteEmailDomainRestriction
|
|
13124
|
+
deleteEmailDomainRestriction: wrappedDeleteEmailDomainRestriction,
|
|
13125
|
+
loadCountryRestrictions: wrappedLoadCountryRestrictions,
|
|
13126
|
+
saveCountryRestrictionsConfig: wrappedSaveCountryRestrictionsConfig,
|
|
13127
|
+
saveCountryRestrictions: wrappedSaveCountryRestrictions
|
|
13028
13128
|
};
|
|
13029
13129
|
});
|
|
13030
13130
|
|
|
@@ -13059,6 +13159,9 @@ const initialState = {
|
|
|
13059
13159
|
},
|
|
13060
13160
|
emailDomainRestrictions: {
|
|
13061
13161
|
loading: false
|
|
13162
|
+
},
|
|
13163
|
+
countryRestrictions: {
|
|
13164
|
+
loading: false
|
|
13062
13165
|
}
|
|
13063
13166
|
};
|
|
13064
13167
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (overrideState => (0,_toolkit_proxy__WEBPACK_IMPORTED_MODULE_1__.createProxy)(initialState, overrideState));
|
|
@@ -20080,7 +20183,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20080
20183
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
20081
20184
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
20082
20185
|
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
|
|
20083
|
-
/** @license Frontegg v7.105.0-alpha.
|
|
20186
|
+
/** @license Frontegg v7.105.0-alpha.2
|
|
20084
20187
|
*
|
|
20085
20188
|
* This source code is licensed under the MIT license found in the
|
|
20086
20189
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -21981,7 +22084,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21981
22084
|
const _excluded = ["callback"],
|
|
21982
22085
|
_excluded2 = ["callback"],
|
|
21983
22086
|
_excluded3 = ["callback"],
|
|
21984
|
-
_excluded4 = ["callback"]
|
|
22087
|
+
_excluded4 = ["callback"],
|
|
22088
|
+
_excluded5 = ["callback"];
|
|
21985
22089
|
|
|
21986
22090
|
|
|
21987
22091
|
|
|
@@ -21990,7 +22094,7 @@ const _excluded = ["callback"],
|
|
|
21990
22094
|
|
|
21991
22095
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((store, api, actions) => {
|
|
21992
22096
|
const originalActions = (0,_auth_Security_RestrictionsState__WEBPACK_IMPORTED_MODULE_2__["default"])(store, api, actions);
|
|
21993
|
-
const mockedActions = (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.mockActionsExpect)(originalActions, ['setRestrictionsState', 'setIpRestrictionsState', 'setEmailDomainRestrictionsState']);
|
|
22097
|
+
const mockedActions = (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.mockActionsExpect)(originalActions, ['setRestrictionsState', 'setIpRestrictionsState', 'setEmailDomainRestrictionsState', 'setCountryRestrictionsState']);
|
|
21994
22098
|
mockedActions.loadIpRestrictions = async () => {
|
|
21995
22099
|
mockedActions.setIpRestrictionsState({
|
|
21996
22100
|
loading: true,
|
|
@@ -22031,6 +22135,27 @@ const _excluded = ["callback"],
|
|
|
22031
22135
|
}
|
|
22032
22136
|
});
|
|
22033
22137
|
};
|
|
22138
|
+
mockedActions.loadCountryRestrictions = async () => {
|
|
22139
|
+
mockedActions.setCountryRestrictionsState({
|
|
22140
|
+
loading: true,
|
|
22141
|
+
error: null
|
|
22142
|
+
});
|
|
22143
|
+
mockedActions.setCountryRestrictionsState({
|
|
22144
|
+
loading: false,
|
|
22145
|
+
data: {
|
|
22146
|
+
restrictions: [{
|
|
22147
|
+
id: '1',
|
|
22148
|
+
countryCode: 'US'
|
|
22149
|
+
}],
|
|
22150
|
+
config: {
|
|
22151
|
+
enabled: true,
|
|
22152
|
+
action: _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.RestrictionType.ALLOW,
|
|
22153
|
+
failStrategy: _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.RestrictionType.ALLOW,
|
|
22154
|
+
shouldSendRestrictionEmail: false
|
|
22155
|
+
}
|
|
22156
|
+
}
|
|
22157
|
+
});
|
|
22158
|
+
};
|
|
22034
22159
|
mockedActions.saveIpRestriction = async payload => {
|
|
22035
22160
|
var _ipRestrictionsState$, _ipRestrictionsState$2, _newRestriction$isAct;
|
|
22036
22161
|
const {
|
|
@@ -22199,6 +22324,62 @@ const _excluded = ["callback"],
|
|
|
22199
22324
|
saving: false
|
|
22200
22325
|
});
|
|
22201
22326
|
};
|
|
22327
|
+
mockedActions.saveCountryRestrictionsConfig = async payload => {
|
|
22328
|
+
var _ref, _config$enabled, _countryRestrictionsS, _ref2, _config$action, _countryRestrictionsS2, _ref3, _config$failStrategy, _countryRestrictionsS3, _ref4, _config$shouldSendRes, _countryRestrictionsS4, _countryRestrictionsS5;
|
|
22329
|
+
const {
|
|
22330
|
+
callback
|
|
22331
|
+
} = payload,
|
|
22332
|
+
config = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(payload, _excluded5);
|
|
22333
|
+
const countryRestrictionsState = store.auth.restrictionsState.countryRestrictions;
|
|
22334
|
+
mockedActions.setCountryRestrictionsState({
|
|
22335
|
+
saving: true,
|
|
22336
|
+
error: null
|
|
22337
|
+
});
|
|
22338
|
+
await (0,_helpers__WEBPACK_IMPORTED_MODULE_8__.delay)();
|
|
22339
|
+
callback == null ? void 0 : callback(true);
|
|
22340
|
+
mockedActions.setCountryRestrictionsState({
|
|
22341
|
+
data: {
|
|
22342
|
+
config: {
|
|
22343
|
+
enabled: (_ref = (_config$enabled = config.enabled) != null ? _config$enabled : (_countryRestrictionsS = countryRestrictionsState.data) == null ? void 0 : _countryRestrictionsS.config.enabled) != null ? _ref : false,
|
|
22344
|
+
action: (_ref2 = (_config$action = config.action) != null ? _config$action : (_countryRestrictionsS2 = countryRestrictionsState.data) == null ? void 0 : _countryRestrictionsS2.config.action) != null ? _ref2 : _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.RestrictionType.ALLOW,
|
|
22345
|
+
failStrategy: (_ref3 = (_config$failStrategy = config.failStrategy) != null ? _config$failStrategy : (_countryRestrictionsS3 = countryRestrictionsState.data) == null ? void 0 : _countryRestrictionsS3.config.failStrategy) != null ? _ref3 : _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.RestrictionType.ALLOW,
|
|
22346
|
+
shouldSendRestrictionEmail: (_ref4 = (_config$shouldSendRes = config.shouldSendRestrictionEmail) != null ? _config$shouldSendRes : (_countryRestrictionsS4 = countryRestrictionsState.data) == null ? void 0 : _countryRestrictionsS4.config.shouldSendRestrictionEmail) != null ? _ref4 : false
|
|
22347
|
+
},
|
|
22348
|
+
restrictions: [...(((_countryRestrictionsS5 = countryRestrictionsState.data) == null ? void 0 : _countryRestrictionsS5.restrictions) || [])]
|
|
22349
|
+
},
|
|
22350
|
+
saving: false
|
|
22351
|
+
});
|
|
22352
|
+
};
|
|
22353
|
+
mockedActions.saveCountryRestrictions = async payload => {
|
|
22354
|
+
var _countryRestrictionsS6, _countryRestrictionsS7;
|
|
22355
|
+
const {
|
|
22356
|
+
callback,
|
|
22357
|
+
countryCodes
|
|
22358
|
+
} = payload;
|
|
22359
|
+
const countryRestrictionsState = store.auth.restrictionsState.countryRestrictions;
|
|
22360
|
+
mockedActions.setCountryRestrictionsState({
|
|
22361
|
+
saving: true,
|
|
22362
|
+
error: null
|
|
22363
|
+
});
|
|
22364
|
+
await (0,_helpers__WEBPACK_IMPORTED_MODULE_8__.delay)();
|
|
22365
|
+
callback == null ? void 0 : callback(true);
|
|
22366
|
+
const restrictions = Array.from(new Set(countryCodes.map(code => code.toUpperCase()))).map((countryCode, index) => ({
|
|
22367
|
+
id: `mock-${countryCode}-${index}`,
|
|
22368
|
+
countryCode
|
|
22369
|
+
}));
|
|
22370
|
+
mockedActions.setCountryRestrictionsState({
|
|
22371
|
+
data: {
|
|
22372
|
+
config: (_countryRestrictionsS6 = (_countryRestrictionsS7 = countryRestrictionsState.data) == null ? void 0 : _countryRestrictionsS7.config) != null ? _countryRestrictionsS6 : {
|
|
22373
|
+
enabled: true,
|
|
22374
|
+
action: _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.RestrictionType.ALLOW,
|
|
22375
|
+
failStrategy: _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.RestrictionType.ALLOW,
|
|
22376
|
+
shouldSendRestrictionEmail: false
|
|
22377
|
+
},
|
|
22378
|
+
restrictions
|
|
22379
|
+
},
|
|
22380
|
+
saving: false
|
|
22381
|
+
});
|
|
22382
|
+
};
|
|
22202
22383
|
mockedActions.deleteEmailDomainRestriction = async payload => {
|
|
22203
22384
|
var _emailDomainRestricti4, _emailDomainRestricti5;
|
|
22204
22385
|
const {
|
|
@@ -29175,6 +29356,10 @@ class AuthenticationApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_6__.Base
|
|
|
29175
29356
|
this.deleteIPRestriction = this.securityPolicy.deleteIPRestriction.bind(this.securityPolicy);
|
|
29176
29357
|
this.testCurrentIp = this.securityPolicy.testCurrentIp.bind(this.securityPolicy);
|
|
29177
29358
|
this.testCurrentIpInAllowList = this.securityPolicy.testCurrentIpInAllowList.bind(this.securityPolicy);
|
|
29359
|
+
this.getCountryRestrictionsConfig = this.securityPolicy.getCountryRestrictionsConfig.bind(this.securityPolicy);
|
|
29360
|
+
this.updateCountryRestrictionsConfig = this.securityPolicy.updateCountryRestrictionsConfig.bind(this.securityPolicy);
|
|
29361
|
+
this.getCountryRestrictions = this.securityPolicy.getCountryRestrictions.bind(this.securityPolicy);
|
|
29362
|
+
this.updateCountryRestrictions = this.securityPolicy.updateCountryRestrictions.bind(this.securityPolicy);
|
|
29178
29363
|
}
|
|
29179
29364
|
/**
|
|
29180
29365
|
* @returns true if entitlements load should be done
|
|
@@ -29393,6 +29578,18 @@ class SecurityPolicyApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_0__.Base
|
|
|
29393
29578
|
this.testCurrentIpInAllowList = async () => {
|
|
29394
29579
|
return this.post(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.restrictions.ip.v1}/verify/allow`);
|
|
29395
29580
|
};
|
|
29581
|
+
this.getCountryRestrictionsConfig = async () => {
|
|
29582
|
+
return this.get(_constants__WEBPACK_IMPORTED_MODULE_1__.urls.securityEngines.countryRestriction.v1);
|
|
29583
|
+
};
|
|
29584
|
+
this.updateCountryRestrictionsConfig = async body => {
|
|
29585
|
+
return this.post(_constants__WEBPACK_IMPORTED_MODULE_1__.urls.securityEngines.countryRestriction.v1, body);
|
|
29586
|
+
};
|
|
29587
|
+
this.getCountryRestrictions = async () => {
|
|
29588
|
+
return this.get(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.securityEngines.countryRestriction.v1}/countries`);
|
|
29589
|
+
};
|
|
29590
|
+
this.updateCountryRestrictions = async body => {
|
|
29591
|
+
return this.post(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.securityEngines.countryRestriction.v1}/countries`, body);
|
|
29592
|
+
};
|
|
29396
29593
|
}
|
|
29397
29594
|
|
|
29398
29595
|
/** Get global secure access configuration */
|
|
@@ -29934,6 +30131,11 @@ const urls = {
|
|
|
29934
30131
|
v1: '/security-center/resources/insights/v1'
|
|
29935
30132
|
}
|
|
29936
30133
|
},
|
|
30134
|
+
securityEngines: {
|
|
30135
|
+
countryRestriction: {
|
|
30136
|
+
v1: '/security-engines/resources/policies/v1/country-restriction'
|
|
30137
|
+
}
|
|
30138
|
+
},
|
|
29937
30139
|
applications: {
|
|
29938
30140
|
v1: '/applications/resources/applications/v1',
|
|
29939
30141
|
tenant: {
|
|
@@ -30458,7 +30660,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30458
30660
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
|
|
30459
30661
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
|
|
30460
30662
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
30461
|
-
/** @license Frontegg v7.105.0-alpha.
|
|
30663
|
+
/** @license Frontegg v7.105.0-alpha.2
|
|
30462
30664
|
*
|
|
30463
30665
|
* This source code is licensed under the MIT license found in the
|
|
30464
30666
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -33253,7 +33455,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
33253
33455
|
/* harmony export */ });
|
|
33254
33456
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
33255
33457
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
33256
|
-
/** @license Frontegg v7.105.0-alpha.
|
|
33458
|
+
/** @license Frontegg v7.105.0-alpha.2
|
|
33257
33459
|
*
|
|
33258
33460
|
* This source code is licensed under the MIT license found in the
|
|
33259
33461
|
* LICENSE file in the root directory of this source tree.
|