@udhuong/admin-core 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (929) hide show
  1. package/dist/server/admin-core-options.interface.d.ts +53 -0
  2. package/dist/server/admin-core-options.interface.d.ts.map +1 -0
  3. package/dist/server/admin-core-options.interface.js +5 -0
  4. package/dist/server/admin-core-options.interface.js.map +1 -0
  5. package/dist/server/admin-core.module.d.ts +8 -0
  6. package/dist/server/admin-core.module.d.ts.map +1 -0
  7. package/dist/server/admin-core.module.js +292 -0
  8. package/dist/server/admin-core.module.js.map +1 -0
  9. package/dist/server/auth/application/actions/auth/change-password.action.d.ts +12 -0
  10. package/dist/server/auth/application/actions/auth/change-password.action.d.ts.map +1 -0
  11. package/dist/server/auth/application/actions/auth/change-password.action.js +56 -0
  12. package/dist/server/auth/application/actions/auth/change-password.action.js.map +1 -0
  13. package/dist/server/auth/application/actions/auth/client-credentials.action.d.ts +16 -0
  14. package/dist/server/auth/application/actions/auth/client-credentials.action.d.ts.map +1 -0
  15. package/dist/server/auth/application/actions/auth/client-credentials.action.js +101 -0
  16. package/dist/server/auth/application/actions/auth/client-credentials.action.js.map +1 -0
  17. package/dist/server/auth/application/actions/auth/forgot-password.action.d.ts +12 -0
  18. package/dist/server/auth/application/actions/auth/forgot-password.action.d.ts.map +1 -0
  19. package/dist/server/auth/application/actions/auth/forgot-password.action.js +50 -0
  20. package/dist/server/auth/application/actions/auth/forgot-password.action.js.map +1 -0
  21. package/dist/server/auth/application/actions/auth/get-roles-permissions.action.d.ts +13 -0
  22. package/dist/server/auth/application/actions/auth/get-roles-permissions.action.d.ts.map +1 -0
  23. package/dist/server/auth/application/actions/auth/get-roles-permissions.action.js +53 -0
  24. package/dist/server/auth/application/actions/auth/get-roles-permissions.action.js.map +1 -0
  25. package/dist/server/auth/application/actions/auth/get-user-profile.action.d.ts +10 -0
  26. package/dist/server/auth/application/actions/auth/get-user-profile.action.d.ts.map +1 -0
  27. package/dist/server/auth/application/actions/auth/get-user-profile.action.js +43 -0
  28. package/dist/server/auth/application/actions/auth/get-user-profile.action.js.map +1 -0
  29. package/dist/server/auth/application/actions/auth/index.d.ts +14 -0
  30. package/dist/server/auth/application/actions/auth/index.d.ts.map +1 -0
  31. package/dist/server/auth/application/actions/auth/index.js +30 -0
  32. package/dist/server/auth/application/actions/auth/index.js.map +1 -0
  33. package/dist/server/auth/application/actions/auth/login.action.d.ts +23 -0
  34. package/dist/server/auth/application/actions/auth/login.action.d.ts.map +1 -0
  35. package/dist/server/auth/application/actions/auth/login.action.js +175 -0
  36. package/dist/server/auth/application/actions/auth/login.action.js.map +1 -0
  37. package/dist/server/auth/application/actions/auth/logout.action.d.ts +8 -0
  38. package/dist/server/auth/application/actions/auth/logout.action.d.ts.map +1 -0
  39. package/dist/server/auth/application/actions/auth/logout.action.js +48 -0
  40. package/dist/server/auth/application/actions/auth/logout.action.js.map +1 -0
  41. package/dist/server/auth/application/actions/auth/refresh-token.action.d.ts +24 -0
  42. package/dist/server/auth/application/actions/auth/refresh-token.action.d.ts.map +1 -0
  43. package/dist/server/auth/application/actions/auth/refresh-token.action.js +165 -0
  44. package/dist/server/auth/application/actions/auth/refresh-token.action.js.map +1 -0
  45. package/dist/server/auth/application/actions/auth/register.action.d.ts +16 -0
  46. package/dist/server/auth/application/actions/auth/register.action.d.ts.map +1 -0
  47. package/dist/server/auth/application/actions/auth/register.action.js +83 -0
  48. package/dist/server/auth/application/actions/auth/register.action.js.map +1 -0
  49. package/dist/server/auth/application/actions/auth/resend-verification-email.action.d.ts +12 -0
  50. package/dist/server/auth/application/actions/auth/resend-verification-email.action.d.ts.map +1 -0
  51. package/dist/server/auth/application/actions/auth/resend-verification-email.action.js +61 -0
  52. package/dist/server/auth/application/actions/auth/resend-verification-email.action.js.map +1 -0
  53. package/dist/server/auth/application/actions/auth/reset-password.action.d.ts +10 -0
  54. package/dist/server/auth/application/actions/auth/reset-password.action.d.ts.map +1 -0
  55. package/dist/server/auth/application/actions/auth/reset-password.action.js +52 -0
  56. package/dist/server/auth/application/actions/auth/reset-password.action.js.map +1 -0
  57. package/dist/server/auth/application/actions/auth/update-profile.action.d.ts +8 -0
  58. package/dist/server/auth/application/actions/auth/update-profile.action.d.ts.map +1 -0
  59. package/dist/server/auth/application/actions/auth/update-profile.action.js +63 -0
  60. package/dist/server/auth/application/actions/auth/update-profile.action.js.map +1 -0
  61. package/dist/server/auth/application/actions/auth/verify-email.action.d.ts +9 -0
  62. package/dist/server/auth/application/actions/auth/verify-email.action.d.ts.map +1 -0
  63. package/dist/server/auth/application/actions/auth/verify-email.action.js +54 -0
  64. package/dist/server/auth/application/actions/auth/verify-email.action.js.map +1 -0
  65. package/dist/server/auth/application/actions/index.d.ts +5 -0
  66. package/dist/server/auth/application/actions/index.d.ts.map +1 -0
  67. package/dist/server/auth/application/actions/index.js +21 -0
  68. package/dist/server/auth/application/actions/index.js.map +1 -0
  69. package/dist/server/auth/application/actions/session/get-active-sessions.action.d.ts +8 -0
  70. package/dist/server/auth/application/actions/session/get-active-sessions.action.d.ts.map +1 -0
  71. package/dist/server/auth/application/actions/session/get-active-sessions.action.js +40 -0
  72. package/dist/server/auth/application/actions/session/get-active-sessions.action.js.map +1 -0
  73. package/dist/server/auth/application/actions/session/index.d.ts +4 -0
  74. package/dist/server/auth/application/actions/session/index.d.ts.map +1 -0
  75. package/dist/server/auth/application/actions/session/index.js +20 -0
  76. package/dist/server/auth/application/actions/session/index.js.map +1 -0
  77. package/dist/server/auth/application/actions/session/revoke-all-sessions.action.d.ts +9 -0
  78. package/dist/server/auth/application/actions/session/revoke-all-sessions.action.d.ts.map +1 -0
  79. package/dist/server/auth/application/actions/session/revoke-all-sessions.action.js +54 -0
  80. package/dist/server/auth/application/actions/session/revoke-all-sessions.action.js.map +1 -0
  81. package/dist/server/auth/application/actions/session/revoke-session.action.d.ts +9 -0
  82. package/dist/server/auth/application/actions/session/revoke-session.action.d.ts.map +1 -0
  83. package/dist/server/auth/application/actions/session/revoke-session.action.js +52 -0
  84. package/dist/server/auth/application/actions/session/revoke-session.action.js.map +1 -0
  85. package/dist/server/auth/application/actions/social/index.d.ts +2 -0
  86. package/dist/server/auth/application/actions/social/index.d.ts.map +1 -0
  87. package/dist/server/auth/application/actions/social/index.js +18 -0
  88. package/dist/server/auth/application/actions/social/index.js.map +1 -0
  89. package/dist/server/auth/application/actions/social/social-login.action.d.ts +22 -0
  90. package/dist/server/auth/application/actions/social/social-login.action.d.ts.map +1 -0
  91. package/dist/server/auth/application/actions/social/social-login.action.js +159 -0
  92. package/dist/server/auth/application/actions/social/social-login.action.js.map +1 -0
  93. package/dist/server/auth/application/actions/two-factor/disable-2fa.action.d.ts +9 -0
  94. package/dist/server/auth/application/actions/two-factor/disable-2fa.action.d.ts.map +1 -0
  95. package/dist/server/auth/application/actions/two-factor/disable-2fa.action.js +49 -0
  96. package/dist/server/auth/application/actions/two-factor/disable-2fa.action.js.map +1 -0
  97. package/dist/server/auth/application/actions/two-factor/enable-2fa.action.d.ts +13 -0
  98. package/dist/server/auth/application/actions/two-factor/enable-2fa.action.d.ts.map +1 -0
  99. package/dist/server/auth/application/actions/two-factor/enable-2fa.action.js +135 -0
  100. package/dist/server/auth/application/actions/two-factor/enable-2fa.action.js.map +1 -0
  101. package/dist/server/auth/application/actions/two-factor/index.d.ts +4 -0
  102. package/dist/server/auth/application/actions/two-factor/index.d.ts.map +1 -0
  103. package/dist/server/auth/application/actions/two-factor/index.js +20 -0
  104. package/dist/server/auth/application/actions/two-factor/index.js.map +1 -0
  105. package/dist/server/auth/application/actions/two-factor/verify-2fa-setup.action.d.ts +10 -0
  106. package/dist/server/auth/application/actions/two-factor/verify-2fa-setup.action.d.ts.map +1 -0
  107. package/dist/server/auth/application/actions/two-factor/verify-2fa-setup.action.js +97 -0
  108. package/dist/server/auth/application/actions/two-factor/verify-2fa-setup.action.js.map +1 -0
  109. package/dist/server/auth/application/dto/change-password.dto.d.ts +5 -0
  110. package/dist/server/auth/application/dto/change-password.dto.d.ts.map +1 -0
  111. package/dist/server/auth/application/dto/change-password.dto.js +33 -0
  112. package/dist/server/auth/application/dto/change-password.dto.js.map +1 -0
  113. package/dist/server/auth/application/dto/client-credentials.dto.d.ts +7 -0
  114. package/dist/server/auth/application/dto/client-credentials.dto.d.ts.map +1 -0
  115. package/dist/server/auth/application/dto/client-credentials.dto.js +42 -0
  116. package/dist/server/auth/application/dto/client-credentials.dto.js.map +1 -0
  117. package/dist/server/auth/application/dto/enable-2fa-response.d.ts +7 -0
  118. package/dist/server/auth/application/dto/enable-2fa-response.d.ts.map +1 -0
  119. package/dist/server/auth/application/dto/enable-2fa-response.js +13 -0
  120. package/dist/server/auth/application/dto/enable-2fa-response.js.map +1 -0
  121. package/dist/server/auth/application/dto/enable-2fa.dto.d.ts +4 -0
  122. package/dist/server/auth/application/dto/enable-2fa.dto.d.ts.map +1 -0
  123. package/dist/server/auth/application/dto/enable-2fa.dto.js +23 -0
  124. package/dist/server/auth/application/dto/enable-2fa.dto.js.map +1 -0
  125. package/dist/server/auth/application/dto/forgot-password.dto.d.ts +4 -0
  126. package/dist/server/auth/application/dto/forgot-password.dto.d.ts.map +1 -0
  127. package/dist/server/auth/application/dto/forgot-password.dto.js +23 -0
  128. package/dist/server/auth/application/dto/forgot-password.dto.js.map +1 -0
  129. package/dist/server/auth/application/dto/index.d.ts +17 -0
  130. package/dist/server/auth/application/dto/index.d.ts.map +1 -0
  131. package/dist/server/auth/application/dto/index.js +33 -0
  132. package/dist/server/auth/application/dto/index.js.map +1 -0
  133. package/dist/server/auth/application/dto/login-response.d.ts +25 -0
  134. package/dist/server/auth/application/dto/login-response.d.ts.map +1 -0
  135. package/dist/server/auth/application/dto/login-response.js +15 -0
  136. package/dist/server/auth/application/dto/login-response.js.map +1 -0
  137. package/dist/server/auth/application/dto/login.dto.d.ts +10 -0
  138. package/dist/server/auth/application/dto/login.dto.d.ts.map +1 -0
  139. package/dist/server/auth/application/dto/login.dto.js +59 -0
  140. package/dist/server/auth/application/dto/login.dto.js.map +1 -0
  141. package/dist/server/auth/application/dto/refresh-token.dto.d.ts +5 -0
  142. package/dist/server/auth/application/dto/refresh-token.dto.d.ts.map +1 -0
  143. package/dist/server/auth/application/dto/refresh-token.dto.js +30 -0
  144. package/dist/server/auth/application/dto/refresh-token.dto.js.map +1 -0
  145. package/dist/server/auth/application/dto/register.dto.d.ts +7 -0
  146. package/dist/server/auth/application/dto/register.dto.d.ts.map +1 -0
  147. package/dist/server/auth/application/dto/register.dto.js +47 -0
  148. package/dist/server/auth/application/dto/register.dto.js.map +1 -0
  149. package/dist/server/auth/application/dto/reset-password.dto.d.ts +5 -0
  150. package/dist/server/auth/application/dto/reset-password.dto.d.ts.map +1 -0
  151. package/dist/server/auth/application/dto/reset-password.dto.js +33 -0
  152. package/dist/server/auth/application/dto/reset-password.dto.js.map +1 -0
  153. package/dist/server/auth/application/dto/social-login.dto.d.ts +10 -0
  154. package/dist/server/auth/application/dto/social-login.dto.d.ts.map +1 -0
  155. package/dist/server/auth/application/dto/social-login.dto.js +54 -0
  156. package/dist/server/auth/application/dto/social-login.dto.js.map +1 -0
  157. package/dist/server/auth/application/dto/token-response.d.ts +9 -0
  158. package/dist/server/auth/application/dto/token-response.d.ts.map +1 -0
  159. package/dist/server/auth/application/dto/token-response.js +15 -0
  160. package/dist/server/auth/application/dto/token-response.js.map +1 -0
  161. package/dist/server/auth/application/dto/update-profile.dto.d.ts +7 -0
  162. package/dist/server/auth/application/dto/update-profile.dto.d.ts.map +1 -0
  163. package/dist/server/auth/application/dto/update-profile.dto.js +41 -0
  164. package/dist/server/auth/application/dto/update-profile.dto.js.map +1 -0
  165. package/dist/server/auth/application/dto/user-response.d.ts +14 -0
  166. package/dist/server/auth/application/dto/user-response.d.ts.map +1 -0
  167. package/dist/server/auth/application/dto/user-response.js +20 -0
  168. package/dist/server/auth/application/dto/user-response.js.map +1 -0
  169. package/dist/server/auth/application/dto/verify-2fa.dto.d.ts +4 -0
  170. package/dist/server/auth/application/dto/verify-2fa.dto.d.ts.map +1 -0
  171. package/dist/server/auth/application/dto/verify-2fa.dto.js +24 -0
  172. package/dist/server/auth/application/dto/verify-2fa.dto.js.map +1 -0
  173. package/dist/server/auth/application/dto/verify-email.dto.d.ts +4 -0
  174. package/dist/server/auth/application/dto/verify-email.dto.d.ts.map +1 -0
  175. package/dist/server/auth/application/dto/verify-email.dto.js +23 -0
  176. package/dist/server/auth/application/dto/verify-email.dto.js.map +1 -0
  177. package/dist/server/auth/application/dtos/create-role.dto.d.ts +6 -0
  178. package/dist/server/auth/application/dtos/create-role.dto.d.ts.map +1 -0
  179. package/dist/server/auth/application/dtos/create-role.dto.js +35 -0
  180. package/dist/server/auth/application/dtos/create-role.dto.js.map +1 -0
  181. package/dist/server/auth/application/dtos/index.d.ts +4 -0
  182. package/dist/server/auth/application/dtos/index.d.ts.map +1 -0
  183. package/dist/server/auth/application/dtos/index.js +20 -0
  184. package/dist/server/auth/application/dtos/index.js.map +1 -0
  185. package/dist/server/auth/application/dtos/query-role.dto.d.ts +6 -0
  186. package/dist/server/auth/application/dtos/query-role.dto.d.ts.map +1 -0
  187. package/dist/server/auth/application/dtos/query-role.dto.js +35 -0
  188. package/dist/server/auth/application/dtos/query-role.dto.js.map +1 -0
  189. package/dist/server/auth/application/dtos/update-role.dto.d.ts +6 -0
  190. package/dist/server/auth/application/dtos/update-role.dto.d.ts.map +1 -0
  191. package/dist/server/auth/application/dtos/update-role.dto.js +36 -0
  192. package/dist/server/auth/application/dtos/update-role.dto.js.map +1 -0
  193. package/dist/server/auth/application/index.d.ts +4 -0
  194. package/dist/server/auth/application/index.d.ts.map +1 -0
  195. package/dist/server/auth/application/index.js +20 -0
  196. package/dist/server/auth/application/index.js.map +1 -0
  197. package/dist/server/auth/application/ports/email.service.d.ts +12 -0
  198. package/dist/server/auth/application/ports/email.service.d.ts.map +1 -0
  199. package/dist/server/auth/application/ports/email.service.js +5 -0
  200. package/dist/server/auth/application/ports/email.service.js.map +1 -0
  201. package/dist/server/auth/application/ports/hash.service.d.ts +7 -0
  202. package/dist/server/auth/application/ports/hash.service.d.ts.map +1 -0
  203. package/dist/server/auth/application/ports/hash.service.js +5 -0
  204. package/dist/server/auth/application/ports/hash.service.js.map +1 -0
  205. package/dist/server/auth/application/ports/index.d.ts +5 -0
  206. package/dist/server/auth/application/ports/index.d.ts.map +1 -0
  207. package/dist/server/auth/application/ports/index.js +21 -0
  208. package/dist/server/auth/application/ports/index.js.map +1 -0
  209. package/dist/server/auth/application/ports/social-auth.service.d.ts +13 -0
  210. package/dist/server/auth/application/ports/social-auth.service.d.ts.map +1 -0
  211. package/dist/server/auth/application/ports/social-auth.service.js +7 -0
  212. package/dist/server/auth/application/ports/social-auth.service.js.map +1 -0
  213. package/dist/server/auth/application/ports/token.service.d.ts +36 -0
  214. package/dist/server/auth/application/ports/token.service.d.ts.map +1 -0
  215. package/dist/server/auth/application/ports/token.service.js +5 -0
  216. package/dist/server/auth/application/ports/token.service.js.map +1 -0
  217. package/dist/server/auth/application/services/auth-user.service.d.ts +29 -0
  218. package/dist/server/auth/application/services/auth-user.service.d.ts.map +1 -0
  219. package/dist/server/auth/application/services/auth-user.service.js +165 -0
  220. package/dist/server/auth/application/services/auth-user.service.js.map +1 -0
  221. package/dist/server/auth/application/services/permission.service.d.ts +13 -0
  222. package/dist/server/auth/application/services/permission.service.d.ts.map +1 -0
  223. package/dist/server/auth/application/services/permission.service.js +56 -0
  224. package/dist/server/auth/application/services/permission.service.js.map +1 -0
  225. package/dist/server/auth/application/services/role.service.d.ts +61 -0
  226. package/dist/server/auth/application/services/role.service.d.ts.map +1 -0
  227. package/dist/server/auth/application/services/role.service.js +178 -0
  228. package/dist/server/auth/application/services/role.service.js.map +1 -0
  229. package/dist/server/auth/domain/constants/auth-events.const.d.ts +17 -0
  230. package/dist/server/auth/domain/constants/auth-events.const.d.ts.map +1 -0
  231. package/dist/server/auth/domain/constants/auth-events.const.js +19 -0
  232. package/dist/server/auth/domain/constants/auth-events.const.js.map +1 -0
  233. package/dist/server/auth/domain/constants/index.d.ts +3 -0
  234. package/dist/server/auth/domain/constants/index.d.ts.map +1 -0
  235. package/dist/server/auth/domain/constants/index.js +19 -0
  236. package/dist/server/auth/domain/constants/index.js.map +1 -0
  237. package/dist/server/auth/domain/constants/oauth.config.d.ts +50 -0
  238. package/dist/server/auth/domain/constants/oauth.config.d.ts.map +1 -0
  239. package/dist/server/auth/domain/constants/oauth.config.js +53 -0
  240. package/dist/server/auth/domain/constants/oauth.config.js.map +1 -0
  241. package/dist/server/auth/domain/constants/scopes.d.ts +26 -0
  242. package/dist/server/auth/domain/constants/scopes.d.ts.map +1 -0
  243. package/dist/server/auth/domain/constants/scopes.js +52 -0
  244. package/dist/server/auth/domain/constants/scopes.js.map +1 -0
  245. package/dist/server/auth/domain/entities/auth-user.d.ts +52 -0
  246. package/dist/server/auth/domain/entities/auth-user.d.ts.map +1 -0
  247. package/dist/server/auth/domain/entities/auth-user.js +134 -0
  248. package/dist/server/auth/domain/entities/auth-user.js.map +1 -0
  249. package/dist/server/auth/domain/entities/email-verification-token.d.ts +13 -0
  250. package/dist/server/auth/domain/entities/email-verification-token.d.ts.map +1 -0
  251. package/dist/server/auth/domain/entities/email-verification-token.js +27 -0
  252. package/dist/server/auth/domain/entities/email-verification-token.js.map +1 -0
  253. package/dist/server/auth/domain/entities/index.d.ts +17 -0
  254. package/dist/server/auth/domain/entities/index.d.ts.map +1 -0
  255. package/dist/server/auth/domain/entities/index.js +33 -0
  256. package/dist/server/auth/domain/entities/index.js.map +1 -0
  257. package/dist/server/auth/domain/entities/login-history.d.ts +18 -0
  258. package/dist/server/auth/domain/entities/login-history.d.ts.map +1 -0
  259. package/dist/server/auth/domain/entities/login-history.js +30 -0
  260. package/dist/server/auth/domain/entities/login-history.js.map +1 -0
  261. package/dist/server/auth/domain/entities/oauth-audit-log.d.ts +15 -0
  262. package/dist/server/auth/domain/entities/oauth-audit-log.d.ts.map +1 -0
  263. package/dist/server/auth/domain/entities/oauth-audit-log.js +34 -0
  264. package/dist/server/auth/domain/entities/oauth-audit-log.js.map +1 -0
  265. package/dist/server/auth/domain/entities/oauth-authorization-code.d.ts +19 -0
  266. package/dist/server/auth/domain/entities/oauth-authorization-code.d.ts.map +1 -0
  267. package/dist/server/auth/domain/entities/oauth-authorization-code.js +37 -0
  268. package/dist/server/auth/domain/entities/oauth-authorization-code.js.map +1 -0
  269. package/dist/server/auth/domain/entities/oauth-client-consent.d.ts +14 -0
  270. package/dist/server/auth/domain/entities/oauth-client-consent.d.ts.map +1 -0
  271. package/dist/server/auth/domain/entities/oauth-client-consent.js +30 -0
  272. package/dist/server/auth/domain/entities/oauth-client-consent.js.map +1 -0
  273. package/dist/server/auth/domain/entities/oauth-client.d.ts +31 -0
  274. package/dist/server/auth/domain/entities/oauth-client.d.ts.map +1 -0
  275. package/dist/server/auth/domain/entities/oauth-client.js +51 -0
  276. package/dist/server/auth/domain/entities/oauth-client.js.map +1 -0
  277. package/dist/server/auth/domain/entities/oauth-scope.d.ts +10 -0
  278. package/dist/server/auth/domain/entities/oauth-scope.d.ts.map +1 -0
  279. package/dist/server/auth/domain/entities/oauth-scope.js +18 -0
  280. package/dist/server/auth/domain/entities/oauth-scope.js.map +1 -0
  281. package/dist/server/auth/domain/entities/oauth-token.d.ts +20 -0
  282. package/dist/server/auth/domain/entities/oauth-token.d.ts.map +1 -0
  283. package/dist/server/auth/domain/entities/oauth-token.js +38 -0
  284. package/dist/server/auth/domain/entities/oauth-token.js.map +1 -0
  285. package/dist/server/auth/domain/entities/permission.d.ts +14 -0
  286. package/dist/server/auth/domain/entities/permission.d.ts.map +1 -0
  287. package/dist/server/auth/domain/entities/permission.js +26 -0
  288. package/dist/server/auth/domain/entities/permission.js.map +1 -0
  289. package/dist/server/auth/domain/entities/role-permission.d.ts +8 -0
  290. package/dist/server/auth/domain/entities/role-permission.d.ts.map +1 -0
  291. package/dist/server/auth/domain/entities/role-permission.js +14 -0
  292. package/dist/server/auth/domain/entities/role-permission.js.map +1 -0
  293. package/dist/server/auth/domain/entities/role.d.ts +13 -0
  294. package/dist/server/auth/domain/entities/role.d.ts.map +1 -0
  295. package/dist/server/auth/domain/entities/role.js +26 -0
  296. package/dist/server/auth/domain/entities/role.js.map +1 -0
  297. package/dist/server/auth/domain/entities/social-account.d.ts +20 -0
  298. package/dist/server/auth/domain/entities/social-account.d.ts.map +1 -0
  299. package/dist/server/auth/domain/entities/social-account.js +37 -0
  300. package/dist/server/auth/domain/entities/social-account.js.map +1 -0
  301. package/dist/server/auth/domain/entities/user-role.d.ts +8 -0
  302. package/dist/server/auth/domain/entities/user-role.d.ts.map +1 -0
  303. package/dist/server/auth/domain/entities/user-role.js +14 -0
  304. package/dist/server/auth/domain/entities/user-role.js.map +1 -0
  305. package/dist/server/auth/domain/entities/user-session.d.ts +25 -0
  306. package/dist/server/auth/domain/entities/user-session.d.ts.map +1 -0
  307. package/dist/server/auth/domain/entities/user-session.js +50 -0
  308. package/dist/server/auth/domain/entities/user-session.js.map +1 -0
  309. package/dist/server/auth/domain/entities/user-two-factor.d.ts +25 -0
  310. package/dist/server/auth/domain/entities/user-two-factor.d.ts.map +1 -0
  311. package/dist/server/auth/domain/entities/user-two-factor.js +66 -0
  312. package/dist/server/auth/domain/entities/user-two-factor.js.map +1 -0
  313. package/dist/server/auth/domain/enums/index.d.ts +2 -0
  314. package/dist/server/auth/domain/enums/index.d.ts.map +1 -0
  315. package/dist/server/auth/domain/enums/index.js +18 -0
  316. package/dist/server/auth/domain/enums/index.js.map +1 -0
  317. package/dist/server/auth/domain/enums/oauth.enums.d.ts +69 -0
  318. package/dist/server/auth/domain/enums/oauth.enums.d.ts.map +1 -0
  319. package/dist/server/auth/domain/enums/oauth.enums.js +130 -0
  320. package/dist/server/auth/domain/enums/oauth.enums.js.map +1 -0
  321. package/dist/server/auth/domain/events/auth-user.events.d.ts +37 -0
  322. package/dist/server/auth/domain/events/auth-user.events.d.ts.map +1 -0
  323. package/dist/server/auth/domain/events/auth-user.events.js +70 -0
  324. package/dist/server/auth/domain/events/auth-user.events.js.map +1 -0
  325. package/dist/server/auth/domain/index.d.ts +3 -0
  326. package/dist/server/auth/domain/index.d.ts.map +1 -0
  327. package/dist/server/auth/domain/index.js +19 -0
  328. package/dist/server/auth/domain/index.js.map +1 -0
  329. package/dist/server/auth/domain/interfaces/auth.interface.d.ts +41 -0
  330. package/dist/server/auth/domain/interfaces/auth.interface.d.ts.map +1 -0
  331. package/dist/server/auth/domain/interfaces/auth.interface.js +3 -0
  332. package/dist/server/auth/domain/interfaces/auth.interface.js.map +1 -0
  333. package/dist/server/auth/domain/interfaces/index.d.ts +2 -0
  334. package/dist/server/auth/domain/interfaces/index.d.ts.map +1 -0
  335. package/dist/server/auth/domain/interfaces/index.js +18 -0
  336. package/dist/server/auth/domain/interfaces/index.js.map +1 -0
  337. package/dist/server/auth/domain/repositories/auth-user.repository.d.ts +14 -0
  338. package/dist/server/auth/domain/repositories/auth-user.repository.d.ts.map +1 -0
  339. package/dist/server/auth/domain/repositories/auth-user.repository.js +5 -0
  340. package/dist/server/auth/domain/repositories/auth-user.repository.js.map +1 -0
  341. package/dist/server/auth/domain/repositories/email-verification-token.repository.d.ts +13 -0
  342. package/dist/server/auth/domain/repositories/email-verification-token.repository.d.ts.map +1 -0
  343. package/dist/server/auth/domain/repositories/email-verification-token.repository.js +5 -0
  344. package/dist/server/auth/domain/repositories/email-verification-token.repository.js.map +1 -0
  345. package/dist/server/auth/domain/repositories/index.d.ts +17 -0
  346. package/dist/server/auth/domain/repositories/index.d.ts.map +1 -0
  347. package/dist/server/auth/domain/repositories/index.js +33 -0
  348. package/dist/server/auth/domain/repositories/index.js.map +1 -0
  349. package/dist/server/auth/domain/repositories/login-history.repository.d.ts +11 -0
  350. package/dist/server/auth/domain/repositories/login-history.repository.d.ts.map +1 -0
  351. package/dist/server/auth/domain/repositories/login-history.repository.js +5 -0
  352. package/dist/server/auth/domain/repositories/login-history.repository.js.map +1 -0
  353. package/dist/server/auth/domain/repositories/oauth-audit-log.repository.d.ts +12 -0
  354. package/dist/server/auth/domain/repositories/oauth-audit-log.repository.d.ts.map +1 -0
  355. package/dist/server/auth/domain/repositories/oauth-audit-log.repository.js +5 -0
  356. package/dist/server/auth/domain/repositories/oauth-audit-log.repository.js.map +1 -0
  357. package/dist/server/auth/domain/repositories/oauth-authorization-code.repository.d.ts +12 -0
  358. package/dist/server/auth/domain/repositories/oauth-authorization-code.repository.d.ts.map +1 -0
  359. package/dist/server/auth/domain/repositories/oauth-authorization-code.repository.js +5 -0
  360. package/dist/server/auth/domain/repositories/oauth-authorization-code.repository.js.map +1 -0
  361. package/dist/server/auth/domain/repositories/oauth-client-consent.repository.d.ts +12 -0
  362. package/dist/server/auth/domain/repositories/oauth-client-consent.repository.d.ts.map +1 -0
  363. package/dist/server/auth/domain/repositories/oauth-client-consent.repository.js +5 -0
  364. package/dist/server/auth/domain/repositories/oauth-client-consent.repository.js.map +1 -0
  365. package/dist/server/auth/domain/repositories/oauth-client.repository.d.ts +12 -0
  366. package/dist/server/auth/domain/repositories/oauth-client.repository.d.ts.map +1 -0
  367. package/dist/server/auth/domain/repositories/oauth-client.repository.js +5 -0
  368. package/dist/server/auth/domain/repositories/oauth-client.repository.js.map +1 -0
  369. package/dist/server/auth/domain/repositories/oauth-scope.repository.d.ts +13 -0
  370. package/dist/server/auth/domain/repositories/oauth-scope.repository.d.ts.map +1 -0
  371. package/dist/server/auth/domain/repositories/oauth-scope.repository.js +5 -0
  372. package/dist/server/auth/domain/repositories/oauth-scope.repository.js.map +1 -0
  373. package/dist/server/auth/domain/repositories/oauth-token.repository.d.ts +15 -0
  374. package/dist/server/auth/domain/repositories/oauth-token.repository.d.ts.map +1 -0
  375. package/dist/server/auth/domain/repositories/oauth-token.repository.js +5 -0
  376. package/dist/server/auth/domain/repositories/oauth-token.repository.js.map +1 -0
  377. package/dist/server/auth/domain/repositories/permission.repository.d.ts +14 -0
  378. package/dist/server/auth/domain/repositories/permission.repository.d.ts.map +1 -0
  379. package/dist/server/auth/domain/repositories/permission.repository.js +5 -0
  380. package/dist/server/auth/domain/repositories/permission.repository.js.map +1 -0
  381. package/dist/server/auth/domain/repositories/role-permission.repository.d.ts +14 -0
  382. package/dist/server/auth/domain/repositories/role-permission.repository.d.ts.map +1 -0
  383. package/dist/server/auth/domain/repositories/role-permission.repository.js +5 -0
  384. package/dist/server/auth/domain/repositories/role-permission.repository.js.map +1 -0
  385. package/dist/server/auth/domain/repositories/role.repository.d.ts +13 -0
  386. package/dist/server/auth/domain/repositories/role.repository.d.ts.map +1 -0
  387. package/dist/server/auth/domain/repositories/role.repository.js +5 -0
  388. package/dist/server/auth/domain/repositories/role.repository.js.map +1 -0
  389. package/dist/server/auth/domain/repositories/social-account.repository.d.ts +14 -0
  390. package/dist/server/auth/domain/repositories/social-account.repository.d.ts.map +1 -0
  391. package/dist/server/auth/domain/repositories/social-account.repository.js +5 -0
  392. package/dist/server/auth/domain/repositories/social-account.repository.js.map +1 -0
  393. package/dist/server/auth/domain/repositories/user-role.repository.d.ts +13 -0
  394. package/dist/server/auth/domain/repositories/user-role.repository.d.ts.map +1 -0
  395. package/dist/server/auth/domain/repositories/user-role.repository.js +5 -0
  396. package/dist/server/auth/domain/repositories/user-role.repository.js.map +1 -0
  397. package/dist/server/auth/domain/repositories/user-session.repository.d.ts +14 -0
  398. package/dist/server/auth/domain/repositories/user-session.repository.d.ts.map +1 -0
  399. package/dist/server/auth/domain/repositories/user-session.repository.js +5 -0
  400. package/dist/server/auth/domain/repositories/user-session.repository.js.map +1 -0
  401. package/dist/server/auth/domain/repositories/user-two-factor.repository.d.ts +11 -0
  402. package/dist/server/auth/domain/repositories/user-two-factor.repository.d.ts.map +1 -0
  403. package/dist/server/auth/domain/repositories/user-two-factor.repository.js +5 -0
  404. package/dist/server/auth/domain/repositories/user-two-factor.repository.js.map +1 -0
  405. package/dist/server/auth/infrastructure/database/postgresql/migrations/1733400000000-CreateOAuthSystem.d.ts +6 -0
  406. package/dist/server/auth/infrastructure/database/postgresql/migrations/1733400000000-CreateOAuthSystem.d.ts.map +1 -0
  407. package/dist/server/auth/infrastructure/database/postgresql/migrations/1733400000000-CreateOAuthSystem.js +1386 -0
  408. package/dist/server/auth/infrastructure/database/postgresql/migrations/1733400000000-CreateOAuthSystem.js.map +1 -0
  409. package/dist/server/auth/infrastructure/database/postgresql/seeders/1-permission.seeder.d.ts +13 -0
  410. package/dist/server/auth/infrastructure/database/postgresql/seeders/1-permission.seeder.d.ts.map +1 -0
  411. package/dist/server/auth/infrastructure/database/postgresql/seeders/1-permission.seeder.js +75 -0
  412. package/dist/server/auth/infrastructure/database/postgresql/seeders/1-permission.seeder.js.map +1 -0
  413. package/dist/server/auth/infrastructure/database/postgresql/seeders/2-role.seeder.d.ts +15 -0
  414. package/dist/server/auth/infrastructure/database/postgresql/seeders/2-role.seeder.d.ts.map +1 -0
  415. package/dist/server/auth/infrastructure/database/postgresql/seeders/2-role.seeder.js +83 -0
  416. package/dist/server/auth/infrastructure/database/postgresql/seeders/2-role.seeder.js.map +1 -0
  417. package/dist/server/auth/infrastructure/database/postgresql/seeders/3-oauth-scope.seeder.d.ts +9 -0
  418. package/dist/server/auth/infrastructure/database/postgresql/seeders/3-oauth-scope.seeder.d.ts.map +1 -0
  419. package/dist/server/auth/infrastructure/database/postgresql/seeders/3-oauth-scope.seeder.js +137 -0
  420. package/dist/server/auth/infrastructure/database/postgresql/seeders/3-oauth-scope.seeder.js.map +1 -0
  421. package/dist/server/auth/infrastructure/database/postgresql/seeders/4-oauth-client.seeder.d.ts +13 -0
  422. package/dist/server/auth/infrastructure/database/postgresql/seeders/4-oauth-client.seeder.d.ts.map +1 -0
  423. package/dist/server/auth/infrastructure/database/postgresql/seeders/4-oauth-client.seeder.js +226 -0
  424. package/dist/server/auth/infrastructure/database/postgresql/seeders/4-oauth-client.seeder.js.map +1 -0
  425. package/dist/server/auth/infrastructure/database/postgresql/seeders/5-test-user.seeder.d.ts +13 -0
  426. package/dist/server/auth/infrastructure/database/postgresql/seeders/5-test-user.seeder.d.ts.map +1 -0
  427. package/dist/server/auth/infrastructure/database/postgresql/seeders/5-test-user.seeder.js +161 -0
  428. package/dist/server/auth/infrastructure/database/postgresql/seeders/5-test-user.seeder.js.map +1 -0
  429. package/dist/server/auth/infrastructure/database/postgresql/seeders/index.d.ts +17 -0
  430. package/dist/server/auth/infrastructure/database/postgresql/seeders/index.d.ts.map +1 -0
  431. package/dist/server/auth/infrastructure/database/postgresql/seeders/index.js +63 -0
  432. package/dist/server/auth/infrastructure/database/postgresql/seeders/index.js.map +1 -0
  433. package/dist/server/auth/infrastructure/database/postgresql/seeders/oauth-seeder.module.d.ts +3 -0
  434. package/dist/server/auth/infrastructure/database/postgresql/seeders/oauth-seeder.module.d.ts.map +1 -0
  435. package/dist/server/auth/infrastructure/database/postgresql/seeders/oauth-seeder.module.js +58 -0
  436. package/dist/server/auth/infrastructure/database/postgresql/seeders/oauth-seeder.module.js.map +1 -0
  437. package/dist/server/auth/infrastructure/index.d.ts +5 -0
  438. package/dist/server/auth/infrastructure/index.d.ts.map +1 -0
  439. package/dist/server/auth/infrastructure/index.js +21 -0
  440. package/dist/server/auth/infrastructure/index.js.map +1 -0
  441. package/dist/server/auth/infrastructure/persistence/entities/auth-user.entity.d.ts +23 -0
  442. package/dist/server/auth/infrastructure/persistence/entities/auth-user.entity.d.ts.map +1 -0
  443. package/dist/server/auth/infrastructure/persistence/entities/auth-user.entity.js +120 -0
  444. package/dist/server/auth/infrastructure/persistence/entities/auth-user.entity.js.map +1 -0
  445. package/dist/server/auth/infrastructure/persistence/entities/email-verification-token.entity.d.ts +9 -0
  446. package/dist/server/auth/infrastructure/persistence/entities/email-verification-token.entity.d.ts.map +1 -0
  447. package/dist/server/auth/infrastructure/persistence/entities/email-verification-token.entity.js +50 -0
  448. package/dist/server/auth/infrastructure/persistence/entities/email-verification-token.entity.js.map +1 -0
  449. package/dist/server/auth/infrastructure/persistence/entities/index.d.ts +17 -0
  450. package/dist/server/auth/infrastructure/persistence/entities/index.d.ts.map +1 -0
  451. package/dist/server/auth/infrastructure/persistence/entities/index.js +33 -0
  452. package/dist/server/auth/infrastructure/persistence/entities/index.js.map +1 -0
  453. package/dist/server/auth/infrastructure/persistence/entities/login-history.entity.d.ts +14 -0
  454. package/dist/server/auth/infrastructure/persistence/entities/login-history.entity.d.ts.map +1 -0
  455. package/dist/server/auth/infrastructure/persistence/entities/login-history.entity.js +71 -0
  456. package/dist/server/auth/infrastructure/persistence/entities/login-history.entity.js.map +1 -0
  457. package/dist/server/auth/infrastructure/persistence/entities/oauth-audit-log.entity.d.ts +12 -0
  458. package/dist/server/auth/infrastructure/persistence/entities/oauth-audit-log.entity.d.ts.map +1 -0
  459. package/dist/server/auth/infrastructure/persistence/entities/oauth-audit-log.entity.js +65 -0
  460. package/dist/server/auth/infrastructure/persistence/entities/oauth-audit-log.entity.js.map +1 -0
  461. package/dist/server/auth/infrastructure/persistence/entities/oauth-authorization-code.entity.d.ts +14 -0
  462. package/dist/server/auth/infrastructure/persistence/entities/oauth-authorization-code.entity.d.ts.map +1 -0
  463. package/dist/server/auth/infrastructure/persistence/entities/oauth-authorization-code.entity.js +75 -0
  464. package/dist/server/auth/infrastructure/persistence/entities/oauth-authorization-code.entity.js.map +1 -0
  465. package/dist/server/auth/infrastructure/persistence/entities/oauth-client-consent.entity.d.ts +11 -0
  466. package/dist/server/auth/infrastructure/persistence/entities/oauth-client-consent.entity.d.ts.map +1 -0
  467. package/dist/server/auth/infrastructure/persistence/entities/oauth-client-consent.entity.js +60 -0
  468. package/dist/server/auth/infrastructure/persistence/entities/oauth-client-consent.entity.js.map +1 -0
  469. package/dist/server/auth/infrastructure/persistence/entities/oauth-client.entity.d.ts +23 -0
  470. package/dist/server/auth/infrastructure/persistence/entities/oauth-client.entity.d.ts.map +1 -0
  471. package/dist/server/auth/infrastructure/persistence/entities/oauth-client.entity.js +120 -0
  472. package/dist/server/auth/infrastructure/persistence/entities/oauth-client.entity.js.map +1 -0
  473. package/dist/server/auth/infrastructure/persistence/entities/oauth-scope.entity.d.ts +8 -0
  474. package/dist/server/auth/infrastructure/persistence/entities/oauth-scope.entity.d.ts.map +1 -0
  475. package/dist/server/auth/infrastructure/persistence/entities/oauth-scope.entity.js +45 -0
  476. package/dist/server/auth/infrastructure/persistence/entities/oauth-scope.entity.js.map +1 -0
  477. package/dist/server/auth/infrastructure/persistence/entities/oauth-token.entity.d.ts +14 -0
  478. package/dist/server/auth/infrastructure/persistence/entities/oauth-token.entity.d.ts.map +1 -0
  479. package/dist/server/auth/infrastructure/persistence/entities/oauth-token.entity.js +75 -0
  480. package/dist/server/auth/infrastructure/persistence/entities/oauth-token.entity.js.map +1 -0
  481. package/dist/server/auth/infrastructure/persistence/entities/permission.entity.d.ts +9 -0
  482. package/dist/server/auth/infrastructure/persistence/entities/permission.entity.d.ts.map +1 -0
  483. package/dist/server/auth/infrastructure/persistence/entities/permission.entity.js +50 -0
  484. package/dist/server/auth/infrastructure/persistence/entities/permission.entity.js.map +1 -0
  485. package/dist/server/auth/infrastructure/persistence/entities/role-permission.entity.d.ts +7 -0
  486. package/dist/server/auth/infrastructure/persistence/entities/role-permission.entity.d.ts.map +1 -0
  487. package/dist/server/auth/infrastructure/persistence/entities/role-permission.entity.js +40 -0
  488. package/dist/server/auth/infrastructure/persistence/entities/role-permission.entity.js.map +1 -0
  489. package/dist/server/auth/infrastructure/persistence/entities/role.entity.d.ts +9 -0
  490. package/dist/server/auth/infrastructure/persistence/entities/role.entity.d.ts.map +1 -0
  491. package/dist/server/auth/infrastructure/persistence/entities/role.entity.js +50 -0
  492. package/dist/server/auth/infrastructure/persistence/entities/role.entity.js.map +1 -0
  493. package/dist/server/auth/infrastructure/persistence/entities/social-account.entity.d.ts +17 -0
  494. package/dist/server/auth/infrastructure/persistence/entities/social-account.entity.d.ts.map +1 -0
  495. package/dist/server/auth/infrastructure/persistence/entities/social-account.entity.js +86 -0
  496. package/dist/server/auth/infrastructure/persistence/entities/social-account.entity.js.map +1 -0
  497. package/dist/server/auth/infrastructure/persistence/entities/user-role.entity.d.ts +7 -0
  498. package/dist/server/auth/infrastructure/persistence/entities/user-role.entity.d.ts.map +1 -0
  499. package/dist/server/auth/infrastructure/persistence/entities/user-role.entity.js +40 -0
  500. package/dist/server/auth/infrastructure/persistence/entities/user-role.entity.js.map +1 -0
  501. package/dist/server/auth/infrastructure/persistence/entities/user-session.entity.d.ts +18 -0
  502. package/dist/server/auth/infrastructure/persistence/entities/user-session.entity.d.ts.map +1 -0
  503. package/dist/server/auth/infrastructure/persistence/entities/user-session.entity.js +95 -0
  504. package/dist/server/auth/infrastructure/persistence/entities/user-session.entity.js.map +1 -0
  505. package/dist/server/auth/infrastructure/persistence/entities/user-two-factor.entity.d.ts +15 -0
  506. package/dist/server/auth/infrastructure/persistence/entities/user-two-factor.entity.d.ts.map +1 -0
  507. package/dist/server/auth/infrastructure/persistence/entities/user-two-factor.entity.js +76 -0
  508. package/dist/server/auth/infrastructure/persistence/entities/user-two-factor.entity.js.map +1 -0
  509. package/dist/server/auth/infrastructure/persistence/mappers/auth-user.mapper.d.ts +9 -0
  510. package/dist/server/auth/infrastructure/persistence/mappers/auth-user.mapper.d.ts.map +1 -0
  511. package/dist/server/auth/infrastructure/persistence/mappers/auth-user.mapper.js +75 -0
  512. package/dist/server/auth/infrastructure/persistence/mappers/auth-user.mapper.js.map +1 -0
  513. package/dist/server/auth/infrastructure/persistence/mappers/email-verification-token.mapper.d.ts +8 -0
  514. package/dist/server/auth/infrastructure/persistence/mappers/email-verification-token.mapper.d.ts.map +1 -0
  515. package/dist/server/auth/infrastructure/persistence/mappers/email-verification-token.mapper.js +46 -0
  516. package/dist/server/auth/infrastructure/persistence/mappers/email-verification-token.mapper.js.map +1 -0
  517. package/dist/server/auth/infrastructure/persistence/mappers/index.d.ts +17 -0
  518. package/dist/server/auth/infrastructure/persistence/mappers/index.d.ts.map +1 -0
  519. package/dist/server/auth/infrastructure/persistence/mappers/index.js +33 -0
  520. package/dist/server/auth/infrastructure/persistence/mappers/index.js.map +1 -0
  521. package/dist/server/auth/infrastructure/persistence/mappers/login-history.mapper.d.ts +8 -0
  522. package/dist/server/auth/infrastructure/persistence/mappers/login-history.mapper.d.ts.map +1 -0
  523. package/dist/server/auth/infrastructure/persistence/mappers/login-history.mapper.js +54 -0
  524. package/dist/server/auth/infrastructure/persistence/mappers/login-history.mapper.js.map +1 -0
  525. package/dist/server/auth/infrastructure/persistence/mappers/oauth-audit-log.mapper.d.ts +8 -0
  526. package/dist/server/auth/infrastructure/persistence/mappers/oauth-audit-log.mapper.d.ts.map +1 -0
  527. package/dist/server/auth/infrastructure/persistence/mappers/oauth-audit-log.mapper.js +52 -0
  528. package/dist/server/auth/infrastructure/persistence/mappers/oauth-audit-log.mapper.js.map +1 -0
  529. package/dist/server/auth/infrastructure/persistence/mappers/oauth-authorization-code.mapper.d.ts +8 -0
  530. package/dist/server/auth/infrastructure/persistence/mappers/oauth-authorization-code.mapper.d.ts.map +1 -0
  531. package/dist/server/auth/infrastructure/persistence/mappers/oauth-authorization-code.mapper.js +56 -0
  532. package/dist/server/auth/infrastructure/persistence/mappers/oauth-authorization-code.mapper.js.map +1 -0
  533. package/dist/server/auth/infrastructure/persistence/mappers/oauth-client-consent.mapper.d.ts +8 -0
  534. package/dist/server/auth/infrastructure/persistence/mappers/oauth-client-consent.mapper.d.ts.map +1 -0
  535. package/dist/server/auth/infrastructure/persistence/mappers/oauth-client-consent.mapper.js +46 -0
  536. package/dist/server/auth/infrastructure/persistence/mappers/oauth-client-consent.mapper.js.map +1 -0
  537. package/dist/server/auth/infrastructure/persistence/mappers/oauth-client.mapper.d.ts +8 -0
  538. package/dist/server/auth/infrastructure/persistence/mappers/oauth-client.mapper.d.ts.map +1 -0
  539. package/dist/server/auth/infrastructure/persistence/mappers/oauth-client.mapper.js +74 -0
  540. package/dist/server/auth/infrastructure/persistence/mappers/oauth-client.mapper.js.map +1 -0
  541. package/dist/server/auth/infrastructure/persistence/mappers/oauth-scope.mapper.d.ts +8 -0
  542. package/dist/server/auth/infrastructure/persistence/mappers/oauth-scope.mapper.d.ts.map +1 -0
  543. package/dist/server/auth/infrastructure/persistence/mappers/oauth-scope.mapper.js +44 -0
  544. package/dist/server/auth/infrastructure/persistence/mappers/oauth-scope.mapper.js.map +1 -0
  545. package/dist/server/auth/infrastructure/persistence/mappers/oauth-token.mapper.d.ts +8 -0
  546. package/dist/server/auth/infrastructure/persistence/mappers/oauth-token.mapper.d.ts.map +1 -0
  547. package/dist/server/auth/infrastructure/persistence/mappers/oauth-token.mapper.js +56 -0
  548. package/dist/server/auth/infrastructure/persistence/mappers/oauth-token.mapper.js.map +1 -0
  549. package/dist/server/auth/infrastructure/persistence/mappers/permission.mapper.d.ts +8 -0
  550. package/dist/server/auth/infrastructure/persistence/mappers/permission.mapper.d.ts.map +1 -0
  551. package/dist/server/auth/infrastructure/persistence/mappers/permission.mapper.js +46 -0
  552. package/dist/server/auth/infrastructure/persistence/mappers/permission.mapper.js.map +1 -0
  553. package/dist/server/auth/infrastructure/persistence/mappers/role-permission.mapper.d.ts +8 -0
  554. package/dist/server/auth/infrastructure/persistence/mappers/role-permission.mapper.d.ts.map +1 -0
  555. package/dist/server/auth/infrastructure/persistence/mappers/role-permission.mapper.js +42 -0
  556. package/dist/server/auth/infrastructure/persistence/mappers/role-permission.mapper.js.map +1 -0
  557. package/dist/server/auth/infrastructure/persistence/mappers/role.mapper.d.ts +8 -0
  558. package/dist/server/auth/infrastructure/persistence/mappers/role.mapper.d.ts.map +1 -0
  559. package/dist/server/auth/infrastructure/persistence/mappers/role.mapper.js +46 -0
  560. package/dist/server/auth/infrastructure/persistence/mappers/role.mapper.js.map +1 -0
  561. package/dist/server/auth/infrastructure/persistence/mappers/social-account.mapper.d.ts +8 -0
  562. package/dist/server/auth/infrastructure/persistence/mappers/social-account.mapper.d.ts.map +1 -0
  563. package/dist/server/auth/infrastructure/persistence/mappers/social-account.mapper.js +58 -0
  564. package/dist/server/auth/infrastructure/persistence/mappers/social-account.mapper.js.map +1 -0
  565. package/dist/server/auth/infrastructure/persistence/mappers/user-role.mapper.d.ts +8 -0
  566. package/dist/server/auth/infrastructure/persistence/mappers/user-role.mapper.d.ts.map +1 -0
  567. package/dist/server/auth/infrastructure/persistence/mappers/user-role.mapper.js +42 -0
  568. package/dist/server/auth/infrastructure/persistence/mappers/user-role.mapper.js.map +1 -0
  569. package/dist/server/auth/infrastructure/persistence/mappers/user-session.mapper.d.ts +8 -0
  570. package/dist/server/auth/infrastructure/persistence/mappers/user-session.mapper.d.ts.map +1 -0
  571. package/dist/server/auth/infrastructure/persistence/mappers/user-session.mapper.js +62 -0
  572. package/dist/server/auth/infrastructure/persistence/mappers/user-session.mapper.js.map +1 -0
  573. package/dist/server/auth/infrastructure/persistence/mappers/user-two-factor.mapper.d.ts +8 -0
  574. package/dist/server/auth/infrastructure/persistence/mappers/user-two-factor.mapper.d.ts.map +1 -0
  575. package/dist/server/auth/infrastructure/persistence/mappers/user-two-factor.mapper.js +56 -0
  576. package/dist/server/auth/infrastructure/persistence/mappers/user-two-factor.mapper.js.map +1 -0
  577. package/dist/server/auth/infrastructure/persistence/repositories/auth-user.repository.d.ts +20 -0
  578. package/dist/server/auth/infrastructure/persistence/repositories/auth-user.repository.d.ts.map +1 -0
  579. package/dist/server/auth/infrastructure/persistence/repositories/auth-user.repository.js +74 -0
  580. package/dist/server/auth/infrastructure/persistence/repositories/auth-user.repository.js.map +1 -0
  581. package/dist/server/auth/infrastructure/persistence/repositories/email-verification-token.repository.d.ts +19 -0
  582. package/dist/server/auth/infrastructure/persistence/repositories/email-verification-token.repository.d.ts.map +1 -0
  583. package/dist/server/auth/infrastructure/persistence/repositories/email-verification-token.repository.js +67 -0
  584. package/dist/server/auth/infrastructure/persistence/repositories/email-verification-token.repository.js.map +1 -0
  585. package/dist/server/auth/infrastructure/persistence/repositories/index.d.ts +17 -0
  586. package/dist/server/auth/infrastructure/persistence/repositories/index.d.ts.map +1 -0
  587. package/dist/server/auth/infrastructure/persistence/repositories/index.js +33 -0
  588. package/dist/server/auth/infrastructure/persistence/repositories/index.js.map +1 -0
  589. package/dist/server/auth/infrastructure/persistence/repositories/login-history.repository.d.ts +17 -0
  590. package/dist/server/auth/infrastructure/persistence/repositories/login-history.repository.d.ts.map +1 -0
  591. package/dist/server/auth/infrastructure/persistence/repositories/login-history.repository.js +70 -0
  592. package/dist/server/auth/infrastructure/persistence/repositories/login-history.repository.js.map +1 -0
  593. package/dist/server/auth/infrastructure/persistence/repositories/oauth-audit-log.repository.d.ts +18 -0
  594. package/dist/server/auth/infrastructure/persistence/repositories/oauth-audit-log.repository.d.ts.map +1 -0
  595. package/dist/server/auth/infrastructure/persistence/repositories/oauth-audit-log.repository.js +77 -0
  596. package/dist/server/auth/infrastructure/persistence/repositories/oauth-audit-log.repository.js.map +1 -0
  597. package/dist/server/auth/infrastructure/persistence/repositories/oauth-authorization-code.repository.d.ts +18 -0
  598. package/dist/server/auth/infrastructure/persistence/repositories/oauth-authorization-code.repository.d.ts.map +1 -0
  599. package/dist/server/auth/infrastructure/persistence/repositories/oauth-authorization-code.repository.js +64 -0
  600. package/dist/server/auth/infrastructure/persistence/repositories/oauth-authorization-code.repository.js.map +1 -0
  601. package/dist/server/auth/infrastructure/persistence/repositories/oauth-client-consent.repository.d.ts +18 -0
  602. package/dist/server/auth/infrastructure/persistence/repositories/oauth-client-consent.repository.d.ts.map +1 -0
  603. package/dist/server/auth/infrastructure/persistence/repositories/oauth-client-consent.repository.js +66 -0
  604. package/dist/server/auth/infrastructure/persistence/repositories/oauth-client-consent.repository.js.map +1 -0
  605. package/dist/server/auth/infrastructure/persistence/repositories/oauth-client.repository.d.ts +18 -0
  606. package/dist/server/auth/infrastructure/persistence/repositories/oauth-client.repository.d.ts.map +1 -0
  607. package/dist/server/auth/infrastructure/persistence/repositories/oauth-client.repository.js +65 -0
  608. package/dist/server/auth/infrastructure/persistence/repositories/oauth-client.repository.js.map +1 -0
  609. package/dist/server/auth/infrastructure/persistence/repositories/oauth-scope.repository.d.ts +19 -0
  610. package/dist/server/auth/infrastructure/persistence/repositories/oauth-scope.repository.d.ts.map +1 -0
  611. package/dist/server/auth/infrastructure/persistence/repositories/oauth-scope.repository.js +69 -0
  612. package/dist/server/auth/infrastructure/persistence/repositories/oauth-scope.repository.js.map +1 -0
  613. package/dist/server/auth/infrastructure/persistence/repositories/oauth-token.repository.d.ts +22 -0
  614. package/dist/server/auth/infrastructure/persistence/repositories/oauth-token.repository.d.ts.map +1 -0
  615. package/dist/server/auth/infrastructure/persistence/repositories/oauth-token.repository.js +93 -0
  616. package/dist/server/auth/infrastructure/persistence/repositories/oauth-token.repository.js.map +1 -0
  617. package/dist/server/auth/infrastructure/persistence/repositories/permission.repository.d.ts +20 -0
  618. package/dist/server/auth/infrastructure/persistence/repositories/permission.repository.d.ts.map +1 -0
  619. package/dist/server/auth/infrastructure/persistence/repositories/permission.repository.js +75 -0
  620. package/dist/server/auth/infrastructure/persistence/repositories/permission.repository.js.map +1 -0
  621. package/dist/server/auth/infrastructure/persistence/repositories/role-permission.repository.d.ts +20 -0
  622. package/dist/server/auth/infrastructure/persistence/repositories/role-permission.repository.d.ts.map +1 -0
  623. package/dist/server/auth/infrastructure/persistence/repositories/role-permission.repository.js +79 -0
  624. package/dist/server/auth/infrastructure/persistence/repositories/role-permission.repository.js.map +1 -0
  625. package/dist/server/auth/infrastructure/persistence/repositories/role.repository.d.ts +19 -0
  626. package/dist/server/auth/infrastructure/persistence/repositories/role.repository.d.ts.map +1 -0
  627. package/dist/server/auth/infrastructure/persistence/repositories/role.repository.js +69 -0
  628. package/dist/server/auth/infrastructure/persistence/repositories/role.repository.js.map +1 -0
  629. package/dist/server/auth/infrastructure/persistence/repositories/social-account.repository.d.ts +20 -0
  630. package/dist/server/auth/infrastructure/persistence/repositories/social-account.repository.d.ts.map +1 -0
  631. package/dist/server/auth/infrastructure/persistence/repositories/social-account.repository.js +72 -0
  632. package/dist/server/auth/infrastructure/persistence/repositories/social-account.repository.js.map +1 -0
  633. package/dist/server/auth/infrastructure/persistence/repositories/user-role.repository.d.ts +19 -0
  634. package/dist/server/auth/infrastructure/persistence/repositories/user-role.repository.d.ts.map +1 -0
  635. package/dist/server/auth/infrastructure/persistence/repositories/user-role.repository.js +66 -0
  636. package/dist/server/auth/infrastructure/persistence/repositories/user-role.repository.js.map +1 -0
  637. package/dist/server/auth/infrastructure/persistence/repositories/user-session.repository.d.ts +20 -0
  638. package/dist/server/auth/infrastructure/persistence/repositories/user-session.repository.d.ts.map +1 -0
  639. package/dist/server/auth/infrastructure/persistence/repositories/user-session.repository.js +85 -0
  640. package/dist/server/auth/infrastructure/persistence/repositories/user-session.repository.js.map +1 -0
  641. package/dist/server/auth/infrastructure/persistence/repositories/user-two-factor.repository.d.ts +17 -0
  642. package/dist/server/auth/infrastructure/persistence/repositories/user-two-factor.repository.d.ts.map +1 -0
  643. package/dist/server/auth/infrastructure/persistence/repositories/user-two-factor.repository.js +60 -0
  644. package/dist/server/auth/infrastructure/persistence/repositories/user-two-factor.repository.js.map +1 -0
  645. package/dist/server/auth/infrastructure/schedulers/cleanup.scheduler.d.ts +17 -0
  646. package/dist/server/auth/infrastructure/schedulers/cleanup.scheduler.d.ts.map +1 -0
  647. package/dist/server/auth/infrastructure/schedulers/cleanup.scheduler.js +105 -0
  648. package/dist/server/auth/infrastructure/schedulers/cleanup.scheduler.js.map +1 -0
  649. package/dist/server/auth/infrastructure/schedulers/index.d.ts +2 -0
  650. package/dist/server/auth/infrastructure/schedulers/index.d.ts.map +1 -0
  651. package/dist/server/auth/infrastructure/schedulers/index.js +18 -0
  652. package/dist/server/auth/infrastructure/schedulers/index.js.map +1 -0
  653. package/dist/server/auth/infrastructure/services/authorization-code.service.d.ts +22 -0
  654. package/dist/server/auth/infrastructure/services/authorization-code.service.d.ts.map +1 -0
  655. package/dist/server/auth/infrastructure/services/authorization-code.service.js +176 -0
  656. package/dist/server/auth/infrastructure/services/authorization-code.service.js.map +1 -0
  657. package/dist/server/auth/infrastructure/services/bcrypt-hash.service.d.ts +8 -0
  658. package/dist/server/auth/infrastructure/services/bcrypt-hash.service.d.ts.map +1 -0
  659. package/dist/server/auth/infrastructure/services/bcrypt-hash.service.js +61 -0
  660. package/dist/server/auth/infrastructure/services/bcrypt-hash.service.js.map +1 -0
  661. package/dist/server/auth/infrastructure/services/consent.service.d.ts +19 -0
  662. package/dist/server/auth/infrastructure/services/consent.service.d.ts.map +1 -0
  663. package/dist/server/auth/infrastructure/services/consent.service.js +121 -0
  664. package/dist/server/auth/infrastructure/services/consent.service.js.map +1 -0
  665. package/dist/server/auth/infrastructure/services/email-verification.service.d.ts +11 -0
  666. package/dist/server/auth/infrastructure/services/email-verification.service.d.ts.map +1 -0
  667. package/dist/server/auth/infrastructure/services/email-verification.service.js +52 -0
  668. package/dist/server/auth/infrastructure/services/email-verification.service.js.map +1 -0
  669. package/dist/server/auth/infrastructure/services/google-auth.service.d.ts +11 -0
  670. package/dist/server/auth/infrastructure/services/google-auth.service.d.ts.map +1 -0
  671. package/dist/server/auth/infrastructure/services/google-auth.service.js +68 -0
  672. package/dist/server/auth/infrastructure/services/google-auth.service.js.map +1 -0
  673. package/dist/server/auth/infrastructure/services/index.d.ts +11 -0
  674. package/dist/server/auth/infrastructure/services/index.d.ts.map +1 -0
  675. package/dist/server/auth/infrastructure/services/index.js +27 -0
  676. package/dist/server/auth/infrastructure/services/index.js.map +1 -0
  677. package/dist/server/auth/infrastructure/services/jwt-token.service.d.ts +41 -0
  678. package/dist/server/auth/infrastructure/services/jwt-token.service.d.ts.map +1 -0
  679. package/dist/server/auth/infrastructure/services/jwt-token.service.js +112 -0
  680. package/dist/server/auth/infrastructure/services/jwt-token.service.js.map +1 -0
  681. package/dist/server/auth/infrastructure/services/nodemailer-email.service.d.ts +17 -0
  682. package/dist/server/auth/infrastructure/services/nodemailer-email.service.d.ts.map +1 -0
  683. package/dist/server/auth/infrastructure/services/nodemailer-email.service.js +125 -0
  684. package/dist/server/auth/infrastructure/services/nodemailer-email.service.js.map +1 -0
  685. package/dist/server/auth/infrastructure/services/oauth-token.service.d.ts +27 -0
  686. package/dist/server/auth/infrastructure/services/oauth-token.service.d.ts.map +1 -0
  687. package/dist/server/auth/infrastructure/services/oauth-token.service.js +215 -0
  688. package/dist/server/auth/infrastructure/services/oauth-token.service.js.map +1 -0
  689. package/dist/server/auth/infrastructure/services/root-account.service.d.ts +19 -0
  690. package/dist/server/auth/infrastructure/services/root-account.service.d.ts.map +1 -0
  691. package/dist/server/auth/infrastructure/services/root-account.service.js +91 -0
  692. package/dist/server/auth/infrastructure/services/root-account.service.js.map +1 -0
  693. package/dist/server/auth/infrastructure/services/session.service.d.ts +11 -0
  694. package/dist/server/auth/infrastructure/services/session.service.d.ts.map +1 -0
  695. package/dist/server/auth/infrastructure/services/session.service.js +49 -0
  696. package/dist/server/auth/infrastructure/services/session.service.js.map +1 -0
  697. package/dist/server/auth/infrastructure/strategies/facebook.strategy.d.ts +16 -0
  698. package/dist/server/auth/infrastructure/strategies/facebook.strategy.d.ts.map +1 -0
  699. package/dist/server/auth/infrastructure/strategies/facebook.strategy.js +100 -0
  700. package/dist/server/auth/infrastructure/strategies/facebook.strategy.js.map +1 -0
  701. package/dist/server/auth/infrastructure/strategies/github.strategy.d.ts +16 -0
  702. package/dist/server/auth/infrastructure/strategies/github.strategy.d.ts.map +1 -0
  703. package/dist/server/auth/infrastructure/strategies/github.strategy.js +99 -0
  704. package/dist/server/auth/infrastructure/strategies/github.strategy.js.map +1 -0
  705. package/dist/server/auth/infrastructure/strategies/google.strategy.d.ts +16 -0
  706. package/dist/server/auth/infrastructure/strategies/google.strategy.d.ts.map +1 -0
  707. package/dist/server/auth/infrastructure/strategies/google.strategy.js +99 -0
  708. package/dist/server/auth/infrastructure/strategies/google.strategy.js.map +1 -0
  709. package/dist/server/auth/infrastructure/strategies/index.d.ts +2 -0
  710. package/dist/server/auth/infrastructure/strategies/index.d.ts.map +1 -0
  711. package/dist/server/auth/infrastructure/strategies/index.js +18 -0
  712. package/dist/server/auth/infrastructure/strategies/index.js.map +1 -0
  713. package/dist/server/auth/infrastructure/strategies/jwt.strategy.d.ts +20 -0
  714. package/dist/server/auth/infrastructure/strategies/jwt.strategy.d.ts.map +1 -0
  715. package/dist/server/auth/infrastructure/strategies/jwt.strategy.js +68 -0
  716. package/dist/server/auth/infrastructure/strategies/jwt.strategy.js.map +1 -0
  717. package/dist/server/auth/infrastructure/strategies/local.strategy.d.ts +13 -0
  718. package/dist/server/auth/infrastructure/strategies/local.strategy.d.ts.map +1 -0
  719. package/dist/server/auth/infrastructure/strategies/local.strategy.js +83 -0
  720. package/dist/server/auth/infrastructure/strategies/local.strategy.js.map +1 -0
  721. package/dist/server/auth/oauth.module.d.ts +3 -0
  722. package/dist/server/auth/oauth.module.d.ts.map +1 -0
  723. package/dist/server/auth/oauth.module.js +235 -0
  724. package/dist/server/auth/oauth.module.js.map +1 -0
  725. package/dist/server/auth/presentation/controllers/auth.controller.d.ts +72 -0
  726. package/dist/server/auth/presentation/controllers/auth.controller.d.ts.map +1 -0
  727. package/dist/server/auth/presentation/controllers/auth.controller.js +280 -0
  728. package/dist/server/auth/presentation/controllers/auth.controller.js.map +1 -0
  729. package/dist/server/auth/presentation/controllers/email.controller.d.ts +17 -0
  730. package/dist/server/auth/presentation/controllers/email.controller.d.ts.map +1 -0
  731. package/dist/server/auth/presentation/controllers/email.controller.js +75 -0
  732. package/dist/server/auth/presentation/controllers/email.controller.js.map +1 -0
  733. package/dist/server/auth/presentation/controllers/index.d.ts +9 -0
  734. package/dist/server/auth/presentation/controllers/index.d.ts.map +1 -0
  735. package/dist/server/auth/presentation/controllers/index.js +25 -0
  736. package/dist/server/auth/presentation/controllers/index.js.map +1 -0
  737. package/dist/server/auth/presentation/controllers/password.controller.d.ts +19 -0
  738. package/dist/server/auth/presentation/controllers/password.controller.d.ts.map +1 -0
  739. package/dist/server/auth/presentation/controllers/password.controller.js +75 -0
  740. package/dist/server/auth/presentation/controllers/password.controller.js.map +1 -0
  741. package/dist/server/auth/presentation/controllers/permission.controller.d.ts +11 -0
  742. package/dist/server/auth/presentation/controllers/permission.controller.d.ts.map +1 -0
  743. package/dist/server/auth/presentation/controllers/permission.controller.js +43 -0
  744. package/dist/server/auth/presentation/controllers/permission.controller.js.map +1 -0
  745. package/dist/server/auth/presentation/controllers/role.controller.d.ts +32 -0
  746. package/dist/server/auth/presentation/controllers/role.controller.d.ts.map +1 -0
  747. package/dist/server/auth/presentation/controllers/role.controller.js +97 -0
  748. package/dist/server/auth/presentation/controllers/role.controller.js.map +1 -0
  749. package/dist/server/auth/presentation/controllers/session.controller.d.ts +23 -0
  750. package/dist/server/auth/presentation/controllers/session.controller.d.ts.map +1 -0
  751. package/dist/server/auth/presentation/controllers/session.controller.js +92 -0
  752. package/dist/server/auth/presentation/controllers/session.controller.js.map +1 -0
  753. package/dist/server/auth/presentation/controllers/social-auth.controller.d.ts +12 -0
  754. package/dist/server/auth/presentation/controllers/social-auth.controller.d.ts.map +1 -0
  755. package/dist/server/auth/presentation/controllers/social-auth.controller.js +58 -0
  756. package/dist/server/auth/presentation/controllers/social-auth.controller.js.map +1 -0
  757. package/dist/server/auth/presentation/controllers/two-factor.controller.d.ts +23 -0
  758. package/dist/server/auth/presentation/controllers/two-factor.controller.d.ts.map +1 -0
  759. package/dist/server/auth/presentation/controllers/two-factor.controller.js +94 -0
  760. package/dist/server/auth/presentation/controllers/two-factor.controller.js.map +1 -0
  761. package/dist/server/auth/presentation/decorators/auth.decorator.d.ts +7 -0
  762. package/dist/server/auth/presentation/decorators/auth.decorator.d.ts.map +1 -0
  763. package/dist/server/auth/presentation/decorators/auth.decorator.js +14 -0
  764. package/dist/server/auth/presentation/decorators/auth.decorator.js.map +1 -0
  765. package/dist/server/auth/presentation/decorators/current-session-id.decorator.d.ts +2 -0
  766. package/dist/server/auth/presentation/decorators/current-session-id.decorator.d.ts.map +1 -0
  767. package/dist/server/auth/presentation/decorators/current-session-id.decorator.js +9 -0
  768. package/dist/server/auth/presentation/decorators/current-session-id.decorator.js.map +1 -0
  769. package/dist/server/auth/presentation/decorators/index.d.ts +4 -0
  770. package/dist/server/auth/presentation/decorators/index.d.ts.map +1 -0
  771. package/dist/server/auth/presentation/decorators/index.js +20 -0
  772. package/dist/server/auth/presentation/decorators/index.js.map +1 -0
  773. package/dist/server/auth/presentation/decorators/require-permissions.decorator.d.ts +3 -0
  774. package/dist/server/auth/presentation/decorators/require-permissions.decorator.d.ts.map +1 -0
  775. package/dist/server/auth/presentation/decorators/require-permissions.decorator.js +8 -0
  776. package/dist/server/auth/presentation/decorators/require-permissions.decorator.js.map +1 -0
  777. package/dist/server/auth/presentation/decorators/user.decorator.d.ts +7 -0
  778. package/dist/server/auth/presentation/decorators/user.decorator.d.ts.map +1 -0
  779. package/dist/server/auth/presentation/decorators/user.decorator.js +29 -0
  780. package/dist/server/auth/presentation/decorators/user.decorator.js.map +1 -0
  781. package/dist/server/auth/presentation/filters/global-exception.filter.d.ts +5 -0
  782. package/dist/server/auth/presentation/filters/global-exception.filter.d.ts.map +1 -0
  783. package/dist/server/auth/presentation/filters/global-exception.filter.js +44 -0
  784. package/dist/server/auth/presentation/filters/global-exception.filter.js.map +1 -0
  785. package/dist/server/auth/presentation/filters/index.d.ts +2 -0
  786. package/dist/server/auth/presentation/filters/index.d.ts.map +1 -0
  787. package/dist/server/auth/presentation/filters/index.js +18 -0
  788. package/dist/server/auth/presentation/filters/index.js.map +1 -0
  789. package/dist/server/auth/presentation/guards/index.d.ts +3 -0
  790. package/dist/server/auth/presentation/guards/index.d.ts.map +1 -0
  791. package/dist/server/auth/presentation/guards/index.js +19 -0
  792. package/dist/server/auth/presentation/guards/index.js.map +1 -0
  793. package/dist/server/auth/presentation/guards/jwt-auth.guard.d.ts +11 -0
  794. package/dist/server/auth/presentation/guards/jwt-auth.guard.d.ts.map +1 -0
  795. package/dist/server/auth/presentation/guards/jwt-auth.guard.js +45 -0
  796. package/dist/server/auth/presentation/guards/jwt-auth.guard.js.map +1 -0
  797. package/dist/server/auth/presentation/guards/permission.guard.d.ts +17 -0
  798. package/dist/server/auth/presentation/guards/permission.guard.d.ts.map +1 -0
  799. package/dist/server/auth/presentation/guards/permission.guard.js +87 -0
  800. package/dist/server/auth/presentation/guards/permission.guard.js.map +1 -0
  801. package/dist/server/auth/presentation/index.d.ts +4 -0
  802. package/dist/server/auth/presentation/index.d.ts.map +1 -0
  803. package/dist/server/auth/presentation/index.js +20 -0
  804. package/dist/server/auth/presentation/index.js.map +1 -0
  805. package/dist/server/auth/presentation/responses/oauth.response.d.ts +26 -0
  806. package/dist/server/auth/presentation/responses/oauth.response.d.ts.map +1 -0
  807. package/dist/server/auth/presentation/responses/oauth.response.js +33 -0
  808. package/dist/server/auth/presentation/responses/oauth.response.js.map +1 -0
  809. package/dist/server/auth/presentation/validators/index.d.ts +2 -0
  810. package/dist/server/auth/presentation/validators/index.d.ts.map +1 -0
  811. package/dist/server/auth/presentation/validators/index.js +18 -0
  812. package/dist/server/auth/presentation/validators/index.js.map +1 -0
  813. package/dist/server/auth/presentation/validators/is-username-unique.validator.d.ts +10 -0
  814. package/dist/server/auth/presentation/validators/is-username-unique.validator.d.ts.map +1 -0
  815. package/dist/server/auth/presentation/validators/is-username-unique.validator.js +54 -0
  816. package/dist/server/auth/presentation/validators/is-username-unique.validator.js.map +1 -0
  817. package/dist/server/auth/presentation/validators/password.validator.d.ts +4 -0
  818. package/dist/server/auth/presentation/validators/password.validator.d.ts.map +1 -0
  819. package/dist/server/auth/presentation/validators/password.validator.js +56 -0
  820. package/dist/server/auth/presentation/validators/password.validator.js.map +1 -0
  821. package/dist/server/common/events/mail/index.d.ts +7 -0
  822. package/dist/server/common/events/mail/index.d.ts.map +1 -0
  823. package/dist/server/common/events/mail/index.js +16 -0
  824. package/dist/server/common/events/mail/index.js.map +1 -0
  825. package/dist/server/common/events/mail/mail-events.constants.d.ts +9 -0
  826. package/dist/server/common/events/mail/mail-events.constants.d.ts.map +1 -0
  827. package/dist/server/common/events/mail/mail-events.constants.js +11 -0
  828. package/dist/server/common/events/mail/mail-events.constants.js.map +1 -0
  829. package/dist/server/common/events/mail/send-password-changed.event.d.ts +7 -0
  830. package/dist/server/common/events/mail/send-password-changed.event.d.ts.map +1 -0
  831. package/dist/server/common/events/mail/send-password-changed.event.js +15 -0
  832. package/dist/server/common/events/mail/send-password-changed.event.js.map +1 -0
  833. package/dist/server/common/events/mail/send-password-reset.event.d.ts +7 -0
  834. package/dist/server/common/events/mail/send-password-reset.event.d.ts.map +1 -0
  835. package/dist/server/common/events/mail/send-password-reset.event.js +15 -0
  836. package/dist/server/common/events/mail/send-password-reset.event.js.map +1 -0
  837. package/dist/server/common/events/mail/send-user-welcome.event.d.ts +7 -0
  838. package/dist/server/common/events/mail/send-user-welcome.event.d.ts.map +1 -0
  839. package/dist/server/common/events/mail/send-user-welcome.event.js +15 -0
  840. package/dist/server/common/events/mail/send-user-welcome.event.js.map +1 -0
  841. package/dist/server/common/events/mail/send-verification-email.event.d.ts +7 -0
  842. package/dist/server/common/events/mail/send-verification-email.event.d.ts.map +1 -0
  843. package/dist/server/common/events/mail/send-verification-email.event.js +15 -0
  844. package/dist/server/common/events/mail/send-verification-email.event.js.map +1 -0
  845. package/dist/server/common/events/mail/send-welcome-email.event.d.ts +6 -0
  846. package/dist/server/common/events/mail/send-welcome-email.event.d.ts.map +1 -0
  847. package/dist/server/common/events/mail/send-welcome-email.event.js +13 -0
  848. package/dist/server/common/events/mail/send-welcome-email.event.js.map +1 -0
  849. package/dist/server/index.d.ts +40 -0
  850. package/dist/server/index.d.ts.map +1 -0
  851. package/dist/server/index.js +139 -0
  852. package/dist/server/index.js.map +1 -0
  853. package/dist/server/lib/responder.d.ts +33 -0
  854. package/dist/server/lib/responder.d.ts.map +1 -0
  855. package/dist/server/lib/responder.js +75 -0
  856. package/dist/server/lib/responder.js.map +1 -0
  857. package/dist/server/shared/index.d.ts +3 -0
  858. package/dist/server/shared/index.d.ts.map +1 -0
  859. package/dist/server/shared/index.js +12 -0
  860. package/dist/server/shared/index.js.map +1 -0
  861. package/dist/server/shared/permissions.d.ts +78 -0
  862. package/dist/server/shared/permissions.d.ts.map +1 -0
  863. package/dist/server/shared/permissions.js +74 -0
  864. package/dist/server/shared/permissions.js.map +1 -0
  865. package/dist/server/shared/roles.d.ts +30 -0
  866. package/dist/server/shared/roles.d.ts.map +1 -0
  867. package/dist/server/shared/roles.js +31 -0
  868. package/dist/server/shared/roles.js.map +1 -0
  869. package/dist/server/user/application/dto/admin-user.dto.d.ts +51 -0
  870. package/dist/server/user/application/dto/admin-user.dto.d.ts.map +1 -0
  871. package/dist/server/user/application/dto/admin-user.dto.js +225 -0
  872. package/dist/server/user/application/dto/admin-user.dto.js.map +1 -0
  873. package/dist/server/user/application/dto/user-preferences.dto.d.ts +36 -0
  874. package/dist/server/user/application/dto/user-preferences.dto.d.ts.map +1 -0
  875. package/dist/server/user/application/dto/user-preferences.dto.js +76 -0
  876. package/dist/server/user/application/dto/user-preferences.dto.js.map +1 -0
  877. package/dist/server/user/application/listeners/auth-user-event.listener.d.ts +11 -0
  878. package/dist/server/user/application/listeners/auth-user-event.listener.d.ts.map +1 -0
  879. package/dist/server/user/application/listeners/auth-user-event.listener.js +114 -0
  880. package/dist/server/user/application/listeners/auth-user-event.listener.js.map +1 -0
  881. package/dist/server/user/application/repositories/user-setting.repository.d.ts +13 -0
  882. package/dist/server/user/application/repositories/user-setting.repository.d.ts.map +1 -0
  883. package/dist/server/user/application/repositories/user-setting.repository.js +84 -0
  884. package/dist/server/user/application/repositories/user-setting.repository.js.map +1 -0
  885. package/dist/server/user/application/services/user-preferences.service.d.ts +12 -0
  886. package/dist/server/user/application/services/user-preferences.service.d.ts.map +1 -0
  887. package/dist/server/user/application/services/user-preferences.service.js +65 -0
  888. package/dist/server/user/application/services/user-preferences.service.js.map +1 -0
  889. package/dist/server/user/application/services/user.service.d.ts +56 -0
  890. package/dist/server/user/application/services/user.service.d.ts.map +1 -0
  891. package/dist/server/user/application/services/user.service.js +213 -0
  892. package/dist/server/user/application/services/user.service.js.map +1 -0
  893. package/dist/server/user/domain/constants/user-events.const.d.ts +9 -0
  894. package/dist/server/user/domain/constants/user-events.const.d.ts.map +1 -0
  895. package/dist/server/user/domain/constants/user-events.const.js +11 -0
  896. package/dist/server/user/domain/constants/user-events.const.js.map +1 -0
  897. package/dist/server/user/domain/entities/user.entity.d.ts +37 -0
  898. package/dist/server/user/domain/entities/user.entity.d.ts.map +1 -0
  899. package/dist/server/user/domain/entities/user.entity.js +71 -0
  900. package/dist/server/user/domain/entities/user.entity.js.map +1 -0
  901. package/dist/server/user/domain/repositories/user.repository.d.ts +26 -0
  902. package/dist/server/user/domain/repositories/user.repository.d.ts.map +1 -0
  903. package/dist/server/user/domain/repositories/user.repository.js +3 -0
  904. package/dist/server/user/domain/repositories/user.repository.js.map +1 -0
  905. package/dist/server/user/infrastructure/persistence/entities/user-setting.entity.d.ts +29 -0
  906. package/dist/server/user/infrastructure/persistence/entities/user-setting.entity.d.ts.map +1 -0
  907. package/dist/server/user/infrastructure/persistence/entities/user-setting.entity.js +82 -0
  908. package/dist/server/user/infrastructure/persistence/entities/user-setting.entity.js.map +1 -0
  909. package/dist/server/user/infrastructure/persistence/entities/user.entity.d.ts +19 -0
  910. package/dist/server/user/infrastructure/persistence/entities/user.entity.d.ts.map +1 -0
  911. package/dist/server/user/infrastructure/persistence/entities/user.entity.js +100 -0
  912. package/dist/server/user/infrastructure/persistence/entities/user.entity.js.map +1 -0
  913. package/dist/server/user/infrastructure/persistence/mappers/user.mapper.d.ts +8 -0
  914. package/dist/server/user/infrastructure/persistence/mappers/user.mapper.d.ts.map +1 -0
  915. package/dist/server/user/infrastructure/persistence/mappers/user.mapper.js +59 -0
  916. package/dist/server/user/infrastructure/persistence/mappers/user.mapper.js.map +1 -0
  917. package/dist/server/user/infrastructure/persistence/repositories/user.repository.impl.d.ts +31 -0
  918. package/dist/server/user/infrastructure/persistence/repositories/user.repository.impl.d.ts.map +1 -0
  919. package/dist/server/user/infrastructure/persistence/repositories/user.repository.impl.js +123 -0
  920. package/dist/server/user/infrastructure/persistence/repositories/user.repository.impl.js.map +1 -0
  921. package/dist/server/user/presentation/controllers/admin-user.controller.d.ts +77 -0
  922. package/dist/server/user/presentation/controllers/admin-user.controller.d.ts.map +1 -0
  923. package/dist/server/user/presentation/controllers/admin-user.controller.js +358 -0
  924. package/dist/server/user/presentation/controllers/admin-user.controller.js.map +1 -0
  925. package/dist/server/user/user.module.d.ts +3 -0
  926. package/dist/server/user/user.module.d.ts.map +1 -0
  927. package/dist/server/user/user.module.js +46 -0
  928. package/dist/server/user/user.module.js.map +1 -0
  929. package/package.json +2 -2
@@ -0,0 +1,17 @@
1
+ export * from './auth-user.repository';
2
+ export * from './role.repository';
3
+ export * from './permission.repository';
4
+ export * from './user-role.repository';
5
+ export * from './role-permission.repository';
6
+ export * from './oauth-client.repository';
7
+ export * from './oauth-scope.repository';
8
+ export * from './oauth-token.repository';
9
+ export * from './oauth-authorization-code.repository';
10
+ export * from './oauth-client-consent.repository';
11
+ export * from './user-session.repository';
12
+ export * from './login-history.repository';
13
+ export * from './user-two-factor.repository';
14
+ export * from './email-verification-token.repository';
15
+ export * from './social-account.repository';
16
+ export * from './oauth-audit-log.repository';
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/server/auth/infrastructure/persistence/repositories/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./auth-user.repository"), exports);
18
+ __exportStar(require("./role.repository"), exports);
19
+ __exportStar(require("./permission.repository"), exports);
20
+ __exportStar(require("./user-role.repository"), exports);
21
+ __exportStar(require("./role-permission.repository"), exports);
22
+ __exportStar(require("./oauth-client.repository"), exports);
23
+ __exportStar(require("./oauth-scope.repository"), exports);
24
+ __exportStar(require("./oauth-token.repository"), exports);
25
+ __exportStar(require("./oauth-authorization-code.repository"), exports);
26
+ __exportStar(require("./oauth-client-consent.repository"), exports);
27
+ __exportStar(require("./user-session.repository"), exports);
28
+ __exportStar(require("./login-history.repository"), exports);
29
+ __exportStar(require("./user-two-factor.repository"), exports);
30
+ __exportStar(require("./email-verification-token.repository"), exports);
31
+ __exportStar(require("./social-account.repository"), exports);
32
+ __exportStar(require("./oauth-audit-log.repository"), exports);
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/server/auth/infrastructure/persistence/repositories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,+DAA6C;AAC7C,4DAA0C;AAC1C,2DAAyC;AACzC,2DAAyC;AACzC,wEAAsD;AACtD,oEAAkD;AAClD,4DAA0C;AAC1C,6DAA2C;AAC3C,+DAA6C;AAC7C,wEAAsD;AACtD,8DAA4C;AAC5C,+DAA6C"}
@@ -0,0 +1,17 @@
1
+ import { Repository } from 'typeorm';
2
+ import { LoginHistory } from '../../../domain/entities/login-history';
3
+ import { LoginHistoryRepository } from '../../../domain/repositories/login-history.repository';
4
+ import { LoginHistoryEntity } from '../entities/login-history.entity';
5
+ import { LoginHistoryMapper } from '../mappers/login-history.mapper';
6
+ export declare class LoginHistoryRepositoryImpl implements LoginHistoryRepository {
7
+ private readonly repository;
8
+ private readonly mapper;
9
+ constructor(repository: Repository<LoginHistoryEntity>, mapper: LoginHistoryMapper);
10
+ findById(id: number): Promise<LoginHistory | null>;
11
+ findByUserId(userId: number): Promise<LoginHistory[]>;
12
+ findByEmail(email: string): Promise<LoginHistory[]>;
13
+ findRecentByUserId(userId: number, limit: number): Promise<LoginHistory[]>;
14
+ create(data: Partial<LoginHistory>): Promise<LoginHistory>;
15
+ deleteOlderThan(date: Date): Promise<void>;
16
+ }
17
+ //# sourceMappingURL=login-history.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login-history.repository.d.ts","sourceRoot":"","sources":["../../../../../../src/server/auth/infrastructure/persistence/repositories/login-history.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,UAAU,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uDAAuD,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,qBACa,0BAA2B,YAAW,sBAAsB;IAGrE,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC,EAC1C,MAAM,EAAE,kBAAkB;IAGvC,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAKlD,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAQrD,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAQnD,kBAAkB,CACtB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,YAAY,EAAE,CAAC;IASpB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAM1D,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjD"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.LoginHistoryRepositoryImpl = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const typeorm_1 = require("@nestjs/typeorm");
18
+ const typeorm_2 = require("typeorm");
19
+ const login_history_entity_1 = require("../entities/login-history.entity");
20
+ const login_history_mapper_1 = require("../mappers/login-history.mapper");
21
+ let LoginHistoryRepositoryImpl = class LoginHistoryRepositoryImpl {
22
+ repository;
23
+ mapper;
24
+ constructor(repository, mapper) {
25
+ this.repository = repository;
26
+ this.mapper = mapper;
27
+ }
28
+ async findById(id) {
29
+ const entity = await this.repository.findOne({ where: { id } });
30
+ return this.mapper.toDomain(entity);
31
+ }
32
+ async findByUserId(userId) {
33
+ const entities = await this.repository.find({
34
+ where: { userId },
35
+ order: { createdAt: 'DESC' },
36
+ });
37
+ return this.mapper.toDomainList(entities);
38
+ }
39
+ async findByEmail(email) {
40
+ const entities = await this.repository.find({
41
+ where: { email },
42
+ order: { createdAt: 'DESC' },
43
+ });
44
+ return this.mapper.toDomainList(entities);
45
+ }
46
+ async findRecentByUserId(userId, limit) {
47
+ const entities = await this.repository.find({
48
+ where: { userId },
49
+ order: { createdAt: 'DESC' },
50
+ take: limit,
51
+ });
52
+ return this.mapper.toDomainList(entities);
53
+ }
54
+ async create(data) {
55
+ const entity = this.repository.create(data);
56
+ const saved = await this.repository.save(entity);
57
+ return this.mapper.toDomain(saved);
58
+ }
59
+ async deleteOlderThan(date) {
60
+ await this.repository.delete({ createdAt: (0, typeorm_2.LessThan)(date) });
61
+ }
62
+ };
63
+ exports.LoginHistoryRepositoryImpl = LoginHistoryRepositoryImpl;
64
+ exports.LoginHistoryRepositoryImpl = LoginHistoryRepositoryImpl = __decorate([
65
+ (0, common_1.Injectable)(),
66
+ __param(0, (0, typeorm_1.InjectRepository)(login_history_entity_1.LoginHistoryEntity)),
67
+ __metadata("design:paramtypes", [typeorm_2.Repository,
68
+ login_history_mapper_1.LoginHistoryMapper])
69
+ ], LoginHistoryRepositoryImpl);
70
+ //# sourceMappingURL=login-history.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login-history.repository.js","sourceRoot":"","sources":["../../../../../../src/server/auth/infrastructure/persistence/repositories/login-history.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAA+C;AAI/C,2EAAsE;AACtE,0EAAqE;AAG9D,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAGlB;IACA;IAHnB,YAEmB,UAA0C,EAC1C,MAA0B;QAD1B,eAAU,GAAV,UAAU,CAAgC;QAC1C,WAAM,GAAN,MAAM,CAAoB;IAC1C,CAAC;IAEJ,KAAK,CAAC,QAAQ,CAAC,EAAU;QACvB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,MAAc;QAC/B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YAC1C,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;SAC7B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAa;QAC7B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YAC1C,KAAK,EAAE,EAAE,KAAK,EAAE;YAChB,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;SAC7B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,kBAAkB,CACtB,MAAc,EACd,KAAa;QAEb,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YAC1C,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;YAC5B,IAAI,EAAE,KAAK;SACZ,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAA2B;QACtC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,IAAU;QAC9B,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAA,kBAAQ,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF,CAAA;AAjDY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,yCAAkB,CAAC,CAAA;qCACR,oBAAU;QACd,yCAAkB;GAJlC,0BAA0B,CAiDtC"}
@@ -0,0 +1,18 @@
1
+ import { Repository } from 'typeorm';
2
+ import { OAuthAuditLog } from '../../../domain/entities/oauth-audit-log';
3
+ import { OAuthAuditLogRepository } from '../../../domain/repositories/oauth-audit-log.repository';
4
+ import { OAuthAuditLogEntity } from '../entities/oauth-audit-log.entity';
5
+ import { OAuthAuditLogMapper } from '../mappers/oauth-audit-log.mapper';
6
+ export declare class OAuthAuditLogRepositoryImpl implements OAuthAuditLogRepository {
7
+ private readonly repository;
8
+ private readonly mapper;
9
+ constructor(repository: Repository<OAuthAuditLogEntity>, mapper: OAuthAuditLogMapper);
10
+ findById(id: number): Promise<OAuthAuditLog | null>;
11
+ findByUserId(userId: number): Promise<OAuthAuditLog[]>;
12
+ findByAction(action: string): Promise<OAuthAuditLog[]>;
13
+ findByResource(resource: string): Promise<OAuthAuditLog[]>;
14
+ findRecentByUserId(userId: number, limit: number): Promise<OAuthAuditLog[]>;
15
+ create(data: Partial<OAuthAuditLog>): Promise<OAuthAuditLog>;
16
+ deleteOlderThan(date: Date): Promise<void>;
17
+ }
18
+ //# sourceMappingURL=oauth-audit-log.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth-audit-log.repository.d.ts","sourceRoot":"","sources":["../../../../../../src/server/auth/infrastructure/persistence/repositories/oauth-audit-log.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,UAAU,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,qBACa,2BAA4B,YAAW,uBAAuB;IAGvE,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,UAAU,EAAE,UAAU,CAAC,mBAAmB,CAAC,EAC3C,MAAM,EAAE,mBAAmB;IAGxC,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAKnD,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAQtD,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAQtD,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAQ1D,kBAAkB,CACtB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,aAAa,EAAE,CAAC;IASrB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC;IAM5D,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjD"}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OAuthAuditLogRepositoryImpl = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const typeorm_1 = require("@nestjs/typeorm");
18
+ const typeorm_2 = require("typeorm");
19
+ const oauth_audit_log_entity_1 = require("../entities/oauth-audit-log.entity");
20
+ const oauth_audit_log_mapper_1 = require("../mappers/oauth-audit-log.mapper");
21
+ let OAuthAuditLogRepositoryImpl = class OAuthAuditLogRepositoryImpl {
22
+ repository;
23
+ mapper;
24
+ constructor(repository, mapper) {
25
+ this.repository = repository;
26
+ this.mapper = mapper;
27
+ }
28
+ async findById(id) {
29
+ const entity = await this.repository.findOne({ where: { id } });
30
+ return this.mapper.toDomain(entity);
31
+ }
32
+ async findByUserId(userId) {
33
+ const entities = await this.repository.find({
34
+ where: { userId },
35
+ order: { createdAt: 'DESC' },
36
+ });
37
+ return this.mapper.toDomainList(entities);
38
+ }
39
+ async findByAction(action) {
40
+ const entities = await this.repository.find({
41
+ where: { action },
42
+ order: { createdAt: 'DESC' },
43
+ });
44
+ return this.mapper.toDomainList(entities);
45
+ }
46
+ async findByResource(resource) {
47
+ const entities = await this.repository.find({
48
+ where: { resource },
49
+ order: { createdAt: 'DESC' },
50
+ });
51
+ return this.mapper.toDomainList(entities);
52
+ }
53
+ async findRecentByUserId(userId, limit) {
54
+ const entities = await this.repository.find({
55
+ where: { userId },
56
+ order: { createdAt: 'DESC' },
57
+ take: limit,
58
+ });
59
+ return this.mapper.toDomainList(entities);
60
+ }
61
+ async create(data) {
62
+ const entity = this.repository.create(data);
63
+ const saved = await this.repository.save(entity);
64
+ return this.mapper.toDomain(saved);
65
+ }
66
+ async deleteOlderThan(date) {
67
+ await this.repository.delete({ createdAt: (0, typeorm_2.LessThan)(date) });
68
+ }
69
+ };
70
+ exports.OAuthAuditLogRepositoryImpl = OAuthAuditLogRepositoryImpl;
71
+ exports.OAuthAuditLogRepositoryImpl = OAuthAuditLogRepositoryImpl = __decorate([
72
+ (0, common_1.Injectable)(),
73
+ __param(0, (0, typeorm_1.InjectRepository)(oauth_audit_log_entity_1.OAuthAuditLogEntity)),
74
+ __metadata("design:paramtypes", [typeorm_2.Repository,
75
+ oauth_audit_log_mapper_1.OAuthAuditLogMapper])
76
+ ], OAuthAuditLogRepositoryImpl);
77
+ //# sourceMappingURL=oauth-audit-log.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth-audit-log.repository.js","sourceRoot":"","sources":["../../../../../../src/server/auth/infrastructure/persistence/repositories/oauth-audit-log.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAA+C;AAI/C,+EAAyE;AACzE,8EAAwE;AAGjE,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAGnB;IACA;IAHnB,YAEmB,UAA2C,EAC3C,MAA2B;QAD3B,eAAU,GAAV,UAAU,CAAiC;QAC3C,WAAM,GAAN,MAAM,CAAqB;IAC3C,CAAC;IAEJ,KAAK,CAAC,QAAQ,CAAC,EAAU;QACvB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,MAAc;QAC/B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YAC1C,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;SAC7B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,MAAc;QAC/B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YAC1C,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;SAC7B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,QAAgB;QACnC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YAC1C,KAAK,EAAE,EAAE,QAAQ,EAAE;YACnB,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;SAC7B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,kBAAkB,CACtB,MAAc,EACd,KAAa;QAEb,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YAC1C,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;YAC5B,IAAI,EAAE,KAAK;SACZ,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAA4B;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,IAAU;QAC9B,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAA,kBAAQ,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF,CAAA;AAzDY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,4CAAmB,CAAC,CAAA;qCACT,oBAAU;QACd,4CAAmB;GAJnC,2BAA2B,CAyDvC"}
@@ -0,0 +1,18 @@
1
+ import { Repository } from 'typeorm';
2
+ import { OAuthAuthorizationCode } from '../../../domain/entities/oauth-authorization-code';
3
+ import { OAuthAuthorizationCodeRepository } from '../../../domain/repositories/oauth-authorization-code.repository';
4
+ import { OAuthAuthorizationCodeEntity } from '../entities/oauth-authorization-code.entity';
5
+ import { OAuthAuthorizationCodeMapper } from '../mappers/oauth-authorization-code.mapper';
6
+ export declare class OAuthAuthorizationCodeRepositoryImpl implements OAuthAuthorizationCodeRepository {
7
+ private readonly repository;
8
+ private readonly mapper;
9
+ constructor(repository: Repository<OAuthAuthorizationCodeEntity>, mapper: OAuthAuthorizationCodeMapper);
10
+ findById(id: number): Promise<OAuthAuthorizationCode | null>;
11
+ findByCode(code: string): Promise<OAuthAuthorizationCode | null>;
12
+ findByUserId(userId: number): Promise<OAuthAuthorizationCode[]>;
13
+ create(data: Partial<OAuthAuthorizationCode>): Promise<OAuthAuthorizationCode>;
14
+ save(authCode: OAuthAuthorizationCode): Promise<OAuthAuthorizationCode>;
15
+ delete(id: number): Promise<void>;
16
+ deleteExpired(): Promise<void>;
17
+ }
18
+ //# sourceMappingURL=oauth-authorization-code.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth-authorization-code.repository.d.ts","sourceRoot":"","sources":["../../../../../../src/server/auth/infrastructure/persistence/repositories/oauth-authorization-code.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,UAAU,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,kEAAkE,CAAC;AACpH,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAE1F,qBACa,oCACX,YAAW,gCAAgC;IAIzC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,UAAU,EAAE,UAAU,CAAC,4BAA4B,CAAC,EACpD,MAAM,EAAE,4BAA4B;IAGjD,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC;IAK5D,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC;IAKhE,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC;IAK/D,MAAM,CACV,IAAI,EAAE,OAAO,CAAC,sBAAsB,CAAC,GACpC,OAAO,CAAC,sBAAsB,CAAC;IAM5B,IAAI,CACR,QAAQ,EAAE,sBAAsB,GAC/B,OAAO,CAAC,sBAAsB,CAAC;IAM5B,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjC,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;CAGrC"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OAuthAuthorizationCodeRepositoryImpl = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const typeorm_1 = require("@nestjs/typeorm");
18
+ const typeorm_2 = require("typeorm");
19
+ const oauth_authorization_code_entity_1 = require("../entities/oauth-authorization-code.entity");
20
+ const oauth_authorization_code_mapper_1 = require("../mappers/oauth-authorization-code.mapper");
21
+ let OAuthAuthorizationCodeRepositoryImpl = class OAuthAuthorizationCodeRepositoryImpl {
22
+ repository;
23
+ mapper;
24
+ constructor(repository, mapper) {
25
+ this.repository = repository;
26
+ this.mapper = mapper;
27
+ }
28
+ async findById(id) {
29
+ const entity = await this.repository.findOne({ where: { id } });
30
+ return this.mapper.toDomain(entity);
31
+ }
32
+ async findByCode(code) {
33
+ const entity = await this.repository.findOne({ where: { code } });
34
+ return this.mapper.toDomain(entity);
35
+ }
36
+ async findByUserId(userId) {
37
+ const entities = await this.repository.find({ where: { userId } });
38
+ return this.mapper.toDomainList(entities);
39
+ }
40
+ async create(data) {
41
+ const entity = this.repository.create(data);
42
+ const saved = await this.repository.save(entity);
43
+ return this.mapper.toDomain(saved);
44
+ }
45
+ async save(authCode) {
46
+ const entity = this.mapper.toEntity(authCode);
47
+ const saved = await this.repository.save(entity);
48
+ return this.mapper.toDomain(saved);
49
+ }
50
+ async delete(id) {
51
+ await this.repository.delete(id);
52
+ }
53
+ async deleteExpired() {
54
+ await this.repository.delete({ expiresAt: (0, typeorm_2.LessThan)(new Date()) });
55
+ }
56
+ };
57
+ exports.OAuthAuthorizationCodeRepositoryImpl = OAuthAuthorizationCodeRepositoryImpl;
58
+ exports.OAuthAuthorizationCodeRepositoryImpl = OAuthAuthorizationCodeRepositoryImpl = __decorate([
59
+ (0, common_1.Injectable)(),
60
+ __param(0, (0, typeorm_1.InjectRepository)(oauth_authorization_code_entity_1.OAuthAuthorizationCodeEntity)),
61
+ __metadata("design:paramtypes", [typeorm_2.Repository,
62
+ oauth_authorization_code_mapper_1.OAuthAuthorizationCodeMapper])
63
+ ], OAuthAuthorizationCodeRepositoryImpl);
64
+ //# sourceMappingURL=oauth-authorization-code.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth-authorization-code.repository.js","sourceRoot":"","sources":["../../../../../../src/server/auth/infrastructure/persistence/repositories/oauth-authorization-code.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAA+C;AAI/C,iGAA2F;AAC3F,gGAA0F;AAGnF,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC;IAK5B;IACA;IAHnB,YAEmB,UAAoD,EACpD,MAAoC;QADpC,eAAU,GAAV,UAAU,CAA0C;QACpD,WAAM,GAAN,MAAM,CAA8B;IACpD,CAAC;IAEJ,KAAK,CAAC,QAAQ,CAAC,EAAU;QACvB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,IAAY;QAC3B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QAClE,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,MAAc;QAC/B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,MAAM,CACV,IAAqC;QAErC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,IAAI,CACR,QAAgC;QAEhC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC9C,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAA,kBAAQ,EAAC,IAAI,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;IACpE,CAAC;CACF,CAAA;AA/CY,oFAAoC;+CAApC,oCAAoC;IADhD,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,0BAAgB,EAAC,8DAA4B,CAAC,CAAA;qCAClB,oBAAU;QACd,8DAA4B;GAN5C,oCAAoC,CA+ChD"}
@@ -0,0 +1,18 @@
1
+ import { Repository } from 'typeorm';
2
+ import { OAuthClientConsent } from '../../../domain/entities/oauth-client-consent';
3
+ import { OAuthClientConsentRepository } from '../../../domain/repositories/oauth-client-consent.repository';
4
+ import { OAuthClientConsentEntity } from '../entities/oauth-client-consent.entity';
5
+ import { OAuthClientConsentMapper } from '../mappers/oauth-client-consent.mapper';
6
+ export declare class OAuthClientConsentRepositoryImpl implements OAuthClientConsentRepository {
7
+ private readonly repository;
8
+ private readonly mapper;
9
+ constructor(repository: Repository<OAuthClientConsentEntity>, mapper: OAuthClientConsentMapper);
10
+ findById(id: number): Promise<OAuthClientConsent | null>;
11
+ findByUserIdAndClientId(userId: number, clientId: number): Promise<OAuthClientConsent | null>;
12
+ findByUserId(userId: number): Promise<OAuthClientConsent[]>;
13
+ create(data: Partial<OAuthClientConsent>): Promise<OAuthClientConsent>;
14
+ save(consent: OAuthClientConsent): Promise<OAuthClientConsent>;
15
+ delete(id: number): Promise<void>;
16
+ deleteByUserIdAndClientId(userId: number, clientId: number): Promise<void>;
17
+ }
18
+ //# sourceMappingURL=oauth-client-consent.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth-client-consent.repository.d.ts","sourceRoot":"","sources":["../../../../../../src/server/auth/infrastructure/persistence/repositories/oauth-client-consent.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,8DAA8D,CAAC;AAC5G,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAElF,qBACa,gCACX,YAAW,4BAA4B;IAIrC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,UAAU,EAAE,UAAU,CAAC,wBAAwB,CAAC,EAChD,MAAM,EAAE,wBAAwB;IAG7C,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAKxD,uBAAuB,CAC3B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAO/B,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAK3D,MAAM,CACV,IAAI,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAChC,OAAO,CAAC,kBAAkB,CAAC;IAMxB,IAAI,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAM9D,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjC,yBAAyB,CAC7B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC;CAGjB"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OAuthClientConsentRepositoryImpl = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const typeorm_1 = require("@nestjs/typeorm");
18
+ const typeorm_2 = require("typeorm");
19
+ const oauth_client_consent_entity_1 = require("../entities/oauth-client-consent.entity");
20
+ const oauth_client_consent_mapper_1 = require("../mappers/oauth-client-consent.mapper");
21
+ let OAuthClientConsentRepositoryImpl = class OAuthClientConsentRepositoryImpl {
22
+ repository;
23
+ mapper;
24
+ constructor(repository, mapper) {
25
+ this.repository = repository;
26
+ this.mapper = mapper;
27
+ }
28
+ async findById(id) {
29
+ const entity = await this.repository.findOne({ where: { id } });
30
+ return this.mapper.toDomain(entity);
31
+ }
32
+ async findByUserIdAndClientId(userId, clientId) {
33
+ const entity = await this.repository.findOne({
34
+ where: { userId, clientId },
35
+ });
36
+ return this.mapper.toDomain(entity);
37
+ }
38
+ async findByUserId(userId) {
39
+ const entities = await this.repository.find({ where: { userId } });
40
+ return this.mapper.toDomainList(entities);
41
+ }
42
+ async create(data) {
43
+ const entity = this.repository.create(data);
44
+ const saved = await this.repository.save(entity);
45
+ return this.mapper.toDomain(saved);
46
+ }
47
+ async save(consent) {
48
+ const entity = this.mapper.toEntity(consent);
49
+ const saved = await this.repository.save(entity);
50
+ return this.mapper.toDomain(saved);
51
+ }
52
+ async delete(id) {
53
+ await this.repository.delete(id);
54
+ }
55
+ async deleteByUserIdAndClientId(userId, clientId) {
56
+ await this.repository.delete({ userId, clientId });
57
+ }
58
+ };
59
+ exports.OAuthClientConsentRepositoryImpl = OAuthClientConsentRepositoryImpl;
60
+ exports.OAuthClientConsentRepositoryImpl = OAuthClientConsentRepositoryImpl = __decorate([
61
+ (0, common_1.Injectable)(),
62
+ __param(0, (0, typeorm_1.InjectRepository)(oauth_client_consent_entity_1.OAuthClientConsentEntity)),
63
+ __metadata("design:paramtypes", [typeorm_2.Repository,
64
+ oauth_client_consent_mapper_1.OAuthClientConsentMapper])
65
+ ], OAuthClientConsentRepositoryImpl);
66
+ //# sourceMappingURL=oauth-client-consent.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth-client-consent.repository.js","sourceRoot":"","sources":["../../../../../../src/server/auth/infrastructure/persistence/repositories/oauth-client-consent.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAqC;AAIrC,yFAAmF;AACnF,wFAAkF;AAG3E,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;IAKxB;IACA;IAHnB,YAEmB,UAAgD,EAChD,MAAgC;QADhC,eAAU,GAAV,UAAU,CAAsC;QAChD,WAAM,GAAN,MAAM,CAA0B;IAChD,CAAC;IAEJ,KAAK,CAAC,QAAQ,CAAC,EAAU;QACvB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,uBAAuB,CAC3B,MAAc,EACd,QAAgB;QAEhB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;YAC3C,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;SAC5B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,MAAc;QAC/B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,MAAM,CACV,IAAiC;QAEjC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,OAA2B;QACpC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC7C,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,yBAAyB,CAC7B,MAAc,EACd,QAAgB;QAEhB,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACrD,CAAC;CACF,CAAA;AArDY,4EAAgC;2CAAhC,gCAAgC;IAD5C,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,0BAAgB,EAAC,sDAAwB,CAAC,CAAA;qCACd,oBAAU;QACd,sDAAwB;GANxC,gCAAgC,CAqD5C"}
@@ -0,0 +1,18 @@
1
+ import { Repository } from 'typeorm';
2
+ import { OAuthClient } from '../../../domain/entities/oauth-client';
3
+ import { OAuthClientRepository } from '../../../domain/repositories/oauth-client.repository';
4
+ import { OAuthClientEntity } from '../entities/oauth-client.entity';
5
+ import { OAuthClientMapper } from '../mappers/oauth-client.mapper';
6
+ export declare class OAuthClientRepositoryImpl implements OAuthClientRepository {
7
+ private readonly repository;
8
+ private readonly mapper;
9
+ constructor(repository: Repository<OAuthClientEntity>, mapper: OAuthClientMapper);
10
+ findById(id: number): Promise<OAuthClient | null>;
11
+ findByClientCode(clientCode: string): Promise<OAuthClient | null>;
12
+ findAll(): Promise<OAuthClient[]>;
13
+ create(data: Partial<OAuthClient>): Promise<OAuthClient>;
14
+ update(id: number, data: Partial<OAuthClient>): Promise<OAuthClient>;
15
+ save(client: OAuthClient): Promise<OAuthClient>;
16
+ delete(id: number): Promise<void>;
17
+ }
18
+ //# sourceMappingURL=oauth-client.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth-client.repository.d.ts","sourceRoot":"","sources":["../../../../../../src/server/auth/infrastructure/persistence/repositories/oauth-client.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,qBACa,yBAA0B,YAAW,qBAAqB;IAGnE,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,UAAU,EAAE,UAAU,CAAC,iBAAiB,CAAC,EACzC,MAAM,EAAE,iBAAiB;IAGtC,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAKjD,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAKjE,OAAO,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAKjC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;IAMxD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;IAKpE,IAAI,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAM/C,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGxC"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OAuthClientRepositoryImpl = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const typeorm_1 = require("@nestjs/typeorm");
18
+ const typeorm_2 = require("typeorm");
19
+ const oauth_client_entity_1 = require("../entities/oauth-client.entity");
20
+ const oauth_client_mapper_1 = require("../mappers/oauth-client.mapper");
21
+ let OAuthClientRepositoryImpl = class OAuthClientRepositoryImpl {
22
+ repository;
23
+ mapper;
24
+ constructor(repository, mapper) {
25
+ this.repository = repository;
26
+ this.mapper = mapper;
27
+ }
28
+ async findById(id) {
29
+ const entity = await this.repository.findOne({ where: { id } });
30
+ return this.mapper.toDomain(entity);
31
+ }
32
+ async findByClientCode(clientCode) {
33
+ const entity = await this.repository.findOne({ where: { clientCode } });
34
+ return this.mapper.toDomain(entity);
35
+ }
36
+ async findAll() {
37
+ const entities = await this.repository.find();
38
+ return this.mapper.toDomainList(entities);
39
+ }
40
+ async create(data) {
41
+ const entity = this.repository.create(data);
42
+ const saved = await this.repository.save(entity);
43
+ return this.mapper.toDomain(saved);
44
+ }
45
+ async update(id, data) {
46
+ await this.repository.update(id, data);
47
+ return this.findById(id);
48
+ }
49
+ async save(client) {
50
+ const entity = this.mapper.toEntity(client);
51
+ const saved = await this.repository.save(entity);
52
+ return this.mapper.toDomain(saved);
53
+ }
54
+ async delete(id) {
55
+ await this.repository.delete(id);
56
+ }
57
+ };
58
+ exports.OAuthClientRepositoryImpl = OAuthClientRepositoryImpl;
59
+ exports.OAuthClientRepositoryImpl = OAuthClientRepositoryImpl = __decorate([
60
+ (0, common_1.Injectable)(),
61
+ __param(0, (0, typeorm_1.InjectRepository)(oauth_client_entity_1.OAuthClientEntity)),
62
+ __metadata("design:paramtypes", [typeorm_2.Repository,
63
+ oauth_client_mapper_1.OAuthClientMapper])
64
+ ], OAuthClientRepositoryImpl);
65
+ //# sourceMappingURL=oauth-client.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth-client.repository.js","sourceRoot":"","sources":["../../../../../../src/server/auth/infrastructure/persistence/repositories/oauth-client.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAqC;AAIrC,yEAAoE;AACpE,wEAAmE;AAG5D,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAGjB;IACA;IAHnB,YAEmB,UAAyC,EACzC,MAAyB;QADzB,eAAU,GAAV,UAAU,CAA+B;QACzC,WAAM,GAAN,MAAM,CAAmB;IACzC,CAAC;IAEJ,KAAK,CAAC,QAAQ,CAAC,EAAU;QACvB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,UAAkB;QACvC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;QACxE,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAA0B;QACrC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,IAA0B;QACjD,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QACvC,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,MAAmB;QAC5B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC5C,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;CACF,CAAA;AA1CY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,uCAAiB,CAAC,CAAA;qCACP,oBAAU;QACd,uCAAiB;GAJjC,yBAAyB,CA0CrC"}
@@ -0,0 +1,19 @@
1
+ import { Repository } from 'typeorm';
2
+ import { OAuthScope } from '../../../domain/entities/oauth-scope';
3
+ import { OAuthScopeRepository } from '../../../domain/repositories/oauth-scope.repository';
4
+ import { OAuthScopeEntity } from '../entities/oauth-scope.entity';
5
+ import { OAuthScopeMapper } from '../mappers/oauth-scope.mapper';
6
+ export declare class OAuthScopeRepositoryImpl implements OAuthScopeRepository {
7
+ private readonly repository;
8
+ private readonly mapper;
9
+ constructor(repository: Repository<OAuthScopeEntity>, mapper: OAuthScopeMapper);
10
+ findById(id: number): Promise<OAuthScope | null>;
11
+ findByName(name: string): Promise<OAuthScope | null>;
12
+ findAll(): Promise<OAuthScope[]>;
13
+ findByNames(names: string[]): Promise<OAuthScope[]>;
14
+ create(data: Partial<OAuthScope>): Promise<OAuthScope>;
15
+ update(id: number, data: Partial<OAuthScope>): Promise<OAuthScope>;
16
+ save(scope: OAuthScope): Promise<OAuthScope>;
17
+ delete(id: number): Promise<void>;
18
+ }
19
+ //# sourceMappingURL=oauth-scope.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth-scope.repository.d.ts","sourceRoot":"","sources":["../../../../../../src/server/auth/infrastructure/persistence/repositories/oauth-scope.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAM,UAAU,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,qBACa,wBAAyB,YAAW,oBAAoB;IAGjE,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,UAAU,EAAE,UAAU,CAAC,gBAAgB,CAAC,EACxC,MAAM,EAAE,gBAAgB;IAGrC,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IAKhD,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IAKpD,OAAO,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAKhC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAKnD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IAMtD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IAKlE,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IAM5C,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGxC"}