@northern.tech/store 0.24.0 → 0.25.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/appSlice/thunks.cjs +3 -1
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.js +7 -7
- package/dist/{chunk-OH4CWUIK.js → chunk-5AYPT3F5.js} +4 -4
- package/dist/{chunk-IS4RSIX5.js → chunk-E2X525PA.js} +2 -2
- package/dist/{chunk-4LXBO2FO.js → chunk-F77BXZXX.js} +16 -11
- package/dist/chunk-F77BXZXX.js.map +1 -0
- package/dist/{chunk-NKS5ASWX.js → chunk-IDKMS5RA.js} +2 -2
- package/dist/{chunk-QSTJRY3C.js → chunk-JJDXPFDG.js} +3 -3
- package/dist/{chunk-KIKY6LHH.js → chunk-PHYVVNDW.js} +4 -4
- package/dist/{chunk-UTBSK7B6.js → chunk-S7XYEGLR.js} +9 -2
- package/dist/{chunk-UTBSK7B6.js.map → chunk-S7XYEGLR.js.map} +1 -1
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.js +4 -4
- package/dist/deploymentsSlice/thunks.cjs +3 -1
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.js +7 -7
- package/dist/devicesSlice/thunks.cjs +3 -1
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.js +7 -7
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.js +5 -5
- package/dist/onboardingSlice/thunks.cjs +3 -1
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.js +7 -7
- package/dist/organizationSlice/thunks.cjs +15 -6
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +3 -1
- package/dist/organizationSlice/thunks.d.ts +3 -1
- package/dist/organizationSlice/thunks.js +7 -7
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.js +2 -2
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.js +5 -5
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.js +4 -4
- package/dist/storehooks.cjs +15 -6
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +7 -7
- package/dist/thunks.cjs +15 -6
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.js +7 -7
- package/dist/useDeploymentDevice.cjs +3 -1
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js +7 -7
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.js +2 -2
- package/dist/usersSlice/thunks.cjs +3 -1
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.js +7 -7
- package/dist/utils.cjs +8 -0
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +2 -1
- package/dist/utils.d.ts +2 -1
- package/dist/utils.js +3 -1
- package/package.json +1 -1
- package/dist/chunk-4LXBO2FO.js.map +0 -1
- /package/dist/{chunk-OH4CWUIK.js.map → chunk-5AYPT3F5.js.map} +0 -0
- /package/dist/{chunk-IS4RSIX5.js.map → chunk-E2X525PA.js.map} +0 -0
- /package/dist/{chunk-NKS5ASWX.js.map → chunk-IDKMS5RA.js.map} +0 -0
- /package/dist/{chunk-QSTJRY3C.js.map → chunk-JJDXPFDG.js.map} +0 -0
- /package/dist/{chunk-KIKY6LHH.js.map → chunk-PHYVVNDW.js.map} +0 -0
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
setOnboardingCanceled,
|
|
6
6
|
setOnboardingComplete,
|
|
7
7
|
setOnboardingDeviceType
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-F77BXZXX.js";
|
|
9
|
+
import "../chunk-5AYPT3F5.js";
|
|
10
|
+
import "../chunk-JJDXPFDG.js";
|
|
11
11
|
import "../chunk-WTVM2QSK.js";
|
|
12
12
|
import "../chunk-3IXBQAMO.js";
|
|
13
13
|
import "../chunk-6NLGT2LD.js";
|
|
@@ -23,16 +23,16 @@ import "../chunk-F2ADELYA.js";
|
|
|
23
23
|
import "../chunk-WKXBJVZ7.js";
|
|
24
24
|
import "../chunk-X4TGUR22.js";
|
|
25
25
|
import "../chunk-NMAXZ3ZY.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-PHYVVNDW.js";
|
|
27
|
+
import "../chunk-E2X525PA.js";
|
|
28
|
+
import "../chunk-IDKMS5RA.js";
|
|
29
29
|
import "../chunk-X6AM6P6X.js";
|
|
30
30
|
import "../chunk-YO22XLHI.js";
|
|
31
31
|
import "../chunk-JIS4PA3R.js";
|
|
32
32
|
import "../chunk-CXRORJR5.js";
|
|
33
33
|
import "../chunk-2AGBXDGF.js";
|
|
34
34
|
import "../chunk-4BHM6WVX.js";
|
|
35
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-S7XYEGLR.js";
|
|
36
36
|
import "../chunk-AERWBWRM.js";
|
|
37
37
|
import "../chunk-2DYA3X77.js";
|
|
38
38
|
import "../chunk-FAJ3I2UQ.js";
|
|
@@ -2188,6 +2188,12 @@ var parseSubscriptionPreview = (lines) => lines.reduce((acc, { addon, amount, pr
|
|
|
2188
2188
|
}
|
|
2189
2189
|
return acc;
|
|
2190
2190
|
}, {});
|
|
2191
|
+
var convertToBackendSPLimits = (limits, spLimits) => Object.fromEntries(
|
|
2192
|
+
Object.entries(limits).filter(([key]) => !!spLimits[key]).map(([key, limit]) => {
|
|
2193
|
+
const { backendId } = spLimits[key];
|
|
2194
|
+
return [backendId, { Name: backendId, value: Number(limit) || 0 }];
|
|
2195
|
+
})
|
|
2196
|
+
);
|
|
2191
2197
|
|
|
2192
2198
|
// src/releasesSlice/selectors.ts
|
|
2193
2199
|
var getSelectedReleaseId = (state) => state.releases.selectedRelease;
|
|
@@ -2710,7 +2716,9 @@ var getDeploymentsByStatus2 = createAppAsyncThunk(
|
|
|
2710
2716
|
const { status, page = defaultPage, perPage = defaultPerPage, startDate, endDate, group, type, shouldSelect = true, sort = import_constants5.SORTING_OPTIONS.desc } = options;
|
|
2711
2717
|
const created_after = startDate ? `&created_after=${startDate}` : "";
|
|
2712
2718
|
const created_before = endDate ? `&created_before=${endDate}` : "";
|
|
2713
|
-
const
|
|
2719
|
+
const { attribute, scope } = getIdAttribute(getState());
|
|
2720
|
+
const attributeHint = `&id_attribute=${attribute}&id_scope=${scope}`;
|
|
2721
|
+
const search = group ? `&name=${group}${attributeHint}` : "";
|
|
2714
2722
|
const typeFilter = type ? `&type=${type}` : "";
|
|
2715
2723
|
return general_api_default.get(
|
|
2716
2724
|
`${import_constants5.deploymentsApiUrlV2}/deployments?status=${status}&per_page=${perPage}&page=${page}${created_after}${created_before}${search}${typeFilter}&sort=${sort}`
|
|
@@ -4911,16 +4919,17 @@ var setTenantsListState = createAppAsyncThunk(
|
|
|
4911
4919
|
return dispatch(actions.setTenantListState({ ...nextState }));
|
|
4912
4920
|
}
|
|
4913
4921
|
);
|
|
4914
|
-
var editTenant = createAppAsyncThunk(
|
|
4915
|
-
|
|
4916
|
-
|
|
4922
|
+
var editTenant = createAppAsyncThunk(`${sliceName}/editDeviceLimit`, ({ deviceLimits, id, name }, { dispatch, getState }) => {
|
|
4923
|
+
const spLimits = getSpLimits(getState());
|
|
4924
|
+
const device_limits = convertToBackendSPLimits(deviceLimits, spLimits);
|
|
4925
|
+
return general_api_default.put(`${import_constants5.tenantadmApiUrlv2}/tenants/${id}/child`, { device_limits, name }).catch((err) => commonErrorHandler(err, `Device Limit cannot be changed`, dispatch)).then(
|
|
4917
4926
|
() => Promise.all([
|
|
4918
4927
|
dispatch(setSnackbar5("Tenant was changed successfully")),
|
|
4919
4928
|
dispatch(getUserOrganization()),
|
|
4920
4929
|
new Promise((resolve) => setTimeout(() => resolve(dispatch(getTenants())), TIMEOUTS.oneSecond))
|
|
4921
4930
|
])
|
|
4922
|
-
)
|
|
4923
|
-
);
|
|
4931
|
+
);
|
|
4932
|
+
});
|
|
4924
4933
|
var editBillingProfile = createAppAsyncThunk(
|
|
4925
4934
|
`${sliceName}/editBillingProfileEmail`,
|
|
4926
4935
|
({ billingProfile }, { dispatch }) => general_api_default.patch(`${import_constants5.tenantadmApiUrlv2}/billing/profile`, billingProfile).catch((err) => commonErrorHandler(err, `Failed to change billing profile`, dispatch)).then(() => Promise.all([dispatch(setSnackbar5("Billing Profile was changed successfully")), dispatch(getUserBilling())]))
|