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

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 * 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"]}
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 source of the health information.\n\t */\n\tsource: 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 message for the status if there are further details to provide as an i18n key.\n\t */\n\tmessage?: string;\n\n\t/**\n\t * Data to substitute in the i18n key for the message.\n\t */\n\tdata?: { [id: string]: unknown };\n\n\t/**\n\t * The grouped child components, if any.\n\t */\n\tgrouped?: IHealth[];\n}\n"]}
@@ -4,9 +4,9 @@ import type { HealthStatus } from "./healthStatus.js";
4
4
  */
5
5
  export interface IHealth {
6
6
  /**
7
- * The name of the component.
7
+ * The source of the health information.
8
8
  */
9
- name: string;
9
+ source: string;
10
10
  /**
11
11
  * The description of the component as an i18n key.
12
12
  */
@@ -16,13 +16,13 @@ export interface IHealth {
16
16
  */
17
17
  status: HealthStatus;
18
18
  /**
19
- * The details for the status if there are further details to provide as an i18n key.
19
+ * The message for the status if there are further details to provide as an i18n key.
20
20
  */
21
- details?: string;
21
+ message?: string;
22
22
  /**
23
- * Properties to substitute in the i18n key for the details.
23
+ * Data to substitute in the i18n key for the message.
24
24
  */
25
- properties?: {
25
+ data?: {
26
26
  [id: string]: unknown;
27
27
  };
28
28
  /**
package/docs/changelog.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.35](https://github.com/twinfoundation/twin-framework/compare/core-v0.0.3-next.34...core-v0.0.3-next.35) (2026-05-06)
4
+
5
+
6
+ ### Features
7
+
8
+ * add support for health i18n validation ([7a286dd](https://github.com/twinfoundation/twin-framework/commit/7a286ddb0c1bfa498bf3a77126cd589042bad6de))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/nameof bumped from 0.0.3-next.34 to 0.0.3-next.35
16
+ * devDependencies
17
+ * @twin.org/nameof-transformer bumped from 0.0.3-next.34 to 0.0.3-next.35
18
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.3-next.34 to 0.0.3-next.35
19
+
3
20
  ## [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
21
 
5
22
 
@@ -4,11 +4,11 @@ Provides health information for a component.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### name {#name}
7
+ ### source {#source}
8
8
 
9
- > **name**: `string`
9
+ > **source**: `string`
10
10
 
11
- The name of the component.
11
+ The source of the health information.
12
12
 
13
13
  ***
14
14
 
@@ -28,19 +28,19 @@ The overall status of the component, the entries can also report their own healt
28
28
 
29
29
  ***
30
30
 
31
- ### details? {#details}
31
+ ### message? {#message}
32
32
 
33
- > `optional` **details?**: `string`
33
+ > `optional` **message?**: `string`
34
34
 
35
- The details for the status if there are further details to provide as an i18n key.
35
+ The message for the status if there are further details to provide as an i18n key.
36
36
 
37
37
  ***
38
38
 
39
- ### properties? {#properties}
39
+ ### data? {#data}
40
40
 
41
- > `optional` **properties?**: `object`
41
+ > `optional` **data?**: `object`
42
42
 
43
- Properties to substitute in the i18n key for the details.
43
+ Data to substitute in the i18n key for the message.
44
44
 
45
45
  #### Index Signature
46
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/core",
3
- "version": "0.0.3-next.34",
3
+ "version": "0.0.3-next.35",
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.34",
17
+ "@twin.org/nameof": "0.0.3-next.35",
18
18
  "intl-messageformat": "11.2.0",
19
19
  "rfc6902": "5.2.0"
20
20
  },