@twin.org/api-models 0.0.2-next.1 → 0.0.2-next.11

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.
Files changed (42) hide show
  1. package/dist/cjs/index.cjs +9 -0
  2. package/dist/esm/index.mjs +9 -1
  3. package/dist/types/factories/authenticationGeneratorFactory.d.ts +6 -0
  4. package/dist/types/index.d.ts +6 -0
  5. package/dist/types/models/api/IServerFavIconResponse.d.ts +23 -0
  6. package/dist/types/models/api/IServerRootResponse.d.ts +9 -0
  7. package/dist/types/models/client/IAuthenticationGenerator.d.ts +14 -0
  8. package/dist/types/models/config/IBaseRestClientConfig.d.ts +4 -0
  9. package/dist/types/models/protocol/IHttpRequest.d.ts +4 -0
  10. package/dist/types/models/protocol/IHttpRequestContext.d.ts +4 -0
  11. package/dist/types/models/protocol/ISocketRequestContext.d.ts +10 -0
  12. package/dist/types/models/protocol/ISocketServerRequest.d.ts +10 -0
  13. package/dist/types/models/routes/IBaseRoute.d.ts +4 -0
  14. package/dist/types/models/routes/ISocketRoute.d.ts +18 -2
  15. package/dist/types/models/server/IBaseRouteProcessor.d.ts +14 -5
  16. package/dist/types/models/server/IRestRouteProcessor.d.ts +2 -1
  17. package/dist/types/models/server/ISocketRouteProcessor.d.ts +12 -15
  18. package/dist/types/models/services/IInformationComponent.d.ts +10 -0
  19. package/docs/changelog.md +75 -0
  20. package/docs/reference/index.md +6 -0
  21. package/docs/reference/interfaces/IAuthenticationGenerator.md +35 -0
  22. package/docs/reference/interfaces/IBaseRestClientConfig.md +8 -0
  23. package/docs/reference/interfaces/IBaseRoute.md +8 -0
  24. package/docs/reference/interfaces/IBaseRouteProcessor.md +37 -5
  25. package/docs/reference/interfaces/IConflictResponse.md +1 -1
  26. package/docs/reference/interfaces/IHttpRequest.md +8 -0
  27. package/docs/reference/interfaces/IHttpRequestContext.md +12 -0
  28. package/docs/reference/interfaces/IHttpServerRequest.md +16 -0
  29. package/docs/reference/interfaces/IInformationComponent.md +28 -0
  30. package/docs/reference/interfaces/INoContentRequest.md +12 -0
  31. package/docs/reference/interfaces/INotFoundResponse.md +1 -1
  32. package/docs/reference/interfaces/IRestRoute.md +12 -0
  33. package/docs/reference/interfaces/IRestRouteProcessor.md +41 -3
  34. package/docs/reference/interfaces/IServerFavIconResponse.md +33 -0
  35. package/docs/reference/interfaces/IServerRootResponse.md +11 -0
  36. package/docs/reference/interfaces/ISocketRequestContext.md +79 -0
  37. package/docs/reference/interfaces/ISocketRoute.md +55 -3
  38. package/docs/reference/interfaces/ISocketRouteProcessor.md +60 -18
  39. package/docs/reference/interfaces/ISocketServerRequest.md +105 -0
  40. package/docs/reference/variables/AuthenticationGeneratorFactory.md +5 -0
  41. package/docs/reference/variables/HealthStatus.md +1 -1
  42. package/package.json +1 -1
@@ -0,0 +1,105 @@
1
+ # Interface: ISocketServerRequest\<T\>
2
+
3
+ Model for the standard parameters for an http request.
4
+
5
+ ## Extends
6
+
7
+ - [`IHttpServerRequest`](IHttpServerRequest.md)\<`T`\>
8
+
9
+ ## Type Parameters
10
+
11
+ ### T
12
+
13
+ `T` = `any`
14
+
15
+ ## Properties
16
+
17
+ ### headers?
18
+
19
+ > `optional` **headers**: `IHttpHeaders`
20
+
21
+ Incoming Http Headers.
22
+
23
+ #### Inherited from
24
+
25
+ [`IHttpServerRequest`](IHttpServerRequest.md).[`headers`](IHttpServerRequest.md#headers)
26
+
27
+ ***
28
+
29
+ ### pathParams?
30
+
31
+ > `optional` **pathParams**: [`IHttpRequestPathParams`](IHttpRequestPathParams.md)
32
+
33
+ The path parameters.
34
+
35
+ #### Inherited from
36
+
37
+ [`IHttpServerRequest`](IHttpServerRequest.md).[`pathParams`](IHttpServerRequest.md#pathparams)
38
+
39
+ ***
40
+
41
+ ### query?
42
+
43
+ > `optional` **query**: [`IHttpRequestQuery`](IHttpRequestQuery.md)
44
+
45
+ The query parameters.
46
+
47
+ #### Inherited from
48
+
49
+ [`IHttpServerRequest`](IHttpServerRequest.md).[`query`](IHttpServerRequest.md#query)
50
+
51
+ ***
52
+
53
+ ### body?
54
+
55
+ > `optional` **body**: `T`
56
+
57
+ Data to return send as the body.
58
+
59
+ #### Inherited from
60
+
61
+ [`IHttpServerRequest`](IHttpServerRequest.md).[`body`](IHttpServerRequest.md#body)
62
+
63
+ ***
64
+
65
+ ### authentication?
66
+
67
+ > `optional` **authentication**: `unknown`
68
+
69
+ Used to authenticate and will be passed to the configured authentication provider for the request.
70
+
71
+ #### Inherited from
72
+
73
+ [`IHttpServerRequest`](IHttpServerRequest.md).[`authentication`](IHttpServerRequest.md#authentication)
74
+
75
+ ***
76
+
77
+ ### method?
78
+
79
+ > `optional` **method**: `HttpMethod`
80
+
81
+ The request method.
82
+
83
+ #### Inherited from
84
+
85
+ [`IHttpServerRequest`](IHttpServerRequest.md).[`method`](IHttpServerRequest.md#method)
86
+
87
+ ***
88
+
89
+ ### url?
90
+
91
+ > `optional` **url**: `string`
92
+
93
+ The request url.
94
+
95
+ #### Inherited from
96
+
97
+ [`IHttpServerRequest`](IHttpServerRequest.md).[`url`](IHttpServerRequest.md#url)
98
+
99
+ ***
100
+
101
+ ### socketId
102
+
103
+ > **socketId**: `string`
104
+
105
+ The socket id.
@@ -0,0 +1,5 @@
1
+ # Variable: AuthenticationGeneratorFactory
2
+
3
+ > `const` **AuthenticationGeneratorFactory**: `Factory`\<[`IAuthenticationGenerator`](../interfaces/IAuthenticationGenerator.md)\>
4
+
5
+ Factory for creating implementation of authentication generator types.
@@ -4,7 +4,7 @@
4
4
 
5
5
  The health status of the component.
6
6
 
7
- ## Type declaration
7
+ ## Type Declaration
8
8
 
9
9
  ### Ok
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/api-models",
3
- "version": "0.0.2-next.1",
3
+ "version": "0.0.2-next.11",
4
4
  "description": "Contains models and classes for use with APIs",
5
5
  "repository": {
6
6
  "type": "git",