@centreon/ui-context 26.12.2 → 26.12.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui-context",
3
- "version": "26.12.2",
3
+ "version": "26.12.3",
4
4
  "description": "Centreon UI shared context",
5
5
  "main": "src/index.ts",
6
6
  "keywords": [],
package/src/index.ts CHANGED
@@ -10,6 +10,7 @@ export {
10
10
  federatedModulesAtom,
11
11
  federatedWidgetsAtom
12
12
  } from './federatedModulesAndWidgetsAtoms';
13
+ export { intervalLengthAtom } from './intervalLengthAtom';
13
14
  export { isAdditiveInheritanceEnabledAtom } from './isAdditiveInheritanceEnabledAtom';
14
15
  export { isOnPublicPageAtom } from './isOnPublicPageAtom';
15
16
  export { isResourceStatusFullSearchEnabledAtom } from './isResourceStatusFullSearchEnabledAtom';
@@ -0,0 +1,5 @@
1
+ import { atom } from 'jotai';
2
+
3
+ // Seconds in one unit of the engine's check and notification intervals,
4
+ // which are stored as multiples of it. 60 is the engine's own default.
5
+ export const intervalLengthAtom = atom(60);
package/src/types.ts CHANGED
@@ -147,6 +147,7 @@ export interface UserPermissions {
147
147
  configuration_host_group_write: boolean;
148
148
  configuration_host_write: boolean;
149
149
  configuration_host_template_write: boolean;
150
+ configuration_service_write: boolean;
150
151
  see_check_commands: boolean;
151
152
  manage_check_commands: boolean;
152
153
  see_notification_commands: boolean;