@rapidrest/service-core 1.0.0-rc.14 → 1.0.0-rc.17

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 (164) hide show
  1. package/dist/lib/decorators/RouteDecorators.js +28 -5
  2. package/dist/lib/decorators/RouteDecorators.js.map +1 -1
  3. package/dist/lib/routes/CRUDRoute.js +13 -10
  4. package/dist/lib/routes/CRUDRoute.js.map +1 -1
  5. package/dist/lib/security/BaseACLRoute.js +11 -3
  6. package/dist/lib/security/BaseACLRoute.js.map +1 -1
  7. package/dist/types/decorators/RouteDecorators.d.ts +14 -5
  8. package/dist/types/routes/CRUDRoute.d.ts +13 -10
  9. package/dist/types/security/BaseACLRoute.d.ts +11 -3
  10. package/package.json +1 -3
  11. package/docs/Makefile +0 -20
  12. package/docs/conf.py +0 -58
  13. package/docs/index.rst +0 -17
  14. package/docs/make.bat +0 -35
  15. package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/README.md +0 -13
  16. package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/MongoRepository.md +0 -25
  17. package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/RedisConnection.md +0 -25
  18. package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/Repository.md +0 -25
  19. package/docs/reference/@rapidrest/namespaces/DocDecorators/README.md +0 -23
  20. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Default.md +0 -25
  21. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Description.md +0 -25
  22. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Document.md +0 -25
  23. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Example.md +0 -25
  24. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Format.md +0 -25
  25. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Returns.md +0 -28
  26. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Summary.md +0 -25
  27. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Tags.md +0 -25
  28. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/TypeInfo.md +0 -28
  29. package/docs/reference/@rapidrest/namespaces/DocDecorators/interfaces/DocumentsData.md +0 -57
  30. package/docs/reference/@rapidrest/namespaces/EventDecorators/README.md +0 -12
  31. package/docs/reference/@rapidrest/namespaces/EventDecorators/functions/EventListener.md +0 -17
  32. package/docs/reference/@rapidrest/namespaces/EventDecorators/functions/OnEvent.md +0 -26
  33. package/docs/reference/@rapidrest/namespaces/ModelDecorators/README.md +0 -26
  34. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Cache.md +0 -25
  35. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/ChildEntity.md +0 -18
  36. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/DataStore.md +0 -25
  37. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Identifier.md +0 -27
  38. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Protect.md +0 -35
  39. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Reference.md +0 -25
  40. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Shard.md +0 -27
  41. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/TrackChanges.md +0 -26
  42. package/docs/reference/@rapidrest/namespaces/ModelDecorators/interfaces/PendingTypeOrmColumn.md +0 -45
  43. package/docs/reference/@rapidrest/namespaces/ModelDecorators/variables/pendingTypeOrmColumns.md +0 -14
  44. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/README.md +0 -27
  45. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Column.md +0 -25
  46. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Entity.md +0 -25
  47. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Index.md +0 -119
  48. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/PrimaryColumn.md +0 -25
  49. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Unique.md +0 -68
  50. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getColumnMetadata.md +0 -26
  51. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getEntityName.md +0 -26
  52. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getIndexMetadata.md +0 -27
  53. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/CollationOptions.md +0 -79
  54. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/ColumnInfo.md +0 -41
  55. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/ColumnOptions.md +0 -51
  56. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/EntityOptions.md +0 -32
  57. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/IndexInfo.md +0 -41
  58. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/IndexOptions.md +0 -61
  59. package/docs/reference/@rapidrest/namespaces/RouteDecorators/README.md +0 -36
  60. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/After.md +0 -26
  61. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Auth.md +0 -33
  62. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/AuthResult.md +0 -31
  63. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Before.md +0 -25
  64. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/ContentType.md +0 -25
  65. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Delete.md +0 -25
  66. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Get.md +0 -25
  67. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Head.md +0 -25
  68. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Header.md +0 -25
  69. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Method.md +0 -31
  70. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Model.md +0 -25
  71. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Options.md +0 -25
  72. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Param.md +0 -26
  73. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Patch.md +0 -25
  74. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Post.md +0 -25
  75. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Protect.md +0 -31
  76. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Put.md +0 -25
  77. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Query.md +0 -26
  78. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Request.md +0 -31
  79. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/RequiresRole.md +0 -26
  80. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Response.md +0 -31
  81. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Route.md +0 -25
  82. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Socket.md +0 -33
  83. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/User.md +0 -31
  84. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Validate.md +0 -25
  85. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/WebSocket.md +0 -25
  86. package/docs/reference/README.md +0 -20
  87. package/docs/reference/classes/ACLUtils.md +0 -263
  88. package/docs/reference/classes/AdminRoute.md +0 -51
  89. package/docs/reference/classes/AuthMiddleware.md +0 -173
  90. package/docs/reference/classes/BackgroundService.md +0 -117
  91. package/docs/reference/classes/BackgroundServiceManager.md +0 -172
  92. package/docs/reference/classes/BaseEntity.md +0 -82
  93. package/docs/reference/classes/BaseMongoEntity.md +0 -107
  94. package/docs/reference/classes/BasicStrategy.md +0 -131
  95. package/docs/reference/classes/BasicStrategyOptions.md +0 -115
  96. package/docs/reference/classes/BulkError.md +0 -271
  97. package/docs/reference/classes/ConnectionManager.md +0 -75
  98. package/docs/reference/classes/EventListenerManager.md +0 -88
  99. package/docs/reference/classes/HttpRouter.md +0 -343
  100. package/docs/reference/classes/JWTStrategy.md +0 -100
  101. package/docs/reference/classes/JWTStrategyOptions.md +0 -97
  102. package/docs/reference/classes/MetricsRoute.md +0 -27
  103. package/docs/reference/classes/ModelRoute.md +0 -534
  104. package/docs/reference/classes/ModelUtils.md +0 -446
  105. package/docs/reference/classes/MongoConnection.md +0 -218
  106. package/docs/reference/classes/MongoRepository.md +0 -390
  107. package/docs/reference/classes/MongoSchemaSync.md +0 -97
  108. package/docs/reference/classes/NetUtils.md +0 -90
  109. package/docs/reference/classes/NotificationUtils.md +0 -77
  110. package/docs/reference/classes/ObjectFactory.md +0 -336
  111. package/docs/reference/classes/OpenAPIRoute.md +0 -77
  112. package/docs/reference/classes/OpenApiSpec.md +0 -892
  113. package/docs/reference/classes/RecoverableBaseEntity.md +0 -114
  114. package/docs/reference/classes/RecoverableBaseMongoEntity.md +0 -124
  115. package/docs/reference/classes/RedisTransport.md +0 -2202
  116. package/docs/reference/classes/RepoUtils.md +0 -482
  117. package/docs/reference/classes/RouteUtils.md +0 -191
  118. package/docs/reference/classes/Server.md +0 -408
  119. package/docs/reference/classes/SimpleEntity.md +0 -48
  120. package/docs/reference/classes/SimpleMongoEntity.md +0 -66
  121. package/docs/reference/classes/StatusExtraData.md +0 -57
  122. package/docs/reference/classes/StatusRoute.md +0 -26
  123. package/docs/reference/classes/UWSRequest.md +0 -226
  124. package/docs/reference/classes/UWSResponse.md +0 -257
  125. package/docs/reference/classes/UWSWebSocketShim.md +0 -958
  126. package/docs/reference/enumerations/ACLAction.md +0 -63
  127. package/docs/reference/enumerations/ApiErrorMessages.md +0 -123
  128. package/docs/reference/enumerations/ApiErrors.md +0 -123
  129. package/docs/reference/functions/createWebSocketStream.md +0 -27
  130. package/docs/reference/functions/isSqlDataSource.md +0 -26
  131. package/docs/reference/functions/readBody.md +0 -29
  132. package/docs/reference/functions/resolveCollectionName.md +0 -33
  133. package/docs/reference/functions/runChain.md +0 -40
  134. package/docs/reference/functions/snakeCase.md +0 -28
  135. package/docs/reference/globals.md +0 -106
  136. package/docs/reference/interfaces/ACLRecord.md +0 -96
  137. package/docs/reference/interfaces/AccessControlList.md +0 -76
  138. package/docs/reference/interfaces/AuthResult.md +0 -55
  139. package/docs/reference/interfaces/AuthStrategy.md +0 -95
  140. package/docs/reference/interfaces/CreateRequestOptions.md +0 -121
  141. package/docs/reference/interfaces/DeleteRequestOptions.md +0 -137
  142. package/docs/reference/interfaces/FindRequestOptions.md +0 -133
  143. package/docs/reference/interfaces/HttpRequest.md +0 -147
  144. package/docs/reference/interfaces/HttpResponse.md +0 -164
  145. package/docs/reference/interfaces/JWTAuthResult.md +0 -84
  146. package/docs/reference/interfaces/RepoCreateOptions.md +0 -95
  147. package/docs/reference/interfaces/RepoDeleteOptions.md +0 -105
  148. package/docs/reference/interfaces/RepoFindOptions.md +0 -125
  149. package/docs/reference/interfaces/RepoOperationOptions.md +0 -69
  150. package/docs/reference/interfaces/RepoUpdateOptions.md +0 -101
  151. package/docs/reference/interfaces/RequestOptions.md +0 -112
  152. package/docs/reference/interfaces/RequestWS.md +0 -225
  153. package/docs/reference/interfaces/TruncateRequestOptions.md +0 -161
  154. package/docs/reference/interfaces/UpdateRequestOptions.md +0 -139
  155. package/docs/reference/type-aliases/ErrorHandler.md +0 -35
  156. package/docs/reference/type-aliases/NextFunction.md +0 -23
  157. package/docs/reference/type-aliases/OneOrMany.md +0 -19
  158. package/docs/reference/type-aliases/OneOrNull.md +0 -19
  159. package/docs/reference/type-aliases/PartialBaseEntity.md +0 -17
  160. package/docs/reference/type-aliases/PartialSimpleEntity.md +0 -17
  161. package/docs/reference/type-aliases/RequestHandler.md +0 -31
  162. package/docs/reference/type-aliases/UpdateObject.md +0 -19
  163. package/docs/reference/type-aliases/WsUpgradeAuth.md +0 -27
  164. package/docs/reference/type-aliases/WsUpgradeAuthResult.md +0 -47
@@ -30,6 +30,16 @@ function getRouteMetadata(target, propertyKey) {
30
30
  function getArgsMetadata(target, propertyKey) {
31
31
  return { ...Reflect.getMetadata("rrst:args", target, propertyKey) };
32
32
  }
33
+ /**
34
+ * Concatenates all the provided strings and joins them with `/`.
35
+ *
36
+ * @param paths The list of strings to join with `/`.
37
+ */
38
+ function join(...paths) {
39
+ let result = "";
40
+ paths.forEach((val) => (result += val.startsWith("/") ? val : `/${val}`));
41
+ return result;
42
+ }
33
43
  /**
34
44
  * Indicates a provided function or list of functions to execute *after* the decorated function and before the response
35
45
  * is sent to a client. Note that the function must call `next()` in order for this decorator to work.
@@ -46,10 +56,23 @@ export function After(func) {
46
56
  };
47
57
  }
48
58
  /**
49
- * Applies PassportJS authentication to the decorated route or method for the provided strategy or list of strategies
59
+ * Indicates that the decorated class contains route definitions. This prepends `/api` or `/api/v{version}` to
60
+ * all provided path(s). e.g. `@ApiRoute('my-api')` results in `/api/my-api`. `@ApiRoute('my-api',2) results in
61
+ * `/api/v2/my-api`.
62
+ *
63
+ * @param paths The base path(s) that all route definitions will use.
64
+ * @param version The optional version number to prepend the path with. Prefixes the provided version with `v` in the path.
65
+ */
66
+ export function ApiRoute(paths, version) {
67
+ let tPaths = Array.isArray(paths) ? paths : [paths];
68
+ tPaths = tPaths.map((path) => (version ? join("api", `v${version}`, path) : join("api", path)));
69
+ return Route(tPaths);
70
+ }
71
+ /**
72
+ * Applies authentication to the decorated route or method for the provided strategy or list of strategies
50
73
  * should be attempted before processing the route.
51
74
  *
52
- * @param strategies The PassportJS strategies that will be applied when incoming requests are processed.
75
+ * @param strategies The strategies that will be applied when incoming requests are processed.
53
76
  * @param require Set to `true` to indicate that at least one of the specified authentication strategies must pass to
54
77
  * proceed, otherwise set to `false`. Default is `true`.
55
78
  */
@@ -271,7 +294,7 @@ export function Query(name = undefined) {
271
294
  };
272
295
  }
273
296
  /**
274
- * Injects the Express request object as the value of the decorated argument.
297
+ * Injects the HTTP request object as the value of the decorated argument.
275
298
  */
276
299
  export function Request(target, propertyKey, index) {
277
300
  let args = getArgsMetadata(target, propertyKey);
@@ -279,7 +302,7 @@ export function Request(target, propertyKey, index) {
279
302
  Reflect.defineMetadata("rrst:args", args, target, propertyKey);
280
303
  }
281
304
  /**
282
- * Injects the Express response object as the value of the decorated argument.
305
+ * Injects the HTTP response object as the value of the decorated argument.
283
306
  */
284
307
  export function Response(target, propertyKey, index) {
285
308
  let args = getArgsMetadata(target, propertyKey);
@@ -300,7 +323,7 @@ export function RequiresRole(roles) {
300
323
  };
301
324
  }
302
325
  /**
303
- * Indicates that the decorated class contains Express route definitions.
326
+ * Indicates that the decorated class contains route definitions.
304
327
  *
305
328
  * @param paths The base path(s) that all route definitions will use.
306
329
  */
@@ -1 +1 @@
1
- {"version":3,"file":"RouteDecorators.js","sourceRoot":"","sources":["../../../src/decorators/RouteDecorators.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,wEAAwE;AACxE,+EAA+E;AAC/E,OAAO,kBAAkB,CAAC;AAG1B;;;;;;;;;GASG;AACH,SAAS,gBAAgB,CAAC,MAAW,EAAE,WAAmB;IACtD,MAAM,QAAQ,GAAQ,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;IAC7E,OAAO;QACH,GAAG,QAAQ;QACX,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;KACrE,CAAC;AACN,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,eAAe,CAAC,MAAW,EAAE,WAAmB;IACrD,OAAO,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,CAAC;AACxE,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,KAAK,CAAC,IAA+C;IACjE,OAAO,UAAU,MAAW,EAAE,WAAmB,EAAE,UAA8B;QAC7E,IAAI,KAAK,GAAQ,gBAAgB,CA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AC,cAAc,CAAC,iBAAiB,EAAE,UAAU,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IAC5E,CAAC,CAAC;AACN,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,MAAM,CAAC,MAAW,EAAE,WAAmB,EAAE,KAAa;IAClE,IAAI,IAAI,GAAQ,eAAe,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACrD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACzB,OAAO,CAAC,cAAc,CAAC,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;AACnE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,IAAI,CAAC,MAAW,EAAE,WAAmB,EAAE,KAAa;IAChE,IAAI,IAAI,GAAQ,eAAe,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACrD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,OAAO,CAAC,cAAc,CAAC,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;AACnE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAuB;IAC5C,OAAO,UAAU,MAAW,EAAE,WAAmB,EAAE,UAA8B;QAC7E,IAAI,KAAK,GAAQ,gBAAgB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QACvD,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;QACvB,OAAO,CAAC,cAAc,CAAC,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;IACrE,CAAC,CAAC;AACN,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,IAAa;IACnC,OAAO,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC9B,CAAC"}
@@ -27,16 +27,19 @@ import { ModelRoute } from "./ModelRoute.js";
27
27
  * is enabled these handlers will still validate permissions appropriately.
28
28
  *
29
29
  * Included Endpoints:
30
- * * `count` [`HEAD /`]: Counts the number of objects matching the provided set of criteria in the request's query parameters. Returns the count as the value of the `Content-Length` header.
31
- * * `create` [`POST /`]- Adds one or more new objects to the datastore.
32
- * * `delete` [`DELETE /:id`]: Removes an existing object from the datastore.
33
- * * `exists` [`HEAD /:id`]: Checks if the object with the given ID exists in the datastore. Sets `Content-Length` header to `1` if the object exists, otherwise `0`.
34
- * * `find` [`GET /`]: Returns all objects matching the provided set of criteria in the request's query parameters.
35
- * * `findById` [`GET /:id`]: Returns a single object with a specified unique identifier.
36
- * * `truncate` [`DELETE /`]: Removes all objects from the datastore.
37
- * * `update` [`PUT /:id`]: Modifies an existing object in the datastore.
38
- * * `updateBulk` [`PUT /`]: Modifies multiple existing objects in the datastore.
39
- * * `updateProperty` [`PUT /:id/:property`]: Modifies an single property of the given name of an existing object in the datastore.
30
+ *
31
+ * | Name | HTTP Method | What it does |
32
+ * | --- | --- | --- |
33
+ * | `count` | `HEAD /` | Counts the number of objects matching the provided set of criteria in the request's query parameters. Returns the count as the value of the `Content-Length` header. |
34
+ * | `create` | `POST /` | Adds one or more new objects to the datastore. |
35
+ * | `delete` | `DELETE /:id` | Removes an existing object from the datastore. |
36
+ * | `exists` | `HEAD /:id` | Checks if the object with the given ID exists in the datastore. Sets `Content-Length` header to `1` if the object exists, otherwise `0`. |
37
+ * | `find` | `GET /` | Returns all objects matching the provided set of criteria in the request's query parameters. |
38
+ * | `findById` | `GET /:id` | Returns a single object with a specified unique identifier. |
39
+ * | `truncate` | `DELETE /` | Removes all objects from the datastore. |
40
+ * | `update` | `PUT /:id` | Modifies an existing object in the datastore. |
41
+ * | `updateBulk` | `PUT /` | Modifies multiple existing objects in the datastore. |
42
+ * | `updateProperty` | `PUT /:id/:property` | Modifies an single property of the given name of an existing object in the datastore. |
40
43
  *
41
44
  * @author Jean-Philippe Steinmetz
42
45
  */
@@ -1 +1 @@
1
- {"version":3,"file":"CRUDRoute.js","sourceRoot":"","sources":["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ACkB,WAAA,OAAO,CAAA;IAAoB,WAAA,IAAI,CAAA;;;;2CAE/E;AAOM;IALN,OAAO,CAAC,qCAAqC,CAAC;IAC9C,GAAG,CAAC,eAAe,CAAC;IACpB,WAAW,CAAC,qDAAqD,CAAC;IAClE,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;IAClB,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;IAEb,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;IACX,WAAA,KAAK,CAAC,UAAU,CAAC,CAAA;IAEjB,WAAA,IAAI,CAAA;;;;+CAGR"}
@@ -22,11 +22,19 @@ import { CRUDRoute } from "../routes/CRUDRoute.js";
22
22
  *
23
23
  * | Name | HTTP Method | What it does |
24
24
  * | --- | --- | --- |
25
- * | `connect` | `UPGRADE /<base_path>/connect` | Establishes a connection to the push notification system. |
26
- * | `send` | `POST /<base_path>/:id` | Sends a push notification message to the channel with the given id |
25
+ * | `count` | `HEAD /` | Counts the number of ACLs matching the provided set of criteria in the request's query parameters. Returns the count as the value of the `Content-Length` header. |
26
+ * | `create` | `POST /` | Adds one or more new ACLs to the datastore. |
27
+ * | `delete` | `DELETE /:id` | Removes an existing ACL from the datastore. |
28
+ * | `exists` | `HEAD /:id` | Checks if the ACL with the given ID exists in the datastore. Sets `Content-Length` header to `1` if the ACL exists, otherwise `0`. |
29
+ * | `find` | `GET /` | Returns all ACLs matching the provided set of criteria in the request's query parameters. |
30
+ * | `findById` | `GET /:id` | Returns a single ACL with a specified unique identifier. |
31
+ * | `truncate` | `DELETE /` | Removes all ACLs from the datastore. |
32
+ * | `update` | `PUT /:id` | Modifies an existing ACL in the datastore. |
33
+ * | `updateBulk` | `PUT /` | Modifies multiple existing ACLs in the datastore. |
34
+ * | `updateProperty` | `PUT /:id/:property` | Modifies an single property of the given name of an existing ACL in the datastore. |
27
35
  *
28
36
  * !!Note!! that the `BaseACLRoute` is not automatically registered with a server by default. You must create
29
- * your own class that extends `AdminRoute` and apply the desired base path with `@Route()`.
37
+ * your own class that extends `BaseACLRoute` and apply the desired base path with `@Route()`.
30
38
  *
31
39
  * @example
32
40
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"BaseACLRoute.js","sourceRoot":"","sources":["../../../src/security/BaseACLRoute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,OAAO,EAAqB,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAW,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,OAAgB,YAA0C,SAAQ,SAAY;IAChE,AAAN,KAAK,CAAC,UAAU,CAAU,MAAW,EAAQ,IAAa;QAChE,IAAI,CAAC,IAAI,EAAE,CAAC;YACR,MAAM,IAAI,QAAQ,CAAC,gBAAgB,CAAC,aAAa,EAAE,GAAG,EAAE,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC5F,CAAC;QACD,IACI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;YAC3D,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EACvF,CAAC;YACC,MAAM,IAAI,QAAQ,CAAC,gBAAgB,CAAC,uBAAuB,EAAE,GAAG,EAAE,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;QAChH,CAAC;IACL,C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AA,KAAK,CAAC,IAAI,CAAC,CAAA;IACX,WAAA,KAAK,EAAE,CAAA;IACP,WAAA,QAAQ,CAAA;IACR,WAAA,IAAI,CAAA;;;;0CAGR;AAGM;IADN,MAAM,CAAC,YAAY,CAAC;IACR,WAAA,KAAK,EAAE,CAAA;IAAe,WAAA,KAAK,EAAE,CAAA;IAAc,WAAA,IAAI,CAAA;;;;wCAE3D;AAGY;IADZ,MAAM,CAAC,YAAY,CAAC;IACE,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;IAAc,WAAA,KAAK,EAAE,CAAA;IAAc,WAAA,IAAI,CAAA;;;;4CAExE;AAGM;IADN,MAAM,CAAC,YAAY,CAAC;IACJ,WAAA,KAAK,EAAE,CAAA;IAAe,WAAA,KAAK,EAAE,CAAA;IAAc,WAAA,IAAI,CAAA;;;;4CAE/D;AAGM;IADN,MAAM,CAAC,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC;IAErC,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;IAEX,WAAA,OAAO,CAAA;IACP,WAAA,IAAI,CAAA;;;;0CAGR;AAGM;IADN,MAAM,CAAC,YAAY,CAAC;IAEhB,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;IACX,WAAA,KAAK,CAAC,UAAU,CAAC,CAAA;IAEjB,WAAA,IAAI,CAAA;;;;kDAGR;AAGM;IADN,MAAM,CAAC,gBAAgB,CAAC;IACkB,WAAA,OAAO,CAAA;IAAoB,WAAA,IAAI,CAAA;;;;8CAEzE"}
@@ -8,10 +8,19 @@ import { AccessControlList } from "../security/AccessControlList.js";
8
8
  */
9
9
  export declare function After(func: Function | string | (Function | string)[]): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
10
10
  /**
11
- * Applies PassportJS authentication to the decorated route or method for the provided strategy or list of strategies
11
+ * Indicates that the decorated class contains route definitions. This prepends `/api` or `/api/v{version}` to
12
+ * all provided path(s). e.g. `@ApiRoute('my-api')` results in `/api/my-api`. `@ApiRoute('my-api',2) results in
13
+ * `/api/v2/my-api`.
14
+ *
15
+ * @param paths The base path(s) that all route definitions will use.
16
+ * @param version The optional version number to prepend the path with. Prefixes the provided version with `v` in the path.
17
+ */
18
+ export declare function ApiRoute(paths: string | string[], version?: string | number): (target: Function) => void;
19
+ /**
20
+ * Applies authentication to the decorated route or method for the provided strategy or list of strategies
12
21
  * should be attempted before processing the route.
13
22
  *
14
- * @param strategies The PassportJS strategies that will be applied when incoming requests are processed.
23
+ * @param strategies The strategies that will be applied when incoming requests are processed.
15
24
  * @param require Set to `true` to indicate that at least one of the specified authentication strategies must pass to
16
25
  * proceed, otherwise set to `false`. Default is `true`.
17
26
  */
@@ -127,11 +136,11 @@ export declare function Protect(acl?: PartialACL): (target: any, propertyKey?: s
127
136
  */
128
137
  export declare function Query(name?: string | undefined): (target: any, propertyKey: string, index: number) => void;
129
138
  /**
130
- * Injects the Express request object as the value of the decorated argument.
139
+ * Injects the HTTP request object as the value of the decorated argument.
131
140
  */
132
141
  export declare function Request(target: any, propertyKey: string, index: number): void;
133
142
  /**
134
- * Injects the Express response object as the value of the decorated argument.
143
+ * Injects the HTTP response object as the value of the decorated argument.
135
144
  */
136
145
  export declare function Response(target: any, propertyKey: string, index: number): void;
137
146
  /**
@@ -142,7 +151,7 @@ export declare function Response(target: any, propertyKey: string, index: number
142
151
  */
143
152
  export declare function RequiresRole(roles: string | string[]): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
144
153
  /**
145
- * Indicates that the decorated class contains Express route definitions.
154
+ * Indicates that the decorated class contains route definitions.
146
155
  *
147
156
  * @param paths The base path(s) that all route definitions will use.
148
157
  */
@@ -13,16 +13,19 @@ import { ModelRoute, UpdateObject } from "./ModelRoute.js";
13
13
  * is enabled these handlers will still validate permissions appropriately.
14
14
  *
15
15
  * Included Endpoints:
16
- * * `count` [`HEAD /`]: Counts the number of objects matching the provided set of criteria in the request's query parameters. Returns the count as the value of the `Content-Length` header.
17
- * * `create` [`POST /`]- Adds one or more new objects to the datastore.
18
- * * `delete` [`DELETE /:id`]: Removes an existing object from the datastore.
19
- * * `exists` [`HEAD /:id`]: Checks if the object with the given ID exists in the datastore. Sets `Content-Length` header to `1` if the object exists, otherwise `0`.
20
- * * `find` [`GET /`]: Returns all objects matching the provided set of criteria in the request's query parameters.
21
- * * `findById` [`GET /:id`]: Returns a single object with a specified unique identifier.
22
- * * `truncate` [`DELETE /`]: Removes all objects from the datastore.
23
- * * `update` [`PUT /:id`]: Modifies an existing object in the datastore.
24
- * * `updateBulk` [`PUT /`]: Modifies multiple existing objects in the datastore.
25
- * * `updateProperty` [`PUT /:id/:property`]: Modifies an single property of the given name of an existing object in the datastore.
16
+ *
17
+ * | Name | HTTP Method | What it does |
18
+ * | --- | --- | --- |
19
+ * | `count` | `HEAD /` | Counts the number of objects matching the provided set of criteria in the request's query parameters. Returns the count as the value of the `Content-Length` header. |
20
+ * | `create` | `POST /` | Adds one or more new objects to the datastore. |
21
+ * | `delete` | `DELETE /:id` | Removes an existing object from the datastore. |
22
+ * | `exists` | `HEAD /:id` | Checks if the object with the given ID exists in the datastore. Sets `Content-Length` header to `1` if the object exists, otherwise `0`. |
23
+ * | `find` | `GET /` | Returns all objects matching the provided set of criteria in the request's query parameters. |
24
+ * | `findById` | `GET /:id` | Returns a single object with a specified unique identifier. |
25
+ * | `truncate` | `DELETE /` | Removes all objects from the datastore. |
26
+ * | `update` | `PUT /:id` | Modifies an existing object in the datastore. |
27
+ * | `updateBulk` | `PUT /` | Modifies multiple existing objects in the datastore. |
28
+ * | `updateProperty` | `PUT /:id/:property` | Modifies an single property of the given name of an existing object in the datastore. |
26
29
  *
27
30
  * @author Jean-Philippe Steinmetz
28
31
  */
@@ -10,11 +10,19 @@ import { CRUDRoute } from "../routes/CRUDRoute.js";
10
10
  *
11
11
  * | Name | HTTP Method | What it does |
12
12
  * | --- | --- | --- |
13
- * | `connect` | `UPGRADE /<base_path>/connect` | Establishes a connection to the push notification system. |
14
- * | `send` | `POST /<base_path>/:id` | Sends a push notification message to the channel with the given id |
13
+ * | `count` | `HEAD /` | Counts the number of ACLs matching the provided set of criteria in the request's query parameters. Returns the count as the value of the `Content-Length` header. |
14
+ * | `create` | `POST /` | Adds one or more new ACLs to the datastore. |
15
+ * | `delete` | `DELETE /:id` | Removes an existing ACL from the datastore. |
16
+ * | `exists` | `HEAD /:id` | Checks if the ACL with the given ID exists in the datastore. Sets `Content-Length` header to `1` if the ACL exists, otherwise `0`. |
17
+ * | `find` | `GET /` | Returns all ACLs matching the provided set of criteria in the request's query parameters. |
18
+ * | `findById` | `GET /:id` | Returns a single ACL with a specified unique identifier. |
19
+ * | `truncate` | `DELETE /` | Removes all ACLs from the datastore. |
20
+ * | `update` | `PUT /:id` | Modifies an existing ACL in the datastore. |
21
+ * | `updateBulk` | `PUT /` | Modifies multiple existing ACLs in the datastore. |
22
+ * | `updateProperty` | `PUT /:id/:property` | Modifies an single property of the given name of an existing ACL in the datastore. |
15
23
  *
16
24
  * !!Note!! that the `BaseACLRoute` is not automatically registered with a server by default. You must create
17
- * your own class that extends `AdminRoute` and apply the desired base path with `@Route()`.
25
+ * your own class that extends `BaseACLRoute` and apply the desired base path with `@Route()`.
18
26
  *
19
27
  * @example
20
28
  * ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rapidrest/service-core",
3
- "version": "1.0.0-rc.14",
3
+ "version": "1.0.0-rc.17",
4
4
  "description": "Provides all core functionality for RapidREST based backend services.",
5
5
  "repository": "https://github.com/rapidrest/service-core.git",
6
6
  "author": "RapidREST <rapidrests@gmail.com>",
@@ -12,8 +12,6 @@
12
12
  ],
13
13
  "scripts": {
14
14
  "build": "yarn lint && rimraf dist && tsc",
15
- "deploy-docs": "ts-node tools/gh-pages-publish",
16
- "docs": "typedoc --plugin typedoc-plugin-markdown --out docs/reference src",
17
15
  "lint": "eslint ./src ./test",
18
16
  "local-audit": "yarn install && yarn npm audit -A -R \"$@\"",
19
17
  "checkup": "yarn dlx @yarnpkg/doctor \"$@\"",
package/docs/Makefile DELETED
@@ -1,20 +0,0 @@
1
- # Minimal makefile for Sphinx documentation
2
- #
3
-
4
- # You can set these variables from the command line, and also
5
- # from the environment for the first two.
6
- SPHINXOPTS ?=
7
- SPHINXBUILD ?= sphinx-build
8
- SOURCEDIR = .
9
- BUILDDIR = _build
10
-
11
- # Put it first so that "make" without argument is like "make help".
12
- help:
13
- @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
-
15
- .PHONY: help Makefile
16
-
17
- # Catch-all target: route all unknown targets to Sphinx using the new
18
- # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
- %: Makefile
20
- @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
package/docs/conf.py DELETED
@@ -1,58 +0,0 @@
1
- # Configuration file for the Sphinx documentation builder.
2
- #
3
- # This file only contains a selection of the most common options. For a full
4
- # list see the documentation:
5
- # https://www.sphinx-doc.org/en/master/usage/configuration.html
6
-
7
- # -- Path setup --------------------------------------------------------------
8
-
9
- # If extensions (or modules to document with autodoc) are in another directory,
10
- # add these directories to sys.path here. If the directory is relative to the
11
- # documentation root, use os.path.abspath to make it absolute, like shown here.
12
- #
13
- # import os
14
- # import sys
15
- # sys.path.insert(0, os.path.abspath('.'))
16
- import recommonmark
17
- from recommonmark.transform import AutoStructify
18
-
19
- source_suffix = ['.rst', '.md']
20
-
21
- # -- Project information -----------------------------------------------------
22
-
23
- project = 'Core Library'
24
- copyright = 'RapidREST All rights reserved.'
25
- author = 'RapidREST'
26
-
27
- # -- General configuration ---------------------------------------------------
28
-
29
- # Add any Sphinx extension module names here, as strings. They can be
30
- # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
31
- # ones.
32
- extensions = [
33
- 'recommonmark',
34
- 'sphinx.ext.autodoc',
35
- ]
36
-
37
- # List of patterns, relative to source directory, that match files and
38
- # directories to ignore when looking for source files.
39
- # This pattern also affects html_static_path and html_extra_path.
40
- exclude_patterns = []
41
-
42
- master_doc = 'index'
43
-
44
- # Add any paths that contain custom static files (such as style sheets) here,
45
- # relative to this directory. They are copied after the builtin static files,
46
- # so a file named "default.css" will overwrite the builtin "default.css".
47
- html_static_path = ['_static']
48
-
49
- # app setup hook
50
- def setup(app):
51
- app.add_config_value('recommonmark_config', {
52
- 'auto_toc_tree_section': 'Contents',
53
- 'enable_math': False,
54
- 'enable_inline_math': False,
55
- 'enable_eval_rst': True,
56
- 'enable_auto_doc_ref': True,
57
- }, True)
58
- app.add_transform(AutoStructify)
package/docs/index.rst DELETED
@@ -1,17 +0,0 @@
1
- ===============================================================================
2
- Services Core Library
3
- ===============================================================================
4
-
5
- Repository: ``git clone https://github.com/rapidrest/service-core.git``
6
-
7
- Provides all core functionality for RapidREST based backend services.
8
-
9
- .. toctree::
10
- :caption: Project Info
11
-
12
- reference/README
13
-
14
- .. toctree::
15
- :caption: API Reference
16
-
17
- reference/globals
package/docs/make.bat DELETED
@@ -1,35 +0,0 @@
1
- @ECHO OFF
2
-
3
- pushd %~dp0
4
-
5
- REM Command file for Sphinx documentation
6
-
7
- if "%SPHINXBUILD%" == "" (
8
- set SPHINXBUILD=sphinx-build
9
- )
10
- set SOURCEDIR=.
11
- set BUILDDIR=_build
12
-
13
- if "%1" == "" goto help
14
-
15
- %SPHINXBUILD% >NUL 2>NUL
16
- if errorlevel 9009 (
17
- echo.
18
- echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
19
- echo.installed, then set the SPHINXBUILD environment variable to point
20
- echo.to the full path of the 'sphinx-build' executable. Alternatively you
21
- echo.may add the Sphinx directory to PATH.
22
- echo.
23
- echo.If you don't have Sphinx installed, grab it from
24
- echo.http://sphinx-doc.org/
25
- exit /b 1
26
- )
27
-
28
- %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29
- goto end
30
-
31
- :help
32
- %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33
-
34
- :end
35
- popd
@@ -1,13 +0,0 @@
1
- [**@rapidrest/service-core**](../../../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/service-core](../../../globals.md) / DatabaseDecorators
6
-
7
- # DatabaseDecorators
8
-
9
- ## Functions
10
-
11
- - [MongoRepository](functions/MongoRepository.md)
12
- - [RedisConnection](functions/RedisConnection.md)
13
- - [Repository](functions/Repository.md)
@@ -1,25 +0,0 @@
1
- [**@rapidrest/service-core**](../../../../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/service-core](../../../../globals.md) / [DatabaseDecorators](../README.md) / MongoRepository
6
-
7
- # Function: MongoRepository()
8
-
9
- > **MongoRepository**(`type`): (`target`, `propertyKey`) => `void`
10
-
11
- Defined in: [src/decorators/DatabaseDecorators.ts:10](https://github.com/rapidrest/service-core/blob/c7e3b662fbab3a8018f8efc7ffae5fdf8bc663ac/src/decorators/DatabaseDecorators.ts#L10)
12
-
13
- Apply this to a property to have the TypeORM `MongoRepository` for the given entity type injected at instantiation.
14
-
15
- ## Parameters
16
-
17
- ### type
18
-
19
- `any`
20
-
21
- The entity type whose repository will be injected.
22
-
23
- ## Returns
24
-
25
- (`target`, `propertyKey`) => `void`
@@ -1,25 +0,0 @@
1
- [**@rapidrest/service-core**](../../../../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/service-core](../../../../globals.md) / [DatabaseDecorators](../README.md) / RedisConnection
6
-
7
- # Function: RedisConnection()
8
-
9
- > **RedisConnection**(`name`): (`target`, `propertyKey`) => `void`
10
-
11
- Defined in: [src/decorators/DatabaseDecorators.ts:44](https://github.com/rapidrest/service-core/blob/c7e3b662fbab3a8018f8efc7ffae5fdf8bc663ac/src/decorators/DatabaseDecorators.ts#L44)
12
-
13
- Apply this to a property to have the `Redis` connection injected at instantiation.
14
-
15
- ## Parameters
16
-
17
- ### name
18
-
19
- `string`
20
-
21
- The name of the database connection to inject.
22
-
23
- ## Returns
24
-
25
- (`target`, `propertyKey`) => `void`
@@ -1,25 +0,0 @@
1
- [**@rapidrest/service-core**](../../../../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/service-core](../../../../globals.md) / [DatabaseDecorators](../README.md) / Repository
6
-
7
- # Function: Repository()
8
-
9
- > **Repository**(`type`): (`target`, `propertyKey`) => `void`
10
-
11
- Defined in: [src/decorators/DatabaseDecorators.ts:27](https://github.com/rapidrest/service-core/blob/c7e3b662fbab3a8018f8efc7ffae5fdf8bc663ac/src/decorators/DatabaseDecorators.ts#L27)
12
-
13
- Apply this to a property to have the TypeORM `Repository` for the given entity type injected at instantiation.
14
-
15
- ## Parameters
16
-
17
- ### type
18
-
19
- `any`
20
-
21
- The entity type whose repository will be injected.
22
-
23
- ## Returns
24
-
25
- (`target`, `propertyKey`) => `void`
@@ -1,23 +0,0 @@
1
- [**@rapidrest/service-core**](../../../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/service-core](../../../globals.md) / DocDecorators
6
-
7
- # DocDecorators
8
-
9
- ## Interfaces
10
-
11
- - [DocumentsData](interfaces/DocumentsData.md)
12
-
13
- ## Functions
14
-
15
- - [Default](functions/Default.md)
16
- - [Description](functions/Description.md)
17
- - [Document](functions/Document.md)
18
- - [Example](functions/Example.md)
19
- - [Format](functions/Format.md)
20
- - [Returns](functions/Returns.md)
21
- - [Summary](functions/Summary.md)
22
- - [Tags](functions/Tags.md)
23
- - [TypeInfo](functions/TypeInfo.md)
@@ -1,25 +0,0 @@
1
- [**@rapidrest/service-core**](../../../../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/service-core](../../../../globals.md) / [DocDecorators](../README.md) / Default
6
-
7
- # Function: Default()
8
-
9
- > **Default**(`value`): (`target`, `propertyKey?`) => `void`
10
-
11
- Defined in: [src/decorators/DocDecorators.ts:40](https://github.com/rapidrest/service-core/blob/c7e3b662fbab3a8018f8efc7ffae5fdf8bc663ac/src/decorators/DocDecorators.ts#L40)
12
-
13
- Provides a default value for property of a class.
14
-
15
- ## Parameters
16
-
17
- ### value
18
-
19
- `string`
20
-
21
- The default value.
22
-
23
- ## Returns
24
-
25
- (`target`, `propertyKey?`) => `void`