@rapidrest/service-core 1.0.0-beta.2 → 1.0.0-beta.4

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 (152) hide show
  1. package/dist/lib/OpenApiSpec.js +1 -1
  2. package/dist/lib/OpenApiSpec.js.map +1 -1
  3. package/dist/lib/models/ModelUtils.js +1 -1
  4. package/dist/lib/models/ModelUtils.js.map +1 -1
  5. package/dist/lib/models/RepoUtils.js +2 -2
  6. package/dist/lib/models/RepoUtils.js.map +1 -1
  7. package/dist/lib/routes/MetricsRoute.js +1 -1
  8. package/dist/lib/routes/MetricsRoute.js.map +1 -1
  9. package/dist/lib/routes/RouteUtils.js +1 -1
  10. package/dist/lib/routes/RouteUtils.js.map +1 -1
  11. package/dist/types/models/RepoUtils.d.ts +2 -1
  12. package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/MongoRepository.md +1 -1
  13. package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/RedisConnection.md +1 -1
  14. package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/Repository.md +1 -1
  15. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Default.md +1 -1
  16. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Description.md +1 -1
  17. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Document.md +1 -1
  18. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Example.md +1 -1
  19. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Format.md +1 -1
  20. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Returns.md +1 -1
  21. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Summary.md +1 -1
  22. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Tags.md +1 -1
  23. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/TypeInfo.md +1 -1
  24. package/docs/reference/@rapidrest/namespaces/DocDecorators/interfaces/DocumentsData.md +7 -7
  25. package/docs/reference/@rapidrest/namespaces/EventDecorators/functions/EventListener.md +1 -1
  26. package/docs/reference/@rapidrest/namespaces/EventDecorators/functions/OnEvent.md +1 -1
  27. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Cache.md +1 -1
  28. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/ChildEntity.md +1 -1
  29. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/DataStore.md +1 -1
  30. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Identifier.md +1 -1
  31. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Protect.md +1 -1
  32. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Reference.md +1 -1
  33. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Shard.md +1 -1
  34. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/TrackChanges.md +1 -1
  35. package/docs/reference/@rapidrest/namespaces/ModelDecorators/interfaces/PendingTypeOrmColumn.md +5 -5
  36. package/docs/reference/@rapidrest/namespaces/ModelDecorators/variables/pendingTypeOrmColumns.md +1 -1
  37. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Column.md +1 -1
  38. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Entity.md +1 -1
  39. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Index.md +3 -3
  40. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/PrimaryColumn.md +1 -1
  41. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Unique.md +3 -3
  42. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getColumnMetadata.md +1 -1
  43. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getEntityName.md +1 -1
  44. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getIndexMetadata.md +1 -1
  45. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/ColumnInfo.md +4 -4
  46. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/ColumnOptions.md +5 -5
  47. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/IndexInfo.md +4 -4
  48. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/IndexOptions.md +5 -5
  49. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/After.md +1 -1
  50. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Auth.md +1 -1
  51. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/AuthResult.md +1 -1
  52. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Before.md +1 -1
  53. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/ContentType.md +1 -1
  54. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Delete.md +1 -1
  55. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Get.md +1 -1
  56. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Head.md +1 -1
  57. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Header.md +1 -1
  58. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Method.md +1 -1
  59. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Model.md +1 -1
  60. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Options.md +1 -1
  61. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Param.md +1 -1
  62. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Patch.md +1 -1
  63. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Post.md +1 -1
  64. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Protect.md +1 -1
  65. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Put.md +1 -1
  66. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Query.md +1 -1
  67. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Request.md +1 -1
  68. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/RequiresRole.md +1 -1
  69. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Response.md +1 -1
  70. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Route.md +1 -1
  71. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Socket.md +1 -1
  72. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/User.md +1 -1
  73. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Validate.md +1 -1
  74. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/WebSocket.md +1 -1
  75. package/docs/reference/classes/ACLUtils.md +9 -9
  76. package/docs/reference/classes/AdminRoute.md +3 -3
  77. package/docs/reference/classes/AuthMiddleware.md +6 -6
  78. package/docs/reference/classes/BackgroundService.md +8 -8
  79. package/docs/reference/classes/BackgroundServiceManager.md +7 -7
  80. package/docs/reference/classes/BaseEntity.md +6 -6
  81. package/docs/reference/classes/BaseMongoEntity.md +7 -7
  82. package/docs/reference/classes/BasicStrategy.md +5 -5
  83. package/docs/reference/classes/BasicStrategyOptions.md +7 -7
  84. package/docs/reference/classes/BulkError.md +3 -3
  85. package/docs/reference/classes/ConnectionManager.md +4 -4
  86. package/docs/reference/classes/EventListenerManager.md +5 -5
  87. package/docs/reference/classes/HttpRouter.md +16 -16
  88. package/docs/reference/classes/JWTStrategy.md +5 -5
  89. package/docs/reference/classes/JWTStrategyOptions.md +8 -8
  90. package/docs/reference/classes/MetricsRoute.md +4 -4
  91. package/docs/reference/classes/ModelRoute.md +26 -26
  92. package/docs/reference/classes/ModelUtils.md +50 -50
  93. package/docs/reference/classes/MongoConnection.md +12 -12
  94. package/docs/reference/classes/MongoRepository.md +17 -17
  95. package/docs/reference/classes/MongoSchemaSync.md +3 -3
  96. package/docs/reference/classes/NetUtils.md +3 -3
  97. package/docs/reference/classes/NotificationUtils.md +3 -3
  98. package/docs/reference/classes/ObjectFactory.md +3 -3
  99. package/docs/reference/classes/OpenAPIRoute.md +5 -5
  100. package/docs/reference/classes/OpenApiSpec.md +45 -45
  101. package/docs/reference/classes/RecoverableBaseEntity.md +7 -7
  102. package/docs/reference/classes/RecoverableBaseMongoEntity.md +8 -8
  103. package/docs/reference/classes/RedisTransport.md +4 -4
  104. package/docs/reference/classes/RepoUtils.md +28 -28
  105. package/docs/reference/classes/RouteUtils.md +7 -7
  106. package/docs/reference/classes/Server.md +26 -26
  107. package/docs/reference/classes/SimpleEntity.md +3 -3
  108. package/docs/reference/classes/SimpleMongoEntity.md +4 -4
  109. package/docs/reference/classes/StatusExtraData.md +4 -4
  110. package/docs/reference/classes/StatusRoute.md +1 -1
  111. package/docs/reference/classes/UWSRequest.md +16 -16
  112. package/docs/reference/classes/UWSResponse.md +13 -13
  113. package/docs/reference/classes/UWSWebSocketShim.md +5 -5
  114. package/docs/reference/enumerations/ACLAction.md +7 -7
  115. package/docs/reference/enumerations/ApiErrorMessages.md +15 -15
  116. package/docs/reference/enumerations/ApiErrors.md +15 -15
  117. package/docs/reference/functions/createWebSocketStream.md +1 -1
  118. package/docs/reference/functions/isSqlDataSource.md +1 -1
  119. package/docs/reference/functions/readBody.md +1 -1
  120. package/docs/reference/functions/resolveCollectionName.md +1 -1
  121. package/docs/reference/functions/runChain.md +1 -1
  122. package/docs/reference/functions/snakeCase.md +1 -1
  123. package/docs/reference/interfaces/ACLRecord.md +8 -8
  124. package/docs/reference/interfaces/AccessControlList.md +5 -5
  125. package/docs/reference/interfaces/AuthResult.md +5 -5
  126. package/docs/reference/interfaces/AuthStrategy.md +4 -4
  127. package/docs/reference/interfaces/CreateRequestOptions.md +9 -9
  128. package/docs/reference/interfaces/DeleteRequestOptions.md +11 -11
  129. package/docs/reference/interfaces/FindRequestOptions.md +10 -10
  130. package/docs/reference/interfaces/HttpRequest.md +15 -15
  131. package/docs/reference/interfaces/HttpResponse.md +11 -11
  132. package/docs/reference/interfaces/JWTAuthResult.md +6 -6
  133. package/docs/reference/interfaces/RepoCreateOptions.md +7 -7
  134. package/docs/reference/interfaces/RepoDeleteOptions.md +9 -9
  135. package/docs/reference/interfaces/RepoFindOptions.md +11 -11
  136. package/docs/reference/interfaces/RepoOperationOptions.md +6 -6
  137. package/docs/reference/interfaces/RepoUpdateOptions.md +8 -8
  138. package/docs/reference/interfaces/RequestOptions.md +8 -8
  139. package/docs/reference/interfaces/RequestWS.md +17 -17
  140. package/docs/reference/interfaces/TruncateRequestOptions.md +13 -13
  141. package/docs/reference/interfaces/UpdateRequestOptions.md +11 -11
  142. package/docs/reference/type-aliases/ErrorHandler.md +1 -1
  143. package/docs/reference/type-aliases/NextFunction.md +1 -1
  144. package/docs/reference/type-aliases/OneOrMany.md +1 -1
  145. package/docs/reference/type-aliases/OneOrNull.md +1 -1
  146. package/docs/reference/type-aliases/PartialBaseEntity.md +1 -1
  147. package/docs/reference/type-aliases/PartialSimpleEntity.md +1 -1
  148. package/docs/reference/type-aliases/RequestHandler.md +1 -1
  149. package/docs/reference/type-aliases/UpdateObject.md +1 -1
  150. package/docs/reference/type-aliases/WsUpgradeAuth.md +1 -1
  151. package/docs/reference/type-aliases/WsUpgradeAuthResult.md +5 -5
  152. package/package.json +3 -3
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: BasicStrategyOptions
8
8
 
9
- Defined in: [src/auth/BasicStrategy.ts:13](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/BasicStrategy.ts#L13)
9
+ Defined in: [src/auth/BasicStrategy.ts:13](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/BasicStrategy.ts#L13)
10
10
 
11
11
  Describes the configuration options that can be used to initialize BasicStrategy.
12
12
 
@@ -30,7 +30,7 @@ Jean-Philippe Steinmetz
30
30
 
31
31
  > **allowQueryParam**: `boolean` = `false`
32
32
 
33
- Defined in: [src/auth/BasicStrategy.ts:25](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/BasicStrategy.ts#L25)
33
+ Defined in: [src/auth/BasicStrategy.ts:25](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/BasicStrategy.ts#L25)
34
34
 
35
35
  Set to `true` to allow credentials to be supplied via the `queryKey` URL parameter.
36
36
  Disabled by default — query parameters appear in server logs, browser history, and
@@ -42,7 +42,7 @@ Referer headers, which permanently exposes credentials outside the application.
42
42
 
43
43
  > **headerKey**: `string` = `"authorization"`
44
44
 
45
- Defined in: [src/auth/BasicStrategy.ts:15](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/BasicStrategy.ts#L15)
45
+ Defined in: [src/auth/BasicStrategy.ts:15](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/BasicStrategy.ts#L15)
46
46
 
47
47
  The name of the header to look for when performing header based authentication. Default value is `Authorization`.
48
48
 
@@ -52,7 +52,7 @@ The name of the header to look for when performing header based authentication.
52
52
 
53
53
  > **headerScheme**: `string` = `"basic"`
54
54
 
55
- Defined in: [src/auth/BasicStrategy.ts:17](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/BasicStrategy.ts#L17)
55
+ Defined in: [src/auth/BasicStrategy.ts:17](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/BasicStrategy.ts#L17)
56
56
 
57
57
  The authorization scheme type when using header based authentication. Default value is `jwt`.
58
58
 
@@ -62,7 +62,7 @@ The authorization scheme type when using header based authentication. Default va
62
62
 
63
63
  > **queryKey**: `string` = `"auth_basic"`
64
64
 
65
- Defined in: [src/auth/BasicStrategy.ts:19](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/BasicStrategy.ts#L19)
65
+ Defined in: [src/auth/BasicStrategy.ts:19](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/BasicStrategy.ts#L19)
66
66
 
67
67
  The name of the request query parameter to retrieve the token from when using query based authentication. Default value is `auth_basic`.
68
68
 
@@ -72,7 +72,7 @@ The name of the request query parameter to retrieve the token from when using qu
72
72
 
73
73
  > **verify**(`uid`, `secret`): `JWTUser` \| `Promise`\<`JWTUser` \| `undefined`\> \| `undefined`
74
74
 
75
- Defined in: [src/auth/BasicStrategy.ts:27](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/BasicStrategy.ts#L27)
75
+ Defined in: [src/auth/BasicStrategy.ts:27](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/BasicStrategy.ts#L27)
76
76
 
77
77
  Override this function to handle asynchronous (non-blocking) verification of the login info.
78
78
 
@@ -96,7 +96,7 @@ Override this function to handle asynchronous (non-blocking) verification of the
96
96
 
97
97
  > **verifySync**(`uid`, `secret`): `JWTUser` \| `undefined`
98
98
 
99
- Defined in: [src/auth/BasicStrategy.ts:31](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/BasicStrategy.ts#L31)
99
+ Defined in: [src/auth/BasicStrategy.ts:31](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/BasicStrategy.ts#L31)
100
100
 
101
101
  Override this function to handle synchronous (blocking) verification of the login info.
102
102
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: BulkError
8
8
 
9
- Defined in: [src/BulkError.ts:6](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/BulkError.ts#L6)
9
+ Defined in: [src/BulkError.ts:6](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/BulkError.ts#L6)
10
10
 
11
11
  An error take that takes an array of other errors.
12
12
 
@@ -20,7 +20,7 @@ An error take that takes an array of other errors.
20
20
 
21
21
  > **new BulkError**(`errs`, `code`, `defaultStatus`, `message?`): `BulkError`
22
22
 
23
- Defined in: [src/BulkError.ts:12](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/BulkError.ts#L12)
23
+ Defined in: [src/BulkError.ts:12](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/BulkError.ts#L12)
24
24
 
25
25
  #### Parameters
26
26
 
@@ -68,7 +68,7 @@ The unique code of the error.
68
68
 
69
69
  > `readonly` **errors**: (`Error` \| `null`)[] = `[]`
70
70
 
71
- Defined in: [src/BulkError.ts:10](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/BulkError.ts#L10)
71
+ Defined in: [src/BulkError.ts:10](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/BulkError.ts#L10)
72
72
 
73
73
  The list of errors that have been thrown.
74
74
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: ConnectionManager
8
8
 
9
- Defined in: [src/database/ConnectionManager.ts:17](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/database/ConnectionManager.ts#L17)
9
+ Defined in: [src/database/ConnectionManager.ts:17](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/database/ConnectionManager.ts#L17)
10
10
 
11
11
  Provides database connection management.
12
12
 
@@ -30,7 +30,7 @@ Jean-Philippe Steinmetz
30
30
 
31
31
  > **connections**: `Map`\<`string`, `Redis` \| `DataSource` \| [`MongoConnection`](MongoConnection.md)\>
32
32
 
33
- Defined in: [src/database/ConnectionManager.ts:18](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/database/ConnectionManager.ts#L18)
33
+ Defined in: [src/database/ConnectionManager.ts:18](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/database/ConnectionManager.ts#L18)
34
34
 
35
35
  ## Methods
36
36
 
@@ -38,7 +38,7 @@ Defined in: [src/database/ConnectionManager.ts:18](https://github.com/rapidrest/
38
38
 
39
39
  > **connect**(`datastores`, `models`): `Promise`\<`void`\>
40
40
 
41
- Defined in: [src/database/ConnectionManager.ts:60](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/database/ConnectionManager.ts#L60)
41
+ Defined in: [src/database/ConnectionManager.ts:60](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/database/ConnectionManager.ts#L60)
42
42
 
43
43
  Attempts to initiate all database connections as defined in the config.
44
44
 
@@ -66,7 +66,7 @@ A map of model names and associated class definitions to establish database conn
66
66
 
67
67
  > **disconnect**(): `Promise`\<`void`\>
68
68
 
69
- Defined in: [src/database/ConnectionManager.ts:136](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/database/ConnectionManager.ts#L136)
69
+ Defined in: [src/database/ConnectionManager.ts:136](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/database/ConnectionManager.ts#L136)
70
70
 
71
71
  Attempts to disconnect all active database connections.
72
72
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: EventListenerManager
8
8
 
9
- Defined in: [src/EventListenerManager.ts:18](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/EventListenerManager.ts#L18)
9
+ Defined in: [src/EventListenerManager.ts:18](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/EventListenerManager.ts#L18)
10
10
 
11
11
  The `EventListenerManager` is responsible for managing event handlers and processing of incoming
12
12
  events from the configured redis pubsub channels. An event handler is any function that has been
@@ -25,7 +25,7 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
25
25
 
26
26
  > **new EventListenerManager**(`objectFactory`, `redis`): `EventListenerManager`
27
27
 
28
- Defined in: [src/EventListenerManager.ts:27](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/EventListenerManager.ts#L27)
28
+ Defined in: [src/EventListenerManager.ts:27](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/EventListenerManager.ts#L27)
29
29
 
30
30
  #### Parameters
31
31
 
@@ -47,7 +47,7 @@ Defined in: [src/EventListenerManager.ts:27](https://github.com/rapidrest/servic
47
47
 
48
48
  > **destroy**(): `Promise`\<`void`\>
49
49
 
50
- Defined in: [src/EventListenerManager.ts:77](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/EventListenerManager.ts#L77)
50
+ Defined in: [src/EventListenerManager.ts:77](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/EventListenerManager.ts#L77)
51
51
 
52
52
  #### Returns
53
53
 
@@ -59,7 +59,7 @@ Defined in: [src/EventListenerManager.ts:77](https://github.com/rapidrest/servic
59
59
 
60
60
  > **init**(): `Promise`\<`void`\>
61
61
 
62
- Defined in: [src/EventListenerManager.ts:33](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/EventListenerManager.ts#L33)
62
+ Defined in: [src/EventListenerManager.ts:33](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/EventListenerManager.ts#L33)
63
63
 
64
64
  #### Returns
65
65
 
@@ -71,7 +71,7 @@ Defined in: [src/EventListenerManager.ts:33](https://github.com/rapidrest/servic
71
71
 
72
72
  > **register**(`obj`): `void`
73
73
 
74
- Defined in: [src/EventListenerManager.ts:128](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/EventListenerManager.ts#L128)
74
+ Defined in: [src/EventListenerManager.ts:128](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/EventListenerManager.ts#L128)
75
75
 
76
76
  Registers the given object to be notified of events that arrive.
77
77
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: HttpRouter
8
8
 
9
- Defined in: [src/http/Router.ts:214](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L214)
9
+ Defined in: [src/http/Router.ts:214](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L214)
10
10
 
11
11
  Thin Express-compatible wrapper over `uWS.TemplatedApp`.
12
12
 
@@ -29,7 +29,7 @@ Also supports:
29
29
 
30
30
  > **new HttpRouter**(`uwsApp`): `HttpRouter`
31
31
 
32
- Defined in: [src/http/Router.ts:226](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L226)
32
+ Defined in: [src/http/Router.ts:226](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L226)
33
33
 
34
34
  #### Parameters
35
35
 
@@ -47,7 +47,7 @@ Defined in: [src/http/Router.ts:226](https://github.com/rapidrest/service-core/b
47
47
 
48
48
  > **listenPort**: `number` = `0`
49
49
 
50
- Defined in: [src/http/Router.ts:224](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L224)
50
+ Defined in: [src/http/Router.ts:224](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L224)
51
51
 
52
52
  The port the server is currently listening on (set after a successful `listen()` call).
53
53
 
@@ -59,7 +59,7 @@ The port the server is currently listening on (set after a successful `listen()`
59
59
 
60
60
  > **get** **isListening**(): `boolean`
61
61
 
62
- Defined in: [src/http/Router.ts:231](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L231)
62
+ Defined in: [src/http/Router.ts:231](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L231)
63
63
 
64
64
  Returns `true` if the server is currently listening.
65
65
 
@@ -73,7 +73,7 @@ Returns `true` if the server is currently listening.
73
73
 
74
74
  > **close**(): `void`
75
75
 
76
- Defined in: [src/http/Router.ts:471](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L471)
76
+ Defined in: [src/http/Router.ts:471](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L471)
77
77
 
78
78
  Closes the listen socket, stopping the server from accepting new connections.
79
79
 
@@ -87,7 +87,7 @@ Closes the listen socket, stopping the server from accepting new connections.
87
87
 
88
88
  > **delete**(`routePath`, ...`handlers`): `this`
89
89
 
90
- Defined in: [src/http/Router.ts:275](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L275)
90
+ Defined in: [src/http/Router.ts:275](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L275)
91
91
 
92
92
  #### Parameters
93
93
 
@@ -109,7 +109,7 @@ Defined in: [src/http/Router.ts:275](https://github.com/rapidrest/service-core/b
109
109
 
110
110
  > **get**(`routePath`, ...`handlers`): `this`
111
111
 
112
- Defined in: [src/http/Router.ts:257](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L257)
112
+ Defined in: [src/http/Router.ts:257](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L257)
113
113
 
114
114
  #### Parameters
115
115
 
@@ -131,7 +131,7 @@ Defined in: [src/http/Router.ts:257](https://github.com/rapidrest/service-core/b
131
131
 
132
132
  > **head**(`routePath`, ...`handlers`): `this`
133
133
 
134
- Defined in: [src/http/Router.ts:287](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L287)
134
+ Defined in: [src/http/Router.ts:287](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L287)
135
135
 
136
136
  #### Parameters
137
137
 
@@ -153,7 +153,7 @@ Defined in: [src/http/Router.ts:287](https://github.com/rapidrest/service-core/b
153
153
 
154
154
  > **listen**(`host`, `port`): `Promise`\<`void`\>
155
155
 
156
- Defined in: [src/http/Router.ts:450](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L450)
156
+ Defined in: [src/http/Router.ts:450](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L450)
157
157
 
158
158
  Starts listening on the given host and port.
159
159
  Resolves when the server is ready; rejects if the port cannot be bound.
@@ -178,7 +178,7 @@ Resolves when the server is ready; rejects if the port cannot be bound.
178
178
 
179
179
  > **options**(`routePath`, ...`handlers`): `this`
180
180
 
181
- Defined in: [src/http/Router.ts:294](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L294)
181
+ Defined in: [src/http/Router.ts:294](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L294)
182
182
 
183
183
  #### Parameters
184
184
 
@@ -200,7 +200,7 @@ Defined in: [src/http/Router.ts:294](https://github.com/rapidrest/service-core/b
200
200
 
201
201
  > **patch**(`routePath`, ...`handlers`): `this`
202
202
 
203
- Defined in: [src/http/Router.ts:281](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L281)
203
+ Defined in: [src/http/Router.ts:281](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L281)
204
204
 
205
205
  #### Parameters
206
206
 
@@ -222,7 +222,7 @@ Defined in: [src/http/Router.ts:281](https://github.com/rapidrest/service-core/b
222
222
 
223
223
  > **post**(`routePath`, ...`handlers`): `this`
224
224
 
225
- Defined in: [src/http/Router.ts:263](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L263)
225
+ Defined in: [src/http/Router.ts:263](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L263)
226
226
 
227
227
  #### Parameters
228
228
 
@@ -244,7 +244,7 @@ Defined in: [src/http/Router.ts:263](https://github.com/rapidrest/service-core/b
244
244
 
245
245
  > **put**(`routePath`, ...`handlers`): `this`
246
246
 
247
- Defined in: [src/http/Router.ts:269](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L269)
247
+ Defined in: [src/http/Router.ts:269](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L269)
248
248
 
249
249
  #### Parameters
250
250
 
@@ -266,7 +266,7 @@ Defined in: [src/http/Router.ts:269](https://github.com/rapidrest/service-core/b
266
266
 
267
267
  > **static**(`basePath`): `this`
268
268
 
269
- Defined in: [src/http/Router.ts:420](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L420)
269
+ Defined in: [src/http/Router.ts:420](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L420)
270
270
 
271
271
  Serves static files from a directory via a wildcard GET route.
272
272
  Files not found on disk return 404.
@@ -287,7 +287,7 @@ Files not found on disk return 404.
287
287
 
288
288
  > **use**(...`handlers`): `this`
289
289
 
290
- Defined in: [src/http/Router.ts:236](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L236)
290
+ Defined in: [src/http/Router.ts:236](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L236)
291
291
 
292
292
  Register global middleware that runs before every route handler.
293
293
 
@@ -307,7 +307,7 @@ Register global middleware that runs before every route handler.
307
307
 
308
308
  > **ws**(`routePath`, `handlers`, `wsOptions?`, `upgradeAuth?`): `this`
309
309
 
310
- Defined in: [src/http/Router.ts:312](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/http/Router.ts#L312)
310
+ Defined in: [src/http/Router.ts:312](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/http/Router.ts#L312)
311
311
 
312
312
  Registers a WebSocket route. Handlers follow the same `(req, res, next)` pattern
313
313
  as HTTP routes; they receive `req.websocket` containing the uWS WebSocket handle.
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: JWTStrategy
8
8
 
9
- Defined in: [src/auth/JWTStrategy.ts:63](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/JWTStrategy.ts#L63)
9
+ Defined in: [src/auth/JWTStrategy.ts:63](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/JWTStrategy.ts#L63)
10
10
 
11
11
  JWT authentication strategy. Performs JWT verification and searches for a token by one of the
12
12
  following methods (in order of precedence):
@@ -27,7 +27,7 @@ Jean-Philippe Steinmetz
27
27
 
28
28
  > **new JWTStrategy**(`options?`): `JWTStrategy`
29
29
 
30
- Defined in: [src/auth/JWTStrategy.ts:71](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/JWTStrategy.ts#L71)
30
+ Defined in: [src/auth/JWTStrategy.ts:71](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/JWTStrategy.ts#L71)
31
31
 
32
32
  #### Parameters
33
33
 
@@ -45,7 +45,7 @@ Defined in: [src/auth/JWTStrategy.ts:71](https://github.com/rapidrest/service-co
45
45
 
46
46
  > `readonly` **name**: `string` = `"jwt"`
47
47
 
48
- Defined in: [src/auth/JWTStrategy.ts:67](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/JWTStrategy.ts#L67)
48
+ Defined in: [src/auth/JWTStrategy.ts:67](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/JWTStrategy.ts#L67)
49
49
 
50
50
  ## Methods
51
51
 
@@ -53,7 +53,7 @@ Defined in: [src/auth/JWTStrategy.ts:67](https://github.com/rapidrest/service-co
53
53
 
54
54
  > **authenticate**(`req`, `res`, `required?`): `Promise`\<[`JWTAuthResult`](../interfaces/JWTAuthResult.md) \| `undefined`\>
55
55
 
56
- Defined in: [src/auth/JWTStrategy.ts:134](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/JWTStrategy.ts#L134)
56
+ Defined in: [src/auth/JWTStrategy.ts:134](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/JWTStrategy.ts#L134)
57
57
 
58
58
  #### Parameters
59
59
 
@@ -79,7 +79,7 @@ Defined in: [src/auth/JWTStrategy.ts:134](https://github.com/rapidrest/service-c
79
79
 
80
80
  > **authenticateSync**(`req`, `res`, `required?`): [`JWTAuthResult`](../interfaces/JWTAuthResult.md) \| `undefined`
81
81
 
82
- Defined in: [src/auth/JWTStrategy.ts:169](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/JWTStrategy.ts#L169)
82
+ Defined in: [src/auth/JWTStrategy.ts:169](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/JWTStrategy.ts#L169)
83
83
 
84
84
  #### Parameters
85
85
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: JWTStrategyOptions
8
8
 
9
- Defined in: [src/auth/JWTStrategy.ts:19](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/JWTStrategy.ts#L19)
9
+ Defined in: [src/auth/JWTStrategy.ts:19](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/JWTStrategy.ts#L19)
10
10
 
11
11
  Describes the configuration options that can be used to initialize JWTStrategy.
12
12
 
@@ -30,7 +30,7 @@ Jean-Philippe Steinmetz
30
30
 
31
31
  > **allowQueryParam**: `boolean` = `false`
32
32
 
33
- Defined in: [src/auth/JWTStrategy.ts:37](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/JWTStrategy.ts#L37)
33
+ Defined in: [src/auth/JWTStrategy.ts:37](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/JWTStrategy.ts#L37)
34
34
 
35
35
  Set to `true` to allow tokens to be supplied via the `queryKey` URL parameter.
36
36
  Disabled by default — query parameters appear in server logs, browser history, and
@@ -42,7 +42,7 @@ Referer headers, which permanently exposes tokens outside the application.
42
42
 
43
43
  > `optional` **config?**: `JWTUtilsConfig`
44
44
 
45
- Defined in: [src/auth/JWTStrategy.ts:21](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/JWTStrategy.ts#L21)
45
+ Defined in: [src/auth/JWTStrategy.ts:21](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/JWTStrategy.ts#L21)
46
46
 
47
47
  The configuration options to pass to the JWTUtils library during token verification.
48
48
 
@@ -52,7 +52,7 @@ The configuration options to pass to the JWTUtils library during token verificat
52
52
 
53
53
  > **cookieName**: `string` = `"jwt"`
54
54
 
55
- Defined in: [src/auth/JWTStrategy.ts:27](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/JWTStrategy.ts#L27)
55
+ Defined in: [src/auth/JWTStrategy.ts:27](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/JWTStrategy.ts#L27)
56
56
 
57
57
  The name of the cookie to retrieve the token from when using cookie based authentication. Default value is `jwt`.
58
58
 
@@ -62,7 +62,7 @@ The name of the cookie to retrieve the token from when using cookie based authen
62
62
 
63
63
  > **cookieSecure**: `boolean` = `false`
64
64
 
65
- Defined in: [src/auth/JWTStrategy.ts:29](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/JWTStrategy.ts#L29)
65
+ Defined in: [src/auth/JWTStrategy.ts:29](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/JWTStrategy.ts#L29)
66
66
 
67
67
  The name of the secured cookie to retreive the token from when using cookie based authentication.
68
68
 
@@ -72,7 +72,7 @@ The name of the secured cookie to retreive the token from when using cookie base
72
72
 
73
73
  > **headerKey**: `string` = `"authorization"`
74
74
 
75
- Defined in: [src/auth/JWTStrategy.ts:23](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/JWTStrategy.ts#L23)
75
+ Defined in: [src/auth/JWTStrategy.ts:23](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/JWTStrategy.ts#L23)
76
76
 
77
77
  The name of the header to look for when performing header based authentication. Default value is `Authorization`.
78
78
 
@@ -82,7 +82,7 @@ The name of the header to look for when performing header based authentication.
82
82
 
83
83
  > **headerScheme**: `string` = "(jwt\|bearer)"
84
84
 
85
- Defined in: [src/auth/JWTStrategy.ts:25](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/JWTStrategy.ts#L25)
85
+ Defined in: [src/auth/JWTStrategy.ts:25](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/JWTStrategy.ts#L25)
86
86
 
87
87
  The authorization scheme type when using header based authentication. Default value is `jwt`.
88
88
 
@@ -92,6 +92,6 @@ The authorization scheme type when using header based authentication. Default va
92
92
 
93
93
  > **queryKey**: `string` = `"auth_token"`
94
94
 
95
- Defined in: [src/auth/JWTStrategy.ts:31](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/auth/JWTStrategy.ts#L31)
95
+ Defined in: [src/auth/JWTStrategy.ts:31](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/auth/JWTStrategy.ts#L31)
96
96
 
97
97
  The name of the request query parameter to retrieve the token from when using query based authentication. Default value is `auth_token`.
@@ -6,12 +6,12 @@
6
6
 
7
7
  # Class: MetricsRoute
8
8
 
9
- Defined in: [src/routes/MetricsRoute.ts:19](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/MetricsRoute.ts#L19)
9
+ Defined in: [src/routes/MetricsRoute.ts:19](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/routes/MetricsRoute.ts#L19)
10
10
 
11
- Handles all REST API requests for the endpoint `/metrics'. This route handler produces Prometheus compatible metrics
11
+ Handles all REST API requests for the endpoint `/metrics'. This route handler produces Prometheus compatible metrics
12
12
  for use with a Prometheus based server.
13
13
 
14
- Services that wish to provide metrics to be exposed via this route can register them using the global registry
14
+ Services that wish to provide metrics to be exposed via this route can register them using the global registry
15
15
  from the provided `prom-client` dependency. See the `prom-client` documentation for more details.
16
16
 
17
17
  ## Constructors
@@ -20,7 +20,7 @@ from the provided `prom-client` dependency. See the `prom-client` documentation
20
20
 
21
21
  > **new MetricsRoute**(): `MetricsRoute`
22
22
 
23
- Defined in: [src/routes/MetricsRoute.ts:30](https://github.com/rapidrest/service-core/blob/5cd5bc79b3569101eabf54dec613fd4745a69b2b/src/routes/MetricsRoute.ts#L30)
23
+ Defined in: [src/routes/MetricsRoute.ts:30](https://github.com/rapidrest/service-core/blob/ab54834688bebfbea1d8258c626822205861b919/src/routes/MetricsRoute.ts#L30)
24
24
 
25
25
  #### Returns
26
26