@northern.tech/store 0.3.2 → 0.3.4
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/BillingProfile-ChP2_Sqw.d.cts +45 -0
- package/dist/BillingProfile-ChP2_Sqw.d.ts +45 -0
- package/dist/actions.cjs +22 -23
- package/dist/actions.cjs.map +1 -1
- package/dist/actions.js +12 -12
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/general-api.js +5 -5
- package/dist/api/types/Tenant.ts +17 -12
- package/dist/api/users-api.cjs.map +1 -1
- package/dist/api/users-api.js +6 -6
- package/dist/appSlice/constants.cjs +18 -10
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +41 -84
- package/dist/appSlice/constants.d.ts +41 -84
- package/dist/appSlice/constants.js +1 -1
- package/dist/appSlice/index.cjs +1 -3
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.js +4 -4
- package/dist/appSlice/thunks.cjs +153 -120
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.js +28 -27
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.js +4 -4
- package/dist/{chunk-NI4SZOCF.js → chunk-4RWZR3BN.js} +23 -25
- package/dist/{chunk-NI4SZOCF.js.map → chunk-4RWZR3BN.js.map} +1 -1
- package/dist/{chunk-YGBFDXXA.js → chunk-7YZCUAXZ.js} +2 -2
- package/dist/{chunk-7PVGDMNM.js → chunk-AFICTIVU.js} +3 -5
- package/dist/{chunk-7PVGDMNM.js.map → chunk-AFICTIVU.js.map} +1 -1
- package/dist/{chunk-YT73QWCN.js → chunk-AUBJUUP3.js} +3 -3
- package/dist/{chunk-UEP36GCI.js → chunk-AVX7VVOK.js} +3 -3
- package/dist/{chunk-4B3IMP4I.js → chunk-BSN2TOQC.js} +1 -1
- package/dist/{chunk-4B3IMP4I.js.map → chunk-BSN2TOQC.js.map} +1 -1
- package/dist/{chunk-VOCOFE4I.js → chunk-DCEKU6UV.js} +2 -2
- package/dist/{chunk-E5LEU5PF.js → chunk-DGQKXSRI.js} +3 -3
- package/dist/{chunk-74OJIKXF.js → chunk-EQLHIPPR.js} +182 -142
- package/dist/chunk-EQLHIPPR.js.map +1 -0
- package/dist/{chunk-MDC7Y3EX.js → chunk-EYCORLYU.js} +44 -40
- package/dist/chunk-EYCORLYU.js.map +1 -0
- package/dist/{chunk-KAQJH2YL.js → chunk-FQDSV3NK.js} +13 -5
- package/dist/chunk-FQDSV3NK.js.map +1 -0
- package/dist/{chunk-XTRPX7JZ.js → chunk-FRSA2YB5.js} +3 -3
- package/dist/chunk-FRSA2YB5.js.map +1 -0
- package/dist/{chunk-ANB5BM5J.js → chunk-FVCYB5OP.js} +37 -32
- package/dist/chunk-FVCYB5OP.js.map +1 -0
- package/dist/{chunk-AMGWP7A4.js → chunk-GAI4VYRZ.js} +2 -2
- package/dist/{chunk-YETZPQFR.js → chunk-GWJIY56H.js} +19 -20
- package/dist/chunk-GWJIY56H.js.map +1 -0
- package/dist/{chunk-Q6M5TTDQ.js → chunk-JO33IORF.js} +2 -2
- package/dist/chunk-JO33IORF.js.map +1 -0
- package/dist/chunk-K4MMUDYT.js +391 -0
- package/dist/chunk-K4MMUDYT.js.map +1 -0
- package/dist/{chunk-XXHONFSQ.js → chunk-L3SY3J5M.js} +4 -4
- package/dist/{chunk-XXHONFSQ.js.map → chunk-L3SY3J5M.js.map} +1 -1
- package/dist/{chunk-JAROCU6M.js → chunk-NCSKCF2S.js} +3 -3
- package/dist/{chunk-CYV6632F.js → chunk-NOQR3TE7.js} +2 -2
- package/dist/{chunk-A6CT6GTI.js → chunk-OEP2D6QL.js} +18 -12
- package/dist/chunk-OEP2D6QL.js.map +1 -0
- package/dist/{chunk-2RJIDREZ.js → chunk-PAIB5V27.js} +32 -23
- package/dist/chunk-PAIB5V27.js.map +1 -0
- package/dist/{chunk-FGKMJS3B.js → chunk-RX32WLVJ.js} +2 -4
- package/dist/chunk-RX32WLVJ.js.map +1 -0
- package/dist/{chunk-YTQUNAZP.js → chunk-X3GZILYD.js} +3 -3
- package/dist/{chunk-25AKG5HH.js → chunk-Y575RZHR.js} +19 -11
- package/dist/chunk-Y575RZHR.js.map +1 -0
- package/dist/{chunk-RX55KAKX.js → chunk-ZWOAFHAR.js} +2 -2
- package/dist/{chunk-NNADGHSL.js → chunk-ZZMFXRQK.js} +14 -14
- package/dist/commonConstants.cjs.map +1 -1
- package/dist/commonConstants.d.cts +1 -1
- package/dist/commonConstants.d.ts +1 -1
- package/dist/commonConstants.js +1 -1
- package/dist/commonSelectors.cjs +47 -29
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +55 -46
- package/dist/commonSelectors.d.ts +55 -46
- package/dist/commonSelectors.js +11 -11
- package/dist/constants.cjs +35 -19
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants.js +7 -3
- package/dist/deploymentdevicehook.cjs +159 -125
- package/dist/deploymentdevicehook.cjs.map +1 -1
- package/dist/deploymentdevicehook.d.cts +1 -1
- package/dist/deploymentdevicehook.d.ts +1 -1
- package/dist/deploymentdevicehook.js +34 -31
- package/dist/deploymentdevicehook.js.map +1 -1
- package/dist/deploymentsSlice/constants.cjs +8 -8
- package/dist/deploymentsSlice/constants.cjs.map +1 -1
- package/dist/deploymentsSlice/constants.js +3 -3
- package/dist/deploymentsSlice/index.cjs +8 -8
- package/dist/deploymentsSlice/index.cjs.map +1 -1
- package/dist/deploymentsSlice/index.js +4 -4
- package/dist/deploymentsSlice/selectors.cjs +8 -8
- package/dist/deploymentsSlice/selectors.cjs.map +1 -1
- package/dist/deploymentsSlice/selectors.js +4 -4
- package/dist/deploymentsSlice/thunks.cjs +153 -120
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.js +28 -27
- package/dist/devicesSlice/constants.cjs +11 -8
- package/dist/devicesSlice/constants.cjs.map +1 -1
- package/dist/devicesSlice/constants.d.cts +2 -1
- package/dist/devicesSlice/constants.d.ts +2 -1
- package/dist/devicesSlice/constants.js +5 -3
- package/dist/devicesSlice/index.cjs +8 -8
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.js +4 -4
- package/dist/devicesSlice/selectors.cjs +9 -9
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.js +4 -4
- package/dist/devicesSlice/thunks.cjs +155 -120
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +12 -2
- package/dist/devicesSlice/thunks.d.ts +12 -2
- package/dist/devicesSlice/thunks.js +30 -27
- package/dist/flag-eu-5477R2P4.svg +130 -0
- package/dist/flag-us-HNQAF66I.svg +63 -0
- package/dist/liststatehook.cjs +971 -0
- package/dist/liststatehook.cjs.map +1 -0
- package/dist/liststatehook.d.cts +246 -0
- package/dist/liststatehook.d.ts +246 -0
- package/dist/liststatehook.js +88 -0
- package/dist/liststatehook.js.map +1 -0
- package/dist/locationutils.cjs +942 -0
- package/dist/locationutils.cjs.map +1 -0
- package/dist/locationutils.d.cts +113 -0
- package/dist/locationutils.d.ts +113 -0
- package/dist/locationutils.js +46 -0
- package/dist/locationutils.js.map +1 -0
- package/dist/monitorSlice/constants.cjs +8 -8
- package/dist/monitorSlice/constants.cjs.map +1 -1
- package/dist/monitorSlice/constants.js +3 -3
- package/dist/monitorSlice/index.cjs +8 -8
- package/dist/monitorSlice/index.cjs.map +1 -1
- package/dist/monitorSlice/index.js +4 -4
- package/dist/monitorSlice/thunks.cjs +74 -62
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.js +24 -24
- package/dist/onboardingSlice/index.cjs +1 -3
- package/dist/onboardingSlice/index.cjs.map +1 -1
- package/dist/onboardingSlice/index.js +1 -1
- package/dist/onboardingSlice/thunks.cjs +157 -124
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.d.cts +2 -34
- package/dist/onboardingSlice/thunks.d.ts +2 -34
- package/dist/onboardingSlice/thunks.js +28 -29
- package/dist/organizationSlice/constants.cjs +22 -17
- package/dist/organizationSlice/constants.cjs.map +1 -1
- package/dist/organizationSlice/constants.d.cts +33 -1
- package/dist/organizationSlice/constants.d.ts +33 -1
- package/dist/organizationSlice/constants.js +5 -3
- package/dist/organizationSlice/index.cjs +18 -15
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.d.cts +27 -1012
- package/dist/organizationSlice/index.d.ts +27 -1012
- package/dist/organizationSlice/index.js +4 -4
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +10 -1
- package/dist/organizationSlice/selectors.d.ts +10 -1
- package/dist/organizationSlice/selectors.js +4 -4
- package/dist/organizationSlice/thunks.cjs +1619 -1559
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +62 -37
- package/dist/organizationSlice/thunks.d.ts +62 -37
- package/dist/organizationSlice/thunks.js +28 -27
- package/dist/organizationSlice/types.cjs +19 -0
- package/dist/organizationSlice/types.cjs.map +1 -0
- package/dist/organizationSlice/types.d.cts +5 -0
- package/dist/organizationSlice/types.d.ts +5 -0
- package/dist/organizationSlice/types.js +1 -0
- package/dist/organizationSlice/types.js.map +1 -0
- package/dist/releasesSlice/index.cjs.map +1 -1
- package/dist/releasesSlice/index.js +4 -4
- package/dist/releasesSlice/selectors.cjs +17 -8
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.js +5 -5
- package/dist/releasesSlice/thunks.cjs +123 -94
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +1 -4
- package/dist/releasesSlice/thunks.d.ts +1 -4
- package/dist/releasesSlice/thunks.js +25 -24
- package/dist/selectors.cjs +53 -29
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.d.cts +10 -1
- package/dist/selectors.d.ts +10 -1
- package/dist/selectors.js +49 -43
- package/dist/sockethook.cjs +529 -0
- package/dist/sockethook.cjs.map +1 -0
- package/dist/sockethook.d.cts +10 -0
- package/dist/sockethook.d.ts +10 -0
- package/dist/sockethook.js +141 -0
- package/dist/sockethook.js.map +1 -0
- package/dist/store.cjs +38 -29
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +13 -231
- package/dist/store.d.ts +13 -231
- package/dist/store.js +18 -16
- package/dist/storehooks.cjs +273 -198
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +38 -37
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +259 -184
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +6 -2
- package/dist/thunks.d.ts +6 -2
- package/dist/thunks.js +30 -29
- package/dist/types-DBj17FZO.d.cts +135 -0
- package/dist/types-DnfZa6xd.d.ts +135 -0
- package/dist/usersSlice/constants.cjs +10 -10
- package/dist/usersSlice/constants.cjs.map +1 -1
- package/dist/usersSlice/constants.d.cts +6 -6
- package/dist/usersSlice/constants.d.ts +6 -6
- package/dist/usersSlice/constants.js +3 -3
- package/dist/usersSlice/index.cjs +10 -10
- package/dist/usersSlice/index.cjs.map +1 -1
- package/dist/usersSlice/index.js +4 -4
- package/dist/usersSlice/selectors.cjs +35 -13
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.d.cts +44 -1
- package/dist/usersSlice/selectors.d.ts +44 -1
- package/dist/usersSlice/selectors.js +13 -7
- package/dist/usersSlice/thunks.cjs +151 -120
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.d.cts +10 -9
- package/dist/usersSlice/thunks.d.ts +10 -9
- package/dist/usersSlice/thunks.js +28 -27
- package/dist/utils.cjs +23 -24
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +4 -4
- package/package.json +7 -6
- package/dist/chunk-25AKG5HH.js.map +0 -1
- package/dist/chunk-2RJIDREZ.js.map +0 -1
- package/dist/chunk-74OJIKXF.js.map +0 -1
- package/dist/chunk-A6CT6GTI.js.map +0 -1
- package/dist/chunk-ANB5BM5J.js.map +0 -1
- package/dist/chunk-FGKMJS3B.js.map +0 -1
- package/dist/chunk-KAQJH2YL.js.map +0 -1
- package/dist/chunk-MDC7Y3EX.js.map +0 -1
- package/dist/chunk-Q6M5TTDQ.js.map +0 -1
- package/dist/chunk-XTRPX7JZ.js.map +0 -1
- package/dist/chunk-YETZPQFR.js.map +0 -1
- /package/dist/{chunk-YGBFDXXA.js.map → chunk-7YZCUAXZ.js.map} +0 -0
- /package/dist/{chunk-YT73QWCN.js.map → chunk-AUBJUUP3.js.map} +0 -0
- /package/dist/{chunk-UEP36GCI.js.map → chunk-AVX7VVOK.js.map} +0 -0
- /package/dist/{chunk-VOCOFE4I.js.map → chunk-DCEKU6UV.js.map} +0 -0
- /package/dist/{chunk-E5LEU5PF.js.map → chunk-DGQKXSRI.js.map} +0 -0
- /package/dist/{chunk-AMGWP7A4.js.map → chunk-GAI4VYRZ.js.map} +0 -0
- /package/dist/{chunk-JAROCU6M.js.map → chunk-NCSKCF2S.js.map} +0 -0
- /package/dist/{chunk-CYV6632F.js.map → chunk-NOQR3TE7.js.map} +0 -0
- /package/dist/{chunk-YTQUNAZP.js.map → chunk-X3GZILYD.js.map} +0 -0
- /package/dist/{chunk-RX55KAKX.js.map → chunk-ZWOAFHAR.js.map} +0 -0
- /package/dist/{chunk-NNADGHSL.js.map → chunk-ZZMFXRQK.js.map} +0 -0
|
@@ -45,104 +45,61 @@ declare const locations: {
|
|
|
45
45
|
key: string;
|
|
46
46
|
title: string;
|
|
47
47
|
location: string;
|
|
48
|
+
icon: any;
|
|
48
49
|
};
|
|
49
50
|
us: {
|
|
50
51
|
key: string;
|
|
51
52
|
title: string;
|
|
52
53
|
location: string;
|
|
54
|
+
icon: any;
|
|
53
55
|
};
|
|
54
56
|
};
|
|
57
|
+
type AvailablePlans = 'os' | 'professional' | 'enterprise';
|
|
58
|
+
type Plan = {
|
|
59
|
+
deviceCount: string;
|
|
60
|
+
features: string[];
|
|
61
|
+
id: AvailablePlans;
|
|
62
|
+
name: string;
|
|
63
|
+
offer?: boolean;
|
|
64
|
+
offerprice?: string;
|
|
65
|
+
price: string;
|
|
66
|
+
price2?: string;
|
|
67
|
+
};
|
|
68
|
+
type AvailableAddon = 'configure' | 'troubleshoot' | 'monitor';
|
|
55
69
|
declare const PLANS: {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
professional: {
|
|
67
|
-
id: string;
|
|
68
|
-
name: string;
|
|
69
|
-
offer: boolean;
|
|
70
|
-
price: string;
|
|
70
|
+
[key in AvailablePlans]: Plan;
|
|
71
|
+
};
|
|
72
|
+
type Addon = {
|
|
73
|
+
description: string;
|
|
74
|
+
eligible: AvailablePlans[];
|
|
75
|
+
id: string;
|
|
76
|
+
needs: string[];
|
|
77
|
+
title: string;
|
|
78
|
+
} & {
|
|
79
|
+
[key in Exclude<AvailablePlans, 'enterprise'>]: {
|
|
71
80
|
deviceCount: string;
|
|
72
|
-
offerprice: string;
|
|
73
|
-
price2: string;
|
|
74
|
-
features: string[];
|
|
75
|
-
};
|
|
76
|
-
enterprise: {
|
|
77
|
-
id: string;
|
|
78
|
-
name: string;
|
|
79
81
|
price: string;
|
|
80
|
-
deviceCount: string;
|
|
81
|
-
features: string[];
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
|
+
type AddonId = keyof typeof ADDONS;
|
|
84
85
|
declare const ADDONS: {
|
|
85
|
-
|
|
86
|
-
id: string;
|
|
87
|
-
title: string;
|
|
88
|
-
description: string;
|
|
89
|
-
needs: string[];
|
|
90
|
-
os: {
|
|
91
|
-
price: string;
|
|
92
|
-
deviceCount: string;
|
|
93
|
-
};
|
|
94
|
-
professional: {
|
|
95
|
-
price: string;
|
|
96
|
-
deviceCount: string;
|
|
97
|
-
};
|
|
98
|
-
eligible: string[];
|
|
99
|
-
};
|
|
100
|
-
troubleshoot: {
|
|
101
|
-
id: string;
|
|
102
|
-
title: string;
|
|
103
|
-
description: string;
|
|
104
|
-
needs: string[];
|
|
105
|
-
os: {
|
|
106
|
-
price: string;
|
|
107
|
-
deviceCount: string;
|
|
108
|
-
};
|
|
109
|
-
professional: {
|
|
110
|
-
price: string;
|
|
111
|
-
deviceCount: string;
|
|
112
|
-
};
|
|
113
|
-
eligible: string[];
|
|
114
|
-
};
|
|
115
|
-
monitor: {
|
|
116
|
-
id: string;
|
|
117
|
-
title: string;
|
|
118
|
-
description: string;
|
|
119
|
-
needs: string[];
|
|
120
|
-
os: {
|
|
121
|
-
price: string;
|
|
122
|
-
deviceCount: string;
|
|
123
|
-
};
|
|
124
|
-
professional: {
|
|
125
|
-
price: string;
|
|
126
|
-
deviceCount: string;
|
|
127
|
-
};
|
|
128
|
-
eligible: string[];
|
|
129
|
-
};
|
|
86
|
+
[key in AvailableAddon]: Addon;
|
|
130
87
|
};
|
|
131
88
|
declare const BENEFITS: {
|
|
132
89
|
auditlog: {
|
|
133
90
|
id: string;
|
|
134
91
|
benefit: string;
|
|
135
|
-
requiredPlan:
|
|
92
|
+
requiredPlan: AvailablePlans;
|
|
136
93
|
};
|
|
137
94
|
dashboard: {
|
|
138
95
|
id: string;
|
|
139
96
|
benefit: string;
|
|
140
|
-
requiredPlan:
|
|
97
|
+
requiredPlan: AvailablePlans;
|
|
141
98
|
};
|
|
142
99
|
deltaGeneration: {
|
|
143
100
|
id: string;
|
|
144
101
|
benefit: string;
|
|
145
|
-
requiredPlan:
|
|
102
|
+
requiredPlan: AvailablePlans;
|
|
146
103
|
};
|
|
147
104
|
deviceConfiguration: {
|
|
148
105
|
id: string;
|
|
@@ -153,7 +110,7 @@ declare const BENEFITS: {
|
|
|
153
110
|
id: string;
|
|
154
111
|
benefit: string;
|
|
155
112
|
requiredAddon: string;
|
|
156
|
-
requiredPlan:
|
|
113
|
+
requiredPlan: AvailablePlans;
|
|
157
114
|
};
|
|
158
115
|
deviceTroubleshoot: {
|
|
159
116
|
id: string;
|
|
@@ -163,52 +120,52 @@ declare const BENEFITS: {
|
|
|
163
120
|
dynamicGroups: {
|
|
164
121
|
id: string;
|
|
165
122
|
benefit: string;
|
|
166
|
-
requiredPlan:
|
|
123
|
+
requiredPlan: AvailablePlans;
|
|
167
124
|
};
|
|
168
125
|
fullFiltering: {
|
|
169
126
|
id: string;
|
|
170
127
|
benefit: string;
|
|
171
|
-
requiredPlan:
|
|
128
|
+
requiredPlan: AvailablePlans;
|
|
172
129
|
};
|
|
173
130
|
gateway: {
|
|
174
131
|
id: string;
|
|
175
132
|
benefit: string;
|
|
176
|
-
requiredPlans:
|
|
133
|
+
requiredPlans: AvailablePlans;
|
|
177
134
|
};
|
|
178
135
|
pausedDeployments: {
|
|
179
136
|
id: string;
|
|
180
137
|
benefit: string;
|
|
181
|
-
requiredPlan:
|
|
138
|
+
requiredPlan: AvailablePlans;
|
|
182
139
|
};
|
|
183
140
|
phasedDeployments: {
|
|
184
141
|
id: string;
|
|
185
142
|
benefit: string;
|
|
186
|
-
requiredPlan:
|
|
143
|
+
requiredPlan: AvailablePlans;
|
|
187
144
|
};
|
|
188
145
|
rbac: {
|
|
189
146
|
id: string;
|
|
190
147
|
benefit: string;
|
|
191
|
-
requiredPlan:
|
|
148
|
+
requiredPlan: AvailablePlans;
|
|
192
149
|
};
|
|
193
150
|
retryDeployments: {
|
|
194
151
|
id: string;
|
|
195
152
|
benefit: string;
|
|
196
|
-
requiredPlan:
|
|
153
|
+
requiredPlan: AvailablePlans;
|
|
197
154
|
};
|
|
198
155
|
scheduledDeployments: {
|
|
199
156
|
id: string;
|
|
200
157
|
benefit: string;
|
|
201
|
-
requiredPlan:
|
|
158
|
+
requiredPlan: AvailablePlans;
|
|
202
159
|
};
|
|
203
160
|
webhookEvents: {
|
|
204
161
|
id: string;
|
|
205
162
|
benefit: string;
|
|
206
|
-
requiredPlan:
|
|
163
|
+
requiredPlan: AvailablePlans;
|
|
207
164
|
};
|
|
208
165
|
default: {
|
|
209
166
|
id: string;
|
|
210
167
|
benefit: string;
|
|
211
|
-
requiredPlan:
|
|
168
|
+
requiredPlan: AvailablePlans;
|
|
212
169
|
};
|
|
213
170
|
};
|
|
214
171
|
declare const yes: () => boolean;
|
|
@@ -218,4 +175,4 @@ declare const LIGHT_MODE = "light";
|
|
|
218
175
|
declare const APPLICATION_JSON_CONTENT_TYPE = "application/json";
|
|
219
176
|
declare const APPLICATION_JWT_CONTENT_TYPE = "application/jwt";
|
|
220
177
|
|
|
221
|
-
export { ADDONS, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, BEGINNING_OF_TIME, BENEFITS, DARK_MODE, LIGHT_MODE, PLANS, apiRoot, apiUrl, canAccess, chartTypes, defaultReportType, defaultReports, emptyChartSelection, headerNames, locations, yes };
|
|
178
|
+
export { ADDONS, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, type Addon, type AddonId, type AvailableAddon, type AvailablePlans, BEGINNING_OF_TIME, BENEFITS, DARK_MODE, LIGHT_MODE, PLANS, type Plan, apiRoot, apiUrl, canAccess, chartTypes, defaultReportType, defaultReports, emptyChartSelection, headerNames, locations, yes };
|
|
@@ -45,104 +45,61 @@ declare const locations: {
|
|
|
45
45
|
key: string;
|
|
46
46
|
title: string;
|
|
47
47
|
location: string;
|
|
48
|
+
icon: any;
|
|
48
49
|
};
|
|
49
50
|
us: {
|
|
50
51
|
key: string;
|
|
51
52
|
title: string;
|
|
52
53
|
location: string;
|
|
54
|
+
icon: any;
|
|
53
55
|
};
|
|
54
56
|
};
|
|
57
|
+
type AvailablePlans = 'os' | 'professional' | 'enterprise';
|
|
58
|
+
type Plan = {
|
|
59
|
+
deviceCount: string;
|
|
60
|
+
features: string[];
|
|
61
|
+
id: AvailablePlans;
|
|
62
|
+
name: string;
|
|
63
|
+
offer?: boolean;
|
|
64
|
+
offerprice?: string;
|
|
65
|
+
price: string;
|
|
66
|
+
price2?: string;
|
|
67
|
+
};
|
|
68
|
+
type AvailableAddon = 'configure' | 'troubleshoot' | 'monitor';
|
|
55
69
|
declare const PLANS: {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
professional: {
|
|
67
|
-
id: string;
|
|
68
|
-
name: string;
|
|
69
|
-
offer: boolean;
|
|
70
|
-
price: string;
|
|
70
|
+
[key in AvailablePlans]: Plan;
|
|
71
|
+
};
|
|
72
|
+
type Addon = {
|
|
73
|
+
description: string;
|
|
74
|
+
eligible: AvailablePlans[];
|
|
75
|
+
id: string;
|
|
76
|
+
needs: string[];
|
|
77
|
+
title: string;
|
|
78
|
+
} & {
|
|
79
|
+
[key in Exclude<AvailablePlans, 'enterprise'>]: {
|
|
71
80
|
deviceCount: string;
|
|
72
|
-
offerprice: string;
|
|
73
|
-
price2: string;
|
|
74
|
-
features: string[];
|
|
75
|
-
};
|
|
76
|
-
enterprise: {
|
|
77
|
-
id: string;
|
|
78
|
-
name: string;
|
|
79
81
|
price: string;
|
|
80
|
-
deviceCount: string;
|
|
81
|
-
features: string[];
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
|
+
type AddonId = keyof typeof ADDONS;
|
|
84
85
|
declare const ADDONS: {
|
|
85
|
-
|
|
86
|
-
id: string;
|
|
87
|
-
title: string;
|
|
88
|
-
description: string;
|
|
89
|
-
needs: string[];
|
|
90
|
-
os: {
|
|
91
|
-
price: string;
|
|
92
|
-
deviceCount: string;
|
|
93
|
-
};
|
|
94
|
-
professional: {
|
|
95
|
-
price: string;
|
|
96
|
-
deviceCount: string;
|
|
97
|
-
};
|
|
98
|
-
eligible: string[];
|
|
99
|
-
};
|
|
100
|
-
troubleshoot: {
|
|
101
|
-
id: string;
|
|
102
|
-
title: string;
|
|
103
|
-
description: string;
|
|
104
|
-
needs: string[];
|
|
105
|
-
os: {
|
|
106
|
-
price: string;
|
|
107
|
-
deviceCount: string;
|
|
108
|
-
};
|
|
109
|
-
professional: {
|
|
110
|
-
price: string;
|
|
111
|
-
deviceCount: string;
|
|
112
|
-
};
|
|
113
|
-
eligible: string[];
|
|
114
|
-
};
|
|
115
|
-
monitor: {
|
|
116
|
-
id: string;
|
|
117
|
-
title: string;
|
|
118
|
-
description: string;
|
|
119
|
-
needs: string[];
|
|
120
|
-
os: {
|
|
121
|
-
price: string;
|
|
122
|
-
deviceCount: string;
|
|
123
|
-
};
|
|
124
|
-
professional: {
|
|
125
|
-
price: string;
|
|
126
|
-
deviceCount: string;
|
|
127
|
-
};
|
|
128
|
-
eligible: string[];
|
|
129
|
-
};
|
|
86
|
+
[key in AvailableAddon]: Addon;
|
|
130
87
|
};
|
|
131
88
|
declare const BENEFITS: {
|
|
132
89
|
auditlog: {
|
|
133
90
|
id: string;
|
|
134
91
|
benefit: string;
|
|
135
|
-
requiredPlan:
|
|
92
|
+
requiredPlan: AvailablePlans;
|
|
136
93
|
};
|
|
137
94
|
dashboard: {
|
|
138
95
|
id: string;
|
|
139
96
|
benefit: string;
|
|
140
|
-
requiredPlan:
|
|
97
|
+
requiredPlan: AvailablePlans;
|
|
141
98
|
};
|
|
142
99
|
deltaGeneration: {
|
|
143
100
|
id: string;
|
|
144
101
|
benefit: string;
|
|
145
|
-
requiredPlan:
|
|
102
|
+
requiredPlan: AvailablePlans;
|
|
146
103
|
};
|
|
147
104
|
deviceConfiguration: {
|
|
148
105
|
id: string;
|
|
@@ -153,7 +110,7 @@ declare const BENEFITS: {
|
|
|
153
110
|
id: string;
|
|
154
111
|
benefit: string;
|
|
155
112
|
requiredAddon: string;
|
|
156
|
-
requiredPlan:
|
|
113
|
+
requiredPlan: AvailablePlans;
|
|
157
114
|
};
|
|
158
115
|
deviceTroubleshoot: {
|
|
159
116
|
id: string;
|
|
@@ -163,52 +120,52 @@ declare const BENEFITS: {
|
|
|
163
120
|
dynamicGroups: {
|
|
164
121
|
id: string;
|
|
165
122
|
benefit: string;
|
|
166
|
-
requiredPlan:
|
|
123
|
+
requiredPlan: AvailablePlans;
|
|
167
124
|
};
|
|
168
125
|
fullFiltering: {
|
|
169
126
|
id: string;
|
|
170
127
|
benefit: string;
|
|
171
|
-
requiredPlan:
|
|
128
|
+
requiredPlan: AvailablePlans;
|
|
172
129
|
};
|
|
173
130
|
gateway: {
|
|
174
131
|
id: string;
|
|
175
132
|
benefit: string;
|
|
176
|
-
requiredPlans:
|
|
133
|
+
requiredPlans: AvailablePlans;
|
|
177
134
|
};
|
|
178
135
|
pausedDeployments: {
|
|
179
136
|
id: string;
|
|
180
137
|
benefit: string;
|
|
181
|
-
requiredPlan:
|
|
138
|
+
requiredPlan: AvailablePlans;
|
|
182
139
|
};
|
|
183
140
|
phasedDeployments: {
|
|
184
141
|
id: string;
|
|
185
142
|
benefit: string;
|
|
186
|
-
requiredPlan:
|
|
143
|
+
requiredPlan: AvailablePlans;
|
|
187
144
|
};
|
|
188
145
|
rbac: {
|
|
189
146
|
id: string;
|
|
190
147
|
benefit: string;
|
|
191
|
-
requiredPlan:
|
|
148
|
+
requiredPlan: AvailablePlans;
|
|
192
149
|
};
|
|
193
150
|
retryDeployments: {
|
|
194
151
|
id: string;
|
|
195
152
|
benefit: string;
|
|
196
|
-
requiredPlan:
|
|
153
|
+
requiredPlan: AvailablePlans;
|
|
197
154
|
};
|
|
198
155
|
scheduledDeployments: {
|
|
199
156
|
id: string;
|
|
200
157
|
benefit: string;
|
|
201
|
-
requiredPlan:
|
|
158
|
+
requiredPlan: AvailablePlans;
|
|
202
159
|
};
|
|
203
160
|
webhookEvents: {
|
|
204
161
|
id: string;
|
|
205
162
|
benefit: string;
|
|
206
|
-
requiredPlan:
|
|
163
|
+
requiredPlan: AvailablePlans;
|
|
207
164
|
};
|
|
208
165
|
default: {
|
|
209
166
|
id: string;
|
|
210
167
|
benefit: string;
|
|
211
|
-
requiredPlan:
|
|
168
|
+
requiredPlan: AvailablePlans;
|
|
212
169
|
};
|
|
213
170
|
};
|
|
214
171
|
declare const yes: () => boolean;
|
|
@@ -218,4 +175,4 @@ declare const LIGHT_MODE = "light";
|
|
|
218
175
|
declare const APPLICATION_JSON_CONTENT_TYPE = "application/json";
|
|
219
176
|
declare const APPLICATION_JWT_CONTENT_TYPE = "application/jwt";
|
|
220
177
|
|
|
221
|
-
export { ADDONS, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, BEGINNING_OF_TIME, BENEFITS, DARK_MODE, LIGHT_MODE, PLANS, apiRoot, apiUrl, canAccess, chartTypes, defaultReportType, defaultReports, emptyChartSelection, headerNames, locations, yes };
|
|
178
|
+
export { ADDONS, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, type Addon, type AddonId, type AvailableAddon, type AvailablePlans, BEGINNING_OF_TIME, BENEFITS, DARK_MODE, LIGHT_MODE, PLANS, type Plan, apiRoot, apiUrl, canAccess, chartTypes, defaultReportType, defaultReports, emptyChartSelection, headerNames, locations, yes };
|
package/dist/appSlice/index.cjs
CHANGED
|
@@ -376,9 +376,7 @@ var appSlice = (0, import_toolkit.createSlice)({
|
|
|
376
376
|
...action.payload
|
|
377
377
|
};
|
|
378
378
|
},
|
|
379
|
-
setEnvironmentData: (state, action) => {
|
|
380
|
-
return { ...state, ...action.payload };
|
|
381
|
-
}
|
|
379
|
+
setEnvironmentData: (state, action) => ({ ...state, ...action.payload })
|
|
382
380
|
}
|
|
383
381
|
});
|
|
384
382
|
var actions = appSlice.actions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/appSlice/index.ts","../../src/commonConstants.tsx"],"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.\n// @ts-nocheck\nimport { SORTING_OPTIONS } from '@northern.tech/store/constants';\nimport { createSlice } from '@reduxjs/toolkit';\n\nexport const sliceName = 'app';\n\nconst getYesterday = () => {\n const today = new Date();\n today.setDate(today.getDate() - 1);\n return today.toISOString();\n};\n\nexport const initialState = {\n cancelSource: undefined,\n demoArtifactLink: 'https://dgsbl4vditpls.cloudfront.net/mender-demo-artifact.mender',\n hostAddress: null,\n snackbar: {\n open: false,\n message: '',\n maxWidth: 900,\n autoHideDuration: undefined,\n action: undefined,\n children: undefined,\n onClick: undefined,\n onClose: undefined\n },\n // return boolean rather than organization details\n features: {\n hasAuditlogs: false,\n hasDeltaProgress: false,\n hasMultitenancy: false,\n hasDeviceConfig: false,\n hasDeviceConnect: false,\n hasFeedbackEnabled: false,\n hasMonitor: false,\n hasReporting: false,\n isDemoMode: false,\n isHosted: false,\n isEnterprise: false\n },\n feedbackProbability: 0.3,\n firstLoginAfterSignup: false,\n hostedAnnouncement: '',\n docsVersion: '',\n recaptchaSiteKey: '',\n searchState: {\n deviceIds: [],\n searchTerm: '',\n searchTotal: 0,\n sort: {\n direction: SORTING_OPTIONS.desc\n // key: null,\n // scope: null\n }\n },\n stripeAPIKey: '',\n trackerCode: '',\n uploadsById: {\n // id: { uploading: false, uploadProgress: 0, cancelSource: undefined }\n },\n newThreshold: getYesterday(),\n offlineThreshold: getYesterday(),\n versionInformation: {\n Integration: '',\n 'Mender-Client': '',\n 'Mender-Artifact': '',\n 'Meta-Mender': '',\n Deployments: '',\n Deviceauth: '',\n Inventory: '',\n GUI: 'latest'\n },\n yesterday: undefined\n};\n\nexport const appSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n setFeatures: (state, action) => {\n state.features = {\n ...state.features,\n ...action.payload\n };\n },\n setSnackbar: (state, { payload }) => {\n let { message, autoHideDuration, action, children, onClick, onClose } = payload;\n if (typeof payload === 'string' || payload instanceof String) {\n message = payload;\n }\n state.snackbar = {\n open: message ? true : false,\n message,\n maxWidth: 900,\n autoHideDuration,\n action,\n children,\n onClick,\n onClose\n };\n },\n setFirstLoginAfterSignup: (state, action) => {\n state.firstLoginAfterSignup = action.payload;\n },\n setAnnouncement: (state, action) => {\n state.hostedAnnouncement = action.payload;\n },\n setSearchState: (state, action) => {\n state.searchState = {\n ...state.searchState,\n ...action.payload\n };\n },\n setOfflineThreshold: (state, action) => {\n state.offlineThreshold = action.payload;\n },\n initUpload: (state, action) => {\n const { id, upload } = action.payload;\n state.uploadsById[id] = upload;\n },\n uploadProgress: (state, action) => {\n const { id, progress } = action.payload;\n state.uploadsById[id] = {\n ...state.uploadsById[id],\n progress\n };\n },\n cleanUpUpload: (state, action) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { [action.payload]: current, ...remainder } = state.uploadsById;\n state.uploadsById = remainder;\n },\n setVersionInformation: (state, action) => {\n state.versionInformation = {\n ...state.versionInformation,\n ...action.payload\n };\n },\n setEnvironmentData: (state, action) => {\n return { ...state, ...action.payload };\n }\n }\n});\n\nexport const actions = appSlice.actions;\nexport default appSlice.reducer;\n","// Copyright 2024 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.\n// @ts-nocheck\nimport React from 'react';\n\nimport { mdiAws as AWS, mdiMicrosoftAzure as Azure } from '@mdi/js';\n\nexport const DEVICE_LIST_DEFAULTS = {\n page: 1,\n perPage: 20\n};\n\nexport const timeUnits = {\n days: 'days',\n minutes: 'minutes',\n hours: 'hours'\n};\n\nexport const ALL_DEVICES = 'All devices';\nexport const UNGROUPED_GROUP = { id: '*|=ungrouped=|*', name: 'Unassigned' };\n\nexport const DEVICE_LIST_MAXIMUM_LENGTH = 50;\n\nexport const DEVICE_FILTERING_OPTIONS = {\n $eq: { key: '$eq', title: 'equals', shortform: '=' },\n $ne: { key: '$ne', title: 'not equal', shortform: '!=' },\n $gt: {\n key: '$gt',\n title: '>',\n shortform: '>',\n help: 'The \"greater than\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $gte: {\n title: '>=',\n shortform: '>=',\n help: 'The \"greater than or equal\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $lt: {\n key: '$lt',\n title: '<',\n shortform: '<',\n help: 'The \"lesser than\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $lte: {\n title: '<=',\n shortform: '<=',\n help: 'The \"lesser than or equal\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $ltne: {\n key: '$ltne',\n title: '$ltne',\n shortform: 'ltne',\n help: 'The \"lesser than or does not exist\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $in: {\n key: '$in',\n title: 'in',\n shortform: 'in',\n help: 'The \"in\" operator accepts a list of comma-separated values. It matches if the selected field is equal to one of the specified values.'\n },\n $nin: {\n key: '$nin',\n title: 'not in',\n shortform: 'not in',\n help: `The \"not in\" operator accepts a list of comma-separated values. It matches if the selected field's value is not equal to any of the specified options.`\n },\n $exists: {\n key: '$exists',\n title: 'exists',\n shortform: 'exists',\n value: true,\n help: `The \"exists\" operator matches if the selected field's value has a value. No value needs to be provided for this operator.`\n },\n $nexists: {\n key: '$nexists',\n title: `doesn't exist`,\n shortform: `doesn't exist`,\n value: true,\n help: `The \"doesn't exist\" operator matches if the selected field's value has no value. No value needs to be provided for this operator.`\n },\n $regex: {\n key: '$regex',\n title: `matches regular expression`,\n shortform: `matches`,\n help: `The \"regular expression\" operator matches the selected field's value with a Perl compatible regular expression (PCRE), automatically anchored by ^. If the regular expression is not valid, the filter will produce no results. If you need to specify options and flags, you can provide the full regex in the format of /regex/flags, for example.`\n }\n};\n\nexport const DEVICE_ISSUE_OPTIONS = {\n issues: {\n isCategory: true,\n key: 'issues',\n title: 'Devices with issues',\n filterRule: {}\n },\n offline: {\n issueCategory: 'issues',\n key: 'offline',\n needsFullFiltering: true,\n needsMonitor: false,\n needsReporting: false,\n filterRule: {\n scope: 'system',\n key: 'check_in_time',\n operator: DEVICE_FILTERING_OPTIONS.$ltne.key,\n value: ({ offlineThreshold }) => offlineThreshold\n },\n title: 'Offline devices'\n },\n failedLastUpdate: {\n issueCategory: 'issues',\n key: 'failedLastUpdate',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'monitor', key: 'failed_last_update', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },\n title: 'Deployment failed'\n },\n monitoring: {\n issueCategory: 'issues',\n key: 'monitoring',\n needsFullFiltering: false,\n needsMonitor: true,\n needsReporting: false,\n filterRule: { scope: 'monitor', key: 'alerts', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },\n title: 'Monitoring alert'\n },\n authRequests: {\n key: 'authRequests',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'monitor', key: 'auth_requests', operator: DEVICE_FILTERING_OPTIONS.$gt.key, value: 1 },\n title: 'Devices with new authentication requests'\n },\n gatewayDevices: {\n key: 'gatewayDevices',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'inventory', key: 'mender_is_gateway', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: 'true' },\n title: 'Gateway devices'\n }\n};\nconst oneSecond = 1000;\nexport const TIMEOUTS = {\n debounceDefault: 700,\n debounceShort: 300,\n halfASecond: 0.5 * oneSecond,\n oneSecond,\n twoSeconds: 2 * oneSecond,\n threeSeconds: 3 * oneSecond,\n fiveSeconds: 5 * oneSecond,\n refreshDefault: 10 * oneSecond,\n refreshLong: 60 * oneSecond\n};\n\nexport const SORTING_OPTIONS = {\n asc: 'asc',\n desc: 'desc'\n};\n\nexport const DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };\n\nexport const ATTRIBUTE_SCOPES = {\n inventory: 'inventory',\n identity: 'identity',\n monitor: 'monitor',\n system: 'system',\n tags: 'tags'\n};\n\nexport const defaultIdAttribute = Object.freeze({ attribute: 'id', scope: ATTRIBUTE_SCOPES.identity });\n\nconst credentialTypes = {\n aws: 'aws',\n http: 'http',\n sas: 'sas',\n x509: 'x509'\n};\nexport const EXTERNAL_PROVIDER = {\n 'iot-core': {\n credentialsType: credentialTypes.aws,\n icon: AWS,\n title: 'AWS IoT Core',\n twinTitle: 'Device Shadow',\n provider: 'iot-core',\n enabled: true,\n deviceTwin: true,\n configHint: <>For help finding your AWS IoT Core connection string, check the AWS IoT documentation.</>\n },\n 'iot-hub': {\n credentialsType: credentialTypes.sas,\n icon: Azure,\n title: 'Azure IoT Hub',\n twinTitle: 'Device Twin',\n provider: 'iot-hub',\n enabled: true,\n deviceTwin: true,\n configHint: (\n <span>\n For help finding your Azure IoT Hub connection string, look under 'Shared access policies' in the Microsoft Azure UI as described{' '}\n {\n <a\n href=\"https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n here\n </a>\n }\n .\n </span>\n )\n },\n webhook: {\n credentialsType: credentialTypes.http,\n deviceTwin: false,\n // disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.\n enabled: false,\n provider: 'webhook'\n }\n};\nexport const MAX_PAGE_SIZE = 500;\n\nexport const ALL_RELEASES = 'All releases';\n\nexport type UiPermissionsDefinition = Readonly<{\n auditlog: string[];\n deployments?: string[]; // deployments are so far only covered indirectly through releases + device group permissions\n groups: Record<string, string[]>;\n releases: Record<string, string[]>;\n tenantManagement: string[];\n userManagement: string[];\n}>;\n\nexport type UiRoleDefinition = {\n name: string;\n description: string;\n editable?: boolean;\n isCustom?: boolean;\n permissions?: object[];\n uiPermissions: UiPermissionsDefinition;\n};\n\nexport const emptyUiPermissions: UiPermissionsDefinition = Object.freeze({\n auditlog: [],\n deployments: [],\n groups: Object.freeze({}),\n releases: Object.freeze({}),\n tenantManagement: [],\n userManagement: []\n});\n\nexport const emptyRole: UiRoleDefinition = Object.freeze({\n name: undefined,\n description: '',\n permissions: [],\n uiPermissions: Object.freeze({ ...emptyUiPermissions })\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACgBA,gBAA0D;AAwL1C;AAjLT,IAAM,YAAY;AAAA,EACvB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AACT;AAOO,IAAM,2BAA2B;AAAA,EACtC,KAAK,EAAE,KAAK,OAAO,OAAO,UAAU,WAAW,IAAI;AAAA,EACnD,KAAK,EAAE,KAAK,OAAO,OAAO,aAAa,WAAW,KAAK;AAAA,EACvD,KAAK;AAAA,IACH,KAAK;AAAA,IACL,OAAO;AAAA,IACP,WAAW;AAAA,IACX,MAAM;AAAA,EACR;AAAA,EACA,MAAM;AAAA,IACJ,OAAO;AAAA,IACP,WAAW;AAAA,IACX,MAAM;AAAA,EACR;AAAA,EACA,KAAK;AAAA,IACH,KAAK;AAAA,IACL,OAAO;AAAA,IACP,WAAW;AAAA,IACX,MAAM;AAAA,EACR;AAAA,EACA,MAAM;AAAA,IACJ,OAAO;AAAA,IACP,WAAW;AAAA,IACX,MAAM;AAAA,EACR;AAAA,EACA,OAAO;AAAA,IACL,KAAK;AAAA,IACL,OAAO;AAAA,IACP,WAAW;AAAA,IACX,MAAM;A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GAAG,OAAO;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB,CAAC,OAAO,WAAW;AACrC,aAAO,EAAE,GAAG,OAAO,GAAG,OAAO,QAAQ;AAAA,IACvC;AAAA,EACF;AACF,CAAC;AAEM,IAAM,UAAU,SAAS;AAChC,IAAO,mBAAQ,SAAS;","names":["AWS","Azure"]}
|
|
1
|
+
{"version":3,"sources":["../../src/appSlice/index.ts","../../src/commonConstants.tsx"],"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.\n// @ts-nocheck\nimport { SORTING_OPTIONS } from '@northern.tech/store/constants';\nimport { createSlice } from '@reduxjs/toolkit';\n\nexport const sliceName = 'app';\n\nconst getYesterday = () => {\n const today = new Date();\n today.setDate(today.getDate() - 1);\n return today.toISOString();\n};\n\nexport const initialState = {\n cancelSource: undefined,\n demoArtifactLink: 'https://dgsbl4vditpls.cloudfront.net/mender-demo-artifact.mender',\n hostAddress: null,\n snackbar: {\n open: false,\n message: '',\n maxWidth: 900,\n autoHideDuration: undefined,\n action: undefined,\n children: undefined,\n onClick: undefined,\n onClose: undefined\n },\n // return boolean rather than organization details\n features: {\n hasAuditlogs: false,\n hasDeltaProgress: false,\n hasMultitenancy: false,\n hasDeviceConfig: false,\n hasDeviceConnect: false,\n hasFeedbackEnabled: false,\n hasMonitor: false,\n hasReporting: false,\n isDemoMode: false,\n isHosted: false,\n isEnterprise: false\n },\n feedbackProbability: 0.3,\n firstLoginAfterSignup: false,\n hostedAnnouncement: '',\n docsVersion: '',\n recaptchaSiteKey: '',\n searchState: {\n deviceIds: [],\n searchTerm: '',\n searchTotal: 0,\n sort: {\n direction: SORTING_OPTIONS.desc\n // key: null,\n // scope: null\n }\n },\n stripeAPIKey: '',\n trackerCode: '',\n uploadsById: {\n // id: { uploading: false, uploadProgress: 0, cancelSource: undefined }\n },\n newThreshold: getYesterday(),\n offlineThreshold: getYesterday(),\n versionInformation: {\n Integration: '',\n 'Mender-Client': '',\n 'Mender-Artifact': '',\n 'Meta-Mender': '',\n Deployments: '',\n Deviceauth: '',\n Inventory: '',\n GUI: 'latest'\n },\n yesterday: undefined\n};\n\nexport const appSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n setFeatures: (state, action) => {\n state.features = {\n ...state.features,\n ...action.payload\n };\n },\n setSnackbar: (state, { payload }) => {\n let { message, autoHideDuration, action, children, onClick, onClose } = payload;\n if (typeof payload === 'string' || payload instanceof String) {\n message = payload;\n }\n state.snackbar = {\n open: message ? true : false,\n message,\n maxWidth: 900,\n autoHideDuration,\n action,\n children,\n onClick,\n onClose\n };\n },\n setFirstLoginAfterSignup: (state, action) => {\n state.firstLoginAfterSignup = action.payload;\n },\n setAnnouncement: (state, action) => {\n state.hostedAnnouncement = action.payload;\n },\n setSearchState: (state, action) => {\n state.searchState = {\n ...state.searchState,\n ...action.payload\n };\n },\n setOfflineThreshold: (state, action) => {\n state.offlineThreshold = action.payload;\n },\n initUpload: (state, action) => {\n const { id, upload } = action.payload;\n state.uploadsById[id] = upload;\n },\n uploadProgress: (state, action) => {\n const { id, progress } = action.payload;\n state.uploadsById[id] = {\n ...state.uploadsById[id],\n progress\n };\n },\n cleanUpUpload: (state, action) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { [action.payload]: current, ...remainder } = state.uploadsById;\n state.uploadsById = remainder;\n },\n setVersionInformation: (state, action) => {\n state.versionInformation = {\n ...state.versionInformation,\n ...action.payload\n };\n },\n setEnvironmentData: (state, action) => ({ ...state, ...action.payload })\n }\n});\n\nexport const actions = appSlice.actions;\nexport default appSlice.reducer;\n","// Copyright 2024 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.\n// @ts-nocheck\nimport React from 'react';\n\nimport { mdiAws as AWS, mdiMicrosoftAzure as Azure } from '@mdi/js';\n\nexport const DEVICE_LIST_DEFAULTS = {\n page: 1,\n perPage: 20\n};\n\nexport const timeUnits = {\n days: 'days',\n minutes: 'minutes',\n hours: 'hours'\n};\n\nexport const ALL_DEVICES = 'All devices';\nexport const UNGROUPED_GROUP = { id: '*|=ungrouped=|*', name: 'Unassigned' };\n\nexport const DEVICE_LIST_MAXIMUM_LENGTH = 50;\n\nexport const DEVICE_FILTERING_OPTIONS = {\n $eq: { key: '$eq', title: 'equals', shortform: '=' },\n $ne: { key: '$ne', title: 'not equal', shortform: '!=' },\n $gt: {\n key: '$gt',\n title: '>',\n shortform: '>',\n help: 'The \"greater than\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $gte: {\n title: '>=',\n shortform: '>=',\n help: 'The \"greater than or equal\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $lt: {\n key: '$lt',\n title: '<',\n shortform: '<',\n help: 'The \"lesser than\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $lte: {\n title: '<=',\n shortform: '<=',\n help: 'The \"lesser than or equal\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $ltne: {\n key: '$ltne',\n title: '$ltne',\n shortform: 'ltne',\n help: 'The \"lesser than or does not exist\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $in: {\n key: '$in',\n title: 'in',\n shortform: 'in',\n help: 'The \"in\" operator accepts a list of comma-separated values. It matches if the selected field is equal to one of the specified values.'\n },\n $nin: {\n key: '$nin',\n title: 'not in',\n shortform: 'not in',\n help: `The \"not in\" operator accepts a list of comma-separated values. It matches if the selected field's value is not equal to any of the specified options.`\n },\n $exists: {\n key: '$exists',\n title: 'exists',\n shortform: 'exists',\n value: true,\n help: `The \"exists\" operator matches if the selected field's value has a value. No value needs to be provided for this operator.`\n },\n $nexists: {\n key: '$nexists',\n title: `doesn't exist`,\n shortform: `doesn't exist`,\n value: true,\n help: `The \"doesn't exist\" operator matches if the selected field's value has no value. No value needs to be provided for this operator.`\n },\n $regex: {\n key: '$regex',\n title: `matches regular expression`,\n shortform: `matches`,\n help: `The \"regular expression\" operator matches the selected field's value with a Perl compatible regular expression (PCRE), automatically anchored by ^. If the regular expression is not valid, the filter will produce no results. If you need to specify options and flags, you can provide the full regex in the format of /regex/flags, for example.`\n }\n};\n\nexport const DEVICE_ISSUE_OPTIONS = {\n issues: {\n isCategory: true,\n key: 'issues',\n title: 'Devices with issues',\n filterRule: {}\n },\n offline: {\n issueCategory: 'issues',\n key: 'offline',\n needsFullFiltering: true,\n needsMonitor: false,\n needsReporting: false,\n filterRule: {\n scope: 'system',\n key: 'check_in_time',\n operator: DEVICE_FILTERING_OPTIONS.$ltne.key,\n value: ({ offlineThreshold }) => offlineThreshold\n },\n title: 'Offline devices'\n },\n failedLastUpdate: {\n issueCategory: 'issues',\n key: 'failedLastUpdate',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'monitor', key: 'failed_last_update', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },\n title: 'Deployment failed'\n },\n monitoring: {\n issueCategory: 'issues',\n key: 'monitoring',\n needsFullFiltering: false,\n needsMonitor: true,\n needsReporting: false,\n filterRule: { scope: 'monitor', key: 'alerts', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },\n title: 'Monitoring alert'\n },\n authRequests: {\n key: 'authRequests',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'monitor', key: 'auth_requests', operator: DEVICE_FILTERING_OPTIONS.$gt.key, value: 1 },\n title: 'Devices with new authentication requests'\n },\n gatewayDevices: {\n key: 'gatewayDevices',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'inventory', key: 'mender_is_gateway', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: 'true' },\n title: 'Gateway devices'\n }\n};\nconst oneSecond = 1000;\nexport const TIMEOUTS = {\n debounceDefault: 700,\n debounceShort: 300,\n halfASecond: 0.5 * oneSecond,\n oneSecond,\n twoSeconds: 2 * oneSecond,\n threeSeconds: 3 * oneSecond,\n fiveSeconds: 5 * oneSecond,\n refreshDefault: 10 * oneSecond,\n refreshLong: 60 * oneSecond\n};\n\nexport const SORTING_OPTIONS = {\n asc: 'asc',\n desc: 'desc'\n};\n\nexport const DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };\n\nexport const ATTRIBUTE_SCOPES = {\n inventory: 'inventory',\n identity: 'identity',\n monitor: 'monitor',\n system: 'system',\n tags: 'tags'\n};\n\nexport const defaultIdAttribute = Object.freeze({ attribute: 'id', scope: ATTRIBUTE_SCOPES.identity });\n\nconst credentialTypes = {\n aws: 'aws',\n http: 'http',\n sas: 'sas',\n x509: 'x509'\n};\nexport const EXTERNAL_PROVIDER = {\n 'iot-core': {\n credentialsType: credentialTypes.aws,\n icon: AWS,\n title: 'AWS IoT Core',\n twinTitle: 'Device Shadow',\n provider: 'iot-core',\n enabled: true,\n deviceTwin: true,\n configHint: <>For help finding your AWS IoT Core connection string, check the AWS IoT documentation.</>\n },\n 'iot-hub': {\n credentialsType: credentialTypes.sas,\n icon: Azure,\n title: 'Azure IoT Hub',\n twinTitle: 'Device Twin',\n provider: 'iot-hub',\n enabled: true,\n deviceTwin: true,\n configHint: (\n <span>\n For help finding your Azure IoT Hub connection string, look under 'Shared access policies' in the Microsoft Azure UI as described{' '}\n {\n <a\n href=\"https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n here\n </a>\n }\n .\n </span>\n )\n },\n webhook: {\n credentialsType: credentialTypes.http,\n deviceTwin: false,\n // disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.\n enabled: false,\n provider: 'webhook'\n }\n};\nexport const MAX_PAGE_SIZE = 500;\n\nexport const ALL_RELEASES = 'All releases';\n\nexport type UiPermissionsDefinition = Readonly<{\n auditlog: string[];\n deployments?: string[]; // deployments are so far only covered indirectly through releases + device group permissions\n groups: Record<string, string[]>;\n releases: Record<string, string[]>;\n tenantManagement: string[];\n userManagement: string[];\n}>;\n\nexport type UiRoleDefinition = {\n description: string;\n editable?: boolean;\n isCustom?: boolean;\n name: string;\n permissions?: object[];\n uiPermissions: UiPermissionsDefinition;\n};\n\nexport const emptyUiPermissions: UiPermissionsDefinition = Object.freeze({\n auditlog: [],\n deployments: [],\n groups: Object.freeze({}),\n releases: Object.freeze({}),\n tenantManagement: [],\n userManagement: []\n});\n\nexport const emptyRole: UiRoleDefinition = Object.freeze({\n name: undefined,\n description: '',\n permissions: [],\n uiPermissions: Object.freeze({ ...emptyUiPermissions })\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACgBA,gBAA0D;AAwL1C;AAjLT,IAAM,YAAY;AAAA,EACvB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AACT;AAOO,IAAM,2BAA2B;AAAA,EACtC,KAAK,EAAE,KAAK,OAAO,OAAO,UAAU,WAAW,IAAI;AAAA,EACnD,KAAK,EAAE,KAAK,OAAO,OAAO,aAAa,WAAW,KAAK;AAAA,EACvD,KAAK;AAAA,IACH,KAAK;AAAA,IACL,OAAO;AAAA,IACP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AACjC,YAAM,EAAE,IAAI,SAAS,IAAI,OAAO;AAChC,YAAM,YAAY,EAAE,IAAI;AAAA,QACtB,GAAG,MAAM,YAAY,EAAE;AAAA,QACvB;AAAA,MACF;AAAA,IACF;AAAA,IACA,eAAe,CAAC,OAAO,WAAW;AAEhC,YAAM,EAAE,CAAC,OAAO,OAAO,GAAG,SAAS,GAAG,UAAU,IAAI,MAAM;AAC1D,YAAM,cAAc;AAAA,IACtB;AAAA,IACA,uBAAuB,CAAC,OAAO,WAAW;AACxC,YAAM,qBAAqB;AAAA,QACzB,GAAG,MAAM;AAAA,QACT,GAAG,OAAO;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB,CAAC,OAAO,YAAY,EAAE,GAAG,OAAO,GAAG,OAAO,QAAQ;AAAA,EACxE;AACF,CAAC;AAEM,IAAM,UAAU,SAAS;AAChC,IAAO,mBAAQ,SAAS;","names":["AWS","Azure"]}
|
package/dist/appSlice/index.js
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
appSlice_default,
|
|
5
5
|
initialState,
|
|
6
6
|
sliceName
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-AFICTIVU.js";
|
|
8
|
+
import "../chunk-OEP2D6QL.js";
|
|
9
9
|
import "../chunk-CK6YE6AN.js";
|
|
10
10
|
import "../chunk-MRCFLG45.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-Y575RZHR.js";
|
|
12
|
+
import "../chunk-BSN2TOQC.js";
|
|
13
13
|
export {
|
|
14
14
|
actions,
|
|
15
15
|
appSlice,
|