@twin.org/logging-service 0.0.3-next.1 → 0.0.3-next.2

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,19 @@
1
1
  # @twin.org/logging-service - Changelog
2
2
 
3
+ ## [0.0.3-next.2](https://github.com/twinfoundation/logging/compare/logging-service-v0.0.3-next.1...logging-service-v0.0.3-next.2) (2026-03-02)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * api data types ([8d37cab](https://github.com/twinfoundation/logging/commit/8d37cab7ec759f079b6480bcc27d739357dbc392))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/logging-models bumped from 0.0.3-next.1 to 0.0.3-next.2
16
+
3
17
  ## [0.0.3-next.1](https://github.com/twinfoundation/logging/compare/logging-service-v0.0.3-next.0...logging-service-v0.0.3-next.1) (2025-11-10)
4
18
 
5
19
 
@@ -70,12 +70,62 @@
70
70
  }
71
71
  },
72
72
  "responses": {
73
- "200": {
74
- "description": "The rest request ended in success with no data.",
73
+ "204": {
74
+ "description": "The rest request ended in success with no data."
75
+ },
76
+ "400": {
77
+ "description": "The server cannot process the request, see the content for more details.",
75
78
  "content": {
76
- "text/plain": {
79
+ "application/json": {
77
80
  "schema": {
78
- "$ref": "#/components/schemas/NoContentResponse"
81
+ "$ref": "#/components/schemas/Error"
82
+ },
83
+ "examples": {
84
+ "exampleResponse": {
85
+ "value": {
86
+ "name": "GeneralError",
87
+ "message": "errorMessage",
88
+ "properties": {
89
+ "foo": "bar"
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ },
97
+ "401": {
98
+ "description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
99
+ "content": {
100
+ "application/json": {
101
+ "schema": {
102
+ "$ref": "#/components/schemas/Error"
103
+ },
104
+ "examples": {
105
+ "exampleResponse": {
106
+ "value": {
107
+ "name": "UnauthorizedError",
108
+ "message": "errorMessage"
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+ },
115
+ "500": {
116
+ "description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
117
+ "content": {
118
+ "application/json": {
119
+ "schema": {
120
+ "$ref": "#/components/schemas/Error"
121
+ },
122
+ "examples": {
123
+ "exampleResponse": {
124
+ "value": {
125
+ "name": "InternalServerError",
126
+ "message": "errorMessage"
127
+ }
128
+ }
79
129
  }
80
130
  }
81
131
  }
@@ -114,10 +164,7 @@
114
164
  "in": "query",
115
165
  "required": false,
116
166
  "schema": {
117
- "type": [
118
- "number",
119
- "string"
120
- ]
167
+ "type": "string"
121
168
  }
122
169
  },
123
170
  {
@@ -126,10 +173,7 @@
126
173
  "in": "query",
127
174
  "required": false,
128
175
  "schema": {
129
- "type": [
130
- "number",
131
- "string"
132
- ]
176
+ "type": "string"
133
177
  }
134
178
  },
135
179
  {
@@ -181,6 +225,63 @@
181
225
  }
182
226
  }
183
227
  }
228
+ },
229
+ "400": {
230
+ "description": "The server cannot process the request, see the content for more details.",
231
+ "content": {
232
+ "application/json": {
233
+ "schema": {
234
+ "$ref": "#/components/schemas/Error"
235
+ },
236
+ "examples": {
237
+ "exampleResponse": {
238
+ "value": {
239
+ "name": "GeneralError",
240
+ "message": "errorMessage",
241
+ "properties": {
242
+ "foo": "bar"
243
+ }
244
+ }
245
+ }
246
+ }
247
+ }
248
+ }
249
+ },
250
+ "401": {
251
+ "description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
252
+ "content": {
253
+ "application/json": {
254
+ "schema": {
255
+ "$ref": "#/components/schemas/Error"
256
+ },
257
+ "examples": {
258
+ "exampleResponse": {
259
+ "value": {
260
+ "name": "UnauthorizedError",
261
+ "message": "errorMessage"
262
+ }
263
+ }
264
+ }
265
+ }
266
+ }
267
+ },
268
+ "500": {
269
+ "description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
270
+ "content": {
271
+ "application/json": {
272
+ "schema": {
273
+ "$ref": "#/components/schemas/Error"
274
+ },
275
+ "examples": {
276
+ "exampleResponse": {
277
+ "value": {
278
+ "name": "InternalServerError",
279
+ "message": "errorMessage"
280
+ }
281
+ }
282
+ }
283
+ }
284
+ }
184
285
  }
185
286
  }
186
287
  }
@@ -220,7 +321,6 @@
220
321
  "name",
221
322
  "message"
222
323
  ],
223
- "additionalProperties": false,
224
324
  "description": "Model to describe serialized error."
225
325
  },
226
326
  "LogEntry": {
@@ -255,7 +355,6 @@
255
355
  "source",
256
356
  "message"
257
357
  ],
258
- "additionalProperties": false,
259
358
  "description": "Interface describing a log entry."
260
359
  },
261
360
  "LogLevel": {
@@ -306,7 +405,6 @@
306
405
  "required": [
307
406
  "entities"
308
407
  ],
309
- "additionalProperties": false,
310
408
  "description": "The response payload."
311
409
  }
312
410
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/logging-service",
3
- "version": "0.0.3-next.1",
3
+ "version": "0.0.3-next.2",
4
4
  "description": "Logging contract implementation and REST endpoint definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,7 +17,7 @@
17
17
  "@twin.org/api-models": "next",
18
18
  "@twin.org/core": "next",
19
19
  "@twin.org/entity": "next",
20
- "@twin.org/logging-models": "0.0.3-next.1",
20
+ "@twin.org/logging-models": "0.0.3-next.2",
21
21
  "@twin.org/nameof": "next",
22
22
  "@twin.org/web": "next"
23
23
  },