@northern.tech/store 0.47.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 +12 -11
- package/dist/commonSelectors.d.ts +12 -11
- package/dist/commonSelectors.js +1 -1
- package/dist/{constants-CCkKh9KM.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-B3NH1IQi.d.ts → constants-DOnQ-UzD.d.cts} +2 -3
- package/dist/{constants-B3NH1IQi.d.cts → constants-DOnQ-UzD.d.ts} +2 -3
- package/dist/{constants-CUwYPOYK.d.cts → constants-DsJM7i1a.d.cts} +3 -3
- package/dist/{constants-DjiC_FnZ.js → constants-TPYvZDsI.js} +14 -15
- package/dist/{constants-DjiC_FnZ.js.map → constants-TPYvZDsI.js.map} +1 -1
- package/dist/constants.cjs +313 -52
- package/dist/constants.d.cts +4 -4
- package/dist/constants.d.ts +4 -4
- package/dist/constants.js +3 -3
- 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-7jVuB4tG.d.cts → index-3mpuzSLi.d.cts} +2 -2
- package/dist/{index-BcrZxKLw.d.cts → index-BP392nKV.d.cts} +2 -2
- package/dist/{index-DOPRnlaC.d.ts → index-Bc7Ugak_.d.ts} +2 -2
- package/dist/{index-BWtIaimn.d.cts → index-BnWRWRyV.d.cts} +2 -2
- package/dist/{index-o_m7WKiR.d.ts → index-CVsuKFks.d.ts} +2 -2
- package/dist/{index-C2za83Qs.d.ts → index-Cai4oXpN.d.ts} +2 -2
- package/dist/{index-CaNZaXie.d.cts → index-CwjRezv2.d.cts} +2 -2
- package/dist/{index-DNYeo7wc.d.cts → index-D0DMxU8O.d.cts} +2 -2
- package/dist/{index-CzQRHJ6f.d.cts → index-DTeKxs80.d.cts} +6 -3
- package/dist/{index-CvMpbsOo.d.ts → index-TS08J8mY.d.ts} +6 -3
- package/dist/{index-C1vNDCYR.d.ts → index-oFn9qHWB.d.ts} +2 -2
- package/dist/{index-CThE5Gfh.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/constants.cjs +0 -2
- package/dist/releasesSlice/constants.cjs.map +1 -1
- package/dist/releasesSlice/constants.d.cts +2 -2
- package/dist/releasesSlice/constants.d.ts +2 -2
- package/dist/releasesSlice/constants.js +1 -2
- package/dist/releasesSlice/constants.js.map +1 -1
- package/dist/releasesSlice/index.d.cts +1 -1
- package/dist/releasesSlice/index.d.ts +1 -1
- package/dist/releasesSlice/index.js +1 -1
- package/dist/releasesSlice/mocks.js +1 -1
- package/dist/releasesSlice/selectors.d.cts +1 -1
- package/dist/releasesSlice/selectors.d.ts +1 -1
- package/dist/releasesSlice/thunks.cjs +2 -2
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +5 -4
- package/dist/releasesSlice/thunks.d.ts +5 -4
- package/dist/releasesSlice/thunks.js +2 -2
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/{selectors-XzNyGFJI.d.cts → selectors-BA53-rNP.d.cts} +2 -2
- package/dist/{selectors-Ba9LUr_0.d.ts → selectors-BBt6fdWs.d.ts} +2 -2
- package/dist/{selectors-1394DVvN.d.ts → selectors-C1JTUBEz.d.ts} +2 -2
- package/dist/{selectors-DDsFLtxz.d.cts → selectors-CCrzjz8P.d.cts} +2 -2
- package/dist/{selectors-aLOjKkxN.d.cts → selectors-CYBOWy-Q.d.cts} +2 -2
- package/dist/{selectors-jusUdUdc.d.cts → selectors-D1x4Lqo_.d.cts} +2 -2
- package/dist/{selectors-LhR8TyWU.d.cts → selectors-DSV8VB7p.d.cts} +5 -8
- package/dist/{selectors-DeqP_VLU.d.cts → selectors-DhAje0Fw.d.cts} +2 -2
- package/dist/{selectors-DFSv4A_m.d.ts → selectors-DljXYHm2.d.ts} +5 -8
- package/dist/{selectors-DQKg681M.d.ts → selectors-DtvvhDLv.d.ts} +2 -2
- package/dist/{selectors-CAo0fzIZ.d.ts → selectors-Dv3oN6m9.d.ts} +2 -2
- package/dist/{selectors-vk0GUGHf.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-v5V-bbB_.d.ts → store-CROmfENq.d.ts} +9 -9
- package/dist/{store-CCvk8X-k.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 +15 -6
- 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 +15 -7
- package/dist/thunks.js.map +1 -1
- package/dist/{types-B2gphGj8.d.ts → types-DQtRiyGK.d.ts} +3 -3
- package/dist/{types-CLASWtVP.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 +9 -10
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +3 -9
- 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;E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vailablePlans } 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,6BAA6B,UAA6B,MAAM,aAAa,SAAS;AACnG,MAAa,qBAAqB,UAA6B,MAAM,aAAa,aAAa;AAC/F,MAAa,mBAAmB,UAA6B,MAAM,aAAa,aAAa;AAC7F,MAAa,WAAW,UAA6B,MAAM,aAAa;AACxE,MAAa,gBAAgB,EAAE,cAAc,EAAE,aAAa,CAAC,UAA6B,WAAW;AACrG,MAAa,kBAAkB,UAA6B,MAAM,aAAa;AAC/E,MAAa,oBAAoB,UAA6B,MAAM,aAAa,SAAS;AAC1F,MAAa,yBAAyB,UAA6B,MAAM,aAAa,SAAS;AAE/F,MAAa,6BAAA,GAA4BA,iBAAAA,eAAAA,CAAe,CAAC,uBAAuB,IAAG,iBACjF,aAAa,QAAO,gBAAe,YAAY,MAAMC,kBAAAA,kBAAkB,YAAY,SAAS,EAAE,UAAU,CAC1G;AACA,MAAa,wBAAwB,UAA6B,MAAM,aAAa,aAAa;AAElG,MAAa,eAAA,GAAcD,iBAAAA,eAAAA,CAAe,CAAC,uBAAuB,IAAG,iBACnE,aAAa,QAAO,gBAAe,YAAY,MAAM,YAAY,aAAaC,kBAAAA,kBAAkB,QAAQ,QAAQ,CAClH;AACA,MAAa,uBAAA,GAAsBD,iBAAAA,eAAAA,CAAe;CAAC;CAAa;CAAkB;AAAqB,IAAI,UAAU,QAAQ,gBAC3H,SAAS,SAAS;CAAE;CAAQ;AAAY,IAAI;CAAE,QAAQ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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
|
+
{"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,\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,mBAAmB,UAA6B,MAAM,aAAa,aAAa;AAC7F,MAAa,WAAW,UAA6B,MAAM,aAAa;AACxE,MAAa,gBAAgB,EAAE,cAAc,EAAE,aAAa,CAAC,UAA6B,WAAW;AACrG,MAAa,kBAAkB,UAA6B,MAAM,aAAa;AAC/E,MAAa,kBAAkB,UAA6B,MAAM,aAAa;AAC/E,MAAa,oBAAoB,UAA6B,MAAM,aAAa,SAAS;AAC1F,MAAa,yBAAyB,UAA6B,MAAM,aAAa,SAAS;AAE/F,MAAa,6BAAA,GAA4BA,iBAAAA,eAAAA,CAAe,CAAC,uBAAuB,IAAG,iBACjF,aAAa,QAAO,gBAAe,YAAY,MAAMC,kBAAAA,kBAAkB,YAAY,SAAS,EAAE,UAAU,CA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ACA,KAAK,OAAO,YAAY;GACtB,IAAI;GACJ,WAAW;GACX,OAAO,MAAM;GACb,SAAS,MAAM;GACf,MAAM;GACN,WAAW,KAAK,IAAI,MAAM,QAAQ,MAAM,eAAe,CAAC;GACxD,cAAc,MAAM,UAAU,MAAM,MAAM,SAAS,MAAM;EAC3D;EACA,OAAO;CACT,GAAG,MAAM;AACX;AACA,MAAM,uBAAA,GAAsBF,iBAAAA,eAAAA,CAAe,CAAC,eAAe,IAAI,EAAE,oBAAoB,oBAAoB,aAAa,CAAC;AACvH,MAAa,oBAAA,GAAmBA,iBAAAA,eAAAA,CAAe,CAAC,mBAAmB,IAAI,EAAE,eAAe,QAAQ;AAChG,MAAa,eAAA,GAAcA,iBAAAA,eAAAA,CAAe,CAAC,mBAAmB,IAAI,EAAE,aAAa,MAAM;AACvF,MAAa,2BAAA,GAA0BA,iBAAAA,eAAAA,CAAe,CAAC,cAAc,IAAG,gBAAe;CACrF,GAAG;CACH,SAAS,WAAW,QAAQ,KAAI,YAAW;EACzC,GAAG;EACH,eAAe,oBAAoB,OAAO,eAAe,IAAI,CAAC,CAAC;CACjE,EAAE;AACJ,EAAE"}
|
|
@@ -1,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(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,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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e,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 };
|
|
@@ -2,7 +2,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
//#region src/releasesSlice/constants.ts
|
|
3
3
|
const ARTIFACT_GENERATION_TYPE = { SINGLE_FILE: "single_file" };
|
|
4
4
|
const currentArtifact = "artifact_name";
|
|
5
|
-
const softwareIndicator = ".version";
|
|
6
5
|
const rootfsImageVersion = "rootfs-image.version";
|
|
7
6
|
const manifestVersion = "data-partition.mender-orchestrator-manifest.version";
|
|
8
7
|
const softwareTitleMap = {
|
|
@@ -22,7 +21,6 @@ exports.ARTIFACT_GENERATION_TYPE = ARTIFACT_GENERATION_TYPE;
|
|
|
22
21
|
exports.currentArtifact = currentArtifact;
|
|
23
22
|
exports.manifestVersion = manifestVersion;
|
|
24
23
|
exports.rootfsImageVersion = rootfsImageVersion;
|
|
25
|
-
exports.softwareIndicator = softwareIndicator;
|
|
26
24
|
exports.softwareTitleMap = softwareTitleMap;
|
|
27
25
|
|
|
28
26
|
//# sourceMappingURL=constants.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.cjs","names":[],"sources":["../../src/releasesSlice/constants.ts"],"sourcesContent":["// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nexport const ARTIFACT_GENERATION_TYPE = { SINGLE_FILE: 'single_file' };\n\nexport const currentArtifact = 'artifact_name';\nexport const
|
|
1
|
+
{"version":3,"file":"constants.cjs","names":[],"sources":["../../src/releasesSlice/constants.ts"],"sourcesContent":["// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nexport const ARTIFACT_GENERATION_TYPE = { SINGLE_FILE: 'single_file' };\n\nexport const currentArtifact = 'artifact_name';\nexport const rootfsImageVersion = 'rootfs-image.version';\nexport const manifestVersion = 'data-partition.mender-orchestrator-manifest.version';\nexport const softwareTitleMap = {\n [rootfsImageVersion]: { title: 'Root filesystem', priority: 0, key: rootfsImageVersion },\n [manifestVersion]: { title: 'Manifest version', priority: 0, key: manifestVersion }\n};\n"],"mappings":";;AAaA,MAAa,2BAA2B,EAAE,aAAa,cAAc;AAErE,MAAa,kBAAkB;AAC/B,MAAa,qBAAqB;AAClC,MAAa,kBAAkB;AAC/B,MAAa,mBAAmB;EAC7B,qBAAqB;EAAE,OAAO;EAAmB,UAAU;EAAG,KAAK;CAAmB;EACtF,kBAAkB;EAAE,OAAO;EAAoB,UAAU;EAAG,KAAK;CAAgB;AACpF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { ARTIFACT_GENERATION_TYPE, currentArtifact, manifestVersion, rootfsImageVersion,
|
|
1
|
+
import { a as softwareTitleMap, i as rootfsImageVersion, n as currentArtifact, r as manifestVersion, t as ARTIFACT_GENERATION_TYPE } from "../constants-DOnQ-UzD.cjs";
|
|
2
|
+
export { ARTIFACT_GENERATION_TYPE, currentArtifact, manifestVersion, rootfsImageVersion, softwareTitleMap };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { ARTIFACT_GENERATION_TYPE, currentArtifact, manifestVersion, rootfsImageVersion,
|
|
1
|
+
import { a as softwareTitleMap, i as rootfsImageVersion, n as currentArtifact, r as manifestVersion, t as ARTIFACT_GENERATION_TYPE } from "../constants-DOnQ-UzD.js";
|
|
2
|
+
export { ARTIFACT_GENERATION_TYPE, currentArtifact, manifestVersion, rootfsImageVersion, softwareTitleMap };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
//#region src/releasesSlice/constants.ts
|
|
2
2
|
const ARTIFACT_GENERATION_TYPE = { SINGLE_FILE: "single_file" };
|
|
3
3
|
const currentArtifact = "artifact_name";
|
|
4
|
-
const softwareIndicator = ".version";
|
|
5
4
|
const rootfsImageVersion = "rootfs-image.version";
|
|
6
5
|
const manifestVersion = "data-partition.mender-orchestrator-manifest.version";
|
|
7
6
|
const softwareTitleMap = {
|
|
@@ -17,6 +16,6 @@ const softwareTitleMap = {
|
|
|
17
16
|
}
|
|
18
17
|
};
|
|
19
18
|
//#endregion
|
|
20
|
-
export { ARTIFACT_GENERATION_TYPE, currentArtifact, manifestVersion, rootfsImageVersion,
|
|
19
|
+
export { ARTIFACT_GENERATION_TYPE, currentArtifact, manifestVersion, rootfsImageVersion, softwareTitleMap };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":[],"sources":["../../src/releasesSlice/constants.ts"],"sourcesContent":["// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nexport const ARTIFACT_GENERATION_TYPE = { SINGLE_FILE: 'single_file' };\n\nexport const currentArtifact = 'artifact_name';\nexport const
|
|
1
|
+
{"version":3,"file":"constants.js","names":[],"sources":["../../src/releasesSlice/constants.ts"],"sourcesContent":["// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nexport const ARTIFACT_GENERATION_TYPE = { SINGLE_FILE: 'single_file' };\n\nexport const currentArtifact = 'artifact_name';\nexport const rootfsImageVersion = 'rootfs-image.version';\nexport const manifestVersion = 'data-partition.mender-orchestrator-manifest.version';\nexport const softwareTitleMap = {\n [rootfsImageVersion]: { title: 'Root filesystem', priority: 0, key: rootfsImageVersion },\n [manifestVersion]: { title: 'Manifest version', priority: 0, key: manifestVersion }\n};\n"],"mappings":";AAaA,MAAa,2BAA2B,EAAE,aAAa,cAAc;AAErE,MAAa,kBAAkB;AAC/B,MAAa,qBAAqB;AAClC,MAAa,kBAAkB;AAC/B,MAAa,mBAAmB;EAC7B,qBAAqB;EAAE,OAAO;EAAmB,UAAU;EAAG,KAAK;CAAmB;EACtF,kBAAkB;EAAE,OAAO;EAAoB,UAAU;EAAG,KAAK;CAAgB;AACpF"}
|
|
@@ -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");
|
|
@@ -74,7 +74,7 @@ const getArtifactInstallCount = require_store.createAppAsyncThunk(`${require_rel
|
|
|
74
74
|
if (!release || index === -1) return;
|
|
75
75
|
const artifact = [...release.artifacts][index];
|
|
76
76
|
const { key, name, version } = (0, _northern_tech_utils_helpers.extractSoftwareItem)(artifact.artifact_provides) ?? {};
|
|
77
|
-
const attribute = `${key}${name ? `.${name}` : ""}.
|
|
77
|
+
const attribute = `${key}${name ? `.${name}` : ""}${_northern_tech_utils_constants.softwareIndicator}`;
|
|
78
78
|
const { filterTerms } = require_utils.convertDeviceListStateToFilters({ filters: [{
|
|
79
79
|
...require_constants.emptyFilter,
|
|
80
80
|
key: attribute,
|