@daffodil/auth 0.66.1 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/{esm2020 → esm2022}/driver/in-memory/backend/auth.service.mjs +4 -4
  2. package/{esm2020 → esm2022}/driver/in-memory/drivers/auth/auth.service.mjs +5 -5
  3. package/{esm2020 → esm2022}/driver/in-memory/drivers/auth-driver.module.mjs +5 -5
  4. package/{esm2020 → esm2022}/driver/in-memory/drivers/login/login.service.mjs +5 -5
  5. package/{esm2020 → esm2022}/driver/in-memory/drivers/register/register.service.mjs +5 -5
  6. package/{esm2020 → esm2022}/driver/in-memory/drivers/reset-password/service.mjs +5 -5
  7. package/{esm2020 → esm2022}/driver/magento/apollo-bearer-token-link-generator.mjs +5 -5
  8. package/{esm2020 → esm2022}/driver/magento/auth-driver.module.mjs +5 -5
  9. package/{esm2020 → esm2022}/driver/magento/auth.service.mjs +5 -5
  10. package/{esm2020 → esm2022}/driver/magento/login.service.mjs +5 -5
  11. package/{esm2020 → esm2022}/driver/magento/register.service.mjs +5 -5
  12. package/{esm2020 → esm2022}/driver/magento/reset-password.service.mjs +5 -5
  13. package/{esm2020 → esm2022}/driver/magento/transforms/auth-transformer.service.mjs +4 -4
  14. package/{esm2020 → esm2022}/driver/services/auth-check.service.mjs +6 -6
  15. package/{esm2020 → esm2022}/driver/testing/drivers/auth/auth.service.mjs +4 -4
  16. package/{esm2020 → esm2022}/driver/testing/drivers/auth-driver.module.mjs +5 -5
  17. package/{esm2020 → esm2022}/driver/testing/drivers/login/login.service.mjs +5 -5
  18. package/{esm2020 → esm2022}/driver/testing/drivers/register/register.service.mjs +5 -5
  19. package/{esm2020 → esm2022}/driver/testing/drivers/reset-password/service.mjs +5 -5
  20. package/{esm2020 → esm2022}/routing/effects/redirect.effects.mjs +6 -6
  21. package/{esm2020 → esm2022}/routing/guards/guest-only.guard.mjs +7 -7
  22. package/{esm2020 → esm2022}/routing/guards/member-only.guard.mjs +7 -7
  23. package/{esm2020 → esm2022}/routing/guards/reset-password.guard.mjs +6 -6
  24. package/{esm2020 → esm2022}/routing/module.mjs +9 -9
  25. package/esm2022/routing/redirect.module.mjs +40 -0
  26. package/esm2022/state/auth-state.module.mjs +88 -0
  27. package/{esm2020 → esm2022}/state/effects/auth.effects.mjs +6 -6
  28. package/{esm2020 → esm2022}/state/effects/login.effects.mjs +6 -6
  29. package/{esm2020 → esm2022}/state/effects/register.effects.mjs +6 -6
  30. package/{esm2020 → esm2022}/state/effects/reset-password.effects.mjs +6 -6
  31. package/{esm2020 → esm2022}/state/facades/auth/facade.mjs +5 -5
  32. package/{esm2020 → esm2022}/state/facades/login/facade.mjs +5 -5
  33. package/{esm2020 → esm2022}/state/facades/register/facade.mjs +5 -5
  34. package/{esm2020 → esm2022}/state/facades/reset-password/facade.mjs +5 -5
  35. package/{esm2020 → esm2022}/state/testing/auth-testing.module.mjs +10 -10
  36. package/{esm2020 → esm2022}/state/testing/mock-auth-facade.mjs +4 -4
  37. package/{esm2020 → esm2022}/state/testing/mock-login-facade.mjs +4 -4
  38. package/{esm2020 → esm2022}/state/testing/mock-register-facade.mjs +4 -4
  39. package/{esm2020 → esm2022}/state/testing/mock-reset-password-facade.mjs +4 -4
  40. package/{esm2020 → esm2022}/storage/auth-storage.service.mjs +6 -6
  41. package/{esm2020 → esm2022}/testing/factories/account-registration.factory.mjs +5 -5
  42. package/{esm2020 → esm2022}/testing/factories/auth-token.factory.mjs +5 -5
  43. package/{esm2020 → esm2022}/testing/factories/reset-password-info.factory.mjs +5 -5
  44. package/{fesm2020 → fesm2022}/daffodil-auth-driver-in-memory.mjs +23 -23
  45. package/{fesm2020 → fesm2022}/daffodil-auth-driver-in-memory.mjs.map +1 -1
  46. package/{fesm2020 → fesm2022}/daffodil-auth-driver-magento.mjs +27 -27
  47. package/{fesm2020 → fesm2022}/daffodil-auth-driver-magento.mjs.map +1 -1
  48. package/{fesm2020 → fesm2022}/daffodil-auth-driver-testing.mjs +19 -19
  49. package/{fesm2020 → fesm2022}/daffodil-auth-driver-testing.mjs.map +1 -1
  50. package/{fesm2020 → fesm2022}/daffodil-auth-driver.mjs +5 -5
  51. package/{fesm2020 → fesm2022}/daffodil-auth-driver.mjs.map +1 -1
  52. package/{fesm2020 → fesm2022}/daffodil-auth-routing.mjs +40 -40
  53. package/fesm2022/daffodil-auth-routing.mjs.map +1 -0
  54. package/fesm2022/daffodil-auth-state-testing.mjs +107 -0
  55. package/{fesm2020 → fesm2022}/daffodil-auth-state-testing.mjs.map +1 -1
  56. package/{fesm2020 → fesm2022}/daffodil-auth-state.mjs +64 -64
  57. package/{fesm2020 → fesm2022}/daffodil-auth-state.mjs.map +1 -1
  58. package/{fesm2020 → fesm2022}/daffodil-auth-testing.mjs +12 -12
  59. package/{fesm2020 → fesm2022}/daffodil-auth-testing.mjs.map +1 -1
  60. package/{fesm2020 → fesm2022}/daffodil-auth.mjs +5 -5
  61. package/{fesm2020 → fesm2022}/daffodil-auth.mjs.map +1 -1
  62. package/package.json +1 -1
  63. package/routing/guards/guest-only.guard.d.ts +2 -2
  64. package/routing/guards/member-only.guard.d.ts +2 -2
  65. package/routing/guards/reset-password.guard.d.ts +2 -2
  66. package/state/actions/auth.actions.d.ts +1 -1
  67. package/state/actions/login.actions.d.ts +1 -1
  68. package/state/actions/register.actions.d.ts +1 -1
  69. package/state/actions/reset-password.actions.d.ts +1 -1
  70. package/state/injection-tokens/unauthenticated/hook.type.d.ts +1 -1
  71. package/state/reducers/login/login-reducer-state.interface.d.ts +1 -1
  72. package/state/reducers/register/register-reducer-state.interface.d.ts +1 -1
  73. package/esm2020/routing/redirect.module.mjs +0 -40
  74. package/esm2020/state/auth-state.module.mjs +0 -88
  75. package/fesm2015/daffodil-auth-driver-in-memory.mjs +0 -256
  76. package/fesm2015/daffodil-auth-driver-in-memory.mjs.map +0 -1
  77. package/fesm2015/daffodil-auth-driver-magento.mjs +0 -372
  78. package/fesm2015/daffodil-auth-driver-magento.mjs.map +0 -1
  79. package/fesm2015/daffodil-auth-driver-testing.mjs +0 -139
  80. package/fesm2015/daffodil-auth-driver-testing.mjs.map +0 -1
  81. package/fesm2015/daffodil-auth-driver.mjs +0 -119
  82. package/fesm2015/daffodil-auth-driver.mjs.map +0 -1
  83. package/fesm2015/daffodil-auth-routing.mjs +0 -262
  84. package/fesm2015/daffodil-auth-routing.mjs.map +0 -1
  85. package/fesm2015/daffodil-auth-state-testing.mjs +0 -107
  86. package/fesm2015/daffodil-auth-state-testing.mjs.map +0 -1
  87. package/fesm2015/daffodil-auth-state.mjs +0 -853
  88. package/fesm2015/daffodil-auth-state.mjs.map +0 -1
  89. package/fesm2015/daffodil-auth-testing.mjs +0 -77
  90. package/fesm2015/daffodil-auth-testing.mjs.map +0 -1
  91. package/fesm2015/daffodil-auth.mjs +0 -63
  92. package/fesm2015/daffodil-auth.mjs.map +0 -1
  93. package/fesm2020/daffodil-auth-routing.mjs.map +0 -1
  94. package/fesm2020/daffodil-auth-state-testing.mjs +0 -107
  95. /package/{esm2020 → esm2022}/daffodil-auth.mjs +0 -0
  96. /package/{esm2020 → esm2022}/driver/constants/public_api.mjs +0 -0
  97. /package/{esm2020 → esm2022}/driver/constants/unauthenticated-error-codes.mjs +0 -0
  98. /package/{esm2020 → esm2022}/driver/daffodil-auth-driver.mjs +0 -0
  99. /package/{esm2020 → esm2022}/driver/errors/authentication-failed.mjs +0 -0
  100. /package/{esm2020 → esm2022}/driver/errors/codes.enum.mjs +0 -0
  101. /package/{esm2020 → esm2022}/driver/errors/invalid-api-response.mjs +0 -0
  102. /package/{esm2020 → esm2022}/driver/errors/map.mjs +0 -0
  103. /package/{esm2020 → esm2022}/driver/errors/public_api.mjs +0 -0
  104. /package/{esm2020 → esm2022}/driver/errors/registration-failed.mjs +0 -0
  105. /package/{esm2020 → esm2022}/driver/errors/unauthorized.mjs +0 -0
  106. /package/{esm2020 → esm2022}/driver/in-memory/daffodil-auth-driver-in-memory.mjs +0 -0
  107. /package/{esm2020 → esm2022}/driver/in-memory/drivers/public_api.mjs +0 -0
  108. /package/{esm2020 → esm2022}/driver/in-memory/index.mjs +0 -0
  109. /package/{esm2020 → esm2022}/driver/in-memory/models/db-customer.type.mjs +0 -0
  110. /package/{esm2020 → esm2022}/driver/in-memory/public_api.mjs +0 -0
  111. /package/{esm2020 → esm2022}/driver/index.mjs +0 -0
  112. /package/{esm2020 → esm2022}/driver/interfaces/auth-service.interface.mjs +0 -0
  113. /package/{esm2020 → esm2022}/driver/interfaces/login-service.interface.mjs +0 -0
  114. /package/{esm2020 → esm2022}/driver/interfaces/public_api.mjs +0 -0
  115. /package/{esm2020 → esm2022}/driver/interfaces/register-service.interface.mjs +0 -0
  116. /package/{esm2020 → esm2022}/driver/interfaces/reset-password-service.interface.mjs +0 -0
  117. /package/{esm2020 → esm2022}/driver/magento/daffodil-auth-driver-magento.mjs +0 -0
  118. /package/{esm2020 → esm2022}/driver/magento/errors/codes.mjs +0 -0
  119. /package/{esm2020 → esm2022}/driver/magento/errors/map.mjs +0 -0
  120. /package/{esm2020 → esm2022}/driver/magento/errors/transform.mjs +0 -0
  121. /package/{esm2020 → esm2022}/driver/magento/index.mjs +0 -0
  122. /package/{esm2020 → esm2022}/driver/magento/models/public_api.mjs +0 -0
  123. /package/{esm2020 → esm2022}/driver/magento/models/response/auth.mjs +0 -0
  124. /package/{esm2020 → esm2022}/driver/magento/models/response/register.type.mjs +0 -0
  125. /package/{esm2020 → esm2022}/driver/magento/models/response/reset-password.type.mjs +0 -0
  126. /package/{esm2020 → esm2022}/driver/magento/models/response/send-reset-email.type.mjs +0 -0
  127. /package/{esm2020 → esm2022}/driver/magento/public_api.mjs +0 -0
  128. /package/{esm2020 → esm2022}/driver/magento/queries/check-token.mjs +0 -0
  129. /package/{esm2020 → esm2022}/driver/magento/queries/create-customer.mjs +0 -0
  130. /package/{esm2020 → esm2022}/driver/magento/queries/generate-token.mjs +0 -0
  131. /package/{esm2020 → esm2022}/driver/magento/queries/public_api.mjs +0 -0
  132. /package/{esm2020 → esm2022}/driver/magento/queries/reset-password.mjs +0 -0
  133. /package/{esm2020 → esm2022}/driver/magento/queries/responses/check-token-response.mjs +0 -0
  134. /package/{esm2020 → esm2022}/driver/magento/queries/responses/generate-token-response.mjs +0 -0
  135. /package/{esm2020 → esm2022}/driver/magento/queries/responses/public_api.mjs +0 -0
  136. /package/{esm2020 → esm2022}/driver/magento/queries/responses/revoke-customer-token-response.mjs +0 -0
  137. /package/{esm2020 → esm2022}/driver/magento/queries/revoke-customer-token.mjs +0 -0
  138. /package/{esm2020 → esm2022}/driver/magento/queries/send-reset-email.mjs +0 -0
  139. /package/{esm2020 → esm2022}/driver/magento/validators/check-token.mjs +0 -0
  140. /package/{esm2020 → esm2022}/driver/magento/validators/generate-token.mjs +0 -0
  141. /package/{esm2020 → esm2022}/driver/magento/validators/public_api.mjs +0 -0
  142. /package/{esm2020 → esm2022}/driver/magento/validators/reset-password.mjs +0 -0
  143. /package/{esm2020 → esm2022}/driver/magento/validators/revoke-token.mjs +0 -0
  144. /package/{esm2020 → esm2022}/driver/magento/validators/send-reset-email.mjs +0 -0
  145. /package/{esm2020 → esm2022}/driver/public_api.mjs +0 -0
  146. /package/{esm2020 → esm2022}/driver/services/public_api.mjs +0 -0
  147. /package/{esm2020 → esm2022}/driver/testing/daffodil-auth-driver-testing.mjs +0 -0
  148. /package/{esm2020 → esm2022}/driver/testing/drivers/public_api.mjs +0 -0
  149. /package/{esm2020 → esm2022}/driver/testing/index.mjs +0 -0
  150. /package/{esm2020 → esm2022}/driver/testing/public_api.mjs +0 -0
  151. /package/{esm2020 → esm2022}/errors/codes.enum.mjs +0 -0
  152. /package/{esm2020 → esm2022}/errors/map.mjs +0 -0
  153. /package/{esm2020 → esm2022}/errors/missing-token.mjs +0 -0
  154. /package/{esm2020 → esm2022}/errors/public_api.mjs +0 -0
  155. /package/{esm2020 → esm2022}/index.mjs +0 -0
  156. /package/{esm2020 → esm2022}/models/account-registration.mjs +0 -0
  157. /package/{esm2020 → esm2022}/models/auth-token.mjs +0 -0
  158. /package/{esm2020 → esm2022}/models/login-info.mjs +0 -0
  159. /package/{esm2020 → esm2022}/models/public_api.mjs +0 -0
  160. /package/{esm2020 → esm2022}/models/reset-password-info.type.mjs +0 -0
  161. /package/{esm2020 → esm2022}/public_api.mjs +0 -0
  162. /package/{esm2020 → esm2022}/routing/config/default.mjs +0 -0
  163. /package/{esm2020 → esm2022}/routing/config/interface.mjs +0 -0
  164. /package/{esm2020 → esm2022}/routing/config/public_api.mjs +0 -0
  165. /package/{esm2020 → esm2022}/routing/config/token.mjs +0 -0
  166. /package/{esm2020 → esm2022}/routing/daffodil-auth-routing.mjs +0 -0
  167. /package/{esm2020 → esm2022}/routing/guards/guest-only-guard-redirect.token.mjs +0 -0
  168. /package/{esm2020 → esm2022}/routing/guards/member-only-guard-redirect.token.mjs +0 -0
  169. /package/{esm2020 → esm2022}/routing/guards/public_api.mjs +0 -0
  170. /package/{esm2020 → esm2022}/routing/helpers/public_api.mjs +0 -0
  171. /package/{esm2020 → esm2022}/routing/helpers/redirect-unauthenticated-hook-factory.mjs +0 -0
  172. /package/{esm2020 → esm2022}/routing/index.mjs +0 -0
  173. /package/{esm2020 → esm2022}/routing/public_api.mjs +0 -0
  174. /package/{esm2020 → esm2022}/state/actions/auth.actions.mjs +0 -0
  175. /package/{esm2020 → esm2022}/state/actions/login.actions.mjs +0 -0
  176. /package/{esm2020 → esm2022}/state/actions/public_api.mjs +0 -0
  177. /package/{esm2020 → esm2022}/state/actions/register.actions.mjs +0 -0
  178. /package/{esm2020 → esm2022}/state/actions/reset-password.actions.mjs +0 -0
  179. /package/{esm2020 → esm2022}/state/config/default.mjs +0 -0
  180. /package/{esm2020 → esm2022}/state/config/public_api.mjs +0 -0
  181. /package/{esm2020 → esm2022}/state/config/token.mjs +0 -0
  182. /package/{esm2020 → esm2022}/state/config/type.mjs +0 -0
  183. /package/{esm2020 → esm2022}/state/daffodil-auth-state.mjs +0 -0
  184. /package/{esm2020 → esm2022}/state/facades/auth/facade.interface.mjs +0 -0
  185. /package/{esm2020 → esm2022}/state/facades/auth/public_api.mjs +0 -0
  186. /package/{esm2020 → esm2022}/state/facades/login/facade.interface.mjs +0 -0
  187. /package/{esm2020 → esm2022}/state/facades/login/public_api.mjs +0 -0
  188. /package/{esm2020 → esm2022}/state/facades/public_api.mjs +0 -0
  189. /package/{esm2020 → esm2022}/state/facades/register/facade.interface.mjs +0 -0
  190. /package/{esm2020 → esm2022}/state/facades/register/public_api.mjs +0 -0
  191. /package/{esm2020 → esm2022}/state/facades/reset-password/facade.interface.mjs +0 -0
  192. /package/{esm2020 → esm2022}/state/facades/reset-password/public_api.mjs +0 -0
  193. /package/{esm2020 → esm2022}/state/index.mjs +0 -0
  194. /package/{esm2020 → esm2022}/state/injection-tokens/error-matcher.token.mjs +0 -0
  195. /package/{esm2020 → esm2022}/state/injection-tokens/public_api.mjs +0 -0
  196. /package/{esm2020 → esm2022}/state/injection-tokens/unauthenticated/hook.token.mjs +0 -0
  197. /package/{esm2020 → esm2022}/state/injection-tokens/unauthenticated/hook.type.mjs +0 -0
  198. /package/{esm2020 → esm2022}/state/injection-tokens/unauthenticated/hooks.token.mjs +0 -0
  199. /package/{esm2020 → esm2022}/state/injection-tokens/unauthenticated/public_api.mjs +0 -0
  200. /package/{esm2020 → esm2022}/state/public_api.mjs +0 -0
  201. /package/{esm2020 → esm2022}/state/reducers/auth/auth-initial-state.mjs +0 -0
  202. /package/{esm2020 → esm2022}/state/reducers/auth/auth-reducer-state.interface.mjs +0 -0
  203. /package/{esm2020 → esm2022}/state/reducers/auth/auth.reducer.mjs +0 -0
  204. /package/{esm2020 → esm2022}/state/reducers/auth/public_api.mjs +0 -0
  205. /package/{esm2020 → esm2022}/state/reducers/auth-feature-state.interface.mjs +0 -0
  206. /package/{esm2020 → esm2022}/state/reducers/auth-reducers.mjs +0 -0
  207. /package/{esm2020 → esm2022}/state/reducers/auth-store-feature-key.mjs +0 -0
  208. /package/{esm2020 → esm2022}/state/reducers/login/login-initial-state.mjs +0 -0
  209. /package/{esm2020 → esm2022}/state/reducers/login/login-reducer-state.interface.mjs +0 -0
  210. /package/{esm2020 → esm2022}/state/reducers/login/login.reducer.mjs +0 -0
  211. /package/{esm2020 → esm2022}/state/reducers/login/public_api.mjs +0 -0
  212. /package/{esm2020 → esm2022}/state/reducers/public_api.mjs +0 -0
  213. /package/{esm2020 → esm2022}/state/reducers/register/public_api.mjs +0 -0
  214. /package/{esm2020 → esm2022}/state/reducers/register/register-initial-state.mjs +0 -0
  215. /package/{esm2020 → esm2022}/state/reducers/register/register-reducer-state.interface.mjs +0 -0
  216. /package/{esm2020 → esm2022}/state/reducers/register/register.reducer.mjs +0 -0
  217. /package/{esm2020 → esm2022}/state/reducers/reset-password/initial-state.mjs +0 -0
  218. /package/{esm2020 → esm2022}/state/reducers/reset-password/public_api.mjs +0 -0
  219. /package/{esm2020 → esm2022}/state/reducers/reset-password/reducer.mjs +0 -0
  220. /package/{esm2020 → esm2022}/state/reducers/reset-password/state.interface.mjs +0 -0
  221. /package/{esm2020 → esm2022}/state/reducers/token/extra.token.mjs +0 -0
  222. /package/{esm2020 → esm2022}/state/reducers/token/public_api.mjs +0 -0
  223. /package/{esm2020 → esm2022}/state/reducers/token/reducers.token.mjs +0 -0
  224. /package/{esm2020 → esm2022}/state/selectors/auth/auth.selector.mjs +0 -0
  225. /package/{esm2020 → esm2022}/state/selectors/auth-all.selector.mjs +0 -0
  226. /package/{esm2020 → esm2022}/state/selectors/auth-feature.selector.mjs +0 -0
  227. /package/{esm2020 → esm2022}/state/selectors/login/login.selector.mjs +0 -0
  228. /package/{esm2020 → esm2022}/state/selectors/public_api.mjs +0 -0
  229. /package/{esm2020 → esm2022}/state/selectors/register/register.selector.mjs +0 -0
  230. /package/{esm2020 → esm2022}/state/selectors/reset-password/selector.mjs +0 -0
  231. /package/{esm2020 → esm2022}/state/testing/daffodil-auth-state-testing.mjs +0 -0
  232. /package/{esm2020 → esm2022}/state/testing/index.mjs +0 -0
  233. /package/{esm2020 → esm2022}/state/testing/public_api.mjs +0 -0
  234. /package/{esm2020 → esm2022}/testing/daffodil-auth-testing.mjs +0 -0
  235. /package/{esm2020 → esm2022}/testing/factories/public_api.mjs +0 -0
  236. /package/{esm2020 → esm2022}/testing/index.mjs +0 -0
  237. /package/{esm2020 → esm2022}/testing/public_api.mjs +0 -0
@@ -19,15 +19,15 @@ class DaffInMemoryAuthService {
19
19
  check() {
20
20
  return this.http.post(`${this.url}check`, {}).pipe(map(() => undefined));
21
21
  }
22
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryAuthService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
23
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryAuthService, providedIn: 'root' }); }
22
24
  }
23
- /** @nocollapse */ DaffInMemoryAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryAuthService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
24
- /** @nocollapse */ DaffInMemoryAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryAuthService, providedIn: 'root' });
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryAuthService, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryAuthService, decorators: [{
26
26
  type: Injectable,
27
27
  args: [{
28
28
  providedIn: 'root',
29
29
  }]
30
- }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
30
+ }], ctorParameters: () => [{ type: i1.HttpClient }] });
31
31
 
32
32
  /**
33
33
  * @inheritdoc
@@ -43,15 +43,15 @@ class DaffInMemoryLoginService {
43
43
  logout() {
44
44
  return this.http.post(`${this.url}logout`, {}).pipe(switchMap(({ success }) => success ? of(undefined) : throwError(() => new Error('Logout failed'))));
45
45
  }
46
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryLoginService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
47
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryLoginService, providedIn: 'root' }); }
46
48
  }
47
- /** @nocollapse */ DaffInMemoryLoginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryLoginService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
48
- /** @nocollapse */ DaffInMemoryLoginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryLoginService, providedIn: 'root' });
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryLoginService, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryLoginService, decorators: [{
50
50
  type: Injectable,
51
51
  args: [{
52
52
  providedIn: 'root',
53
53
  }]
54
- }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
54
+ }], ctorParameters: () => [{ type: i1.HttpClient }] });
55
55
 
56
56
  /**
57
57
  * @inheritdoc
@@ -68,15 +68,15 @@ class DaffInMemoryRegisterService {
68
68
  registerOnly(registration) {
69
69
  return this.http.post(`${this.url}register`, registration);
70
70
  }
71
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryRegisterService, deps: [{ token: i1.HttpClient }, { token: DaffInMemoryLoginService }], target: i0.ɵɵFactoryTarget.Injectable }); }
72
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryRegisterService, providedIn: 'root' }); }
71
73
  }
72
- /** @nocollapse */ DaffInMemoryRegisterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryRegisterService, deps: [{ token: i1.HttpClient }, { token: DaffInMemoryLoginService }], target: i0.ɵɵFactoryTarget.Injectable });
73
- /** @nocollapse */ DaffInMemoryRegisterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryRegisterService, providedIn: 'root' });
74
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryRegisterService, decorators: [{
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryRegisterService, decorators: [{
75
75
  type: Injectable,
76
76
  args: [{
77
77
  providedIn: 'root',
78
78
  }]
79
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: DaffInMemoryLoginService }]; } });
79
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: DaffInMemoryLoginService }] });
80
80
 
81
81
  /**
82
82
  * @inheritdoc
@@ -96,15 +96,15 @@ class DaffInMemoryResetPasswordService {
96
96
  sendResetEmail(email) {
97
97
  return this.http.post(`${this.url}sendResetEmail`, { email });
98
98
  }
99
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryResetPasswordService, deps: [{ token: i1.HttpClient }, { token: DaffInMemoryLoginService }], target: i0.ɵɵFactoryTarget.Injectable }); }
100
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryResetPasswordService, providedIn: 'root' }); }
99
101
  }
100
- /** @nocollapse */ DaffInMemoryResetPasswordService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryResetPasswordService, deps: [{ token: i1.HttpClient }, { token: DaffInMemoryLoginService }], target: i0.ɵɵFactoryTarget.Injectable });
101
- /** @nocollapse */ DaffInMemoryResetPasswordService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryResetPasswordService, providedIn: 'root' });
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryResetPasswordService, decorators: [{
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryResetPasswordService, decorators: [{
103
103
  type: Injectable,
104
104
  args: [{
105
105
  providedIn: 'root',
106
106
  }]
107
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: DaffInMemoryLoginService }]; } });
107
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: DaffInMemoryLoginService }] });
108
108
 
109
109
  class DaffAuthInMemoryDriverModule {
110
110
  static forRoot() {
@@ -130,11 +130,11 @@ class DaffAuthInMemoryDriverModule {
130
130
  ],
131
131
  };
132
132
  }
133
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffAuthInMemoryDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
134
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: DaffAuthInMemoryDriverModule, imports: [CommonModule] }); }
135
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffAuthInMemoryDriverModule, imports: [CommonModule] }); }
133
136
  }
134
- /** @nocollapse */ DaffAuthInMemoryDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAuthInMemoryDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
135
- /** @nocollapse */ DaffAuthInMemoryDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffAuthInMemoryDriverModule, imports: [CommonModule] });
136
- /** @nocollapse */ DaffAuthInMemoryDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAuthInMemoryDriverModule, imports: [CommonModule] });
137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAuthInMemoryDriverModule, decorators: [{
137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffAuthInMemoryDriverModule, decorators: [{
138
138
  type: NgModule,
139
139
  args: [{
140
140
  imports: [
@@ -238,10 +238,10 @@ class DaffInMemoryBackendAuthService {
238
238
  status: STATUS.OK,
239
239
  }));
240
240
  }
241
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryBackendAuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
242
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryBackendAuthService, providedIn: 'root' }); }
241
243
  }
242
- /** @nocollapse */ DaffInMemoryBackendAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendAuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
243
- /** @nocollapse */ DaffInMemoryBackendAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendAuthService, providedIn: 'root' });
244
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendAuthService, decorators: [{
244
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInMemoryBackendAuthService, decorators: [{
245
245
  type: Injectable,
246
246
  args: [{
247
247
  providedIn: 'root',
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-auth-driver-in-memory.mjs","sources":["../../../libs/auth/driver/in-memory/src/drivers/auth/auth.service.ts","../../../libs/auth/driver/in-memory/src/drivers/login/login.service.ts","../../../libs/auth/driver/in-memory/src/drivers/register/register.service.ts","../../../libs/auth/driver/in-memory/src/drivers/reset-password/service.ts","../../../libs/auth/driver/in-memory/src/drivers/auth-driver.module.ts","../../../libs/auth/driver/in-memory/src/backend/auth.service.ts","../../../libs/auth/driver/in-memory/src/daffodil-auth-driver-in-memory.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\nimport { DaffAuthServiceInterface } from '@daffodil/auth/driver';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryAuthService implements DaffAuthServiceInterface {\n url = '/api/auth/';\n\n constructor(private http: HttpClient) {}\n\n check(): Observable<void> {\n return this.http.post(`${this.url}check`, {}).pipe(\n map(() => undefined),\n );\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport {\n Observable,\n of,\n throwError,\n} from 'rxjs';\nimport { switchMap } from 'rxjs/operators';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\nimport { DaffLoginServiceInterface } from '@daffodil/auth/driver';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryLoginService implements DaffLoginServiceInterface {\n url = '/api/auth/';\n\n constructor(private http: HttpClient) {}\n\n login(request: DaffLoginInfo): Observable<DaffAuthToken> {\n return this.http.post<DaffAuthToken>(`${this.url}login`, request);\n }\n\n logout(): Observable<void> {\n return this.http.post<{success: boolean}>(`${this.url}logout`, {}).pipe(\n switchMap(({ success }) => success ? of(undefined) : throwError(() => new Error('Logout failed'))),\n );\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport {\n map,\n switchMap,\n} from 'rxjs/operators';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\nimport { DaffRegisterServiceInterface } from '@daffodil/auth/driver';\n\nimport { DaffInMemoryLoginService } from '../login/login.service';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryRegisterService implements DaffRegisterServiceInterface {\n url = '/api/auth/';\n\n constructor(\n private http: HttpClient,\n private loginService: DaffInMemoryLoginService,\n ) {}\n\n register(registration: DaffAccountRegistration): Observable<string> {\n return this.registerOnly(registration).pipe(\n switchMap(() => this.loginService.login({ email: registration.email, password: registration.password })),\n map(({ token }) => token),\n );\n }\n\n registerOnly(registration: DaffAccountRegistration): Observable<void> {\n return this.http.post<void>(`${this.url}register`, registration);\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport {\n map,\n switchMap,\n} from 'rxjs/operators';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffResetPasswordServiceInterface } from '@daffodil/auth/driver';\n\nimport { DaffInMemoryLoginService } from '../login/login.service';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryResetPasswordService implements DaffResetPasswordServiceInterface {\n url = '/api/auth/';\n\n constructor(\n private http: HttpClient,\n private loginService: DaffInMemoryLoginService,\n ) {}\n\n resetPassword(info: DaffAuthResetPasswordInfo): Observable<string> {\n return this.resetPasswordOnly(info).pipe(\n switchMap(() => this.loginService.login({ email: info.email, password: info.password })),\n map(({ token }) => token),\n );\n }\n\n resetPasswordOnly(info: DaffAuthResetPasswordInfo): Observable<void> {\n return this.http.post<void>(`${this.url}resetPassword`, info);\n }\n\n sendResetEmail(email: string): Observable<void> {\n return this.http.post<void>(`${this.url}sendResetEmail`, { email });\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport {\n DaffLoginDriver,\n DaffRegisterDriver,\n DaffAuthDriver,\n DaffResetPasswordDriver,\n} from '@daffodil/auth/driver';\n\nimport { DaffInMemoryAuthService } from './auth/auth.service';\nimport { DaffInMemoryLoginService } from './login/login.service';\nimport { DaffInMemoryRegisterService } from './register/register.service';\nimport { DaffInMemoryResetPasswordService } from './reset-password/service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffAuthInMemoryDriverModule {\n static forRoot(): ModuleWithProviders<DaffAuthInMemoryDriverModule> {\n return {\n ngModule: DaffAuthInMemoryDriverModule,\n providers: [\n {\n provide: DaffLoginDriver,\n useExisting: DaffInMemoryLoginService,\n },\n {\n provide: DaffRegisterDriver,\n useExisting: DaffInMemoryRegisterService,\n },\n {\n provide: DaffAuthDriver,\n useExisting: DaffInMemoryAuthService,\n },\n {\n provide: DaffResetPasswordDriver,\n useExisting: DaffInMemoryResetPasswordService,\n },\n ],\n };\n }\n}\n","import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\nimport {\n InMemoryDbService,\n STATUS,\n} from 'angular-in-memory-web-api';\n\nimport { DaffInMemoryDbCustomer } from '../models/db-customer.type';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryBackendAuthService implements InMemoryDbService {\n customers: Record<DaffInMemoryDbCustomer['email'], DaffInMemoryDbCustomer> = {};\n\n private generateToken(): string {\n return faker.random.alphaNumeric(16);\n }\n\n createDb() {\n return {\n auth: this.customers,\n };\n }\n\n post(reqInfo) {\n if (reqInfo.id === 'login') {\n return this.login(reqInfo);\n } else if (reqInfo.id === 'register') {\n return this.register(reqInfo);\n } else if (reqInfo.id === 'logout') {\n return this.logout(reqInfo);\n } else if (reqInfo.id === 'check') {\n return this.check(reqInfo);\n } else if (reqInfo.id === 'resetPassword') {\n return this.resetPassword(reqInfo);\n } else if (reqInfo.id === 'sendResetEmail') {\n return this.sendResetEmail(reqInfo);\n }\n }\n\n private login(reqInfo: any) {\n const {\n email,\n password,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n const customer = this.customers[email];\n\n if (password && customer?.password === password) {\n this.customers[email].token = this.generateToken();\n\n return reqInfo.utils.createResponse$(() => ({\n body: {\n token: customer.token,\n },\n status: STATUS.OK,\n }));\n }\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.UNAUTHORIZED,\n }));\n }\n\n private register(reqInfo) {\n const {\n email,\n password,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n\n this.customers[email] = {\n email,\n password,\n };\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.CREATED,\n }));\n }\n\n private logout(reqInfo) {\n const {\n email,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n\n if (this.customers[email]) {\n this.customers[email].token = null;\n }\n\n return reqInfo.utils.createResponse$(() => ({\n body: { success: true },\n status: STATUS.OK,\n }));\n }\n\n private check(reqInfo) {\n return reqInfo.utils.createResponse$(() => ({\n body: {},\n status: STATUS.OK,\n }));\n }\n\n private resetPassword(reqInfo) {\n const {\n email,\n password,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n\n if (this.customers[email]) {\n this.customers[email].password = password;\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.OK,\n }));\n }\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.UNAUTHORIZED,\n }));\n }\n\n private sendResetEmail(reqInfo) {\n return reqInfo.utils.createResponse$(() => ({\n body: {},\n status: STATUS.OK,\n }));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.DaffInMemoryLoginService"],"mappings":";;;;;;;;;;AAOA;;AAEG;MAIU,uBAAuB,CAAA;AAGlC,IAAA,WAAA,CAAoB,IAAgB,EAAA;QAAhB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;QAFpC,IAAG,CAAA,GAAA,GAAG,YAAY,CAAC;KAEqB;IAExC,KAAK,GAAA;QACH,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAG,EAAA,IAAI,CAAC,GAAG,CAAO,KAAA,CAAA,EAAE,EAAE,CAAC,CAAC,IAAI,CAChD,GAAG,CAAC,MAAM,SAAS,CAAC,CACrB,CAAC;KACH;;uIATU,uBAAuB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,mBAAA,uBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cAFtB,MAAM,EAAA,CAAA,CAAA;2FAEP,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACGD;;AAEG;MAIU,wBAAwB,CAAA;AAGnC,IAAA,WAAA,CAAoB,IAA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B,mBAAA,8BAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,8BAA8B,cAF7B,MAAM,EAAA,CAAA,CAAA;2FAEP,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAH1C,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACdD;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-auth-driver-in-memory.mjs","sources":["../../../libs/auth/driver/in-memory/src/drivers/auth/auth.service.ts","../../../libs/auth/driver/in-memory/src/drivers/login/login.service.ts","../../../libs/auth/driver/in-memory/src/drivers/register/register.service.ts","../../../libs/auth/driver/in-memory/src/drivers/reset-password/service.ts","../../../libs/auth/driver/in-memory/src/drivers/auth-driver.module.ts","../../../libs/auth/driver/in-memory/src/backend/auth.service.ts","../../../libs/auth/driver/in-memory/src/daffodil-auth-driver-in-memory.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\nimport { DaffAuthServiceInterface } from '@daffodil/auth/driver';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryAuthService implements DaffAuthServiceInterface {\n url = '/api/auth/';\n\n constructor(private http: HttpClient) {}\n\n check(): Observable<void> {\n return this.http.post(`${this.url}check`, {}).pipe(\n map(() => undefined),\n );\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport {\n Observable,\n of,\n throwError,\n} from 'rxjs';\nimport { switchMap } from 'rxjs/operators';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\nimport { DaffLoginServiceInterface } from '@daffodil/auth/driver';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryLoginService implements DaffLoginServiceInterface {\n url = '/api/auth/';\n\n constructor(private http: HttpClient) {}\n\n login(request: DaffLoginInfo): Observable<DaffAuthToken> {\n return this.http.post<DaffAuthToken>(`${this.url}login`, request);\n }\n\n logout(): Observable<void> {\n return this.http.post<{success: boolean}>(`${this.url}logout`, {}).pipe(\n switchMap(({ success }) => success ? of(undefined) : throwError(() => new Error('Logout failed'))),\n );\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport {\n map,\n switchMap,\n} from 'rxjs/operators';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\nimport { DaffRegisterServiceInterface } from '@daffodil/auth/driver';\n\nimport { DaffInMemoryLoginService } from '../login/login.service';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryRegisterService implements DaffRegisterServiceInterface {\n url = '/api/auth/';\n\n constructor(\n private http: HttpClient,\n private loginService: DaffInMemoryLoginService,\n ) {}\n\n register(registration: DaffAccountRegistration): Observable<string> {\n return this.registerOnly(registration).pipe(\n switchMap(() => this.loginService.login({ email: registration.email, password: registration.password })),\n map(({ token }) => token),\n );\n }\n\n registerOnly(registration: DaffAccountRegistration): Observable<void> {\n return this.http.post<void>(`${this.url}register`, registration);\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport {\n map,\n switchMap,\n} from 'rxjs/operators';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffResetPasswordServiceInterface } from '@daffodil/auth/driver';\n\nimport { DaffInMemoryLoginService } from '../login/login.service';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryResetPasswordService implements DaffResetPasswordServiceInterface {\n url = '/api/auth/';\n\n constructor(\n private http: HttpClient,\n private loginService: DaffInMemoryLoginService,\n ) {}\n\n resetPassword(info: DaffAuthResetPasswordInfo): Observable<string> {\n return this.resetPasswordOnly(info).pipe(\n switchMap(() => this.loginService.login({ email: info.email, password: info.password })),\n map(({ token }) => token),\n );\n }\n\n resetPasswordOnly(info: DaffAuthResetPasswordInfo): Observable<void> {\n return this.http.post<void>(`${this.url}resetPassword`, info);\n }\n\n sendResetEmail(email: string): Observable<void> {\n return this.http.post<void>(`${this.url}sendResetEmail`, { email });\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport {\n DaffLoginDriver,\n DaffRegisterDriver,\n DaffAuthDriver,\n DaffResetPasswordDriver,\n} from '@daffodil/auth/driver';\n\nimport { DaffInMemoryAuthService } from './auth/auth.service';\nimport { DaffInMemoryLoginService } from './login/login.service';\nimport { DaffInMemoryRegisterService } from './register/register.service';\nimport { DaffInMemoryResetPasswordService } from './reset-password/service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffAuthInMemoryDriverModule {\n static forRoot(): ModuleWithProviders<DaffAuthInMemoryDriverModule> {\n return {\n ngModule: DaffAuthInMemoryDriverModule,\n providers: [\n {\n provide: DaffLoginDriver,\n useExisting: DaffInMemoryLoginService,\n },\n {\n provide: DaffRegisterDriver,\n useExisting: DaffInMemoryRegisterService,\n },\n {\n provide: DaffAuthDriver,\n useExisting: DaffInMemoryAuthService,\n },\n {\n provide: DaffResetPasswordDriver,\n useExisting: DaffInMemoryResetPasswordService,\n },\n ],\n };\n }\n}\n","import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\nimport {\n InMemoryDbService,\n STATUS,\n} from 'angular-in-memory-web-api';\n\nimport { DaffInMemoryDbCustomer } from '../models/db-customer.type';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryBackendAuthService implements InMemoryDbService {\n customers: Record<DaffInMemoryDbCustomer['email'], DaffInMemoryDbCustomer> = {};\n\n private generateToken(): string {\n return faker.random.alphaNumeric(16);\n }\n\n createDb() {\n return {\n auth: this.customers,\n };\n }\n\n post(reqInfo) {\n if (reqInfo.id === 'login') {\n return this.login(reqInfo);\n } else if (reqInfo.id === 'register') {\n return this.register(reqInfo);\n } else if (reqInfo.id === 'logout') {\n return this.logout(reqInfo);\n } else if (reqInfo.id === 'check') {\n return this.check(reqInfo);\n } else if (reqInfo.id === 'resetPassword') {\n return this.resetPassword(reqInfo);\n } else if (reqInfo.id === 'sendResetEmail') {\n return this.sendResetEmail(reqInfo);\n }\n }\n\n private login(reqInfo: any) {\n const {\n email,\n password,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n const customer = this.customers[email];\n\n if (password && customer?.password === password) {\n this.customers[email].token = this.generateToken();\n\n return reqInfo.utils.createResponse$(() => ({\n body: {\n token: customer.token,\n },\n status: STATUS.OK,\n }));\n }\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.UNAUTHORIZED,\n }));\n }\n\n private register(reqInfo) {\n const {\n email,\n password,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n\n this.customers[email] = {\n email,\n password,\n };\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.CREATED,\n }));\n }\n\n private logout(reqInfo) {\n const {\n email,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n\n if (this.customers[email]) {\n this.customers[email].token = null;\n }\n\n return reqInfo.utils.createResponse$(() => ({\n body: { success: true },\n status: STATUS.OK,\n }));\n }\n\n private check(reqInfo) {\n return reqInfo.utils.createResponse$(() => ({\n body: {},\n status: STATUS.OK,\n }));\n }\n\n private resetPassword(reqInfo) {\n const {\n email,\n password,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n\n if (this.customers[email]) {\n this.customers[email].password = password;\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.OK,\n }));\n }\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.UNAUTHORIZED,\n }));\n }\n\n private sendResetEmail(reqInfo) {\n return reqInfo.utils.createResponse$(() => ({\n body: {},\n status: STATUS.OK,\n }));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.DaffInMemoryLoginService"],"mappings":";;;;;;;;;;AAOA;;AAEG;MAIU,uBAAuB,CAAA;AAGlC,IAAA,WAAA,CAAoB,IAAgB,EAAA;QAAhB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;QAFpC,IAAG,CAAA,GAAA,GAAG,YAAY,CAAC;KAEqB;IAExC,KAAK,GAAA;QACH,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAG,EAAA,IAAI,CAAC,GAAG,CAAO,KAAA,CAAA,EAAE,EAAE,CAAC,CAAC,IAAI,CAChD,GAAG,CAAC,MAAM,SAAS,CAAC,CACrB,CAAC;KACH;iIATU,uBAAuB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAvB,uBAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cAFtB,MAAM,EAAA,CAAA,CAAA,EAAA;;2FAEP,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACGD;;AAEG;MAIU,wBAAwB,CAAA;AAGnC,IAAA,WAAA,CAAoB,IAAgB,EAAA;QAAhB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;QAFpC,IAAG,CAAA,GAAA,GAAG,YAAY,CAAC;KAEqB;AAExC,IAAA,KAAK,CAAC,OAAsB,EA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AA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,8BAA8B,cAF7B,MAAM,EAAA,CAAA,CAAA,EAAA;;2FAEP,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAH1C,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACdD;;AAEG;;;;"}
@@ -152,15 +152,15 @@ class DaffMagentoAuthService {
152
152
  fetchPolicy: 'no-cache',
153
153
  }).pipe(map(validateCheckTokenResponse), map(() => undefined), catchError(err => throwError(() => transformMagentoAuthError(err))));
154
154
  }
155
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoAuthService, deps: [{ token: i1.Apollo }], target: i0.ɵɵFactoryTarget.Injectable }); }
156
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoAuthService, providedIn: 'root' }); }
155
157
  }
156
- /** @nocollapse */ DaffMagentoAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoAuthService, deps: [{ token: i1.Apollo }], target: i0.ɵɵFactoryTarget.Injectable });
157
- /** @nocollapse */ DaffMagentoAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoAuthService, providedIn: 'root' });
158
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoAuthService, decorators: [{
158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoAuthService, decorators: [{
159
159
  type: Injectable,
160
160
  args: [{
161
161
  providedIn: 'root',
162
162
  }]
163
- }], ctorParameters: function () { return [{ type: i1.Apollo }]; } });
163
+ }], ctorParameters: () => [{ type: i1.Apollo }] });
164
164
 
165
165
  /**
166
166
  * Transforms magento auths into an object usable by daffodil.
@@ -176,10 +176,10 @@ class DaffMagentoAuthTransformerService {
176
176
  token: auth.token,
177
177
  };
178
178
  }
179
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoAuthTransformerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
180
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoAuthTransformerService, providedIn: 'root' }); }
179
181
  }
180
- /** @nocollapse */ DaffMagentoAuthTransformerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoAuthTransformerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
181
- /** @nocollapse */ DaffMagentoAuthTransformerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoAuthTransformerService, providedIn: 'root' });
182
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoAuthTransformerService, decorators: [{
182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoAuthTransformerService, decorators: [{
183
183
  type: Injectable,
184
184
  args: [{
185
185
  providedIn: 'root',
@@ -206,15 +206,15 @@ class DaffMagentoLoginService {
206
206
  logout() {
207
207
  return this.apollo.mutate({ mutation: revokeCustomerTokenMutation }).pipe(map(validateRevokeTokenResponse), map(() => undefined), catchError(err => throwError(() => transformMagentoAuthError(err))));
208
208
  }
209
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoLoginService, deps: [{ token: i1$1.DaffQueuedApollo }, { token: DaffMagentoAuthTransformerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
210
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoLoginService, providedIn: 'root' }); }
209
211
  }
210
- /** @nocollapse */ DaffMagentoLoginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoLoginService, deps: [{ token: i1$1.DaffQueuedApollo }, { token: DaffMagentoAuthTransformerService }], target: i0.ɵɵFactoryTarget.Injectable });
211
- /** @nocollapse */ DaffMagentoLoginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoLoginService, providedIn: 'root' });
212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoLoginService, decorators: [{
212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoLoginService, decorators: [{
213
213
  type: Injectable,
214
214
  args: [{
215
215
  providedIn: 'root',
216
216
  }]
217
- }], ctorParameters: function () { return [{ type: i1$1.DaffQueuedApollo }, { type: DaffMagentoAuthTransformerService }]; } });
217
+ }], ctorParameters: () => [{ type: i1$1.DaffQueuedApollo }, { type: DaffMagentoAuthTransformerService }] });
218
218
 
219
219
  /**
220
220
  * @inheritdoc
@@ -244,15 +244,15 @@ class DaffMagentoRegisterService {
244
244
  return;
245
245
  }), catchError(err => throwError(() => transformMagentoAuthError(err))));
246
246
  }
247
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoRegisterService, deps: [{ token: i1$1.DaffQueuedApollo }, { token: DaffMagentoLoginService }], target: i0.ɵɵFactoryTarget.Injectable }); }
248
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoRegisterService, providedIn: 'root' }); }
247
249
  }
248
- /** @nocollapse */ DaffMagentoRegisterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoRegisterService, deps: [{ token: i1$1.DaffQueuedApollo }, { token: DaffMagentoLoginService }], target: i0.ɵɵFactoryTarget.Injectable });
249
- /** @nocollapse */ DaffMagentoRegisterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoRegisterService, providedIn: 'root' });
250
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoRegisterService, decorators: [{
250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoRegisterService, decorators: [{
251
251
  type: Injectable,
252
252
  args: [{
253
253
  providedIn: 'root',
254
254
  }]
255
- }], ctorParameters: function () { return [{ type: i1$1.DaffQueuedApollo }, { type: DaffMagentoLoginService }]; } });
255
+ }], ctorParameters: () => [{ type: i1$1.DaffQueuedApollo }, { type: DaffMagentoLoginService }] });
256
256
 
257
257
  /**
258
258
  * @inheritdoc
@@ -283,15 +283,15 @@ class DaffMagentoResetPasswordService {
283
283
  },
284
284
  }).pipe(map(validateSendResetEmailResponse), map(() => undefined), catchError(err => throwError(() => transformMagentoAuthError(err))));
285
285
  }
286
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoResetPasswordService, deps: [{ token: i1$1.DaffQueuedApollo }, { token: DaffMagentoLoginService }], target: i0.ɵɵFactoryTarget.Injectable }); }
287
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoResetPasswordService, providedIn: 'root' }); }
286
288
  }
287
- /** @nocollapse */ DaffMagentoResetPasswordService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoResetPasswordService, deps: [{ token: i1$1.DaffQueuedApollo }, { token: DaffMagentoLoginService }], target: i0.ɵɵFactoryTarget.Injectable });
288
- /** @nocollapse */ DaffMagentoResetPasswordService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoResetPasswordService, providedIn: 'root' });
289
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffMagentoResetPasswordService, decorators: [{
289
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffMagentoResetPasswordService, decorators: [{
290
290
  type: Injectable,
291
291
  args: [{
292
292
  providedIn: 'root',
293
293
  }]
294
- }], ctorParameters: function () { return [{ type: i1$1.DaffQueuedApollo }, { type: DaffMagentoLoginService }]; } });
294
+ }], ctorParameters: () => [{ type: i1$1.DaffQueuedApollo }, { type: DaffMagentoLoginService }] });
295
295
 
296
296
  class DaffAuthMagentoDriverModule {
297
297
  static forRoot() {
@@ -317,11 +317,11 @@ class DaffAuthMagentoDriverModule {
317
317
  ],
318
318
  };
319
319
  }
320
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffAuthMagentoDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
321
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: DaffAuthMagentoDriverModule, imports: [CommonModule] }); }
322
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffAuthMagentoDriverModule, imports: [CommonModule] }); }
320
323
  }
321
- /** @nocollapse */ DaffAuthMagentoDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAuthMagentoDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
322
- /** @nocollapse */ DaffAuthMagentoDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffAuthMagentoDriverModule, imports: [CommonModule] });
323
- /** @nocollapse */ DaffAuthMagentoDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAuthMagentoDriverModule, imports: [CommonModule] });
324
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAuthMagentoDriverModule, decorators: [{
324
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffAuthMagentoDriverModule, decorators: [{
325
325
  type: NgModule,
326
326
  args: [{
327
327
  imports: [
@@ -357,15 +357,15 @@ class MagentoAuthApolloBearerTokenLinkGenerator {
357
357
  return forward(operation);
358
358
  });
359
359
  }
360
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MagentoAuthApolloBearerTokenLinkGenerator, deps: [{ token: i1$2.DaffAuthStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
361
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MagentoAuthApolloBearerTokenLinkGenerator, providedIn: 'root' }); }
360
362
  }
361
- /** @nocollapse */ MagentoAuthApolloBearerTokenLinkGenerator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoAuthApolloBearerTokenLinkGenerator, deps: [{ token: i1$2.DaffAuthStorageService }], target: i0.ɵɵFactoryTarget.Injectable });
362
- /** @nocollapse */ MagentoAuthApolloBearerTokenLinkGenerator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoAuthApolloBearerTokenLinkGenerator, providedIn: 'root' });
363
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoAuthApolloBearerTokenLinkGenerator, decorators: [{
363
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MagentoAuthApolloBearerTokenLinkGenerator, decorators: [{
364
364
  type: Injectable,
365
365
  args: [{
366
366
  providedIn: 'root',
367
367
  }]
368
- }], ctorParameters: function () { return [{ type: i1$2.DaffAuthStorageService }]; } });
368
+ }], ctorParameters: () => [{ type: i1$2.DaffAuthStorageService }] });
369
369
 
370
370
  /**
371
371
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-auth-driver-magento.mjs","sources":["../../../libs/auth/driver/magento/src/errors/codes.ts","../../../libs/auth/driver/magento/src/errors/map.ts","../../../libs/auth/driver/magento/src/errors/transform.ts","../../../libs/auth/driver/magento/src/queries/check-token.ts","../../../libs/auth/driver/magento/src/queries/create-customer.ts","../../../libs/auth/driver/magento/src/queries/generate-token.ts","../../../libs/auth/driver/magento/src/queries/revoke-customer-token.ts","../../../libs/auth/driver/magento/src/queries/send-reset-email.ts","../../../libs/auth/driver/magento/src/queries/reset-password.ts","../../../libs/auth/driver/magento/src/validators/check-token.ts","../../../libs/auth/driver/magento/src/validators/generate-token.ts","../../../libs/auth/driver/magento/src/validators/revoke-token.ts","../../../libs/auth/driver/magento/src/validators/send-reset-email.ts","../../../libs/auth/driver/magento/src/validators/reset-password.ts","../../../libs/auth/driver/magento/src/auth.service.ts","../../../libs/auth/driver/magento/src/transforms/auth-transformer.service.ts","../../../libs/auth/driver/magento/src/login.service.ts","../../../libs/auth/driver/magento/src/register.service.ts","../../../libs/auth/driver/magento/src/reset-password.service.ts","../../../libs/auth/driver/magento/src/auth-driver.module.ts","../../../libs/auth/driver/magento/src/apollo-bearer-token-link-generator.ts","../../../libs/auth/driver/magento/src/daffodil-auth-driver-magento.ts"],"sourcesContent":["export enum MagentoAuthGraphQlErrorCode {\n UNAUTHORIZED = 'graphql-authorization',\n AUTHENTICATION_FAILED = 'graphql-authentication',\n BAD_INPUT = 'graphql-input'\n}\n","import {\n DaffUnauthorizedError,\n DaffAuthenticationFailedError,\n} from '@daffodil/auth/driver';\nimport { DaffErrorCodeMap } from '@daffodil/core';\nimport { DaffBadInputError } from '@daffodil/driver';\n\nimport { MagentoAuthGraphQlErrorCode } from './codes';\n\nexport const DaffAuthMagentoErrorMap: DaffErrorCodeMap = {\n [MagentoAuthGraphQlErrorCode.UNAUTHORIZED]: DaffUnauthorizedError,\n [MagentoAuthGraphQlErrorCode.AUTHENTICATION_FAILED]: DaffAuthenticationFailedError,\n [MagentoAuthGraphQlErrorCode.BAD_INPUT]: DaffBadInputError,\n};\n","import { DaffAuthInvalidAPIResponseError } from '@daffodil/auth/driver';\nimport { daffTransformMagentoError } from '@daffodil/driver/magento';\n\nimport { DaffAuthMagentoErrorMap } from './map';\n\nexport const transformMagentoAuthError = (error: any): Error => daffTransformMagentoError(error, DaffAuthMagentoErrorMap) || new DaffAuthInvalidAPIResponseError(error.message);\n","import { gql } from 'apollo-angular';\n\n\nexport const checkTokenQuery = gql`\n query MagentoCheckToken {\n customer {\n email\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const createCustomerMutation = gql`\n mutation MagentoCreateCustomer(\n $email: String!,\n $password: String!,\n $subscribe: Boolean!,\n $firstname: String!,\n $lastname: String!,\n ) {\n createCustomerV2(input: {\n firstname: $firstname,\n lastname: $lastname,\n email: $email,\n password: $password,\n is_subscribed: $subscribe\n }) {\n customer {\n email\n }\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const generateTokenMutation = gql`\n mutation MagentoGenerateToken($email: String!, $password: String!) {\n generateCustomerToken(\n email: $email,\n password: $password\n ) {\n token\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const revokeCustomerTokenMutation = gql`\n mutation revokeCustomerToken {\n revokeCustomerToken {\n result\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const sendPasswordResetEmailMutation = gql`\n mutation MagentoSendPasswordResetEmail($email: String!) {\n requestPasswordResetEmail(\n email: $email,\n )\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const resetPasswordMutation = gql`\n mutation MagentoResetPassword($email: String!, $password: String!, $token: String!) {\n resetPassword(\n email: $email,\n newPassword: $password\n resetPasswordToken: $token\n )\n }\n`;\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffAuthInvalidAPIResponseError } from '@daffodil/auth/driver';\n\nimport { MagentoCheckTokenResponse } from '../queries/public_api';\n\nexport const validateCheckTokenResponse = (response: ApolloQueryResult<MagentoCheckTokenResponse>) => {\n if (response.data.customer.email) {\n return response;\n } else {\n throw new DaffAuthInvalidAPIResponseError('Check token response does not contain a valid customer email.');\n }\n};\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffAuthInvalidAPIResponseError } from '@daffodil/auth/driver';\n\nimport { MagentoGenerateTokenResponse } from '../queries/public_api';\n\nexport const validateGenerateTokenResponse = (response: ApolloQueryResult<MagentoGenerateTokenResponse>) => {\n if (response.data.generateCustomerToken.token) {\n return response;\n } else {\n throw new DaffAuthInvalidAPIResponseError('Generate token response does not contain an auth token.');\n }\n};\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffAuthInvalidAPIResponseError } from '@daffodil/auth/driver';\n\nimport { MagentoRevokeCustomerTokenResponse } from '../queries/public_api';\n\nexport const validateRevokeTokenResponse = (response: ApolloQueryResult<MagentoRevokeCustomerTokenResponse>) => {\n if (response.data.revokeCustomerToken.result) {\n return response;\n } else {\n throw new DaffAuthInvalidAPIResponseError('Revoke token response does not contain a successful result.');\n }\n};\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffAuthInvalidAPIResponseError } from '@daffodil/auth/driver';\n\nimport { MagentoSendResetEmailResponse } from '../models/public_api';\n\nexport const validateSendResetEmailResponse = (response: ApolloQueryResult<MagentoSendResetEmailResponse>) => {\n if (response.data.requestPasswordResetEmail) {\n return response;\n } else {\n throw new DaffAuthInvalidAPIResponseError('The reset password email was not sent successfully.');\n }\n};\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffAuthInvalidAPIResponseError } from '@daffodil/auth/driver';\n\nimport { MagentoResetPasswordResponse } from '../models/public_api';\n\nexport const validateResetPasswordResponse = (response: ApolloQueryResult<MagentoResetPasswordResponse>) => {\n if (response.data.resetPassword) {\n return response;\n } else {\n throw new DaffAuthInvalidAPIResponseError('The password was not reset.');\n }\n};\n","import { Injectable } from '@angular/core';\nimport { Apollo } from 'apollo-angular';\nimport {\n Observable,\n throwError,\n} from 'rxjs';\nimport {\n catchError,\n map,\n} from 'rxjs/operators';\n\nimport { DaffAuthServiceInterface } from '@daffodil/auth/driver';\n\nimport { transformMagentoAuthError } from './errors/transform';\nimport {\n checkTokenQuery,\n MagentoCheckTokenResponse,\n} from './queries/public_api';\nimport { validateCheckTokenResponse } from './validators/public_api';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoAuthService implements DaffAuthServiceInterface {\n constructor(private apollo: Apollo) {}\n\n check(): Observable<void> {\n return this.apollo.query<MagentoCheckTokenResponse>({\n query: checkTokenQuery,\n fetchPolicy: 'no-cache',\n }).pipe(\n map(validateCheckTokenResponse),\n map(() => undefined),\n catchError(err => throwError(() => transformMagentoAuthError(err))),\n );\n }\n}\n","import { Injectable } from '@angular/core';\n\nimport { DaffAuthToken } from '@daffodil/auth';\n\nimport { MagentoAuth } from '../models/response/auth';\n\n/**\n * Transforms magento auths into an object usable by daffodil.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoAuthTransformerService {\n\n /**\n * Transforms the magento AuthNode from the magento auth query into a DaffAuthToken.\n *\n * @param auth the auth from a magento auth query.\n */\n transform(auth: MagentoAuth): DaffAuthToken {\n return {\n token: auth.token,\n };\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Apollo } from 'apollo-angular';\nimport {\n Observable,\n throwError,\n} from 'rxjs';\nimport {\n map,\n catchError,\n} from 'rxjs/operators';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\nimport { DaffLoginServiceInterface } from '@daffodil/auth/driver';\nimport { DaffQueuedApollo } from '@daffodil/core/graphql';\n\nimport { transformMagentoAuthError } from './errors/transform';\nimport {\n MagentoRevokeCustomerTokenResponse,\n MagentoGenerateTokenResponse,\n generateTokenMutation,\n revokeCustomerTokenMutation,\n} from './queries/public_api';\nimport { DaffMagentoAuthTransformerService } from './transforms/auth-transformer.service';\nimport {\n validateRevokeTokenResponse,\n validateGenerateTokenResponse,\n} from './validators/public_api';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoLoginService implements DaffLoginServiceInterface {\n constructor(\n private apollo: DaffQueuedApollo,\n public authTransformer: DaffMagentoAuthTransformerService,\n ) {}\n\n login({ email, password }: DaffLoginInfo): Observable<DaffAuthToken> {\n return this.apollo.mutate<MagentoGenerateTokenResponse>({\n mutation: generateTokenMutation,\n variables: {\n email,\n password,\n },\n }).pipe(\n map(validateGenerateTokenResponse),\n map(res => this.authTransformer.transform(res.data.generateCustomerToken)),\n catchError(err => throwError(() => transformMagentoAuthError(err))),\n );\n }\n\n logout() {\n return this.apollo.mutate<MagentoRevokeCustomerTokenResponse>({ mutation: revokeCustomerTokenMutation }).pipe(\n map(validateRevokeTokenResponse),\n map(() => undefined),\n catchError(err => throwError(() => transformMagentoAuthError(err))),\n );\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Apollo } from 'apollo-angular';\nimport {\n Observable,\n throwError,\n} from 'rxjs';\nimport {\n map,\n catchError,\n switchMap,\n} from 'rxjs/operators';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\nimport {\n DaffRegisterServiceInterface,\n DaffRegistrationFailedError,\n} from '@daffodil/auth/driver';\nimport { DaffQueuedApollo } from '@daffodil/core/graphql';\n\nimport { transformMagentoAuthError } from './errors/transform';\nimport { DaffMagentoLoginService } from './login.service';\nimport { MagentoRegisterResponse } from './models/public_api';\nimport { createCustomerMutation } from './queries/public_api';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoRegisterService implements DaffRegisterServiceInterface {\n constructor(\n private apollo: DaffQueuedApollo,\n private loginService: DaffMagentoLoginService,\n ) {}\n\n register(registration: DaffAccountRegistration): Observable<string> {\n return this.registerOnly(registration).pipe(\n switchMap(() => this.loginService.login({ email: registration.email, password: registration.password })),\n map(({ token }) => token),\n );\n }\n\n registerOnly({ email, password, subscribe, firstName, lastName }: DaffAccountRegistration): Observable<void> {\n return this.apollo.mutate<MagentoRegisterResponse>({\n mutation: createCustomerMutation,\n variables: {\n email,\n password,\n firstname: firstName || 'temp',\n lastname: lastName || 'temp',\n subscribe,\n },\n }).pipe(\n map((resp) => {\n if (!resp.data.createCustomerV2.customer.email) {\n throw new DaffRegistrationFailedError(`The account for email ${email} was not successful.`);\n }\n\n return;\n }),\n catchError(err => throwError(() => transformMagentoAuthError(err))),\n );\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Apollo } from 'apollo-angular';\nimport {\n Observable,\n throwError,\n} from 'rxjs';\nimport {\n map,\n catchError,\n switchMap,\n} from 'rxjs/operators';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffResetPasswordServiceInterface } from '@daffodil/auth/driver';\nimport { DaffQueuedApollo } from '@daffodil/core/graphql';\n\nimport { transformMagentoAuthError } from './errors/transform';\nimport { DaffMagentoLoginService } from './login.service';\nimport {\n MagentoResetPasswordResponse,\n MagentoSendResetEmailResponse,\n} from './models/public_api';\nimport {\n resetPasswordMutation,\n sendPasswordResetEmailMutation,\n} from './queries/public_api';\nimport {\n validateResetPasswordResponse,\n validateSendResetEmailResponse,\n} from './validators/public_api';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoResetPasswordService implements DaffResetPasswordServiceInterface {\n constructor(\n private apollo: DaffQueuedApollo,\n private loginService: DaffMagentoLoginService,\n ) {}\n\n resetPassword(info: DaffAuthResetPasswordInfo): Observable<string> {\n return this.resetPasswordOnly(info).pipe(\n switchMap(() => this.loginService.login({ email: info.email, password: info.password })),\n map(({ token }) => token),\n );\n }\n\n resetPasswordOnly({ email, password, token }: DaffAuthResetPasswordInfo): Observable<void> {\n return this.apollo.mutate<MagentoResetPasswordResponse>({\n mutation: resetPasswordMutation,\n variables: {\n email,\n password,\n token,\n },\n }).pipe(\n map(validateResetPasswordResponse),\n map(() => undefined),\n catchError(err => throwError(() => transformMagentoAuthError(err))),\n );\n }\n\n sendResetEmail(email: string): Observable<void> {\n return this.apollo.mutate<MagentoSendResetEmailResponse>({\n mutation: sendPasswordResetEmailMutation,\n variables: {\n email,\n },\n }).pipe(\n map(validateSendResetEmailResponse),\n map(() => undefined),\n catchError(err => throwError(() => transformMagentoAuthError(err))),\n );\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport {\n DaffRegisterDriver,\n DaffLoginDriver,\n DaffAuthDriver,\n DaffResetPasswordDriver,\n} from '@daffodil/auth/driver';\n\nimport { DaffMagentoAuthService } from './auth.service';\nimport { DaffMagentoLoginService } from './login.service';\nimport { DaffMagentoRegisterService } from './register.service';\nimport { DaffMagentoResetPasswordService } from './reset-password.service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffAuthMagentoDriverModule {\n static forRoot(): ModuleWithProviders<DaffAuthMagentoDriverModule> {\n return {\n ngModule: DaffAuthMagentoDriverModule,\n providers: [\n {\n provide: DaffRegisterDriver,\n useExisting: DaffMagentoRegisterService,\n },\n {\n provide: DaffLoginDriver,\n useExisting: DaffMagentoLoginService,\n },\n {\n provide: DaffAuthDriver,\n useExisting: DaffMagentoAuthService,\n },\n {\n provide: DaffResetPasswordDriver,\n useExisting: DaffMagentoResetPasswordService,\n },\n ],\n };\n }\n}\n","import { Injectable } from '@angular/core';\nimport { ApolloLink } from '@apollo/client/core';\n\nimport { DaffAuthStorageService } from '@daffodil/auth';\nimport { DaffApolloLinkGenerator } from '@daffodil/core/graphql';\n\n/**\n * A service that will convert cacheable apollo operations into a format that Magento will understand as cacheable.\n *\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class MagentoAuthApolloBearerTokenLinkGenerator implements DaffApolloLinkGenerator {\n constructor(\n private storage: DaffAuthStorageService,\n ) {}\n\n getLink(): ApolloLink {\n return new ApolloLink((operation, forward) => {\n let token = null;\n\n try {\n token = this.storage.getAuthToken();\n } catch(e){}\n\n if (token) {\n operation.setContext({\n headers: {\n ...operation.getContext().headers,\n authorization: `Bearer ${token}`,\n },\n });\n }\n return forward(operation);\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2.DaffMagentoAuthTransformerService","i2.DaffMagentoLoginService"],"mappings":";;;;;;;;;;;;;;AAAA,IAAY,2BAIX,CAAA;AAJD,CAAA,UAAY,2BAA2B,EAAA;AACrC,IAAA,2BAAA,CAAA,cAAA,CAAA,GAAA,uBAAsC,CAAA;AACtC,IAAA,2BAAA,CAAA,uBAAA,CAAA,GAAA,wBAAgD,CAAA;AAChD,IAAA,2BAAA,CAAA,WAAA,CAAA,GAAA,eAA2B,CAAA;AAC7B,CAAC,EAJW,2BAA2B,KAA3B,2BAA2B,GAItC,EAAA,C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C,CAAC,SAAS,EAAE,OAAO,KAAI;YAC3C,IAAI,KAAK,GAAG,IAAI,CAAC;YAEjB,IAAI;AACF,gBAAA,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;AACrC,aAAA;YAAC,OAAM,CAAC,EAAC,GAAE;AAEZ,YAAA,IAAI,KAAK,EAAE;gBACT,SAAS,CAAC,UAAU,CAAC;AACnB,oBAAA,OAAO,EAAE;AACP,wBAAA,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC,OAAO;wBACjC,aAAa,EAAE,CAAU,OAAA,EAAA,KAAK,CAAE,CAAA;AACjC,qBAAA;AACF,iBAAA,CAAC,CAAC;AACJ,aAAA;AACD,YAAA,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC;AAC5B,SAAC,CAAC,CAAC;KACJ;;yJAvBU,yCAAyC,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAF,IAAA,CAAA,sBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAzC,mBAAA,yCAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yCAAyC,cAFxC,MAAM,EAAA,CAAA,CAAA;2FAEP,yCAAyC,EAAA,UAAA,EAAA,CAAA;kBAHrD,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-auth-driver-magento.mjs","sources":["../../../libs/auth/driver/magento/src/errors/codes.ts","../../../libs/auth/driver/magento/src/errors/map.ts","../../../libs/auth/driver/magento/src/errors/transform.ts","../../../libs/auth/driver/magento/src/queries/check-token.ts","../../../libs/auth/driver/magento/src/queries/create-customer.ts","../../../libs/auth/driver/magento/src/queries/generate-token.ts","../../../libs/auth/driver/magento/src/queries/revoke-customer-token.ts","../../../libs/auth/driver/magento/src/queries/send-reset-email.ts","../../../libs/auth/driver/magento/src/queries/reset-password.ts","../../../libs/auth/driver/magento/src/validators/check-token.ts","../../../libs/auth/driver/magento/src/validators/generate-token.ts","../../../libs/auth/driver/magento/src/validators/revoke-token.ts","../../../libs/auth/driver/magento/src/validators/send-reset-email.ts","../../../libs/auth/driver/magento/src/validators/reset-password.ts","../../../libs/auth/driver/magento/src/auth.service.ts","../../../libs/auth/driver/magento/src/transforms/auth-transformer.service.ts","../../../libs/auth/driver/magento/src/login.service.ts","../../../libs/auth/driver/magento/src/register.service.ts","../../../libs/auth/driver/magento/src/reset-password.service.ts","../../../libs/auth/driver/magento/src/auth-driver.module.ts","../../../libs/auth/driver/magento/src/apollo-bearer-token-link-generator.ts","../../../libs/auth/driver/magento/src/daffodil-auth-driver-magento.ts"],"sourcesContent":["export enum MagentoAuthGraphQlErrorCode {\n UNAUTHORIZED = 'graphql-authorization',\n AUTHENTICATION_FAILED = 'graphql-authentication',\n BAD_INPUT = 'graphql-input'\n}\n","import {\n DaffUnauthorizedError,\n DaffAuthenticationFailedError,\n} from '@daffodil/auth/driver';\nimport { DaffErrorCodeMap } from '@daffodil/core';\nimport { DaffBadInputError } from '@daffodil/driver';\n\nimport { MagentoAuthGraphQlErrorCode } from './codes';\n\nexport const DaffAuthMagentoErrorMap: DaffErrorCodeMap = {\n [MagentoAuthGraphQlErrorCode.UNAUTHORIZED]: DaffUnauthorizedError,\n [MagentoAuthGraphQlErrorCode.AUTHENTICATION_FAILED]: DaffAuthenticationFailedError,\n [MagentoAuthGraphQlErrorCode.BAD_INPUT]: DaffBadInputError,\n};\n","import { DaffAuthInvalidAPIResponseError } from '@daffodil/auth/driver';\nimport { daffTransformMagentoError } from '@daffodil/driver/magento';\n\nimport { DaffAuthMagentoErrorMap } from './map';\n\nexport const transformMagentoAuthError = (error: any): Error => daffTransformMagentoError(error, DaffAuthMagentoErrorMap) || new DaffAuthInvalidAPIResponseError(error.message);\n","import { gql } from 'apollo-angular';\n\n\nexport const checkTokenQuery = gql`\n query MagentoCheckToken {\n customer {\n email\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const createCustomerMutation = gql`\n mutation MagentoCreateCustomer(\n $email: String!,\n $password: String!,\n $subscribe: Boolean!,\n $firstname: String!,\n $lastname: String!,\n ) {\n createCustomerV2(input: {\n firstname: $firstname,\n lastname: $lastname,\n email: $email,\n password: $password,\n is_subscribed: $subscribe\n }) {\n customer {\n email\n }\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const generateTokenMutation = gql`\n mutation MagentoGenerateToken($email: String!, $password: String!) {\n generateCustomerToken(\n email: $email,\n password: $password\n ) {\n token\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const revokeCustomerTokenMutation = gql`\n mutation revokeCustomerToken {\n revokeCustomerToken {\n result\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const sendPasswordResetEmailMutation = gql`\n mutation MagentoSendPasswordResetEmail($email: String!) {\n requestPasswordResetEmail(\n email: $email,\n )\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const resetPasswordMutation = gql`\n mutation MagentoResetPassword($email: String!, $password: String!, $token: String!) {\n resetPassword(\n email: $email,\n newPassword: $password\n resetPasswordToken: $token\n )\n }\n`;\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffAuthInvalidAPIResponseError } from '@daffodil/auth/driver';\n\nimport { MagentoCheckTokenResponse } from '../queries/public_api';\n\nexport const validateCheckTokenResponse = (response: ApolloQueryResult<MagentoCheckTokenResponse>) => {\n if (response.data.customer.email) {\n return response;\n } else {\n throw new DaffAuthInvalidAPIResponseError('Check token response does not contain a valid customer email.');\n }\n};\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffAuthInvalidAPIResponseError } from '@daffodil/auth/driver';\n\nimport { MagentoGenerateTokenResponse } from '../queries/public_api';\n\nexport const validateGenerateTokenResponse = (response: ApolloQueryResult<MagentoGenerateTokenResponse>) => {\n if (response.data.generateCustomerToken.token) {\n return response;\n } else {\n throw new DaffAuthInvalidAPIResponseError('Generate token response does not contain an auth token.');\n }\n};\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffAuthInvalidAPIResponseError } from '@daffodil/auth/driver';\n\nimport { MagentoRevokeCustomerTokenResponse } from '../queries/public_api';\n\nexport const validateRevokeTokenResponse = (response: ApolloQueryResult<MagentoRevokeCustomerTokenResponse>) => {\n if (response.data.revokeCustomerToken.result) {\n return response;\n } else {\n throw new DaffAuthInvalidAPIResponseError('Revoke token response does not contain a successful result.');\n }\n};\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffAuthInvalidAPIResponseError } from '@daffodil/auth/driver';\n\nimport { MagentoSendResetEmailResponse } from '../models/public_api';\n\nexport const validateSendResetEmailResponse = (response: ApolloQueryResult<MagentoSendResetEmailResponse>) => {\n if (response.data.requestPasswordResetEmail) {\n return response;\n } else {\n throw new DaffAuthInvalidAPIResponseError('The reset password email was not sent successfully.');\n }\n};\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffAuthInvalidAPIResponseError } from '@daffodil/auth/driver';\n\nimport { MagentoResetPasswordResponse } from '../models/public_api';\n\nexport const validateResetPasswordResponse = (response: ApolloQueryResult<MagentoResetPasswordResponse>) => {\n if (response.data.resetPassword) {\n return response;\n } else {\n throw new DaffAuthInvalidAPIResponseError('The password was not reset.');\n }\n};\n","import { Injectable } from '@angular/core';\nimport { Apollo } from 'apollo-angular';\nimport {\n Observable,\n throwError,\n} from 'rxjs';\nimport {\n catchError,\n map,\n} from 'rxjs/operators';\n\nimport { DaffAuthServiceInterface } from '@daffodil/auth/driver';\n\nimport { transformMagentoAuthError } from './errors/transform';\nimport {\n checkTokenQuery,\n MagentoCheckTokenResponse,\n} from './queries/public_api';\nimport { validateCheckTokenResponse } from './validators/public_api';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoAuthService implements DaffAuthServiceInterface {\n constructor(private apollo: Apollo) {}\n\n check(): Observable<void> {\n return this.apollo.query<MagentoCheckTokenResponse>({\n query: checkTokenQuery,\n fetchPolicy: 'no-cache',\n }).pipe(\n map(validateCheckTokenResponse),\n map(() => undefined),\n catchError(err => throwError(() => transformMagentoAuthError(err))),\n );\n }\n}\n","import { Injectable } from '@angular/core';\n\nimport { DaffAuthToken } from '@daffodil/auth';\n\nimport { MagentoAuth } from '../models/response/auth';\n\n/**\n * Transforms magento auths into an object usable by daffodil.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoAuthTransformerService {\n\n /**\n * Transforms the magento AuthNode from the magento auth query into a DaffAuthToken.\n *\n * @param auth the auth from a magento auth query.\n */\n transform(auth: MagentoAuth): DaffAuthToken {\n return {\n token: auth.token,\n };\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Apollo } from 'apollo-angular';\nimport {\n Observable,\n throwError,\n} from 'rxjs';\nimport {\n map,\n catchError,\n} from 'rxjs/operators';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\nimport { DaffLoginServiceInterface } from '@daffodil/auth/driver';\nimport { DaffQueuedApollo } from '@daffodil/core/graphql';\n\nimport { transformMagentoAuthError } from './errors/transform';\nimport {\n MagentoRevokeCustomerTokenResponse,\n MagentoGenerateTokenResponse,\n generateTokenMutation,\n revokeCustomerTokenMutation,\n} from './queries/public_api';\nimport { DaffMagentoAuthTransformerService } from './transforms/auth-transformer.service';\nimport {\n validateRevokeTokenResponse,\n validateGenerateTokenResponse,\n} from './validators/public_api';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoLoginService implements DaffLoginServiceInterface {\n constructor(\n private apollo: DaffQueuedApollo,\n public authTransformer: DaffMagentoAuthTransformerService,\n ) {}\n\n login({ email, password }: DaffLoginInfo): Observable<DaffAuthToken> {\n return this.apollo.mutate<MagentoGenerateTokenResponse>({\n mutation: generateTokenMutation,\n variables: {\n email,\n password,\n },\n }).pipe(\n map(validateGenerateTokenResponse),\n map(res => this.authTransformer.transform(res.data.generateCustomerToken)),\n catchError(err => throwError(() => transformMagentoAuthError(err))),\n );\n }\n\n logout() {\n return this.apollo.mutate<MagentoRevokeCustomerTokenResponse>({ mutation: revokeCustomerTokenMutation }).pipe(\n map(validateRevokeTokenResponse),\n map(() => undefined),\n catchError(err => throwError(() => transformMagentoAuthError(err))),\n );\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Apollo } from 'apollo-angular';\nimport {\n Observable,\n throwError,\n} from 'rxjs';\nimport {\n map,\n catchError,\n switchMap,\n} from 'rxjs/operators';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\nimport {\n DaffRegisterServiceInterface,\n DaffRegistrationFailedError,\n} from '@daffodil/auth/driver';\nimport { DaffQueuedApollo } from '@daffodil/core/graphql';\n\nimport { transformMagentoAuthError } from './errors/transform';\nimport { DaffMagentoLoginService } from './login.service';\nimport { MagentoRegisterResponse } from './models/public_api';\nimport { createCustomerMutation } from './queries/public_api';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoRegisterService implements DaffRegisterServiceInterface {\n constructor(\n private apollo: DaffQueuedApollo,\n private loginService: DaffMagentoLoginService,\n ) {}\n\n register(registration: DaffAccountRegistration): Observable<string> {\n return this.registerOnly(registration).pipe(\n switchMap(() => this.loginService.login({ email: registration.email, password: registration.password })),\n map(({ token }) => token),\n );\n }\n\n registerOnly({ email, password, subscribe, firstName, lastName }: DaffAccountRegistration): Observable<void> {\n return this.apollo.mutate<MagentoRegisterResponse>({\n mutation: createCustomerMutation,\n variables: {\n email,\n password,\n firstname: firstName || 'temp',\n lastname: lastName || 'temp',\n subscribe,\n },\n }).pipe(\n map((resp) => {\n if (!resp.data.createCustomerV2.customer.email) {\n throw new DaffRegistrationFailedError(`The account for email ${email} was not successful.`);\n }\n\n return;\n }),\n catchError(err => throwError(() => transformMagentoAuthError(err))),\n );\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Apollo } from 'apollo-angular';\nimport {\n Observable,\n throwError,\n} from 'rxjs';\nimport {\n map,\n catchError,\n switchMap,\n} from 'rxjs/operators';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffResetPasswordServiceInterface } from '@daffodil/auth/driver';\nimport { DaffQueuedApollo } from '@daffodil/core/graphql';\n\nimport { transformMagentoAuthError } from './errors/transform';\nimport { DaffMagentoLoginService } from './login.service';\nimport {\n MagentoResetPasswordResponse,\n MagentoSendResetEmailResponse,\n} from './models/public_api';\nimport {\n resetPasswordMutation,\n sendPasswordResetEmailMutation,\n} from './queries/public_api';\nimport {\n validateResetPasswordResponse,\n validateSendResetEmailResponse,\n} from './validators/public_api';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoResetPasswordService implements DaffResetPasswordServiceInterface {\n constructor(\n private apollo: DaffQueuedApollo,\n private loginService: DaffMagentoLoginService,\n ) {}\n\n resetPassword(info: DaffAuthResetPasswordInfo): Observable<string> {\n return this.resetPasswordOnly(info).pipe(\n switchMap(() => this.loginService.login({ email: info.email, password: info.password })),\n map(({ token }) => token),\n );\n }\n\n resetPasswordOnly({ email, password, token }: DaffAuthResetPasswordInfo): Observable<void> {\n return this.apollo.mutate<MagentoResetPasswordResponse>({\n mutation: resetPasswordMutation,\n variables: {\n email,\n password,\n token,\n },\n }).pipe(\n map(validateResetPasswordResponse),\n map(() => undefined),\n catchError(err => throwError(() => transformMagentoAuthError(err))),\n );\n }\n\n sendResetEmail(email: string): Observable<void> {\n return this.apollo.mutate<MagentoSendResetEmailResponse>({\n mutation: sendPasswordResetEmailMutation,\n variables: {\n email,\n },\n }).pipe(\n map(validateSendResetEmailResponse),\n map(() => undefined),\n catchError(err => throwError(() => transformMagentoAuthError(err))),\n );\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport {\n DaffRegisterDriver,\n DaffLoginDriver,\n DaffAuthDriver,\n DaffResetPasswordDriver,\n} from '@daffodil/auth/driver';\n\nimport { DaffMagentoAuthService } from './auth.service';\nimport { DaffMagentoLoginService } from './login.service';\nimport { DaffMagentoRegisterService } from './register.service';\nimport { DaffMagentoResetPasswordService } from './reset-password.service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffAuthMagentoDriverModule {\n static forRoot(): ModuleWithProviders<DaffAuthMagentoDriverModule> {\n return {\n ngModule: DaffAuthMagentoDriverModule,\n providers: [\n {\n provide: DaffRegisterDriver,\n useExisting: DaffMagentoRegisterService,\n },\n {\n provide: DaffLoginDriver,\n useExisting: DaffMagentoLoginService,\n },\n {\n provide: DaffAuthDriver,\n useExisting: DaffMagentoAuthService,\n },\n {\n provide: DaffResetPasswordDriver,\n useExisting: DaffMagentoResetPasswordService,\n },\n ],\n };\n }\n}\n","import { Injectable } from '@angular/core';\nimport { ApolloLink } from '@apollo/client/core';\n\nimport { DaffAuthStorageService } from '@daffodil/auth';\nimport { DaffApolloLinkGenerator } from '@daffodil/core/graphql';\n\n/**\n * A service that will convert cacheable apollo operations into a format that Magento will understand as cacheable.\n *\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class MagentoAuthApolloBearerTokenLinkGenerator implements DaffApolloLinkGenerator {\n constructor(\n private storage: DaffAuthStorageService,\n ) {}\n\n getLink(): ApolloLink {\n return new ApolloLink((operation, forward) => {\n let token = null;\n\n try {\n token = this.storage.getAuthToken();\n } catch(e){}\n\n if (token) {\n operation.setContext({\n headers: {\n ...operation.getContext().headers,\n authorization: `Bearer ${token}`,\n },\n });\n }\n return forward(operation);\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2.DaffMagentoAuthTransformerService","i2.Daff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AAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yCAAyC,cAFxC,MAAM,EAAA,CAAA,CAAA,EAAA;;2FAEP,yCAAyC,EAAA,UAAA,EAAA,CAAA;kBAHrD,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
@@ -12,10 +12,10 @@ class DaffTestingAuthService {
12
12
  check() {
13
13
  return of(undefined);
14
14
  }
15
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTestingAuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
16
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTestingAuthService, providedIn: 'root' }); }
15
17
  }
16
- /** @nocollapse */ DaffTestingAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffTestingAuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
17
- /** @nocollapse */ DaffTestingAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffTestingAuthService, providedIn: 'root' });
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffTestingAuthService, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTestingAuthService, decorators: [{
19
19
  type: Injectable,
20
20
  args: [{
21
21
  providedIn: 'root',
@@ -35,15 +35,15 @@ class DaffTestingLoginService {
35
35
  logout() {
36
36
  return of(undefined);
37
37
  }
38
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTestingLoginService, deps: [{ token: i1.DaffAuthTokenFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
39
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTestingLoginService, providedIn: 'root' }); }
38
40
  }
39
- /** @nocollapse */ DaffTestingLoginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffTestingLoginService, deps: [{ token: i1.DaffAuthTokenFactory }], target: i0.ɵɵFactoryTarget.Injectable });
40
- /** @nocollapse */ DaffTestingLoginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffTestingLoginService, providedIn: 'root' });
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffTestingLoginService, decorators: [{
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTestingLoginService, decorators: [{
42
42
  type: Injectable,
43
43
  args: [{
44
44
  providedIn: 'root',
45
45
  }]
46
- }], ctorParameters: function () { return [{ type: i1.DaffAuthTokenFactory }]; } });
46
+ }], ctorParameters: () => [{ type: i1.DaffAuthTokenFactory }] });
47
47
 
48
48
  /**
49
49
  * @inheritdoc
@@ -58,15 +58,15 @@ class DaffTestingRegisterService {
58
58
  registerOnly(registration) {
59
59
  return of(undefined);
60
60
  }
61
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTestingRegisterService, deps: [{ token: i1.DaffAuthTokenFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
62
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTestingRegisterService, providedIn: 'root' }); }
61
63
  }
62
- /** @nocollapse */ DaffTestingRegisterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffTestingRegisterService, deps: [{ token: i1.DaffAuthTokenFactory }], target: i0.ɵɵFactoryTarget.Injectable });
63
- /** @nocollapse */ DaffTestingRegisterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffTestingRegisterService, providedIn: 'root' });
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffTestingRegisterService, decorators: [{
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTestingRegisterService, decorators: [{
65
65
  type: Injectable,
66
66
  args: [{
67
67
  providedIn: 'root',
68
68
  }]
69
- }], ctorParameters: function () { return [{ type: i1.DaffAuthTokenFactory }]; } });
69
+ }], ctorParameters: () => [{ type: i1.DaffAuthTokenFactory }] });
70
70
 
71
71
  /**
72
72
  * @inheritdoc
@@ -84,15 +84,15 @@ class DaffTestingResetPasswordService {
84
84
  sendResetEmail() {
85
85
  return of(undefined);
86
86
  }
87
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTestingResetPasswordService, deps: [{ token: i1.DaffAuthTokenFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
88
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTestingResetPasswordService, providedIn: 'root' }); }
87
89
  }
88
- /** @nocollapse */ DaffTestingResetPasswordService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffTestingResetPasswordService, deps: [{ token: i1.DaffAuthTokenFactory }], target: i0.ɵɵFactoryTarget.Injectable });
89
- /** @nocollapse */ DaffTestingResetPasswordService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffTestingResetPasswordService, providedIn: 'root' });
90
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffTestingResetPasswordService, decorators: [{
90
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTestingResetPasswordService, decorators: [{
91
91
  type: Injectable,
92
92
  args: [{
93
93
  providedIn: 'root',
94
94
  }]
95
- }], ctorParameters: function () { return [{ type: i1.DaffAuthTokenFactory }]; } });
95
+ }], ctorParameters: () => [{ type: i1.DaffAuthTokenFactory }] });
96
96
 
97
97
  class DaffAuthTestingDriverModule {
98
98
  static forRoot() {
@@ -118,11 +118,11 @@ class DaffAuthTestingDriverModule {
118
118
  ],
119
119
  };
120
120
  }
121
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffAuthTestingDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
122
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: DaffAuthTestingDriverModule, imports: [CommonModule] }); }
123
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffAuthTestingDriverModule, imports: [CommonModule] }); }
121
124
  }
122
- /** @nocollapse */ DaffAuthTestingDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAuthTestingDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
123
- /** @nocollapse */ DaffAuthTestingDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffAuthTestingDriverModule, imports: [CommonModule] });
124
- /** @nocollapse */ DaffAuthTestingDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAuthTestingDriverModule, imports: [CommonModule] });
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAuthTestingDriverModule, decorators: [{
125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffAuthTestingDriverModule, decorators: [{
126
126
  type: NgModule,
127
127
  args: [{
128
128
  imports: [