@twin.org/api-models 0.0.1-next.14 → 0.0.1-next.15

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.
@@ -21,5 +21,5 @@ export interface ISocketRoute<T extends IHttpRequest = any, U extends IHttpRespo
21
21
  /**
22
22
  * The function to emit a message.
23
23
  */
24
- emit: (response: U) => Promise<void>) => void;
24
+ emit: (topic: string, response: U) => Promise<void>) => void;
25
25
  }
@@ -39,5 +39,5 @@ export interface ISocketRouteProcessor extends IBaseRouteProcessor<ISocketRoute>
39
39
  */
40
40
  process?(request: IHttpServerRequest, response: IHttpResponse, route: ISocketRoute | undefined, requestIdentity: IHttpRequestIdentity, processorState: {
41
41
  [id: string]: unknown;
42
- }, responseEmitter: (response: IHttpResponse) => Promise<void>): Promise<void>;
42
+ }, responseEmitter: (topic: string, response: IHttpResponse) => Promise<void>): Promise<void>;
43
43
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/api-models - Changelog
2
2
 
3
- ## v0.0.1-next.14
3
+ ## v0.0.1-next.15
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/api-models",
3
- "version": "0.0.1-next.14",
3
+ "version": "0.0.1-next.15",
4
4
  "description": "Contains models and classes for use with APIs",
5
5
  "repository": {
6
6
  "type": "git",