@northern.tech/store 0.41.3 → 0.42.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.d.cts +9 -10
- package/dist/actions.d.ts +9 -10
- package/dist/api/general-api.cjs +1 -1
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/general-api.d.cts +0 -1
- package/dist/api/general-api.d.ts +0 -1
- package/dist/api/general-api.js +1 -1
- package/dist/api/users-api.cjs +1 -1
- package/dist/api/users-api.d.cts +1 -6
- package/dist/api/users-api.d.ts +1 -6
- package/dist/appSlice/constants.cjs +0 -5
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +1 -1
- package/dist/appSlice/constants.d.ts +1 -1
- package/dist/appSlice/constants.js +0 -5
- package/dist/appSlice/constants.js.map +1 -1
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.d.cts +1 -1
- package/dist/appSlice/index.d.ts +1 -1
- package/dist/appSlice/index.js +1 -1
- package/dist/appSlice/mocks.d.cts +1 -2
- package/dist/appSlice/mocks.d.ts +1 -2
- package/dist/appSlice/selectors.cjs.map +1 -1
- package/dist/appSlice/selectors.d.cts +9 -10
- package/dist/appSlice/selectors.d.ts +9 -10
- package/dist/appSlice/thunks.d.cts +2 -3
- package/dist/appSlice/thunks.d.ts +2 -3
- package/dist/auth.cjs +1 -1
- package/dist/auth.d.cts +3 -10
- package/dist/auth.d.ts +3 -10
- package/dist/auth.js +1 -1
- package/dist/commonConstants.d.cts +1 -1
- package/dist/commonConstants.d.ts +1 -1
- package/dist/commonConstants.js +1 -1
- package/dist/commonSelectors.cjs +4 -3
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +20 -21
- package/dist/commonSelectors.d.ts +20 -21
- package/dist/commonSelectors.js +4 -3
- package/dist/commonSelectors.js.map +1 -1
- package/dist/{constants-Sn4gnNA3.d.ts → constants-B3Jdkn2b.d.cts} +2 -5
- package/dist/{constants-Sn4gnNA3.d.cts → constants-B3Jdkn2b.d.ts} +2 -5
- package/dist/{constants-CzjK2gV-.d.ts → constants-B_H4squx.d.ts} +4 -4
- package/dist/{constants-D9o0Cnk_.d.ts → constants-C6TIYaY4.d.cts} +1 -2
- package/dist/{constants-D9o0Cnk_.d.cts → constants-C6TIYaY4.d.ts} +1 -2
- package/dist/{constants-6kYRTdox.d.ts → constants-CEwun8TL.d.cts} +3 -2
- package/dist/{constants-6kYRTdox.d.cts → constants-CEwun8TL.d.ts} +3 -2
- package/dist/constants-C_SC_VKE.cjs.map +1 -1
- package/dist/{constants-xpheFFkA.js → constants-CerzXHnQ.js} +3 -3
- package/dist/{constants-xpheFFkA.js.map → constants-CerzXHnQ.js.map} +1 -1
- package/dist/{constants-DAi2zOZN.d.cts → constants-Rl3FJzFf.d.cts} +4 -4
- package/dist/{constants-B_7FCJQX.d.ts → constants-nKSWZ8oD.d.cts} +3 -8
- package/dist/{constants-B_7FCJQX.d.cts → constants-nKSWZ8oD.d.ts} +3 -8
- package/dist/constants.cjs +2 -0
- package/dist/constants.d.cts +6 -6
- package/dist/constants.d.ts +6 -6
- package/dist/constants.js +3 -3
- package/dist/deploymentsSlice/constants.d.cts +1 -1
- package/dist/deploymentsSlice/constants.d.ts +1 -1
- package/dist/deploymentsSlice/constants.js +1 -1
- package/dist/deploymentsSlice/index.cjs.map +1 -1
- package/dist/deploymentsSlice/index.d.cts +1 -1
- package/dist/deploymentsSlice/index.d.ts +1 -1
- package/dist/deploymentsSlice/index.js +1 -1
- package/dist/deploymentsSlice/mocks.d.cts +1 -2
- package/dist/deploymentsSlice/mocks.d.ts +1 -2
- package/dist/deploymentsSlice/selectors.cjs.map +1 -1
- package/dist/deploymentsSlice/selectors.d.cts +9 -10
- package/dist/deploymentsSlice/selectors.d.ts +9 -10
- package/dist/deploymentsSlice/selectors.js +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +7 -13
- package/dist/deploymentsSlice/thunks.d.ts +7 -13
- package/dist/devicesSlice/constants.d.cts +1 -1
- package/dist/devicesSlice/constants.d.ts +1 -1
- package/dist/devicesSlice/constants.js +1 -1
- package/dist/devicesSlice/index.cjs +1 -1
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.d.cts +2 -2
- package/dist/devicesSlice/index.d.ts +2 -2
- package/dist/devicesSlice/index.js +2 -2
- package/dist/devicesSlice/index.js.map +1 -1
- package/dist/devicesSlice/mocks.js +1 -1
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +9 -10
- package/dist/devicesSlice/selectors.d.ts +9 -10
- package/dist/devicesSlice/selectors.js +1 -1
- package/dist/devicesSlice/thunks.cjs +1 -2
- package/dist/devicesSlice/thunks.d.cts +11 -23
- package/dist/devicesSlice/thunks.d.ts +11 -23
- package/dist/devicesSlice/thunks.js +2 -2
- package/dist/{index-Bb4yvvgG.d.ts → index-B8td4-rY.d.ts} +1 -2
- package/dist/{index-C5oQrJGU.d.ts → index-BAGyeC-q.d.ts} +2 -3
- package/dist/{index-CgPgKMve.d.cts → index-BgF6rhXn.d.cts} +3 -4
- package/dist/{index-CnH51JfB.d.ts → index-Bs0c1-WY.d.ts} +4 -9
- package/dist/{index-BtGhTFBc.d.ts → index-Bvyf8OO6.d.ts} +9 -13
- package/dist/{index-m1c0qk2s.d.ts → index-C8uiyxnb.d.ts} +2 -3
- package/dist/{index-CSOj22xK.d.cts → index-C_LGDJN2.d.cts} +2 -3
- package/dist/{index-H9zg_3UV.d.ts → index-ChKTa1aL.d.ts} +2 -3
- package/dist/{index-vXsWdis1.d.cts → index-CiQ95u1W.d.cts} +9 -13
- package/dist/{index-DBUt8xVc.d.ts → index-CoObjWL4.d.cts} +1 -2
- package/dist/{index-DBUt8xVc.d.cts → index-CoObjWL4.d.ts} +1 -2
- package/dist/{index-BCErsO5h.d.ts → index-CpfhQHfg.d.ts} +3 -4
- package/dist/{index-BQCnJ5gh.d.cts → index-Ctj2r57a.d.cts} +2 -3
- package/dist/{index-Dn1SqQYh.d.cts → index-DeOpb2oK.d.cts} +4 -9
- package/dist/{index-VEayiYkv.d.cts → index-DiAjzARZ.d.cts} +2 -3
- package/dist/{index-EPmsL6Lb.d.cts → index-mvxjivTJ.d.cts} +1 -2
- package/dist/liststatehook.cjs.map +1 -1
- package/dist/liststatehook.d.cts +0 -1
- package/dist/liststatehook.d.ts +0 -1
- package/dist/locationutils.cjs.map +1 -1
- package/dist/locationutils.d.cts +14 -67
- package/dist/locationutils.d.ts +14 -67
- package/dist/locationutils.js +1 -1
- package/dist/monitorSlice/constants.d.cts +1 -1
- package/dist/monitorSlice/constants.d.ts +1 -1
- package/dist/monitorSlice/index.cjs.map +1 -1
- package/dist/monitorSlice/index.d.cts +1 -1
- package/dist/monitorSlice/index.d.ts +1 -1
- package/dist/monitorSlice/index.js +1 -1
- package/dist/monitorSlice/mocks.d.cts +1 -2
- package/dist/monitorSlice/mocks.d.ts +1 -2
- package/dist/monitorSlice/mocks.js +1 -1
- package/dist/monitorSlice/selectors.d.cts +1 -2
- package/dist/monitorSlice/selectors.d.ts +1 -2
- package/dist/monitorSlice/thunks.d.cts +4 -5
- package/dist/monitorSlice/thunks.d.ts +4 -5
- package/dist/monitorSlice/thunks.js +1 -1
- package/dist/onboardingSlice/index.cjs.map +1 -1
- package/dist/onboardingSlice/index.d.cts +1 -1
- package/dist/onboardingSlice/index.d.ts +1 -1
- package/dist/onboardingSlice/mocks.d.cts +1 -2
- package/dist/onboardingSlice/mocks.d.ts +1 -2
- package/dist/onboardingSlice/selectors.d.cts +2 -3
- package/dist/onboardingSlice/selectors.d.ts +2 -3
- package/dist/onboardingSlice/thunks.d.cts +4 -4
- package/dist/onboardingSlice/thunks.d.ts +4 -4
- package/dist/organizationSlice/constants.js +1 -1
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.d.cts +1 -1
- package/dist/organizationSlice/index.d.ts +1 -1
- package/dist/organizationSlice/index.js +1 -1
- package/dist/organizationSlice/mocks.d.cts +3 -3
- package/dist/organizationSlice/mocks.d.ts +3 -3
- package/dist/organizationSlice/mocks.js +1 -1
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +11 -16
- package/dist/organizationSlice/selectors.d.ts +11 -16
- package/dist/organizationSlice/selectors.js +1 -1
- package/dist/organizationSlice/thunks.d.cts +6 -7
- package/dist/organizationSlice/thunks.d.ts +6 -7
- package/dist/organizationSlice/types.d.cts +1 -1
- package/dist/organizationSlice/types.d.ts +1 -1
- package/dist/releasesSlice/constants.cjs +2 -0
- package/dist/releasesSlice/constants.cjs.map +1 -1
- package/dist/releasesSlice/constants.d.cts +2 -2
- package/dist/releasesSlice/constants.d.ts +2 -2
- package/dist/releasesSlice/constants.js +2 -1
- package/dist/releasesSlice/constants.js.map +1 -1
- package/dist/releasesSlice/index.cjs.map +1 -1
- package/dist/releasesSlice/index.d.cts +1 -1
- package/dist/releasesSlice/index.d.ts +1 -1
- package/dist/releasesSlice/index.js +1 -1
- package/dist/releasesSlice/mocks.js +1 -1
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.d.cts +9 -10
- package/dist/releasesSlice/selectors.d.ts +9 -10
- package/dist/releasesSlice/thunks.cjs +1 -1
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +4 -5
- package/dist/releasesSlice/thunks.d.ts +4 -5
- package/dist/releasesSlice/thunks.js +1 -1
- package/dist/{rolldown-runtime-D6vf50IK.cjs → rolldown-runtime-VH7oDXx4.cjs} +1 -1
- package/dist/sockethook.cjs +1 -2
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.d.cts +1 -8
- package/dist/sockethook.d.ts +1 -8
- package/dist/sockethook.js +1 -2
- package/dist/sockethook.js.map +1 -1
- package/dist/{store-CkgokFlk.d.ts → store-CPptM5Ts.d.ts} +27 -48
- package/dist/{store-CGP5pCH8.d.cts → store-CUUm1GTI.d.cts} +27 -48
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +1 -1
- package/dist/store.d.ts +1 -1
- package/dist/store.js +1 -1
- package/dist/storehooks.cjs +30 -20
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.d.cts +13 -4
- package/dist/storehooks.d.ts +13 -4
- package/dist/storehooks.js +31 -22
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +16 -107
- 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 +16 -106
- package/dist/thunks.js.map +1 -1
- package/dist/{types-uHmaedGU.d.ts → types-B3qGQoMx.d.ts} +3 -4
- package/dist/{types-yQ0ypHMZ.d.cts → types-B80ckxiy.d.cts} +3 -4
- package/dist/useDeploymentDevice.cjs +1 -1
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/usersSlice/constants.d.cts +1 -1
- package/dist/usersSlice/constants.d.ts +1 -1
- package/dist/usersSlice/constants.js +1 -1
- package/dist/usersSlice/index.cjs.map +1 -1
- package/dist/usersSlice/index.d.cts +1 -1
- package/dist/usersSlice/index.d.ts +1 -1
- package/dist/usersSlice/index.js +1 -1
- package/dist/usersSlice/mocks.d.cts +2 -3
- package/dist/usersSlice/mocks.d.ts +2 -3
- package/dist/usersSlice/mocks.js +1 -1
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.d.cts +10 -11
- package/dist/usersSlice/selectors.d.ts +10 -11
- package/dist/usersSlice/selectors.js +1 -1
- package/dist/usersSlice/thunks.d.cts +5 -6
- package/dist/usersSlice/thunks.d.ts +5 -6
- package/dist/utils.cjs +2 -2
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +3 -3
- package/dist/utils.js.map +1 -1
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.cjs","names":["DEVICE_STATES","UNGROUPED_GROUP","duplicateFilter"],"sources":["../../src/devicesSlice/selectors.ts"],"sourcesContent":["// Copyright 2023 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { duplicateFilter } from '@northern.tech/utils/helpers';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { DeviceFilter, DeviceGroup } from '.';\nimport type { DeviceAuthState } from '../constants';\nimport { DEVICE_STATES, UNGROUPED_GROUP } from '../constants';\nimport type { RootState } from '../store';\n\nexport const getAcceptedDevices = (state: RootState) => state.devices.byStatus.accepted;\nexport const getDevicesByStatus = (state: RootState) => state.devices.byStatus;\nexport const getDevicesById = (state: RootState) => state.devices.byId;\nexport const getDeviceReports = (state: RootState) => state.devices.reports;\nexport const getGroupsById = (state: RootState) => state.devices.groups.byId;\nexport const getSelectedGroup = (state: RootState) => state.devices.groups.selectedGroup;\n\nexport const getDeviceListState = (state: RootState) => state.devices.deviceList;\nexport const getListedDevices = (state: RootState) => state.devices.deviceList.deviceIds;\nexport const getFilteringAttributes = (state: RootState) => state.devices.filteringAttributes;\nexport const getDeviceFilters = (state: RootState) => state.devices.filters || [];\nconst getFilteringAttributesFromConfig = (state: RootState) => state.devices.filteringAttributesConfig.attributes;\nexport const getSortedFilteringAttributes = createSelector([getFilteringAttributes], filteringAttributes => ({\n ...filteringAttributes,\n identityAttributes: [...filteringAttributes.identityAttributes, 'id']\n}));\nexport const getDeviceLimits = (state: RootState) => state.devices.limits;\nexport const getTestDeviceCount = (state: RootState) => state.devices.testDeviceCount;\nconst getFilteringAttributesLimit = (state: RootState) => state.devices.filteringAttributesLimit;\n\nexport const getDeviceIdentityAttributes = createSelector(\n [getFilteringAttributes, getFilteringAttributesLimit],\n ({ identityAttributes }, filteringAttributesLimit) => {\n // limit the selection of the available attribute to AVAILABLE_ATTRIBUTE_LIMIT\n const attributes = identityAttributes.slice(0, filteringAttributesLimit);\n return attributes.reduce(\n (accu, value) => {\n accu.push({ value, label: value, scope: 'identity' });\n return accu;\n },\n [\n { value: 'name', label: 'Name', scope: 'tags' },\n { value: 'id', label: 'Device ID', scope: 'identity' }\n ]\n );\n }\n);\n\nexport const getDeviceCountsByStatus = createSelector([getDevicesByStatus], byStatus =>\n Object.values(DEVICE_STATES).reduce<Record<DeviceAuthState, number>>(\n (accu, deviceState) => {\n const { counts } = byStatus[deviceState];\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { total, ...tieredCounts } = counts;\n const count = Object.values(tieredCounts).reduce((accu, countPerTier) => accu + countPerTier, 0);\n accu[deviceState] = count;\n accu.total = accu.total + count;\n return accu;\n },\n { total: 0 }\n )\n);\n\nexport const getDeviceById = createSelector([getDevicesById, (_, deviceId) => deviceId], (devicesById, deviceId = '') => devicesById[deviceId] ?? {});\n\nexport const getSelectedGroupInfo = createSelector(\n [getDeviceCountsByStatus, getGroupsById, getSelectedGroup],\n ({ accepted: acceptedDeviceTotal }, groupsById, selectedGroup) => {\n let groupCount = acceptedDeviceTotal;\n let groupFilters: DeviceFilter[] = [];\n if (selectedGroup && groupsById[selectedGroup]) {\n groupCount = groupsById[selectedGroup].total || 0;\n groupFilters = groupsById[selectedGroup].filters || [];\n }\n return { groupCount, selectedGroup, groupFilters };\n }\n);\n\nexport const getCombinedLimit = createSelector(\n [getDeviceLimits],\n deviceLimits => Object.values(deviceLimits).reduce((accu, limit) => accu + Math.max(limit ?? 0, 0), 0) // limit might be -1 for unlimited devices\n);\n\nexport const getLimitMaxed = createSelector(\n [getDeviceCountsByStatus, getCombinedLimit],\n ({ accepted: acceptedDevices }, combinedLimit) => !!combinedLimit && combinedLimit <= acceptedDevices\n);\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport const getGroupsByIdWithoutUngrouped = createSelector([getGroupsById], ({ [UNGROUPED_GROUP.id]: ungrouped, ...groups }) => groups);\n\nexport const getGroupData = createSelector([getGroupsByIdWithoutUngrouped], groups => {\n const createdGroup = Object.keys(groups).length ? Object.keys(groups)[0] : undefined;\n const hasDynamicGroups = Object.values(groups).some(group => !!group.id);\n return { createdGroup, hasDynamicGroups, groups };\n});\n\ntype SelectorGroup = DeviceGroup & { groupId: string };\ntype SelectorGroups = { dynamic: SelectorGroup[]; static: SelectorGroup[]; ungrouped: SelectorGroup[] };\n\nexport const getGroups = createSelector([getGroupsById], groupsById => {\n const groupNames = Object.keys(groupsById).sort();\n const groupedGroups = Object.entries(groupsById)\n .sort((a, b) => a[0].localeCompare(b[0]))\n .reduce<SelectorGroups>(\n (accu, [groupname, group]) => {\n const name = groupname === UNGROUPED_GROUP.id ? UNGROUPED_GROUP.name : groupname;\n const groupItem = { ...group, groupId: name, name: groupname };\n if ((group.filters ?? []).length > 0) {\n if (groupname !== UNGROUPED_GROUP.id) {\n accu.dynamic.push(groupItem);\n } else {\n accu.ungrouped.push(groupItem);\n }\n } else {\n accu.static.push(groupItem);\n }\n return accu;\n },\n { dynamic: [], static: [], ungrouped: [] }\n );\n return { groupNames, ...groupedGroups };\n});\nexport const getAttributesList = createSelector(\n [getFilteringAttributes, getFilteringAttributesFromConfig],\n ({ identityAttributes = [], inventoryAttributes = [] }, { identity = [], inventory = [] }) =>\n [...identityAttributes, ...inventoryAttributes, ...identity, ...inventory].filter(duplicateFilter)\n);\nconst getEnabledTierLimits = createSelector([getDeviceLimits], limits => Object.entries(limits).filter(([, limit]) => limit !== 0));\n\nexport const getEnabledTiers = createSelector([getEnabledTierLimits], enabledTierLimits => enabledTierLimits.map(([type]) => type));\n\nexport const getDeviceLimitStats = createSelector([getEnabledTierLimits, getAcceptedDevices], (enabledTierLimits, accepted) => {\n const { counts } = accepted;\n return enabledTierLimits.map(([type, limit]) => ({\n type,\n limit,\n total: counts[type] || 0\n }));\n});\n\nexport const getDeviceTypes = createSelector([getAcceptedDevices, getDevicesById], ({ deviceIds = [] }, devicesById) =>\n Object.keys(\n deviceIds.slice(0, 200).reduce((accu, item) => {\n const { device_type: deviceTypes = [] } = devicesById[item] ? devicesById[item].attributes : {};\n accu = deviceTypes.reduce((deviceTypeAccu, deviceType) => {\n if (deviceType.length > 1) {\n deviceTypeAccu[deviceType] = deviceTypeAccu[deviceType] ? deviceTypeAccu[deviceType] + 1 : 1;\n }\n return deviceTypeAccu;\n }, accu);\n return accu;\n }, {})\n )\n);\n"],"mappings":";;;;;;AAqBA,MAAa,sBAAsB,UAAqB,MAAM,QAAQ,SAAS;AAC/E,MAAa,sBAAsB,UAAqB,MAAM,QAAQ;AACtE,MAAa,kBAAkB,UAAqB,MAAM,QAAQ;AAClE,MAAa,oBAAoB,UAAqB,MAAM,QAAQ;AACpE,MAAa,iBAAiB,UAAqB,MAAM,QAAQ,OAAO;AACxE,MAAa,oBAAoB,UAAqB,MAAM,QAAQ,OAAO;AAE3E,MAAa,sBAAsB,UAAqB,MAAM,QAAQ;AACtE,MAAa,oBAAoB,UAAqB,MAAM,QAAQ,WAAW;AAC/E,MAAa,0BAA0B,UAAqB,MAAM,QAAQ;AAC1E,MAAa,oBAAoB,UAAqB,MAAM,QAAQ,WAAW,CAAC;AAChF,MAAM,oCAAoC,UAAqB,MAAM,QAAQ,0BAA0B;AACvG,MAAa,gCAAA,GAAA,iBAAA,eAAA,CAA8C,CAAC,sBAAsB,IAAG,yBAAwB;CAC3G,GAAG;CACH,oBAAoB,CAAC,GAAG,oBAAoB,oBAAoB,IAAI;AACtE,EAAE;AACF,MAAa,mBAAmB,UAAqB,MAAM,QAAQ;AACnE,MAAa,sBAAsB,UAAqB,MAAM,QAAQ;AACtE,MAAM,+BAA+B,UAAqB,MAAM,QAAQ;AAExE,MAAa,+BAAA,GAAA,iBAAA,eAAA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AG,IAAI;CACP,OAAO;AACT,GAAG,CAAC,CAAC,CACP,CACF"}
|
|
1
|
+
{"version":3,"file":"selectors.cjs","names":["createSelector","DEVICE_STATES","UNGROUPED_GROUP","duplicateFilter"],"sources":["../../src/devicesSlice/selectors.ts"],"sourcesContent":["// Copyright 2023 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { duplicateFilter } from '@northern.tech/utils/helpers';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { DeviceFilter, DeviceGroup } from '.';\nimport type { DeviceAuthState } from '../constants';\nimport { DEVICE_STATES, UNGROUPED_GROUP } from '../constants';\nimport type { RootState } from '../store';\n\nexport const getAcceptedDevices = (state: RootState) => state.devices.byStatus.accepted;\nexport const getDevicesByStatus = (state: RootState) => state.devices.byStatus;\nexport const getDevicesById = (state: RootState) => state.devices.byId;\nexport const getDeviceReports = (state: RootState) => state.devices.reports;\nexport const getGroupsById = (state: RootState) => state.devices.groups.byId;\nexport const getSelectedGroup = (state: RootState) => state.devices.groups.selectedGroup;\n\nexport const getDeviceListState = (state: RootState) => state.devices.deviceList;\nexport const getListedDevices = (state: RootState) => state.devices.deviceList.deviceIds;\nexport const getFilteringAttributes = (state: RootState) => state.devices.filteringAttributes;\nexport const getDeviceFilters = (state: RootState) => state.devices.filters || [];\nconst getFilteringAttributesFromConfig = (state: RootState) => state.devices.filteringAttributesConfig.attributes;\nexport const getSortedFilteringAttributes = createSelector([getFilteringAttributes], filteringAttributes => ({\n ...filteringAttributes,\n identityAttributes: [...filteringAttributes.identityAttributes, 'id']\n}));\nexport const getDeviceLimits = (state: RootState) => state.devices.limits;\nexport const getTestDeviceCount = (state: RootState) => state.devices.testDeviceCount;\nconst getFilteringAttributesLimit = (state: RootState) => state.devices.filteringAttributesLimit;\n\nexport const getDeviceIdentityAttributes = createSelector(\n [getFilteringAttributes, getFilteringAttributesLimit],\n ({ identityAttributes }, filteringAttributesLimit) => {\n // limit the selection of the available attribute to AVAILABLE_ATTRIBUTE_LIMIT\n const attributes = identityAttributes.slice(0, filteringAttributesLimit);\n return attributes.reduce(\n (accu, value) => {\n accu.push({ value, label: value, scope: 'identity' });\n return accu;\n },\n [\n { value: 'name', label: 'Name', scope: 'tags' },\n { value: 'id', label: 'Device ID', scope: 'identity' }\n ]\n );\n }\n);\n\nexport const getDeviceCountsByStatus = createSelector([getDevicesByStatus], byStatus =>\n Object.values(DEVICE_STATES).reduce<Record<DeviceAuthState, number>>(\n (accu, deviceState) => {\n const { counts } = byStatus[deviceState];\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { total, ...tieredCounts } = counts;\n const count = Object.values(tieredCounts).reduce((accu, countPerTier) => accu + countPerTier, 0);\n accu[deviceState] = count;\n accu.total = accu.total + count;\n return accu;\n },\n { total: 0 }\n )\n);\n\nexport const getDeviceById = createSelector([getDevicesById, (_, deviceId) => deviceId], (devicesById, deviceId = '') => devicesById[deviceId] ?? {});\n\nexport const getSelectedGroupInfo = createSelector(\n [getDeviceCountsByStatus, getGroupsById, getSelectedGroup],\n ({ accepted: acceptedDeviceTotal }, groupsById, selectedGroup) => {\n let groupCount = acceptedDeviceTotal;\n let groupFilters: DeviceFilter[] = [];\n if (selectedGroup && groupsById[selectedGroup]) {\n groupCount = groupsById[selectedGroup].total || 0;\n groupFilters = groupsById[selectedGroup].filters || [];\n }\n return { groupCount, selectedGroup, groupFilters };\n }\n);\n\nexport const getCombinedLimit = createSelector(\n [getDeviceLimits],\n deviceLimits => Object.values(deviceLimits).reduce((accu, limit) => accu + Math.max(limit ?? 0, 0), 0) // limit might be -1 for unlimited devices\n);\n\nexport const getLimitMaxed = createSelector(\n [getDeviceCountsByStatus, getCombinedLimit],\n ({ accepted: acceptedDevices }, combinedLimit) => !!combinedLimit && combinedLimit <= acceptedDevices\n);\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport const getGroupsByIdWithoutUngrouped = createSelector([getGroupsById], ({ [UNGROUPED_GROUP.id]: ungrouped, ...groups }) => groups);\n\nexport const getGroupData = createSelector([getGroupsByIdWithoutUngrouped], groups => {\n const createdGroup = Object.keys(groups).length ? Object.keys(groups)[0] : undefined;\n const hasDynamicGroups = Object.values(groups).some(group => !!group.id);\n return { createdGroup, hasDynamicGroups, groups };\n});\n\ntype SelectorGroup = DeviceGroup & { groupId: string };\ntype SelectorGroups = { dynamic: SelectorGroup[]; static: SelectorGroup[]; ungrouped: SelectorGroup[] };\n\nexport const getGroups = createSelector([getGroupsById], groupsById => {\n const groupNames = Object.keys(groupsById).sort();\n const groupedGroups = Object.entries(groupsById)\n .sort((a, b) => a[0].localeCompare(b[0]))\n .reduce<SelectorGroups>(\n (accu, [groupname, group]) => {\n const name = groupname === UNGROUPED_GROUP.id ? UNGROUPED_GROUP.name : groupname;\n const groupItem = { ...group, groupId: name, name: groupname };\n if ((group.filters ?? []).length > 0) {\n if (groupname !== UNGROUPED_GROUP.id) {\n accu.dynamic.push(groupItem);\n } else {\n accu.ungrouped.push(groupItem);\n }\n } else {\n accu.static.push(groupItem);\n }\n return accu;\n },\n { dynamic: [], static: [], ungrouped: [] }\n );\n return { groupNames, ...groupedGroups };\n});\nexport const getAttributesList = createSelector(\n [getFilteringAttributes, getFilteringAttributesFromConfig],\n ({ identityAttributes = [], inventoryAttributes = [] }, { identity = [], inventory = [] }) =>\n [...identityAttributes, ...inventoryAttributes, ...identity, ...inventory].filter(duplicateFilter)\n);\nconst getEnabledTierLimits = createSelector([getDeviceLimits], limits => Object.entries(limits).filter(([, limit]) => limit !== 0));\n\nexport const getEnabledTiers = createSelector([getEnabledTierLimits], enabledTierLimits => enabledTierLimits.map(([type]) => type));\n\nexport const getDeviceLimitStats = createSelector([getEnabledTierLimits, getAcceptedDevices], (enabledTierLimits, accepted) => {\n const { counts } = accepted;\n return enabledTierLimits.map(([type, limit]) => ({\n type,\n limit,\n total: counts[type] || 0\n }));\n});\n\nexport const getDeviceTypes = createSelector([getAcceptedDevices, getDevicesById], ({ deviceIds = [] }, devicesById) =>\n Object.keys(\n deviceIds.slice(0, 200).reduce((accu, item) => {\n const { device_type: deviceTypes = [] } = devicesById[item] ? devicesById[item].attributes : {};\n accu = deviceTypes.reduce((deviceTypeAccu, deviceType) => {\n if (deviceType.length > 1) {\n deviceTypeAccu[deviceType] = deviceTypeAccu[deviceType] ? deviceTypeAccu[deviceType] + 1 : 1;\n }\n return deviceTypeAccu;\n }, accu);\n return accu;\n }, {})\n )\n);\n"],"mappings":";;;;;;AAqBA,MAAa,sBAAsB,UAAqB,MAAM,QAAQ,SAAS;AAC/E,MAAa,sBAAsB,UAAqB,MAAM,QAAQ;AACtE,MAAa,kBAAkB,UAAqB,MAAM,QAAQ;AAClE,MAAa,oBAAoB,UAAqB,MAAM,QAAQ;AACpE,MAAa,iBAAiB,UAAqB,MAAM,QAAQ,OAAO;AACxE,MAAa,oBAAoB,UAAqB,MAAM,QAAQ,OAAO;AAE3E,MAAa,sBAAsB,UAAqB,MAAM,QAAQ;AACtE,MAAa,oBAAoB,UAAqB,MAAM,QAAQ,WAAW;AAC/E,MAAa,0BAA0B,UAAqB,MAAM,QAAQ;AAC1E,MAAa,oBAAoB,UAAqB,MAAM,QAAQ,WAAW,CAAC;AAChF,MAAM,oCAAoC,UAAqB,MAAM,QAAQ,0BAA0B;AACvG,MAAa,gCAAA,GAA+BA,iBAAAA,eAAAA,CAAe,CAAC,sBAAsB,IAAG,yBAAwB;CAC3G,GAAG;CACH,oBAAoB,CAAC,GAAG,oBAAoB,oBAAoB,IAAI;AACtE,EAAE;AACF,MAAa,mBAAmB,UAAqB,MAAM,QAAQ;AACnE,MAAa,sBAAsB,UAAqB,MAAM,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AC,aAAa,CAAC;CAC9F,OAAO,YAAY,QAAQ,gBAAgB,eAAe;EACxD,IAAI,WAAW,SAAS,GACtB,eAAe,cAAc,eAAe,cAAc,eAAe,cAAc,IAAI;EAE7F,OAAO;CACT,GAAG,IAAI;CACP,OAAO;AACT,GAAG,CAAC,CAAC,CACP,CACF"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
2
|
-
import { i as ReleaseSliceType } from "../index-
|
|
3
|
-
import { n as OnboardingSliceType } from "../index-
|
|
4
|
-
import { o as DeploymentsSliceType } from "../index-
|
|
5
|
-
import {
|
|
6
|
-
import { t as AppSliceType } from "../index-
|
|
7
|
-
import { t as MonitorSliceType } from "../index-
|
|
8
|
-
import { t as OrganizationSliceType } from "../index-
|
|
9
|
-
import { r as RootState } from "../store-
|
|
10
|
-
|
|
1
|
+
import { o as UserSliceType } from "../index-BgF6rhXn.cjs";
|
|
2
|
+
import { i as ReleaseSliceType } from "../index-DiAjzARZ.cjs";
|
|
3
|
+
import { n as OnboardingSliceType } from "../index-CoObjWL4.cjs";
|
|
4
|
+
import { o as DeploymentsSliceType } from "../index-mvxjivTJ.cjs";
|
|
5
|
+
import { c as DeviceSliceType, i as DeviceGroup, o as DeviceListState, r as DeviceFilter, t as Device } from "../index-CiQ95u1W.cjs";
|
|
6
|
+
import { t as AppSliceType } from "../index-DeOpb2oK.cjs";
|
|
7
|
+
import { t as MonitorSliceType } from "../index-Ctj2r57a.cjs";
|
|
8
|
+
import { t as OrganizationSliceType } from "../index-C_LGDJN2.cjs";
|
|
9
|
+
import { r as RootState } from "../store-CUUm1GTI.cjs";
|
|
11
10
|
//#region src/devicesSlice/selectors.d.ts
|
|
12
11
|
declare const getAcceptedDevices: (state: RootState) => {
|
|
13
12
|
counts: import("@northern.tech/types/types.gen").DeviceTierLimits & {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
2
|
-
import { i as ReleaseSliceType } from "../index-
|
|
3
|
-
import { n as OnboardingSliceType } from "../index-
|
|
4
|
-
import { o as DeploymentsSliceType } from "../index-
|
|
5
|
-
import {
|
|
6
|
-
import { t as AppSliceType } from "../index-
|
|
7
|
-
import { t as MonitorSliceType } from "../index-
|
|
8
|
-
import { t as OrganizationSliceType } from "../index-
|
|
9
|
-
import { r as RootState } from "../store-
|
|
10
|
-
|
|
1
|
+
import { o as UserSliceType } from "../index-CpfhQHfg.js";
|
|
2
|
+
import { i as ReleaseSliceType } from "../index-C8uiyxnb.js";
|
|
3
|
+
import { n as OnboardingSliceType } from "../index-CoObjWL4.js";
|
|
4
|
+
import { o as DeploymentsSliceType } from "../index-B8td4-rY.js";
|
|
5
|
+
import { c as DeviceSliceType, i as DeviceGroup, o as DeviceListState, r as DeviceFilter, t as Device } from "../index-Bvyf8OO6.js";
|
|
6
|
+
import { t as AppSliceType } from "../index-Bs0c1-WY.js";
|
|
7
|
+
import { t as MonitorSliceType } from "../index-BAGyeC-q.js";
|
|
8
|
+
import { t as OrganizationSliceType } from "../index-ChKTa1aL.js";
|
|
9
|
+
import { r as RootState } from "../store-CPptM5Ts.js";
|
|
11
10
|
//#region src/devicesSlice/selectors.d.ts
|
|
12
11
|
declare const getAcceptedDevices: (state: RootState) => {
|
|
13
12
|
counts: import("@northern.tech/types/types.gen").DeviceTierLimits & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ft as UNGROUPED_GROUP, u as DEVICE_STATES } from "../constants-CerzXHnQ.js";
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
3
|
import { duplicateFilter } from "@northern.tech/utils/helpers";
|
|
4
4
|
//#region src/devicesSlice/selectors.ts
|
|
@@ -14,6 +14,7 @@ exports.getAllGroupDevices = require_thunks.getAllGroupDevices;
|
|
|
14
14
|
exports.getDeviceAttributes = require_thunks.getDeviceAttributes;
|
|
15
15
|
exports.getDeviceAuth = require_thunks.getDeviceAuth;
|
|
16
16
|
exports.getDeviceById = require_thunks.getDeviceById;
|
|
17
|
+
exports.getDeviceComponents = require_thunks.getDeviceComponents;
|
|
17
18
|
exports.getDeviceConfig = require_thunks.getDeviceConfig;
|
|
18
19
|
exports.getDeviceConnect = require_thunks.getDeviceConnect;
|
|
19
20
|
exports.getDeviceFileDownloadLink = require_thunks.getDeviceFileDownloadLink;
|
|
@@ -24,12 +25,10 @@ exports.getDevicesByStatus = require_thunks.getDevicesByStatus;
|
|
|
24
25
|
exports.getDevicesWithAuth = require_thunks.getDevicesWithAuth;
|
|
25
26
|
exports.getDynamicGroup = require_thunks.getDynamicGroup;
|
|
26
27
|
exports.getDynamicGroups = require_thunks.getDynamicGroups;
|
|
27
|
-
exports.getGatewayDevices = require_thunks.getGatewayDevices;
|
|
28
28
|
exports.getGroupDevices = require_thunks.getGroupDevices;
|
|
29
29
|
exports.getGroups = require_thunks.getGroups;
|
|
30
30
|
exports.getReportDataWithoutBackendSupport = require_thunks.getReportDataWithoutBackendSupport;
|
|
31
31
|
exports.getSessionDetails = require_thunks.getSessionDetails;
|
|
32
|
-
exports.getSystemDevices = require_thunks.getSystemDevices;
|
|
33
32
|
exports.getTestDeviceCount = require_thunks.getTestDeviceCount;
|
|
34
33
|
exports.preauthDevice = require_thunks.preauthDevice;
|
|
35
34
|
exports.removeDevicesFromGroup = require_thunks.removeDevicesFromGroup;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as SnackbarContent, n as SearchState } from "../index-
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
1
|
+
import { ht as DeviceAuthState, m as DeviceIssueOptionKey } from "../constants-Rl3FJzFf.cjs";
|
|
2
|
+
import { i as DeviceGroup, o as DeviceListState, r as DeviceFilter, s as DeviceSelectedAttribute, t as Device$1 } from "../index-CiQ95u1W.cjs";
|
|
3
|
+
import { i as SnackbarContent, n as SearchState } from "../index-DeOpb2oK.cjs";
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-CUUm1GTI.cjs";
|
|
5
5
|
import { ConnectionState, Device, DeviceConfiguration, DeviceInventoryResponse, DeviceTierLimits, DeviceWithImage, Filter, Integration, ManagementApiConfiguration, NewConfigurationDeployment, PreAuthSet, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
6
|
-
|
|
7
6
|
//#region src/devicesSlice/thunks.d.ts
|
|
8
7
|
declare const getGroups: import("@reduxjs/toolkit").AsyncThunk<{
|
|
9
8
|
payload: {
|
|
@@ -847,23 +846,12 @@ declare const setDeviceTwin: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
847
846
|
fulfilledMeta?: unknown;
|
|
848
847
|
rejectedMeta?: unknown;
|
|
849
848
|
}>;
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
}
|
|
856
|
-
declare const getSystemDevices: import("@reduxjs/toolkit").AsyncThunk<unknown, GetSystemDevicesPayload, {
|
|
857
|
-
dispatch: AppDispatch;
|
|
858
|
-
state: RootState;
|
|
859
|
-
extra?: unknown;
|
|
860
|
-
rejectValue?: unknown;
|
|
861
|
-
serializedErrorType?: unknown;
|
|
862
|
-
pendingMeta?: unknown;
|
|
863
|
-
fulfilledMeta?: unknown;
|
|
864
|
-
rejectedMeta?: unknown;
|
|
865
|
-
}>;
|
|
866
|
-
declare const getGatewayDevices: import("@reduxjs/toolkit").AsyncThunk<unknown[], string, {
|
|
849
|
+
declare const getDeviceComponents: import("@reduxjs/toolkit").AsyncThunk<{
|
|
850
|
+
payload: {
|
|
851
|
+
id: string;
|
|
852
|
+
} & Partial<Device$1>;
|
|
853
|
+
type: "devices/receivedDevice";
|
|
854
|
+
}, string, {
|
|
867
855
|
dispatch: AppDispatch;
|
|
868
856
|
state: RootState;
|
|
869
857
|
extra?: unknown;
|
|
@@ -874,5 +862,5 @@ declare const getGatewayDevices: import("@reduxjs/toolkit").AsyncThunk<unknown[]
|
|
|
874
862
|
rejectedMeta?: unknown;
|
|
875
863
|
}>;
|
|
876
864
|
//#endregion
|
|
877
|
-
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,
|
|
865
|
+
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceComponents, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getTestDeviceCount, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setTestDeviceStatus, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
|
|
878
866
|
//# sourceMappingURL=thunks.d.cts.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as SnackbarContent, n as SearchState } from "../index-
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
1
|
+
import { ht as DeviceAuthState, m as DeviceIssueOptionKey } from "../constants-B_H4squx.js";
|
|
2
|
+
import { i as DeviceGroup, o as DeviceListState, r as DeviceFilter, s as DeviceSelectedAttribute, t as Device$1 } from "../index-Bvyf8OO6.js";
|
|
3
|
+
import { i as SnackbarContent, n as SearchState } from "../index-Bs0c1-WY.js";
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-CPptM5Ts.js";
|
|
5
5
|
import { ConnectionState, Device, DeviceConfiguration, DeviceInventoryResponse, DeviceTierLimits, DeviceWithImage, Filter, Integration, ManagementApiConfiguration, NewConfigurationDeployment, PreAuthSet, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
6
|
-
|
|
7
6
|
//#region src/devicesSlice/thunks.d.ts
|
|
8
7
|
declare const getGroups: import("@reduxjs/toolkit").AsyncThunk<{
|
|
9
8
|
payload: {
|
|
@@ -847,23 +846,12 @@ declare const setDeviceTwin: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
847
846
|
fulfilledMeta?: unknown;
|
|
848
847
|
rejectedMeta?: unknown;
|
|
849
848
|
}>;
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
}
|
|
856
|
-
declare const getSystemDevices: import("@reduxjs/toolkit").AsyncThunk<unknown, GetSystemDevicesPayload, {
|
|
857
|
-
dispatch: AppDispatch;
|
|
858
|
-
state: RootState;
|
|
859
|
-
extra?: unknown;
|
|
860
|
-
rejectValue?: unknown;
|
|
861
|
-
serializedErrorType?: unknown;
|
|
862
|
-
pendingMeta?: unknown;
|
|
863
|
-
fulfilledMeta?: unknown;
|
|
864
|
-
rejectedMeta?: unknown;
|
|
865
|
-
}>;
|
|
866
|
-
declare const getGatewayDevices: import("@reduxjs/toolkit").AsyncThunk<unknown[], string, {
|
|
849
|
+
declare const getDeviceComponents: import("@reduxjs/toolkit").AsyncThunk<{
|
|
850
|
+
payload: {
|
|
851
|
+
id: string;
|
|
852
|
+
} & Partial<Device$1>;
|
|
853
|
+
type: "devices/receivedDevice";
|
|
854
|
+
}, string, {
|
|
867
855
|
dispatch: AppDispatch;
|
|
868
856
|
state: RootState;
|
|
869
857
|
extra?: unknown;
|
|
@@ -874,5 +862,5 @@ declare const getGatewayDevices: import("@reduxjs/toolkit").AsyncThunk<unknown[]
|
|
|
874
862
|
rejectedMeta?: unknown;
|
|
875
863
|
}>;
|
|
876
864
|
//#endregion
|
|
877
|
-
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,
|
|
865
|
+
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceComponents, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getTestDeviceCount, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setTestDeviceStatus, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
|
|
878
866
|
//# sourceMappingURL=thunks.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups,
|
|
2
|
-
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,
|
|
1
|
+
import { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceComponents, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getTestDeviceCount, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setTestDeviceStatus, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData } from "../thunks.js";
|
|
2
|
+
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceComponents, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getTestDeviceCount, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setTestDeviceStatus, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
2
|
import { DeploymentV1, DeploymentV2, DeviceWithImage, Filter, FilterPredicate, Limit, Scope } from "@northern.tech/types/MenderTypes";
|
|
3
|
-
|
|
4
3
|
//#region src/deploymentsSlice/index.d.ts
|
|
5
4
|
declare const sliceName = "deployments";
|
|
6
5
|
type Filter$1 = {
|
|
@@ -153,4 +152,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
153
152
|
declare const _default: import("redux").Reducer<DeploymentsSliceType>;
|
|
154
153
|
//#endregion
|
|
155
154
|
export { DeploymentStatus as a, SelectionListState as c, actions as d, deploymentsSlice as f, DeploymentConfig as i, SelectionState as l, sliceName as m, DeploymentByStatus as n, DeploymentsSliceType as o, initialState as p, DeploymentByStatusKey as r, DeviceDeployment as s, Deployment as t, _default as u };
|
|
156
|
-
//# sourceMappingURL=index-
|
|
155
|
+
//# sourceMappingURL=index-B8td4-rY.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as DeviceIssueOptionKey, ut as AlertChannelKey } from "./constants-B_H4squx.js";
|
|
2
2
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
3
3
|
import { Alert } from "@northern.tech/types/MenderTypes";
|
|
4
|
-
|
|
5
4
|
//#region src/monitorSlice/index.d.ts
|
|
6
5
|
declare const sliceName = "monitor";
|
|
7
6
|
type IssueCounts = Record<DeviceIssueOptionKey, {
|
|
@@ -89,4 +88,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
89
88
|
declare const _default: import("redux").Reducer<MonitorSliceType>;
|
|
90
89
|
//#endregion
|
|
91
90
|
export { monitorSlice as a, initialState as i, _default as n, sliceName as o, actions as r, MonitorSliceType as t };
|
|
92
|
-
//# sourceMappingURL=index-
|
|
91
|
+
//# sourceMappingURL=index-BAGyeC-q.d.ts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as ReadState } from "./constants-
|
|
1
|
+
import { Ct as FilterOperator, S as Role, v as PermissionSet } from "./constants-Rl3FJzFf.cjs";
|
|
2
|
+
import { i as ReadState } from "./constants-B3Jdkn2b.cjs";
|
|
3
3
|
import { DeploymentPhase, TenantInfo, TenantsIdName, User } from "@northern.tech/types/MenderTypes";
|
|
4
4
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
5
|
-
|
|
6
5
|
//#region src/usersSlice/index.d.ts
|
|
7
6
|
declare const sliceName = "users";
|
|
8
7
|
type User$1 = User & TenantInfo & {
|
|
@@ -146,4 +145,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
146
145
|
declare const _default: import("redux").Reducer<UserSliceType>;
|
|
147
146
|
//#endregion
|
|
148
147
|
export { UserSettings as a, actions as c, usersSlice as d, UserSession as i, initialState as l, GlobalSettings as n, UserSliceType as o, User$1 as r, _default as s, CustomColumn as t, sliceName as u };
|
|
149
|
-
//# sourceMappingURL=index-
|
|
148
|
+
//# sourceMappingURL=index-BgF6rhXn.d.cts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { T as SortOptions } from "./constants-
|
|
1
|
+
import { T as SortOptions } from "./constants-B_H4squx.js";
|
|
2
2
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
3
3
|
import { SnackbarProps } from "@mui/material";
|
|
4
|
-
|
|
5
4
|
//#region src/appSlice/index.d.ts
|
|
6
5
|
declare const sliceName = "app";
|
|
7
6
|
interface SnackbarContent extends Pick<SnackbarProps, 'action' | 'autoHideDuration' | 'message' | 'open'> {
|
|
@@ -59,9 +58,7 @@ type AppSliceType = {
|
|
|
59
58
|
declare const initialState: AppSliceType;
|
|
60
59
|
declare const appSlice: import("@reduxjs/toolkit").Slice<AppSliceType, {
|
|
61
60
|
setFeatures: (state: import("immer").WritableDraft<AppSliceType>, action: PayloadAction<Record<string, boolean>>) => void;
|
|
62
|
-
setSnackbar: (state: import("immer").WritableDraft<AppSliceType>, {
|
|
63
|
-
payload
|
|
64
|
-
}: PayloadAction<SnackbarContent | string>) => void;
|
|
61
|
+
setSnackbar: (state: import("immer").WritableDraft<AppSliceType>, { payload }: PayloadAction<SnackbarContent | string>) => void;
|
|
65
62
|
setFirstLoginAfterSignup: (state: import("immer").WritableDraft<AppSliceType>, action: PayloadAction<boolean>) => void;
|
|
66
63
|
setAnnouncement: (state: import("immer").WritableDraft<AppSliceType>, action: PayloadAction<string>) => void;
|
|
67
64
|
setSearchState: (state: import("immer").WritableDraft<AppSliceType>, action: {
|
|
@@ -87,9 +84,7 @@ declare const appSlice: import("@reduxjs/toolkit").Slice<AppSliceType, {
|
|
|
87
84
|
}, "app", "app", import("@reduxjs/toolkit").SliceSelectors<AppSliceType>>;
|
|
88
85
|
declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
89
86
|
setFeatures: (state: import("immer").WritableDraft<AppSliceType>, action: PayloadAction<Record<string, boolean>>) => void;
|
|
90
|
-
setSnackbar: (state: import("immer").WritableDraft<AppSliceType>, {
|
|
91
|
-
payload
|
|
92
|
-
}: PayloadAction<SnackbarContent | string>) => void;
|
|
87
|
+
setSnackbar: (state: import("immer").WritableDraft<AppSliceType>, { payload }: PayloadAction<SnackbarContent | string>) => void;
|
|
93
88
|
setFirstLoginAfterSignup: (state: import("immer").WritableDraft<AppSliceType>, action: PayloadAction<boolean>) => void;
|
|
94
89
|
setAnnouncement: (state: import("immer").WritableDraft<AppSliceType>, action: PayloadAction<string>) => void;
|
|
95
90
|
setSearchState: (state: import("immer").WritableDraft<AppSliceType>, action: {
|
|
@@ -116,4 +111,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
116
111
|
declare const _default: import("redux").Reducer<AppSliceType>;
|
|
117
112
|
//#endregion
|
|
118
113
|
export { Upload as a, appSlice as c, SnackbarContent as i, initialState as l, SearchState as n, _default as o, SentryConfig as r, actions as s, AppSliceType as t, sliceName as u };
|
|
119
|
-
//# sourceMappingURL=index-
|
|
114
|
+
//# sourceMappingURL=index-Bs0c1-WY.d.ts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as DeviceDeployment } from "./index-
|
|
1
|
+
import { Ct as FilterOperator, T as SortOptions, ht as DeviceAuthState, m as DeviceIssueOptionKey, n as ALL_DEVICE_STATES } from "./constants-B_H4squx.js";
|
|
2
|
+
import { s as DeviceDeployment } from "./index-B8td4-rY.js";
|
|
3
3
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
4
|
-
import { ConnectionState, Device, DeviceConfiguration, DeviceState, DeviceTierLimits, MonitorConfiguration, Scope, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
5
|
-
|
|
4
|
+
import { AttributeResponse, ConnectionState, Device, DeviceConfiguration, DeviceState, DeviceTierLimits, MonitorConfiguration, Scope, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
6
5
|
//#region src/devicesSlice/index.d.ts
|
|
7
6
|
declare const sliceName = "devices";
|
|
8
7
|
type DeviceSelectedAttribute = {
|
|
@@ -52,16 +51,17 @@ type UiDeviceAttributes = {
|
|
|
52
51
|
system: Record<string, string>;
|
|
53
52
|
tags?: Record<string, string>;
|
|
54
53
|
};
|
|
54
|
+
type DeviceComponents = Record<string, AttributeResponse[]>;
|
|
55
55
|
type Device$1 = Device & UiDeviceAttributes & {
|
|
56
56
|
check_in_time_exact?: string;
|
|
57
57
|
check_in_time_rounded?: string;
|
|
58
|
+
components?: DeviceComponents;
|
|
58
59
|
config?: DeviceConfiguration;
|
|
59
60
|
connect_status?: ConnectionState['status'];
|
|
60
61
|
connect_updated_ts?: string;
|
|
61
62
|
deploymentsCount?: number;
|
|
62
63
|
deviceDeployments?: DeviceDeployment;
|
|
63
64
|
etag?: string;
|
|
64
|
-
gatewayIds?: string[];
|
|
65
65
|
group?: string;
|
|
66
66
|
id: string;
|
|
67
67
|
isNew?: boolean;
|
|
@@ -127,9 +127,7 @@ declare const devicesSlice: import("@reduxjs/toolkit").Slice<DeviceSliceType, {
|
|
|
127
127
|
group: DeviceGroup;
|
|
128
128
|
groupName: string;
|
|
129
129
|
}>) => void;
|
|
130
|
-
selectGroup: (state: import("immer").WritableDraft<DeviceSliceType>, {
|
|
131
|
-
payload: group
|
|
132
|
-
}: PayloadAction<string | undefined>) => void;
|
|
130
|
+
selectGroup: (state: import("immer").WritableDraft<DeviceSliceType>, { payload: group }: PayloadAction<string | undefined>) => void;
|
|
133
131
|
removeGroup: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<string>) => void;
|
|
134
132
|
setDeviceListState: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<Partial<DeviceListState>>) => void;
|
|
135
133
|
setFilterAttributes: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<FilteringAttributes>) => void;
|
|
@@ -170,9 +168,7 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
170
168
|
group: DeviceGroup;
|
|
171
169
|
groupName: string;
|
|
172
170
|
}>) => void;
|
|
173
|
-
selectGroup: (state: import("immer").WritableDraft<DeviceSliceType>, {
|
|
174
|
-
payload: group
|
|
175
|
-
}: PayloadAction<string | undefined>) => void;
|
|
171
|
+
selectGroup: (state: import("immer").WritableDraft<DeviceSliceType>, { payload: group }: PayloadAction<string | undefined>) => void;
|
|
176
172
|
removeGroup: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<string>) => void;
|
|
177
173
|
setDeviceListState: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<Partial<DeviceListState>>) => void;
|
|
178
174
|
setFilterAttributes: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<FilteringAttributes>) => void;
|
|
@@ -201,5 +197,5 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
201
197
|
}, "devices">;
|
|
202
198
|
declare const _default: import("redux").Reducer<DeviceSliceType>;
|
|
203
199
|
//#endregion
|
|
204
|
-
export {
|
|
205
|
-
//# sourceMappingURL=index-
|
|
200
|
+
export { DeviceGroups as a, DeviceSliceType as c, actions as d, devicesSlice as f, DeviceGroup as i, InventoryAttributes as l, sliceName as m, DeviceComponents as n, DeviceListState as o, initialState as p, DeviceFilter as r, DeviceSelectedAttribute as s, Device$1 as t, _default as u };
|
|
201
|
+
//# sourceMappingURL=index-Bvyf8OO6.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { T as SortOptions } from "./constants-
|
|
1
|
+
import { T as SortOptions } from "./constants-B_H4squx.js";
|
|
2
2
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
3
3
|
import { ArtifactV1, ArtifactV2, DeltaJobDetailsItem, DeltaJobsListItem, Manifest, ReleaseV1, ReleaseV2, Software, Tags, Update } from "@northern.tech/types/MenderTypes";
|
|
4
|
-
|
|
5
4
|
//#region src/releasesSlice/index.d.ts
|
|
6
5
|
type Update$1 = Omit<Update, 'meta_data'>;
|
|
7
6
|
type Artifact = Omit<ArtifactV1, 'updates'> & Omit<ArtifactV2, 'updates'> & {
|
|
@@ -162,4 +161,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
162
161
|
declare const _default: import("redux").Reducer<ReleaseSliceType>;
|
|
163
162
|
//#endregion
|
|
164
163
|
export { ReleasesList as a, _default as c, releaseSlice as d, sliceName as f, ReleaseSliceType as i, actions as l, ManifestsList as n, SoftwareKind as o, Release as r, SoftwareList as s, Artifact as t, initialState as u };
|
|
165
|
-
//# sourceMappingURL=index-
|
|
164
|
+
//# sourceMappingURL=index-C8uiyxnb.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, t as AuditLog$1 } from "./types-
|
|
1
|
+
import { d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, t as AuditLog$1 } from "./types-B80ckxiy.cjs";
|
|
2
2
|
import { AuditLog, BillingProfile, Event, Integration } from "@northern.tech/types/MenderTypes";
|
|
3
3
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
4
|
-
|
|
5
4
|
//#region src/organizationSlice/index.d.ts
|
|
6
5
|
declare const sliceName = "organization";
|
|
7
6
|
type OrganizationSliceType = {
|
|
@@ -65,4 +64,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
65
64
|
declare const _default: import("redux").Reducer<OrganizationSliceType>;
|
|
66
65
|
//#endregion
|
|
67
66
|
export { organizationSlice as a, initialState as i, _default as n, sliceName as o, actions as r, OrganizationSliceType as t };
|
|
68
|
-
//# sourceMappingURL=index-
|
|
67
|
+
//# sourceMappingURL=index-C_LGDJN2.d.cts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, t as AuditLog$1 } from "./types-
|
|
1
|
+
import { d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, t as AuditLog$1 } from "./types-B3qGQoMx.js";
|
|
2
2
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
3
3
|
import { AuditLog, BillingProfile, Event, Integration } from "@northern.tech/types/MenderTypes";
|
|
4
|
-
|
|
5
4
|
//#region src/organizationSlice/index.d.ts
|
|
6
5
|
declare const sliceName = "organization";
|
|
7
6
|
type OrganizationSliceType = {
|
|
@@ -65,4 +64,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
65
64
|
declare const _default: import("redux").Reducer<OrganizationSliceType>;
|
|
66
65
|
//#endregion
|
|
67
66
|
export { organizationSlice as a, initialState as i, _default as n, sliceName as o, actions as r, OrganizationSliceType as t };
|
|
68
|
-
//# sourceMappingURL=index-
|
|
67
|
+
//# sourceMappingURL=index-ChKTa1aL.d.ts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as DeviceDeployment } from "./index-
|
|
3
|
-
import { ConnectionState, Device, DeviceConfiguration, DeviceState, DeviceTierLimits, MonitorConfiguration, Scope, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
1
|
+
import { Ct as FilterOperator, T as SortOptions, ht as DeviceAuthState, m as DeviceIssueOptionKey, n as ALL_DEVICE_STATES } from "./constants-Rl3FJzFf.cjs";
|
|
2
|
+
import { s as DeviceDeployment } from "./index-mvxjivTJ.cjs";
|
|
3
|
+
import { AttributeResponse, ConnectionState, Device, DeviceConfiguration, DeviceState, DeviceTierLimits, MonitorConfiguration, Scope, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
4
4
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
5
|
-
|
|
6
5
|
//#region src/devicesSlice/index.d.ts
|
|
7
6
|
declare const sliceName = "devices";
|
|
8
7
|
type DeviceSelectedAttribute = {
|
|
@@ -52,16 +51,17 @@ type UiDeviceAttributes = {
|
|
|
52
51
|
system: Record<string, string>;
|
|
53
52
|
tags?: Record<string, string>;
|
|
54
53
|
};
|
|
54
|
+
type DeviceComponents = Record<string, AttributeResponse[]>;
|
|
55
55
|
type Device$1 = Device & UiDeviceAttributes & {
|
|
56
56
|
check_in_time_exact?: string;
|
|
57
57
|
check_in_time_rounded?: string;
|
|
58
|
+
components?: DeviceComponents;
|
|
58
59
|
config?: DeviceConfiguration;
|
|
59
60
|
connect_status?: ConnectionState['status'];
|
|
60
61
|
connect_updated_ts?: string;
|
|
61
62
|
deploymentsCount?: number;
|
|
62
63
|
deviceDeployments?: DeviceDeployment;
|
|
63
64
|
etag?: string;
|
|
64
|
-
gatewayIds?: string[];
|
|
65
65
|
group?: string;
|
|
66
66
|
id: string;
|
|
67
67
|
isNew?: boolean;
|
|
@@ -127,9 +127,7 @@ declare const devicesSlice: import("@reduxjs/toolkit").Slice<DeviceSliceType, {
|
|
|
127
127
|
group: DeviceGroup;
|
|
128
128
|
groupName: string;
|
|
129
129
|
}>) => void;
|
|
130
|
-
selectGroup: (state: import("immer").WritableDraft<DeviceSliceType>, {
|
|
131
|
-
payload: group
|
|
132
|
-
}: PayloadAction<string | undefined>) => void;
|
|
130
|
+
selectGroup: (state: import("immer").WritableDraft<DeviceSliceType>, { payload: group }: PayloadAction<string | undefined>) => void;
|
|
133
131
|
removeGroup: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<string>) => void;
|
|
134
132
|
setDeviceListState: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<Partial<DeviceListState>>) => void;
|
|
135
133
|
setFilterAttributes: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<FilteringAttributes>) => void;
|
|
@@ -170,9 +168,7 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
170
168
|
group: DeviceGroup;
|
|
171
169
|
groupName: string;
|
|
172
170
|
}>) => void;
|
|
173
|
-
selectGroup: (state: import("immer").WritableDraft<DeviceSliceType>, {
|
|
174
|
-
payload: group
|
|
175
|
-
}: PayloadAction<string | undefined>) => void;
|
|
171
|
+
selectGroup: (state: import("immer").WritableDraft<DeviceSliceType>, { payload: group }: PayloadAction<string | undefined>) => void;
|
|
176
172
|
removeGroup: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<string>) => void;
|
|
177
173
|
setDeviceListState: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<Partial<DeviceListState>>) => void;
|
|
178
174
|
setFilterAttributes: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<FilteringAttributes>) => void;
|
|
@@ -201,5 +197,5 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
201
197
|
}, "devices">;
|
|
202
198
|
declare const _default: import("redux").Reducer<DeviceSliceType>;
|
|
203
199
|
//#endregion
|
|
204
|
-
export {
|
|
205
|
-
//# sourceMappingURL=index-
|
|
200
|
+
export { DeviceGroups as a, DeviceSliceType as c, actions as d, devicesSlice as f, DeviceGroup as i, InventoryAttributes as l, sliceName as m, DeviceComponents as n, DeviceListState as o, initialState as p, DeviceFilter as r, DeviceSelectedAttribute as s, Device$1 as t, _default as u };
|
|
201
|
+
//# sourceMappingURL=index-CiQ95u1W.d.cts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
-
|
|
3
2
|
//#region src/onboardingSlice/index.d.ts
|
|
4
3
|
declare const sliceName = "onboarding";
|
|
5
4
|
type OnboardingApproach = 'virtual' | 'physical' | 'mcu';
|
|
@@ -58,4 +57,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
58
57
|
declare const _default: import("redux").Reducer<OnboardingSliceType>;
|
|
59
58
|
//#endregion
|
|
60
59
|
export { initialState as a, actions as i, OnboardingSliceType as n, onboardingSlice as o, _default as r, sliceName as s, OnboardingApproach as t };
|
|
61
|
-
//# sourceMappingURL=index-
|
|
60
|
+
//# sourceMappingURL=index-CoObjWL4.d.cts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
-
|
|
3
2
|
//#region src/onboardingSlice/index.d.ts
|
|
4
3
|
declare const sliceName = "onboarding";
|
|
5
4
|
type OnboardingApproach = 'virtual' | 'physical' | 'mcu';
|
|
@@ -58,4 +57,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
58
57
|
declare const _default: import("redux").Reducer<OnboardingSliceType>;
|
|
59
58
|
//#endregion
|
|
60
59
|
export { initialState as a, actions as i, OnboardingSliceType as n, onboardingSlice as o, _default as r, sliceName as s, OnboardingApproach as t };
|
|
61
|
-
//# sourceMappingURL=index-
|
|
60
|
+
//# sourceMappingURL=index-CoObjWL4.d.ts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as ReadState } from "./constants-
|
|
1
|
+
import { Ct as FilterOperator, S as Role, v as PermissionSet } from "./constants-B_H4squx.js";
|
|
2
|
+
import { i as ReadState } from "./constants-B3Jdkn2b.js";
|
|
3
3
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
4
4
|
import { DeploymentPhase, TenantInfo, TenantsIdName, User } from "@northern.tech/types/MenderTypes";
|
|
5
|
-
|
|
6
5
|
//#region src/usersSlice/index.d.ts
|
|
7
6
|
declare const sliceName = "users";
|
|
8
7
|
type User$1 = User & TenantInfo & {
|
|
@@ -146,4 +145,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
146
145
|
declare const _default: import("redux").Reducer<UserSliceType>;
|
|
147
146
|
//#endregion
|
|
148
147
|
export { UserSettings as a, actions as c, usersSlice as d, UserSession as i, initialState as l, GlobalSettings as n, UserSliceType as o, User$1 as r, _default as s, CustomColumn as t, sliceName as u };
|
|
149
|
-
//# sourceMappingURL=index-
|
|
148
|
+
//# sourceMappingURL=index-CpfhQHfg.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as DeviceIssueOptionKey, ut as AlertChannelKey } from "./constants-Rl3FJzFf.cjs";
|
|
2
2
|
import { Alert } from "@northern.tech/types/MenderTypes";
|
|
3
3
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
4
|
-
|
|
5
4
|
//#region src/monitorSlice/index.d.ts
|
|
6
5
|
declare const sliceName = "monitor";
|
|
7
6
|
type IssueCounts = Record<DeviceIssueOptionKey, {
|
|
@@ -89,4 +88,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
89
88
|
declare const _default: import("redux").Reducer<MonitorSliceType>;
|
|
90
89
|
//#endregion
|
|
91
90
|
export { monitorSlice as a, initialState as i, _default as n, sliceName as o, actions as r, MonitorSliceType as t };
|
|
92
|
-
//# sourceMappingURL=index-
|
|
91
|
+
//# sourceMappingURL=index-Ctj2r57a.d.cts.map
|