@os.io/nest-kit 0.0.1-alpha.0 → 0.0.1-alpha.1

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 (286) hide show
  1. package/README.md +30 -30
  2. package/package.json +41 -5
  3. package/dist/auth/auth.constants.d.ts +0 -19
  4. package/dist/auth/auth.constants.d.ts.map +0 -1
  5. package/dist/auth/auth.constants.js +0 -19
  6. package/dist/auth/auth.constants.js.map +0 -1
  7. package/dist/auth/auth.guard.d.ts +0 -20
  8. package/dist/auth/auth.guard.d.ts.map +0 -1
  9. package/dist/auth/auth.guard.js +0 -84
  10. package/dist/auth/auth.guard.js.map +0 -1
  11. package/dist/auth/auth.module.d.ts +0 -26
  12. package/dist/auth/auth.module.d.ts.map +0 -1
  13. package/dist/auth/auth.module.js +0 -344
  14. package/dist/auth/auth.module.js.map +0 -1
  15. package/dist/auth/auth.options.d.ts +0 -179
  16. package/dist/auth/auth.options.d.ts.map +0 -1
  17. package/dist/auth/auth.options.js +0 -2
  18. package/dist/auth/auth.options.js.map +0 -1
  19. package/dist/auth/auth.service.d.ts +0 -57
  20. package/dist/auth/auth.service.d.ts.map +0 -1
  21. package/dist/auth/auth.service.js +0 -175
  22. package/dist/auth/auth.service.js.map +0 -1
  23. package/dist/auth/authorization/index.d.ts +0 -3
  24. package/dist/auth/authorization/index.d.ts.map +0 -1
  25. package/dist/auth/authorization/index.js +0 -3
  26. package/dist/auth/authorization/index.js.map +0 -1
  27. package/dist/auth/authorization/pbac/index.d.ts +0 -6
  28. package/dist/auth/authorization/pbac/index.d.ts.map +0 -1
  29. package/dist/auth/authorization/pbac/index.js +0 -4
  30. package/dist/auth/authorization/pbac/index.js.map +0 -1
  31. package/dist/auth/authorization/pbac/pbac.decorator.d.ts +0 -18
  32. package/dist/auth/authorization/pbac/pbac.decorator.d.ts.map +0 -1
  33. package/dist/auth/authorization/pbac/pbac.decorator.js +0 -14
  34. package/dist/auth/authorization/pbac/pbac.decorator.js.map +0 -1
  35. package/dist/auth/authorization/pbac/pbac.guard.d.ts +0 -19
  36. package/dist/auth/authorization/pbac/pbac.guard.d.ts.map +0 -1
  37. package/dist/auth/authorization/pbac/pbac.guard.js +0 -60
  38. package/dist/auth/authorization/pbac/pbac.guard.js.map +0 -1
  39. package/dist/auth/authorization/pbac/pbac.service.d.ts +0 -44
  40. package/dist/auth/authorization/pbac/pbac.service.d.ts.map +0 -1
  41. package/dist/auth/authorization/pbac/pbac.service.js +0 -146
  42. package/dist/auth/authorization/pbac/pbac.service.js.map +0 -1
  43. package/dist/auth/authorization/pbac/pbac.types.d.ts +0 -47
  44. package/dist/auth/authorization/pbac/pbac.types.d.ts.map +0 -1
  45. package/dist/auth/authorization/pbac/pbac.types.js +0 -2
  46. package/dist/auth/authorization/pbac/pbac.types.js.map +0 -1
  47. package/dist/auth/authorization/rbac/index.d.ts +0 -4
  48. package/dist/auth/authorization/rbac/index.d.ts.map +0 -1
  49. package/dist/auth/authorization/rbac/index.js +0 -4
  50. package/dist/auth/authorization/rbac/index.js.map +0 -1
  51. package/dist/auth/authorization/rbac/rbac.decorator.d.ts +0 -18
  52. package/dist/auth/authorization/rbac/rbac.decorator.d.ts.map +0 -1
  53. package/dist/auth/authorization/rbac/rbac.decorator.js +0 -25
  54. package/dist/auth/authorization/rbac/rbac.decorator.js.map +0 -1
  55. package/dist/auth/authorization/rbac/rbac.guard.d.ts +0 -19
  56. package/dist/auth/authorization/rbac/rbac.guard.d.ts.map +0 -1
  57. package/dist/auth/authorization/rbac/rbac.guard.js +0 -50
  58. package/dist/auth/authorization/rbac/rbac.guard.js.map +0 -1
  59. package/dist/auth/authorization/rbac/rbac.service.d.ts +0 -43
  60. package/dist/auth/authorization/rbac/rbac.service.d.ts.map +0 -1
  61. package/dist/auth/authorization/rbac/rbac.service.js +0 -95
  62. package/dist/auth/authorization/rbac/rbac.service.js.map +0 -1
  63. package/dist/auth/decorators/current-user.decorator.d.ts +0 -17
  64. package/dist/auth/decorators/current-user.decorator.d.ts.map +0 -1
  65. package/dist/auth/decorators/current-user.decorator.js +0 -23
  66. package/dist/auth/decorators/current-user.decorator.js.map +0 -1
  67. package/dist/auth/decorators/index.d.ts +0 -3
  68. package/dist/auth/decorators/index.d.ts.map +0 -1
  69. package/dist/auth/decorators/index.js +0 -3
  70. package/dist/auth/decorators/index.js.map +0 -1
  71. package/dist/auth/decorators/public.decorator.d.ts +0 -13
  72. package/dist/auth/decorators/public.decorator.d.ts.map +0 -1
  73. package/dist/auth/decorators/public.decorator.js +0 -15
  74. package/dist/auth/decorators/public.decorator.js.map +0 -1
  75. package/dist/auth/index.d.ts +0 -63
  76. package/dist/auth/index.d.ts.map +0 -1
  77. package/dist/auth/index.js +0 -65
  78. package/dist/auth/index.js.map +0 -1
  79. package/dist/auth/interfaces/auth-request.interface.d.ts +0 -18
  80. package/dist/auth/interfaces/auth-request.interface.d.ts.map +0 -1
  81. package/dist/auth/interfaces/auth-request.interface.js +0 -2
  82. package/dist/auth/interfaces/auth-request.interface.js.map +0 -1
  83. package/dist/auth/interfaces/auth-result.interface.d.ts +0 -28
  84. package/dist/auth/interfaces/auth-result.interface.d.ts.map +0 -1
  85. package/dist/auth/interfaces/auth-result.interface.js +0 -2
  86. package/dist/auth/interfaces/auth-result.interface.js.map +0 -1
  87. package/dist/auth/interfaces/auth-strategy.interface.d.ts +0 -37
  88. package/dist/auth/interfaces/auth-strategy.interface.d.ts.map +0 -1
  89. package/dist/auth/interfaces/auth-strategy.interface.js +0 -16
  90. package/dist/auth/interfaces/auth-strategy.interface.js.map +0 -1
  91. package/dist/auth/interfaces/auth-user.interface.d.ts +0 -25
  92. package/dist/auth/interfaces/auth-user.interface.d.ts.map +0 -1
  93. package/dist/auth/interfaces/auth-user.interface.js +0 -2
  94. package/dist/auth/interfaces/auth-user.interface.js.map +0 -1
  95. package/dist/auth/interfaces/cache-service.interface.d.ts +0 -30
  96. package/dist/auth/interfaces/cache-service.interface.d.ts.map +0 -1
  97. package/dist/auth/interfaces/cache-service.interface.js +0 -2
  98. package/dist/auth/interfaces/cache-service.interface.js.map +0 -1
  99. package/dist/auth/interfaces/index.d.ts +0 -8
  100. package/dist/auth/interfaces/index.d.ts.map +0 -1
  101. package/dist/auth/interfaces/index.js +0 -2
  102. package/dist/auth/interfaces/index.js.map +0 -1
  103. package/dist/auth/interfaces/user-service.interface.d.ts +0 -34
  104. package/dist/auth/interfaces/user-service.interface.d.ts.map +0 -1
  105. package/dist/auth/interfaces/user-service.interface.js +0 -2
  106. package/dist/auth/interfaces/user-service.interface.js.map +0 -1
  107. package/dist/auth/password/password.service.d.ts +0 -23
  108. package/dist/auth/password/password.service.d.ts.map +0 -1
  109. package/dist/auth/password/password.service.js +0 -52
  110. package/dist/auth/password/password.service.js.map +0 -1
  111. package/dist/auth/session/device-session.service.d.ts +0 -43
  112. package/dist/auth/session/device-session.service.d.ts.map +0 -1
  113. package/dist/auth/session/device-session.service.js +0 -72
  114. package/dist/auth/session/device-session.service.js.map +0 -1
  115. package/dist/auth/session/index.d.ts +0 -5
  116. package/dist/auth/session/index.d.ts.map +0 -1
  117. package/dist/auth/session/index.js +0 -4
  118. package/dist/auth/session/index.js.map +0 -1
  119. package/dist/auth/session/jwt.service.d.ts +0 -37
  120. package/dist/auth/session/jwt.service.d.ts.map +0 -1
  121. package/dist/auth/session/jwt.service.js +0 -119
  122. package/dist/auth/session/jwt.service.js.map +0 -1
  123. package/dist/auth/session/token-blacklist.service.d.ts +0 -37
  124. package/dist/auth/session/token-blacklist.service.d.ts.map +0 -1
  125. package/dist/auth/session/token-blacklist.service.js +0 -70
  126. package/dist/auth/session/token-blacklist.service.js.map +0 -1
  127. package/dist/auth/strategies/anonymous/anonymous.strategy.d.ts +0 -19
  128. package/dist/auth/strategies/anonymous/anonymous.strategy.d.ts.map +0 -1
  129. package/dist/auth/strategies/anonymous/anonymous.strategy.js +0 -49
  130. package/dist/auth/strategies/anonymous/anonymous.strategy.js.map +0 -1
  131. package/dist/auth/strategies/base/base.strategy.d.ts +0 -11
  132. package/dist/auth/strategies/base/base.strategy.d.ts.map +0 -1
  133. package/dist/auth/strategies/base/base.strategy.js +0 -6
  134. package/dist/auth/strategies/base/base.strategy.js.map +0 -1
  135. package/dist/auth/strategies/credentials/credentials.strategy.d.ts +0 -21
  136. package/dist/auth/strategies/credentials/credentials.strategy.d.ts.map +0 -1
  137. package/dist/auth/strategies/credentials/credentials.strategy.js +0 -67
  138. package/dist/auth/strategies/credentials/credentials.strategy.js.map +0 -1
  139. package/dist/auth/strategies/index.d.ts +0 -12
  140. package/dist/auth/strategies/index.d.ts.map +0 -1
  141. package/dist/auth/strategies/index.js +0 -12
  142. package/dist/auth/strategies/index.js.map +0 -1
  143. package/dist/auth/strategies/magic-link/magic-link.strategy.d.ts +0 -31
  144. package/dist/auth/strategies/magic-link/magic-link.strategy.d.ts.map +0 -1
  145. package/dist/auth/strategies/magic-link/magic-link.strategy.js +0 -88
  146. package/dist/auth/strategies/magic-link/magic-link.strategy.js.map +0 -1
  147. package/dist/auth/strategies/oauth/index.d.ts +0 -3
  148. package/dist/auth/strategies/oauth/index.d.ts.map +0 -1
  149. package/dist/auth/strategies/oauth/index.js +0 -3
  150. package/dist/auth/strategies/oauth/index.js.map +0 -1
  151. package/dist/auth/strategies/oauth/oauth-provider-registry.d.ts +0 -13
  152. package/dist/auth/strategies/oauth/oauth-provider-registry.d.ts.map +0 -1
  153. package/dist/auth/strategies/oauth/oauth-provider-registry.js +0 -20
  154. package/dist/auth/strategies/oauth/oauth-provider-registry.js.map +0 -1
  155. package/dist/auth/strategies/oauth/oauth.strategy.d.ts +0 -23
  156. package/dist/auth/strategies/oauth/oauth.strategy.d.ts.map +0 -1
  157. package/dist/auth/strategies/oauth/oauth.strategy.js +0 -79
  158. package/dist/auth/strategies/oauth/oauth.strategy.js.map +0 -1
  159. package/dist/auth/strategies/onetap/onetap.strategy.d.ts +0 -24
  160. package/dist/auth/strategies/onetap/onetap.strategy.d.ts.map +0 -1
  161. package/dist/auth/strategies/onetap/onetap.strategy.js +0 -77
  162. package/dist/auth/strategies/onetap/onetap.strategy.js.map +0 -1
  163. package/dist/auth/strategies/otp/otp.strategy.d.ts +0 -31
  164. package/dist/auth/strategies/otp/otp.strategy.d.ts.map +0 -1
  165. package/dist/auth/strategies/otp/otp.strategy.js +0 -93
  166. package/dist/auth/strategies/otp/otp.strategy.js.map +0 -1
  167. package/dist/auth/strategies/passkey/passkey.strategy.d.ts +0 -32
  168. package/dist/auth/strategies/passkey/passkey.strategy.d.ts.map +0 -1
  169. package/dist/auth/strategies/passkey/passkey.strategy.js +0 -102
  170. package/dist/auth/strategies/passkey/passkey.strategy.js.map +0 -1
  171. package/dist/auth/strategies/sso/sso.strategy.d.ts +0 -25
  172. package/dist/auth/strategies/sso/sso.strategy.d.ts.map +0 -1
  173. package/dist/auth/strategies/sso/sso.strategy.js +0 -80
  174. package/dist/auth/strategies/sso/sso.strategy.js.map +0 -1
  175. package/dist/auth/strategies/totp/totp.strategy.d.ts +0 -37
  176. package/dist/auth/strategies/totp/totp.strategy.d.ts.map +0 -1
  177. package/dist/auth/strategies/totp/totp.strategy.js +0 -109
  178. package/dist/auth/strategies/totp/totp.strategy.js.map +0 -1
  179. package/dist/auth/throttling/index.d.ts +0 -2
  180. package/dist/auth/throttling/index.d.ts.map +0 -1
  181. package/dist/auth/throttling/index.js +0 -2
  182. package/dist/auth/throttling/index.js.map +0 -1
  183. package/dist/auth/throttling/throttle.service.d.ts +0 -27
  184. package/dist/auth/throttling/throttle.service.d.ts.map +0 -1
  185. package/dist/auth/throttling/throttle.service.js +0 -63
  186. package/dist/auth/throttling/throttle.service.js.map +0 -1
  187. package/dist/bootstrap/cache/config.d.ts +0 -135
  188. package/dist/bootstrap/cache/config.d.ts.map +0 -1
  189. package/dist/bootstrap/cache/config.js +0 -189
  190. package/dist/bootstrap/cache/config.js.map +0 -1
  191. package/dist/bootstrap/cache/index.d.ts +0 -11
  192. package/dist/bootstrap/cache/index.d.ts.map +0 -1
  193. package/dist/bootstrap/cache/index.js +0 -11
  194. package/dist/bootstrap/cache/index.js.map +0 -1
  195. package/dist/bootstrap/index.d.ts +0 -21
  196. package/dist/bootstrap/index.d.ts.map +0 -1
  197. package/dist/bootstrap/index.js +0 -21
  198. package/dist/bootstrap/index.js.map +0 -1
  199. package/dist/bootstrap/scalar/api-docs.d.ts +0 -39
  200. package/dist/bootstrap/scalar/api-docs.d.ts.map +0 -1
  201. package/dist/bootstrap/scalar/api-docs.js +0 -41
  202. package/dist/bootstrap/scalar/api-docs.js.map +0 -1
  203. package/dist/bootstrap/scalar/index.d.ts +0 -39
  204. package/dist/bootstrap/scalar/index.d.ts.map +0 -1
  205. package/dist/bootstrap/scalar/index.js +0 -41
  206. package/dist/bootstrap/scalar/index.js.map +0 -1
  207. package/dist/bootstrap/swagger/api-docs.d.ts +0 -73
  208. package/dist/bootstrap/swagger/api-docs.d.ts.map +0 -1
  209. package/dist/bootstrap/swagger/api-docs.js +0 -87
  210. package/dist/bootstrap/swagger/api-docs.js.map +0 -1
  211. package/dist/bootstrap/swagger/index.d.ts +0 -37
  212. package/dist/bootstrap/swagger/index.d.ts.map +0 -1
  213. package/dist/bootstrap/swagger/index.js +0 -36
  214. package/dist/bootstrap/swagger/index.js.map +0 -1
  215. package/dist/bootstrap/typeorm/config/index.d.ts +0 -12
  216. package/dist/bootstrap/typeorm/config/index.d.ts.map +0 -1
  217. package/dist/bootstrap/typeorm/config/index.js +0 -62
  218. package/dist/bootstrap/typeorm/config/index.js.map +0 -1
  219. package/dist/bootstrap/typeorm/crud/controller.d.ts +0 -13
  220. package/dist/bootstrap/typeorm/crud/controller.d.ts.map +0 -1
  221. package/dist/bootstrap/typeorm/crud/controller.js +0 -72
  222. package/dist/bootstrap/typeorm/crud/controller.js.map +0 -1
  223. package/dist/bootstrap/typeorm/crud/index.d.ts +0 -4
  224. package/dist/bootstrap/typeorm/crud/index.d.ts.map +0 -1
  225. package/dist/bootstrap/typeorm/crud/index.js +0 -3
  226. package/dist/bootstrap/typeorm/crud/index.js.map +0 -1
  227. package/dist/bootstrap/typeorm/crud/service.d.ts +0 -10
  228. package/dist/bootstrap/typeorm/crud/service.d.ts.map +0 -1
  229. package/dist/bootstrap/typeorm/crud/service.js +0 -21
  230. package/dist/bootstrap/typeorm/crud/service.js.map +0 -1
  231. package/dist/bootstrap/typeorm/index.d.ts +0 -18
  232. package/dist/bootstrap/typeorm/index.d.ts.map +0 -1
  233. package/dist/bootstrap/typeorm/index.js +0 -18
  234. package/dist/bootstrap/typeorm/index.js.map +0 -1
  235. package/dist/bootstrap/typeorm/uow/factory.d.ts +0 -5
  236. package/dist/bootstrap/typeorm/uow/factory.d.ts.map +0 -1
  237. package/dist/bootstrap/typeorm/uow/factory.js +0 -27
  238. package/dist/bootstrap/typeorm/uow/factory.js.map +0 -1
  239. package/dist/bootstrap/typeorm/uow/index.d.ts +0 -4
  240. package/dist/bootstrap/typeorm/uow/index.d.ts.map +0 -1
  241. package/dist/bootstrap/typeorm/uow/index.js +0 -4
  242. package/dist/bootstrap/typeorm/uow/index.js.map +0 -1
  243. package/dist/bootstrap/typeorm/uow/transactional.decorator.d.ts +0 -62
  244. package/dist/bootstrap/typeorm/uow/transactional.decorator.d.ts.map +0 -1
  245. package/dist/bootstrap/typeorm/uow/transactional.decorator.js +0 -114
  246. package/dist/bootstrap/typeorm/uow/transactional.decorator.js.map +0 -1
  247. package/dist/bootstrap/typeorm/uow/unit-of-work.d.ts +0 -11
  248. package/dist/bootstrap/typeorm/uow/unit-of-work.d.ts.map +0 -1
  249. package/dist/bootstrap/typeorm/uow/unit-of-work.js +0 -23
  250. package/dist/bootstrap/typeorm/uow/unit-of-work.js.map +0 -1
  251. package/dist/core/index.d.ts +0 -11
  252. package/dist/core/index.d.ts.map +0 -1
  253. package/dist/core/index.js +0 -11
  254. package/dist/core/index.js.map +0 -1
  255. package/dist/infra/audit-log/index.d.ts +0 -12
  256. package/dist/infra/audit-log/index.d.ts.map +0 -1
  257. package/dist/infra/audit-log/index.js +0 -13
  258. package/dist/infra/audit-log/index.js.map +0 -1
  259. package/dist/infra/index.d.ts +0 -20
  260. package/dist/infra/index.d.ts.map +0 -1
  261. package/dist/infra/index.js +0 -21
  262. package/dist/infra/index.js.map +0 -1
  263. package/dist/infra/logger/index.d.ts +0 -12
  264. package/dist/infra/logger/index.d.ts.map +0 -1
  265. package/dist/infra/logger/index.js +0 -13
  266. package/dist/infra/logger/index.js.map +0 -1
  267. package/dist/infra/metrics/index.d.ts +0 -18
  268. package/dist/infra/metrics/index.d.ts.map +0 -1
  269. package/dist/infra/metrics/index.js +0 -19
  270. package/dist/infra/metrics/index.js.map +0 -1
  271. package/dist/infra/notification/index.d.ts +0 -12
  272. package/dist/infra/notification/index.d.ts.map +0 -1
  273. package/dist/infra/notification/index.js +0 -13
  274. package/dist/infra/notification/index.js.map +0 -1
  275. package/dist/infra/storage/index.d.ts +0 -12
  276. package/dist/infra/storage/index.d.ts.map +0 -1
  277. package/dist/infra/storage/index.js +0 -13
  278. package/dist/infra/storage/index.js.map +0 -1
  279. package/dist/infra/stripe/index.d.ts +0 -12
  280. package/dist/infra/stripe/index.d.ts.map +0 -1
  281. package/dist/infra/stripe/index.js +0 -13
  282. package/dist/infra/stripe/index.js.map +0 -1
  283. package/dist/saas/index.d.ts +0 -18
  284. package/dist/saas/index.d.ts.map +0 -1
  285. package/dist/saas/index.js +0 -19
  286. package/dist/saas/index.js.map +0 -1
@@ -1,39 +0,0 @@
1
- import type { INestApplication } from '@nestjs/common';
2
- import type { SwaggerDocumentOptions } from '@nestjs/swagger';
3
- import type { NestJSReferenceConfiguration } from '@scalar/nestjs-api-reference';
4
- /**
5
- * Options for {@link configScalarApiDoc}.
6
- */
7
- export interface ConfigScalarOptions {
8
- /** OpenAPI title (default: `'NestJS API'`). */
9
- title?: string;
10
- /** OpenAPI description (default: `''`). */
11
- description?: string;
12
- /** OpenAPI version (default: `'1.0'`). */
13
- version?: string;
14
- /** Mount path (default: `'api/docs'`). */
15
- path?: string;
16
- /** Extra options forwarded to `apiReference()` from `@scalar/nestjs-api-reference`. */
17
- scalarOptions?: NestJSReferenceConfiguration;
18
- /** Extra options forwarded to `SwaggerModule.createDocument`. */
19
- swaggerDocumentOptions?: SwaggerDocumentOptions;
20
- }
21
- /**
22
- * Configure Scalar API Reference on the NestJS app.
23
- *
24
- * Mounts the Scalar UI at the given `path` (default `api/docs`).
25
- * Requires `@scalar/nestjs-api-reference` to be installed.
26
- *
27
- * @example
28
- * ```ts
29
- * import { configScalarApiDoc } from '@os.io/nest-kit/bootstrap/scalar';
30
- *
31
- * configScalarApiDoc(app);
32
- * // Browse to http://localhost:3000/api/docs
33
- * ```
34
- *
35
- * @param app - The NestJS application instance.
36
- * @param options - Configuration overrides.
37
- */
38
- export declare function configScalarApiDoc(app: INestApplication, options?: ConfigScalarOptions): void;
39
- //# sourceMappingURL=api-docs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-docs.d.ts","sourceRoot":"","sources":["../../../packages/bootstrap/scalar/api-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAYjF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uFAAuF;IACvF,aAAa,CAAC,EAAE,4BAA4B,CAAC;IAC7C,iEAAiE;IACjE,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;CACjD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,IAAI,CA0B7F"}
@@ -1,41 +0,0 @@
1
- import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
2
- import { createRequire } from 'node:module';
3
- const _require = createRequire(__filename);
4
- /**
5
- * Configure Scalar API Reference on the NestJS app.
6
- *
7
- * Mounts the Scalar UI at the given `path` (default `api/docs`).
8
- * Requires `@scalar/nestjs-api-reference` to be installed.
9
- *
10
- * @example
11
- * ```ts
12
- * import { configScalarApiDoc } from '@oxpo/nest-kit/bootstrap/scalar';
13
- *
14
- * configScalarApiDoc(app);
15
- * // Browse to http://localhost:3000/api/docs
16
- * ```
17
- *
18
- * @param app - The NestJS application instance.
19
- * @param options - Configuration overrides.
20
- */
21
- export function configScalarApiDoc(app, options) {
22
- const builder = new DocumentBuilder()
23
- .setTitle(options?.title ?? 'NestJS API')
24
- .setDescription(options?.description ?? '')
25
- .setVersion(options?.version ?? '1.0')
26
- .addBearerAuth();
27
- const config = builder.build();
28
- const document = SwaggerModule.createDocument(app, config, options?.swaggerDocumentOptions);
29
- try {
30
- const { apiReference } = _require('@scalar/nestjs-api-reference');
31
- app.use(options?.path ?? 'api/docs', apiReference({
32
- spec: { content: document },
33
- ...options?.scalarOptions,
34
- }));
35
- }
36
- catch {
37
- console.warn('[@oxpo/nest-kit] @scalar/nestjs-api-reference is not installed. ' +
38
- 'Skipping Scalar API docs setup.');
39
- }
40
- }
41
- //# sourceMappingURL=api-docs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-docs.js","sourceRoot":"","sources":["../../../packages/bootstrap/scalar/api-docs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,QAAQ,GAAG,aAAa,CAAC,UAAU,CAA4B,CAAC;AA0BtE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAqB,EAAE,OAA6B;IACrF,MAAM,OAAO,GAAG,IAAI,eAAe,EAAE;SAClC,QAAQ,CAAC,OAAO,EAAE,KAAK,IAAI,YAAY,CAAC;SACxC,cAAc,CAAC,OAAO,EAAE,WAAW,IAAI,EAAE,CAAC;SAC1C,UAAU,CAAC,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC;SACrC,aAAa,EAAE,CAAC;IAEnB,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC;IAE5F,IAAI,CAAC;QACH,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC,8BAA8B,CAAsB,CAAC;QAEvF,GAAG,CAAC,GAAG,CACL,OAAO,EAAE,IAAI,IAAI,UAAU,EAC3B,YAAY,CAAC;YACX,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;YAC3B,GAAG,OAAO,EAAE,aAAa;SAC1B,CAAC,CACH,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,CAAC,IAAI,CACV,kEAAkE;YAChE,iCAAiC,CACpC,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1,39 +0,0 @@
1
- import type { INestApplication } from '@nestjs/common';
2
- import type { SwaggerDocumentOptions } from '@nestjs/swagger';
3
- import type { NestJSReferenceConfiguration } from '@scalar/nestjs-api-reference';
4
- /**
5
- * Options for {@link configScalarApiDoc}.
6
- */
7
- export interface ConfigScalarOptions {
8
- /** OpenAPI title (default: `'NestJS API'`). */
9
- title?: string;
10
- /** OpenAPI description (default: `''`). */
11
- description?: string;
12
- /** OpenAPI version (default: `'1.0'`). */
13
- version?: string;
14
- /** Mount path (default: `'api/docs'`). */
15
- path?: string;
16
- /** Extra options forwarded to `apiReference()` from `@scalar/nestjs-api-reference`. */
17
- scalarOptions?: NestJSReferenceConfiguration;
18
- /** Extra options forwarded to `SwaggerModule.createDocument`. */
19
- swaggerDocumentOptions?: SwaggerDocumentOptions;
20
- }
21
- /**
22
- * Configure Scalar API Reference on the NestJS app.
23
- *
24
- * Mounts the Scalar UI at the given `path` (default `api/docs`).
25
- * Requires `@scalar/nestjs-api-reference` to be installed.
26
- *
27
- * @example
28
- * ```ts
29
- * import { configScalarApiDoc } from '@os.io/nest-kit/bootstrap/scalar';
30
- *
31
- * configScalarApiDoc(app);
32
- * // Browse to http://localhost:3000/api/docs
33
- * ```
34
- *
35
- * @param app - The NestJS application instance.
36
- * @param options - Configuration overrides.
37
- */
38
- export declare function configScalarApiDoc(app: INestApplication, options?: ConfigScalarOptions): void;
39
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/bootstrap/scalar/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAYjF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uFAAuF;IACvF,aAAa,CAAC,EAAE,4BAA4B,CAAC;IAC7C,iEAAiE;IACjE,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;CACjD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,IAAI,CA0B7F"}
@@ -1,41 +0,0 @@
1
- import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
2
- import { createRequire } from 'node:module';
3
- const _require = createRequire(__filename);
4
- /**
5
- * Configure Scalar API Reference on the NestJS app.
6
- *
7
- * Mounts the Scalar UI at the given `path` (default `api/docs`).
8
- * Requires `@scalar/nestjs-api-reference` to be installed.
9
- *
10
- * @example
11
- * ```ts
12
- * import { configScalarApiDoc } from '@os.io/nest-kit/bootstrap/scalar';
13
- *
14
- * configScalarApiDoc(app);
15
- * // Browse to http://localhost:3000/api/docs
16
- * ```
17
- *
18
- * @param app - The NestJS application instance.
19
- * @param options - Configuration overrides.
20
- */
21
- export function configScalarApiDoc(app, options) {
22
- const builder = new DocumentBuilder()
23
- .setTitle(options?.title ?? 'NestJS API')
24
- .setDescription(options?.description ?? '')
25
- .setVersion(options?.version ?? '1.0')
26
- .addBearerAuth();
27
- const config = builder.build();
28
- const document = SwaggerModule.createDocument(app, config, options?.swaggerDocumentOptions);
29
- try {
30
- const { apiReference } = _require('@scalar/nestjs-api-reference');
31
- app.use(options?.path ?? 'api/docs', apiReference({
32
- spec: { content: document },
33
- ...options?.scalarOptions,
34
- }));
35
- }
36
- catch {
37
- console.warn('[@os.io/nest-kit] @scalar/nestjs-api-reference is not installed. ' +
38
- 'Skipping Scalar API docs setup.');
39
- }
40
- }
41
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/bootstrap/scalar/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,QAAQ,GAAG,aAAa,CAAC,UAAU,CAA4B,CAAC;AA0BtE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAqB,EAAE,OAA6B;IACrF,MAAM,OAAO,GAAG,IAAI,eAAe,EAAE;SAClC,QAAQ,CAAC,OAAO,EAAE,KAAK,IAAI,YAAY,CAAC;SACxC,cAAc,CAAC,OAAO,EAAE,WAAW,IAAI,EAAE,CAAC;SAC1C,UAAU,CAAC,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC;SACrC,aAAa,EAAE,CAAC;IAEnB,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC;IAE5F,IAAI,CAAC;QACH,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC,8BAA8B,CAAsB,CAAC;QAEvF,GAAG,CAAC,GAAG,CACL,OAAO,EAAE,IAAI,IAAI,UAAU,EAC3B,YAAY,CAAC;YACX,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;YAC3B,GAAG,OAAO,EAAE,aAAa;SAC1B,CAAC,CACH,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,CAAC,IAAI,CACV,mEAAmE;YACjE,iCAAiC,CACpC,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1,73 +0,0 @@
1
- import type { INestApplication } from '@nestjs/common';
2
- import type { SwaggerCustomOptions, SwaggerDocumentOptions } from '@nestjs/swagger';
3
- import type { NestJSReferenceConfiguration } from '@scalar/nestjs-api-reference';
4
- /**
5
- * Options for {@link configSwagger}.
6
- */
7
- export interface ConfigSwaggerOptions {
8
- /** OpenAPI title (default: `'NestJS API'`). */
9
- title?: string;
10
- /** OpenAPI description (default: `''`). */
11
- description?: string;
12
- /** OpenAPI version (default: `'1.0'`). */
13
- version?: string;
14
- /** Mount path (default: `'api/docs'`). */
15
- path?: string;
16
- /** Extra options forwarded to `SwaggerModule.setup`. */
17
- swaggerCustomOptions?: SwaggerCustomOptions;
18
- /** Extra options forwarded to `SwaggerModule.createDocument`. */
19
- swaggerDocumentOptions?: SwaggerDocumentOptions;
20
- }
21
- /**
22
- * Configure Swagger UI on the NestJS app.
23
- *
24
- * Mounts the Swagger UI at the given `path` (default `api/docs`).
25
- *
26
- * @example
27
- * ```ts
28
- * import { configSwagger } from '@os.io/nest-kit/bootstrap/swagger';
29
- *
30
- * configSwagger(app);
31
- * // Browse to http://localhost:3000/api/docs
32
- * ```
33
- *
34
- * @param app - The NestJS application instance.
35
- * @param options - Configuration overrides.
36
- */
37
- export declare function configSwagger(app: INestApplication, options?: ConfigSwaggerOptions): void;
38
- /**
39
- * Options for {@link configScalarApiDoc}.
40
- */
41
- export interface ConfigScalarOptions {
42
- /** OpenAPI title (default: `'NestJS API'`). */
43
- title?: string;
44
- /** OpenAPI description (default: `''`). */
45
- description?: string;
46
- /** OpenAPI version (default: `'1.0'`). */
47
- version?: string;
48
- /** Mount path (default: `'api/docs'`). */
49
- path?: string;
50
- /** Extra options forwarded to `apiReference()` from `@scalar/nestjs-api-reference`. */
51
- scalarOptions?: NestJSReferenceConfiguration;
52
- /** Extra options forwarded to `SwaggerModule.createDocument`. */
53
- swaggerDocumentOptions?: SwaggerDocumentOptions;
54
- }
55
- /**
56
- * Configure Scalar API Reference on the NestJS app.
57
- *
58
- * Mounts the Scalar UI at the given `path` (default `api/docs`).
59
- * Requires `@scalar/nestjs-api-reference` to be installed.
60
- *
61
- * @example
62
- * ```ts
63
- * import { configScalarApiDoc } from '@os.io/nest-kit/bootstrap/swagger';
64
- *
65
- * configScalarApiDoc(app);
66
- * // Browse to http://localhost:3000/api/docs
67
- * ```
68
- *
69
- * @param app - The NestJS application instance.
70
- * @param options - Configuration overrides.
71
- */
72
- export declare function configScalarApiDoc(app: INestApplication, options?: ConfigScalarOptions): void;
73
- //# sourceMappingURL=api-docs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-docs.d.ts","sourceRoot":"","sources":["../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1
- const DEFAULT_FAVICON_URL = 'https://scalar.com/favicon.svg';
2
- /**
3
- * Configure Swagger UI on the NestJS app.
4
- *
5
- * Mounts the Swagger UI at the given `path` (default `api/docs`).
6
- *
7
- * @example
8
- * ```ts
9
- * import { configSwagger } from '@oxpo/nest-kit/bootstrap/swagger';
10
- *
11
- * configSwagger(app);
12
- * // Browse to http://localhost:3000/api/docs
13
- * ```
14
- *
15
- * @param app - The NestJS application instance.
16
- * @param options - Configuration overrides.
17
- */
18
- export function configSwagger(app, options) {
19
- try {
20
- // eslint-disable-next-line @typescript-eslint/no-require-imports
21
- const { DocumentBuilder, SwaggerModule } = require('@nestjs/swagger');
22
- const builder = new DocumentBuilder()
23
- .setTitle(options?.title ?? 'NestJS API')
24
- .setDescription(options?.description ?? '')
25
- .setVersion(options?.version ?? '1.0')
26
- .addBearerAuth();
27
- const config = builder.build();
28
- const document = SwaggerModule.createDocument(app, config, options?.swaggerDocumentOptions);
29
- SwaggerModule.setup(options?.path ?? 'api/docs', app, document, {
30
- customfavIcon: options?.swaggerCustomOptions?.customfavIcon ?? DEFAULT_FAVICON_URL,
31
- ...options?.swaggerCustomOptions,
32
- swaggerOptions: {
33
- persistAuthorization: true,
34
- ...options?.swaggerCustomOptions?.swaggerOptions,
35
- },
36
- });
37
- }
38
- catch {
39
- console.warn('[@oxpo/nest-kit] @nestjs/swagger is not installed. Skipping Swagger UI setup.');
40
- }
41
- }
42
- /**
43
- * Configure Scalar API Reference on the NestJS app.
44
- *
45
- * Mounts the Scalar UI at the given `path` (default `api/docs`).
46
- * Requires `@scalar/nestjs-api-reference` to be installed.
47
- *
48
- * @example
49
- * ```ts
50
- * import { configScalarApiDoc } from '@oxpo/nest-kit/bootstrap/swagger';
51
- *
52
- * configScalarApiDoc(app);
53
- * // Browse to http://localhost:3000/api/docs
54
- * ```
55
- *
56
- * @param app - The NestJS application instance.
57
- * @param options - Configuration overrides.
58
- */
59
- export function configScalarApiDoc(app, options) {
60
- try {
61
- // eslint-disable-next-line @typescript-eslint/no-require-imports
62
- const { DocumentBuilder, SwaggerModule } = require('@nestjs/swagger');
63
- const builder = new DocumentBuilder()
64
- .setTitle(options?.title ?? 'NestJS API')
65
- .setDescription(options?.description ?? '')
66
- .setVersion(options?.version ?? '1.0')
67
- .addBearerAuth();
68
- const config = builder.build();
69
- const document = SwaggerModule.createDocument(app, config, options?.swaggerDocumentOptions);
70
- try {
71
- // eslint-disable-next-line @typescript-eslint/no-require-imports
72
- const { apiReference } = require('@scalar/nestjs-api-reference');
73
- app.use(options?.path ?? 'api/docs', apiReference({
74
- spec: { content: document },
75
- ...options?.scalarOptions,
76
- }));
77
- }
78
- catch {
79
- console.warn('[@oxpo/nest-kit] @scalar/nestjs-api-reference is not installed. ' +
80
- 'Skipping Scalar API docs setup.');
81
- }
82
- }
83
- catch {
84
- console.warn('[@oxpo/nest-kit] @nestjs/swagger is not installed. Skipping Scalar API docs setup.');
85
- }
86
- }
87
- //# sourceMappingURL=api-docs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-docs.js","sourceRoot":"","sources":["../../../packages/bootstrap/swagger/api-docs.ts"],"names":[],"mappings":"AAYA,MAAM,mBAAmB,GAAG,gCAAgC,CAAC;AAsB7D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,aAAa,CAAC,GAAqB,EAAE,OAA8B;IACjF,IAAI,CAAC;QACH,iEAAiE;QACjE,MAAM,EAAE,eAAe,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAenE,CAAC;QAEF,MAAM,OAAO,GAAG,IAAI,eAAe,EAAE;aAClC,QAAQ,CAAC,OAAO,EAAE,KAAK,IAAI,YAAY,CAAC;aACxC,cAAc,CAAC,OAAO,EAAE,WAAW,IAAI,EAAE,CAAC;aAC1C,UAAU,CAAC,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC;aACrC,aAAa,EAAE,CAAC;QAEnB,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;Q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OAAO,EAAE,IAAI,IAAI,UAAU,EAC3B,YAAY,CAAC;gBACX,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,GAAG,OAAO,EAAE,aAAa;aAC1B,CAAC,CACH,CAAC;QACJ,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,CAAC,IAAI,CACV,kEAAkE;gBAChE,iCAAiC,CACpC,CAAC;QACJ,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,CAAC,IAAI,CACV,oFAAoF,CACrF,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1,37 +0,0 @@
1
- import type { INestApplication } from '@nestjs/common';
2
- import type { SwaggerCustomOptions, SwaggerDocumentOptions } from '@nestjs/swagger';
3
- /**
4
- * Options for {@link configSwagger}.
5
- */
6
- export interface ConfigSwaggerOptions {
7
- /** OpenAPI title (default: `'NestJS API'`). */
8
- title?: string;
9
- /** OpenAPI description (default: `''`). */
10
- description?: string;
11
- /** OpenAPI version (default: `'1.0'`). */
12
- version?: string;
13
- /** Mount path (default: `'api/docs'`). */
14
- path?: string;
15
- /** Extra options forwarded to `SwaggerModule.setup`. */
16
- swaggerCustomOptions?: SwaggerCustomOptions;
17
- /** Extra options forwarded to `SwaggerModule.createDocument`. */
18
- swaggerDocumentOptions?: SwaggerDocumentOptions;
19
- }
20
- /**
21
- * Configure Swagger UI on the NestJS app.
22
- *
23
- * Mounts the Swagger UI at the given `path` (default `api/docs`).
24
- *
25
- * @example
26
- * ```ts
27
- * import { configSwagger } from '@os.io/nest-kit/bootstrap/swagger';
28
- *
29
- * configSwagger(app);
30
- * // Browse to http://localhost:3000/api/docs
31
- * ```
32
- *
33
- * @param app - The NestJS application instance.
34
- * @param options - Configuration overrides.
35
- */
36
- export declare function configSwagger(app: INestApplication, options?: ConfigSwaggerOptions): void;
37
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/bootstrap/swagger/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAKpF;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,iEAAiE;IACjE,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;CACjD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAkBzF"}
@@ -1,36 +0,0 @@
1
- import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
2
- const DEFAULT_FAVICON_URL = 'https://scalar.com/favicon.svg';
3
- /**
4
- * Configure Swagger UI on the NestJS app.
5
- *
6
- * Mounts the Swagger UI at the given `path` (default `api/docs`).
7
- *
8
- * @example
9
- * ```ts
10
- * import { configSwagger } from '@os.io/nest-kit/bootstrap/swagger';
11
- *
12
- * configSwagger(app);
13
- * // Browse to http://localhost:3000/api/docs
14
- * ```
15
- *
16
- * @param app - The NestJS application instance.
17
- * @param options - Configuration overrides.
18
- */
19
- export function configSwagger(app, options) {
20
- const builder = new DocumentBuilder()
21
- .setTitle(options?.title ?? 'NestJS API')
22
- .setDescription(options?.description ?? '')
23
- .setVersion(options?.version ?? '1.0')
24
- .addBearerAuth();
25
- const config = builder.build();
26
- const document = SwaggerModule.createDocument(app, config, options?.swaggerDocumentOptions);
27
- SwaggerModule.setup(options?.path ?? 'api/docs', app, document, {
28
- customfavIcon: options?.swaggerCustomOptions?.customfavIcon ?? DEFAULT_FAVICON_URL,
29
- ...options?.swaggerCustomOptions,
30
- swaggerOptions: {
31
- persistAuthorization: true,
32
- ...options?.swaggerCustomOptions?.swaggerOptions,
33
- },
34
- });
35
- }
36
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/bootstrap/swagger/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEjE,MAAM,mBAAmB,GAAG,gCAAgC,CAAC;AAoB7D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,aAAa,CAAC,GAAqB,EAAE,OAA8B;IACjF,MAAM,OAAO,GAAG,IAAI,eAAe,EAAE;SAClC,QAAQ,CAAC,OAAO,EAAE,KAAK,IAAI,YAAY,CAAC;SACxC,cAAc,CAAC,OAAO,EAAE,WAAW,IAAI,EAAE,CAAC;SAC1C,UAAU,CAAC,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC;SACrC,aAAa,EAAE,CAAC;IAEnB,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC;IAE5F,aAAa,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE;QAC9D,aAAa,EAAE,OAAO,EAAE,oBAAoB,EAAE,aAAa,IAAI,mBAAmB;QAClF,GAAG,OAAO,EAAE,oBAAoB;QAChC,cAAc,EAAE;YACd,oBAAoB,EAAE,IAAI;YAC1B,GAAG,OAAO,EAAE,oBAAoB,EAAE,cAAc;SACjD;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -1,12 +0,0 @@
1
- import { type TypeOrmModuleOptions } from '@nestjs/typeorm';
2
- import { ConfigService } from '@nestjs/config';
3
- export interface TypeOrmConfigOptions {
4
- schema?: string;
5
- poolSize?: number;
6
- idleTimeoutMs?: number;
7
- connectionTimeoutMs?: number;
8
- statementTimeoutMs?: number;
9
- }
10
- export declare function configTypeOrm(options?: TypeOrmConfigOptions): TypeOrmModuleOptions;
11
- export declare function configTypeOrmAsync(configService: ConfigService, options?: TypeOrmConfigOptions): TypeOrmModuleOptions;
12
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/bootstrap/typeorm/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AA2DD,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,oBAAoB,CAYlF;AAID,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,aAAa,EAC5B,OAAO,CAAC,EAAE,oBAAoB,GAC7B,oBAAoB,CAStB"}
@@ -1,62 +0,0 @@
1
- const DEFAULTS = {
2
- postgres: { port: 5432, database: 'postgres' },
3
- mysql: { port: 3306, database: 'mysql' },
4
- mariadb: { port: 3306, database: 'mysql' },
5
- 'better-sqlite3': { port: 0, database: ':memory:' },
6
- };
7
- function buildConfig(get, options) {
8
- const defaults = DEFAULTS[get.str('DB_TYPE') ?? 'postgres'];
9
- return {
10
- type: get.str('DB_TYPE') ?? 'postgres',
11
- host: get.str('DB_HOST') ?? 'localhost',
12
- port: get.num('DB_PORT') ?? defaults?.port ?? 5432,
13
- username: get.str('DB_USERNAME'),
14
- password: get.str('DB_PASSWORD'),
15
- database: get.str('DB_DATABASE') ?? defaults?.database ?? 'database',
16
- synchronize: get.bool('DB_SYNCHRONIZE', false),
17
- logging: get.bool('DB_LOGGING', false) ? 'all' : false,
18
- autoLoadEntities: true,
19
- retryAttempts: 10,
20
- retryDelay: 3000,
21
- ...(get.bool('DB_RDS_ENABLED', false) || get.bool('DB_SSL_REJECT_UNAUTHORIZED', false)
22
- ? { ssl: { rejectUnauthorized: true } }
23
- : {}),
24
- ...(get.bool('DB_RDS_ENABLED', false)
25
- ? {
26
- extra: {
27
- ssl: { rejectUnauthorized: true },
28
- max: options?.poolSize ?? 20,
29
- idleTimeoutMillis: options?.idleTimeoutMs ?? 30000,
30
- connectionTimeoutMillis: options?.connectionTimeoutMs ?? 10000,
31
- ...(options?.statementTimeoutMs !== undefined
32
- ? { statement_timeout: options.statementTimeoutMs }
33
- : {}),
34
- ...(options?.schema ? { schema: options.schema } : {}),
35
- ...(get.bool('RDS_USE_IAM', false)
36
- ? { region: get.str('RDS_REGION') ?? 'us-east-1' }
37
- : {}),
38
- },
39
- }
40
- : {}),
41
- ...(options?.schema && !get.bool('DB_RDS_ENABLED', false) ? { schema: options.schema } : {}),
42
- };
43
- }
44
- /* ---------- for TypeOrmModule.forRoot (reads process.env) ---------- */
45
- export function configTypeOrm(options) {
46
- return buildConfig({
47
- str: (key) => process.env[key],
48
- num: (key) => (process.env[key] !== undefined ? Number(process.env[key]) : undefined),
49
- bool: (key, def) => process.env[key] !== undefined
50
- ? process.env[key] === 'true' || process.env[key] === '1'
51
- : def,
52
- }, options);
53
- }
54
- /* ---------- for TypeOrmModule.forRootAsync (uses ConfigService) ---------- */
55
- export function configTypeOrmAsync(configService, options) {
56
- return buildConfig({
57
- str: (key) => configService.get(key),
58
- num: (key) => configService.get(key),
59
- bool: (key, def) => configService.get(key, def) ?? def,
60
- }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
- export declare function createCrudController<T>(service: CrudService<T>, options?: {
3
- path?: string;
4
- }): {
5
- new (): {
6
- findAll(): Promise<T[]>;
7
- findOne(id: string): Promise<T | null>;
8
- create(data: Record<string, unknown>): Promise<T>;
9
- update(id: string, data: Record<string, unknown>): Promise<T>;
10
- remove(id: string): Promise<import("typeorm").DeleteResult>;
11
- };
12
- };
13
- //# sourceMappingURL=controller.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../packages/bootstrap/typeorm/crud/controller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE;;;oBAS/D,MAAM;qBAKV,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;mBAKpB,MAAM,QAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;mBAK7C,MAAM;;EAMjC"}
@@ -1,72 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- var __param = (this && this.__param) || function (paramIndex, decorator) {
11
- return function (target, key) { decorator(target, key, paramIndex); }
12
- };
13
- import { Controller, Get, Post, Patch, Delete, Param, Body } from '@nestjs/common';
14
- export function createCrudController(service, options) {
15
- let CrudController = class CrudController {
16
- findAll() {
17
- return service.findAll();
18
- }
19
- findOne(id) {
20
- return service.findOne(id);
21
- }
22
- create(data) {
23
- return service.create(data);
24
- }
25
- update(id, data) {
26
- return service.update(id, data);
27
- }
28
- remove(id) {
29
- return service.remove(id);
30
- }
31
- };
32
- __decorate([
33
- Get(),
34
- __metadata("design:type", Function),
35
- __metadata("design:paramtypes", []),
36
- __metadata("design:returntype", void 0)
37
- ], CrudController.prototype, "findAll", null);
38
- __decorate([
39
- Get(':id'),
40
- __param(0, Param('id')),
41
- __metadata("design:type", Function),
42
- __metadata("design:paramtypes", [String]),
43
- __metadata("design:returntype", void 0)
44
- ], CrudController.prototype, "findOne", null);
45
- __decorate([
46
- Post(),
47
- __param(0, Body()),
48
- __metadata("design:type", Function),
49
- __metadata("design:paramtypes", [Object]),
50
- __metadata("design:returntype", void 0)
51
- ], CrudController.prototype, "create", null);
52
- __decorate([
53
- Patch(':id'),
54
- __param(0, Param('id')),
55
- __param(1, Body()),
56
- __metadata("design:type", Function),
57
- __metadata("design:paramtypes", [String, Object]),
58
- __metadata("design:returntype", void 0)
59
- ], CrudController.prototype, "update", null);
60
- __decorate([
61
- Delete(':id'),
62
- __param(0, Param('id')),
63
- __metadata("design:type", Function),
64
- __metadata("design:paramtypes", [String]),
65
- __metadata("design:returntype", void 0)
66
- ], CrudController.prototype, "remove", null);
67
- CrudController = __decorate([
68
- Controller(options?.path ?? '')
69
- ], CrudController);
70
- return CrudController;
71
- }
72
- //# sourceMappingURL=controller.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../../packages/bootstrap/typeorm/crud/controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGnF,MAAM,UAAU,oBAAoB,CAAI,OAAuB,EAAE,OAA2B;IAE1F,IAAM,cAAc,GAApB,MAAM,cAAc;QAElB,OAAO;YACL,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC;QAGD,OAAO,CAAc,EAAU;YAC7B,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAC7B,CAAC;QAGD,MAAM,CAAS,IAA6B;YAC1C,OAAO,OAAO,CAAC,MAAM,CAAC,IAA6B,CAAC,CAAC;QACvD,CAAC;QAGD,MAAM,CAAc,EAAU,EAAU,IAA6B;YACnE,OAAO,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,IAA6B,CAAC,CAAC;QAC3D,CAAC;QAGD,MAAM,CAAc,EAAU;YAC5B,OAAO,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC5B,CAAC;KACF,CAAA;IAvBC;QADC,GAAG,EAAE;;;;iDAGL;IAGD;QADC,GAAG,CAAC,KAAK,CAAC;QACF,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;;;;iDAEnB;IAGD;QADC,IAAI,EAAE;QACC,WAAA,IAAI,EAAE,CAAA;;;;gDAEb;IAGD;QADC,KAAK,CAAC,KAAK,CAAC;QACL,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;QAAc,WAAA,IAAI,EAAE,CAAA;;;;gDAEtC;IAGD;QADC,MAAM,CAAC,KAAK,CAAC;QACN,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;;;;gDAElB;IAxBG,cAAc;QADnB,UAAU,CAAC,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC;OAC1B,cAAc,CAyBnB;IAED,OAAO,cAAc,CAAC;AACxB,CAAC"}
@@ -1,4 +0,0 @@
1
- export { createCrudService } from './service';
2
- export { createCrudController } from './controller';
3
- export type { CrudService } from './service';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/bootstrap/typeorm/crud/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC"}
@@ -1,3 +0,0 @@
1
- export { createCrudService } from './service';
2
- export { createCrudController } from './controller';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/bootstrap/typeorm/crud/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC"}