@northern.tech/store 0.36.3 → 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.
Files changed (87) hide show
  1. package/dist/actions.d.cts +2 -1
  2. package/dist/actions.d.ts +2 -1
  3. package/dist/appSlice/index.cjs +1 -0
  4. package/dist/appSlice/index.cjs.map +1 -1
  5. package/dist/appSlice/index.js +1 -0
  6. package/dist/appSlice/index.js.map +1 -1
  7. package/dist/appSlice/selectors.cjs +2 -4
  8. package/dist/appSlice/selectors.cjs.map +1 -1
  9. package/dist/appSlice/selectors.d.cts +4 -51
  10. package/dist/appSlice/selectors.d.ts +4 -51
  11. package/dist/appSlice/selectors.js +3 -4
  12. package/dist/appSlice/selectors.js.map +1 -1
  13. package/dist/appSlice/thunks.d.cts +1 -1
  14. package/dist/appSlice/thunks.d.ts +1 -1
  15. package/dist/commonSelectors.d.cts +10 -2
  16. package/dist/commonSelectors.d.ts +10 -2
  17. package/dist/deploymentsSlice/selectors.d.cts +2 -2
  18. package/dist/deploymentsSlice/selectors.d.ts +2 -2
  19. package/dist/deploymentsSlice/thunks.cjs +1 -0
  20. package/dist/deploymentsSlice/thunks.d.cts +9 -4
  21. package/dist/deploymentsSlice/thunks.d.ts +9 -4
  22. package/dist/deploymentsSlice/thunks.js +2 -2
  23. package/dist/devicesSlice/index.cjs +4 -0
  24. package/dist/devicesSlice/index.cjs.map +1 -1
  25. package/dist/devicesSlice/index.d.cts +1 -1
  26. package/dist/devicesSlice/index.d.ts +1 -1
  27. package/dist/devicesSlice/index.js +4 -0
  28. package/dist/devicesSlice/index.js.map +1 -1
  29. package/dist/devicesSlice/mocks.d.cts +1 -0
  30. package/dist/devicesSlice/mocks.d.ts +1 -0
  31. package/dist/devicesSlice/selectors.cjs +2 -0
  32. package/dist/devicesSlice/selectors.cjs.map +1 -1
  33. package/dist/devicesSlice/selectors.d.cts +4 -3
  34. package/dist/devicesSlice/selectors.d.ts +4 -3
  35. package/dist/devicesSlice/selectors.js +2 -1
  36. package/dist/devicesSlice/selectors.js.map +1 -1
  37. package/dist/devicesSlice/thunks.cjs +2 -0
  38. package/dist/devicesSlice/thunks.d.cts +68 -3
  39. package/dist/devicesSlice/thunks.d.ts +68 -3
  40. package/dist/devicesSlice/thunks.js +2 -2
  41. package/dist/{index-CPdMUfRr.d.ts → index-BqJuhvO_.d.ts} +4 -1
  42. package/dist/{index-DbfM03Gj.d.cts → index-Doc_1P_Y.d.cts} +4 -1
  43. package/dist/locationutils.d.cts +1 -1
  44. package/dist/locationutils.d.ts +1 -1
  45. package/dist/monitorSlice/selectors.d.cts +1 -1
  46. package/dist/monitorSlice/selectors.d.ts +1 -1
  47. package/dist/monitorSlice/thunks.d.cts +2 -2
  48. package/dist/monitorSlice/thunks.d.ts +2 -2
  49. package/dist/onboardingSlice/selectors.d.cts +1 -1
  50. package/dist/onboardingSlice/selectors.d.ts +1 -1
  51. package/dist/onboardingSlice/thunks.d.cts +1 -1
  52. package/dist/onboardingSlice/thunks.d.ts +1 -1
  53. package/dist/organizationSlice/selectors.d.cts +2 -2
  54. package/dist/organizationSlice/selectors.d.ts +2 -2
  55. package/dist/organizationSlice/thunks.d.cts +1 -1
  56. package/dist/organizationSlice/thunks.d.ts +1 -1
  57. package/dist/releasesSlice/selectors.d.cts +2 -2
  58. package/dist/releasesSlice/selectors.d.ts +2 -2
  59. package/dist/releasesSlice/thunks.d.cts +1 -1
  60. package/dist/releasesSlice/thunks.d.ts +1 -1
  61. package/dist/selectors.cjs +1 -1
  62. package/dist/selectors.d.cts +3 -3
  63. package/dist/selectors.d.ts +3 -3
  64. package/dist/selectors.js +3 -3
  65. package/dist/{store-gkY5P9Uz.d.ts → store-BzrMxxAO.d.ts} +2 -2
  66. package/dist/{store-DBUTT4FF.d.cts → store-xV2zaXAc.d.cts} +2 -2
  67. package/dist/store.d.cts +1 -1
  68. package/dist/store.d.ts +1 -1
  69. package/dist/storehooks.cjs +1 -0
  70. package/dist/storehooks.cjs.map +1 -1
  71. package/dist/storehooks.d.cts +1 -1
  72. package/dist/storehooks.d.ts +1 -1
  73. package/dist/storehooks.js +1 -0
  74. package/dist/storehooks.js.map +1 -1
  75. package/dist/thunks.cjs +37 -1
  76. package/dist/thunks.cjs.map +1 -1
  77. package/dist/thunks.d.cts +3 -3
  78. package/dist/thunks.d.ts +3 -3
  79. package/dist/thunks.js +35 -2
  80. package/dist/thunks.js.map +1 -1
  81. package/dist/usersSlice/selectors.d.cts +2 -2
  82. package/dist/usersSlice/selectors.d.ts +2 -2
  83. package/dist/usersSlice/thunks.d.cts +1 -1
  84. package/dist/usersSlice/thunks.d.ts +1 -1
  85. package/dist/utils.d.cts +1 -1
  86. package/dist/utils.d.ts +1 -1
  87. package/package.json +1 -1
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
@@ -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: decodeURIComponent(item.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;
@@ -1273,6 +1297,15 @@ const setDeviceTags = createAppAsyncThunk(`${sliceName$2}/setDeviceTags`, ({ dev
1273
1297
  tags
1274
1298
  })), dispatch(setSnackbar$2(`Device ${tagList.length === 1 && isNameChange ? "name" : "tags"} changed`))]));
1275
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
+ ])));
1276
1309
  const getDeviceTwin = createAppAsyncThunk(`${sliceName$2}/getDeviceTwin`, ({ deviceId, integration }, { dispatch, getState }) => {
1277
1310
  let providerResult = {};
1278
1311
  return Api.get(`${iotManagerBaseURL}/devices/${deviceId}/state`).then(({ data }) => {
@@ -2483,6 +2516,6 @@ const submitUserFeedback = createAppAsyncThunk(`${sliceName$5}/submitFeedback`,
2483
2516
  }
2484
2517
  }));
2485
2518
  //#endregion
2486
- 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 };
2487
2520
 
2488
2521
  //# sourceMappingURL=thunks.js.map