@northern.tech/store 0.32.0 → 0.34.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 (77) hide show
  1. package/dist/actions.d.cts +3 -1
  2. package/dist/actions.d.ts +3 -1
  3. package/dist/appSlice/selectors.d.cts +2 -2
  4. package/dist/appSlice/selectors.d.ts +2 -2
  5. package/dist/appSlice/thunks.d.cts +1 -1
  6. package/dist/appSlice/thunks.d.ts +1 -1
  7. package/dist/commonSelectors.d.cts +6 -6
  8. package/dist/commonSelectors.d.ts +6 -6
  9. package/dist/deploymentsSlice/selectors.d.cts +2 -2
  10. package/dist/deploymentsSlice/selectors.d.ts +2 -2
  11. package/dist/deploymentsSlice/thunks.d.cts +1 -2
  12. package/dist/deploymentsSlice/thunks.d.ts +1 -2
  13. package/dist/devicesSlice/selectors.d.cts +2 -2
  14. package/dist/devicesSlice/selectors.d.ts +2 -2
  15. package/dist/devicesSlice/thunks.d.cts +1 -1
  16. package/dist/devicesSlice/thunks.d.ts +1 -1
  17. package/dist/{index-C-q632wO.d.cts → index-SwHfGav1.d.cts} +20 -4
  18. package/dist/{index-CyokFK2e.d.ts → index-uxdvFzzE.d.ts} +20 -4
  19. package/dist/monitorSlice/selectors.d.cts +1 -1
  20. package/dist/monitorSlice/selectors.d.ts +1 -1
  21. package/dist/monitorSlice/thunks.d.cts +1 -1
  22. package/dist/monitorSlice/thunks.d.ts +1 -1
  23. package/dist/onboardingSlice/selectors.d.cts +1 -1
  24. package/dist/onboardingSlice/selectors.d.ts +1 -1
  25. package/dist/onboardingSlice/thunks.d.cts +1 -1
  26. package/dist/onboardingSlice/thunks.d.ts +1 -1
  27. package/dist/organizationSlice/selectors.d.cts +2 -2
  28. package/dist/organizationSlice/selectors.d.ts +2 -2
  29. package/dist/organizationSlice/thunks.d.cts +1 -1
  30. package/dist/organizationSlice/thunks.d.ts +1 -1
  31. package/dist/releasesSlice/index.cjs +19 -0
  32. package/dist/releasesSlice/index.cjs.map +1 -1
  33. package/dist/releasesSlice/index.d.cts +2 -2
  34. package/dist/releasesSlice/index.d.ts +2 -2
  35. package/dist/releasesSlice/index.js +19 -0
  36. package/dist/releasesSlice/index.js.map +1 -1
  37. package/dist/releasesSlice/mocks.cjs +28 -0
  38. package/dist/releasesSlice/mocks.cjs.map +1 -1
  39. package/dist/releasesSlice/mocks.d.cts +29 -0
  40. package/dist/releasesSlice/mocks.d.ts +29 -0
  41. package/dist/releasesSlice/mocks.js +28 -0
  42. package/dist/releasesSlice/mocks.js.map +1 -1
  43. package/dist/releasesSlice/selectors.cjs +17 -2
  44. package/dist/releasesSlice/selectors.cjs.map +1 -1
  45. package/dist/releasesSlice/selectors.d.cts +74 -12
  46. package/dist/releasesSlice/selectors.d.ts +74 -12
  47. package/dist/releasesSlice/selectors.js +14 -3
  48. package/dist/releasesSlice/selectors.js.map +1 -1
  49. package/dist/releasesSlice/thunks.cjs +93 -18
  50. package/dist/releasesSlice/thunks.cjs.map +1 -1
  51. package/dist/releasesSlice/thunks.d.cts +40 -5
  52. package/dist/releasesSlice/thunks.d.ts +40 -5
  53. package/dist/releasesSlice/thunks.js +93 -21
  54. package/dist/releasesSlice/thunks.js.map +1 -1
  55. package/dist/selectors.cjs +4 -0
  56. package/dist/selectors.d.cts +2 -2
  57. package/dist/selectors.d.ts +2 -2
  58. package/dist/selectors.js +2 -2
  59. package/dist/{store-b5cF2WB5.d.cts → store-BC3rDsIH.d.cts} +2 -2
  60. package/dist/{store-D-xvZXiY.d.ts → store-BjVukDvt.d.ts} +2 -2
  61. package/dist/store.d.cts +1 -1
  62. package/dist/store.d.ts +1 -1
  63. package/dist/storehooks.d.cts +13 -13
  64. package/dist/storehooks.d.ts +13 -13
  65. package/dist/thunks.cjs +40 -21
  66. package/dist/thunks.cjs.map +1 -1
  67. package/dist/thunks.d.cts +3 -3
  68. package/dist/thunks.d.ts +3 -3
  69. package/dist/thunks.js +38 -23
  70. package/dist/thunks.js.map +1 -1
  71. package/dist/usersSlice/selectors.d.cts +2 -2
  72. package/dist/usersSlice/selectors.d.ts +2 -2
  73. package/dist/usersSlice/thunks.cjs +1 -0
  74. package/dist/usersSlice/thunks.d.cts +42 -29
  75. package/dist/usersSlice/thunks.d.ts +42 -29
  76. package/dist/usersSlice/thunks.js +2 -2
  77. package/package.json +2 -2
package/dist/thunks.d.cts CHANGED
@@ -4,6 +4,6 @@ import { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig,
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
- import { cancelFileUpload, createArtifact, editArtifact, generateManifest, getArtifactInstallCount, getArtifactUrl, getDeltaGenerationJobDetails, getDeltaGenerationJobs, getExistingManifestTags, getExistingReleaseTags, getExistingSoftwareTags, getManifest, getManifests, getRelease, getReleases, getUpdateTypes, removeArtifact, removeManifest, removeManifests, removeRelease, removeReleases, selectManifest, selectRelease, setManifestsListState, setReleaseTags, setReleasesListState, setReleasesTags, setSingleReleaseTags, updateReleaseInfo, uploadArtifact, uploadManifest } from "./releasesSlice/thunks.cjs";
8
- import { SubmittedRole, addUserToCurrentTenant, checkEmailExists, 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, completeUpgrade, confirmCardUpdate, 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, getLatestReleaseInfo, getManifest, getManifests, getOnboardingState, getPermissionSets, getProducts, getRelease, getReleases, getReportDataWithoutBackendSupport, getRoles, getSessionDetails, getSingleDeployment, 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, setTenantsListState, setTooltipReadState, startCardUpdate, startUpgrade, storeSsoConfig, submitUserFeedback, switchUserOrganization, tenantDataDivergedMessage, transformProductResponse, triggerDeviceUpdate, updateDeploymentControlMap, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReleaseInfo, updateReportData, updateUserColumnSettings, uploadArtifact, uploadManifest, verify2FA, verifyEmailComplete, verifyEmailStart };
7
+ import { cancelFileUpload, 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
+ 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, 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, getLatestReleaseInfo, 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 };
package/dist/thunks.d.ts CHANGED
@@ -4,6 +4,6 @@ import { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig,
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
- import { cancelFileUpload, createArtifact, editArtifact, generateManifest, getArtifactInstallCount, getArtifactUrl, getDeltaGenerationJobDetails, getDeltaGenerationJobs, getExistingManifestTags, getExistingReleaseTags, getExistingSoftwareTags, getManifest, getManifests, getRelease, getReleases, getUpdateTypes, removeArtifact, removeManifest, removeManifests, removeRelease, removeReleases, selectManifest, selectRelease, setManifestsListState, setReleaseTags, setReleasesListState, setReleasesTags, setSingleReleaseTags, updateReleaseInfo, uploadArtifact, uploadManifest } from "./releasesSlice/thunks.js";
8
- import { SubmittedRole, addUserToCurrentTenant, checkEmailExists, 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, completeUpgrade, confirmCardUpdate, 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, getLatestReleaseInfo, getManifest, getManifests, getOnboardingState, getPermissionSets, getProducts, getRelease, getReleases, getReportDataWithoutBackendSupport, getRoles, getSessionDetails, getSingleDeployment, 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, setTenantsListState, setTooltipReadState, startCardUpdate, startUpgrade, storeSsoConfig, submitUserFeedback, switchUserOrganization, tenantDataDivergedMessage, transformProductResponse, triggerDeviceUpdate, updateDeploymentControlMap, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReleaseInfo, updateReportData, updateUserColumnSettings, uploadArtifact, uploadManifest, verify2FA, verifyEmailComplete, verifyEmailStart };
7
+ import { cancelFileUpload, 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
+ 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, 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, getLatestReleaseInfo, 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 };
package/dist/thunks.js CHANGED
@@ -20,7 +20,7 @@ import { getDeviceReportsForUser, getOnboardingState as getOnboardingState$1, ge
20
20
  import { commonErrorFallback, commonErrorHandler, createAppAsyncThunk } from "./store.js";
21
21
  import Api from "./api/general-api.js";
22
22
  import { changeNotificationSetting, getDeviceAlerts, getDeviceMonitorConfig, getIssueCountsByType, getLatestDeviceAlerts } from "./monitorSlice/thunks.js";
23
- import { cancelFileUpload, createArtifact, editArtifact, generateManifest, getArtifactInstallCount, getArtifactUrl, getDeltaGenerationJobDetails, getDeltaGenerationJobs, getExistingManifestTags, getExistingReleaseTags, getExistingSoftwareTags, getManifest, getManifests, getRelease, getReleases, getUpdateTypes, removeArtifact, removeManifest, removeManifests, removeRelease, removeReleases, selectManifest, selectRelease, setManifestsListState, setReleaseTags, setReleasesListState, setReleasesTags, setSingleReleaseTags, updateReleaseInfo, uploadArtifact, uploadManifest } from "./releasesSlice/thunks.js";
23
+ import { cancelFileUpload, 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";
24
24
  import Api$1 from "./api/users-api.js";
25
25
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
26
26
  import { attributeDuplicateFilter, customSort, dateRangeToUnix, deepCompare, duplicateFilter, extractErrorMessage, getDemoDeviceAddress, getSnackbarMessage, isEmpty, standardizePhases } from "@northern.tech/utils/helpers";
@@ -226,7 +226,7 @@ const cleanPhases = (phases) => phases?.map(({ batch_size, batch_size_devices, s
226
226
  start_ts
227
227
  }));
228
228
  const MAX_PREVIOUS_PHASES_COUNT = 5;
229
- const createDeployment = createAppAsyncThunk(`${sliceName$1}/createDeployment`, ({ newDeployment, hasNewRetryDefault = false }, { dispatch, getState }) => {
229
+ const createDeployment = createAppAsyncThunk(`${sliceName$1}/createDeployment`, ({ newDeployment }, { dispatch, getState }) => {
230
230
  let request;
231
231
  const { name, artifact_name, retries, update_control_map, autogenerate_delta } = newDeployment;
232
232
  const common = {
@@ -287,12 +287,9 @@ const createDeployment = createAppAsyncThunk(`${sliceName$1}/createDeployment`,
287
287
  trackDeploymentCreation(totalDeploymentCount, hasDeployments, trial_expiration);
288
288
  const { canManageUsers } = getUserCapabilities(getState());
289
289
  if (canManageUsers) {
290
- const { phases, retries } = newDeployment;
291
- const { previousPhases = [], retries: previousRetries = 0 } = getGlobalSettings$1(getState());
292
- const newSettings = {
293
- retries: hasNewRetryDefault ? retries : previousRetries,
294
- hasDeployments: true
295
- };
290
+ const { phases } = newDeployment;
291
+ const { previousPhases = [] } = getGlobalSettings$1(getState());
292
+ const newSettings = { hasDeployments: true };
296
293
  if (phases) {
297
294
  const standardPhases = standardizePhases(phases);
298
295
  const prevPhases = previousPhases.map(standardizePhases);
@@ -1939,20 +1936,7 @@ const handleLoginError = (err, { token2fa: has2FA, password }, rejectWithValue)
1939
1936
  const twoFAError = is2FABackend ? " and verification code" : "";
1940
1937
  return rejectWithValue({ error: `There was a problem logging in. Please check your email${twoFAError ? "," : " and"} password${twoFAError}. If you still have problems, contact an administrator.` });
1941
1938
  };
1942
- const loginUser = createAppAsyncThunk(`${sliceName$5}/loginUser`, ({ stayLoggedIn, ...userData }, { dispatch, rejectWithValue }) => Api$1.postLogin(`${useradmApiUrl}/auth/login`, {
1943
- ...userData,
1944
- no_expiry: stayLoggedIn
1945
- }).catch((err) => {
1946
- cleanUp();
1947
- return Promise.reject(dispatch(handleLoginError(err, userData, rejectWithValue)));
1948
- }).then(({ text: token, contentType }) => {
1949
- if (contentType?.includes(APPLICATION_JSON_CONTENT_TYPE)) {
1950
- const { id, kind } = token;
1951
- const ssoLoginUrl = SSO_TYPES[kind.split("/")[1]].getStartUrl(id);
1952
- window.location.replace(ssoLoginUrl);
1953
- return;
1954
- }
1955
- if (contentType !== APPLICATION_JWT_CONTENT_TYPE || !token) return;
1939
+ const finalizeJwtLogin = ({ dispatch, stayLoggedIn, token }) => {
1956
1940
  const now = /* @__PURE__ */ new Date();
1957
1941
  now.setSeconds(now.getSeconds() + maxSessionAge);
1958
1942
  const expiresAt = stayLoggedIn ? void 0 : now.toISOString();
@@ -1972,6 +1956,37 @@ const loginUser = createAppAsyncThunk(`${sliceName$5}/loginUser`, ({ stayLoggedI
1972
1956
  token
1973
1957
  })));
1974
1958
  });
1959
+ };
1960
+ const confirmOAuthLink = createAppAsyncThunk(`${sliceName$5}/confirmOAuthLink`, ({ stayLoggedIn, ...userData }, { dispatch, rejectWithValue }) => Api$1.postLogin(`${useradmApiUrl}/oauth2/link`, userData).catch((err) => {
1961
+ cleanUp();
1962
+ return Promise.reject(dispatch(handleLoginError(err, userData, rejectWithValue)));
1963
+ }).then(({ text: token, contentType }) => {
1964
+ if (contentType !== APPLICATION_JWT_CONTENT_TYPE || !token) return;
1965
+ return finalizeJwtLogin({
1966
+ token,
1967
+ dispatch,
1968
+ stayLoggedIn
1969
+ });
1970
+ }));
1971
+ const loginUser = createAppAsyncThunk(`${sliceName$5}/loginUser`, ({ stayLoggedIn, ...userData }, { dispatch, rejectWithValue }) => Api$1.postLogin(`${useradmApiUrl}/auth/login`, {
1972
+ ...userData,
1973
+ no_expiry: stayLoggedIn
1974
+ }).catch((err) => {
1975
+ cleanUp();
1976
+ return Promise.reject(dispatch(handleLoginError(err, userData, rejectWithValue)));
1977
+ }).then(({ text: token, contentType }) => {
1978
+ if (contentType?.includes(APPLICATION_JSON_CONTENT_TYPE)) {
1979
+ const { id, kind } = token;
1980
+ const ssoLoginUrl = SSO_TYPES[kind.split("/")[1]].getStartUrl(id);
1981
+ window.location.replace(ssoLoginUrl);
1982
+ return;
1983
+ }
1984
+ if (contentType !== APPLICATION_JWT_CONTENT_TYPE || !token) return;
1985
+ return finalizeJwtLogin({
1986
+ token,
1987
+ dispatch,
1988
+ stayLoggedIn
1989
+ });
1975
1990
  }));
1976
1991
  const logoutUser = createAppAsyncThunk(`${sliceName$5}/logoutUser`, (_, { dispatch, getState }) => {
1977
1992
  if (Object.keys(getState().app.uploadsById).length) return Promise.reject();
@@ -2480,6 +2495,6 @@ const submitUserFeedback = createAppAsyncThunk(`${sliceName$5}/submitFeedback`,
2480
2495
  }
2481
2496
  }));
2482
2497
  //#endregion
2483
- export { abortDeployment, addDevicesToGroup, addDynamicGroup, addStaticGroup, addTenant, addUserToCurrentTenant, advanceOnboarding, applyDeviceConfig, cancelFileUpload, cancelRequest, cancelUpgrade, changeIntegration, changeNotificationSetting, changeSsoConfig, checkEmailExists, completeUpgrade, confirmCardUpdate, 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, getLatestReleaseInfo, getManifest, getManifests, getOnboardingState, getPermissionSets, getProducts, getRelease, getReleases, getReportDataWithoutBackendSupport, getRoles, getSessionDetails, getSingleDeployment, 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, setTenantsListState, setTooltipReadState, startCardUpdate, startUpgrade, storeSsoConfig, submitUserFeedback, switchUserOrganization, tenantDataDivergedMessage, transformProductResponse, triggerDeviceUpdate, updateDeploymentControlMap, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReleaseInfo, updateReportData, updateUserColumnSettings, uploadArtifact, uploadManifest, verify2FA, verifyEmailComplete, verifyEmailStart };
2498
+ export { abortDeployment, addDevicesToGroup, addDynamicGroup, addStaticGroup, addTenant, addUserToCurrentTenant, advanceOnboarding, applyDeviceConfig, cancelFileUpload, cancelRequest, cancelUpgrade, changeIntegration, changeNotificationSetting, changeSsoConfig, checkEmailExists, 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, getLatestReleaseInfo, 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 };
2484
2499
 
2485
2500
  //# sourceMappingURL=thunks.js.map