@twin.org/api-models 0.0.3-next.21 → 0.0.3-next.22
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/es/errors/forbiddenError.js +23 -0
- package/dist/es/errors/forbiddenError.js.map +1 -0
- package/dist/es/errors/tooManyRequestsError.js +25 -0
- package/dist/es/errors/tooManyRequestsError.js.map +1 -0
- package/dist/es/helpers/httpErrorHelper.js +6 -2
- package/dist/es/helpers/httpErrorHelper.js.map +1 -1
- package/dist/es/index.js +4 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/responses/errors/IConflictResponse.js.map +1 -1
- package/dist/es/models/responses/errors/INotImplementedResponse.js +2 -0
- package/dist/es/models/responses/errors/INotImplementedResponse.js.map +1 -0
- package/dist/es/models/responses/errors/ITooManyRequestsResponse.js +2 -0
- package/dist/es/models/responses/errors/ITooManyRequestsResponse.js.map +1 -0
- package/dist/types/errors/forbiddenError.d.ts +20 -0
- package/dist/types/errors/tooManyRequestsError.d.ts +22 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/models/responses/errors/IConflictResponse.d.ts +1 -6
- package/dist/types/models/responses/errors/INotImplementedResponse.d.ts +15 -0
- package/dist/types/models/responses/errors/ITooManyRequestsResponse.d.ts +15 -0
- package/docs/changelog.md +7 -0
- package/docs/reference/classes/ForbiddenError.md +55 -0
- package/docs/reference/classes/HttpErrorHelper.md +3 -3
- package/docs/reference/classes/HttpParameterHelper.md +4 -4
- package/docs/reference/classes/HttpUrlHelper.md +6 -6
- package/docs/reference/classes/TooManyRequestsError.md +67 -0
- package/docs/reference/index.md +4 -0
- package/docs/reference/interfaces/IAcceptedResponse.md +2 -2
- package/docs/reference/interfaces/IBadRequestResponse.md +2 -2
- package/docs/reference/interfaces/IBaseRestClientConfig.md +9 -9
- package/docs/reference/interfaces/IBaseRoute.md +12 -12
- package/docs/reference/interfaces/IBaseRouteEntryPoint.md +4 -4
- package/docs/reference/interfaces/IBaseRouteProcessor.md +7 -7
- package/docs/reference/interfaces/IBaseSocketClientConfig.md +7 -7
- package/docs/reference/interfaces/IConflictResponse.md +3 -11
- package/docs/reference/interfaces/ICreatedResponse.md +2 -2
- package/docs/reference/interfaces/IForbiddenResponse.md +2 -2
- package/docs/reference/interfaces/IHealthComponentInfo.md +4 -4
- package/docs/reference/interfaces/IHealthInfo.md +3 -3
- package/docs/reference/interfaces/IHostingComponent.md +3 -3
- package/docs/reference/interfaces/IHttpRequest.md +8 -8
- package/docs/reference/interfaces/IHttpRequestContext.md +6 -6
- package/docs/reference/interfaces/IHttpRequestPathParams.md +1 -1
- package/docs/reference/interfaces/IHttpRequestQuery.md +1 -1
- package/docs/reference/interfaces/IHttpResponse.md +6 -6
- package/docs/reference/interfaces/IHttpServerRequest.md +11 -11
- package/docs/reference/interfaces/IInformationComponent.md +8 -8
- package/docs/reference/interfaces/IInternalServerErrorResponse.md +2 -2
- package/docs/reference/interfaces/IMimeTypeProcessor.md +2 -2
- package/docs/reference/interfaces/INoContentRequest.md +8 -8
- package/docs/reference/interfaces/INoContentResponse.md +1 -1
- package/docs/reference/interfaces/INotFoundResponse.md +3 -3
- package/docs/reference/interfaces/INotImplementedResponse.md +19 -0
- package/docs/reference/interfaces/IOkResponse.md +1 -1
- package/docs/reference/interfaces/IRestRoute.md +26 -26
- package/docs/reference/interfaces/IRestRouteExample.md +3 -3
- package/docs/reference/interfaces/IRestRouteProcessor.md +10 -10
- package/docs/reference/interfaces/IRestRouteRequestExample.md +4 -4
- package/docs/reference/interfaces/IRestRouteResponseAttachmentOptions.md +6 -6
- package/docs/reference/interfaces/IRestRouteResponseExample.md +4 -4
- package/docs/reference/interfaces/IRestRouteResponseOptions.md +2 -2
- package/docs/reference/interfaces/IServerFavIconResponse.md +7 -7
- package/docs/reference/interfaces/IServerHealthResponse.md +1 -1
- package/docs/reference/interfaces/IServerInfo.md +2 -2
- package/docs/reference/interfaces/IServerInfoResponse.md +1 -1
- package/docs/reference/interfaces/IServerLivezResponse.md +2 -2
- package/docs/reference/interfaces/IServerRootResponse.md +2 -2
- package/docs/reference/interfaces/IServerSpecResponse.md +4 -4
- package/docs/reference/interfaces/ISocketRequestContext.md +7 -7
- package/docs/reference/interfaces/ISocketRoute.md +17 -17
- package/docs/reference/interfaces/ISocketRouteProcessor.md +16 -16
- package/docs/reference/interfaces/ISocketServerRequest.md +12 -12
- package/docs/reference/interfaces/ITag.md +2 -2
- package/docs/reference/interfaces/ITenant.md +8 -8
- package/docs/reference/interfaces/ITenantAdminComponent.md +7 -7
- package/docs/reference/interfaces/ITooManyRequestsResponse.md +19 -0
- package/docs/reference/interfaces/IUnauthorizedResponse.md +2 -2
- package/docs/reference/interfaces/IUnprocessableEntityResponse.md +2 -2
- package/docs/reference/interfaces/IWebServer.md +4 -4
- package/docs/reference/interfaces/IWebServerOptions.md +36 -12
- package/docs/reference/variables/HealthStatus.md +3 -3
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ Interface which defines a route.
|
|
|
9
9
|
|
|
10
10
|
## Properties
|
|
11
11
|
|
|
12
|
-
### operationId
|
|
12
|
+
### operationId {#operationid}
|
|
13
13
|
|
|
14
14
|
> **operationId**: `string`
|
|
15
15
|
|
|
@@ -17,7 +17,7 @@ The id of the operation.
|
|
|
17
17
|
|
|
18
18
|
***
|
|
19
19
|
|
|
20
|
-
### path
|
|
20
|
+
### path {#path}
|
|
21
21
|
|
|
22
22
|
> **path**: `string`
|
|
23
23
|
|
|
@@ -25,41 +25,41 @@ The path to use for routing.
|
|
|
25
25
|
|
|
26
26
|
***
|
|
27
27
|
|
|
28
|
-
### skipAuth?
|
|
28
|
+
### skipAuth? {#skipauth}
|
|
29
29
|
|
|
30
|
-
> `optional` **skipAuth
|
|
30
|
+
> `optional` **skipAuth?**: `boolean`
|
|
31
31
|
|
|
32
32
|
Skips the authentication requirement for this route.
|
|
33
33
|
|
|
34
34
|
***
|
|
35
35
|
|
|
36
|
-
### skipTenant?
|
|
36
|
+
### skipTenant? {#skiptenant}
|
|
37
37
|
|
|
38
|
-
> `optional` **skipTenant
|
|
38
|
+
> `optional` **skipTenant?**: `boolean`
|
|
39
39
|
|
|
40
40
|
Skips the tenant requirement for this route.
|
|
41
41
|
|
|
42
42
|
***
|
|
43
43
|
|
|
44
|
-
### requiredScope?
|
|
44
|
+
### requiredScope? {#requiredscope}
|
|
45
45
|
|
|
46
|
-
> `optional` **requiredScope
|
|
46
|
+
> `optional` **requiredScope?**: `string`[]
|
|
47
47
|
|
|
48
48
|
The user must have one of the specified scopes to access the route.
|
|
49
49
|
|
|
50
50
|
***
|
|
51
51
|
|
|
52
|
-
### processorFeatures?
|
|
52
|
+
### processorFeatures? {#processorfeatures}
|
|
53
53
|
|
|
54
|
-
> `optional` **processorFeatures
|
|
54
|
+
> `optional` **processorFeatures?**: `string`[]
|
|
55
55
|
|
|
56
56
|
The features supported by additional processors to run for this route.
|
|
57
57
|
|
|
58
58
|
***
|
|
59
59
|
|
|
60
|
-
### processorData?
|
|
60
|
+
### processorData? {#processordata}
|
|
61
61
|
|
|
62
|
-
> `optional` **processorData
|
|
62
|
+
> `optional` **processorData?**: `object`
|
|
63
63
|
|
|
64
64
|
The data for additional processors to run for this route.
|
|
65
65
|
|
|
@@ -10,7 +10,7 @@ Route entry points are used for exposing the routes from a package.
|
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
13
|
-
### name
|
|
13
|
+
### name {#name}
|
|
14
14
|
|
|
15
15
|
> **name**: `string`
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ The name of the routes.
|
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### defaultBaseRoute
|
|
21
|
+
### defaultBaseRoute {#defaultbaseroute}
|
|
22
22
|
|
|
23
23
|
> **defaultBaseRoute**: `string`
|
|
24
24
|
|
|
@@ -26,7 +26,7 @@ The default base route name for the routes.
|
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
29
|
-
### tags
|
|
29
|
+
### tags {#tags}
|
|
30
30
|
|
|
31
31
|
> **tags**: [`ITag`](ITag.md)[]
|
|
32
32
|
|
|
@@ -34,7 +34,7 @@ The tags for the routes.
|
|
|
34
34
|
|
|
35
35
|
***
|
|
36
36
|
|
|
37
|
-
### generateRoutes
|
|
37
|
+
### generateRoutes {#generateroutes}
|
|
38
38
|
|
|
39
39
|
> **generateRoutes**: (`baseRouteName`, `componentName`) => `T`[]
|
|
40
40
|
|
|
@@ -23,7 +23,7 @@ The definition for a base processor for handling REST routes.
|
|
|
23
23
|
|
|
24
24
|
## Methods
|
|
25
25
|
|
|
26
|
-
### features()?
|
|
26
|
+
### features()? {#features}
|
|
27
27
|
|
|
28
28
|
> `optional` **features**(): `string`[]
|
|
29
29
|
|
|
@@ -39,7 +39,7 @@ The features supported by this processor.
|
|
|
39
39
|
|
|
40
40
|
***
|
|
41
41
|
|
|
42
|
-
### pre()?
|
|
42
|
+
### pre()? {#pre}
|
|
43
43
|
|
|
44
44
|
> `optional` **pre**(`request`, `response`, `route`, `contextIds`, `processorState`, `componentTypes?`): `Promise`\<`void`\>
|
|
45
45
|
|
|
@@ -61,9 +61,9 @@ The response data to send if any.
|
|
|
61
61
|
|
|
62
62
|
##### route
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
`T` \| `undefined`
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
The route being requested, if a matching one was found.
|
|
67
67
|
|
|
68
68
|
##### contextIds
|
|
69
69
|
|
|
@@ -99,7 +99,7 @@ Promise that resolves when the request is processed.
|
|
|
99
99
|
|
|
100
100
|
***
|
|
101
101
|
|
|
102
|
-
### post()?
|
|
102
|
+
### post()? {#post}
|
|
103
103
|
|
|
104
104
|
> `optional` **post**(`request`, `response`, `route`, `contextIds`, `processorState`, `componentTypes?`): `Promise`\<`void`\>
|
|
105
105
|
|
|
@@ -121,9 +121,9 @@ The response data to send if any.
|
|
|
121
121
|
|
|
122
122
|
##### route
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
`T` \| `undefined`
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
The route being requested, if a matching one was found.
|
|
127
127
|
|
|
128
128
|
##### contextIds
|
|
129
129
|
|
|
@@ -4,15 +4,15 @@ Definition for the configuration of a socket service.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### basePath?
|
|
7
|
+
### basePath? {#basepath}
|
|
8
8
|
|
|
9
|
-
> `optional` **basePath
|
|
9
|
+
> `optional` **basePath?**: `string`
|
|
10
10
|
|
|
11
11
|
Base path for the socket service, defaults to /socket.
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### endpoint
|
|
15
|
+
### endpoint {#endpoint}
|
|
16
16
|
|
|
17
17
|
> **endpoint**: `string`
|
|
18
18
|
|
|
@@ -20,16 +20,16 @@ The endpoint where the api is hosted.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### pathPrefix?
|
|
23
|
+
### pathPrefix? {#pathprefix}
|
|
24
24
|
|
|
25
|
-
> `optional` **pathPrefix
|
|
25
|
+
> `optional` **pathPrefix?**: `string`
|
|
26
26
|
|
|
27
27
|
The prefix to the routes.
|
|
28
28
|
|
|
29
29
|
***
|
|
30
30
|
|
|
31
|
-
### headers?
|
|
31
|
+
### headers? {#headers}
|
|
32
32
|
|
|
33
|
-
> `optional` **headers
|
|
33
|
+
> `optional` **headers?**: `IHttpHeaders`
|
|
34
34
|
|
|
35
35
|
The headers to include in requests.
|
|
@@ -4,7 +4,7 @@ The request resulted in a conflicting operation, see the content for more detail
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### statusCode
|
|
7
|
+
### statusCode {#statuscode}
|
|
8
8
|
|
|
9
9
|
> **statusCode**: `409`
|
|
10
10
|
|
|
@@ -12,16 +12,8 @@ Response status code.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### body
|
|
15
|
+
### body {#body}
|
|
16
16
|
|
|
17
|
-
> **body**: `IError`
|
|
17
|
+
> **body**: `IError`
|
|
18
18
|
|
|
19
19
|
The body which contains the error.
|
|
20
|
-
|
|
21
|
-
#### Type Declaration
|
|
22
|
-
|
|
23
|
-
##### conflicts
|
|
24
|
-
|
|
25
|
-
> **conflicts**: `string`[]
|
|
26
|
-
|
|
27
|
-
The conflicting items.
|
|
@@ -4,7 +4,7 @@ The rest request ended in created response.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### statusCode
|
|
7
|
+
### statusCode {#statuscode}
|
|
8
8
|
|
|
9
9
|
> **statusCode**: `201`
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ Response status code.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### headers
|
|
15
|
+
### headers {#headers}
|
|
16
16
|
|
|
17
17
|
> **headers**: `object`
|
|
18
18
|
|
|
@@ -4,7 +4,7 @@ The operation that you tried to perform is not possible, see the content for mor
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### statusCode
|
|
7
|
+
### statusCode {#statuscode}
|
|
8
8
|
|
|
9
9
|
> **statusCode**: `403`
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ Response status code.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### body
|
|
15
|
+
### body {#body}
|
|
16
16
|
|
|
17
17
|
> **body**: `IError`
|
|
18
18
|
|
|
@@ -4,7 +4,7 @@ The health component information.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### name
|
|
7
|
+
### name {#name}
|
|
8
8
|
|
|
9
9
|
> **name**: `string`
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ The name of the component.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### status
|
|
15
|
+
### status {#status}
|
|
16
16
|
|
|
17
17
|
> **status**: [`HealthStatus`](../type-aliases/HealthStatus.md)
|
|
18
18
|
|
|
@@ -20,8 +20,8 @@ The status of the component.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### details?
|
|
23
|
+
### details? {#details}
|
|
24
24
|
|
|
25
|
-
> `optional` **details
|
|
25
|
+
> `optional` **details?**: `string`
|
|
26
26
|
|
|
27
27
|
The details for the status.
|
|
@@ -4,7 +4,7 @@ The status of the server.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### status
|
|
7
|
+
### status {#status}
|
|
8
8
|
|
|
9
9
|
> **status**: [`HealthStatus`](../type-aliases/HealthStatus.md)
|
|
10
10
|
|
|
@@ -12,8 +12,8 @@ The status.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### components?
|
|
15
|
+
### components? {#components}
|
|
16
16
|
|
|
17
|
-
> `optional` **components
|
|
17
|
+
> `optional` **components?**: [`IHealthComponentInfo`](IHealthComponentInfo.md)[]
|
|
18
18
|
|
|
19
19
|
The status of the components.
|
|
@@ -8,7 +8,7 @@ The information about the hosting of the API.
|
|
|
8
8
|
|
|
9
9
|
## Methods
|
|
10
10
|
|
|
11
|
-
### getPublicOrigin()
|
|
11
|
+
### getPublicOrigin() {#getpublicorigin}
|
|
12
12
|
|
|
13
13
|
> **getPublicOrigin**(`serverRequestUrl?`): `Promise`\<`string`\>
|
|
14
14
|
|
|
@@ -30,7 +30,7 @@ The public origin.
|
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### getTenantOrigin()
|
|
33
|
+
### getTenantOrigin() {#gettenantorigin}
|
|
34
34
|
|
|
35
35
|
> **getTenantOrigin**(`tenantId`): `Promise`\<`string` \| `undefined`\>
|
|
36
36
|
|
|
@@ -52,7 +52,7 @@ The public origin for the tenant.
|
|
|
52
52
|
|
|
53
53
|
***
|
|
54
54
|
|
|
55
|
-
### buildPublicUrl()
|
|
55
|
+
### buildPublicUrl() {#buildpublicurl}
|
|
56
56
|
|
|
57
57
|
> **buildPublicUrl**(`url`): `Promise`\<`string`\>
|
|
58
58
|
|
|
@@ -15,32 +15,32 @@ Model for the standard parameters for an http request.
|
|
|
15
15
|
|
|
16
16
|
## Properties
|
|
17
17
|
|
|
18
|
-
### headers?
|
|
18
|
+
### headers? {#headers}
|
|
19
19
|
|
|
20
|
-
> `optional` **headers
|
|
20
|
+
> `optional` **headers?**: `IHttpHeaders`
|
|
21
21
|
|
|
22
22
|
Incoming Http Headers.
|
|
23
23
|
|
|
24
24
|
***
|
|
25
25
|
|
|
26
|
-
### pathParams?
|
|
26
|
+
### pathParams? {#pathparams}
|
|
27
27
|
|
|
28
|
-
> `optional` **pathParams
|
|
28
|
+
> `optional` **pathParams?**: [`IHttpRequestPathParams`](IHttpRequestPathParams.md)
|
|
29
29
|
|
|
30
30
|
The path parameters.
|
|
31
31
|
|
|
32
32
|
***
|
|
33
33
|
|
|
34
|
-
### query?
|
|
34
|
+
### query? {#query}
|
|
35
35
|
|
|
36
|
-
> `optional` **query
|
|
36
|
+
> `optional` **query?**: [`IHttpRequestQuery`](IHttpRequestQuery.md)
|
|
37
37
|
|
|
38
38
|
The query parameters.
|
|
39
39
|
|
|
40
40
|
***
|
|
41
41
|
|
|
42
|
-
### body?
|
|
42
|
+
### body? {#body}
|
|
43
43
|
|
|
44
|
-
> `optional` **body
|
|
44
|
+
> `optional` **body?**: `T`
|
|
45
45
|
|
|
46
46
|
Data to return send as the body.
|
|
@@ -8,7 +8,7 @@ Context data from the HTTP request.
|
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
11
|
-
### serverRequest
|
|
11
|
+
### serverRequest {#serverrequest}
|
|
12
12
|
|
|
13
13
|
> **serverRequest**: [`IHttpServerRequest`](IHttpServerRequest.md)
|
|
14
14
|
|
|
@@ -16,7 +16,7 @@ The raw HTTP request.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
### processorState
|
|
19
|
+
### processorState {#processorstate}
|
|
20
20
|
|
|
21
21
|
> **processorState**: `object`
|
|
22
22
|
|
|
@@ -28,16 +28,16 @@ The state handed through the processors.
|
|
|
28
28
|
|
|
29
29
|
***
|
|
30
30
|
|
|
31
|
-
### loggingComponentType?
|
|
31
|
+
### loggingComponentType? {#loggingcomponenttype}
|
|
32
32
|
|
|
33
|
-
> `optional` **loggingComponentType
|
|
33
|
+
> `optional` **loggingComponentType?**: `string`
|
|
34
34
|
|
|
35
35
|
Logging component type for the request.
|
|
36
36
|
|
|
37
37
|
***
|
|
38
38
|
|
|
39
|
-
### hostingComponentType?
|
|
39
|
+
### hostingComponentType? {#hostingcomponenttype}
|
|
40
40
|
|
|
41
|
-
> `optional` **hostingComponentType
|
|
41
|
+
> `optional` **hostingComponentType?**: `string`
|
|
42
42
|
|
|
43
43
|
Hosting component type for the request.
|
|
@@ -10,24 +10,24 @@ Model for the standard parameters for an http response.
|
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
13
|
-
### statusCode?
|
|
13
|
+
### statusCode? {#statuscode}
|
|
14
14
|
|
|
15
|
-
> `optional` **statusCode
|
|
15
|
+
> `optional` **statusCode?**: `HttpStatusCode`
|
|
16
16
|
|
|
17
17
|
Response status code.
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### headers?
|
|
21
|
+
### headers? {#headers}
|
|
22
22
|
|
|
23
|
-
> `optional` **headers
|
|
23
|
+
> `optional` **headers?**: `IHttpHeaders`
|
|
24
24
|
|
|
25
25
|
Response headers.
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
29
|
-
### body?
|
|
29
|
+
### body? {#body}
|
|
30
30
|
|
|
31
|
-
> `optional` **body
|
|
31
|
+
> `optional` **body?**: `T`
|
|
32
32
|
|
|
33
33
|
Data to return as the main payload.
|
|
@@ -18,9 +18,9 @@ Model for the standard parameters for an http request.
|
|
|
18
18
|
|
|
19
19
|
## Properties
|
|
20
20
|
|
|
21
|
-
### headers?
|
|
21
|
+
### headers? {#headers}
|
|
22
22
|
|
|
23
|
-
> `optional` **headers
|
|
23
|
+
> `optional` **headers?**: `IHttpHeaders`
|
|
24
24
|
|
|
25
25
|
Incoming Http Headers.
|
|
26
26
|
|
|
@@ -30,9 +30,9 @@ Incoming Http Headers.
|
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### pathParams?
|
|
33
|
+
### pathParams? {#pathparams}
|
|
34
34
|
|
|
35
|
-
> `optional` **pathParams
|
|
35
|
+
> `optional` **pathParams?**: [`IHttpRequestPathParams`](IHttpRequestPathParams.md)
|
|
36
36
|
|
|
37
37
|
The path parameters.
|
|
38
38
|
|
|
@@ -42,9 +42,9 @@ The path parameters.
|
|
|
42
42
|
|
|
43
43
|
***
|
|
44
44
|
|
|
45
|
-
### query?
|
|
45
|
+
### query? {#query}
|
|
46
46
|
|
|
47
|
-
> `optional` **query
|
|
47
|
+
> `optional` **query?**: [`IHttpRequestQuery`](IHttpRequestQuery.md)
|
|
48
48
|
|
|
49
49
|
The query parameters.
|
|
50
50
|
|
|
@@ -54,9 +54,9 @@ The query parameters.
|
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
57
|
-
### body?
|
|
57
|
+
### body? {#body}
|
|
58
58
|
|
|
59
|
-
> `optional` **body
|
|
59
|
+
> `optional` **body?**: `T`
|
|
60
60
|
|
|
61
61
|
Data to return send as the body.
|
|
62
62
|
|
|
@@ -66,7 +66,7 @@ Data to return send as the body.
|
|
|
66
66
|
|
|
67
67
|
***
|
|
68
68
|
|
|
69
|
-
### url
|
|
69
|
+
### url {#url}
|
|
70
70
|
|
|
71
71
|
> **url**: `string`
|
|
72
72
|
|
|
@@ -74,8 +74,8 @@ The request url.
|
|
|
74
74
|
|
|
75
75
|
***
|
|
76
76
|
|
|
77
|
-
### method?
|
|
77
|
+
### method? {#method}
|
|
78
78
|
|
|
79
|
-
> `optional` **method
|
|
79
|
+
> `optional` **method?**: `HttpMethod`
|
|
80
80
|
|
|
81
81
|
The request method.
|
|
@@ -8,7 +8,7 @@ The information component for the server.
|
|
|
8
8
|
|
|
9
9
|
## Methods
|
|
10
10
|
|
|
11
|
-
### root()
|
|
11
|
+
### root() {#root}
|
|
12
12
|
|
|
13
13
|
> **root**(): `Promise`\<`string`\>
|
|
14
14
|
|
|
@@ -22,7 +22,7 @@ The root information.
|
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
25
|
-
### info()
|
|
25
|
+
### info() {#info}
|
|
26
26
|
|
|
27
27
|
> **info**(): `Promise`\<[`IServerInfo`](IServerInfo.md)\>
|
|
28
28
|
|
|
@@ -36,7 +36,7 @@ The service information.
|
|
|
36
36
|
|
|
37
37
|
***
|
|
38
38
|
|
|
39
|
-
### favicon()
|
|
39
|
+
### favicon() {#favicon}
|
|
40
40
|
|
|
41
41
|
> **favicon**(): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\> \| `undefined`\>
|
|
42
42
|
|
|
@@ -50,7 +50,7 @@ The favicon.
|
|
|
50
50
|
|
|
51
51
|
***
|
|
52
52
|
|
|
53
|
-
### spec()
|
|
53
|
+
### spec() {#spec}
|
|
54
54
|
|
|
55
55
|
> **spec**(): `Promise`\<`unknown`\>
|
|
56
56
|
|
|
@@ -64,7 +64,7 @@ The OpenAPI spec.
|
|
|
64
64
|
|
|
65
65
|
***
|
|
66
66
|
|
|
67
|
-
### livez()
|
|
67
|
+
### livez() {#livez}
|
|
68
68
|
|
|
69
69
|
> **livez**(): `Promise`\<`boolean`\>
|
|
70
70
|
|
|
@@ -78,7 +78,7 @@ True if the server is live.
|
|
|
78
78
|
|
|
79
79
|
***
|
|
80
80
|
|
|
81
|
-
### health()
|
|
81
|
+
### health() {#health}
|
|
82
82
|
|
|
83
83
|
> **health**(): `Promise`\<[`IHealthInfo`](IHealthInfo.md)\>
|
|
84
84
|
|
|
@@ -92,7 +92,7 @@ The service health.
|
|
|
92
92
|
|
|
93
93
|
***
|
|
94
94
|
|
|
95
|
-
### setComponentHealth()
|
|
95
|
+
### setComponentHealth() {#setcomponenthealth}
|
|
96
96
|
|
|
97
97
|
> **setComponentHealth**(`name`, `status`, `details?`, `tenantId?`): `Promise`\<`void`\>
|
|
98
98
|
|
|
@@ -132,7 +132,7 @@ Nothing.
|
|
|
132
132
|
|
|
133
133
|
***
|
|
134
134
|
|
|
135
|
-
### removeComponentHealth()
|
|
135
|
+
### removeComponentHealth() {#removecomponenthealth}
|
|
136
136
|
|
|
137
137
|
> **removeComponentHealth**(`name`, `tenantId?`): `Promise`\<`void`\>
|
|
138
138
|
|
|
@@ -4,7 +4,7 @@ The server has encountered a situation it does not know how to handle, see the c
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### statusCode
|
|
7
|
+
### statusCode {#statuscode}
|
|
8
8
|
|
|
9
9
|
> **statusCode**: `500`
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ Response status code.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### body
|
|
15
|
+
### body {#body}
|
|
16
16
|
|
|
17
17
|
> **body**: `IError`
|
|
18
18
|
|
|
@@ -8,7 +8,7 @@ The definition for a handler for a specific MIME type.
|
|
|
8
8
|
|
|
9
9
|
## Methods
|
|
10
10
|
|
|
11
|
-
### getTypes()
|
|
11
|
+
### getTypes() {#gettypes}
|
|
12
12
|
|
|
13
13
|
> **getTypes**(): `string`[]
|
|
14
14
|
|
|
@@ -22,7 +22,7 @@ The MIME types that this handler can handle.
|
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
25
|
-
### handle()
|
|
25
|
+
### handle() {#handle}
|
|
26
26
|
|
|
27
27
|
> **handle**(`body`): `Promise`\<`unknown`\>
|
|
28
28
|
|
|
@@ -8,9 +8,9 @@ A REST request with no input parameters.
|
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
11
|
-
### headers?
|
|
11
|
+
### headers? {#headers}
|
|
12
12
|
|
|
13
|
-
> `optional` **headers
|
|
13
|
+
> `optional` **headers?**: `undefined`
|
|
14
14
|
|
|
15
15
|
Incoming Http Headers.
|
|
16
16
|
|
|
@@ -20,9 +20,9 @@ Incoming Http Headers.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### pathParams?
|
|
23
|
+
### pathParams? {#pathparams}
|
|
24
24
|
|
|
25
|
-
> `optional` **pathParams
|
|
25
|
+
> `optional` **pathParams?**: `undefined`
|
|
26
26
|
|
|
27
27
|
The path parameters.
|
|
28
28
|
|
|
@@ -32,9 +32,9 @@ The path parameters.
|
|
|
32
32
|
|
|
33
33
|
***
|
|
34
34
|
|
|
35
|
-
### query?
|
|
35
|
+
### query? {#query}
|
|
36
36
|
|
|
37
|
-
> `optional` **query
|
|
37
|
+
> `optional` **query?**: `undefined`
|
|
38
38
|
|
|
39
39
|
The query parameters.
|
|
40
40
|
|
|
@@ -44,9 +44,9 @@ The query parameters.
|
|
|
44
44
|
|
|
45
45
|
***
|
|
46
46
|
|
|
47
|
-
### body?
|
|
47
|
+
### body? {#body}
|
|
48
48
|
|
|
49
|
-
> `optional` **body
|
|
49
|
+
> `optional` **body?**: `undefined`
|
|
50
50
|
|
|
51
51
|
Data to return send as the body.
|
|
52
52
|
|