@northern.tech/store 0.30.0 → 0.30.2
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.cjs +21 -1130
- package/dist/actions.cjs.map +1 -1
- package/dist/actions.d.cts +212 -221
- package/dist/actions.d.ts +212 -220
- package/dist/actions.js +21 -18
- package/dist/actions.js.map +1 -1
- package/dist/api/general-api.cjs +61 -459
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/general-api.d.cts +15 -17
- package/dist/api/general-api.d.ts +15 -17
- package/dist/api/general-api.js +56 -15
- package/dist/api/general-api.js.map +1 -1
- package/dist/api/users-api.cjs +32 -469
- package/dist/api/users-api.cjs.map +1 -1
- package/dist/api/users-api.d.cts +19 -14
- package/dist/api/users-api.d.ts +19 -13
- package/dist/api/users-api.js +30 -12
- package/dist/api/users-api.js.map +1 -1
- package/dist/appSlice/constants.cjs +190 -144
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +2 -159
- package/dist/appSlice/constants.d.ts +2 -159
- package/dist/appSlice/constants.js +181 -29
- package/dist/appSlice/constants.js.map +1 -1
- package/dist/appSlice/index.cjs +147 -178
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.d.cts +2 -148
- package/dist/appSlice/index.d.ts +2 -148
- package/dist/appSlice/index.js +142 -18
- package/dist/appSlice/index.js.map +1 -1
- package/dist/appSlice/mocks.cjs +17 -191
- package/dist/appSlice/mocks.cjs.map +1 -1
- package/dist/appSlice/mocks.d.cts +33 -36
- package/dist/appSlice/mocks.d.ts +33 -36
- package/dist/appSlice/mocks.js +17 -25
- package/dist/appSlice/mocks.js.map +1 -1
- package/dist/appSlice/selectors.cjs +49 -91
- package/dist/appSlice/selectors.cjs.map +1 -1
- package/dist/appSlice/selectors.d.cts +216 -230
- package/dist/appSlice/selectors.d.ts +216 -230
- package/dist/appSlice/selectors.js +29 -44
- package/dist/appSlice/selectors.js.map +1 -1
- package/dist/appSlice/thunks.cjs +6 -4636
- package/dist/appSlice/thunks.d.cts +59 -62
- package/dist/appSlice/thunks.d.ts +59 -62
- package/dist/appSlice/thunks.js +2 -45
- package/dist/auth.cjs +68 -433
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +14 -14
- package/dist/auth.d.ts +14 -14
- package/dist/auth.js +65 -18
- package/dist/auth.js.map +1 -1
- package/dist/chunk-CKQMccvm.cjs +28 -0
- package/dist/commonConstants.cjs +14 -393
- package/dist/commonConstants.d.cts +2 -83
- package/dist/commonConstants.d.ts +2 -83
- package/dist/commonConstants.js +2 -33
- package/dist/commonSelectors.cjs +284 -1269
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +1623 -1416
- package/dist/commonSelectors.d.ts +1623 -1416
- package/dist/commonSelectors.js +277 -51
- package/dist/commonSelectors.js.map +1 -1
- package/dist/constants-5cdwz1iH.d.ts +160 -0
- package/dist/constants-BWEsNG5c.d.ts +28 -0
- package/dist/constants-BciiayPt.d.ts +17 -0
- package/dist/constants-C5AU0mCY.d.ts +157 -0
- package/dist/constants-CIx3fnBv.d.cts +17 -0
- package/dist/constants-CNhpIMME.d.cts +93 -0
- package/dist/constants-Cpgyuy_r.d.ts +57 -0
- package/dist/constants-D41U_jbR.d.cts +160 -0
- package/dist/constants-DK7fI3Rh.d.cts +28 -0
- package/dist/constants-DPLHhjVN.d.cts +157 -0
- package/dist/constants-DrwXHsJ1.d.ts +120 -0
- package/dist/constants-G3wymKIl.d.cts +57 -0
- package/dist/constants-MPLfugsi.d.cts +120 -0
- package/dist/constants-y2XVLQWf.d.ts +93 -0
- package/dist/constants.cjs +784 -972
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +8 -14
- package/dist/constants.d.ts +8 -14
- package/dist/constants.js +674 -232
- package/dist/constants.js.map +1 -1
- package/dist/deploymentsSlice/constants.cjs +15 -214
- package/dist/deploymentsSlice/constants.d.cts +2 -163
- package/dist/deploymentsSlice/constants.d.ts +2 -163
- package/dist/deploymentsSlice/constants.js +2 -35
- package/dist/deploymentsSlice/index.cjs +168 -302
- package/dist/deploymentsSlice/index.cjs.map +1 -1
- package/dist/deploymentsSlice/index.d.cts +2 -157
- package/dist/deploymentsSlice/index.d.ts +2 -157
- package/dist/deploymentsSlice/index.js +161 -18
- package/dist/deploymentsSlice/index.js.map +1 -1
- package/dist/deploymentsSlice/mocks.cjs +178 -433
- package/dist/deploymentsSlice/mocks.cjs.map +1 -1
- package/dist/deploymentsSlice/mocks.d.cts +176 -178
- package/dist/deploymentsSlice/mocks.d.ts +176 -178
- package/dist/deploymentsSlice/mocks.js +178 -144
- package/dist/deploymentsSlice/mocks.js.map +1 -1
- package/dist/deploymentsSlice/selectors.cjs +44 -223
- package/dist/deploymentsSlice/selectors.cjs.map +1 -1
- package/dist/deploymentsSlice/selectors.d.cts +73 -87
- package/dist/deploymentsSlice/selectors.d.ts +73 -87
- package/dist/deploymentsSlice/selectors.js +37 -25
- package/dist/deploymentsSlice/selectors.js.map +1 -1
- package/dist/deploymentsSlice/thunks.cjs +16 -4654
- package/dist/deploymentsSlice/thunks.d.cts +223 -236
- package/dist/deploymentsSlice/thunks.d.ts +223 -236
- package/dist/deploymentsSlice/thunks.js +2 -65
- package/dist/devicesSlice/constants.cjs +9 -68
- package/dist/devicesSlice/constants.d.cts +2 -37
- package/dist/devicesSlice/constants.d.ts +2 -37
- package/dist/devicesSlice/constants.js +2 -23
- package/dist/devicesSlice/index.cjs +215 -225
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.d.cts +2 -202
- package/dist/devicesSlice/index.d.ts +2 -202
- package/dist/devicesSlice/index.js +209 -18
- package/dist/devicesSlice/index.js.map +1 -1
- package/dist/devicesSlice/mocks.cjs +146 -339
- package/dist/devicesSlice/mocks.cjs.map +1 -1
- package/dist/devicesSlice/mocks.d.cts +150 -148
- package/dist/devicesSlice/mocks.d.ts +150 -148
- package/dist/devicesSlice/mocks.js +145 -132
- package/dist/devicesSlice/mocks.js.map +1 -1
- package/dist/devicesSlice/selectors.cjs +145 -539
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +685 -699
- package/dist/devicesSlice/selectors.d.ts +685 -699
- package/dist/devicesSlice/selectors.js +123 -59
- package/dist/devicesSlice/selectors.js.map +1 -1
- package/dist/devicesSlice/thunks.cjs +48 -4718
- package/dist/devicesSlice/thunks.d.cts +800 -752
- package/dist/devicesSlice/thunks.d.ts +800 -752
- package/dist/devicesSlice/thunks.js +2 -129
- package/dist/index-4eaLEXy_.d.cts +152 -0
- package/dist/index-BEVkIiNa.d.cts +95 -0
- package/dist/index-BP0uAq36.d.cts +159 -0
- package/dist/index-Bwx9jEiL.d.cts +71 -0
- package/dist/index-CJkrL0oA.d.ts +64 -0
- package/dist/index-CO-py5d4.d.ts +95 -0
- package/dist/index-CTt-eIY8.d.cts +154 -0
- package/dist/index-CkwVnIqd.d.ts +159 -0
- package/dist/index-Cvkvcz4r.d.ts +115 -0
- package/dist/index-DJSlDPRX.d.ts +71 -0
- package/dist/index-DqyY6oZ3.d.ts +205 -0
- package/dist/index-DtePEQPT.d.ts +152 -0
- package/dist/index-Dv3Hfxk_.d.ts +154 -0
- package/dist/index-FyYBBeN-.d.cts +115 -0
- package/dist/index-Lz5JsJ6O.d.cts +205 -0
- package/dist/index-UPc3wvVd.d.cts +64 -0
- package/dist/liststatehook.cjs +83 -948
- package/dist/liststatehook.cjs.map +1 -1
- package/dist/liststatehook.d.cts +29 -239
- package/dist/liststatehook.d.ts +29 -239
- package/dist/liststatehook.js +77 -85
- package/dist/liststatehook.js.map +1 -1
- package/dist/locationutils.cjs +459 -916
- package/dist/locationutils.cjs.map +1 -1
- package/dist/locationutils.d.cts +244 -110
- package/dist/locationutils.d.ts +244 -110
- package/dist/locationutils.js +440 -44
- package/dist/locationutils.js.map +1 -1
- package/dist/monitorSlice/constants.cjs +0 -19
- package/dist/monitorSlice/constants.d.cts +2 -5
- package/dist/monitorSlice/constants.d.ts +2 -5
- package/dist/monitorSlice/constants.js +1 -2
- package/dist/monitorSlice/index.cjs +65 -82
- package/dist/monitorSlice/index.cjs.map +1 -1
- package/dist/monitorSlice/index.d.cts +2 -94
- package/dist/monitorSlice/index.d.ts +2 -94
- package/dist/monitorSlice/index.js +59 -18
- package/dist/monitorSlice/index.js.map +1 -1
- package/dist/monitorSlice/mocks.cjs +50 -126
- package/dist/monitorSlice/mocks.cjs.map +1 -1
- package/dist/monitorSlice/mocks.d.cts +49 -45
- package/dist/monitorSlice/mocks.d.ts +49 -45
- package/dist/monitorSlice/mocks.js +49 -62
- package/dist/monitorSlice/mocks.js.map +1 -1
- package/dist/monitorSlice/selectors.cjs +5 -29
- package/dist/monitorSlice/selectors.cjs.map +1 -1
- package/dist/monitorSlice/selectors.d.cts +10 -1
- package/dist/monitorSlice/selectors.d.ts +10 -1
- package/dist/monitorSlice/selectors.js +5 -6
- package/dist/monitorSlice/selectors.js.map +1 -1
- package/dist/monitorSlice/thunks.cjs +83 -1914
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.d.cts +112 -120
- package/dist/monitorSlice/thunks.d.ts +112 -120
- package/dist/monitorSlice/thunks.js +78 -42
- package/dist/monitorSlice/thunks.js.map +1 -1
- package/dist/onboardingSlice/constants.cjs +44 -69
- package/dist/onboardingSlice/constants.cjs.map +1 -1
- package/dist/onboardingSlice/constants.d.cts +2 -26
- package/dist/onboardingSlice/constants.d.ts +2 -26
- package/dist/onboardingSlice/constants.js +43 -7
- package/dist/onboardingSlice/constants.js.map +1 -1
- package/dist/onboardingSlice/index.cjs +53 -73
- package/dist/onboardingSlice/index.cjs.map +1 -1
- package/dist/onboardingSlice/index.d.cts +2 -62
- package/dist/onboardingSlice/index.d.ts +2 -62
- package/dist/onboardingSlice/index.js +47 -13
- package/dist/onboardingSlice/index.js.map +1 -1
- package/dist/onboardingSlice/mocks.cjs +12 -81
- package/dist/onboardingSlice/mocks.cjs.map +1 -1
- package/dist/onboardingSlice/mocks.d.cts +14 -15
- package/dist/onboardingSlice/mocks.d.ts +14 -15
- package/dist/onboardingSlice/mocks.js +12 -15
- package/dist/onboardingSlice/mocks.js.map +1 -1
- package/dist/onboardingSlice/selectors.cjs +5 -29
- package/dist/onboardingSlice/selectors.cjs.map +1 -1
- package/dist/onboardingSlice/selectors.d.cts +6 -1
- package/dist/onboardingSlice/selectors.d.ts +6 -1
- package/dist/onboardingSlice/selectors.js +5 -6
- package/dist/onboardingSlice/selectors.js.map +1 -1
- package/dist/onboardingSlice/thunks.cjs +8 -4746
- package/dist/onboardingSlice/thunks.d.cts +124 -143
- package/dist/onboardingSlice/thunks.d.ts +124 -143
- package/dist/onboardingSlice/thunks.js +2 -49
- package/dist/organizationSlice/constants.cjs +11 -95
- package/dist/organizationSlice/constants.d.cts +2 -91
- package/dist/organizationSlice/constants.d.ts +2 -91
- package/dist/organizationSlice/constants.js +2 -27
- package/dist/organizationSlice/index.cjs +113 -152
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.d.cts +2 -74
- package/dist/organizationSlice/index.d.ts +2 -74
- package/dist/organizationSlice/index.js +106 -18
- package/dist/organizationSlice/index.js.map +1 -1
- package/dist/organizationSlice/mocks.cjs +215 -406
- package/dist/organizationSlice/mocks.cjs.map +1 -1
- package/dist/organizationSlice/mocks.d.cts +209 -212
- package/dist/organizationSlice/mocks.d.ts +209 -212
- package/dist/organizationSlice/mocks.js +214 -184
- package/dist/organizationSlice/mocks.js.map +1 -1
- package/dist/organizationSlice/selectors.cjs +97 -474
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +381 -389
- package/dist/organizationSlice/selectors.d.ts +381 -389
- package/dist/organizationSlice/selectors.js +78 -50
- package/dist/organizationSlice/selectors.js.map +1 -1
- package/dist/organizationSlice/thunks.cjs +43 -5150
- package/dist/organizationSlice/thunks.d.cts +638 -649
- package/dist/organizationSlice/thunks.d.ts +638 -649
- package/dist/organizationSlice/thunks.js +2 -119
- package/dist/organizationSlice/types.cjs +0 -19
- package/dist/organizationSlice/types.d.cts +2 -88
- package/dist/organizationSlice/types.d.ts +2 -88
- package/dist/organizationSlice/types.js +1 -1
- package/dist/releasesSlice/constants.cjs +17 -41
- package/dist/releasesSlice/constants.cjs.map +1 -1
- package/dist/releasesSlice/constants.d.cts +2 -15
- package/dist/releasesSlice/constants.d.ts +2 -15
- package/dist/releasesSlice/constants.js +13 -14
- package/dist/releasesSlice/constants.js.map +1 -1
- package/dist/releasesSlice/index.cjs +106 -179
- package/dist/releasesSlice/index.cjs.map +1 -1
- package/dist/releasesSlice/index.d.cts +2 -113
- package/dist/releasesSlice/index.d.ts +2 -113
- package/dist/releasesSlice/index.js +100 -18
- package/dist/releasesSlice/index.js.map +1 -1
- package/dist/releasesSlice/mocks.cjs +44 -220
- package/dist/releasesSlice/mocks.cjs.map +1 -1
- package/dist/releasesSlice/mocks.d.cts +63 -61
- package/dist/releasesSlice/mocks.d.ts +63 -61
- package/dist/releasesSlice/mocks.js +43 -59
- package/dist/releasesSlice/mocks.js.map +1 -1
- package/dist/releasesSlice/selectors.cjs +44 -439
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.d.cts +268 -280
- package/dist/releasesSlice/selectors.d.ts +268 -280
- package/dist/releasesSlice/selectors.js +31 -36
- package/dist/releasesSlice/selectors.js.map +1 -1
- package/dist/releasesSlice/thunks.cjs +422 -2175
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +305 -307
- package/dist/releasesSlice/thunks.d.ts +305 -307
- package/dist/releasesSlice/thunks.js +413 -65
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/selectors.cjs +136 -1530
- package/dist/selectors.d.cts +10 -36
- package/dist/selectors.d.ts +10 -36
- package/dist/selectors.js +10 -280
- package/dist/sockethook.cjs +140 -515
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.d.cts +25 -9
- package/dist/sockethook.d.ts +25 -9
- package/dist/sockethook.js +134 -135
- package/dist/sockethook.js.map +1 -1
- package/dist/store-BQxOSRC1.d.ts +234 -0
- package/dist/store-BiIA0r0A.d.cts +234 -0
- package/dist/store.cjs +117 -1290
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +3 -206
- package/dist/store.d.ts +3 -206
- package/dist/store.js +110 -32
- package/dist/store.js.map +1 -1
- package/dist/storehooks.cjs +240 -5783
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.d.cts +76 -4
- package/dist/storehooks.d.ts +76 -4
- package/dist/storehooks.js +229 -265
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +2656 -5918
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +9 -36
- package/dist/thunks.d.ts +9 -36
- package/dist/thunks.js +2481 -385
- package/dist/thunks.js.map +1 -1
- package/dist/types-B2NRQLFw.d.ts +88 -0
- package/dist/types-ClEfo0dK.d.cts +88 -0
- package/dist/useDeploymentDevice.cjs +26 -4650
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.d.cts +4 -2
- package/dist/useDeploymentDevice.d.ts +4 -2
- package/dist/useDeploymentDevice.js +21 -60
- package/dist/useDeploymentDevice.js.map +1 -1
- package/dist/usersSlice/constants.cjs +8 -55
- package/dist/usersSlice/constants.d.cts +2 -52
- package/dist/usersSlice/constants.d.ts +2 -52
- package/dist/usersSlice/constants.js +2 -21
- package/dist/usersSlice/index.cjs +132 -172
- package/dist/usersSlice/index.cjs.map +1 -1
- package/dist/usersSlice/index.d.cts +2 -152
- package/dist/usersSlice/index.d.ts +2 -152
- package/dist/usersSlice/index.js +125 -18
- package/dist/usersSlice/index.js.map +1 -1
- package/dist/usersSlice/mocks.cjs +55 -196
- package/dist/usersSlice/mocks.cjs.map +1 -1
- package/dist/usersSlice/mocks.d.cts +68 -72
- package/dist/usersSlice/mocks.d.ts +68 -72
- package/dist/usersSlice/mocks.js +54 -46
- package/dist/usersSlice/mocks.js.map +1 -1
- package/dist/usersSlice/selectors.cjs +65 -567
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.d.cts +364 -376
- package/dist/usersSlice/selectors.d.ts +364 -376
- package/dist/usersSlice/selectors.js +44 -50
- package/dist/usersSlice/selectors.js.map +1 -1
- package/dist/usersSlice/thunks.cjs +39 -4698
- package/dist/usersSlice/thunks.d.cts +820 -856
- package/dist/usersSlice/thunks.d.ts +820 -856
- package/dist/usersSlice/thunks.js +2 -111
- package/dist/utils-CO_CpGFP.d.ts +105 -0
- package/dist/utils-CpPfqW0Q.d.cts +105 -0
- package/dist/utils.cjs +231 -850
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +2 -80
- package/dist/utils.d.ts +2 -80
- package/dist/utils.js +211 -50
- package/dist/utils.js.map +1 -1
- package/package.json +11 -13
- package/dist/appSlice/thunks.cjs.map +0 -1
- package/dist/appSlice/thunks.js.map +0 -1
- package/dist/chunk-2DYA3X77.js +0 -15
- package/dist/chunk-2DYA3X77.js.map +0 -1
- package/dist/chunk-4BHM6WVX.js +0 -50
- package/dist/chunk-4BHM6WVX.js.map +0 -1
- package/dist/chunk-4UNLEL5A.js +0 -143
- package/dist/chunk-4UNLEL5A.js.map +0 -1
- package/dist/chunk-6V5IIIF7.js +0 -396
- package/dist/chunk-6V5IIIF7.js.map +0 -1
- package/dist/chunk-ARMI6SZS.js +0 -446
- package/dist/chunk-ARMI6SZS.js.map +0 -1
- package/dist/chunk-AZF4YY3P.js +0 -108
- package/dist/chunk-AZF4YY3P.js.map +0 -1
- package/dist/chunk-B5AI2YPV.js +0 -156
- package/dist/chunk-B5AI2YPV.js.map +0 -1
- package/dist/chunk-CQXDAXQF.js +0 -51
- package/dist/chunk-CQXDAXQF.js.map +0 -1
- package/dist/chunk-DBBE6D36.js +0 -115
- package/dist/chunk-DBBE6D36.js.map +0 -1
- package/dist/chunk-ECVQVQEL.js +0 -68
- package/dist/chunk-ECVQVQEL.js.map +0 -1
- package/dist/chunk-FAJ3I2UQ.js +0 -47
- package/dist/chunk-FAJ3I2UQ.js.map +0 -1
- package/dist/chunk-FCY7BUGK.js +0 -2876
- package/dist/chunk-FCY7BUGK.js.map +0 -1
- package/dist/chunk-FG37HJLC.js +0 -157
- package/dist/chunk-FG37HJLC.js.map +0 -1
- package/dist/chunk-FQAUVV6C.js +0 -246
- package/dist/chunk-FQAUVV6C.js.map +0 -1
- package/dist/chunk-HKN3RN2Z.js +0 -41
- package/dist/chunk-HKN3RN2Z.js.map +0 -1
- package/dist/chunk-HPKXWNEF.js +0 -100
- package/dist/chunk-HPKXWNEF.js.map +0 -1
- package/dist/chunk-JIS4PA3R.js +0 -7
- package/dist/chunk-JIS4PA3R.js.map +0 -1
- package/dist/chunk-JXBTIFMS.js +0 -82
- package/dist/chunk-JXBTIFMS.js.map +0 -1
- package/dist/chunk-JYPSCCT4.js +0 -58
- package/dist/chunk-JYPSCCT4.js.map +0 -1
- package/dist/chunk-L53CPHJU.js +0 -721
- package/dist/chunk-L53CPHJU.js.map +0 -1
- package/dist/chunk-MNJXEB7S.js +0 -304
- package/dist/chunk-MNJXEB7S.js.map +0 -1
- package/dist/chunk-NMAXZ3ZY.js +0 -1
- package/dist/chunk-NMAXZ3ZY.js.map +0 -1
- package/dist/chunk-NXLXPRYW.js +0 -142
- package/dist/chunk-NXLXPRYW.js.map +0 -1
- package/dist/chunk-O6VCSLNE.js +0 -59
- package/dist/chunk-O6VCSLNE.js.map +0 -1
- package/dist/chunk-PQADM3M3.js +0 -115
- package/dist/chunk-PQADM3M3.js.map +0 -1
- package/dist/chunk-SJ75YKOA.js +0 -44
- package/dist/chunk-SJ75YKOA.js.map +0 -1
- package/dist/chunk-TUPBZ6MQ.js +0 -162
- package/dist/chunk-TUPBZ6MQ.js.map +0 -1
- package/dist/chunk-XF3TZSZS.js +0 -25
- package/dist/chunk-XF3TZSZS.js.map +0 -1
- package/dist/chunk-YB3US6OT.js +0 -61
- package/dist/chunk-YB3US6OT.js.map +0 -1
- package/dist/chunk-YDDE5TIH.js +0 -204
- package/dist/chunk-YDDE5TIH.js.map +0 -1
- package/dist/chunk-YO22XLHI.js +0 -7
- package/dist/chunk-YO22XLHI.js.map +0 -1
- package/dist/chunk-Z2O6LYVP.js +0 -144
- package/dist/chunk-Z2O6LYVP.js.map +0 -1
- package/dist/chunk-ZKAH3APE.js +0 -1
- package/dist/chunk-ZKAH3APE.js.map +0 -1
- package/dist/commonConstants.cjs.map +0 -1
- package/dist/commonConstants.js.map +0 -1
- package/dist/deploymentsSlice/constants.cjs.map +0 -1
- package/dist/deploymentsSlice/constants.js.map +0 -1
- package/dist/deploymentsSlice/thunks.cjs.map +0 -1
- package/dist/deploymentsSlice/thunks.js.map +0 -1
- package/dist/devicesSlice/constants.cjs.map +0 -1
- package/dist/devicesSlice/constants.js.map +0 -1
- package/dist/devicesSlice/thunks.cjs.map +0 -1
- package/dist/devicesSlice/thunks.js.map +0 -1
- package/dist/monitorSlice/constants.cjs.map +0 -1
- package/dist/monitorSlice/constants.js.map +0 -1
- package/dist/onboardingSlice/thunks.cjs.map +0 -1
- package/dist/onboardingSlice/thunks.js.map +0 -1
- package/dist/organizationSlice/constants.cjs.map +0 -1
- package/dist/organizationSlice/constants.js.map +0 -1
- package/dist/organizationSlice/thunks.cjs.map +0 -1
- package/dist/organizationSlice/thunks.js.map +0 -1
- package/dist/organizationSlice/types.cjs.map +0 -1
- package/dist/organizationSlice/types.js.map +0 -1
- package/dist/selectors.cjs.map +0 -1
- package/dist/selectors.js.map +0 -1
- package/dist/usersSlice/constants.cjs.map +0 -1
- package/dist/usersSlice/constants.js.map +0 -1
- package/dist/usersSlice/thunks.cjs.map +0 -1
- package/dist/usersSlice/thunks.js.map +0 -1
|
@@ -1,141 +1,133 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { AlertChannelKey } from './constants.cjs';
|
|
8
|
-
import 'redux';
|
|
9
|
-
import 'immer';
|
|
10
|
-
import '@mui/material';
|
|
11
|
-
import '../commonConstants.cjs';
|
|
12
|
-
import 'react/jsx-runtime';
|
|
13
|
-
import '../devicesSlice/constants.cjs';
|
|
14
|
-
import '../deploymentsSlice/index.cjs';
|
|
15
|
-
import 'redux-thunk';
|
|
16
|
-
import '../usersSlice/index.cjs';
|
|
17
|
-
import '../usersSlice/constants.cjs';
|
|
18
|
-
import '../releasesSlice/index.cjs';
|
|
19
|
-
import '../organizationSlice/index.cjs';
|
|
20
|
-
import '../organizationSlice/types.cjs';
|
|
21
|
-
import '../appSlice/constants.cjs';
|
|
22
|
-
import '@mui/material/OverridableComponent';
|
|
23
|
-
import '../organizationSlice/constants.cjs';
|
|
24
|
-
import '../onboardingSlice/index.cjs';
|
|
25
|
-
import './index.cjs';
|
|
1
|
+
import { ct as AlertChannelKey, m as DeviceIssueOptionKey } from "../constants-MPLfugsi.cjs";
|
|
2
|
+
import { n as DeviceFilter, t as Device$1 } from "../index-Lz5JsJ6O.cjs";
|
|
3
|
+
import { s as SnackbarContent } from "../index-CTt-eIY8.cjs";
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-BiIA0r0A.cjs";
|
|
5
|
+
import * as _$_reduxjs_toolkit0 from "@reduxjs/toolkit";
|
|
6
|
+
import { Alert } from "@northern.tech/types/MenderTypes";
|
|
26
7
|
|
|
8
|
+
//#region src/monitorSlice/thunks.d.ts
|
|
27
9
|
interface GetDeviceAlertsPayload {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
10
|
+
config?: {
|
|
11
|
+
issuedAfter?: string;
|
|
12
|
+
issuedBefore?: string;
|
|
13
|
+
page?: number;
|
|
14
|
+
perPage?: number;
|
|
15
|
+
sortAscending?: boolean;
|
|
16
|
+
};
|
|
17
|
+
id: string;
|
|
36
18
|
}
|
|
37
|
-
declare const getDeviceAlerts:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
19
|
+
declare const getDeviceAlerts: _$_reduxjs_toolkit0.AsyncThunk<[{
|
|
20
|
+
payload: {
|
|
21
|
+
alerts: (Alert & {
|
|
22
|
+
fullName?: string;
|
|
23
|
+
})[];
|
|
24
|
+
deviceId: string;
|
|
25
|
+
};
|
|
26
|
+
type: "monitor/receiveDeviceAlerts";
|
|
45
27
|
}, {
|
|
46
|
-
|
|
47
|
-
|
|
28
|
+
payload: any;
|
|
29
|
+
type: "monitor/setAlertListState";
|
|
48
30
|
}], GetDeviceAlertsPayload, {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
31
|
+
dispatch: AppDispatch;
|
|
32
|
+
state: RootState;
|
|
33
|
+
extra?: unknown;
|
|
34
|
+
rejectValue?: unknown;
|
|
35
|
+
serializedErrorType?: unknown;
|
|
36
|
+
pendingMeta?: unknown;
|
|
37
|
+
fulfilledMeta?: unknown;
|
|
38
|
+
rejectedMeta?: unknown;
|
|
57
39
|
}>;
|
|
58
40
|
interface GetLatestDeviceAlertsPayload {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
41
|
+
config?: {
|
|
42
|
+
page?: number;
|
|
43
|
+
perPage?: number;
|
|
44
|
+
};
|
|
45
|
+
id: string;
|
|
64
46
|
}
|
|
65
|
-
declare const getLatestDeviceAlerts:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
47
|
+
declare const getLatestDeviceAlerts: _$_reduxjs_toolkit0.AsyncThunk<{
|
|
48
|
+
payload: {
|
|
49
|
+
alerts: (Alert & {
|
|
50
|
+
fullName?: string;
|
|
51
|
+
})[];
|
|
52
|
+
deviceId: string;
|
|
53
|
+
};
|
|
54
|
+
type: "monitor/receiveLatestDeviceAlerts";
|
|
73
55
|
}, GetLatestDeviceAlertsPayload, {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
56
|
+
dispatch: AppDispatch;
|
|
57
|
+
state: RootState;
|
|
58
|
+
extra?: unknown;
|
|
59
|
+
rejectValue?: unknown;
|
|
60
|
+
serializedErrorType?: unknown;
|
|
61
|
+
pendingMeta?: unknown;
|
|
62
|
+
fulfilledMeta?: unknown;
|
|
63
|
+
rejectedMeta?: unknown;
|
|
82
64
|
}>;
|
|
83
65
|
interface GetIssueCountsByTypePayload {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
66
|
+
options?: Partial<{
|
|
67
|
+
filters: DeviceFilter[];
|
|
68
|
+
group: string;
|
|
69
|
+
status: string;
|
|
70
|
+
type: string;
|
|
71
|
+
}>;
|
|
72
|
+
type: DeviceIssueOptionKey;
|
|
91
73
|
}
|
|
92
|
-
declare const getIssueCountsByType:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
74
|
+
declare const getIssueCountsByType: _$_reduxjs_toolkit0.AsyncThunk<{
|
|
75
|
+
payload: {
|
|
76
|
+
counts: {
|
|
77
|
+
filtered: number;
|
|
78
|
+
total: number;
|
|
79
|
+
};
|
|
80
|
+
issueType: DeviceIssueOptionKey;
|
|
81
|
+
};
|
|
82
|
+
type: "monitor/receiveDeviceIssueCounts";
|
|
83
|
+
} | undefined, GetIssueCountsByTypePayload, {
|
|
84
|
+
dispatch: AppDispatch;
|
|
85
|
+
state: RootState;
|
|
86
|
+
extra?: unknown;
|
|
87
|
+
rejectValue?: unknown;
|
|
88
|
+
serializedErrorType?: unknown;
|
|
89
|
+
pendingMeta?: unknown;
|
|
90
|
+
fulfilledMeta?: unknown;
|
|
91
|
+
rejectedMeta?: unknown;
|
|
101
92
|
}>;
|
|
102
|
-
declare const getDeviceMonitorConfig:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
93
|
+
declare const getDeviceMonitorConfig: _$_reduxjs_toolkit0.AsyncThunk<[{
|
|
94
|
+
payload: {
|
|
95
|
+
id: string;
|
|
96
|
+
} & Partial<Device$1>;
|
|
97
|
+
type: "devices/receivedDevice";
|
|
107
98
|
}], string, {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
99
|
+
dispatch: AppDispatch;
|
|
100
|
+
state: RootState;
|
|
101
|
+
extra?: unknown;
|
|
102
|
+
rejectValue?: unknown;
|
|
103
|
+
serializedErrorType?: unknown;
|
|
104
|
+
pendingMeta?: unknown;
|
|
105
|
+
fulfilledMeta?: unknown;
|
|
106
|
+
rejectedMeta?: unknown;
|
|
116
107
|
}>;
|
|
117
108
|
interface ChangeNotificationSettingPayload {
|
|
118
|
-
|
|
119
|
-
|
|
109
|
+
channel?: AlertChannelKey;
|
|
110
|
+
enabled: boolean;
|
|
120
111
|
}
|
|
121
|
-
declare const changeNotificationSetting:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
112
|
+
declare const changeNotificationSetting: _$_reduxjs_toolkit0.AsyncThunk<[{
|
|
113
|
+
payload: {
|
|
114
|
+
channel: AlertChannelKey;
|
|
115
|
+
enabled: boolean;
|
|
116
|
+
};
|
|
117
|
+
type: "monitor/changeAlertChannel";
|
|
127
118
|
}, {
|
|
128
|
-
|
|
129
|
-
|
|
119
|
+
payload: string | SnackbarContent;
|
|
120
|
+
type: "app/setSnackbar";
|
|
130
121
|
}], ChangeNotificationSettingPayload, {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
122
|
+
dispatch: AppDispatch;
|
|
123
|
+
state: RootState;
|
|
124
|
+
extra?: unknown;
|
|
125
|
+
rejectValue?: unknown;
|
|
126
|
+
serializedErrorType?: unknown;
|
|
127
|
+
pendingMeta?: unknown;
|
|
128
|
+
fulfilledMeta?: unknown;
|
|
129
|
+
rejectedMeta?: unknown;
|
|
139
130
|
}>;
|
|
140
|
-
|
|
131
|
+
//#endregion
|
|
141
132
|
export { changeNotificationSetting, getDeviceAlerts, getDeviceMonitorConfig, getIssueCountsByType, getLatestDeviceAlerts };
|
|
133
|
+
//# sourceMappingURL=thunks.d.cts.map
|
|
@@ -1,141 +1,133 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { AlertChannelKey } from './constants.js';
|
|
8
|
-
import 'redux';
|
|
9
|
-
import 'immer';
|
|
10
|
-
import '@mui/material';
|
|
11
|
-
import '../commonConstants.js';
|
|
12
|
-
import 'react/jsx-runtime';
|
|
13
|
-
import '../devicesSlice/constants.js';
|
|
14
|
-
import '../deploymentsSlice/index.js';
|
|
15
|
-
import 'redux-thunk';
|
|
16
|
-
import '../usersSlice/index.js';
|
|
17
|
-
import '../usersSlice/constants.js';
|
|
18
|
-
import '../releasesSlice/index.js';
|
|
19
|
-
import '../organizationSlice/index.js';
|
|
20
|
-
import '../organizationSlice/types.js';
|
|
21
|
-
import '../appSlice/constants.js';
|
|
22
|
-
import '@mui/material/OverridableComponent';
|
|
23
|
-
import '../organizationSlice/constants.js';
|
|
24
|
-
import '../onboardingSlice/index.js';
|
|
25
|
-
import './index.js';
|
|
1
|
+
import { ct as AlertChannelKey, m as DeviceIssueOptionKey } from "../constants-DrwXHsJ1.js";
|
|
2
|
+
import { n as DeviceFilter, t as Device$1 } from "../index-DqyY6oZ3.js";
|
|
3
|
+
import { s as SnackbarContent } from "../index-Dv3Hfxk_.js";
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-BQxOSRC1.js";
|
|
5
|
+
import * as _$_reduxjs_toolkit0 from "@reduxjs/toolkit";
|
|
6
|
+
import { Alert } from "@northern.tech/types/MenderTypes";
|
|
26
7
|
|
|
8
|
+
//#region src/monitorSlice/thunks.d.ts
|
|
27
9
|
interface GetDeviceAlertsPayload {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
10
|
+
config?: {
|
|
11
|
+
issuedAfter?: string;
|
|
12
|
+
issuedBefore?: string;
|
|
13
|
+
page?: number;
|
|
14
|
+
perPage?: number;
|
|
15
|
+
sortAscending?: boolean;
|
|
16
|
+
};
|
|
17
|
+
id: string;
|
|
36
18
|
}
|
|
37
|
-
declare const getDeviceAlerts:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
19
|
+
declare const getDeviceAlerts: _$_reduxjs_toolkit0.AsyncThunk<[{
|
|
20
|
+
payload: {
|
|
21
|
+
alerts: (Alert & {
|
|
22
|
+
fullName?: string;
|
|
23
|
+
})[];
|
|
24
|
+
deviceId: string;
|
|
25
|
+
};
|
|
26
|
+
type: "monitor/receiveDeviceAlerts";
|
|
45
27
|
}, {
|
|
46
|
-
|
|
47
|
-
|
|
28
|
+
payload: any;
|
|
29
|
+
type: "monitor/setAlertListState";
|
|
48
30
|
}], GetDeviceAlertsPayload, {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
31
|
+
dispatch: AppDispatch;
|
|
32
|
+
state: RootState;
|
|
33
|
+
extra?: unknown;
|
|
34
|
+
rejectValue?: unknown;
|
|
35
|
+
serializedErrorType?: unknown;
|
|
36
|
+
pendingMeta?: unknown;
|
|
37
|
+
fulfilledMeta?: unknown;
|
|
38
|
+
rejectedMeta?: unknown;
|
|
57
39
|
}>;
|
|
58
40
|
interface GetLatestDeviceAlertsPayload {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
41
|
+
config?: {
|
|
42
|
+
page?: number;
|
|
43
|
+
perPage?: number;
|
|
44
|
+
};
|
|
45
|
+
id: string;
|
|
64
46
|
}
|
|
65
|
-
declare const getLatestDeviceAlerts:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
47
|
+
declare const getLatestDeviceAlerts: _$_reduxjs_toolkit0.AsyncThunk<{
|
|
48
|
+
payload: {
|
|
49
|
+
alerts: (Alert & {
|
|
50
|
+
fullName?: string;
|
|
51
|
+
})[];
|
|
52
|
+
deviceId: string;
|
|
53
|
+
};
|
|
54
|
+
type: "monitor/receiveLatestDeviceAlerts";
|
|
73
55
|
}, GetLatestDeviceAlertsPayload, {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
56
|
+
dispatch: AppDispatch;
|
|
57
|
+
state: RootState;
|
|
58
|
+
extra?: unknown;
|
|
59
|
+
rejectValue?: unknown;
|
|
60
|
+
serializedErrorType?: unknown;
|
|
61
|
+
pendingMeta?: unknown;
|
|
62
|
+
fulfilledMeta?: unknown;
|
|
63
|
+
rejectedMeta?: unknown;
|
|
82
64
|
}>;
|
|
83
65
|
interface GetIssueCountsByTypePayload {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
66
|
+
options?: Partial<{
|
|
67
|
+
filters: DeviceFilter[];
|
|
68
|
+
group: string;
|
|
69
|
+
status: string;
|
|
70
|
+
type: string;
|
|
71
|
+
}>;
|
|
72
|
+
type: DeviceIssueOptionKey;
|
|
91
73
|
}
|
|
92
|
-
declare const getIssueCountsByType:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
74
|
+
declare const getIssueCountsByType: _$_reduxjs_toolkit0.AsyncThunk<{
|
|
75
|
+
payload: {
|
|
76
|
+
counts: {
|
|
77
|
+
filtered: number;
|
|
78
|
+
total: number;
|
|
79
|
+
};
|
|
80
|
+
issueType: DeviceIssueOptionKey;
|
|
81
|
+
};
|
|
82
|
+
type: "monitor/receiveDeviceIssueCounts";
|
|
83
|
+
} | undefined, GetIssueCountsByTypePayload, {
|
|
84
|
+
dispatch: AppDispatch;
|
|
85
|
+
state: RootState;
|
|
86
|
+
extra?: unknown;
|
|
87
|
+
rejectValue?: unknown;
|
|
88
|
+
serializedErrorType?: unknown;
|
|
89
|
+
pendingMeta?: unknown;
|
|
90
|
+
fulfilledMeta?: unknown;
|
|
91
|
+
rejectedMeta?: unknown;
|
|
101
92
|
}>;
|
|
102
|
-
declare const getDeviceMonitorConfig:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
93
|
+
declare const getDeviceMonitorConfig: _$_reduxjs_toolkit0.AsyncThunk<[{
|
|
94
|
+
payload: {
|
|
95
|
+
id: string;
|
|
96
|
+
} & Partial<Device$1>;
|
|
97
|
+
type: "devices/receivedDevice";
|
|
107
98
|
}], string, {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
99
|
+
dispatch: AppDispatch;
|
|
100
|
+
state: RootState;
|
|
101
|
+
extra?: unknown;
|
|
102
|
+
rejectValue?: unknown;
|
|
103
|
+
serializedErrorType?: unknown;
|
|
104
|
+
pendingMeta?: unknown;
|
|
105
|
+
fulfilledMeta?: unknown;
|
|
106
|
+
rejectedMeta?: unknown;
|
|
116
107
|
}>;
|
|
117
108
|
interface ChangeNotificationSettingPayload {
|
|
118
|
-
|
|
119
|
-
|
|
109
|
+
channel?: AlertChannelKey;
|
|
110
|
+
enabled: boolean;
|
|
120
111
|
}
|
|
121
|
-
declare const changeNotificationSetting:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
112
|
+
declare const changeNotificationSetting: _$_reduxjs_toolkit0.AsyncThunk<[{
|
|
113
|
+
payload: {
|
|
114
|
+
channel: AlertChannelKey;
|
|
115
|
+
enabled: boolean;
|
|
116
|
+
};
|
|
117
|
+
type: "monitor/changeAlertChannel";
|
|
127
118
|
}, {
|
|
128
|
-
|
|
129
|
-
|
|
119
|
+
payload: string | SnackbarContent;
|
|
120
|
+
type: "app/setSnackbar";
|
|
130
121
|
}], ChangeNotificationSettingPayload, {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
122
|
+
dispatch: AppDispatch;
|
|
123
|
+
state: RootState;
|
|
124
|
+
extra?: unknown;
|
|
125
|
+
rejectValue?: unknown;
|
|
126
|
+
serializedErrorType?: unknown;
|
|
127
|
+
pendingMeta?: unknown;
|
|
128
|
+
fulfilledMeta?: unknown;
|
|
129
|
+
rejectedMeta?: unknown;
|
|
139
130
|
}>;
|
|
140
|
-
|
|
131
|
+
//#endregion
|
|
141
132
|
export { changeNotificationSetting, getDeviceAlerts, getDeviceMonitorConfig, getIssueCountsByType, getLatestDeviceAlerts };
|
|
133
|
+
//# sourceMappingURL=thunks.d.ts.map
|
|
@@ -1,43 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
import { DEVICE_LIST_DEFAULTS, TIMEOUTS, alertChannels, headerNames, inventoryApiUrlV2, monitorApiUrlv1 } from "../constants.js";
|
|
2
|
+
import { actions, sliceName } from "./index.js";
|
|
3
|
+
import actions_default from "../actions.js";
|
|
4
|
+
import { getDeviceFilters } from "../devicesSlice/selectors.js";
|
|
5
|
+
import { convertDeviceListStateToFilters } from "../utils.js";
|
|
6
|
+
import { commonErrorFallback, commonErrorHandler, createAppAsyncThunk } from "../store.js";
|
|
7
|
+
import Api from "../api/general-api.js";
|
|
8
|
+
//#region src/monitorSlice/thunks.ts
|
|
9
|
+
const { page: defaultPage, perPage: defaultPerPage } = DEVICE_LIST_DEFAULTS;
|
|
10
|
+
const cutoffLength = 75;
|
|
11
|
+
const ellipsis = "...";
|
|
12
|
+
const longTextTrimmer = (text) => text.length >= cutoffLength + 3 ? `${text.substring(0, cutoffLength + 3)}${ellipsis}` : text;
|
|
13
|
+
const sanitizeDeviceAlerts = (alerts) => alerts.map((alert) => ({
|
|
14
|
+
...alert,
|
|
15
|
+
fullName: alert.name,
|
|
16
|
+
name: longTextTrimmer(alert.name || "")
|
|
17
|
+
}));
|
|
18
|
+
const getDeviceAlerts = createAppAsyncThunk(`${sliceName}/getDeviceAlerts`, ({ id, config = {} }, { dispatch }) => {
|
|
19
|
+
const { page = defaultPage, perPage = defaultPerPage, issuedBefore, issuedAfter, sortAscending = false } = config;
|
|
20
|
+
const issued_after = issuedAfter ? `&issued_after=${issuedAfter}` : "";
|
|
21
|
+
const issued_before = issuedBefore ? `&issued_before=${issuedBefore}` : "";
|
|
22
|
+
return Api.get(`${monitorApiUrlv1}/devices/${id}/alerts?page=${page}&per_page=${perPage}${issued_after}${issued_before}&sort_ascending=${sortAscending}`).catch((err) => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch)).then((res) => Promise.all([dispatch(actions.receiveDeviceAlerts({
|
|
23
|
+
deviceId: id,
|
|
24
|
+
alerts: sanitizeDeviceAlerts(res.data)
|
|
25
|
+
})), dispatch(actions.setAlertListState({ total: Number(res.headers[headerNames.total]) }))]));
|
|
26
|
+
});
|
|
27
|
+
const getLatestDeviceAlerts = createAppAsyncThunk(`${sliceName}/getLatestDeviceAlerts`, ({ id, config = {} }, { dispatch }) => {
|
|
28
|
+
const { page = defaultPage, perPage = 10 } = config;
|
|
29
|
+
return Api.get(`${monitorApiUrlv1}/devices/${id}/alerts/latest?page=${page}&per_page=${perPage}`).catch((err) => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch)).then((res) => Promise.resolve(dispatch(actions.receiveLatestDeviceAlerts({
|
|
30
|
+
deviceId: id,
|
|
31
|
+
alerts: sanitizeDeviceAlerts(res.data)
|
|
32
|
+
}))));
|
|
33
|
+
});
|
|
34
|
+
const getIssueCountsByType = createAppAsyncThunk(`${sliceName}/getIssueCountsByType`, async ({ type, options = {} }, { dispatch, getState }) => {
|
|
35
|
+
const state = getState();
|
|
36
|
+
const { filters = getDeviceFilters(state), group, status, ...remainder } = options;
|
|
37
|
+
const { applicableFilters: nonMonitorFilters, filterTerms } = convertDeviceListStateToFilters({
|
|
38
|
+
...remainder,
|
|
39
|
+
filters,
|
|
40
|
+
group,
|
|
41
|
+
offlineThreshold: state.app.offlineThreshold,
|
|
42
|
+
selectedIssues: [type],
|
|
43
|
+
status
|
|
44
|
+
});
|
|
45
|
+
const res = await Api.post(`${inventoryApiUrlV2}/filters/search`, {
|
|
46
|
+
page: 1,
|
|
47
|
+
per_page: 1,
|
|
48
|
+
filters: filterTerms,
|
|
49
|
+
attributes: [{
|
|
50
|
+
scope: "identity",
|
|
51
|
+
attribute: "status"
|
|
52
|
+
}]
|
|
53
|
+
}).catch((err) => commonErrorHandler(err, `Retrieving issue counts failed:`, dispatch, commonErrorFallback));
|
|
54
|
+
const total = nonMonitorFilters.length ? state.monitor.issueCounts.byType[type].total : Number(res.headers[headerNames.total]);
|
|
55
|
+
const filtered = nonMonitorFilters.length ? Number(res.headers[headerNames.total]) : total;
|
|
56
|
+
if (total === state.monitor.issueCounts.byType[type].total && filtered === state.monitor.issueCounts.byType[type].filtered) return;
|
|
57
|
+
return dispatch(actions.receiveDeviceIssueCounts({
|
|
58
|
+
counts: {
|
|
59
|
+
filtered,
|
|
60
|
+
total
|
|
61
|
+
},
|
|
62
|
+
issueType: type
|
|
63
|
+
}));
|
|
64
|
+
});
|
|
65
|
+
const getDeviceMonitorConfig = createAppAsyncThunk(`${sliceName}/getDeviceMonitorConfig`, (id, { dispatch }) => Api.get(`${monitorApiUrlv1}/devices/${id}/config`).catch((err) => commonErrorHandler(err, `Retrieving device monitor config for device ${id} failed:`, dispatch)).then(({ data }) => Promise.all([dispatch(actions_default.receivedDevice({
|
|
66
|
+
id,
|
|
67
|
+
monitors: data
|
|
68
|
+
}), Promise.resolve(data))])));
|
|
69
|
+
const changeNotificationSetting = createAppAsyncThunk(`${sliceName}/changeNotificationSetting`, ({ enabled, channel = alertChannels.email }, { dispatch }) => Api.put(`${monitorApiUrlv1}/settings/global/channel/alerts/${channel}/status`, { enabled }).catch((err) => commonErrorHandler(err, `${enabled ? "En" : "Dis"}abling ${channel} alerts failed:`, dispatch)).then(() => Promise.all([dispatch(actions.changeAlertChannel({
|
|
70
|
+
channel,
|
|
71
|
+
enabled
|
|
72
|
+
})), dispatch(actions_default.setSnackbar({
|
|
73
|
+
message: `Successfully ${enabled ? "en" : "dis"}abled ${channel} alerts`,
|
|
74
|
+
autoHideDuration: TIMEOUTS.fiveSeconds
|
|
75
|
+
}))])));
|
|
76
|
+
//#endregion
|
|
77
|
+
export { changeNotificationSetting, getDeviceAlerts, getDeviceMonitorConfig, getIssueCountsByType, getLatestDeviceAlerts };
|
|
78
|
+
|
|
43
79
|
//# sourceMappingURL=thunks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"thunks.js","names":["storeActions"],"sources":["../../src/monitorSlice/thunks.ts"],"sourcesContent":["// Copyright 2021 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 { DeviceFilter } from '@/src/devicesSlice';\nimport type { Alert, DeviceInventory, MonitorConfiguration } from '@northern.tech/types/MenderTypes';\n\nimport { actions, sliceName } from '.';\nimport storeActions from '../actions';\nimport Api from '../api/general-api';\nimport type { AlertChannelKey, DeviceIssueOptionKey } from '../constants';\nimport { DEVICE_LIST_DEFAULTS, TIMEOUTS, alertChannels, headerNames, inventoryApiUrlV2, monitorApiUrlv1 } from '../constants';\nimport { getDeviceFilters } from '../selectors';\nimport { commonErrorFallback, commonErrorHandler, createAppAsyncThunk } from '../store';\nimport { convertDeviceListStateToFilters } from '../utils';\n\nconst { page: defaultPage, perPage: defaultPerPage } = DEVICE_LIST_DEFAULTS;\n\nconst cutoffLength = 75;\nconst ellipsis = '...';\nconst longTextTrimmer = (text: string): string =>\n text.length >= cutoffLength + ellipsis.length ? `${text.substring(0, cutoffLength + ellipsis.length)}${ellipsis}` : text;\n\nconst sanitizeDeviceAlerts = (alerts: Alert[]) => alerts.map(alert => ({ ...alert, fullName: alert.name, name: longTextTrimmer(alert.name || '') }));\n\ninterface GetDeviceAlertsPayload {\n config?: { issuedAfter?: string; issuedBefore?: string; page?: number; perPage?: number; sortAscending?: boolean };\n id: string;\n}\nexport const getDeviceAlerts = createAppAsyncThunk(`${sliceName}/getDeviceAlerts`, ({ id, config = {} }: GetDeviceAlertsPayload, { dispatch }) => {\n const { page = defaultPage, perPage = defaultPerPage, issuedBefore, issuedAfter, sortAscending = false } = config;\n const issued_after = issuedAfter ? `&issued_after=${issuedAfter}` : '';\n const issued_before = issuedBefore ? `&issued_before=${issuedBefore}` : '';\n return Api.get<Alert[]>(\n `${monitorApiUrlv1}/devices/${id}/alerts?page=${page}&per_page=${perPage}${issued_after}${issued_before}&sort_ascending=${sortAscending}`\n )\n .catch(err => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch))\n .then(res =>\n Promise.all([\n dispatch(actions.receiveDeviceAlerts({ deviceId: id, alerts: sanitizeDeviceAlerts(res.data) })),\n dispatch(actions.setAlertListState({ total: Number(res.headers[headerNames.total]) }))\n ])\n );\n});\n\ninterface GetLatestDeviceAlertsPayload {\n config?: { page?: number; perPage?: number };\n id: string;\n}\nexport const getLatestDeviceAlerts = createAppAsyncThunk(\n `${sliceName}/getLatestDeviceAlerts`,\n ({ id, config = {} }: GetLatestDeviceAlertsPayload, { dispatch }) => {\n const { page = defaultPage, perPage = 10 } = config;\n return Api.get<Alert[]>(`${monitorApiUrlv1}/devices/${id}/alerts/latest?page=${page}&per_page=${perPage}`)\n .catch(err => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch))\n .then(res => Promise.resolve(dispatch(actions.receiveLatestDeviceAlerts({ deviceId: id, alerts: sanitizeDeviceAlerts(res.data) }))));\n }\n);\n\ninterface GetIssueCountsByTypePayload {\n options?: Partial<{ filters: DeviceFilter[]; group: string; status: string; type: string }>;\n type: DeviceIssueOptionKey;\n}\nexport const getIssueCountsByType = createAppAsyncThunk(\n `${sliceName}/getIssueCountsByType`,\n async ({ type, options = {} }: GetIssueCountsByTypePayload, { dispatch, getState }) => {\n const state = getState();\n const { filters = getDeviceFilters(state), group, status, ...remainder } = options;\n const { applicableFilters: nonMonitorFilters, filterTerms } = convertDeviceListStateToFilters({\n ...remainder,\n filters,\n group,\n offlineThreshold: state.app.offlineThreshold,\n selectedIssues: [type],\n status\n });\n const res = await Api.post<DeviceInventory[]>(`${inventoryApiUrlV2}/filters/search`, {\n page: 1,\n per_page: 1,\n filters: filterTerms,\n attributes: [{ scope: 'identity', attribute: 'status' }]\n }).catch(err => commonErrorHandler(err, `Retrieving issue counts failed:`, dispatch, commonErrorFallback));\n const total = nonMonitorFilters.length ? state.monitor.issueCounts.byType[type].total : Number(res.headers[headerNames.total]);\n const filtered = nonMonitorFilters.length ? Number(res.headers[headerNames.total]) : total;\n if (total === state.monitor.issueCounts.byType[type].total && filtered === state.monitor.issueCounts.byType[type].filtered) {\n return;\n }\n return dispatch(actions.receiveDeviceIssueCounts({ counts: { filtered, total }, issueType: type }));\n }\n);\n\nexport const getDeviceMonitorConfig = createAppAsyncThunk(`${sliceName}/getDeviceMonitorConfig`, (id: string, { dispatch }) =>\n Api.get<MonitorConfiguration[]>(`${monitorApiUrlv1}/devices/${id}/config`)\n .catch(err => commonErrorHandler(err, `Retrieving device monitor config for device ${id} failed:`, dispatch))\n .then(({ data }) => Promise.all([dispatch(storeActions.receivedDevice({ id, monitors: data }), Promise.resolve(data))]))\n);\n\ninterface ChangeNotificationSettingPayload {\n channel?: AlertChannelKey;\n enabled: boolean;\n}\nexport const changeNotificationSetting = createAppAsyncThunk(\n `${sliceName}/changeNotificationSetting`,\n ({ enabled, channel = alertChannels.email as AlertChannelKey }: ChangeNotificationSettingPayload, { dispatch }) =>\n Api.put(`${monitorApiUrlv1}/settings/global/channel/alerts/${channel}/status`, { enabled })\n .catch(err => commonErrorHandler(err, `${enabled ? 'En' : 'Dis'}abling ${channel} alerts failed:`, dispatch))\n .then(() =>\n Promise.all([\n dispatch(actions.changeAlertChannel({ channel, enabled })),\n dispatch(\n storeActions.setSnackbar({ message: `Successfully ${enabled ? 'en' : 'dis'}abled ${channel} alerts`, autoHideDuration: TIMEOUTS.fiveSeconds })\n )\n ])\n )\n);\n"],"mappings":"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"}
|