@twin.org/telemetry-service 0.0.1-next.9 → 0.0.1

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/docs/changelog.md CHANGED
@@ -1,5 +1,75 @@
1
1
  # @twin.org/telemetry-service - Changelog
2
2
 
3
- ## v0.0.1-next.9
3
+ ## 0.0.1 (2025-07-04)
4
+
5
+
6
+ ### Features
7
+
8
+ * release to production ([df2151d](https://github.com/twinfoundation/telemetry/commit/df2151d24844fd2c3e6092ce3a6f888ac16219a0))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/telemetry-models bumped from ^0.0.0 to ^0.0.1
16
+
17
+ ## [0.0.1-next.18](https://github.com/twinfoundation/telemetry/compare/telemetry-service-v0.0.1-next.17...telemetry-service-v0.0.1-next.18) (2025-06-20)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * query params force coercion ([ec7999e](https://github.com/twinfoundation/telemetry/commit/ec7999eadb66c65585efa19f3ce4cabb50eed761))
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * The following workspace dependencies were updated
28
+ * dependencies
29
+ * @twin.org/telemetry-models bumped from 0.0.1-next.17 to 0.0.1-next.18
30
+
31
+ ## [0.0.1-next.17](https://github.com/twinfoundation/telemetry/compare/telemetry-service-v0.0.1-next.16...telemetry-service-v0.0.1-next.17) (2025-06-12)
32
+
33
+
34
+ ### Features
35
+
36
+ * update dependencies ([0e55c48](https://github.com/twinfoundation/telemetry/commit/0e55c48de4139c6fe66b823101ca17973e60847c))
37
+
38
+
39
+ ### Dependencies
40
+
41
+ * The following workspace dependencies were updated
42
+ * dependencies
43
+ * @twin.org/telemetry-models bumped from 0.0.1-next.16 to 0.0.1-next.17
44
+
45
+ ## [0.0.1-next.16](https://github.com/twinfoundation/telemetry/compare/telemetry-service-v0.0.1-next.15...telemetry-service-v0.0.1-next.16) (2025-04-17)
46
+
47
+
48
+ ### Features
49
+
50
+ * use shared store mechanism ([#7](https://github.com/twinfoundation/telemetry/issues/7)) ([806fe2c](https://github.com/twinfoundation/telemetry/commit/806fe2c2b7653d6b949c27ebf57bd13c3e040242))
51
+
52
+
53
+ ### Dependencies
54
+
55
+ * The following workspace dependencies were updated
56
+ * dependencies
57
+ * @twin.org/telemetry-models bumped from 0.0.1-next.15 to 0.0.1-next.16
58
+
59
+ ## [0.0.1-next.15](https://github.com/twinfoundation/telemetry/compare/telemetry-service-v0.0.1-next.14...telemetry-service-v0.0.1-next.15) (2025-03-28)
60
+
61
+
62
+ ### Bug Fixes
63
+
64
+ * Update metric endpoint paths by removing trailing slashes and query type as string ([#3](https://github.com/twinfoundation/telemetry/issues/3)) ([b386ca5](https://github.com/twinfoundation/telemetry/commit/b386ca55404aa933ad8917f82a7f0e588593fcc8))
65
+
66
+
67
+ ### Dependencies
68
+
69
+ * The following workspace dependencies were updated
70
+ * dependencies
71
+ * @twin.org/telemetry-models bumped from 0.0.1-next.14 to 0.0.1-next.15
72
+
73
+ ## v0.0.1-next.14
4
74
 
5
75
  - Initial Release
@@ -157,7 +157,10 @@
157
157
  "in": "query",
158
158
  "required": false,
159
159
  "schema": {
160
- "type": "number"
160
+ "type": [
161
+ "number",
162
+ "string"
163
+ ]
161
164
  }
162
165
  }
163
166
  ],
@@ -707,7 +710,10 @@
707
710
  "in": "query",
708
711
  "required": false,
709
712
  "schema": {
710
- "type": "number"
713
+ "type": [
714
+ "number",
715
+ "string"
716
+ ]
711
717
  }
712
718
  },
713
719
  {
@@ -716,7 +722,10 @@
716
722
  "in": "query",
717
723
  "required": false,
718
724
  "schema": {
719
- "type": "number"
725
+ "type": [
726
+ "number",
727
+ "string"
728
+ ]
720
729
  }
721
730
  },
722
731
  {
@@ -734,7 +743,10 @@
734
743
  "in": "query",
735
744
  "required": false,
736
745
  "schema": {
737
- "type": "number"
746
+ "type": [
747
+ "number",
748
+ "string"
749
+ ]
738
750
  }
739
751
  }
740
752
  ],
@@ -950,10 +962,12 @@
950
962
  "properties": {
951
963
  "entities": {
952
964
  "type": "array",
953
- "items": {
954
- "$ref": "#/components/schemas/TelemetryMetric"
955
- },
956
- "description": "The metrics."
965
+ "description": "The metrics.",
966
+ "prefixItems": [
967
+ {
968
+ "$ref": "#/components/schemas/TelemetryMetric"
969
+ }
970
+ ]
957
971
  },
958
972
  "cursor": {
959
973
  "type": "string",
@@ -1056,10 +1070,12 @@
1056
1070
  },
1057
1071
  "entities": {
1058
1072
  "type": "array",
1059
- "items": {
1060
- "$ref": "#/components/schemas/TelemetryMetricValue"
1061
- },
1062
- "description": "The metric values."
1073
+ "description": "The metric values.",
1074
+ "prefixItems": [
1075
+ {
1076
+ "$ref": "#/components/schemas/TelemetryMetricValue"
1077
+ }
1078
+ ]
1063
1079
  },
1064
1080
  "cursor": {
1065
1081
  "type": "string",
@@ -8,9 +8,9 @@ Service for performing telemetry operations to a connector.
8
8
 
9
9
  ## Constructors
10
10
 
11
- ### new TelemetryService()
11
+ ### Constructor
12
12
 
13
- > **new TelemetryService**(`options`?): [`TelemetryService`](TelemetryService.md)
13
+ > **new TelemetryService**(`options?`): `TelemetryService`
14
14
 
15
15
  Create a new instance of TelemetryService.
16
16
 
@@ -24,7 +24,7 @@ The options for the connector.
24
24
 
25
25
  #### Returns
26
26
 
27
- [`TelemetryService`](TelemetryService.md)
27
+ `TelemetryService`
28
28
 
29
29
  ## Properties
30
30
 
@@ -128,7 +128,7 @@ Nothing.
128
128
 
129
129
  ### addMetricValue()
130
130
 
131
- > **addMetricValue**(`id`, `value`, `customData`?): `Promise`\<`string`\>
131
+ > **addMetricValue**(`id`, `value`, `customData?`): `Promise`\<`string`\>
132
132
 
133
133
  Add a metric value.
134
134
 
@@ -190,7 +190,7 @@ Nothing.
190
190
 
191
191
  ### query()
192
192
 
193
- > **query**(`type`?, `cursor`?, `pageSize`?): `Promise`\<\{ `entities`: `ITelemetryMetric`[]; `cursor`: `string`; \}\>
193
+ > **query**(`type?`, `cursor?`, `pageSize?`): `Promise`\<\{ `entities`: `ITelemetryMetric`[]; `cursor?`: `string`; \}\>
194
194
 
195
195
  Query the metrics.
196
196
 
@@ -216,7 +216,7 @@ The maximum number of entities in a page.
216
216
 
217
217
  #### Returns
218
218
 
219
- `Promise`\<\{ `entities`: `ITelemetryMetric`[]; `cursor`: `string`; \}\>
219
+ `Promise`\<\{ `entities`: `ITelemetryMetric`[]; `cursor?`: `string`; \}\>
220
220
 
221
221
  All the entities for the storage matching the conditions,
222
222
  and a cursor which can be used to request more entities.
@@ -233,7 +233,7 @@ NotImplementedError if the implementation does not support retrieval.
233
233
 
234
234
  ### queryValues()
235
235
 
236
- > **queryValues**(`id`, `timeStart`?, `timeEnd`?, `cursor`?, `pageSize`?): `Promise`\<\{ `metric`: `ITelemetryMetric`; `entities`: `ITelemetryMetricValue`[]; `cursor`: `string`; \}\>
236
+ > **queryValues**(`id`, `timeStart?`, `timeEnd?`, `cursor?`, `pageSize?`): `Promise`\<\{ `metric`: `ITelemetryMetric`; `entities`: `ITelemetryMetricValue`[]; `cursor?`: `string`; \}\>
237
237
 
238
238
  Query the metric values.
239
239
 
@@ -271,7 +271,7 @@ The maximum number of entities in a page.
271
271
 
272
272
  #### Returns
273
273
 
274
- `Promise`\<\{ `metric`: `ITelemetryMetric`; `entities`: `ITelemetryMetricValue`[]; `cursor`: `string`; \}\>
274
+ `Promise`\<\{ `metric`: `ITelemetryMetric`; `entities`: `ITelemetryMetricValue`[]; `cursor?`: `string`; \}\>
275
275
 
276
276
  All the entities for the storage matching the conditions,
277
277
  and a cursor which can be used to request more entities.
@@ -1,6 +1,6 @@
1
1
  # Function: generateRestRoutesTelemetry()
2
2
 
3
- > **generateRestRoutesTelemetry**(`baseRouteName`, `componentName`): `IRestRoute`[]
3
+ > **generateRestRoutesTelemetry**(`baseRouteName`, `componentName`): `IRestRoute`\<`any`, `any`\>[]
4
4
 
5
5
  The REST routes for telemetry.
6
6
 
@@ -20,6 +20,6 @@ The name of the component to use in the routes stored in the ComponentFactory.
20
20
 
21
21
  ## Returns
22
22
 
23
- `IRestRoute`[]
23
+ `IRestRoute`\<`any`, `any`\>[]
24
24
 
25
25
  The generated routes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/telemetry-service",
3
- "version": "0.0.1-next.9",
3
+ "version": "0.0.1",
4
4
  "description": "Telemetry contract implementation and REST endpoint definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,12 +14,12 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/api-models": "next",
18
- "@twin.org/core": "next",
19
- "@twin.org/entity": "next",
20
- "@twin.org/nameof": "next",
21
- "@twin.org/telemetry-models": "0.0.1-next.9",
22
- "@twin.org/web": "next"
17
+ "@twin.org/api-models": "^0.0.1",
18
+ "@twin.org/core": "^0.0.1",
19
+ "@twin.org/entity": "^0.0.1",
20
+ "@twin.org/nameof": "^0.0.1",
21
+ "@twin.org/telemetry-models": "^0.0.1",
22
+ "@twin.org/web": "^0.0.1"
23
23
  },
24
24
  "main": "./dist/cjs/index.cjs",
25
25
  "module": "./dist/esm/index.mjs",