@twin.org/api-processors 0.0.1-next.16 → 0.0.1-next.17

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.
@@ -4,7 +4,6 @@ export * from "./identity/nodeIdentityProcessor";
4
4
  export * from "./identity/staticUserIdentityProcessor";
5
5
  export * from "./logging/loggingProcessor";
6
6
  export * from "./mimeType/jwtMimeTypeProcessor";
7
- export * from "./models/IRequestLoggingProcessorConfig";
8
- export * from "./models/IResponseLoggingProcessorConfig";
7
+ export * from "./models/ILoggingProcessorConfig";
9
8
  export * from "./models/IRouteProcessorConfig";
10
9
  export * from "./models/IStaticUserIdentityProcessorConfig";
@@ -1,5 +1,5 @@
1
1
  import type { IBaseRoute, IBaseRouteProcessor, IHttpRequestIdentity, IHttpResponse, IHttpServerRequest } from "@twin.org/api-models";
2
- import type { IRequestLoggingProcessorConfig } from "../models/IRequestLoggingProcessorConfig";
2
+ import type { ILoggingProcessorConfig } from "../models/ILoggingProcessorConfig";
3
3
  /**
4
4
  * Process the REST request and log its information.
5
5
  */
@@ -17,7 +17,7 @@ export declare class LoggingProcessor implements IBaseRouteProcessor {
17
17
  */
18
18
  constructor(options?: {
19
19
  loggingConnectorType?: string;
20
- config?: IRequestLoggingProcessorConfig;
20
+ config?: ILoggingProcessorConfig;
21
21
  });
22
22
  /**
23
23
  * Pre process the REST request for the specified route.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Configuration for the request logging processor.
3
3
  */
4
- export interface IRequestLoggingProcessorConfig {
4
+ export interface ILoggingProcessorConfig {
5
5
  /**
6
6
  * Include the body objects when logging the information.
7
7
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/api-processors - Changelog
2
2
 
3
- ## v0.0.1-next.16
3
+ ## v0.0.1-next.17
4
4
 
5
5
  - Initial Release
@@ -24,7 +24,7 @@ Options for the processor.
24
24
 
25
25
  The type for the logging connector, defaults to "logging".
26
26
 
27
- • **options.config?**: [`IRequestLoggingProcessorConfig`](../interfaces/IRequestLoggingProcessorConfig.md)
27
+ • **options.config?**: [`ILoggingProcessorConfig`](../interfaces/ILoggingProcessorConfig.md)
28
28
 
29
29
  The configuration for the processor.
30
30
 
@@ -11,7 +11,6 @@
11
11
 
12
12
  ## Interfaces
13
13
 
14
- - [IRequestLoggingProcessorConfig](interfaces/IRequestLoggingProcessorConfig.md)
15
- - [IResponseLoggingProcessorConfig](interfaces/IResponseLoggingProcessorConfig.md)
14
+ - [ILoggingProcessorConfig](interfaces/ILoggingProcessorConfig.md)
16
15
  - [IRouteProcessorConfig](interfaces/IRouteProcessorConfig.md)
17
16
  - [IStaticUserIdentityProcessorConfig](interfaces/IStaticUserIdentityProcessorConfig.md)
@@ -1,4 +1,4 @@
1
- # Interface: IRequestLoggingProcessorConfig
1
+ # Interface: ILoggingProcessorConfig
2
2
 
3
3
  Configuration for the request logging processor.
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/api-processors",
3
- "version": "0.0.1-next.16",
3
+ "version": "0.0.1-next.17",
4
4
  "description": "Route processors for use with API servers",
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/api-models": "0.0.1-next.16",
17
+ "@twin.org/api-models": "0.0.1-next.17",
18
18
  "@twin.org/core": "next",
19
19
  "@twin.org/entity": "next",
20
20
  "@twin.org/entity-storage-models": "next",
@@ -1,9 +0,0 @@
1
- /**
2
- * Configuration for the response logging processor.
3
- */
4
- export interface IResponseLoggingProcessorConfig {
5
- /**
6
- * Include the body objects when logging the information.
7
- */
8
- includeBody?: boolean;
9
- }
@@ -1,11 +0,0 @@
1
- # Interface: IResponseLoggingProcessorConfig
2
-
3
- Configuration for the response logging processor.
4
-
5
- ## Properties
6
-
7
- ### includeBody?
8
-
9
- > `optional` **includeBody**: `boolean`
10
-
11
- Include the body objects when logging the information.