@northern.tech/store 0.48.0 → 0.49.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 +7 -6
- package/dist/actions.d.ts +7 -6
- package/dist/appSlice/constants.cjs +12 -2
- package/dist/appSlice/index.d.cts +1 -1
- package/dist/appSlice/index.d.ts +1 -1
- package/dist/appSlice/index.js +1 -1
- package/dist/appSlice/mocks.d.cts +1 -1
- package/dist/appSlice/mocks.d.ts +1 -1
- package/dist/appSlice/selectors.d.cts +1 -1
- package/dist/appSlice/selectors.d.ts +1 -1
- package/dist/appSlice/thunks.d.cts +2 -2
- package/dist/appSlice/thunks.d.ts +2 -2
- package/dist/appSlice/thunks.js +1 -2
- package/dist/auth.cjs +1 -1
- package/dist/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +1 -1
- package/dist/commonConstants.cjs +13 -3
- package/dist/commonConstants.d.cts +1 -1
- package/dist/commonConstants.d.ts +1 -1
- package/dist/commonConstants.js +1 -2
- package/dist/commonSelectors.cjs +1 -1
- package/dist/commonSelectors.d.cts +16 -15
- package/dist/commonSelectors.d.ts +16 -15
- package/dist/commonSelectors.js +1 -1
- package/dist/{constants-3gsHyxWr.d.ts → constants-BtVu36ou.d.ts} +3 -3
- package/dist/{constants-OZiiFKiA.d.ts → constants-Cr68z0iM.d.cts} +9 -10
- package/dist/{constants-OZiiFKiA.d.cts → constants-Cr68z0iM.d.ts} +9 -10
- package/dist/{constants-DsOnY5o5.cjs → constants-DKF0kxhY.cjs} +12 -13
- package/dist/{constants-DsOnY5o5.cjs.map → constants-DKF0kxhY.cjs.map} +1 -1
- package/dist/{constants-hMMMdt0R.d.cts → constants-DsJM7i1a.d.cts} +3 -3
- package/dist/{constants-yul-O5hD.js → constants-TPYvZDsI.js} +14 -15
- package/dist/{constants-yul-O5hD.js.map → constants-TPYvZDsI.js.map} +1 -1
- package/dist/constants.cjs +313 -52
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants.js +2 -2
- package/dist/deploymentsSlice/constants.cjs +1 -1
- package/dist/deploymentsSlice/constants.js +1 -2
- package/dist/deploymentsSlice/index.cjs +1 -1
- package/dist/deploymentsSlice/index.js +1 -1
- package/dist/deploymentsSlice/selectors.cjs +1 -1
- package/dist/deploymentsSlice/selectors.js +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +5 -4
- package/dist/deploymentsSlice/thunks.d.ts +5 -4
- package/dist/deploymentsSlice/thunks.js +1 -2
- package/dist/devicesSlice/constants.cjs +1 -1
- package/dist/devicesSlice/constants.d.cts +1 -1
- package/dist/devicesSlice/constants.d.ts +1 -1
- package/dist/devicesSlice/constants.js +1 -2
- package/dist/devicesSlice/index.d.cts +1 -1
- package/dist/devicesSlice/index.d.ts +1 -1
- package/dist/devicesSlice/index.js +1 -1
- package/dist/devicesSlice/mocks.js +1 -1
- package/dist/devicesSlice/selectors.cjs +1 -1
- package/dist/devicesSlice/selectors.d.cts +1 -1
- package/dist/devicesSlice/selectors.d.ts +1 -1
- package/dist/devicesSlice/selectors.js +1 -1
- package/dist/devicesSlice/thunks.d.cts +5 -4
- package/dist/devicesSlice/thunks.d.ts +5 -4
- package/dist/devicesSlice/thunks.js +1 -2
- package/dist/{index-D8O1HJ8Q.d.cts → index-3mpuzSLi.d.cts} +2 -2
- package/dist/{index-C-6WkMAo.d.cts → index-BP392nKV.d.cts} +2 -2
- package/dist/{index-uhmZ9qaP.d.ts → index-Bc7Ugak_.d.ts} +2 -2
- package/dist/{index-B9jUHGsM.d.cts → index-BnWRWRyV.d.cts} +2 -2
- package/dist/{index-DXfbW2gi.d.ts → index-CVsuKFks.d.ts} +2 -2
- package/dist/{index-CD39K38q.d.ts → index-Cai4oXpN.d.ts} +2 -2
- package/dist/{index-BoZjwQHk.d.cts → index-CwjRezv2.d.cts} +2 -2
- package/dist/{index-DlTiYWBe.d.cts → index-D0DMxU8O.d.cts} +2 -2
- package/dist/{index-I82Wu-Ah.d.ts → index-DTeKxs80.d.cts} +6 -3
- package/dist/{index-Dd_guNwA.d.cts → index-TS08J8mY.d.ts} +6 -3
- package/dist/{index-KQNyWRoG.d.ts → index-oFn9qHWB.d.ts} +2 -2
- package/dist/{index-BMi8ZqpV.d.ts → index-sw1Baeui.d.ts} +2 -2
- package/dist/liststatehook.d.cts +1 -0
- package/dist/liststatehook.d.ts +1 -0
- package/dist/locationutils.cjs +1 -1
- package/dist/locationutils.d.cts +4 -3
- package/dist/locationutils.d.ts +4 -3
- package/dist/locationutils.js +1 -1
- package/dist/mockState.d.cts +2 -1
- package/dist/mockState.d.ts +2 -1
- package/dist/monitorSlice/constants.d.cts +1 -1
- package/dist/monitorSlice/constants.d.ts +1 -1
- package/dist/monitorSlice/index.d.cts +1 -1
- package/dist/monitorSlice/index.d.ts +1 -1
- package/dist/monitorSlice/index.js +1 -1
- package/dist/monitorSlice/mocks.d.cts +1 -1
- package/dist/monitorSlice/mocks.d.ts +1 -1
- package/dist/monitorSlice/mocks.js +1 -1
- package/dist/monitorSlice/selectors.d.cts +1 -1
- package/dist/monitorSlice/selectors.d.ts +1 -1
- package/dist/monitorSlice/thunks.d.cts +5 -4
- package/dist/monitorSlice/thunks.d.ts +5 -4
- package/dist/monitorSlice/thunks.js +1 -1
- package/dist/onboardingSlice/mocks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.d.cts +3 -3
- package/dist/onboardingSlice/thunks.d.ts +3 -3
- package/dist/onboardingSlice/thunks.js +1 -2
- package/dist/organizationSlice/constants.cjs +1 -1
- package/dist/organizationSlice/constants.d.cts +1 -1
- package/dist/organizationSlice/constants.d.ts +1 -1
- package/dist/organizationSlice/constants.js +1 -2
- package/dist/organizationSlice/index.cjs +4 -1
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.d.cts +1 -1
- package/dist/organizationSlice/index.d.ts +1 -1
- package/dist/organizationSlice/index.js +4 -1
- package/dist/organizationSlice/index.js.map +1 -1
- package/dist/organizationSlice/mocks.d.cts +4 -2
- package/dist/organizationSlice/mocks.d.ts +4 -2
- package/dist/organizationSlice/mocks.js +1 -1
- package/dist/organizationSlice/selectors.cjs +3 -1
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +2 -2
- package/dist/organizationSlice/selectors.d.ts +2 -2
- package/dist/organizationSlice/selectors.js +3 -2
- package/dist/organizationSlice/selectors.js.map +1 -1
- package/dist/organizationSlice/thunks.cjs +1 -0
- package/dist/organizationSlice/thunks.d.cts +19 -5
- package/dist/organizationSlice/thunks.d.ts +19 -5
- package/dist/organizationSlice/thunks.js +1 -2
- package/dist/organizationSlice/types.d.cts +1 -1
- package/dist/organizationSlice/types.d.ts +1 -1
- package/dist/releasesSlice/index.d.cts +1 -1
- package/dist/releasesSlice/index.d.ts +1 -1
- package/dist/releasesSlice/index.js +1 -1
- package/dist/releasesSlice/mocks.js +1 -1
- package/dist/releasesSlice/selectors.d.cts +1 -1
- package/dist/releasesSlice/selectors.d.ts +1 -1
- package/dist/releasesSlice/thunks.cjs +1 -1
- package/dist/releasesSlice/thunks.d.cts +5 -4
- package/dist/releasesSlice/thunks.d.ts +5 -4
- package/dist/releasesSlice/thunks.js +1 -1
- package/dist/{selectors-CdCZGn7e.d.cts → selectors-BA53-rNP.d.cts} +2 -2
- package/dist/{selectors-eYLuQW4M.d.ts → selectors-BBt6fdWs.d.ts} +2 -2
- package/dist/{selectors-SvKXGJM5.d.ts → selectors-C1JTUBEz.d.ts} +2 -2
- package/dist/{selectors-DuHGqmMJ.d.cts → selectors-CCrzjz8P.d.cts} +2 -2
- package/dist/{selectors-CftbLtXH.d.cts → selectors-CYBOWy-Q.d.cts} +2 -2
- package/dist/{selectors-CdllyZyW.d.cts → selectors-D1x4Lqo_.d.cts} +2 -2
- package/dist/{selectors-rto0SO4z.d.cts → selectors-DSV8VB7p.d.cts} +5 -4
- package/dist/{selectors-CR0q7rXC.d.cts → selectors-DhAje0Fw.d.cts} +2 -2
- package/dist/{selectors-qClZ9EXM.d.ts → selectors-DljXYHm2.d.ts} +5 -4
- package/dist/{selectors-D2j3_Mnp.d.ts → selectors-DtvvhDLv.d.ts} +2 -2
- package/dist/{selectors-D78O3T1o.d.ts → selectors-Dv3oN6m9.d.ts} +2 -2
- package/dist/{selectors-D_UFk4Uz.d.ts → selectors-GKTELLR6.d.ts} +2 -2
- package/dist/selectors.cjs +1 -0
- package/dist/selectors.d.cts +7 -7
- package/dist/selectors.d.ts +7 -7
- package/dist/selectors.js +2 -2
- package/dist/sockethook.cjs +2 -2
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.d.cts +1 -0
- package/dist/sockethook.d.ts +1 -0
- package/dist/sockethook.js +2 -2
- package/dist/sockethook.js.map +1 -1
- package/dist/{store-BQcycBPp.d.ts → store-CROmfENq.d.ts} +9 -9
- package/dist/{store-CrLzRDCx.d.cts → store-xuKpT-o4.d.cts} +9 -9
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +1 -1
- package/dist/store.d.ts +1 -1
- package/dist/store.js +1 -1
- package/dist/thunks.cjs +6 -1
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +2 -2
- package/dist/thunks.d.ts +2 -2
- package/dist/thunks.js +6 -2
- package/dist/thunks.js.map +1 -1
- package/dist/{types-DB1IOQX8.d.ts → types-DQtRiyGK.d.ts} +3 -3
- package/dist/{types-DtTmD7Yn.d.cts → types-DXm-HM-j.d.cts} +3 -3
- package/dist/usersSlice/constants.cjs +1 -1
- package/dist/usersSlice/constants.js +1 -2
- package/dist/usersSlice/index.cjs +1 -1
- package/dist/usersSlice/index.d.cts +1 -1
- package/dist/usersSlice/index.d.ts +1 -1
- package/dist/usersSlice/index.js +1 -1
- package/dist/usersSlice/mocks.d.cts +1 -1
- package/dist/usersSlice/mocks.d.ts +1 -1
- package/dist/usersSlice/mocks.js +1 -1
- package/dist/usersSlice/selectors.cjs +1 -1
- package/dist/usersSlice/selectors.d.cts +1 -1
- package/dist/usersSlice/selectors.d.ts +1 -1
- package/dist/usersSlice/selectors.js +1 -1
- package/dist/usersSlice/thunks.d.cts +5 -4
- package/dist/usersSlice/thunks.d.ts +5 -4
- package/dist/usersSlice/thunks.js +1 -2
- package/dist/utils.cjs +8 -8
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +2 -7
- package/dist/utils.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SSO_TYPES, c as auditlogTypes, i as SP_AUDIT_LOGS_TYPES, l as getOidcStartUrl, n as ContentType, o as TENANT_LIST_DEFAULT, r as JSON_METADATA_FORMAT, s as XML_METADATA_FORMAT, t as AUDIT_LOGS_TYPES, u as getSamlStartUrl } from "../constants-
|
|
1
|
+
import { a as SSO_TYPES, c as auditlogTypes, i as SP_AUDIT_LOGS_TYPES, l as getOidcStartUrl, n as ContentType, o as TENANT_LIST_DEFAULT, r as JSON_METADATA_FORMAT, s as XML_METADATA_FORMAT, t as AUDIT_LOGS_TYPES, u as getSamlStartUrl } from "../constants-Cr68z0iM.cjs";
|
|
2
2
|
export { AUDIT_LOGS_TYPES, ContentType, JSON_METADATA_FORMAT, SP_AUDIT_LOGS_TYPES, SSO_TYPES, TENANT_LIST_DEFAULT, XML_METADATA_FORMAT, auditlogTypes, getOidcStartUrl, getSamlStartUrl };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SSO_TYPES, c as auditlogTypes, i as SP_AUDIT_LOGS_TYPES, l as getOidcStartUrl, n as ContentType, o as TENANT_LIST_DEFAULT, r as JSON_METADATA_FORMAT, s as XML_METADATA_FORMAT, t as AUDIT_LOGS_TYPES, u as getSamlStartUrl } from "../constants-
|
|
1
|
+
import { a as SSO_TYPES, c as auditlogTypes, i as SP_AUDIT_LOGS_TYPES, l as getOidcStartUrl, n as ContentType, o as TENANT_LIST_DEFAULT, r as JSON_METADATA_FORMAT, s as XML_METADATA_FORMAT, t as AUDIT_LOGS_TYPES, u as getSamlStartUrl } from "../constants-Cr68z0iM.js";
|
|
2
2
|
export { AUDIT_LOGS_TYPES, ContentType, JSON_METADATA_FORMAT, SP_AUDIT_LOGS_TYPES, SSO_TYPES, TENANT_LIST_DEFAULT, XML_METADATA_FORMAT, auditlogTypes, getOidcStartUrl, getSamlStartUrl };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { AUDIT_LOGS_TYPES, JSON_METADATA_FORMAT, SP_AUDIT_LOGS_TYPES, SSO_TYPES, TENANT_LIST_DEFAULT, XML_METADATA_FORMAT, auditlogTypes, getOidcStartUrl, getSamlStartUrl };
|
|
1
|
+
export { tt as AUDIT_LOGS_TYPES, nt as JSON_METADATA_FORMAT, rt as SP_AUDIT_LOGS_TYPES, it as SSO_TYPES, at as TENANT_LIST_DEFAULT, ot as XML_METADATA_FORMAT, st as auditlogTypes, ct as getOidcStartUrl, lt as getSamlStartUrl } from "../constants-TPYvZDsI.js";
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_constants = require("../constants-
|
|
5
|
+
const require_constants = require("../constants-DKF0kxhY.cjs");
|
|
6
6
|
let _reduxjs_toolkit = require("@reduxjs/toolkit");
|
|
7
7
|
let _northern_tech_utils_constants = require("@northern.tech/utils/constants");
|
|
8
8
|
//#region src/organizationSlice/index.ts
|
|
@@ -98,6 +98,9 @@ const organizationSlice = (0, _reduxjs_toolkit.createSlice)({
|
|
|
98
98
|
receiveSsoConfigs: (state, action) => {
|
|
99
99
|
state.ssoConfigs = action.payload;
|
|
100
100
|
},
|
|
101
|
+
receiveSsoEndpoint: (state, action) => {
|
|
102
|
+
state.ssoEndpoint = action.payload;
|
|
103
|
+
},
|
|
101
104
|
receiveWebhookEvents: (state, action) => {
|
|
102
105
|
const { value, total } = action.payload;
|
|
103
106
|
state.webhooks.events = value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["TENANT_LIST_DEFAULT","SORTING_OPTIONS","DEVICE_LIST_DEFAULTS","createSlice"],"sources":["../../src/organizationSlice/index.ts"],"sourcesContent":["// Copyright 2023 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { AuditLog as AuditLogEvent, BillingProfile, Integration, Event as WebhookEvent } from '@northern.tech/types/MenderTypes';\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS, TENANT_LIST_DEFAULT } from '../constants';\nimport type { AuditLog, AuditLogSelectionState, Card, Organization, ProductConfig, SSOConfig, TenantList, Webhook } from './types';\n\nexport const sliceName = 'organization';\n\nexport type OrganizationSliceType = {\n auditlog: AuditLog;\n card: Card;\n externalDeviceIntegrations: Integration[];\n intentId: string | null;\n organization: Partial<Organization>;\n products?: ProductConfig;\n ssoConfigs: SSOConfig[];\n tenantList: TenantList;\n webhooks: Webhook;\n};\n\nexport const initialState: OrganizationSliceType = {\n card: {\n last4: '',\n expiration: { month: 1, year: 2020 },\n brand: ''\n },\n intentId: null,\n tenantList: {\n ...TENANT_LIST_DEFAULT,\n total: 0,\n tenants: [],\n selectedTenant: null,\n sort: {\n direction: SORTING_OPTIONS.desc,\n key: 'name'\n }\n },\n organization: {\n // id, name, status, tenant_token, plan\n },\n auditlog: {\n events: [],\n selectionState: {\n ...DEVICE_LIST_DEFAULTS,\n detail: undefined,\n endDate: undefined,\n selectedIssue: undefined,\n sort: { direction: SORTING_OPTIONS.desc },\n startDate: undefined,\n total: 0,\n type: undefined,\n user: undefined,\n isLoading: false\n }\n },\n externalDeviceIntegrations: [\n // { <connection_string|x509|...>, id, provider }\n ],\n ssoConfigs: [],\n webhooks: {\n // [id]: { events: [] }\n // for now:\n events: [],\n eventsTotal: 0\n }\n};\n\nexport const organizationSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n receiveAuditLogs: (state, action: PayloadAction<{ events: AuditLogEvent[]; total: number }>) => {\n const { events, total } = action.payload;\n state.auditlog.events = events;\n state.auditlog.selectionState.total = total;\n },\n setAuditLogState: (state, action: PayloadAction<Partial<AuditLogSelectionState>>) => {\n state.auditlog.selectionState = {\n ...state.auditlog.selectionState,\n ...action.payload\n };\n },\n receiveCurrentCard: (state, action: PayloadAction<Card>) => {\n state.card = action.payload;\n },\n receiveSetupIntent: (state, action: PayloadAction<string | null>) => {\n state.intentId = action.payload;\n },\n setOrganization: (state, action: PayloadAction<Partial<Organization>>) => {\n state.organization = { ...state.organization, ...action.payload };\n },\n setSubscription: (state, action) => {\n state.organization.subscription = { ...state.organization.subscription, ...action.payload };\n },\n setProducts: (state, action: PayloadAction<ProductConfig>) => {\n state.products = action.payload;\n },\n setBillingProfile: (state, action: PayloadAction<BillingProfile>) => {\n state.organization.billing_profile = action.payload;\n },\n setTenantListState: (state, action: PayloadAction<TenantList>) => {\n state.tenantList = action.payload;\n },\n receiveExternalDeviceIntegrations: (state, action: PayloadAction<Integration[]>) => {\n state.externalDeviceIntegrations = action.payload;\n },\n receiveSsoConfigs: (state, action: PayloadAction<SSOConfig[]>) => {\n state.ssoConfigs = action.payload;\n },\n receiveWebhookEvents: (state, action: PayloadAction<{ total: number; value: WebhookEvent[] }>) => {\n const { value, total } = action.payload;\n state.webhooks.events = value;\n state.webhooks.eventsTotal = total;\n }\n }\n});\n\nexport const actions = organizationSlice.actions;\nexport default organizationSlice.reducer;\n"],"mappings":";;;;;;;;AAoBA,MAAa,YAAY;
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["TENANT_LIST_DEFAULT","SORTING_OPTIONS","DEVICE_LIST_DEFAULTS","createSlice"],"sources":["../../src/organizationSlice/index.ts"],"sourcesContent":["// Copyright 2023 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { AuditLog as AuditLogEvent, BillingProfile, Integration, SsoEndpoint, Event as WebhookEvent } from '@northern.tech/types/MenderTypes';\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS, TENANT_LIST_DEFAULT } from '../constants';\nimport type { AuditLog, AuditLogSelectionState, Card, Organization, ProductConfig, SSOConfig, TenantList, Webhook } from './types';\n\nexport const sliceName = 'organization';\n\nexport type OrganizationSliceType = {\n auditlog: AuditLog;\n card: Card;\n externalDeviceIntegrations: Integration[];\n intentId: string | null;\n organization: Partial<Organization>;\n products?: ProductConfig;\n ssoConfigs: SSOConfig[];\n ssoEndpoint?: SsoEndpoint;\n tenantList: TenantList;\n webhooks: Webhook;\n};\n\nexport const initialState: OrganizationSliceType = {\n card: {\n last4: '',\n expiration: { month: 1, year: 2020 },\n brand: ''\n },\n intentId: null,\n tenantList: {\n ...TENANT_LIST_DEFAULT,\n total: 0,\n tenants: [],\n selectedTenant: null,\n sort: {\n direction: SORTING_OPTIONS.desc,\n key: 'name'\n }\n },\n organization: {\n // id, name, status, tenant_token, plan\n },\n auditlog: {\n events: [],\n selectionState: {\n ...DEVICE_LIST_DEFAULTS,\n detail: undefined,\n endDate: undefined,\n selectedIssue: undefined,\n sort: { direction: SORTING_OPTIONS.desc },\n startDate: undefined,\n total: 0,\n type: undefined,\n user: undefined,\n isLoading: false\n }\n },\n externalDeviceIntegrations: [\n // { <connection_string|x509|...>, id, provider }\n ],\n ssoConfigs: [],\n webhooks: {\n // [id]: { events: [] }\n // for now:\n events: [],\n eventsTotal: 0\n }\n};\n\nexport const organizationSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n receiveAuditLogs: (state, action: PayloadAction<{ events: AuditLogEvent[]; total: number }>) => {\n const { events, total } = action.payload;\n state.auditlog.events = events;\n state.auditlog.selectionState.total = total;\n },\n setAuditLogState: (state, action: PayloadAction<Partial<AuditLogSelectionState>>) => {\n state.auditlog.selectionState = {\n ...state.auditlog.selectionState,\n ...action.payload\n };\n },\n receiveCurrentCard: (state, action: PayloadAction<Card>) => {\n state.card = action.payload;\n },\n receiveSetupIntent: (state, action: PayloadAction<string | null>) => {\n state.intentId = action.payload;\n },\n setOrganization: (state, action: PayloadAction<Partial<Organization>>) => {\n state.organization = { ...state.organization, ...action.payload };\n },\n setSubscription: (state, action) => {\n state.organization.subscription = { ...state.organization.subscription, ...action.payload };\n },\n setProducts: (state, action: PayloadAction<ProductConfig>) => {\n state.products = action.payload;\n },\n setBillingProfile: (state, action: PayloadAction<BillingProfile>) => {\n state.organization.billing_profile = action.payload;\n },\n setTenantListState: (state, action: PayloadAction<TenantList>) => {\n state.tenantList = action.payload;\n },\n receiveExternalDeviceIntegrations: (state, action: PayloadAction<Integration[]>) => {\n state.externalDeviceIntegrations = action.payload;\n },\n receiveSsoConfigs: (state, action: PayloadAction<SSOConfig[]>) => {\n state.ssoConfigs = action.payload;\n },\n receiveSsoEndpoint: (state, action: PayloadAction<SsoEndpoint>) => {\n state.ssoEndpoint = action.payload;\n },\n receiveWebhookEvents: (state, action: PayloadAction<{ total: number; value: WebhookEvent[] }>) => {\n const { value, total } = action.payload;\n state.webhooks.events = value;\n state.webhooks.eventsTotal = total;\n }\n }\n});\n\nexport const actions = organizationSlice.actions;\nexport default organizationSlice.reducer;\n"],"mappings":";;;;;;;;AAoBA,MAAa,YAAY;AAezB,MAAa,eAAsC;CACjD,MAAM;EACJ,OAAO;EACP,YAAY;GAAE,OAAO;GAAG,MAAM;EAAK;EACnC,OAAO;CACT;CACA,UAAU;CACV,YAAY;EACV,GAAGA,kBAAAA;EACH,OAAO;EACP,SAAS,CAAC;EACV,gBAAgB;EAChB,MAAM;GACJ,WAAWC,+BAAAA,gBAAgB;GAC3B,KAAK;EACP;CACF;CACA,cAAc,CAEd;CACA,UAAU;EACR,QAAQ,CAAC;EACT,gBAAgB;GACd,GAAGC,+BAAAA;GACH,QAAQ,KAAA;GACR,SAAS,KAAA;GACT,eAAe,KAAA;GACf,MAAM,EAAE,WAAWD,+BAAAA,gBAAgB,KAAK;GACxC,WAAW,KAAA;GACX,OAAO;GACP,MAAM,KAAA;GACN,MAAM,KAAA;GACN,WAAW;EACb;CACF;CACA,4BAA4B,CAE5B;CACA,YAAY,CAAC;CACb,UAAU;EAGR,QAAQ,CAAC;EACT,aAAa;CACf;AACF;AAEA,MAAa,qBAAA,GAAoBE,iBAAAA,YAAAA,CAAY;CAC3C,MAAM;CACN;CACA,UAAU;EACR,mBAAmB,OAAO,WAAsE;GAC9F,MAAM,EAAE,QAAQ,UAAU,OAAO;GACjC,MAAM,SAAS,SAAS;GACxB,MAAM,SAAS,eAAe,QAAQ;EACxC;EACA,mBAAmB,OAAO,WAA2D;GACnF,MAAM,SAAS,iBAAiB;IAC9B,GAAG,MAAM,SAAS;IAClB,GAAG,OAAO;GACZ;EACF;EACA,qBAAqB,OAAO,WAAgC;GAC1D,MAAM,OAAO,OAAO;EACtB;EACA,qBAAqB,OAAO,WAAyC;GACnE,MAAM,WAAW,OAAO;EAC1B;EACA,kBAAkB,OAAO,WAAiD;GACxE,MAAM,eAAe;IAAE,GAAG,MAAM;IAAc,GAAG,OAAO;GAAQ;EAClE;EACA,kBAAkB,OAAO,WAAW;GAClC,MAAM,aAAa,eAAe;IAAE,GAAG,MAAM,aAAa;IAAc,GAAG,OAAO;GAAQ;EAC5F;EACA,cAAc,OAAO,WAAyC;GAC5D,MAAM,WAAW,OAAO;EAC1B;EACA,oBAAoB,OAAO,WAA0C;GACnE,MAAM,aAAa,kBAAkB,OAAO;EAC9C;EACA,qBAAqB,OAAO,WAAsC;GAChE,MAAM,aAAa,OAAO;EAC5B;EACA,oCAAoC,OAAO,WAAyC;GAClF,MAAM,6BAA6B,OAAO;EAC5C;EACA,oBAAoB,OAAO,WAAuC;GAChE,MAAM,aAAa,OAAO;EAC5B;EACA,qBAAqB,OAAO,WAAuC;GACjE,MAAM,cAAc,OAAO;EAC7B;EACA,uBAAuB,OAAO,WAAoE;GAChG,MAAM,EAAE,OAAO,UAAU,OAAO;GAChC,MAAM,SAAS,SAAS;GACxB,MAAM,SAAS,cAAc;EAC/B;CACF;AACF,CAAC;AAED,MAAa,UAAU,kBAAkB;AACzC,IAAA,4BAAe,kBAAkB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as organizationSlice, i as initialState, n as _default, o as sliceName, r as actions, t as OrganizationSliceType } from "../index-
|
|
1
|
+
import { a as organizationSlice, i as initialState, n as _default, o as sliceName, r as actions, t as OrganizationSliceType } from "../index-DTeKxs80.cjs";
|
|
2
2
|
export { OrganizationSliceType, actions, _default as default, initialState, organizationSlice, sliceName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as organizationSlice, i as initialState, n as _default, o as sliceName, r as actions, t as OrganizationSliceType } from "../index-
|
|
1
|
+
import { a as organizationSlice, i as initialState, n as _default, o as sliceName, r as actions, t as OrganizationSliceType } from "../index-TS08J8mY.js";
|
|
2
2
|
export { OrganizationSliceType, actions, _default as default, initialState, organizationSlice, sliceName };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { at as TENANT_LIST_DEFAULT, f as SORTING_OPTIONS, l as DEVICE_LIST_DEFAULTS } from "../constants-TPYvZDsI.js";
|
|
2
2
|
import { createSlice } from "@reduxjs/toolkit";
|
|
3
3
|
//#region src/organizationSlice/index.ts
|
|
4
4
|
const sliceName = "organization";
|
|
@@ -93,6 +93,9 @@ const organizationSlice = createSlice({
|
|
|
93
93
|
receiveSsoConfigs: (state, action) => {
|
|
94
94
|
state.ssoConfigs = action.payload;
|
|
95
95
|
},
|
|
96
|
+
receiveSsoEndpoint: (state, action) => {
|
|
97
|
+
state.ssoEndpoint = action.payload;
|
|
98
|
+
},
|
|
96
99
|
receiveWebhookEvents: (state, action) => {
|
|
97
100
|
const { value, total } = action.payload;
|
|
98
101
|
state.webhooks.events = value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/organizationSlice/index.ts"],"sourcesContent":["// Copyright 2023 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { AuditLog as AuditLogEvent, BillingProfile, Integration, Event as WebhookEvent } from '@northern.tech/types/MenderTypes';\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS, TENANT_LIST_DEFAULT } from '../constants';\nimport type { AuditLog, AuditLogSelectionState, Card, Organization, ProductConfig, SSOConfig, TenantList, Webhook } from './types';\n\nexport const sliceName = 'organization';\n\nexport type OrganizationSliceType = {\n auditlog: AuditLog;\n card: Card;\n externalDeviceIntegrations: Integration[];\n intentId: string | null;\n organization: Partial<Organization>;\n products?: ProductConfig;\n ssoConfigs: SSOConfig[];\n tenantList: TenantList;\n webhooks: Webhook;\n};\n\nexport const initialState: OrganizationSliceType = {\n card: {\n last4: '',\n expiration: { month: 1, year: 2020 },\n brand: ''\n },\n intentId: null,\n tenantList: {\n ...TENANT_LIST_DEFAULT,\n total: 0,\n tenants: [],\n selectedTenant: null,\n sort: {\n direction: SORTING_OPTIONS.desc,\n key: 'name'\n }\n },\n organization: {\n // id, name, status, tenant_token, plan\n },\n auditlog: {\n events: [],\n selectionState: {\n ...DEVICE_LIST_DEFAULTS,\n detail: undefined,\n endDate: undefined,\n selectedIssue: undefined,\n sort: { direction: SORTING_OPTIONS.desc },\n startDate: undefined,\n total: 0,\n type: undefined,\n user: undefined,\n isLoading: false\n }\n },\n externalDeviceIntegrations: [\n // { <connection_string|x509|...>, id, provider }\n ],\n ssoConfigs: [],\n webhooks: {\n // [id]: { events: [] }\n // for now:\n events: [],\n eventsTotal: 0\n }\n};\n\nexport const organizationSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n receiveAuditLogs: (state, action: PayloadAction<{ events: AuditLogEvent[]; total: number }>) => {\n const { events, total } = action.payload;\n state.auditlog.events = events;\n state.auditlog.selectionState.total = total;\n },\n setAuditLogState: (state, action: PayloadAction<Partial<AuditLogSelectionState>>) => {\n state.auditlog.selectionState = {\n ...state.auditlog.selectionState,\n ...action.payload\n };\n },\n receiveCurrentCard: (state, action: PayloadAction<Card>) => {\n state.card = action.payload;\n },\n receiveSetupIntent: (state, action: PayloadAction<string | null>) => {\n state.intentId = action.payload;\n },\n setOrganization: (state, action: PayloadAction<Partial<Organization>>) => {\n state.organization = { ...state.organization, ...action.payload };\n },\n setSubscription: (state, action) => {\n state.organization.subscription = { ...state.organization.subscription, ...action.payload };\n },\n setProducts: (state, action: PayloadAction<ProductConfig>) => {\n state.products = action.payload;\n },\n setBillingProfile: (state, action: PayloadAction<BillingProfile>) => {\n state.organization.billing_profile = action.payload;\n },\n setTenantListState: (state, action: PayloadAction<TenantList>) => {\n state.tenantList = action.payload;\n },\n receiveExternalDeviceIntegrations: (state, action: PayloadAction<Integration[]>) => {\n state.externalDeviceIntegrations = action.payload;\n },\n receiveSsoConfigs: (state, action: PayloadAction<SSOConfig[]>) => {\n state.ssoConfigs = action.payload;\n },\n receiveWebhookEvents: (state, action: PayloadAction<{ total: number; value: WebhookEvent[] }>) => {\n const { value, total } = action.payload;\n state.webhooks.events = value;\n state.webhooks.eventsTotal = total;\n }\n }\n});\n\nexport const actions = organizationSlice.actions;\nexport default organizationSlice.reducer;\n"],"mappings":";;;AAoBA,MAAa,YAAY;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/organizationSlice/index.ts"],"sourcesContent":["// Copyright 2023 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { AuditLog as AuditLogEvent, BillingProfile, Integration, SsoEndpoint, Event as WebhookEvent } from '@northern.tech/types/MenderTypes';\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS, TENANT_LIST_DEFAULT } from '../constants';\nimport type { AuditLog, AuditLogSelectionState, Card, Organization, ProductConfig, SSOConfig, TenantList, Webhook } from './types';\n\nexport const sliceName = 'organization';\n\nexport type OrganizationSliceType = {\n auditlog: AuditLog;\n card: Card;\n externalDeviceIntegrations: Integration[];\n intentId: string | null;\n organization: Partial<Organization>;\n products?: ProductConfig;\n ssoConfigs: SSOConfig[];\n ssoEndpoint?: SsoEndpoint;\n tenantList: TenantList;\n webhooks: Webhook;\n};\n\nexport const initialState: OrganizationSliceType = {\n card: {\n last4: '',\n expiration: { month: 1, year: 2020 },\n brand: ''\n },\n intentId: null,\n tenantList: {\n ...TENANT_LIST_DEFAULT,\n total: 0,\n tenants: [],\n selectedTenant: null,\n sort: {\n direction: SORTING_OPTIONS.desc,\n key: 'name'\n }\n },\n organization: {\n // id, name, status, tenant_token, plan\n },\n auditlog: {\n events: [],\n selectionState: {\n ...DEVICE_LIST_DEFAULTS,\n detail: undefined,\n endDate: undefined,\n selectedIssue: undefined,\n sort: { direction: SORTING_OPTIONS.desc },\n startDate: undefined,\n total: 0,\n type: undefined,\n user: undefined,\n isLoading: false\n }\n },\n externalDeviceIntegrations: [\n // { <connection_string|x509|...>, id, provider }\n ],\n ssoConfigs: [],\n webhooks: {\n // [id]: { events: [] }\n // for now:\n events: [],\n eventsTotal: 0\n }\n};\n\nexport const organizationSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n receiveAuditLogs: (state, action: PayloadAction<{ events: AuditLogEvent[]; total: number }>) => {\n const { events, total } = action.payload;\n state.auditlog.events = events;\n state.auditlog.selectionState.total = total;\n },\n setAuditLogState: (state, action: PayloadAction<Partial<AuditLogSelectionState>>) => {\n state.auditlog.selectionState = {\n ...state.auditlog.selectionState,\n ...action.payload\n };\n },\n receiveCurrentCard: (state, action: PayloadAction<Card>) => {\n state.card = action.payload;\n },\n receiveSetupIntent: (state, action: PayloadAction<string | null>) => {\n state.intentId = action.payload;\n },\n setOrganization: (state, action: PayloadAction<Partial<Organization>>) => {\n state.organization = { ...state.organization, ...action.payload };\n },\n setSubscription: (state, action) => {\n state.organization.subscription = { ...state.organization.subscription, ...action.payload };\n },\n setProducts: (state, action: PayloadAction<ProductConfig>) => {\n state.products = action.payload;\n },\n setBillingProfile: (state, action: PayloadAction<BillingProfile>) => {\n state.organization.billing_profile = action.payload;\n },\n setTenantListState: (state, action: PayloadAction<TenantList>) => {\n state.tenantList = action.payload;\n },\n receiveExternalDeviceIntegrations: (state, action: PayloadAction<Integration[]>) => {\n state.externalDeviceIntegrations = action.payload;\n },\n receiveSsoConfigs: (state, action: PayloadAction<SSOConfig[]>) => {\n state.ssoConfigs = action.payload;\n },\n receiveSsoEndpoint: (state, action: PayloadAction<SsoEndpoint>) => {\n state.ssoEndpoint = action.payload;\n },\n receiveWebhookEvents: (state, action: PayloadAction<{ total: number; value: WebhookEvent[] }>) => {\n const { value, total } = action.payload;\n state.webhooks.events = value;\n state.webhooks.eventsTotal = total;\n }\n }\n});\n\nexport const actions = organizationSlice.actions;\nexport default organizationSlice.reducer;\n"],"mappings":";;;AAoBA,MAAa,YAAY;AAezB,MAAa,eAAsC;CACjD,MAAM;EACJ,OAAO;EACP,YAAY;GAAE,OAAO;GAAG,MAAM;EAAK;EACnC,OAAO;CACT;CACA,UAAU;CACV,YAAY;EACV,GAAG;EACH,OAAO;EACP,SAAS,CAAC;EACV,gBAAgB;EAChB,MAAM;GACJ,WAAW,gBAAgB;GAC3B,KAAK;EACP;CACF;CACA,cAAc,CAEd;CACA,UAAU;EACR,QAAQ,CAAC;EACT,gBAAgB;GACd,GAAG;GACH,QAAQ,KAAA;GACR,SAAS,KAAA;GACT,eAAe,KAAA;GACf,MAAM,EAAE,WAAW,gBAAgB,KAAK;GACxC,WAAW,KAAA;GACX,OAAO;GACP,MAAM,KAAA;GACN,MAAM,KAAA;GACN,WAAW;EACb;CACF;CACA,4BAA4B,CAE5B;CACA,YAAY,CAAC;CACb,UAAU;EAGR,QAAQ,CAAC;EACT,aAAa;CACf;AACF;AAEA,MAAa,oBAAoB,YAAY;CAC3C,MAAM;CACN;CACA,UAAU;EACR,mBAAmB,OAAO,WAAsE;GAC9F,MAAM,EAAE,QAAQ,UAAU,OAAO;GACjC,MAAM,SAAS,SAAS;GACxB,MAAM,SAAS,eAAe,QAAQ;EACxC;EACA,mBAAmB,OAAO,WAA2D;GACnF,MAAM,SAAS,iBAAiB;IAC9B,GAAG,MAAM,SAAS;IAClB,GAAG,OAAO;GACZ;EACF;EACA,qBAAqB,OAAO,WAAgC;GAC1D,MAAM,OAAO,OAAO;EACtB;EACA,qBAAqB,OAAO,WAAyC;GACnE,MAAM,WAAW,OAAO;EAC1B;EACA,kBAAkB,OAAO,WAAiD;GACxE,MAAM,eAAe;IAAE,GAAG,MAAM;IAAc,GAAG,OAAO;GAAQ;EAClE;EACA,kBAAkB,OAAO,WAAW;GAClC,MAAM,aAAa,eAAe;IAAE,GAAG,MAAM,aAAa;IAAc,GAAG,OAAO;GAAQ;EAC5F;EACA,cAAc,OAAO,WAAyC;GAC5D,MAAM,WAAW,OAAO;EAC1B;EACA,oBAAoB,OAAO,WAA0C;GACnE,MAAM,aAAa,kBAAkB,OAAO;EAC9C;EACA,qBAAqB,OAAO,WAAsC;GAChE,MAAM,aAAa,OAAO;EAC5B;EACA,oCAAoC,OAAO,WAAyC;GAClF,MAAM,6BAA6B,OAAO;EAC5C;EACA,oBAAoB,OAAO,WAAuC;GAChE,MAAM,aAAa,OAAO;EAC5B;EACA,qBAAqB,OAAO,WAAuC;GACjE,MAAM,cAAc,OAAO;EAC7B;EACA,uBAAuB,OAAO,WAAoE;GAChG,MAAM,EAAE,OAAO,UAAU,OAAO;GAChC,MAAM,SAAS,SAAS;GACxB,MAAM,SAAS,cAAc;EAC/B;CACF;AACF,CAAC;AAED,MAAa,UAAU,kBAAkB;AACzC,IAAA,4BAAe,kBAAkB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as AvailablePlans } from "../constants-tC3RR_Oo.cjs";
|
|
2
|
-
import "../constants-
|
|
3
|
-
import { d as TenantList, f as Webhook, l as SSOConfig } from "../types-
|
|
2
|
+
import "../constants-DsJM7i1a.cjs";
|
|
3
|
+
import { d as TenantList, f as Webhook, l as SSOConfig } from "../types-DXm-HM-j.cjs";
|
|
4
4
|
//#region src/organizationSlice/mocks.d.ts
|
|
5
5
|
declare const basicPlanId: AvailablePlans;
|
|
6
6
|
declare const professionalPlanId: AvailablePlans;
|
|
@@ -214,8 +214,10 @@ export declare const mockState: {
|
|
|
214
214
|
};
|
|
215
215
|
externalDeviceIntegrations: import("@northern.tech/types/types.gen").Integration[];
|
|
216
216
|
ssoConfigs: SSOConfig[];
|
|
217
|
+
ssoEndpoint?: import("@northern.tech/types/types.gen").SsoEndpoint;
|
|
217
218
|
tenantList: TenantList;
|
|
218
219
|
webhooks: Webhook;
|
|
219
220
|
};
|
|
220
221
|
//#endregion
|
|
222
|
+
export {};
|
|
221
223
|
//# sourceMappingURL=mocks.d.cts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as AvailablePlans } from "../constants-tC3RR_Oo.js";
|
|
2
|
-
import "../constants-
|
|
3
|
-
import { d as TenantList, f as Webhook, l as SSOConfig } from "../types-
|
|
2
|
+
import "../constants-BtVu36ou.js";
|
|
3
|
+
import { d as TenantList, f as Webhook, l as SSOConfig } from "../types-DQtRiyGK.js";
|
|
4
4
|
//#region src/organizationSlice/mocks.d.ts
|
|
5
5
|
declare const basicPlanId: AvailablePlans;
|
|
6
6
|
declare const professionalPlanId: AvailablePlans;
|
|
@@ -214,8 +214,10 @@ export declare const mockState: {
|
|
|
214
214
|
};
|
|
215
215
|
externalDeviceIntegrations: import("@northern.tech/types/types.gen").Integration[];
|
|
216
216
|
ssoConfigs: SSOConfig[];
|
|
217
|
+
ssoEndpoint?: import("@northern.tech/types/types.gen").SsoEndpoint;
|
|
217
218
|
tenantList: TenantList;
|
|
218
219
|
webhooks: Webhook;
|
|
219
220
|
};
|
|
220
221
|
//#endregion
|
|
222
|
+
export {};
|
|
221
223
|
//# sourceMappingURL=mocks.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PLANS } from "../appSlice/constants.js";
|
|
2
|
-
import { l as DEVICE_LIST_DEFAULTS } from "../constants-
|
|
2
|
+
import { l as DEVICE_LIST_DEFAULTS } from "../constants-TPYvZDsI.js";
|
|
3
3
|
import { initialState } from "./index.js";
|
|
4
4
|
//#region src/organizationSlice/mocks.ts
|
|
5
5
|
const basicPlanId = PLANS.os.id;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_constants = require("../constants-
|
|
2
|
+
const require_constants = require("../constants-DKF0kxhY.cjs");
|
|
3
3
|
let _reduxjs_toolkit = require("@reduxjs/toolkit");
|
|
4
4
|
//#region src/organizationSlice/selectors.ts
|
|
5
5
|
const getOrganization = (state) => state.organization.organization;
|
|
@@ -12,6 +12,7 @@ const getBillingProfile = (state) => state.organization.organization.billing_pro
|
|
|
12
12
|
const getSubscription = (state) => state.organization.organization.subscription;
|
|
13
13
|
const getCard = (state) => state.organization.card;
|
|
14
14
|
const getSsoConfig = ({ organization: { ssoConfigs = [] } }) => ssoConfigs[0];
|
|
15
|
+
const getSsoEndpoint = (state) => state.organization.ssoEndpoint;
|
|
15
16
|
const getTenantsList = (state) => state.organization.tenantList;
|
|
16
17
|
const getWebhookEvents = (state) => state.organization.webhooks.events;
|
|
17
18
|
const getWebhookEventsTotal = (state) => state.organization.webhooks.eventsTotal;
|
|
@@ -90,6 +91,7 @@ exports.getOrganization = getOrganization;
|
|
|
90
91
|
exports.getProducts = getProducts;
|
|
91
92
|
exports.getSpLimits = getSpLimits;
|
|
92
93
|
exports.getSsoConfig = getSsoConfig;
|
|
94
|
+
exports.getSsoEndpoint = getSsoEndpoint;
|
|
93
95
|
exports.getSubscription = getSubscription;
|
|
94
96
|
exports.getTenantListWithLimits = getTenantListWithLimits;
|
|
95
97
|
exports.getTenantsList = getTenantsList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.cjs","names":["createSelector","EXTERNAL_PROVIDER","productOrder"],"sources":["../../src/organizationSlice/selectors.ts"],"sourcesContent":["// Copyright 2023 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { Tenant } from '@northern.tech/types/MenderTypes';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { OrganizationSliceType } from '.';\nimport { EXTERNAL_PROVIDER, productOrder } from '../constants';\n\nexport type OrganizationState = { organization: OrganizationSliceType };\n\nexport const getOrganization = (state: OrganizationState) => state.organization.organization;\nexport const getProducts = (state: OrganizationState) => state.organization.products;\nexport const getExternalIntegrations = (state: OrganizationState) => state.organization.externalDeviceIntegrations;\nexport const getAuditlogState = (state: OrganizationState) => state.organization.auditlog.selectionState;\nexport const getAuditLog = (state: OrganizationState) => state.organization.auditlog.events;\nexport const getAuditLogSelectionState = (state: OrganizationState) => state.organization.auditlog.selectionState;\nexport const getBillingProfile = (state: OrganizationState) => state.organization.organization.billing_profile;\nexport const getSubscription = (state: OrganizationState) => state.organization.organization.subscription;\nexport const getCard = (state: OrganizationState) => state.organization.card;\nexport const getSsoConfig = ({ organization: { ssoConfigs = [] } }: OrganizationState) => ssoConfigs[0];\nexport const getTenantsList = (state: OrganizationState) => state.organization.tenantList;\nexport const getWebhookEvents = (state: OrganizationState) => state.organization.webhooks.events;\nexport const getWebhookEventsTotal = (state: OrganizationState) => state.organization.webhooks.eventsTotal;\n\nexport const getDeviceTwinIntegrations = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && EXTERNAL_PROVIDER[integration.provider]?.deviceTwin)\n);\nexport const getIsServiceProvider = (state: OrganizationState) => state.organization.organization.service_provider;\n\nexport const getWebhooks = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && integration.provider === EXTERNAL_PROVIDER.webhook.provider)\n);\nexport const getWebhookEventInfo = createSelector([getWebhooks, getWebhookEvents, getWebhookEventsTotal], (webhooks, events, eventsTotal) =>\n webhooks.length ? { events, eventsTotal } : { events: [], eventsTotal: 0 }\n);\n\nexport const getAuditLogEntry = createSelector([getAuditLog, getAuditLogSelectionState], (events, { selectedId }) => {\n if (!selectedId) {\n return;\n }\n const [eventAction, eventTime] = atob(selectedId).split('|');\n return events.find(item => item.action === eventAction && item.time === eventTime);\n});\n\nconst toTierName = (key: string) => key.replace(/max_|_?devices/g, '') || 'standard';\nconst processDeviceLimits = (deviceLimits: Tenant['device_limits'], skipFilter = false) => {\n const result: { disabled: string[]; limits: Record<string, object> } = { limits: {}, disabled: [] };\n if (!deviceLimits) return result;\n const tiersByName = Object.fromEntries(Object.entries(deviceLimits).map(([key, limit]) => [toTierName(key), { key, limit }]));\n return productOrder.reduce((accu, tierName) => {\n const entry = tiersByName[tierName];\n if (!entry) return accu;\n const { key, limit } = entry;\n if (limit.value === 0) {\n accu.disabled.push(tierName);\n if (!skipFilter) return accu;\n }\n accu.limits[tierName] = {\n id: tierName,\n backendId: key,\n limit: limit.value,\n current: limit.current_value,\n name: tierName,\n quotaLeft: Math.max(limit.value - limit.current_value, 0),\n limitReached: limit.value !== -1 && limit.value <= limit.current_value\n };\n return accu;\n }, result);\n};\nconst getDeviceLimitsInfo = createSelector([getOrganization], ({ device_limits }) => processDeviceLimits(device_limits));\nexport const getDisabledTiers = createSelector([getDeviceLimitsInfo], ({ disabled }) => disabled);\nexport const getSpLimits = createSelector([getDeviceLimitsInfo], ({ limits }) => limits);\nexport const getTenantListWithLimits = createSelector([getTenantsList], tenantList => ({\n ...tenantList,\n tenants: tenantList.tenants.map(tenant => ({\n ...tenant,\n device_limits: processDeviceLimits(tenant.device_limits, true).limits\n }))\n}));\n"],"mappings":";;;;AAqBA,MAAa,mBAAmB,UAA6B,MAAM,aAAa;AAChF,MAAa,eAAe,UAA6B,MAAM,aAAa;AAC5E,MAAa,2BAA2B,UAA6B,MAAM,aAAa;AACxF,MAAa,oBAAoB,UAA6B,MAAM,aAAa,SAAS;AAC1F,MAAa,eAAe,UAA6B,MAAM,aAAa,SAAS;AACrF,MAAa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"}
|
|
1
|
+
{"version":3,"file":"selectors.cjs","names":["createSelector","EXTERNAL_PROVIDER","productOrder"],"sources":["../../src/organizationSlice/selectors.ts"],"sourcesContent":["// Copyright 2023 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { Tenant } from '@northern.tech/types/MenderTypes';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { OrganizationSliceType } from '.';\nimport { EXTERNAL_PROVIDER, productOrder } from '../constants';\n\nexport type OrganizationState = { organization: OrganizationSliceType };\n\nexport const getOrganization = (state: OrganizationState) => state.organization.organization;\nexport const getProducts = (state: OrganizationState) => state.organization.products;\nexport const getExternalIntegrations = (state: OrganizationState) => state.organization.externalDeviceIntegrations;\nexport const getAuditlogState = (state: OrganizationState) => state.organization.auditlog.selectionState;\nexport const getAuditLog = (state: OrganizationState) => state.organization.auditlog.events;\nexport const getAuditLogSelectionState = (state: OrganizationState) => state.organization.auditlog.selectionState;\nexport const getBillingProfile = (state: OrganizationState) => state.organization.organization.billing_profile;\nexport const getSubscription = (state: OrganizationState) => state.organization.organization.subscription;\nexport const getCard = (state: OrganizationState) => state.organization.card;\nexport const getSsoConfig = ({ organization: { ssoConfigs = [] } }: OrganizationState) => ssoConfigs[0];\nexport const getSsoEndpoint = (state: OrganizationState) => state.organization.ssoEndpoint;\nexport const getTenantsList = (state: OrganizationState) => state.organization.tenantList;\nexport const getWebhookEvents = (state: OrganizationState) => state.organization.webhooks.events;\nexport const getWebhookEventsTotal = (state: OrganizationState) => state.organization.webhooks.eventsTotal;\n\nexport const getDeviceTwinIntegrations = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && EXTERNAL_PROVIDER[integration.provider]?.deviceTwin)\n);\nexport const getIsServiceProvider = (state: OrganizationState) => state.organization.organization.service_provider;\n\nexport const getWebhooks = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && integration.provider === EXTERNAL_PROVIDER.webhook.provider)\n);\nexport const getWebhookEventInfo = createSelector([getWebhooks, getWebhookEvents, getWebhookEventsTotal], (webhooks, events, eventsTotal) =>\n webhooks.length ? { events, eventsTotal } : { events: [], eventsTotal: 0 }\n);\n\nexport const getAuditLogEntry = createSelector([getAuditLog, getAuditLogSelectionState], (events, { selectedId }) => {\n if (!selectedId) {\n return;\n }\n const [eventAction, eventTime] = atob(selectedId).split('|');\n return events.find(item => item.action === eventAction && item.time === eventTime);\n});\n\nconst toTierName = (key: string) => key.replace(/max_|_?devices/g, '') || 'standard';\nconst processDeviceLimits = (deviceLimits: Tenant['device_limits'], skipFilter = false) => {\n const result: { disabled: string[]; limits: Record<string, object> } = { limits: {}, disabled: [] };\n if (!deviceLimits) return result;\n const tiersByName = Object.fromEntries(Object.entries(deviceLimits).map(([key, limit]) => [toTierName(key), { key, limit }]));\n return productOrder.reduce((accu, tierName) => {\n const entry = tiersByName[tierName];\n if (!entry) return accu;\n const { key, limit } = entry;\n if (limit.value === 0) {\n accu.disabled.push(tierName);\n if (!skipFilter) return accu;\n }\n accu.limits[tierName] = {\n id: tierName,\n backendId: key,\n limit: limit.value,\n current: limit.current_value,\n name: tierName,\n quotaLeft: Math.max(limit.value - limit.current_value, 0),\n limitReached: limit.value !== -1 && limit.value <= limit.current_value\n };\n return accu;\n }, result);\n};\nconst getDeviceLimitsInfo = createSelector([getOrganization], ({ device_limits }) => processDeviceLimits(device_limits));\nexport const getDisabledTiers = createSelector([getDeviceLimitsInfo], ({ disabled }) => disabled);\nexport const getSpLimits = createSelector([getDeviceLimitsInfo], ({ limits }) => limits);\nexport const getTenantListWithLimits = createSelector([getTenantsList], tenantList => ({\n ...tenantList,\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BA,iBAAAA,eAAAA,CAAe,CAAC,mBAAmB,IAAI,EAAE,eAAe,QAAQ;AAChG,MAAa,eAAA,GAAcA,iBAAAA,eAAAA,CAAe,CAAC,mBAAmB,IAAI,EAAE,aAAa,MAAM;AACvF,MAAa,2BAAA,GAA0BA,iBAAAA,eAAAA,CAAe,CAAC,cAAc,IAAG,gBAAe;CACrF,GAAG;CACH,SAAS,WAAW,QAAQ,KAAI,YAAW;EACzC,GAAG;EACH,eAAe,oBAAoB,OAAO,eAAe,IAAI,CAAC,CAAC;CACjE,EAAE;AACJ,EAAE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { OrganizationState, getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogState, getBillingProfile, getCard, getDeviceTwinIntegrations, getDisabledTiers, getExternalIntegrations, getIsServiceProvider, getOrganization, getProducts, getSpLimits, getSsoConfig, getSubscription, getTenantListWithLimits, getTenantsList, getWebhookEventInfo, getWebhookEvents, getWebhookEventsTotal, getWebhooks };
|
|
1
|
+
import { C as getWebhooks, S as getWebhookEventsTotal, _ as getSubscription, a as getAuditlogState, b as getWebhookEventInfo, c as getDeviceTwinIntegrations, d as getIsServiceProvider, f as getOrganization, g as getSsoEndpoint, h as getSsoConfig, i as getAuditLogSelectionState, l as getDisabledTiers, m as getSpLimits, n as getAuditLog, o as getBillingProfile, p as getProducts, r as getAuditLogEntry, s as getCard, t as OrganizationState, u as getExternalIntegrations, v as getTenantListWithLimits, x as getWebhookEvents, y as getTenantsList } from "../selectors-DSV8VB7p.cjs";
|
|
2
|
+
export { OrganizationState, getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogState, getBillingProfile, getCard, getDeviceTwinIntegrations, getDisabledTiers, getExternalIntegrations, getIsServiceProvider, getOrganization, getProducts, getSpLimits, getSsoConfig, getSsoEndpoint, getSubscription, getTenantListWithLimits, getTenantsList, getWebhookEventInfo, getWebhookEvents, getWebhookEventsTotal, getWebhooks };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { OrganizationState, getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogState, getBillingProfile, getCard, getDeviceTwinIntegrations, getDisabledTiers, getExternalIntegrations, getIsServiceProvider, getOrganization, getProducts, getSpLimits, getSsoConfig, getSubscription, getTenantListWithLimits, getTenantsList, getWebhookEventInfo, getWebhookEvents, getWebhookEventsTotal, getWebhooks };
|
|
1
|
+
import { C as getWebhooks, S as getWebhookEventsTotal, _ as getSubscription, a as getAuditlogState, b as getWebhookEventInfo, c as getDeviceTwinIntegrations, d as getIsServiceProvider, f as getOrganization, g as getSsoEndpoint, h as getSsoConfig, i as getAuditLogSelectionState, l as getDisabledTiers, m as getSpLimits, n as getAuditLog, o as getBillingProfile, p as getProducts, r as getAuditLogEntry, s as getCard, t as OrganizationState, u as getExternalIntegrations, v as getTenantListWithLimits, x as getWebhookEvents, y as getTenantsList } from "../selectors-DljXYHm2.js";
|
|
2
|
+
export { OrganizationState, getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogState, getBillingProfile, getCard, getDeviceTwinIntegrations, getDisabledTiers, getExternalIntegrations, getIsServiceProvider, getOrganization, getProducts, getSpLimits, getSsoConfig, getSsoEndpoint, getSubscription, getTenantListWithLimits, getTenantsList, getWebhookEventInfo, getWebhookEvents, getWebhookEventsTotal, getWebhooks };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ht as productOrder, Nt as EXTERNAL_PROVIDER } from "../constants-TPYvZDsI.js";
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
3
|
//#region src/organizationSlice/selectors.ts
|
|
4
4
|
const getOrganization = (state) => state.organization.organization;
|
|
@@ -11,6 +11,7 @@ const getBillingProfile = (state) => state.organization.organization.billing_pro
|
|
|
11
11
|
const getSubscription = (state) => state.organization.organization.subscription;
|
|
12
12
|
const getCard = (state) => state.organization.card;
|
|
13
13
|
const getSsoConfig = ({ organization: { ssoConfigs = [] } }) => ssoConfigs[0];
|
|
14
|
+
const getSsoEndpoint = (state) => state.organization.ssoEndpoint;
|
|
14
15
|
const getTenantsList = (state) => state.organization.tenantList;
|
|
15
16
|
const getWebhookEvents = (state) => state.organization.webhooks.events;
|
|
16
17
|
const getWebhookEventsTotal = (state) => state.organization.webhooks.eventsTotal;
|
|
@@ -75,6 +76,6 @@ const getTenantListWithLimits = createSelector([getTenantsList], (tenantList) =>
|
|
|
75
76
|
}))
|
|
76
77
|
}));
|
|
77
78
|
//#endregion
|
|
78
|
-
export { getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogState, getBillingProfile, getCard, getDeviceTwinIntegrations, getDisabledTiers, getExternalIntegrations, getIsServiceProvider, getOrganization, getProducts, getSpLimits, getSsoConfig, getSubscription, getTenantListWithLimits, getTenantsList, getWebhookEventInfo, getWebhookEvents, getWebhookEventsTotal, getWebhooks };
|
|
79
|
+
export { getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogState, getBillingProfile, getCard, getDeviceTwinIntegrations, getDisabledTiers, getExternalIntegrations, getIsServiceProvider, getOrganization, getProducts, getSpLimits, getSsoConfig, getSsoEndpoint, getSubscription, getTenantListWithLimits, getTenantsList, getWebhookEventInfo, getWebhookEvents, getWebhookEventsTotal, getWebhooks };
|
|
79
80
|
|
|
80
81
|
//# sourceMappingURL=selectors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.js","names":[],"sources":["../../src/organizationSlice/selectors.ts"],"sourcesContent":["// Copyright 2023 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { Tenant } from '@northern.tech/types/MenderTypes';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { OrganizationSliceType } from '.';\nimport { EXTERNAL_PROVIDER, productOrder } from '../constants';\n\nexport type OrganizationState = { organization: OrganizationSliceType };\n\nexport const getOrganization = (state: OrganizationState) => state.organization.organization;\nexport const getProducts = (state: OrganizationState) => state.organization.products;\nexport const getExternalIntegrations = (state: OrganizationState) => state.organization.externalDeviceIntegrations;\nexport const getAuditlogState = (state: OrganizationState) => state.organization.auditlog.selectionState;\nexport const getAuditLog = (state: OrganizationState) => state.organization.auditlog.events;\nexport const getAuditLogSelectionState = (state: OrganizationState) => state.organization.auditlog.selectionState;\nexport const getBillingProfile = (state: OrganizationState) => state.organization.organization.billing_profile;\nexport const getSubscription = (state: OrganizationState) => state.organization.organization.subscription;\nexport const getCard = (state: OrganizationState) => state.organization.card;\nexport const getSsoConfig = ({ organization: { ssoConfigs = [] } }: OrganizationState) => ssoConfigs[0];\nexport const getTenantsList = (state: OrganizationState) => state.organization.tenantList;\nexport const getWebhookEvents = (state: OrganizationState) => state.organization.webhooks.events;\nexport const getWebhookEventsTotal = (state: OrganizationState) => state.organization.webhooks.eventsTotal;\n\nexport const getDeviceTwinIntegrations = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && EXTERNAL_PROVIDER[integration.provider]?.deviceTwin)\n);\nexport const getIsServiceProvider = (state: OrganizationState) => state.organization.organization.service_provider;\n\nexport const getWebhooks = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && integration.provider === EXTERNAL_PROVIDER.webhook.provider)\n);\nexport const getWebhookEventInfo = createSelector([getWebhooks, getWebhookEvents, getWebhookEventsTotal], (webhooks, events, eventsTotal) =>\n webhooks.length ? { events, eventsTotal } : { events: [], eventsTotal: 0 }\n);\n\nexport const getAuditLogEntry = createSelector([getAuditLog, getAuditLogSelectionState], (events, { selectedId }) => {\n if (!selectedId) {\n return;\n }\n const [eventAction, eventTime] = atob(selectedId).split('|');\n return events.find(item => item.action === eventAction && item.time === eventTime);\n});\n\nconst toTierName = (key: string) => key.replace(/max_|_?devices/g, '') || 'standard';\nconst processDeviceLimits = (deviceLimits: Tenant['device_limits'], skipFilter = false) => {\n const result: { disabled: string[]; limits: Record<string, object> } = { limits: {}, disabled: [] };\n if (!deviceLimits) return result;\n const tiersByName = Object.fromEntries(Object.entries(deviceLimits).map(([key, limit]) => [toTierName(key), { key, limit }]));\n return productOrder.reduce((accu, tierName) => {\n const entry = tiersByName[tierName];\n if (!entry) return accu;\n const { key, limit } = entry;\n if (limit.value === 0) {\n accu.disabled.push(tierName);\n if (!skipFilter) return accu;\n }\n accu.limits[tierName] = {\n id: tierName,\n backendId: key,\n limit: limit.value,\n current: limit.current_value,\n name: tierName,\n quotaLeft: Math.max(limit.value - limit.current_value, 0),\n limitReached: limit.value !== -1 && limit.value <= limit.current_value\n };\n return accu;\n }, result);\n};\nconst getDeviceLimitsInfo = createSelector([getOrganization], ({ device_limits }) => processDeviceLimits(device_limits));\nexport const getDisabledTiers = createSelector([getDeviceLimitsInfo], ({ disabled }) => disabled);\nexport const getSpLimits = createSelector([getDeviceLimitsInfo], ({ limits }) => limits);\nexport const getTenantListWithLimits = createSelector([getTenantsList], tenantList => ({\n ...tenantList,\n tenants: tenantList.tenants.map(tenant => ({\n ...tenant,\n device_limits: processDeviceLimits(tenant.device_limits, true).limits\n }))\n}));\n"],"mappings":";;;AAqBA,MAAa,mBAAmB,UAA6B,MAAM,aAAa;AAChF,MAAa,eAAe,UAA6B,MAAM,aAAa;AAC5E,MAAa,2BAA2B,UAA6B,MAAM,aAAa;AACxF,MAAa,oBAAoB,UAA6B,MAAM,aAAa,SAAS;AAC1F,MAAa,eAAe,UAA6B,MAAM,aAAa,SAAS;AACrF,MAAa,6BAA6B,UAA6B,MAAM,aAAa,SAAS;AACnG,MAAa,qBAAqB,UAA6B,MAAM,aAAa,aAAa;AAC/F,MAAa,mBA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KAAK,WAAW,CAAC,WAAW,GAAG,GAAG;EAAE;EAAK;CAAM,CAAC,CAAC,CAAC;CAC5H,OAAO,aAAa,QAAQ,MAAM,aAAa;EAC7C,MAAM,QAAQ,YAAY;EAC1B,IAAI,CAAC,OAAO,OAAO;EACnB,MAAM,EAAE,KAAK,UAAU;EACvB,IAAI,MAAM,UAAU,GAAG;GACrB,KAAK,SAAS,KAAK,QAAQ;GAC3B,IAAI,CAAC,YAAY,OAAO;EAC1B;EACA,KAAK,OAAO,YAAY;GACtB,IAAI;GACJ,WAAW;GACX,OAAO,MAAM;GACb,SAAS,MAAM;GACf,MAAM;GACN,WAAW,KAAK,IAAI,MAAM,QAAQ,MAAM,eAAe,CAAC;GACxD,cAAc,MAAM,UAAU,MAAM,MAAM,SAAS,MAAM;EAC3D;EACA,OAAO;CACT,GAAG,MAAM;AACX;AACA,MAAM,sBAAsB,eAAe,CAAC,eAAe,IAAI,EAAE,oBAAoB,oBAAoB,aAAa,CAAC;AACvH,MAAa,mBAAmB,eAAe,CAAC,mBAAmB,IAAI,EAAE,eAAe,QAAQ;AAChG,MAAa,cAAc,eAAe,CAAC,mBAAmB,IAAI,EAAE,aAAa,MAAM;AACvF,MAAa,0BAA0B,eAAe,CAAC,cAAc,IAAG,gBAAe;CACrF,GAAG;CACH,SAAS,WAAW,QAAQ,KAAI,YAAW;EACzC,GAAG;EACH,eAAe,oBAAoB,OAAO,eAAe,IAAI,CAAC,CAAC;CACjE,EAAE;AACJ,EAAE"}
|
|
1
|
+
{"version":3,"file":"selectors.js","names":[],"sources":["../../src/organizationSlice/selectors.ts"],"sourcesContent":["// Copyright 2023 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { Tenant } from '@northern.tech/types/MenderTypes';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { OrganizationSliceType } from '.';\nimport { EXTERNAL_PROVIDER, productOrder } from '../constants';\n\nexport type OrganizationState = { organization: OrganizationSliceType };\n\nexport const getOrganization = (state: OrganizationState) => state.organization.organization;\nexport const getProducts = (state: OrganizationState) => state.organization.products;\nexport const getExternalIntegrations = (state: OrganizationState) => state.organization.externalDeviceIntegrations;\nexport const getAuditlogState = (state: OrganizationState) => state.organization.auditlog.selectionState;\nexport const getAuditLog = (state: OrganizationState) => state.organization.auditlog.events;\nexport const getAuditLogSelectionState = (state: OrganizationState) => state.organization.auditlog.selectionState;\nexport const getBillingProfile = (state: OrganizationState) => state.organization.organization.billing_profile;\nexport const getSubscription = (state: OrganizationState) => state.organization.organization.subscription;\nexport const getCard = (state: OrganizationState) => state.organization.card;\nexport const getSsoConfig = ({ organization: { ssoConfigs = [] } }: OrganizationState) => ssoConfigs[0];\nexport const getSsoEndpoint = (state: OrganizationState) => state.organization.ssoEndpoint;\nexport const getTenantsList = (state: OrganizationState) => state.organization.tenantList;\nexport const getWebhookEvents = (state: OrganizationState) => state.organization.webhooks.events;\nexport const getWebhookEventsTotal = (state: OrganizationState) => state.organization.webhooks.eventsTotal;\n\nexport const getDeviceTwinIntegrations = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && EXTERNAL_PROVIDER[integration.provider]?.deviceTwin)\n);\nexport const getIsServiceProvider = (state: OrganizationState) => state.organization.organization.service_provider;\n\nexport const getWebhooks = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && integration.provider === EXTERNAL_PROVIDER.webhook.provider)\n);\nexport const getWebhookEventInfo = createSelector([getWebhooks, getWebhookEvents, getWebhookEventsTotal], (webhooks, events, eventsTotal) =>\n webhooks.length ? { events, eventsTotal } : { events: [], eventsTotal: 0 }\n);\n\nexport const getAuditLogEntry = createSelector([getAuditLog, getAuditLogSelectionState], (events, { selectedId }) => {\n if (!selectedId) {\n return;\n }\n const [eventAction, eventTime] = atob(selectedId).split('|');\n return events.find(item => item.action === eventAction && item.time === eventTime);\n});\n\nconst toTierName = (key: string) => key.replace(/max_|_?devices/g, '') || 'standard';\nconst processDeviceLimits = (deviceLimits: Tenant['device_limits'], skipFilter = false) => {\n const result: { disabled: string[]; limits: Record<string, object> } = { limits: {}, disabled: [] };\n if (!deviceLimits) return result;\n const tiersByName = Object.fromEntries(Object.entries(deviceLimits).map(([key, limit]) => [toTierName(key), { key, limit }]));\n return productOrder.reduce((accu, tierName) => {\n const entry = tiersByName[tierName];\n if (!entry) return accu;\n const { key, limit } = entry;\n if (limit.value === 0) {\n accu.disabled.push(tierName);\n if (!skipFilter) return accu;\n }\n accu.limits[tierName] = {\n id: tierName,\n backendId: key,\n limit: limit.value,\n current: limit.current_value,\n name: tierName,\n quotaLeft: Math.max(limit.value - limit.current_value, 0),\n limitReached: limit.value !== -1 && limit.value <= limit.current_value\n };\n return accu;\n }, result);\n};\nconst getDeviceLimitsInfo = createSelector([getOrganization], ({ device_limits }) => processDeviceLimits(device_limits));\nexport const getDisabledTiers = createSelector([getDeviceLimitsInfo], ({ disabled }) => disabled);\nexport const getSpLimits = createSelector([getDeviceLimitsInfo], ({ limits }) => limits);\nexport const getTenantListWithLimits = createSelector([getTenantsList], tenantList => ({\n ...tenantList,\n tenants: tenantList.tenants.map(tenant => ({\n ...tenant,\n device_limits: processDeviceLimits(tenant.device_limits, true).limits\n }))\n}));\n"],"mappings":";;;AAqBA,MAAa,mBAAmB,UAA6B,MAAM,aAAa;AAChF,MAAa,eAAe,UAA6B,MAAM,aAAa;AAC5E,MAAa,2BAA2B,UAA6B,MAAM,aAAa;AACxF,MAAa,oBAAoB,UAA6B,MAAM,aAAa,SAAS;AAC1F,MAAa,eAAe,UAA6B,MAAM,aAAa,SAAS;AACrF,MAAa,6BAA6B,UAA6B,MAAM,aAA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;CAAE;CAClG,IAAI,CAAC,cAAc,OAAO;CAC1B,MAAM,cAAc,OAAO,YAAY,OAAO,QAAQ,YAAY,CAAC,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC,WAAW,GAAG,GAAG;EAAE;EAAK;CAAM,CAAC,CAAC,CAAC;CAC5H,OAAO,aAAa,QAAQ,MAAM,aAAa;EAC7C,MAAM,QAAQ,YAAY;EAC1B,IAAI,CAAC,OAAO,OAAO;EACnB,MAAM,EAAE,KAAK,UAAU;EACvB,IAAI,MAAM,UAAU,GAAG;GACrB,KAAK,SAAS,KAAK,QAAQ;GAC3B,IAAI,CAAC,YAAY,OAAO;EAC1B;EACA,KAAK,OAAO,YAAY;GACtB,IAAI;GACJ,WAAW;GACX,OAAO,MAAM;GACb,SAAS,MAAM;GACf,MAAM;GACN,WAAW,KAAK,IAAI,MAAM,QAAQ,MAAM,eAAe,CAAC;GACxD,cAAc,MAAM,UAAU,MAAM,MAAM,SAAS,MAAM;EAC3D;EACA,OAAO;CACT,GAAG,MAAM;AACX;AACA,MAAM,sBAAsB,eAAe,CAAC,eAAe,IAAI,EAAE,oBAAoB,oBAAoB,aAAa,CAAC;AACvH,MAAa,mBAAmB,eAAe,CAAC,mBAAmB,IAAI,EAAE,eAAe,QAAQ;AAChG,MAAa,cAAc,eAAe,CAAC,mBAAmB,IAAI,EAAE,aAAa,MAAM;AACvF,MAAa,0BAA0B,eAAe,CAAC,cAAc,IAAG,gBAAe;CACrF,GAAG;CACH,SAAS,WAAW,QAAQ,KAAI,YAAW;EACzC,GAAG;EACH,eAAe,oBAAoB,OAAO,eAAe,IAAI,CAAC,CAAC;CACjE,EAAE;AACJ,EAAE"}
|
|
@@ -24,6 +24,7 @@ exports.getIntegrations = require_thunks.getIntegrations;
|
|
|
24
24
|
exports.getProducts = require_thunks.getProducts;
|
|
25
25
|
exports.getSsoConfigById = require_thunks.getSsoConfigById;
|
|
26
26
|
exports.getSsoConfigs = require_thunks.getSsoConfigs;
|
|
27
|
+
exports.getSsoEndpoints = require_thunks.getSsoEndpoints;
|
|
27
28
|
exports.getTargetLocation = require_thunks.getTargetLocation;
|
|
28
29
|
exports.getTenantToken = require_thunks.getTenantToken;
|
|
29
30
|
exports.getTenants = require_thunks.getTenants;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as locations, a as AvailablePlans } from "../constants-tC3RR_Oo.cjs";
|
|
2
|
-
import { T as SortOptions, g as PaginationOptions } from "../constants-
|
|
3
|
-
import { n as ContentType } from "../constants-
|
|
4
|
-
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "../types-
|
|
5
|
-
import { i as SnackbarContent } from "../index-
|
|
6
|
-
import { i as RootState, t as AppDispatch } from "../store-
|
|
2
|
+
import { T as SortOptions, g as PaginationOptions } from "../constants-DsJM7i1a.cjs";
|
|
3
|
+
import { n as ContentType } from "../constants-Cr68z0iM.cjs";
|
|
4
|
+
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "../types-DXm-HM-j.cjs";
|
|
5
|
+
import { i as SnackbarContent } from "../index-CwjRezv2.cjs";
|
|
6
|
+
import { i as RootState, t as AppDispatch } from "../store-xuKpT-o4.cjs";
|
|
7
7
|
import { BillingProfile, Event, Integration, NewTenantTypeManagement, PreviewRequest, Product, ProductInfo, Subscription, SupportRequest, UpdateChildTenant } from "@northern.tech/types/MenderTypes";
|
|
8
8
|
//#region src/organizationSlice/thunks.d.ts
|
|
9
9
|
export declare const cancelRequest: import("@reduxjs/toolkit").AsyncThunk<{
|
|
@@ -710,5 +710,19 @@ export declare const getSsoConfigs: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
710
710
|
fulfilledMeta?: unknown;
|
|
711
711
|
rejectedMeta?: unknown;
|
|
712
712
|
}>;
|
|
713
|
+
export declare const getSsoEndpoints: import("@reduxjs/toolkit").AsyncThunk<{
|
|
714
|
+
payload: import("@northern.tech/types/types.gen").SsoEndpoint;
|
|
715
|
+
type: "organization/receiveSsoEndpoint";
|
|
716
|
+
}, void, {
|
|
717
|
+
dispatch: AppDispatch;
|
|
718
|
+
state: RootState;
|
|
719
|
+
extra?: unknown;
|
|
720
|
+
rejectValue?: unknown;
|
|
721
|
+
serializedErrorType?: unknown;
|
|
722
|
+
pendingMeta?: unknown;
|
|
723
|
+
fulfilledMeta?: unknown;
|
|
724
|
+
rejectedMeta?: unknown;
|
|
725
|
+
}>;
|
|
713
726
|
//#endregion
|
|
727
|
+
export {};
|
|
714
728
|
//# sourceMappingURL=thunks.d.cts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as locations, a as AvailablePlans } from "../constants-tC3RR_Oo.js";
|
|
2
|
-
import { T as SortOptions, g as PaginationOptions } from "../constants-
|
|
3
|
-
import { n as ContentType } from "../constants-
|
|
4
|
-
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "../types-
|
|
5
|
-
import { i as SnackbarContent } from "../index-
|
|
6
|
-
import { i as RootState, t as AppDispatch } from "../store-
|
|
2
|
+
import { T as SortOptions, g as PaginationOptions } from "../constants-BtVu36ou.js";
|
|
3
|
+
import { n as ContentType } from "../constants-Cr68z0iM.js";
|
|
4
|
+
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "../types-DQtRiyGK.js";
|
|
5
|
+
import { i as SnackbarContent } from "../index-sw1Baeui.js";
|
|
6
|
+
import { i as RootState, t as AppDispatch } from "../store-CROmfENq.js";
|
|
7
7
|
import { BillingProfile, Event, Integration, NewTenantTypeManagement, PreviewRequest, Product, ProductInfo, Subscription, SupportRequest, UpdateChildTenant } from "@northern.tech/types/MenderTypes";
|
|
8
8
|
//#region src/organizationSlice/thunks.d.ts
|
|
9
9
|
export declare const cancelRequest: import("@reduxjs/toolkit").AsyncThunk<{
|
|
@@ -710,5 +710,19 @@ export declare const getSsoConfigs: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
710
710
|
fulfilledMeta?: unknown;
|
|
711
711
|
rejectedMeta?: unknown;
|
|
712
712
|
}>;
|
|
713
|
+
export declare const getSsoEndpoints: import("@reduxjs/toolkit").AsyncThunk<{
|
|
714
|
+
payload: import("@northern.tech/types/types.gen").SsoEndpoint;
|
|
715
|
+
type: "organization/receiveSsoEndpoint";
|
|
716
|
+
}, void, {
|
|
717
|
+
dispatch: AppDispatch;
|
|
718
|
+
state: RootState;
|
|
719
|
+
extra?: unknown;
|
|
720
|
+
rejectValue?: unknown;
|
|
721
|
+
serializedErrorType?: unknown;
|
|
722
|
+
pendingMeta?: unknown;
|
|
723
|
+
fulfilledMeta?: unknown;
|
|
724
|
+
rejectedMeta?: unknown;
|
|
725
|
+
}>;
|
|
713
726
|
//#endregion
|
|
727
|
+
export {};
|
|
714
728
|
//# sourceMappingURL=thunks.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { addTenant, cancelRequest, cancelUpgrade, changeIntegration, changeSsoConfig, completeUpgrade, confirmCardUpdate, createBillingProfile, createIntegration, createOrganizationTrial, deleteIntegration, deleteSsoConfig, downloadLicenseReport, editBillingProfile, editTenant, getAuditLogs, getAuditLogsCsvLink, getBillingPreview, getCurrentCard, getCurrentSubscription, getIntegrations, getProducts, getSsoConfigById, getSsoConfigs, getTargetLocation, getTenantToken, getTenants, getUserBilling, getUserOrganization, getUserSubscription, getWebhookEvents, removeTenant, requestPlanChange, requestPlanUpgrade, sendSupportMessage, setAuditlogsState, setTenantsListState, startCardUpdate, startUpgrade, storeSsoConfig, tenantDataDivergedMessage, transformProductResponse };
|
|
1
|
+
export { addTenant, cancelRequest, cancelUpgrade, changeIntegration, changeSsoConfig, completeUpgrade, confirmCardUpdate, createBillingProfile, createIntegration, createOrganizationTrial, deleteIntegration, deleteSsoConfig, downloadLicenseReport, editBillingProfile, editTenant, getAuditLogs, getAuditLogsCsvLink, getBillingPreview, getCurrentCard, getCurrentSubscription, getIntegrations, getProducts, getSsoConfigById, getSsoConfigs, getSsoEndpoints, getTargetLocation, getTenantToken, getTenants, getUserBilling, getUserOrganization, getUserSubscription, getWebhookEvents, removeTenant, requestPlanChange, requestPlanUpgrade, sendSupportMessage, setAuditlogsState, setTenantsListState, startCardUpdate, startUpgrade, storeSsoConfig, tenantDataDivergedMessage, transformProductResponse } from "../thunks.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PricePreview, c as ProductTier, d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, s as ProductPlan, t as AuditLog, u as Tenant } from "../types-
|
|
1
|
+
import { a as PricePreview, c as ProductTier, d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, s as ProductPlan, t as AuditLog, u as Tenant } from "../types-DXm-HM-j.cjs";
|
|
2
2
|
export { AuditLog, AuditLogSelectionState, Card, Organization, PricePreview, ProductConfig, ProductPlan, ProductTier, SSOConfig, Tenant, TenantList, Webhook };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PricePreview, c as ProductTier, d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, s as ProductPlan, t as AuditLog, u as Tenant } from "../types-
|
|
1
|
+
import { a as PricePreview, c as ProductTier, d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, s as ProductPlan, t as AuditLog, u as Tenant } from "../types-DQtRiyGK.js";
|
|
2
2
|
export { AuditLog, AuditLogSelectionState, Card, Organization, PricePreview, ProductConfig, ProductPlan, ProductTier, SSOConfig, Tenant, TenantList, Webhook };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ReleaseSliceType, c as SoftwareList, d as initialState, f as releaseSlice, i as Release, l as _default, n as Manifest, o as ReleasesList, p as sliceName, r as ManifestsList, s as SoftwareKind, t as Artifact, u as actions } from "../index-
|
|
1
|
+
import { a as ReleaseSliceType, c as SoftwareList, d as initialState, f as releaseSlice, i as Release, l as _default, n as Manifest, o as ReleasesList, p as sliceName, r as ManifestsList, s as SoftwareKind, t as Artifact, u as actions } from "../index-BnWRWRyV.cjs";
|
|
2
2
|
export { Artifact, Manifest, ManifestsList, Release, ReleaseSliceType, ReleasesList, SoftwareKind, SoftwareList, actions, _default as default, initialState, releaseSlice, sliceName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ReleaseSliceType, c as SoftwareList, d as initialState, f as releaseSlice, i as Release, l as _default, n as Manifest, o as ReleasesList, p as sliceName, r as ManifestsList, s as SoftwareKind, t as Artifact, u as actions } from "../index-
|
|
1
|
+
import { a as ReleaseSliceType, c as SoftwareList, d as initialState, f as releaseSlice, i as Release, l as _default, n as Manifest, o as ReleasesList, p as sliceName, r as ManifestsList, s as SoftwareKind, t as Artifact, u as actions } from "../index-CVsuKFks.js";
|
|
2
2
|
export { Artifact, Manifest, ManifestsList, Release, ReleaseSliceType, ReleasesList, SoftwareKind, SoftwareList, actions, _default as default, initialState, releaseSlice, sliceName };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as SORTING_OPTIONS, l as DEVICE_LIST_DEFAULTS } from "../constants-
|
|
1
|
+
import { f as SORTING_OPTIONS, l as DEVICE_LIST_DEFAULTS } from "../constants-TPYvZDsI.js";
|
|
2
2
|
import { createSlice } from "@reduxjs/toolkit";
|
|
3
3
|
//#region src/releasesSlice/index.ts
|
|
4
4
|
const sliceName = "releases";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as SORTING_OPTIONS, l as DEVICE_LIST_DEFAULTS } from "../constants-
|
|
1
|
+
import { f as SORTING_OPTIONS, l as DEVICE_LIST_DEFAULTS } from "../constants-TPYvZDsI.js";
|
|
2
2
|
import { initialState } from "./index.js";
|
|
3
3
|
//#region src/releasesSlice/mocks.ts
|
|
4
4
|
const deviceTypes = { qemu: "qemux86-64" };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as getSelectedReleases, D as getSoftwareTags, E as getSoftwareListState, O as getSoftwareTagsById, S as getSelectedRelease, T as getSoftwareList, _ as getReleasesById, a as getDeltaJobsListState, b as getSelectedManifest, c as getHasSoftware, d as getManifestsById, f as getManifestsList, g as getReleaseTagsById, h as getReleaseTags, i as getDeltaJobsById, k as getUpdateTypes, l as getManifestTags, m as getReleaseListState, n as getActiveTab, o as getHasManifests, p as getManifestsListState, r as getDeltaJobById, s as getHasReleases, t as ReleasesState, u as getManifestTagsById, v as getReleasesList, w as getSoftwareById, x as getSelectedManifests, y as getSelectedJob } from "../selectors-
|
|
1
|
+
import { C as getSelectedReleases, D as getSoftwareTags, E as getSoftwareListState, O as getSoftwareTagsById, S as getSelectedRelease, T as getSoftwareList, _ as getReleasesById, a as getDeltaJobsListState, b as getSelectedManifest, c as getHasSoftware, d as getManifestsById, f as getManifestsList, g as getReleaseTagsById, h as getReleaseTags, i as getDeltaJobsById, k as getUpdateTypes, l as getManifestTags, m as getReleaseListState, n as getActiveTab, o as getHasManifests, p as getManifestsListState, r as getDeltaJobById, s as getHasReleases, t as ReleasesState, u as getManifestTagsById, v as getReleasesList, w as getSoftwareById, x as getSelectedManifests, y as getSelectedJob } from "../selectors-DhAje0Fw.cjs";
|
|
2
2
|
export { ReleasesState, getActiveTab, getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getHasManifests, getHasReleases, getHasSoftware, getManifestTags, getManifestTagsById, getManifestsById, getManifestsList, getManifestsListState, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getSelectedJob, getSelectedManifest, getSelectedManifests, getSelectedRelease, getSelectedReleases, getSoftwareById, getSoftwareList, getSoftwareListState, getSoftwareTags, getSoftwareTagsById, getUpdateTypes };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as getSelectedReleases, D as getSoftwareTags, E as getSoftwareListState, O as getSoftwareTagsById, S as getSelectedRelease, T as getSoftwareList, _ as getReleasesById, a as getDeltaJobsListState, b as getSelectedManifest, c as getHasSoftware, d as getManifestsById, f as getManifestsList, g as getReleaseTagsById, h as getReleaseTags, i as getDeltaJobsById, k as getUpdateTypes, l as getManifestTags, m as getReleaseListState, n as getActiveTab, o as getHasManifests, p as getManifestsListState, r as getDeltaJobById, s as getHasReleases, t as ReleasesState, u as getManifestTagsById, v as getReleasesList, w as getSoftwareById, x as getSelectedManifests, y as getSelectedJob } from "../selectors-
|
|
1
|
+
import { C as getSelectedReleases, D as getSoftwareTags, E as getSoftwareListState, O as getSoftwareTagsById, S as getSelectedRelease, T as getSoftwareList, _ as getReleasesById, a as getDeltaJobsListState, b as getSelectedManifest, c as getHasSoftware, d as getManifestsById, f as getManifestsList, g as getReleaseTagsById, h as getReleaseTags, i as getDeltaJobsById, k as getUpdateTypes, l as getManifestTags, m as getReleaseListState, n as getActiveTab, o as getHasManifests, p as getManifestsListState, r as getDeltaJobById, s as getHasReleases, t as ReleasesState, u as getManifestTagsById, v as getReleasesList, w as getSoftwareById, x as getSelectedManifests, y as getSelectedJob } from "../selectors-BBt6fdWs.js";
|
|
2
2
|
export { ReleasesState, getActiveTab, getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getHasManifests, getHasReleases, getHasSoftware, getManifestTags, getManifestTagsById, getManifestsById, getManifestsList, getManifestsListState, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getSelectedJob, getSelectedManifest, getSelectedManifests, getSelectedRelease, getSelectedReleases, getSoftwareById, getSoftwareList, getSoftwareListState, getSoftwareTags, getSoftwareTagsById, getUpdateTypes };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("../rolldown-runtime-VH7oDXx4.cjs");
|
|
3
|
-
const require_constants = require("../constants-
|
|
3
|
+
const require_constants = require("../constants-DKF0kxhY.cjs");
|
|
4
4
|
const require_releasesSlice_constants = require("./constants.cjs");
|
|
5
5
|
const require_releasesSlice_index = require("./index.cjs");
|
|
6
6
|
const require_actions = require("../actions.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as SortOptions } from "../constants-
|
|
2
|
-
import { c as SoftwareList, i as Release, n as Manifest$1, o as ReleasesList, r as ManifestsList } from "../index-
|
|
3
|
-
import { i as SnackbarContent } from "../index-
|
|
4
|
-
import { i as RootState, t as AppDispatch } from "../store-
|
|
1
|
+
import { T as SortOptions } from "../constants-DsJM7i1a.cjs";
|
|
2
|
+
import { c as SoftwareList, i as Release, n as Manifest$1, o as ReleasesList, r as ManifestsList } from "../index-BnWRWRyV.cjs";
|
|
3
|
+
import { i as SnackbarContent } from "../index-CwjRezv2.cjs";
|
|
4
|
+
import { i as RootState, t as AppDispatch } from "../store-xuKpT-o4.cjs";
|
|
5
5
|
import { ArtifactUpdateV1, DeltaJobsListItem, ManifestUpdate, ReleaseUpdate, Software, Tags } from "@northern.tech/types/MenderTypes";
|
|
6
6
|
//#region src/releasesSlice/thunks.d.ts
|
|
7
7
|
export declare const getArtifactInstallCount: import("@reduxjs/toolkit").AsyncThunk<{
|
|
@@ -529,4 +529,5 @@ export declare const checkReleasesExistence: import("@reduxjs/toolkit").AsyncThu
|
|
|
529
529
|
rejectedMeta?: unknown;
|
|
530
530
|
}>;
|
|
531
531
|
//#endregion
|
|
532
|
+
export {};
|
|
532
533
|
//# sourceMappingURL=thunks.d.cts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as SortOptions } from "../constants-
|
|
2
|
-
import { c as SoftwareList, i as Release, n as Manifest$1, o as ReleasesList, r as ManifestsList } from "../index-
|
|
3
|
-
import { i as SnackbarContent } from "../index-
|
|
4
|
-
import { i as RootState, t as AppDispatch } from "../store-
|
|
1
|
+
import { T as SortOptions } from "../constants-BtVu36ou.js";
|
|
2
|
+
import { c as SoftwareList, i as Release, n as Manifest$1, o as ReleasesList, r as ManifestsList } from "../index-CVsuKFks.js";
|
|
3
|
+
import { i as SnackbarContent } from "../index-sw1Baeui.js";
|
|
4
|
+
import { i as RootState, t as AppDispatch } from "../store-CROmfENq.js";
|
|
5
5
|
import { ArtifactUpdateV1, DeltaJobsListItem, ManifestUpdate, ReleaseUpdate, Software, Tags } from "@northern.tech/types/MenderTypes";
|
|
6
6
|
//#region src/releasesSlice/thunks.d.ts
|
|
7
7
|
export declare const getArtifactInstallCount: import("@reduxjs/toolkit").AsyncThunk<{
|
|
@@ -529,4 +529,5 @@ export declare const checkReleasesExistence: import("@reduxjs/toolkit").AsyncThu
|
|
|
529
529
|
rejectedMeta?: unknown;
|
|
530
530
|
}>;
|
|
531
531
|
//#endregion
|
|
532
|
+
export {};
|
|
532
533
|
//# sourceMappingURL=thunks.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as headerNames, O as inventoryApiUrlV2, R as softwareIndicator, b as deploymentsApiUrlV2, f as SORTING_OPTIONS,
|
|
1
|
+
import { E as headerNames, O as inventoryApiUrlV2, R as softwareIndicator, b as deploymentsApiUrlV2, f as SORTING_OPTIONS, ht as emptyFilter, l as DEVICE_LIST_DEFAULTS, v as deploymentsApiUrl, y as deploymentsApiUrlV1alpha1 } from "../constants-TPYvZDsI.js";
|
|
2
2
|
import { ARTIFACT_GENERATION_TYPE } from "./constants.js";
|
|
3
3
|
import { actions, sliceName } from "./index.js";
|
|
4
4
|
import actions_default from "../actions.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Upload, i as SnackbarContent, n as SearchState, r as SentryConfig, t as AppSliceType } from "./index-
|
|
1
|
+
import { a as Upload, i as SnackbarContent, n as SearchState, r as SentryConfig, t as AppSliceType } from "./index-CwjRezv2.cjs";
|
|
2
2
|
//#region src/appSlice/selectors.d.ts
|
|
3
3
|
type AppState = {
|
|
4
4
|
app: AppSliceType;
|
|
@@ -96,4 +96,4 @@ declare const getIsPreview: ((state: AppState) => boolean) & {
|
|
|
96
96
|
};
|
|
97
97
|
//#endregion
|
|
98
98
|
export { getStripeKey as _, getFeatures as a, getVersionInformation as b, getHostedAnnouncement as c, getIsUploading as d, getRecaptchaKey as f, getSnackbar as g, getSentryConfig as h, getDocsVersion as i, getIsFirstLogin as l, getSearchedDevices as m, getAppInitDone as n, getFeedbackProbability as o, getSearchState as p, getCommit as r, getHostAddress as s, AppState as t, getIsPreview as u, getTrackerCode as v, getUploads as y };
|
|
99
|
-
//# sourceMappingURL=selectors-
|
|
99
|
+
//# sourceMappingURL=selectors-BA53-rNP.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ReleaseSliceType, c as SoftwareList, i as Release, n as Manifest$1, o as ReleasesList, r as ManifestsList } from "./index-
|
|
1
|
+
import { a as ReleaseSliceType, c as SoftwareList, i as Release, n as Manifest$1, o as ReleasesList, r as ManifestsList } from "./index-CVsuKFks.js";
|
|
2
2
|
import { ReleaseV2, Software } from "@northern.tech/types/MenderTypes";
|
|
3
3
|
//#region src/releasesSlice/selectors.d.ts
|
|
4
4
|
type ReleasesState = {
|
|
@@ -590,4 +590,4 @@ declare const getHasSoftware: ((state: ReleasesState) => number | boolean) & {
|
|
|
590
590
|
};
|
|
591
591
|
//#endregion
|
|
592
592
|
export { getSelectedReleases as C, getSoftwareTags as D, getSoftwareListState as E, getSoftwareTagsById as O, getSelectedRelease as S, getSoftwareList as T, getReleasesById as _, getDeltaJobsListState as a, getSelectedManifest as b, getHasSoftware as c, getManifestsById as d, getManifestsList as f, getReleaseTagsById as g, getReleaseTags as h, getDeltaJobsById as i, getUpdateTypes as k, getManifestTags as l, getReleaseListState as m, getActiveTab as n, getHasManifests as o, getManifestsListState as p, getDeltaJobById as r, getHasReleases as s, ReleasesState as t, getManifestTagsById as u, getReleasesList as v, getSoftwareById as w, getSelectedManifests as x, getSelectedJob as y };
|
|
593
|
-
//# sourceMappingURL=selectors-
|
|
593
|
+
//# sourceMappingURL=selectors-BBt6fdWs.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as DeviceSliceType, i as DeviceGroup, l as DeviceTierLimits, o as DeviceListState, r as DeviceFilter, t as Device } from "./index-
|
|
1
|
+
import { c as DeviceSliceType, i as DeviceGroup, l as DeviceTierLimits, o as DeviceListState, r as DeviceFilter, t as Device } from "./index-Bc7Ugak_.js";
|
|
2
2
|
//#region src/devicesSlice/selectors.d.ts
|
|
3
3
|
type DevicesState = {
|
|
4
4
|
devices: DeviceSliceType;
|
|
@@ -709,4 +709,4 @@ declare const getDeviceTypes: ((state: DevicesState) => string[]) & {
|
|
|
709
709
|
};
|
|
710
710
|
//#endregion
|
|
711
711
|
export { getListedDevices as C, getTestDeviceCount as D, getSortedFilteringAttributes as E, getTestDeviceLimit as O, getLimitMaxed as S, getSelectedGroupInfo as T, getFilteringAttributes as _, getDeviceById as a, getGroupsById as b, getDeviceIdentityAttributes as c, getDeviceListState as d, getDeviceReports as f, getEnabledTiers as g, getDevicesByStatus as h, getCombinedLimit as i, getDeviceLimitStats as l, getDevicesById as m, getAcceptedDevices as n, getDeviceCountsByStatus as o, getDeviceTypes as p, getAttributesList as r, getDeviceFilters as s, DevicesState as t, getDeviceLimits as u, getGroupData as v, getSelectedGroup as w, getGroupsByIdWithoutUngrouped as x, getGroups as y };
|
|
712
|
-
//# sourceMappingURL=selectors-
|
|
712
|
+
//# sourceMappingURL=selectors-C1JTUBEz.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as DeviceSliceType, i as DeviceGroup, l as DeviceTierLimits, o as DeviceListState, r as DeviceFilter, t as Device } from "./index-
|
|
1
|
+
import { c as DeviceSliceType, i as DeviceGroup, l as DeviceTierLimits, o as DeviceListState, r as DeviceFilter, t as Device } from "./index-3mpuzSLi.cjs";
|
|
2
2
|
//#region src/devicesSlice/selectors.d.ts
|
|
3
3
|
type DevicesState = {
|
|
4
4
|
devices: DeviceSliceType;
|
|
@@ -709,4 +709,4 @@ declare const getDeviceTypes: ((state: DevicesState) => string[]) & {
|
|
|
709
709
|
};
|
|
710
710
|
//#endregion
|
|
711
711
|
export { getListedDevices as C, getTestDeviceCount as D, getSortedFilteringAttributes as E, getTestDeviceLimit as O, getLimitMaxed as S, getSelectedGroupInfo as T, getFilteringAttributes as _, getDeviceById as a, getGroupsById as b, getDeviceIdentityAttributes as c, getDeviceListState as d, getDeviceReports as f, getEnabledTiers as g, getDevicesByStatus as h, getCombinedLimit as i, getDeviceLimitStats as l, getDevicesById as m, getAcceptedDevices as n, getDeviceCountsByStatus as o, getDeviceTypes as p, getAttributesList as r, getDeviceFilters as s, DevicesState as t, getDeviceLimits as u, getGroupData as v, getSelectedGroup as w, getGroupsByIdWithoutUngrouped as x, getGroups as y };
|
|
712
|
-
//# sourceMappingURL=selectors-
|
|
712
|
+
//# sourceMappingURL=selectors-CCrzjz8P.d.cts.map
|