@copart/ops-tool-kit 1.11.5 → 1.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ops-tool-kit.js +28 -26
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -33,7 +33,7 @@ var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
|
33
33
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
34
34
|
|
|
35
35
|
const name$r = "@copart/ops-tool-kit";
|
|
36
|
-
const version$7 = "1.11.
|
|
36
|
+
const version$7 = "1.11.6";
|
|
37
37
|
const main$1 = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -5464,7 +5464,7 @@ var getPermissions = /*#__PURE__*/function () {
|
|
|
5464
5464
|
_context.next = 9;
|
|
5465
5465
|
break;
|
|
5466
5466
|
}
|
|
5467
|
-
userAppScopes = storage.userAppScopes;
|
|
5467
|
+
userAppScopes = Array.isArray(storage.userAppScopes) ? storage.userAppScopes : [];
|
|
5468
5468
|
allAppScopesAndFunctions = storage.appScopesAndFunctions;
|
|
5469
5469
|
currentAppScopesAndFunctions = allAppScopesAndFunctions.find(function (scope) {
|
|
5470
5470
|
return scope.appName === appName;
|
|
@@ -5713,29 +5713,29 @@ var appFunctions = [{
|
|
|
5713
5713
|
}, {
|
|
5714
5714
|
appName: 'miorg',
|
|
5715
5715
|
scopes: [{
|
|
5716
|
-
|
|
5717
|
-
|
|
5716
|
+
appscope: 'Admin',
|
|
5717
|
+
applicationFunctions: ['view_all_users_complete_data', 'edit_all_users', 'onboard_all_users', 'onboard_ticket_required', 'view_reports', 'view_profile', 'edit_users_ticket_required', 'view_teams', 'view_direct_reportees', 'view_g2_access', 'edit_g2_access_all_users', 'view_additional_access', 'edit_additional_access_all_users', 'view_assets', 'edit_assets_all_users', 'view_logs', 'enable_disable_all_users', 'enable_disable_ticket_required', 'extend_contract_all_users', 'extend_contract_ticket_required', 'reset_okta_all_users', 'unlock_all_users', 'reset_password_all_users', 'terminate_all_users', 'terminate_ticket_required', 'view_all_users_activities_tasks', 'perform_all_users_tasks', 'view_my_teams', 'view_department_teams', 'view_all_teams', 'edit_team', 'delete_team', 'view_my_tasks', 'perform_my_tasks', 'link_all_users']
|
|
5718
5718
|
}, {
|
|
5719
|
-
|
|
5720
|
-
|
|
5719
|
+
appscope: 'Admin without onboard',
|
|
5720
|
+
applicationFunctions: ['view_all_users_complete_data', 'edit_all_users', 'view_reports', 'view_profile', 'edit_users_ticket_required', 'view_teams', 'view_direct_reportees', 'view_g2_access', 'edit_g2_access_all_users', 'view_additional_access', 'edit_additional_access_all_users', 'view_assets', 'edit_assets_all_users', 'view_logs', 'enable_disable_all_users', 'enable_disable_ticket_required', 'extend_contract_all_users', 'extend_contract_ticket_required', 'reset_okta_all_users', 'unlock_all_users', 'reset_password_all_users', 'terminate_all_users', 'terminate_ticket_required', 'view_all_users_activities_tasks', 'perform_all_users_tasks', 'view_my_teams', 'view_department_teams', 'view_all_teams', 'edit_team', 'delete_team', 'view_my_tasks', 'perform_my_tasks', 'link_all_users']
|
|
5721
5721
|
}, {
|
|
5722
|
-
|
|
5723
|
-
|
|
5722
|
+
appscope: 'Delegated Manager',
|
|
5723
|
+
applicationFunctions: ['view_manager_users_and_hierarchy', 'onboard_manager_users_and_hierarchy', 'view_profile', 'view_teams', 'view_direct_reportees', 'view_g2_access', 'edit_manager_users_and_hierarchy', 'perform_manager_users_hierarchy_tasks', 'edit_g2_access_manager_users_and_hierarchy', 'view_additional_access', 'edit_additional_access_my_manager_users_and_hierarchy', 'view_assets', 'edit_asset_manager_users_and_hierarchy', 'view_logs', 'enable_disable_manager_users_and_hierarchy', 'extend_contract_manager_users_and_hierarchy', 'reset_okta_manager_users_and_hierarchy', 'unlock_manager_users_and_hierarchy', 'reset_password_manager_users_and_hierarchy', 'terminate_manager_users_and_hierarchy', 'view_manager_users_hierarchy_activities_tasks', 'view_my_teams', 'view_department_teams', 'view_department_teams', 'view_all_teams', 'view_manager_tasks', 'perform_manager_tasks']
|
|
5724
5724
|
}, {
|
|
5725
|
-
|
|
5726
|
-
|
|
5725
|
+
appscope: 'Employee',
|
|
5726
|
+
applicationFunctions: ['view_all_users_basic_data', 'view_my_teams', 'view_department_teams', 'view_all_teams']
|
|
5727
5727
|
}, {
|
|
5728
|
-
|
|
5729
|
-
|
|
5728
|
+
appscope: 'Employee with MiPhone admin',
|
|
5729
|
+
applicationFunctions: ['view_all_users_with_profile_access', 'view_additional_access', 'edit_miphone_access_all_users', 'view_my_teams', 'view_department_teams', 'view_all_teams']
|
|
5730
5730
|
}, {
|
|
5731
|
-
|
|
5732
|
-
|
|
5731
|
+
appscope: 'Manager',
|
|
5732
|
+
applicationFunctions: ['view_my_users_and_hierarchy', 'onboard_my_users_and_hierarchy', 'view_profile', 'edit_my_users_and_hierarchy', 'view_teams', 'view_direct_reportees', 'view_g2_access', 'edit_g2_access_my_users_and_hierarchy', 'view_additional_access', 'edit_additional_access_my_users_and_hierarchy', 'view_my_users_and_hierarchy_activities_tasks', 'perform_my_users_and_hierarchy_tasks', 'view_assets', 'edit_assets_my_users_and_hierarchy', 'view_logs', 'enable_disable_my_users_and_hierarchy', 'extend_contract_my_users_and_hierarchy', 'reset_okta_my_users_and_hierarchy', 'unlock_my_users_and_hierarchy', 'reset_password_my_users_and_hierarchy', 'terminate_my_users_and_hierarchy', 'view_my_teams', 'view_department_teams', 'view_all_teams', 'view_my_tasks', 'perform_my_tasks']
|
|
5733
5733
|
}, {
|
|
5734
|
-
|
|
5735
|
-
|
|
5734
|
+
appscope: 'Manager with miphone admin',
|
|
5735
|
+
applicationFunctions: ['view_all_users_with_profile_access', 'view_my_users_and_hierarchy', 'onboard_my_users_and_hierarchy', 'view_profile', 'edit_my_users_and_hierarchy', 'view_teams', 'view_direct_reportees', 'view_g2_access', 'edit_g2_access_my_users_and_hierarchy', 'view_additional_access', 'edit_additional_access_my_users_and_hierarchy', 'view_my_users_and_hierarchy_activities_tasks', 'perform_my_users_and_hierarchy_tasks', 'view_assets', 'edit_assets_my_users_and_hierarchy', 'view_logs', 'enable_disable_my_users_and_hierarchy', 'extend_contract_my_users_and_hierarchy', 'reset_okta_my_users_and_hierarchy', 'unlock_my_users_and_hierarchy', 'reset_password_my_users_and_hierarchy', 'terminate_my_users_and_hierarchy', 'edit_miphone_access_all_users', 'view_my_teams', 'view_department_teams', 'view_all_teams', 'view_my_tasks', 'perform_my_tasks']
|
|
5736
5736
|
}, {
|
|
5737
|
-
|
|
5738
|
-
|
|
5737
|
+
appscope: 'Manager without onboard & offboard',
|
|
5738
|
+
applicationFunctions: ['view_my_users_and_hierarchy', 'view_profile', 'view_teams', 'view_direct_reportees', 'view_g2_access', 'edit_g2_access_my_users_and_hierarchy', 'view_additional_access', 'edit_additional_access_my_users_and_hierarchy', 'view_my_users_and_hierarchy_activities_tasks', 'perform_my_users_and_hierarchy_tasks', 'view_assets', 'edit_assets_my_users_and_hierarchy', 'view_logs', 'enable_disable_my_users_and_hierarchy', 'extend_contract_my_users_and_hierarchy', 'reset_okta_my_users_and_hierarchy', 'unlock_my_users_and_hierarchy', 'reset_password_my_users_and_hierarchy', 'view_my_teams', 'view_department_teams', 'view_all_teams', 'view_my_tasks', 'perform_my_tasks']
|
|
5739
5739
|
}]
|
|
5740
5740
|
}, {
|
|
5741
5741
|
appName: 'miphone',
|
|
@@ -19657,7 +19657,7 @@ var hierarchies = {
|
|
|
19657
19657
|
|
|
19658
19658
|
var getHierarchyDetails = function getHierarchyDetails(hierarchyId) {
|
|
19659
19659
|
var hierarchy = hierarchies[hierarchyId.toString()];
|
|
19660
|
-
var isHierarchyFromCurrentCountry = hierarchy.countryCode
|
|
19660
|
+
var isHierarchyFromCurrentCountry = hierarchy && hierarchy.countryCode === storage.getSessionItem('dashboard', 'selectedCountryA3code');
|
|
19661
19661
|
return isHierarchyFromCurrentCountry ? {
|
|
19662
19662
|
id: hierarchy.hierarchyId,
|
|
19663
19663
|
level: hierarchy.levelName,
|
|
@@ -19666,7 +19666,7 @@ var getHierarchyDetails = function getHierarchyDetails(hierarchyId) {
|
|
|
19666
19666
|
};
|
|
19667
19667
|
var getUserScopes = function getUserScopes() {
|
|
19668
19668
|
var scopeData = storage.getLocalItem('login', 'entity_auth_scope');
|
|
19669
|
-
var scopeList = scopeData.split(',');
|
|
19669
|
+
var scopeList = typeof scopeData === 'string' ? scopeData === null || scopeData === void 0 ? void 0 : scopeData.split(',') : [];
|
|
19670
19670
|
var filteredScopeList = [];
|
|
19671
19671
|
scopeList.forEach(function (scope) {
|
|
19672
19672
|
var scopeInfo = scope.split('|');
|
|
@@ -36986,8 +36986,9 @@ var saveSettings$1 = function saveSettings(self) {
|
|
|
36986
36986
|
storage$1.setLocalItem('dashboard', selectedCurrency || yard.yard_currency, 'selectedCurrency');
|
|
36987
36987
|
securityLevel = pickUserSecurityLevel(getSelectedYard(selectedYard));
|
|
36988
36988
|
storage$1.setSessionItem('securityLevel', Number(securityLevel));
|
|
36989
|
+
storage$1.setLocalItem('login', fetcher.getUserScopes(), 'userAppScopes');
|
|
36989
36990
|
// persist user preferences
|
|
36990
|
-
_context.next =
|
|
36991
|
+
_context.next = 25;
|
|
36991
36992
|
return fetcher.setUserPreferences('oph', {
|
|
36992
36993
|
selectedCurrency: selectedCurrency || yard.yard_currency,
|
|
36993
36994
|
language: selectedLanguage || 'en',
|
|
@@ -36997,7 +36998,7 @@ var saveSettings$1 = function saveSettings(self) {
|
|
|
36997
36998
|
yard: yard,
|
|
36998
36999
|
securityLevel: securityLevel
|
|
36999
37000
|
}, 'USA');
|
|
37000
|
-
case
|
|
37001
|
+
case 25:
|
|
37001
37002
|
self.setState({
|
|
37002
37003
|
oldActivePrinters: printers
|
|
37003
37004
|
});
|
|
@@ -37010,7 +37011,7 @@ var saveSettings$1 = function saveSettings(self) {
|
|
|
37010
37011
|
activePrinters: self.activePrinters
|
|
37011
37012
|
};
|
|
37012
37013
|
self.props.onSave(oldSettings, newSettings);
|
|
37013
|
-
case
|
|
37014
|
+
case 28:
|
|
37014
37015
|
case "end":
|
|
37015
37016
|
return _context.stop();
|
|
37016
37017
|
}
|
|
@@ -37661,6 +37662,7 @@ var saveSettings = function saveSettings(self) {
|
|
|
37661
37662
|
storage$1.setLocalItem('settings', selectedHierarchyOption, 'selectedHierarchyOption');
|
|
37662
37663
|
storage$1.setLocalItem('settings', selectedHierarchy, 'selectedHierarchy');
|
|
37663
37664
|
storage$1.setLocalItem('lastSelectedYard', yard);
|
|
37665
|
+
storage$1.setLocalItem('login', fetcher.getUserScopes(), 'userAppScopes');
|
|
37664
37666
|
getSelectedYard = function getSelectedYard() {
|
|
37665
37667
|
var yardList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
37666
37668
|
return yardList.find(function (yard) {
|
|
@@ -37673,7 +37675,7 @@ var saveSettings = function saveSettings(self) {
|
|
|
37673
37675
|
securityLevel = compose(pickUserSecurityLevel, getSelectedYard)((_storage$getLocalItem = storage$1.getLocalItem('login')) === null || _storage$getLocalItem === void 0 ? void 0 : _storage$getLocalItem.yardList);
|
|
37674
37676
|
storage$1.setSessionItem('securityLevel', securityLevel);
|
|
37675
37677
|
// persist user preferences
|
|
37676
|
-
_context2.next =
|
|
37678
|
+
_context2.next = 28;
|
|
37677
37679
|
return fetcher.setUserPreferences('oph', {
|
|
37678
37680
|
selectedCurrency: yard.yard_currency,
|
|
37679
37681
|
language: 'en',
|
|
@@ -37685,7 +37687,7 @@ var saveSettings = function saveSettings(self) {
|
|
|
37685
37687
|
yard: yard,
|
|
37686
37688
|
securityLevel: securityLevel
|
|
37687
37689
|
}, 'GBR');
|
|
37688
|
-
case
|
|
37690
|
+
case 28:
|
|
37689
37691
|
self.setState({
|
|
37690
37692
|
oldActivePrinters: printers
|
|
37691
37693
|
});
|
|
@@ -37699,7 +37701,7 @@ var saveSettings = function saveSettings(self) {
|
|
|
37699
37701
|
activePrinters: printers
|
|
37700
37702
|
};
|
|
37701
37703
|
self.props.onSave(oldSettings, newSettings);
|
|
37702
|
-
case
|
|
37704
|
+
case 31:
|
|
37703
37705
|
case "end":
|
|
37704
37706
|
return _context2.stop();
|
|
37705
37707
|
}
|