@northern.tech/store 0.46.4 → 0.47.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 +6 -6
- package/dist/actions.d.ts +6 -6
- package/dist/api/general-api.cjs +2 -2
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/general-api.js +1 -1
- package/dist/api/general-api.js.map +1 -1
- package/dist/appSlice/constants.cjs +3 -4
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +1 -1
- package/dist/appSlice/constants.d.ts +1 -1
- package/dist/appSlice/constants.js +1 -2
- package/dist/appSlice/constants.js.map +1 -1
- package/dist/appSlice/index.d.cts +1 -1
- package/dist/appSlice/index.d.ts +1 -1
- package/dist/appSlice/index.js +1 -1
- package/dist/appSlice/mocks.d.cts +1 -1
- package/dist/appSlice/mocks.d.ts +1 -1
- package/dist/appSlice/selectors.cjs.map +1 -1
- package/dist/appSlice/selectors.d.cts +2 -130
- package/dist/appSlice/selectors.d.ts +2 -130
- package/dist/appSlice/selectors.js.map +1 -1
- package/dist/appSlice/thunks.d.cts +2 -2
- package/dist/appSlice/thunks.d.ts +2 -2
- package/dist/auth.cjs +3 -3
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +2 -1
- package/dist/auth.js.map +1 -1
- package/dist/commonConstants.cjs +4 -3
- package/dist/commonConstants.d.cts +2 -2
- package/dist/commonConstants.d.ts +2 -2
- package/dist/commonConstants.js +1 -1
- package/dist/commonSelectors.cjs +1 -1
- package/dist/commonSelectors.d.cts +76 -369
- package/dist/commonSelectors.d.ts +76 -369
- package/dist/commonSelectors.js +1 -1
- package/dist/constants-CCkKh9KM.d.ts +109 -0
- package/dist/constants-CUwYPOYK.d.cts +109 -0
- package/dist/{constants-D5hACLhF.js → constants-DjiC_FnZ.js} +3 -269
- package/dist/constants-DjiC_FnZ.js.map +1 -0
- package/dist/{constants-MVizYy89.cjs → constants-DsOnY5o5.cjs} +1 -279
- package/dist/constants-DsOnY5o5.cjs.map +1 -0
- package/dist/{constants-nKSWZ8oD.d.ts → constants-tC3RR_Oo.d.cts} +2 -3
- package/dist/{constants-nKSWZ8oD.d.cts → constants-tC3RR_Oo.d.ts} +2 -3
- package/dist/constants.cjs +5 -5
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants.js +1 -1
- package/dist/deploymentsSlice/constants.cjs +1 -1
- package/dist/deploymentsSlice/constants.js +1 -1
- 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.cjs.map +1 -1
- package/dist/deploymentsSlice/selectors.d.cts +2 -97
- package/dist/deploymentsSlice/selectors.d.ts +2 -97
- package/dist/deploymentsSlice/selectors.js +1 -1
- package/dist/deploymentsSlice/selectors.js.map +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +4 -4
- package/dist/deploymentsSlice/thunks.d.ts +4 -4
- 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 -1
- 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 +2 -2
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +2 -887
- package/dist/devicesSlice/selectors.d.ts +2 -887
- package/dist/devicesSlice/selectors.js +2 -2
- package/dist/devicesSlice/selectors.js.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +4 -4
- package/dist/devicesSlice/thunks.d.ts +4 -4
- package/dist/{index-KxRmyFLr.d.cts → index-7jVuB4tG.d.cts} +2 -2
- package/dist/{index-fGVC5s1C.d.cts → index-BWtIaimn.d.cts} +2 -2
- package/dist/{index-BfmRpbiJ.d.cts → index-BcrZxKLw.d.cts} +2 -2
- package/dist/{index--SKVGToc.d.ts → index-C1vNDCYR.d.ts} +2 -2
- package/dist/{index-CRqnH_go.d.ts → index-C2za83Qs.d.ts} +2 -2
- package/dist/{index-xxqlerg5.d.ts → index-CThE5Gfh.d.ts} +2 -2
- package/dist/{index-BKU1G9-x.d.cts → index-CaNZaXie.d.cts} +2 -2
- package/dist/{index-BVNS-Aut.d.ts → index-CvMpbsOo.d.ts} +2 -2
- package/dist/{index-HjOSTTGF.d.cts → index-CzQRHJ6f.d.cts} +2 -2
- package/dist/{index-CqhXqGLt.d.cts → index-DNYeo7wc.d.cts} +2 -2
- package/dist/{index-D9GJhX1I.d.ts → index-DOPRnlaC.d.ts} +2 -2
- package/dist/{index-BMsafOyJ.d.ts → index-o_m7WKiR.d.ts} +2 -2
- package/dist/locationutils.cjs +1 -1
- package/dist/locationutils.d.cts +2 -2
- package/dist/locationutils.d.ts +2 -2
- package/dist/locationutils.js +1 -1
- package/dist/mockState.cjs +24 -0
- package/dist/mockState.cjs.map +1 -0
- package/dist/mockState.d.cts +7 -0
- package/dist/mockState.d.ts +7 -0
- package/dist/mockState.js +23 -0
- package/dist/mockState.js.map +1 -0
- 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.cjs.map +1 -1
- package/dist/monitorSlice/selectors.d.cts +2 -10
- package/dist/monitorSlice/selectors.d.ts +2 -10
- package/dist/monitorSlice/selectors.js.map +1 -1
- package/dist/monitorSlice/thunks.cjs +2 -3
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.d.cts +4 -4
- package/dist/monitorSlice/thunks.d.ts +4 -4
- package/dist/monitorSlice/thunks.js +3 -2
- package/dist/monitorSlice/thunks.js.map +1 -1
- package/dist/onboardingSlice/selectors.cjs.map +1 -1
- package/dist/onboardingSlice/selectors.d.cts +2 -6
- package/dist/onboardingSlice/selectors.d.ts +2 -6
- package/dist/onboardingSlice/selectors.js.map +1 -1
- package/dist/onboardingSlice/thunks.d.cts +3 -3
- package/dist/onboardingSlice/thunks.d.ts +3 -3
- package/dist/organizationSlice/constants.cjs +1 -1
- package/dist/organizationSlice/constants.js +1 -1
- package/dist/organizationSlice/index.cjs +1 -1
- package/dist/organizationSlice/index.d.cts +1 -1
- package/dist/organizationSlice/index.d.ts +1 -1
- package/dist/organizationSlice/index.js +1 -1
- package/dist/organizationSlice/mocks.d.cts +3 -3
- package/dist/organizationSlice/mocks.d.ts +3 -3
- package/dist/organizationSlice/mocks.js +1 -1
- package/dist/organizationSlice/selectors.cjs +1 -1
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +2 -472
- package/dist/organizationSlice/selectors.d.ts +2 -472
- package/dist/organizationSlice/selectors.js +1 -1
- package/dist/organizationSlice/selectors.js.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +25 -21
- package/dist/organizationSlice/thunks.d.ts +25 -21
- 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.cjs.map +1 -1
- package/dist/releasesSlice/selectors.d.cts +2 -795
- package/dist/releasesSlice/selectors.d.ts +2 -795
- package/dist/releasesSlice/selectors.js.map +1 -1
- package/dist/releasesSlice/thunks.cjs +17 -17
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +5 -5
- package/dist/releasesSlice/thunks.d.ts +5 -5
- package/dist/releasesSlice/thunks.js +2 -1
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/selectors-1394DVvN.d.ts +712 -0
- package/dist/selectors-Ba9LUr_0.d.ts +593 -0
- package/dist/selectors-CAo0fzIZ.d.ts +99 -0
- package/dist/selectors-CH-yXu-7.d.cts +84 -0
- package/dist/selectors-CQYkG1VI.d.cts +9 -0
- package/dist/selectors-D9t4It2i.d.ts +84 -0
- package/dist/selectors-DDsFLtxz.d.cts +712 -0
- package/dist/selectors-DFSv4A_m.d.ts +378 -0
- package/dist/selectors-DQKg681M.d.ts +363 -0
- package/dist/selectors-DeqP_VLU.d.cts +593 -0
- package/dist/selectors-LhR8TyWU.d.cts +378 -0
- package/dist/selectors-XzNyGFJI.d.cts +99 -0
- package/dist/selectors-aLOjKkxN.d.cts +14 -0
- package/dist/selectors-elCimAHX.d.ts +9 -0
- package/dist/selectors-jusUdUdc.d.cts +363 -0
- package/dist/selectors-vk0GUGHf.d.ts +14 -0
- package/dist/selectors.d.cts +9 -9
- package/dist/selectors.d.ts +9 -9
- package/dist/sockethook.cjs +4 -4
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.js +2 -1
- package/dist/sockethook.js.map +1 -1
- package/dist/{store-Dw8Uo_Df.d.cts → store-CCvk8X-k.d.cts} +14 -33
- package/dist/{store-DLp6ajT8.d.ts → store-v5V-bbB_.d.ts} +15 -34
- package/dist/store.cjs +2 -4
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +2 -2
- package/dist/store.d.ts +2 -2
- package/dist/store.js +2 -4
- package/dist/store.js.map +1 -1
- package/dist/thunks.cjs +30 -38
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.js +10 -17
- package/dist/thunks.js.map +1 -1
- package/dist/{types-DY0J79yF.d.ts → types-B2gphGj8.d.ts} +3 -3
- package/dist/{types-B67YW1jV.d.cts → types-CLASWtVP.d.cts} +3 -3
- package/dist/usersSlice/constants.cjs +1 -1
- package/dist/usersSlice/constants.js +1 -1
- 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 +3 -3
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.d.cts +2 -466
- package/dist/usersSlice/selectors.d.ts +2 -466
- package/dist/usersSlice/selectors.js +2 -2
- package/dist/usersSlice/selectors.js.map +1 -1
- package/dist/usersSlice/thunks.d.cts +88 -88
- package/dist/usersSlice/thunks.d.ts +88 -88
- package/dist/utils.cjs +5 -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 +4 -8
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/constants-BJuY-ODE.d.ts +0 -124
- package/dist/constants-C2O55iZu.d.cts +0 -124
- package/dist/constants-D5hACLhF.js.map +0 -1
- package/dist/constants-MVizYy89.cjs.map +0 -1
- package/dist/storehooks.cjs +0 -249
- package/dist/storehooks.cjs.map +0 -1
- package/dist/storehooks.d.cts +0 -49
- package/dist/storehooks.d.ts +0 -49
- package/dist/storehooks.js +0 -241
- package/dist/storehooks.js.map +0 -1
|
@@ -1,472 +1,2 @@
|
|
|
1
|
-
import { o as
|
|
2
|
-
|
|
3
|
-
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, u as Tenant } from "../types-DY0J79yF.js";
|
|
4
|
-
import { n as OnboardingSliceType } from "../index-CoObjWL4.js";
|
|
5
|
-
import { o as DeploymentsSliceType } from "../index-B8td4-rY.js";
|
|
6
|
-
import { c as DeviceSliceType } from "../index-D9GJhX1I.js";
|
|
7
|
-
import { t as AppSliceType } from "../index-xxqlerg5.js";
|
|
8
|
-
import { t as MonitorSliceType } from "../index-CRqnH_go.js";
|
|
9
|
-
import { t as OrganizationSliceType } from "../index-BVNS-Aut.js";
|
|
10
|
-
import { r as RootState } from "../store-DLp6ajT8.js";
|
|
11
|
-
//#region src/organizationSlice/selectors.d.ts
|
|
12
|
-
export declare const getOrganization: (state: RootState) => Partial<Organization>;
|
|
13
|
-
export declare const getProducts: (state: RootState) => ProductConfig | undefined;
|
|
14
|
-
export declare const getExternalIntegrations: (state: RootState) => import("@northern.tech/types/types.gen").Integration[];
|
|
15
|
-
export declare const getAuditlogState: (state: RootState) => AuditLogSelectionState;
|
|
16
|
-
export declare const getAuditLog: (state: RootState) => import("@northern.tech/types/types.gen").AuditLog[];
|
|
17
|
-
export declare const getAuditLogSelectionState: (state: RootState) => AuditLogSelectionState;
|
|
18
|
-
export declare const getBillingProfile: (state: RootState) => import("@northern.tech/types/types.gen").BillingProfile | undefined;
|
|
19
|
-
export declare const getSubscription: (state: RootState) => import("@northern.tech/types/types.gen").SubscriptionData | undefined;
|
|
20
|
-
export declare const getCard: (state: RootState) => Card;
|
|
21
|
-
export declare const getSsoConfig: ({ organization: { ssoConfigs } }: RootState) => SSOConfig;
|
|
22
|
-
export declare const getTenantsList: (state: RootState) => TenantList;
|
|
23
|
-
export declare const getWebhookEvents: (state: RootState) => import("@northern.tech/types/types.gen").Event[];
|
|
24
|
-
export declare const getWebhookEventsTotal: (state: RootState) => number;
|
|
25
|
-
export declare const getDeviceTwinIntegrations: ((state: {
|
|
26
|
-
app: AppSliceType;
|
|
27
|
-
devices: DeviceSliceType;
|
|
28
|
-
deployments: DeploymentsSliceType;
|
|
29
|
-
monitor: MonitorSliceType;
|
|
30
|
-
onboarding: OnboardingSliceType;
|
|
31
|
-
organization: OrganizationSliceType;
|
|
32
|
-
releases: ReleaseSliceType;
|
|
33
|
-
users: UserSliceType;
|
|
34
|
-
}) => import("@northern.tech/types/types.gen").Integration[]) & {
|
|
35
|
-
clearCache: () => void;
|
|
36
|
-
resultsCount: () => number;
|
|
37
|
-
resetResultsCount: () => void;
|
|
38
|
-
} & {
|
|
39
|
-
resultFunc: (resultFuncArgs_0: import("@northern.tech/types/types.gen").Integration[]) => import("@northern.tech/types/types.gen").Integration[];
|
|
40
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("@northern.tech/types/types.gen").Integration[]) => import("@northern.tech/types/types.gen").Integration[]) & {
|
|
41
|
-
clearCache: () => void;
|
|
42
|
-
resultsCount: () => number;
|
|
43
|
-
resetResultsCount: () => void;
|
|
44
|
-
};
|
|
45
|
-
lastResult: () => import("@northern.tech/types/types.gen").Integration[];
|
|
46
|
-
dependencies: [(state: RootState) => import("@northern.tech/types/types.gen").Integration[]];
|
|
47
|
-
recomputations: () => number;
|
|
48
|
-
resetRecomputations: () => void;
|
|
49
|
-
dependencyRecomputations: () => number;
|
|
50
|
-
resetDependencyRecomputations: () => void;
|
|
51
|
-
} & {
|
|
52
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
53
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
54
|
-
};
|
|
55
|
-
export declare const getIsServiceProvider: (state: RootState) => boolean | undefined;
|
|
56
|
-
export declare const getWebhooks: ((state: {
|
|
57
|
-
app: AppSliceType;
|
|
58
|
-
devices: DeviceSliceType;
|
|
59
|
-
deployments: DeploymentsSliceType;
|
|
60
|
-
monitor: MonitorSliceType;
|
|
61
|
-
onboarding: OnboardingSliceType;
|
|
62
|
-
organization: OrganizationSliceType;
|
|
63
|
-
releases: ReleaseSliceType;
|
|
64
|
-
users: UserSliceType;
|
|
65
|
-
}) => import("@northern.tech/types/types.gen").Integration[]) & {
|
|
66
|
-
clearCache: () => void;
|
|
67
|
-
resultsCount: () => number;
|
|
68
|
-
resetResultsCount: () => void;
|
|
69
|
-
} & {
|
|
70
|
-
resultFunc: (resultFuncArgs_0: import("@northern.tech/types/types.gen").Integration[]) => import("@northern.tech/types/types.gen").Integration[];
|
|
71
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("@northern.tech/types/types.gen").Integration[]) => import("@northern.tech/types/types.gen").Integration[]) & {
|
|
72
|
-
clearCache: () => void;
|
|
73
|
-
resultsCount: () => number;
|
|
74
|
-
resetResultsCount: () => void;
|
|
75
|
-
};
|
|
76
|
-
lastResult: () => import("@northern.tech/types/types.gen").Integration[];
|
|
77
|
-
dependencies: [(state: RootState) => import("@northern.tech/types/types.gen").Integration[]];
|
|
78
|
-
recomputations: () => number;
|
|
79
|
-
resetRecomputations: () => void;
|
|
80
|
-
dependencyRecomputations: () => number;
|
|
81
|
-
resetDependencyRecomputations: () => void;
|
|
82
|
-
} & {
|
|
83
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
84
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
85
|
-
};
|
|
86
|
-
export declare const getWebhookEventInfo: ((state: {
|
|
87
|
-
app: AppSliceType;
|
|
88
|
-
devices: DeviceSliceType;
|
|
89
|
-
deployments: DeploymentsSliceType;
|
|
90
|
-
monitor: MonitorSliceType;
|
|
91
|
-
onboarding: OnboardingSliceType;
|
|
92
|
-
organization: OrganizationSliceType;
|
|
93
|
-
releases: ReleaseSliceType;
|
|
94
|
-
users: UserSliceType;
|
|
95
|
-
}) => {
|
|
96
|
-
events: import("@northern.tech/types/types.gen").Event[];
|
|
97
|
-
eventsTotal: number;
|
|
98
|
-
}) & {
|
|
99
|
-
clearCache: () => void;
|
|
100
|
-
resultsCount: () => number;
|
|
101
|
-
resetResultsCount: () => void;
|
|
102
|
-
} & {
|
|
103
|
-
resultFunc: (resultFuncArgs_0: import("@northern.tech/types/types.gen").Integration[], resultFuncArgs_1: import("@northern.tech/types/types.gen").Event[], resultFuncArgs_2: number) => {
|
|
104
|
-
events: import("@northern.tech/types/types.gen").Event[];
|
|
105
|
-
eventsTotal: number;
|
|
106
|
-
};
|
|
107
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("@northern.tech/types/types.gen").Integration[], resultFuncArgs_1: import("@northern.tech/types/types.gen").Event[], resultFuncArgs_2: number) => {
|
|
108
|
-
events: import("@northern.tech/types/types.gen").Event[];
|
|
109
|
-
eventsTotal: number;
|
|
110
|
-
}) & {
|
|
111
|
-
clearCache: () => void;
|
|
112
|
-
resultsCount: () => number;
|
|
113
|
-
resetResultsCount: () => void;
|
|
114
|
-
};
|
|
115
|
-
lastResult: () => {
|
|
116
|
-
events: import("@northern.tech/types/types.gen").Event[];
|
|
117
|
-
eventsTotal: number;
|
|
118
|
-
};
|
|
119
|
-
dependencies: [((state: {
|
|
120
|
-
app: AppSliceType;
|
|
121
|
-
devices: DeviceSliceType;
|
|
122
|
-
deployments: DeploymentsSliceType;
|
|
123
|
-
monitor: MonitorSliceType;
|
|
124
|
-
onboarding: OnboardingSliceType;
|
|
125
|
-
organization: OrganizationSliceType;
|
|
126
|
-
releases: ReleaseSliceType;
|
|
127
|
-
users: UserSliceType;
|
|
128
|
-
}) => import("@northern.tech/types/types.gen").Integration[]) & {
|
|
129
|
-
clearCache: () => void;
|
|
130
|
-
resultsCount: () => number;
|
|
131
|
-
resetResultsCount: () => void;
|
|
132
|
-
} & {
|
|
133
|
-
resultFunc: (resultFuncArgs_0: import("@northern.tech/types/types.gen").Integration[]) => import("@northern.tech/types/types.gen").Integration[];
|
|
134
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("@northern.tech/types/types.gen").Integration[]) => import("@northern.tech/types/types.gen").Integration[]) & {
|
|
135
|
-
clearCache: () => void;
|
|
136
|
-
resultsCount: () => number;
|
|
137
|
-
resetResultsCount: () => void;
|
|
138
|
-
};
|
|
139
|
-
lastResult: () => import("@northern.tech/types/types.gen").Integration[];
|
|
140
|
-
dependencies: [(state: RootState) => import("@northern.tech/types/types.gen").Integration[]];
|
|
141
|
-
recomputations: () => number;
|
|
142
|
-
resetRecomputations: () => void;
|
|
143
|
-
dependencyRecomputations: () => number;
|
|
144
|
-
resetDependencyRecomputations: () => void;
|
|
145
|
-
} & {
|
|
146
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
147
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
148
|
-
}, (state: RootState) => import("@northern.tech/types/types.gen").Event[], (state: RootState) => number];
|
|
149
|
-
recomputations: () => number;
|
|
150
|
-
resetRecomputations: () => void;
|
|
151
|
-
dependencyRecomputations: () => number;
|
|
152
|
-
resetDependencyRecomputations: () => void;
|
|
153
|
-
} & {
|
|
154
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
155
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
156
|
-
};
|
|
157
|
-
export declare const getAuditLogEntry: ((state: {
|
|
158
|
-
app: AppSliceType;
|
|
159
|
-
devices: DeviceSliceType;
|
|
160
|
-
deployments: DeploymentsSliceType;
|
|
161
|
-
monitor: MonitorSliceType;
|
|
162
|
-
onboarding: OnboardingSliceType;
|
|
163
|
-
organization: OrganizationSliceType;
|
|
164
|
-
releases: ReleaseSliceType;
|
|
165
|
-
users: UserSliceType;
|
|
166
|
-
}) => import("@northern.tech/types/types.gen").AuditLog | undefined) & {
|
|
167
|
-
clearCache: () => void;
|
|
168
|
-
resultsCount: () => number;
|
|
169
|
-
resetResultsCount: () => void;
|
|
170
|
-
} & {
|
|
171
|
-
resultFunc: (resultFuncArgs_0: import("@northern.tech/types/types.gen").AuditLog[], resultFuncArgs_1: AuditLogSelectionState) => import("@northern.tech/types/types.gen").AuditLog | undefined;
|
|
172
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("@northern.tech/types/types.gen").AuditLog[], resultFuncArgs_1: AuditLogSelectionState) => import("@northern.tech/types/types.gen").AuditLog | undefined) & {
|
|
173
|
-
clearCache: () => void;
|
|
174
|
-
resultsCount: () => number;
|
|
175
|
-
resetResultsCount: () => void;
|
|
176
|
-
};
|
|
177
|
-
lastResult: () => import("@northern.tech/types/types.gen").AuditLog | undefined;
|
|
178
|
-
dependencies: [(state: RootState) => import("@northern.tech/types/types.gen").AuditLog[], (state: RootState) => AuditLogSelectionState];
|
|
179
|
-
recomputations: () => number;
|
|
180
|
-
resetRecomputations: () => void;
|
|
181
|
-
dependencyRecomputations: () => number;
|
|
182
|
-
resetDependencyRecomputations: () => void;
|
|
183
|
-
} & {
|
|
184
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
185
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
186
|
-
};
|
|
187
|
-
export declare const getDisabledTiers: ((state: {
|
|
188
|
-
app: AppSliceType;
|
|
189
|
-
devices: DeviceSliceType;
|
|
190
|
-
deployments: DeploymentsSliceType;
|
|
191
|
-
monitor: MonitorSliceType;
|
|
192
|
-
onboarding: OnboardingSliceType;
|
|
193
|
-
organization: OrganizationSliceType;
|
|
194
|
-
releases: ReleaseSliceType;
|
|
195
|
-
users: UserSliceType;
|
|
196
|
-
}) => string[]) & {
|
|
197
|
-
clearCache: () => void;
|
|
198
|
-
resultsCount: () => number;
|
|
199
|
-
resetResultsCount: () => void;
|
|
200
|
-
} & {
|
|
201
|
-
resultFunc: (resultFuncArgs_0: {
|
|
202
|
-
disabled: string[];
|
|
203
|
-
limits: Record<string, object>;
|
|
204
|
-
}) => string[];
|
|
205
|
-
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
206
|
-
disabled: string[];
|
|
207
|
-
limits: Record<string, object>;
|
|
208
|
-
}) => string[]) & {
|
|
209
|
-
clearCache: () => void;
|
|
210
|
-
resultsCount: () => number;
|
|
211
|
-
resetResultsCount: () => void;
|
|
212
|
-
};
|
|
213
|
-
lastResult: () => string[];
|
|
214
|
-
dependencies: [((state: {
|
|
215
|
-
app: AppSliceType;
|
|
216
|
-
devices: DeviceSliceType;
|
|
217
|
-
deployments: DeploymentsSliceType;
|
|
218
|
-
monitor: MonitorSliceType;
|
|
219
|
-
onboarding: OnboardingSliceType;
|
|
220
|
-
organization: OrganizationSliceType;
|
|
221
|
-
releases: ReleaseSliceType;
|
|
222
|
-
users: UserSliceType;
|
|
223
|
-
}) => {
|
|
224
|
-
disabled: string[];
|
|
225
|
-
limits: Record<string, object>;
|
|
226
|
-
}) & {
|
|
227
|
-
clearCache: () => void;
|
|
228
|
-
resultsCount: () => number;
|
|
229
|
-
resetResultsCount: () => void;
|
|
230
|
-
} & {
|
|
231
|
-
resultFunc: (resultFuncArgs_0: Partial<Organization>) => {
|
|
232
|
-
disabled: string[];
|
|
233
|
-
limits: Record<string, object>;
|
|
234
|
-
};
|
|
235
|
-
memoizedResultFunc: ((resultFuncArgs_0: Partial<Organization>) => {
|
|
236
|
-
disabled: string[];
|
|
237
|
-
limits: Record<string, object>;
|
|
238
|
-
}) & {
|
|
239
|
-
clearCache: () => void;
|
|
240
|
-
resultsCount: () => number;
|
|
241
|
-
resetResultsCount: () => void;
|
|
242
|
-
};
|
|
243
|
-
lastResult: () => {
|
|
244
|
-
disabled: string[];
|
|
245
|
-
limits: Record<string, object>;
|
|
246
|
-
};
|
|
247
|
-
dependencies: [(state: RootState) => Partial<Organization>];
|
|
248
|
-
recomputations: () => number;
|
|
249
|
-
resetRecomputations: () => void;
|
|
250
|
-
dependencyRecomputations: () => number;
|
|
251
|
-
resetDependencyRecomputations: () => void;
|
|
252
|
-
} & {
|
|
253
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
254
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
255
|
-
}];
|
|
256
|
-
recomputations: () => number;
|
|
257
|
-
resetRecomputations: () => void;
|
|
258
|
-
dependencyRecomputations: () => number;
|
|
259
|
-
resetDependencyRecomputations: () => void;
|
|
260
|
-
} & {
|
|
261
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
262
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
263
|
-
};
|
|
264
|
-
export declare const getSpLimits: ((state: {
|
|
265
|
-
app: AppSliceType;
|
|
266
|
-
devices: DeviceSliceType;
|
|
267
|
-
deployments: DeploymentsSliceType;
|
|
268
|
-
monitor: MonitorSliceType;
|
|
269
|
-
onboarding: OnboardingSliceType;
|
|
270
|
-
organization: OrganizationSliceType;
|
|
271
|
-
releases: ReleaseSliceType;
|
|
272
|
-
users: UserSliceType;
|
|
273
|
-
}) => Record<string, object>) & {
|
|
274
|
-
clearCache: () => void;
|
|
275
|
-
resultsCount: () => number;
|
|
276
|
-
resetResultsCount: () => void;
|
|
277
|
-
} & {
|
|
278
|
-
resultFunc: (resultFuncArgs_0: {
|
|
279
|
-
disabled: string[];
|
|
280
|
-
limits: Record<string, object>;
|
|
281
|
-
}) => Record<string, object>;
|
|
282
|
-
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
283
|
-
disabled: string[];
|
|
284
|
-
limits: Record<string, object>;
|
|
285
|
-
}) => Record<string, object>) & {
|
|
286
|
-
clearCache: () => void;
|
|
287
|
-
resultsCount: () => number;
|
|
288
|
-
resetResultsCount: () => void;
|
|
289
|
-
};
|
|
290
|
-
lastResult: () => Record<string, object>;
|
|
291
|
-
dependencies: [((state: {
|
|
292
|
-
app: AppSliceType;
|
|
293
|
-
devices: DeviceSliceType;
|
|
294
|
-
deployments: DeploymentsSliceType;
|
|
295
|
-
monitor: MonitorSliceType;
|
|
296
|
-
onboarding: OnboardingSliceType;
|
|
297
|
-
organization: OrganizationSliceType;
|
|
298
|
-
releases: ReleaseSliceType;
|
|
299
|
-
users: UserSliceType;
|
|
300
|
-
}) => {
|
|
301
|
-
disabled: string[];
|
|
302
|
-
limits: Record<string, object>;
|
|
303
|
-
}) & {
|
|
304
|
-
clearCache: () => void;
|
|
305
|
-
resultsCount: () => number;
|
|
306
|
-
resetResultsCount: () => void;
|
|
307
|
-
} & {
|
|
308
|
-
resultFunc: (resultFuncArgs_0: Partial<Organization>) => {
|
|
309
|
-
disabled: string[];
|
|
310
|
-
limits: Record<string, object>;
|
|
311
|
-
};
|
|
312
|
-
memoizedResultFunc: ((resultFuncArgs_0: Partial<Organization>) => {
|
|
313
|
-
disabled: string[];
|
|
314
|
-
limits: Record<string, object>;
|
|
315
|
-
}) & {
|
|
316
|
-
clearCache: () => void;
|
|
317
|
-
resultsCount: () => number;
|
|
318
|
-
resetResultsCount: () => void;
|
|
319
|
-
};
|
|
320
|
-
lastResult: () => {
|
|
321
|
-
disabled: string[];
|
|
322
|
-
limits: Record<string, object>;
|
|
323
|
-
};
|
|
324
|
-
dependencies: [(state: RootState) => Partial<Organization>];
|
|
325
|
-
recomputations: () => number;
|
|
326
|
-
resetRecomputations: () => void;
|
|
327
|
-
dependencyRecomputations: () => number;
|
|
328
|
-
resetDependencyRecomputations: () => void;
|
|
329
|
-
} & {
|
|
330
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
331
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
332
|
-
}];
|
|
333
|
-
recomputations: () => number;
|
|
334
|
-
resetRecomputations: () => void;
|
|
335
|
-
dependencyRecomputations: () => number;
|
|
336
|
-
resetDependencyRecomputations: () => void;
|
|
337
|
-
} & {
|
|
338
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
339
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
340
|
-
};
|
|
341
|
-
export declare const getTenantListWithLimits: ((state: {
|
|
342
|
-
app: AppSliceType;
|
|
343
|
-
devices: DeviceSliceType;
|
|
344
|
-
deployments: DeploymentsSliceType;
|
|
345
|
-
monitor: MonitorSliceType;
|
|
346
|
-
onboarding: OnboardingSliceType;
|
|
347
|
-
organization: OrganizationSliceType;
|
|
348
|
-
releases: ReleaseSliceType;
|
|
349
|
-
users: UserSliceType;
|
|
350
|
-
}) => {
|
|
351
|
-
tenants: {
|
|
352
|
-
device_limits: Record<string, object>;
|
|
353
|
-
id: string;
|
|
354
|
-
name: string;
|
|
355
|
-
tenant_token?: string;
|
|
356
|
-
status?: "active" | "suspended";
|
|
357
|
-
plan?: "os" | "enterprise" | "professional";
|
|
358
|
-
trial?: boolean;
|
|
359
|
-
trial_expiration?: string;
|
|
360
|
-
addons?: Array<import("@northern.tech/types/types.gen").Addon>;
|
|
361
|
-
service_provider?: boolean;
|
|
362
|
-
parent_tenant_id?: string;
|
|
363
|
-
additional_info?: import("@northern.tech/types/types.gen").TenantAdditionalInfo;
|
|
364
|
-
api_limits?: import("@northern.tech/types/types.gen").TenantApiLimits;
|
|
365
|
-
created_at?: string;
|
|
366
|
-
updated_at?: string;
|
|
367
|
-
device_count?: number;
|
|
368
|
-
device_limit?: number;
|
|
369
|
-
}[];
|
|
370
|
-
page: number;
|
|
371
|
-
perPage: number;
|
|
372
|
-
selectedTenant: Tenant | null;
|
|
373
|
-
sort: import("@northern.tech/utils/constants").SortOptions;
|
|
374
|
-
total: number;
|
|
375
|
-
}) & {
|
|
376
|
-
clearCache: () => void;
|
|
377
|
-
resultsCount: () => number;
|
|
378
|
-
resetResultsCount: () => void;
|
|
379
|
-
} & {
|
|
380
|
-
resultFunc: (resultFuncArgs_0: TenantList) => {
|
|
381
|
-
tenants: {
|
|
382
|
-
device_limits: Record<string, object>;
|
|
383
|
-
id: string;
|
|
384
|
-
name: string;
|
|
385
|
-
tenant_token?: string;
|
|
386
|
-
status?: "active" | "suspended";
|
|
387
|
-
plan?: "os" | "enterprise" | "professional";
|
|
388
|
-
trial?: boolean;
|
|
389
|
-
trial_expiration?: string;
|
|
390
|
-
addons?: Array<import("@northern.tech/types/types.gen").Addon>;
|
|
391
|
-
service_provider?: boolean;
|
|
392
|
-
parent_tenant_id?: string;
|
|
393
|
-
additional_info?: import("@northern.tech/types/types.gen").TenantAdditionalInfo;
|
|
394
|
-
api_limits?: import("@northern.tech/types/types.gen").TenantApiLimits;
|
|
395
|
-
created_at?: string;
|
|
396
|
-
updated_at?: string;
|
|
397
|
-
device_count?: number;
|
|
398
|
-
device_limit?: number;
|
|
399
|
-
}[];
|
|
400
|
-
page: number;
|
|
401
|
-
perPage: number;
|
|
402
|
-
selectedTenant: Tenant | null;
|
|
403
|
-
sort: import("@northern.tech/utils/constants").SortOptions;
|
|
404
|
-
total: number;
|
|
405
|
-
};
|
|
406
|
-
memoizedResultFunc: ((resultFuncArgs_0: TenantList) => {
|
|
407
|
-
tenants: {
|
|
408
|
-
device_limits: Record<string, object>;
|
|
409
|
-
id: string;
|
|
410
|
-
name: string;
|
|
411
|
-
tenant_token?: string;
|
|
412
|
-
status?: "active" | "suspended";
|
|
413
|
-
plan?: "os" | "enterprise" | "professional";
|
|
414
|
-
trial?: boolean;
|
|
415
|
-
trial_expiration?: string;
|
|
416
|
-
addons?: Array<import("@northern.tech/types/types.gen").Addon>;
|
|
417
|
-
service_provider?: boolean;
|
|
418
|
-
parent_tenant_id?: string;
|
|
419
|
-
additional_info?: import("@northern.tech/types/types.gen").TenantAdditionalInfo;
|
|
420
|
-
api_limits?: import("@northern.tech/types/types.gen").TenantApiLimits;
|
|
421
|
-
created_at?: string;
|
|
422
|
-
updated_at?: string;
|
|
423
|
-
device_count?: number;
|
|
424
|
-
device_limit?: number;
|
|
425
|
-
}[];
|
|
426
|
-
page: number;
|
|
427
|
-
perPage: number;
|
|
428
|
-
selectedTenant: Tenant | null;
|
|
429
|
-
sort: import("@northern.tech/utils/constants").SortOptions;
|
|
430
|
-
total: number;
|
|
431
|
-
}) & {
|
|
432
|
-
clearCache: () => void;
|
|
433
|
-
resultsCount: () => number;
|
|
434
|
-
resetResultsCount: () => void;
|
|
435
|
-
};
|
|
436
|
-
lastResult: () => {
|
|
437
|
-
tenants: {
|
|
438
|
-
device_limits: Record<string, object>;
|
|
439
|
-
id: string;
|
|
440
|
-
name: string;
|
|
441
|
-
tenant_token?: string;
|
|
442
|
-
status?: "active" | "suspended";
|
|
443
|
-
plan?: "os" | "enterprise" | "professional";
|
|
444
|
-
trial?: boolean;
|
|
445
|
-
trial_expiration?: string;
|
|
446
|
-
addons?: Array<import("@northern.tech/types/types.gen").Addon>;
|
|
447
|
-
service_provider?: boolean;
|
|
448
|
-
parent_tenant_id?: string;
|
|
449
|
-
additional_info?: import("@northern.tech/types/types.gen").TenantAdditionalInfo;
|
|
450
|
-
api_limits?: import("@northern.tech/types/types.gen").TenantApiLimits;
|
|
451
|
-
created_at?: string;
|
|
452
|
-
updated_at?: string;
|
|
453
|
-
device_count?: number;
|
|
454
|
-
device_limit?: number;
|
|
455
|
-
}[];
|
|
456
|
-
page: number;
|
|
457
|
-
perPage: number;
|
|
458
|
-
selectedTenant: Tenant | null;
|
|
459
|
-
sort: import("@northern.tech/utils/constants").SortOptions;
|
|
460
|
-
total: number;
|
|
461
|
-
};
|
|
462
|
-
dependencies: [(state: RootState) => TenantList];
|
|
463
|
-
recomputations: () => number;
|
|
464
|
-
resetRecomputations: () => void;
|
|
465
|
-
dependencyRecomputations: () => number;
|
|
466
|
-
resetDependencyRecomputations: () => void;
|
|
467
|
-
} & {
|
|
468
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
469
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
470
|
-
};
|
|
471
|
-
//#endregion
|
|
472
|
-
//# sourceMappingURL=selectors.d.ts.map
|
|
1
|
+
import { S as getWebhooks, _ as getTenantListWithLimits, a as getAuditlogState, b as getWebhookEvents, c as getDeviceTwinIntegrations, d as getIsServiceProvider, f as getOrganization, g as getSubscription, 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 getTenantsList, x as getWebhookEventsTotal, y as getWebhookEventInfo } from "../selectors-DFSv4A_m.js";
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { Bt as productOrder, jt as EXTERNAL_PROVIDER } from "../constants-
|
|
1
|
+
import { Bt as productOrder, jt as EXTERNAL_PROVIDER } from "../constants-DjiC_FnZ.js";
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
3
|
//#region src/organizationSlice/selectors.ts
|
|
4
4
|
const getOrganization = (state) => state.organization.organization;
|
|
@@ -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 { EXTERNAL_PROVIDER, productOrder } from '../constants';\
|
|
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":"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"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as locations, a as AvailablePlans } from "../constants-
|
|
2
|
-
import { T as SortOptions, g as PaginationOptions } from "../constants-
|
|
1
|
+
import { _ as locations, a as AvailablePlans } from "../constants-tC3RR_Oo.cjs";
|
|
2
|
+
import { T as SortOptions, g as PaginationOptions } from "../constants-CUwYPOYK.cjs";
|
|
3
3
|
import { n as ContentType } from "../constants-OZiiFKiA.cjs";
|
|
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 {
|
|
7
|
-
import { BillingProfile, Integration, NewTenantTypeManagement, PreviewRequest, Product, ProductInfo, Subscription, SupportRequest, UpdateChildTenant } from "@northern.tech/types/MenderTypes";
|
|
4
|
+
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "../types-CLASWtVP.cjs";
|
|
5
|
+
import { i as SnackbarContent } from "../index-CaNZaXie.cjs";
|
|
6
|
+
import { i as RootState, t as AppDispatch } from "../store-CCvk8X-k.cjs";
|
|
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<{
|
|
10
10
|
payload: string | SnackbarContent;
|
|
@@ -123,11 +123,7 @@ export declare const completeUpgrade: import("@reduxjs/toolkit").AsyncThunk<[imp
|
|
|
123
123
|
arg: void;
|
|
124
124
|
requestId: string;
|
|
125
125
|
requestStatus: "fulfilled";
|
|
126
|
-
}, never>, import("@reduxjs/toolkit").PayloadAction<
|
|
127
|
-
arg: void;
|
|
128
|
-
requestId: string;
|
|
129
|
-
requestStatus: "fulfilled";
|
|
130
|
-
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
126
|
+
}, never>, import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
131
127
|
arg: void;
|
|
132
128
|
requestId: string;
|
|
133
129
|
requestStatus: "rejected";
|
|
@@ -137,7 +133,11 @@ export declare const completeUpgrade: import("@reduxjs/toolkit").AsyncThunk<[imp
|
|
|
137
133
|
rejectedWithValue: true;
|
|
138
134
|
} | ({
|
|
139
135
|
rejectedWithValue: false;
|
|
140
|
-
} & {})), import("@reduxjs/toolkit").SerializedError>],
|
|
136
|
+
} & {})), import("@reduxjs/toolkit").SerializedError> | import("@reduxjs/toolkit").PayloadAction<import("redux").UnknownAction[], string, {
|
|
137
|
+
arg: void;
|
|
138
|
+
requestId: string;
|
|
139
|
+
requestStatus: "fulfilled";
|
|
140
|
+
}, never>], completeUpgradePayload, {
|
|
141
141
|
dispatch: AppDispatch;
|
|
142
142
|
state: RootState;
|
|
143
143
|
extra?: unknown;
|
|
@@ -426,11 +426,7 @@ export declare const requestPlanUpgrade: import("@reduxjs/toolkit").AsyncThunk<[
|
|
|
426
426
|
arg: void;
|
|
427
427
|
requestId: string;
|
|
428
428
|
requestStatus: "fulfilled";
|
|
429
|
-
}, never>, import("@reduxjs/toolkit").PayloadAction<
|
|
430
|
-
arg: void;
|
|
431
|
-
requestId: string;
|
|
432
|
-
requestStatus: "fulfilled";
|
|
433
|
-
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
429
|
+
}, never>, import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
434
430
|
arg: void;
|
|
435
431
|
requestId: string;
|
|
436
432
|
requestStatus: "rejected";
|
|
@@ -440,7 +436,11 @@ export declare const requestPlanUpgrade: import("@reduxjs/toolkit").AsyncThunk<[
|
|
|
440
436
|
rejectedWithValue: true;
|
|
441
437
|
} | ({
|
|
442
438
|
rejectedWithValue: false;
|
|
443
|
-
} & {})), import("@reduxjs/toolkit").SerializedError>], {
|
|
439
|
+
} & {})), import("@reduxjs/toolkit").SerializedError> | import("@reduxjs/toolkit").PayloadAction<import("redux").UnknownAction[], string, {
|
|
440
|
+
arg: void;
|
|
441
|
+
requestId: string;
|
|
442
|
+
requestStatus: "fulfilled";
|
|
443
|
+
}, never>], {
|
|
444
444
|
plan: string;
|
|
445
445
|
products: Product[];
|
|
446
446
|
}, {
|
|
@@ -586,12 +586,16 @@ export declare const getIntegrations: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
586
586
|
}>;
|
|
587
587
|
type GetWebhookEventsPayload = {
|
|
588
588
|
integrationId?: string;
|
|
589
|
-
isFollowUp?: boolean;
|
|
590
|
-
knownTotal?: number;
|
|
591
589
|
page?: number;
|
|
592
590
|
perPage?: number;
|
|
593
591
|
};
|
|
594
|
-
export declare const getWebhookEvents: import("@reduxjs/toolkit").AsyncThunk<
|
|
592
|
+
export declare const getWebhookEvents: import("@reduxjs/toolkit").AsyncThunk<{
|
|
593
|
+
payload: {
|
|
594
|
+
total: number;
|
|
595
|
+
value: Event[];
|
|
596
|
+
};
|
|
597
|
+
type: "organization/receiveWebhookEvents";
|
|
598
|
+
}, GetWebhookEventsPayload, {
|
|
595
599
|
dispatch: AppDispatch;
|
|
596
600
|
state: RootState;
|
|
597
601
|
extra?: unknown;
|