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

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 (287) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +111 -0
  3. package/dist/auth/auth.constants.d.ts +19 -0
  4. package/dist/auth/auth.constants.d.ts.map +1 -0
  5. package/dist/auth/auth.constants.js +19 -0
  6. package/dist/auth/auth.constants.js.map +1 -0
  7. package/dist/auth/auth.guard.d.ts +20 -0
  8. package/dist/auth/auth.guard.d.ts.map +1 -0
  9. package/dist/auth/auth.guard.js +84 -0
  10. package/dist/auth/auth.guard.js.map +1 -0
  11. package/dist/auth/auth.module.d.ts +26 -0
  12. package/dist/auth/auth.module.d.ts.map +1 -0
  13. package/dist/auth/auth.module.js +344 -0
  14. package/dist/auth/auth.module.js.map +1 -0
  15. package/dist/auth/auth.options.d.ts +179 -0
  16. package/dist/auth/auth.options.d.ts.map +1 -0
  17. package/dist/auth/auth.options.js +2 -0
  18. package/dist/auth/auth.options.js.map +1 -0
  19. package/dist/auth/auth.service.d.ts +57 -0
  20. package/dist/auth/auth.service.d.ts.map +1 -0
  21. package/dist/auth/auth.service.js +175 -0
  22. package/dist/auth/auth.service.js.map +1 -0
  23. package/dist/auth/authorization/index.d.ts +3 -0
  24. package/dist/auth/authorization/index.d.ts.map +1 -0
  25. package/dist/auth/authorization/index.js +3 -0
  26. package/dist/auth/authorization/index.js.map +1 -0
  27. package/dist/auth/authorization/pbac/index.d.ts +6 -0
  28. package/dist/auth/authorization/pbac/index.d.ts.map +1 -0
  29. package/dist/auth/authorization/pbac/index.js +4 -0
  30. package/dist/auth/authorization/pbac/index.js.map +1 -0
  31. package/dist/auth/authorization/pbac/pbac.decorator.d.ts +18 -0
  32. package/dist/auth/authorization/pbac/pbac.decorator.d.ts.map +1 -0
  33. package/dist/auth/authorization/pbac/pbac.decorator.js +14 -0
  34. package/dist/auth/authorization/pbac/pbac.decorator.js.map +1 -0
  35. package/dist/auth/authorization/pbac/pbac.guard.d.ts +19 -0
  36. package/dist/auth/authorization/pbac/pbac.guard.d.ts.map +1 -0
  37. package/dist/auth/authorization/pbac/pbac.guard.js +60 -0
  38. package/dist/auth/authorization/pbac/pbac.guard.js.map +1 -0
  39. package/dist/auth/authorization/pbac/pbac.service.d.ts +44 -0
  40. package/dist/auth/authorization/pbac/pbac.service.d.ts.map +1 -0
  41. package/dist/auth/authorization/pbac/pbac.service.js +146 -0
  42. package/dist/auth/authorization/pbac/pbac.service.js.map +1 -0
  43. package/dist/auth/authorization/pbac/pbac.types.d.ts +47 -0
  44. package/dist/auth/authorization/pbac/pbac.types.d.ts.map +1 -0
  45. package/dist/auth/authorization/pbac/pbac.types.js +2 -0
  46. package/dist/auth/authorization/pbac/pbac.types.js.map +1 -0
  47. package/dist/auth/authorization/rbac/index.d.ts +4 -0
  48. package/dist/auth/authorization/rbac/index.d.ts.map +1 -0
  49. package/dist/auth/authorization/rbac/index.js +4 -0
  50. package/dist/auth/authorization/rbac/index.js.map +1 -0
  51. package/dist/auth/authorization/rbac/rbac.decorator.d.ts +18 -0
  52. package/dist/auth/authorization/rbac/rbac.decorator.d.ts.map +1 -0
  53. package/dist/auth/authorization/rbac/rbac.decorator.js +25 -0
  54. package/dist/auth/authorization/rbac/rbac.decorator.js.map +1 -0
  55. package/dist/auth/authorization/rbac/rbac.guard.d.ts +19 -0
  56. package/dist/auth/authorization/rbac/rbac.guard.d.ts.map +1 -0
  57. package/dist/auth/authorization/rbac/rbac.guard.js +50 -0
  58. package/dist/auth/authorization/rbac/rbac.guard.js.map +1 -0
  59. package/dist/auth/authorization/rbac/rbac.service.d.ts +43 -0
  60. package/dist/auth/authorization/rbac/rbac.service.d.ts.map +1 -0
  61. package/dist/auth/authorization/rbac/rbac.service.js +95 -0
  62. package/dist/auth/authorization/rbac/rbac.service.js.map +1 -0
  63. package/dist/auth/decorators/current-user.decorator.d.ts +17 -0
  64. package/dist/auth/decorators/current-user.decorator.d.ts.map +1 -0
  65. package/dist/auth/decorators/current-user.decorator.js +23 -0
  66. package/dist/auth/decorators/current-user.decorator.js.map +1 -0
  67. package/dist/auth/decorators/index.d.ts +3 -0
  68. package/dist/auth/decorators/index.d.ts.map +1 -0
  69. package/dist/auth/decorators/index.js +3 -0
  70. package/dist/auth/decorators/index.js.map +1 -0
  71. package/dist/auth/decorators/public.decorator.d.ts +13 -0
  72. package/dist/auth/decorators/public.decorator.d.ts.map +1 -0
  73. package/dist/auth/decorators/public.decorator.js +15 -0
  74. package/dist/auth/decorators/public.decorator.js.map +1 -0
  75. package/dist/auth/index.d.ts +63 -0
  76. package/dist/auth/index.d.ts.map +1 -0
  77. package/dist/auth/index.js +65 -0
  78. package/dist/auth/index.js.map +1 -0
  79. package/dist/auth/interfaces/auth-request.interface.d.ts +18 -0
  80. package/dist/auth/interfaces/auth-request.interface.d.ts.map +1 -0
  81. package/dist/auth/interfaces/auth-request.interface.js +2 -0
  82. package/dist/auth/interfaces/auth-request.interface.js.map +1 -0
  83. package/dist/auth/interfaces/auth-result.interface.d.ts +28 -0
  84. package/dist/auth/interfaces/auth-result.interface.d.ts.map +1 -0
  85. package/dist/auth/interfaces/auth-result.interface.js +2 -0
  86. package/dist/auth/interfaces/auth-result.interface.js.map +1 -0
  87. package/dist/auth/interfaces/auth-strategy.interface.d.ts +37 -0
  88. package/dist/auth/interfaces/auth-strategy.interface.d.ts.map +1 -0
  89. package/dist/auth/interfaces/auth-strategy.interface.js +16 -0
  90. package/dist/auth/interfaces/auth-strategy.interface.js.map +1 -0
  91. package/dist/auth/interfaces/auth-user.interface.d.ts +25 -0
  92. package/dist/auth/interfaces/auth-user.interface.d.ts.map +1 -0
  93. package/dist/auth/interfaces/auth-user.interface.js +2 -0
  94. package/dist/auth/interfaces/auth-user.interface.js.map +1 -0
  95. package/dist/auth/interfaces/cache-service.interface.d.ts +30 -0
  96. package/dist/auth/interfaces/cache-service.interface.d.ts.map +1 -0
  97. package/dist/auth/interfaces/cache-service.interface.js +2 -0
  98. package/dist/auth/interfaces/cache-service.interface.js.map +1 -0
  99. package/dist/auth/interfaces/index.d.ts +8 -0
  100. package/dist/auth/interfaces/index.d.ts.map +1 -0
  101. package/dist/auth/interfaces/index.js +2 -0
  102. package/dist/auth/interfaces/index.js.map +1 -0
  103. package/dist/auth/interfaces/user-service.interface.d.ts +34 -0
  104. package/dist/auth/interfaces/user-service.interface.d.ts.map +1 -0
  105. package/dist/auth/interfaces/user-service.interface.js +2 -0
  106. package/dist/auth/interfaces/user-service.interface.js.map +1 -0
  107. package/dist/auth/password/password.service.d.ts +23 -0
  108. package/dist/auth/password/password.service.d.ts.map +1 -0
  109. package/dist/auth/password/password.service.js +52 -0
  110. package/dist/auth/password/password.service.js.map +1 -0
  111. package/dist/auth/session/device-session.service.d.ts +43 -0
  112. package/dist/auth/session/device-session.service.d.ts.map +1 -0
  113. package/dist/auth/session/device-session.service.js +72 -0
  114. package/dist/auth/session/device-session.service.js.map +1 -0
  115. package/dist/auth/session/index.d.ts +5 -0
  116. package/dist/auth/session/index.d.ts.map +1 -0
  117. package/dist/auth/session/index.js +4 -0
  118. package/dist/auth/session/index.js.map +1 -0
  119. package/dist/auth/session/jwt.service.d.ts +37 -0
  120. package/dist/auth/session/jwt.service.d.ts.map +1 -0
  121. package/dist/auth/session/jwt.service.js +119 -0
  122. package/dist/auth/session/jwt.service.js.map +1 -0
  123. package/dist/auth/session/token-blacklist.service.d.ts +37 -0
  124. package/dist/auth/session/token-blacklist.service.d.ts.map +1 -0
  125. package/dist/auth/session/token-blacklist.service.js +70 -0
  126. package/dist/auth/session/token-blacklist.service.js.map +1 -0
  127. package/dist/auth/strategies/anonymous/anonymous.strategy.d.ts +19 -0
  128. package/dist/auth/strategies/anonymous/anonymous.strategy.d.ts.map +1 -0
  129. package/dist/auth/strategies/anonymous/anonymous.strategy.js +49 -0
  130. package/dist/auth/strategies/anonymous/anonymous.strategy.js.map +1 -0
  131. package/dist/auth/strategies/base/base.strategy.d.ts +11 -0
  132. package/dist/auth/strategies/base/base.strategy.d.ts.map +1 -0
  133. package/dist/auth/strategies/base/base.strategy.js +6 -0
  134. package/dist/auth/strategies/base/base.strategy.js.map +1 -0
  135. package/dist/auth/strategies/credentials/credentials.strategy.d.ts +21 -0
  136. package/dist/auth/strategies/credentials/credentials.strategy.d.ts.map +1 -0
  137. package/dist/auth/strategies/credentials/credentials.strategy.js +67 -0
  138. package/dist/auth/strategies/credentials/credentials.strategy.js.map +1 -0
  139. package/dist/auth/strategies/index.d.ts +12 -0
  140. package/dist/auth/strategies/index.d.ts.map +1 -0
  141. package/dist/auth/strategies/index.js +12 -0
  142. package/dist/auth/strategies/index.js.map +1 -0
  143. package/dist/auth/strategies/magic-link/magic-link.strategy.d.ts +31 -0
  144. package/dist/auth/strategies/magic-link/magic-link.strategy.d.ts.map +1 -0
  145. package/dist/auth/strategies/magic-link/magic-link.strategy.js +88 -0
  146. package/dist/auth/strategies/magic-link/magic-link.strategy.js.map +1 -0
  147. package/dist/auth/strategies/oauth/index.d.ts +3 -0
  148. package/dist/auth/strategies/oauth/index.d.ts.map +1 -0
  149. package/dist/auth/strategies/oauth/index.js +3 -0
  150. package/dist/auth/strategies/oauth/index.js.map +1 -0
  151. package/dist/auth/strategies/oauth/oauth-provider-registry.d.ts +13 -0
  152. package/dist/auth/strategies/oauth/oauth-provider-registry.d.ts.map +1 -0
  153. package/dist/auth/strategies/oauth/oauth-provider-registry.js +20 -0
  154. package/dist/auth/strategies/oauth/oauth-provider-registry.js.map +1 -0
  155. package/dist/auth/strategies/oauth/oauth.strategy.d.ts +23 -0
  156. package/dist/auth/strategies/oauth/oauth.strategy.d.ts.map +1 -0
  157. package/dist/auth/strategies/oauth/oauth.strategy.js +79 -0
  158. package/dist/auth/strategies/oauth/oauth.strategy.js.map +1 -0
  159. package/dist/auth/strategies/onetap/onetap.strategy.d.ts +24 -0
  160. package/dist/auth/strategies/onetap/onetap.strategy.d.ts.map +1 -0
  161. package/dist/auth/strategies/onetap/onetap.strategy.js +77 -0
  162. package/dist/auth/strategies/onetap/onetap.strategy.js.map +1 -0
  163. package/dist/auth/strategies/otp/otp.strategy.d.ts +31 -0
  164. package/dist/auth/strategies/otp/otp.strategy.d.ts.map +1 -0
  165. package/dist/auth/strategies/otp/otp.strategy.js +93 -0
  166. package/dist/auth/strategies/otp/otp.strategy.js.map +1 -0
  167. package/dist/auth/strategies/passkey/passkey.strategy.d.ts +32 -0
  168. package/dist/auth/strategies/passkey/passkey.strategy.d.ts.map +1 -0
  169. package/dist/auth/strategies/passkey/passkey.strategy.js +102 -0
  170. package/dist/auth/strategies/passkey/passkey.strategy.js.map +1 -0
  171. package/dist/auth/strategies/sso/sso.strategy.d.ts +25 -0
  172. package/dist/auth/strategies/sso/sso.strategy.d.ts.map +1 -0
  173. package/dist/auth/strategies/sso/sso.strategy.js +80 -0
  174. package/dist/auth/strategies/sso/sso.strategy.js.map +1 -0
  175. package/dist/auth/strategies/totp/totp.strategy.d.ts +37 -0
  176. package/dist/auth/strategies/totp/totp.strategy.d.ts.map +1 -0
  177. package/dist/auth/strategies/totp/totp.strategy.js +109 -0
  178. package/dist/auth/strategies/totp/totp.strategy.js.map +1 -0
  179. package/dist/auth/throttling/index.d.ts +2 -0
  180. package/dist/auth/throttling/index.d.ts.map +1 -0
  181. package/dist/auth/throttling/index.js +2 -0
  182. package/dist/auth/throttling/index.js.map +1 -0
  183. package/dist/auth/throttling/throttle.service.d.ts +27 -0
  184. package/dist/auth/throttling/throttle.service.d.ts.map +1 -0
  185. package/dist/auth/throttling/throttle.service.js +63 -0
  186. package/dist/auth/throttling/throttle.service.js.map +1 -0
  187. package/dist/bootstrap/cache/config.d.ts +135 -0
  188. package/dist/bootstrap/cache/config.d.ts.map +1 -0
  189. package/dist/bootstrap/cache/config.js +189 -0
  190. package/dist/bootstrap/cache/config.js.map +1 -0
  191. package/dist/bootstrap/cache/index.d.ts +11 -0
  192. package/dist/bootstrap/cache/index.d.ts.map +1 -0
  193. package/dist/bootstrap/cache/index.js +11 -0
  194. package/dist/bootstrap/cache/index.js.map +1 -0
  195. package/dist/bootstrap/index.d.ts +21 -0
  196. package/dist/bootstrap/index.d.ts.map +1 -0
  197. package/dist/bootstrap/index.js +21 -0
  198. package/dist/bootstrap/index.js.map +1 -0
  199. package/dist/bootstrap/scalar/api-docs.d.ts +39 -0
  200. package/dist/bootstrap/scalar/api-docs.d.ts.map +1 -0
  201. package/dist/bootstrap/scalar/api-docs.js +41 -0
  202. package/dist/bootstrap/scalar/api-docs.js.map +1 -0
  203. package/dist/bootstrap/scalar/index.d.ts +39 -0
  204. package/dist/bootstrap/scalar/index.d.ts.map +1 -0
  205. package/dist/bootstrap/scalar/index.js +41 -0
  206. package/dist/bootstrap/scalar/index.js.map +1 -0
  207. package/dist/bootstrap/swagger/api-docs.d.ts +73 -0
  208. package/dist/bootstrap/swagger/api-docs.d.ts.map +1 -0
  209. package/dist/bootstrap/swagger/api-docs.js +87 -0
  210. package/dist/bootstrap/swagger/api-docs.js.map +1 -0
  211. package/dist/bootstrap/swagger/index.d.ts +37 -0
  212. package/dist/bootstrap/swagger/index.d.ts.map +1 -0
  213. package/dist/bootstrap/swagger/index.js +36 -0
  214. package/dist/bootstrap/swagger/index.js.map +1 -0
  215. package/dist/bootstrap/typeorm/config/index.d.ts +12 -0
  216. package/dist/bootstrap/typeorm/config/index.d.ts.map +1 -0
  217. package/dist/bootstrap/typeorm/config/index.js +62 -0
  218. package/dist/bootstrap/typeorm/config/index.js.map +1 -0
  219. package/dist/bootstrap/typeorm/crud/controller.d.ts +13 -0
  220. package/dist/bootstrap/typeorm/crud/controller.d.ts.map +1 -0
  221. package/dist/bootstrap/typeorm/crud/controller.js +72 -0
  222. package/dist/bootstrap/typeorm/crud/controller.js.map +1 -0
  223. package/dist/bootstrap/typeorm/crud/index.d.ts +4 -0
  224. package/dist/bootstrap/typeorm/crud/index.d.ts.map +1 -0
  225. package/dist/bootstrap/typeorm/crud/index.js +3 -0
  226. package/dist/bootstrap/typeorm/crud/index.js.map +1 -0
  227. package/dist/bootstrap/typeorm/crud/service.d.ts +10 -0
  228. package/dist/bootstrap/typeorm/crud/service.d.ts.map +1 -0
  229. package/dist/bootstrap/typeorm/crud/service.js +21 -0
  230. package/dist/bootstrap/typeorm/crud/service.js.map +1 -0
  231. package/dist/bootstrap/typeorm/index.d.ts +18 -0
  232. package/dist/bootstrap/typeorm/index.d.ts.map +1 -0
  233. package/dist/bootstrap/typeorm/index.js +18 -0
  234. package/dist/bootstrap/typeorm/index.js.map +1 -0
  235. package/dist/bootstrap/typeorm/uow/factory.d.ts +5 -0
  236. package/dist/bootstrap/typeorm/uow/factory.d.ts.map +1 -0
  237. package/dist/bootstrap/typeorm/uow/factory.js +27 -0
  238. package/dist/bootstrap/typeorm/uow/factory.js.map +1 -0
  239. package/dist/bootstrap/typeorm/uow/index.d.ts +4 -0
  240. package/dist/bootstrap/typeorm/uow/index.d.ts.map +1 -0
  241. package/dist/bootstrap/typeorm/uow/index.js +4 -0
  242. package/dist/bootstrap/typeorm/uow/index.js.map +1 -0
  243. package/dist/bootstrap/typeorm/uow/transactional.decorator.d.ts +62 -0
  244. package/dist/bootstrap/typeorm/uow/transactional.decorator.d.ts.map +1 -0
  245. package/dist/bootstrap/typeorm/uow/transactional.decorator.js +114 -0
  246. package/dist/bootstrap/typeorm/uow/transactional.decorator.js.map +1 -0
  247. package/dist/bootstrap/typeorm/uow/unit-of-work.d.ts +11 -0
  248. package/dist/bootstrap/typeorm/uow/unit-of-work.d.ts.map +1 -0
  249. package/dist/bootstrap/typeorm/uow/unit-of-work.js +23 -0
  250. package/dist/bootstrap/typeorm/uow/unit-of-work.js.map +1 -0
  251. package/dist/core/index.d.ts +11 -0
  252. package/dist/core/index.d.ts.map +1 -0
  253. package/dist/core/index.js +11 -0
  254. package/dist/core/index.js.map +1 -0
  255. package/dist/infra/audit-log/index.d.ts +12 -0
  256. package/dist/infra/audit-log/index.d.ts.map +1 -0
  257. package/dist/infra/audit-log/index.js +13 -0
  258. package/dist/infra/audit-log/index.js.map +1 -0
  259. package/dist/infra/index.d.ts +20 -0
  260. package/dist/infra/index.d.ts.map +1 -0
  261. package/dist/infra/index.js +21 -0
  262. package/dist/infra/index.js.map +1 -0
  263. package/dist/infra/logger/index.d.ts +12 -0
  264. package/dist/infra/logger/index.d.ts.map +1 -0
  265. package/dist/infra/logger/index.js +13 -0
  266. package/dist/infra/logger/index.js.map +1 -0
  267. package/dist/infra/metrics/index.d.ts +18 -0
  268. package/dist/infra/metrics/index.d.ts.map +1 -0
  269. package/dist/infra/metrics/index.js +19 -0
  270. package/dist/infra/metrics/index.js.map +1 -0
  271. package/dist/infra/notification/index.d.ts +12 -0
  272. package/dist/infra/notification/index.d.ts.map +1 -0
  273. package/dist/infra/notification/index.js +13 -0
  274. package/dist/infra/notification/index.js.map +1 -0
  275. package/dist/infra/storage/index.d.ts +12 -0
  276. package/dist/infra/storage/index.d.ts.map +1 -0
  277. package/dist/infra/storage/index.js +13 -0
  278. package/dist/infra/storage/index.js.map +1 -0
  279. package/dist/infra/stripe/index.d.ts +12 -0
  280. package/dist/infra/stripe/index.d.ts.map +1 -0
  281. package/dist/infra/stripe/index.js +13 -0
  282. package/dist/infra/stripe/index.js.map +1 -0
  283. package/dist/saas/index.d.ts +18 -0
  284. package/dist/saas/index.d.ts.map +1 -0
  285. package/dist/saas/index.js +19 -0
  286. package/dist/saas/index.js.map +1 -0
  287. package/package.json +165 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unit-of-work.d.ts","sourceRoot":"","sources":["../../../../packages/bootstrap/typeorm/uow/unit-of-work.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAe,UAAU,EAAE,MAAM,SAAS,CAAC;AAEhG,qBAAa,UAAU;IACrB,OAAO,CAAC,WAAW,CAAc;gBAErB,UAAU,EAAE,UAAU;IAI5B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAKtB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAIzB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B,aAAa,CAAC,CAAC,SAAS,aAAa,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;CAG/E"}
@@ -0,0 +1,23 @@
1
+ export class UnitOfWork {
2
+ queryRunner;
3
+ constructor(dataSource) {
4
+ this.queryRunner = dataSource.createQueryRunner();
5
+ }
6
+ async start() {
7
+ await this.queryRunner.connect();
8
+ await this.queryRunner.startTransaction();
9
+ }
10
+ async commit() {
11
+ await this.queryRunner.commitTransaction();
12
+ }
13
+ async rollback() {
14
+ await this.queryRunner.rollbackTransaction();
15
+ }
16
+ async release() {
17
+ await this.queryRunner.release();
18
+ }
19
+ getRepository(entity) {
20
+ return this.queryRunner.manager.getRepository(entity);
21
+ }
22
+ }
23
+ //# sourceMappingURL=unit-of-work.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unit-of-work.js","sourceRoot":"","sources":["../../../../packages/bootstrap/typeorm/uow/unit-of-work.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,UAAU;IACb,WAAW,CAAc;IAEjC,YAAY,UAAsB;QAChC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,iBAAiB,EAAE,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;QACjC,MAAM,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,MAAM;QACV,MAAM,IAAI,CAAC,WAAW,CAAC,iBAAiB,EAAE,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,MAAM,IAAI,CAAC,WAAW,CAAC,mBAAmB,EAAE,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;IACnC,CAAC;IAED,aAAa,CAA0B,MAAuB;QAC5D,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IACxD,CAAC;CACF"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @os.io/nest-kit/core
3
+ *
4
+ * Core shared utilities, types, interfaces, and base classes used across
5
+ * all other @os.io/nest-kit modules.
6
+ *
7
+ * @module
8
+ * @packageDocumentation
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @os.io/nest-kit/core
3
+ *
4
+ * Core shared utilities, types, interfaces, and base classes used across
5
+ * all other @os.io/nest-kit modules.
6
+ *
7
+ * @module
8
+ * @packageDocumentation
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../packages/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @os.io/nest-kit/infra/audit-log
3
+ *
4
+ * Audit logging for NestJS. Automatically captures and persists user actions,
5
+ * data changes, and security events in a structured format. Supports multiple
6
+ * backends (database, S3, Elasticsearch).
7
+ *
8
+ * @module
9
+ * @packageDocumentation
10
+ */
11
+ export {};
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/infra/audit-log/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @os.io/nest-kit/infra/audit-log
3
+ *
4
+ * Audit logging for NestJS. Automatically captures and persists user actions,
5
+ * data changes, and security events in a structured format. Supports multiple
6
+ * backends (database, S3, Elasticsearch).
7
+ *
8
+ * @module
9
+ * @packageDocumentation
10
+ */
11
+ throw new Error('The infra/audit-log module has not been implemented yet. Stay tuned for an upcoming alpha release.');
12
+ export {};
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/infra/audit-log/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,IAAI,KAAK,CACb,oGAAoG,CACrG,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @os.io/nest-kit/infra
3
+ *
4
+ * Infrastructure & third-party integrations for NestJS applications.
5
+ * Includes Logger, Notification, Storage, Stripe, Audit Log, and Metrics.
6
+ *
7
+ * ## Sub-modules
8
+ *
9
+ * - `@os.io/nest-kit/infra/logger` — Structured logging (Pino, Winston)
10
+ * - `@os.io/nest-kit/infra/notification` — Email, SMS, Push, In-app
11
+ * - `@os.io/nest-kit/infra/storage` — S3, GCS, Azure, local filesystem
12
+ * - `@os.io/nest-kit/infra/stripe` — Webhooks, subscriptions, checkout
13
+ * - `@os.io/nest-kit/infra/audit-log` — Audit trails, data change capture
14
+ * - `@os.io/nest-kit/infra/metrics` — Prometheus, OpenTelemetry, health checks
15
+ *
16
+ * @module
17
+ * @packageDocumentation
18
+ */
19
+ export {};
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/infra/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,EAAE,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @os.io/nest-kit/infra
3
+ *
4
+ * Infrastructure & third-party integrations for NestJS applications.
5
+ * Includes Logger, Notification, Storage, Stripe, Audit Log, and Metrics.
6
+ *
7
+ * ## Sub-modules
8
+ *
9
+ * - `@os.io/nest-kit/infra/logger` — Structured logging (Pino, Winston)
10
+ * - `@os.io/nest-kit/infra/notification` — Email, SMS, Push, In-app
11
+ * - `@os.io/nest-kit/infra/storage` — S3, GCS, Azure, local filesystem
12
+ * - `@os.io/nest-kit/infra/stripe` — Webhooks, subscriptions, checkout
13
+ * - `@os.io/nest-kit/infra/audit-log` — Audit trails, data change capture
14
+ * - `@os.io/nest-kit/infra/metrics` — Prometheus, OpenTelemetry, health checks
15
+ *
16
+ * @module
17
+ * @packageDocumentation
18
+ */
19
+ throw new Error('The infra module has not been implemented yet. Stay tuned for an upcoming alpha release.');
20
+ export {};
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../packages/infra/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,MAAM,IAAI,KAAK,CACb,0FAA0F,CAC3F,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @os.io/nest-kit/infra/logger
3
+ *
4
+ * Structured logging module for NestJS. Wraps popular logger libraries
5
+ * (Pino, Winston, etc.) and provides a NestJS LoggerService implementation
6
+ * with request-id injection, log levels, and transport configuration.
7
+ *
8
+ * @module
9
+ * @packageDocumentation
10
+ */
11
+ export {};
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/infra/logger/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @os.io/nest-kit/infra/logger
3
+ *
4
+ * Structured logging module for NestJS. Wraps popular logger libraries
5
+ * (Pino, Winston, etc.) and provides a NestJS LoggerService implementation
6
+ * with request-id injection, log levels, and transport configuration.
7
+ *
8
+ * @module
9
+ * @packageDocumentation
10
+ */
11
+ throw new Error('The infra/logger module has not been implemented yet. Stay tuned for an upcoming alpha release.');
12
+ export {};
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/infra/logger/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,IAAI,KAAK,CACb,iGAAiG,CAClG,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @os.io/nest-kit/infra/metrics
3
+ *
4
+ * Metrics & observability for NestJS. Exposes Prometheus metrics,
5
+ * OpenTelemetry tracing, health checks, and structured monitoring endpoints.
6
+ *
7
+ * ## Roadmap
8
+ *
9
+ * - Prometheus metric exporters (HTTP request duration, DB query duration, …)
10
+ * - OpenTelemetry integration
11
+ * - Health check endpoint builder
12
+ * - Custom metric decorators
13
+ *
14
+ * @module
15
+ * @packageDocumentation
16
+ */
17
+ export {};
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/infra/metrics/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,OAAO,EAAE,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @os.io/nest-kit/infra/metrics
3
+ *
4
+ * Metrics & observability for NestJS. Exposes Prometheus metrics,
5
+ * OpenTelemetry tracing, health checks, and structured monitoring endpoints.
6
+ *
7
+ * ## Roadmap
8
+ *
9
+ * - Prometheus metric exporters (HTTP request duration, DB query duration, …)
10
+ * - OpenTelemetry integration
11
+ * - Health check endpoint builder
12
+ * - Custom metric decorators
13
+ *
14
+ * @module
15
+ * @packageDocumentation
16
+ */
17
+ throw new Error('The infra/metrics module has not been implemented yet. Stay tuned for an upcoming alpha release.');
18
+ export {};
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/infra/metrics/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,IAAI,KAAK,CACb,kGAAkG,CACnG,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @os.io/nest-kit/infra/notification
3
+ *
4
+ * Multi-channel notification module for NestJS. Supports email (SMTP,
5
+ * SendGrid, SES), SMS (Twilio), push notifications (FCM, APNs), and
6
+ * in-app notifications.
7
+ *
8
+ * @module
9
+ * @packageDocumentation
10
+ */
11
+ export {};
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/infra/notification/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @os.io/nest-kit/infra/notification
3
+ *
4
+ * Multi-channel notification module for NestJS. Supports email (SMTP,
5
+ * SendGrid, SES), SMS (Twilio), push notifications (FCM, APNs), and
6
+ * in-app notifications.
7
+ *
8
+ * @module
9
+ * @packageDocumentation
10
+ */
11
+ throw new Error('The infra/notification module has not been implemented yet. Stay tuned for an upcoming alpha release.');
12
+ export {};
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/infra/notification/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,IAAI,KAAK,CACb,uGAAuG,CACxG,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @os.io/nest-kit/infra/storage
3
+ *
4
+ * File storage abstraction for NestJS. Provides a unified interface over
5
+ * local filesystem, AWS S3 / S3-compatible, Google Cloud Storage, and
6
+ * Azure Blob Storage.
7
+ *
8
+ * @module
9
+ * @packageDocumentation
10
+ */
11
+ export {};
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/infra/storage/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @os.io/nest-kit/infra/storage
3
+ *
4
+ * File storage abstraction for NestJS. Provides a unified interface over
5
+ * local filesystem, AWS S3 / S3-compatible, Google Cloud Storage, and
6
+ * Azure Blob Storage.
7
+ *
8
+ * @module
9
+ * @packageDocumentation
10
+ */
11
+ throw new Error('The infra/storage module has not been implemented yet. Stay tuned for an upcoming alpha release.');
12
+ export {};
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/infra/storage/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,IAAI,KAAK,CACb,kGAAkG,CACnG,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @os.io/nest-kit/infra/stripe
3
+ *
4
+ * Stripe integration for NestJS. Provides a NestJS-idiomatic wrapper around
5
+ * the Stripe SDK: webhook handling, subscription management, checkout
6
+ * sessions, customer portal, and idempotent request helpers.
7
+ *
8
+ * @module
9
+ * @packageDocumentation
10
+ */
11
+ export {};
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/infra/stripe/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @os.io/nest-kit/infra/stripe
3
+ *
4
+ * Stripe integration for NestJS. Provides a NestJS-idiomatic wrapper around
5
+ * the Stripe SDK: webhook handling, subscription management, checkout
6
+ * sessions, customer portal, and idempotent request helpers.
7
+ *
8
+ * @module
9
+ * @packageDocumentation
10
+ */
11
+ throw new Error('The infra/stripe module has not been implemented yet. Stay tuned for an upcoming alpha release.');
12
+ export {};
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/infra/stripe/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,IAAI,KAAK,CACb,iGAAiG,CAClG,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @os.io/nest-kit/saas
3
+ *
4
+ * SaaS primitives for NestJS applications: Organisation & Team management,
5
+ * multi-tenancy, subscription plans, invitations, and billing integration.
6
+ *
7
+ * ## Roadmap
8
+ *
9
+ * - Organisation & Team CRUD
10
+ * - Multi-tenant data isolation (schema / database per tenant)
11
+ * - Membership & role management
12
+ * - Invitation flows
13
+ *
14
+ * @module
15
+ * @packageDocumentation
16
+ */
17
+ export {};
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/saas/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,OAAO,EAAE,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @os.io/nest-kit/saas
3
+ *
4
+ * SaaS primitives for NestJS applications: Organisation & Team management,
5
+ * multi-tenancy, subscription plans, invitations, and billing integration.
6
+ *
7
+ * ## Roadmap
8
+ *
9
+ * - Organisation & Team CRUD
10
+ * - Multi-tenant data isolation (schema / database per tenant)
11
+ * - Membership & role management
12
+ * - Invitation flows
13
+ *
14
+ * @module
15
+ * @packageDocumentation
16
+ */
17
+ throw new Error('The saas module has not been implemented yet. Stay tuned for an upcoming alpha release.');
18
+ export {};
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../packages/saas/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,IAAI,KAAK,CACb,yFAAyF,CAC1F,CAAC"}
package/package.json ADDED
@@ -0,0 +1,165 @@
1
+ {
2
+ "name": "@os.io/nest-kit",
3
+ "version": "0.0.1-alpha.0",
4
+ "description": "A modular, production-ready NestJS toolkit — Bootstrap, Auth, SaaS, and Infra integrations in a single package.",
5
+ "keywords": [
6
+ "nestjs",
7
+ "nest-kit",
8
+ "toolkit",
9
+ "bootstrap",
10
+ "authentication",
11
+ "authorization",
12
+ "saas",
13
+ "multi-tenant",
14
+ "logger",
15
+ "storage",
16
+ "stripe",
17
+ "audit",
18
+ "metrics",
19
+ "typescript"
20
+ ],
21
+ "homepage": "https://github.com/oxpo-io/nest-kit#readme",
22
+ "bugs": {
23
+ "url": "https://github.com/oxpo-io/nest-kit/issues"
24
+ },
25
+ "license": "MIT",
26
+ "author": "Wind Blade <vn.chemgio@yahoo.com> (https://github.com/oxpo-io)",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/oxpo-io/nest-kit.git"
30
+ },
31
+ "main": "./dist/core/index.js",
32
+ "types": "./dist/core/index.d.ts",
33
+ "exports": {
34
+ ".": {
35
+ "types": "./dist/core/index.d.ts",
36
+ "import": "./dist/core/index.js",
37
+ "require": "./dist/core/index.js"
38
+ },
39
+ "./core": {
40
+ "types": "./dist/core/index.d.ts",
41
+ "import": "./dist/core/index.js",
42
+ "require": "./dist/core/index.js"
43
+ },
44
+ "./bootstrap": {
45
+ "types": "./dist/bootstrap/index.d.ts",
46
+ "import": "./dist/bootstrap/index.js",
47
+ "require": "./dist/bootstrap/index.js"
48
+ },
49
+ "./auth": {
50
+ "types": "./dist/auth/index.d.ts",
51
+ "import": "./dist/auth/index.js",
52
+ "require": "./dist/auth/index.js"
53
+ },
54
+ "./saas": {
55
+ "types": "./dist/saas/index.d.ts",
56
+ "import": "./dist/saas/index.js",
57
+ "require": "./dist/saas/index.js"
58
+ },
59
+ "./infra": {
60
+ "types": "./dist/infra/index.d.ts",
61
+ "import": "./dist/infra/index.js",
62
+ "require": "./dist/infra/index.js"
63
+ },
64
+ "./infra/logger": {
65
+ "types": "./dist/infra/logger/index.d.ts",
66
+ "import": "./dist/infra/logger/index.js",
67
+ "require": "./dist/infra/logger/index.js"
68
+ },
69
+ "./infra/notification": {
70
+ "types": "./dist/infra/notification/index.d.ts",
71
+ "import": "./dist/infra/notification/index.js",
72
+ "require": "./dist/infra/notification/index.js"
73
+ },
74
+ "./infra/storage": {
75
+ "types": "./dist/infra/storage/index.d.ts",
76
+ "import": "./dist/infra/storage/index.js",
77
+ "require": "./dist/infra/storage/index.js"
78
+ },
79
+ "./infra/stripe": {
80
+ "types": "./dist/infra/stripe/index.d.ts",
81
+ "import": "./dist/infra/stripe/index.js",
82
+ "require": "./dist/infra/stripe/index.js"
83
+ },
84
+ "./infra/audit-log": {
85
+ "types": "./dist/infra/audit-log/index.d.ts",
86
+ "import": "./dist/infra/audit-log/index.js",
87
+ "require": "./dist/infra/audit-log/index.js"
88
+ },
89
+ "./infra/metrics": {
90
+ "types": "./dist/infra/metrics/index.d.ts",
91
+ "import": "./dist/infra/metrics/index.js",
92
+ "require": "./dist/infra/metrics/index.js"
93
+ }
94
+ },
95
+ "files": [
96
+ "dist",
97
+ "README.md",
98
+ "LICENSE"
99
+ ],
100
+ "scripts": {
101
+ "build": "tsc -p tsconfig.build.json",
102
+ "clean": "rm -rf dist",
103
+ "format": "prettier --write \"packages/**/*.ts\" \"*.{md,json}\"",
104
+ "format:check": "prettier --check \"packages/**/*.ts\" \"*.{md,json}\"",
105
+ "lint": "eslint \"packages/**/*.ts\" --fix",
106
+ "lint:check": "eslint \"packages/**/*.ts\"",
107
+ "test": "jest --passWithNoTests",
108
+ "test:watch": "jest --watch",
109
+ "test:cov": "jest --coverage",
110
+ "prepare": "husky",
111
+ "docs:dev": "vitepress dev docs",
112
+ "docs:build": "vitepress build docs",
113
+ "docs:preview": "vitepress preview docs"
114
+ },
115
+ "publishConfig": {
116
+ "access": "public",
117
+ "registry": "https://registry.npmjs.org"
118
+ },
119
+ "engines": {
120
+ "node": ">=18.0.0"
121
+ },
122
+ "jest": {
123
+ "moduleFileExtensions": [
124
+ "js",
125
+ "json",
126
+ "ts"
127
+ ],
128
+ "rootDir": ".",
129
+ "testMatch": [
130
+ "<rootDir>/packages/**/*.spec.ts"
131
+ ],
132
+ "transform": {
133
+ "^.+\\.(t|j)s$": "ts-jest"
134
+ },
135
+ "collectCoverageFrom": [
136
+ "packages/**/*.(t|j)s"
137
+ ],
138
+ "coverageDirectory": "./coverage",
139
+ "testEnvironment": "node"
140
+ },
141
+ "devDependencies": {
142
+ "@commitlint/cli": "^19.6.0",
143
+ "@commitlint/config-conventional": "^19.6.0",
144
+ "@eslint/eslintrc": "^3.2.0",
145
+ "@eslint/js": "^9.18.0",
146
+ "@nestjs/common": "^11.0.1",
147
+ "@nestjs/core": "^11.0.1",
148
+ "@nestjs/testing": "^11.0.1",
149
+ "@types/jest": "^30.0.0",
150
+ "@types/node": "^22.10.7",
151
+ "eslint": "^9.18.0",
152
+ "eslint-config-prettier": "^10.0.1",
153
+ "eslint-plugin-prettier": "^5.2.2",
154
+ "globals": "^16.0.0",
155
+ "husky": "^9.1.0",
156
+ "jest": "^30.0.0",
157
+ "prettier": "^3.4.2",
158
+ "reflect-metadata": "^0.2.2",
159
+ "rxjs": "^7.8.1",
160
+ "ts-jest": "^29.2.5",
161
+ "typescript": "^5.7.3",
162
+ "typescript-eslint": "^8.20.0",
163
+ "vitepress": "^1.5.0"
164
+ }
165
+ }