@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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/organizationSlice/mocks.ts","../../src/constants.ts","../../src/appSlice/constants.ts","../../src/organizationSlice/constants.ts","../../src/organizationSlice/index.ts"],"sourcesContent":["// Copyright 2025 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 { DEVICE_LIST_DEFAULTS, PLANS } from '../constants';\nimport { initialState } from './index';\n\nconst basicPlanId = PLANS.os.id;\nconst professionalPlanId = PLANS.professional.id;\nconst enterprisePlanId = PLANS.enterprise.id;\n\nexport const mockState = {\n ...initialState,\n card: {\n brand: 'testCorp',\n last4: '7890',\n expiration: { month: 1, year: 2024 }\n },\n auditlog: {\n events: [\n {\n actor: {\n id: 'string',\n type: 'user',\n email: 'string@example.com'\n },\n time: '2019-01-01T12:10:22.667Z',\n action: 'create',\n object: {\n id: 'string',\n type: 'user',\n user: {\n email: 'user@acme.com'\n }\n },\n change: 'change1'\n },\n {\n actor: {\n id: 'string',\n type: 'user',\n email: 'string',\n identity_data: 'string'\n },\n time: '2019-01-01T12:16:22.667Z',\n action: 'create',\n object: {\n id: 'string',\n type: 'deployment',\n deployment: {\n name: 'production',\n artifact_name: 'Application 0.0.1'\n }\n },\n change: 'change2'\n },\n {\n actor: {\n id: 'string',\n type: 'user',\n email: 'string@example.com'\n },\n time: '2019-01-01T12:10:22.669Z',\n action: 'open_terminal',\n meta: {\n session_id: ['abd313a8-ee88-48ab-9c99-fbcd80048e6e']\n },\n object: {\n id: 'a1',\n type: 'device'\n },\n change: 'change3'\n }\n ],\n selectionState: {\n ...DEVICE_LIST_DEFAULTS,\n detail: undefined,\n endDate: undefined,\n selectedIssue: undefined,\n startDate: undefined,\n type: undefined,\n user: undefined,\n isLoading: false,\n sort: {},\n total: 3\n }\n },\n products: {\n plans: {\n [basicPlanId]: {\n id: basicPlanId,\n name: 'Basic',\n tierLimitsConstrains: {\n standard: { min: 50, max: 1000, div: 50 },\n micro: { min: 50, max: 5000, div: 50 }\n },\n description:\n 'The core features of Mender. To continue using Enterprise Trial features—like Delta updates, scheduled deployments, phased rollouts, device filtering, dynamic groups, RBAC, audit logs, and more—please upgrade to a higher plan.'\n },\n [professionalPlanId]: {\n id: professionalPlanId,\n name: 'Professional',\n tierLimitsConstrains: {\n standard: { min: 250, max: 10000, div: 50 },\n micro: { min: 500, max: 100000, div: 50 }\n },\n description: 'Everything in Basic, plus enhanced update management and automation features.'\n },\n enterprise: { ...PLANS.enterprise }\n },\n tiers: [\n {\n id: 'micro',\n title: 'micro',\n stripeProductName: 'mender_micro',\n limitConstrains: {\n [basicPlanId]: { min: 50, max: 5000, div: 50 },\n [professionalPlanId]: { min: 500, max: 100000, div: 50 }\n },\n addonsByPlan: {\n [basicPlanId]: [],\n [professionalPlanId]: []\n },\n addons: {}\n },\n {\n id: 'standard',\n title: 'standard',\n stripeProductName: 'mender_standard',\n limitConstrains: {\n [basicPlanId]: { min: 50, max: 1000, div: 50 },\n [professionalPlanId]: { min: 250, max: 10000, div: 50 }\n },\n addons: {\n troubleshoot: [basicPlanId, professionalPlanId],\n configure: [basicPlanId, professionalPlanId],\n monitor: [professionalPlanId]\n },\n addonsByPlan: {\n [basicPlanId]: ['troubleshoot', 'configure'],\n [professionalPlanId]: ['troubleshoot', 'configure', 'monitor']\n }\n }\n ],\n addons: {\n configure: {\n id: 'configure',\n needs: ['hasDeviceConfig'],\n title: 'Configure',\n eligible: [basicPlanId, professionalPlanId, enterprisePlanId],\n description: 'Seamlessly configure applications and devices remotely – configure each device to its environment.'\n },\n monitor: {\n id: 'monitor',\n needs: ['hasMonitor'],\n title: 'Monitor',\n eligible: [professionalPlanId, enterprisePlanId],\n description: 'Detect and analyze health issues of devices, services and applications. Set up alerts so you can act quickly.'\n },\n troubleshoot: {\n id: 'troubleshoot',\n needs: ['hasDeviceConnect'],\n title: 'Troubleshoot',\n eligible: [basicPlanId, professionalPlanId, enterprisePlanId],\n description: 'Secure, remote access to your devices – quickly diagnose and fix issues in real time.'\n }\n }\n },\n intentId: 'testIntent',\n organization: {\n addons: [],\n id: '1',\n name: 'test',\n plan: 'os',\n trial: false\n }\n};\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 {\n ALL_DEVICES,\n ALL_DEVICE_STATES,\n ALL_RELEASES,\n APPLICATION_JSON_CONTENT_TYPE,\n APPLICATION_JWT_CONTENT_TYPE,\n ATTRIBUTE_SCOPES,\n DEVICE_FILTERING_OPTIONS,\n DEVICE_ISSUE_OPTIONS,\n DEVICE_LIST_DEFAULTS,\n DEVICE_STATES,\n PermissionTypes,\n SORTING_OPTIONS,\n alertChannels,\n apiRoot,\n apiUrl,\n auditLogsApiUrl,\n defaultPermissionSets,\n deploymentsApiUrl,\n deploymentsApiUrlV2,\n deviceAuthV2,\n deviceConfig,\n deviceConnect,\n emptyRole,\n emptyUiPermissions,\n headerNames,\n inventoryApiUrl,\n inventoryApiUrlV2,\n iotManagerBaseURL,\n limitDefault,\n maxSessionAge,\n monitorApiUrlv1,\n rolesById,\n rolesByName,\n scopedPermissionAreas,\n serviceProviderRolesById,\n ssoIdpApiUrlv1,\n tenantadmApiUrlv1,\n tenantadmApiUrlv2,\n twoFAStates,\n uiPermissionsByArea,\n uiPermissionsById,\n useradmApiUrl,\n useradmApiUrlv1,\n useradmApiUrlv2\n} from '@northern.tech/utils/constants';\nimport type {\n AnyPermission,\n AuditLogPermission,\n DeploymentPermission,\n DeviceIssueOptionKey,\n GroupsPermission,\n PermissionObject,\n PermissionSet,\n PermissionSetId,\n ReleasesPermission,\n Role,\n ScopedPermissionsByAreaKey,\n SortOptions,\n UiPermissionsByAreaKey,\n UiPermissionsByIdKey,\n UiPermissionsDefinition,\n UserManagementPermission\n} from '@northern.tech/utils/constants';\n\nexport {\n alertChannels,\n ALL_DEVICE_STATES,\n ALL_DEVICES,\n ALL_RELEASES,\n APPLICATION_JSON_CONTENT_TYPE,\n APPLICATION_JWT_CONTENT_TYPE,\n ATTRIBUTE_SCOPES,\n apiRoot,\n apiUrl,\n auditLogsApiUrl,\n defaultPermissionSets,\n deploymentsApiUrl,\n deploymentsApiUrlV2,\n DEVICE_FILTERING_OPTIONS,\n DEVICE_ISSUE_OPTIONS,\n DEVICE_LIST_DEFAULTS,\n DEVICE_STATES,\n deviceAuthV2,\n deviceConfig,\n deviceConnect,\n emptyRole,\n emptyUiPermissions,\n headerNames,\n inventoryApiUrl,\n inventoryApiUrlV2,\n iotManagerBaseURL,\n monitorApiUrlv1,\n limitDefault,\n maxSessionAge,\n PermissionTypes,\n rolesById,\n rolesByName,\n scopedPermissionAreas,\n serviceProviderRolesById,\n SORTING_OPTIONS,\n ssoIdpApiUrlv1,\n tenantadmApiUrlv1,\n tenantadmApiUrlv2,\n twoFAStates,\n uiPermissionsByArea,\n uiPermissionsById,\n useradmApiUrl,\n useradmApiUrlv1,\n useradmApiUrlv2\n};\n\nexport type {\n AnyPermission,\n AuditLogPermission,\n DeploymentPermission,\n DeviceIssueOptionKey,\n GroupsPermission,\n PermissionObject,\n PermissionSet,\n PermissionSetId,\n ReleasesPermission,\n Role,\n ScopedPermissionsByAreaKey,\n SortOptions,\n UiPermissionsByAreaKey,\n UiPermissionsByIdKey,\n UiPermissionsDefinition,\n UserManagementPermission\n};\n\nexport * from './appSlice/constants';\nexport * from './commonConstants';\nexport * from './deploymentsSlice/constants';\nexport * from './devicesSlice/constants';\nexport * from './monitorSlice/constants';\nexport * from './onboardingSlice/constants';\nexport * from './organizationSlice/constants';\nexport * from './releasesSlice/constants';\nexport * from './usersSlice/constants';\n","// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { BarChart as BarChartIcon, PieChartOutline as PieChartIcon } from '@mui/icons-material';\n\nimport { yes as yesUtil } from '@northern.tech/utils';\n\nexport const chartTypes = {\n bar: { key: 'bar', Icon: BarChartIcon },\n pie: { key: 'pie', Icon: PieChartIcon }\n} as const;\nexport const emptyChartSelection = { software: '', group: '', chartType: chartTypes.bar.key, attribute: 'artifact_name' };\nexport const defaultReportType = 'distribution';\nexport const defaultReports = [{ ...emptyChartSelection, group: null, attribute: 'artifact_name', type: defaultReportType }];\n\nexport const BEGINNING_OF_TIME = '2016-01-01T00:00:00.000Z';\n\nexport const locations = {\n cn: { key: 'cn', title: 'China', location: 'hosted.mender.cn' },\n eu: { key: 'eu', title: 'EU', location: 'eu.hosted.mender.io' },\n us: { key: 'us', title: 'US', location: 'hosted.mender.io' }\n} as const;\nexport type AvailablePlans = 'os' | 'professional' | 'enterprise';\n\nexport type Plan = {\n description: string;\n id: AvailablePlans;\n name: string;\n};\n\nexport type AvailableAddon = 'configure' | 'troubleshoot' | 'monitor';\n\nexport const PLANS: { [key in AvailablePlans]: Plan } = {\n os: {\n id: 'os',\n name: 'Basic',\n description:\n 'The core features of Mender. To continue using Enterprise Trial features—like Delta updates, scheduled deployments, phased rollouts, device filtering, dynamic groups, RBAC, audit logs, and more—please upgrade to a higher plan.'\n },\n professional: {\n id: 'professional',\n name: 'Professional',\n description: 'Everything in Basic, plus enhanced update management and automation features.'\n },\n enterprise: {\n id: 'enterprise',\n name: 'Enterprise',\n description:\n 'Every advanced feature of Mender, tailored for complex and large-scale deployments. Not available as a monthly subscription — ask us for a quote.'\n }\n} as const;\nexport type Addon = {\n description: string;\n eligible: AvailablePlans[];\n id: string;\n needs: string[];\n title: string;\n};\n\nexport type AddonId = keyof typeof ADDONS;\n\n// the needs names need to be aligned with the name of the features in the appReducer, as they will be checked in the addonselection\nexport const ADDONS: { [key in AvailableAddon]: Addon } = {\n configure: {\n id: 'configure',\n title: 'Configure',\n description: 'Seamlessly configure applications and devices remotely – configure each device to its environment.',\n needs: ['hasDeviceConfig'],\n eligible: ['os', 'professional', 'enterprise']\n },\n monitor: {\n id: 'monitor',\n title: 'Monitor',\n description: 'Detect and analyze health issues of devices, services and applications. Set up alerts so you can act quickly.',\n needs: ['hasMonitor'],\n eligible: ['professional', 'enterprise']\n },\n troubleshoot: {\n id: 'troubleshoot',\n title: 'Troubleshoot',\n description: 'Secure, remote access to your devices – quickly diagnose and fix issues in real time.',\n needs: ['hasDeviceConnect'],\n eligible: ['os', 'professional', 'enterprise']\n }\n};\n\nexport const BENEFITS = {\n auditlog: {\n id: 'auditlog',\n benefit: 'gain access to logs for important events such as changes to devices, deployments and user management, as well as remote terminal session replays',\n requiredPlan: PLANS.enterprise.id\n },\n dashboard: { id: 'dashboard', benefit: 'actionable insights into the devices you are updating with Mender', requiredPlan: PLANS.enterprise.id },\n deltaGeneration: {\n id: 'deltaGeneration',\n benefit: 'automatic delta artifacts generation to minimize data transfer and improve the update delivery',\n requiredPlan: PLANS.enterprise.id\n },\n deviceConfiguration: { id: 'deviceConfiguration', benefit: 'device configuration features', requiredAddon: ADDONS.configure.id },\n deviceMonitor: { id: 'deviceMonitor', benefit: 'device monitoring features', requiredAddon: ADDONS.monitor.id, requiredPlan: PLANS.professional.id },\n deviceTroubleshoot: { id: 'deviceTroubleshoot', benefit: 'device troubleshooting features', requiredAddon: ADDONS.troubleshoot.id },\n dynamicGroups: { id: 'dynamicGroups', benefit: 'create dynamic groups to ease device management', requiredPlan: PLANS.enterprise.id },\n fullFiltering: { id: 'fullFiltering', benefit: 'filtering by multiple attributes to improve the device overview', requiredPlan: PLANS.professional.id },\n gateway: { id: 'gateway', benefit: 'see devices connected to your gateway device for easy access', requiredPlans: PLANS.professional.id },\n pausedDeployments: {\n id: 'pausedDeployments',\n benefit: 'granular control about update rollout to allow synchronization across your fleet',\n requiredPlan: PLANS.enterprise.id\n },\n phasedDeployments: { id: 'phasedDeployments', benefit: 'choose to roll out deployments in multiple phases', requiredPlan: PLANS.enterprise.id },\n rbac: { id: 'rbac', benefit: 'granular role based access control', requiredPlan: PLANS.enterprise.id },\n retryDeployments: { id: 'retryDeployments', benefit: 'optional retries for failed rollout attempts', requiredPlan: PLANS.professional.id },\n scheduledDeployments: {\n id: 'scheduledDeployments',\n benefit: 'scheduled deployments to steer the distribution of your updates.',\n requiredPlan: PLANS.professional.id\n },\n webhookEvents: {\n id: 'webhookEvents',\n benefit: 'receive inventory events and select which type(s) of events the webhook will receive',\n requiredPlan: PLANS.professional.id\n },\n\n default: { id: 'default', benefit: 'gain access to this feature', requiredPlan: PLANS.enterprise.id }\n} as const;\n\nexport const yes = yesUtil;\nexport const canAccess = yes;\n\nexport const DARK_MODE = 'dark';\nexport const LIGHT_MODE = 'light';\n","// Copyright 2020 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 { useradmApiUrl } from '../constants';\n\nexport const XML_METADATA_FORMAT = 'xml';\nexport const JSON_METADATA_FORMAT = 'json';\n\nexport const getSamlStartUrl = id => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/login`;\nexport const getOidcStartUrl = id => `${window.location.origin}${useradmApiUrl}/oidc/${id}/start`;\n\nexport const SSO_TYPES = {\n saml: {\n id: 'saml',\n type: 'saml',\n title: 'SAML',\n metadataFormat: XML_METADATA_FORMAT,\n editorLanguage: XML_METADATA_FORMAT,\n contentType: 'application/samlmetadata+xml',\n getStartUrl: getSamlStartUrl,\n configDetails: [\n { key: 'entityID', label: 'Entity ID', getValue: id => `${window.location.origin}${useradmApiUrl}/sso/sp/metadata/${id}` },\n { key: 'acs', label: 'ACS URL', getValue: id => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/acs` },\n { key: 'startURL', label: 'Start URL', getValue: getSamlStartUrl }\n ]\n },\n oidc: {\n id: 'oidc',\n type: 'oidc',\n title: 'OpenID Connect',\n metadataFormat: JSON_METADATA_FORMAT,\n editorLanguage: JSON_METADATA_FORMAT,\n contentType: 'application/json',\n getStartUrl: getOidcStartUrl,\n configDetails: [{ key: 'startURL', label: 'Start Url', getValue: getOidcStartUrl }]\n }\n} as const;\n\nexport type ContentType = (typeof SSO_TYPES)[keyof typeof SSO_TYPES]['contentType'];\n\nexport const auditlogTypes = {\n artifact: { title: 'Artifact', queryParameter: 'object_type', value: 'artifact' },\n deployment: { title: 'Deployment', queryParameter: 'object_deployment_name', value: 'deployment' },\n device: { title: 'Device', queryParameter: 'object_id', value: 'device' },\n user_access_token: { title: 'Personal Access Token', queryParameter: 'user_access_token', value: 'user_access_token' },\n user: { title: 'User', queryParameter: 'object_id', value: 'user' },\n tenant: { title: 'Tenant', queryParameter: 'object_id', value: 'tenant' }\n};\n\nexport const AUDIT_LOGS_TYPES = [auditlogTypes.artifact, auditlogTypes.deployment, auditlogTypes.device, auditlogTypes.user_access_token, auditlogTypes.user];\nexport const SP_AUDIT_LOGS_TYPES = [auditlogTypes.user, auditlogTypes.tenant];\n\nexport const TENANT_LIST_DEFAULT = {\n page: 1,\n perPage: 20\n};\n","// Copyright 2023 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { AuditLog as AuditLogEvent, BillingProfile, Integration, Event as WebhookEvent } from '@northern.tech/types/MenderTypes';\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS, TENANT_LIST_DEFAULT } from '../constants';\nimport type { AuditLog, AuditLogSelectionState, Card, Organization, ProductConfig, SSOConfig, TenantList, Webhook } from './types';\n\nexport const sliceName = 'organization';\n\nexport type OrganizationSliceType = {\n auditlog: AuditLog;\n card: Card;\n externalDeviceIntegrations: Integration[];\n intentId: string | null;\n organization: Partial<Organization>;\n products?: ProductConfig;\n ssoConfigs: SSOConfig[];\n tenantList: TenantList;\n webhooks: Webhook;\n};\n\nexport const initialState: OrganizationSliceType = {\n card: {\n last4: '',\n expiration: { month: 1, year: 2020 },\n brand: ''\n },\n intentId: null,\n tenantList: {\n ...TENANT_LIST_DEFAULT,\n total: 0,\n tenants: [],\n selectedTenant: null,\n sort: {\n direction: SORTING_OPTIONS.desc,\n key: 'name'\n }\n },\n organization: {\n // id, name, status, tenant_token, plan\n },\n auditlog: {\n events: [],\n selectionState: {\n ...DEVICE_LIST_DEFAULTS,\n detail: undefined,\n endDate: undefined,\n selectedIssue: undefined,\n sort: { direction: SORTING_OPTIONS.desc },\n startDate: undefined,\n total: 0,\n type: undefined,\n user: undefined,\n isLoading: false\n }\n },\n externalDeviceIntegrations: [\n // { <connection_string|x509|...>, id, provider }\n ],\n ssoConfigs: [],\n webhooks: {\n // [id]: { events: [] }\n // for now:\n events: [],\n eventsTotal: 0\n }\n};\n\nexport const organizationSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n receiveAuditLogs: (state, action: PayloadAction<{ events: AuditLogEvent[]; total: number }>) => {\n const { events, total } = action.payload;\n state.auditlog.events = events;\n state.auditlog.selectionState.total = total;\n },\n setAuditLogState: (state, action: PayloadAction<Partial<AuditLogSelectionState>>) => {\n state.auditlog.selectionState = {\n ...state.auditlog.selectionState,\n ...action.payload\n };\n },\n receiveCurrentCard: (state, action: PayloadAction<Card>) => {\n state.card = action.payload;\n },\n receiveSetupIntent: (state, action: PayloadAction<string | null>) => {\n state.intentId = action.payload;\n },\n setOrganization: (state, action: PayloadAction<Partial<Organization>>) => {\n state.organization = { ...state.organization, ...action.payload };\n },\n setSubscription: (state, action) => {\n state.organization.subscription = { ...state.organization.subscription, ...action.payload };\n },\n setProducts: (state, action: PayloadAction<ProductConfig>) => {\n state.products = action.payload;\n },\n setBillingProfile: (state, action: PayloadAction<BillingProfile>) => {\n state.organization.billing_profile = action.payload;\n },\n setTenantListState: (state, action: PayloadAction<TenantList>) => {\n state.tenantList = action.payload;\n },\n receiveExternalDeviceIntegrations: (state, action: PayloadAction<Integration[]>) => {\n state.externalDeviceIntegrations = action.payload;\n },\n receiveSsoConfigs: (state, action: PayloadAction<SSOConfig[]>) => {\n state.ssoConfigs = action.payload;\n },\n receiveWebhookEvents: (state, action: PayloadAction<{ total: number; value: WebhookEvent[] }>) => {\n const { value, total } = action.payload;\n state.webhooks.events = value;\n state.webhooks.eventsTotal = total;\n }\n }\n});\n\nexport const actions = organizationSlice.actions;\nexport default organizationSlice.reducer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACcA,uBA6CO;;;AC9CP,4BAA0E;AAE1E,mBAA+B;AAExB,IAAM,aAAa;AAAA,EACxB,KAAK,EAAE,KAAK,OAAO,MAAM,sBAAAA,SAAa;AAAA,EACtC,KAAK,EAAE,KAAK,OAAO,MAA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,CAAC;AAAA,IACT,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AACF;","names":["BarChartIcon","PieChartIcon"]}
|
|
1
|
+
{"version":3,"file":"mocks.cjs","names":["PLANS","initialState","DEVICE_LIST_DEFAULTS"],"sources":["../../src/organizationSlice/mocks.ts"],"sourcesContent":["// Copyright 2025 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 { DEVICE_LIST_DEFAULTS, PLANS } from '../constants';\nimport { initialState } from './index';\n\nconst basicPlanId = PLANS.os.id;\nconst professionalPlanId = PLANS.professional.id;\nconst enterprisePlanId = PLANS.enterprise.id;\n\nexport const mockState = {\n ...initialState,\n card: {\n brand: 'testCorp',\n last4: '7890',\n expiration: { month: 1, year: 2024 }\n },\n auditlog: {\n events: [\n {\n actor: {\n id: 'string',\n type: 'user',\n email: 'string@example.com'\n },\n time: '2019-01-01T12:10:22.667Z',\n action: 'create',\n object: {\n id: 'string',\n type: 'user',\n user: {\n email: 'user@acme.com'\n }\n },\n change: 'change1'\n },\n {\n actor: {\n id: 'string',\n type: 'user',\n email: 'string',\n identity_data: 'string'\n },\n time: '2019-01-01T12:16:22.667Z',\n action: 'create',\n object: {\n id: 'string',\n type: 'deployment',\n deployment: {\n name: 'production',\n artifact_name: 'Application 0.0.1'\n }\n },\n change: 'change2'\n },\n {\n actor: {\n id: 'string',\n type: 'user',\n email: 'string@example.com'\n },\n time: '2019-01-01T12:10:22.669Z',\n action: 'open_terminal',\n meta: {\n session_id: ['abd313a8-ee88-48ab-9c99-fbcd80048e6e']\n },\n object: {\n id: 'a1',\n type: 'device'\n },\n change: 'change3'\n }\n ],\n selectionState: {\n ...DEVICE_LIST_DEFAULTS,\n detail: undefined,\n endDate: undefined,\n selectedIssue: undefined,\n startDate: undefined,\n type: undefined,\n user: undefined,\n isLoading: false,\n sort: {},\n total: 3\n }\n },\n products: {\n plans: {\n [basicPlanId]: {\n id: basicPlanId,\n name: 'Basic',\n tierLimitsConstrains: {\n standard: { min: 50, max: 1000, div: 50 },\n micro: { min: 50, max: 5000, div: 50 }\n },\n description:\n 'The core features of Mender. To continue using Enterprise Trial features—like Delta updates, scheduled deployments, phased rollouts, device filtering, dynamic groups, RBAC, audit logs, and more—please upgrade to a higher plan.'\n },\n [professionalPlanId]: {\n id: professionalPlanId,\n name: 'Professional',\n tierLimitsConstrains: {\n standard: { min: 250, max: 10000, div: 50 },\n micro: { min: 500, max: 100000, div: 50 }\n },\n description: 'Everything in Basic, plus enhanced update management and automation features.'\n },\n enterprise: { ...PLANS.enterprise }\n },\n tiers: [\n {\n id: 'micro',\n title: 'micro',\n stripeProductName: 'mender_micro',\n limitConstrains: {\n [basicPlanId]: { min: 50, max: 5000, div: 50 },\n [professionalPlanId]: { min: 500, max: 100000, div: 50 }\n },\n addonsByPlan: {\n [basicPlanId]: [],\n [professionalPlanId]: []\n },\n addons: {}\n },\n {\n id: 'standard',\n title: 'standard',\n stripeProductName: 'mender_standard',\n limitConstrains: {\n [basicPlanId]: { min: 50, max: 1000, div: 50 },\n [professionalPlanId]: { min: 250, max: 10000, div: 50 }\n },\n addons: {\n troubleshoot: [basicPlanId, professionalPlanId],\n configure: [basicPlanId, professionalPlanId],\n monitor: [professionalPlanId]\n },\n addonsByPlan: {\n [basicPlanId]: ['troubleshoot', 'configure'],\n [professionalPlanId]: ['troubleshoot', 'configure', 'monitor']\n }\n }\n ],\n addons: {\n configure: {\n id: 'configure',\n needs: ['hasDeviceConfig'],\n title: 'Configure',\n eligible: [basicPlanId, professionalPlanId, enterprisePlanId],\n description: 'Seamlessly configure applications and devices remotely – configure each device to its environment.'\n },\n monitor: {\n id: 'monitor',\n needs: ['hasMonitor'],\n title: 'Monitor',\n eligible: [professionalPlanId, enterprisePlanId],\n description: 'Detect and analyze health issues of devices, services and applications. Set up alerts so you can act quickly.'\n },\n troubleshoot: {\n id: 'troubleshoot',\n needs: ['hasDeviceConnect'],\n title: 'Troubleshoot',\n eligible: [basicPlanId, professionalPlanId, enterprisePlanId],\n description: 'Secure, remote access to your devices – quickly diagnose and fix issues in real time.'\n }\n }\n },\n intentId: 'testIntent',\n organization: {\n addons: [],\n id: '1',\n name: 'test',\n plan: 'os',\n trial: false\n }\n};\n"],"mappings":";;;;;;AAgBA,MAAM,cAAcA,2BAAAA,MAAM,GAAG;AAC7B,MAAM,qBAAqBA,2BAAAA,MAAM,aAAa;AAC9C,MAAM,mBAAmBA,2BAAAA,MAAM,WAAW;AAE1C,MAAa,YAAY;CACvB,GAAGC,gCAAAA;CACH,MAAM;EACJ,OAAO;EACP,OAAO;EACP,YAAY;GAAE,OAAO;GAAG,MAAM;GAAM;EACrC;CACD,UAAU;EACR,QAAQ;GACN;IACE,OAAO;KACL,IAAI;KACJ,MAAM;KACN,OAAO;KACR;IACD,MAAM;IACN,QAAQ;IACR,QAAQ;KACN,IAAI;KACJ,MAAM;KACN,MAAM,EACJ,OAAO,iBACR;KACF;IACD,QAAQ;IACT;GACD;IACE,OAAO;KACL,IAAI;KACJ,MAAM;KACN,OAAO;KACP,eAAe;KAChB;IACD,MAAM;IACN,QAAQ;IACR,QAAQ;KACN,IAAI;KACJ,MAAM;KACN,YAAY;MACV,MAAM;MACN,eAAe;MAChB;KACF;IACD,QAAQ;IACT;GACD;IACE,OAAO;KACL,IAAI;KACJ,MAAM;KACN,OAAO;KACR;IACD,MAAM;IACN,QAAQ;IACR,MAAM,EACJ,YAAY,CAAC,uCAAuC,EACrD;IACD,QAAQ;KACN,IAAI;KACJ,MAAM;KACP;IACD,QAAQ;IACT;GACF;EACD,gBAAgB;GACd,GAAGC,+BA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;EACD,QAAQ;GACN,WAAW;IACT,IAAI;IACJ,OAAO,CAAC,kBAAkB;IAC1B,OAAO;IACP,UAAU;KAAC;KAAa;KAAoB;KAAiB;IAC7D,aAAa;IACd;GACD,SAAS;IACP,IAAI;IACJ,OAAO,CAAC,aAAa;IACrB,OAAO;IACP,UAAU,CAAC,oBAAoB,iBAAiB;IAChD,aAAa;IACd;GACD,cAAc;IACZ,IAAI;IACJ,OAAO,CAAC,mBAAmB;IAC3B,OAAO;IACP,UAAU;KAAC;KAAa;KAAoB;KAAiB;IAC7D,aAAa;IACd;GACF;EACF;CACD,UAAU;CACV,cAAc;EACZ,QAAQ,EAAE;EACV,IAAI;EACJ,MAAM;EACN,MAAM;EACN,OAAO;EACR;CACF"}
|
|
@@ -1,226 +1,223 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import '@northern.tech/types/MenderTypes';
|
|
5
|
-
import '@northern.tech/utils/constants';
|
|
6
|
-
import './constants.cjs';
|
|
7
|
-
import '@mui/material/OverridableComponent';
|
|
8
|
-
import '@mui/material';
|
|
1
|
+
import { a as AvailablePlans } from "../constants-DPLHhjVN.cjs";
|
|
2
|
+
import { d as TenantList, f as Webhook, l as SSOConfig } from "../types-ClEfo0dK.cjs";
|
|
3
|
+
import * as _$_northern_tech_types_types_gen0 from "@northern.tech/types/types.gen";
|
|
9
4
|
|
|
5
|
+
//#region src/organizationSlice/mocks.d.ts
|
|
10
6
|
declare const basicPlanId: AvailablePlans;
|
|
11
7
|
declare const professionalPlanId: AvailablePlans;
|
|
12
8
|
declare const mockState: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
9
|
+
card: {
|
|
10
|
+
brand: string;
|
|
11
|
+
last4: string;
|
|
12
|
+
expiration: {
|
|
13
|
+
month: number;
|
|
14
|
+
year: number;
|
|
20
15
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
user?: undefined;
|
|
58
|
-
};
|
|
59
|
-
change: string;
|
|
60
|
-
meta?: undefined;
|
|
61
|
-
} | {
|
|
62
|
-
actor: {
|
|
63
|
-
id: string;
|
|
64
|
-
type: string;
|
|
65
|
-
email: string;
|
|
66
|
-
identity_data?: undefined;
|
|
67
|
-
};
|
|
68
|
-
time: string;
|
|
69
|
-
action: string;
|
|
70
|
-
meta: {
|
|
71
|
-
session_id: string[];
|
|
72
|
-
};
|
|
73
|
-
object: {
|
|
74
|
-
id: string;
|
|
75
|
-
type: string;
|
|
76
|
-
user?: undefined;
|
|
77
|
-
deployment?: undefined;
|
|
78
|
-
};
|
|
79
|
-
change: string;
|
|
80
|
-
})[];
|
|
81
|
-
selectionState: {
|
|
82
|
-
detail: undefined;
|
|
83
|
-
endDate: undefined;
|
|
84
|
-
selectedIssue: undefined;
|
|
85
|
-
startDate: undefined;
|
|
86
|
-
type: undefined;
|
|
87
|
-
user: undefined;
|
|
88
|
-
isLoading: boolean;
|
|
89
|
-
sort: {};
|
|
90
|
-
total: number;
|
|
91
|
-
page: number;
|
|
92
|
-
perPage: number;
|
|
16
|
+
};
|
|
17
|
+
auditlog: {
|
|
18
|
+
events: ({
|
|
19
|
+
actor: {
|
|
20
|
+
id: string;
|
|
21
|
+
type: string;
|
|
22
|
+
email: string;
|
|
23
|
+
identity_data?: undefined;
|
|
24
|
+
};
|
|
25
|
+
time: string;
|
|
26
|
+
action: string;
|
|
27
|
+
object: {
|
|
28
|
+
id: string;
|
|
29
|
+
type: string;
|
|
30
|
+
user: {
|
|
31
|
+
email: string;
|
|
32
|
+
};
|
|
33
|
+
deployment?: undefined;
|
|
34
|
+
};
|
|
35
|
+
change: string;
|
|
36
|
+
meta?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
actor: {
|
|
39
|
+
id: string;
|
|
40
|
+
type: string;
|
|
41
|
+
email: string;
|
|
42
|
+
identity_data: string;
|
|
43
|
+
};
|
|
44
|
+
time: string;
|
|
45
|
+
action: string;
|
|
46
|
+
object: {
|
|
47
|
+
id: string;
|
|
48
|
+
type: string;
|
|
49
|
+
deployment: {
|
|
50
|
+
name: string;
|
|
51
|
+
artifact_name: string;
|
|
93
52
|
};
|
|
53
|
+
user?: undefined;
|
|
54
|
+
};
|
|
55
|
+
change: string;
|
|
56
|
+
meta?: undefined;
|
|
57
|
+
} | {
|
|
58
|
+
actor: {
|
|
59
|
+
id: string;
|
|
60
|
+
type: string;
|
|
61
|
+
email: string;
|
|
62
|
+
identity_data?: undefined;
|
|
63
|
+
};
|
|
64
|
+
time: string;
|
|
65
|
+
action: string;
|
|
66
|
+
meta: {
|
|
67
|
+
session_id: string[];
|
|
68
|
+
};
|
|
69
|
+
object: {
|
|
70
|
+
id: string;
|
|
71
|
+
type: string;
|
|
72
|
+
user?: undefined;
|
|
73
|
+
deployment?: undefined;
|
|
74
|
+
};
|
|
75
|
+
change: string;
|
|
76
|
+
})[];
|
|
77
|
+
selectionState: {
|
|
78
|
+
detail: undefined;
|
|
79
|
+
endDate: undefined;
|
|
80
|
+
selectedIssue: undefined;
|
|
81
|
+
startDate: undefined;
|
|
82
|
+
type: undefined;
|
|
83
|
+
user: undefined;
|
|
84
|
+
isLoading: boolean;
|
|
85
|
+
sort: {};
|
|
86
|
+
total: number;
|
|
87
|
+
page: number;
|
|
88
|
+
perPage: number;
|
|
94
89
|
};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
description: string;
|
|
113
|
-
};
|
|
114
|
-
[professionalPlanId]: {
|
|
115
|
-
id: AvailablePlans;
|
|
116
|
-
name: string;
|
|
117
|
-
tierLimitsConstrains: {
|
|
118
|
-
standard: {
|
|
119
|
-
min: number;
|
|
120
|
-
max: number;
|
|
121
|
-
div: number;
|
|
122
|
-
};
|
|
123
|
-
micro: {
|
|
124
|
-
min: number;
|
|
125
|
-
max: number;
|
|
126
|
-
div: number;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
description: string;
|
|
130
|
-
};
|
|
131
|
-
enterprise: {
|
|
132
|
-
description: string;
|
|
133
|
-
id: AvailablePlans;
|
|
134
|
-
name: string;
|
|
135
|
-
};
|
|
90
|
+
};
|
|
91
|
+
products: {
|
|
92
|
+
plans: {
|
|
93
|
+
[basicPlanId]: {
|
|
94
|
+
id: AvailablePlans;
|
|
95
|
+
name: string;
|
|
96
|
+
tierLimitsConstrains: {
|
|
97
|
+
standard: {
|
|
98
|
+
min: number;
|
|
99
|
+
max: number;
|
|
100
|
+
div: number;
|
|
101
|
+
};
|
|
102
|
+
micro: {
|
|
103
|
+
min: number;
|
|
104
|
+
max: number;
|
|
105
|
+
div: number;
|
|
106
|
+
};
|
|
136
107
|
};
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
addonsByPlan: {
|
|
154
|
-
[basicPlanId]: never[];
|
|
155
|
-
[professionalPlanId]: never[];
|
|
156
|
-
};
|
|
157
|
-
addons: {
|
|
158
|
-
troubleshoot?: undefined;
|
|
159
|
-
configure?: undefined;
|
|
160
|
-
monitor?: undefined;
|
|
161
|
-
};
|
|
162
|
-
} | {
|
|
163
|
-
id: string;
|
|
164
|
-
title: string;
|
|
165
|
-
stripeProductName: string;
|
|
166
|
-
limitConstrains: {
|
|
167
|
-
[basicPlanId]: {
|
|
168
|
-
min: number;
|
|
169
|
-
max: number;
|
|
170
|
-
div: number;
|
|
171
|
-
};
|
|
172
|
-
[professionalPlanId]: {
|
|
173
|
-
min: number;
|
|
174
|
-
max: number;
|
|
175
|
-
div: number;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
addons: {
|
|
179
|
-
troubleshoot: AvailablePlans[];
|
|
180
|
-
configure: AvailablePlans[];
|
|
181
|
-
monitor: AvailablePlans[];
|
|
182
|
-
};
|
|
183
|
-
addonsByPlan: {
|
|
184
|
-
[basicPlanId]: string[];
|
|
185
|
-
[professionalPlanId]: string[];
|
|
186
|
-
};
|
|
187
|
-
})[];
|
|
188
|
-
addons: {
|
|
189
|
-
configure: {
|
|
190
|
-
id: string;
|
|
191
|
-
needs: string[];
|
|
192
|
-
title: string;
|
|
193
|
-
eligible: AvailablePlans[];
|
|
194
|
-
description: string;
|
|
195
|
-
};
|
|
196
|
-
monitor: {
|
|
197
|
-
id: string;
|
|
198
|
-
needs: string[];
|
|
199
|
-
title: string;
|
|
200
|
-
eligible: AvailablePlans[];
|
|
201
|
-
description: string;
|
|
202
|
-
};
|
|
203
|
-
troubleshoot: {
|
|
204
|
-
id: string;
|
|
205
|
-
needs: string[];
|
|
206
|
-
title: string;
|
|
207
|
-
eligible: AvailablePlans[];
|
|
208
|
-
description: string;
|
|
209
|
-
};
|
|
108
|
+
description: string;
|
|
109
|
+
};
|
|
110
|
+
[professionalPlanId]: {
|
|
111
|
+
id: AvailablePlans;
|
|
112
|
+
name: string;
|
|
113
|
+
tierLimitsConstrains: {
|
|
114
|
+
standard: {
|
|
115
|
+
min: number;
|
|
116
|
+
max: number;
|
|
117
|
+
div: number;
|
|
118
|
+
};
|
|
119
|
+
micro: {
|
|
120
|
+
min: number;
|
|
121
|
+
max: number;
|
|
122
|
+
div: number;
|
|
123
|
+
};
|
|
210
124
|
};
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
127
|
+
enterprise: {
|
|
128
|
+
description: string;
|
|
129
|
+
id: AvailablePlans;
|
|
130
|
+
name: string;
|
|
131
|
+
};
|
|
211
132
|
};
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
133
|
+
tiers: ({
|
|
134
|
+
id: string;
|
|
135
|
+
title: string;
|
|
136
|
+
stripeProductName: string;
|
|
137
|
+
limitConstrains: {
|
|
138
|
+
[basicPlanId]: {
|
|
139
|
+
min: number;
|
|
140
|
+
max: number;
|
|
141
|
+
div: number;
|
|
142
|
+
};
|
|
143
|
+
[professionalPlanId]: {
|
|
144
|
+
min: number;
|
|
145
|
+
max: number;
|
|
146
|
+
div: number;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
addonsByPlan: {
|
|
150
|
+
[basicPlanId]: never[];
|
|
151
|
+
[professionalPlanId]: never[];
|
|
152
|
+
};
|
|
153
|
+
addons: {
|
|
154
|
+
troubleshoot?: undefined;
|
|
155
|
+
configure?: undefined;
|
|
156
|
+
monitor?: undefined;
|
|
157
|
+
};
|
|
158
|
+
} | {
|
|
159
|
+
id: string;
|
|
160
|
+
title: string;
|
|
161
|
+
stripeProductName: string;
|
|
162
|
+
limitConstrains: {
|
|
163
|
+
[basicPlanId]: {
|
|
164
|
+
min: number;
|
|
165
|
+
max: number;
|
|
166
|
+
div: number;
|
|
167
|
+
};
|
|
168
|
+
[professionalPlanId]: {
|
|
169
|
+
min: number;
|
|
170
|
+
max: number;
|
|
171
|
+
div: number;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
addons: {
|
|
175
|
+
troubleshoot: AvailablePlans[];
|
|
176
|
+
configure: AvailablePlans[];
|
|
177
|
+
monitor: AvailablePlans[];
|
|
178
|
+
};
|
|
179
|
+
addonsByPlan: {
|
|
180
|
+
[basicPlanId]: string[];
|
|
181
|
+
[professionalPlanId]: string[];
|
|
182
|
+
};
|
|
183
|
+
})[];
|
|
184
|
+
addons: {
|
|
185
|
+
configure: {
|
|
215
186
|
id: string;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
187
|
+
needs: string[];
|
|
188
|
+
title: string;
|
|
189
|
+
eligible: AvailablePlans[];
|
|
190
|
+
description: string;
|
|
191
|
+
};
|
|
192
|
+
monitor: {
|
|
193
|
+
id: string;
|
|
194
|
+
needs: string[];
|
|
195
|
+
title: string;
|
|
196
|
+
eligible: AvailablePlans[];
|
|
197
|
+
description: string;
|
|
198
|
+
};
|
|
199
|
+
troubleshoot: {
|
|
200
|
+
id: string;
|
|
201
|
+
needs: string[];
|
|
202
|
+
title: string;
|
|
203
|
+
eligible: AvailablePlans[];
|
|
204
|
+
description: string;
|
|
205
|
+
};
|
|
219
206
|
};
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
207
|
+
};
|
|
208
|
+
intentId: string;
|
|
209
|
+
organization: {
|
|
210
|
+
addons: never[];
|
|
211
|
+
id: string;
|
|
212
|
+
name: string;
|
|
213
|
+
plan: string;
|
|
214
|
+
trial: boolean;
|
|
215
|
+
};
|
|
216
|
+
externalDeviceIntegrations: _$_northern_tech_types_types_gen0.Integration[];
|
|
217
|
+
ssoConfigs: SSOConfig[];
|
|
218
|
+
tenantList: TenantList;
|
|
219
|
+
webhooks: Webhook;
|
|
224
220
|
};
|
|
225
|
-
|
|
221
|
+
//#endregion
|
|
226
222
|
export { mockState };
|
|
223
|
+
//# sourceMappingURL=mocks.d.cts.map
|