@northern.tech/store 0.37.0 → 0.39.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/devicesSlice/thunks.d.cts +3 -86
- package/dist/devicesSlice/thunks.d.ts +3 -86
- package/dist/releasesSlice/thunks.cjs +8 -0
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +14 -1
- package/dist/releasesSlice/thunks.d.ts +14 -1
- package/dist/releasesSlice/thunks.js +8 -1
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/thunks.cjs +25 -40
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +2 -2
- package/dist/thunks.d.ts +2 -2
- package/dist/thunks.js +27 -43
- package/dist/thunks.js.map +1 -1
- package/package.json +3 -3
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, 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";
|
|
7
|
+
import { cancelFileUpload, checkReleasesExistence, createArtifact, editArtifact, generateManifest, getArtifactInstallCount, getArtifactUrl, getDeltaGenerationJobDetails, getDeltaGenerationJobs, getExistingManifestTags, getExistingReleaseTags, getExistingSoftwareTags, getManifest, getManifests, getRelease, getReleases, getSoftware, getSoftwareList, 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, 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 };
|
|
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, getSoftwareList, 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
|
@@ -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, 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";
|
|
7
|
+
import { cancelFileUpload, checkReleasesExistence, createArtifact, editArtifact, generateManifest, getArtifactInstallCount, getArtifactUrl, getDeltaGenerationJobDetails, getDeltaGenerationJobs, getExistingManifestTags, getExistingReleaseTags, getExistingSoftwareTags, getManifest, getManifests, getRelease, getReleases, getSoftware, getSoftwareList, 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, 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 };
|
|
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, getSoftwareList, 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
|
@@ -20,13 +20,11 @@ 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, 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";
|
|
23
|
+
import { cancelFileUpload, checkReleasesExistence, createArtifact, editArtifact, generateManifest, getArtifactInstallCount, getArtifactUrl, getDeltaGenerationJobDetails, getDeltaGenerationJobs, getExistingManifestTags, getExistingReleaseTags, getExistingSoftwareTags, getManifest, getManifests, getRelease, getReleases, getSoftware, getSoftwareList, 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
|
-
import {
|
|
26
|
-
import { attributeDuplicateFilter, customSort, dateRangeToUnix, deepCompare, duplicateFilter, extractErrorMessage, getDemoDeviceAddress, getSnackbarMessage, isEmpty, standardizePhases } from "@northern.tech/utils/helpers";
|
|
25
|
+
import { attributeDuplicateFilter, customSort, dateRangeToUnix, deepCompare, duplicateFilter, extractErrorMessage, getDemoDeviceAddress, isEmpty, standardizePhases } from "@northern.tech/utils/helpers";
|
|
27
26
|
import Cookies from "universal-cookie";
|
|
28
27
|
import dayjs from "dayjs";
|
|
29
|
-
import { Link } from "react-router";
|
|
30
28
|
import Tracking from "@northern.tech/utils/tracking";
|
|
31
29
|
import validator from "validator";
|
|
32
30
|
import { isCancel } from "axios";
|
|
@@ -470,7 +468,7 @@ const generateDeploymentLogAnalysis = createAppAsyncThunk(`${sliceName$1}/genera
|
|
|
470
468
|
commonErrorHandler(err, "There was an error analysing the deployment log:", dispatch);
|
|
471
469
|
}));
|
|
472
470
|
//#endregion
|
|
473
|
-
//#region src/devicesSlice/thunks.
|
|
471
|
+
//#region src/devicesSlice/thunks.ts
|
|
474
472
|
const { cleanUpUpload, initUpload, setSnackbar: setSnackbar$2, uploadProgress } = actions_default;
|
|
475
473
|
const { page: defaultPage$1, perPage: defaultPerPage$1 } = DEVICE_LIST_DEFAULTS;
|
|
476
474
|
const defaultAttributes = [
|
|
@@ -575,27 +573,6 @@ const removeDevicesFromGroup = createAppAsyncThunk(`${sliceName$2}/removeDevices
|
|
|
575
573
|
message: `The ${pluralize("devices", deviceIds.length)} ${pluralize("were", deviceIds.length)} removed from the group`,
|
|
576
574
|
autoHideDuration: TIMEOUTS.fiveSeconds
|
|
577
575
|
}))])));
|
|
578
|
-
const getGroupNotification = (newGroup, selectedGroup) => {
|
|
579
|
-
const successMessage = "The group was updated successfully";
|
|
580
|
-
if (newGroup === selectedGroup) return {
|
|
581
|
-
message: successMessage,
|
|
582
|
-
autoHideDuration: TIMEOUTS.fiveSeconds
|
|
583
|
-
};
|
|
584
|
-
return {
|
|
585
|
-
action: "",
|
|
586
|
-
autoHideDuration: TIMEOUTS.fiveSeconds,
|
|
587
|
-
message: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
588
|
-
successMessage,
|
|
589
|
-
" - ",
|
|
590
|
-
/* @__PURE__ */ jsx(Link, {
|
|
591
|
-
to: `/devices?inventory=group:eq:${newGroup}`,
|
|
592
|
-
children: "click here"
|
|
593
|
-
}),
|
|
594
|
-
" to see it."
|
|
595
|
-
] }),
|
|
596
|
-
preventClickToCopy: true
|
|
597
|
-
};
|
|
598
|
-
};
|
|
599
576
|
const addStaticGroup = createAppAsyncThunk(`${sliceName$2}/addStaticGroup`, ({ group, devices }, { dispatch, getState }) => Promise.resolve(dispatch(addDevicesToGroup({
|
|
600
577
|
group,
|
|
601
578
|
deviceIds: devices.map(({ id }) => id),
|
|
@@ -608,11 +585,10 @@ const addStaticGroup = createAppAsyncThunk(`${sliceName$2}/addStaticGroup`, ({ g
|
|
|
608
585
|
...getState().devices.groups.byId[group]
|
|
609
586
|
},
|
|
610
587
|
groupName: group
|
|
611
|
-
}))).then(() =>
|
|
612
|
-
dispatch(setDeviceListState({ setOnly: true }))
|
|
613
|
-
dispatch(getGroups())
|
|
614
|
-
|
|
615
|
-
]))).catch((err) => commonErrorHandler(err, `Group could not be updated:`, dispatch)));
|
|
588
|
+
}))).then(async () => {
|
|
589
|
+
await dispatch(setDeviceListState({ setOnly: true })).unwrap();
|
|
590
|
+
await dispatch(getGroups()).unwrap();
|
|
591
|
+
})).catch((err) => commonErrorHandler(err, `Group could not be updated:`, dispatch)));
|
|
616
592
|
const removeReportsByGroupName = createAppAsyncThunk(`${sliceName$2}/removeReportsByGroupName`, (groupName, { dispatch, getState }) => {
|
|
617
593
|
if (!groupName) return Promise.resolve();
|
|
618
594
|
dispatch(saveUserSettings({ reports: getDeviceReportsForUser(getState()).filter((report) => report.group !== groupName) }));
|
|
@@ -657,13 +633,10 @@ const addDynamicGroup = createAppAsyncThunk(`${sliceName$2}/addDynamicGroup`, ({
|
|
|
657
633
|
id: res.headers[headerNames.location].substring(res.headers[headerNames.location].lastIndexOf("/") + 1),
|
|
658
634
|
filters: filterPredicates
|
|
659
635
|
}
|
|
660
|
-
}))).then(() => {
|
|
636
|
+
}))).then(async () => {
|
|
661
637
|
const { cleanedFilters } = getGroupFilters(groupName, getState().devices.groups);
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
dispatch(setSnackbar$2(getGroupNotification(groupName, getState().devices.groups.selectedGroup))),
|
|
665
|
-
dispatch(getDynamicGroups())
|
|
666
|
-
]);
|
|
638
|
+
dispatch(actions$2.setDeviceFilters(cleanedFilters));
|
|
639
|
+
await dispatch(getDynamicGroups()).unwrap();
|
|
667
640
|
})).catch((err) => commonErrorHandler(err, `Group could not be updated:`, dispatch)));
|
|
668
641
|
const updateDynamicGroup = createAppAsyncThunk(`${sliceName$2}/updateDynamicGroup`, ({ groupName, filterPredicates }, { dispatch, getState }) => {
|
|
669
642
|
const filterId = getState().devices.groups.byId[groupName].id;
|
|
@@ -736,7 +709,8 @@ const reduceReceivedDevices = (devices, ids, state, status) => devices.reduce((a
|
|
|
736
709
|
device.created_ts = getEarliestTs(getEarliestTs(system.created_ts, device.created_ts), stateDevice.created_ts);
|
|
737
710
|
device.updated_ts = device.attributes ? device.updated_ts : stateDevice.updated_ts;
|
|
738
711
|
device.isNew = new Date(device.created_ts) > new Date(state.app.newThreshold);
|
|
739
|
-
|
|
712
|
+
const lastCheckIn = device.check_in_time_exact ?? device.check_in_time_rounded;
|
|
713
|
+
device.isOffline = new Date(lastCheckIn) < new Date(state.app.offlineThreshold) || lastCheckIn === void 0;
|
|
740
714
|
device.attributes = device.attributes ? {
|
|
741
715
|
...storedAttributes,
|
|
742
716
|
...inventory
|
|
@@ -1208,7 +1182,15 @@ const getDevicesWithAuth = createAppAsyncThunk(`${sliceName$2}/getDevicesWithAut
|
|
|
1208
1182
|
dispatch(actions$2.receivedDevices(devicesById));
|
|
1209
1183
|
return receivedDevices;
|
|
1210
1184
|
});
|
|
1211
|
-
const
|
|
1185
|
+
const getSnackbarMessage = (skipped, done, failed = 0) => {
|
|
1186
|
+
pluralize.addIrregularRule("its", "their");
|
|
1187
|
+
const skipText = skipped ? `${skipped} ${pluralize("devices", skipped)} ${pluralize("have", skipped)} more than one pending authset. Expand ${pluralize("this", skipped)} ${pluralize("device", skipped)} to individually adjust ${pluralize("their", skipped)} authorization status. ` : "";
|
|
1188
|
+
const failedText = failed ? `${failed} ${pluralize("device", failed)} could not be updated. You may have reached your device limit. ` : "";
|
|
1189
|
+
return `${done ? `${done} ${pluralize("device", done)} ${pluralize("was", done)} updated successfully. ` : ""}${skipText}${failedText}`;
|
|
1190
|
+
};
|
|
1191
|
+
const updateDeviceAuth = createAppAsyncThunk(`${sliceName$2}/updateDeviceAuth`, ({ deviceId, authId, status }, { dispatch, getState }) => Api.put(`${deviceAuthV2}/devices/${deviceId}/auth/${authId}/status`, { status }).then(() => Promise.all([dispatch(getDeviceAuth(deviceId)), dispatch(setSnackbar$2("Device authorization status was updated successfully"))])).catch((err) => {
|
|
1192
|
+
return commonErrorHandler(err, err.response?.status === 422 ? "Device limit reached: You have reached your limit of accepted devices." : "There was a problem updating the device authorization status:", dispatch);
|
|
1193
|
+
}).then(() => Promise.resolve(dispatch(actions$2.maybeUpdateDevicesByStatus({
|
|
1212
1194
|
deviceId,
|
|
1213
1195
|
authId
|
|
1214
1196
|
})))).finally(() => dispatch(setDeviceListState({ refreshTrigger: !getDeviceListState(getState()).refreshTrigger }))));
|
|
@@ -1226,15 +1208,17 @@ const updateDevicesAuth = createAppAsyncThunk(`${sliceName$2}/updateDevicesAuth`
|
|
|
1226
1208
|
})).unwrap().catch((err) => commonErrorHandler(err, "The action was stopped as there was a problem updating a device authorization status: ", dispatch, "", false));
|
|
1227
1209
|
});
|
|
1228
1210
|
return Promise.allSettled(deviceAuthUpdates).then((results) => {
|
|
1229
|
-
const { skipped, count } = results.reduce((accu, item) => {
|
|
1230
|
-
if (item.status === "rejected") accu.
|
|
1211
|
+
const { skipped, failed, count } = results.reduce((accu, item) => {
|
|
1212
|
+
if (item.status === "rejected") if (item.reason) accu.failed = accu.failed + 1;
|
|
1213
|
+
else accu.skipped = accu.skipped + 1;
|
|
1231
1214
|
else accu.count = accu.count + 1;
|
|
1232
1215
|
return accu;
|
|
1233
1216
|
}, {
|
|
1234
1217
|
skipped: 0,
|
|
1218
|
+
failed: 0,
|
|
1235
1219
|
count: 0
|
|
1236
1220
|
});
|
|
1237
|
-
return dispatch(setSnackbar$2(getSnackbarMessage(skipped, count)));
|
|
1221
|
+
return dispatch(setSnackbar$2(getSnackbarMessage(skipped, count, failed)));
|
|
1238
1222
|
});
|
|
1239
1223
|
});
|
|
1240
1224
|
});
|
|
@@ -2516,6 +2500,6 @@ const submitUserFeedback = createAppAsyncThunk(`${sliceName$5}/submitFeedback`,
|
|
|
2516
2500
|
}
|
|
2517
2501
|
}));
|
|
2518
2502
|
//#endregion
|
|
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 };
|
|
2503
|
+
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, getSoftwareList, 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 };
|
|
2520
2504
|
|
|
2521
2505
|
//# sourceMappingURL=thunks.js.map
|