@rapidrest/service-core 1.0.0-beta.1 → 1.0.0-beta.2
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/lib/auth/AuthMiddleware.js +33 -3
- package/dist/lib/auth/AuthMiddleware.js.map +1 -1
- package/dist/lib/auth/BasicStrategy.js +46 -39
- package/dist/lib/auth/BasicStrategy.js.map +1 -1
- package/dist/lib/auth/JWTStrategy.js +69 -60
- package/dist/lib/auth/JWTStrategy.js.map +1 -1
- package/dist/lib/index.js +2 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/routes/RouteUtils.js +8 -7
- package/dist/lib/routes/RouteUtils.js.map +1 -1
- package/dist/types/auth/AuthMiddleware.d.ts +12 -1
- package/dist/types/auth/AuthStrategy.d.ts +13 -1
- package/dist/types/auth/BasicStrategy.d.ts +7 -3
- package/dist/types/auth/JWTStrategy.d.ts +6 -3
- package/dist/types/index.d.ts +2 -1
- package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/MongoRepository.md +1 -1
- package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/RedisConnection.md +1 -1
- package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/Repository.md +1 -1
- package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Default.md +1 -1
- package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Description.md +1 -1
- package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Document.md +1 -1
- package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Example.md +1 -1
- package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Format.md +1 -1
- package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Returns.md +1 -1
- package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Summary.md +1 -1
- package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Tags.md +1 -1
- package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/TypeInfo.md +1 -1
- package/docs/reference/@rapidrest/namespaces/DocDecorators/interfaces/DocumentsData.md +7 -7
- package/docs/reference/@rapidrest/namespaces/EventDecorators/functions/EventListener.md +1 -1
- package/docs/reference/@rapidrest/namespaces/EventDecorators/functions/OnEvent.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Cache.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/ChildEntity.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/DataStore.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Identifier.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Protect.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Reference.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Shard.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/TrackChanges.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ModelDecorators/interfaces/PendingTypeOrmColumn.md +5 -5
- package/docs/reference/@rapidrest/namespaces/ModelDecorators/variables/pendingTypeOrmColumns.md +1 -1
- package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Column.md +1 -1
- package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Entity.md +1 -1
- package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Index.md +3 -3
- package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/PrimaryColumn.md +1 -1
- package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Unique.md +3 -3
- package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getColumnMetadata.md +1 -1
- package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getEntityName.md +1 -1
- package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getIndexMetadata.md +1 -1
- package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/ColumnInfo.md +4 -4
- package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/ColumnOptions.md +5 -5
- package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/IndexInfo.md +4 -4
- package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/IndexOptions.md +5 -5
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/After.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Auth.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/AuthResult.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Before.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/ContentType.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Delete.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Get.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Head.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Header.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Method.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Model.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Options.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Param.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Patch.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Post.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Protect.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Put.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Query.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Request.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/RequiresRole.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Response.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Route.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Socket.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/User.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Validate.md +1 -1
- package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/WebSocket.md +1 -1
- package/docs/reference/classes/ACLUtils.md +10 -10
- package/docs/reference/classes/AdminRoute.md +3 -3
- package/docs/reference/classes/AuthMiddleware.md +55 -13
- package/docs/reference/classes/BackgroundService.md +8 -8
- package/docs/reference/classes/BackgroundServiceManager.md +7 -7
- package/docs/reference/classes/BaseEntity.md +6 -6
- package/docs/reference/classes/BaseMongoEntity.md +7 -7
- package/docs/reference/classes/BasicStrategy.md +52 -10
- package/docs/reference/classes/BasicStrategyOptions.md +35 -11
- package/docs/reference/classes/BulkError.md +3 -3
- package/docs/reference/classes/ConnectionManager.md +4 -4
- package/docs/reference/classes/EventListenerManager.md +5 -5
- package/docs/reference/classes/HttpRouter.md +343 -0
- package/docs/reference/classes/JWTStrategy.md +37 -14
- package/docs/reference/classes/JWTStrategyOptions.md +10 -10
- package/docs/reference/classes/MetricsRoute.md +2 -2
- package/docs/reference/classes/ModelRoute.md +28 -28
- package/docs/reference/classes/ModelUtils.md +10 -10
- package/docs/reference/classes/MongoConnection.md +12 -12
- package/docs/reference/classes/MongoRepository.md +17 -17
- package/docs/reference/classes/MongoSchemaSync.md +3 -3
- package/docs/reference/classes/NetUtils.md +4 -4
- package/docs/reference/classes/NotificationUtils.md +3 -3
- package/docs/reference/classes/ObjectFactory.md +10 -10
- package/docs/reference/classes/OpenAPIRoute.md +5 -5
- package/docs/reference/classes/OpenApiSpec.md +45 -45
- package/docs/reference/classes/RecoverableBaseEntity.md +7 -7
- package/docs/reference/classes/RecoverableBaseMongoEntity.md +8 -8
- package/docs/reference/classes/RedisTransport.md +4 -4
- package/docs/reference/classes/RepoUtils.md +28 -28
- package/docs/reference/classes/RouteUtils.md +17 -17
- package/docs/reference/classes/Server.md +29 -29
- package/docs/reference/classes/SimpleEntity.md +3 -3
- package/docs/reference/classes/SimpleMongoEntity.md +4 -4
- package/docs/reference/classes/StatusExtraData.md +4 -4
- package/docs/reference/classes/StatusRoute.md +1 -1
- package/docs/reference/classes/UWSRequest.md +226 -0
- package/docs/reference/classes/UWSResponse.md +257 -0
- package/docs/reference/classes/UWSWebSocketShim.md +958 -0
- package/docs/reference/enumerations/ACLAction.md +7 -7
- package/docs/reference/enumerations/ApiErrorMessages.md +15 -15
- package/docs/reference/enumerations/ApiErrors.md +15 -15
- package/docs/reference/functions/createWebSocketStream.md +27 -0
- package/docs/reference/functions/isSqlDataSource.md +1 -1
- package/docs/reference/functions/readBody.md +29 -0
- package/docs/reference/functions/resolveCollectionName.md +1 -1
- package/docs/reference/functions/runChain.md +40 -0
- package/docs/reference/functions/snakeCase.md +1 -1
- package/docs/reference/globals.md +15 -0
- package/docs/reference/interfaces/ACLRecord.md +8 -8
- package/docs/reference/interfaces/AccessControlList.md +5 -5
- package/docs/reference/interfaces/AuthResult.md +5 -5
- package/docs/reference/interfaces/AuthStrategy.md +47 -9
- package/docs/reference/interfaces/CreateRequestOptions.md +11 -11
- package/docs/reference/interfaces/DeleteRequestOptions.md +13 -13
- package/docs/reference/interfaces/FindRequestOptions.md +12 -12
- package/docs/reference/interfaces/HttpRequest.md +147 -0
- package/docs/reference/interfaces/HttpResponse.md +164 -0
- package/docs/reference/interfaces/JWTAuthResult.md +9 -9
- package/docs/reference/interfaces/RepoCreateOptions.md +7 -7
- package/docs/reference/interfaces/RepoDeleteOptions.md +9 -9
- package/docs/reference/interfaces/RepoFindOptions.md +11 -11
- package/docs/reference/interfaces/RepoOperationOptions.md +6 -6
- package/docs/reference/interfaces/RepoUpdateOptions.md +8 -8
- package/docs/reference/interfaces/RequestOptions.md +10 -10
- package/docs/reference/interfaces/RequestWS.md +225 -0
- package/docs/reference/interfaces/TruncateRequestOptions.md +15 -15
- package/docs/reference/interfaces/UpdateRequestOptions.md +13 -13
- package/docs/reference/type-aliases/ErrorHandler.md +35 -0
- package/docs/reference/type-aliases/NextFunction.md +23 -0
- package/docs/reference/type-aliases/OneOrMany.md +1 -1
- package/docs/reference/type-aliases/OneOrNull.md +1 -1
- package/docs/reference/type-aliases/PartialBaseEntity.md +1 -1
- package/docs/reference/type-aliases/PartialSimpleEntity.md +1 -1
- package/docs/reference/type-aliases/RequestHandler.md +31 -0
- package/docs/reference/type-aliases/UpdateObject.md +1 -1
- package/docs/reference/type-aliases/WsUpgradeAuth.md +27 -0
- package/docs/reference/type-aliases/WsUpgradeAuthResult.md +47 -0
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: AuthResult
|
|
8
8
|
|
|
9
|
-
Defined in: [src/auth/AuthStrategy.ts:10](https://github.com/rapidrest/service-core/blob/
|
|
9
|
+
Defined in: [src/auth/AuthStrategy.ts:10](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/AuthStrategy.ts#L10)
|
|
10
10
|
|
|
11
11
|
Result returned by `AuthStrategy.authenticate()`.
|
|
12
12
|
|
|
@@ -20,7 +20,7 @@ Result returned by `AuthStrategy.authenticate()`.
|
|
|
20
20
|
|
|
21
21
|
> `optional` **data?**: `string`
|
|
22
22
|
|
|
23
|
-
Defined in: [src/auth/AuthStrategy.ts:12](https://github.com/rapidrest/service-core/blob/
|
|
23
|
+
Defined in: [src/auth/AuthStrategy.ts:12](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/AuthStrategy.ts#L12)
|
|
24
24
|
|
|
25
25
|
The raw auth data that was verified.
|
|
26
26
|
|
|
@@ -30,7 +30,7 @@ The raw auth data that was verified.
|
|
|
30
30
|
|
|
31
31
|
> **method**: `string`
|
|
32
32
|
|
|
33
|
-
Defined in: [src/auth/AuthStrategy.ts:14](https://github.com/rapidrest/service-core/blob/
|
|
33
|
+
Defined in: [src/auth/AuthStrategy.ts:14](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/AuthStrategy.ts#L14)
|
|
34
34
|
|
|
35
35
|
The name of the auth strategy that produced this result.
|
|
36
36
|
|
|
@@ -40,7 +40,7 @@ The name of the auth strategy that produced this result.
|
|
|
40
40
|
|
|
41
41
|
> `optional` **payload?**: `any`
|
|
42
42
|
|
|
43
|
-
Defined in: [src/auth/AuthStrategy.ts:16](https://github.com/rapidrest/service-core/blob/
|
|
43
|
+
Defined in: [src/auth/AuthStrategy.ts:16](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/AuthStrategy.ts#L16)
|
|
44
44
|
|
|
45
45
|
The fully decoded payload from the auth data.
|
|
46
46
|
|
|
@@ -50,6 +50,6 @@ The fully decoded payload from the auth data.
|
|
|
50
50
|
|
|
51
51
|
> `optional` **user?**: `JWTUser`
|
|
52
52
|
|
|
53
|
-
Defined in: [src/auth/AuthStrategy.ts:18](https://github.com/rapidrest/service-core/blob/
|
|
53
|
+
Defined in: [src/auth/AuthStrategy.ts:18](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/AuthStrategy.ts#L18)
|
|
54
54
|
|
|
55
55
|
The authenticated user profile, or `undefined` if authentication failed.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: AuthStrategy
|
|
8
8
|
|
|
9
|
-
Defined in: [src/auth/AuthStrategy.ts:24](https://github.com/rapidrest/service-core/blob/
|
|
9
|
+
Defined in: [src/auth/AuthStrategy.ts:24](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/AuthStrategy.ts#L24)
|
|
10
10
|
|
|
11
11
|
Describes an interface for implementing strategies that will perform authentication.
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ Describes an interface for implementing strategies that will perform authenticat
|
|
|
16
16
|
|
|
17
17
|
> `readonly` **name**: `string`
|
|
18
18
|
|
|
19
|
-
Defined in: [src/auth/AuthStrategy.ts:26](https://github.com/rapidrest/service-core/blob/
|
|
19
|
+
Defined in: [src/auth/AuthStrategy.ts:26](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/AuthStrategy.ts#L26)
|
|
20
20
|
|
|
21
21
|
The unique name of the strategy used to register with the `AuthMiddleware`.
|
|
22
22
|
|
|
@@ -24,25 +24,25 @@ The unique name of the strategy used to register with the `AuthMiddleware`.
|
|
|
24
24
|
|
|
25
25
|
### authenticate()
|
|
26
26
|
|
|
27
|
-
> **authenticate**(`req`, `res?`, `required?`):
|
|
27
|
+
> **authenticate**(`req`, `res?`, `required?`): `Promise`\<[`AuthResult`](AuthResult.md) \| `undefined`\>
|
|
28
28
|
|
|
29
|
-
Defined in: [src/auth/AuthStrategy.ts:37](https://github.com/rapidrest/service-core/blob/
|
|
29
|
+
Defined in: [src/auth/AuthStrategy.ts:37](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/AuthStrategy.ts#L37)
|
|
30
30
|
|
|
31
|
-
Attempts to perform authentication with the given request data. If authentication was successful, returns an
|
|
32
|
-
`AuthResult` containing the authentication details. If authentication fails and `required` is set to `true`
|
|
31
|
+
Attempts to perform authentication with the given request data. If authentication was successful, returns an
|
|
32
|
+
`AuthResult` containing the authentication details. If authentication fails and `required` is set to `true`
|
|
33
33
|
throws an error, otherwise returns `undefined`.
|
|
34
34
|
|
|
35
35
|
#### Parameters
|
|
36
36
|
|
|
37
37
|
##### req
|
|
38
38
|
|
|
39
|
-
`HttpRequest`
|
|
39
|
+
[`HttpRequest`](HttpRequest.md)
|
|
40
40
|
|
|
41
41
|
The request containing data to attempt authentication with.
|
|
42
42
|
|
|
43
43
|
##### res?
|
|
44
44
|
|
|
45
|
-
`HttpResponse`
|
|
45
|
+
[`HttpResponse`](HttpResponse.md)
|
|
46
46
|
|
|
47
47
|
The response to use when writing back directly to the client.
|
|
48
48
|
|
|
@@ -54,4 +54,42 @@ Set to `true` to if authentication is required to pass, otherwise set to `false`
|
|
|
54
54
|
|
|
55
55
|
#### Returns
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
`Promise`\<[`AuthResult`](AuthResult.md) \| `undefined`\>
|
|
58
|
+
|
|
59
|
+
***
|
|
60
|
+
|
|
61
|
+
### authenticateSync()
|
|
62
|
+
|
|
63
|
+
> **authenticateSync**(`req`, `res?`, `required?`): [`AuthResult`](AuthResult.md) \| `undefined`
|
|
64
|
+
|
|
65
|
+
Defined in: [src/auth/AuthStrategy.ts:50](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/AuthStrategy.ts#L50)
|
|
66
|
+
|
|
67
|
+
Attempts to perform authentication with the given request data. If authentication was successful, returns an
|
|
68
|
+
`AuthResult` containing the authentication details. If authentication fails and `required` is set to `true`
|
|
69
|
+
throws an error, otherwise returns `undefined`.
|
|
70
|
+
|
|
71
|
+
This is the synchronous version of `authenticate` that performs blocking based authentication.
|
|
72
|
+
|
|
73
|
+
#### Parameters
|
|
74
|
+
|
|
75
|
+
##### req
|
|
76
|
+
|
|
77
|
+
[`HttpRequest`](HttpRequest.md)
|
|
78
|
+
|
|
79
|
+
The request containing data to attempt authentication with.
|
|
80
|
+
|
|
81
|
+
##### res?
|
|
82
|
+
|
|
83
|
+
[`HttpResponse`](HttpResponse.md)
|
|
84
|
+
|
|
85
|
+
The response to use when writing back directly to the client.
|
|
86
|
+
|
|
87
|
+
##### required?
|
|
88
|
+
|
|
89
|
+
`boolean`
|
|
90
|
+
|
|
91
|
+
Set to `true` to if authentication is required to pass, otherwise set to `false`.
|
|
92
|
+
|
|
93
|
+
#### Returns
|
|
94
|
+
|
|
95
|
+
[`AuthResult`](AuthResult.md) \| `undefined`
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: CreateRequestOptions
|
|
8
8
|
|
|
9
|
-
Defined in: [src/routes/ModelRoute.ts:35](https://github.com/rapidrest/service-core/blob/
|
|
9
|
+
Defined in: [src/routes/ModelRoute.ts:35](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L35)
|
|
10
10
|
|
|
11
11
|
The set of options required by create request handlers.
|
|
12
12
|
|
|
@@ -20,7 +20,7 @@ The set of options required by create request handlers.
|
|
|
20
20
|
|
|
21
21
|
> `optional` **acl?**: [`AccessControlList`](AccessControlList.md) \| [`AccessControlList`](AccessControlList.md)[]
|
|
22
22
|
|
|
23
|
-
Defined in: [src/routes/ModelRoute.ts:36](https://github.com/rapidrest/service-core/blob/
|
|
23
|
+
Defined in: [src/routes/ModelRoute.ts:36](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L36)
|
|
24
24
|
|
|
25
25
|
***
|
|
26
26
|
|
|
@@ -28,7 +28,7 @@ Defined in: [src/routes/ModelRoute.ts:36](https://github.com/rapidrest/service-c
|
|
|
28
28
|
|
|
29
29
|
> `optional` **ignoreACL?**: `boolean`
|
|
30
30
|
|
|
31
|
-
Defined in: [src/models/RepoUtils.ts:32](https://github.com/rapidrest/service-core/blob/
|
|
31
|
+
Defined in: [src/models/RepoUtils.ts:32](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/models/RepoUtils.ts#L32)
|
|
32
32
|
|
|
33
33
|
Set to `true` to ignore the ACL permissions check.
|
|
34
34
|
|
|
@@ -42,7 +42,7 @@ Set to `true` to ignore the ACL permissions check.
|
|
|
42
42
|
|
|
43
43
|
> `optional` **pushChannels?**: `string`[]
|
|
44
44
|
|
|
45
|
-
Defined in: [src/routes/ModelRoute.ts:38](https://github.com/rapidrest/service-core/blob/
|
|
45
|
+
Defined in: [src/routes/ModelRoute.ts:38](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L38)
|
|
46
46
|
|
|
47
47
|
An additional list of channel names to send push notifications to.
|
|
48
48
|
|
|
@@ -56,7 +56,7 @@ An additional list of channel names to send push notifications to.
|
|
|
56
56
|
|
|
57
57
|
> `optional` **recordEvent?**: `boolean`
|
|
58
58
|
|
|
59
|
-
Defined in: [src/models/RepoUtils.ts:36](https://github.com/rapidrest/service-core/blob/
|
|
59
|
+
Defined in: [src/models/RepoUtils.ts:36](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/models/RepoUtils.ts#L36)
|
|
60
60
|
|
|
61
61
|
Indicates if a telemetry event should be broadcast for the request.
|
|
62
62
|
|
|
@@ -68,9 +68,9 @@ Indicates if a telemetry event should be broadcast for the request.
|
|
|
68
68
|
|
|
69
69
|
### req?
|
|
70
70
|
|
|
71
|
-
> `optional` **req?**: `HttpRequest`
|
|
71
|
+
> `optional` **req?**: [`HttpRequest`](HttpRequest.md)
|
|
72
72
|
|
|
73
|
-
Defined in: [src/routes/ModelRoute.ts:27](https://github.com/rapidrest/service-core/blob/
|
|
73
|
+
Defined in: [src/routes/ModelRoute.ts:27](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L27)
|
|
74
74
|
|
|
75
75
|
The originating client request.
|
|
76
76
|
|
|
@@ -82,9 +82,9 @@ The originating client request.
|
|
|
82
82
|
|
|
83
83
|
### res?
|
|
84
84
|
|
|
85
|
-
> `optional` **res?**: `HttpResponse`
|
|
85
|
+
> `optional` **res?**: [`HttpResponse`](HttpResponse.md)
|
|
86
86
|
|
|
87
|
-
Defined in: [src/routes/ModelRoute.ts:29](https://github.com/rapidrest/service-core/blob/
|
|
87
|
+
Defined in: [src/routes/ModelRoute.ts:29](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L29)
|
|
88
88
|
|
|
89
89
|
The outgoing client response.
|
|
90
90
|
|
|
@@ -98,7 +98,7 @@ The outgoing client response.
|
|
|
98
98
|
|
|
99
99
|
> `optional` **skipPush?**: `boolean`
|
|
100
100
|
|
|
101
|
-
Defined in: [src/routes/ModelRoute.ts:40](https://github.com/rapidrest/service-core/blob/
|
|
101
|
+
Defined in: [src/routes/ModelRoute.ts:40](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L40)
|
|
102
102
|
|
|
103
103
|
Set to `true` to not send a push notification.
|
|
104
104
|
|
|
@@ -112,7 +112,7 @@ Set to `true` to not send a push notification.
|
|
|
112
112
|
|
|
113
113
|
> `optional` **user?**: `JWTUser`
|
|
114
114
|
|
|
115
|
-
Defined in: [src/models/RepoUtils.ts:40](https://github.com/rapidrest/service-core/blob/
|
|
115
|
+
Defined in: [src/models/RepoUtils.ts:40](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/models/RepoUtils.ts#L40)
|
|
116
116
|
|
|
117
117
|
The authenticated user making the request.
|
|
118
118
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: DeleteRequestOptions
|
|
8
8
|
|
|
9
|
-
Defined in: [src/routes/ModelRoute.ts:46](https://github.com/rapidrest/service-core/blob/
|
|
9
|
+
Defined in: [src/routes/ModelRoute.ts:46](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L46)
|
|
10
10
|
|
|
11
11
|
The set of options required by delete request handlers.
|
|
12
12
|
|
|
@@ -24,7 +24,7 @@ The set of options required by delete request handlers.
|
|
|
24
24
|
|
|
25
25
|
> `optional` **ignoreACL?**: `boolean`
|
|
26
26
|
|
|
27
|
-
Defined in: [src/models/RepoUtils.ts:32](https://github.com/rapidrest/service-core/blob/
|
|
27
|
+
Defined in: [src/models/RepoUtils.ts:32](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/models/RepoUtils.ts#L32)
|
|
28
28
|
|
|
29
29
|
Set to `true` to ignore the ACL permissions check.
|
|
30
30
|
|
|
@@ -38,7 +38,7 @@ Set to `true` to ignore the ACL permissions check.
|
|
|
38
38
|
|
|
39
39
|
> `optional` **productUid?**: `string`
|
|
40
40
|
|
|
41
|
-
Defined in: [src/routes/ModelRoute.ts:48](https://github.com/rapidrest/service-core/blob/
|
|
41
|
+
Defined in: [src/routes/ModelRoute.ts:48](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L48)
|
|
42
42
|
|
|
43
43
|
The desired product uid of the resource to delete.
|
|
44
44
|
|
|
@@ -48,7 +48,7 @@ The desired product uid of the resource to delete.
|
|
|
48
48
|
|
|
49
49
|
> `optional` **purge?**: `boolean`
|
|
50
50
|
|
|
51
|
-
Defined in: [src/routes/ModelRoute.ts:50](https://github.com/rapidrest/service-core/blob/
|
|
51
|
+
Defined in: [src/routes/ModelRoute.ts:50](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L50)
|
|
52
52
|
|
|
53
53
|
Set to true to permanently remove the object from the database (if applicable).
|
|
54
54
|
|
|
@@ -58,7 +58,7 @@ Set to true to permanently remove the object from the database (if applicable).
|
|
|
58
58
|
|
|
59
59
|
> `optional` **pushChannels?**: `string`[]
|
|
60
60
|
|
|
61
|
-
Defined in: [src/routes/ModelRoute.ts:52](https://github.com/rapidrest/service-core/blob/
|
|
61
|
+
Defined in: [src/routes/ModelRoute.ts:52](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L52)
|
|
62
62
|
|
|
63
63
|
An additional list of channel names to send push notifications to.
|
|
64
64
|
|
|
@@ -72,7 +72,7 @@ An additional list of channel names to send push notifications to.
|
|
|
72
72
|
|
|
73
73
|
> `optional` **recordEvent?**: `boolean`
|
|
74
74
|
|
|
75
|
-
Defined in: [src/models/RepoUtils.ts:36](https://github.com/rapidrest/service-core/blob/
|
|
75
|
+
Defined in: [src/models/RepoUtils.ts:36](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/models/RepoUtils.ts#L36)
|
|
76
76
|
|
|
77
77
|
Indicates if a telemetry event should be broadcast for the request.
|
|
78
78
|
|
|
@@ -84,9 +84,9 @@ Indicates if a telemetry event should be broadcast for the request.
|
|
|
84
84
|
|
|
85
85
|
### req?
|
|
86
86
|
|
|
87
|
-
> `optional` **req?**: `HttpRequest`
|
|
87
|
+
> `optional` **req?**: [`HttpRequest`](HttpRequest.md)
|
|
88
88
|
|
|
89
|
-
Defined in: [src/routes/ModelRoute.ts:27](https://github.com/rapidrest/service-core/blob/
|
|
89
|
+
Defined in: [src/routes/ModelRoute.ts:27](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L27)
|
|
90
90
|
|
|
91
91
|
The originating client request.
|
|
92
92
|
|
|
@@ -98,9 +98,9 @@ The originating client request.
|
|
|
98
98
|
|
|
99
99
|
### res?
|
|
100
100
|
|
|
101
|
-
> `optional` **res?**: `HttpResponse`
|
|
101
|
+
> `optional` **res?**: [`HttpResponse`](HttpResponse.md)
|
|
102
102
|
|
|
103
|
-
Defined in: [src/routes/ModelRoute.ts:29](https://github.com/rapidrest/service-core/blob/
|
|
103
|
+
Defined in: [src/routes/ModelRoute.ts:29](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L29)
|
|
104
104
|
|
|
105
105
|
The outgoing client response.
|
|
106
106
|
|
|
@@ -114,7 +114,7 @@ The outgoing client response.
|
|
|
114
114
|
|
|
115
115
|
> `optional` **skipPush?**: `boolean`
|
|
116
116
|
|
|
117
|
-
Defined in: [src/routes/ModelRoute.ts:54](https://github.com/rapidrest/service-core/blob/
|
|
117
|
+
Defined in: [src/routes/ModelRoute.ts:54](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L54)
|
|
118
118
|
|
|
119
119
|
Set to `true` to not send a push notification.
|
|
120
120
|
|
|
@@ -128,7 +128,7 @@ Set to `true` to not send a push notification.
|
|
|
128
128
|
|
|
129
129
|
> `optional` **user?**: `JWTUser`
|
|
130
130
|
|
|
131
|
-
Defined in: [src/models/RepoUtils.ts:40](https://github.com/rapidrest/service-core/blob/
|
|
131
|
+
Defined in: [src/models/RepoUtils.ts:40](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/models/RepoUtils.ts#L40)
|
|
132
132
|
|
|
133
133
|
The authenticated user making the request.
|
|
134
134
|
|
|
@@ -142,6 +142,6 @@ The authenticated user making the request.
|
|
|
142
142
|
|
|
143
143
|
> `optional` **version?**: `string` \| `number`
|
|
144
144
|
|
|
145
|
-
Defined in: [src/routes/ModelRoute.ts:56](https://github.com/rapidrest/service-core/blob/
|
|
145
|
+
Defined in: [src/routes/ModelRoute.ts:56](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L56)
|
|
146
146
|
|
|
147
147
|
The desired version number of the resource to delete.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: FindRequestOptions
|
|
8
8
|
|
|
9
|
-
Defined in: [src/routes/ModelRoute.ts:62](https://github.com/rapidrest/service-core/blob/
|
|
9
|
+
Defined in: [src/routes/ModelRoute.ts:62](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L62)
|
|
10
10
|
|
|
11
11
|
The set of options required by search request handlers.
|
|
12
12
|
|
|
@@ -20,7 +20,7 @@ The set of options required by search request handlers.
|
|
|
20
20
|
|
|
21
21
|
> `optional` **ignoreACL?**: `boolean`
|
|
22
22
|
|
|
23
|
-
Defined in: [src/models/RepoUtils.ts:32](https://github.com/rapidrest/service-core/blob/
|
|
23
|
+
Defined in: [src/models/RepoUtils.ts:32](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/models/RepoUtils.ts#L32)
|
|
24
24
|
|
|
25
25
|
Set to `true` to ignore the ACL permissions check.
|
|
26
26
|
|
|
@@ -34,7 +34,7 @@ Set to `true` to ignore the ACL permissions check.
|
|
|
34
34
|
|
|
35
35
|
> `optional` **params?**: `any`
|
|
36
36
|
|
|
37
|
-
Defined in: [src/routes/ModelRoute.ts:64](https://github.com/rapidrest/service-core/blob/
|
|
37
|
+
Defined in: [src/routes/ModelRoute.ts:64](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L64)
|
|
38
38
|
|
|
39
39
|
The list of URL parameters to use in the search.
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@ The list of URL parameters to use in the search.
|
|
|
44
44
|
|
|
45
45
|
> `optional` **pushChannels?**: `string`[]
|
|
46
46
|
|
|
47
|
-
Defined in: [src/models/RepoUtils.ts:34](https://github.com/rapidrest/service-core/blob/
|
|
47
|
+
Defined in: [src/models/RepoUtils.ts:34](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/models/RepoUtils.ts#L34)
|
|
48
48
|
|
|
49
49
|
An additional list of channel names to send push notifications to.
|
|
50
50
|
|
|
@@ -58,7 +58,7 @@ An additional list of channel names to send push notifications to.
|
|
|
58
58
|
|
|
59
59
|
> **query**: `any`
|
|
60
60
|
|
|
61
|
-
Defined in: [src/routes/ModelRoute.ts:66](https://github.com/rapidrest/service-core/blob/
|
|
61
|
+
Defined in: [src/routes/ModelRoute.ts:66](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L66)
|
|
62
62
|
|
|
63
63
|
The list of query parameters to use in the search.
|
|
64
64
|
|
|
@@ -68,7 +68,7 @@ The list of query parameters to use in the search.
|
|
|
68
68
|
|
|
69
69
|
> `optional` **recordEvent?**: `boolean`
|
|
70
70
|
|
|
71
|
-
Defined in: [src/models/RepoUtils.ts:36](https://github.com/rapidrest/service-core/blob/
|
|
71
|
+
Defined in: [src/models/RepoUtils.ts:36](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/models/RepoUtils.ts#L36)
|
|
72
72
|
|
|
73
73
|
Indicates if a telemetry event should be broadcast for the request.
|
|
74
74
|
|
|
@@ -80,9 +80,9 @@ Indicates if a telemetry event should be broadcast for the request.
|
|
|
80
80
|
|
|
81
81
|
### req?
|
|
82
82
|
|
|
83
|
-
> `optional` **req?**: `HttpRequest`
|
|
83
|
+
> `optional` **req?**: [`HttpRequest`](HttpRequest.md)
|
|
84
84
|
|
|
85
|
-
Defined in: [src/routes/ModelRoute.ts:27](https://github.com/rapidrest/service-core/blob/
|
|
85
|
+
Defined in: [src/routes/ModelRoute.ts:27](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L27)
|
|
86
86
|
|
|
87
87
|
The originating client request.
|
|
88
88
|
|
|
@@ -94,9 +94,9 @@ The originating client request.
|
|
|
94
94
|
|
|
95
95
|
### res?
|
|
96
96
|
|
|
97
|
-
> `optional` **res?**: `HttpResponse`
|
|
97
|
+
> `optional` **res?**: [`HttpResponse`](HttpResponse.md)
|
|
98
98
|
|
|
99
|
-
Defined in: [src/routes/ModelRoute.ts:29](https://github.com/rapidrest/service-core/blob/
|
|
99
|
+
Defined in: [src/routes/ModelRoute.ts:29](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/ModelRoute.ts#L29)
|
|
100
100
|
|
|
101
101
|
The outgoing client response.
|
|
102
102
|
|
|
@@ -110,7 +110,7 @@ The outgoing client response.
|
|
|
110
110
|
|
|
111
111
|
> `optional` **skipPush?**: `boolean`
|
|
112
112
|
|
|
113
|
-
Defined in: [src/models/RepoUtils.ts:38](https://github.com/rapidrest/service-core/blob/
|
|
113
|
+
Defined in: [src/models/RepoUtils.ts:38](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/models/RepoUtils.ts#L38)
|
|
114
114
|
|
|
115
115
|
Set to `true` to not send a push notification.
|
|
116
116
|
|
|
@@ -124,7 +124,7 @@ Set to `true` to not send a push notification.
|
|
|
124
124
|
|
|
125
125
|
> `optional` **user?**: `JWTUser`
|
|
126
126
|
|
|
127
|
-
Defined in: [src/models/RepoUtils.ts:40](https://github.com/rapidrest/service-core/blob/
|
|
127
|
+
Defined in: [src/models/RepoUtils.ts:40](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/models/RepoUtils.ts#L40)
|
|
128
128
|
|
|
129
129
|
The authenticated user making the request.
|
|
130
130
|
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
[**@rapidrest/service-core**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rapidrest/service-core](../globals.md) / HttpRequest
|
|
6
|
+
|
|
7
|
+
# Interface: HttpRequest
|
|
8
|
+
|
|
9
|
+
Defined in: [src/http/types.ts:10](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L10)
|
|
10
|
+
|
|
11
|
+
Framework-agnostic HTTP request interface. Mirrors the Express `Request` surface used throughout
|
|
12
|
+
this codebase so that route handlers, middleware, and utilities require no changes when the
|
|
13
|
+
underlying HTTP server changes.
|
|
14
|
+
|
|
15
|
+
## Extended by
|
|
16
|
+
|
|
17
|
+
- [`RequestWS`](RequestWS.md)
|
|
18
|
+
|
|
19
|
+
## Indexable
|
|
20
|
+
|
|
21
|
+
> \[`key`: `string`\]: `any`
|
|
22
|
+
|
|
23
|
+
Allow arbitrary per-request properties (e.g. req.websocket, req.wsHandled).
|
|
24
|
+
|
|
25
|
+
## Properties
|
|
26
|
+
|
|
27
|
+
### authPayload?
|
|
28
|
+
|
|
29
|
+
> `optional` **authPayload?**: `any`
|
|
30
|
+
|
|
31
|
+
Defined in: [src/http/types.ts:26](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L26)
|
|
32
|
+
|
|
33
|
+
Full decoded JWT payload, set by JWT auth middleware.
|
|
34
|
+
|
|
35
|
+
***
|
|
36
|
+
|
|
37
|
+
### authToken?
|
|
38
|
+
|
|
39
|
+
> `optional` **authToken?**: `string`
|
|
40
|
+
|
|
41
|
+
Defined in: [src/http/types.ts:28](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L28)
|
|
42
|
+
|
|
43
|
+
Raw JWT token string, set by JWT auth middleware.
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### body
|
|
48
|
+
|
|
49
|
+
> **body**: `any`
|
|
50
|
+
|
|
51
|
+
Defined in: [src/http/types.ts:17](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L17)
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### cookies
|
|
56
|
+
|
|
57
|
+
> **cookies**: `Record`\<`string`, `string`\>
|
|
58
|
+
|
|
59
|
+
Defined in: [src/http/types.ts:19](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L19)
|
|
60
|
+
|
|
61
|
+
***
|
|
62
|
+
|
|
63
|
+
### headers
|
|
64
|
+
|
|
65
|
+
> **headers**: `Record`\<`string`, `string` \| `string`[] \| `undefined`\>
|
|
66
|
+
|
|
67
|
+
Defined in: [src/http/types.ts:14](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L14)
|
|
68
|
+
|
|
69
|
+
***
|
|
70
|
+
|
|
71
|
+
### method
|
|
72
|
+
|
|
73
|
+
> **method**: `string`
|
|
74
|
+
|
|
75
|
+
Defined in: [src/http/types.ts:11](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L11)
|
|
76
|
+
|
|
77
|
+
***
|
|
78
|
+
|
|
79
|
+
### params
|
|
80
|
+
|
|
81
|
+
> **params**: `Record`\<`string`, `string`\>
|
|
82
|
+
|
|
83
|
+
Defined in: [src/http/types.ts:15](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L15)
|
|
84
|
+
|
|
85
|
+
***
|
|
86
|
+
|
|
87
|
+
### path
|
|
88
|
+
|
|
89
|
+
> **path**: `string`
|
|
90
|
+
|
|
91
|
+
Defined in: [src/http/types.ts:12](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L12)
|
|
92
|
+
|
|
93
|
+
***
|
|
94
|
+
|
|
95
|
+
### query
|
|
96
|
+
|
|
97
|
+
> **query**: `Record`\<`string`, `string` \| `string`[]\>
|
|
98
|
+
|
|
99
|
+
Defined in: [src/http/types.ts:16](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L16)
|
|
100
|
+
|
|
101
|
+
***
|
|
102
|
+
|
|
103
|
+
### rawBody?
|
|
104
|
+
|
|
105
|
+
> `optional` **rawBody?**: `Buffer`\<`ArrayBufferLike`\>
|
|
106
|
+
|
|
107
|
+
Defined in: [src/http/types.ts:18](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L18)
|
|
108
|
+
|
|
109
|
+
***
|
|
110
|
+
|
|
111
|
+
### signedCookies
|
|
112
|
+
|
|
113
|
+
> **signedCookies**: `Record`\<`string`, `string`\>
|
|
114
|
+
|
|
115
|
+
Defined in: [src/http/types.ts:20](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L20)
|
|
116
|
+
|
|
117
|
+
***
|
|
118
|
+
|
|
119
|
+
### socket
|
|
120
|
+
|
|
121
|
+
> **socket**: `object`
|
|
122
|
+
|
|
123
|
+
Defined in: [src/http/types.ts:22](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L22)
|
|
124
|
+
|
|
125
|
+
Minimal socket interface; populated with remote address for IP extraction.
|
|
126
|
+
|
|
127
|
+
#### remoteAddress?
|
|
128
|
+
|
|
129
|
+
> `optional` **remoteAddress?**: `string`
|
|
130
|
+
|
|
131
|
+
***
|
|
132
|
+
|
|
133
|
+
### url
|
|
134
|
+
|
|
135
|
+
> **url**: `string`
|
|
136
|
+
|
|
137
|
+
Defined in: [src/http/types.ts:13](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L13)
|
|
138
|
+
|
|
139
|
+
***
|
|
140
|
+
|
|
141
|
+
### user?
|
|
142
|
+
|
|
143
|
+
> `optional` **user?**: `any`
|
|
144
|
+
|
|
145
|
+
Defined in: [src/http/types.ts:24](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/types.ts#L24)
|
|
146
|
+
|
|
147
|
+
Set by JWT auth middleware after successful token verification.
|