@northern.tech/store 0.36.2 → 0.37.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/dist/actions.d.cts +2 -1
- package/dist/actions.d.ts +2 -1
- package/dist/api/general-api.cjs +3 -3
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/users-api.cjs +2 -2
- package/dist/api/users-api.cjs.map +1 -1
- package/dist/api/users-api.js.map +1 -1
- package/dist/appSlice/index.cjs +1 -0
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.js +1 -0
- package/dist/appSlice/index.js.map +1 -1
- package/dist/appSlice/selectors.cjs +2 -4
- package/dist/appSlice/selectors.cjs.map +1 -1
- package/dist/appSlice/selectors.d.cts +4 -51
- package/dist/appSlice/selectors.d.ts +4 -51
- package/dist/appSlice/selectors.js +3 -4
- package/dist/appSlice/selectors.js.map +1 -1
- package/dist/appSlice/thunks.d.cts +1 -1
- package/dist/appSlice/thunks.d.ts +1 -1
- package/dist/auth.cjs +2 -2
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.js.map +1 -1
- package/dist/commonSelectors.cjs +2 -2
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +10 -2
- package/dist/commonSelectors.d.ts +10 -2
- package/dist/commonSelectors.js.map +1 -1
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/deploymentsSlice/index.cjs.map +1 -1
- package/dist/deploymentsSlice/index.js.map +1 -1
- package/dist/deploymentsSlice/selectors.cjs.map +1 -1
- package/dist/deploymentsSlice/selectors.d.cts +2 -2
- package/dist/deploymentsSlice/selectors.d.ts +2 -2
- package/dist/deploymentsSlice/selectors.js.map +1 -1
- package/dist/deploymentsSlice/thunks.cjs +1 -0
- package/dist/deploymentsSlice/thunks.d.cts +9 -4
- package/dist/deploymentsSlice/thunks.d.ts +9 -4
- package/dist/deploymentsSlice/thunks.js +2 -2
- package/dist/devicesSlice/index.cjs +4 -0
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.d.cts +1 -1
- package/dist/devicesSlice/index.d.ts +1 -1
- package/dist/devicesSlice/index.js +4 -0
- package/dist/devicesSlice/index.js.map +1 -1
- package/dist/devicesSlice/mocks.d.cts +1 -0
- package/dist/devicesSlice/mocks.d.ts +1 -0
- package/dist/devicesSlice/selectors.cjs +2 -0
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +4 -3
- package/dist/devicesSlice/selectors.d.ts +4 -3
- package/dist/devicesSlice/selectors.js +2 -1
- package/dist/devicesSlice/selectors.js.map +1 -1
- package/dist/devicesSlice/thunks.cjs +2 -0
- package/dist/devicesSlice/thunks.d.cts +68 -3
- package/dist/devicesSlice/thunks.d.ts +68 -3
- package/dist/devicesSlice/thunks.js +2 -2
- package/dist/{index-CPdMUfRr.d.ts → index-BqJuhvO_.d.ts} +4 -1
- package/dist/{index-DbfM03Gj.d.cts → index-Doc_1P_Y.d.cts} +4 -1
- package/dist/liststatehook.cjs.map +1 -1
- package/dist/liststatehook.js.map +1 -1
- package/dist/locationutils.cjs.map +1 -1
- package/dist/locationutils.d.cts +1 -1
- package/dist/locationutils.d.ts +1 -1
- package/dist/locationutils.js.map +1 -1
- package/dist/monitorSlice/index.cjs.map +1 -1
- package/dist/monitorSlice/index.js.map +1 -1
- package/dist/monitorSlice/mocks.cjs.map +1 -1
- package/dist/monitorSlice/mocks.js.map +1 -1
- package/dist/monitorSlice/selectors.d.cts +1 -1
- package/dist/monitorSlice/selectors.d.ts +1 -1
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.d.cts +2 -2
- package/dist/monitorSlice/thunks.d.ts +2 -2
- package/dist/monitorSlice/thunks.js.map +1 -1
- package/dist/onboardingSlice/index.cjs.map +1 -1
- package/dist/onboardingSlice/mocks.cjs.map +1 -1
- package/dist/onboardingSlice/selectors.d.cts +1 -1
- package/dist/onboardingSlice/selectors.d.ts +1 -1
- package/dist/onboardingSlice/thunks.d.cts +1 -1
- package/dist/onboardingSlice/thunks.d.ts +1 -1
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +2 -2
- package/dist/organizationSlice/selectors.d.ts +2 -2
- package/dist/organizationSlice/selectors.js.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +4 -41
- package/dist/organizationSlice/thunks.d.ts +4 -41
- package/dist/releasesSlice/index.cjs.map +1 -1
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.d.cts +2 -2
- package/dist/releasesSlice/selectors.d.ts +2 -2
- package/dist/releasesSlice/selectors.js.map +1 -1
- package/dist/releasesSlice/thunks.cjs +39 -16
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +3 -9
- package/dist/releasesSlice/thunks.d.ts +3 -9
- package/dist/releasesSlice/thunks.js +38 -15
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/selectors.cjs +1 -1
- package/dist/selectors.d.cts +3 -3
- package/dist/selectors.d.ts +3 -3
- package/dist/selectors.js +3 -3
- package/dist/sockethook.cjs +3 -3
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.js.map +1 -1
- package/dist/{store-Co2ptTSm.d.ts → store-BzrMxxAO.d.ts} +112 -4
- package/dist/{store-Dd0Y2JCN.d.cts → store-xV2zaXAc.d.cts} +112 -4
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +1 -2
- package/dist/store.d.ts +1 -2
- package/dist/store.js.map +1 -1
- package/dist/storehooks.cjs +5 -4
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.d.cts +1 -1
- package/dist/storehooks.d.ts +1 -1
- package/dist/storehooks.js +1 -0
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +85 -25
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +3 -3
- package/dist/thunks.d.ts +3 -3
- package/dist/thunks.js +76 -19
- package/dist/thunks.js.map +1 -1
- package/dist/useDeploymentDevice.cjs +2 -2
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js.map +1 -1
- package/dist/usersSlice/index.cjs.map +1 -1
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.d.cts +2 -2
- package/dist/usersSlice/selectors.d.ts +2 -2
- package/dist/usersSlice/selectors.js.map +1 -1
- package/dist/usersSlice/thunks.d.cts +1 -1
- package/dist/usersSlice/thunks.d.ts +1 -1
- package/dist/utils.cjs +2 -0
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +3 -2
- package/dist/utils.js.map +1 -1
- package/package.json +4 -4
- package/dist/utils-C_9XEfi_.d.ts +0 -104
- package/dist/utils-DbXmZmGq.d.cts +0 -104
- /package/dist/{chunk-D6vf50IK.cjs → rolldown-runtime-D6vf50IK.cjs} +0 -0
package/dist/thunks.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { setFirstLoginAfterSignup, setOfflineThreshold, setSearchState } from "./appSlice/thunks.cjs";
|
|
2
|
-
import { GetDeploymentsByStatusPayload, abortDeployment, createDeployment, deriveDeploymentGroup, generateDeploymentLogAnalysis, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceDeployments, getDeviceLog, getSingleDeployment, resetDeviceDeployments, saveDeltaDeploymentsConfig, setDeploymentsState, updateDeploymentControlMap } from "./deploymentsSlice/thunks.cjs";
|
|
3
|
-
import { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGatewayDevices, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getSystemDevices, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData } from "./devicesSlice/thunks.cjs";
|
|
2
|
+
import { GetDeploymentsByStatusPayload, abortDeployment, createDeployment, deriveDeploymentGroup, generateDeploymentLogAnalysis, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceDeployments, getDeviceLog, getSingleDeployment, resetDeviceDeployments, saveDeltaDeploymentsConfig, setDeploymentsState, transformDeployments, updateDeploymentControlMap } from "./deploymentsSlice/thunks.cjs";
|
|
3
|
+
import { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGatewayDevices, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getSystemDevices, getTestDeviceCount, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setTestDeviceStatus, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData } from "./devicesSlice/thunks.cjs";
|
|
4
4
|
import { changeNotificationSetting, getDeviceAlerts, getDeviceMonitorConfig, getIssueCountsByType, getLatestDeviceAlerts } from "./monitorSlice/thunks.cjs";
|
|
5
5
|
import { advanceOnboarding, getOnboardingState, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType } from "./onboardingSlice/thunks.cjs";
|
|
6
6
|
import { addTenant, cancelRequest, cancelUpgrade, changeIntegration, changeSsoConfig, completeUpgrade, confirmCardUpdate, createBillingProfile, createIntegration, createOrganizationTrial, deleteIntegration, deleteSsoConfig, downloadLicenseReport, editBillingProfile, editTenant, getAuditLogs, getAuditLogsCsvLink, getBillingPreview, getCurrentCard, getCurrentSubscription, getIntegrations, getProducts, getSsoConfigById, getSsoConfigs, getTargetLocation, getTenants, getUserBilling, getUserOrganization, getUserSubscription, getWebhookEvents, removeTenant, requestPlanChange, requestPlanUpgrade, sendSupportMessage, setAuditlogsState, setTenantsListState, startCardUpdate, startUpgrade, storeSsoConfig, tenantDataDivergedMessage, transformProductResponse } from "./organizationSlice/thunks.cjs";
|
|
7
7
|
import { cancelFileUpload, checkReleasesExistence, createArtifact, editArtifact, generateManifest, getArtifactInstallCount, getArtifactUrl, getDeltaGenerationJobDetails, getDeltaGenerationJobs, getExistingManifestTags, getExistingReleaseTags, getExistingSoftwareTags, getManifest, getManifests, getRelease, getReleases, getSoftware, getUpdateTypes, removeArtifact, removeManifest, removeManifests, removeRelease, removeReleases, selectManifest, selectRelease, setManifestsListState, setReleaseTags, setReleasesListState, setReleasesTags, setSingleReleaseTags, setSoftwareListState, updateManifestInfo, updateReleaseInfo, uploadArtifact, uploadManifest } from "./releasesSlice/thunks.cjs";
|
|
8
8
|
import { SubmittedRole, addUserToCurrentTenant, checkEmailExists, confirmOAuthLink, createRole, createUser, disableUser2fa, editRole, editUser, enableUser2fa, generateToken, get2FAQRCode, getGlobalSettings, getPermissionSets, getRoles, getTokens, getUser, getUserList, getUserSettings, initializeSelf, loginUser, logoutUser, normalizeRbacRoles, passwordResetComplete, passwordResetStart, removeRole, removeUser, revokeToken, saveGlobalSettings, saveUserSettings, setAllTooltipsReadState, setHideAnnouncement, setTooltipReadState, submitUserFeedback, switchUserOrganization, updateUserColumnSettings, verify2FA, verifyEmailComplete, verifyEmailStart } from "./usersSlice/thunks.cjs";
|
|
9
|
-
export { GetDeploymentsByStatusPayload, SubmittedRole, abortDeployment, addDevicesToGroup, addDynamicGroup, addStaticGroup, addTenant, addUserToCurrentTenant, advanceOnboarding, applyDeviceConfig, cancelFileUpload, cancelRequest, cancelUpgrade, changeIntegration, changeNotificationSetting, changeSsoConfig, checkEmailExists, checkReleasesExistence, completeUpgrade, confirmCardUpdate, confirmOAuthLink, createArtifact, createBillingProfile, createDeployment, createIntegration, createOrganizationTrial, createRole, createUser, decommissionDevice, deleteAuthset, deleteIntegration, deleteSsoConfig, deriveDeploymentGroup, deviceFileUpload, disableUser2fa, downloadLicenseReport, editArtifact, editBillingProfile, editRole, editTenant, editUser, enableUser2fa, generateDeploymentLogAnalysis, generateManifest, generateToken, get2FAQRCode, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getArtifactInstallCount, getArtifactUrl, getAuditLogs, getAuditLogsCsvLink, getBillingPreview, getCurrentCard, getCurrentSubscription, getDeltaGenerationJobDetails, getDeltaGenerationJobs, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceAlerts, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceDeployments, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceLog, getDeviceMonitorConfig, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getExistingManifestTags, getExistingReleaseTags, getExistingSoftwareTags, getGatewayDevices, getGlobalSettings, getGroupDevices, getGroups, getIntegrations, getIssueCountsByType, getLatestDeviceAlerts, getManifest, getManifests, getOnboardingState, getPermissionSets, getProducts, getRelease, getReleases, getReportDataWithoutBackendSupport, getRoles, getSessionDetails, getSingleDeployment, getSoftware, getSsoConfigById, getSsoConfigs, getSystemDevices, getTargetLocation, getTenants, getTokens, getUpdateTypes, getUser, getUserBilling, getUserList, getUserOrganization, getUserSettings, getUserSubscription, getWebhookEvents, initializeSelf, loginUser, logoutUser, normalizeRbacRoles, passwordResetComplete, passwordResetStart, preauthDevice, removeArtifact, removeDevicesFromGroup, removeDynamicGroup, removeManifest, removeManifests, removeRelease, removeReleases, removeReportsByGroupName, removeRole, removeStaticGroup, removeTenant, removeUser, requestPlanChange, requestPlanUpgrade, resetDeviceDeployments, revokeToken, saveDeltaDeploymentsConfig, saveGlobalSettings, saveUserSettings, searchDevices, selectGroup, selectManifest, selectRelease, sendSupportMessage, setAllTooltipsReadState, setAuditlogsState, setDeploymentsState, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setFirstLoginAfterSignup, setHideAnnouncement, setManifestsListState, setOfflineThreshold, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType, setReleaseTags, setReleasesListState, setReleasesTags, setSearchState, setSingleReleaseTags, setSoftwareListState, setTenantsListState, setTooltipReadState, startCardUpdate, startUpgrade, storeSsoConfig, submitUserFeedback, switchUserOrganization, tenantDataDivergedMessage, transformProductResponse, triggerDeviceUpdate, updateDeploymentControlMap, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateManifestInfo, updateReleaseInfo, updateReportData, updateUserColumnSettings, uploadArtifact, uploadManifest, verify2FA, verifyEmailComplete, verifyEmailStart };
|
|
9
|
+
export { GetDeploymentsByStatusPayload, SubmittedRole, abortDeployment, addDevicesToGroup, addDynamicGroup, addStaticGroup, addTenant, addUserToCurrentTenant, advanceOnboarding, applyDeviceConfig, cancelFileUpload, cancelRequest, cancelUpgrade, changeIntegration, changeNotificationSetting, changeSsoConfig, checkEmailExists, checkReleasesExistence, completeUpgrade, confirmCardUpdate, confirmOAuthLink, createArtifact, createBillingProfile, createDeployment, createIntegration, createOrganizationTrial, createRole, createUser, decommissionDevice, deleteAuthset, deleteIntegration, deleteSsoConfig, deriveDeploymentGroup, deviceFileUpload, disableUser2fa, downloadLicenseReport, editArtifact, editBillingProfile, editRole, editTenant, editUser, enableUser2fa, generateDeploymentLogAnalysis, generateManifest, generateToken, get2FAQRCode, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getArtifactInstallCount, getArtifactUrl, getAuditLogs, getAuditLogsCsvLink, getBillingPreview, getCurrentCard, getCurrentSubscription, getDeltaGenerationJobDetails, getDeltaGenerationJobs, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceAlerts, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceDeployments, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceLog, getDeviceMonitorConfig, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getExistingManifestTags, getExistingReleaseTags, getExistingSoftwareTags, getGatewayDevices, getGlobalSettings, getGroupDevices, getGroups, getIntegrations, getIssueCountsByType, getLatestDeviceAlerts, getManifest, getManifests, getOnboardingState, getPermissionSets, getProducts, getRelease, getReleases, getReportDataWithoutBackendSupport, getRoles, getSessionDetails, getSingleDeployment, getSoftware, getSsoConfigById, getSsoConfigs, getSystemDevices, getTargetLocation, getTenants, getTestDeviceCount, getTokens, getUpdateTypes, getUser, getUserBilling, getUserList, getUserOrganization, getUserSettings, getUserSubscription, getWebhookEvents, initializeSelf, loginUser, logoutUser, normalizeRbacRoles, passwordResetComplete, passwordResetStart, preauthDevice, removeArtifact, removeDevicesFromGroup, removeDynamicGroup, removeManifest, removeManifests, removeRelease, removeReleases, removeReportsByGroupName, removeRole, removeStaticGroup, removeTenant, removeUser, requestPlanChange, requestPlanUpgrade, resetDeviceDeployments, revokeToken, saveDeltaDeploymentsConfig, saveGlobalSettings, saveUserSettings, searchDevices, selectGroup, selectManifest, selectRelease, sendSupportMessage, setAllTooltipsReadState, setAuditlogsState, setDeploymentsState, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setFirstLoginAfterSignup, setHideAnnouncement, setManifestsListState, setOfflineThreshold, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType, setReleaseTags, setReleasesListState, setReleasesTags, setSearchState, setSingleReleaseTags, setSoftwareListState, setTenantsListState, setTestDeviceStatus, setTooltipReadState, startCardUpdate, startUpgrade, storeSsoConfig, submitUserFeedback, switchUserOrganization, tenantDataDivergedMessage, transformDeployments, transformProductResponse, triggerDeviceUpdate, updateDeploymentControlMap, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateManifestInfo, updateReleaseInfo, updateReportData, updateUserColumnSettings, uploadArtifact, uploadManifest, verify2FA, verifyEmailComplete, verifyEmailStart };
|
package/dist/thunks.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { setFirstLoginAfterSignup, setOfflineThreshold, setSearchState } from "./appSlice/thunks.js";
|
|
2
|
-
import { GetDeploymentsByStatusPayload, abortDeployment, createDeployment, deriveDeploymentGroup, generateDeploymentLogAnalysis, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceDeployments, getDeviceLog, getSingleDeployment, resetDeviceDeployments, saveDeltaDeploymentsConfig, setDeploymentsState, updateDeploymentControlMap } from "./deploymentsSlice/thunks.js";
|
|
3
|
-
import { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGatewayDevices, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getSystemDevices, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData } from "./devicesSlice/thunks.js";
|
|
2
|
+
import { GetDeploymentsByStatusPayload, abortDeployment, createDeployment, deriveDeploymentGroup, generateDeploymentLogAnalysis, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceDeployments, getDeviceLog, getSingleDeployment, resetDeviceDeployments, saveDeltaDeploymentsConfig, setDeploymentsState, transformDeployments, updateDeploymentControlMap } from "./deploymentsSlice/thunks.js";
|
|
3
|
+
import { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGatewayDevices, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getSystemDevices, getTestDeviceCount, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setTestDeviceStatus, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData } from "./devicesSlice/thunks.js";
|
|
4
4
|
import { changeNotificationSetting, getDeviceAlerts, getDeviceMonitorConfig, getIssueCountsByType, getLatestDeviceAlerts } from "./monitorSlice/thunks.js";
|
|
5
5
|
import { advanceOnboarding, getOnboardingState, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType } from "./onboardingSlice/thunks.js";
|
|
6
6
|
import { addTenant, cancelRequest, cancelUpgrade, changeIntegration, changeSsoConfig, completeUpgrade, confirmCardUpdate, createBillingProfile, createIntegration, createOrganizationTrial, deleteIntegration, deleteSsoConfig, downloadLicenseReport, editBillingProfile, editTenant, getAuditLogs, getAuditLogsCsvLink, getBillingPreview, getCurrentCard, getCurrentSubscription, getIntegrations, getProducts, getSsoConfigById, getSsoConfigs, getTargetLocation, getTenants, getUserBilling, getUserOrganization, getUserSubscription, getWebhookEvents, removeTenant, requestPlanChange, requestPlanUpgrade, sendSupportMessage, setAuditlogsState, setTenantsListState, startCardUpdate, startUpgrade, storeSsoConfig, tenantDataDivergedMessage, transformProductResponse } from "./organizationSlice/thunks.js";
|
|
7
7
|
import { cancelFileUpload, checkReleasesExistence, createArtifact, editArtifact, generateManifest, getArtifactInstallCount, getArtifactUrl, getDeltaGenerationJobDetails, getDeltaGenerationJobs, getExistingManifestTags, getExistingReleaseTags, getExistingSoftwareTags, getManifest, getManifests, getRelease, getReleases, getSoftware, getUpdateTypes, removeArtifact, removeManifest, removeManifests, removeRelease, removeReleases, selectManifest, selectRelease, setManifestsListState, setReleaseTags, setReleasesListState, setReleasesTags, setSingleReleaseTags, setSoftwareListState, updateManifestInfo, updateReleaseInfo, uploadArtifact, uploadManifest } from "./releasesSlice/thunks.js";
|
|
8
8
|
import { SubmittedRole, addUserToCurrentTenant, checkEmailExists, confirmOAuthLink, createRole, createUser, disableUser2fa, editRole, editUser, enableUser2fa, generateToken, get2FAQRCode, getGlobalSettings, getPermissionSets, getRoles, getTokens, getUser, getUserList, getUserSettings, initializeSelf, loginUser, logoutUser, normalizeRbacRoles, passwordResetComplete, passwordResetStart, removeRole, removeUser, revokeToken, saveGlobalSettings, saveUserSettings, setAllTooltipsReadState, setHideAnnouncement, setTooltipReadState, submitUserFeedback, switchUserOrganization, updateUserColumnSettings, verify2FA, verifyEmailComplete, verifyEmailStart } from "./usersSlice/thunks.js";
|
|
9
|
-
export { GetDeploymentsByStatusPayload, SubmittedRole, abortDeployment, addDevicesToGroup, addDynamicGroup, addStaticGroup, addTenant, addUserToCurrentTenant, advanceOnboarding, applyDeviceConfig, cancelFileUpload, cancelRequest, cancelUpgrade, changeIntegration, changeNotificationSetting, changeSsoConfig, checkEmailExists, checkReleasesExistence, completeUpgrade, confirmCardUpdate, confirmOAuthLink, createArtifact, createBillingProfile, createDeployment, createIntegration, createOrganizationTrial, createRole, createUser, decommissionDevice, deleteAuthset, deleteIntegration, deleteSsoConfig, deriveDeploymentGroup, deviceFileUpload, disableUser2fa, downloadLicenseReport, editArtifact, editBillingProfile, editRole, editTenant, editUser, enableUser2fa, generateDeploymentLogAnalysis, generateManifest, generateToken, get2FAQRCode, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getArtifactInstallCount, getArtifactUrl, getAuditLogs, getAuditLogsCsvLink, getBillingPreview, getCurrentCard, getCurrentSubscription, getDeltaGenerationJobDetails, getDeltaGenerationJobs, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceAlerts, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceDeployments, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceLog, getDeviceMonitorConfig, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getExistingManifestTags, getExistingReleaseTags, getExistingSoftwareTags, getGatewayDevices, getGlobalSettings, getGroupDevices, getGroups, getIntegrations, getIssueCountsByType, getLatestDeviceAlerts, getManifest, getManifests, getOnboardingState, getPermissionSets, getProducts, getRelease, getReleases, getReportDataWithoutBackendSupport, getRoles, getSessionDetails, getSingleDeployment, getSoftware, getSsoConfigById, getSsoConfigs, getSystemDevices, getTargetLocation, getTenants, getTokens, getUpdateTypes, getUser, getUserBilling, getUserList, getUserOrganization, getUserSettings, getUserSubscription, getWebhookEvents, initializeSelf, loginUser, logoutUser, normalizeRbacRoles, passwordResetComplete, passwordResetStart, preauthDevice, removeArtifact, removeDevicesFromGroup, removeDynamicGroup, removeManifest, removeManifests, removeRelease, removeReleases, removeReportsByGroupName, removeRole, removeStaticGroup, removeTenant, removeUser, requestPlanChange, requestPlanUpgrade, resetDeviceDeployments, revokeToken, saveDeltaDeploymentsConfig, saveGlobalSettings, saveUserSettings, searchDevices, selectGroup, selectManifest, selectRelease, sendSupportMessage, setAllTooltipsReadState, setAuditlogsState, setDeploymentsState, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setFirstLoginAfterSignup, setHideAnnouncement, setManifestsListState, setOfflineThreshold, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType, setReleaseTags, setReleasesListState, setReleasesTags, setSearchState, setSingleReleaseTags, setSoftwareListState, setTenantsListState, setTooltipReadState, startCardUpdate, startUpgrade, storeSsoConfig, submitUserFeedback, switchUserOrganization, tenantDataDivergedMessage, transformProductResponse, triggerDeviceUpdate, updateDeploymentControlMap, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateManifestInfo, updateReleaseInfo, updateReportData, updateUserColumnSettings, uploadArtifact, uploadManifest, verify2FA, verifyEmailComplete, verifyEmailStart };
|
|
9
|
+
export { GetDeploymentsByStatusPayload, SubmittedRole, abortDeployment, addDevicesToGroup, addDynamicGroup, addStaticGroup, addTenant, addUserToCurrentTenant, advanceOnboarding, applyDeviceConfig, cancelFileUpload, cancelRequest, cancelUpgrade, changeIntegration, changeNotificationSetting, changeSsoConfig, checkEmailExists, checkReleasesExistence, completeUpgrade, confirmCardUpdate, confirmOAuthLink, createArtifact, createBillingProfile, createDeployment, createIntegration, createOrganizationTrial, createRole, createUser, decommissionDevice, deleteAuthset, deleteIntegration, deleteSsoConfig, deriveDeploymentGroup, deviceFileUpload, disableUser2fa, downloadLicenseReport, editArtifact, editBillingProfile, editRole, editTenant, editUser, enableUser2fa, generateDeploymentLogAnalysis, generateManifest, generateToken, get2FAQRCode, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getArtifactInstallCount, getArtifactUrl, getAuditLogs, getAuditLogsCsvLink, getBillingPreview, getCurrentCard, getCurrentSubscription, getDeltaGenerationJobDetails, getDeltaGenerationJobs, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceAlerts, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceDeployments, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceLog, getDeviceMonitorConfig, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getExistingManifestTags, getExistingReleaseTags, getExistingSoftwareTags, getGatewayDevices, getGlobalSettings, getGroupDevices, getGroups, getIntegrations, getIssueCountsByType, getLatestDeviceAlerts, getManifest, getManifests, getOnboardingState, getPermissionSets, getProducts, getRelease, getReleases, getReportDataWithoutBackendSupport, getRoles, getSessionDetails, getSingleDeployment, getSoftware, getSsoConfigById, getSsoConfigs, getSystemDevices, getTargetLocation, getTenants, getTestDeviceCount, getTokens, getUpdateTypes, getUser, getUserBilling, getUserList, getUserOrganization, getUserSettings, getUserSubscription, getWebhookEvents, initializeSelf, loginUser, logoutUser, normalizeRbacRoles, passwordResetComplete, passwordResetStart, preauthDevice, removeArtifact, removeDevicesFromGroup, removeDynamicGroup, removeManifest, removeManifests, removeRelease, removeReleases, removeReportsByGroupName, removeRole, removeStaticGroup, removeTenant, removeUser, requestPlanChange, requestPlanUpgrade, resetDeviceDeployments, revokeToken, saveDeltaDeploymentsConfig, saveGlobalSettings, saveUserSettings, searchDevices, selectGroup, selectManifest, selectRelease, sendSupportMessage, setAllTooltipsReadState, setAuditlogsState, setDeploymentsState, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setFirstLoginAfterSignup, setHideAnnouncement, setManifestsListState, setOfflineThreshold, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType, setReleaseTags, setReleasesListState, setReleasesTags, setSearchState, setSingleReleaseTags, setSoftwareListState, setTenantsListState, setTestDeviceStatus, setTooltipReadState, startCardUpdate, startUpgrade, storeSsoConfig, submitUserFeedback, switchUserOrganization, tenantDataDivergedMessage, transformDeployments, transformProductResponse, triggerDeviceUpdate, updateDeploymentControlMap, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateManifestInfo, updateReleaseInfo, updateReportData, updateUserColumnSettings, uploadArtifact, uploadManifest, verify2FA, verifyEmailComplete, verifyEmailStart };
|
package/dist/thunks.js
CHANGED
|
@@ -14,7 +14,7 @@ import { getHostedAnnouncement, getSearchState } from "./appSlice/selectors.js";
|
|
|
14
14
|
import { getDeploymentsById, getDeploymentsByStatus as getDeploymentsByStatus$1 } from "./deploymentsSlice/selectors.js";
|
|
15
15
|
import { getAcceptedDevices, getDeviceById as getDeviceById$1, getDeviceCountsByStatus, getDeviceFilters, getDeviceListState, getDeviceReports, getDevicesById, getGroupsById, getSelectedGroup } from "./devicesSlice/selectors.js";
|
|
16
16
|
import { getAuditlogState, getDeviceTwinIntegrations, getOrganization, getSpLimits, getTenantsList } from "./organizationSlice/selectors.js";
|
|
17
|
-
import { convertDeviceListStateToFilters, convertToBackendSPLimits, extractErrorMessage as extractErrorMessage$1, filtersFilter, mapDeviceAttributes, mapFiltersToTerms, mapTermsToFilters, mergePermissions, parseSubscriptionPreview, progress, stripUndefined } from "./utils.js";
|
|
17
|
+
import { convertDeviceListStateToFilters, convertToBackendSPLimits, dispatchDelayed, extractErrorMessage as extractErrorMessage$1, filtersFilter, mapDeviceAttributes, mapFiltersToTerms, mapTermsToFilters, mergePermissions, parseSubscriptionPreview, progress, stripUndefined } from "./utils.js";
|
|
18
18
|
import { getCurrentUser, getGlobalSettings as getGlobalSettings$1, getIdAttribute, getOfflineThresholdSettings, getRolesById, getSelectedDeviceAttribute, getTooltipsState, getUserSettings as getUserSettings$1, getUsersById } from "./usersSlice/selectors.js";
|
|
19
19
|
import { getDeviceReportsForUser, getOnboardingState as getOnboardingState$1, getTenantCapabilities, getUserCapabilities } from "./commonSelectors.js";
|
|
20
20
|
import { commonErrorFallback, commonErrorHandler, createAppAsyncThunk } from "./store.js";
|
|
@@ -98,6 +98,13 @@ const { isUUID } = validator;
|
|
|
98
98
|
const { receivedDevice, setSnackbar: setSnackbar$3 } = actions_default;
|
|
99
99
|
const { page: defaultPage$2, perPage: defaultPerPage$2 } = DEVICE_LIST_DEFAULTS;
|
|
100
100
|
const deriveDeploymentGroup = ({ filter, group, groups = [], name }) => group || groups.length === 1 && !isUUID(name) ? groups[0] : filter?.name;
|
|
101
|
+
const decodeDeploymentName = (name) => {
|
|
102
|
+
try {
|
|
103
|
+
return decodeURIComponent(name);
|
|
104
|
+
} catch {
|
|
105
|
+
return name;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
101
108
|
const transformDeployments = (deployments, deploymentsById) => deployments.sort(customSort(true, "created")).reduce((accu, item) => {
|
|
102
109
|
const filter = item.filter;
|
|
103
110
|
let deployment = {
|
|
@@ -109,7 +116,7 @@ const transformDeployments = (deployments, deploymentsById) => deployments.sort(
|
|
|
109
116
|
name: filter.name ?? filter.id,
|
|
110
117
|
filters: mapTermsToFilters(filter.terms)
|
|
111
118
|
} : void 0,
|
|
112
|
-
name:
|
|
119
|
+
name: decodeDeploymentName(item.name)
|
|
113
120
|
};
|
|
114
121
|
deployment = {
|
|
115
122
|
...deployment,
|
|
@@ -881,6 +888,23 @@ const getAllDeviceCounts = createAppAsyncThunk(`${sliceName$2}/getAllDeviceCount
|
|
|
881
888
|
})));
|
|
882
889
|
}));
|
|
883
890
|
const getDeviceLimits = createAppAsyncThunk(`${sliceName$2}/getDeviceLimit`, (_, { dispatch }) => Api.get(`${deviceAuthV2}/limits/devices`).then((res) => dispatch(actions$2.setDeviceLimits(res.data))));
|
|
891
|
+
const getTestDeviceCount = createAppAsyncThunk(`${sliceName$2}/getTestDeviceCount`, async (_, { dispatch }) => {
|
|
892
|
+
const res = await Api.post(`${inventoryApiUrlV2}/filters/search`, {
|
|
893
|
+
page: 1,
|
|
894
|
+
per_page: 1,
|
|
895
|
+
filters: [{
|
|
896
|
+
scope: "system",
|
|
897
|
+
attribute: "test_device",
|
|
898
|
+
type: DEVICE_FILTERING_OPTIONS.$eq.key,
|
|
899
|
+
value: "true"
|
|
900
|
+
}],
|
|
901
|
+
attributes: [{
|
|
902
|
+
scope: "identity",
|
|
903
|
+
attribute: "status"
|
|
904
|
+
}]
|
|
905
|
+
}).catch((err) => commonErrorHandler(err, `Retrieving test device count failed:`, dispatch, commonErrorFallback));
|
|
906
|
+
return dispatch(actions$2.setTestDeviceCount(Number(res.headers[headerNames.total])));
|
|
907
|
+
});
|
|
884
908
|
const setDeviceListState = createAppAsyncThunk(`${sliceName$2}/setDeviceListState`, ({ shouldSelectDevices = true, forceRefresh, fetchAuth = true, ...selectionState }, { dispatch, getState }) => {
|
|
885
909
|
const currentState = getDeviceListState(getState());
|
|
886
910
|
const refreshTrigger = forceRefresh ? !currentState.refreshTrigger : selectionState.refreshTrigger;
|
|
@@ -1048,7 +1072,7 @@ const initializeDistributionData = (report, groups, devices, totalDeviceCount) =
|
|
|
1048
1072
|
const { deviceIds, total = 0 } = groups[group] || {};
|
|
1049
1073
|
const distributionByAttribute = (deviceIds ? deviceIds.map((id) => devices[id]) : Object.values(devices)).reduce((accu, item) => {
|
|
1050
1074
|
if (!item.attributes || item.status !== DEVICE_STATES.accepted) return accu;
|
|
1051
|
-
const attributeValue = item.attributes[effectiveAttribute];
|
|
1075
|
+
const attributeValue = item.attributes[effectiveAttribute] ?? "";
|
|
1052
1076
|
if (!accu[attributeValue]) accu[attributeValue] = 0;
|
|
1053
1077
|
accu[attributeValue] = accu[attributeValue] + 1;
|
|
1054
1078
|
return accu;
|
|
@@ -1085,6 +1109,7 @@ const getReportDataWithoutBackendSupport = createAppAsyncThunk(`${sliceName$2}/g
|
|
|
1085
1109
|
const acceptedDevices = getAcceptedDevices(getState());
|
|
1086
1110
|
const { accepted: acceptedDevicesCount } = getDeviceCountsByStatus(getState());
|
|
1087
1111
|
const { deviceIds = [], filters = [], total = 0 } = getGroupsById(getState())[group] || {};
|
|
1112
|
+
const hasAttributeData = (group ? deviceIds : acceptedDevices.deviceIds).every((id) => devicesById[id]?.attributes?.[effectiveAttribute] !== void 0);
|
|
1088
1113
|
let groupDevicesRequest = Promise.resolve({ payload: {
|
|
1089
1114
|
groupName: "",
|
|
1090
1115
|
group: {
|
|
@@ -1092,14 +1117,14 @@ const getReportDataWithoutBackendSupport = createAppAsyncThunk(`${sliceName$2}/g
|
|
|
1092
1117
|
total: Object.keys(devicesById).length
|
|
1093
1118
|
}
|
|
1094
1119
|
} });
|
|
1095
|
-
if (group && (!(deviceIds.length && total) || deviceIds.length !== total || !deviceIds.every((id) => !!devicesById[id]))) groupDevicesRequest = filters.length ? dispatch(getAllDynamicGroupDevices({
|
|
1120
|
+
if (group && (!(deviceIds.length && total) || deviceIds.length !== total || !deviceIds.every((id) => !!devicesById[id]) || !hasAttributeData)) groupDevicesRequest = filters.length ? dispatch(getAllDynamicGroupDevices({
|
|
1096
1121
|
group,
|
|
1097
1122
|
attribute: effectiveAttribute
|
|
1098
1123
|
})).unwrap() : dispatch(getAllGroupDevices({
|
|
1099
1124
|
group,
|
|
1100
1125
|
attribute: effectiveAttribute
|
|
1101
1126
|
})).unwrap();
|
|
1102
|
-
else if (!group && (acceptedDevices.deviceIds.length !== acceptedDevicesCount || !acceptedDevices.deviceIds.every((id) => !!devicesById[id]))) groupDevicesRequest = dispatch(getAllDevicesByStatus({
|
|
1127
|
+
else if (!group && (acceptedDevices.deviceIds.length !== acceptedDevicesCount || !acceptedDevices.deviceIds.every((id) => !!devicesById[id]) || !hasAttributeData)) groupDevicesRequest = dispatch(getAllDevicesByStatus({
|
|
1103
1128
|
status: DEVICE_STATES.accepted,
|
|
1104
1129
|
attribute: effectiveAttribute
|
|
1105
1130
|
})).unwrap();
|
|
@@ -1244,7 +1269,12 @@ const applyDeviceConfig = createAppAsyncThunk(`${sliceName$2}/applyDeviceConfig`
|
|
|
1244
1269
|
...device.config,
|
|
1245
1270
|
deployment_id: data.deployment_id
|
|
1246
1271
|
}
|
|
1247
|
-
})))
|
|
1272
|
+
})))];
|
|
1273
|
+
dispatchDelayed({
|
|
1274
|
+
action: getSingleDeployment(data.deployment_id),
|
|
1275
|
+
delay: TIMEOUTS.oneSecond,
|
|
1276
|
+
dispatch
|
|
1277
|
+
});
|
|
1248
1278
|
if (isDefault && canManageUsers) {
|
|
1249
1279
|
const { previous } = getGlobalSettings$1(getState()).defaultDeviceConfig ?? {};
|
|
1250
1280
|
tasks.push(dispatch(saveGlobalSettings({ defaultDeviceConfig: {
|
|
@@ -1267,6 +1297,15 @@ const setDeviceTags = createAppAsyncThunk(`${sliceName$2}/setDeviceTags`, ({ dev
|
|
|
1267
1297
|
tags
|
|
1268
1298
|
})), dispatch(setSnackbar$2(`Device ${tagList.length === 1 && isNameChange ? "name" : "tags"} changed`))]));
|
|
1269
1299
|
}));
|
|
1300
|
+
const setTestDeviceStatus = createAppAsyncThunk(`${sliceName$2}/setTestDeviceStatus`, ({ deviceId, test_device }, { dispatch }) => Api.put(`${deviceAuthV2}/devices/${deviceId}/flags`, { test_device }).catch((err) => commonErrorHandler(err, `There was an error setting test status for device ${deviceId}.`, dispatch, "Please check your connection.")).then(() => Promise.all([
|
|
1301
|
+
dispatch(setSnackbar$2("Device updated successfully")),
|
|
1302
|
+
dispatch(actions$2.receivedDevice({
|
|
1303
|
+
id: deviceId,
|
|
1304
|
+
flags: { test_device }
|
|
1305
|
+
})),
|
|
1306
|
+
dispatch(getDeviceById(deviceId)),
|
|
1307
|
+
dispatch(getTestDeviceCount())
|
|
1308
|
+
])));
|
|
1270
1309
|
const getDeviceTwin = createAppAsyncThunk(`${sliceName$2}/getDeviceTwin`, ({ deviceId, integration }, { dispatch, getState }) => {
|
|
1271
1310
|
let providerResult = {};
|
|
1272
1311
|
return Api.get(`${iotManagerBaseURL}/devices/${deviceId}/state`).then(({ data }) => {
|
|
@@ -1701,7 +1740,14 @@ const addTenant = createAppAsyncThunk(`${sliceName$4}/createTenant`, (selectionS
|
|
|
1701
1740
|
return Api.post(`${tenantadmApiUrlv2}/tenants`, {
|
|
1702
1741
|
...rest,
|
|
1703
1742
|
device_limits
|
|
1704
|
-
}).then(() =>
|
|
1743
|
+
}).then(() => {
|
|
1744
|
+
dispatch(setSnackbar$1("Tenant was created successfully."));
|
|
1745
|
+
dispatchDelayed({
|
|
1746
|
+
action: getTenants(),
|
|
1747
|
+
delay: TIMEOUTS.oneSecond,
|
|
1748
|
+
dispatch
|
|
1749
|
+
});
|
|
1750
|
+
}).catch((err) => commonErrorHandler(err, "There was an error creating tenant", dispatch, commonErrorFallback));
|
|
1705
1751
|
});
|
|
1706
1752
|
const tenantListRetrieval = async (config) => {
|
|
1707
1753
|
const { page, perPage } = config;
|
|
@@ -1744,19 +1790,27 @@ const editTenant = createAppAsyncThunk(`${sliceName$4}/editDeviceLimit`, ({ devi
|
|
|
1744
1790
|
return Api.put(`${tenantadmApiUrlv2}/tenants/${id}/child`, {
|
|
1745
1791
|
device_limits,
|
|
1746
1792
|
name
|
|
1747
|
-
}).catch((err) => commonErrorHandler(err, `Device Limit cannot be changed`, dispatch)).then(() =>
|
|
1748
|
-
dispatch(setSnackbar$1("Tenant was changed successfully"))
|
|
1749
|
-
dispatch(getUserOrganization())
|
|
1750
|
-
|
|
1751
|
-
|
|
1793
|
+
}).catch((err) => commonErrorHandler(err, `Device Limit cannot be changed`, dispatch)).then(() => {
|
|
1794
|
+
dispatch(setSnackbar$1("Tenant was changed successfully"));
|
|
1795
|
+
dispatch(getUserOrganization());
|
|
1796
|
+
dispatchDelayed({
|
|
1797
|
+
action: getTenants(),
|
|
1798
|
+
delay: TIMEOUTS.oneSecond,
|
|
1799
|
+
dispatch
|
|
1800
|
+
});
|
|
1801
|
+
});
|
|
1752
1802
|
});
|
|
1753
1803
|
const editBillingProfile = createAppAsyncThunk(`${sliceName$4}/editBillingProfileEmail`, ({ billingProfile }, { dispatch }) => Api.patch(`${tenantadmApiUrlv2}/billing/profile`, billingProfile).catch((err) => commonErrorHandler(err, `Failed to change billing profile`, dispatch)).then(() => Promise.all([dispatch(setSnackbar$1("Billing Profile was changed successfully")), dispatch(getUserBilling())])));
|
|
1754
1804
|
const createBillingProfile = createAppAsyncThunk(`${sliceName$4}/createBillingProfileEmail`, ({ billingProfile }, { dispatch }) => Api.post(`${tenantadmApiUrlv2}/billing/profile`, billingProfile).catch((err) => commonErrorHandler(err, `Failed to create billing profile`, dispatch)).then(() => Promise.all([dispatch(setSnackbar$1("Billing Profile was created successfully")), dispatch(getUserBilling())])));
|
|
1755
|
-
const removeTenant = createAppAsyncThunk(`${sliceName$4}/editDeviceLimit`, ({ id }, { dispatch }) => Api.post(`${tenantadmApiUrlv2}/tenants/${id}/remove/start`).catch((err) => commonErrorHandler(err, `There was an error removing the tenant`, dispatch)).then(() =>
|
|
1756
|
-
dispatch(setSnackbar$1("The tenant was removed successfully"))
|
|
1757
|
-
dispatch(getUserOrganization())
|
|
1758
|
-
|
|
1759
|
-
|
|
1805
|
+
const removeTenant = createAppAsyncThunk(`${sliceName$4}/editDeviceLimit`, ({ id }, { dispatch }) => Api.post(`${tenantadmApiUrlv2}/tenants/${id}/remove/start`).catch((err) => commonErrorHandler(err, `There was an error removing the tenant`, dispatch)).then(async () => {
|
|
1806
|
+
dispatch(setSnackbar$1("The tenant was removed successfully"));
|
|
1807
|
+
await dispatch(getUserOrganization()).unwrap();
|
|
1808
|
+
dispatchDelayed({
|
|
1809
|
+
action: getTenants(),
|
|
1810
|
+
delay: TIMEOUTS.oneSecond,
|
|
1811
|
+
dispatch
|
|
1812
|
+
});
|
|
1813
|
+
}));
|
|
1760
1814
|
const getUserOrganization = createAppAsyncThunk(`${sliceName$4}/getUserOrganization`, (_, { dispatch, getState }) => Api.get(`${tenantadmApiUrlv1}/user/tenant?tiers=true`).then((res) => {
|
|
1761
1815
|
const { addons, plan, trial } = res.data;
|
|
1762
1816
|
const { addons: currentAddons, id: currentId, plan: currentPlan, trial: currentTrial } = getOrganization(getState());
|
|
@@ -2455,10 +2509,13 @@ const setAllTooltipsReadState = createAppAsyncThunk(`${sliceName$5}/toggleHelpti
|
|
|
2455
2509
|
const submitUserFeedback = createAppAsyncThunk(`${sliceName$5}/submitFeedback`, ({ formId, feedback }, { dispatch }) => Api.post(`${useradmApiUrlv2}/support/feedback/${formId}`, feedback).then(() => {
|
|
2456
2510
|
if (formId === "product") {
|
|
2457
2511
|
dispatch(saveUserSettings({ feedbackCollectedAt: (/* @__PURE__ */ new Date()).toISOString().split("T")[0] }));
|
|
2458
|
-
|
|
2512
|
+
dispatchDelayed({
|
|
2513
|
+
action: actions$5.setShowFeedbackDialog(false),
|
|
2514
|
+
dispatch
|
|
2515
|
+
});
|
|
2459
2516
|
}
|
|
2460
2517
|
}));
|
|
2461
2518
|
//#endregion
|
|
2462
|
-
export { abortDeployment, addDevicesToGroup, addDynamicGroup, addStaticGroup, addTenant, addUserToCurrentTenant, advanceOnboarding, applyDeviceConfig, cancelFileUpload, cancelRequest, cancelUpgrade, changeIntegration, changeNotificationSetting, changeSsoConfig, checkEmailExists, checkReleasesExistence, completeUpgrade, confirmCardUpdate, confirmOAuthLink, createArtifact, createBillingProfile, createDeployment, createIntegration, createOrganizationTrial, createRole, createUser, decommissionDevice, deleteAuthset, deleteIntegration, deleteSsoConfig, deriveDeploymentGroup, deviceFileUpload, disableUser2fa, downloadLicenseReport, editArtifact, editBillingProfile, editRole, editTenant, editUser, enableUser2fa, generateDeploymentLogAnalysis, generateManifest, generateToken, get2FAQRCode, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getArtifactInstallCount, getArtifactUrl, getAuditLogs, getAuditLogsCsvLink, getBillingPreview, getCurrentCard, getCurrentSubscription, getDeltaGenerationJobDetails, getDeltaGenerationJobs, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceAlerts, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceDeployments, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceLog, getDeviceMonitorConfig, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getExistingManifestTags, getExistingReleaseTags, getExistingSoftwareTags, getGatewayDevices, getGlobalSettings, getGroupDevices, getGroups, getIntegrations, getIssueCountsByType, getLatestDeviceAlerts, getManifest, getManifests, getOnboardingState, getPermissionSets, getProducts, getRelease, getReleases, getReportDataWithoutBackendSupport, getRoles, getSessionDetails, getSingleDeployment, getSoftware, getSsoConfigById, getSsoConfigs, getSystemDevices, getTargetLocation, getTenants, getTokens, getUpdateTypes, getUser, getUserBilling, getUserList, getUserOrganization, getUserSettings, getUserSubscription, getWebhookEvents, initializeSelf, loginUser, logoutUser, normalizeRbacRoles, passwordResetComplete, passwordResetStart, preauthDevice, removeArtifact, removeDevicesFromGroup, removeDynamicGroup, removeManifest, removeManifests, removeRelease, removeReleases, removeReportsByGroupName, removeRole, removeStaticGroup, removeTenant, removeUser, requestPlanChange, requestPlanUpgrade, resetDeviceDeployments, revokeToken, saveDeltaDeploymentsConfig, saveGlobalSettings, saveUserSettings, searchDevices, selectGroup, selectManifest, selectRelease, sendSupportMessage, setAllTooltipsReadState, setAuditlogsState, setDeploymentsState, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setFirstLoginAfterSignup, setHideAnnouncement, setManifestsListState, setOfflineThreshold, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType, setReleaseTags, setReleasesListState, setReleasesTags, setSearchState, setSingleReleaseTags, setSoftwareListState, setTenantsListState, setTooltipReadState, startCardUpdate, startUpgrade, storeSsoConfig, submitUserFeedback, switchUserOrganization, tenantDataDivergedMessage, transformProductResponse, triggerDeviceUpdate, updateDeploymentControlMap, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateManifestInfo, updateReleaseInfo, updateReportData, updateUserColumnSettings, uploadArtifact, uploadManifest, verify2FA, verifyEmailComplete, verifyEmailStart };
|
|
2519
|
+
export { abortDeployment, addDevicesToGroup, addDynamicGroup, addStaticGroup, addTenant, addUserToCurrentTenant, advanceOnboarding, applyDeviceConfig, cancelFileUpload, cancelRequest, cancelUpgrade, changeIntegration, changeNotificationSetting, changeSsoConfig, checkEmailExists, checkReleasesExistence, completeUpgrade, confirmCardUpdate, confirmOAuthLink, createArtifact, createBillingProfile, createDeployment, createIntegration, createOrganizationTrial, createRole, createUser, decommissionDevice, deleteAuthset, deleteIntegration, deleteSsoConfig, deriveDeploymentGroup, deviceFileUpload, disableUser2fa, downloadLicenseReport, editArtifact, editBillingProfile, editRole, editTenant, editUser, enableUser2fa, generateDeploymentLogAnalysis, generateManifest, generateToken, get2FAQRCode, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getArtifactInstallCount, getArtifactUrl, getAuditLogs, getAuditLogsCsvLink, getBillingPreview, getCurrentCard, getCurrentSubscription, getDeltaGenerationJobDetails, getDeltaGenerationJobs, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceAlerts, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceDeployments, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceLog, getDeviceMonitorConfig, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getExistingManifestTags, getExistingReleaseTags, getExistingSoftwareTags, getGatewayDevices, getGlobalSettings, getGroupDevices, getGroups, getIntegrations, getIssueCountsByType, getLatestDeviceAlerts, getManifest, getManifests, getOnboardingState, getPermissionSets, getProducts, getRelease, getReleases, getReportDataWithoutBackendSupport, getRoles, getSessionDetails, getSingleDeployment, getSoftware, getSsoConfigById, getSsoConfigs, getSystemDevices, getTargetLocation, getTenants, getTestDeviceCount, getTokens, getUpdateTypes, getUser, getUserBilling, getUserList, getUserOrganization, getUserSettings, getUserSubscription, getWebhookEvents, initializeSelf, loginUser, logoutUser, normalizeRbacRoles, passwordResetComplete, passwordResetStart, preauthDevice, removeArtifact, removeDevicesFromGroup, removeDynamicGroup, removeManifest, removeManifests, removeRelease, removeReleases, removeReportsByGroupName, removeRole, removeStaticGroup, removeTenant, removeUser, requestPlanChange, requestPlanUpgrade, resetDeviceDeployments, revokeToken, saveDeltaDeploymentsConfig, saveGlobalSettings, saveUserSettings, searchDevices, selectGroup, selectManifest, selectRelease, sendSupportMessage, setAllTooltipsReadState, setAuditlogsState, setDeploymentsState, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setFirstLoginAfterSignup, setHideAnnouncement, setManifestsListState, setOfflineThreshold, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType, setReleaseTags, setReleasesListState, setReleasesTags, setSearchState, setSingleReleaseTags, setSoftwareListState, setTenantsListState, setTestDeviceStatus, setTooltipReadState, startCardUpdate, startUpgrade, storeSsoConfig, submitUserFeedback, switchUserOrganization, tenantDataDivergedMessage, transformDeployments, transformProductResponse, triggerDeviceUpdate, updateDeploymentControlMap, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateManifestInfo, updateReleaseInfo, updateReportData, updateUserColumnSettings, uploadArtifact, uploadManifest, verify2FA, verifyEmailComplete, verifyEmailStart };
|
|
2463
2520
|
|
|
2464
2521
|
//# sourceMappingURL=thunks.js.map
|