@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
@@ -6,10 +6,10 @@
6
6
 
7
7
  # Interface: PendingTypeOrmColumn
8
8
 
9
- Defined in: [src/decorators/ModelDecorators.ts:12](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/ModelDecorators.ts#L12)
9
+ Defined in: [src/decorators/ModelDecorators.ts:12](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L12)
10
10
 
11
- Describes a column registration that must be bridged into TypeORM's metadata storage when (and only when) a SQL
12
- connection is established. Entries are queued here by decorators so that this module does not depend on the
11
+ Describes a column registration that must be bridged into TypeORM's metadata storage when (and only when) a SQL
12
+ connection is established. Entries are queued here by decorators so that this module does not depend on the
13
13
  optional `typeorm` package.
14
14
 
15
15
  ## Properties
@@ -18,7 +18,7 @@ optional `typeorm` package.
18
18
 
19
19
  > **mode**: `"regular"`
20
20
 
21
- Defined in: [src/decorators/ModelDecorators.ts:15](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/ModelDecorators.ts#L15)
21
+ Defined in: [src/decorators/ModelDecorators.ts:15](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L15)
22
22
 
23
23
  ***
24
24
 
@@ -26,7 +26,7 @@ Defined in: [src/decorators/ModelDecorators.ts:15](https://github.com/rapidrest/
26
26
 
27
27
  > **options**: `any`
28
28
 
29
- Defined in: [src/decorators/ModelDecorators.ts:16](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/ModelDecorators.ts#L16)
29
+ Defined in: [src/decorators/ModelDecorators.ts:16](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L16)
30
30
 
31
31
  ***
32
32
 
@@ -34,7 +34,7 @@ Defined in: [src/decorators/ModelDecorators.ts:16](https://github.com/rapidrest/
34
34
 
35
35
  > **propertyName**: `string`
36
36
 
37
- Defined in: [src/decorators/ModelDecorators.ts:14](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/ModelDecorators.ts#L14)
37
+ Defined in: [src/decorators/ModelDecorators.ts:14](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L14)
38
38
 
39
39
  ***
40
40
 
@@ -42,4 +42,4 @@ Defined in: [src/decorators/ModelDecorators.ts:14](https://github.com/rapidrest/
42
42
 
43
43
  > **target**: `any`
44
44
 
45
- Defined in: [src/decorators/ModelDecorators.ts:13](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/ModelDecorators.ts#L13)
45
+ Defined in: [src/decorators/ModelDecorators.ts:13](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L13)
@@ -8,7 +8,7 @@
8
8
 
9
9
  > `const` **pendingTypeOrmColumns**: [`PendingTypeOrmColumn`](../interfaces/PendingTypeOrmColumn.md)[] = `[]`
10
10
 
11
- Defined in: [src/decorators/ModelDecorators.ts:23](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/ModelDecorators.ts#L23)
11
+ Defined in: [src/decorators/ModelDecorators.ts:23](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L23)
12
12
 
13
- The list of column registrations waiting to be bridged into TypeORM's metadata storage. This list is drained by
13
+ The list of column registrations waiting to be bridged into TypeORM's metadata storage. This list is drained by
14
14
  the TypeORM support module when a SQL connection is created.
@@ -8,8 +8,10 @@
8
8
 
9
9
  ## Interfaces
10
10
 
11
+ - [CollationOptions](interfaces/CollationOptions.md)
11
12
  - [ColumnInfo](interfaces/ColumnInfo.md)
12
13
  - [ColumnOptions](interfaces/ColumnOptions.md)
14
+ - [EntityOptions](interfaces/EntityOptions.md)
13
15
  - [IndexInfo](interfaces/IndexInfo.md)
14
16
  - [IndexOptions](interfaces/IndexOptions.md)
15
17
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Column**(`options?`): (`target`, `propertyKey`) => `void`
10
10
 
11
- Defined in: [src/decorators/PersistenceDecorators.ts:95](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L95)
11
+ Defined in: [src/decorators/PersistenceDecorators.ts:124](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L124)
12
12
 
13
13
  Indicates that the decorated property will be persisted as a column/property in the datastore.
14
14
 
@@ -6,20 +6,19 @@
6
6
 
7
7
  # Function: Entity()
8
8
 
9
- > **Entity**(`name?`): (`target`) => `void`
9
+ > **Entity**(`options?`): (`target`) => `void`
10
10
 
11
- Defined in: [src/decorators/PersistenceDecorators.ts:198](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L198)
11
+ Defined in: [src/decorators/PersistenceDecorators.ts:226](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L226)
12
12
 
13
13
  Indicates that the class describes an entity that is persisted to a datastore.
14
14
 
15
15
  ## Parameters
16
16
 
17
- ### name?
17
+ ### options?
18
18
 
19
- `string`
19
+ [`EntityOptions`](../interfaces/EntityOptions.md)
20
20
 
21
- The name of the collection (or table) that records will be stored in. Defaults to the snake_case
22
- form of the class name.
21
+ The options to set.
23
22
 
24
23
  ## Returns
25
24
 
@@ -10,7 +10,7 @@
10
10
 
11
11
  > **Index**(`nameOrOptions?`, `options?`): `PropertyDecorator`
12
12
 
13
- Defined in: [src/decorators/PersistenceDecorators.ts:133](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L133)
13
+ Defined in: [src/decorators/PersistenceDecorators.ts:162](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L162)
14
14
 
15
15
  Declares a database index.
16
16
 
@@ -46,7 +46,7 @@ When applied to a class, creates a compound index across the given properties:
46
46
 
47
47
  > **Index**(`fields`, `options?`): `ClassDecorator`
48
48
 
49
- Defined in: [src/decorators/PersistenceDecorators.ts:134](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L134)
49
+ Defined in: [src/decorators/PersistenceDecorators.ts:163](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L163)
50
50
 
51
51
  Declares a database index.
52
52
 
@@ -82,7 +82,7 @@ When applied to a class, creates a compound index across the given properties:
82
82
 
83
83
  > **Index**(`name`, `fields`, `options?`): `ClassDecorator`
84
84
 
85
- Defined in: [src/decorators/PersistenceDecorators.ts:135](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L135)
85
+ Defined in: [src/decorators/PersistenceDecorators.ts:164](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L164)
86
86
 
87
87
  Declares a database index.
88
88
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **PrimaryColumn**(`options?`): (`target`, `propertyKey`) => `void`
10
10
 
11
- Defined in: [src/decorators/PersistenceDecorators.ts:111](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L111)
11
+ Defined in: [src/decorators/PersistenceDecorators.ts:140](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L140)
12
12
 
13
13
  Indicates that the decorated property is a primary key column in the datastore.
14
14
 
@@ -10,7 +10,7 @@
10
10
 
11
11
  > **Unique**(`name?`): `PropertyDecorator`
12
12
 
13
- Defined in: [src/decorators/PersistenceDecorators.ts:179](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L179)
13
+ Defined in: [src/decorators/PersistenceDecorators.ts:208](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L208)
14
14
 
15
15
  Declares a unique constraint. This is shorthand for `@Index` with the `unique` option set to `true` and may be
16
16
  applied to a property (single-column constraint) or a class (compound constraint).
@@ -29,7 +29,7 @@ applied to a property (single-column constraint) or a class (compound constraint
29
29
 
30
30
  > **Unique**(`fields`): `ClassDecorator`
31
31
 
32
- Defined in: [src/decorators/PersistenceDecorators.ts:180](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L180)
32
+ Defined in: [src/decorators/PersistenceDecorators.ts:209](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L209)
33
33
 
34
34
  Declares a unique constraint. This is shorthand for `@Index` with the `unique` option set to `true` and may be
35
35
  applied to a property (single-column constraint) or a class (compound constraint).
@@ -48,7 +48,7 @@ applied to a property (single-column constraint) or a class (compound constraint
48
48
 
49
49
  > **Unique**(`name`, `fields`): `ClassDecorator`
50
50
 
51
- Defined in: [src/decorators/PersistenceDecorators.ts:181](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L181)
51
+ Defined in: [src/decorators/PersistenceDecorators.ts:210](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L210)
52
52
 
53
53
  Declares a unique constraint. This is shorthand for `@Index` with the `unique` option set to `true` and may be
54
54
  applied to a property (single-column constraint) or a class (compound constraint).
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **getColumnMetadata**(`clazz`): [`ColumnInfo`](../interfaces/ColumnInfo.md)[]
10
10
 
11
- Defined in: [src/decorators/PersistenceDecorators.ts:216](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L216)
11
+ Defined in: [src/decorators/PersistenceDecorators.ts:242](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L242)
12
12
 
13
13
  Returns the merged list of persisted columns declared across the entire class hierarchy of the given model
14
14
  class. Columns declared in subclasses override columns of the same property name declared in parent classes.
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **getEntityName**(`clazz`): `string` \| `undefined`
10
10
 
11
- Defined in: [src/decorators/PersistenceDecorators.ts:261](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L261)
11
+ Defined in: [src/decorators/PersistenceDecorators.ts:291](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L291)
12
12
 
13
13
  Returns the explicit entity name declared via `@Entity(name)` on the given class or the nearest ancestor that
14
14
  declares one, otherwise `undefined`.
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **getIndexMetadata**(`clazz`): [`IndexInfo`](../interfaces/IndexInfo.md)[]
10
10
 
11
- Defined in: [src/decorators/PersistenceDecorators.ts:236](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L236)
11
+ Defined in: [src/decorators/PersistenceDecorators.ts:262](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L262)
12
12
 
13
13
  Returns the merged list of indexes declared across the entire class hierarchy of the given model class,
14
14
  including both property-level and class-level (compound) indexes. Indexes declared in subclasses override
@@ -0,0 +1,79 @@
1
+ [**@rapidrest/service-core**](../../../../README.md)
2
+
3
+ ***
4
+
5
+ [@rapidrest/service-core](../../../../globals.md) / [PersistenceDecorators](../README.md) / CollationOptions
6
+
7
+ # Interface: CollationOptions
8
+
9
+ Defined in: [src/decorators/PersistenceDecorators.ts:12](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L12)
10
+
11
+ The language-specific rules to use for string comparison in MongoDB collections.
12
+
13
+ ## See
14
+
15
+ https://www.mongodb.com/docs/v7.0/reference/collation/#std-label-collation
16
+
17
+ ## Properties
18
+
19
+ ### alternate?
20
+
21
+ > `optional` **alternate?**: `string`
22
+
23
+ Defined in: [src/decorators/PersistenceDecorators.ts:18](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L18)
24
+
25
+ ***
26
+
27
+ ### backwards?
28
+
29
+ > `optional` **backwards?**: `boolean`
30
+
31
+ Defined in: [src/decorators/PersistenceDecorators.ts:20](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L20)
32
+
33
+ ***
34
+
35
+ ### caseFirst?
36
+
37
+ > `optional` **caseFirst?**: `string`
38
+
39
+ Defined in: [src/decorators/PersistenceDecorators.ts:15](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L15)
40
+
41
+ ***
42
+
43
+ ### caseLevel?
44
+
45
+ > `optional` **caseLevel?**: `boolean`
46
+
47
+ Defined in: [src/decorators/PersistenceDecorators.ts:14](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L14)
48
+
49
+ ***
50
+
51
+ ### locale
52
+
53
+ > **locale**: `string`
54
+
55
+ Defined in: [src/decorators/PersistenceDecorators.ts:13](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L13)
56
+
57
+ ***
58
+
59
+ ### maxVariable?
60
+
61
+ > `optional` **maxVariable?**: `string`
62
+
63
+ Defined in: [src/decorators/PersistenceDecorators.ts:19](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L19)
64
+
65
+ ***
66
+
67
+ ### numericOrdering?
68
+
69
+ > `optional` **numericOrdering?**: `boolean`
70
+
71
+ Defined in: [src/decorators/PersistenceDecorators.ts:17](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L17)
72
+
73
+ ***
74
+
75
+ ### strength?
76
+
77
+ > `optional` **strength?**: `number`
78
+
79
+ Defined in: [src/decorators/PersistenceDecorators.ts:16](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L16)
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Interface: ColumnInfo
8
8
 
9
- Defined in: [src/decorators/PersistenceDecorators.ts:38](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L38)
9
+ Defined in: [src/decorators/PersistenceDecorators.ts:67](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L67)
10
10
 
11
11
  Describes a single persisted column/property of a model class.
12
12
 
@@ -16,7 +16,7 @@ Describes a single persisted column/property of a model class.
16
16
 
17
17
  > `optional` **designType?**: `any`
18
18
 
19
- Defined in: [src/decorators/PersistenceDecorators.ts:42](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L42)
19
+ Defined in: [src/decorators/PersistenceDecorators.ts:71](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L71)
20
20
 
21
21
  The design type of the property as captured at decoration time.
22
22
 
@@ -26,7 +26,7 @@ The design type of the property as captured at decoration time.
26
26
 
27
27
  > **options**: [`ColumnOptions`](ColumnOptions.md)
28
28
 
29
- Defined in: [src/decorators/PersistenceDecorators.ts:44](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L44)
29
+ Defined in: [src/decorators/PersistenceDecorators.ts:73](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L73)
30
30
 
31
31
  The options that the column was declared with.
32
32
 
@@ -36,6 +36,6 @@ The options that the column was declared with.
36
36
 
37
37
  > **propertyName**: `string`
38
38
 
39
- Defined in: [src/decorators/PersistenceDecorators.ts:40](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L40)
39
+ Defined in: [src/decorators/PersistenceDecorators.ts:69](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L69)
40
40
 
41
41
  The name of the class property.
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Interface: ColumnOptions
8
8
 
9
- Defined in: [src/decorators/PersistenceDecorators.ts:10](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L10)
9
+ Defined in: [src/decorators/PersistenceDecorators.ts:26](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L26)
10
10
 
11
11
  The set of options available when declaring a persisted column/property via the `@Column` decorator.
12
12
 
@@ -16,7 +16,7 @@ The set of options available when declaring a persisted column/property via the
16
16
 
17
17
  > `optional` **isObjectId?**: `boolean`
18
18
 
19
- Defined in: [src/decorators/PersistenceDecorators.ts:18](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L18)
19
+ Defined in: [src/decorators/PersistenceDecorators.ts:34](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L34)
20
20
 
21
21
  Set to `true` if the column stores a MongoDB `ObjectId` value.
22
22
 
@@ -26,7 +26,7 @@ Set to `true` if the column stores a MongoDB `ObjectId` value.
26
26
 
27
27
  > `optional` **name?**: `string`
28
28
 
29
- Defined in: [src/decorators/PersistenceDecorators.ts:12](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L12)
29
+ Defined in: [src/decorators/PersistenceDecorators.ts:28](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L28)
30
30
 
31
31
  The name of the column in the datastore. Defaults to the property name.
32
32
 
@@ -36,7 +36,7 @@ The name of the column in the datastore. Defaults to the property name.
36
36
 
37
37
  > `optional` **nullable?**: `boolean`
38
38
 
39
- Defined in: [src/decorators/PersistenceDecorators.ts:14](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L14)
39
+ Defined in: [src/decorators/PersistenceDecorators.ts:30](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L30)
40
40
 
41
41
  Set to `true` if the column may store `null`/`undefined` values.
42
42
 
@@ -46,6 +46,6 @@ Set to `true` if the column may store `null`/`undefined` values.
46
46
 
47
47
  > `optional` **primary?**: `boolean`
48
48
 
49
- Defined in: [src/decorators/PersistenceDecorators.ts:16](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L16)
49
+ Defined in: [src/decorators/PersistenceDecorators.ts:32](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L32)
50
50
 
51
51
  Set to `true` if the column is a primary key.
@@ -0,0 +1,32 @@
1
+ [**@rapidrest/service-core**](../../../../README.md)
2
+
3
+ ***
4
+
5
+ [@rapidrest/service-core](../../../../globals.md) / [PersistenceDecorators](../README.md) / EntityOptions
6
+
7
+ # Interface: EntityOptions
8
+
9
+ Defined in: [src/decorators/PersistenceDecorators.ts:40](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L40)
10
+
11
+ The set of options to use when declaring a persistent class type via the `@Entity` decorator.
12
+
13
+ ## Properties
14
+
15
+ ### collation?
16
+
17
+ > `optional` **collation?**: [`CollationOptions`](CollationOptions.md)
18
+
19
+ Defined in: [src/decorators/PersistenceDecorators.ts:45](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L45)
20
+
21
+ The language-specific collation rules to apply to the collection. (MongoDB only)
22
+
23
+ ***
24
+
25
+ ### name?
26
+
27
+ > `optional` **name?**: `string`
28
+
29
+ Defined in: [src/decorators/PersistenceDecorators.ts:43](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L43)
30
+
31
+ The name of the collection (or table) that records will be stored in. Defaults to the snake_case
32
+ form of the class name.
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Interface: IndexInfo
8
8
 
9
- Defined in: [src/decorators/PersistenceDecorators.ts:50](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L50)
9
+ Defined in: [src/decorators/PersistenceDecorators.ts:79](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L79)
10
10
 
11
11
  Describes a single database index of a model class.
12
12
 
@@ -16,7 +16,7 @@ Describes a single database index of a model class.
16
16
 
17
17
  > **columns**: `string`[]
18
18
 
19
- Defined in: [src/decorators/PersistenceDecorators.ts:54](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L54)
19
+ Defined in: [src/decorators/PersistenceDecorators.ts:83](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L83)
20
20
 
21
21
  The list of class properties that make up the index.
22
22
 
@@ -26,7 +26,7 @@ The list of class properties that make up the index.
26
26
 
27
27
  > `optional` **name?**: `string`
28
28
 
29
- Defined in: [src/decorators/PersistenceDecorators.ts:52](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L52)
29
+ Defined in: [src/decorators/PersistenceDecorators.ts:81](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L81)
30
30
 
31
31
  The explicit name of the index, if any.
32
32
 
@@ -36,6 +36,6 @@ The explicit name of the index, if any.
36
36
 
37
37
  > **options**: [`IndexOptions`](IndexOptions.md)
38
38
 
39
- Defined in: [src/decorators/PersistenceDecorators.ts:56](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L56)
39
+ Defined in: [src/decorators/PersistenceDecorators.ts:85](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L85)
40
40
 
41
41
  The options that the index was declared with.
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Interface: IndexOptions
8
8
 
9
- Defined in: [src/decorators/PersistenceDecorators.ts:24](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L24)
9
+ Defined in: [src/decorators/PersistenceDecorators.ts:51](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L51)
10
10
 
11
11
  The set of options available when declaring a database index via the `@Index` decorator.
12
12
 
@@ -16,17 +16,27 @@ The set of options available when declaring a database index via the `@Index` de
16
16
 
17
17
  > `optional` **background?**: `boolean`
18
18
 
19
- Defined in: [src/decorators/PersistenceDecorators.ts:30](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L30)
19
+ Defined in: [src/decorators/PersistenceDecorators.ts:57](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L57)
20
20
 
21
21
  Set to `true` to build the index in the background. (MongoDB only)
22
22
 
23
23
  ***
24
24
 
25
+ ### collation?
26
+
27
+ > `optional` **collation?**: [`CollationOptions`](CollationOptions.md)
28
+
29
+ Defined in: [src/decorators/PersistenceDecorators.ts:61](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L61)
30
+
31
+ The language-specific collation rules to apply to the index. (MongoDB only)
32
+
33
+ ***
34
+
25
35
  ### expireAfterSeconds?
26
36
 
27
37
  > `optional` **expireAfterSeconds?**: `number`
28
38
 
29
- Defined in: [src/decorators/PersistenceDecorators.ts:32](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L32)
39
+ Defined in: [src/decorators/PersistenceDecorators.ts:59](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L59)
30
40
 
31
41
  The time, in seconds, after which indexed documents will be automatically deleted. (MongoDB only)
32
42
 
@@ -36,7 +46,7 @@ The time, in seconds, after which indexed documents will be automatically delete
36
46
 
37
47
  > `optional` **sparse?**: `boolean`
38
48
 
39
- Defined in: [src/decorators/PersistenceDecorators.ts:28](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L28)
49
+ Defined in: [src/decorators/PersistenceDecorators.ts:55](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L55)
40
50
 
41
51
  Set to `true` to only index documents in which the indexed properties exist. (MongoDB only)
42
52
 
@@ -46,6 +56,6 @@ Set to `true` to only index documents in which the indexed properties exist. (Mo
46
56
 
47
57
  > `optional` **unique?**: `boolean`
48
58
 
49
- Defined in: [src/decorators/PersistenceDecorators.ts:26](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/PersistenceDecorators.ts#L26)
59
+ Defined in: [src/decorators/PersistenceDecorators.ts:53](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L53)
50
60
 
51
61
  Set to `true` to enforce that all values of the indexed properties are unique.
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **After**(`func`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:13](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L13)
11
+ Defined in: [src/decorators/RouteDecorators.ts:13](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L13)
12
12
 
13
13
  Indicates a provided function or list of functions to execute *after* the decorated function and before the response
14
14
  is sent to a client. Note that the function must call `next()` in order for this decorator to work.
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Auth**(`strategies`, `require?`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:33](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L33)
11
+ Defined in: [src/decorators/RouteDecorators.ts:33](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L33)
12
12
 
13
13
  Applies PassportJS authentication to the decorated route or method for the provided strategy or list of strategies
14
14
  should be attempted before processing the route.
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **AuthResult**(`target`, `propertyKey`, `index`): `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:45](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L45)
11
+ Defined in: [src/decorators/RouteDecorators.ts:45](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L45)
12
12
 
13
13
  Injects the authenticated authentication result as the value of the decorated argument.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Before**(`func`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:56](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L56)
11
+ Defined in: [src/decorators/RouteDecorators.ts:56](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L56)
12
12
 
13
13
  Indicates a provided function or list of functions to execute *before* the decorated function.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **ContentType**(`type`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:73](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L73)
11
+ Defined in: [src/decorators/RouteDecorators.ts:73](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L73)
12
12
 
13
13
  Indicates that the decorated function will return content encoded with the specified content type.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Delete**(`path?`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:86](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L86)
11
+ Defined in: [src/decorators/RouteDecorators.ts:86](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L86)
12
12
 
13
13
  Indicates that the decorated function handles incoming `DELETE` requests at the given sub-path.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Get**(`path?`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:95](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L95)
11
+ Defined in: [src/decorators/RouteDecorators.ts:95](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L95)
12
12
 
13
13
  Indicates that the decorated function handles incoming `GET` requests at the given sub-path.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Head**(`path?`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:104](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L104)
11
+ Defined in: [src/decorators/RouteDecorators.ts:104](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L104)
12
12
 
13
13
  Indicates that the decorated function handles incoming `HEAD` requests at the given sub-path.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Header**(`name`): (`target`, `propertyKey`, `index`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:113](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L113)
11
+ Defined in: [src/decorators/RouteDecorators.ts:113](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L113)
12
12
 
13
13
  Injects the value of the specified request header with the given name as the value of the decorated argument.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Method**(`method`, `path?`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:127](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L127)
11
+ Defined in: [src/decorators/RouteDecorators.ts:127](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L127)
12
12
 
13
13
  Indicates that the decorated function handles incoming HTTP requests for the specified HTTP method(s) at the given sub-path.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Model**(`type`): \<`T`\>(`constructor`) => \{(...`args`): `(Anonymous class)`\<`T`\>; `modelClass`: `any`; `prototype`: `(Anonymous class)`\<`any`\>; \} & `T`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:150](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L150)
11
+ Defined in: [src/decorators/RouteDecorators.ts:150](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L150)
12
12
 
13
13
  Indicates that the class utilizes is a manager for the specified class type.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Options**(`path?`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/RouteDecorators.ts:164](https://github.com/rapidrest/service-core/blob/1525696e01ca0eceb33d14e93f096bae8fe233b3/src/decorators/RouteDecorators.ts#L164)
11
+ Defined in: [src/decorators/RouteDecorators.ts:164](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/RouteDecorators.ts#L164)
12
12
 
13
13
  Indicates that the decorated function handles incoming `OPTIONS` requests at the given sub-path.
14
14