@rapidrest/service-core 1.0.0-beta.6 → 1.0.0-rc.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.
Files changed (171) hide show
  1. package/dist/lib/database/MongoRepository.js +22 -24
  2. package/dist/lib/database/MongoRepository.js.map +1 -1
  3. package/dist/lib/database/MongoSchemaSync.js +80 -21
  4. package/dist/lib/database/MongoSchemaSync.js.map +1 -1
  5. package/dist/lib/database/NamingUtils.js +4 -4
  6. package/dist/lib/database/NamingUtils.js.map +1 -1
  7. package/dist/lib/decorators/PersistenceDecorators.js +17 -17
  8. package/dist/lib/decorators/PersistenceDecorators.js.map +1 -1
  9. package/dist/lib/models/BaseMongoEntity.js +10 -3
  10. package/dist/lib/models/BaseMongoEntity.js.map +1 -1
  11. package/dist/lib/models/ModelUtils.js +31 -34
  12. package/dist/lib/models/ModelUtils.js.map +1 -1
  13. package/dist/lib/models/RecoverableBaseMongoEntity.js +11 -3
  14. package/dist/lib/models/RecoverableBaseMongoEntity.js.map +1 -1
  15. package/dist/lib/models/RepoUtils.js +37 -45
  16. package/dist/lib/models/RepoUtils.js.map +1 -1
  17. package/dist/lib/models/SimpleEntity.js +1 -1
  18. package/dist/lib/models/SimpleEntity.js.map +1 -1
  19. package/dist/lib/routes/ModelRoute.js +1 -11
  20. package/dist/lib/routes/ModelRoute.js.map +1 -1
  21. package/dist/types/database/MongoRepository.d.ts +17 -11
  22. package/dist/types/database/MongoSchemaSync.d.ts +25 -3
  23. package/dist/types/database/NamingUtils.d.ts +1 -1
  24. package/dist/types/decorators/PersistenceDecorators.d.ts +29 -3
  25. package/dist/types/models/ModelUtils.d.ts +3 -6
  26. package/dist/types/models/RepoUtils.d.ts +1 -7
  27. package/dist/types/routes/ModelRoute.d.ts +0 -4
  28. package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/MongoRepository.md +1 -1
  29. package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/RedisConnection.md +1 -1
  30. package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/Repository.md +1 -1
  31. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Default.md +1 -1
  32. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Description.md +1 -1
  33. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Document.md +1 -1
  34. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Example.md +1 -1
  35. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Format.md +1 -1
  36. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Returns.md +1 -1
  37. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Summary.md +1 -1
  38. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Tags.md +1 -1
  39. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/TypeInfo.md +1 -1
  40. package/docs/reference/@rapidrest/namespaces/DocDecorators/interfaces/DocumentsData.md +7 -7
  41. package/docs/reference/@rapidrest/namespaces/EventDecorators/functions/EventListener.md +1 -1
  42. package/docs/reference/@rapidrest/namespaces/EventDecorators/functions/OnEvent.md +1 -1
  43. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Cache.md +1 -1
  44. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/ChildEntity.md +2 -2
  45. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/DataStore.md +1 -1
  46. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Identifier.md +1 -1
  47. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Protect.md +5 -5
  48. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Reference.md +1 -1
  49. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Shard.md +1 -1
  50. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/TrackChanges.md +2 -2
  51. package/docs/reference/@rapidrest/namespaces/ModelDecorators/interfaces/PendingTypeOrmColumn.md +7 -7
  52. package/docs/reference/@rapidrest/namespaces/ModelDecorators/variables/pendingTypeOrmColumns.md +2 -2
  53. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/README.md +2 -0
  54. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Column.md +1 -1
  55. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Entity.md +5 -6
  56. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Index.md +3 -3
  57. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/PrimaryColumn.md +1 -1
  58. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Unique.md +3 -3
  59. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getColumnMetadata.md +1 -1
  60. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getEntityName.md +1 -1
  61. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getIndexMetadata.md +1 -1
  62. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/CollationOptions.md +79 -0
  63. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/ColumnInfo.md +4 -4
  64. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/ColumnOptions.md +5 -5
  65. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/EntityOptions.md +32 -0
  66. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/IndexInfo.md +4 -4
  67. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/IndexOptions.md +15 -5
  68. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/After.md +1 -1
  69. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Auth.md +1 -1
  70. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/AuthResult.md +1 -1
  71. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Before.md +1 -1
  72. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/ContentType.md +1 -1
  73. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Delete.md +1 -1
  74. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Get.md +1 -1
  75. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Head.md +1 -1
  76. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Header.md +1 -1
  77. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Method.md +1 -1
  78. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Model.md +1 -1
  79. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Options.md +1 -1
  80. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Param.md +1 -1
  81. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Patch.md +1 -1
  82. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Post.md +1 -1
  83. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Protect.md +1 -1
  84. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Put.md +1 -1
  85. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Query.md +1 -1
  86. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Request.md +1 -1
  87. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/RequiresRole.md +1 -1
  88. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Response.md +1 -1
  89. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Route.md +1 -1
  90. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Socket.md +1 -1
  91. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/User.md +1 -1
  92. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Validate.md +1 -1
  93. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/WebSocket.md +1 -1
  94. package/docs/reference/classes/ACLUtils.md +10 -10
  95. package/docs/reference/classes/AdminRoute.md +3 -3
  96. package/docs/reference/classes/AuthMiddleware.md +6 -6
  97. package/docs/reference/classes/BackgroundService.md +8 -8
  98. package/docs/reference/classes/BackgroundServiceManager.md +7 -7
  99. package/docs/reference/classes/BaseEntity.md +6 -6
  100. package/docs/reference/classes/BaseMongoEntity.md +7 -7
  101. package/docs/reference/classes/BasicStrategy.md +5 -5
  102. package/docs/reference/classes/BasicStrategyOptions.md +7 -7
  103. package/docs/reference/classes/BulkError.md +3 -3
  104. package/docs/reference/classes/ConnectionManager.md +4 -4
  105. package/docs/reference/classes/EventListenerManager.md +5 -5
  106. package/docs/reference/classes/HttpRouter.md +16 -16
  107. package/docs/reference/classes/JWTStrategy.md +5 -5
  108. package/docs/reference/classes/JWTStrategyOptions.md +8 -8
  109. package/docs/reference/classes/MetricsRoute.md +2 -2
  110. package/docs/reference/classes/ModelRoute.md +46 -46
  111. package/docs/reference/classes/ModelUtils.md +13 -31
  112. package/docs/reference/classes/MongoConnection.md +12 -12
  113. package/docs/reference/classes/MongoRepository.md +73 -37
  114. package/docs/reference/classes/MongoSchemaSync.md +37 -7
  115. package/docs/reference/classes/NetUtils.md +3 -3
  116. package/docs/reference/classes/NotificationUtils.md +3 -3
  117. package/docs/reference/classes/ObjectFactory.md +3 -3
  118. package/docs/reference/classes/OpenAPIRoute.md +5 -5
  119. package/docs/reference/classes/OpenApiSpec.md +45 -45
  120. package/docs/reference/classes/RecoverableBaseEntity.md +7 -7
  121. package/docs/reference/classes/RecoverableBaseMongoEntity.md +8 -8
  122. package/docs/reference/classes/RedisTransport.md +4 -4
  123. package/docs/reference/classes/RepoUtils.md +36 -40
  124. package/docs/reference/classes/RouteUtils.md +7 -7
  125. package/docs/reference/classes/Server.md +26 -26
  126. package/docs/reference/classes/SimpleEntity.md +3 -3
  127. package/docs/reference/classes/SimpleMongoEntity.md +4 -4
  128. package/docs/reference/classes/StatusExtraData.md +4 -4
  129. package/docs/reference/classes/StatusRoute.md +1 -1
  130. package/docs/reference/classes/UWSRequest.md +16 -16
  131. package/docs/reference/classes/UWSResponse.md +13 -13
  132. package/docs/reference/classes/UWSWebSocketShim.md +5 -5
  133. package/docs/reference/enumerations/ACLAction.md +7 -7
  134. package/docs/reference/enumerations/ApiErrorMessages.md +15 -15
  135. package/docs/reference/enumerations/ApiErrors.md +15 -15
  136. package/docs/reference/functions/createWebSocketStream.md +1 -1
  137. package/docs/reference/functions/isSqlDataSource.md +1 -1
  138. package/docs/reference/functions/readBody.md +1 -1
  139. package/docs/reference/functions/resolveCollectionName.md +2 -2
  140. package/docs/reference/functions/runChain.md +1 -1
  141. package/docs/reference/functions/snakeCase.md +1 -1
  142. package/docs/reference/interfaces/ACLRecord.md +8 -8
  143. package/docs/reference/interfaces/AccessControlList.md +5 -5
  144. package/docs/reference/interfaces/AuthResult.md +5 -5
  145. package/docs/reference/interfaces/AuthStrategy.md +4 -4
  146. package/docs/reference/interfaces/CreateRequestOptions.md +9 -9
  147. package/docs/reference/interfaces/DeleteRequestOptions.md +10 -20
  148. package/docs/reference/interfaces/FindRequestOptions.md +10 -10
  149. package/docs/reference/interfaces/HttpRequest.md +15 -15
  150. package/docs/reference/interfaces/HttpResponse.md +11 -11
  151. package/docs/reference/interfaces/JWTAuthResult.md +6 -6
  152. package/docs/reference/interfaces/RepoCreateOptions.md +7 -7
  153. package/docs/reference/interfaces/RepoDeleteOptions.md +8 -18
  154. package/docs/reference/interfaces/RepoFindOptions.md +10 -20
  155. package/docs/reference/interfaces/RepoOperationOptions.md +6 -6
  156. package/docs/reference/interfaces/RepoUpdateOptions.md +7 -17
  157. package/docs/reference/interfaces/RequestOptions.md +8 -8
  158. package/docs/reference/interfaces/RequestWS.md +17 -17
  159. package/docs/reference/interfaces/TruncateRequestOptions.md +12 -26
  160. package/docs/reference/interfaces/UpdateRequestOptions.md +10 -20
  161. package/docs/reference/type-aliases/ErrorHandler.md +1 -1
  162. package/docs/reference/type-aliases/NextFunction.md +1 -1
  163. package/docs/reference/type-aliases/OneOrMany.md +1 -1
  164. package/docs/reference/type-aliases/OneOrNull.md +1 -1
  165. package/docs/reference/type-aliases/PartialBaseEntity.md +1 -1
  166. package/docs/reference/type-aliases/PartialSimpleEntity.md +1 -1
  167. package/docs/reference/type-aliases/RequestHandler.md +1 -1
  168. package/docs/reference/type-aliases/UpdateObject.md +1 -1
  169. package/docs/reference/type-aliases/WsUpgradeAuth.md +1 -1
  170. package/docs/reference/type-aliases/WsUpgradeAuthResult.md +5 -5
  171. package/package.json +1 -1
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Param**(`name?`): (`target`, `propertyKey`, `index`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:174](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L174)
11
+ Defined in: [src/decorators/RouteDecorators.ts:174](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L174)
12
12
 
13
13
  Injects the value of the specified URI parameter with the given name as the value of the decorated argument. If no
14
14
  name is specified the entire request parameter will be injected.
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Patch**(`path?`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:187](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L187)
11
+ Defined in: [src/decorators/RouteDecorators.ts:187](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L187)
12
12
 
13
13
  Indicates that the decorated function handles incoming `PATCH` requests at the given sub-path.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Post**(`path?`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:196](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L196)
11
+ Defined in: [src/decorators/RouteDecorators.ts:196](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L196)
12
12
 
13
13
  Indicates that the decorated function handles incoming `POST` requests at the given sub-path.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Protect**(`acl?`): (`target`, `propertyKey?`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:222](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L222)
11
+ Defined in: [src/decorators/RouteDecorators.ts:222](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L222)
12
12
 
13
13
  Apply this to any route handler class or an individual route handler function to indicate that it should be
14
14
  protected by the AccessControlList security system. The `acl` parameter specifies the ACL governing access
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Put**(`path?`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:205](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L205)
11
+ Defined in: [src/decorators/RouteDecorators.ts:205](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L205)
12
12
 
13
13
  Indicates that the decorated function handles incoming `PUT` requests at the given sub-path.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Query**(`name?`): (`target`, `propertyKey`, `index`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:265](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L265)
11
+ Defined in: [src/decorators/RouteDecorators.ts:265](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L265)
12
12
 
13
13
  Injects the value of the specified query parameter with the given name as the value of the decorated argument. If
14
14
  no name is specified the entire request query will be injected.
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Request**(`target`, `propertyKey`, `index`): `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:276](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L276)
11
+ Defined in: [src/decorators/RouteDecorators.ts:276](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L276)
12
12
 
13
13
  Injects the Express request object as the value of the decorated argument.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **RequiresRole**(`roles`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:297](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L297)
11
+ Defined in: [src/decorators/RouteDecorators.ts:297](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L297)
12
12
 
13
13
  Indicates that the client must be an authenticated user with at least one of the specified role(s) to process the
14
14
  request.
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Response**(`target`, `propertyKey`, `index`): `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:285](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L285)
11
+ Defined in: [src/decorators/RouteDecorators.ts:285](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L285)
12
12
 
13
13
  Injects the Express response object as the value of the decorated argument.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Route**(`paths`): (`target`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:310](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L310)
11
+ Defined in: [src/decorators/RouteDecorators.ts:310](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L310)
12
12
 
13
13
  Indicates that the decorated class contains Express route definitions.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Socket**(`target`, `propertyKey`, `index`): `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:323](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L323)
11
+ Defined in: [src/decorators/RouteDecorators.ts:323](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L323)
12
12
 
13
13
  Injects the underlying Socket object associated with the request as the value of the decorated argument.
14
14
  When the handler function is for a WebSocket request, the returned socket will be the newly established
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **User**(`target`, `propertyKey`, `index`): `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:332](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L332)
11
+ Defined in: [src/decorators/RouteDecorators.ts:332](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L332)
12
12
 
13
13
  Injects the authenticated user object as the value of the decorated argument.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Validate**(`func`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:343](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L343)
11
+ Defined in: [src/decorators/RouteDecorators.ts:343](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L343)
12
12
 
13
13
  Indicates a validation function to execute in order to verify an incoming requests payload.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **WebSocket**(`path?`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:356](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L356)
11
+ Defined in: [src/decorators/RouteDecorators.ts:356](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L356)
12
12
 
13
13
  Indicates that the decorated function handles incoming `WebSocket` upgrade requests at the given sub-path.
14
14
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: ACLUtils
8
8
 
9
- Defined in: [src/security/ACLUtils.ts:22](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/security/ACLUtils.ts#L22)
9
+ Defined in: [src/security/ACLUtils.ts:22](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/security/ACLUtils.ts#L22)
10
10
 
11
11
  Common utility functions for working with `AccessControlList` objects and validating user permissions.
12
12
 
@@ -26,7 +26,7 @@ Common utility functions for working with `AccessControlList` objects and valida
26
26
 
27
27
  > **enabled**: `boolean` = `true`
28
28
 
29
- Defined in: [src/security/ACLUtils.ts:24](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/security/ACLUtils.ts#L24)
29
+ Defined in: [src/security/ACLUtils.ts:24](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/security/ACLUtils.ts#L24)
30
30
 
31
31
  ## Methods
32
32
 
@@ -34,7 +34,7 @@ Defined in: [src/security/ACLUtils.ts:24](https://github.com/rapidrest/service-c
34
34
 
35
35
  > **checkRequestPerms**(`uid`, `user`, `req`): `Promise`\<`boolean`\>
36
36
 
37
- Defined in: [src/security/ACLUtils.ts:90](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/security/ACLUtils.ts#L90)
37
+ Defined in: [src/security/ACLUtils.ts:90](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/security/ACLUtils.ts#L90)
38
38
 
39
39
  Validates that the user has permission to perform the request operation against the URL path for the
40
40
  provided request. If ACLUtils has not been initialized or the `acl` datastore has not been configured
@@ -70,7 +70,7 @@ The request whose URL path and method will be verified.
70
70
 
71
71
  > **findACL**(`entityId`, `parentUids?`, `reqCache?`): `Promise`\<[`AccessControlList`](../interfaces/AccessControlList.md) \| `null`\>
72
72
 
73
- Defined in: [src/security/ACLUtils.ts:219](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/security/ACLUtils.ts#L219)
73
+ Defined in: [src/security/ACLUtils.ts:219](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/security/ACLUtils.ts#L219)
74
74
 
75
75
  Retrieves the access control list with the associated identifier and populates the parent(s).
76
76
 
@@ -102,7 +102,7 @@ The list of already found parent UIDs. This is used to break circular dependenci
102
102
 
103
103
  > **getRecord**(`acl`, `user`): [`ACLRecord`](../interfaces/ACLRecord.md) \| `null`
104
104
 
105
- Defined in: [src/security/ACLUtils.ts:501](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/security/ACLUtils.ts#L501)
105
+ Defined in: [src/security/ACLUtils.ts:501](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/security/ACLUtils.ts#L501)
106
106
 
107
107
  Retrieves the first available record in the provided ACL associated with the provided user.
108
108
 
@@ -132,7 +132,7 @@ The ACL record associated with the given user if found, otherwise `undefined`.
132
132
 
133
133
  > **hasPermission**(`user`, `acl`, `action`): `Promise`\<`boolean`\>
134
134
 
135
- Defined in: [src/security/ACLUtils.ts:151](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/security/ACLUtils.ts#L151)
135
+ Defined in: [src/security/ACLUtils.ts:151](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/security/ACLUtils.ts#L151)
136
136
 
137
137
  Validates that the user has permission to perform the provided action using the given access control list.
138
138
 
@@ -168,7 +168,7 @@ The action that the user desires permission for.
168
168
 
169
169
  > **populateParent**(`acl`, `parentUids?`): `Promise`\<`void`\>
170
170
 
171
- Defined in: [src/security/ACLUtils.ts:521](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/security/ACLUtils.ts#L521)
171
+ Defined in: [src/security/ACLUtils.ts:521](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/security/ACLUtils.ts#L521)
172
172
 
173
173
  Attempts to retrieve the parent access control list for the given ACL object.
174
174
 
@@ -196,7 +196,7 @@ The list of already found parent UIDs. This is used to break circular dependenci
196
196
 
197
197
  > **removeACL**(`uid`): `Promise`\<`void`\>
198
198
 
199
- Defined in: [src/security/ACLUtils.ts:287](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/security/ACLUtils.ts#L287)
199
+ Defined in: [src/security/ACLUtils.ts:287](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/security/ACLUtils.ts#L287)
200
200
 
201
201
  Deletes the ACL with the given identifier from the database.
202
202
 
@@ -218,7 +218,7 @@ The unique identifier of the ACL to remove.
218
218
 
219
219
  > **saveACL**(`acl`): `Promise`\<[`AccessControlList`](../interfaces/AccessControlList.md) \| `null`\>
220
220
 
221
- Defined in: [src/security/ACLUtils.ts:375](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/security/ACLUtils.ts#L375)
221
+ Defined in: [src/security/ACLUtils.ts:375](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/security/ACLUtils.ts#L375)
222
222
 
223
223
  Stores the given access control list into the ACL database.
224
224
 
@@ -242,7 +242,7 @@ Returns the ACL that was stored in the database.
242
242
 
243
243
  > **saveDefaultACL**(`acl`): `Promise`\<[`AccessControlList`](../interfaces/AccessControlList.md) \| `null`\>
244
244
 
245
- Defined in: [src/security/ACLUtils.ts:441](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/security/ACLUtils.ts#L441)
245
+ Defined in: [src/security/ACLUtils.ts:441](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/security/ACLUtils.ts#L441)
246
246
 
247
247
  Stores the given default access control list into the ACL database. A default ACL is a special type of ACL
248
248
  that is primarily defined and maintained within the code but allows for user-specific overrides. To accomplish
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: AdminRoute
8
8
 
9
- Defined in: [src/routes/AdminRoute.ts:50](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/routes/AdminRoute.ts#L50)
9
+ Defined in: [src/routes/AdminRoute.ts:50](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/routes/AdminRoute.ts#L50)
10
10
 
11
11
  The `AdminRoute` provides a default `/admin` endpoint that gives trusted users the following abilities:
12
12
 
@@ -26,7 +26,7 @@ Jean-Philippe Steinmetz
26
26
 
27
27
  > **new AdminRoute**(`releaseNotes`): `AdminRoute`
28
28
 
29
- Defined in: [src/routes/AdminRoute.ts:82](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/routes/AdminRoute.ts#L82)
29
+ Defined in: [src/routes/AdminRoute.ts:82](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/routes/AdminRoute.ts#L82)
30
30
 
31
31
  Constructs a new `ReleaseNotesRoute` object with the specified defaults.
32
32
 
@@ -48,4 +48,4 @@ The ReleaseNotes specification object to serve.
48
48
 
49
49
  > `protected` `optional` **cacheClient?**: `Redis`
50
50
 
51
- Defined in: [src/routes/AdminRoute.ts:55](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/routes/AdminRoute.ts#L55)
51
+ Defined in: [src/routes/AdminRoute.ts:55](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/routes/AdminRoute.ts#L55)
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: AuthMiddleware
8
8
 
9
- Defined in: [src/auth/AuthMiddleware.ts:19](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/auth/AuthMiddleware.ts#L19)
9
+ Defined in: [src/auth/AuthMiddleware.ts:19](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/auth/AuthMiddleware.ts#L19)
10
10
 
11
11
  A set of common utilities for performing authentication using one or more strategies.
12
12
 
@@ -30,7 +30,7 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
30
30
 
31
31
  > `readonly` **strategies**: `Map`\<`string`, [`AuthStrategy`](../interfaces/AuthStrategy.md)\>
32
32
 
33
- Defined in: [src/auth/AuthMiddleware.ts:30](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/auth/AuthMiddleware.ts#L30)
33
+ Defined in: [src/auth/AuthMiddleware.ts:30](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/auth/AuthMiddleware.ts#L30)
34
34
 
35
35
  The authentication strategies that have been registered.
36
36
 
@@ -40,7 +40,7 @@ The authentication strategies that have been registered.
40
40
 
41
41
  > **authenticate**(`strategies`, `req`, `res?`, `required?`): `Promise`\<[`AuthResult`](../interfaces/AuthResult.md) \| `undefined`\>
42
42
 
43
- Defined in: [src/auth/AuthMiddleware.ts:54](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/auth/AuthMiddleware.ts#L54)
43
+ Defined in: [src/auth/AuthMiddleware.ts:54](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/auth/AuthMiddleware.ts#L54)
44
44
 
45
45
  Performs authentication of the given request using one of the provided strategies.
46
46
 
@@ -80,7 +80,7 @@ Set to `true` to if authentication is required to pass, otherwise set to `false`
80
80
 
81
81
  > **authenticateSync**(`strategies`, `req`, `res?`, `required?`): [`AuthResult`](../interfaces/AuthResult.md) \| `undefined`
82
82
 
83
- Defined in: [src/auth/AuthMiddleware.ts:92](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/auth/AuthMiddleware.ts#L92)
83
+ Defined in: [src/auth/AuthMiddleware.ts:92](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/auth/AuthMiddleware.ts#L92)
84
84
 
85
85
  Performs authentication of the given request using one of the provided strategies.
86
86
 
@@ -122,7 +122,7 @@ Set to `true` to if authentication is required to pass, otherwise set to `false`
122
122
 
123
123
  > **authWebSocket**(`required`): [`RequestHandler`](../type-aliases/RequestHandler.md)
124
124
 
125
- Defined in: [src/auth/AuthMiddleware.ts:133](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/auth/AuthMiddleware.ts#L133)
125
+ Defined in: [src/auth/AuthMiddleware.ts:133](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/auth/AuthMiddleware.ts#L133)
126
126
 
127
127
  Returns a request handler function that will perform authentication of a websocket connection. Authentication
128
128
  can be handled in two ways:
@@ -150,7 +150,7 @@ Set to `true` to indicate that auth is required, otherwise `false`.
150
150
 
151
151
  > **register**(`name`, `strategy`): `void`
152
152
 
153
- Defined in: [src/auth/AuthMiddleware.ts:277](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/auth/AuthMiddleware.ts#L277)
153
+ Defined in: [src/auth/AuthMiddleware.ts:277](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/auth/AuthMiddleware.ts#L277)
154
154
 
155
155
  Registers the provided authentication strategy to be used
156
156
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Abstract Class: BackgroundService
8
8
 
9
- Defined in: [src/BackgroundService.ts:10](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundService.ts#L10)
9
+ Defined in: [src/BackgroundService.ts:10](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundService.ts#L10)
10
10
 
11
11
  The `BackgroundService` is an abstract base class for defining scheduled background services. A background service
12
12
  executes in the background once on startup or on a set schedule (like a cron job) and performs additional processing.
@@ -21,7 +21,7 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
21
21
 
22
22
  > **new BackgroundService**(`config`, `logger`): `BackgroundService`
23
23
 
24
- Defined in: [src/BackgroundService.ts:16](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundService.ts#L16)
24
+ Defined in: [src/BackgroundService.ts:16](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundService.ts#L16)
25
25
 
26
26
  #### Parameters
27
27
 
@@ -43,7 +43,7 @@ Defined in: [src/BackgroundService.ts:16](https://github.com/rapidrest/service-c
43
43
 
44
44
  > `protected` **config**: `any`
45
45
 
46
- Defined in: [src/BackgroundService.ts:12](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundService.ts#L12)
46
+ Defined in: [src/BackgroundService.ts:12](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundService.ts#L12)
47
47
 
48
48
  The global application configuration that the service can reference.
49
49
 
@@ -53,7 +53,7 @@ The global application configuration that the service can reference.
53
53
 
54
54
  > `protected` **logger**: `any`
55
55
 
56
- Defined in: [src/BackgroundService.ts:14](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundService.ts#L14)
56
+ Defined in: [src/BackgroundService.ts:14](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundService.ts#L14)
57
57
 
58
58
  The logging utility to use.
59
59
 
@@ -65,7 +65,7 @@ The logging utility to use.
65
65
 
66
66
  > **get** `abstract` **schedule**(): `string` \| `undefined`
67
67
 
68
- Defined in: [src/BackgroundService.ts:25](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundService.ts#L25)
68
+ Defined in: [src/BackgroundService.ts:25](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundService.ts#L25)
69
69
 
70
70
  Returns the desired execution interval that this service should be scheduled with. If `undefined` is returned
71
71
  the service is executed only once.
@@ -80,7 +80,7 @@ the service is executed only once.
80
80
 
81
81
  > `abstract` **run**(): `void` \| `Promise`\<`void`\>
82
82
 
83
- Defined in: [src/BackgroundService.ts:30](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundService.ts#L30)
83
+ Defined in: [src/BackgroundService.ts:30](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundService.ts#L30)
84
84
 
85
85
  The processing function to execute at each scheduled interval.
86
86
 
@@ -94,7 +94,7 @@ The processing function to execute at each scheduled interval.
94
94
 
95
95
  > `abstract` **start**(): `void` \| `Promise`\<`void`\>
96
96
 
97
- Defined in: [src/BackgroundService.ts:35](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundService.ts#L35)
97
+ Defined in: [src/BackgroundService.ts:35](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundService.ts#L35)
98
98
 
99
99
  Initializes the background service with any defaults.
100
100
 
@@ -108,7 +108,7 @@ Initializes the background service with any defaults.
108
108
 
109
109
  > `abstract` **stop**(): `void` \| `Promise`\<`void`\>
110
110
 
111
- Defined in: [src/BackgroundService.ts:40](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundService.ts#L40)
111
+ Defined in: [src/BackgroundService.ts:40](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundService.ts#L40)
112
112
 
113
113
  Shuts down the background allowing the service to complete any outstanding tasks.
114
114
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: BackgroundServiceManager
8
8
 
9
- Defined in: [src/BackgroundServiceManager.ts:35](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundServiceManager.ts#L35)
9
+ Defined in: [src/BackgroundServiceManager.ts:35](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundServiceManager.ts#L35)
10
10
 
11
11
  The `BackgroundServiceManager` manages all configured background services in the application. It is responsible for
12
12
  initializing the jobs, scheduling them and performing any related shutdown tasks. See the `BackgroundService`
@@ -43,7 +43,7 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
43
43
 
44
44
  > **new BackgroundServiceManager**(`objectFactory`, `classes`, `config`, `logger`): `BackgroundServiceManager`
45
45
 
46
- Defined in: [src/BackgroundServiceManager.ts:43](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundServiceManager.ts#L43)
46
+ Defined in: [src/BackgroundServiceManager.ts:43](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundServiceManager.ts#L43)
47
47
 
48
48
  #### Parameters
49
49
 
@@ -71,7 +71,7 @@ Defined in: [src/BackgroundServiceManager.ts:43](https://github.com/rapidrest/se
71
71
 
72
72
  > **getService**(`name`): [`BackgroundService`](BackgroundService.md) \| `undefined`
73
73
 
74
- Defined in: [src/BackgroundServiceManager.ts:55](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundServiceManager.ts#L55)
74
+ Defined in: [src/BackgroundServiceManager.ts:55](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundServiceManager.ts#L55)
75
75
 
76
76
  Returns the service instance with the given name.
77
77
 
@@ -93,7 +93,7 @@ The name of the background service to retrieve.
93
93
 
94
94
  > **start**(`serviceName`, `clazz?`, ...`args`): `Promise`\<`void`\>
95
95
 
96
- Defined in: [src/BackgroundServiceManager.ts:81](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundServiceManager.ts#L81)
96
+ Defined in: [src/BackgroundServiceManager.ts:81](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundServiceManager.ts#L81)
97
97
 
98
98
  Starts the background service with the given name.
99
99
 
@@ -127,7 +127,7 @@ The list of arguments to pass into the service constructor
127
127
 
128
128
  > **startAll**(): `Promise`\<`void`\>
129
129
 
130
- Defined in: [src/BackgroundServiceManager.ts:62](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundServiceManager.ts#L62)
130
+ Defined in: [src/BackgroundServiceManager.ts:62](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundServiceManager.ts#L62)
131
131
 
132
132
  Starts all configured background services.
133
133
 
@@ -141,7 +141,7 @@ Starts all configured background services.
141
141
 
142
142
  > **stop**(`serviceName`): `Promise`\<`void`\>
143
143
 
144
- Defined in: [src/BackgroundServiceManager.ts:139](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundServiceManager.ts#L139)
144
+ Defined in: [src/BackgroundServiceManager.ts:139](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundServiceManager.ts#L139)
145
145
 
146
146
  Stops the background service with the given name.
147
147
 
@@ -163,7 +163,7 @@ The name of the background service to stop.
163
163
 
164
164
  > **stopAll**(): `Promise`\<`void`\>
165
165
 
166
- Defined in: [src/BackgroundServiceManager.ts:124](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/BackgroundServiceManager.ts#L124)
166
+ Defined in: [src/BackgroundServiceManager.ts:124](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/BackgroundServiceManager.ts#L124)
167
167
 
168
168
  Stops all currently active background services that are owned by the manager.
169
169
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Abstract Class: BaseEntity
8
8
 
9
- Defined in: [src/models/BaseEntity.ts:18](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/models/BaseEntity.ts#L18)
9
+ Defined in: [src/models/BaseEntity.ts:18](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/models/BaseEntity.ts#L18)
10
10
 
11
11
  Provides a common base class for all entity's that will be persisted to a datastore.
12
12
 
@@ -29,7 +29,7 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
29
29
 
30
30
  > **new BaseEntity**(`other?`): `BaseEntity`
31
31
 
32
- Defined in: [src/models/BaseEntity.ts:52](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/models/BaseEntity.ts#L52)
32
+ Defined in: [src/models/BaseEntity.ts:52](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/models/BaseEntity.ts#L52)
33
33
 
34
34
  #### Parameters
35
35
 
@@ -47,7 +47,7 @@ Defined in: [src/models/BaseEntity.ts:52](https://github.com/rapidrest/service-c
47
47
 
48
48
  > **dateCreated**: `Date`
49
49
 
50
- Defined in: [src/models/BaseEntity.ts:35](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/models/BaseEntity.ts#L35)
50
+ Defined in: [src/models/BaseEntity.ts:35](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/models/BaseEntity.ts#L35)
51
51
 
52
52
  The date and time that the entity was created.
53
53
 
@@ -57,7 +57,7 @@ The date and time that the entity was created.
57
57
 
58
58
  > **dateModified**: `Date`
59
59
 
60
- Defined in: [src/models/BaseEntity.ts:43](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/models/BaseEntity.ts#L43)
60
+ Defined in: [src/models/BaseEntity.ts:43](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/models/BaseEntity.ts#L43)
61
61
 
62
62
  The date and time that the entity was last modified.
63
63
 
@@ -67,7 +67,7 @@ The date and time that the entity was last modified.
67
67
 
68
68
  > **uid**: `string`
69
69
 
70
- Defined in: [src/models/BaseEntity.ts:27](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/models/BaseEntity.ts#L27)
70
+ Defined in: [src/models/BaseEntity.ts:27](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/models/BaseEntity.ts#L27)
71
71
 
72
72
  The universally unique identifier of the entity.
73
73
 
@@ -77,6 +77,6 @@ The universally unique identifier of the entity.
77
77
 
78
78
  > **version**: `number` = `0`
79
79
 
80
- Defined in: [src/models/BaseEntity.ts:50](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/models/BaseEntity.ts#L50)
80
+ Defined in: [src/models/BaseEntity.ts:50](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/models/BaseEntity.ts#L50)
81
81
 
82
82
  The optimistic lock version.
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Abstract Class: BaseMongoEntity
8
8
 
9
- Defined in: [src/models/BaseMongoEntity.ts:15](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/models/BaseMongoEntity.ts#L15)
9
+ Defined in: [src/models/BaseMongoEntity.ts:18](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/models/BaseMongoEntity.ts#L18)
10
10
 
11
11
  Provides a common base class for all entity's that will be persisted in a MongoDB database.
12
12
 
@@ -24,7 +24,7 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
24
24
 
25
25
  > **new BaseMongoEntity**(`other?`): `BaseMongoEntity`
26
26
 
27
- Defined in: [src/models/BaseMongoEntity.ts:23](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/models/BaseMongoEntity.ts#L23)
27
+ Defined in: [src/models/BaseMongoEntity.ts:26](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/models/BaseMongoEntity.ts#L26)
28
28
 
29
29
  #### Parameters
30
30
 
@@ -46,7 +46,7 @@ Defined in: [src/models/BaseMongoEntity.ts:23](https://github.com/rapidrest/serv
46
46
 
47
47
  > `optional` **\_id?**: `any`
48
48
 
49
- Defined in: [src/models/BaseMongoEntity.ts:21](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/models/BaseMongoEntity.ts#L21)
49
+ Defined in: [src/models/BaseMongoEntity.ts:24](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/models/BaseMongoEntity.ts#L24)
50
50
 
51
51
  The internal unique identifier used by MongoDB.
52
52
 
@@ -56,7 +56,7 @@ The internal unique identifier used by MongoDB.
56
56
 
57
57
  > **dateCreated**: `Date`
58
58
 
59
- Defined in: [src/models/BaseEntity.ts:35](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/models/BaseEntity.ts#L35)
59
+ Defined in: [src/models/BaseEntity.ts:35](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/models/BaseEntity.ts#L35)
60
60
 
61
61
  The date and time that the entity was created.
62
62
 
@@ -70,7 +70,7 @@ The date and time that the entity was created.
70
70
 
71
71
  > **dateModified**: `Date`
72
72
 
73
- Defined in: [src/models/BaseEntity.ts:43](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/models/BaseEntity.ts#L43)
73
+ Defined in: [src/models/BaseEntity.ts:43](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/models/BaseEntity.ts#L43)
74
74
 
75
75
  The date and time that the entity was last modified.
76
76
 
@@ -84,7 +84,7 @@ The date and time that the entity was last modified.
84
84
 
85
85
  > **uid**: `string`
86
86
 
87
- Defined in: [src/models/BaseEntity.ts:27](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/models/BaseEntity.ts#L27)
87
+ Defined in: [src/models/BaseEntity.ts:27](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/models/BaseEntity.ts#L27)
88
88
 
89
89
  The universally unique identifier of the entity.
90
90
 
@@ -98,7 +98,7 @@ The universally unique identifier of the entity.
98
98
 
99
99
  > **version**: `number` = `0`
100
100
 
101
- Defined in: [src/models/BaseEntity.ts:50](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/models/BaseEntity.ts#L50)
101
+ Defined in: [src/models/BaseEntity.ts:50](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/models/BaseEntity.ts#L50)
102
102
 
103
103
  The optimistic lock version.
104
104
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: BasicStrategy
8
8
 
9
- Defined in: [src/auth/BasicStrategy.ts:39](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/auth/BasicStrategy.ts#L39)
9
+ Defined in: [src/auth/BasicStrategy.ts:39](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/auth/BasicStrategy.ts#L39)
10
10
 
11
11
  ## Author
12
12
 
@@ -22,7 +22,7 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
22
22
 
23
23
  > **new BasicStrategy**(`options?`): `BasicStrategy`
24
24
 
25
- Defined in: [src/auth/BasicStrategy.ts:43](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/auth/BasicStrategy.ts#L43)
25
+ Defined in: [src/auth/BasicStrategy.ts:43](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/auth/BasicStrategy.ts#L43)
26
26
 
27
27
  #### Parameters
28
28
 
@@ -40,7 +40,7 @@ Defined in: [src/auth/BasicStrategy.ts:43](https://github.com/rapidrest/service-
40
40
 
41
41
  > `readonly` **name**: `string` = `"basic"`
42
42
 
43
- Defined in: [src/auth/BasicStrategy.ts:40](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/auth/BasicStrategy.ts#L40)
43
+ Defined in: [src/auth/BasicStrategy.ts:40](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/auth/BasicStrategy.ts#L40)
44
44
 
45
45
  The unique name of the strategy used to register with the `AuthMiddleware`.
46
46
 
@@ -54,7 +54,7 @@ The unique name of the strategy used to register with the `AuthMiddleware`.
54
54
 
55
55
  > **authenticate**(`req`, `res`, `required?`): `Promise`\<[`AuthResult`](../interfaces/AuthResult.md) \| `undefined`\>
56
56
 
57
- Defined in: [src/auth/BasicStrategy.ts:80](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/auth/BasicStrategy.ts#L80)
57
+ Defined in: [src/auth/BasicStrategy.ts:80](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/auth/BasicStrategy.ts#L80)
58
58
 
59
59
  Attempts to perform authentication with the given request data. If authentication was successful, returns an
60
60
  `AuthResult` containing the authentication details. If authentication fails and `required` is set to `true`
@@ -94,7 +94,7 @@ Set to `true` to if authentication is required to pass, otherwise set to `false`
94
94
 
95
95
  > **authenticateSync**(`req`, `res`, `required?`): [`AuthResult`](../interfaces/AuthResult.md) \| `undefined`
96
96
 
97
- Defined in: [src/auth/BasicStrategy.ts:112](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/auth/BasicStrategy.ts#L112)
97
+ Defined in: [src/auth/BasicStrategy.ts:112](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/auth/BasicStrategy.ts#L112)
98
98
 
99
99
  Attempts to perform authentication with the given request data. If authentication was successful, returns an
100
100
  `AuthResult` containing the authentication details. If authentication fails and `required` is set to `true`