@northern.tech/store 0.43.0 → 0.44.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 +1 -1
- package/dist/actions.d.ts +1 -1
- package/dist/appSlice/index.cjs +1 -0
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.js +1 -0
- package/dist/appSlice/index.js.map +1 -1
- package/dist/appSlice/selectors.d.cts +2 -2
- package/dist/appSlice/selectors.d.ts +2 -2
- package/dist/appSlice/thunks.d.cts +1 -1
- package/dist/appSlice/thunks.d.ts +1 -1
- package/dist/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/commonSelectors.d.cts +2 -2
- package/dist/commonSelectors.d.ts +2 -2
- package/dist/deploymentsSlice/selectors.d.cts +2 -2
- package/dist/deploymentsSlice/selectors.d.ts +2 -2
- package/dist/deploymentsSlice/thunks.d.cts +1 -1
- package/dist/deploymentsSlice/thunks.d.ts +1 -1
- package/dist/devicesSlice/selectors.d.cts +2 -2
- package/dist/devicesSlice/selectors.d.ts +2 -2
- package/dist/devicesSlice/thunks.cjs +1 -0
- package/dist/devicesSlice/thunks.d.cts +16 -3
- package/dist/devicesSlice/thunks.d.ts +16 -3
- package/dist/devicesSlice/thunks.js +2 -2
- package/dist/{index-CpfhQHfg.d.ts → index-C0yQmQih.d.ts} +4 -2
- package/dist/{index-BgF6rhXn.d.cts → index-DjSjrp5b.d.cts} +4 -2
- package/dist/monitorSlice/selectors.d.cts +1 -1
- package/dist/monitorSlice/selectors.d.ts +1 -1
- package/dist/monitorSlice/thunks.d.cts +1 -1
- package/dist/monitorSlice/thunks.d.ts +1 -1
- package/dist/onboardingSlice/selectors.d.cts +1 -1
- package/dist/onboardingSlice/selectors.d.ts +1 -1
- package/dist/onboardingSlice/thunks.d.cts +2 -2
- package/dist/onboardingSlice/thunks.d.ts +2 -2
- package/dist/organizationSlice/selectors.d.cts +2 -2
- package/dist/organizationSlice/selectors.d.ts +2 -2
- package/dist/organizationSlice/thunks.cjs +1 -0
- package/dist/organizationSlice/thunks.d.cts +16 -3
- package/dist/organizationSlice/thunks.d.ts +16 -3
- package/dist/organizationSlice/thunks.js +2 -2
- package/dist/releasesSlice/selectors.d.cts +2 -2
- package/dist/releasesSlice/selectors.d.ts +2 -2
- package/dist/releasesSlice/thunks.cjs +5 -8
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +1 -1
- package/dist/releasesSlice/thunks.d.ts +1 -1
- package/dist/releasesSlice/thunks.js +5 -8
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/{store-B2_hrsgP.d.ts → store-BKVs6gSc.d.ts} +2 -2
- package/dist/{store-DquBGT7j.d.cts → store-ByJVpIz9.d.cts} +2 -2
- package/dist/store.d.cts +1 -1
- package/dist/store.d.ts +1 -1
- package/dist/storehooks.cjs +1 -0
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.d.cts +2 -2
- package/dist/storehooks.d.ts +2 -2
- package/dist/storehooks.js +1 -0
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +17 -1
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +3 -3
- package/dist/thunks.d.ts +3 -3
- package/dist/thunks.js +17 -3
- package/dist/thunks.js.map +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.map +1 -1
- package/dist/usersSlice/mocks.d.cts +1 -1
- package/dist/usersSlice/mocks.d.ts +1 -1
- package/dist/usersSlice/selectors.d.cts +2 -2
- package/dist/usersSlice/selectors.d.ts +2 -2
- package/dist/usersSlice/thunks.d.cts +2 -2
- package/dist/usersSlice/thunks.d.ts +2 -2
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/actions.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ht as DeviceAuthState, ut as AlertChannelKey } from "./constants-Rl3FJzFf.cjs";
|
|
2
2
|
import { i as ReadState } from "./constants-B3Jdkn2b.cjs";
|
|
3
|
-
import { a as UserSettings, i as UserSession, n as GlobalSettings, r as User, t as CustomColumn } from "./index-
|
|
3
|
+
import { a as UserSettings, i as UserSession, n as GlobalSettings, r as User, t as CustomColumn } from "./index-DjSjrp5b.cjs";
|
|
4
4
|
import { n as ManifestsList, r as Release, s as SoftwareList } from "./index-DiAjzARZ.cjs";
|
|
5
5
|
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "./types-B80ckxiy.cjs";
|
|
6
6
|
import { n as OnboardingSliceType, t as OnboardingApproach } from "./index-CoObjWL4.cjs";
|
package/dist/actions.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ht as DeviceAuthState, ut as AlertChannelKey } from "./constants-B_H4squx.js";
|
|
2
2
|
import { i as ReadState } from "./constants-B3Jdkn2b.js";
|
|
3
|
-
import { a as UserSettings, i as UserSession, n as GlobalSettings, r as User, t as CustomColumn } from "./index-
|
|
3
|
+
import { a as UserSettings, i as UserSession, n as GlobalSettings, r as User, t as CustomColumn } from "./index-C0yQmQih.js";
|
|
4
4
|
import { n as ManifestsList, r as Release, s as SoftwareList } from "./index-C8uiyxnb.js";
|
|
5
5
|
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "./types-B3qGQoMx.js";
|
|
6
6
|
import { n as OnboardingSliceType, t as OnboardingApproach } from "./index-CoObjWL4.js";
|
package/dist/appSlice/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["SORTING_OPTIONS","createSlice"],"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,GAAWC,iBAAAA,YAAAA,CAAY;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","createSlice"],"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 hasNewSearch: 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,cAAc;EACd,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,GAAWC,iBAAAA,YAAAA,CAAY;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"}
|
package/dist/appSlice/index.js
CHANGED
|
@@ -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 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"}
|
|
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 hasNewSearch: 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,cAAc;EACd,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,4 +1,4 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
1
|
+
import { o as UserSliceType } from "../index-DjSjrp5b.cjs";
|
|
2
2
|
import { i as ReleaseSliceType } from "../index-DiAjzARZ.cjs";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.cjs";
|
|
4
4
|
import { o as DeploymentsSliceType } from "../index-mvxjivTJ.cjs";
|
|
@@ -6,7 +6,7 @@ import { c as DeviceSliceType } from "../index-DnKVKM0G.cjs";
|
|
|
6
6
|
import { a as Upload, i as SnackbarContent, n as SearchState, r as SentryConfig, t as AppSliceType } from "../index-DeOpb2oK.cjs";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-Ctj2r57a.cjs";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-C_LGDJN2.cjs";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-ByJVpIz9.cjs";
|
|
10
10
|
//#region src/appSlice/selectors.d.ts
|
|
11
11
|
declare const getDocsVersion: (state: RootState) => string;
|
|
12
12
|
declare const getFeatures: (state: RootState) => Record<string, boolean>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
1
|
+
import { o as UserSliceType } from "../index-C0yQmQih.js";
|
|
2
2
|
import { i as ReleaseSliceType } from "../index-C8uiyxnb.js";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.js";
|
|
4
4
|
import { o as DeploymentsSliceType } from "../index-B8td4-rY.js";
|
|
@@ -6,7 +6,7 @@ import { c as DeviceSliceType } from "../index-BpamudGf.js";
|
|
|
6
6
|
import { a as Upload, i as SnackbarContent, n as SearchState, r as SentryConfig, t as AppSliceType } from "../index-Bs0c1-WY.js";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-BAGyeC-q.js";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-ChKTa1aL.js";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-BKVs6gSc.js";
|
|
10
10
|
//#region src/appSlice/selectors.d.ts
|
|
11
11
|
declare const getDocsVersion: (state: RootState) => string;
|
|
12
12
|
declare const getFeatures: (state: RootState) => Record<string, boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as SearchState } from "../index-DeOpb2oK.cjs";
|
|
2
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
2
|
+
import { r as RootState, t as AppDispatch } from "../store-ByJVpIz9.cjs";
|
|
3
3
|
//#region src/appSlice/thunks.d.ts
|
|
4
4
|
declare const setFirstLoginAfterSignup: import("@reduxjs/toolkit").AsyncThunk<void, boolean, {
|
|
5
5
|
dispatch: AppDispatch;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as SearchState } from "../index-Bs0c1-WY.js";
|
|
2
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
2
|
+
import { r as RootState, t as AppDispatch } from "../store-BKVs6gSc.js";
|
|
3
3
|
//#region src/appSlice/thunks.d.ts
|
|
4
4
|
declare const setFirstLoginAfterSignup: import("@reduxjs/toolkit").AsyncThunk<void, boolean, {
|
|
5
5
|
dispatch: AppDispatch;
|
package/dist/auth.d.cts
CHANGED
package/dist/auth.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as AvailablePlans } from "./constants-nKSWZ8oD.cjs";
|
|
2
2
|
import { S as Role } from "./constants-Rl3FJzFf.cjs";
|
|
3
|
-
import { a as UserSettings, n as GlobalSettings, o as UserSliceType, r as User } from "./index-
|
|
3
|
+
import { a as UserSettings, n as GlobalSettings, o as UserSliceType, r as User } from "./index-DjSjrp5b.cjs";
|
|
4
4
|
import { i as ReleaseSliceType, r as Release } from "./index-DiAjzARZ.cjs";
|
|
5
5
|
import { i as Organization, n as AuditLogSelectionState } from "./types-B80ckxiy.cjs";
|
|
6
6
|
import { n as OnboardingSliceType, t as OnboardingApproach } from "./index-CoObjWL4.cjs";
|
|
@@ -9,7 +9,7 @@ import { c as DeviceSliceType, i as DeviceGroup, n as DeviceComponents, t as Dev
|
|
|
9
9
|
import { t as AppSliceType } from "./index-DeOpb2oK.cjs";
|
|
10
10
|
import { t as MonitorSliceType } from "./index-Ctj2r57a.cjs";
|
|
11
11
|
import { t as OrganizationSliceType } from "./index-C_LGDJN2.cjs";
|
|
12
|
-
import { r as RootState } from "./store-
|
|
12
|
+
import { r as RootState } from "./store-ByJVpIz9.cjs";
|
|
13
13
|
import { AuditLog } from "@northern.tech/types/types.gen";
|
|
14
14
|
//#region src/commonSelectors.d.ts
|
|
15
15
|
declare const getIsEnterprise: ((state: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as AvailablePlans } from "./constants-nKSWZ8oD.js";
|
|
2
2
|
import { S as Role } from "./constants-B_H4squx.js";
|
|
3
|
-
import { a as UserSettings, n as GlobalSettings, o as UserSliceType, r as User } from "./index-
|
|
3
|
+
import { a as UserSettings, n as GlobalSettings, o as UserSliceType, r as User } from "./index-C0yQmQih.js";
|
|
4
4
|
import { i as ReleaseSliceType, r as Release } from "./index-C8uiyxnb.js";
|
|
5
5
|
import { i as Organization, n as AuditLogSelectionState } from "./types-B3qGQoMx.js";
|
|
6
6
|
import { n as OnboardingSliceType, t as OnboardingApproach } from "./index-CoObjWL4.js";
|
|
@@ -9,7 +9,7 @@ import { c as DeviceSliceType, i as DeviceGroup, n as DeviceComponents, t as Dev
|
|
|
9
9
|
import { t as AppSliceType } from "./index-Bs0c1-WY.js";
|
|
10
10
|
import { t as MonitorSliceType } from "./index-BAGyeC-q.js";
|
|
11
11
|
import { t as OrganizationSliceType } from "./index-ChKTa1aL.js";
|
|
12
|
-
import { r as RootState } from "./store-
|
|
12
|
+
import { r as RootState } from "./store-BKVs6gSc.js";
|
|
13
13
|
import { AuditLog } from "@northern.tech/types/types.gen";
|
|
14
14
|
//#region src/commonSelectors.d.ts
|
|
15
15
|
declare const getIsEnterprise: ((state: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
1
|
+
import { o as UserSliceType } from "../index-DjSjrp5b.cjs";
|
|
2
2
|
import { i as ReleaseSliceType } from "../index-DiAjzARZ.cjs";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.cjs";
|
|
4
4
|
import { l as SelectionState, n as DeploymentByStatus, o as DeploymentsSliceType, t as Deployment } from "../index-mvxjivTJ.cjs";
|
|
@@ -6,7 +6,7 @@ import { c as DeviceSliceType } from "../index-DnKVKM0G.cjs";
|
|
|
6
6
|
import { t as AppSliceType } from "../index-DeOpb2oK.cjs";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-Ctj2r57a.cjs";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-C_LGDJN2.cjs";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-ByJVpIz9.cjs";
|
|
10
10
|
//#region src/deploymentsSlice/selectors.d.ts
|
|
11
11
|
declare const getDeploymentsById: (state: RootState) => Record<string, Deployment>;
|
|
12
12
|
declare const getDeploymentsByStatus: (state: RootState) => DeploymentByStatus;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
1
|
+
import { o as UserSliceType } from "../index-C0yQmQih.js";
|
|
2
2
|
import { i as ReleaseSliceType } from "../index-C8uiyxnb.js";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.js";
|
|
4
4
|
import { l as SelectionState, n as DeploymentByStatus, o as DeploymentsSliceType, t as Deployment } from "../index-B8td4-rY.js";
|
|
@@ -6,7 +6,7 @@ import { c as DeviceSliceType } from "../index-BpamudGf.js";
|
|
|
6
6
|
import { t as AppSliceType } from "../index-Bs0c1-WY.js";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-BAGyeC-q.js";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-ChKTa1aL.js";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-BKVs6gSc.js";
|
|
10
10
|
//#region src/deploymentsSlice/selectors.d.ts
|
|
11
11
|
declare const getDeploymentsById: (state: RootState) => Record<string, Deployment>;
|
|
12
12
|
declare const getDeploymentsByStatus: (state: RootState) => DeploymentByStatus;
|
|
@@ -2,7 +2,7 @@ import { T as SortOptions } from "../constants-Rl3FJzFf.cjs";
|
|
|
2
2
|
import { c as SelectionListState, i as DeploymentConfig, l as SelectionState, r as DeploymentByStatusKey, t as Deployment } from "../index-mvxjivTJ.cjs";
|
|
3
3
|
import { t as Device$1 } from "../index-DnKVKM0G.cjs";
|
|
4
4
|
import { i as SnackbarContent } from "../index-DeOpb2oK.cjs";
|
|
5
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
+
import { r as RootState, t as AppDispatch } from "../store-ByJVpIz9.cjs";
|
|
6
6
|
import { DeploymentV1, DeploymentV2, NewDeploymentForGroup, NewDeploymentTypeManagement, NewDeploymentV2TypeManagement } from "@northern.tech/types/MenderTypes";
|
|
7
7
|
//#region src/deploymentsSlice/thunks.d.ts
|
|
8
8
|
declare const deriveDeploymentGroup: ({ filter, group, groups, name }: Deployment) => string | undefined;
|
|
@@ -2,7 +2,7 @@ import { T as SortOptions } from "../constants-B_H4squx.js";
|
|
|
2
2
|
import { c as SelectionListState, i as DeploymentConfig, l as SelectionState, r as DeploymentByStatusKey, t as Deployment } from "../index-B8td4-rY.js";
|
|
3
3
|
import { t as Device$1 } from "../index-BpamudGf.js";
|
|
4
4
|
import { i as SnackbarContent } from "../index-Bs0c1-WY.js";
|
|
5
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
+
import { r as RootState, t as AppDispatch } from "../store-BKVs6gSc.js";
|
|
6
6
|
import { DeploymentV1, DeploymentV2, NewDeploymentForGroup, NewDeploymentTypeManagement, NewDeploymentV2TypeManagement } from "@northern.tech/types/MenderTypes";
|
|
7
7
|
//#region src/deploymentsSlice/thunks.d.ts
|
|
8
8
|
declare const deriveDeploymentGroup: ({ filter, group, groups, name }: Deployment) => string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
1
|
+
import { o as UserSliceType } from "../index-DjSjrp5b.cjs";
|
|
2
2
|
import { i as ReleaseSliceType } from "../index-DiAjzARZ.cjs";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.cjs";
|
|
4
4
|
import { o as DeploymentsSliceType } from "../index-mvxjivTJ.cjs";
|
|
@@ -6,7 +6,7 @@ import { c as DeviceSliceType, i as DeviceGroup, l as DeviceTierLimits, o as Dev
|
|
|
6
6
|
import { t as AppSliceType } from "../index-DeOpb2oK.cjs";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-Ctj2r57a.cjs";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-C_LGDJN2.cjs";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-ByJVpIz9.cjs";
|
|
10
10
|
//#region src/devicesSlice/selectors.d.ts
|
|
11
11
|
declare const getAcceptedDevices: (state: RootState) => {
|
|
12
12
|
counts: DeviceTierLimits & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
1
|
+
import { o as UserSliceType } from "../index-C0yQmQih.js";
|
|
2
2
|
import { i as ReleaseSliceType } from "../index-C8uiyxnb.js";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.js";
|
|
4
4
|
import { o as DeploymentsSliceType } from "../index-B8td4-rY.js";
|
|
@@ -6,7 +6,7 @@ import { c as DeviceSliceType, i as DeviceGroup, l as DeviceTierLimits, o as Dev
|
|
|
6
6
|
import { t as AppSliceType } from "../index-Bs0c1-WY.js";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-BAGyeC-q.js";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-ChKTa1aL.js";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-BKVs6gSc.js";
|
|
10
10
|
//#region src/devicesSlice/selectors.d.ts
|
|
11
11
|
declare const getAcceptedDevices: (state: RootState) => {
|
|
12
12
|
counts: DeviceTierLimits & {
|
|
@@ -36,6 +36,7 @@ exports.removeDynamicGroup = require_thunks.removeDynamicGroup;
|
|
|
36
36
|
exports.removeReportsByGroupName = require_thunks.removeReportsByGroupName;
|
|
37
37
|
exports.removeStaticGroup = require_thunks.removeStaticGroup;
|
|
38
38
|
exports.searchDevices = require_thunks.searchDevices;
|
|
39
|
+
exports.searchIdentities = require_thunks.searchIdentities;
|
|
39
40
|
exports.selectGroup = require_thunks.selectGroup;
|
|
40
41
|
exports.setDeviceConfig = require_thunks.setDeviceConfig;
|
|
41
42
|
exports.setDeviceListState = require_thunks.setDeviceListState;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ht as DeviceAuthState, m as DeviceIssueOptionKey } from "../constants-Rl3FJzFf.cjs";
|
|
2
2
|
import { i as DeviceGroup, o as DeviceListState, r as DeviceFilter, s as DeviceSelectedAttribute, t as Device$1 } from "../index-DnKVKM0G.cjs";
|
|
3
3
|
import { i as SnackbarContent, n as SearchState } from "../index-DeOpb2oK.cjs";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
-
import { ConnectionState, Device, DeviceConfiguration, DeviceInventoryResponse, DeviceWithImage, Filter, Integration, ManagementApiConfiguration, NewConfigurationDeployment, PreAuthSet, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-ByJVpIz9.cjs";
|
|
5
|
+
import { ConnectionState, Device, DeviceConfiguration, DeviceInventoryResponse, DeviceWithImage, Filter, Integration, ManagementApiConfiguration, NewConfigurationDeployment, PreAuthSet, SearchIdentityParams, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
6
6
|
//#region src/devicesSlice/thunks.d.ts
|
|
7
7
|
declare const getGroups: import("@reduxjs/toolkit").AsyncThunk<{
|
|
8
8
|
payload: {
|
|
@@ -403,6 +403,19 @@ declare const searchDevices: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
403
403
|
fulfilledMeta?: unknown;
|
|
404
404
|
rejectedMeta?: unknown;
|
|
405
405
|
}>;
|
|
406
|
+
declare const searchIdentities: import("@reduxjs/toolkit").AsyncThunk<{
|
|
407
|
+
devices: DeviceInventoryResponse[];
|
|
408
|
+
total: number;
|
|
409
|
+
}, SearchIdentityParams, {
|
|
410
|
+
dispatch: AppDispatch;
|
|
411
|
+
state: RootState;
|
|
412
|
+
extra?: unknown;
|
|
413
|
+
rejectValue?: unknown;
|
|
414
|
+
serializedErrorType?: unknown;
|
|
415
|
+
pendingMeta?: unknown;
|
|
416
|
+
fulfilledMeta?: unknown;
|
|
417
|
+
rejectedMeta?: unknown;
|
|
418
|
+
}>;
|
|
406
419
|
declare const getDeviceAttributes: import("@reduxjs/toolkit").AsyncThunk<{
|
|
407
420
|
payload: {
|
|
408
421
|
identityAttributes: string[];
|
|
@@ -862,5 +875,5 @@ declare const getDeviceComponents: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
862
875
|
rejectedMeta?: unknown;
|
|
863
876
|
}>;
|
|
864
877
|
//#endregion
|
|
865
|
-
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceComponents, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getTestDeviceCount, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setTestDeviceStatus, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
|
|
878
|
+
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceComponents, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getTestDeviceCount, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, searchIdentities, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setTestDeviceStatus, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
|
|
866
879
|
//# sourceMappingURL=thunks.d.cts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ht as DeviceAuthState, m as DeviceIssueOptionKey } from "../constants-B_H4squx.js";
|
|
2
2
|
import { i as DeviceGroup, o as DeviceListState, r as DeviceFilter, s as DeviceSelectedAttribute, t as Device$1 } from "../index-BpamudGf.js";
|
|
3
3
|
import { i as SnackbarContent, n as SearchState } from "../index-Bs0c1-WY.js";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
-
import { ConnectionState, Device, DeviceConfiguration, DeviceInventoryResponse, DeviceWithImage, Filter, Integration, ManagementApiConfiguration, NewConfigurationDeployment, PreAuthSet, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-BKVs6gSc.js";
|
|
5
|
+
import { ConnectionState, Device, DeviceConfiguration, DeviceInventoryResponse, DeviceWithImage, Filter, Integration, ManagementApiConfiguration, NewConfigurationDeployment, PreAuthSet, SearchIdentityParams, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
6
6
|
//#region src/devicesSlice/thunks.d.ts
|
|
7
7
|
declare const getGroups: import("@reduxjs/toolkit").AsyncThunk<{
|
|
8
8
|
payload: {
|
|
@@ -403,6 +403,19 @@ declare const searchDevices: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
403
403
|
fulfilledMeta?: unknown;
|
|
404
404
|
rejectedMeta?: unknown;
|
|
405
405
|
}>;
|
|
406
|
+
declare const searchIdentities: import("@reduxjs/toolkit").AsyncThunk<{
|
|
407
|
+
devices: DeviceInventoryResponse[];
|
|
408
|
+
total: number;
|
|
409
|
+
}, SearchIdentityParams, {
|
|
410
|
+
dispatch: AppDispatch;
|
|
411
|
+
state: RootState;
|
|
412
|
+
extra?: unknown;
|
|
413
|
+
rejectValue?: unknown;
|
|
414
|
+
serializedErrorType?: unknown;
|
|
415
|
+
pendingMeta?: unknown;
|
|
416
|
+
fulfilledMeta?: unknown;
|
|
417
|
+
rejectedMeta?: unknown;
|
|
418
|
+
}>;
|
|
406
419
|
declare const getDeviceAttributes: import("@reduxjs/toolkit").AsyncThunk<{
|
|
407
420
|
payload: {
|
|
408
421
|
identityAttributes: string[];
|
|
@@ -862,5 +875,5 @@ declare const getDeviceComponents: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
862
875
|
rejectedMeta?: unknown;
|
|
863
876
|
}>;
|
|
864
877
|
//#endregion
|
|
865
|
-
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceComponents, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getTestDeviceCount, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setTestDeviceStatus, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
|
|
878
|
+
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceComponents, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getTestDeviceCount, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, searchIdentities, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setTestDeviceStatus, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
|
|
866
879
|
//# sourceMappingURL=thunks.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceComponents, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getTestDeviceCount, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setTestDeviceStatus, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData } from "../thunks.js";
|
|
2
|
-
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceComponents, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getTestDeviceCount, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setTestDeviceStatus, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
|
|
1
|
+
import { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceComponents, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getTestDeviceCount, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, searchIdentities, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setTestDeviceStatus, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData } from "../thunks.js";
|
|
2
|
+
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceComponents, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getTestDeviceCount, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, searchIdentities, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, setTestDeviceStatus, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { Ct as FilterOperator, S as Role, v as PermissionSet } from "./constants-B_H4squx.js";
|
|
2
2
|
import { i as ReadState } from "./constants-B3Jdkn2b.js";
|
|
3
3
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
4
|
-
import { DeploymentPhase, TenantInfo, TenantsIdName, User } from "@northern.tech/types/MenderTypes";
|
|
4
|
+
import { DeploymentPhase, PersonalAccessToken, TenantInfo, TenantsIdName, User } from "@northern.tech/types/MenderTypes";
|
|
5
5
|
//#region src/usersSlice/index.d.ts
|
|
6
6
|
declare const sliceName = "users";
|
|
7
7
|
type User$1 = User & TenantInfo & {
|
|
8
8
|
tenants?: TenantsIdName;
|
|
9
|
+
} & {
|
|
10
|
+
tokens?: PersonalAccessToken[];
|
|
9
11
|
};
|
|
10
12
|
type UserSession = {
|
|
11
13
|
expiresAt?: string;
|
|
@@ -145,4 +147,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
145
147
|
declare const _default: import("redux").Reducer<UserSliceType>;
|
|
146
148
|
//#endregion
|
|
147
149
|
export { UserSettings as a, actions as c, usersSlice as d, UserSession as i, initialState as l, GlobalSettings as n, UserSliceType as o, User$1 as r, _default as s, CustomColumn as t, sliceName as u };
|
|
148
|
-
//# sourceMappingURL=index-
|
|
150
|
+
//# sourceMappingURL=index-C0yQmQih.d.ts.map
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { Ct as FilterOperator, S as Role, v as PermissionSet } from "./constants-Rl3FJzFf.cjs";
|
|
2
2
|
import { i as ReadState } from "./constants-B3Jdkn2b.cjs";
|
|
3
|
-
import { DeploymentPhase, TenantInfo, TenantsIdName, User } from "@northern.tech/types/MenderTypes";
|
|
3
|
+
import { DeploymentPhase, PersonalAccessToken, TenantInfo, TenantsIdName, User } from "@northern.tech/types/MenderTypes";
|
|
4
4
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
5
5
|
//#region src/usersSlice/index.d.ts
|
|
6
6
|
declare const sliceName = "users";
|
|
7
7
|
type User$1 = User & TenantInfo & {
|
|
8
8
|
tenants?: TenantsIdName;
|
|
9
|
+
} & {
|
|
10
|
+
tokens?: PersonalAccessToken[];
|
|
9
11
|
};
|
|
10
12
|
type UserSession = {
|
|
11
13
|
expiresAt?: string;
|
|
@@ -145,4 +147,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
145
147
|
declare const _default: import("redux").Reducer<UserSliceType>;
|
|
146
148
|
//#endregion
|
|
147
149
|
export { UserSettings as a, actions as c, usersSlice as d, UserSession as i, initialState as l, GlobalSettings as n, UserSliceType as o, User$1 as r, _default as s, CustomColumn as t, sliceName as u };
|
|
148
|
-
//# sourceMappingURL=index-
|
|
150
|
+
//# sourceMappingURL=index-DjSjrp5b.d.cts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as DeviceIssueOptionKey, ut as AlertChannelKey } from "../constants-Rl3FJzFf.cjs";
|
|
2
2
|
import { r as DeviceFilter, t as Device } from "../index-DnKVKM0G.cjs";
|
|
3
3
|
import { i as SnackbarContent } from "../index-DeOpb2oK.cjs";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-ByJVpIz9.cjs";
|
|
5
5
|
//#region src/monitorSlice/thunks.d.ts
|
|
6
6
|
interface GetDeviceAlertsPayload {
|
|
7
7
|
config?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as DeviceIssueOptionKey, ut as AlertChannelKey } from "../constants-B_H4squx.js";
|
|
2
2
|
import { r as DeviceFilter, t as Device } from "../index-BpamudGf.js";
|
|
3
3
|
import { i as SnackbarContent } from "../index-Bs0c1-WY.js";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-BKVs6gSc.js";
|
|
5
5
|
//#region src/monitorSlice/thunks.d.ts
|
|
6
6
|
interface GetDeviceAlertsPayload {
|
|
7
7
|
config?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.cjs";
|
|
2
|
-
import { r as RootState } from "../store-
|
|
2
|
+
import { r as RootState } from "../store-ByJVpIz9.cjs";
|
|
3
3
|
//#region src/onboardingSlice/selectors.d.ts
|
|
4
4
|
declare const getOnboarding: (state: RootState) => OnboardingSliceType;
|
|
5
5
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.js";
|
|
2
|
-
import { r as RootState } from "../store-
|
|
2
|
+
import { r as RootState } from "../store-BKVs6gSc.js";
|
|
3
3
|
//#region src/onboardingSlice/selectors.d.ts
|
|
4
4
|
declare const getOnboarding: (state: RootState) => OnboardingSliceType;
|
|
5
5
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../constants-Rl3FJzFf.cjs";
|
|
2
2
|
import { t as OnboardingStep } from "../constants-Db_RBdlV.cjs";
|
|
3
|
-
import { a as UserSettings } from "../index-
|
|
3
|
+
import { a as UserSettings } from "../index-DjSjrp5b.cjs";
|
|
4
4
|
import { n as OnboardingSliceType, t as OnboardingApproach } from "../index-CoObjWL4.cjs";
|
|
5
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
+
import { r as RootState, t as AppDispatch } from "../store-ByJVpIz9.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
1
|
import "../constants-B_H4squx.js";
|
|
2
2
|
import { t as OnboardingStep } from "../constants-Db_RBdlV.js";
|
|
3
|
-
import { a as UserSettings } from "../index-
|
|
3
|
+
import { a as UserSettings } from "../index-C0yQmQih.js";
|
|
4
4
|
import { n as OnboardingSliceType, t as OnboardingApproach } from "../index-CoObjWL4.js";
|
|
5
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
+
import { r as RootState, t as AppDispatch } from "../store-BKVs6gSc.js";
|
|
6
6
|
//#region src/onboardingSlice/thunks.d.ts
|
|
7
7
|
declare const getOnboardingState: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
8
8
|
payload: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
1
|
+
import { o as UserSliceType } from "../index-DjSjrp5b.cjs";
|
|
2
2
|
import { i as ReleaseSliceType } from "../index-DiAjzARZ.cjs";
|
|
3
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
4
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.cjs";
|
|
@@ -7,7 +7,7 @@ import { c as DeviceSliceType } from "../index-DnKVKM0G.cjs";
|
|
|
7
7
|
import { t as AppSliceType } from "../index-DeOpb2oK.cjs";
|
|
8
8
|
import { t as MonitorSliceType } from "../index-Ctj2r57a.cjs";
|
|
9
9
|
import { t as OrganizationSliceType } from "../index-C_LGDJN2.cjs";
|
|
10
|
-
import { r as RootState } from "../store-
|
|
10
|
+
import { r as RootState } from "../store-ByJVpIz9.cjs";
|
|
11
11
|
//#region src/organizationSlice/selectors.d.ts
|
|
12
12
|
declare const getOrganization: (state: RootState) => Partial<Organization>;
|
|
13
13
|
declare const getProducts: (state: RootState) => ProductConfig | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
1
|
+
import { o as UserSliceType } from "../index-C0yQmQih.js";
|
|
2
2
|
import { i as ReleaseSliceType } from "../index-C8uiyxnb.js";
|
|
3
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
4
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.js";
|
|
@@ -7,7 +7,7 @@ import { c as DeviceSliceType } from "../index-BpamudGf.js";
|
|
|
7
7
|
import { t as AppSliceType } from "../index-Bs0c1-WY.js";
|
|
8
8
|
import { t as MonitorSliceType } from "../index-BAGyeC-q.js";
|
|
9
9
|
import { t as OrganizationSliceType } from "../index-ChKTa1aL.js";
|
|
10
|
-
import { r as RootState } from "../store-
|
|
10
|
+
import { r as RootState } from "../store-BKVs6gSc.js";
|
|
11
11
|
//#region src/organizationSlice/selectors.d.ts
|
|
12
12
|
declare const getOrganization: (state: RootState) => Partial<Organization>;
|
|
13
13
|
declare const getProducts: (state: RootState) => ProductConfig | undefined;
|
|
@@ -25,6 +25,7 @@ exports.getProducts = require_thunks.getProducts;
|
|
|
25
25
|
exports.getSsoConfigById = require_thunks.getSsoConfigById;
|
|
26
26
|
exports.getSsoConfigs = require_thunks.getSsoConfigs;
|
|
27
27
|
exports.getTargetLocation = require_thunks.getTargetLocation;
|
|
28
|
+
exports.getTenantToken = require_thunks.getTenantToken;
|
|
28
29
|
exports.getTenants = require_thunks.getTenants;
|
|
29
30
|
exports.getUserBilling = require_thunks.getUserBilling;
|
|
30
31
|
exports.getUserOrganization = require_thunks.getUserOrganization;
|