@northern.tech/store 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions.cjs +0 -1
- package/dist/actions.cjs.map +1 -1
- package/dist/actions.js +2 -2
- package/dist/appSlice/index.cjs +0 -1
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.js +1 -1
- package/dist/appSlice/mocks.cjs +0 -1
- package/dist/appSlice/mocks.cjs.map +1 -1
- package/dist/appSlice/mocks.js +1 -1
- package/dist/appSlice/thunks.cjs +15 -5
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.js +7 -7
- package/dist/{chunk-6WJI4MOP.js → chunk-DI46RPAR.js} +1 -2
- package/dist/chunk-DI46RPAR.js.map +1 -0
- package/dist/{chunk-6PYYMAFS.js → chunk-EOD3DPQM.js} +3 -3
- package/dist/{chunk-53W2NRSL.js → chunk-FSYLFJAF.js} +7 -3
- package/dist/chunk-FSYLFJAF.js.map +1 -0
- package/dist/{chunk-GHATCG2U.js → chunk-HYOIJFRD.js} +2 -2
- package/dist/{chunk-7VFPMJCH.js → chunk-IJFBK5K3.js} +4 -4
- package/dist/{chunk-4UV7ZJXY.js → chunk-QDJQ36VD.js} +43 -28
- package/dist/chunk-QDJQ36VD.js.map +1 -0
- package/dist/{chunk-7KSKENLP.js → chunk-YLDLYOAY.js} +3 -3
- package/dist/commonSelectors.d.cts +14 -10
- package/dist/commonSelectors.d.ts +14 -10
- package/dist/deploymentsSlice/thunks.cjs +15 -5
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +3 -3
- package/dist/deploymentsSlice/thunks.d.ts +3 -3
- package/dist/deploymentsSlice/thunks.js +7 -7
- package/dist/devicesSlice/thunks.cjs +17 -5
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +12 -1
- package/dist/devicesSlice/thunks.d.ts +12 -1
- package/dist/devicesSlice/thunks.js +9 -7
- package/dist/liststatehook.cjs +6 -2
- package/dist/liststatehook.cjs.map +1 -1
- package/dist/liststatehook.d.cts +8 -2
- package/dist/liststatehook.d.ts +8 -2
- package/dist/liststatehook.js +1 -1
- package/dist/locationutils.cjs +6 -2
- package/dist/locationutils.cjs.map +1 -1
- package/dist/locationutils.d.cts +4 -1
- package/dist/locationutils.d.ts +4 -1
- package/dist/locationutils.js +1 -1
- package/dist/monitorSlice/thunks.cjs +0 -1
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.js +4 -4
- package/dist/onboardingSlice/thunks.cjs +15 -5
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.js +7 -7
- package/dist/organizationSlice/thunks.cjs +37 -24
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +2 -2
- package/dist/organizationSlice/thunks.d.ts +2 -2
- package/dist/organizationSlice/thunks.js +7 -7
- package/dist/releasesSlice/thunks.cjs +0 -1
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.js +5 -5
- package/dist/store.cjs +0 -1
- package/dist/store.cjs.map +1 -1
- package/dist/store.js +3 -3
- package/dist/storehooks.cjs +37 -26
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +7 -9
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +39 -24
- 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 +9 -7
- package/dist/useDeploymentDevice.cjs +15 -5
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js +7 -7
- package/dist/usersSlice/selectors.d.cts +4 -4
- package/dist/usersSlice/selectors.d.ts +4 -4
- package/dist/usersSlice/thunks.cjs +15 -5
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.js +7 -7
- package/package.json +1 -1
- package/dist/chunk-4UV7ZJXY.js.map +0 -1
- package/dist/chunk-53W2NRSL.js.map +0 -1
- package/dist/chunk-6WJI4MOP.js.map +0 -1
- /package/dist/{chunk-6PYYMAFS.js.map → chunk-EOD3DPQM.js.map} +0 -0
- /package/dist/{chunk-GHATCG2U.js.map → chunk-HYOIJFRD.js.map} +0 -0
- /package/dist/{chunk-7VFPMJCH.js.map → chunk-IJFBK5K3.js.map} +0 -0
- /package/dist/{chunk-7KSKENLP.js.map → chunk-YLDLYOAY.js.map} +0 -0
package/dist/thunks.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { getLatestReleaseInfo, setFirstLoginAfterSignup, setOfflineThreshold, setSearchState } from './appSlice/thunks.cjs';
|
|
2
2
|
export { GetDeploymentsByStatusPayload, abortDeployment, createDeployment, deriveDeploymentGroup, generateDeploymentLogAnalysis, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceDeployments, getDeviceLog, getSingleDeployment, resetDeviceDeployments, saveDeltaDeploymentsConfig, setDeploymentsState, updateDeploymentControlMap } from './deploymentsSlice/thunks.cjs';
|
|
3
|
-
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, 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';
|
|
3
|
+
export { 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';
|
|
4
4
|
export { changeNotificationSetting, getDeviceAlerts, getDeviceMonitorConfig, getIssueCountsByType, getLatestDeviceAlerts } from './monitorSlice/thunks.cjs';
|
|
5
5
|
export { advanceOnboarding, getOnboardingState, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType } from './onboardingSlice/thunks.cjs';
|
|
6
6
|
export { addTenant, cancelRequest, cancelUpgrade, changeIntegration, changeSsoConfig, completeUpgrade, confirmCardUpdate, createBillingProfile, createIntegration, createOrganizationTrial, deleteIntegration, deleteSsoConfig, downloadLicenseReport, editBillingProfile, editTenantDeviceLimit, 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';
|
|
@@ -31,6 +31,6 @@ import './deploymentsSlice/index.cjs';
|
|
|
31
31
|
import './devicesSlice/index.cjs';
|
|
32
32
|
import './devicesSlice/constants.cjs';
|
|
33
33
|
import './appSlice/index.cjs';
|
|
34
|
+
import 'axios';
|
|
34
35
|
import './onboardingSlice/constants.cjs';
|
|
35
36
|
import '@northern.tech/types/types.gen';
|
|
36
|
-
import 'axios';
|
package/dist/thunks.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { getLatestReleaseInfo, setFirstLoginAfterSignup, setOfflineThreshold, setSearchState } from './appSlice/thunks.js';
|
|
2
2
|
export { GetDeploymentsByStatusPayload, abortDeployment, createDeployment, deriveDeploymentGroup, generateDeploymentLogAnalysis, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceDeployments, getDeviceLog, getSingleDeployment, resetDeviceDeployments, saveDeltaDeploymentsConfig, setDeploymentsState, updateDeploymentControlMap } from './deploymentsSlice/thunks.js';
|
|
3
|
-
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, 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';
|
|
3
|
+
export { 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';
|
|
4
4
|
export { changeNotificationSetting, getDeviceAlerts, getDeviceMonitorConfig, getIssueCountsByType, getLatestDeviceAlerts } from './monitorSlice/thunks.js';
|
|
5
5
|
export { advanceOnboarding, getOnboardingState, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType } from './onboardingSlice/thunks.js';
|
|
6
6
|
export { addTenant, cancelRequest, cancelUpgrade, changeIntegration, changeSsoConfig, completeUpgrade, confirmCardUpdate, createBillingProfile, createIntegration, createOrganizationTrial, deleteIntegration, deleteSsoConfig, downloadLicenseReport, editBillingProfile, editTenantDeviceLimit, 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';
|
|
@@ -31,6 +31,6 @@ import './deploymentsSlice/index.js';
|
|
|
31
31
|
import './devicesSlice/index.js';
|
|
32
32
|
import './devicesSlice/constants.js';
|
|
33
33
|
import './appSlice/index.js';
|
|
34
|
+
import 'axios';
|
|
34
35
|
import './onboardingSlice/constants.js';
|
|
35
36
|
import '@northern.tech/types/types.gen';
|
|
36
|
-
import 'axios';
|
package/dist/thunks.js
CHANGED
|
@@ -61,6 +61,7 @@ import {
|
|
|
61
61
|
getDeviceTwin,
|
|
62
62
|
getDevicesByStatus,
|
|
63
63
|
getDevicesWithAuth,
|
|
64
|
+
getDynamicGroup,
|
|
64
65
|
getDynamicGroups,
|
|
65
66
|
getGatewayDevices,
|
|
66
67
|
getGlobalSettings,
|
|
@@ -146,7 +147,7 @@ import {
|
|
|
146
147
|
verify2FA,
|
|
147
148
|
verifyEmailComplete,
|
|
148
149
|
verifyEmailStart
|
|
149
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-QDJQ36VD.js";
|
|
150
151
|
import {
|
|
151
152
|
cancelFileUpload,
|
|
152
153
|
createArtifact,
|
|
@@ -169,28 +170,28 @@ import {
|
|
|
169
170
|
setSingleReleaseTags,
|
|
170
171
|
updateReleaseInfo,
|
|
171
172
|
uploadArtifact
|
|
172
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-IJFBK5K3.js";
|
|
173
174
|
import {
|
|
174
175
|
changeNotificationSetting,
|
|
175
176
|
getDeviceAlerts,
|
|
176
177
|
getDeviceMonitorConfig,
|
|
177
178
|
getIssueCountsByType,
|
|
178
179
|
getLatestDeviceAlerts
|
|
179
|
-
} from "./chunk-
|
|
180
|
-
import "./chunk-
|
|
180
|
+
} from "./chunk-EOD3DPQM.js";
|
|
181
|
+
import "./chunk-YLDLYOAY.js";
|
|
181
182
|
import "./chunk-XJLZK4QY.js";
|
|
182
183
|
import "./chunk-IRQRV552.js";
|
|
183
|
-
import "./chunk-
|
|
184
|
+
import "./chunk-HYOIJFRD.js";
|
|
184
185
|
import "./chunk-TRKA7XYU.js";
|
|
185
186
|
import "./chunk-YR65C62H.js";
|
|
186
187
|
import "./chunk-TIL2S3JA.js";
|
|
187
188
|
import "./chunk-PVCHKW35.js";
|
|
188
189
|
import "./chunk-CQXDAXQF.js";
|
|
189
190
|
import "./chunk-VODRLEDP.js";
|
|
190
|
-
import "./chunk-
|
|
191
|
+
import "./chunk-DI46RPAR.js";
|
|
191
192
|
import "./chunk-OLKM53RL.js";
|
|
192
193
|
import "./chunk-UVTLZV34.js";
|
|
193
|
-
import "./chunk-
|
|
194
|
+
import "./chunk-FSYLFJAF.js";
|
|
194
195
|
import "./chunk-NMAXZ3ZY.js";
|
|
195
196
|
import "./chunk-ZVE23XXF.js";
|
|
196
197
|
import "./chunk-PL6RIFD5.js";
|
|
@@ -280,6 +281,7 @@ export {
|
|
|
280
281
|
getDeviceTwin,
|
|
281
282
|
getDevicesByStatus,
|
|
282
283
|
getDevicesWithAuth,
|
|
284
|
+
getDynamicGroup,
|
|
283
285
|
getDynamicGroups,
|
|
284
286
|
getExistingReleaseTags,
|
|
285
287
|
getGatewayDevices,
|
|
@@ -1423,7 +1423,6 @@ var initialState = {
|
|
|
1423
1423
|
offlineThreshold: getYesterday(),
|
|
1424
1424
|
versionInformation: {
|
|
1425
1425
|
Integration: "",
|
|
1426
|
-
"Mender-Client": "",
|
|
1427
1426
|
"Mender-Artifact": "",
|
|
1428
1427
|
"Meta-Mender": ""
|
|
1429
1428
|
},
|
|
@@ -2509,7 +2508,6 @@ var getLatestRelease = (thing) => {
|
|
|
2509
2508
|
};
|
|
2510
2509
|
var repoKeyMap = {
|
|
2511
2510
|
integration: "Integration",
|
|
2512
|
-
mender: "Mender-Client",
|
|
2513
2511
|
"mender-artifact": "Mender-Artifact"
|
|
2514
2512
|
};
|
|
2515
2513
|
var deductSaasState = (latestRelease, guiTags) => {
|
|
@@ -2613,10 +2611,10 @@ var getDeploymentsByStatus2 = createAppAsyncThunk(
|
|
|
2613
2611
|
const { status, page = defaultPage, perPage = defaultPerPage, startDate, endDate, group, type, shouldSelect = true, sort = import_constants4.SORTING_OPTIONS.desc } = options;
|
|
2614
2612
|
const created_after = startDate ? `&created_after=${startDate}` : "";
|
|
2615
2613
|
const created_before = endDate ? `&created_before=${endDate}` : "";
|
|
2616
|
-
const search = group ? `&
|
|
2614
|
+
const search = group ? `&name=${group}` : "";
|
|
2617
2615
|
const typeFilter = type ? `&type=${type}` : "";
|
|
2618
2616
|
return general_api_default.get(
|
|
2619
|
-
`${import_constants4.
|
|
2617
|
+
`${import_constants4.deploymentsApiUrlV2}/deployments?status=${status}&per_page=${perPage}&page=${page}${created_after}${created_before}${search}${typeFilter}&sort=${sort}`
|
|
2620
2618
|
).then((res) => {
|
|
2621
2619
|
const { deployments, deploymentIds } = transformDeployments(res.data, getState().deployments.byId);
|
|
2622
2620
|
const total = Number(res.headers[import_constants4.headerNames.total]);
|
|
@@ -3080,6 +3078,15 @@ var removeStaticGroup = createAppAsyncThunk(
|
|
|
3080
3078
|
])
|
|
3081
3079
|
)
|
|
3082
3080
|
);
|
|
3081
|
+
var getDynamicGroup = createAppAsyncThunk(
|
|
3082
|
+
`${sliceName3}/getDynamicGroupById`,
|
|
3083
|
+
(id, { dispatch }) => general_api_default.get(`${import_constants4.inventoryApiUrlV2}/filters/${id}`).catch((err) => {
|
|
3084
|
+
if (err.response && err.response.status === 404) {
|
|
3085
|
+
throw new Error("Request failed with status code 404");
|
|
3086
|
+
}
|
|
3087
|
+
return commonErrorHandler(err, `Error retrieving the group: `, dispatch, commonErrorFallback);
|
|
3088
|
+
})
|
|
3089
|
+
);
|
|
3083
3090
|
var getDynamicGroups = createAppAsyncThunk(
|
|
3084
3091
|
`${sliceName3}/getDynamicGroups`,
|
|
3085
3092
|
(_, { dispatch, getState }) => general_api_default.get(`${import_constants4.inventoryApiUrlV2}/filters?per_page=${MAX_PAGE_SIZE}`).then(({ data: filters }) => {
|
|
@@ -4198,6 +4205,9 @@ var isEmptyPermissionSet = (permissionSet) => !Object.values(permissionSet).redu
|
|
|
4198
4205
|
var parseRolePermissions = ({ permission_sets_with_scope = [], permissions = [] }, permissionSets) => {
|
|
4199
4206
|
const preliminaryResult = permission_sets_with_scope.reduce(
|
|
4200
4207
|
(accu, permissionSet) => {
|
|
4208
|
+
if (!permissionSet.name) {
|
|
4209
|
+
return accu;
|
|
4210
|
+
}
|
|
4201
4211
|
const processor = permissionSets[permissionSet.name];
|
|
4202
4212
|
if (!processor) {
|
|
4203
4213
|
return accu;
|
|
@@ -4206,7 +4216,7 @@ var parseRolePermissions = ({ permission_sets_with_scope = [], permissions = []
|
|
|
4206
4216
|
if (scope) {
|
|
4207
4217
|
const result = mapPermissionSet(
|
|
4208
4218
|
permissionSet.name,
|
|
4209
|
-
permissionSet.scope
|
|
4219
|
+
permissionSet.scope?.value ?? [],
|
|
4210
4220
|
scope,
|
|
4211
4221
|
accu.uiPermissions[scope]
|
|
4212
4222
|
);
|