@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":"index.cjs","names":["DEVICE_LIST_DEFAULTS","DEVICE_ISSUE_OPTIONS","alertChannels"],"sources":["../../src/monitorSlice/index.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 type { Alert } from '@northern.tech/types/MenderTypes';\nimport { createSlice } from '@reduxjs/toolkit';\nimport type { PayloadAction } from '@reduxjs/toolkit';\n\nimport type { DeviceIssueOptionKey } from '../constants';\nimport { DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, alertChannels } from '../constants';\nimport type { AlertChannelKey } from './constants';\n\nexport const sliceName = 'monitor';\ntype IssueCounts = Record<DeviceIssueOptionKey, { filtered: number; total: number }>;\ntype ChannelSettings = Record<AlertChannelKey, { enabled: boolean }>;\ntype SanitizedAlert = Alert & { fullName?: string };\n\nexport type MonitorSliceType = {\n alerts: {\n alertList: {\n page: number;\n perPage: number;\n total: number;\n };\n byDeviceId: { alerts?: Record<string, SanitizedAlert>; latest?: Record<string, SanitizedAlert> };\n };\n issueCounts: { byType: IssueCounts };\n settings: {\n global: {\n channels: ChannelSettings;\n };\n };\n};\nexport const initialState: MonitorSliceType = {\n alerts: {\n alertList: { ...DEVICE_LIST_DEFAULTS, total: 0 },\n byDeviceId: {}\n },\n issueCounts: {\n byType: Object.keys(DEVICE_ISSUE_OPTIONS).reduce<IssueCounts>((accu, key) => ({ ...accu, [key]: { filtered: 0, total: 0 } }), {} as IssueCounts)\n },\n settings: {\n global: {\n channels: {\n ...Object.keys(alertChannels).reduce((accu, item) => ({ ...accu, [item]: { enabled: true } }), {} as ChannelSettings)\n }\n }\n }\n};\n\nexport const monitorSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n changeAlertChannel: (state, action: PayloadAction<{ channel: AlertChannelKey; enabled: boolean }>) => {\n const { channel, enabled } = action.payload;\n state.settings.global.channels[channel] = { enabled };\n },\n receiveDeviceAlerts: (state, action: PayloadAction<{ alerts: SanitizedAlert[]; deviceId: string }>) => {\n const { deviceId, alerts } = action.payload;\n state.alerts.byDeviceId[deviceId] = { alerts };\n },\n receiveLatestDeviceAlerts: (state, action: PayloadAction<{ alerts: SanitizedAlert[]; deviceId: string }>) => {\n const { deviceId, alerts } = action.payload;\n state.alerts.byDeviceId[deviceId] = { ...state.alerts.byDeviceId[deviceId], latest: alerts };\n },\n receiveDeviceIssueCounts: (state, action: PayloadAction<{ counts: { filtered: number; total: number }; issueType: DeviceIssueOptionKey }>) => {\n const { issueType, counts } = action.payload;\n state.issueCounts.byType[issueType] = counts;\n },\n setAlertListState: (state, action) => {\n state.alerts.alertList = { ...state.alerts.alertList, ...action.payload };\n }\n }\n});\n\nexport const actions = monitorSlice.actions;\nexport default monitorSlice.reducer;\n"],"mappings":";;;;;;;AAqBA,MAAa,YAAY;AAqBzB,MAAa,eAAiC;CAC5C,QAAQ;EACN,WAAW;GAAE,GAAGA,+BAAAA;GAAsB,OAAO;EAAE;EAC/C,YAAY,CAAC;CACf;CACA,aAAa,EACX,QAAQ,OAAO,KAAKC,+BAAAA,oBAAoB,CAAC,CAAC,QAAqB,MAAM,SAAS;EAAE,GAAG;GAAO,MAAM;GAAE,UAAU;GAAG,OAAO;EAAE;CAAE,IAAI,CAAC,CAAgB,EACjJ;CACA,UAAU,EACR,QAAQ,EACN,UAAU,EACR,GAAG,OAAO,KAAKC,+BAAAA,aAAa,CAAC,CAAC,QAAQ,MAAM,UAAU;EAAE,GAAG;GAAO,OAAO,EAAE,SAAS,KAAK;CAAE,IAAI,CAAC,CAAoB,EACtH,EACF,EACF;AACF;AAEA,MAAa,gBAAA,
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["DEVICE_LIST_DEFAULTS","DEVICE_ISSUE_OPTIONS","alertChannels","createSlice"],"sources":["../../src/monitorSlice/index.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 type { Alert } from '@northern.tech/types/MenderTypes';\nimport { createSlice } from '@reduxjs/toolkit';\nimport type { PayloadAction } from '@reduxjs/toolkit';\n\nimport type { DeviceIssueOptionKey } from '../constants';\nimport { DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, alertChannels } from '../constants';\nimport type { AlertChannelKey } from './constants';\n\nexport const sliceName = 'monitor';\ntype IssueCounts = Record<DeviceIssueOptionKey, { filtered: number; total: number }>;\ntype ChannelSettings = Record<AlertChannelKey, { enabled: boolean }>;\ntype SanitizedAlert = Alert & { fullName?: string };\n\nexport type MonitorSliceType = {\n alerts: {\n alertList: {\n page: number;\n perPage: number;\n total: number;\n };\n byDeviceId: { alerts?: Record<string, SanitizedAlert>; latest?: Record<string, SanitizedAlert> };\n };\n issueCounts: { byType: IssueCounts };\n settings: {\n global: {\n channels: ChannelSettings;\n };\n };\n};\nexport const initialState: MonitorSliceType = {\n alerts: {\n alertList: { ...DEVICE_LIST_DEFAULTS, total: 0 },\n byDeviceId: {}\n },\n issueCounts: {\n byType: Object.keys(DEVICE_ISSUE_OPTIONS).reduce<IssueCounts>((accu, key) => ({ ...accu, [key]: { filtered: 0, total: 0 } }), {} as IssueCounts)\n },\n settings: {\n global: {\n channels: {\n ...Object.keys(alertChannels).reduce((accu, item) => ({ ...accu, [item]: { enabled: true } }), {} as ChannelSettings)\n }\n }\n }\n};\n\nexport const monitorSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n changeAlertChannel: (state, action: PayloadAction<{ channel: AlertChannelKey; enabled: boolean }>) => {\n const { channel, enabled } = action.payload;\n state.settings.global.channels[channel] = { enabled };\n },\n receiveDeviceAlerts: (state, action: PayloadAction<{ alerts: SanitizedAlert[]; deviceId: string }>) => {\n const { deviceId, alerts } = action.payload;\n state.alerts.byDeviceId[deviceId] = { alerts };\n },\n receiveLatestDeviceAlerts: (state, action: PayloadAction<{ alerts: SanitizedAlert[]; deviceId: string }>) => {\n const { deviceId, alerts } = action.payload;\n state.alerts.byDeviceId[deviceId] = { ...state.alerts.byDeviceId[deviceId], latest: alerts };\n },\n receiveDeviceIssueCounts: (state, action: PayloadAction<{ counts: { filtered: number; total: number }; issueType: DeviceIssueOptionKey }>) => {\n const { issueType, counts } = action.payload;\n state.issueCounts.byType[issueType] = counts;\n },\n setAlertListState: (state, action) => {\n state.alerts.alertList = { ...state.alerts.alertList, ...action.payload };\n }\n }\n});\n\nexport const actions = monitorSlice.actions;\nexport default monitorSlice.reducer;\n"],"mappings":";;;;;;;AAqBA,MAAa,YAAY;AAqBzB,MAAa,eAAiC;CAC5C,QAAQ;EACN,WAAW;GAAE,GAAGA,+BAAAA;GAAsB,OAAO;EAAE;EAC/C,YAAY,CAAC;CACf;CACA,aAAa,EACX,QAAQ,OAAO,KAAKC,+BAAAA,oBAAoB,CAAC,CAAC,QAAqB,MAAM,SAAS;EAAE,GAAG;GAAO,MAAM;GAAE,UAAU;GAAG,OAAO;EAAE;CAAE,IAAI,CAAC,CAAgB,EACjJ;CACA,UAAU,EACR,QAAQ,EACN,UAAU,EACR,GAAG,OAAO,KAAKC,+BAAAA,aAAa,CAAC,CAAC,QAAQ,MAAM,UAAU;EAAE,GAAG;GAAO,OAAO,EAAE,SAAS,KAAK;CAAE,IAAI,CAAC,CAAoB,EACtH,EACF,EACF;AACF;AAEA,MAAa,gBAAA,GAAeC,iBAAAA,YAAAA,CAAY;CACtC,MAAM;CACN;CACA,UAAU;EACR,qBAAqB,OAAO,WAA0E;GACpG,MAAM,EAAE,SAAS,YAAY,OAAO;GACpC,MAAM,SAAS,OAAO,SAAS,WAAW,EAAE,QAAQ;EACtD;EACA,sBAAsB,OAAO,WAA0E;GACrG,MAAM,EAAE,UAAU,WAAW,OAAO;GACpC,MAAM,OAAO,WAAW,YAAY,EAAE,OAAO;EAC/C;EACA,4BAA4B,OAAO,WAA0E;GAC3G,MAAM,EAAE,UAAU,WAAW,OAAO;GACpC,MAAM,OAAO,WAAW,YAAY;IAAE,GAAG,MAAM,OAAO,WAAW;IAAW,QAAQ;GAAO;EAC7F;EACA,2BAA2B,OAAO,WAA4G;GAC5I,MAAM,EAAE,WAAW,WAAW,OAAO;GACrC,MAAM,YAAY,OAAO,aAAa;EACxC;EACA,oBAAoB,OAAO,WAAW;GACpC,MAAM,OAAO,YAAY;IAAE,GAAG,MAAM,OAAO;IAAW,GAAG,OAAO;GAAQ;EAC1E;CACF;AACF,CAAC;AAED,MAAa,UAAU,aAAa;AACpC,IAAA,uBAAe,aAAa"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as monitorSlice, i as initialState, n as _default, o as sliceName, r as actions, t as MonitorSliceType } from "../index-
|
|
1
|
+
import { a as monitorSlice, i as initialState, n as _default, o as sliceName, r as actions, t as MonitorSliceType } from "../index-Ctj2r57a.cjs";
|
|
2
2
|
export { MonitorSliceType, actions, _default as default, initialState, monitorSlice, sliceName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as monitorSlice, i as initialState, n as _default, o as sliceName, r as actions, t as MonitorSliceType } from "../index-
|
|
1
|
+
import { a as monitorSlice, i as initialState, n as _default, o as sliceName, r as actions, t as MonitorSliceType } from "../index-BAGyeC-q.js";
|
|
2
2
|
export { MonitorSliceType, actions, _default as default, initialState, monitorSlice, sliceName };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as DEVICE_ISSUE_OPTIONS, l as DEVICE_LIST_DEFAULTS, p as alertChannels } from "../constants-
|
|
1
|
+
import { c as DEVICE_ISSUE_OPTIONS, l as DEVICE_LIST_DEFAULTS, p as alertChannels } from "../constants-CerzXHnQ.js";
|
|
2
2
|
import { createSlice } from "@reduxjs/toolkit";
|
|
3
3
|
//#region src/monitorSlice/index.ts
|
|
4
4
|
const sliceName = "monitor";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as DEVICE_ISSUE_OPTIONS, l as DEVICE_LIST_DEFAULTS } from "../constants-
|
|
1
|
+
import { c as DEVICE_ISSUE_OPTIONS, l as DEVICE_LIST_DEFAULTS } from "../constants-CerzXHnQ.js";
|
|
2
2
|
import { initialState } from "./index.js";
|
|
3
3
|
//#region src/monitorSlice/mocks.ts
|
|
4
4
|
const mockState = {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as SnackbarContent } from "../index-
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
-
|
|
1
|
+
import { m as DeviceIssueOptionKey, ut as AlertChannelKey } from "../constants-Rl3FJzFf.cjs";
|
|
2
|
+
import { r as DeviceFilter, t as Device } from "../index-CiQ95u1W.cjs";
|
|
3
|
+
import { i as SnackbarContent } from "../index-DeOpb2oK.cjs";
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-CUUm1GTI.cjs";
|
|
6
5
|
//#region src/monitorSlice/thunks.d.ts
|
|
7
6
|
interface GetDeviceAlertsPayload {
|
|
8
7
|
config?: {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as SnackbarContent } from "../index-
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
-
|
|
1
|
+
import { m as DeviceIssueOptionKey, ut as AlertChannelKey } from "../constants-B_H4squx.js";
|
|
2
|
+
import { r as DeviceFilter, t as Device } from "../index-Bvyf8OO6.js";
|
|
3
|
+
import { i as SnackbarContent } from "../index-Bs0c1-WY.js";
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-CPptM5Ts.js";
|
|
6
5
|
//#region src/monitorSlice/thunks.d.ts
|
|
7
6
|
interface GetDeviceAlertsPayload {
|
|
8
7
|
config?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as headerNames,
|
|
1
|
+
import { E as headerNames, N as monitorApiUrlv1, O as inventoryApiUrlV2, Pt as TIMEOUTS, l as DEVICE_LIST_DEFAULTS, p as alertChannels } from "../constants-CerzXHnQ.js";
|
|
2
2
|
import { actions, sliceName } from "./index.js";
|
|
3
3
|
import actions_default from "../actions.js";
|
|
4
4
|
import { getDeviceFilters } from "../devicesSlice/selectors.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/onboardingSlice/index.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 type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nexport const sliceName = 'onboarding';\n\nexport type OnboardingApproach = 'virtual' | 'physical' | 'mcu';\n\nexport type OnboardingSliceType = {\n address?: string;\n approach: OnboardingApproach | null;\n complete: boolean;\n demoArtifactPort: number;\n deviceConnection?: string;\n deviceType: string[] | string | null;\n progress: string | null;\n showTips: boolean | null;\n showTipsDialog: boolean;\n};\n\nexport const initialState: OnboardingSliceType = {\n approach: null,\n complete: false,\n deviceType: null,\n demoArtifactPort: 85,\n progress: null,\n showTips: null,\n showTipsDialog: false\n};\n\nexport const onboardingSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n setOnboardingState: (state, action: PayloadAction<Partial<OnboardingSliceType>>) => ({ ...state, ...action.payload }),\n setDemoArtifactPort: (state, action: PayloadAction<number>) => {\n state.demoArtifactPort = action.payload;\n },\n setShowOnboardingHelp: (state, action: PayloadAction<boolean>) => {\n state.showTips = action.payload;\n },\n setShowDismissOnboardingTipsDialog: (state, action: PayloadAction<boolean>) => {\n state.showTipsDialog = action.payload;\n },\n setOnboardingComplete: (state, action: PayloadAction<boolean>) => {\n state.complete = action.payload;\n },\n setOnboardingProgress: (state, action: PayloadAction<string>) => {\n state.progress = action.payload;\n },\n setOnboardingDeviceType: (state, action: PayloadAction<string[] | string>) => {\n state.deviceType = action.payload;\n },\n setOnboardingApproach: (state, action: PayloadAction<OnboardingApproach>) => {\n state.approach = action.payload;\n }\n }\n});\n\nexport const actions = onboardingSlice.actions;\nexport default onboardingSlice.reducer;\n"],"mappings":";;;;;;AAgBA,MAAa,YAAY;AAgBzB,MAAa,eAAoC;CAC/C,UAAU;CACV,UAAU;CACV,YAAY;CACZ,kBAAkB;CAClB,UAAU;CACV,UAAU;CACV,gBAAgB;AAClB;AAEA,MAAa,mBAAA,
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["createSlice"],"sources":["../../src/onboardingSlice/index.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 type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nexport const sliceName = 'onboarding';\n\nexport type OnboardingApproach = 'virtual' | 'physical' | 'mcu';\n\nexport type OnboardingSliceType = {\n address?: string;\n approach: OnboardingApproach | null;\n complete: boolean;\n demoArtifactPort: number;\n deviceConnection?: string;\n deviceType: string[] | string | null;\n progress: string | null;\n showTips: boolean | null;\n showTipsDialog: boolean;\n};\n\nexport const initialState: OnboardingSliceType = {\n approach: null,\n complete: false,\n deviceType: null,\n demoArtifactPort: 85,\n progress: null,\n showTips: null,\n showTipsDialog: false\n};\n\nexport const onboardingSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n setOnboardingState: (state, action: PayloadAction<Partial<OnboardingSliceType>>) => ({ ...state, ...action.payload }),\n setDemoArtifactPort: (state, action: PayloadAction<number>) => {\n state.demoArtifactPort = action.payload;\n },\n setShowOnboardingHelp: (state, action: PayloadAction<boolean>) => {\n state.showTips = action.payload;\n },\n setShowDismissOnboardingTipsDialog: (state, action: PayloadAction<boolean>) => {\n state.showTipsDialog = action.payload;\n },\n setOnboardingComplete: (state, action: PayloadAction<boolean>) => {\n state.complete = action.payload;\n },\n setOnboardingProgress: (state, action: PayloadAction<string>) => {\n state.progress = action.payload;\n },\n setOnboardingDeviceType: (state, action: PayloadAction<string[] | string>) => {\n state.deviceType = action.payload;\n },\n setOnboardingApproach: (state, action: PayloadAction<OnboardingApproach>) => {\n state.approach = action.payload;\n }\n }\n});\n\nexport const actions = onboardingSlice.actions;\nexport default onboardingSlice.reducer;\n"],"mappings":";;;;;;AAgBA,MAAa,YAAY;AAgBzB,MAAa,eAAoC;CAC/C,UAAU;CACV,UAAU;CACV,YAAY;CACZ,kBAAkB;CAClB,UAAU;CACV,UAAU;CACV,gBAAgB;AAClB;AAEA,MAAa,mBAAA,GAAkBA,iBAAAA,YAAAA,CAAY;CACzC,MAAM;CACN;CACA,UAAU;EACR,qBAAqB,OAAO,YAAyD;GAAE,GAAG;GAAO,GAAG,OAAO;EAAQ;EACnH,sBAAsB,OAAO,WAAkC;GAC7D,MAAM,mBAAmB,OAAO;EAClC;EACA,wBAAwB,OAAO,WAAmC;GAChE,MAAM,WAAW,OAAO;EAC1B;EACA,qCAAqC,OAAO,WAAmC;GAC7E,MAAM,iBAAiB,OAAO;EAChC;EACA,wBAAwB,OAAO,WAAmC;GAChE,MAAM,WAAW,OAAO;EAC1B;EACA,wBAAwB,OAAO,WAAkC;GAC/D,MAAM,WAAW,OAAO;EAC1B;EACA,0BAA0B,OAAO,WAA6C;GAC5E,MAAM,aAAa,OAAO;EAC5B;EACA,wBAAwB,OAAO,WAA8C;GAC3E,MAAM,WAAW,OAAO;EAC1B;CACF;AACF,CAAC;AAED,MAAa,UAAU,gBAAgB;AACvC,IAAA,0BAAe,gBAAgB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as initialState, i as actions, n as OnboardingSliceType, o as onboardingSlice, r as _default, s as sliceName, t as OnboardingApproach } from "../index-
|
|
1
|
+
import { a as initialState, i as actions, n as OnboardingSliceType, o as onboardingSlice, r as _default, s as sliceName, t as OnboardingApproach } from "../index-CoObjWL4.cjs";
|
|
2
2
|
export { OnboardingApproach, OnboardingSliceType, actions, _default as default, initialState, onboardingSlice, sliceName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as initialState, i as actions, n as OnboardingSliceType, o as onboardingSlice, r as _default, s as sliceName, t as OnboardingApproach } from "../index-
|
|
1
|
+
import { a as initialState, i as actions, n as OnboardingSliceType, o as onboardingSlice, r as _default, s as sliceName, t as OnboardingApproach } from "../index-CoObjWL4.js";
|
|
2
2
|
export { OnboardingApproach, OnboardingSliceType, actions, _default as default, initialState, onboardingSlice, sliceName };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as OnboardingSliceType } from "../index-
|
|
2
|
-
import { r as RootState } from "../store-
|
|
3
|
-
|
|
1
|
+
import { n as OnboardingSliceType } from "../index-CoObjWL4.cjs";
|
|
2
|
+
import { r as RootState } from "../store-CUUm1GTI.cjs";
|
|
4
3
|
//#region src/onboardingSlice/selectors.d.ts
|
|
5
4
|
declare const getOnboarding: (state: RootState) => OnboardingSliceType;
|
|
6
5
|
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as OnboardingSliceType } from "../index-
|
|
2
|
-
import { r as RootState } from "../store-
|
|
3
|
-
|
|
1
|
+
import { n as OnboardingSliceType } from "../index-CoObjWL4.js";
|
|
2
|
+
import { r as RootState } from "../store-CPptM5Ts.js";
|
|
4
3
|
//#region src/onboardingSlice/selectors.d.ts
|
|
5
4
|
declare const getOnboarding: (state: RootState) => OnboardingSliceType;
|
|
6
5
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import "../constants-Rl3FJzFf.cjs";
|
|
1
2
|
import { t as OnboardingStep } from "../constants-Db_RBdlV.cjs";
|
|
2
|
-
import { a as UserSettings } from "../index-
|
|
3
|
-
import { n as OnboardingSliceType, t as OnboardingApproach } from "../index-
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
-
|
|
3
|
+
import { a as UserSettings } from "../index-BgF6rhXn.cjs";
|
|
4
|
+
import { n as OnboardingSliceType, t as OnboardingApproach } from "../index-CoObjWL4.cjs";
|
|
5
|
+
import { r as RootState, t as AppDispatch } from "../store-CUUm1GTI.cjs";
|
|
6
6
|
//#region src/onboardingSlice/thunks.d.ts
|
|
7
7
|
declare const getOnboardingState: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
8
8
|
payload: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import "../constants-B_H4squx.js";
|
|
1
2
|
import { t as OnboardingStep } from "../constants-Db_RBdlV.js";
|
|
2
|
-
import { a as UserSettings } from "../index-
|
|
3
|
-
import { n as OnboardingSliceType, t as OnboardingApproach } from "../index-
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
-
|
|
3
|
+
import { a as UserSettings } from "../index-CpfhQHfg.js";
|
|
4
|
+
import { n as OnboardingSliceType, t as OnboardingApproach } from "../index-CoObjWL4.js";
|
|
5
|
+
import { r as RootState, t as AppDispatch } from "../store-CPptM5Ts.js";
|
|
6
6
|
//#region src/onboardingSlice/thunks.d.ts
|
|
7
7
|
declare const getOnboardingState: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
8
8
|
payload: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as AUDIT_LOGS_TYPES, at as auditlogTypes, et as JSON_METADATA_FORMAT, it as XML_METADATA_FORMAT, nt as SSO_TYPES, ot as getOidcStartUrl, rt as TENANT_LIST_DEFAULT, st as getSamlStartUrl, tt as SP_AUDIT_LOGS_TYPES } from "../constants-CerzXHnQ.js";
|
|
2
2
|
export { AUDIT_LOGS_TYPES, JSON_METADATA_FORMAT, SP_AUDIT_LOGS_TYPES, SSO_TYPES, TENANT_LIST_DEFAULT, XML_METADATA_FORMAT, auditlogTypes, getOidcStartUrl, getSamlStartUrl };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["TENANT_LIST_DEFAULT","SORTING_OPTIONS","DEVICE_LIST_DEFAULTS"],"sources":["../../src/organizationSlice/index.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 type { AuditLog as AuditLogEvent, BillingProfile, Integration, Event as WebhookEvent } from '@northern.tech/types/MenderTypes';\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS, TENANT_LIST_DEFAULT } from '../constants';\nimport type { AuditLog, AuditLogSelectionState, Card, Organization, ProductConfig, SSOConfig, TenantList, Webhook } from './types';\n\nexport const sliceName = 'organization';\n\nexport type OrganizationSliceType = {\n auditlog: AuditLog;\n card: Card;\n externalDeviceIntegrations: Integration[];\n intentId: string | null;\n organization: Partial<Organization>;\n products?: ProductConfig;\n ssoConfigs: SSOConfig[];\n tenantList: TenantList;\n webhooks: Webhook;\n};\n\nexport const initialState: OrganizationSliceType = {\n card: {\n last4: '',\n expiration: { month: 1, year: 2020 },\n brand: ''\n },\n intentId: null,\n tenantList: {\n ...TENANT_LIST_DEFAULT,\n total: 0,\n tenants: [],\n selectedTenant: null,\n sort: {\n direction: SORTING_OPTIONS.desc,\n key: 'name'\n }\n },\n organization: {\n // id, name, status, tenant_token, plan\n },\n auditlog: {\n events: [],\n selectionState: {\n ...DEVICE_LIST_DEFAULTS,\n detail: undefined,\n endDate: undefined,\n selectedIssue: undefined,\n sort: { direction: SORTING_OPTIONS.desc },\n startDate: undefined,\n total: 0,\n type: undefined,\n user: undefined,\n isLoading: false\n }\n },\n externalDeviceIntegrations: [\n // { <connection_string|x509|...>, id, provider }\n ],\n ssoConfigs: [],\n webhooks: {\n // [id]: { events: [] }\n // for now:\n events: [],\n eventsTotal: 0\n }\n};\n\nexport const organizationSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n receiveAuditLogs: (state, action: PayloadAction<{ events: AuditLogEvent[]; total: number }>) => {\n const { events, total } = action.payload;\n state.auditlog.events = events;\n state.auditlog.selectionState.total = total;\n },\n setAuditLogState: (state, action: PayloadAction<Partial<AuditLogSelectionState>>) => {\n state.auditlog.selectionState = {\n ...state.auditlog.selectionState,\n ...action.payload\n };\n },\n receiveCurrentCard: (state, action: PayloadAction<Card>) => {\n state.card = action.payload;\n },\n receiveSetupIntent: (state, action: PayloadAction<string | null>) => {\n state.intentId = action.payload;\n },\n setOrganization: (state, action: PayloadAction<Partial<Organization>>) => {\n state.organization = { ...state.organization, ...action.payload };\n },\n setSubscription: (state, action) => {\n state.organization.subscription = { ...state.organization.subscription, ...action.payload };\n },\n setProducts: (state, action: PayloadAction<ProductConfig>) => {\n state.products = action.payload;\n },\n setBillingProfile: (state, action: PayloadAction<BillingProfile>) => {\n state.organization.billing_profile = action.payload;\n },\n setTenantListState: (state, action: PayloadAction<TenantList>) => {\n state.tenantList = action.payload;\n },\n receiveExternalDeviceIntegrations: (state, action: PayloadAction<Integration[]>) => {\n state.externalDeviceIntegrations = action.payload;\n },\n receiveSsoConfigs: (state, action: PayloadAction<SSOConfig[]>) => {\n state.ssoConfigs = action.payload;\n },\n receiveWebhookEvents: (state, action: PayloadAction<{ total: number; value: WebhookEvent[] }>) => {\n const { value, total } = action.payload;\n state.webhooks.events = value;\n state.webhooks.eventsTotal = total;\n }\n }\n});\n\nexport const actions = organizationSlice.actions;\nexport default organizationSlice.reducer;\n"],"mappings":";;;;;;;;AAoBA,MAAa,YAAY;AAczB,MAAa,eAAsC;CACjD,MAAM;EACJ,OAAO;EACP,YAAY;GAAE,OAAO;GAAG,MAAM;EAAK;EACnC,OAAO;CACT;CACA,UAAU;CACV,YAAY;EACV,GAAGA,kBAAAA;EACH,OAAO;EACP,SAAS,CAAC;EACV,gBAAgB;EAChB,MAAM;GACJ,WAAWC,+BAAAA,gBAAgB;GAC3B,KAAK;EACP;CACF;CACA,cAAc,CAEd;CACA,UAAU;EACR,QAAQ,CAAC;EACT,gBAAgB;GACd,GAAGC,+BAAAA;GACH,QAAQ,KAAA;GACR,SAAS,KAAA;GACT,eAAe,KAAA;GACf,MAAM,EAAE,WAAWD,+BAAAA,gBAAgB,KAAK;GACxC,WAAW,KAAA;GACX,OAAO;GACP,MAAM,KAAA;GACN,MAAM,KAAA;GACN,WAAW;EACb;CACF;CACA,4BAA4B,CAE5B;CACA,YAAY,CAAC;CACb,UAAU;EAGR,QAAQ,CAAC;EACT,aAAa;CACf;AACF;AAEA,MAAa,qBAAA,
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["TENANT_LIST_DEFAULT","SORTING_OPTIONS","DEVICE_LIST_DEFAULTS","createSlice"],"sources":["../../src/organizationSlice/index.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 type { AuditLog as AuditLogEvent, BillingProfile, Integration, Event as WebhookEvent } from '@northern.tech/types/MenderTypes';\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS, TENANT_LIST_DEFAULT } from '../constants';\nimport type { AuditLog, AuditLogSelectionState, Card, Organization, ProductConfig, SSOConfig, TenantList, Webhook } from './types';\n\nexport const sliceName = 'organization';\n\nexport type OrganizationSliceType = {\n auditlog: AuditLog;\n card: Card;\n externalDeviceIntegrations: Integration[];\n intentId: string | null;\n organization: Partial<Organization>;\n products?: ProductConfig;\n ssoConfigs: SSOConfig[];\n tenantList: TenantList;\n webhooks: Webhook;\n};\n\nexport const initialState: OrganizationSliceType = {\n card: {\n last4: '',\n expiration: { month: 1, year: 2020 },\n brand: ''\n },\n intentId: null,\n tenantList: {\n ...TENANT_LIST_DEFAULT,\n total: 0,\n tenants: [],\n selectedTenant: null,\n sort: {\n direction: SORTING_OPTIONS.desc,\n key: 'name'\n }\n },\n organization: {\n // id, name, status, tenant_token, plan\n },\n auditlog: {\n events: [],\n selectionState: {\n ...DEVICE_LIST_DEFAULTS,\n detail: undefined,\n endDate: undefined,\n selectedIssue: undefined,\n sort: { direction: SORTING_OPTIONS.desc },\n startDate: undefined,\n total: 0,\n type: undefined,\n user: undefined,\n isLoading: false\n }\n },\n externalDeviceIntegrations: [\n // { <connection_string|x509|...>, id, provider }\n ],\n ssoConfigs: [],\n webhooks: {\n // [id]: { events: [] }\n // for now:\n events: [],\n eventsTotal: 0\n }\n};\n\nexport const organizationSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n receiveAuditLogs: (state, action: PayloadAction<{ events: AuditLogEvent[]; total: number }>) => {\n const { events, total } = action.payload;\n state.auditlog.events = events;\n state.auditlog.selectionState.total = total;\n },\n setAuditLogState: (state, action: PayloadAction<Partial<AuditLogSelectionState>>) => {\n state.auditlog.selectionState = {\n ...state.auditlog.selectionState,\n ...action.payload\n };\n },\n receiveCurrentCard: (state, action: PayloadAction<Card>) => {\n state.card = action.payload;\n },\n receiveSetupIntent: (state, action: PayloadAction<string | null>) => {\n state.intentId = action.payload;\n },\n setOrganization: (state, action: PayloadAction<Partial<Organization>>) => {\n state.organization = { ...state.organization, ...action.payload };\n },\n setSubscription: (state, action) => {\n state.organization.subscription = { ...state.organization.subscription, ...action.payload };\n },\n setProducts: (state, action: PayloadAction<ProductConfig>) => {\n state.products = action.payload;\n },\n setBillingProfile: (state, action: PayloadAction<BillingProfile>) => {\n state.organization.billing_profile = action.payload;\n },\n setTenantListState: (state, action: PayloadAction<TenantList>) => {\n state.tenantList = action.payload;\n },\n receiveExternalDeviceIntegrations: (state, action: PayloadAction<Integration[]>) => {\n state.externalDeviceIntegrations = action.payload;\n },\n receiveSsoConfigs: (state, action: PayloadAction<SSOConfig[]>) => {\n state.ssoConfigs = action.payload;\n },\n receiveWebhookEvents: (state, action: PayloadAction<{ total: number; value: WebhookEvent[] }>) => {\n const { value, total } = action.payload;\n state.webhooks.events = value;\n state.webhooks.eventsTotal = total;\n }\n }\n});\n\nexport const actions = organizationSlice.actions;\nexport default organizationSlice.reducer;\n"],"mappings":";;;;;;;;AAoBA,MAAa,YAAY;AAczB,MAAa,eAAsC;CACjD,MAAM;EACJ,OAAO;EACP,YAAY;GAAE,OAAO;GAAG,MAAM;EAAK;EACnC,OAAO;CACT;CACA,UAAU;CACV,YAAY;EACV,GAAGA,kBAAAA;EACH,OAAO;EACP,SAAS,CAAC;EACV,gBAAgB;EAChB,MAAM;GACJ,WAAWC,+BAAAA,gBAAgB;GAC3B,KAAK;EACP;CACF;CACA,cAAc,CAEd;CACA,UAAU;EACR,QAAQ,CAAC;EACT,gBAAgB;GACd,GAAGC,+BAAAA;GACH,QAAQ,KAAA;GACR,SAAS,KAAA;GACT,eAAe,KAAA;GACf,MAAM,EAAE,WAAWD,+BAAAA,gBAAgB,KAAK;GACxC,WAAW,KAAA;GACX,OAAO;GACP,MAAM,KAAA;GACN,MAAM,KAAA;GACN,WAAW;EACb;CACF;CACA,4BAA4B,CAE5B;CACA,YAAY,CAAC;CACb,UAAU;EAGR,QAAQ,CAAC;EACT,aAAa;CACf;AACF;AAEA,MAAa,qBAAA,GAAoBE,iBAAAA,YAAAA,CAAY;CAC3C,MAAM;CACN;CACA,UAAU;EACR,mBAAmB,OAAO,WAAsE;GAC9F,MAAM,EAAE,QAAQ,UAAU,OAAO;GACjC,MAAM,SAAS,SAAS;GACxB,MAAM,SAAS,eAAe,QAAQ;EACxC;EACA,mBAAmB,OAAO,WAA2D;GACnF,MAAM,SAAS,iBAAiB;IAC9B,GAAG,MAAM,SAAS;IAClB,GAAG,OAAO;GACZ;EACF;EACA,qBAAqB,OAAO,WAAgC;GAC1D,MAAM,OAAO,OAAO;EACtB;EACA,qBAAqB,OAAO,WAAyC;GACnE,MAAM,WAAW,OAAO;EAC1B;EACA,kBAAkB,OAAO,WAAiD;GACxE,MAAM,eAAe;IAAE,GAAG,MAAM;IAAc,GAAG,OAAO;GAAQ;EAClE;EACA,kBAAkB,OAAO,WAAW;GAClC,MAAM,aAAa,eAAe;IAAE,GAAG,MAAM,aAAa;IAAc,GAAG,OAAO;GAAQ;EAC5F;EACA,cAAc,OAAO,WAAyC;GAC5D,MAAM,WAAW,OAAO;EAC1B;EACA,oBAAoB,OAAO,WAA0C;GACnE,MAAM,aAAa,kBAAkB,OAAO;EAC9C;EACA,qBAAqB,OAAO,WAAsC;GAChE,MAAM,aAAa,OAAO;EAC5B;EACA,oCAAoC,OAAO,WAAyC;GAClF,MAAM,6BAA6B,OAAO;EAC5C;EACA,oBAAoB,OAAO,WAAuC;GAChE,MAAM,aAAa,OAAO;EAC5B;EACA,uBAAuB,OAAO,WAAoE;GAChG,MAAM,EAAE,OAAO,UAAU,OAAO;GAChC,MAAM,SAAS,SAAS;GACxB,MAAM,SAAS,cAAc;EAC/B;CACF;AACF,CAAC;AAED,MAAa,UAAU,kBAAkB;AACzC,IAAA,4BAAe,kBAAkB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as organizationSlice, i as initialState, n as _default, o as sliceName, r as actions, t as OrganizationSliceType } from "../index-
|
|
1
|
+
import { a as organizationSlice, i as initialState, n as _default, o as sliceName, r as actions, t as OrganizationSliceType } from "../index-C_LGDJN2.cjs";
|
|
2
2
|
export { OrganizationSliceType, actions, _default as default, initialState, organizationSlice, sliceName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as organizationSlice, i as initialState, n as _default, o as sliceName, r as actions, t as OrganizationSliceType } from "../index-
|
|
1
|
+
import { a as organizationSlice, i as initialState, n as _default, o as sliceName, r as actions, t as OrganizationSliceType } from "../index-ChKTa1aL.js";
|
|
2
2
|
export { OrganizationSliceType, actions, _default as default, initialState, organizationSlice, sliceName };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as SORTING_OPTIONS, l as DEVICE_LIST_DEFAULTS,
|
|
1
|
+
import { f as SORTING_OPTIONS, l as DEVICE_LIST_DEFAULTS, rt as TENANT_LIST_DEFAULT } from "../constants-CerzXHnQ.js";
|
|
2
2
|
import { createSlice } from "@reduxjs/toolkit";
|
|
3
3
|
//#region src/organizationSlice/index.ts
|
|
4
4
|
const sliceName = "organization";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as AvailablePlans } from "../constants-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { a as AvailablePlans } from "../constants-nKSWZ8oD.cjs";
|
|
2
|
+
import "../constants-Rl3FJzFf.cjs";
|
|
3
|
+
import { d as TenantList, f as Webhook, l as SSOConfig } from "../types-B80ckxiy.cjs";
|
|
4
4
|
//#region src/organizationSlice/mocks.d.ts
|
|
5
5
|
declare const basicPlanId: AvailablePlans;
|
|
6
6
|
declare const professionalPlanId: AvailablePlans;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as AvailablePlans } from "../constants-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { a as AvailablePlans } from "../constants-nKSWZ8oD.js";
|
|
2
|
+
import "../constants-B_H4squx.js";
|
|
3
|
+
import { d as TenantList, f as Webhook, l as SSOConfig } from "../types-B3qGQoMx.js";
|
|
4
4
|
//#region src/organizationSlice/mocks.d.ts
|
|
5
5
|
declare const basicPlanId: AvailablePlans;
|
|
6
6
|
declare const professionalPlanId: AvailablePlans;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PLANS } from "../appSlice/constants.js";
|
|
2
|
-
import { l as DEVICE_LIST_DEFAULTS } from "../constants-
|
|
2
|
+
import { l as DEVICE_LIST_DEFAULTS } from "../constants-CerzXHnQ.js";
|
|
3
3
|
import { initialState } from "./index.js";
|
|
4
4
|
//#region src/organizationSlice/mocks.ts
|
|
5
5
|
const basicPlanId = PLANS.os.id;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.cjs","names":["EXTERNAL_PROVIDER","productOrder"],"sources":["../../src/organizationSlice/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 type { Tenant } from '@northern.tech/types/MenderTypes';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport { EXTERNAL_PROVIDER, productOrder } from '../constants';\nimport type { RootState } from '../store';\n\nexport const getOrganization = (state: RootState) => state.organization.organization;\nexport const getProducts = (state: RootState) => state.organization.products;\nexport const getExternalIntegrations = (state: RootState) => state.organization.externalDeviceIntegrations;\nexport const getAuditlogState = (state: RootState) => state.organization.auditlog.selectionState;\nexport const getAuditLog = (state: RootState) => state.organization.auditlog.events;\nexport const getAuditLogSelectionState = (state: RootState) => state.organization.auditlog.selectionState;\nexport const getBillingProfile = (state: RootState) => state.organization.organization.billing_profile;\nexport const getSubscription = (state: RootState) => state.organization.organization.subscription;\nexport const getCard = (state: RootState) => state.organization.card;\nexport const getSsoConfig = ({ organization: { ssoConfigs = [] } }: RootState) => ssoConfigs[0];\nexport const getTenantsList = (state: RootState) => state.organization.tenantList;\nexport const getWebhookEvents = (state: RootState) => state.organization.webhooks.events;\nexport const getWebhookEventTotal = (state: RootState) => state.organization.webhooks.eventsTotal;\n\nexport const getDeviceTwinIntegrations = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && EXTERNAL_PROVIDER[integration.provider]?.deviceTwin)\n);\nexport const getIsServiceProvider = (state: RootState) => state.organization.organization.service_provider;\n\nexport const getWebhooks = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && integration.provider === EXTERNAL_PROVIDER.webhook.provider)\n);\nexport const getWebhookEventInfo = createSelector([getWebhooks, getWebhookEvents, getWebhookEventTotal], (webhooks, events, eventTotal) =>\n webhooks.length ? { events, eventTotal } : { events: [], eventTotal: 0 }\n);\n\nexport const getAuditLogEntry = createSelector([getAuditLog, getAuditLogSelectionState], (events, { selectedId }) => {\n if (!selectedId) {\n return;\n }\n const [eventAction, eventTime] = atob(selectedId).split('|');\n return events.find(item => item.action === eventAction && item.time === eventTime);\n});\n\nconst toTierName = (key: string) => key.replace(/max_|_?devices/g, '') || 'standard';\nconst processDeviceLimits = (deviceLimits: Tenant['device_limits'], skipFilter = false) => {\n const result: { disabled: string[]; limits: Record<string, object> } = { limits: {}, disabled: [] };\n if (!deviceLimits) return result;\n const tiersByName = Object.fromEntries(Object.entries(deviceLimits).map(([key, limit]) => [toTierName(key), { key, limit }]));\n return productOrder.reduce((accu, tierName) => {\n const entry = tiersByName[tierName];\n if (!entry) return accu;\n const { key, limit } = entry;\n if (limit.value === 0) {\n accu.disabled.push(tierName);\n if (!skipFilter) return accu;\n }\n accu.limits[tierName] = {\n id: tierName,\n backendId: key,\n limit: limit.value,\n current: limit.current_value,\n name: tierName,\n quotaLeft: Math.max(limit.value - limit.current_value, 0),\n limitReached: limit.value !== -1 && limit.value <= limit.current_value\n };\n return accu;\n }, result);\n};\nconst getDeviceLimitsInfo = createSelector([getOrganization], ({ device_limits }) => processDeviceLimits(device_limits));\nexport const getDisabledTiers = createSelector([getDeviceLimitsInfo], ({ disabled }) => disabled);\nexport const getSpLimits = createSelector([getDeviceLimitsInfo], ({ limits }) => limits);\nexport const getTenantListWithLimits = createSelector([getTenantsList], tenantList => ({\n ...tenantList,\n tenants: tenantList.tenants.map(tenant => ({\n ...tenant,\n device_limits: processDeviceLimits(tenant.device_limits, true).limits\n }))\n}));\n"],"mappings":";;;;AAmBA,MAAa,mBAAmB,UAAqB,MAAM,aAAa;AACxE,MAAa,eAAe,UAAqB,MAAM,aAAa;AACpE,MAAa,2BAA2B,UAAqB,MAAM,aAAa;AAChF,MAAa,oBAAoB,UAAqB,MAAM,aAAa,SAAS;AAClF,MAAa,eAAe,UAAqB,MAAM,aAAa,SAAS;AAC7E,MAAa,6BAA6B,UAAqB,MAAM,aAAa,SAAS;AAC3F,MAAa,qBAAqB,UAAqB,MAAM,aAAa,aAAa;AACvF,MAAa,mBAAmB,UAAqB,MAAM,aAAa,aAAa;AACrF,MAAa,WAAW,UAAqB,MAAM,aAAa;AAChE,MAAa,gBAAgB,EAAE,cAAc,EAAE,aAAa,CAAC,UAAqB,WAAW;AAC7F,MAAa,kBAAkB,UAAqB,MAAM,aAAa;AACvE,MAAa,oBAAoB,UAAqB,MAAM,aAAa,SAAS;AAClF,MAAa,wBAAwB,UAAqB,MAAM,aAAa,SAAS;AAEtF,MAAa,6BAAA,
|
|
1
|
+
{"version":3,"file":"selectors.cjs","names":["createSelector","EXTERNAL_PROVIDER","productOrder"],"sources":["../../src/organizationSlice/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 type { Tenant } from '@northern.tech/types/MenderTypes';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport { EXTERNAL_PROVIDER, productOrder } from '../constants';\nimport type { RootState } from '../store';\n\nexport const getOrganization = (state: RootState) => state.organization.organization;\nexport const getProducts = (state: RootState) => state.organization.products;\nexport const getExternalIntegrations = (state: RootState) => state.organization.externalDeviceIntegrations;\nexport const getAuditlogState = (state: RootState) => state.organization.auditlog.selectionState;\nexport const getAuditLog = (state: RootState) => state.organization.auditlog.events;\nexport const getAuditLogSelectionState = (state: RootState) => state.organization.auditlog.selectionState;\nexport const getBillingProfile = (state: RootState) => state.organization.organization.billing_profile;\nexport const getSubscription = (state: RootState) => state.organization.organization.subscription;\nexport const getCard = (state: RootState) => state.organization.card;\nexport const getSsoConfig = ({ organization: { ssoConfigs = [] } }: RootState) => ssoConfigs[0];\nexport const getTenantsList = (state: RootState) => state.organization.tenantList;\nexport const getWebhookEvents = (state: RootState) => state.organization.webhooks.events;\nexport const getWebhookEventTotal = (state: RootState) => state.organization.webhooks.eventsTotal;\n\nexport const getDeviceTwinIntegrations = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && EXTERNAL_PROVIDER[integration.provider]?.deviceTwin)\n);\nexport const getIsServiceProvider = (state: RootState) => state.organization.organization.service_provider;\n\nexport const getWebhooks = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && integration.provider === EXTERNAL_PROVIDER.webhook.provider)\n);\nexport const getWebhookEventInfo = createSelector([getWebhooks, getWebhookEvents, getWebhookEventTotal], (webhooks, events, eventTotal) =>\n webhooks.length ? { events, eventTotal } : { events: [], eventTotal: 0 }\n);\n\nexport const getAuditLogEntry = createSelector([getAuditLog, getAuditLogSelectionState], (events, { selectedId }) => {\n if (!selectedId) {\n return;\n }\n const [eventAction, eventTime] = atob(selectedId).split('|');\n return events.find(item => item.action === eventAction && item.time === eventTime);\n});\n\nconst toTierName = (key: string) => key.replace(/max_|_?devices/g, '') || 'standard';\nconst processDeviceLimits = (deviceLimits: Tenant['device_limits'], skipFilter = false) => {\n const result: { disabled: string[]; limits: Record<string, object> } = { limits: {}, disabled: [] };\n if (!deviceLimits) return result;\n const tiersByName = Object.fromEntries(Object.entries(deviceLimits).map(([key, limit]) => [toTierName(key), { key, limit }]));\n return productOrder.reduce((accu, tierName) => {\n const entry = tiersByName[tierName];\n if (!entry) return accu;\n const { key, limit } = entry;\n if (limit.value === 0) {\n accu.disabled.push(tierName);\n if (!skipFilter) return accu;\n }\n accu.limits[tierName] = {\n id: tierName,\n backendId: key,\n limit: limit.value,\n current: limit.current_value,\n name: tierName,\n quotaLeft: Math.max(limit.value - limit.current_value, 0),\n limitReached: limit.value !== -1 && limit.value <= limit.current_value\n };\n return accu;\n }, result);\n};\nconst getDeviceLimitsInfo = createSelector([getOrganization], ({ device_limits }) => processDeviceLimits(device_limits));\nexport const getDisabledTiers = createSelector([getDeviceLimitsInfo], ({ disabled }) => disabled);\nexport const getSpLimits = createSelector([getDeviceLimitsInfo], ({ limits }) => limits);\nexport const getTenantListWithLimits = createSelector([getTenantsList], tenantList => ({\n ...tenantList,\n tenants: tenantList.tenants.map(tenant => ({\n ...tenant,\n device_limits: processDeviceLimits(tenant.device_limits, true).limits\n }))\n}));\n"],"mappings":";;;;AAmBA,MAAa,mBAAmB,UAAqB,MAAM,aAAa;AACxE,MAAa,eAAe,UAAqB,MAAM,aAAa;AACpE,MAAa,2BAA2B,UAAqB,MAAM,aAAa;AAChF,MAAa,oBAAoB,UAAqB,MAAM,aAAa,SAAS;AAClF,MAAa,eAAe,UAAqB,MAAM,aAAa,SAAS;AAC7E,MAAa,6BAA6B,UAAqB,MAAM,aAAa,SAAS;AAC3F,MAAa,qBAAqB,UAAqB,MAAM,aAAa,aAAa;AACvF,MAAa,mBAAmB,UAAqB,MAAM,aAAa,aAAa;AACrF,MAAa,WAAW,UAAqB,MAAM,aAAa;AAChE,MAAa,gBAAgB,EAAE,cAAc,EAAE,aAAa,CAAC,UAAqB,WAAW;AAC7F,MAAa,kBAAkB,UAAqB,MAAM,aAAa;AACvE,MAAa,oBAAoB,UAAqB,MAAM,aAAa,SAAS;AAClF,MAAa,wBAAwB,UAAqB,MAAM,aAAa,SAAS;AAEtF,MAAa,6BAAA,GAA4BA,iBAAAA,eAAAA,CAAe,CAAC,uBAAuB,IAAG,iBACjF,aAAa,QAAO,gBAAe,YAAY,MAAMC,kBAAAA,kBAAkB,YAAY,SAAS,EAAE,UAAU,CAC1G;AACA,MAAa,wBAAwB,UAAqB,MAAM,aAAa,aAAa;AAE1F,MAAa,eAAA,GAAcD,iBAAAA,eAAAA,CAAe,CAAC,uBAAuB,IAAG,iBACnE,aAAa,QAAO,gBAAe,YAAY,MAAM,YAAY,aAAaC,kBAAAA,kBAAkB,QAAQ,QAAQ,CAClH;AACA,MAAa,uBAAA,GAAsBD,iBAAAA,eAAAA,CAAe;CAAC;CAAa;CAAkB;AAAoB,IAAI,UAAU,QAAQ,eAC1H,SAAS,SAAS;CAAE;CAAQ;AAAW,IAAI;CAAE,QAAQ,CAAC;CAAG,YAAY;AAAE,CACzE;AAEA,MAAa,oBAAA,GAAmBA,iBAAAA,eAAAA,CAAe,CAAC,aAAa,yBAAyB,IAAI,QAAQ,EAAE,iBAAiB;CACnH,IAAI,CAAC,YACH;CAEF,MAAM,CAAC,aAAa,aAAa,KAAK,UAAU,CAAC,CAAC,MAAM,GAAG;CAC3D,OAAO,OAAO,MAAK,SAAQ,KAAK,WAAW,eAAe,KAAK,SAAS,SAAS;AACnF,CAAC;AAED,MAAM,cAAc,QAAgB,IAAI,QAAQ,mBAAmB,EAAE,KAAK;AAC1E,MAAM,uBAAuB,cAAuC,aAAa,UAAU;CACzF,MAAM,SAAiE;EAAE,QAAQ,CAAC;EAAG,UAAU,CAAC;CAAE;CAClG,IAAI,CAAC,cAAc,OAAO;CAC1B,MAAM,cAAc,OAAO,YAAY,OAAO,QAAQ,YAAY,CAAC,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC,WAAW,GAAG,GAAG;EAAE;EAAK;CAAM,CAAC,CAAC,CAAC;CAC5H,OAAOE,kBAAAA,aAAa,QAAQ,MAAM,aAAa;EAC7C,MAAM,QAAQ,YAAY;EAC1B,IAAI,CAAC,OAAO,OAAO;EACnB,MAAM,EAAE,KAAK,UAAU;EACvB,IAAI,MAAM,UAAU,GAAG;GACrB,KAAK,SAAS,KAAK,QAAQ;GAC3B,IAAI,CAAC,YAAY,OAAO;EAC1B;EACA,KAAK,OAAO,YAAY;GACtB,IAAI;GACJ,WAAW;GACX,OAAO,MAAM;GACb,SAAS,MAAM;GACf,MAAM;GACN,WAAW,KAAK,IAAI,MAAM,QAAQ,MAAM,eAAe,CAAC;GACxD,cAAc,MAAM,UAAU,MAAM,MAAM,SAAS,MAAM;EAC3D;EACA,OAAO;CACT,GAAG,MAAM;AACX;AACA,MAAM,uBAAA,GAAsBF,iBAAAA,eAAAA,CAAe,CAAC,eAAe,IAAI,EAAE,oBAAoB,oBAAoB,aAAa,CAAC;AACvH,MAAa,oBAAA,GAAmBA,iBAAAA,eAAAA,CAAe,CAAC,mBAAmB,IAAI,EAAE,eAAe,QAAQ;AAChG,MAAa,eAAA,GAAcA,iBAAAA,eAAAA,CAAe,CAAC,mBAAmB,IAAI,EAAE,aAAa,MAAM;AACvF,MAAa,2BAAA,GAA0BA,iBAAAA,eAAAA,CAAe,CAAC,cAAc,IAAG,gBAAe;CACrF,GAAG;CACH,SAAS,WAAW,QAAQ,KAAI,YAAW;EACzC,GAAG;EACH,eAAe,oBAAoB,OAAO,eAAe,IAAI,CAAC,CAAC;CACjE,EAAE;AACJ,EAAE"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
2
|
-
import { i as ReleaseSliceType } from "../index-
|
|
3
|
-
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, u as Tenant } from "../types-
|
|
4
|
-
import { n as OnboardingSliceType } from "../index-
|
|
5
|
-
import { o as DeploymentsSliceType } from "../index-
|
|
6
|
-
import {
|
|
7
|
-
import { t as AppSliceType } from "../index-
|
|
8
|
-
import { t as MonitorSliceType } from "../index-
|
|
9
|
-
import { t as OrganizationSliceType } from "../index-
|
|
10
|
-
import { r as RootState } from "../store-
|
|
11
|
-
|
|
1
|
+
import { o as UserSliceType } from "../index-BgF6rhXn.cjs";
|
|
2
|
+
import { i as ReleaseSliceType } from "../index-DiAjzARZ.cjs";
|
|
3
|
+
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, u as Tenant } from "../types-B80ckxiy.cjs";
|
|
4
|
+
import { n as OnboardingSliceType } from "../index-CoObjWL4.cjs";
|
|
5
|
+
import { o as DeploymentsSliceType } from "../index-mvxjivTJ.cjs";
|
|
6
|
+
import { c as DeviceSliceType } from "../index-CiQ95u1W.cjs";
|
|
7
|
+
import { t as AppSliceType } from "../index-DeOpb2oK.cjs";
|
|
8
|
+
import { t as MonitorSliceType } from "../index-Ctj2r57a.cjs";
|
|
9
|
+
import { t as OrganizationSliceType } from "../index-C_LGDJN2.cjs";
|
|
10
|
+
import { r as RootState } from "../store-CUUm1GTI.cjs";
|
|
12
11
|
//#region src/organizationSlice/selectors.d.ts
|
|
13
12
|
declare const getOrganization: (state: RootState) => Partial<Organization>;
|
|
14
13
|
declare const getProducts: (state: RootState) => ProductConfig | undefined;
|
|
@@ -19,11 +18,7 @@ declare const getAuditLogSelectionState: (state: RootState) => AuditLogSelection
|
|
|
19
18
|
declare const getBillingProfile: (state: RootState) => import("@northern.tech/types/types.gen").BillingProfile | undefined;
|
|
20
19
|
declare const getSubscription: (state: RootState) => import("@northern.tech/types/types.gen").SubscriptionData | undefined;
|
|
21
20
|
declare const getCard: (state: RootState) => Card;
|
|
22
|
-
declare const getSsoConfig: ({
|
|
23
|
-
organization: {
|
|
24
|
-
ssoConfigs
|
|
25
|
-
}
|
|
26
|
-
}: RootState) => SSOConfig;
|
|
21
|
+
declare const getSsoConfig: ({ organization: { ssoConfigs } }: RootState) => SSOConfig;
|
|
27
22
|
declare const getTenantsList: (state: RootState) => TenantList;
|
|
28
23
|
declare const getWebhookEvents: (state: RootState) => import("@northern.tech/types/types.gen").Event[];
|
|
29
24
|
declare const getWebhookEventTotal: (state: RootState) => number;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
2
|
-
import { i as ReleaseSliceType } from "../index-
|
|
3
|
-
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, u as Tenant } from "../types-
|
|
4
|
-
import { n as OnboardingSliceType } from "../index-
|
|
5
|
-
import { o as DeploymentsSliceType } from "../index-
|
|
6
|
-
import {
|
|
7
|
-
import { t as AppSliceType } from "../index-
|
|
8
|
-
import { t as MonitorSliceType } from "../index-
|
|
9
|
-
import { t as OrganizationSliceType } from "../index-
|
|
10
|
-
import { r as RootState } from "../store-
|
|
11
|
-
|
|
1
|
+
import { o as UserSliceType } from "../index-CpfhQHfg.js";
|
|
2
|
+
import { i as ReleaseSliceType } from "../index-C8uiyxnb.js";
|
|
3
|
+
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, u as Tenant } from "../types-B3qGQoMx.js";
|
|
4
|
+
import { n as OnboardingSliceType } from "../index-CoObjWL4.js";
|
|
5
|
+
import { o as DeploymentsSliceType } from "../index-B8td4-rY.js";
|
|
6
|
+
import { c as DeviceSliceType } from "../index-Bvyf8OO6.js";
|
|
7
|
+
import { t as AppSliceType } from "../index-Bs0c1-WY.js";
|
|
8
|
+
import { t as MonitorSliceType } from "../index-BAGyeC-q.js";
|
|
9
|
+
import { t as OrganizationSliceType } from "../index-ChKTa1aL.js";
|
|
10
|
+
import { r as RootState } from "../store-CPptM5Ts.js";
|
|
12
11
|
//#region src/organizationSlice/selectors.d.ts
|
|
13
12
|
declare const getOrganization: (state: RootState) => Partial<Organization>;
|
|
14
13
|
declare const getProducts: (state: RootState) => ProductConfig | undefined;
|
|
@@ -19,11 +18,7 @@ declare const getAuditLogSelectionState: (state: RootState) => AuditLogSelection
|
|
|
19
18
|
declare const getBillingProfile: (state: RootState) => import("@northern.tech/types/types.gen").BillingProfile | undefined;
|
|
20
19
|
declare const getSubscription: (state: RootState) => import("@northern.tech/types/types.gen").SubscriptionData | undefined;
|
|
21
20
|
declare const getCard: (state: RootState) => Card;
|
|
22
|
-
declare const getSsoConfig: ({
|
|
23
|
-
organization: {
|
|
24
|
-
ssoConfigs
|
|
25
|
-
}
|
|
26
|
-
}: RootState) => SSOConfig;
|
|
21
|
+
declare const getSsoConfig: ({ organization: { ssoConfigs } }: RootState) => SSOConfig;
|
|
27
22
|
declare const getTenantsList: (state: RootState) => TenantList;
|
|
28
23
|
declare const getWebhookEvents: (state: RootState) => import("@northern.tech/types/types.gen").Event[];
|
|
29
24
|
declare const getWebhookEventTotal: (state: RootState) => number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bt as productOrder, jt as EXTERNAL_PROVIDER } from "../constants-CerzXHnQ.js";
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
3
|
//#region src/organizationSlice/selectors.ts
|
|
4
4
|
const getOrganization = (state) => state.organization.organization;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { _ as locations, a as AvailablePlans } from "../constants-
|
|
2
|
-
import { T as SortOptions, g as PaginationOptions } from "../constants-
|
|
1
|
+
import { _ as locations, a as AvailablePlans } from "../constants-nKSWZ8oD.cjs";
|
|
2
|
+
import { T as SortOptions, g as PaginationOptions } from "../constants-Rl3FJzFf.cjs";
|
|
3
3
|
import { n as ContentType } from "../constants-OZiiFKiA.cjs";
|
|
4
|
-
import { d as TenantList, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "../types-
|
|
5
|
-
import { i as SnackbarContent } from "../index-
|
|
6
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
4
|
+
import { d as TenantList, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "../types-B80ckxiy.cjs";
|
|
5
|
+
import { i as SnackbarContent } from "../index-DeOpb2oK.cjs";
|
|
6
|
+
import { r as RootState, t as AppDispatch } from "../store-CUUm1GTI.cjs";
|
|
7
7
|
import { BillingProfile, Integration, NewTenantTypeManagement, PreviewRequest, Product, ProductInfo, Subscription, SupportRequest, UpdateChildTenant } from "@northern.tech/types/MenderTypes";
|
|
8
|
-
|
|
9
8
|
//#region src/organizationSlice/thunks.d.ts
|
|
10
9
|
declare const cancelRequest: import("@reduxjs/toolkit").AsyncThunk<{
|
|
11
10
|
payload: string | SnackbarContent;
|
|
@@ -92,7 +91,7 @@ declare const startUpgrade: import("@reduxjs/toolkit").AsyncThunk<string, string
|
|
|
92
91
|
fulfilledMeta?: unknown;
|
|
93
92
|
rejectedMeta?: unknown;
|
|
94
93
|
}>;
|
|
95
|
-
declare const cancelUpgrade: import("@reduxjs/toolkit").AsyncThunk< /*elided*/any, string, {
|
|
94
|
+
declare const cancelUpgrade: import("@reduxjs/toolkit").AsyncThunk< /*elided*/ any, string, {
|
|
96
95
|
dispatch: AppDispatch;
|
|
97
96
|
state: RootState;
|
|
98
97
|
extra?: unknown;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { _ as locations, a as AvailablePlans } from "../constants-
|
|
2
|
-
import { T as SortOptions, g as PaginationOptions } from "../constants-
|
|
1
|
+
import { _ as locations, a as AvailablePlans } from "../constants-nKSWZ8oD.js";
|
|
2
|
+
import { T as SortOptions, g as PaginationOptions } from "../constants-B_H4squx.js";
|
|
3
3
|
import { n as ContentType } from "../constants-OZiiFKiA.js";
|
|
4
|
-
import { d as TenantList, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "../types-
|
|
5
|
-
import { i as SnackbarContent } from "../index-
|
|
6
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
4
|
+
import { d as TenantList, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "../types-B3qGQoMx.js";
|
|
5
|
+
import { i as SnackbarContent } from "../index-Bs0c1-WY.js";
|
|
6
|
+
import { r as RootState, t as AppDispatch } from "../store-CPptM5Ts.js";
|
|
7
7
|
import { BillingProfile, Integration, NewTenantTypeManagement, PreviewRequest, Product, ProductInfo, Subscription, SupportRequest, UpdateChildTenant } from "@northern.tech/types/MenderTypes";
|
|
8
|
-
|
|
9
8
|
//#region src/organizationSlice/thunks.d.ts
|
|
10
9
|
declare const cancelRequest: import("@reduxjs/toolkit").AsyncThunk<{
|
|
11
10
|
payload: string | SnackbarContent;
|
|
@@ -92,7 +91,7 @@ declare const startUpgrade: import("@reduxjs/toolkit").AsyncThunk<string, string
|
|
|
92
91
|
fulfilledMeta?: unknown;
|
|
93
92
|
rejectedMeta?: unknown;
|
|
94
93
|
}>;
|
|
95
|
-
declare const cancelUpgrade: import("@reduxjs/toolkit").AsyncThunk< /*elided*/any, string, {
|
|
94
|
+
declare const cancelUpgrade: import("@reduxjs/toolkit").AsyncThunk< /*elided*/ any, string, {
|
|
96
95
|
dispatch: AppDispatch;
|
|
97
96
|
state: RootState;
|
|
98
97
|
extra?: unknown;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PricePreview, c as ProductTier, d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, s as ProductPlan, t as AuditLog, u as Tenant } from "../types-
|
|
1
|
+
import { a as PricePreview, c as ProductTier, d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, s as ProductPlan, t as AuditLog, u as Tenant } from "../types-B80ckxiy.cjs";
|
|
2
2
|
export { AuditLog, AuditLogSelectionState, Card, Organization, PricePreview, ProductConfig, ProductPlan, ProductTier, SSOConfig, Tenant, TenantList, Webhook };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PricePreview, c as ProductTier, d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, s as ProductPlan, t as AuditLog, u as Tenant } from "../types-
|
|
1
|
+
import { a as PricePreview, c as ProductTier, d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, s as ProductPlan, t as AuditLog, u as Tenant } from "../types-B3qGQoMx.js";
|
|
2
2
|
export { AuditLog, AuditLogSelectionState, Card, Organization, PricePreview, ProductConfig, ProductPlan, ProductTier, SSOConfig, Tenant, TenantList, Webhook };
|
|
@@ -9,10 +9,12 @@ const softwareTitleMap = { [rootfsImageVersion]: {
|
|
|
9
9
|
priority: 0,
|
|
10
10
|
key: rootfsImageVersion
|
|
11
11
|
} };
|
|
12
|
+
const rootfsManifestVersion = "rootfs-image.update-module.mender-orchestrator-manifest.version";
|
|
12
13
|
//#endregion
|
|
13
14
|
exports.ARTIFACT_GENERATION_TYPE = ARTIFACT_GENERATION_TYPE;
|
|
14
15
|
exports.currentArtifact = currentArtifact;
|
|
15
16
|
exports.rootfsImageVersion = rootfsImageVersion;
|
|
17
|
+
exports.rootfsManifestVersion = rootfsManifestVersion;
|
|
16
18
|
exports.softwareIndicator = softwareIndicator;
|
|
17
19
|
exports.softwareTitleMap = softwareTitleMap;
|
|
18
20
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.cjs","names":[],"sources":["../../src/releasesSlice/constants.ts"],"sourcesContent":["// Copyright 2019 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.\nexport const ARTIFACT_GENERATION_TYPE = { SINGLE_FILE: 'single_file' };\n\nexport const currentArtifact = 'artifact_name';\nexport const softwareIndicator = '.version';\nexport const rootfsImageVersion = 'rootfs-image.version';\nexport const softwareTitleMap = { [rootfsImageVersion]: { title: 'Root filesystem', priority: 0, key: rootfsImageVersion } };\n"],"mappings":";;AAaA,MAAa,2BAA2B,EAAE,aAAa,cAAc;AAErE,MAAa,kBAAkB;AAC/B,MAAa,oBAAoB;AACjC,MAAa,qBAAqB;AAClC,MAAa,mBAAmB,GAAG,qBAAqB;CAAE,OAAO;CAAmB,UAAU;CAAG,KAAK;AAAmB,EAAE"}
|
|
1
|
+
{"version":3,"file":"constants.cjs","names":[],"sources":["../../src/releasesSlice/constants.ts"],"sourcesContent":["// Copyright 2019 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.\nexport const ARTIFACT_GENERATION_TYPE = { SINGLE_FILE: 'single_file' };\n\nexport const currentArtifact = 'artifact_name';\nexport const softwareIndicator = '.version';\nexport const rootfsImageVersion = 'rootfs-image.version';\nexport const softwareTitleMap = { [rootfsImageVersion]: { title: 'Root filesystem', priority: 0, key: rootfsImageVersion } };\nexport const rootfsManifestVersion = 'rootfs-image.update-module.mender-orchestrator-manifest.version';\n"],"mappings":";;AAaA,MAAa,2BAA2B,EAAE,aAAa,cAAc;AAErE,MAAa,kBAAkB;AAC/B,MAAa,oBAAoB;AACjC,MAAa,qBAAqB;AAClC,MAAa,mBAAmB,GAAG,qBAAqB;CAAE,OAAO;CAAmB,UAAU;CAAG,KAAK;AAAmB,EAAE;AAC3H,MAAa,wBAAwB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { ARTIFACT_GENERATION_TYPE, currentArtifact, rootfsImageVersion, softwareIndicator, softwareTitleMap };
|
|
1
|
+
import { a as softwareIndicator, i as rootfsManifestVersion, n as currentArtifact, o as softwareTitleMap, r as rootfsImageVersion, t as ARTIFACT_GENERATION_TYPE } from "../constants-CEwun8TL.cjs";
|
|
2
|
+
export { ARTIFACT_GENERATION_TYPE, currentArtifact, rootfsImageVersion, rootfsManifestVersion, softwareIndicator, softwareTitleMap };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { ARTIFACT_GENERATION_TYPE, currentArtifact, rootfsImageVersion, softwareIndicator, softwareTitleMap };
|
|
1
|
+
import { a as softwareIndicator, i as rootfsManifestVersion, n as currentArtifact, o as softwareTitleMap, r as rootfsImageVersion, t as ARTIFACT_GENERATION_TYPE } from "../constants-CEwun8TL.js";
|
|
2
|
+
export { ARTIFACT_GENERATION_TYPE, currentArtifact, rootfsImageVersion, rootfsManifestVersion, softwareIndicator, softwareTitleMap };
|
|
@@ -8,7 +8,8 @@ const softwareTitleMap = { [rootfsImageVersion]: {
|
|
|
8
8
|
priority: 0,
|
|
9
9
|
key: rootfsImageVersion
|
|
10
10
|
} };
|
|
11
|
+
const rootfsManifestVersion = "rootfs-image.update-module.mender-orchestrator-manifest.version";
|
|
11
12
|
//#endregion
|
|
12
|
-
export { ARTIFACT_GENERATION_TYPE, currentArtifact, rootfsImageVersion, softwareIndicator, softwareTitleMap };
|
|
13
|
+
export { ARTIFACT_GENERATION_TYPE, currentArtifact, rootfsImageVersion, rootfsManifestVersion, softwareIndicator, softwareTitleMap };
|
|
13
14
|
|
|
14
15
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":[],"sources":["../../src/releasesSlice/constants.ts"],"sourcesContent":["// Copyright 2019 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.\nexport const ARTIFACT_GENERATION_TYPE = { SINGLE_FILE: 'single_file' };\n\nexport const currentArtifact = 'artifact_name';\nexport const softwareIndicator = '.version';\nexport const rootfsImageVersion = 'rootfs-image.version';\nexport const softwareTitleMap = { [rootfsImageVersion]: { title: 'Root filesystem', priority: 0, key: rootfsImageVersion } };\n"],"mappings":";AAaA,MAAa,2BAA2B,EAAE,aAAa,cAAc;AAErE,MAAa,kBAAkB;AAC/B,MAAa,oBAAoB;AACjC,MAAa,qBAAqB;AAClC,MAAa,mBAAmB,GAAG,qBAAqB;CAAE,OAAO;CAAmB,UAAU;CAAG,KAAK;AAAmB,EAAE"}
|
|
1
|
+
{"version":3,"file":"constants.js","names":[],"sources":["../../src/releasesSlice/constants.ts"],"sourcesContent":["// Copyright 2019 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.\nexport const ARTIFACT_GENERATION_TYPE = { SINGLE_FILE: 'single_file' };\n\nexport const currentArtifact = 'artifact_name';\nexport const softwareIndicator = '.version';\nexport const rootfsImageVersion = 'rootfs-image.version';\nexport const softwareTitleMap = { [rootfsImageVersion]: { title: 'Root filesystem', priority: 0, key: rootfsImageVersion } };\nexport const rootfsManifestVersion = 'rootfs-image.update-module.mender-orchestrator-manifest.version';\n"],"mappings":";AAaA,MAAa,2BAA2B,EAAE,aAAa,cAAc;AAErE,MAAa,kBAAkB;AAC/B,MAAa,oBAAoB;AACjC,MAAa,qBAAqB;AAClC,MAAa,mBAAmB,GAAG,qBAAqB;CAAE,OAAO;CAAmB,UAAU;CAAG,KAAK;AAAmB,EAAE;AAC3H,MAAa,wBAAwB"}
|