@twin.org/core 0.0.3-next.33 → 0.0.3-next.34

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.
@@ -1 +1 @@
1
- {"version":3,"file":"IHealth.js","sourceRoot":"","sources":["../../../src/models/IHealth.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HealthStatus } from \"./healthStatus.js\";\n\n/**\n * Provides health information for a component.\n */\nexport interface IHealth {\n\t/**\n\t * The name of the component.\n\t */\n\tname: string;\n\n\t/**\n\t * The description of the component as an i18n key.\n\t */\n\tdescription?: string;\n\n\t/**\n\t * Whether this entry is a child of another entry, the parent entry will report the overall status of the component.\n\t */\n\tisChild?: boolean;\n\n\t/**\n\t * The overall status of the component, the entries can also report their own health.\n\t */\n\tstatus: HealthStatus;\n\n\t/**\n\t * The details for the status if there are further details to provide as an i18n key.\n\t */\n\tdetails?: string;\n\n\t/**\n\t * Properties to substitute in the i18n key for the details.\n\t */\n\tproperties?: { [id: string]: unknown };\n}\n"]}
1
+ {"version":3,"file":"IHealth.js","sourceRoot":"","sources":["../../../src/models/IHealth.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HealthStatus } from \"./healthStatus.js\";\n\n/**\n * Provides health information for a component.\n */\nexport interface IHealth {\n\t/**\n\t * The name of the component.\n\t */\n\tname: string;\n\n\t/**\n\t * The description of the component as an i18n key.\n\t */\n\tdescription?: string;\n\n\t/**\n\t * The overall status of the component, the entries can also report their own health.\n\t */\n\tstatus: HealthStatus;\n\n\t/**\n\t * The details for the status if there are further details to provide as an i18n key.\n\t */\n\tdetails?: string;\n\n\t/**\n\t * Properties to substitute in the i18n key for the details.\n\t */\n\tproperties?: { [id: string]: unknown };\n\n\t/**\n\t * The grouped child components, if any.\n\t */\n\tgrouped?: IHealth[];\n}\n"]}
@@ -11,10 +11,6 @@ export interface IHealth {
11
11
  * The description of the component as an i18n key.
12
12
  */
13
13
  description?: string;
14
- /**
15
- * Whether this entry is a child of another entry, the parent entry will report the overall status of the component.
16
- */
17
- isChild?: boolean;
18
14
  /**
19
15
  * The overall status of the component, the entries can also report their own health.
20
16
  */
@@ -29,4 +25,8 @@ export interface IHealth {
29
25
  properties?: {
30
26
  [id: string]: unknown;
31
27
  };
28
+ /**
29
+ * The grouped child components, if any.
30
+ */
31
+ grouped?: IHealth[];
32
32
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.34](https://github.com/twinfoundation/twin-framework/compare/core-v0.0.3-next.33...core-v0.0.3-next.34) (2026-05-06)
4
+
5
+
6
+ ### Features
7
+
8
+ * health status grouping ([5007c29](https://github.com/twinfoundation/twin-framework/commit/5007c29fe4123fe56f754450b993dbe5dc32a057))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/nameof bumped from 0.0.3-next.33 to 0.0.3-next.34
16
+ * devDependencies
17
+ * @twin.org/nameof-transformer bumped from 0.0.3-next.33 to 0.0.3-next.34
18
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.3-next.33 to 0.0.3-next.34
19
+
3
20
  ## [0.0.3-next.33](https://github.com/twinfoundation/twin-framework/compare/core-v0.0.3-next.32...core-v0.0.3-next.33) (2026-05-05)
4
21
 
5
22
 
@@ -20,14 +20,6 @@ The description of the component as an i18n key.
20
20
 
21
21
  ***
22
22
 
23
- ### isChild? {#ischild}
24
-
25
- > `optional` **isChild?**: `boolean`
26
-
27
- Whether this entry is a child of another entry, the parent entry will report the overall status of the component.
28
-
29
- ***
30
-
31
23
  ### status {#status}
32
24
 
33
25
  > **status**: [`HealthStatus`](../type-aliases/HealthStatus.md)
@@ -53,3 +45,11 @@ Properties to substitute in the i18n key for the details.
53
45
  #### Index Signature
54
46
 
55
47
  \[`id`: `string`\]: `unknown`
48
+
49
+ ***
50
+
51
+ ### grouped? {#grouped}
52
+
53
+ > `optional` **grouped?**: `IHealth`[]
54
+
55
+ The grouped child components, if any.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/core",
3
- "version": "0.0.3-next.33",
3
+ "version": "0.0.3-next.34",
4
4
  "description": "Helper methods/classes for data type checking/validation/guarding/error handling",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,7 +14,7 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/nameof": "0.0.3-next.33",
17
+ "@twin.org/nameof": "0.0.3-next.34",
18
18
  "intl-messageformat": "11.2.0",
19
19
  "rfc6902": "5.2.0"
20
20
  },