@twin.org/logging-rest-client 0.0.1-next.9 → 0.0.2-next.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.
@@ -46,7 +46,6 @@ class LoggingClient extends apiCore.BaseRestClient {
46
46
  * @param pageSize The maximum number of entities in a page.
47
47
  * @returns All the entities for the storage matching the conditions,
48
48
  * and a cursor which can be used to request more entities.
49
- * @throws NotImplementedError if the implementation does not support retrieval.
50
49
  */
51
50
  async query(level, source, timeStart, timeEnd, cursor, pageSize) {
52
51
  const response = await this.fetch("/", "GET", {
@@ -44,7 +44,6 @@ class LoggingClient extends BaseRestClient {
44
44
  * @param pageSize The maximum number of entities in a page.
45
45
  * @returns All the entities for the storage matching the conditions,
46
46
  * and a cursor which can be used to request more entities.
47
- * @throws NotImplementedError if the implementation does not support retrieval.
48
47
  */
49
48
  async query(level, source, timeStart, timeEnd, cursor, pageSize) {
50
49
  const response = await this.fetch("/", "GET", {
@@ -30,7 +30,6 @@ export declare class LoggingClient extends BaseRestClient implements ILoggingCom
30
30
  * @param pageSize The maximum number of entities in a page.
31
31
  * @returns All the entities for the storage matching the conditions,
32
32
  * and a cursor which can be used to request more entities.
33
- * @throws NotImplementedError if the implementation does not support retrieval.
34
33
  */
35
34
  query(level?: LogLevel, source?: string, timeStart?: number, timeEnd?: number, cursor?: string, pageSize?: number): Promise<{
36
35
  /**
package/docs/changelog.md CHANGED
@@ -1,5 +1,91 @@
1
1
  # @twin.org/logging-rest-client - Changelog
2
2
 
3
- ## v0.0.1-next.9
3
+ ## [0.0.2-next.1](https://github.com/twinfoundation/logging/compare/logging-rest-client-v0.0.2-next.0...logging-rest-client-v0.0.2-next.1) (2025-08-19)
4
+
5
+
6
+ ### Features
7
+
8
+ * update dependencies ([976fc06](https://github.com/twinfoundation/logging/commit/976fc06976c4899769486b7cb2e827c407d7fc89))
9
+ * update framework core ([aac823c](https://github.com/twinfoundation/logging/commit/aac823c2ead88843618b8a82b308d5a793411764))
10
+ * use shared store mechanism ([#20](https://github.com/twinfoundation/logging/issues/20)) ([bbacd31](https://github.com/twinfoundation/logging/commit/bbacd31af991d82d84294ad432a40830692880ca))
11
+
12
+
13
+ ### Dependencies
14
+
15
+ * The following workspace dependencies were updated
16
+ * dependencies
17
+ * @twin.org/logging-models bumped from 0.0.2-next.0 to 0.0.2-next.1
18
+
19
+ ## 0.0.1 (2025-07-03)
20
+
21
+
22
+ ### Features
23
+
24
+ * release to production ([3458161](https://github.com/twinfoundation/logging/commit/3458161b4bb530f86e4d1fe06123d885cdcb114d))
25
+
26
+
27
+ ### Dependencies
28
+
29
+ * The following workspace dependencies were updated
30
+ * dependencies
31
+ * @twin.org/logging-models bumped from ^0.0.0 to ^0.0.1
32
+
33
+ ## [0.0.1-next.16](https://github.com/twinfoundation/logging/compare/logging-rest-client-v0.0.1-next.15...logging-rest-client-v0.0.1-next.16) (2025-06-20)
34
+
35
+
36
+ ### Miscellaneous Chores
37
+
38
+ * **logging-rest-client:** Synchronize repo versions
39
+
40
+
41
+ ### Dependencies
42
+
43
+ * The following workspace dependencies were updated
44
+ * dependencies
45
+ * @twin.org/logging-models bumped from 0.0.1-next.15 to 0.0.1-next.16
46
+
47
+ ## [0.0.1-next.15](https://github.com/twinfoundation/logging/compare/logging-rest-client-v0.0.1-next.14...logging-rest-client-v0.0.1-next.15) (2025-06-12)
48
+
49
+
50
+ ### Features
51
+
52
+ * update dependencies ([976fc06](https://github.com/twinfoundation/logging/commit/976fc06976c4899769486b7cb2e827c407d7fc89))
53
+
54
+
55
+ ### Dependencies
56
+
57
+ * The following workspace dependencies were updated
58
+ * dependencies
59
+ * @twin.org/logging-models bumped from 0.0.1-next.14 to 0.0.1-next.15
60
+
61
+ ## [0.0.1-next.14](https://github.com/twinfoundation/logging/compare/logging-rest-client-v0.0.1-next.13...logging-rest-client-v0.0.1-next.14) (2025-04-17)
62
+
63
+
64
+ ### Features
65
+
66
+ * use shared store mechanism ([#20](https://github.com/twinfoundation/logging/issues/20)) ([bbacd31](https://github.com/twinfoundation/logging/commit/bbacd31af991d82d84294ad432a40830692880ca))
67
+
68
+
69
+ ### Dependencies
70
+
71
+ * The following workspace dependencies were updated
72
+ * dependencies
73
+ * @twin.org/logging-models bumped from 0.0.1-next.13 to 0.0.1-next.14
74
+
75
+ ## [0.0.1-next.13](https://github.com/twinfoundation/logging/compare/logging-rest-client-v0.0.1-next.12...logging-rest-client-v0.0.1-next.13) (2025-03-28)
76
+
77
+
78
+ ### Miscellaneous Chores
79
+
80
+ * **logging-rest-client:** Synchronize repo versions
81
+
82
+
83
+ ### Dependencies
84
+
85
+ * The following workspace dependencies were updated
86
+ * dependencies
87
+ * @twin.org/logging-models bumped from 0.0.1-next.12 to 0.0.1-next.13
88
+
89
+ ## v0.0.1-next.12
4
90
 
5
91
  - Initial Release
@@ -12,9 +12,9 @@ Client for performing logging through to REST endpoints.
12
12
 
13
13
  ## Constructors
14
14
 
15
- ### new LoggingClient()
15
+ ### Constructor
16
16
 
17
- > **new LoggingClient**(`config`): [`LoggingClient`](LoggingClient.md)
17
+ > **new LoggingClient**(`config`): `LoggingClient`
18
18
 
19
19
  Create a new instance of LoggingClient.
20
20
 
@@ -28,7 +28,7 @@ The configuration for the client.
28
28
 
29
29
  #### Returns
30
30
 
31
- [`LoggingClient`](LoggingClient.md)
31
+ `LoggingClient`
32
32
 
33
33
  #### Overrides
34
34
 
@@ -76,7 +76,7 @@ Nothing.
76
76
 
77
77
  ### query()
78
78
 
79
- > **query**(`level`?, `source`?, `timeStart`?, `timeEnd`?, `cursor`?, `pageSize`?): `Promise`\<\{ `entities`: `ILogEntry`[]; `cursor`: `string`; \}\>
79
+ > **query**(`level?`, `source?`, `timeStart?`, `timeEnd?`, `cursor?`, `pageSize?`): `Promise`\<\{ `entities`: `ILogEntry`[]; `cursor?`: `string`; \}\>
80
80
 
81
81
  Query the log entries.
82
82
 
@@ -120,15 +120,11 @@ The maximum number of entities in a page.
120
120
 
121
121
  #### Returns
122
122
 
123
- `Promise`\<\{ `entities`: `ILogEntry`[]; `cursor`: `string`; \}\>
123
+ `Promise`\<\{ `entities`: `ILogEntry`[]; `cursor?`: `string`; \}\>
124
124
 
125
125
  All the entities for the storage matching the conditions,
126
126
  and a cursor which can be used to request more entities.
127
127
 
128
- #### Throws
129
-
130
- NotImplementedError if the implementation does not support retrieval.
131
-
132
128
  #### Implementation of
133
129
 
134
130
  `ILoggingComponent.query`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/logging-rest-client",
3
- "version": "0.0.1-next.9",
3
+ "version": "0.0.2-next.1",
4
4
  "description": "Logging contract implementation which can connect to REST endpoints",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,7 +18,7 @@
18
18
  "@twin.org/api-models": "next",
19
19
  "@twin.org/core": "next",
20
20
  "@twin.org/entity": "next",
21
- "@twin.org/logging-models": "0.0.1-next.9",
21
+ "@twin.org/logging-models": "0.0.2-next.1",
22
22
  "@twin.org/nameof": "next"
23
23
  },
24
24
  "main": "./dist/cjs/index.cjs",