@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.
- package/dist/cjs/index.cjs +9 -0
- package/dist/esm/index.mjs +9 -1
- package/dist/types/factories/authenticationGeneratorFactory.d.ts +6 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/models/api/IServerFavIconResponse.d.ts +23 -0
- package/dist/types/models/api/IServerRootResponse.d.ts +9 -0
- package/dist/types/models/client/IAuthenticationGenerator.d.ts +14 -0
- package/dist/types/models/config/IBaseRestClientConfig.d.ts +4 -0
- package/dist/types/models/protocol/IHttpRequest.d.ts +4 -0
- package/dist/types/models/protocol/IHttpRequestContext.d.ts +4 -0
- package/dist/types/models/protocol/ISocketRequestContext.d.ts +10 -0
- package/dist/types/models/protocol/ISocketServerRequest.d.ts +10 -0
- package/dist/types/models/routes/IBaseRoute.d.ts +4 -0
- package/dist/types/models/routes/ISocketRoute.d.ts +18 -2
- package/dist/types/models/server/IBaseRouteProcessor.d.ts +14 -5
- package/dist/types/models/server/IRestRouteProcessor.d.ts +2 -1
- package/dist/types/models/server/ISocketRouteProcessor.d.ts +12 -15
- package/dist/types/models/services/IInformationComponent.d.ts +10 -0
- package/docs/changelog.md +75 -0
- package/docs/reference/index.md +6 -0
- package/docs/reference/interfaces/IAuthenticationGenerator.md +35 -0
- package/docs/reference/interfaces/IBaseRestClientConfig.md +8 -0
- package/docs/reference/interfaces/IBaseRoute.md +8 -0
- package/docs/reference/interfaces/IBaseRouteProcessor.md +37 -5
- package/docs/reference/interfaces/IConflictResponse.md +1 -1
- package/docs/reference/interfaces/IHttpRequest.md +8 -0
- package/docs/reference/interfaces/IHttpRequestContext.md +12 -0
- package/docs/reference/interfaces/IHttpServerRequest.md +16 -0
- package/docs/reference/interfaces/IInformationComponent.md +28 -0
- package/docs/reference/interfaces/INoContentRequest.md +12 -0
- package/docs/reference/interfaces/INotFoundResponse.md +1 -1
- package/docs/reference/interfaces/IRestRoute.md +12 -0
- package/docs/reference/interfaces/IRestRouteProcessor.md +41 -3
- package/docs/reference/interfaces/IServerFavIconResponse.md +33 -0
- package/docs/reference/interfaces/IServerRootResponse.md +11 -0
- package/docs/reference/interfaces/ISocketRequestContext.md +79 -0
- package/docs/reference/interfaces/ISocketRoute.md +55 -3
- package/docs/reference/interfaces/ISocketRouteProcessor.md +60 -18
- package/docs/reference/interfaces/ISocketServerRequest.md +105 -0
- package/docs/reference/variables/AuthenticationGeneratorFactory.md +5 -0
- package/docs/reference/variables/HealthStatus.md +1 -1
- 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.
|