@northern.tech/store 0.36.3 → 0.38.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.
Files changed (91) hide show
  1. package/dist/actions.d.cts +2 -1
  2. package/dist/actions.d.ts +2 -1
  3. package/dist/appSlice/index.cjs +1 -0
  4. package/dist/appSlice/index.cjs.map +1 -1
  5. package/dist/appSlice/index.js +1 -0
  6. package/dist/appSlice/index.js.map +1 -1
  7. package/dist/appSlice/selectors.cjs +2 -4
  8. package/dist/appSlice/selectors.cjs.map +1 -1
  9. package/dist/appSlice/selectors.d.cts +4 -51
  10. package/dist/appSlice/selectors.d.ts +4 -51
  11. package/dist/appSlice/selectors.js +3 -4
  12. package/dist/appSlice/selectors.js.map +1 -1
  13. package/dist/appSlice/thunks.d.cts +1 -1
  14. package/dist/appSlice/thunks.d.ts +1 -1
  15. package/dist/commonSelectors.d.cts +10 -2
  16. package/dist/commonSelectors.d.ts +10 -2
  17. package/dist/deploymentsSlice/selectors.d.cts +2 -2
  18. package/dist/deploymentsSlice/selectors.d.ts +2 -2
  19. package/dist/deploymentsSlice/thunks.cjs +1 -0
  20. package/dist/deploymentsSlice/thunks.d.cts +9 -4
  21. package/dist/deploymentsSlice/thunks.d.ts +9 -4
  22. package/dist/deploymentsSlice/thunks.js +2 -2
  23. package/dist/devicesSlice/index.cjs +4 -0
  24. package/dist/devicesSlice/index.cjs.map +1 -1
  25. package/dist/devicesSlice/index.d.cts +1 -1
  26. package/dist/devicesSlice/index.d.ts +1 -1
  27. package/dist/devicesSlice/index.js +4 -0
  28. package/dist/devicesSlice/index.js.map +1 -1
  29. package/dist/devicesSlice/mocks.d.cts +1 -0
  30. package/dist/devicesSlice/mocks.d.ts +1 -0
  31. package/dist/devicesSlice/selectors.cjs +2 -0
  32. package/dist/devicesSlice/selectors.cjs.map +1 -1
  33. package/dist/devicesSlice/selectors.d.cts +4 -3
  34. package/dist/devicesSlice/selectors.d.ts +4 -3
  35. package/dist/devicesSlice/selectors.js +2 -1
  36. package/dist/devicesSlice/selectors.js.map +1 -1
  37. package/dist/devicesSlice/thunks.cjs +2 -0
  38. package/dist/devicesSlice/thunks.d.cts +71 -89
  39. package/dist/devicesSlice/thunks.d.ts +71 -89
  40. package/dist/devicesSlice/thunks.js +2 -2
  41. package/dist/{index-CPdMUfRr.d.ts → index-BqJuhvO_.d.ts} +4 -1
  42. package/dist/{index-DbfM03Gj.d.cts → index-Doc_1P_Y.d.cts} +4 -1
  43. package/dist/locationutils.d.cts +1 -1
  44. package/dist/locationutils.d.ts +1 -1
  45. package/dist/monitorSlice/selectors.d.cts +1 -1
  46. package/dist/monitorSlice/selectors.d.ts +1 -1
  47. package/dist/monitorSlice/thunks.d.cts +2 -2
  48. package/dist/monitorSlice/thunks.d.ts +2 -2
  49. package/dist/onboardingSlice/selectors.d.cts +1 -1
  50. package/dist/onboardingSlice/selectors.d.ts +1 -1
  51. package/dist/onboardingSlice/thunks.d.cts +1 -1
  52. package/dist/onboardingSlice/thunks.d.ts +1 -1
  53. package/dist/organizationSlice/selectors.d.cts +2 -2
  54. package/dist/organizationSlice/selectors.d.ts +2 -2
  55. package/dist/organizationSlice/thunks.d.cts +1 -1
  56. package/dist/organizationSlice/thunks.d.ts +1 -1
  57. package/dist/releasesSlice/selectors.d.cts +2 -2
  58. package/dist/releasesSlice/selectors.d.ts +2 -2
  59. package/dist/releasesSlice/thunks.cjs +8 -0
  60. package/dist/releasesSlice/thunks.cjs.map +1 -1
  61. package/dist/releasesSlice/thunks.d.cts +15 -2
  62. package/dist/releasesSlice/thunks.d.ts +15 -2
  63. package/dist/releasesSlice/thunks.js +8 -1
  64. package/dist/releasesSlice/thunks.js.map +1 -1
  65. package/dist/selectors.cjs +1 -1
  66. package/dist/selectors.d.cts +3 -3
  67. package/dist/selectors.d.ts +3 -3
  68. package/dist/selectors.js +3 -3
  69. package/dist/{store-gkY5P9Uz.d.ts → store-BzrMxxAO.d.ts} +2 -2
  70. package/dist/{store-DBUTT4FF.d.cts → store-xV2zaXAc.d.cts} +2 -2
  71. package/dist/store.d.cts +1 -1
  72. package/dist/store.d.ts +1 -1
  73. package/dist/storehooks.cjs +1 -0
  74. package/dist/storehooks.cjs.map +1 -1
  75. package/dist/storehooks.d.cts +1 -1
  76. package/dist/storehooks.d.ts +1 -1
  77. package/dist/storehooks.js +1 -0
  78. package/dist/storehooks.js.map +1 -1
  79. package/dist/thunks.cjs +46 -36
  80. package/dist/thunks.cjs.map +1 -1
  81. package/dist/thunks.d.cts +4 -4
  82. package/dist/thunks.d.ts +4 -4
  83. package/dist/thunks.js +44 -38
  84. package/dist/thunks.js.map +1 -1
  85. package/dist/usersSlice/selectors.d.cts +2 -2
  86. package/dist/usersSlice/selectors.d.ts +2 -2
  87. package/dist/usersSlice/thunks.d.cts +1 -1
  88. package/dist/usersSlice/thunks.d.ts +1 -1
  89. package/dist/utils.d.cts +1 -1
  90. package/dist/utils.d.ts +1 -1
  91. package/package.json +1 -1
@@ -5,7 +5,7 @@ import { n as ManifestsList, r as Release, s as SoftwareList } from "./index-Zs9
5
5
  import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "./types-B33vKVhi.cjs";
6
6
  import { n as OnboardingSliceType, t as OnboardingApproach } from "./index-DBUt8xVc.cjs";
7
7
  import { i as DeploymentConfig, l as SelectionState, r as DeploymentByStatusKey, t as Deployment } from "./index-EPmsL6Lb.cjs";
8
- import { a as DeviceListState, n as DeviceFilter, r as DeviceGroup, t as Device } from "./index-DbfM03Gj.cjs";
8
+ import { a as DeviceListState, n as DeviceFilter, r as DeviceGroup, t as Device } from "./index-Doc_1P_Y.cjs";
9
9
  import { a as Upload, i as SnackbarContent } from "./index-C8QadAm7.cjs";
10
10
 
11
11
  //#region src/actions.d.ts
@@ -161,6 +161,7 @@ declare const _default: {
161
161
  status: DeviceAuthState;
162
162
  }, "devices/setDevicesCountByStatus">;
163
163
  setDeviceLimits: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("@northern.tech/types/types.gen").DeviceTierLimits, "devices/setDeviceLimits">;
164
+ setTestDeviceCount: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "devices/setTestDeviceCount">;
164
165
  receivedDevice: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
165
166
  id: string;
166
167
  } & Partial<Device>, "devices/receivedDevice">;
package/dist/actions.d.ts CHANGED
@@ -5,7 +5,7 @@ import { n as ManifestsList, r as Release, s as SoftwareList } from "./index-DLD
5
5
  import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "./types-BjtmX60L.js";
6
6
  import { n as OnboardingSliceType, t as OnboardingApproach } from "./index-DBUt8xVc.js";
7
7
  import { i as DeploymentConfig, l as SelectionState, r as DeploymentByStatusKey, t as Deployment } from "./index-Bb4yvvgG.js";
8
- import { a as DeviceListState, n as DeviceFilter, r as DeviceGroup, t as Device } from "./index-CPdMUfRr.js";
8
+ import { a as DeviceListState, n as DeviceFilter, r as DeviceGroup, t as Device } from "./index-BqJuhvO_.js";
9
9
  import { a as Upload, i as SnackbarContent } from "./index-BLvjQfGj.js";
10
10
 
11
11
  //#region src/actions.d.ts
@@ -161,6 +161,7 @@ declare const _default: {
161
161
  status: DeviceAuthState;
162
162
  }, "devices/setDevicesCountByStatus">;
163
163
  setDeviceLimits: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("@northern.tech/types/types.gen").DeviceTierLimits, "devices/setDeviceLimits">;
164
+ setTestDeviceCount: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "devices/setTestDeviceCount">;
164
165
  receivedDevice: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
165
166
  id: string;
166
167
  } & Partial<Device>, "devices/receivedDevice">;
@@ -31,6 +31,7 @@ const initialState = {
31
31
  hasMultitenancy: false,
32
32
  hasDeviceConfig: false,
33
33
  hasDeviceConnect: false,
34
+ hasDeviceFlags: false,
34
35
  hasFeedbackEnabled: false,
35
36
  hasManifestsEnabled: false,
36
37
  hasMonitor: false,
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["SORTING_OPTIONS"],"sources":["../../src/appSlice/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 { SnackbarProps } from '@mui/material';\n\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nimport type { SortOptions } from '../constants';\nimport { SORTING_OPTIONS } from '../constants';\n\nexport const sliceName = 'app';\n\nconst getYesterday = () => {\n const today = new Date();\n today.setDate(today.getDate() - 1);\n return today.toISOString();\n};\n\nexport interface SnackbarContent extends Pick<SnackbarProps, 'action' | 'autoHideDuration' | 'message' | 'open'> {\n preventClickToCopy?: boolean;\n}\n\nexport interface SearchState {\n deviceIds: string[];\n isSearching: boolean;\n page?: number;\n perPage?: number;\n searchTerm: string;\n searchTotal: number;\n sort: SortOptions;\n}\n\nexport interface Upload {\n cancelSource: any;\n inprogress?: boolean;\n name?: string;\n progress: number;\n size?: number;\n}\n\ntype VersionInformation = {\n docsVersion?: string;\n version?: string;\n};\n\nexport type SentryConfig = {\n isReduxEnabled?: string; // no parsing done here as this has to be accessed outside of the store\n location: string;\n replaysSessionSampleRate?: number;\n tracesSampleRate?: number;\n};\n\nexport type AppSliceType = {\n appInitDone: boolean;\n cancelSource: any;\n commit: string;\n demoArtifactLink: string;\n docsVersion: string;\n features: Record<string, boolean>;\n feedbackProbability: number;\n firstLoginAfterSignup: boolean;\n hostAddress: string | null;\n hostedAnnouncement: string;\n newThreshold: string;\n offlineThreshold: string;\n recaptchaSiteKey: string;\n searchState: SearchState;\n sentry: SentryConfig;\n snackbar: SnackbarContent;\n stripeAPIKey: string;\n trackerCode: string;\n uploadsById: Record<string, Upload>;\n versionInformation: VersionInformation;\n yesterday?: string;\n};\n\nexport const initialState: AppSliceType = {\n appInitDone: false,\n cancelSource: undefined,\n commit: '',\n demoArtifactLink: 'https://dgsbl4vditpls.cloudfront.net/mender-demo-artifact.mender',\n hostAddress: null,\n snackbar: {\n action: undefined,\n autoHideDuration: undefined,\n message: '',\n open: false,\n preventClickToCopy: false\n },\n // return boolean rather than organization details\n features: {\n hasAiEnabled: false,\n hasAuditlogs: false,\n hasDeltaProgress: false,\n hasMultitenancy: false,\n hasDeviceConfig: false,\n hasDeviceConnect: false,\n hasFeedbackEnabled: false,\n hasManifestsEnabled: false,\n hasMonitor: false,\n hasMCUEnabled: false,\n isHosted: true,\n isEnterprise: false\n },\n feedbackProbability: 0.3,\n firstLoginAfterSignup: false,\n hostedAnnouncement: '',\n docsVersion: '',\n recaptchaSiteKey: '',\n searchState: {\n deviceIds: [],\n searchTerm: '',\n searchTotal: 0,\n isSearching: false,\n sort: {\n direction: SORTING_OPTIONS.desc\n // key: null,\n // scope: null\n }\n },\n sentry: {\n location: '',\n replaysSessionSampleRate: 0.1,\n tracesSampleRate: 1.0\n },\n stripeAPIKey: '',\n trackerCode: '',\n uploadsById: {\n // id: { progress: 0, cancelSource: undefined }\n },\n newThreshold: getYesterday(),\n offlineThreshold: getYesterday(),\n versionInformation: { docsVersion: '', version: '' },\n yesterday: undefined\n};\n\nexport const appSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n setFeatures: (state, action: PayloadAction<Record<string, boolean>>) => {\n state.features = {\n ...state.features,\n ...action.payload\n };\n },\n setSnackbar: (state, { payload }: PayloadAction<SnackbarContent | string>) => {\n if (typeof payload === 'string' || payload instanceof String) {\n state.snackbar = {\n ...initialState.snackbar,\n message: payload,\n open: !!payload\n };\n return;\n }\n const { message, autoHideDuration, action, preventClickToCopy = false } = payload;\n state.snackbar = {\n message,\n autoHideDuration,\n action,\n preventClickToCopy,\n open: !!message\n };\n },\n setFirstLoginAfterSignup: (state, action: PayloadAction<boolean>) => {\n state.firstLoginAfterSignup = action.payload;\n },\n setAnnouncement: (state, action: PayloadAction<string>) => {\n state.hostedAnnouncement = action.payload;\n },\n setSearchState: (state, action) => {\n state.searchState = {\n ...state.searchState,\n ...action.payload\n };\n },\n setOfflineThreshold: (state, action: PayloadAction<string>) => {\n state.offlineThreshold = action.payload;\n },\n initUpload: (state, action: PayloadAction<{ id: string; upload: Upload }>) => {\n const { id, upload } = action.payload;\n state.uploadsById[id] = upload;\n },\n uploadProgress: (state, action: PayloadAction<{ id: string; progress: number }>) => {\n const { id, progress } = action.payload;\n state.uploadsById[id] = {\n ...state.uploadsById[id],\n progress\n };\n },\n cleanUpUpload: (state, action: PayloadAction<string>) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { [action.payload]: current, ...remainder } = state.uploadsById;\n state.uploadsById = remainder;\n },\n setVersionInformation: (state, action: PayloadAction<VersionInformation>) => {\n state.versionInformation = {\n ...state.versionInformation,\n ...action.payload\n };\n },\n setEnvironmentData: (state, action) => ({ ...state, ...action.payload }),\n setAppInitDone: state => {\n state.appInitDone = true;\n }\n }\n});\n\nexport const actions = appSlice.actions;\nexport default appSlice.reducer;\n"],"mappings":";;;;;;;AAqBA,MAAa,YAAY;AAEzB,MAAM,qBAAqB;CACzB,MAAM,wBAAQ,IAAI,KAAK;CACvB,MAAM,QAAQ,MAAM,QAAQ,IAAI,CAAC;CACjC,OAAO,MAAM,YAAY;AAC3B;AA4DA,MAAa,eAA6B;CACxC,aAAa;CACb,cAAc,KAAA;CACd,QAAQ;CACR,kBAAkB;CAClB,aAAa;CACb,UAAU;EACR,QAAQ,KAAA;EACR,kBAAkB,KAAA;EAClB,SAAS;EACT,MAAM;EACN,oBAAoB;CACtB;CAEA,UAAU;EACR,cAAc;EACd,cAAc;EACd,kBAAkB;EAClB,iBAAiB;EACjB,iBAAiB;EACjB,kBAAkB;EAClB,oBAAoB;EACpB,qBAAqB;EACrB,YAAY;EACZ,eAAe;EACf,UAAU;EACV,cAAc;CAChB;CACA,qBAAqB;CACrB,uBAAuB;CACvB,oBAAoB;CACpB,aAAa;CACb,kBAAkB;CAClB,aAAa;EACX,WAAW,CAAC;EACZ,YAAY;EACZ,aAAa;EACb,aAAa;EACb,MAAM,EACJ,WAAWA,+BAAAA,gBAAgB,KAG7B;CACF;CACA,QAAQ;EACN,UAAU;EACV,0BAA0B;EAC1B,kBAAkB;CACpB;CACA,cAAc;CACd,aAAa;CACb,aAAa,CAEb;CACA,cAAc,aAAa;CAC3B,kBAAkB,aAAa;CAC/B,oBAAoB;EAAE,aAAa;EAAI,SAAS;CAAG;CACnD,WAAW,KAAA;AACb;AAEA,MAAa,YAAA,GAAA,iBAAA,YAAA,CAAuB;CAClC,MAAA;CACA;CACA,UAAU;EACR,cAAc,OAAO,WAAmD;GACtE,MAAM,WAAW;IACf,GAAG,MAAM;IACT,GAAG,OAAO;GACZ;EACF;EACA,cAAc,OAAO,EAAE,cAAuD;GAC5E,IAAI,OAAO,YAAY,YAAY,mBAAmB,QAAQ;IAC5D,MAAM,WAAW;KACf,GAAG,aAAa;KAChB,SAAS;KACT,MAAM,CAAC,CAAC;IACV;IACA;GACF;GACA,MAAM,EAAE,SAAS,kBAAkB,QAAQ,qBAAqB,UAAU;GAC1E,MAAM,WAAW;IACf;IACA;IACA;IACA;IACA,MAAM,CAAC,CAAC;GACV;EACF;EACA,2BAA2B,OAAO,WAAmC;GACnE,MAAM,wBAAwB,OAAO;EACvC;EACA,kBAAkB,OAAO,WAAkC;GACzD,MAAM,qBAAqB,OAAO;EACpC;EACA,iBAAiB,OAAO,WAAW;GACjC,MAAM,cAAc;IAClB,GAAG,MAAM;IACT,GAAG,OAAO;GACZ;EACF;EACA,sBAAsB,OAAO,WAAkC;GAC7D,MAAM,mBAAmB,OAAO;EAClC;EACA,aAAa,OAAO,WAA0D;GAC5E,MAAM,EAAE,IAAI,WAAW,OAAO;GAC9B,MAAM,YAAY,MAAM;EAC1B;EACA,iBAAiB,OAAO,WAA4D;GAClF,MAAM,EAAE,IAAI,aAAa,OAAO;GAChC,MAAM,YAAY,MAAM;IACtB,GAAG,MAAM,YAAY;IACrB;GACF;EACF;EACA,gBAAgB,OAAO,WAAkC;GAEvD,MAAM,GAAG,OAAO,UAAU,SAAS,GAAG,cAAc,MAAM;GAC1D,MAAM,cAAc;EACtB;EACA,wBAAwB,OAAO,WAA8C;GAC3E,MAAM,qBAAqB;IACzB,GAAG,MAAM;IACT,GAAG,OAAO;GACZ;EACF;EACA,qBAAqB,OAAO,YAAY;GAAE,GAAG;GAAO,GAAG,OAAO;EAAQ;EACtE,iBAAgB,UAAS;GACvB,MAAM,cAAc;EACtB;CACF;AACF,CAAC;AAED,MAAa,UAAU,SAAS;AAChC,IAAA,mBAAe,SAAS"}
1
+ {"version":3,"file":"index.cjs","names":["SORTING_OPTIONS"],"sources":["../../src/appSlice/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 { SnackbarProps } from '@mui/material';\n\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nimport type { SortOptions } from '../constants';\nimport { SORTING_OPTIONS } from '../constants';\n\nexport const sliceName = 'app';\n\nconst getYesterday = () => {\n const today = new Date();\n today.setDate(today.getDate() - 1);\n return today.toISOString();\n};\n\nexport interface SnackbarContent extends Pick<SnackbarProps, 'action' | 'autoHideDuration' | 'message' | 'open'> {\n preventClickToCopy?: boolean;\n}\n\nexport interface SearchState {\n deviceIds: string[];\n isSearching: boolean;\n page?: number;\n perPage?: number;\n searchTerm: string;\n searchTotal: number;\n sort: SortOptions;\n}\n\nexport interface Upload {\n cancelSource: any;\n inprogress?: boolean;\n name?: string;\n progress: number;\n size?: number;\n}\n\ntype VersionInformation = {\n docsVersion?: string;\n version?: string;\n};\n\nexport type SentryConfig = {\n isReduxEnabled?: string; // no parsing done here as this has to be accessed outside of the store\n location: string;\n replaysSessionSampleRate?: number;\n tracesSampleRate?: number;\n};\n\nexport type AppSliceType = {\n appInitDone: boolean;\n cancelSource: any;\n commit: string;\n demoArtifactLink: string;\n docsVersion: string;\n features: Record<string, boolean>;\n feedbackProbability: number;\n firstLoginAfterSignup: boolean;\n hostAddress: string | null;\n hostedAnnouncement: string;\n newThreshold: string;\n offlineThreshold: string;\n recaptchaSiteKey: string;\n searchState: SearchState;\n sentry: SentryConfig;\n snackbar: SnackbarContent;\n stripeAPIKey: string;\n trackerCode: string;\n uploadsById: Record<string, Upload>;\n versionInformation: VersionInformation;\n yesterday?: string;\n};\n\nexport const initialState: AppSliceType = {\n appInitDone: false,\n cancelSource: undefined,\n commit: '',\n demoArtifactLink: 'https://dgsbl4vditpls.cloudfront.net/mender-demo-artifact.mender',\n hostAddress: null,\n snackbar: {\n action: undefined,\n autoHideDuration: undefined,\n message: '',\n open: false,\n preventClickToCopy: false\n },\n // return boolean rather than organization details\n features: {\n hasAiEnabled: false,\n hasAuditlogs: false,\n hasDeltaProgress: false,\n hasMultitenancy: false,\n hasDeviceConfig: false,\n hasDeviceConnect: false,\n hasDeviceFlags: false,\n hasFeedbackEnabled: false,\n hasManifestsEnabled: false,\n hasMonitor: false,\n hasMCUEnabled: false,\n isHosted: true,\n isEnterprise: false\n },\n feedbackProbability: 0.3,\n firstLoginAfterSignup: false,\n hostedAnnouncement: '',\n docsVersion: '',\n recaptchaSiteKey: '',\n searchState: {\n deviceIds: [],\n searchTerm: '',\n searchTotal: 0,\n isSearching: false,\n sort: {\n direction: SORTING_OPTIONS.desc\n // key: null,\n // scope: null\n }\n },\n sentry: {\n location: '',\n replaysSessionSampleRate: 0.1,\n tracesSampleRate: 1.0\n },\n stripeAPIKey: '',\n trackerCode: '',\n uploadsById: {\n // id: { progress: 0, cancelSource: undefined }\n },\n newThreshold: getYesterday(),\n offlineThreshold: getYesterday(),\n versionInformation: { docsVersion: '', version: '' },\n yesterday: undefined\n};\n\nexport const appSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n setFeatures: (state, action: PayloadAction<Record<string, boolean>>) => {\n state.features = {\n ...state.features,\n ...action.payload\n };\n },\n setSnackbar: (state, { payload }: PayloadAction<SnackbarContent | string>) => {\n if (typeof payload === 'string' || payload instanceof String) {\n state.snackbar = {\n ...initialState.snackbar,\n message: payload,\n open: !!payload\n };\n return;\n }\n const { message, autoHideDuration, action, preventClickToCopy = false } = payload;\n state.snackbar = {\n message,\n autoHideDuration,\n action,\n preventClickToCopy,\n open: !!message\n };\n },\n setFirstLoginAfterSignup: (state, action: PayloadAction<boolean>) => {\n state.firstLoginAfterSignup = action.payload;\n },\n setAnnouncement: (state, action: PayloadAction<string>) => {\n state.hostedAnnouncement = action.payload;\n },\n setSearchState: (state, action) => {\n state.searchState = {\n ...state.searchState,\n ...action.payload\n };\n },\n setOfflineThreshold: (state, action: PayloadAction<string>) => {\n state.offlineThreshold = action.payload;\n },\n initUpload: (state, action: PayloadAction<{ id: string; upload: Upload }>) => {\n const { id, upload } = action.payload;\n state.uploadsById[id] = upload;\n },\n uploadProgress: (state, action: PayloadAction<{ id: string; progress: number }>) => {\n const { id, progress } = action.payload;\n state.uploadsById[id] = {\n ...state.uploadsById[id],\n progress\n };\n },\n cleanUpUpload: (state, action: PayloadAction<string>) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { [action.payload]: current, ...remainder } = state.uploadsById;\n state.uploadsById = remainder;\n },\n setVersionInformation: (state, action: PayloadAction<VersionInformation>) => {\n state.versionInformation = {\n ...state.versionInformation,\n ...action.payload\n };\n },\n setEnvironmentData: (state, action) => ({ ...state, ...action.payload }),\n setAppInitDone: state => {\n state.appInitDone = true;\n }\n }\n});\n\nexport const actions = appSlice.actions;\nexport default appSlice.reducer;\n"],"mappings":";;;;;;;AAqBA,MAAa,YAAY;AAEzB,MAAM,qBAAqB;CACzB,MAAM,wBAAQ,IAAI,KAAK;CACvB,MAAM,QAAQ,MAAM,QAAQ,IAAI,CAAC;CACjC,OAAO,MAAM,YAAY;AAC3B;AA4DA,MAAa,eAA6B;CACxC,aAAa;CACb,cAAc,KAAA;CACd,QAAQ;CACR,kBAAkB;CAClB,aAAa;CACb,UAAU;EACR,QAAQ,KAAA;EACR,kBAAkB,KAAA;EAClB,SAAS;EACT,MAAM;EACN,oBAAoB;CACtB;CAEA,UAAU;EACR,cAAc;EACd,cAAc;EACd,kBAAkB;EAClB,iBAAiB;EACjB,iBAAiB;EACjB,kBAAkB;EAClB,gBAAgB;EAChB,oBAAoB;EACpB,qBAAqB;EACrB,YAAY;EACZ,eAAe;EACf,UAAU;EACV,cAAc;CAChB;CACA,qBAAqB;CACrB,uBAAuB;CACvB,oBAAoB;CACpB,aAAa;CACb,kBAAkB;CAClB,aAAa;EACX,WAAW,CAAC;EACZ,YAAY;EACZ,aAAa;EACb,aAAa;EACb,MAAM,EACJ,WAAWA,+BAAAA,gBAAgB,KAG7B;CACF;CACA,QAAQ;EACN,UAAU;EACV,0BAA0B;EAC1B,kBAAkB;CACpB;CACA,cAAc;CACd,aAAa;CACb,aAAa,CAEb;CACA,cAAc,aAAa;CAC3B,kBAAkB,aAAa;CAC/B,oBAAoB;EAAE,aAAa;EAAI,SAAS;CAAG;CACnD,WAAW,KAAA;AACb;AAEA,MAAa,YAAA,GAAA,iBAAA,YAAA,CAAuB;CAClC,MAAA;CACA;CACA,UAAU;EACR,cAAc,OAAO,WAAmD;GACtE,MAAM,WAAW;IACf,GAAG,MAAM;IACT,GAAG,OAAO;GACZ;EACF;EACA,cAAc,OAAO,EAAE,cAAuD;GAC5E,IAAI,OAAO,YAAY,YAAY,mBAAmB,QAAQ;IAC5D,MAAM,WAAW;KACf,GAAG,aAAa;KAChB,SAAS;KACT,MAAM,CAAC,CAAC;IACV;IACA;GACF;GACA,MAAM,EAAE,SAAS,kBAAkB,QAAQ,qBAAqB,UAAU;GAC1E,MAAM,WAAW;IACf;IACA;IACA;IACA;IACA,MAAM,CAAC,CAAC;GACV;EACF;EACA,2BAA2B,OAAO,WAAmC;GACnE,MAAM,wBAAwB,OAAO;EACvC;EACA,kBAAkB,OAAO,WAAkC;GACzD,MAAM,qBAAqB,OAAO;EACpC;EACA,iBAAiB,OAAO,WAAW;GACjC,MAAM,cAAc;IAClB,GAAG,MAAM;IACT,GAAG,OAAO;GACZ;EACF;EACA,sBAAsB,OAAO,WAAkC;GAC7D,MAAM,mBAAmB,OAAO;EAClC;EACA,aAAa,OAAO,WAA0D;GAC5E,MAAM,EAAE,IAAI,WAAW,OAAO;GAC9B,MAAM,YAAY,MAAM;EAC1B;EACA,iBAAiB,OAAO,WAA4D;GAClF,MAAM,EAAE,IAAI,aAAa,OAAO;GAChC,MAAM,YAAY,MAAM;IACtB,GAAG,MAAM,YAAY;IACrB;GACF;EACF;EACA,gBAAgB,OAAO,WAAkC;GAEvD,MAAM,GAAG,OAAO,UAAU,SAAS,GAAG,cAAc,MAAM;GAC1D,MAAM,cAAc;EACtB;EACA,wBAAwB,OAAO,WAA8C;GAC3E,MAAM,qBAAqB;IACzB,GAAG,MAAM;IACT,GAAG,OAAO;GACZ;EACF;EACA,qBAAqB,OAAO,YAAY;GAAE,GAAG;GAAO,GAAG,OAAO;EAAQ;EACtE,iBAAgB,UAAS;GACvB,MAAM,cAAc;EACtB;CACF;AACF,CAAC;AAED,MAAa,UAAU,SAAS;AAChC,IAAA,mBAAe,SAAS"}
@@ -27,6 +27,7 @@ const initialState = {
27
27
  hasMultitenancy: false,
28
28
  hasDeviceConfig: false,
29
29
  hasDeviceConnect: false,
30
+ hasDeviceFlags: false,
30
31
  hasFeedbackEnabled: false,
31
32
  hasManifestsEnabled: false,
32
33
  hasMonitor: false,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/appSlice/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 { SnackbarProps } from '@mui/material';\n\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nimport type { SortOptions } from '../constants';\nimport { SORTING_OPTIONS } from '../constants';\n\nexport const sliceName = 'app';\n\nconst getYesterday = () => {\n const today = new Date();\n today.setDate(today.getDate() - 1);\n return today.toISOString();\n};\n\nexport interface SnackbarContent extends Pick<SnackbarProps, 'action' | 'autoHideDuration' | 'message' | 'open'> {\n preventClickToCopy?: boolean;\n}\n\nexport interface SearchState {\n deviceIds: string[];\n isSearching: boolean;\n page?: number;\n perPage?: number;\n searchTerm: string;\n searchTotal: number;\n sort: SortOptions;\n}\n\nexport interface Upload {\n cancelSource: any;\n inprogress?: boolean;\n name?: string;\n progress: number;\n size?: number;\n}\n\ntype VersionInformation = {\n docsVersion?: string;\n version?: string;\n};\n\nexport type SentryConfig = {\n isReduxEnabled?: string; // no parsing done here as this has to be accessed outside of the store\n location: string;\n replaysSessionSampleRate?: number;\n tracesSampleRate?: number;\n};\n\nexport type AppSliceType = {\n appInitDone: boolean;\n cancelSource: any;\n commit: string;\n demoArtifactLink: string;\n docsVersion: string;\n features: Record<string, boolean>;\n feedbackProbability: number;\n firstLoginAfterSignup: boolean;\n hostAddress: string | null;\n hostedAnnouncement: string;\n newThreshold: string;\n offlineThreshold: string;\n recaptchaSiteKey: string;\n searchState: SearchState;\n sentry: SentryConfig;\n snackbar: SnackbarContent;\n stripeAPIKey: string;\n trackerCode: string;\n uploadsById: Record<string, Upload>;\n versionInformation: VersionInformation;\n yesterday?: string;\n};\n\nexport const initialState: AppSliceType = {\n appInitDone: false,\n cancelSource: undefined,\n commit: '',\n demoArtifactLink: 'https://dgsbl4vditpls.cloudfront.net/mender-demo-artifact.mender',\n hostAddress: null,\n snackbar: {\n action: undefined,\n autoHideDuration: undefined,\n message: '',\n open: false,\n preventClickToCopy: false\n },\n // return boolean rather than organization details\n features: {\n hasAiEnabled: false,\n hasAuditlogs: false,\n hasDeltaProgress: false,\n hasMultitenancy: false,\n hasDeviceConfig: false,\n hasDeviceConnect: false,\n hasFeedbackEnabled: false,\n hasManifestsEnabled: false,\n hasMonitor: false,\n hasMCUEnabled: false,\n isHosted: true,\n isEnterprise: false\n },\n feedbackProbability: 0.3,\n firstLoginAfterSignup: false,\n hostedAnnouncement: '',\n docsVersion: '',\n recaptchaSiteKey: '',\n searchState: {\n deviceIds: [],\n searchTerm: '',\n searchTotal: 0,\n isSearching: false,\n sort: {\n direction: SORTING_OPTIONS.desc\n // key: null,\n // scope: null\n }\n },\n sentry: {\n location: '',\n replaysSessionSampleRate: 0.1,\n tracesSampleRate: 1.0\n },\n stripeAPIKey: '',\n trackerCode: '',\n uploadsById: {\n // id: { progress: 0, cancelSource: undefined }\n },\n newThreshold: getYesterday(),\n offlineThreshold: getYesterday(),\n versionInformation: { docsVersion: '', version: '' },\n yesterday: undefined\n};\n\nexport const appSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n setFeatures: (state, action: PayloadAction<Record<string, boolean>>) => {\n state.features = {\n ...state.features,\n ...action.payload\n };\n },\n setSnackbar: (state, { payload }: PayloadAction<SnackbarContent | string>) => {\n if (typeof payload === 'string' || payload instanceof String) {\n state.snackbar = {\n ...initialState.snackbar,\n message: payload,\n open: !!payload\n };\n return;\n }\n const { message, autoHideDuration, action, preventClickToCopy = false } = payload;\n state.snackbar = {\n message,\n autoHideDuration,\n action,\n preventClickToCopy,\n open: !!message\n };\n },\n setFirstLoginAfterSignup: (state, action: PayloadAction<boolean>) => {\n state.firstLoginAfterSignup = action.payload;\n },\n setAnnouncement: (state, action: PayloadAction<string>) => {\n state.hostedAnnouncement = action.payload;\n },\n setSearchState: (state, action) => {\n state.searchState = {\n ...state.searchState,\n ...action.payload\n };\n },\n setOfflineThreshold: (state, action: PayloadAction<string>) => {\n state.offlineThreshold = action.payload;\n },\n initUpload: (state, action: PayloadAction<{ id: string; upload: Upload }>) => {\n const { id, upload } = action.payload;\n state.uploadsById[id] = upload;\n },\n uploadProgress: (state, action: PayloadAction<{ id: string; progress: number }>) => {\n const { id, progress } = action.payload;\n state.uploadsById[id] = {\n ...state.uploadsById[id],\n progress\n };\n },\n cleanUpUpload: (state, action: PayloadAction<string>) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { [action.payload]: current, ...remainder } = state.uploadsById;\n state.uploadsById = remainder;\n },\n setVersionInformation: (state, action: PayloadAction<VersionInformation>) => {\n state.versionInformation = {\n ...state.versionInformation,\n ...action.payload\n };\n },\n setEnvironmentData: (state, action) => ({ ...state, ...action.payload }),\n setAppInitDone: state => {\n state.appInitDone = true;\n }\n }\n});\n\nexport const actions = appSlice.actions;\nexport default appSlice.reducer;\n"],"mappings":";;;AAqBA,MAAa,YAAY;AAEzB,MAAM,qBAAqB;CACzB,MAAM,wBAAQ,IAAI,KAAK;CACvB,MAAM,QAAQ,MAAM,QAAQ,IAAI,CAAC;CACjC,OAAO,MAAM,YAAY;AAC3B;AA4DA,MAAa,eAA6B;CACxC,aAAa;CACb,cAAc,KAAA;CACd,QAAQ;CACR,kBAAkB;CAClB,aAAa;CACb,UAAU;EACR,QAAQ,KAAA;EACR,kBAAkB,KAAA;EAClB,SAAS;EACT,MAAM;EACN,oBAAoB;CACtB;CAEA,UAAU;EACR,cAAc;EACd,cAAc;EACd,kBAAkB;EAClB,iBAAiB;EACjB,iBAAiB;EACjB,kBAAkB;EAClB,oBAAoB;EACpB,qBAAqB;EACrB,YAAY;EACZ,eAAe;EACf,UAAU;EACV,cAAc;CAChB;CACA,qBAAqB;CACrB,uBAAuB;CACvB,oBAAoB;CACpB,aAAa;CACb,kBAAkB;CAClB,aAAa;EACX,WAAW,CAAC;EACZ,YAAY;EACZ,aAAa;EACb,aAAa;EACb,MAAM,EACJ,WAAW,gBAAgB,KAG7B;CACF;CACA,QAAQ;EACN,UAAU;EACV,0BAA0B;EAC1B,kBAAkB;CACpB;CACA,cAAc;CACd,aAAa;CACb,aAAa,CAEb;CACA,cAAc,aAAa;CAC3B,kBAAkB,aAAa;CAC/B,oBAAoB;EAAE,aAAa;EAAI,SAAS;CAAG;CACnD,WAAW,KAAA;AACb;AAEA,MAAa,WAAW,YAAY;CAClC,MAAA;CACA;CACA,UAAU;EACR,cAAc,OAAO,WAAmD;GACtE,MAAM,WAAW;IACf,GAAG,MAAM;IACT,GAAG,OAAO;GACZ;EACF;EACA,cAAc,OAAO,EAAE,cAAuD;GAC5E,IAAI,OAAO,YAAY,YAAY,mBAAmB,QAAQ;IAC5D,MAAM,WAAW;KACf,GAAG,aAAa;KAChB,SAAS;KACT,MAAM,CAAC,CAAC;IACV;IACA;GACF;GACA,MAAM,EAAE,SAAS,kBAAkB,QAAQ,qBAAqB,UAAU;GAC1E,MAAM,WAAW;IACf;IACA;IACA;IACA;IACA,MAAM,CAAC,CAAC;GACV;EACF;EACA,2BAA2B,OAAO,WAAmC;GACnE,MAAM,wBAAwB,OAAO;EACvC;EACA,kBAAkB,OAAO,WAAkC;GACzD,MAAM,qBAAqB,OAAO;EACpC;EACA,iBAAiB,OAAO,WAAW;GACjC,MAAM,cAAc;IAClB,GAAG,MAAM;IACT,GAAG,OAAO;GACZ;EACF;EACA,sBAAsB,OAAO,WAAkC;GAC7D,MAAM,mBAAmB,OAAO;EAClC;EACA,aAAa,OAAO,WAA0D;GAC5E,MAAM,EAAE,IAAI,WAAW,OAAO;GAC9B,MAAM,YAAY,MAAM;EAC1B;EACA,iBAAiB,OAAO,WAA4D;GAClF,MAAM,EAAE,IAAI,aAAa,OAAO;GAChC,MAAM,YAAY,MAAM;IACtB,GAAG,MAAM,YAAY;IACrB;GACF;EACF;EACA,gBAAgB,OAAO,WAAkC;GAEvD,MAAM,GAAG,OAAO,UAAU,SAAS,GAAG,cAAc,MAAM;GAC1D,MAAM,cAAc;EACtB;EACA,wBAAwB,OAAO,WAA8C;GAC3E,MAAM,qBAAqB;IACzB,GAAG,MAAM;IACT,GAAG,OAAO;GACZ;EACF;EACA,qBAAqB,OAAO,YAAY;GAAE,GAAG;GAAO,GAAG,OAAO;EAAQ;EACtE,iBAAgB,UAAS;GACvB,MAAM,cAAc;EACtB;CACF;AACF,CAAC;AAED,MAAa,UAAU,SAAS;AAChC,IAAA,mBAAe,SAAS"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/appSlice/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 { SnackbarProps } from '@mui/material';\n\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nimport type { SortOptions } from '../constants';\nimport { SORTING_OPTIONS } from '../constants';\n\nexport const sliceName = 'app';\n\nconst getYesterday = () => {\n const today = new Date();\n today.setDate(today.getDate() - 1);\n return today.toISOString();\n};\n\nexport interface SnackbarContent extends Pick<SnackbarProps, 'action' | 'autoHideDuration' | 'message' | 'open'> {\n preventClickToCopy?: boolean;\n}\n\nexport interface SearchState {\n deviceIds: string[];\n isSearching: boolean;\n page?: number;\n perPage?: number;\n searchTerm: string;\n searchTotal: number;\n sort: SortOptions;\n}\n\nexport interface Upload {\n cancelSource: any;\n inprogress?: boolean;\n name?: string;\n progress: number;\n size?: number;\n}\n\ntype VersionInformation = {\n docsVersion?: string;\n version?: string;\n};\n\nexport type SentryConfig = {\n isReduxEnabled?: string; // no parsing done here as this has to be accessed outside of the store\n location: string;\n replaysSessionSampleRate?: number;\n tracesSampleRate?: number;\n};\n\nexport type AppSliceType = {\n appInitDone: boolean;\n cancelSource: any;\n commit: string;\n demoArtifactLink: string;\n docsVersion: string;\n features: Record<string, boolean>;\n feedbackProbability: number;\n firstLoginAfterSignup: boolean;\n hostAddress: string | null;\n hostedAnnouncement: string;\n newThreshold: string;\n offlineThreshold: string;\n recaptchaSiteKey: string;\n searchState: SearchState;\n sentry: SentryConfig;\n snackbar: SnackbarContent;\n stripeAPIKey: string;\n trackerCode: string;\n uploadsById: Record<string, Upload>;\n versionInformation: VersionInformation;\n yesterday?: string;\n};\n\nexport const initialState: AppSliceType = {\n appInitDone: false,\n cancelSource: undefined,\n commit: '',\n demoArtifactLink: 'https://dgsbl4vditpls.cloudfront.net/mender-demo-artifact.mender',\n hostAddress: null,\n snackbar: {\n action: undefined,\n autoHideDuration: undefined,\n message: '',\n open: false,\n preventClickToCopy: false\n },\n // return boolean rather than organization details\n features: {\n hasAiEnabled: false,\n hasAuditlogs: false,\n hasDeltaProgress: false,\n hasMultitenancy: false,\n hasDeviceConfig: false,\n hasDeviceConnect: false,\n hasDeviceFlags: false,\n hasFeedbackEnabled: false,\n hasManifestsEnabled: false,\n hasMonitor: false,\n hasMCUEnabled: false,\n isHosted: true,\n isEnterprise: false\n },\n feedbackProbability: 0.3,\n firstLoginAfterSignup: false,\n hostedAnnouncement: '',\n docsVersion: '',\n recaptchaSiteKey: '',\n searchState: {\n deviceIds: [],\n searchTerm: '',\n searchTotal: 0,\n isSearching: false,\n sort: {\n direction: SORTING_OPTIONS.desc\n // key: null,\n // scope: null\n }\n },\n sentry: {\n location: '',\n replaysSessionSampleRate: 0.1,\n tracesSampleRate: 1.0\n },\n stripeAPIKey: '',\n trackerCode: '',\n uploadsById: {\n // id: { progress: 0, cancelSource: undefined }\n },\n newThreshold: getYesterday(),\n offlineThreshold: getYesterday(),\n versionInformation: { docsVersion: '', version: '' },\n yesterday: undefined\n};\n\nexport const appSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n setFeatures: (state, action: PayloadAction<Record<string, boolean>>) => {\n state.features = {\n ...state.features,\n ...action.payload\n };\n },\n setSnackbar: (state, { payload }: PayloadAction<SnackbarContent | string>) => {\n if (typeof payload === 'string' || payload instanceof String) {\n state.snackbar = {\n ...initialState.snackbar,\n message: payload,\n open: !!payload\n };\n return;\n }\n const { message, autoHideDuration, action, preventClickToCopy = false } = payload;\n state.snackbar = {\n message,\n autoHideDuration,\n action,\n preventClickToCopy,\n open: !!message\n };\n },\n setFirstLoginAfterSignup: (state, action: PayloadAction<boolean>) => {\n state.firstLoginAfterSignup = action.payload;\n },\n setAnnouncement: (state, action: PayloadAction<string>) => {\n state.hostedAnnouncement = action.payload;\n },\n setSearchState: (state, action) => {\n state.searchState = {\n ...state.searchState,\n ...action.payload\n };\n },\n setOfflineThreshold: (state, action: PayloadAction<string>) => {\n state.offlineThreshold = action.payload;\n },\n initUpload: (state, action: PayloadAction<{ id: string; upload: Upload }>) => {\n const { id, upload } = action.payload;\n state.uploadsById[id] = upload;\n },\n uploadProgress: (state, action: PayloadAction<{ id: string; progress: number }>) => {\n const { id, progress } = action.payload;\n state.uploadsById[id] = {\n ...state.uploadsById[id],\n progress\n };\n },\n cleanUpUpload: (state, action: PayloadAction<string>) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { [action.payload]: current, ...remainder } = state.uploadsById;\n state.uploadsById = remainder;\n },\n setVersionInformation: (state, action: PayloadAction<VersionInformation>) => {\n state.versionInformation = {\n ...state.versionInformation,\n ...action.payload\n };\n },\n setEnvironmentData: (state, action) => ({ ...state, ...action.payload }),\n setAppInitDone: state => {\n state.appInitDone = true;\n }\n }\n});\n\nexport const actions = appSlice.actions;\nexport default appSlice.reducer;\n"],"mappings":";;;AAqBA,MAAa,YAAY;AAEzB,MAAM,qBAAqB;CACzB,MAAM,wBAAQ,IAAI,KAAK;CACvB,MAAM,QAAQ,MAAM,QAAQ,IAAI,CAAC;CACjC,OAAO,MAAM,YAAY;AAC3B;AA4DA,MAAa,eAA6B;CACxC,aAAa;CACb,cAAc,KAAA;CACd,QAAQ;CACR,kBAAkB;CAClB,aAAa;CACb,UAAU;EACR,QAAQ,KAAA;EACR,kBAAkB,KAAA;EAClB,SAAS;EACT,MAAM;EACN,oBAAoB;CACtB;CAEA,UAAU;EACR,cAAc;EACd,cAAc;EACd,kBAAkB;EAClB,iBAAiB;EACjB,iBAAiB;EACjB,kBAAkB;EAClB,gBAAgB;EAChB,oBAAoB;EACpB,qBAAqB;EACrB,YAAY;EACZ,eAAe;EACf,UAAU;EACV,cAAc;CAChB;CACA,qBAAqB;CACrB,uBAAuB;CACvB,oBAAoB;CACpB,aAAa;CACb,kBAAkB;CAClB,aAAa;EACX,WAAW,CAAC;EACZ,YAAY;EACZ,aAAa;EACb,aAAa;EACb,MAAM,EACJ,WAAW,gBAAgB,KAG7B;CACF;CACA,QAAQ;EACN,UAAU;EACV,0BAA0B;EAC1B,kBAAkB;CACpB;CACA,cAAc;CACd,aAAa;CACb,aAAa,CAEb;CACA,cAAc,aAAa;CAC3B,kBAAkB,aAAa;CAC/B,oBAAoB;EAAE,aAAa;EAAI,SAAS;CAAG;CACnD,WAAW,KAAA;AACb;AAEA,MAAa,WAAW,YAAY;CAClC,MAAA;CACA;CACA,UAAU;EACR,cAAc,OAAO,WAAmD;GACtE,MAAM,WAAW;IACf,GAAG,MAAM;IACT,GAAG,OAAO;GACZ;EACF;EACA,cAAc,OAAO,EAAE,cAAuD;GAC5E,IAAI,OAAO,YAAY,YAAY,mBAAmB,QAAQ;IAC5D,MAAM,WAAW;KACf,GAAG,aAAa;KAChB,SAAS;KACT,MAAM,CAAC,CAAC;IACV;IACA;GACF;GACA,MAAM,EAAE,SAAS,kBAAkB,QAAQ,qBAAqB,UAAU;GAC1E,MAAM,WAAW;IACf;IACA;IACA;IACA;IACA,MAAM,CAAC,CAAC;GACV;EACF;EACA,2BAA2B,OAAO,WAAmC;GACnE,MAAM,wBAAwB,OAAO;EACvC;EACA,kBAAkB,OAAO,WAAkC;GACzD,MAAM,qBAAqB,OAAO;EACpC;EACA,iBAAiB,OAAO,WAAW;GACjC,MAAM,cAAc;IAClB,GAAG,MAAM;IACT,GAAG,OAAO;GACZ;EACF;EACA,sBAAsB,OAAO,WAAkC;GAC7D,MAAM,mBAAmB,OAAO;EAClC;EACA,aAAa,OAAO,WAA0D;GAC5E,MAAM,EAAE,IAAI,WAAW,OAAO;GAC9B,MAAM,YAAY,MAAM;EAC1B;EACA,iBAAiB,OAAO,WAA4D;GAClF,MAAM,EAAE,IAAI,aAAa,OAAO;GAChC,MAAM,YAAY,MAAM;IACtB,GAAG,MAAM,YAAY;IACrB;GACF;EACF;EACA,gBAAgB,OAAO,WAAkC;GAEvD,MAAM,GAAG,OAAO,UAAU,SAAS,GAAG,cAAc,MAAM;GAC1D,MAAM,cAAc;EACtB;EACA,wBAAwB,OAAO,WAA8C;GAC3E,MAAM,qBAAqB;IACzB,GAAG,MAAM;IACT,GAAG,OAAO;GACZ;EACF;EACA,qBAAqB,OAAO,YAAY;GAAE,GAAG;GAAO,GAAG,OAAO;EAAQ;EACtE,iBAAgB,UAAS;GACvB,MAAM,cAAc;EACtB;CACF;AACF,CAAC;AAED,MAAa,UAAU,SAAS;AAChC,IAAA,mBAAe,SAAS"}
@@ -4,7 +4,7 @@ let _northern_tech_utils_helpers = require("@northern.tech/utils/helpers");
4
4
  //#region src/appSlice/selectors.ts
5
5
  const getDocsVersion = (state) => state.app.docsVersion;
6
6
  const getFeatures = (state) => state.app.features;
7
- const getFullVersionInformation = (state) => state.app.versionInformation;
7
+ const getVersionInformation = (state) => state.app.versionInformation;
8
8
  const getSearchState = (state) => state.app.searchState;
9
9
  const getUploads = (state) => state.app.uploadsById;
10
10
  const getSnackbar = (state) => state.app.snackbar;
@@ -20,15 +20,13 @@ const getFeedbackProbability = (state) => state.app.feedbackProbability;
20
20
  const getAppInitDone = (state) => state.app.appInitDone;
21
21
  const getIsUploading = (0, _reduxjs_toolkit.createSelector)([getUploads], (uploadsById) => !!Object.keys(uploadsById).length);
22
22
  const getSearchedDevices = (0, _reduxjs_toolkit.createSelector)([getSearchState], ({ deviceIds }) => deviceIds);
23
- const getVersionInformation = (0, _reduxjs_toolkit.createSelector)([getFullVersionInformation, getFeatures], ({ version, ...remainder }, { isHosted }) => isHosted && version !== "next" ? remainder : { ...remainder });
24
- const getIsPreview = (0, _reduxjs_toolkit.createSelector)([getFullVersionInformation], ({ version }) => (0, _northern_tech_utils_helpers.versionCompare)(version, "next") > -1);
23
+ const getIsPreview = (0, _reduxjs_toolkit.createSelector)([getVersionInformation], ({ version }) => (0, _northern_tech_utils_helpers.versionCompare)(version, "next") > -1);
25
24
  //#endregion
26
25
  exports.getAppInitDone = getAppInitDone;
27
26
  exports.getCommit = getCommit;
28
27
  exports.getDocsVersion = getDocsVersion;
29
28
  exports.getFeatures = getFeatures;
30
29
  exports.getFeedbackProbability = getFeedbackProbability;
31
- exports.getFullVersionInformation = getFullVersionInformation;
32
30
  exports.getHostAddress = getHostAddress;
33
31
  exports.getHostedAnnouncement = getHostedAnnouncement;
34
32
  exports.getIsFirstLogin = getIsFirstLogin;
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.cjs","names":[],"sources":["../../src/appSlice/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 { versionCompare } from '@northern.tech/utils/helpers';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { RootState } from '../store';\n\nexport const getDocsVersion = (state: RootState) => state.app.docsVersion;\nexport const getFeatures = (state: RootState) => state.app.features;\nexport const getFullVersionInformation = (state: RootState) => state.app.versionInformation;\nexport const getSearchState = (state: RootState) => state.app.searchState;\nexport const getUploads = (state: RootState) => state.app.uploadsById;\nexport const getSnackbar = (state: RootState) => state.app.snackbar;\nexport const getHostAddress = (state: RootState) => state.app.hostAddress;\nexport const getHostedAnnouncement = (state: RootState) => state.app.hostedAnnouncement;\nexport const getRecaptchaKey = (state: RootState) => state.app.recaptchaSiteKey;\nexport const getStripeKey = (state: RootState) => state.app.stripeAPIKey;\nexport const getTrackerCode = (state: RootState) => state.app.trackerCode;\nexport const getSentryConfig = (state: RootState) => state.app.sentry;\nexport const getCommit = (state: RootState) => state.app.commit;\nexport const getIsFirstLogin = (state: RootState) => state.app.firstLoginAfterSignup;\nexport const getFeedbackProbability = (state: RootState) => state.app.feedbackProbability;\nexport const getAppInitDone = (state: RootState) => state.app.appInitDone;\n\nexport const getIsUploading = createSelector([getUploads], uploadsById => !!Object.keys(uploadsById).length);\nexport const getSearchedDevices = createSelector([getSearchState], ({ deviceIds }) => deviceIds);\nexport const getVersionInformation = createSelector([getFullVersionInformation, getFeatures], ({ version, ...remainder }, { isHosted }) =>\n isHosted && version !== 'next' ? remainder : { ...remainder }\n);\nexport const getIsPreview = createSelector([getFullVersionInformation], ({ version }) => versionCompare(version, 'next') > -1);\n"],"mappings":";;;;AAkBA,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,eAAe,UAAqB,MAAM,IAAI;AAC3D,MAAa,6BAA6B,UAAqB,MAAM,IAAI;AACzE,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,cAAc,UAAqB,MAAM,IAAI;AAC1D,MAAa,eAAe,UAAqB,MAAM,IAAI;AAC3D,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,yBAAyB,UAAqB,MAAM,IAAI;AACrE,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,gBAAgB,UAAqB,MAAM,IAAI;AAC5D,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,aAAa,UAAqB,MAAM,IAAI;AACzD,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,0BAA0B,UAAqB,MAAM,IAAI;AACtE,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAE9D,MAAa,kBAAA,GAAA,iBAAA,eAAA,CAAgC,CAAC,UAAU,IAAG,gBAAe,CAAC,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,MAAM;AAC3G,MAAa,sBAAA,GAAA,iBAAA,eAAA,CAAoC,CAAC,cAAc,IAAI,EAAE,gBAAgB,SAAS;AAC/F,MAAa,yBAAA,GAAA,iBAAA,eAAA,CAAuC,CAAC,2BAA2B,WAAW,IAAI,EAAE,SAAS,GAAG,aAAa,EAAE,eAC1H,YAAY,YAAY,SAAS,YAAY,EAAE,GAAG,UAAU,CAC9D;AACA,MAAa,gBAAA,GAAA,iBAAA,eAAA,CAA8B,CAAC,yBAAyB,IAAI,EAAE,eAAA,GAAA,6BAAA,eAAA,CAA6B,SAAS,MAAM,IAAI,EAAE"}
1
+ {"version":3,"file":"selectors.cjs","names":[],"sources":["../../src/appSlice/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 { versionCompare } from '@northern.tech/utils/helpers';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { RootState } from '../store';\n\nexport const getDocsVersion = (state: RootState) => state.app.docsVersion;\nexport const getFeatures = (state: RootState) => state.app.features;\nexport const getVersionInformation = (state: RootState) => state.app.versionInformation;\nexport const getSearchState = (state: RootState) => state.app.searchState;\nexport const getUploads = (state: RootState) => state.app.uploadsById;\nexport const getSnackbar = (state: RootState) => state.app.snackbar;\nexport const getHostAddress = (state: RootState) => state.app.hostAddress;\nexport const getHostedAnnouncement = (state: RootState) => state.app.hostedAnnouncement;\nexport const getRecaptchaKey = (state: RootState) => state.app.recaptchaSiteKey;\nexport const getStripeKey = (state: RootState) => state.app.stripeAPIKey;\nexport const getTrackerCode = (state: RootState) => state.app.trackerCode;\nexport const getSentryConfig = (state: RootState) => state.app.sentry;\nexport const getCommit = (state: RootState) => state.app.commit;\nexport const getIsFirstLogin = (state: RootState) => state.app.firstLoginAfterSignup;\nexport const getFeedbackProbability = (state: RootState) => state.app.feedbackProbability;\nexport const getAppInitDone = (state: RootState) => state.app.appInitDone;\n\nexport const getIsUploading = createSelector([getUploads], uploadsById => !!Object.keys(uploadsById).length);\nexport const getSearchedDevices = createSelector([getSearchState], ({ deviceIds }) => deviceIds);\n\nexport const getIsPreview = createSelector([getVersionInformation], ({ version }) => versionCompare(version, 'next') > -1);\n"],"mappings":";;;;AAkBA,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,eAAe,UAAqB,MAAM,IAAI;AAC3D,MAAa,yBAAyB,UAAqB,MAAM,IAAI;AACrE,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,cAAc,UAAqB,MAAM,IAAI;AAC1D,MAAa,eAAe,UAAqB,MAAM,IAAI;AAC3D,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,yBAAyB,UAAqB,MAAM,IAAI;AACrE,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,gBAAgB,UAAqB,MAAM,IAAI;AAC5D,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,aAAa,UAAqB,MAAM,IAAI;AACzD,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,0BAA0B,UAAqB,MAAM,IAAI;AACtE,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAE9D,MAAa,kBAAA,GAAA,iBAAA,eAAA,CAAgC,CAAC,UAAU,IAAG,gBAAe,CAAC,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,MAAM;AAC3G,MAAa,sBAAA,GAAA,iBAAA,eAAA,CAAoC,CAAC,cAAc,IAAI,EAAE,gBAAgB,SAAS;AAE/F,MAAa,gBAAA,GAAA,iBAAA,eAAA,CAA8B,CAAC,qBAAqB,IAAI,EAAE,eAAA,GAAA,6BAAA,eAAA,CAA6B,SAAS,MAAM,IAAI,EAAE"}
@@ -2,16 +2,16 @@ import { o as UserSliceType } from "../index-CSk4ENmk.cjs";
2
2
  import { i as ReleaseSliceType } from "../index-Zs9RnVoR.cjs";
3
3
  import { n as OnboardingSliceType } from "../index-DBUt8xVc.cjs";
4
4
  import { o as DeploymentsSliceType } from "../index-EPmsL6Lb.cjs";
5
- import { s as DeviceSliceType } from "../index-DbfM03Gj.cjs";
5
+ import { s as DeviceSliceType } from "../index-Doc_1P_Y.cjs";
6
6
  import { a as Upload, i as SnackbarContent, n as SearchState, r as SentryConfig, t as AppSliceType } from "../index-C8QadAm7.cjs";
7
7
  import { t as MonitorSliceType } from "../index-5Q-iI4EB.cjs";
8
8
  import { t as OrganizationSliceType } from "../index-Bj3OArhr.cjs";
9
- import { r as RootState } from "../store-DBUTT4FF.cjs";
9
+ import { r as RootState } from "../store-xV2zaXAc.cjs";
10
10
 
11
11
  //#region src/appSlice/selectors.d.ts
12
12
  declare const getDocsVersion: (state: RootState) => string;
13
13
  declare const getFeatures: (state: RootState) => Record<string, boolean>;
14
- declare const getFullVersionInformation: (state: RootState) => {
14
+ declare const getVersionInformation: (state: RootState) => {
15
15
  docsVersion?: string;
16
16
  version?: string;
17
17
  };
@@ -88,53 +88,6 @@ declare const getSearchedDevices: ((state: {
88
88
  memoize: typeof import("reselect").weakMapMemoize;
89
89
  argsMemoize: typeof import("reselect").weakMapMemoize;
90
90
  };
91
- declare const getVersionInformation: ((state: {
92
- app: AppSliceType;
93
- devices: DeviceSliceType;
94
- deployments: DeploymentsSliceType;
95
- monitor: MonitorSliceType;
96
- onboarding: OnboardingSliceType;
97
- organization: OrganizationSliceType;
98
- releases: ReleaseSliceType;
99
- users: UserSliceType;
100
- }) => {
101
- docsVersion?: string;
102
- }) & {
103
- clearCache: () => void;
104
- resultsCount: () => number;
105
- resetResultsCount: () => void;
106
- } & {
107
- resultFunc: (resultFuncArgs_0: {
108
- docsVersion?: string;
109
- version?: string;
110
- }, resultFuncArgs_1: Record<string, boolean>) => {
111
- docsVersion?: string;
112
- };
113
- memoizedResultFunc: ((resultFuncArgs_0: {
114
- docsVersion?: string;
115
- version?: string;
116
- }, resultFuncArgs_1: Record<string, boolean>) => {
117
- docsVersion?: string;
118
- }) & {
119
- clearCache: () => void;
120
- resultsCount: () => number;
121
- resetResultsCount: () => void;
122
- };
123
- lastResult: () => {
124
- docsVersion?: string;
125
- };
126
- dependencies: [(state: RootState) => {
127
- docsVersion?: string;
128
- version?: string;
129
- }, (state: RootState) => Record<string, boolean>];
130
- recomputations: () => number;
131
- resetRecomputations: () => void;
132
- dependencyRecomputations: () => number;
133
- resetDependencyRecomputations: () => void;
134
- } & {
135
- memoize: typeof import("reselect").weakMapMemoize;
136
- argsMemoize: typeof import("reselect").weakMapMemoize;
137
- };
138
91
  declare const getIsPreview: ((state: {
139
92
  app: AppSliceType;
140
93
  devices: DeviceSliceType;
@@ -175,5 +128,5 @@ declare const getIsPreview: ((state: {
175
128
  argsMemoize: typeof import("reselect").weakMapMemoize;
176
129
  };
177
130
  //#endregion
178
- export { getAppInitDone, getCommit, getDocsVersion, getFeatures, getFeedbackProbability, getFullVersionInformation, getHostAddress, getHostedAnnouncement, getIsFirstLogin, getIsPreview, getIsUploading, getRecaptchaKey, getSearchState, getSearchedDevices, getSentryConfig, getSnackbar, getStripeKey, getTrackerCode, getUploads, getVersionInformation };
131
+ export { getAppInitDone, getCommit, getDocsVersion, getFeatures, getFeedbackProbability, getHostAddress, getHostedAnnouncement, getIsFirstLogin, getIsPreview, getIsUploading, getRecaptchaKey, getSearchState, getSearchedDevices, getSentryConfig, getSnackbar, getStripeKey, getTrackerCode, getUploads, getVersionInformation };
179
132
  //# sourceMappingURL=selectors.d.cts.map
@@ -2,16 +2,16 @@ import { o as UserSliceType } from "../index-Cf81vLTi.js";
2
2
  import { i as ReleaseSliceType } from "../index-DLDY7bNT.js";
3
3
  import { n as OnboardingSliceType } from "../index-DBUt8xVc.js";
4
4
  import { o as DeploymentsSliceType } from "../index-Bb4yvvgG.js";
5
- import { s as DeviceSliceType } from "../index-CPdMUfRr.js";
5
+ import { s as DeviceSliceType } from "../index-BqJuhvO_.js";
6
6
  import { a as Upload, i as SnackbarContent, n as SearchState, r as SentryConfig, t as AppSliceType } from "../index-BLvjQfGj.js";
7
7
  import { t as MonitorSliceType } from "../index-ByfjrTdH.js";
8
8
  import { t as OrganizationSliceType } from "../index-BBsUj1a8.js";
9
- import { r as RootState } from "../store-gkY5P9Uz.js";
9
+ import { r as RootState } from "../store-BzrMxxAO.js";
10
10
 
11
11
  //#region src/appSlice/selectors.d.ts
12
12
  declare const getDocsVersion: (state: RootState) => string;
13
13
  declare const getFeatures: (state: RootState) => Record<string, boolean>;
14
- declare const getFullVersionInformation: (state: RootState) => {
14
+ declare const getVersionInformation: (state: RootState) => {
15
15
  docsVersion?: string;
16
16
  version?: string;
17
17
  };
@@ -88,53 +88,6 @@ declare const getSearchedDevices: ((state: {
88
88
  memoize: typeof import("reselect").weakMapMemoize;
89
89
  argsMemoize: typeof import("reselect").weakMapMemoize;
90
90
  };
91
- declare const getVersionInformation: ((state: {
92
- app: AppSliceType;
93
- devices: DeviceSliceType;
94
- deployments: DeploymentsSliceType;
95
- monitor: MonitorSliceType;
96
- onboarding: OnboardingSliceType;
97
- organization: OrganizationSliceType;
98
- releases: ReleaseSliceType;
99
- users: UserSliceType;
100
- }) => {
101
- docsVersion?: string;
102
- }) & {
103
- clearCache: () => void;
104
- resultsCount: () => number;
105
- resetResultsCount: () => void;
106
- } & {
107
- resultFunc: (resultFuncArgs_0: {
108
- docsVersion?: string;
109
- version?: string;
110
- }, resultFuncArgs_1: Record<string, boolean>) => {
111
- docsVersion?: string;
112
- };
113
- memoizedResultFunc: ((resultFuncArgs_0: {
114
- docsVersion?: string;
115
- version?: string;
116
- }, resultFuncArgs_1: Record<string, boolean>) => {
117
- docsVersion?: string;
118
- }) & {
119
- clearCache: () => void;
120
- resultsCount: () => number;
121
- resetResultsCount: () => void;
122
- };
123
- lastResult: () => {
124
- docsVersion?: string;
125
- };
126
- dependencies: [(state: RootState) => {
127
- docsVersion?: string;
128
- version?: string;
129
- }, (state: RootState) => Record<string, boolean>];
130
- recomputations: () => number;
131
- resetRecomputations: () => void;
132
- dependencyRecomputations: () => number;
133
- resetDependencyRecomputations: () => void;
134
- } & {
135
- memoize: typeof import("reselect").weakMapMemoize;
136
- argsMemoize: typeof import("reselect").weakMapMemoize;
137
- };
138
91
  declare const getIsPreview: ((state: {
139
92
  app: AppSliceType;
140
93
  devices: DeviceSliceType;
@@ -175,5 +128,5 @@ declare const getIsPreview: ((state: {
175
128
  argsMemoize: typeof import("reselect").weakMapMemoize;
176
129
  };
177
130
  //#endregion
178
- export { getAppInitDone, getCommit, getDocsVersion, getFeatures, getFeedbackProbability, getFullVersionInformation, getHostAddress, getHostedAnnouncement, getIsFirstLogin, getIsPreview, getIsUploading, getRecaptchaKey, getSearchState, getSearchedDevices, getSentryConfig, getSnackbar, getStripeKey, getTrackerCode, getUploads, getVersionInformation };
131
+ export { getAppInitDone, getCommit, getDocsVersion, getFeatures, getFeedbackProbability, getHostAddress, getHostedAnnouncement, getIsFirstLogin, getIsPreview, getIsUploading, getRecaptchaKey, getSearchState, getSearchedDevices, getSentryConfig, getSnackbar, getStripeKey, getTrackerCode, getUploads, getVersionInformation };
179
132
  //# sourceMappingURL=selectors.d.ts.map
@@ -3,7 +3,7 @@ import { versionCompare } from "@northern.tech/utils/helpers";
3
3
  //#region src/appSlice/selectors.ts
4
4
  const getDocsVersion = (state) => state.app.docsVersion;
5
5
  const getFeatures = (state) => state.app.features;
6
- const getFullVersionInformation = (state) => state.app.versionInformation;
6
+ const getVersionInformation = (state) => state.app.versionInformation;
7
7
  const getSearchState = (state) => state.app.searchState;
8
8
  const getUploads = (state) => state.app.uploadsById;
9
9
  const getSnackbar = (state) => state.app.snackbar;
@@ -19,9 +19,8 @@ const getFeedbackProbability = (state) => state.app.feedbackProbability;
19
19
  const getAppInitDone = (state) => state.app.appInitDone;
20
20
  const getIsUploading = createSelector([getUploads], (uploadsById) => !!Object.keys(uploadsById).length);
21
21
  const getSearchedDevices = createSelector([getSearchState], ({ deviceIds }) => deviceIds);
22
- const getVersionInformation = createSelector([getFullVersionInformation, getFeatures], ({ version, ...remainder }, { isHosted }) => isHosted && version !== "next" ? remainder : { ...remainder });
23
- const getIsPreview = createSelector([getFullVersionInformation], ({ version }) => versionCompare(version, "next") > -1);
22
+ const getIsPreview = createSelector([getVersionInformation], ({ version }) => versionCompare(version, "next") > -1);
24
23
  //#endregion
25
- export { getAppInitDone, getCommit, getDocsVersion, getFeatures, getFeedbackProbability, getFullVersionInformation, getHostAddress, getHostedAnnouncement, getIsFirstLogin, getIsPreview, getIsUploading, getRecaptchaKey, getSearchState, getSearchedDevices, getSentryConfig, getSnackbar, getStripeKey, getTrackerCode, getUploads, getVersionInformation };
24
+ export { getAppInitDone, getCommit, getDocsVersion, getFeatures, getFeedbackProbability, getHostAddress, getHostedAnnouncement, getIsFirstLogin, getIsPreview, getIsUploading, getRecaptchaKey, getSearchState, getSearchedDevices, getSentryConfig, getSnackbar, getStripeKey, getTrackerCode, getUploads, getVersionInformation };
26
25
 
27
26
  //# sourceMappingURL=selectors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.js","names":[],"sources":["../../src/appSlice/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 { versionCompare } from '@northern.tech/utils/helpers';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { RootState } from '../store';\n\nexport const getDocsVersion = (state: RootState) => state.app.docsVersion;\nexport const getFeatures = (state: RootState) => state.app.features;\nexport const getFullVersionInformation = (state: RootState) => state.app.versionInformation;\nexport const getSearchState = (state: RootState) => state.app.searchState;\nexport const getUploads = (state: RootState) => state.app.uploadsById;\nexport const getSnackbar = (state: RootState) => state.app.snackbar;\nexport const getHostAddress = (state: RootState) => state.app.hostAddress;\nexport const getHostedAnnouncement = (state: RootState) => state.app.hostedAnnouncement;\nexport const getRecaptchaKey = (state: RootState) => state.app.recaptchaSiteKey;\nexport const getStripeKey = (state: RootState) => state.app.stripeAPIKey;\nexport const getTrackerCode = (state: RootState) => state.app.trackerCode;\nexport const getSentryConfig = (state: RootState) => state.app.sentry;\nexport const getCommit = (state: RootState) => state.app.commit;\nexport const getIsFirstLogin = (state: RootState) => state.app.firstLoginAfterSignup;\nexport const getFeedbackProbability = (state: RootState) => state.app.feedbackProbability;\nexport const getAppInitDone = (state: RootState) => state.app.appInitDone;\n\nexport const getIsUploading = createSelector([getUploads], uploadsById => !!Object.keys(uploadsById).length);\nexport const getSearchedDevices = createSelector([getSearchState], ({ deviceIds }) => deviceIds);\nexport const getVersionInformation = createSelector([getFullVersionInformation, getFeatures], ({ version, ...remainder }, { isHosted }) =>\n isHosted && version !== 'next' ? remainder : { ...remainder }\n);\nexport const getIsPreview = createSelector([getFullVersionInformation], ({ version }) => versionCompare(version, 'next') > -1);\n"],"mappings":";;;AAkBA,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,eAAe,UAAqB,MAAM,IAAI;AAC3D,MAAa,6BAA6B,UAAqB,MAAM,IAAI;AACzE,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,cAAc,UAAqB,MAAM,IAAI;AAC1D,MAAa,eAAe,UAAqB,MAAM,IAAI;AAC3D,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,yBAAyB,UAAqB,MAAM,IAAI;AACrE,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,gBAAgB,UAAqB,MAAM,IAAI;AAC5D,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,aAAa,UAAqB,MAAM,IAAI;AACzD,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,0BAA0B,UAAqB,MAAM,IAAI;AACtE,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAE9D,MAAa,iBAAiB,eAAe,CAAC,UAAU,IAAG,gBAAe,CAAC,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,MAAM;AAC3G,MAAa,qBAAqB,eAAe,CAAC,cAAc,IAAI,EAAE,gBAAgB,SAAS;AAC/F,MAAa,wBAAwB,eAAe,CAAC,2BAA2B,WAAW,IAAI,EAAE,SAAS,GAAG,aAAa,EAAE,eAC1H,YAAY,YAAY,SAAS,YAAY,EAAE,GAAG,UAAU,CAC9D;AACA,MAAa,eAAe,eAAe,CAAC,yBAAyB,IAAI,EAAE,cAAc,eAAe,SAAS,MAAM,IAAI,EAAE"}
1
+ {"version":3,"file":"selectors.js","names":[],"sources":["../../src/appSlice/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 { versionCompare } from '@northern.tech/utils/helpers';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { RootState } from '../store';\n\nexport const getDocsVersion = (state: RootState) => state.app.docsVersion;\nexport const getFeatures = (state: RootState) => state.app.features;\nexport const getVersionInformation = (state: RootState) => state.app.versionInformation;\nexport const getSearchState = (state: RootState) => state.app.searchState;\nexport const getUploads = (state: RootState) => state.app.uploadsById;\nexport const getSnackbar = (state: RootState) => state.app.snackbar;\nexport const getHostAddress = (state: RootState) => state.app.hostAddress;\nexport const getHostedAnnouncement = (state: RootState) => state.app.hostedAnnouncement;\nexport const getRecaptchaKey = (state: RootState) => state.app.recaptchaSiteKey;\nexport const getStripeKey = (state: RootState) => state.app.stripeAPIKey;\nexport const getTrackerCode = (state: RootState) => state.app.trackerCode;\nexport const getSentryConfig = (state: RootState) => state.app.sentry;\nexport const getCommit = (state: RootState) => state.app.commit;\nexport const getIsFirstLogin = (state: RootState) => state.app.firstLoginAfterSignup;\nexport const getFeedbackProbability = (state: RootState) => state.app.feedbackProbability;\nexport const getAppInitDone = (state: RootState) => state.app.appInitDone;\n\nexport const getIsUploading = createSelector([getUploads], uploadsById => !!Object.keys(uploadsById).length);\nexport const getSearchedDevices = createSelector([getSearchState], ({ deviceIds }) => deviceIds);\n\nexport const getIsPreview = createSelector([getVersionInformation], ({ version }) => versionCompare(version, 'next') > -1);\n"],"mappings":";;;AAkBA,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,eAAe,UAAqB,MAAM,IAAI;AAC3D,MAAa,yBAAyB,UAAqB,MAAM,IAAI;AACrE,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,cAAc,UAAqB,MAAM,IAAI;AAC1D,MAAa,eAAe,UAAqB,MAAM,IAAI;AAC3D,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,yBAAyB,UAAqB,MAAM,IAAI;AACrE,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,gBAAgB,UAAqB,MAAM,IAAI;AAC5D,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,aAAa,UAAqB,MAAM,IAAI;AACzD,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,0BAA0B,UAAqB,MAAM,IAAI;AACtE,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAE9D,MAAa,iBAAiB,eAAe,CAAC,UAAU,IAAG,gBAAe,CAAC,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,MAAM;AAC3G,MAAa,qBAAqB,eAAe,CAAC,cAAc,IAAI,EAAE,gBAAgB,SAAS;AAE/F,MAAa,eAAe,eAAe,CAAC,qBAAqB,IAAI,EAAE,cAAc,eAAe,SAAS,MAAM,IAAI,EAAE"}
@@ -1,5 +1,5 @@
1
1
  import { n as SearchState } from "../index-C8QadAm7.cjs";
2
- import { r as RootState, t as AppDispatch } from "../store-DBUTT4FF.cjs";
2
+ import { r as RootState, t as AppDispatch } from "../store-xV2zaXAc.cjs";
3
3
 
4
4
  //#region src/appSlice/thunks.d.ts
5
5
  declare const setFirstLoginAfterSignup: import("@reduxjs/toolkit").AsyncThunk<void, boolean, {
@@ -1,5 +1,5 @@
1
1
  import { n as SearchState } from "../index-BLvjQfGj.js";
2
- import { r as RootState, t as AppDispatch } from "../store-gkY5P9Uz.js";
2
+ import { r as RootState, t as AppDispatch } from "../store-BzrMxxAO.js";
3
3
 
4
4
  //#region src/appSlice/thunks.d.ts
5
5
  declare const setFirstLoginAfterSignup: import("@reduxjs/toolkit").AsyncThunk<void, boolean, {
@@ -5,11 +5,11 @@ import { i as ReleaseSliceType, r as Release } from "./index-Zs9RnVoR.cjs";
5
5
  import { i as Organization, n as AuditLogSelectionState } from "./types-B33vKVhi.cjs";
6
6
  import { n as OnboardingSliceType, t as OnboardingApproach } from "./index-DBUt8xVc.cjs";
7
7
  import { l as SelectionState, o as DeploymentsSliceType, s as DeviceDeployment, t as Deployment } from "./index-EPmsL6Lb.cjs";
8
- import { c as InventoryAttributes, r as DeviceGroup, s as DeviceSliceType, t as Device } from "./index-DbfM03Gj.cjs";
8
+ import { c as InventoryAttributes, r as DeviceGroup, s as DeviceSliceType, t as Device } from "./index-Doc_1P_Y.cjs";
9
9
  import { t as AppSliceType } from "./index-C8QadAm7.cjs";
10
10
  import { t as MonitorSliceType } from "./index-5Q-iI4EB.cjs";
11
11
  import { t as OrganizationSliceType } from "./index-Bj3OArhr.cjs";
12
- import { r as RootState } from "./store-DBUTT4FF.cjs";
12
+ import { r as RootState } from "./store-xV2zaXAc.cjs";
13
13
  import { AuditLog } from "@northern.tech/types/types.gen";
14
14
 
15
15
  //#region src/commonSelectors.d.ts
@@ -788,6 +788,7 @@ declare const getSelectedDeploymentData: ((state: {
788
788
  decommissioning?: boolean;
789
789
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
790
790
  tier?: "standard" | "micro" | "system";
791
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
791
792
  attributes: InventoryAttributes;
792
793
  identity?: Record<string, string>;
793
794
  monitor?: Record<string, string>;
@@ -839,6 +840,7 @@ declare const getSelectedDeploymentData: ((state: {
839
840
  decommissioning?: boolean;
840
841
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
841
842
  tier?: "standard" | "micro" | "system";
843
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
842
844
  attributes: InventoryAttributes;
843
845
  identity?: Record<string, string>;
844
846
  monitor?: Record<string, string>;
@@ -886,6 +888,7 @@ declare const getSelectedDeploymentData: ((state: {
886
888
  decommissioning?: boolean;
887
889
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
888
890
  tier?: "standard" | "micro" | "system";
891
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
889
892
  attributes: InventoryAttributes;
890
893
  identity?: Record<string, string>;
891
894
  monitor?: Record<string, string>;
@@ -937,6 +940,7 @@ declare const getSelectedDeploymentData: ((state: {
937
940
  decommissioning?: boolean;
938
941
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
939
942
  tier?: "standard" | "micro" | "system";
943
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
940
944
  attributes: InventoryAttributes;
941
945
  identity?: Record<string, string>;
942
946
  monitor?: Record<string, string>;
@@ -1436,6 +1440,7 @@ declare const getAuditlogDevice: ((state: {
1436
1440
  decommissioning?: boolean;
1437
1441
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
1438
1442
  tier?: "standard" | "micro" | "system";
1443
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
1439
1444
  attributes?: InventoryAttributes | undefined;
1440
1445
  identity?: Record<string, string>;
1441
1446
  monitor?: Record<string, string>;
@@ -1473,6 +1478,7 @@ declare const getAuditlogDevice: ((state: {
1473
1478
  decommissioning?: boolean;
1474
1479
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
1475
1480
  tier?: "standard" | "micro" | "system";
1481
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
1476
1482
  attributes?: InventoryAttributes | undefined;
1477
1483
  identity?: Record<string, string>;
1478
1484
  monitor?: Record<string, string>;
@@ -1506,6 +1512,7 @@ declare const getAuditlogDevice: ((state: {
1506
1512
  decommissioning?: boolean;
1507
1513
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
1508
1514
  tier?: "standard" | "micro" | "system";
1515
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
1509
1516
  attributes?: InventoryAttributes | undefined;
1510
1517
  identity?: Record<string, string>;
1511
1518
  monitor?: Record<string, string>;
@@ -1543,6 +1550,7 @@ declare const getAuditlogDevice: ((state: {
1543
1550
  decommissioning?: boolean;
1544
1551
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
1545
1552
  tier?: "standard" | "micro" | "system";
1553
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
1546
1554
  attributes?: InventoryAttributes | undefined;
1547
1555
  identity?: Record<string, string>;
1548
1556
  monitor?: Record<string, string>;
@@ -5,11 +5,11 @@ import { i as ReleaseSliceType, r as Release } from "./index-DLDY7bNT.js";
5
5
  import { i as Organization, n as AuditLogSelectionState } from "./types-BjtmX60L.js";
6
6
  import { n as OnboardingSliceType, t as OnboardingApproach } from "./index-DBUt8xVc.js";
7
7
  import { l as SelectionState, o as DeploymentsSliceType, s as DeviceDeployment, t as Deployment } from "./index-Bb4yvvgG.js";
8
- import { c as InventoryAttributes, r as DeviceGroup, s as DeviceSliceType, t as Device } from "./index-CPdMUfRr.js";
8
+ import { c as InventoryAttributes, r as DeviceGroup, s as DeviceSliceType, t as Device } from "./index-BqJuhvO_.js";
9
9
  import { t as AppSliceType } from "./index-BLvjQfGj.js";
10
10
  import { t as MonitorSliceType } from "./index-ByfjrTdH.js";
11
11
  import { t as OrganizationSliceType } from "./index-BBsUj1a8.js";
12
- import { r as RootState } from "./store-gkY5P9Uz.js";
12
+ import { r as RootState } from "./store-BzrMxxAO.js";
13
13
  import { AuditLog } from "@northern.tech/types/types.gen";
14
14
 
15
15
  //#region src/commonSelectors.d.ts
@@ -788,6 +788,7 @@ declare const getSelectedDeploymentData: ((state: {
788
788
  decommissioning?: boolean;
789
789
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
790
790
  tier?: "standard" | "micro" | "system";
791
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
791
792
  attributes: InventoryAttributes;
792
793
  identity?: Record<string, string>;
793
794
  monitor?: Record<string, string>;
@@ -839,6 +840,7 @@ declare const getSelectedDeploymentData: ((state: {
839
840
  decommissioning?: boolean;
840
841
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
841
842
  tier?: "standard" | "micro" | "system";
843
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
842
844
  attributes: InventoryAttributes;
843
845
  identity?: Record<string, string>;
844
846
  monitor?: Record<string, string>;
@@ -886,6 +888,7 @@ declare const getSelectedDeploymentData: ((state: {
886
888
  decommissioning?: boolean;
887
889
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
888
890
  tier?: "standard" | "micro" | "system";
891
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
889
892
  attributes: InventoryAttributes;
890
893
  identity?: Record<string, string>;
891
894
  monitor?: Record<string, string>;
@@ -937,6 +940,7 @@ declare const getSelectedDeploymentData: ((state: {
937
940
  decommissioning?: boolean;
938
941
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
939
942
  tier?: "standard" | "micro" | "system";
943
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
940
944
  attributes: InventoryAttributes;
941
945
  identity?: Record<string, string>;
942
946
  monitor?: Record<string, string>;
@@ -1436,6 +1440,7 @@ declare const getAuditlogDevice: ((state: {
1436
1440
  decommissioning?: boolean;
1437
1441
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
1438
1442
  tier?: "standard" | "micro" | "system";
1443
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
1439
1444
  attributes?: InventoryAttributes | undefined;
1440
1445
  identity?: Record<string, string>;
1441
1446
  monitor?: Record<string, string>;
@@ -1473,6 +1478,7 @@ declare const getAuditlogDevice: ((state: {
1473
1478
  decommissioning?: boolean;
1474
1479
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
1475
1480
  tier?: "standard" | "micro" | "system";
1481
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
1476
1482
  attributes?: InventoryAttributes | undefined;
1477
1483
  identity?: Record<string, string>;
1478
1484
  monitor?: Record<string, string>;
@@ -1506,6 +1512,7 @@ declare const getAuditlogDevice: ((state: {
1506
1512
  decommissioning?: boolean;
1507
1513
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
1508
1514
  tier?: "standard" | "micro" | "system";
1515
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
1509
1516
  attributes?: InventoryAttributes | undefined;
1510
1517
  identity?: Record<string, string>;
1511
1518
  monitor?: Record<string, string>;
@@ -1543,6 +1550,7 @@ declare const getAuditlogDevice: ((state: {
1543
1550
  decommissioning?: boolean;
1544
1551
  external_id?: import("@northern.tech/types/types.gen").ExternalIdentity;
1545
1552
  tier?: "standard" | "micro" | "system";
1553
+ flags?: import("@northern.tech/types/types.gen").DeviceFlags;
1546
1554
  attributes?: InventoryAttributes | undefined;
1547
1555
  identity?: Record<string, string>;
1548
1556
  monitor?: Record<string, string>;
@@ -2,11 +2,11 @@ import { o as UserSliceType } from "../index-CSk4ENmk.cjs";
2
2
  import { i as ReleaseSliceType } from "../index-Zs9RnVoR.cjs";
3
3
  import { n as OnboardingSliceType } from "../index-DBUt8xVc.cjs";
4
4
  import { l as SelectionState, n as DeploymentByStatus, o as DeploymentsSliceType, t as Deployment } from "../index-EPmsL6Lb.cjs";
5
- import { s as DeviceSliceType } from "../index-DbfM03Gj.cjs";
5
+ import { s as DeviceSliceType } from "../index-Doc_1P_Y.cjs";
6
6
  import { t as AppSliceType } from "../index-C8QadAm7.cjs";
7
7
  import { t as MonitorSliceType } from "../index-5Q-iI4EB.cjs";
8
8
  import { t as OrganizationSliceType } from "../index-Bj3OArhr.cjs";
9
- import { r as RootState } from "../store-DBUTT4FF.cjs";
9
+ import { r as RootState } from "../store-xV2zaXAc.cjs";
10
10
 
11
11
  //#region src/deploymentsSlice/selectors.d.ts
12
12
  declare const getDeploymentsById: (state: RootState) => Record<string, Deployment>;
@@ -2,11 +2,11 @@ import { o as UserSliceType } from "../index-Cf81vLTi.js";
2
2
  import { i as ReleaseSliceType } from "../index-DLDY7bNT.js";
3
3
  import { n as OnboardingSliceType } from "../index-DBUt8xVc.js";
4
4
  import { l as SelectionState, n as DeploymentByStatus, o as DeploymentsSliceType, t as Deployment } from "../index-Bb4yvvgG.js";
5
- import { s as DeviceSliceType } from "../index-CPdMUfRr.js";
5
+ import { s as DeviceSliceType } from "../index-BqJuhvO_.js";
6
6
  import { t as AppSliceType } from "../index-BLvjQfGj.js";
7
7
  import { t as MonitorSliceType } from "../index-ByfjrTdH.js";
8
8
  import { t as OrganizationSliceType } from "../index-BBsUj1a8.js";
9
- import { r as RootState } from "../store-gkY5P9Uz.js";
9
+ import { r as RootState } from "../store-BzrMxxAO.js";
10
10
 
11
11
  //#region src/deploymentsSlice/selectors.d.ts
12
12
  declare const getDeploymentsById: (state: RootState) => Record<string, Deployment>;
@@ -13,4 +13,5 @@ exports.getSingleDeployment = require_thunks.getSingleDeployment;
13
13
  exports.resetDeviceDeployments = require_thunks.resetDeviceDeployments;
14
14
  exports.saveDeltaDeploymentsConfig = require_thunks.saveDeltaDeploymentsConfig;
15
15
  exports.setDeploymentsState = require_thunks.setDeploymentsState;
16
+ exports.transformDeployments = require_thunks.transformDeployments;
16
17
  exports.updateDeploymentControlMap = require_thunks.updateDeploymentControlMap;